32 lines
98 KiB
JavaScript
32 lines
98 KiB
JavaScript
/*!
|
|
* Understrap v1.0.0 (https://understrap.com)
|
|
* Copyright 2013-2021 The UnderStrap Authors (https://github.com/understrap/understrap/graphs/contributors)
|
|
* Licensed under GPL (http://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html)
|
|
*/
|
|
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("jquery")):"function"==typeof define&&define.amd?define(["exports","jquery"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).understrap={},t.jQuery)}(this,(function(t,e){"use strict";function n(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var i=n(e),o="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator;const s=function(){const t=["Edge","Trident","Firefox"];for(let e=0;e<t.length;e+=1)if(o&&navigator.userAgent.indexOf(t[e])>=0)return 1;return 0}();var r=o&&window.Promise?function(t){let e=!1;return()=>{e||(e=!0,window.Promise.resolve().then((()=>{e=!1,t()})))}}:function(t){let e=!1;return()=>{e||(e=!0,setTimeout((()=>{e=!1,t()}),s))}};function a(t){return t&&"[object Function]"==={}.toString.call(t)}function l(t,e){if(1!==t.nodeType)return[];const n=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?n[e]:n}function d(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function c(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}const{overflow:e,overflowX:n,overflowY:i}=l(t);return/(auto|scroll|overlay)/.test(e+i+n)?t:c(d(t))}function f(t){return t&&t.referenceNode?t.referenceNode:t}const h=o&&!(!window.MSInputMethodContext||!document.documentMode),u=o&&/MSIE 10/.test(navigator.userAgent);function p(t){return 11===t?h:10===t?u:h||u}function m(t){if(!t)return document.documentElement;const e=p(10)?document.body:null;let n=t.offsetParent||null;for(;n===e&&t.nextElementSibling;)n=(t=t.nextElementSibling).offsetParent;const i=n&&n.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===l(n,"position")?m(n):n:t?t.ownerDocument.documentElement:document.documentElement}function g(t){return null!==t.parentNode?g(t.parentNode):t}function _(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;const n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?t:e,o=n?e:t,s=document.createRange();s.setStart(i,0),s.setEnd(o,0);const{commonAncestorContainer:r}=s;if(t!==r&&e!==r||i.contains(o))return function(t){const{nodeName:e}=t;return"BODY"!==e&&("HTML"===e||m(t.firstElementChild)===t)}(r)?r:m(r);const a=g(t);return a.host?_(a.host,e):_(t,g(e).host)}function b(t,e="top"){const n="top"===e?"scrollTop":"scrollLeft",i=t.nodeName;if("BODY"===i||"HTML"===i){const e=t.ownerDocument.documentElement;return(t.ownerDocument.scrollingElement||e)[n]}return t[n]}function v(t,e){const n="x"===e?"Left":"Top",i="Left"===n?"Right":"Bottom";return parseFloat(t[`border${n}Width`])+parseFloat(t[`border${i}Width`])}function y(t,e,n,i){return Math.max(e[`offset${t}`],e[`scroll${t}`],n[`client${t}`],n[`offset${t}`],n[`scroll${t}`],p(10)?parseInt(n[`offset${t}`])+parseInt(i["margin"+("Height"===t?"Top":"Left")])+parseInt(i["margin"+("Height"===t?"Bottom":"Right")]):0)}function w(t){const e=t.body,n=t.documentElement,i=p(10)&&getComputedStyle(n);return{height:y("Height",e,n,i),width:y("Width",e,n,i)}}function E(t){return{...t,right:t.left+t.width,bottom:t.top+t.height}}function T(t){let e={};try{if(p(10)){e=t.getBoundingClientRect();const n=b(t,"top"),i=b(t,"left");e.top+=n,e.left+=i,e.bottom+=n,e.right+=i}else e=t.getBoundingClientRect()}catch(t){}const n={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},i="HTML"===t.nodeName?w(t.ownerDocument):{},o=i.width||t.clientWidth||n.width,s=i.height||t.clientHeight||n.height;let r=t.offsetWidth-o,a=t.offsetHeight-s;if(r||a){const e=l(t);r-=v(e,"x"),a-=v(e,"y"),n.width-=r,n.height-=a}return E(n)}function C(t,e,n=!1){const i=p(10),o="HTML"===e.nodeName,s=T(t),r=T(e),a=c(t),d=l(e),f=parseFloat(d.borderTopWidth),h=parseFloat(d.borderLeftWidth);n&&o&&(r.top=Math.max(r.top,0),r.left=Math.max(r.left,0));let u=E({top:s.top-r.top-f,left:s.left-r.left-h,width:s.width,height:s.height});if(u.marginTop=0,u.marginLeft=0,!i&&o){const t=parseFloat(d.marginTop),e=parseFloat(d.marginLeft);u.top-=f-t,u.bottom-=f-t,u.left-=h-e,u.right-=h-e,u.marginTop=t,u.marginLeft=e}return(i&&!n?e.contains(a):e===a&&"BODY"!==a.nodeName)&&(u=function(t,e,n=!1){const i=b(e,"top"),o=b(e,"left"),s=n?-1:1;return t.top+=i*s,t.bottom+=i*s,t.left+=o*s,t.right+=o*s,t}(u,e)),u}function S(t){const e=t.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===l(t,"position"))return!0;const n=d(t);return!!n&&S(n)}function D(t){if(!t||!t.parentElement||p())return document.documentElement;let e=t.parentElement;for(;e&&"none"===l(e,"transform");)e=e.parentElement;return e||document.documentElement}function N(t,e,n,i,o=!1){let s={top:0,left:0};const r=o?D(t):_(t,f(e));if("viewport"===i)s=function(t,e=!1){const n=t.ownerDocument.documentElement,i=C(t,n),o=Math.max(n.clientWidth,window.innerWidth||0),s=Math.max(n.clientHeight,window.innerHeight||0),r=e?0:b(n),a=e?0:b(n,"left");return E({top:r-i.top+i.marginTop,left:a-i.left+i.marginLeft,width:o,height:s})}(r,o);else{let n;"scrollParent"===i?(n=c(d(e)),"BODY"===n.nodeName&&(n=t.ownerDocument.documentElement)):n="window"===i?t.ownerDocument.documentElement:i;const a=C(n,r,o);if("HTML"!==n.nodeName||S(r))s=a;else{const{height:e,width:n}=w(t.ownerDocument);s.top+=a.top-a.marginTop,s.bottom=e+a.top,s.left+=a.left-a.marginLeft,s.right=n+a.left}}const a="number"==typeof(n=n||0);return s.left+=a?n:n.left||0,s.top+=a?n:n.top||0,s.right-=a?n:n.right||0,s.bottom-=a?n:n.bottom||0,s}function x({width:t,height:e}){return t*e}function O(t,e,n,i,o,s=0){if(-1===t.indexOf("auto"))return t;const r=N(n,i,s,o),a={top:{width:r.width,height:e.top-r.top},right:{width:r.right-e.right,height:r.height},bottom:{width:r.width,height:r.bottom-e.bottom},left:{width:e.left-r.left,height:r.height}},l=Object.keys(a).map((t=>({key:t,...a[t],area:x(a[t])}))).sort(((t,e)=>e.area-t.area)),d=l.filter((({width:t,height:e})=>t>=n.clientWidth&&e>=n.clientHeight)),c=d.length>0?d[0].key:l[0].key,f=t.split("-")[1];return c+(f?`-${f}`:"")}function A(t,e,n,i=null){return C(n,i?D(e):_(e,f(n)),i)}function I(t){const e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),i=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:t.offsetWidth+i,height:t.offsetHeight+n}}function k(t){const e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,(t=>e[t]))}function L(t,e,n){n=n.split("-")[0];const i=I(t),o={width:i.width,height:i.height},s=-1!==["right","left"].indexOf(n),r=s?"top":"left",a=s?"left":"top",l=s?"height":"width",d=s?"width":"height";return o[r]=e[r]+e[l]/2-i[l]/2,o[a]=n===a?e[a]-i[d]:e[k(a)],o}function F(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function j(t,e,n){return(void 0===n?t:t.slice(0,function(t,e,n){if(Array.prototype.findIndex)return t.findIndex((t=>t[e]===n));const i=F(t,(t=>t[e]===n));return t.indexOf(i)}(t,"name",n))).forEach((t=>{t.function;const n=t.function||t.fn;t.enabled&&a(n)&&(e.offsets.popper=E(e.offsets.popper),e.offsets.reference=E(e.offsets.reference),e=n(e,t))})),e}function P(){if(this.state.isDestroyed)return;let t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=A(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=O(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=L(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=j(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}function M(t,e){return t.some((({name:t,enabled:n})=>n&&t===e))}function H(t){const e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1);for(let i=0;i<e.length;i++){const o=e[i],s=o?`${o}${n}`:t;if(void 0!==document.body.style[s])return s}return null}function B(){return this.state.isDestroyed=!0,M(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[H("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function R(t){const e=t.ownerDocument;return e?e.defaultView:window}function q(t,e,n,i){const o="BODY"===t.nodeName,s=o?t.ownerDocument.defaultView:t;s.addEventListener(e,n,{passive:!0}),o||q(c(s.parentNode),e,n,i),i.push(s)}function W(t,e,n,i){n.updateBound=i,R(t).addEventListener("resize",n.updateBound,{passive:!0});const o=c(t);return q(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function $(){this.state.eventsEnabled||(this.state=W(this.reference,this.options,this.state,this.scheduleUpdate))}function U(){var t,e;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(t=this.reference,e=this.state,R(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach((t=>{t.removeEventListener("scroll",e.updateBound)})),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e))}function Q(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function V(t,e){Object.keys(e).forEach((n=>{let i="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&Q(e[n])&&(i="px"),t.style[n]=e[n]+i}))}const Y=o&&/Firefox/i.test(navigator.userAgent);function z(t,e,n){const i=F(t,(({name:t})=>t===e)),o=!!i&&t.some((t=>t.name===n&&t.enabled&&t.order<i.order));if(!o){}return o}var X=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"];const K=X.slice(3);function G(t,e=!1){const n=K.indexOf(t),i=K.slice(n+1).concat(K.slice(0,n));return e?i.reverse():i}const J="flip",Z="clockwise",tt="counterclockwise";function et(t,e,n,i){const o=[0,0],s=-1!==["right","left"].indexOf(i),r=t.split(/(\+|\-)/).map((t=>t.trim())),a=r.indexOf(F(r,(t=>-1!==t.search(/,|\s/))));r[a]&&r[a].indexOf(",");const l=/\s*,\s*|\s+/;let d=-1!==a?[r.slice(0,a).concat([r[a].split(l)[0]]),[r[a].split(l)[1]].concat(r.slice(a+1))]:[r];return d=d.map(((t,i)=>{const o=(1===i?!s:s)?"height":"width";let r=!1;return t.reduce(((t,e)=>""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,r=!0,t):r?(t[t.length-1]+=e,r=!1,t):t.concat(e)),[]).map((t=>function(t,e,n,i){const o=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),s=+o[1],r=o[2];if(!s)return t;if(0===r.indexOf("%")){let t;switch(r){case"%p":t=n;break;case"%":case"%r":default:t=i}return E(t)[e]/100*s}if("vh"===r||"vw"===r){let t;return t="vh"===r?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0),t/100*s}return s}(t,o,e,n)))})),d.forEach(((t,e)=>{t.forEach(((n,i)=>{Q(n)&&(o[e]+=n*("-"===t[i-1]?-1:1))}))})),o}var nt={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:()=>{},onUpdate:()=>{},modifiers:{shift:{order:100,enabled:!0,fn:function(t){const e=t.placement,n=e.split("-")[0],i=e.split("-")[1];if(i){const{reference:e,popper:o}=t.offsets,s=-1!==["bottom","top"].indexOf(n),r=s?"left":"top",a=s?"width":"height",l={start:{[r]:e[r]},end:{[r]:e[r]+e[a]-o[a]}};t.offsets.popper={...o,...l[i]}}return t}},offset:{order:200,enabled:!0,fn:function(t,{offset:e}){const{placement:n,offsets:{popper:i,reference:o}}=t,s=n.split("-")[0];let r;return r=Q(+e)?[+e,0]:et(e,i,o,s),"left"===s?(i.top+=r[0],i.left-=r[1]):"right"===s?(i.top+=r[0],i.left+=r[1]):"top"===s?(i.left+=r[0],i.top-=r[1]):"bottom"===s&&(i.left+=r[0],i.top+=r[1]),t.popper=i,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){let n=e.boundariesElement||m(t.instance.popper);t.instance.reference===n&&(n=m(n));const i=H("transform"),o=t.instance.popper.style,{top:s,left:r,[i]:a}=o;o.top="",o.left="",o[i]="";const l=N(t.instance.popper,t.instance.reference,e.padding,n,t.positionFixed);o.top=s,o.left=r,o[i]=a,e.boundaries=l;const d=e.priority;let c=t.offsets.popper;const f={primary(t){let n=c[t];return c[t]<l[t]&&!e.escapeWithReference&&(n=Math.max(c[t],l[t])),{[t]:n}},secondary(t){const n="right"===t?"left":"top";let i=c[n];return c[t]>l[t]&&!e.escapeWithReference&&(i=Math.min(c[n],l[t]-("right"===t?c.width:c.height))),{[n]:i}}};return d.forEach((t=>{const e=-1!==["left","top"].indexOf(t)?"primary":"secondary";c={...c,...f[e](t)}})),t.offsets.popper=c,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){const{popper:e,reference:n}=t.offsets,i=t.placement.split("-")[0],o=Math.floor,s=-1!==["top","bottom"].indexOf(i),r=s?"right":"bottom",a=s?"left":"top",l=s?"width":"height";return e[r]<o(n[a])&&(t.offsets.popper[a]=o(n[a])-e[l]),e[a]>o(n[r])&&(t.offsets.popper[a]=o(n[r])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){if(!z(t.instance.modifiers,"arrow","keepTogether"))return t;let n=e.element;if("string"==typeof n){if(n=t.instance.popper.querySelector(n),!n)return t}else if(!t.instance.popper.contains(n))return t;const i=t.placement.split("-")[0],{popper:o,reference:s}=t.offsets,r=-1!==["left","right"].indexOf(i),a=r?"height":"width",d=r?"Top":"Left",c=d.toLowerCase(),f=r?"left":"top",h=r?"bottom":"right",u=I(n)[a];s[h]-u<o[c]&&(t.offsets.popper[c]-=o[c]-(s[h]-u)),s[c]+u>o[h]&&(t.offsets.popper[c]+=s[c]+u-o[h]),t.offsets.popper=E(t.offsets.popper);const p=s[c]+s[a]/2-u/2,m=l(t.instance.popper),g=parseFloat(m[`margin${d}`]),_=parseFloat(m[`border${d}Width`]);let b=p-t.offsets.popper[c]-g-_;return b=Math.max(Math.min(o[a]-u,b),0),t.arrowElement=n,t.offsets.arrow={[c]:Math.round(b),[f]:""},t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if(M(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;const n=N(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed);let i=t.placement.split("-")[0],o=k(i),s=t.placement.split("-")[1]||"",r=[];switch(e.behavior){case J:r=[i,o];break;case Z:r=G(i);break;case tt:r=G(i,!0);break;default:r=e.behavior}return r.forEach(((a,l)=>{if(i!==a||r.length===l+1)return t;i=t.placement.split("-")[0],o=k(i);const d=t.offsets.popper,c=t.offsets.reference,f=Math.floor,h="left"===i&&f(d.right)>f(c.left)||"right"===i&&f(d.left)<f(c.right)||"top"===i&&f(d.bottom)>f(c.top)||"bottom"===i&&f(d.top)<f(c.bottom),u=f(d.left)<f(n.left),p=f(d.right)>f(n.right),m=f(d.top)<f(n.top),g=f(d.bottom)>f(n.bottom),_="left"===i&&u||"right"===i&&p||"top"===i&&m||"bottom"===i&&g,b=-1!==["top","bottom"].indexOf(i),v=!!e.flipVariations&&(b&&"start"===s&&u||b&&"end"===s&&p||!b&&"start"===s&&m||!b&&"end"===s&&g),y=!!e.flipVariationsByContent&&(b&&"start"===s&&p||b&&"end"===s&&u||!b&&"start"===s&&g||!b&&"end"===s&&m),w=v||y;(h||_||w)&&(t.flipped=!0,(h||_)&&(i=r[l+1]),w&&(s=function(t){return"end"===t?"start":"start"===t?"end":t}(s)),t.placement=i+(s?"-"+s:""),t.offsets.popper={...t.offsets.popper,...L(t.instance.popper,t.offsets.reference,t.placement)},t=j(t.instance.modifiers,t,"flip"))})),t},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(t){const e=t.placement,n=e.split("-")[0],{popper:i,reference:o}=t.offsets,s=-1!==["left","right"].indexOf(n),r=-1===["top","left"].indexOf(n);return i[s?"left":"top"]=o[n]-(r?i[s?"width":"height"]:0),t.placement=k(e),t.offsets.popper=E(i),t}},hide:{order:800,enabled:!0,fn:function(t){if(!z(t.instance.modifiers,"hide","preventOverflow"))return t;const e=t.offsets.reference,n=F(t.instance.modifiers,(t=>"preventOverflow"===t.name)).boundaries;if(e.bottom<n.top||e.left>n.right||e.top>n.bottom||e.right<n.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}},computeStyle:{order:850,enabled:!0,fn:function(t,e){const{x:n,y:i}=e,{popper:o}=t.offsets,s=F(t.instance.modifiers,(t=>"applyStyle"===t.name)).gpuAcceleration,r=void 0!==s?s:e.gpuAcceleration,a=m(t.instance.popper),l=T(a),d={position:o.position},c=function(t,e){const{popper:n,reference:i}=t.offsets,{round:o,floor:s}=Math,r=t=>t,a=o(i.width),l=o(n.width),d=-1!==["left","right"].indexOf(t.placement),c=-1!==t.placement.indexOf("-"),f=e?d||c||a%2==l%2?o:s:r,h=e?o:r;return{left:f(a%2==1&&l%2==1&&!c&&e?n.left-1:n.left),top:h(n.top),bottom:h(n.bottom),right:f(n.right)}}(t,window.devicePixelRatio<2||!Y),f="bottom"===n?"top":"bottom",h="right"===i?"left":"right",u=H("transform");let p,g;if(g="bottom"===f?"HTML"===a.nodeName?-a.clientHeight+c.bottom:-l.height+c.bottom:c.top,p="right"===h?"HTML"===a.nodeName?-a.clientWidth+c.right:-l.width+c.right:c.left,r&&u)d[u]=`translate3d(${p}px, ${g}px, 0)`,d[f]=0,d[h]=0,d.willChange="transform";else{const t="bottom"===f?-1:1,e="right"===h?-1:1;d[f]=g*t,d[h]=p*e,d.willChange=`${f}, ${h}`}const _={"x-placement":t.placement};return t.attributes={..._,...t.attributes},t.styles={...d,...t.styles},t.arrowStyles={...t.offsets.arrow,...t.arrowStyles},t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(t){var e,n;return V(t.instance.popper,t.styles),e=t.instance.popper,n=t.attributes,Object.keys(n).forEach((function(t){!1!==n[t]?e.setAttribute(t,n[t]):e.removeAttribute(t)})),t.arrowElement&&Object.keys(t.arrowStyles).length&&V(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,n,i,o){const s=A(0,e,t,n.positionFixed),r=O(n.placement,s,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",r),V(e,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}};class it{constructor(t,e,n={}){this.update=r(this.update.bind(this)),this.options={...it.Defaults,...n},this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=e&&e.jquery?e[0]:e,this.options.modifiers={},Object.keys({...it.Defaults.modifiers,...n.modifiers}).forEach((t=>{this.options.modifiers[t]={...it.Defaults.modifiers[t]||{},...n.modifiers?n.modifiers[t]:{}}})),this.modifiers=Object.keys(this.options.modifiers).map((t=>({name:t,...this.options.modifiers[t]}))).sort(((t,e)=>t.order-e.order)),this.modifiers.forEach((t=>{t.enabled&&a(t.onLoad)&&t.onLoad(this.reference,this.popper,this.options,t,this.state)})),this.update();const i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}update(){return P.call(this)}destroy(){return B.call(this)}enableEventListeners(){return $.call(this)}disableEventListeners(){return U.call(this)}scheduleUpdate=()=>requestAnimationFrame(this.update);static Utils=("undefined"!=typeof window?window:global).PopperUtils;static placements=X;static Defaults=nt}const ot="transitionend";function st(t){let e=!1;return i.default(this).one(rt.TRANSITION_END,(()=>{e=!0})),setTimeout((()=>{e||rt.triggerTransitionEnd(this)}),t),this}const rt={TRANSITION_END:"bsTransitionEnd",getUID(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},getSelectorFromElement(t){let e=t.getAttribute("data-target");if(!e||"#"===e){const n=t.getAttribute("href");e=n&&"#"!==n?n.trim():""}try{return document.querySelector(e)?e:null}catch(t){return null}},getTransitionDurationFromElement(t){if(!t)return 0;let e=i.default(t).css("transition-duration"),n=i.default(t).css("transition-delay");const o=parseFloat(e),s=parseFloat(n);return o||s?(e=e.split(",")[0],n=n.split(",")[0],1e3*(parseFloat(e)+parseFloat(n))):0},reflow:t=>t.offsetHeight,triggerTransitionEnd(t){i.default(t).trigger(ot)},supportsTransitionEnd:()=>Boolean(ot),isElement:t=>(t[0]||t).nodeType,typeCheckConfig(t,e,n){for(const o in n)if(Object.prototype.hasOwnProperty.call(n,o)){const s=n[o],r=e[o],a=r&&rt.isElement(r)?"element":null==(i=r)?`${i}`:{}.toString.call(i).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(s).test(a))throw new Error(`${t.toUpperCase()}: Option "${o}" provided type "${a}" but expected type "${s}".`)}var i},findShadowRoot(t){if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?rt.findShadowRoot(t.parentNode):null},jQueryDetection(){if(void 0===i.default)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");const t=i.default.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1===t[0]&&9===t[1]&&t[2]<1||t[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};rt.jQueryDetection(),i.default.fn.emulateTransitionEnd=st,i.default.event.special[rt.TRANSITION_END]={bindType:ot,delegateType:ot,handle(t){if(i.default(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}};const at="bs.alert",lt=i.default.fn.alert;class dt{constructor(t){this._element=t}static get VERSION(){return"4.6.0"}close(t){let e=this._element;t&&(e=this._getRootElement(t));this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)}dispose(){i.default.removeData(this._element,at),this._element=null}_getRootElement(t){const e=rt.getSelectorFromElement(t);let n=!1;return e&&(n=document.querySelector(e)),n||(n=i.default(t).closest(".alert")[0]),n}_triggerCloseEvent(t){const e=i.default.Event("close.bs.alert");return i.default(t).trigger(e),e}_removeElement(t){if(i.default(t).removeClass("show"),!i.default(t).hasClass("fade"))return void this._destroyElement(t);const e=rt.getTransitionDurationFromElement(t);i.default(t).one(rt.TRANSITION_END,(e=>this._destroyElement(t,e))).emulateTransitionEnd(e)}_destroyElement(t){i.default(t).detach().trigger("closed.bs.alert").remove()}static _jQueryInterface(t){return this.each((function(){const e=i.default(this);let n=e.data(at);n||(n=new dt(this),e.data(at,n)),"close"===t&&n[t](this)}))}static _handleDismiss(t){return function(e){e&&e.preventDefault(),t.close(this)}}}i.default(document).on("click.bs.alert.data-api",'[data-dismiss="alert"]',dt._handleDismiss(new dt)),i.default.fn.alert=dt._jQueryInterface,i.default.fn.alert.Constructor=dt,i.default.fn.alert.noConflict=()=>(i.default.fn.alert=lt,dt._jQueryInterface);const ct="bs.button",ft=i.default.fn.button,ht="active",ut='[data-toggle^="button"]',pt='input:not([type="hidden"])',mt=".btn";class gt{constructor(t){this._element=t,this.shouldAvoidTriggerChange=!1}static get VERSION(){return"4.6.0"}toggle(){let t=!0,e=!0;const n=i.default(this._element).closest('[data-toggle="buttons"]')[0];if(n){const o=this._element.querySelector(pt);if(o){if("radio"===o.type)if(o.checked&&this._element.classList.contains(ht))t=!1;else{const t=n.querySelector(".active");t&&i.default(t).removeClass(ht)}t&&("checkbox"!==o.type&&"radio"!==o.type||(o.checked=!this._element.classList.contains(ht)),this.shouldAvoidTriggerChange||i.default(o).trigger("change")),o.focus(),e=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(e&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(ht)),t&&i.default(this._element).toggleClass(ht))}dispose(){i.default.removeData(this._element,ct),this._element=null}static _jQueryInterface(t,e){return this.each((function(){const n=i.default(this);let o=n.data(ct);o||(o=new gt(this),n.data(ct,o)),o.shouldAvoidTriggerChange=e,"toggle"===t&&o[t]()}))}}i.default(document).on("click.bs.button.data-api",ut,(t=>{let e=t.target;const n=e;if(i.default(e).hasClass("btn")||(e=i.default(e).closest(mt)[0]),!e||e.hasAttribute("disabled")||e.classList.contains("disabled"))t.preventDefault();else{const o=e.querySelector(pt);if(o&&(o.hasAttribute("disabled")||o.classList.contains("disabled")))return void t.preventDefault();"INPUT"!==n.tagName&&"LABEL"===e.tagName||gt._jQueryInterface.call(i.default(e),"toggle","INPUT"===n.tagName)}})).on("focus.bs.button.data-api blur.bs.button.data-api",ut,(t=>{const e=i.default(t.target).closest(mt)[0];i.default(e).toggleClass("focus",/^focus(in)?$/.test(t.type))})),i.default(window).on("load.bs.button.data-api",(()=>{let t=[].slice.call(document.querySelectorAll('[data-toggle="buttons"] .btn'));for(let e=0,n=t.length;e<n;e++){const n=t[e],i=n.querySelector(pt);i.checked||i.hasAttribute("checked")?n.classList.add(ht):n.classList.remove(ht)}t=[].slice.call(document.querySelectorAll('[data-toggle="button"]'));for(let e=0,n=t.length;e<n;e++){const n=t[e];"true"===n.getAttribute("aria-pressed")?n.classList.add(ht):n.classList.remove(ht)}})),i.default.fn.button=gt._jQueryInterface,i.default.fn.button.Constructor=gt,i.default.fn.button.noConflict=()=>(i.default.fn.button=ft,gt._jQueryInterface);const _t="carousel",bt="bs.carousel",vt=".bs.carousel",yt=i.default.fn[_t],wt={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},Et={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},Tt="next",Ct="prev",St="slid.bs.carousel",Dt="active",Nt=".active.carousel-item",xt={TOUCH:"touch",PEN:"pen"};class Ot{constructor(t,e){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(e),this._element=t,this._indicatorsElement=this._element.querySelector(".carousel-indicators"),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}static get VERSION(){return"4.6.0"}static get Default(){return wt}next(){this._isSliding||this._slide(Tt)}nextWhenVisible(){const t=i.default(this._element);!document.hidden&&t.is(":visible")&&"hidden"!==t.css("visibility")&&this.next()}prev(){this._isSliding||this._slide(Ct)}pause(t){t||(this._isPaused=!0),this._element.querySelector(".carousel-item-next, .carousel-item-prev")&&(rt.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}cycle(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))}to(t){this._activeElement=this._element.querySelector(Nt);const e=this._getItemIndex(this._activeElement);if(t>this._items.length-1||t<0)return;if(this._isSliding)return void i.default(this._element).one(St,(()=>this.to(t)));if(e===t)return this.pause(),void this.cycle();const n=t>e?Tt:Ct;this._slide(n,this._items[t])}dispose(){i.default(this._element).off(vt),i.default.removeData(this._element,bt),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null}_getConfig(t){return t={...wt,...t},rt.typeCheckConfig(_t,t,Et),t}_handleSwipe(){const t=Math.abs(this.touchDeltaX);if(t<=40)return;const e=t/this.touchDeltaX;this.touchDeltaX=0,e>0&&this.prev(),e<0&&this.next()}_addEventListeners(){this._config.keyboard&&i.default(this._element).on("keydown.bs.carousel",(t=>this._keydown(t))),"hover"===this._config.pause&&i.default(this._element).on("mouseenter.bs.carousel",(t=>this.pause(t))).on("mouseleave.bs.carousel",(t=>this.cycle(t))),this._config.touch&&this._addTouchEventListeners()}_addTouchEventListeners(){if(!this._touchSupported)return;const t=t=>{this._pointerEvent&&xt[t.originalEvent.pointerType.toUpperCase()]?this.touchStartX=t.originalEvent.clientX:this._pointerEvent||(this.touchStartX=t.originalEvent.touches[0].clientX)},e=t=>{t.originalEvent.touches&&t.originalEvent.touches.length>1?this.touchDeltaX=0:this.touchDeltaX=t.originalEvent.touches[0].clientX-this.touchStartX},n=t=>{this._pointerEvent&&xt[t.originalEvent.pointerType.toUpperCase()]&&(this.touchDeltaX=t.originalEvent.clientX-this.touchStartX),this._handleSwipe(),"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((t=>this.cycle(t)),500+this._config.interval))};i.default(this._element.querySelectorAll(".carousel-item img")).on("dragstart.bs.carousel",(t=>t.preventDefault())),this._pointerEvent?(i.default(this._element).on("pointerdown.bs.carousel",(e=>t(e))),i.default(this._element).on("pointerup.bs.carousel",(t=>n(t))),this._element.classList.add("pointer-event")):(i.default(this._element).on("touchstart.bs.carousel",(e=>t(e))),i.default(this._element).on("touchmove.bs.carousel",(t=>e(t))),i.default(this._element).on("touchend.bs.carousel",(t=>n(t))))}_keydown(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case 37:t.preventDefault(),this.prev();break;case 39:t.preventDefault(),this.next()}}_getItemIndex(t){return this._items=t&&t.parentNode?[].slice.call(t.parentNode.querySelectorAll(".carousel-item")):[],this._items.indexOf(t)}_getItemByDirection(t,e){const n=t===Tt,i=t===Ct,o=this._getItemIndex(e),s=this._items.length-1;if((i&&0===o||n&&o===s)&&!this._config.wrap)return e;const r=(o+(t===Ct?-1:1))%this._items.length;return-1===r?this._items[this._items.length-1]:this._items[r]}_triggerSlideEvent(t,e){const n=this._getItemIndex(t),o=this._getItemIndex(this._element.querySelector(Nt)),s=i.default.Event("slide.bs.carousel",{relatedTarget:t,direction:e,from:o,to:n});return i.default(this._element).trigger(s),s}_setActiveIndicatorElement(t){if(this._indicatorsElement){const e=[].slice.call(this._indicatorsElement.querySelectorAll(".active"));i.default(e).removeClass(Dt);const n=this._indicatorsElement.children[this._getItemIndex(t)];n&&i.default(n).addClass(Dt)}}_updateInterval(){const t=this._activeElement||this._element.querySelector(Nt);if(!t)return;const e=parseInt(t.getAttribute("data-interval"),10);e?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=e):this._config.interval=this._config.defaultInterval||this._config.interval}_slide(t,e){const n=this._element.querySelector(Nt),o=this._getItemIndex(n),s=e||n&&this._getItemByDirection(t,n),r=this._getItemIndex(s),a=Boolean(this._interval);let l,d,c;if(t===Tt?(l="carousel-item-left",d="carousel-item-next",c="left"):(l="carousel-item-right",d="carousel-item-prev",c="right"),s&&i.default(s).hasClass(Dt))return void(this._isSliding=!1);if(this._triggerSlideEvent(s,c).isDefaultPrevented())return;if(!n||!s)return;this._isSliding=!0,a&&this.pause(),this._setActiveIndicatorElement(s),this._activeElement=s;const f=i.default.Event(St,{relatedTarget:s,direction:c,from:o,to:r});if(i.default(this._element).hasClass("slide")){i.default(s).addClass(d),rt.reflow(s),i.default(n).addClass(l),i.default(s).addClass(l);const t=rt.getTransitionDurationFromElement(n);i.default(n).one(rt.TRANSITION_END,(()=>{i.default(s).removeClass(`${l} ${d}`).addClass(Dt),i.default(n).removeClass(`active ${d} ${l}`),this._isSliding=!1,setTimeout((()=>i.default(this._element).trigger(f)),0)})).emulateTransitionEnd(t)}else i.default(n).removeClass(Dt),i.default(s).addClass(Dt),this._isSliding=!1,i.default(this._element).trigger(f);a&&this.cycle()}static _jQueryInterface(t){return this.each((function(){let e=i.default(this).data(bt),n={...wt,...i.default(this).data()};"object"==typeof t&&(n={...n,...t});const o="string"==typeof t?t:n.slide;if(e||(e=new Ot(this,n),i.default(this).data(bt,e)),"number"==typeof t)e.to(t);else if("string"==typeof o){if(void 0===e[o])throw new TypeError(`No method named "${o}"`);e[o]()}else n.interval&&n.ride&&(e.pause(),e.cycle())}))}static _dataApiClickHandler(t){const e=rt.getSelectorFromElement(this);if(!e)return;const n=i.default(e)[0];if(!n||!i.default(n).hasClass("carousel"))return;const o={...i.default(n).data(),...i.default(this).data()},s=this.getAttribute("data-slide-to");s&&(o.interval=!1),Ot._jQueryInterface.call(i.default(n),o),s&&i.default(n).data(bt).to(s),t.preventDefault()}}i.default(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",Ot._dataApiClickHandler),i.default(window).on("load.bs.carousel.data-api",(()=>{const t=[].slice.call(document.querySelectorAll('[data-ride="carousel"]'));for(let e=0,n=t.length;e<n;e++){const n=i.default(t[e]);Ot._jQueryInterface.call(n,n.data())}})),i.default.fn[_t]=Ot._jQueryInterface,i.default.fn[_t].Constructor=Ot,i.default.fn[_t].noConflict=()=>(i.default.fn[_t]=yt,Ot._jQueryInterface);const At="collapse",It="bs.collapse",kt=i.default.fn[At],Lt={toggle:!0,parent:""},Ft={toggle:"boolean",parent:"(string|element)"},jt="show",Pt="collapse",Mt="collapsing",Ht="collapsed",Bt="width",Rt='[data-toggle="collapse"]';class qt{constructor(t,e){this._isTransitioning=!1,this._element=t,this._config=this._getConfig(e),this._triggerArray=[].slice.call(document.querySelectorAll(`[data-toggle="collapse"][href="#${t.id}"],[data-toggle="collapse"][data-target="#${t.id}"]`));const n=[].slice.call(document.querySelectorAll(Rt));for(let e=0,i=n.length;e<i;e++){const i=n[e],o=rt.getSelectorFromElement(i),s=[].slice.call(document.querySelectorAll(o)).filter((e=>e===t));null!==o&&s.length>0&&(this._selector=o,this._triggerArray.push(i))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}static get VERSION(){return"4.6.0"}static get Default(){return Lt}toggle(){i.default(this._element).hasClass(jt)?this.hide():this.show()}show(){if(this._isTransitioning||i.default(this._element).hasClass(jt))return;let t,e;if(this._parent&&(t=[].slice.call(this._parent.querySelectorAll(".show, .collapsing")).filter((t=>"string"==typeof this._config.parent?t.getAttribute("data-parent")===this._config.parent:t.classList.contains(Pt))),0===t.length&&(t=null)),t&&(e=i.default(t).not(this._selector).data(It),e&&e._isTransitioning))return;const n=i.default.Event("show.bs.collapse");if(i.default(this._element).trigger(n),n.isDefaultPrevented())return;t&&(qt._jQueryInterface.call(i.default(t).not(this._selector),"hide"),e||i.default(t).data(It,null));const o=this._getDimension();i.default(this._element).removeClass(Pt).addClass(Mt),this._element.style[o]=0,this._triggerArray.length&&i.default(this._triggerArray).removeClass(Ht).attr("aria-expanded",!0),this.setTransitioning(!0);const s=`scroll${o[0].toUpperCase()+o.slice(1)}`,r=rt.getTransitionDurationFromElement(this._element);i.default(this._element).one(rt.TRANSITION_END,(()=>{i.default(this._element).removeClass(Mt).addClass("collapse show"),this._element.style[o]="",this.setTransitioning(!1),i.default(this._element).trigger("shown.bs.collapse")})).emulateTransitionEnd(r),this._element.style[o]=`${this._element[s]}px`}hide(){if(this._isTransitioning||!i.default(this._element).hasClass(jt))return;const t=i.default.Event("hide.bs.collapse");if(i.default(this._element).trigger(t),t.isDefaultPrevented())return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,rt.reflow(this._element),i.default(this._element).addClass(Mt).removeClass("collapse show");const n=this._triggerArray.length;if(n>0)for(let t=0;t<n;t++){const e=this._triggerArray[t],n=rt.getSelectorFromElement(e);if(null!==n){i.default([].slice.call(document.querySelectorAll(n))).hasClass(jt)||i.default(e).addClass(Ht).attr("aria-expanded",!1)}}this.setTransitioning(!0);this._element.style[e]="";const o=rt.getTransitionDurationFromElement(this._element);i.default(this._element).one(rt.TRANSITION_END,(()=>{this.setTransitioning(!1),i.default(this._element).removeClass(Mt).addClass(Pt).trigger("hidden.bs.collapse")})).emulateTransitionEnd(o)}setTransitioning(t){this._isTransitioning=t}dispose(){i.default.removeData(this._element,It),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null}_getConfig(t){return(t={...Lt,...t}).toggle=Boolean(t.toggle),rt.typeCheckConfig(At,t,Ft),t}_getDimension(){return i.default(this._element).hasClass(Bt)?Bt:"height"}_getParent(){let t;rt.isElement(this._config.parent)?(t=this._config.parent,void 0!==this._config.parent.jquery&&(t=this._config.parent[0])):t=document.querySelector(this._config.parent);const e=`[data-toggle="collapse"][data-parent="${this._config.parent}"]`,n=[].slice.call(t.querySelectorAll(e));return i.default(n).each(((t,e)=>{this._addAriaAndCollapsedClass(qt._getTargetFromElement(e),[e])})),t}_addAriaAndCollapsedClass(t,e){const n=i.default(t).hasClass(jt);e.length&&i.default(e).toggleClass(Ht,!n).attr("aria-expanded",n)}static _getTargetFromElement(t){const e=rt.getSelectorFromElement(t);return e?document.querySelector(e):null}static _jQueryInterface(t){return this.each((function(){const e=i.default(this);let n=e.data(It);const o={...Lt,...e.data(),..."object"==typeof t&&t?t:{}};if(!n&&o.toggle&&"string"==typeof t&&/show|hide/.test(t)&&(o.toggle=!1),n||(n=new qt(this,o),e.data(It,n)),"string"==typeof t){if(void 0===n[t])throw new TypeError(`No method named "${t}"`);n[t]()}}))}}i.default(document).on("click.bs.collapse.data-api",Rt,(function(t){"A"===t.currentTarget.tagName&&t.preventDefault();const e=i.default(this),n=rt.getSelectorFromElement(this),o=[].slice.call(document.querySelectorAll(n));i.default(o).each((function(){const t=i.default(this),n=t.data(It)?"toggle":e.data();qt._jQueryInterface.call(t,n)}))})),i.default.fn[At]=qt._jQueryInterface,i.default.fn[At].Constructor=qt,i.default.fn[At].noConflict=()=>(i.default.fn[At]=kt,qt._jQueryInterface);
|
|
/**!
|
|
* @fileOverview Kickass library to create and place poppers near their reference elements.
|
|
* @version 1.16.1
|
|
* @license
|
|
* Copyright (c) 2016 Federico Zivolo and contributors
|
|
*
|
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
* of this software and associated documentation files (the "Software"), to deal
|
|
* in the Software without restriction, including without limitation the rights
|
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
* copies of the Software, and to permit persons to whom the Software is
|
|
* furnished to do so, subject to the following conditions:
|
|
*
|
|
* The above copyright notice and this permission notice shall be included in all
|
|
* copies or substantial portions of the Software.
|
|
*
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
* SOFTWARE.
|
|
*/
|
|
var Wt="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,$t=function(){for(var t=["Edge","Trident","Firefox"],e=0;e<t.length;e+=1)if(Wt&&navigator.userAgent.indexOf(t[e])>=0)return 1;return 0}();var Ut=Wt&&window.Promise?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then((function(){e=!1,t()})))}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout((function(){e=!1,t()}),$t))}};function Qt(t){return t&&"[object Function]"==={}.toString.call(t)}function Vt(t,e){if(1!==t.nodeType)return[];var n=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?n[e]:n}function Yt(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function zt(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=Vt(t),n=e.overflow,i=e.overflowX,o=e.overflowY;return/(auto|scroll|overlay)/.test(n+o+i)?t:zt(Yt(t))}function Xt(t){return t&&t.referenceNode?t.referenceNode:t}var Kt=Wt&&!(!window.MSInputMethodContext||!document.documentMode),Gt=Wt&&/MSIE 10/.test(navigator.userAgent);function Jt(t){return 11===t?Kt:10===t?Gt:Kt||Gt}function Zt(t){if(!t)return document.documentElement;for(var e=Jt(10)?document.body:null,n=t.offsetParent||null;n===e&&t.nextElementSibling;)n=(t=t.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===Vt(n,"position")?Zt(n):n:t?t.ownerDocument.documentElement:document.documentElement}function te(t){return null!==t.parentNode?te(t.parentNode):t}function ee(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?t:e,o=n?e:t,s=document.createRange();s.setStart(i,0),s.setEnd(o,0);var r,a,l=s.commonAncestorContainer;if(t!==l&&e!==l||i.contains(o))return"BODY"===(a=(r=l).nodeName)||"HTML"!==a&&Zt(r.firstElementChild)!==r?Zt(l):l;var d=te(t);return d.host?ee(d.host,e):ee(t,te(e).host)}function ne(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===e?"scrollTop":"scrollLeft",i=t.nodeName;if("BODY"===i||"HTML"===i){var o=t.ownerDocument.documentElement,s=t.ownerDocument.scrollingElement||o;return s[n]}return t[n]}function ie(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=ne(e,"top"),o=ne(e,"left"),s=n?-1:1;return t.top+=i*s,t.bottom+=i*s,t.left+=o*s,t.right+=o*s,t}function oe(t,e){var n="x"===e?"Left":"Top",i="Left"===n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"])+parseFloat(t["border"+i+"Width"])}function se(t,e,n,i){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],Jt(10)?parseInt(n["offset"+t])+parseInt(i["margin"+("Height"===t?"Top":"Left")])+parseInt(i["margin"+("Height"===t?"Bottom":"Right")]):0)}function re(t){var e=t.body,n=t.documentElement,i=Jt(10)&&getComputedStyle(n);return{height:se("Height",e,n,i),width:se("Width",e,n,i)}}var ae=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},le=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),de=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},ce=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t};function fe(t){return ce({},t,{right:t.left+t.width,bottom:t.top+t.height})}function he(t){var e={};try{if(Jt(10)){e=t.getBoundingClientRect();var n=ne(t,"top"),i=ne(t,"left");e.top+=n,e.left+=i,e.bottom+=n,e.right+=i}else e=t.getBoundingClientRect()}catch(t){}var o={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},s="HTML"===t.nodeName?re(t.ownerDocument):{},r=s.width||t.clientWidth||o.width,a=s.height||t.clientHeight||o.height,l=t.offsetWidth-r,d=t.offsetHeight-a;if(l||d){var c=Vt(t);l-=oe(c,"x"),d-=oe(c,"y"),o.width-=l,o.height-=d}return fe(o)}function ue(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=Jt(10),o="HTML"===e.nodeName,s=he(t),r=he(e),a=zt(t),l=Vt(e),d=parseFloat(l.borderTopWidth),c=parseFloat(l.borderLeftWidth);n&&o&&(r.top=Math.max(r.top,0),r.left=Math.max(r.left,0));var f=fe({top:s.top-r.top-d,left:s.left-r.left-c,width:s.width,height:s.height});if(f.marginTop=0,f.marginLeft=0,!i&&o){var h=parseFloat(l.marginTop),u=parseFloat(l.marginLeft);f.top-=d-h,f.bottom-=d-h,f.left-=c-u,f.right-=c-u,f.marginTop=h,f.marginLeft=u}return(i&&!n?e.contains(a):e===a&&"BODY"!==a.nodeName)&&(f=ie(f,e)),f}function pe(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.ownerDocument.documentElement,i=ue(t,n),o=Math.max(n.clientWidth,window.innerWidth||0),s=Math.max(n.clientHeight,window.innerHeight||0),r=e?0:ne(n),a=e?0:ne(n,"left"),l={top:r-i.top+i.marginTop,left:a-i.left+i.marginLeft,width:o,height:s};return fe(l)}function me(t){var e=t.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===Vt(t,"position"))return!0;var n=Yt(t);return!!n&&me(n)}function ge(t){if(!t||!t.parentElement||Jt())return document.documentElement;for(var e=t.parentElement;e&&"none"===Vt(e,"transform");)e=e.parentElement;return e||document.documentElement}function _e(t,e,n,i){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s={top:0,left:0},r=o?ge(t):ee(t,Xt(e));if("viewport"===i)s=pe(r,o);else{var a=void 0;"scrollParent"===i?"BODY"===(a=zt(Yt(e))).nodeName&&(a=t.ownerDocument.documentElement):a="window"===i?t.ownerDocument.documentElement:i;var l=ue(a,r,o);if("HTML"!==a.nodeName||me(r))s=l;else{var d=re(t.ownerDocument),c=d.height,f=d.width;s.top+=l.top-l.marginTop,s.bottom=c+l.top,s.left+=l.left-l.marginLeft,s.right=f+l.left}}var h="number"==typeof(n=n||0);return s.left+=h?n:n.left||0,s.top+=h?n:n.top||0,s.right-=h?n:n.right||0,s.bottom-=h?n:n.bottom||0,s}function be(t){return t.width*t.height}function ve(t,e,n,i,o){var s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var r=_e(n,i,s,o),a={top:{width:r.width,height:e.top-r.top},right:{width:r.right-e.right,height:r.height},bottom:{width:r.width,height:r.bottom-e.bottom},left:{width:e.left-r.left,height:r.height}},l=Object.keys(a).map((function(t){return ce({key:t},a[t],{area:be(a[t])})})).sort((function(t,e){return e.area-t.area})),d=l.filter((function(t){var e=t.width,i=t.height;return e>=n.clientWidth&&i>=n.clientHeight})),c=d.length>0?d[0].key:l[0].key,f=t.split("-")[1];return c+(f?"-"+f:"")}function ye(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=i?ge(e):ee(e,Xt(n));return ue(n,o,i)}function we(t){var e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),i=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:t.offsetWidth+i,height:t.offsetHeight+n}}function Ee(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,(function(t){return e[t]}))}function Te(t,e,n){n=n.split("-")[0];var i=we(t),o={width:i.width,height:i.height},s=-1!==["right","left"].indexOf(n),r=s?"top":"left",a=s?"left":"top",l=s?"height":"width",d=s?"width":"height";return o[r]=e[r]+e[l]/2-i[l]/2,o[a]=n===a?e[a]-i[d]:e[Ee(a)],o}function Ce(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function Se(t,e,n){return(void 0===n?t:t.slice(0,function(t,e,n){if(Array.prototype.findIndex)return t.findIndex((function(t){return t[e]===n}));var i=Ce(t,(function(t){return t[e]===n}));return t.indexOf(i)}(t,"name",n))).forEach((function(t){t.function;var n=t.function||t.fn;t.enabled&&Qt(n)&&(e.offsets.popper=fe(e.offsets.popper),e.offsets.reference=fe(e.offsets.reference),e=n(e,t))})),e}function De(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=ye(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=ve(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=Te(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=Se(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function Ne(t,e){return t.some((function(t){var n=t.name;return t.enabled&&n===e}))}function xe(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),i=0;i<e.length;i++){var o=e[i],s=o?""+o+n:t;if(void 0!==document.body.style[s])return s}return null}function Oe(){return this.state.isDestroyed=!0,Ne(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[xe("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function Ae(t){var e=t.ownerDocument;return e?e.defaultView:window}function Ie(t,e,n,i){var o="BODY"===t.nodeName,s=o?t.ownerDocument.defaultView:t;s.addEventListener(e,n,{passive:!0}),o||Ie(zt(s.parentNode),e,n,i),i.push(s)}function ke(t,e,n,i){n.updateBound=i,Ae(t).addEventListener("resize",n.updateBound,{passive:!0});var o=zt(t);return Ie(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function Le(){this.state.eventsEnabled||(this.state=ke(this.reference,this.options,this.state,this.scheduleUpdate))}function Fe(){var t,e;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(t=this.reference,e=this.state,Ae(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach((function(t){t.removeEventListener("scroll",e.updateBound)})),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e))}function je(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function Pe(t,e){Object.keys(e).forEach((function(n){var i="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&je(e[n])&&(i="px"),t.style[n]=e[n]+i}))}var Me=Wt&&/Firefox/i.test(navigator.userAgent);function He(t,e,n){var i=Ce(t,(function(t){return t.name===e})),o=!!i&&t.some((function(t){return t.name===n&&t.enabled&&t.order<i.order}));if(!o);return o}var Be=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Re=Be.slice(3);function qe(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Re.indexOf(t),i=Re.slice(n+1).concat(Re.slice(0,n));return e?i.reverse():i}var We="flip",$e="clockwise",Ue="counterclockwise";function Qe(t,e,n,i){var o=[0,0],s=-1!==["right","left"].indexOf(i),r=t.split(/(\+|\-)/).map((function(t){return t.trim()})),a=r.indexOf(Ce(r,(function(t){return-1!==t.search(/,|\s/)})));r[a]&&r[a].indexOf(",");var l=/\s*,\s*|\s+/,d=-1!==a?[r.slice(0,a).concat([r[a].split(l)[0]]),[r[a].split(l)[1]].concat(r.slice(a+1))]:[r];return(d=d.map((function(t,i){var o=(1===i?!s:s)?"height":"width",r=!1;return t.reduce((function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,r=!0,t):r?(t[t.length-1]+=e,r=!1,t):t.concat(e)}),[]).map((function(t){return function(t,e,n,i){var o=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),s=+o[1],r=o[2];if(!s)return t;if(0===r.indexOf("%")){var a=void 0;switch(r){case"%p":a=n;break;case"%":case"%r":default:a=i}return fe(a)[e]/100*s}if("vh"===r||"vw"===r)return("vh"===r?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*s;return s}(t,o,e,n)}))}))).forEach((function(t,e){t.forEach((function(n,i){je(n)&&(o[e]+=n*("-"===t[i-1]?-1:1))}))})),o}var Ve={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,n=e.split("-")[0],i=e.split("-")[1];if(i){var o=t.offsets,s=o.reference,r=o.popper,a=-1!==["bottom","top"].indexOf(n),l=a?"left":"top",d=a?"width":"height",c={start:de({},l,s[l]),end:de({},l,s[l]+s[d]-r[d])};t.offsets.popper=ce({},r,c[i])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var n=e.offset,i=t.placement,o=t.offsets,s=o.popper,r=o.reference,a=i.split("-")[0],l=void 0;return l=je(+n)?[+n,0]:Qe(n,s,r,a),"left"===a?(s.top+=l[0],s.left-=l[1]):"right"===a?(s.top+=l[0],s.left+=l[1]):"top"===a?(s.left+=l[0],s.top-=l[1]):"bottom"===a&&(s.left+=l[0],s.top+=l[1]),t.popper=s,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var n=e.boundariesElement||Zt(t.instance.popper);t.instance.reference===n&&(n=Zt(n));var i=xe("transform"),o=t.instance.popper.style,s=o.top,r=o.left,a=o[i];o.top="",o.left="",o[i]="";var l=_e(t.instance.popper,t.instance.reference,e.padding,n,t.positionFixed);o.top=s,o.left=r,o[i]=a,e.boundaries=l;var d=e.priority,c=t.offsets.popper,f={primary:function(t){var n=c[t];return c[t]<l[t]&&!e.escapeWithReference&&(n=Math.max(c[t],l[t])),de({},t,n)},secondary:function(t){var n="right"===t?"left":"top",i=c[n];return c[t]>l[t]&&!e.escapeWithReference&&(i=Math.min(c[n],l[t]-("right"===t?c.width:c.height))),de({},n,i)}};return d.forEach((function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";c=ce({},c,f[e](t))})),t.offsets.popper=c,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,n=e.popper,i=e.reference,o=t.placement.split("-")[0],s=Math.floor,r=-1!==["top","bottom"].indexOf(o),a=r?"right":"bottom",l=r?"left":"top",d=r?"width":"height";return n[a]<s(i[l])&&(t.offsets.popper[l]=s(i[l])-n[d]),n[l]>s(i[a])&&(t.offsets.popper[l]=s(i[a])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var n;if(!He(t.instance.modifiers,"arrow","keepTogether"))return t;var i=e.element;if("string"==typeof i){if(!(i=t.instance.popper.querySelector(i)))return t}else if(!t.instance.popper.contains(i))return t;var o=t.placement.split("-")[0],s=t.offsets,r=s.popper,a=s.reference,l=-1!==["left","right"].indexOf(o),d=l?"height":"width",c=l?"Top":"Left",f=c.toLowerCase(),h=l?"left":"top",u=l?"bottom":"right",p=we(i)[d];a[u]-p<r[f]&&(t.offsets.popper[f]-=r[f]-(a[u]-p)),a[f]+p>r[u]&&(t.offsets.popper[f]+=a[f]+p-r[u]),t.offsets.popper=fe(t.offsets.popper);var m=a[f]+a[d]/2-p/2,g=Vt(t.instance.popper),_=parseFloat(g["margin"+c]),b=parseFloat(g["border"+c+"Width"]),v=m-t.offsets.popper[f]-_-b;return v=Math.max(Math.min(r[d]-p,v),0),t.arrowElement=i,t.offsets.arrow=(de(n={},f,Math.round(v)),de(n,h,""),n),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if(Ne(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=_e(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),i=t.placement.split("-")[0],o=Ee(i),s=t.placement.split("-")[1]||"",r=[];switch(e.behavior){case We:r=[i,o];break;case $e:r=qe(i);break;case Ue:r=qe(i,!0);break;default:r=e.behavior}return r.forEach((function(a,l){if(i!==a||r.length===l+1)return t;i=t.placement.split("-")[0],o=Ee(i);var d=t.offsets.popper,c=t.offsets.reference,f=Math.floor,h="left"===i&&f(d.right)>f(c.left)||"right"===i&&f(d.left)<f(c.right)||"top"===i&&f(d.bottom)>f(c.top)||"bottom"===i&&f(d.top)<f(c.bottom),u=f(d.left)<f(n.left),p=f(d.right)>f(n.right),m=f(d.top)<f(n.top),g=f(d.bottom)>f(n.bottom),_="left"===i&&u||"right"===i&&p||"top"===i&&m||"bottom"===i&&g,b=-1!==["top","bottom"].indexOf(i),v=!!e.flipVariations&&(b&&"start"===s&&u||b&&"end"===s&&p||!b&&"start"===s&&m||!b&&"end"===s&&g),y=!!e.flipVariationsByContent&&(b&&"start"===s&&p||b&&"end"===s&&u||!b&&"start"===s&&g||!b&&"end"===s&&m),w=v||y;(h||_||w)&&(t.flipped=!0,(h||_)&&(i=r[l+1]),w&&(s=function(t){return"end"===t?"start":"start"===t?"end":t}(s)),t.placement=i+(s?"-"+s:""),t.offsets.popper=ce({},t.offsets.popper,Te(t.instance.popper,t.offsets.reference,t.placement)),t=Se(t.instance.modifiers,t,"flip"))})),t},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,n=e.split("-")[0],i=t.offsets,o=i.popper,s=i.reference,r=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return o[r?"left":"top"]=s[n]-(a?o[r?"width":"height"]:0),t.placement=Ee(e),t.offsets.popper=fe(o),t}},hide:{order:800,enabled:!0,fn:function(t){if(!He(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=Ce(t.instance.modifiers,(function(t){return"preventOverflow"===t.name})).boundaries;if(e.bottom<n.top||e.left>n.right||e.top>n.bottom||e.right<n.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}},computeStyle:{order:850,enabled:!0,fn:function(t,e){var n=e.x,i=e.y,o=t.offsets.popper,s=Ce(t.instance.modifiers,(function(t){return"applyStyle"===t.name})).gpuAcceleration,r=void 0!==s?s:e.gpuAcceleration,a=Zt(t.instance.popper),l=he(a),d={position:o.position},c=function(t,e){var n=t.offsets,i=n.popper,o=n.reference,s=Math.round,r=Math.floor,a=function(t){return t},l=s(o.width),d=s(i.width),c=-1!==["left","right"].indexOf(t.placement),f=-1!==t.placement.indexOf("-"),h=e?c||f||l%2==d%2?s:r:a,u=e?s:a;return{left:h(l%2==1&&d%2==1&&!f&&e?i.left-1:i.left),top:u(i.top),bottom:u(i.bottom),right:h(i.right)}}(t,window.devicePixelRatio<2||!Me),f="bottom"===n?"top":"bottom",h="right"===i?"left":"right",u=xe("transform"),p=void 0,m=void 0;if(m="bottom"===f?"HTML"===a.nodeName?-a.clientHeight+c.bottom:-l.height+c.bottom:c.top,p="right"===h?"HTML"===a.nodeName?-a.clientWidth+c.right:-l.width+c.right:c.left,r&&u)d[u]="translate3d("+p+"px, "+m+"px, 0)",d[f]=0,d[h]=0,d.willChange="transform";else{var g="bottom"===f?-1:1,_="right"===h?-1:1;d[f]=m*g,d[h]=p*_,d.willChange=f+", "+h}var b={"x-placement":t.placement};return t.attributes=ce({},b,t.attributes),t.styles=ce({},d,t.styles),t.arrowStyles=ce({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(t){var e,n;return Pe(t.instance.popper,t.styles),e=t.instance.popper,n=t.attributes,Object.keys(n).forEach((function(t){!1!==n[t]?e.setAttribute(t,n[t]):e.removeAttribute(t)})),t.arrowElement&&Object.keys(t.arrowStyles).length&&Pe(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,n,i,o){var s=ye(o,e,t,n.positionFixed),r=ve(n.placement,s,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",r),Pe(e,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},Ye=function(){function t(e,n){var i=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};ae(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=Ut(this.update.bind(this)),this.options=ce({},t.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(ce({},t.Defaults.modifiers,o.modifiers)).forEach((function(e){i.options.modifiers[e]=ce({},t.Defaults.modifiers[e]||{},o.modifiers?o.modifiers[e]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(t){return ce({name:t},i.options.modifiers[t])})).sort((function(t,e){return t.order-e.order})),this.modifiers.forEach((function(t){t.enabled&&Qt(t.onLoad)&&t.onLoad(i.reference,i.popper,i.options,t,i.state)})),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return le(t,[{key:"update",value:function(){return De.call(this)}},{key:"destroy",value:function(){return Oe.call(this)}},{key:"enableEventListeners",value:function(){return Le.call(this)}},{key:"disableEventListeners",value:function(){return Fe.call(this)}}]),t}();Ye.Utils=("undefined"!=typeof window?window:global).PopperUtils,Ye.placements=Be,Ye.Defaults=Ve;var ze=Ye;const Xe="dropdown",Ke="bs.dropdown",Ge=".bs.dropdown",Je=i.default.fn[Xe],Ze=new RegExp("38|40|27"),tn="hide.bs.dropdown",en="hidden.bs.dropdown",nn="click.bs.dropdown.data-api",on="keydown.bs.dropdown.data-api",sn="disabled",rn="show",an="dropdown-menu-right",ln='[data-toggle="dropdown"]',dn=".dropdown-menu",cn={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},fn={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"};class hn{constructor(t,e){this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}static get VERSION(){return"4.6.0"}static get Default(){return cn}static get DefaultType(){return fn}toggle(){if(this._element.disabled||i.default(this._element).hasClass(sn))return;const t=i.default(this._menu).hasClass(rn);hn._clearMenus(),t||this.show(!0)}show(t=!1){if(this._element.disabled||i.default(this._element).hasClass(sn)||i.default(this._menu).hasClass(rn))return;const e={relatedTarget:this._element},n=i.default.Event("show.bs.dropdown",e),o=hn._getParentFromElement(this._element);if(i.default(o).trigger(n),!n.isDefaultPrevented()){if(!this._inNavbar&&t){if(void 0===ze)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;"parent"===this._config.reference?t=o:rt.isElement(this._config.reference)&&(t=this._config.reference,void 0!==this._config.reference.jquery&&(t=this._config.reference[0])),"scrollParent"!==this._config.boundary&&i.default(o).addClass("position-static"),this._popper=new ze(t,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===i.default(o).closest(".navbar-nav").length&&i.default(document.body).children().on("mouseover",null,i.default.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),i.default(this._menu).toggleClass(rn),i.default(o).toggleClass(rn).trigger(i.default.Event("shown.bs.dropdown",e))}}hide(){if(this._element.disabled||i.default(this._element).hasClass(sn)||!i.default(this._menu).hasClass(rn))return;const t={relatedTarget:this._element},e=i.default.Event(tn,t),n=hn._getParentFromElement(this._element);i.default(n).trigger(e),e.isDefaultPrevented()||(this._popper&&this._popper.destroy(),i.default(this._menu).toggleClass(rn),i.default(n).toggleClass(rn).trigger(i.default.Event(en,t)))}dispose(){i.default.removeData(this._element,Ke),i.default(this._element).off(Ge),this._element=null,this._menu=null,null!==this._popper&&(this._popper.destroy(),this._popper=null)}update(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()}_addEventListeners(){i.default(this._element).on("click.bs.dropdown",(t=>{t.preventDefault(),t.stopPropagation(),this.toggle()}))}_getConfig(t){return t={...this.constructor.Default,...i.default(this._element).data(),...t},rt.typeCheckConfig(Xe,t,this.constructor.DefaultType),t}_getMenuElement(){if(!this._menu){const t=hn._getParentFromElement(this._element);t&&(this._menu=t.querySelector(dn))}return this._menu}_getPlacement(){const t=i.default(this._element.parentNode);let e="bottom-start";return t.hasClass("dropup")?e=i.default(this._menu).hasClass(an)?"top-end":"top-start":t.hasClass("dropright")?e="right-start":t.hasClass("dropleft")?e="left-start":i.default(this._menu).hasClass(an)&&(e="bottom-end"),e}_detectNavbar(){return i.default(this._element).closest(".navbar").length>0}_getOffset(){const t={};return"function"==typeof this._config.offset?t.fn=t=>(t.offsets={...t.offsets,...this._config.offset(t.offsets,this._element)||{}},t):t.offset=this._config.offset,t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(t.modifiers.applyStyle={enabled:!1}),{...t,...this._config.popperConfig}}static _jQueryInterface(t){return this.each((function(){let e=i.default(this).data(Ke);if(e||(e=new hn(this,"object"==typeof t?t:null),i.default(this).data(Ke,e)),"string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}static _clearMenus(t){if(t&&(3===t.which||"keyup"===t.type&&9!==t.which))return;const e=[].slice.call(document.querySelectorAll(ln));for(let n=0,o=e.length;n<o;n++){const o=hn._getParentFromElement(e[n]),s=i.default(e[n]).data(Ke),r={relatedTarget:e[n]};if(t&&"click"===t.type&&(r.clickEvent=t),!s)continue;const a=s._menu;if(!i.default(o).hasClass(rn))continue;if(t&&("click"===t.type&&/input|textarea/i.test(t.target.tagName)||"keyup"===t.type&&9===t.which)&&i.default.contains(o,t.target))continue;const l=i.default.Event(tn,r);i.default(o).trigger(l),l.isDefaultPrevented()||("ontouchstart"in document.documentElement&&i.default(document.body).children().off("mouseover",null,i.default.noop),e[n].setAttribute("aria-expanded","false"),s._popper&&s._popper.destroy(),i.default(a).removeClass(rn),i.default(o).removeClass(rn).trigger(i.default.Event(en,r)))}}static _getParentFromElement(t){let e;const n=rt.getSelectorFromElement(t);return n&&(e=document.querySelector(n)),e||t.parentNode}static _dataApiKeydownHandler(t){if(/input|textarea/i.test(t.target.tagName)?32===t.which||27!==t.which&&(40!==t.which&&38!==t.which||i.default(t.target).closest(dn).length):!Ze.test(t.which))return;if(this.disabled||i.default(this).hasClass(sn))return;const e=hn._getParentFromElement(this),n=i.default(e).hasClass(rn);if(!n&&27===t.which)return;if(t.preventDefault(),t.stopPropagation(),!n||27===t.which||32===t.which)return 27===t.which&&i.default(e.querySelector(ln)).trigger("focus"),void i.default(this).trigger("click");const o=[].slice.call(e.querySelectorAll(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)")).filter((t=>i.default(t).is(":visible")));if(0===o.length)return;let s=o.indexOf(t.target);38===t.which&&s>0&&s--,40===t.which&&s<o.length-1&&s++,s<0&&(s=0),o[s].focus()}}i.default(document).on(on,ln,hn._dataApiKeydownHandler).on(on,dn,hn._dataApiKeydownHandler).on(`${nn} keyup.bs.dropdown.data-api`,hn._clearMenus).on(nn,ln,(function(t){t.preventDefault(),t.stopPropagation(),hn._jQueryInterface.call(i.default(this),"toggle")})).on(nn,".dropdown form",(t=>{t.stopPropagation()})),i.default.fn[Xe]=hn._jQueryInterface,i.default.fn[Xe].Constructor=hn,i.default.fn[Xe].noConflict=()=>(i.default.fn[Xe]=Je,hn._jQueryInterface);const un="modal",pn="bs.modal",mn=".bs.modal",gn=i.default.fn.modal,_n={backdrop:!0,keyboard:!0,focus:!0,show:!0},bn={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},vn="hidden.bs.modal",yn="show.bs.modal",wn="focusin.bs.modal",En="resize.bs.modal",Tn="click.dismiss.bs.modal",Cn="keydown.dismiss.bs.modal",Sn="mousedown.dismiss.bs.modal",Dn="modal-open",Nn="fade",xn="show",On="modal-static",An=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",In=".sticky-top";class kn{constructor(t,e){this._config=this._getConfig(e),this._element=t,this._dialog=t.querySelector(".modal-dialog"),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}static get VERSION(){return"4.6.0"}static get Default(){return _n}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||this._isTransitioning)return;i.default(this._element).hasClass(Nn)&&(this._isTransitioning=!0);const e=i.default.Event(yn,{relatedTarget:t});i.default(this._element).trigger(e),this._isShown||e.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),i.default(this._element).on(Tn,'[data-dismiss="modal"]',(t=>this.hide(t))),i.default(this._dialog).on(Sn,(()=>{i.default(this._element).one("mouseup.dismiss.bs.modal",(t=>{i.default(t.target).is(this._element)&&(this._ignoreBackdropClick=!0)}))})),this._showBackdrop((()=>this._showElement(t))))}hide(t){if(t&&t.preventDefault(),!this._isShown||this._isTransitioning)return;const e=i.default.Event("hide.bs.modal");if(i.default(this._element).trigger(e),!this._isShown||e.isDefaultPrevented())return;this._isShown=!1;const n=i.default(this._element).hasClass(Nn);if(n&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),i.default(document).off(wn),i.default(this._element).removeClass(xn),i.default(this._element).off(Tn),i.default(this._dialog).off(Sn),n){const t=rt.getTransitionDurationFromElement(this._element);i.default(this._element).one(rt.TRANSITION_END,(t=>this._hideModal(t))).emulateTransitionEnd(t)}else this._hideModal()}dispose(){[window,this._element,this._dialog].forEach((t=>i.default(t).off(mn))),i.default(document).off(wn),i.default.removeData(this._element,pn),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._isTransitioning=null,this._scrollbarWidth=null}handleUpdate(){this._adjustDialog()}_getConfig(t){return t={..._n,...t},rt.typeCheckConfig(un,t,bn),t}_triggerBackdropTransition(){const t=i.default.Event("hidePrevented.bs.modal");if(i.default(this._element).trigger(t),t.isDefaultPrevented())return;const e=this._element.scrollHeight>document.documentElement.clientHeight;e||(this._element.style.overflowY="hidden"),this._element.classList.add(On);const n=rt.getTransitionDurationFromElement(this._dialog);i.default(this._element).off(rt.TRANSITION_END),i.default(this._element).one(rt.TRANSITION_END,(()=>{this._element.classList.remove(On),e||i.default(this._element).one(rt.TRANSITION_END,(()=>{this._element.style.overflowY=""})).emulateTransitionEnd(this._element,n)})).emulateTransitionEnd(n),this._element.focus()}_showElement(t){const e=i.default(this._element).hasClass(Nn),n=this._dialog?this._dialog.querySelector(".modal-body"):null;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),i.default(this._dialog).hasClass("modal-dialog-scrollable")&&n?n.scrollTop=0:this._element.scrollTop=0,e&&rt.reflow(this._element),i.default(this._element).addClass(xn),this._config.focus&&this._enforceFocus();const o=i.default.Event("shown.bs.modal",{relatedTarget:t}),s=()=>{this._config.focus&&this._element.focus(),this._isTransitioning=!1,i.default(this._element).trigger(o)};if(e){const t=rt.getTransitionDurationFromElement(this._dialog);i.default(this._dialog).one(rt.TRANSITION_END,s).emulateTransitionEnd(t)}else s()}_enforceFocus(){i.default(document).off(wn).on(wn,(t=>{document!==t.target&&this._element!==t.target&&0===i.default(this._element).has(t.target).length&&this._element.focus()}))}_setEscapeEvent(){this._isShown?i.default(this._element).on(Cn,(t=>{this._config.keyboard&&27===t.which?(t.preventDefault(),this.hide()):this._config.keyboard||27!==t.which||this._triggerBackdropTransition()})):this._isShown||i.default(this._element).off(Cn)}_setResizeEvent(){this._isShown?i.default(window).on(En,(t=>this.handleUpdate(t))):i.default(window).off(En)}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._showBackdrop((()=>{i.default(document.body).removeClass(Dn),this._resetAdjustments(),this._resetScrollbar(),i.default(this._element).trigger(vn)}))}_removeBackdrop(){this._backdrop&&(i.default(this._backdrop).remove(),this._backdrop=null)}_showBackdrop(t){const e=i.default(this._element).hasClass(Nn)?Nn:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className="modal-backdrop",e&&this._backdrop.classList.add(e),i.default(this._backdrop).appendTo(document.body),i.default(this._element).on(Tn,(t=>{this._ignoreBackdropClick?this._ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"===this._config.backdrop?this._triggerBackdropTransition():this.hide())})),e&&rt.reflow(this._backdrop),i.default(this._backdrop).addClass(xn),!t)return;if(!e)return void t();const n=rt.getTransitionDurationFromElement(this._backdrop);i.default(this._backdrop).one(rt.TRANSITION_END,t).emulateTransitionEnd(n)}else if(!this._isShown&&this._backdrop){i.default(this._backdrop).removeClass(xn);const e=()=>{this._removeBackdrop(),t&&t()};if(i.default(this._element).hasClass(Nn)){const t=rt.getTransitionDurationFromElement(this._backdrop);i.default(this._backdrop).one(rt.TRANSITION_END,e).emulateTransitionEnd(t)}else e()}else t&&t()}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=`${this._scrollbarWidth}px`),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=`${this._scrollbarWidth}px`)}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}_checkScrollbar(){const t=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(t.left+t.right)<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()}_setScrollbar(){if(this._isBodyOverflowing){const t=[].slice.call(document.querySelectorAll(An)),e=[].slice.call(document.querySelectorAll(In));i.default(t).each(((t,e)=>{const n=e.style.paddingRight,o=i.default(e).css("padding-right");i.default(e).data("padding-right",n).css("padding-right",`${parseFloat(o)+this._scrollbarWidth}px`)})),i.default(e).each(((t,e)=>{const n=e.style.marginRight,o=i.default(e).css("margin-right");i.default(e).data("margin-right",n).css("margin-right",parseFloat(o)-this._scrollbarWidth+"px")}));const n=document.body.style.paddingRight,o=i.default(document.body).css("padding-right");i.default(document.body).data("padding-right",n).css("padding-right",`${parseFloat(o)+this._scrollbarWidth}px`)}i.default(document.body).addClass(Dn)}_resetScrollbar(){const t=[].slice.call(document.querySelectorAll(An));i.default(t).each(((t,e)=>{const n=i.default(e).data("padding-right");i.default(e).removeData("padding-right"),e.style.paddingRight=n||""}));const e=[].slice.call(document.querySelectorAll(".sticky-top"));i.default(e).each(((t,e)=>{const n=i.default(e).data("margin-right");void 0!==n&&i.default(e).css("margin-right",n).removeData("margin-right")}));const n=i.default(document.body).data("padding-right");i.default(document.body).removeData("padding-right"),document.body.style.paddingRight=n||""}_getScrollbarWidth(){const t=document.createElement("div");t.className="modal-scrollbar-measure",document.body.appendChild(t);const e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e}static _jQueryInterface(t,e){return this.each((function(){let n=i.default(this).data(pn);const o={..._n,...i.default(this).data(),..."object"==typeof t&&t?t:{}};if(n||(n=new kn(this,o),i.default(this).data(pn,n)),"string"==typeof t){if(void 0===n[t])throw new TypeError(`No method named "${t}"`);n[t](e)}else o.show&&n.show(e)}))}}i.default(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',(function(t){let e;const n=rt.getSelectorFromElement(this);n&&(e=document.querySelector(n));const o=i.default(e).data(pn)?"toggle":{...i.default(e).data(),...i.default(this).data()};"A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault();const s=i.default(e).one(yn,(t=>{t.isDefaultPrevented()||s.one(vn,(()=>{i.default(this).is(":visible")&&this.focus()}))}));kn._jQueryInterface.call(i.default(e),o,this)})),i.default.fn.modal=kn._jQueryInterface,i.default.fn.modal.Constructor=kn,i.default.fn.modal.noConflict=()=>(i.default.fn.modal=gn,kn._jQueryInterface);const Ln=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],Fn={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},jn=/^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/gi,Pn=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;function Mn(t,e){const n=t.nodeName.toLowerCase();if(-1!==e.indexOf(n))return-1===Ln.indexOf(n)||Boolean(t.nodeValue.match(jn)||t.nodeValue.match(Pn));const i=e.filter((t=>t instanceof RegExp));for(let t=0,e=i.length;t<e;t++)if(n.match(i[t]))return!0;return!1}function Hn(t,e,n){if(0===t.length)return t;if(n&&"function"==typeof n)return n(t);const i=(new window.DOMParser).parseFromString(t,"text/html"),o=Object.keys(e),s=[].slice.call(i.body.querySelectorAll("*"));for(let t=0,n=s.length;t<n;t++){const n=s[t],i=n.nodeName.toLowerCase();if(-1===o.indexOf(n.nodeName.toLowerCase())){n.parentNode.removeChild(n);continue}const r=[].slice.call(n.attributes),a=[].concat(e["*"]||[],e[i]||[]);r.forEach((t=>{Mn(t,a)||n.removeAttribute(t.nodeName)}))}return i.body.innerHTML}const Bn="tooltip",Rn="bs.tooltip",qn=".bs.tooltip",Wn=i.default.fn.tooltip,$n=new RegExp("(^|\\s)bs-tooltip\\S+","g"),Un=["sanitize","whiteList","sanitizeFn"],Qn={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object",popperConfig:"(null|object)"},Vn={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},Yn={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",customClass:"",sanitize:!0,sanitizeFn:null,whiteList:Fn,popperConfig:null},zn="show",Xn="out",Kn={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"},Gn="fade",Jn="show",Zn="hover",ti="focus";class ei{constructor(t,e){if(void 0===ze)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}static get VERSION(){return"4.6.0"}static get Default(){return Yn}static get NAME(){return Bn}static get DATA_KEY(){return Rn}static get Event(){return Kn}static get EVENT_KEY(){return qn}static get DefaultType(){return Qn}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(t){if(this._isEnabled)if(t){const e=this.constructor.DATA_KEY;let n=i.default(t.currentTarget).data(e);n||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),i.default(t.currentTarget).data(e,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(i.default(this.getTipElement()).hasClass(Jn))return void this._leave(null,this);this._enter(null,this)}}dispose(){clearTimeout(this._timeout),i.default.removeData(this.element,this.constructor.DATA_KEY),i.default(this.element).off(this.constructor.EVENT_KEY),i.default(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&i.default(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null}show(){if("none"===i.default(this.element).css("display"))throw new Error("Please use show on visible elements");const t=i.default.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){i.default(this.element).trigger(t);const e=rt.findShadowRoot(this.element),n=i.default.contains(null!==e?e:this.element.ownerDocument.documentElement,this.element);if(t.isDefaultPrevented()||!n)return;const o=this.getTipElement(),s=rt.getUID(this.constructor.NAME);o.setAttribute("id",s),this.element.setAttribute("aria-describedby",s),this.setContent(),this.config.animation&&i.default(o).addClass(Gn);const r="function"==typeof this.config.placement?this.config.placement.call(this,o,this.element):this.config.placement,a=this._getAttachment(r);this.addAttachmentClass(a);const l=this._getContainer();i.default(o).data(this.constructor.DATA_KEY,this),i.default.contains(this.element.ownerDocument.documentElement,this.tip)||i.default(o).appendTo(l),i.default(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new ze(this.element,o,this._getPopperConfig(a)),i.default(o).addClass(Jn),i.default(o).addClass(this.config.customClass),"ontouchstart"in document.documentElement&&i.default(document.body).children().on("mouseover",null,i.default.noop);const d=()=>{this.config.animation&&this._fixTransition();const t=this._hoverState;this._hoverState=null,i.default(this.element).trigger(this.constructor.Event.SHOWN),t===Xn&&this._leave(null,this)};if(i.default(this.tip).hasClass(Gn)){const t=rt.getTransitionDurationFromElement(this.tip);i.default(this.tip).one(rt.TRANSITION_END,d).emulateTransitionEnd(t)}else d()}}hide(t){const e=this.getTipElement(),n=i.default.Event(this.constructor.Event.HIDE),o=()=>{this._hoverState!==zn&&e.parentNode&&e.parentNode.removeChild(e),this._cleanTipClass(),this.element.removeAttribute("aria-describedby"),i.default(this.element).trigger(this.constructor.Event.HIDDEN),null!==this._popper&&this._popper.destroy(),t&&t()};if(i.default(this.element).trigger(n),!n.isDefaultPrevented()){if(i.default(e).removeClass(Jn),"ontouchstart"in document.documentElement&&i.default(document.body).children().off("mouseover",null,i.default.noop),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1,i.default(this.tip).hasClass(Gn)){const t=rt.getTransitionDurationFromElement(e);i.default(e).one(rt.TRANSITION_END,o).emulateTransitionEnd(t)}else o();this._hoverState=""}}update(){null!==this._popper&&this._popper.scheduleUpdate()}isWithContent(){return Boolean(this.getTitle())}addAttachmentClass(t){i.default(this.getTipElement()).addClass(`bs-tooltip-${t}`)}getTipElement(){return this.tip=this.tip||i.default(this.config.template)[0],this.tip}setContent(){const t=this.getTipElement();this.setElementContent(i.default(t.querySelectorAll(".tooltip-inner")),this.getTitle()),i.default(t).removeClass("fade show")}setElementContent(t,e){"object"!=typeof e||!e.nodeType&&!e.jquery?this.config.html?(this.config.sanitize&&(e=Hn(e,this.config.whiteList,this.config.sanitizeFn)),t.html(e)):t.text(e):this.config.html?i.default(e).parent().is(t)||t.empty().append(e):t.text(i.default(e).text())}getTitle(){let t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t}_getPopperConfig(t){return{...{placement:t,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:".arrow"},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:t=>{t.originalPlacement!==t.placement&&this._handlePopperPlacementChange(t)},onUpdate:t=>this._handlePopperPlacementChange(t)},...this.config.popperConfig}}_getOffset(){const t={};return"function"==typeof this.config.offset?t.fn=t=>(t.offsets={...t.offsets,...this.config.offset(t.offsets,this.element)||{}},t):t.offset=this.config.offset,t}_getContainer(){return!1===this.config.container?document.body:rt.isElement(this.config.container)?i.default(this.config.container):i.default(document).find(this.config.container)}_getAttachment(t){return Vn[t.toUpperCase()]}_setListeners(){this.config.trigger.split(" ").forEach((t=>{if("click"===t)i.default(this.element).on(this.constructor.Event.CLICK,this.config.selector,(t=>this.toggle(t)));else if("manual"!==t){const e=t===Zn?this.constructor.Event.MOUSEENTER:this.constructor.Event.FOCUSIN,n=t===Zn?this.constructor.Event.MOUSELEAVE:this.constructor.Event.FOCUSOUT;i.default(this.element).on(e,this.config.selector,(t=>this._enter(t))).on(n,this.config.selector,(t=>this._leave(t)))}})),this._hideModalHandler=()=>{this.element&&this.hide()},i.default(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config={...this.config,trigger:"manual",selector:""}:this._fixTitle()}_fixTitle(){const t=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))}_enter(t,e){const n=this.constructor.DATA_KEY;(e=e||i.default(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),i.default(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusin"===t.type?ti:Zn]=!0),i.default(e.getTipElement()).hasClass(Jn)||e._hoverState===zn?e._hoverState=zn:(clearTimeout(e._timeout),e._hoverState=zn,e.config.delay&&e.config.delay.show?e._timeout=setTimeout((()=>{e._hoverState===zn&&e.show()}),e.config.delay.show):e.show())}_leave(t,e){const n=this.constructor.DATA_KEY;(e=e||i.default(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),i.default(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusout"===t.type?ti:Zn]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState=Xn,e.config.delay&&e.config.delay.hide?e._timeout=setTimeout((()=>{e._hoverState===Xn&&e.hide()}),e.config.delay.hide):e.hide())}_isWithActiveTrigger(){for(const t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1}_getConfig(t){const e=i.default(this.element).data();return Object.keys(e).forEach((t=>{-1!==Un.indexOf(t)&&delete e[t]})),"number"==typeof(t={...this.constructor.Default,...e,..."object"==typeof t&&t?t:{}}).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),rt.typeCheckConfig(Bn,t,this.constructor.DefaultType),t.sanitize&&(t.template=Hn(t.template,t.whiteList,t.sanitizeFn)),t}_getDelegateConfig(){const t={};if(this.config)for(const e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t}_cleanTipClass(){const t=i.default(this.getTipElement()),e=t.attr("class").match($n);null!==e&&e.length&&t.removeClass(e.join(""))}_handlePopperPlacementChange(t){this.tip=t.instance.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))}_fixTransition(){const t=this.getTipElement(),e=this.config.animation;null===t.getAttribute("x-placement")&&(i.default(t).removeClass(Gn),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)}static _jQueryInterface(t){return this.each((function(){const e=i.default(this);let n=e.data(Rn);const o="object"==typeof t&&t;if((n||!/dispose|hide/.test(t))&&(n||(n=new ei(this,o),e.data(Rn,n)),"string"==typeof t)){if(void 0===n[t])throw new TypeError(`No method named "${t}"`);n[t]()}}))}}i.default.fn.tooltip=ei._jQueryInterface,i.default.fn.tooltip.Constructor=ei,i.default.fn.tooltip.noConflict=()=>(i.default.fn.tooltip=Wn,ei._jQueryInterface);const ni="popover",ii="bs.popover",oi=".bs.popover",si=i.default.fn.popover,ri=new RegExp("(^|\\s)bs-popover\\S+","g"),ai={...ei.Default,placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'},li={...ei.DefaultType,content:"(string|element|function)"},di={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"};class ci extends ei{static get VERSION(){return"4.6.0"}static get Default(){return ai}static get NAME(){return ni}static get DATA_KEY(){return ii}static get Event(){return di}static get EVENT_KEY(){return oi}static get DefaultType(){return li}isWithContent(){return this.getTitle()||this._getContent()}addAttachmentClass(t){i.default(this.getTipElement()).addClass(`bs-popover-${t}`)}getTipElement(){return this.tip=this.tip||i.default(this.config.template)[0],this.tip}setContent(){const t=i.default(this.getTipElement());this.setElementContent(t.find(".popover-header"),this.getTitle());let e=this._getContent();"function"==typeof e&&(e=e.call(this.element)),this.setElementContent(t.find(".popover-body"),e),t.removeClass("fade show")}_getContent(){return this.element.getAttribute("data-content")||this.config.content}_cleanTipClass(){const t=i.default(this.getTipElement()),e=t.attr("class").match(ri);null!==e&&e.length>0&&t.removeClass(e.join(""))}static _jQueryInterface(t){return this.each((function(){let e=i.default(this).data(ii);const n="object"==typeof t?t:null;if((e||!/dispose|hide/.test(t))&&(e||(e=new ci(this,n),i.default(this).data(ii,e)),"string"==typeof t)){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}i.default.fn.popover=ci._jQueryInterface,i.default.fn.popover.Constructor=ci,i.default.fn.popover.noConflict=()=>(i.default.fn.popover=si,ci._jQueryInterface);const fi="scrollspy",hi="bs.scrollspy",ui=".bs.scrollspy",pi=i.default.fn[fi],mi={offset:10,method:"auto",target:""},gi={offset:"number",method:"string",target:"(string|element)"},_i="active",bi=".nav, .list-group",vi=".nav-link",yi="position";class wi{constructor(t,e){this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(e),this._selector=`${this._config.target} .nav-link,${this._config.target} .list-group-item,${this._config.target} .dropdown-item`,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,i.default(this._scrollElement).on("scroll.bs.scrollspy",(t=>this._process(t))),this.refresh(),this._process()}static get VERSION(){return"4.6.0"}static get Default(){return mi}refresh(){const t=this._scrollElement===this._scrollElement.window?"offset":yi,e="auto"===this._config.method?t:this._config.method,n=e===yi?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight();[].slice.call(document.querySelectorAll(this._selector)).map((t=>{let o;const s=rt.getSelectorFromElement(t);if(s&&(o=document.querySelector(s)),o){const t=o.getBoundingClientRect();if(t.width||t.height)return[i.default(o)[e]().top+n,s]}return null})).filter((t=>t)).sort(((t,e)=>t[0]-e[0])).forEach((t=>{this._offsets.push(t[0]),this._targets.push(t[1])}))}dispose(){i.default.removeData(this._element,hi),i.default(this._scrollElement).off(ui),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null}_getConfig(t){if("string"!=typeof(t={...mi,..."object"==typeof t&&t?t:{}}).target&&rt.isElement(t.target)){let e=i.default(t.target).attr("id");e||(e=rt.getUID(fi),i.default(t.target).attr("id",e)),t.target=`#${e}`}return rt.typeCheckConfig(fi,t,gi),t}_getScrollTop(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop}_getScrollHeight(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}_getOffsetHeight(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height}_process(){const t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=n){const t=this._targets[this._targets.length-1];this._activeTarget!==t&&this._activate(t)}else{if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(let e=this._offsets.length;e--;){this._activeTarget!==this._targets[e]&&t>=this._offsets[e]&&(void 0===this._offsets[e+1]||t<this._offsets[e+1])&&this._activate(this._targets[e])}}}_activate(t){this._activeTarget=t,this._clear();const e=this._selector.split(",").map((e=>`${e}[data-target="${t}"],${e}[href="${t}"]`)),n=i.default([].slice.call(document.querySelectorAll(e.join(","))));n.hasClass("dropdown-item")?(n.closest(".dropdown").find(".dropdown-toggle").addClass(_i),n.addClass(_i)):(n.addClass(_i),n.parents(bi).prev(".nav-link, .list-group-item").addClass(_i),n.parents(bi).prev(".nav-item").children(vi).addClass(_i)),i.default(this._scrollElement).trigger("activate.bs.scrollspy",{relatedTarget:t})}_clear(){[].slice.call(document.querySelectorAll(this._selector)).filter((t=>t.classList.contains(_i))).forEach((t=>t.classList.remove(_i)))}static _jQueryInterface(t){return this.each((function(){let e=i.default(this).data(hi);if(e||(e=new wi(this,"object"==typeof t&&t),i.default(this).data(hi,e)),"string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}i.default(window).on("load.bs.scrollspy.data-api",(()=>{const t=[].slice.call(document.querySelectorAll('[data-spy="scroll"]'));for(let e=t.length;e--;){const n=i.default(t[e]);wi._jQueryInterface.call(n,n.data())}})),i.default.fn[fi]=wi._jQueryInterface,i.default.fn[fi].Constructor=wi,i.default.fn[fi].noConflict=()=>(i.default.fn[fi]=pi,wi._jQueryInterface);const Ei="bs.tab",Ti=i.default.fn.tab,Ci="active",Si="fade",Di="show",Ni=".active",xi="> li > .active";class Oi{constructor(t){this._element=t}static get VERSION(){return"4.6.0"}show(){if(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&i.default(this._element).hasClass(Ci)||i.default(this._element).hasClass("disabled"))return;let t,e;const n=i.default(this._element).closest(".nav, .list-group")[0],o=rt.getSelectorFromElement(this._element);if(n){const t="UL"===n.nodeName||"OL"===n.nodeName?xi:Ni;e=i.default.makeArray(i.default(n).find(t)),e=e[e.length-1]}const s=i.default.Event("hide.bs.tab",{relatedTarget:this._element}),r=i.default.Event("show.bs.tab",{relatedTarget:e});if(e&&i.default(e).trigger(s),i.default(this._element).trigger(r),r.isDefaultPrevented()||s.isDefaultPrevented())return;o&&(t=document.querySelector(o)),this._activate(this._element,n);const a=()=>{const t=i.default.Event("hidden.bs.tab",{relatedTarget:this._element}),n=i.default.Event("shown.bs.tab",{relatedTarget:e});i.default(e).trigger(t),i.default(this._element).trigger(n)};t?this._activate(t,t.parentNode,a):a()}dispose(){i.default.removeData(this._element,Ei),this._element=null}_activate(t,e,n){const o=(!e||"UL"!==e.nodeName&&"OL"!==e.nodeName?i.default(e).children(Ni):i.default(e).find(xi))[0],s=n&&o&&i.default(o).hasClass(Si),r=()=>this._transitionComplete(t,o,n);if(o&&s){const t=rt.getTransitionDurationFromElement(o);i.default(o).removeClass(Di).one(rt.TRANSITION_END,r).emulateTransitionEnd(t)}else r()}_transitionComplete(t,e,n){if(e){i.default(e).removeClass(Ci);const t=i.default(e.parentNode).find("> .dropdown-menu .active")[0];t&&i.default(t).removeClass(Ci),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)}if(i.default(t).addClass(Ci),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),rt.reflow(t),t.classList.contains(Si)&&t.classList.add(Di),t.parentNode&&i.default(t.parentNode).hasClass("dropdown-menu")){const e=i.default(t).closest(".dropdown")[0];if(e){const t=[].slice.call(e.querySelectorAll(".dropdown-toggle"));i.default(t).addClass(Ci)}t.setAttribute("aria-expanded",!0)}n&&n()}static _jQueryInterface(t){return this.each((function(){const e=i.default(this);let n=e.data(Ei);if(n||(n=new Oi(this),e.data(Ei,n)),"string"==typeof t){if(void 0===n[t])throw new TypeError(`No method named "${t}"`);n[t]()}}))}}i.default(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',(function(t){t.preventDefault(),Oi._jQueryInterface.call(i.default(this),"show")})),i.default.fn.tab=Oi._jQueryInterface,i.default.fn.tab.Constructor=Oi,i.default.fn.tab.noConflict=()=>(i.default.fn.tab=Ti,Oi._jQueryInterface);const Ai="toast",Ii="bs.toast",ki=i.default.fn.toast,Li="click.dismiss.bs.toast",Fi="hide",ji="show",Pi="showing",Mi={animation:"boolean",autohide:"boolean",delay:"number"},Hi={animation:!0,autohide:!0,delay:500};class Bi{constructor(t,e){this._element=t,this._config=this._getConfig(e),this._timeout=null,this._setListeners()}static get VERSION(){return"4.6.0"}static get DefaultType(){return Mi}static get Default(){return Hi}show(){const t=i.default.Event("show.bs.toast");if(i.default(this._element).trigger(t),t.isDefaultPrevented())return;this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");const e=()=>{this._element.classList.remove(Pi),this._element.classList.add(ji),i.default(this._element).trigger("shown.bs.toast"),this._config.autohide&&(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay))};if(this._element.classList.remove(Fi),rt.reflow(this._element),this._element.classList.add(Pi),this._config.animation){const t=rt.getTransitionDurationFromElement(this._element);i.default(this._element).one(rt.TRANSITION_END,e).emulateTransitionEnd(t)}else e()}hide(){if(!this._element.classList.contains(ji))return;const t=i.default.Event("hide.bs.toast");i.default(this._element).trigger(t),t.isDefaultPrevented()||this._close()}dispose(){this._clearTimeout(),this._element.classList.contains(ji)&&this._element.classList.remove(ji),i.default(this._element).off(Li),i.default.removeData(this._element,Ii),this._element=null,this._config=null}_getConfig(t){return t={...Hi,...i.default(this._element).data(),..."object"==typeof t&&t?t:{}},rt.typeCheckConfig(Ai,t,this.constructor.DefaultType),t}_setListeners(){i.default(this._element).on(Li,'[data-dismiss="toast"]',(()=>this.hide()))}_close(){const t=()=>{this._element.classList.add(Fi),i.default(this._element).trigger("hidden.bs.toast")};if(this._element.classList.remove(ji),this._config.animation){const e=rt.getTransitionDurationFromElement(this._element);i.default(this._element).one(rt.TRANSITION_END,t).emulateTransitionEnd(e)}else t()}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static _jQueryInterface(t){return this.each((function(){const e=i.default(this);let n=e.data(Ii);if(n||(n=new Bi(this,"object"==typeof t&&t),e.data(Ii,n)),"string"==typeof t){if(void 0===n[t])throw new TypeError(`No method named "${t}"`);n[t](this)}}))}}var Ri,qi,Wi;i.default.fn.toast=Bi._jQueryInterface,i.default.fn.toast.Constructor=Bi,i.default.fn.toast.noConflict=()=>(i.default.fn.toast=ki,Bi._jQueryInterface),Ri=navigator.userAgent.toLowerCase().indexOf("webkit")>-1,qi=navigator.userAgent.toLowerCase().indexOf("opera")>-1,Wi=navigator.userAgent.toLowerCase().indexOf("msie")>-1,(Ri||qi||Wi)&&document.getElementById&&window.addEventListener&&window.addEventListener("hashchange",(function(){var t,e=location.hash.substring(1);/^[A-z0-9_-]+$/.test(e)&&(t=document.getElementById(e))&&(/^(?:a|select|input|button|textarea)$/i.test(t.tagName)||(t.tabIndex=-1),t.focus())}),!1),t.Alert=dt,t.Button=gt,t.Carousel=Ot,t.Collapse=qt,t.Dropdown=hn,t.Modal=kn,t.Popover=ci,t.Popper=it,t.Scrollspy=wi,t.Tab=Oi,t.Toast=Bi,t.Tooltip=ei,t.Util=rt,Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
//# sourceMappingURL=theme.min.js.map
|