@programmerg/bs-elements 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +9 -0
- package/README.md +148 -0
- package/custom-elements.json +7773 -0
- package/dist/bs-elements.bundle.min.js +8 -0
- package/dist/bs-elements.bundle.min.js.map +1 -0
- package/dist/bs-elements.esm.js +1721 -0
- package/dist/bs-elements.esm.js.map +1 -0
- package/dist/bs-elements.min.js +2 -0
- package/dist/bs-elements.min.js.map +1 -0
- package/package.json +50 -0
- package/src/base/BsAccordion.js +116 -0
- package/src/base/BsAlert.js +91 -0
- package/src/base/BsButton.js +129 -0
- package/src/base/BsCarousel.js +216 -0
- package/src/base/BsCollapse.js +84 -0
- package/src/base/BsDropdown.js +98 -0
- package/src/base/BsModal.js +204 -0
- package/src/base/BsOffcanvas.js +157 -0
- package/src/base/BsPopover.js +31 -0
- package/src/base/BsTab.js +69 -0
- package/src/base/BsToast.js +163 -0
- package/src/base/BsTooltip.js +118 -0
- package/src/core/BsElement.js +81 -0
- package/src/core/ReactiveElement.js +183 -0
- package/src/extra/BsCalendar.js +14 -0
- package/src/extra/BsCombobox.js +14 -0
- package/src/extra/BsForm.js +152 -0
- package/src/extra/BsInput.js +209 -0
- package/src/extra/BsTable.js +210 -0
- package/src/extra/BsTabs.js +0 -0
- package/src/extra/BsToastManager.js +0 -0
- package/src/extra/BsTree.js +14 -0
- package/src/extra/BsUploader.js +154 -0
- package/src/index.js +12 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var BsElements=function(t){"use strict";class e extends HTMLElement{constructor(){super(),this.__propValues=Object.create(null),this.__changed=new Set,this.__updateScheduled=!1,this.__reflecting=!1,this.createReactiveProperties()}static get properties(){return{}}static __propertyToAttributeMap;static __attributeToPropertyMap;static propertyToAttribute(t){return this.__propertyToAttributeMap.size<1&&this.observedAttributes(),this.__propertyToAttributeMap.get(t)}static attributeToProperty(t){return this.__attributeToPropertyMap.size<1&&this.observedAttributes(),this.__attributeToPropertyMap.get(t)}static get observedAttributes(){if(void 0===this.__attributeToPropertyMap){this.__propertyToAttributeMap=new Map,this.__attributeToPropertyMap=new Map;const t=this.properties||this.properties?.()||{};for(const[e,s]of Object.entries(t)){const t=s?.attribute??e.replace(/([A-Z])/g,"-$1").toLowerCase();this.__propertyToAttributeMap.set(e,t),this.__attributeToPropertyMap.set(t,e)}}return[...this.__attributeToPropertyMap.keys()]}getAttrValue(t,e){const s=this.getAttribute(t);switch(e){case Boolean:return this.hasAttribute(t)&&(""===s||"true"===s);case Number:const e=Number(s);return Number.isNaN(e)?void 0:e;default:return null===s?void 0:s}}setAttrValue(t,e,s){null==e||s===Boolean&&!e?this.removeAttribute(t):this.setAttribute(t,s===Boolean?"":String(e))}createReactiveProperties(){const t=this.constructor.properties||this.constructor.properties?.()||{};for(const[e,s]of Object.entries(t))this.createReactiveProperty(e,s)}createReactiveProperty(t,e){const s=this.constructor.propertyToAttribute(t);Object.getOwnPropertyDescriptor(this.constructor.prototype,t)||Object.defineProperty(this.constructor.prototype,t,{get(){return this.__propValues[t]},set(i){if(this.__propValues[t]===i)return;this.__propValues[t]=i;e.reflect&&(this.__reflecting=!0,this.setAttrValue(s,i,e.type),queueMicrotask(()=>this.__reflecting=!1)),this.__changed.add(t),this.scheduleUpdate()},configurable:!0,enumerable:!0}),this.__propValues[t]=this.getAttrValue(s,e.type)??e.default}childrenToSlots(t){var e=document.createElement("template");e.innerHTML=t;const s=e.content.querySelectorAll("slot");for(const t of s){const e=this.querySelectorAll(`[slot="${t.name}"]`);e.forEach(t=>t.removeAttribute("slot")),t.replaceWith(...e)}this.replaceChildren(e.content)}connectedCallback(){this.firstUpdated()}firstUpdated(){}attributeChangedCallback(t,e,s){if(this.__reflecting)return;const i=this.constructor.attributeToProperty(t),n=(this.constructor.properties||this.constructor.properties?.()||{})[i]||{},o=this.__propValues[i],r=this.getAttrValue(t,n.type);o!==r&&(this.__propValues[i]=r,this.__changed.add(i),this.scheduleUpdate())}scheduleUpdate(){this.__updateScheduled||(this.__updateScheduled=!0,queueMicrotask(()=>{this.__updateScheduled=!1;const t=new Set(this.__changed);this.__changed.clear();try{this.updated(t)}catch(t){console.error(t)}}))}updated(t){t.forEach(t=>{const e=`_update${t.charAt(0).toUpperCase()+t.slice(1)}State`;"function"==typeof this[e]&&this[e]()})}disconnectedCallback(){}}class s extends e{constructor(){super(),this.bs=null}static __bsProps=[];static get bsProps(){if(void 0===this.__bsProps){this.__bsProps=[];const t=this.properties||this.properties?.()||{};for(const[e,s]of Object.entries(t))(s.attribute??"").startsWith("data-bs-")&&this.__bsProps.push(e)}return this.__bsProps}static get bs(){return null}createInstance(){if(!this.constructor.bs||this.bs)return;const t=this.constructor.bsProps.reduce((t,e)=>(e in this.__propValues&&(t[e]=this.__propValues[e]),t),{})||{};this.bs=new this.constructor.bs(this,t)}dispose(){this.bs&&(this.bs?.dispose(),this.bs=null)}connectedCallback(){const t=this.properties||this.properties?.()||{};for(const[e,s]of Object.entries(t))void 0===this.__propValues[e]&&(this[e]=s.values?.find(t=>this.className.includes(t)));super.connectedCallback(),this.createInstance()}updated(t){super.updated(t);this.constructor.bsProps.some(e=>t.has(e))&&(this.dispose(),this.createInstance())}disconnectedCallback(){super.disconnectedCallback(),this.dispose()}}class i extends s{static get properties(){return{flush:{description:"Flag to indicate if the alert is dismissible.",type:Boolean,default:!1},alwaysOpen:{description:"Flag to indicate if the alert is dismissible.",type:Boolean,default:!1},active:{description:"Controls the visibility of the alert.",type:Number,default:0}}}toggle(t){this.children[t].querySelector(".accordion-button").click()}firstUpdated(){this.classList.add("accordion"),this._fixMarkup(),this._updateAlwaysOpenState(),this._updateFlushState(),this._updateActiveState(!0)}_fixMarkup(){this.id||(this.id=crypto.randomUUID()),Array.from(this.children).forEach((t,e)=>{t.classList.add("accordion-item");let s=t.querySelector(".accordion-header");s||(s=document.createElement("h2"),s.classList.add("accordion-header"),t.insertBefore(s,t.firstChild));let i=t.querySelector('.accordion-button, [data-bs-toggle="collapse"]');i||(i=document.createElement("h2")),i.classList.add("accordion-button"),i.setAttribute("data-bs-toggle","collapse"),console.log(i),i.hasAttribute("type")||i.setAttribute("type","button"),i.parentElement!==s&&s.appendChild(i);let n=t.querySelector(".accordion-collapse, .collapse");n||(n=document.createElement("div")),n.classList.add("accordion-collapse","collapse");const o=n.id||`${this.id}-collapse-${e}`;n.id=o;let r=n.querySelector(".accordion-body");if(!r){for(r=document.createElement("div"),r.classList.add("accordion-body");n.firstChild;)r.appendChild(n.firstChild);n.appendChild(r)}i.setAttribute("data-bs-target",`#${o}`),i.setAttribute("aria-controls",o);e===(Number(this.active)||0)?(n.classList.add("show"),i.classList.remove("collapsed"),i.setAttribute("aria-expanded","true")):(n.classList.remove("show"),i.classList.contains("collapsed")||i.classList.add("collapsed"),i.setAttribute("aria-expanded","false"))})}_updateAlwaysOpenState(){this.querySelectorAll(".collapse").forEach(t=>{this.alwaysOpen?t.removeAttribute("data-bs-parent"):t.setAttribute("data-bs-parent",`#${this.id}`)})}_updateFlushState(){this.classList.toggle("accordion-flush",this.flush)}_updateActiveState(t=!1){t||this.toggle(this.active)}}customElements.define("bs-accordion",i);var n="top",o="bottom",r="right",a="left",l="auto",c=[n,o,r,a],d="start",h="end",u="clippingParents",p="viewport",f="popper",g="reference",m=c.reduce(function(t,e){return t.concat([e+"-"+d,e+"-"+h])},[]),_=[].concat(c,[l]).reduce(function(t,e){return t.concat([e,e+"-"+d,e+"-"+h])},[]),b="beforeRead",v="read",y="afterRead",w="beforeMain",A="main",E="afterMain",S="beforeWrite",C="write",T="afterWrite",L=[b,v,y,w,A,E,S,C,T];function x(t){return t?(t.nodeName||"").toLowerCase():null}function O(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function k(t){return t instanceof O(t).Element||t instanceof Element}function D(t){return t instanceof O(t).HTMLElement||t instanceof HTMLElement}function $(t){return"undefined"!=typeof ShadowRoot&&(t instanceof O(t).ShadowRoot||t instanceof ShadowRoot)}var N={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach(function(t){var s=e.styles[t]||{},i=e.attributes[t]||{},n=e.elements[t];D(n)&&x(n)&&(Object.assign(n.style,s),Object.keys(i).forEach(function(t){var e=i[t];!1===e?n.removeAttribute(t):n.setAttribute(t,!0===e?"":e)}))})},effect:function(t){var e=t.state,s={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,s.popper),e.styles=s,e.elements.arrow&&Object.assign(e.elements.arrow.style,s.arrow),function(){Object.keys(e.elements).forEach(function(t){var i=e.elements[t],n=e.attributes[t]||{},o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:s[t]).reduce(function(t,e){return t[e]="",t},{});D(i)&&x(i)&&(Object.assign(i.style,o),Object.keys(n).forEach(function(t){i.removeAttribute(t)}))})}},requires:["computeStyles"]};function M(t){return t.split("-")[0]}var P=Math.max,I=Math.min,j=Math.round;function B(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function F(){return!/^((?!chrome|android).)*safari/i.test(B())}function q(t,e,s){void 0===e&&(e=!1),void 0===s&&(s=!1);var i=t.getBoundingClientRect(),n=1,o=1;e&&D(t)&&(n=t.offsetWidth>0&&j(i.width)/t.offsetWidth||1,o=t.offsetHeight>0&&j(i.height)/t.offsetHeight||1);var r=(k(t)?O(t):window).visualViewport,a=!F()&&s,l=(i.left+(a&&r?r.offsetLeft:0))/n,c=(i.top+(a&&r?r.offsetTop:0))/o,d=i.width/n,h=i.height/o;return{width:d,height:h,top:c,right:l+d,bottom:c+h,left:l,x:l,y:c}}function H(t){var e=q(t),s=t.offsetWidth,i=t.offsetHeight;return Math.abs(e.width-s)<=1&&(s=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:t.offsetLeft,y:t.offsetTop,width:s,height:i}}function z(t,e){var s=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(s&&$(s)){var i=e;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function V(t){return O(t).getComputedStyle(t)}function W(t){return["table","td","th"].indexOf(x(t))>=0}function R(t){return((k(t)?t.ownerDocument:t.document)||window.document).documentElement}function U(t){return"html"===x(t)?t:t.assignedSlot||t.parentNode||($(t)?t.host:null)||R(t)}function K(t){return D(t)&&"fixed"!==V(t).position?t.offsetParent:null}function Q(t){for(var e=O(t),s=K(t);s&&W(s)&&"static"===V(s).position;)s=K(s);return s&&("html"===x(s)||"body"===x(s)&&"static"===V(s).position)?e:s||function(t){var e=/firefox/i.test(B());if(/Trident/i.test(B())&&D(t)&&"fixed"===V(t).position)return null;var s=U(t);for($(s)&&(s=s.host);D(s)&&["html","body"].indexOf(x(s))<0;){var i=V(s);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||e&&"filter"===i.willChange||e&&i.filter&&"none"!==i.filter)return s;s=s.parentNode}return null}(t)||e}function X(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Y(t,e,s){return P(t,I(e,s))}function G(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function Z(t,e){return e.reduce(function(e,s){return e[s]=t,e},{})}var J={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,s=t.state,i=t.name,l=t.options,d=s.elements.arrow,h=s.modifiersData.popperOffsets,u=M(s.placement),p=X(u),f=[a,r].indexOf(u)>=0?"height":"width";if(d&&h){var g=function(t,e){return G("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:Z(t,c))}(l.padding,s),m=H(d),_="y"===p?n:a,b="y"===p?o:r,v=s.rects.reference[f]+s.rects.reference[p]-h[p]-s.rects.popper[f],y=h[p]-s.rects.reference[p],w=Q(d),A=w?"y"===p?w.clientHeight||0:w.clientWidth||0:0,E=v/2-y/2,S=g[_],C=A-m[f]-g[b],T=A/2-m[f]/2+E,L=Y(S,T,C),x=p;s.modifiersData[i]=((e={})[x]=L,e.centerOffset=L-T,e)}},effect:function(t){var e=t.state,s=t.options.element,i=void 0===s?"[data-popper-arrow]":s;null!=i&&("string"!=typeof i||(i=e.elements.popper.querySelector(i)))&&z(e.elements.popper,i)&&(e.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function tt(t){return t.split("-")[1]}var et={top:"auto",right:"auto",bottom:"auto",left:"auto"};function st(t){var e,s=t.popper,i=t.popperRect,l=t.placement,c=t.variation,d=t.offsets,u=t.position,p=t.gpuAcceleration,f=t.adaptive,g=t.roundOffsets,m=t.isFixed,_=d.x,b=void 0===_?0:_,v=d.y,y=void 0===v?0:v,w="function"==typeof g?g({x:b,y:y}):{x:b,y:y};b=w.x,y=w.y;var A=d.hasOwnProperty("x"),E=d.hasOwnProperty("y"),S=a,C=n,T=window;if(f){var L=Q(s),x="clientHeight",k="clientWidth";if(L===O(s)&&"static"!==V(L=R(s)).position&&"absolute"===u&&(x="scrollHeight",k="scrollWidth"),l===n||(l===a||l===r)&&c===h)C=o,y-=(m&&L===T&&T.visualViewport?T.visualViewport.height:L[x])-i.height,y*=p?1:-1;if(l===a||(l===n||l===o)&&c===h)S=r,b-=(m&&L===T&&T.visualViewport?T.visualViewport.width:L[k])-i.width,b*=p?1:-1}var D,$=Object.assign({position:u},f&&et),N=!0===g?function(t,e){var s=t.x,i=t.y,n=e.devicePixelRatio||1;return{x:j(s*n)/n||0,y:j(i*n)/n||0}}({x:b,y:y},O(s)):{x:b,y:y};return b=N.x,y=N.y,p?Object.assign({},$,((D={})[C]=E?"0":"",D[S]=A?"0":"",D.transform=(T.devicePixelRatio||1)<=1?"translate("+b+"px, "+y+"px)":"translate3d("+b+"px, "+y+"px, 0)",D)):Object.assign({},$,((e={})[C]=E?y+"px":"",e[S]=A?b+"px":"",e.transform="",e))}var it={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,s=t.options,i=s.gpuAcceleration,n=void 0===i||i,o=s.adaptive,r=void 0===o||o,a=s.roundOffsets,l=void 0===a||a,c={placement:M(e.placement),variation:tt(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,st(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:r,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,st(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},nt={passive:!0};var ot={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,s=t.instance,i=t.options,n=i.scroll,o=void 0===n||n,r=i.resize,a=void 0===r||r,l=O(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&c.forEach(function(t){t.addEventListener("scroll",s.update,nt)}),a&&l.addEventListener("resize",s.update,nt),function(){o&&c.forEach(function(t){t.removeEventListener("scroll",s.update,nt)}),a&&l.removeEventListener("resize",s.update,nt)}},data:{}},rt={left:"right",right:"left",bottom:"top",top:"bottom"};function at(t){return t.replace(/left|right|bottom|top/g,function(t){return rt[t]})}var lt={start:"end",end:"start"};function ct(t){return t.replace(/start|end/g,function(t){return lt[t]})}function dt(t){var e=O(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ht(t){return q(R(t)).left+dt(t).scrollLeft}function ut(t){var e=V(t),s=e.overflow,i=e.overflowX,n=e.overflowY;return/auto|scroll|overlay|hidden/.test(s+n+i)}function pt(t){return["html","body","#document"].indexOf(x(t))>=0?t.ownerDocument.body:D(t)&&ut(t)?t:pt(U(t))}function ft(t,e){var s;void 0===e&&(e=[]);var i=pt(t),n=i===(null==(s=t.ownerDocument)?void 0:s.body),o=O(i),r=n?[o].concat(o.visualViewport||[],ut(i)?i:[]):i,a=e.concat(r);return n?a:a.concat(ft(U(r)))}function gt(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function mt(t,e,s){return e===p?gt(function(t,e){var s=O(t),i=R(t),n=s.visualViewport,o=i.clientWidth,r=i.clientHeight,a=0,l=0;if(n){o=n.width,r=n.height;var c=F();(c||!c&&"fixed"===e)&&(a=n.offsetLeft,l=n.offsetTop)}return{width:o,height:r,x:a+ht(t),y:l}}(t,s)):k(e)?function(t,e){var s=q(t,!1,"fixed"===e);return s.top=s.top+t.clientTop,s.left=s.left+t.clientLeft,s.bottom=s.top+t.clientHeight,s.right=s.left+t.clientWidth,s.width=t.clientWidth,s.height=t.clientHeight,s.x=s.left,s.y=s.top,s}(e,s):gt(function(t){var e,s=R(t),i=dt(t),n=null==(e=t.ownerDocument)?void 0:e.body,o=P(s.scrollWidth,s.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),r=P(s.scrollHeight,s.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),a=-i.scrollLeft+ht(t),l=-i.scrollTop;return"rtl"===V(n||s).direction&&(a+=P(s.clientWidth,n?n.clientWidth:0)-o),{width:o,height:r,x:a,y:l}}(R(t)))}function _t(t,e,s,i){var n="clippingParents"===e?function(t){var e=ft(U(t)),s=["absolute","fixed"].indexOf(V(t).position)>=0&&D(t)?Q(t):t;return k(s)?e.filter(function(t){return k(t)&&z(t,s)&&"body"!==x(t)}):[]}(t):[].concat(e),o=[].concat(n,[s]),r=o[0],a=o.reduce(function(e,s){var n=mt(t,s,i);return e.top=P(n.top,e.top),e.right=I(n.right,e.right),e.bottom=I(n.bottom,e.bottom),e.left=P(n.left,e.left),e},mt(t,r,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function bt(t){var e,s=t.reference,i=t.element,l=t.placement,c=l?M(l):null,u=l?tt(l):null,p=s.x+s.width/2-i.width/2,f=s.y+s.height/2-i.height/2;switch(c){case n:e={x:p,y:s.y-i.height};break;case o:e={x:p,y:s.y+s.height};break;case r:e={x:s.x+s.width,y:f};break;case a:e={x:s.x-i.width,y:f};break;default:e={x:s.x,y:s.y}}var g=c?X(c):null;if(null!=g){var m="y"===g?"height":"width";switch(u){case d:e[g]=e[g]-(s[m]/2-i[m]/2);break;case h:e[g]=e[g]+(s[m]/2-i[m]/2)}}return e}function vt(t,e){void 0===e&&(e={});var s=e,i=s.placement,a=void 0===i?t.placement:i,l=s.strategy,d=void 0===l?t.strategy:l,h=s.boundary,m=void 0===h?u:h,_=s.rootBoundary,b=void 0===_?p:_,v=s.elementContext,y=void 0===v?f:v,w=s.altBoundary,A=void 0!==w&&w,E=s.padding,S=void 0===E?0:E,C=G("number"!=typeof S?S:Z(S,c)),T=y===f?g:f,L=t.rects.popper,x=t.elements[A?T:y],O=_t(k(x)?x:x.contextElement||R(t.elements.popper),m,b,d),D=q(t.elements.reference),$=bt({reference:D,element:L,placement:a}),N=gt(Object.assign({},L,$)),M=y===f?N:D,P={top:O.top-M.top+C.top,bottom:M.bottom-O.bottom+C.bottom,left:O.left-M.left+C.left,right:M.right-O.right+C.right},I=t.modifiersData.offset;if(y===f&&I){var j=I[a];Object.keys(P).forEach(function(t){var e=[r,o].indexOf(t)>=0?1:-1,s=[n,o].indexOf(t)>=0?"y":"x";P[t]+=j[s]*e})}return P}function yt(t,e){void 0===e&&(e={});var s=e,i=s.placement,n=s.boundary,o=s.rootBoundary,r=s.padding,a=s.flipVariations,l=s.allowedAutoPlacements,d=void 0===l?_:l,h=tt(i),u=h?a?m:m.filter(function(t){return tt(t)===h}):c,p=u.filter(function(t){return d.indexOf(t)>=0});0===p.length&&(p=u);var f=p.reduce(function(e,s){return e[s]=vt(t,{placement:s,boundary:n,rootBoundary:o,padding:r})[M(s)],e},{});return Object.keys(f).sort(function(t,e){return f[t]-f[e]})}var wt={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,s=t.options,i=t.name;if(!e.modifiersData[i]._skip){for(var c=s.mainAxis,h=void 0===c||c,u=s.altAxis,p=void 0===u||u,f=s.fallbackPlacements,g=s.padding,m=s.boundary,_=s.rootBoundary,b=s.altBoundary,v=s.flipVariations,y=void 0===v||v,w=s.allowedAutoPlacements,A=e.options.placement,E=M(A),S=f||(E===A||!y?[at(A)]:function(t){if(M(t)===l)return[];var e=at(t);return[ct(t),e,ct(e)]}(A)),C=[A].concat(S).reduce(function(t,s){return t.concat(M(s)===l?yt(e,{placement:s,boundary:m,rootBoundary:_,padding:g,flipVariations:y,allowedAutoPlacements:w}):s)},[]),T=e.rects.reference,L=e.rects.popper,x=new Map,O=!0,k=C[0],D=0;D<C.length;D++){var $=C[D],N=M($),P=tt($)===d,I=[n,o].indexOf(N)>=0,j=I?"width":"height",B=vt(e,{placement:$,boundary:m,rootBoundary:_,altBoundary:b,padding:g}),F=I?P?r:a:P?o:n;T[j]>L[j]&&(F=at(F));var q=at(F),H=[];if(h&&H.push(B[N]<=0),p&&H.push(B[F]<=0,B[q]<=0),H.every(function(t){return t})){k=$,O=!1;break}x.set($,H)}if(O)for(var z=function(t){var e=C.find(function(e){var s=x.get(e);if(s)return s.slice(0,t).every(function(t){return t})});if(e)return k=e,"break"},V=y?3:1;V>0;V--){if("break"===z(V))break}e.placement!==k&&(e.modifiersData[i]._skip=!0,e.placement=k,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function At(t,e,s){return void 0===s&&(s={x:0,y:0}),{top:t.top-e.height-s.y,right:t.right-e.width+s.x,bottom:t.bottom-e.height+s.y,left:t.left-e.width-s.x}}function Et(t){return[n,r,o,a].some(function(e){return t[e]>=0})}var St={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,s=t.name,i=e.rects.reference,n=e.rects.popper,o=e.modifiersData.preventOverflow,r=vt(e,{elementContext:"reference"}),a=vt(e,{altBoundary:!0}),l=At(r,i),c=At(a,n,o),d=Et(l),h=Et(c);e.modifiersData[s]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:h},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":h})}};var Ct={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,s=t.options,i=t.name,o=s.offset,l=void 0===o?[0,0]:o,c=_.reduce(function(t,s){return t[s]=function(t,e,s){var i=M(t),o=[a,n].indexOf(i)>=0?-1:1,l="function"==typeof s?s(Object.assign({},e,{placement:t})):s,c=l[0],d=l[1];return c=c||0,d=(d||0)*o,[a,r].indexOf(i)>=0?{x:d,y:c}:{x:c,y:d}}(s,e.rects,l),t},{}),d=c[e.placement],h=d.x,u=d.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=h,e.modifiersData.popperOffsets.y+=u),e.modifiersData[i]=c}};var Tt={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,s=t.name;e.modifiersData[s]=bt({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})},data:{}};var Lt={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,s=t.options,i=t.name,l=s.mainAxis,c=void 0===l||l,h=s.altAxis,u=void 0!==h&&h,p=s.boundary,f=s.rootBoundary,g=s.altBoundary,m=s.padding,_=s.tether,b=void 0===_||_,v=s.tetherOffset,y=void 0===v?0:v,w=vt(e,{boundary:p,rootBoundary:f,padding:m,altBoundary:g}),A=M(e.placement),E=tt(e.placement),S=!E,C=X(A),T="x"===C?"y":"x",L=e.modifiersData.popperOffsets,x=e.rects.reference,O=e.rects.popper,k="function"==typeof y?y(Object.assign({},e.rects,{placement:e.placement})):y,D="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),$=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,N={x:0,y:0};if(L){if(c){var j,B="y"===C?n:a,F="y"===C?o:r,q="y"===C?"height":"width",z=L[C],V=z+w[B],W=z-w[F],R=b?-O[q]/2:0,U=E===d?x[q]:O[q],K=E===d?-O[q]:-x[q],G=e.elements.arrow,Z=b&&G?H(G):{width:0,height:0},J=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},et=J[B],st=J[F],it=Y(0,x[q],Z[q]),nt=S?x[q]/2-R-it-et-D.mainAxis:U-it-et-D.mainAxis,ot=S?-x[q]/2+R+it+st+D.mainAxis:K+it+st+D.mainAxis,rt=e.elements.arrow&&Q(e.elements.arrow),at=rt?"y"===C?rt.clientTop||0:rt.clientLeft||0:0,lt=null!=(j=null==$?void 0:$[C])?j:0,ct=z+ot-lt,dt=Y(b?I(V,z+nt-lt-at):V,z,b?P(W,ct):W);L[C]=dt,N[C]=dt-z}if(u){var ht,ut="x"===C?n:a,pt="x"===C?o:r,ft=L[T],gt="y"===T?"height":"width",mt=ft+w[ut],_t=ft-w[pt],bt=-1!==[n,a].indexOf(A),yt=null!=(ht=null==$?void 0:$[T])?ht:0,wt=bt?mt:ft-x[gt]-O[gt]-yt+D.altAxis,At=bt?ft+x[gt]+O[gt]-yt-D.altAxis:_t,Et=b&&bt?function(t,e,s){var i=Y(t,e,s);return i>s?s:i}(wt,ft,At):Y(b?wt:mt,ft,b?At:_t);L[T]=Et,N[T]=Et-ft}e.modifiersData[i]=N}},requiresIfExists:["offset"]};function xt(t,e,s){void 0===s&&(s=!1);var i,n,o=D(e),r=D(e)&&function(t){var e=t.getBoundingClientRect(),s=j(e.width)/t.offsetWidth||1,i=j(e.height)/t.offsetHeight||1;return 1!==s||1!==i}(e),a=R(e),l=q(t,r,s),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(o||!o&&!s)&&(("body"!==x(e)||ut(a))&&(c=(i=e)!==O(i)&&D(i)?{scrollLeft:(n=i).scrollLeft,scrollTop:n.scrollTop}:dt(i)),D(e)?((d=q(e,!0)).x+=e.clientLeft,d.y+=e.clientTop):a&&(d.x=ht(a))),{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height}}function Ot(t){var e=new Map,s=new Set,i=[];function n(t){s.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!s.has(t)){var i=e.get(t);i&&n(i)}}),i.push(t)}return t.forEach(function(t){e.set(t.name,t)}),t.forEach(function(t){s.has(t.name)||n(t)}),i}var kt={placement:"bottom",modifiers:[],strategy:"absolute"};function Dt(){for(var t=arguments.length,e=new Array(t),s=0;s<t;s++)e[s]=arguments[s];return!e.some(function(t){return!(t&&"function"==typeof t.getBoundingClientRect)})}function $t(t){void 0===t&&(t={});var e=t,s=e.defaultModifiers,i=void 0===s?[]:s,n=e.defaultOptions,o=void 0===n?kt:n;return function(t,e,s){void 0===s&&(s=o);var n,r,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},kt,o),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},l=[],c=!1,d={state:a,setOptions:function(s){var n="function"==typeof s?s(a.options):s;h(),a.options=Object.assign({},o,a.options,n),a.scrollParents={reference:k(t)?ft(t):t.contextElement?ft(t.contextElement):[],popper:ft(e)};var r,c,u=function(t){var e=Ot(t);return L.reduce(function(t,s){return t.concat(e.filter(function(t){return t.phase===s}))},[])}((r=[].concat(i,a.options.modifiers),c=r.reduce(function(t,e){var s=t[e.name];return t[e.name]=s?Object.assign({},s,e,{options:Object.assign({},s.options,e.options),data:Object.assign({},s.data,e.data)}):e,t},{}),Object.keys(c).map(function(t){return c[t]})));return a.orderedModifiers=u.filter(function(t){return t.enabled}),a.orderedModifiers.forEach(function(t){var e=t.name,s=t.options,i=void 0===s?{}:s,n=t.effect;if("function"==typeof n){var o=n({state:a,name:e,instance:d,options:i}),r=function(){};l.push(o||r)}}),d.update()},forceUpdate:function(){if(!c){var t=a.elements,e=t.reference,s=t.popper;if(Dt(e,s)){a.rects={reference:xt(e,Q(s),"fixed"===a.options.strategy),popper:H(s)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(t){return a.modifiersData[t.name]=Object.assign({},t.data)});for(var i=0;i<a.orderedModifiers.length;i++)if(!0!==a.reset){var n=a.orderedModifiers[i],o=n.fn,r=n.options,l=void 0===r?{}:r,h=n.name;"function"==typeof o&&(a=o({state:a,options:l,name:h,instance:d})||a)}else a.reset=!1,i=-1}}},update:(n=function(){return new Promise(function(t){d.forceUpdate(),t(a)})},function(){return r||(r=new Promise(function(t){Promise.resolve().then(function(){r=void 0,t(n())})})),r}),destroy:function(){h(),c=!0}};if(!Dt(t,e))return d;function h(){l.forEach(function(t){return t()}),l=[]}return d.setOptions(s).then(function(t){!c&&s.onFirstUpdate&&s.onFirstUpdate(t)}),d}}var Nt=$t({defaultModifiers:[ot,Tt,it,N,Ct,wt,Lt,J,St]}),Mt=Object.freeze({__proto__:null,afterMain:E,afterRead:y,afterWrite:T,applyStyles:N,arrow:J,auto:l,basePlacements:c,beforeMain:w,beforeRead:b,beforeWrite:S,bottom:o,clippingParents:u,computeStyles:it,createPopper:Nt,detectOverflow:vt,end:h,eventListeners:ot,flip:wt,hide:St,left:a,main:A,modifierPhases:L,offset:Ct,placements:_,popper:f,popperGenerator:$t,popperOffsets:Tt,preventOverflow:Lt,read:v,reference:g,right:r,start:d,top:n,variationPlacements:m,viewport:p,write:C});
|
|
2
|
+
/*!
|
|
3
|
+
* Bootstrap v5.3.8 (https://getbootstrap.com/)
|
|
4
|
+
* Copyright 2011-2025 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
|
5
|
+
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
6
|
+
*/
|
|
7
|
+
const Pt=new Map,It={set(t,e,s){Pt.has(t)||Pt.set(t,new Map);const i=Pt.get(t);i.has(e)||0===i.size?i.set(e,s):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(i.keys())[0]}.`)},get:(t,e)=>Pt.has(t)&&Pt.get(t).get(e)||null,remove(t,e){if(!Pt.has(t))return;const s=Pt.get(t);s.delete(e),0===s.size&&Pt.delete(t)}},jt="transitionend",Bt=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,(t,e)=>`#${CSS.escape(e)}`)),t),Ft=t=>null==t?`${t}`:Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),qt=t=>{t.dispatchEvent(new Event(jt))},Ht=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),zt=t=>Ht(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(Bt(t)):null,Vt=t=>{if(!Ht(t)||0===t.getClientRects().length)return!1;const e="visible"===getComputedStyle(t).getPropertyValue("visibility"),s=t.closest("details:not([open])");if(!s)return e;if(s!==t){const e=t.closest("summary");if(e&&e.parentNode!==s)return!1;if(null===e)return!1}return e},Wt=t=>!t||t.nodeType!==Node.ELEMENT_NODE||(!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled"))),Rt=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(t.parentNode):null},Ut=()=>{},Kt=t=>{t.offsetHeight},Qt=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Xt=[],Yt=()=>"rtl"===document.documentElement.dir,Gt=t=>{var e;e=()=>{const e=Qt();if(e){const s=t.NAME,i=e.fn[s];e.fn[s]=t.jQueryInterface,e.fn[s].Constructor=t,e.fn[s].noConflict=()=>(e.fn[s]=i,t.jQueryInterface)}},"loading"===document.readyState?(Xt.length||document.addEventListener("DOMContentLoaded",()=>{for(const t of Xt)t()}),Xt.push(e)):e()},Zt=(t,e=[],s=t)=>"function"==typeof t?t.call(...e):s,Jt=(t,e,s=!0)=>{if(!s)return void Zt(t);const i=(t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:s}=window.getComputedStyle(t);const i=Number.parseFloat(e),n=Number.parseFloat(s);return i||n?(e=e.split(",")[0],s=s.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(s))):0})(e)+5;let n=!1;const o=({target:s})=>{s===e&&(n=!0,e.removeEventListener(jt,o),Zt(t))};e.addEventListener(jt,o),setTimeout(()=>{n||qt(e)},i)},te=(t,e,s,i)=>{const n=t.length;let o=t.indexOf(e);return-1===o?!s&&i?t[n-1]:t[0]:(o+=s?1:-1,i&&(o=(o+n)%n),t[Math.max(0,Math.min(o,n-1))])},ee=/[^.]*(?=\..*)\.|.*/,se=/\..*/,ie=/::\d+$/,ne={};let oe=1;const re={mouseenter:"mouseover",mouseleave:"mouseout"},ae=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function le(t,e){return e&&`${e}::${oe++}`||t.uidEvent||oe++}function ce(t){const e=le(t);return t.uidEvent=e,ne[e]=ne[e]||{},ne[e]}function de(t,e,s=null){return Object.values(t).find(t=>t.callable===e&&t.delegationSelector===s)}function he(t,e,s){const i="string"==typeof e,n=i?s:e||s;let o=ge(t);return ae.has(o)||(o=t),[i,n,o]}function ue(t,e,s,i,n){if("string"!=typeof e||!t)return;let[o,r,a]=he(e,s,i);if(e in re){const t=t=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};r=t(r)}const l=ce(t),c=l[a]||(l[a]={}),d=de(c,r,o?s:null);if(d)return void(d.oneOff=d.oneOff&&n);const h=le(r,e.replace(ee,"")),u=o?function(t,e,s){return function i(n){const o=t.querySelectorAll(e);for(let{target:r}=n;r&&r!==this;r=r.parentNode)for(const a of o)if(a===r)return _e(n,{delegateTarget:r}),i.oneOff&&me.off(t,n.type,e,s),s.apply(r,[n])}}(t,s,r):function(t,e){return function s(i){return _e(i,{delegateTarget:t}),s.oneOff&&me.off(t,i.type,e),e.apply(t,[i])}}(t,r);u.delegationSelector=o?s:null,u.callable=r,u.oneOff=n,u.uidEvent=h,c[h]=u,t.addEventListener(a,u,o)}function pe(t,e,s,i,n){const o=de(e[s],i,n);o&&(t.removeEventListener(s,o,Boolean(n)),delete e[s][o.uidEvent])}function fe(t,e,s,i){const n=e[s]||{};for(const[o,r]of Object.entries(n))o.includes(i)&&pe(t,e,s,r.callable,r.delegationSelector)}function ge(t){return t=t.replace(se,""),re[t]||t}const me={on(t,e,s,i){ue(t,e,s,i,!1)},one(t,e,s,i){ue(t,e,s,i,!0)},off(t,e,s,i){if("string"!=typeof e||!t)return;const[n,o,r]=he(e,s,i),a=r!==e,l=ce(t),c=l[r]||{},d=e.startsWith(".");if(void 0===o){if(d)for(const s of Object.keys(l))fe(t,l,s,e.slice(1));for(const[s,i]of Object.entries(c)){const n=s.replace(ie,"");a&&!e.includes(n)||pe(t,l,r,i.callable,i.delegationSelector)}}else{if(!Object.keys(c).length)return;pe(t,l,r,o,n?s:null)}},trigger(t,e,s){if("string"!=typeof e||!t)return null;const i=Qt();let n=null,o=!0,r=!0,a=!1;e!==ge(e)&&i&&(n=i.Event(e,s),i(t).trigger(n),o=!n.isPropagationStopped(),r=!n.isImmediatePropagationStopped(),a=n.isDefaultPrevented());const l=_e(new Event(e,{bubbles:o,cancelable:!0}),s);return a&&l.preventDefault(),r&&t.dispatchEvent(l),l.defaultPrevented&&n&&n.preventDefault(),l}};function _e(t,e={}){for(const[s,i]of Object.entries(e))try{t[s]=i}catch(e){Object.defineProperty(t,s,{configurable:!0,get:()=>i})}return t}function be(t){if("true"===t)return!0;if("false"===t)return!1;if(t===Number(t).toString())return Number(t);if(""===t||"null"===t)return null;if("string"!=typeof t)return t;try{return JSON.parse(decodeURIComponent(t))}catch(e){return t}}function ve(t){return t.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}const ye={setDataAttribute(t,e,s){t.setAttribute(`data-bs-${ve(e)}`,s)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${ve(e)}`)},getDataAttributes(t){if(!t)return{};const e={},s=Object.keys(t.dataset).filter(t=>t.startsWith("bs")&&!t.startsWith("bsConfig"));for(const i of s){let s=i.replace(/^bs/,"");s=s.charAt(0).toLowerCase()+s.slice(1),e[s]=be(t.dataset[i])}return e},getDataAttribute:(t,e)=>be(t.getAttribute(`data-bs-${ve(e)}`))};class we{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,e){const s=Ht(e)?ye.getDataAttribute(e,"config"):{};return{...this.constructor.Default,..."object"==typeof s?s:{},...Ht(e)?ye.getDataAttributes(e):{},..."object"==typeof t?t:{}}}_typeCheckConfig(t,e=this.constructor.DefaultType){for(const[s,i]of Object.entries(e)){const e=t[s],n=Ht(e)?"element":Ft(e);if(!new RegExp(i).test(n))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${s}" provided type "${n}" but expected type "${i}".`)}}}class Ae extends we{constructor(t,e){super(),(t=zt(t))&&(this._element=t,this._config=this._getConfig(e),It.set(this._element,this.constructor.DATA_KEY,this))}dispose(){It.remove(this._element,this.constructor.DATA_KEY),me.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e,s=!0){Jt(t,e,s)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return It.get(zt(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,"object"==typeof e?e:null)}static get VERSION(){return"5.3.8"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}}const Ee=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let s=t.getAttribute("href");if(!s||!s.includes("#")&&!s.startsWith("."))return null;s.includes("#")&&!s.startsWith("#")&&(s=`#${s.split("#")[1]}`),e=s&&"#"!==s?s.trim():null}return e?e.split(",").map(t=>Bt(t)).join(","):null},Se={find:(t,e=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(e,t)),findOne:(t,e=document.documentElement)=>Element.prototype.querySelector.call(e,t),children:(t,e)=>[].concat(...t.children).filter(t=>t.matches(e)),parents(t,e){const s=[];let i=t.parentNode.closest(e);for(;i;)s.push(i),i=i.parentNode.closest(e);return s},prev(t,e){let s=t.previousElementSibling;for(;s;){if(s.matches(e))return[s];s=s.previousElementSibling}return[]},next(t,e){let s=t.nextElementSibling;for(;s;){if(s.matches(e))return[s];s=s.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(t=>`${t}:not([tabindex^="-"])`).join(",");return this.find(e,t).filter(t=>!Wt(t)&&Vt(t))},getSelectorFromElement(t){const e=Ee(t);return e&&Se.findOne(e)?e:null},getElementFromSelector(t){const e=Ee(t);return e?Se.findOne(e):null},getMultipleElementsFromSelector(t){const e=Ee(t);return e?Se.find(e):[]}},Ce=(t,e="hide")=>{const s=`click.dismiss${t.EVENT_KEY}`,i=t.NAME;me.on(document,s,`[data-bs-dismiss="${i}"]`,function(s){if(["A","AREA"].includes(this.tagName)&&s.preventDefault(),Wt(this))return;const n=Se.getElementFromSelector(this)||this.closest(`.${i}`);t.getOrCreateInstance(n)[e]()})},Te=".bs.alert",Le=`close${Te}`,xe=`closed${Te}`;class Oe extends Ae{static get NAME(){return"alert"}close(){if(me.trigger(this._element,Le).defaultPrevented)return;this._element.classList.remove("show");const t=this._element.classList.contains("fade");this._queueCallback(()=>this._destroyElement(),this._element,t)}_destroyElement(){this._element.remove(),me.trigger(this._element,xe),this.dispose()}static jQueryInterface(t){return this.each(function(){const e=Oe.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}})}}Ce(Oe,"close"),Gt(Oe);const ke='[data-bs-toggle="button"]';class De extends Ae{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(t){return this.each(function(){const e=De.getOrCreateInstance(this);"toggle"===t&&e[t]()})}}me.on(document,"click.bs.button.data-api",ke,t=>{t.preventDefault();const e=t.target.closest(ke);De.getOrCreateInstance(e).toggle()}),Gt(De);const $e=".bs.swipe",Ne=`touchstart${$e}`,Me=`touchmove${$e}`,Pe=`touchend${$e}`,Ie=`pointerdown${$e}`,je=`pointerup${$e}`,Be={endCallback:null,leftCallback:null,rightCallback:null},Fe={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class qe extends we{constructor(t,e){super(),this._element=t,t&&qe.isSupported()&&(this._config=this._getConfig(e),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return Be}static get DefaultType(){return Fe}static get NAME(){return"swipe"}dispose(){me.off(this._element,$e)}_start(t){this._supportPointerEvents?this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX):this._deltaX=t.touches[0].clientX}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),Zt(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){const t=Math.abs(this._deltaX);if(t<=40)return;const e=t/this._deltaX;this._deltaX=0,e&&Zt(e>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(me.on(this._element,Ie,t=>this._start(t)),me.on(this._element,je,t=>this._end(t)),this._element.classList.add("pointer-event")):(me.on(this._element,Ne,t=>this._start(t)),me.on(this._element,Me,t=>this._move(t)),me.on(this._element,Pe,t=>this._end(t)))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&("pen"===t.pointerType||"touch"===t.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const He=".bs.carousel",ze=".data-api",Ve="ArrowLeft",We="ArrowRight",Re="next",Ue="prev",Ke="left",Qe="right",Xe=`slide${He}`,Ye=`slid${He}`,Ge=`keydown${He}`,Ze=`mouseenter${He}`,Je=`mouseleave${He}`,ts=`dragstart${He}`,es=`load${He}${ze}`,ss=`click${He}${ze}`,is="carousel",ns="active",os=".active",rs=".carousel-item",as=os+rs,ls={[Ve]:Qe,[We]:Ke},cs={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},ds={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class hs extends Ae{constructor(t,e){super(t,e),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=Se.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===is&&this.cycle()}static get Default(){return cs}static get DefaultType(){return ds}static get NAME(){return"carousel"}next(){this._slide(Re)}nextWhenVisible(){!document.hidden&&Vt(this._element)&&this.next()}prev(){this._slide(Ue)}pause(){this._isSliding&&qt(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?me.one(this._element,Ye,()=>this.cycle()):this.cycle())}to(t){const e=this._getItems();if(t>e.length-1||t<0)return;if(this._isSliding)return void me.one(this._element,Ye,()=>this.to(t));const s=this._getItemIndex(this._getActive());if(s===t)return;const i=t>s?Re:Ue;this._slide(i,e[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&me.on(this._element,Ge,t=>this._keydown(t)),"hover"===this._config.pause&&(me.on(this._element,Ze,()=>this.pause()),me.on(this._element,Je,()=>this._maybeEnableCycle())),this._config.touch&&qe.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const t of Se.find(".carousel-item img",this._element))me.on(t,ts,t=>t.preventDefault());const t={leftCallback:()=>this._slide(this._directionToOrder(Ke)),rightCallback:()=>this._slide(this._directionToOrder(Qe)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),500+this._config.interval))}};this._swipeHelper=new qe(this._element,t)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=ls[t.key];e&&(t.preventDefault(),this._slide(this._directionToOrder(e)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const e=Se.findOne(os,this._indicatorsElement);e.classList.remove(ns),e.removeAttribute("aria-current");const s=Se.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);s&&(s.classList.add(ns),s.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const e=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=e||this._config.defaultInterval}_slide(t,e=null){if(this._isSliding)return;const s=this._getActive(),i=t===Re,n=e||te(this._getItems(),s,i,this._config.wrap);if(n===s)return;const o=this._getItemIndex(n),r=e=>me.trigger(this._element,e,{relatedTarget:n,direction:this._orderToDirection(t),from:this._getItemIndex(s),to:o});if(r(Xe).defaultPrevented)return;if(!s||!n)return;const a=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(o),this._activeElement=n;const l=i?"carousel-item-start":"carousel-item-end",c=i?"carousel-item-next":"carousel-item-prev";n.classList.add(c),Kt(n),s.classList.add(l),n.classList.add(l);this._queueCallback(()=>{n.classList.remove(l,c),n.classList.add(ns),s.classList.remove(ns,c,l),this._isSliding=!1,r(Ye)},s,this._isAnimated()),a&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return Se.findOne(as,this._element)}_getItems(){return Se.find(rs,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return Yt()?t===Ke?Ue:Re:t===Ke?Re:Ue}_orderToDirection(t){return Yt()?t===Ue?Ke:Qe:t===Ue?Qe:Ke}static jQueryInterface(t){return this.each(function(){const e=hs.getOrCreateInstance(this,t);if("number"!=typeof t){if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}else e.to(t)})}}me.on(document,ss,"[data-bs-slide], [data-bs-slide-to]",function(t){const e=Se.getElementFromSelector(this);if(!e||!e.classList.contains(is))return;t.preventDefault();const s=hs.getOrCreateInstance(e),i=this.getAttribute("data-bs-slide-to");return i?(s.to(i),void s._maybeEnableCycle()):"next"===ye.getDataAttribute(this,"slide")?(s.next(),void s._maybeEnableCycle()):(s.prev(),void s._maybeEnableCycle())}),me.on(window,es,()=>{const t=Se.find('[data-bs-ride="carousel"]');for(const e of t)hs.getOrCreateInstance(e)}),Gt(hs);const us=".bs.collapse",ps=`show${us}`,fs=`shown${us}`,gs=`hide${us}`,ms=`hidden${us}`,_s=`click${us}.data-api`,bs="show",vs="collapse",ys="collapsing",ws=`:scope .${vs} .${vs}`,As='[data-bs-toggle="collapse"]',Es={parent:null,toggle:!0},Ss={parent:"(null|element)",toggle:"boolean"};class Cs extends Ae{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];const s=Se.find(As);for(const t of s){const e=Se.getSelectorFromElement(t),s=Se.find(e).filter(t=>t===this._element);null!==e&&s.length&&this._triggerArray.push(t)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Es}static get DefaultType(){return Ss}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter(t=>t!==this._element).map(t=>Cs.getOrCreateInstance(t,{toggle:!1}))),t.length&&t[0]._isTransitioning)return;if(me.trigger(this._element,ps).defaultPrevented)return;for(const e of t)e.hide();const e=this._getDimension();this._element.classList.remove(vs),this._element.classList.add(ys),this._element.style[e]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const s=`scroll${e[0].toUpperCase()+e.slice(1)}`;this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(ys),this._element.classList.add(vs,bs),this._element.style[e]="",me.trigger(this._element,fs)},this._element,!0),this._element.style[e]=`${this._element[s]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(me.trigger(this._element,gs).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,Kt(this._element),this._element.classList.add(ys),this._element.classList.remove(vs,bs);for(const t of this._triggerArray){const e=Se.getElementFromSelector(t);e&&!this._isShown(e)&&this._addAriaAndCollapsedClass([t],!1)}this._isTransitioning=!0;this._element.style[t]="",this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(ys),this._element.classList.add(vs),me.trigger(this._element,ms)},this._element,!0)}_isShown(t=this._element){return t.classList.contains(bs)}_configAfterMerge(t){return t.toggle=Boolean(t.toggle),t.parent=zt(t.parent),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(As);for(const e of t){const t=Se.getElementFromSelector(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}}_getFirstLevelChildren(t){const e=Se.find(ws,this._config.parent);return Se.find(t,this._config.parent).filter(t=>!e.includes(t))}_addAriaAndCollapsedClass(t,e){if(t.length)for(const s of t)s.classList.toggle("collapsed",!e),s.setAttribute("aria-expanded",e)}static jQueryInterface(t){const e={};return"string"==typeof t&&/show|hide/.test(t)&&(e.toggle=!1),this.each(function(){const s=Cs.getOrCreateInstance(this,e);if("string"==typeof t){if(void 0===s[t])throw new TypeError(`No method named "${t}"`);s[t]()}})}}me.on(document,_s,As,function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();for(const t of Se.getMultipleElementsFromSelector(this))Cs.getOrCreateInstance(t,{toggle:!1}).toggle()}),Gt(Cs);const Ts="dropdown",Ls=".bs.dropdown",xs=".data-api",Os="ArrowUp",ks="ArrowDown",Ds=`hide${Ls}`,$s=`hidden${Ls}`,Ns=`show${Ls}`,Ms=`shown${Ls}`,Ps=`click${Ls}${xs}`,Is=`keydown${Ls}${xs}`,js=`keyup${Ls}${xs}`,Bs="show",Fs='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',qs=`${Fs}.${Bs}`,Hs=".dropdown-menu",zs=Yt()?"top-end":"top-start",Vs=Yt()?"top-start":"top-end",Ws=Yt()?"bottom-end":"bottom-start",Rs=Yt()?"bottom-start":"bottom-end",Us=Yt()?"left-start":"right-start",Ks=Yt()?"right-start":"left-start",Qs={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Xs={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Ys extends Ae{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=Se.next(this._element,Hs)[0]||Se.prev(this._element,Hs)[0]||Se.findOne(Hs,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Qs}static get DefaultType(){return Xs}static get NAME(){return Ts}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Wt(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!me.trigger(this._element,Ns,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const t of[].concat(...document.body.children))me.on(t,"mouseover",Ut);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Bs),this._element.classList.add(Bs),me.trigger(this._element,Ms,t)}}hide(){if(Wt(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!me.trigger(this._element,Ds,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))me.off(t,"mouseover",Ut);this._popper&&this._popper.destroy(),this._menu.classList.remove(Bs),this._element.classList.remove(Bs),this._element.setAttribute("aria-expanded","false"),ye.removeDataAttribute(this._menu,"popper"),me.trigger(this._element,$s,t)}}_getConfig(t){if("object"==typeof(t=super._getConfig(t)).reference&&!Ht(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw new TypeError(`${Ts.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(void 0===Mt)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)");let t=this._element;"parent"===this._config.reference?t=this._parent:Ht(this._config.reference)?t=zt(this._config.reference):"object"==typeof this._config.reference&&(t=this._config.reference);const e=this._getPopperConfig();this._popper=Nt(t,this._menu,e)}_isShown(){return this._menu.classList.contains(Bs)}_getPlacement(){const t=this._parent;if(t.classList.contains("dropend"))return Us;if(t.classList.contains("dropstart"))return Ks;if(t.classList.contains("dropup-center"))return"top";if(t.classList.contains("dropdown-center"))return"bottom";const e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return t.classList.contains("dropup")?e?Vs:zs:e?Rs:Ws}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map(t=>Number.parseInt(t,10)):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(ye.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...Zt(this._config.popperConfig,[void 0,t])}}_selectMenuItem({key:t,target:e}){const s=Se.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(t=>Vt(t));s.length&&te(s,e,t===ks,!s.includes(e)).focus()}static jQueryInterface(t){return this.each(function(){const e=Ys.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}static clearMenus(t){if(2===t.button||"keyup"===t.type&&"Tab"!==t.key)return;const e=Se.find(qs);for(const s of e){const e=Ys.getInstance(s);if(!e||!1===e._config.autoClose)continue;const i=t.composedPath(),n=i.includes(e._menu);if(i.includes(e._element)||"inside"===e._config.autoClose&&!n||"outside"===e._config.autoClose&&n)continue;if(e._menu.contains(t.target)&&("keyup"===t.type&&"Tab"===t.key||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const o={relatedTarget:e._element};"click"===t.type&&(o.clickEvent=t),e._completeHide(o)}}static dataApiKeydownHandler(t){const e=/input|textarea/i.test(t.target.tagName),s="Escape"===t.key,i=[Os,ks].includes(t.key);if(!i&&!s)return;if(e&&!s)return;t.preventDefault();const n=this.matches(Fs)?this:Se.prev(this,Fs)[0]||Se.next(this,Fs)[0]||Se.findOne(Fs,t.delegateTarget.parentNode),o=Ys.getOrCreateInstance(n);if(i)return t.stopPropagation(),o.show(),void o._selectMenuItem(t);o._isShown()&&(t.stopPropagation(),o.hide(),n.focus())}}me.on(document,Is,Fs,Ys.dataApiKeydownHandler),me.on(document,Is,Hs,Ys.dataApiKeydownHandler),me.on(document,Ps,Ys.clearMenus),me.on(document,js,Ys.clearMenus),me.on(document,Ps,Fs,function(t){t.preventDefault(),Ys.getOrCreateInstance(this).toggle()}),Gt(Ys);const Gs="backdrop",Zs="show",Js=`mousedown.bs.${Gs}`,ti={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},ei={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class si extends we{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return ti}static get DefaultType(){return ei}static get NAME(){return Gs}show(t){if(!this._config.isVisible)return void Zt(t);this._append();const e=this._getElement();this._config.isAnimated&&Kt(e),e.classList.add(Zs),this._emulateAnimation(()=>{Zt(t)})}hide(t){this._config.isVisible?(this._getElement().classList.remove(Zs),this._emulateAnimation(()=>{this.dispose(),Zt(t)})):Zt(t)}dispose(){this._isAppended&&(me.off(this._element,Js),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add("fade"),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=zt(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),me.on(t,Js,()=>{Zt(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(t){Jt(t,this._getElement(),this._config.isAnimated)}}const ii=".bs.focustrap",ni=`focusin${ii}`,oi=`keydown.tab${ii}`,ri="backward",ai={autofocus:!0,trapElement:null},li={autofocus:"boolean",trapElement:"element"};class ci extends we{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return ai}static get DefaultType(){return li}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),me.off(document,ii),me.on(document,ni,t=>this._handleFocusin(t)),me.on(document,oi,t=>this._handleKeydown(t)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,me.off(document,ii))}_handleFocusin(t){const{trapElement:e}=this._config;if(t.target===document||t.target===e||e.contains(t.target))return;const s=Se.focusableChildren(e);0===s.length?e.focus():this._lastTabNavDirection===ri?s[s.length-1].focus():s[0].focus()}_handleKeydown(t){"Tab"===t.key&&(this._lastTabNavDirection=t.shiftKey?ri:"forward")}}const di=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",hi=".sticky-top",ui="padding-right",pi="margin-right";class fi{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,ui,e=>e+t),this._setElementAttributes(di,ui,e=>e+t),this._setElementAttributes(hi,pi,e=>e-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,ui),this._resetElementAttributes(di,ui),this._resetElementAttributes(hi,pi)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,s){const i=this.getWidth();this._applyManipulationCallback(t,t=>{if(t!==this._element&&window.innerWidth>t.clientWidth+i)return;this._saveInitialAttribute(t,e);const n=window.getComputedStyle(t).getPropertyValue(e);t.style.setProperty(e,`${s(Number.parseFloat(n))}px`)})}_saveInitialAttribute(t,e){const s=t.style.getPropertyValue(e);s&&ye.setDataAttribute(t,e,s)}_resetElementAttributes(t,e){this._applyManipulationCallback(t,t=>{const s=ye.getDataAttribute(t,e);null!==s?(ye.removeDataAttribute(t,e),t.style.setProperty(e,s)):t.style.removeProperty(e)})}_applyManipulationCallback(t,e){if(Ht(t))e(t);else for(const s of Se.find(t,this._element))e(s)}}const gi=".bs.modal",mi=`hide${gi}`,_i=`hidePrevented${gi}`,bi=`hidden${gi}`,vi=`show${gi}`,yi=`shown${gi}`,wi=`resize${gi}`,Ai=`click.dismiss${gi}`,Ei=`mousedown.dismiss${gi}`,Si=`keydown.dismiss${gi}`,Ci=`click${gi}.data-api`,Ti="modal-open",Li="show",xi="modal-static",Oi={backdrop:!0,focus:!0,keyboard:!0},ki={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Di extends Ae{constructor(t,e){super(t,e),this._dialog=Se.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new fi,this._addEventListeners()}static get Default(){return Oi}static get DefaultType(){return ki}static get NAME(){return"modal"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||this._isTransitioning)return;me.trigger(this._element,vi,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Ti),this._adjustDialog(),this._backdrop.show(()=>this._showElement(t)))}hide(){if(!this._isShown||this._isTransitioning)return;me.trigger(this._element,mi).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Li),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){me.off(window,gi),me.off(this._dialog,gi),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new si({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new ci({trapElement:this._element})}_showElement(t){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const e=Se.findOne(".modal-body",this._dialog);e&&(e.scrollTop=0),Kt(this._element),this._element.classList.add(Li);this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,me.trigger(this._element,yi,{relatedTarget:t})},this._dialog,this._isAnimated())}_addEventListeners(){me.on(this._element,Si,t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())}),me.on(window,wi,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),me.on(this._element,Ei,t=>{me.one(this._element,Ai,e=>{this._element===t.target&&this._element===e.target&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())})})}_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._backdrop.hide(()=>{document.body.classList.remove(Ti),this._resetAdjustments(),this._scrollBar.reset(),me.trigger(this._element,bi)})}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(me.trigger(this._element,_i).defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._element.style.overflowY;"hidden"===e||this._element.classList.contains(xi)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(xi),this._queueCallback(()=>{this._element.classList.remove(xi),this._queueCallback(()=>{this._element.style.overflowY=e},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),s=e>0;if(s&&!t){const t=Yt()?"paddingLeft":"paddingRight";this._element.style[t]=`${e}px`}if(!s&&t){const t=Yt()?"paddingRight":"paddingLeft";this._element.style[t]=`${e}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each(function(){const s=Di.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===s[t])throw new TypeError(`No method named "${t}"`);s[t](e)}})}}me.on(document,Ci,'[data-bs-toggle="modal"]',function(t){const e=Se.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),me.one(e,vi,t=>{t.defaultPrevented||me.one(e,bi,()=>{Vt(this)&&this.focus()})});const s=Se.findOne(".modal.show");s&&Di.getInstance(s).hide();Di.getOrCreateInstance(e).toggle(this)}),Ce(Di),Gt(Di);const $i=".bs.offcanvas",Ni=".data-api",Mi=`load${$i}${Ni}`,Pi="show",Ii="showing",ji="hiding",Bi=".offcanvas.show",Fi=`show${$i}`,qi=`shown${$i}`,Hi=`hide${$i}`,zi=`hidePrevented${$i}`,Vi=`hidden${$i}`,Wi=`resize${$i}`,Ri=`click${$i}${Ni}`,Ui=`keydown.dismiss${$i}`,Ki={backdrop:!0,keyboard:!0,scroll:!1},Qi={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Xi extends Ae{constructor(t,e){super(t,e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Ki}static get DefaultType(){return Qi}static get NAME(){return"offcanvas"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown)return;if(me.trigger(this._element,Fi,{relatedTarget:t}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||(new fi).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Ii);this._queueCallback(()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(Pi),this._element.classList.remove(Ii),me.trigger(this._element,qi,{relatedTarget:t})},this._element,!0)}hide(){if(!this._isShown)return;if(me.trigger(this._element,Hi).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(ji),this._backdrop.hide();this._queueCallback(()=>{this._element.classList.remove(Pi,ji),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new fi).reset(),me.trigger(this._element,Vi)},this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=Boolean(this._config.backdrop);return new si({className:"offcanvas-backdrop",isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?()=>{"static"!==this._config.backdrop?this.hide():me.trigger(this._element,zi)}:null})}_initializeFocusTrap(){return new ci({trapElement:this._element})}_addEventListeners(){me.on(this._element,Ui,t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():me.trigger(this._element,zi))})}static jQueryInterface(t){return this.each(function(){const e=Xi.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}})}}me.on(document,Ri,'[data-bs-toggle="offcanvas"]',function(t){const e=Se.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),Wt(this))return;me.one(e,Vi,()=>{Vt(this)&&this.focus()});const s=Se.findOne(Bi);s&&s!==e&&Xi.getInstance(s).hide();Xi.getOrCreateInstance(e).toggle(this)}),me.on(window,Mi,()=>{for(const t of Se.find(Bi))Xi.getOrCreateInstance(t).show()}),me.on(window,Wi,()=>{for(const t of Se.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(t).position&&Xi.getOrCreateInstance(t).hide()}),Ce(Xi),Gt(Xi);const Yi={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],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:[]},Gi=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Zi=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Ji=(t,e)=>{const s=t.nodeName.toLowerCase();return e.includes(s)?!Gi.has(s)||Boolean(Zi.test(t.nodeValue)):e.filter(t=>t instanceof RegExp).some(t=>t.test(s))};const tn={allowList:Yi,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},en={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},sn={entry:"(string|element|function|null)",selector:"(string|element)"};class nn extends we{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return tn}static get DefaultType(){return en}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map(t=>this._resolvePossibleFunction(t)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[e,s]of Object.entries(this._config.content))this._setContent(t,s,e);const e=t.children[0],s=this._resolvePossibleFunction(this._config.extraClass);return s&&e.classList.add(...s.split(" ")),e}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[e,s]of Object.entries(t))super._typeCheckConfig({selector:e,entry:s},sn)}_setContent(t,e,s){const i=Se.findOne(s,t);i&&((e=this._resolvePossibleFunction(e))?Ht(e)?this._putElementInTemplate(zt(e),i):this._config.html?i.innerHTML=this._maybeSanitize(e):i.textContent=e:i.remove())}_maybeSanitize(t){return this._config.sanitize?function(t,e,s){if(!t.length)return t;if(s&&"function"==typeof s)return s(t);const i=(new window.DOMParser).parseFromString(t,"text/html"),n=[].concat(...i.body.querySelectorAll("*"));for(const t of n){const s=t.nodeName.toLowerCase();if(!Object.keys(e).includes(s)){t.remove();continue}const i=[].concat(...t.attributes),n=[].concat(e["*"]||[],e[s]||[]);for(const e of i)Ji(e,n)||t.removeAttribute(e.nodeName)}return i.body.innerHTML}(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return Zt(t,[void 0,this])}_putElementInTemplate(t,e){if(this._config.html)return e.innerHTML="",void e.append(t);e.textContent=t.textContent}}const on=new Set(["sanitize","allowList","sanitizeFn"]),rn="fade",an="show",ln=".tooltip-inner",cn=".modal",dn="hide.bs.modal",hn="hover",un="focus",pn="click",fn={AUTO:"auto",TOP:"top",RIGHT:Yt()?"left":"right",BOTTOM:"bottom",LEFT:Yt()?"right":"left"},gn={allowList:Yi,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},mn={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class _n extends Ae{constructor(t,e){if(void 0===Mt)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");super(t,e),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return gn}static get DefaultType(){return mn}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),me.off(this._element.closest(cn),dn,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const t=me.trigger(this._element,this.constructor.eventName("show")),e=(Rt(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!e)return;this._disposePopper();const s=this._getTipElement();this._element.setAttribute("aria-describedby",s.getAttribute("id"));const{container:i}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(i.append(s),me.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(s),s.classList.add(an),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))me.on(t,"mouseover",Ut);this._queueCallback(()=>{me.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}hide(){if(!this._isShown())return;if(me.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented)return;if(this._getTipElement().classList.remove(an),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))me.off(t,"mouseover",Ut);this._activeTrigger[pn]=!1,this._activeTrigger[un]=!1,this._activeTrigger[hn]=!1,this._isHovered=null;this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),me.trigger(this._element,this.constructor.eventName("hidden")))},this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){const e=this._getTemplateFactory(t).toHtml();if(!e)return null;e.classList.remove(rn,an),e.classList.add(`bs-${this.constructor.NAME}-auto`);const s=(t=>{do{t+=Math.floor(1e6*Math.random())}while(document.getElementById(t));return t})(this.constructor.NAME).toString();return e.setAttribute("id",s),this._isAnimated()&&e.classList.add(rn),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new nn({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[ln]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(rn)}_isShown(){return this.tip&&this.tip.classList.contains(an)}_createPopper(t){const e=Zt(this._config.placement,[this,t,this._element]),s=fn[e.toUpperCase()];return Nt(this._element,t,this._getPopperConfig(s))}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map(t=>Number.parseInt(t,10)):"function"==typeof t?e=>t(e,this._element):t}_resolvePossibleFunction(t){return Zt(t,[this._element,this._element])}_getPopperConfig(t){const e={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:t=>{this._getTipElement().setAttribute("data-popper-placement",t.state.placement)}}]};return{...e,...Zt(this._config.popperConfig,[void 0,e])}}_setListeners(){const t=this._config.trigger.split(" ");for(const e of t)if("click"===e)me.on(this._element,this.constructor.eventName("click"),this._config.selector,t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger[pn]=!(e._isShown()&&e._activeTrigger[pn]),e.toggle()});else if("manual"!==e){const t=e===hn?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),s=e===hn?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");me.on(this._element,t,this._config.selector,t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusin"===t.type?un:hn]=!0,e._enter()}),me.on(this._element,s,this._config.selector,t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusout"===t.type?un:hn]=e._element.contains(t.relatedTarget),e._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},me.on(this._element.closest(cn),dn,this._hideModalHandler)}_fixTitle(){const t=this._element.getAttribute("title");t&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(t,e){clearTimeout(this._timeout),this._timeout=setTimeout(t,e)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const e=ye.getDataAttributes(this._element);for(const t of Object.keys(e))on.has(t)&&delete e[t];return t={...e,..."object"==typeof t&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=!1===t.container?document.body:zt(t.container),"number"==typeof 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()),t}_getDelegateConfig(){const t={};for(const[e,s]of Object.entries(this._config))this.constructor.Default[e]!==s&&(t[e]=s);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each(function(){const e=_n.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}}Gt(_n);const bn=".popover-header",vn=".popover-body",yn={..._n.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},wn={..._n.DefaultType,content:"(null|string|element|function)"};class An extends _n{static get Default(){return yn}static get DefaultType(){return wn}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[bn]:this._getTitle(),[vn]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){const e=An.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}}Gt(An);const En=".bs.scrollspy",Sn=`activate${En}`,Cn=`click${En}`,Tn=`load${En}.data-api`,Ln="active",xn="[href]",On=".nav-link",kn=`${On}, .nav-item > ${On}, .list-group-item`,Dn={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},$n={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Nn extends Ae{constructor(t,e){super(t,e),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return Dn}static get DefaultType(){return $n}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=zt(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin,"string"==typeof t.threshold&&(t.threshold=t.threshold.split(",").map(t=>Number.parseFloat(t))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(me.off(this._config.target,Cn),me.on(this._config.target,Cn,xn,t=>{const e=this._observableSections.get(t.target.hash);if(e){t.preventDefault();const s=this._rootElement||window,i=e.offsetTop-this._element.offsetTop;if(s.scrollTo)return void s.scrollTo({top:i,behavior:"smooth"});s.scrollTop=i}}))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(t=>this._observerCallback(t),t)}_observerCallback(t){const e=t=>this._targetLinks.get(`#${t.target.id}`),s=t=>{this._previousScrollData.visibleEntryTop=t.target.offsetTop,this._process(e(t))},i=(this._rootElement||document.documentElement).scrollTop,n=i>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=i;for(const o of t){if(!o.isIntersecting){this._activeTarget=null,this._clearActiveClass(e(o));continue}const t=o.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(n&&t){if(s(o),!i)return}else n||t||s(o)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=Se.find(xn,this._config.target);for(const e of t){if(!e.hash||Wt(e))continue;const t=Se.findOne(decodeURI(e.hash),this._element);Vt(t)&&(this._targetLinks.set(decodeURI(e.hash),e),this._observableSections.set(e.hash,t))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(Ln),this._activateParents(t),me.trigger(this._element,Sn,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains("dropdown-item"))Se.findOne(".dropdown-toggle",t.closest(".dropdown")).classList.add(Ln);else for(const e of Se.parents(t,".nav, .list-group"))for(const t of Se.prev(e,kn))t.classList.add(Ln)}_clearActiveClass(t){t.classList.remove(Ln);const e=Se.find(`${xn}.${Ln}`,t);for(const t of e)t.classList.remove(Ln)}static jQueryInterface(t){return this.each(function(){const e=Nn.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}})}}me.on(window,Tn,()=>{for(const t of Se.find('[data-bs-spy="scroll"]'))Nn.getOrCreateInstance(t)}),Gt(Nn);const Mn=".bs.tab",Pn=`hide${Mn}`,In=`hidden${Mn}`,jn=`show${Mn}`,Bn=`shown${Mn}`,Fn=`click${Mn}`,qn=`keydown${Mn}`,Hn=`load${Mn}`,zn="ArrowLeft",Vn="ArrowRight",Wn="ArrowUp",Rn="ArrowDown",Un="Home",Kn="End",Qn="active",Xn="fade",Yn="show",Gn=".dropdown-toggle",Zn=`:not(${Gn})`,Jn='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',to=`${`.nav-link${Zn}, .list-group-item${Zn}, [role="tab"]${Zn}`}, ${Jn}`,eo=`.${Qn}[data-bs-toggle="tab"], .${Qn}[data-bs-toggle="pill"], .${Qn}[data-bs-toggle="list"]`;class so extends Ae{constructor(t){super(t),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),me.on(this._element,qn,t=>this._keydown(t)))}static get NAME(){return"tab"}show(){const t=this._element;if(this._elemIsActive(t))return;const e=this._getActiveElem(),s=e?me.trigger(e,Pn,{relatedTarget:t}):null;me.trigger(t,jn,{relatedTarget:e}).defaultPrevented||s&&s.defaultPrevented||(this._deactivate(e,t),this._activate(t,e))}_activate(t,e){if(!t)return;t.classList.add(Qn),this._activate(Se.getElementFromSelector(t));this._queueCallback(()=>{"tab"===t.getAttribute("role")?(t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),me.trigger(t,Bn,{relatedTarget:e})):t.classList.add(Yn)},t,t.classList.contains(Xn))}_deactivate(t,e){if(!t)return;t.classList.remove(Qn),t.blur(),this._deactivate(Se.getElementFromSelector(t));this._queueCallback(()=>{"tab"===t.getAttribute("role")?(t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),me.trigger(t,In,{relatedTarget:e})):t.classList.remove(Yn)},t,t.classList.contains(Xn))}_keydown(t){if(![zn,Vn,Wn,Rn,Un,Kn].includes(t.key))return;t.stopPropagation(),t.preventDefault();const e=this._getChildren().filter(t=>!Wt(t));let s;if([Un,Kn].includes(t.key))s=e[t.key===Un?0:e.length-1];else{const i=[Vn,Rn].includes(t.key);s=te(e,t.target,i,!0)}s&&(s.focus({preventScroll:!0}),so.getOrCreateInstance(s).show())}_getChildren(){return Se.find(to,this._parent)}_getActiveElem(){return this._getChildren().find(t=>this._elemIsActive(t))||null}_setInitialAttributes(t,e){this._setAttributeIfNotExists(t,"role","tablist");for(const t of e)this._setInitialAttributesOnChild(t)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const e=this._elemIsActive(t),s=this._getOuterElement(t);t.setAttribute("aria-selected",e),s!==t&&this._setAttributeIfNotExists(s,"role","presentation"),e||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const e=Se.getElementFromSelector(t);e&&(this._setAttributeIfNotExists(e,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(e,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,e){const s=this._getOuterElement(t);if(!s.classList.contains("dropdown"))return;const i=(t,i)=>{const n=Se.findOne(t,s);n&&n.classList.toggle(i,e)};i(Gn,Qn),i(".dropdown-menu",Yn),s.setAttribute("aria-expanded",e)}_setAttributeIfNotExists(t,e,s){t.hasAttribute(e)||t.setAttribute(e,s)}_elemIsActive(t){return t.classList.contains(Qn)}_getInnerElement(t){return t.matches(to)?t:Se.findOne(to,t)}_getOuterElement(t){return t.closest(".nav-item, .list-group-item")||t}static jQueryInterface(t){return this.each(function(){const e=so.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}})}}me.on(document,Fn,Jn,function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),Wt(this)||so.getOrCreateInstance(this).show()}),me.on(window,Hn,()=>{for(const t of Se.find(eo))so.getOrCreateInstance(t)}),Gt(so);const io=".bs.toast",no=`mouseover${io}`,oo=`mouseout${io}`,ro=`focusin${io}`,ao=`focusout${io}`,lo=`hide${io}`,co=`hidden${io}`,ho=`show${io}`,uo=`shown${io}`,po="hide",fo="show",go="showing",mo={animation:"boolean",autohide:"boolean",delay:"number"},_o={animation:!0,autohide:!0,delay:5e3};class bo extends Ae{constructor(t,e){super(t,e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return _o}static get DefaultType(){return mo}static get NAME(){return"toast"}show(){if(me.trigger(this._element,ho).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");this._element.classList.remove(po),Kt(this._element),this._element.classList.add(fo,go),this._queueCallback(()=>{this._element.classList.remove(go),me.trigger(this._element,uo),this._maybeScheduleHide()},this._element,this._config.animation)}hide(){if(!this.isShown())return;if(me.trigger(this._element,lo).defaultPrevented)return;this._element.classList.add(go),this._queueCallback(()=>{this._element.classList.add(po),this._element.classList.remove(go,fo),me.trigger(this._element,co)},this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(fo),super.dispose()}isShown(){return this._element.classList.contains(fo)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=e;break;case"focusin":case"focusout":this._hasKeyboardInteraction=e}if(e)return void this._clearTimeout();const s=t.relatedTarget;this._element===s||this._element.contains(s)||this._maybeScheduleHide()}_setListeners(){me.on(this._element,no,t=>this._onInteraction(t,!0)),me.on(this._element,oo,t=>this._onInteraction(t,!1)),me.on(this._element,ro,t=>this._onInteraction(t,!0)),me.on(this._element,ao,t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){const e=bo.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t](this)}})}}Ce(bo),Gt(bo);class vo extends s{static get properties(){return{color:{description:"The color theme for the alert.",type:String,default:"success",values:["primary","secondary","success","danger","warning","info","light","dark"]},dismissible:{description:"Flag to indicate if the alert is dismissible.",type:Boolean,default:!1},fade:{description:"Flag to enable fade transition.",type:Boolean,default:!0},open:{description:"Controls the visibility of the alert.",type:Boolean,default:!0}}}static get bs(){return Oe}constructor(){super(),Object.defineProperty(this.constructor.prototype,"open",{get(){return this.classList.contains("show")}})}close(){return this.bs?.close()}firstUpdated(){this.classList.add("alert"),this.hasAttribute("role")||this.setAttribute("role","alert"),this._updateColorState(),this._updateFadeState(),this._updateDismissibleState(),this._updateOpenState(!0)}_updateColorState(){this.classList.remove(...this.constructor.properties.color.values.map(t=>"alert-"+t)),this.classList.add("alert-"+this.color)}_updateFadeState(){this.classList.toggle("fade",this.fade)}_updateDismissibleState(){this.classList.toggle("alert-dismissible",this.dismissible);const t=this.querySelector(":scope > .btn-close");this.dismissible?t||this.insertAdjacentHTML("beforeend",'<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>'):t&&t.remove()}_updateOpenState(t=!1){this.classList.toggle("show",this.__propValues.open)}}customElements.define("bs-alert",vo);class yo extends s{static get properties(){return{active:{description:"Indicates if the component is active.",type:Boolean,default:!1},color:{description:"Color theme for the button.",type:String,default:void 0,values:["primary","secondary","success","danger","warning","info","light","dark"]},outline:{description:"Indicates if the component should have an outline.",type:Boolean,default:!1},size:{description:"Size of the Button.",type:String,default:void 0,values:["sm","lg"]},toggle:{description:"Bootstrap toggle type.",type:String,default:void 0,values:["button","collapse","dropdown","modal","offcanvas","tab"]},target:{description:"Target selector for toggles (data-bs-target).",type:String,default:void 0}}}static get bs(){return De}constructor(){super(),Object.defineProperty(this.constructor.prototype,"active",{get(){return this.classList.contains("active")}})}firstUpdated(){this.hasAttribute("type")||this.setAttribute("type","button"),this._updateColorState(),this._updateOutlineState(),this._updateSizeState(),this._updateToggleState(),this._updateTargetState(),this._updateActiveState(!0)}_updateColorState(){this.classList.remove(...this.constructor.properties.color.values.map(t=>"btn-"+t)),this.classList.remove(...this.constructor.properties.color.values.map(t=>"btn-outline-"+t));const t=this.outline?`btn-outline-${this.color}`:`btn-${this.color}`;this.classList.add(t)}_updateOutlineState(){this._updateColorState()}_updateSizeState(){this.classList.remove(...this.constructor.properties.size.values.map(t=>"btn-"+t)),this.size&&this.classList.add("btn-"+this.size)}_updateToggleState(){this.toggle?this.setAttribute("data-bs-toggle",this.toggle):this.removeAttribute("data-bs-toggle")}_updateTargetState(){this.target?this.setAttribute("data-bs-target",this.target):this.removeAttribute("data-bs-target")}_updateActiveState(t=!1){t?(this.classList.toggle("active",!!this.__propValues.active),"button"===this.toggle?this.setAttribute("aria-pressed",this.active?"true":"false"):this.removeAttribute("aria-pressed")):this.toggle()}}customElements.define("bs-button",yo);class wo extends s{static get properties(){return{fade:{description:"",type:Boolean,default:!1},indicators:{description:"",type:Boolean,default:!0},interval:{description:"The time interval (in milliseconds) between automatic transitions of the carousel items.",type:Number,default:5e3,attribute:"data-bs-interval"},keyboard:{description:"A Boolean indicating whether the carousel should respond to keyboard navigation.",type:Boolean,default:!0,attribute:"data-bs-keyboard"},pause:{description:"A Boolean indicating whether automatic cycling of the carousel should pause on hover.",type:Boolean,default:!0,attribute:"data-bs-pause"},ride:{description:"A Boolean indicating whether the carousel should automatically cycle through items.",type:Boolean,default:!0,attribute:"data-bs-ride"},touch:{description:"A Boolean indicating whether the carousel should support left/right swipe interactions on touchscreen",type:Boolean,default:!0,attribute:"data-bs-touch"},wrap:{description:"A Boolean indicating whether the carousel should cycle continuously or have hard stops",type:Boolean,default:!0,attribute:"data-bs-wrap"}}}static get bs(){return hs}cycle(){return this.bs?.cycle()}next(){return this.bs?.next()}nextWhenVisible(){return this.bs?.nextWhenVisible()}pause(){return this.bs?.pause()}prev(){return this.bs?.prev()}to(t){return this.bs?.to(t)}firstUpdated(){this.classList.add("carousel"),this.classList.add("slide"),this._fixMarkup(),this._updateFadeState(),this._updateIndicatorsState()}_fixMarkup(){let t=this.querySelector(":scope > .carousel-inner");if(!t){t=document.createElement("div"),t.className="carousel-inner";const e=[];for(const t of Array.from(this.childNodes)){if(t.nodeType!==Node.ELEMENT_NODE)continue;const s=t;s.classList&&(s.classList.contains("carousel-indicators")||s.classList.contains("carousel-control-prev")||s.classList.contains("carousel-control-next")||s.classList.contains("carousel-inner"))||e.push(s)}e.forEach(e=>{if(e.classList&&e.classList.contains("carousel-item"))t.appendChild(e);else{const s=document.createElement("div");s.className="carousel-item",s.appendChild(e),t.appendChild(s)}}),this.appendChild(t)}Array.from(t.children).filter(t=>t.nodeType===Node.ELEMENT_NODE).forEach((e,s)=>{e.classList.add("carousel-item"),t.querySelector(".carousel-item.active")||0!==s||e.classList.add("active")}),this._ensureControls()}_renderIndicators(){let t=this.querySelector(":scope > .carousel-indicators");t&&t.remove();const e=this.querySelector(":scope > .carousel-inner");if(!e)return;t=document.createElement("div"),t.className="carousel-indicators";Array.from(e.children).filter(t=>t.nodeType===Node.ELEMENT_NODE).forEach((e,s)=>{const i=document.createElement("button");i.type="button",i.setAttribute("aria-label",`Slide ${s+1}`),i.className=0===s?"active":"",i.addEventListener("click",()=>this.to(s)),t.appendChild(i)}),this.insertBefore(t,e),this._renderIndicatorsActive()}_ensureControls(){if(!this.querySelector(":scope > .carousel-control-prev")){const t=document.createElement("button");t.className="carousel-control-prev",t.type="button",t.innerHTML='<span class="carousel-control-prev-icon" aria-hidden="true"></span><span class="visually-hidden">Previous</span>',t.addEventListener("click",()=>this.prev()),this.appendChild(t)}if(!this.querySelector(":scope > .carousel-control-next")){const t=document.createElement("button");t.className="carousel-control-next",t.type="button",t.innerHTML='<span class="carousel-control-next-icon" aria-hidden="true"></span><span class="visually-hidden">Next</span>',t.addEventListener("click",()=>this.next()),this.appendChild(t)}}_renderIndicatorsActive(){const t=this.querySelector(":scope > .carousel-indicators"),e=this.querySelector(":scope > .carousel-inner");if(!t||!e)return;const s=Array.from(e.children).filter(t=>t.nodeType===Node.ELEMENT_NODE).findIndex(t=>t.classList.contains("active"));Array.from(t.children).forEach((t,e)=>{t.classList.toggle("active",e===s),e===s?t.setAttribute("aria-current","true"):t.removeAttribute("aria-current")})}_updateFadeState(){this.classList.toggle("carousel-fade",!!this.fade)}_updateIndicatorsState(){if(this.indicators)this._renderIndicators();else{const t=this.querySelector(".carousel-indicators");t&&t.remove()}}}customElements.define("bs-carousel",wo);class Ao extends s{static get properties(){return{open:{description:"Toggle visible state",type:Boolean,default:!1},horizontal:{description:"Toggle horizontal collapsing",type:Boolean,default:!1},parent:{description:"Selector of the container element",type:String,default:void 0,attribute:"data-bs-parent"},toggle:{description:"Toggles the collapsible element",type:Boolean,default:!1,attribute:"data-bs-toggle"}}}static get bs(){return Cs}constructor(){super(),Object.defineProperty(this.constructor.prototype,"open",{get(){return this.classList.contains("show")}})}hide(){return this.bs?.hide()}show(){return this.bs?.show()}toggle(){return this.bs?.toggle()}firstUpdated(){this.classList.add("collapse"),this._updateHorizontalState(),this._updateOpenState(!0)}_updateHorizontalState(){this.horizontal?(this.classList.add("collapse-horizontal"),this.style.width||="0px"):(this.classList.remove("collapse-horizontal"),this.style.width="")}_updateOpenState(t=!1){t?this.classList.toggle("show",this.__propValues.open):this.toggle()}}customElements.define("bs-collapse",Ao);class Eo extends s{static get properties(){return{autoClose:{description:"A boolean indicating whether the Dropdown should automatically close when an item is selected.",type:Boolean,default:!0,attribute:"data-bs-auto-close"},direction:{description:"The direction of the Dropdown menu",type:String,default:"down",values:["down","start","end","up","down-center","up-center"]},open:{description:"A boolean indicating whether the Dropdown is currently open.",type:Boolean,default:!1}}}static get bs(){return Ys}constructor(){super(),Object.defineProperty(this.constructor.prototype,"open",{get(){return this.classList.contains("show")}})}hide(){return this.bs?.hide()}show(){return this.bs?.show()}toggle(){return this.bs?.toggle()}update(){return this.bs?.update()}firstUpdated(){this.classList.add("dropdown");const t=this.querySelector(':scope > [data-bs-toggle="dropdown"], :scope > .dropdown-toggle');t&&!t.hasAttribute("data-bs-toggle")&&t.setAttribute("data-bs-toggle","dropdown"),this._fixMarkup(),this._updateDirectionState(),this._updateOpenState(!0)}_fixMarkup(){const t=this.querySelector(":scope > div, :scope > .dropdown-menu");t&&!t.classList.contains("dropdown-menu")&&t.classList.add("dropdown-menu")}_updateDirectionState(){this.classList.remove(...this.constructor.properties.direction.values.map(t=>"drop"+t)),this.classList.add("drop"+this.direction)}_updateOpenState(t=!1){t?this.classList.toggle("show",this.__propValues.open):this.toggle()}}customElements.define("bs-dropdown",Eo);class So extends s{static get properties(){return{focus:{description:"Automatically puts focus on the modal with it first opens.",type:Boolean,default:!1,attribute:"data-bs-focus"},backdrop:{description:"Controls the visibility of the modal backdrop.",type:Boolean,default:!0,attribute:"data-bs-backdrop"},centered:{description:"Auto-positioning of the modal to ensure its centered in the viewport.",type:Boolean,default:!1},fade:{description:"Control the fade effect when opening or closing the modal.",type:Boolean,default:!0},fullscreen:{description:"Determines whether or no the modal is rendered in fullscreen mode.",type:String,default:"",values:["true","sm","md","lg","xl","xxl"]},header:{description:"Customize the modal header content.",type:String,default:void 0},open:{description:"Used to control the modal state",type:Boolean,default:!1},keyboard:{description:"Ccontrol whether the modal can be closed using the ESC key.",type:Boolean,default:!0,attribute:"data-bs-keyboard"},scrollable:{description:"Determines if the modal content should be scrollable.",type:Boolean,default:!1},size:{description:"Specify the size of the modal.",type:String,default:"",values:["sm","lg","xl"]}}}static get bs(){return Di}constructor(){super(),Object.defineProperty(this.constructor.prototype,"open",{get(){return this.classList.contains("show")}})}handleUpdate(){return this.bs?.handleUpdate()}hide(){return this.bs?.hide()}show(){return this.bs?.show()}toggle(){return this.bs?.toggle()}firstUpdated(){this.classList.add("modal"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","-1"),this._fixMarkup(),this._updateFadeState(),this._updateCenteredState(),this._updateScrollableState(),this._updateSizeState(),this._updateFullscreenState(),this._updateOpenState(!0)}_fixMarkup(){let t=this.querySelector(":scope > .modal-dialog");if(t)return;t=document.createElement("div"),t.classList.add("modal-dialog");const e=document.createElement("div");e.classList.add("modal-content");let s=this.querySelector(":scope > .modal-header");s||(s=document.createElement("div"),s.classList.add("modal-header"),s.insertAdjacentHTML("afterbegin",`<h5 class="modal-title">${this.header}</h5>`)),e.appendChild(s),s.querySelector(".btn-close")&&s.insertAdjacentHTML("beforeend",'<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>');let i=this.querySelector(":scope > .modal-body");i||(i=document.createElement("div"),i.classList.add("modal-body")),e.appendChild(i);let n=this.querySelector(":scope > .modal-footer");for(n&&e.appendChild(n);this.firstChild;)i.appendChild(this.firstChild);t.appendChild(e),this.appendChild(t)}_updateHeaderState(){const t=this.querySelector(":scope > .modal-dialog > .modal-header > .modal-title");t&&(t.textContent=this.header)}_updateFadeState(){this.classList.toggle("fade",this.fade)}_updateCenteredState(){const t=this.querySelector(":scope > .modal-dialog");t?.classList.toggle("modal-dialog-centered",this.centered)}_updateScrollableState(){const t=this.querySelector(":scope > .modal-dialog");t?.classList.toggle("modal-dialog-scrollable",this.scrollable)}_updateSizeState(){const t=this.querySelector(":scope > .modal-dialog");t?.classList.remove(...this.constructor.properties.size.values.map(t=>"modal-"+t)),this.size&&t?.classList.add(`modal-${this.size}`)}_updateFullscreenState(){const t=this.querySelector(":scope > .modal-dialog");t?.classList.remove(...this.constructor.properties.fullscreen.values.map(t=>"modal-fullscreen-"+t+"-down")),this.fullscreen&&t?.classList.add("true"===this.fullscreen?"modal-fullscreen":`modal-fullscreen-${this.fullscreen}-down`)}_updateOpenState(t=!1){t?this.classList.toggle("show",this.__propValues.open):this.toggle()}}customElements.define("bs-modal",So);class Co extends s{static get properties(){return{backdrop:{description:"Controls whether the backdrop is displayed behind the offcanvas.",type:Boolean,default:!0,attribute:"data-bs-backdrop"},fade:{description:"Controls whether to use a fade animation when opening/closing the offcanvas.",type:Boolean,default:!0},header:{description:"The header content of the offcanvas.",type:String,default:""},open:{description:"Used to control the modal state",type:Boolean,default:!1},keyboard:{description:"Controls whether keyboard interaction is enabled for closing the offcanvas.",type:Boolean,default:!0,attribute:"data-bs-keyboard"},placement:{description:"The placement of the offcanvas.",type:String,default:"start",values:["start","end","top","bottom"]},scroll:{description:"Controls whether to allow scrolling of the body when the offcanvas is open.",type:Boolean,default:!1,attribute:"data-bs-scroll"},size:{description:"Specify the size of the modal.",type:String,default:"",values:["sm","md","lg","xl","xxl"]}}}static get bs(){return Xi}constructor(){super(),Object.defineProperty(this.constructor.prototype,"open",{get(){return this.classList.contains("show")}})}hide(){return this.bs?.hide()}show(){return this.bs?.show()}toggle(){return this.bs?.toggle()}firstUpdated(){this.classList.add("offcanvas"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","-1"),this._fixMarkup(),this._updateFadeState(),this._updatePlacementState(),this._updateSizeState(),this._updateOpenState(!0)}_fixMarkup(){let t=this.querySelector(":scope > .offcanvas-header");t||(t=document.createElement("div"),t.classList.add("offcanvas-header"),t.insertAdjacentHTML("afterbegin",`<h5 class="offcanvas-title">${this.header??""}</h5>`),t.insertAdjacentHTML("beforeend",'<button type="button" class="btn-close text-reset" data-bs-dismiss="offcanvas" aria-label="Close"></button>'),this.appendChild(t)),t.querySelector(".btn-close")||t.insertAdjacentHTML("beforeend",'<button type="button" class="btn-close text-reset" data-bs-dismiss="offcanvas" aria-label="Close"></button>');let e=this.querySelector(":scope > .offcanvas-body");e||(e=document.createElement("div"),e.classList.add("offcanvas-body"),this.appendChild(e));for(const s of Array.from(this.childNodes))s!==t&&s!==e&&e.appendChild(s)}_updateHeaderState(){const t=this.querySelector(":scope > .offcanvas-header > .offcanvas-title");t&&(t.textContent=this.header??"")}_updateFadeState(){this.classList.toggle("fade",this.fade)}_updatePlacementState(){this.classList.remove(...this.constructor.properties.placement.values.map(t=>"offcanvas-"+t)),this.placement&&this.classList.add(`offcanvas-${this.placement}`)}_updateSizeState(){this.classList.remove(...this.constructor.properties.size.values.map(t=>"offcanvas-"+t)),this.size&&this.classList.add(`offcanvas-${this.size}`)}_updateOpenState(t=!1){t?this.classList.toggle("show",this.__propValues.open):this.toggle()}}customElements.define("bs-offcanvas",Co);class To extends s{static get properties(){return{animation:{description:"Flag to enable animation for the tooltip.",type:Boolean,default:!0,attribute:"data-bs-animation"},title:{description:"The title to be displayed within the tooltip.",type:String,default:"",attribute:"data-bs-title"},delay:{description:"The delay for showing the tooltip (in milliseconds).",type:Number,default:0,attribute:"data-bs-delay"},html:{description:"",type:Boolean,default:!1,attribute:"data-bs-html"},open:{description:"Controls the visibility of the tooltip.",type:Boolean,default:!1},placement:{description:"The preferred placement of the tooltip.",type:String,default:"top",attribute:"data-bs-placement"},trigger:{description:"The trigger action to open/close the popover.",type:String,default:"click",attribute:"data-bs-trigger"},container:{description:"the popover’s HTML appears within that element.",type:String,default:"body",attribute:"data-bs-container"}}}static get bs(){return _n}constructor(){super(),Object.defineProperty(this.constructor.prototype,"open",{get(){return this.bs?.tip&&this.bs?.tip.classList.contains("show")}})}disable(){return this.bs?.disable()}enable(){return this.bs?.enable()}hide(){return this.bs?.hide()}show(){return this.bs?.show()}toggle(){return this.bs?.toggle()}toggleEnabled(){return this.bs?.toggleEnabled()}setContent(){return this.bs?.setContent()}update(){return this.bs?.update()}firstUpdated(){this.hasAttribute("data-bs-toggle")||this.setAttribute("data-bs-toggle","tooltip"),this._updateOpenState(!0)}_updateOpenState(t=!1){t?this.classList.toggle("show",this.__propValues.open):this.toggle()}}customElements.define("bs-tooltip",To);class Lo extends To{static get properties(){return{...super.constructor.properties,content:{description:"The content to be displayed within the popover.",type:String,default:"",attribute:"data-bs-content"}}}static get bs(){return An}firstUpdated(){this.hasAttribute("data-bs-toggle")||this.setAttribute("data-bs-toggle","popover"),this._updateOpenState(!0)}}customElements.define("bs-popover",Lo);class xo extends s{static get properties(){return{fade:{description:"Control the fade effect when opening or closing the modal.",type:Boolean,default:!0},active:{description:"Whether the element is active or not",type:Boolean,default:!1}}}static get bs(){return so}constructor(){super(),Object.defineProperty(this.constructor.prototype,"active",{get(){return this.classList.contains("active")}})}show(){return this.bs?.show()}firstUpdated(){this.classList.add("tab-pane"),this.hasAttribute("role")||this.setAttribute("role","tabpanel"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0"),this._updateFadeState(),this._updateActiveState(!0)}_updateFadeState(){this.classList.toggle("fade",this.fade)}_updateActiveState(t=!1){const e=this.__propValues.active;t?(this.classList.toggle("show",e),this.classList.toggle("active",e)):e?this.show():(this.classList.toggle("show",!1),this.classList.toggle("active",!1))}}customElements.define("bs-tab",xo);class Oo extends s{static get properties(){return{color:{description:"Color of the Toast background.",type:String,default:"",values:["","primary","secondary","success","danger","warning","info","light","dark"]},header:{description:"Customize the modal header content.",type:String,default:void 0},autohide:{description:"Controls whether the Toast component autohides after a certain duration.",type:Boolean,default:!1,attribute:"data-bs-autohide"},delay:{description:"The time delay (in milliseconds) before the Toast component autohides.",type:Number,default:5e3,attribute:"data-bs-delay"},animation:{description:"Controls whether the Toast component fades in and out.",type:Boolean,default:!0,attribute:"data-bs-animation"},open:{description:"Controls whether the Toast component is initially open.",type:Boolean,default:!0},dismissible:{description:"Controls whether the Toast component is dismissible",type:Boolean,default:!0}}}static get bs(){return bo}constructor(){super(),Object.defineProperty(this.constructor.prototype,"open",{get(){return this.classList.contains("show")}})}hide(){return this.bs?.hide()}show(){return this.bs?.show()}isShown(){return this.bs?.isShown()}firstUpdated(){this.classList.add("toast"),this.hasAttribute("role")||this.setAttribute("role","alert"),this.hasAttribute("aria-live")||this.setAttribute("aria-live","assertive"),this.hasAttribute("aria-atomic")||this.setAttribute("aria-atomic","true"),this._fixMarkup(),this._updateHeaderState(),this._updateDismissibleState(),this._updateColorState(),this._updateOpenState(!0)}_fixMarkup(){let t=this.querySelector(":scope > .toast-header");!t&&this.header&&(t=document.createElement("div"),t.classList.add("toast-header"),t.insertAdjacentHTML("afterbegin",`<strong class="me-auto">${this.header}</strong>`),this.appendChild(t));let e=this.querySelector(":scope > .toast-body");if(!e){e=document.createElement("div"),e.classList.add("toast-body");for(let t=0;t<this.childNodes.length;t++)this.childNodes[t].classList?.contains("toast-header")||e.appendChild(this.childNodes[t]);this.appendChild(e)}}_updateHeaderState(){let t=this.querySelector(":scope > .toast-header");!t&&this.header&&(this._fixMarkup(),t=this.querySelector(":scope > .toast-header"),t.textContent=this.header||""),t&&!this.header&&t.remove()}_updateDismissibleState(){const t=this.querySelector(".btn-close");this.dismissible?t||this.firstChild?.insertAdjacentHTML("beforeend",'<button type="button" class="btn-close ms-2 mb-1" data-bs-dismiss="toast" aria-label="Close"></button>'):t&&t.remove()}_updateColorState(){this.classList.remove(...this.constructor.properties.color.values.map(t=>"bg-"+t)),this.color&&this.classList.add("bg-"+this.color),""===this.color||"light"===this.color||"warning"===this.color?this.classList.remove("text-white"):this.classList.add("text-white")}_updateOpenState(t=!1){const e=this.__propValues.open;t?this.classList.toggle("show",e):e?this.show():this.hide()}}return customElements.define("bs-toast",Oo),t.BsAccordion=i,t.BsAlert=vo,t.BsButton=yo,t.BsCarousel=wo,t.BsCollapse=Ao,t.BsDropdown=Eo,t.BsModal=So,t.BsOffcanvas=Co,t.BsPopover=Lo,t.BsTab=xo,t.BsToast=Oo,t.BsTooltip=To,t}({});
|
|
8
|
+
//# sourceMappingURL=bs-elements.bundle.min.js.map
|