Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bootstrap.native

Package Overview
Dependencies
Maintainers
1
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bootstrap.native - npm Package Compare versions

Comparing version 5.0.3 to 5.0.4

16

cypress/e2e/button.cy.ts

@@ -92,16 +92,10 @@ /// <reference types="cypress" />

})
.get('@instance')
.should('be.instanceOf', Button)
.should(instance => {
cy.get('@instance').should('be.instanceOf', Button)
.and(instance => {
// @ts-ignore
instance.dispose();
})
.get('@instance')
.its('element')
.should('be.undefined')
.get('@instance')
.its('active')
.should('be.undefined')
.get('@instance')
.invoke('toggle')
cy.get('@instance').its('element').should('be.undefined')
cy.get('@instance').its('active').should('be.undefined')
cy.get('@instance').its('toggle').should('be.undefined')
.then(() => {

@@ -108,0 +102,0 @@ cy.log(`Button can do nothing now with this **instance**`);

@@ -33,6 +33,4 @@ export interface BaseOptions {

* removes the element from the DOM.
*
* @param e the `click` event
*/
close(e?: Event): void;
close: () => void;
/** Remove the component from target element. */

@@ -60,3 +58,3 @@ dispose(): void;

*/
toggle(e: Event): void;
toggle: (e: Event) => void;
/** Removes the `Button` component from the target element. */

@@ -239,3 +237,3 @@ dispose(): void;

*/
update(): void;
update: () => void;
/** Removes the `Modal` component from target element. */

@@ -328,9 +326,10 @@ dispose(): void;

/** Shows the tooltip. */
show(): void;
show: () => void;
_show(): void;
/** Hides the tooltip. */
hide(): void;
hide: () => void;
/** Updates the tooltip position. */
update(): void;
update: () => void;
/** Toggles the tooltip visibility. */
toggle(): void;
toggle: () => void;
/** Enables the tooltip. */

@@ -348,3 +347,3 @@ enable(): void;

*/
handleTouch({ target }: TouchEvent): void;
handleTouch: (this: Tooltip, { target }: TouchEvent) => void;
/** Removes the `Tooltip` from the target element. */

@@ -379,3 +378,3 @@ dispose(): void;

get defaults(): PopoverOptions;
show(): void;
show: () => void;
}

@@ -415,3 +414,3 @@ export interface ScrollSpyOptions extends BaseOptions {

/** Updates all items. */
refresh(): void;
refresh: () => void;
/** Removes `ScrollSpy` from the target element. */

@@ -477,5 +476,5 @@ dispose(): void;

/** Shows the toast. */
show(): void;
show: () => void;
/** Hides the toast. */
hide(): void;
hide: () => void;
/** Removes the `Toast` component from the target element. */

@@ -482,0 +481,0 @@ dispose(): void;

@@ -1,2 +0,2 @@

var BSN=function(N){"use strict";var C={};(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n={},s=c=>{const{type:m,currentTarget:h}=c;[...n[m]].forEach(([p,v])=>{h===p&&[...v].forEach(([b,S])=>{b.apply(p,[c]),typeof S=="object"&&S.once&&a(p,m,b,S)})})},o=(c,m,h,p)=>{n[m]||(n[m]=new Map);const v=n[m];v.has(c)||v.set(c,new Map);const b=v.get(c),{size:S}=b;b.set(h,p),S||c.addEventListener(m,s,p)},a=(c,m,h,p)=>{const v=n[m],b=v&&v.get(c),S=b&&b.get(h),R=S!==void 0?S:p;b&&b.has(h)&&b.delete(h),v&&(!b||!b.size)&&v.delete(c),(!v||!v.size)&&delete n[m],(!b||!b.size)&&c.removeEventListener(m,s,R)},r=o,d=a;t.addListener=o,t.globalListener=s,t.off=d,t.on=r,t.registry=n,t.removeListener=a})(C);var e={};(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n="aria-checked",s="aria-description",o="aria-describedby",a="aria-expanded",r="aria-haspopup",d="aria-hidden",c="aria-label",m="aria-labelledby",h="aria-modal",p="aria-pressed",v="aria-selected",b="aria-valuemin",S="aria-valuemax",R="aria-valuenow",y="aria-valuetext",M="abort",z="beforeunload",le="blur",X="change",A="contextmenu",Y="DOMContentLoaded",U="DOMMouseScroll",L="error",O="focus",w="focusin",ce="focusout",x="gesturechange",D="gestureend",ee="gesturestart",ie="keydown",pe="keypress",te="keyup",ze="load",de="click",Pe="dblclick",We="mousedown",ae="mouseup",ne="hover",qe="mouseenter",Ee="mouseleave",be="mousein",Ce="mouseout",ye="mouseover",Me="mousemove",Fe="mousewheel",Et="move",ao="orientationchange",ro="pointercancel",lo="pointerdown",co="pointerleave",uo="pointermove",mo="pointerup",ho="readystatechange",go="reset",fo="resize",vo="select",po="selectend",Eo="selectstart",bo="scroll",Co="submit",yo="touchstart",To="touchmove",wo="touchcancel",So="touchend",Ao="unload",Na={DOMContentLoaded:Y,DOMMouseScroll:U,abort:M,beforeunload:z,blur:le,change:X,click:de,contextmenu:A,dblclick:Pe,error:L,focus:O,focusin:w,focusout:ce,gesturechange:x,gestureend:D,gesturestart:ee,hover:ne,keydown:ie,keypress:pe,keyup:te,load:ze,mousedown:We,mousemove:Me,mousein:be,mouseout:Ce,mouseenter:qe,mouseleave:Ee,mouseover:ye,mouseup:ae,mousewheel:Fe,move:Et,orientationchange:ao,pointercancel:ro,pointerdown:lo,pointerleave:co,pointermove:uo,pointerup:mo,readystatechange:ho,reset:go,resize:fo,scroll:bo,select:vo,selectend:po,selectstart:Eo,submit:Co,touchcancel:wo,touchend:So,touchmove:To,touchstart:yo,unload:Ao},Pa="drag",Ma="dragstart",Oa="dragenter",Ba="dragleave",Ra="dragover",za="dragend",Wa="loadstart",qa={start:"mousedown",end:"mouseup",move:"mousemove",cancel:"mouseleave"},Fa={down:"mousedown",up:"mouseup"},ja="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],Va={start:"touchstart",end:"touchend",move:"touchmove",cancel:"touchcancel"},Ua={in:"focusin",out:"focusout"},Ka={Backspace:"Backspace",Tab:"Tab",Enter:"Enter",Shift:"Shift",Control:"Control",Alt:"Alt",Pause:"Pause",CapsLock:"CapsLock",Escape:"Escape",Scape:"Space",ArrowLeft:"ArrowLeft",ArrowUp:"ArrowUp",ArrowRight:"ArrowRight",ArrowDown:"ArrowDown",Insert:"Insert",Delete:"Delete",Meta:"Meta",ContextMenu:"ContextMenu",ScrollLock:"ScrollLock"},Qa="Alt",Xa="ArrowDown",Ya="ArrowUp",Ga="ArrowLeft",Ja="ArrowRight",Za="Backspace",_a="CapsLock",xa="Control",er="Delete",tr="Enter",nr="Escape",sr="Insert",or="Meta",ir="Pause",ar="ScrollLock",rr="Shift",lr="Space",cr="Tab",Do="animationDuration",$o="animationDelay",an="animationName",bt="animationend",Ho="transitionDuration",Lo="transitionDelay",Ct="transitionend",rn="transitionProperty",dr="addEventListener",ur="removeEventListener",mr={linear:"linear",easingSinusoidalIn:"cubic-bezier(0.47,0,0.745,0.715)",easingSinusoidalOut:"cubic-bezier(0.39,0.575,0.565,1)",easingSinusoidalInOut:"cubic-bezier(0.445,0.05,0.55,0.95)",easingQuadraticIn:"cubic-bezier(0.550,0.085,0.680,0.530)",easingQuadraticOut:"cubic-bezier(0.250,0.460,0.450,0.940)",easingQuadraticInOut:"cubic-bezier(0.455,0.030,0.515,0.955)",easingCubicIn:"cubic-bezier(0.55,0.055,0.675,0.19)",easingCubicOut:"cubic-bezier(0.215,0.61,0.355,1)",easingCubicInOut:"cubic-bezier(0.645,0.045,0.355,1)",easingQuarticIn:"cubic-bezier(0.895,0.03,0.685,0.22)",easingQuarticOut:"cubic-bezier(0.165,0.84,0.44,1)",easingQuarticInOut:"cubic-bezier(0.77,0,0.175,1)",easingQuinticIn:"cubic-bezier(0.755,0.05,0.855,0.06)",easingQuinticOut:"cubic-bezier(0.23,1,0.32,1)",easingQuinticInOut:"cubic-bezier(0.86,0,0.07,1)",easingExponentialIn:"cubic-bezier(0.95,0.05,0.795,0.035)",easingExponentialOut:"cubic-bezier(0.19,1,0.22,1)",easingExponentialInOut:"cubic-bezier(1,0,0,1)",easingCircularIn:"cubic-bezier(0.6,0.04,0.98,0.335)",easingCircularOut:"cubic-bezier(0.075,0.82,0.165,1)",easingCircularInOut:"cubic-bezier(0.785,0.135,0.15,0.86)",easingBackIn:"cubic-bezier(0.6,-0.28,0.735,0.045)",easingBackOut:"cubic-bezier(0.175,0.885,0.32,1.275)",easingBackInOut:"cubic-bezier(0.68,-0.55,0.265,1.55)"},hr="offsetHeight",gr="offsetWidth",fr="scrollHeight",vr="scrollWidth",pr="tabindex",Er=navigator.userAgentData,Ze=Er,{userAgent:br}=navigator,_e=br,ko=/iPhone|iPad|iPod|Android/i;let ln=!1;Ze?ln=Ze.brands.some(i=>ko.test(i.brand)):ln=ko.test(_e);const Cr=ln,Io=/(iPhone|iPod|iPad)/,yr=Ze?Ze.brands.some(i=>Io.test(i.brand)):Io.test(_e),Tr=_e?_e.includes("Firefox"):!1,{head:xe}=document,wr=["webkitPerspective","perspective"].some(i=>i in xe.style),No=(i,l,u,g)=>{const f=g||!1;i.addEventListener(l,u,f)},Po=(i,l,u,g)=>{const f=g||!1;i.removeEventListener(l,u,f)},Mo=(i,l,u,g)=>{const f=I=>{(I.target===i||I.currentTarget===i)&&(u.apply(i,[I]),Po(i,l,f,g))};No(i,l,f,g)},Oo=()=>{},Sr=(()=>{let i=!1;try{const l=Object.defineProperty({},"passive",{get:()=>(i=!0,i)});Mo(document,Y,Oo,l)}catch{}return i})(),Ar=["webkitTransform","transform"].some(i=>i in xe.style),Dr="ontouchstart"in window||"msMaxTouchPoints"in navigator,$r=["webkitAnimation","animation"].some(i=>i in xe.style),Hr=["webkitTransition","transition"].some(i=>i in xe.style),Bo=(i,l)=>i.getAttribute(l),Lr=(i,l,u)=>l.getAttributeNS(i,u),kr=(i,l)=>i.hasAttribute(l),Ir=(i,l,u)=>l.hasAttributeNS(i,u),Nr=(i,l,u)=>i.setAttribute(l,u),Pr=(i,l,u,g)=>l.setAttributeNS(i,u,g),Mr=(i,l)=>i.removeAttribute(l),Or=(i,l,u)=>l.removeAttributeNS(i,u),Br=(i,...l)=>{i.classList.add(...l)},Rr=(i,...l)=>{i.classList.remove(...l)},zr=(i,l)=>i.classList.contains(l),{body:Wr}=document,{documentElement:qr}=document,Fr=i=>Array.from(i),ue=i=>i!=null&&typeof i=="object"||!1,k=i=>ue(i)&&typeof i.nodeType=="number"&&[1,2,3,4,5,6,7,8,9,10,11].some(l=>i.nodeType===l)||!1,W=i=>k(i)&&i.nodeType===1||!1,et=new Map,yt={set:(i,l,u)=>{W(i)&&(et.has(l)||et.set(l,new Map),et.get(l).set(i,u))},getAllFor:i=>et.get(i)||null,get:(i,l)=>{if(!W(i)||!l)return null;const u=yt.getAllFor(l);return i&&u&&u.get(i)||null},remove:(i,l)=>{const u=yt.getAllFor(l);!u||!W(i)||(u.delete(i),u.size===0&&et.delete(l))}},jr=(i,l)=>yt.get(i,l),tt=i=>typeof i=="string"||!1,cn=i=>ue(i)&&i.constructor.name==="Window"||!1,dn=i=>k(i)&&i.nodeType===9||!1,se=i=>cn(i)?i.document:dn(i)?i:k(i)?i.ownerDocument:window.document,nt=(i,...l)=>Object.assign(i,...l),Ro=i=>{if(!i)return;if(tt(i))return se().createElement(i);const{tagName:l}=i,u=Ro(l);if(!u)return;const g={...i};return delete g.tagName,nt(u,g)},zo=(i,l)=>{if(!i||!l)return;if(tt(l))return se().createElementNS(i,l);const{tagName:u}=l,g=zo(i,u);if(!g)return;const f={...l};return delete f.tagName,nt(g,f)},un=(i,l)=>i.dispatchEvent(l),Vr=(i,l,u)=>u.indexOf(i)===l,me=(i,l)=>{const u=getComputedStyle(i),g=l.replace("webkit","Webkit").replace(/([A-Z])/g,"-$1").toLowerCase();return u.getPropertyValue(g)},Wo=i=>{const l=me(i,an),u=me(i,$o),g=u.includes("ms")?1:1e3,f=l&&l!=="none"?parseFloat(u)*g:0;return Number.isNaN(f)?0:f},qo=i=>{const l=me(i,an),u=me(i,Do),g=u.includes("ms")?1:1e3,f=l&&l!=="none"?parseFloat(u)*g:0;return Number.isNaN(f)?0:f},Ur=(i,l)=>{let u=0;const g=new Event(bt),f=qo(i),I=Wo(i);if(f){const B=G=>{G.target===i&&(l.apply(i,[G]),i.removeEventListener(bt,B),u=1)};i.addEventListener(bt,B),setTimeout(()=>{u||un(i,g)},f+I+17)}else l.apply(i,[g])},Fo=i=>{const l=me(i,rn),u=me(i,Lo),g=u.includes("ms")?1:1e3,f=l&&l!=="none"?parseFloat(u)*g:0;return Number.isNaN(f)?0:f},jo=i=>{const l=me(i,rn),u=me(i,Ho),g=u.includes("ms")?1:1e3,f=l&&l!=="none"?parseFloat(u)*g:0;return Number.isNaN(f)?0:f},Kr=(i,l)=>{let u=0;const g=new Event(Ct),f=jo(i),I=Fo(i);if(f){const B=G=>{G.target===i&&(l.apply(i,[G]),i.removeEventListener(Ct,B),u=1)};i.addEventListener(Ct,B),setTimeout(()=>{u||un(i,g)},f+I+17)}else l.apply(i,[g])},Qr=i=>Float32Array.from(Array.from(i)),Xr=i=>Float64Array.from(Array.from(i)),Yr=(i,l)=>i.focus(l),mn=i=>["true",!0].includes(i)?!0:["false",!1].includes(i)?!1:["null","",null,void 0].includes(i)?null:i!==""&&!Number.isNaN(+i)?+i:i,st=i=>Object.entries(i),Vo=i=>i.toLowerCase(),Gr=(i,l,u,g)=>{const f={...u},I={...i.dataset},B={...l},G={},we="title";return st(I).forEach(([H,Se])=>{const wt=g&&typeof H=="string"&&H.includes(g)?H.replace(g,"").replace(/[A-Z]/g,Pl=>Vo(Pl)):H;G[wt]=mn(Se)}),st(f).forEach(([H,Se])=>{f[H]=mn(Se)}),st(l).forEach(([H,Se])=>{H in f?B[H]=f[H]:H in G?B[H]=G[H]:B[H]=H===we?Bo(i,we):Se}),B},Jr=(i,l)=>ue(i)&&(Object.hasOwn(i,l)||l in i),Zr=i=>Object.keys(i),_r=i=>Object.values(i),xr=(i,l)=>{const u=new CustomEvent(i,{cancelable:!0,bubbles:!0});return ue(l)&&nt(u,l),u},el={passive:!0},tl=i=>i.offsetHeight,nl=(i,l)=>{st(l).forEach(([u,g])=>{if(g&&tt(u)&&u.includes("--"))i.style.setProperty(u,g);else{const f={};f[u]=g,nt(i.style,f)}})},Tt=i=>ue(i)&&i.constructor.name==="Map"||!1,Uo=i=>typeof i=="number"||!1,Te=new Map,sl={set:(i,l,u,g)=>{W(i)&&(g&&g.length?(Te.has(i)||Te.set(i,new Map),Te.get(i).set(g,setTimeout(l,u))):Te.set(i,setTimeout(l,u)))},get:(i,l)=>{if(!W(i))return null;const u=Te.get(i);return l&&u&&Tt(u)?u.get(l)||null:Uo(u)?u:null},clear:(i,l)=>{if(!W(i))return;const u=Te.get(i);l&&l.length&&Tt(u)?(clearTimeout(u.get(l)),u.delete(l),u.size===0&&Te.delete(i)):(clearTimeout(u),Te.delete(i))}},ol=i=>i.toUpperCase(),je=(i,l)=>{const{width:u,height:g,top:f,right:I,bottom:B,left:G}=i.getBoundingClientRect();let we=1,H=1;if(l&&W(i)){const{offsetWidth:Se,offsetHeight:wt}=i;we=Se>0?Math.round(u)/Se:1,H=wt>0?Math.round(g)/wt:1}return{width:u/we,height:g/H,top:f/H,right:I/we,bottom:B/H,left:G/we,x:G/we,y:f/H}},il=i=>se(i).body,ot=i=>se(i).documentElement,al=i=>se(i).head,rl=i=>{const l=cn(i),u=l?i.scrollX:i.scrollLeft,g=l?i.scrollY:i.scrollTop;return{x:u,y:g}},Ko=i=>k(i)&&i.constructor.name==="ShadowRoot"||!1,ll=i=>i.nodeName==="HTML"?i:W(i)&&i.assignedSlot||k(i)&&i.parentNode||Ko(i)&&i.host||ot(i),Qo=i=>{if(!W(i))return!1;const{width:l,height:u}=je(i),{offsetWidth:g,offsetHeight:f}=i;return Math.round(l)!==g||Math.round(u)!==f},cl=(i,l,u)=>{const g=W(l),f=je(i,g&&Qo(l)),I={x:0,y:0};if(g){const B=je(l,!0);I.x=B.x+l.clientLeft,I.y=B.y+l.clientTop}return{x:f.left+u.x-I.x,y:f.top+u.y-I.y,width:f.width,height:f.height}};let Xo=0,Yo=0;const Ve=new Map,Go=(i,l)=>{let u=l?Xo:Yo;if(l){const g=Go(i),f=Ve.get(g)||new Map;Ve.has(g)||Ve.set(g,f),Tt(f)&&!f.has(l)?(f.set(l,u),Xo+=1):u=f.get(l)}else{const g=i.id||i;Ve.has(g)?u=Ve.get(g):(Ve.set(g,u),Yo+=1)}return u},dl=i=>i?dn(i)?i.defaultView:k(i)?i?.ownerDocument?.defaultView:i:window,Jo=i=>Array.isArray(i)||!1,ul=i=>k(i)&&i.nodeName==="CANVAS"||!1,Zo=i=>W(i)&&!!i.shadowRoot||!1,ml=i=>k(i)&&[1,2,3,4,5,6,7,8].some(l=>i.nodeType===l)||!1,hl=i=>{if(!k(i))return!1;const{top:l,bottom:u}=je(i),{clientHeight:g}=ot(i);return l<=g&&u>=0},gl=i=>{if(!k(i))return!1;const{clientWidth:l,clientHeight:u}=ot(i),{top:g,left:f,bottom:I,right:B}=je(i,!0);return g>=0&&f>=0&&I<=u&&B<=l},fl=i=>Jo(i)&&i.every(W)||!1,vl=i=>typeof i=="function"||!1,pl=i=>ue(i)&&i.constructor.name==="HTMLCollection"||!1,El=i=>W(i)&&i.tagName==="IMG"||!1,bl=i=>{if(!tt(i))return!1;try{JSON.parse(i)}catch{return!1}return!0},Cl=i=>ue(i)&&i.constructor.name==="WeakMap"||!1,yl=i=>k(i)&&["SVG","Image","Video","Canvas"].some(l=>i.constructor.name.includes(l))||!1,Tl=i=>ue(i)&&i.constructor.name==="NodeList"||!1,wl=i=>ot(i).dir==="rtl",Sl=i=>k(i)&&i.constructor.name.includes("SVG")||!1,Al=i=>k(i)&&["TABLE","TD","TH"].includes(i.nodeName)||!1,_o=(i,l)=>i?i.closest(l)||_o(i.getRootNode().host,l):null,Dl=(i,l)=>W(i)?i:(k(l)?l:se()).querySelector(i),xo=(i,l)=>(k(l)?l:se()).getElementsByTagName(i),$l=i=>[...xo("*",i)].filter(Zo),Hl=(i,l)=>se(l).getElementById(i)||null,Ll=(i,l)=>(k(l)?l:se()).querySelectorAll(i),kl=(i,l)=>(l&&k(l)?l:se()).getElementsByClassName(i),Il=(i,l)=>i.matches(l),Nl="2.0.0alpha12";t.ArrayFrom=Fr,t.DOMContentLoadedEvent=Y,t.DOMMouseScrollEvent=U,t.Data=yt,t.Float32ArrayFrom=Qr,t.Float64ArrayFrom=Xr,t.ObjectAssign=nt,t.ObjectEntries=st,t.ObjectHasOwn=Jr,t.ObjectKeys=Zr,t.ObjectValues=_r,t.Timer=sl,t.abortEvent=M,t.addClass=Br,t.addEventListener=dr,t.animationDelay=$o,t.animationDuration=Do,t.animationEndEvent=bt,t.animationName=an,t.ariaChecked=n,t.ariaDescribedBy=o,t.ariaDescription=s,t.ariaExpanded=a,t.ariaHasPopup=r,t.ariaHidden=d,t.ariaLabel=c,t.ariaLabelledBy=m,t.ariaModal=h,t.ariaPressed=p,t.ariaSelected=v,t.ariaValueMax=S,t.ariaValueMin=b,t.ariaValueNow=R,t.ariaValueText=y,t.beforeunloadEvent=z,t.bezierEasings=mr,t.blurEvent=le,t.changeEvent=X,t.closest=_o,t.contextmenuEvent=A,t.createCustomEvent=xr,t.createElement=Ro,t.createElementNS=zo,t.dispatchEvent=un,t.distinct=Vr,t.documentBody=Wr,t.documentElement=qr,t.documentHead=xe,t.dragEvent=Pa,t.dragendEvent=za,t.dragenterEvent=Oa,t.dragleaveEvent=Ba,t.dragoverEvent=Ra,t.dragstartEvent=Ma,t.emulateAnimationEnd=Ur,t.emulateTransitionEnd=Kr,t.errorEvent=L,t.focus=Yr,t.focusEvent=O,t.focusEvents=Ua,t.focusinEvent=w,t.focusoutEvent=ce,t.gesturechangeEvent=x,t.gestureendEvent=D,t.gesturestartEvent=ee,t.getAttribute=Bo,t.getAttributeNS=Lr,t.getBoundingClientRect=je,t.getCustomElements=$l,t.getDocument=se,t.getDocumentBody=il,t.getDocumentElement=ot,t.getDocumentHead=al,t.getElementAnimationDelay=Wo,t.getElementAnimationDuration=qo,t.getElementById=Hl,t.getElementStyle=me,t.getElementTransitionDelay=Fo,t.getElementTransitionDuration=jo,t.getElementsByClassName=kl,t.getElementsByTagName=xo,t.getInstance=jr,t.getNodeScroll=rl,t.getParentNode=ll,t.getRectRelativeToOffsetParent=cl,t.getUID=Go,t.getWindow=dl,t.hasAttribute=kr,t.hasAttributeNS=Ir,t.hasClass=zr,t.isApple=yr,t.isArray=Jo,t.isCanvas=ul,t.isCustomElement=Zo,t.isDocument=dn,t.isElement=ml,t.isElementInScrollRange=hl,t.isElementInViewport=gl,t.isElementsArray=fl,t.isFirefox=Tr,t.isFunction=vl,t.isHTMLCollection=pl,t.isHTMLElement=W,t.isHTMLImageElement=El,t.isJSON=bl,t.isMap=Tt,t.isMedia=yl,t.isMobile=Cr,t.isNode=k,t.isNodeList=Tl,t.isNumber=Uo,t.isObject=ue,t.isRTL=wl,t.isSVGElement=Sl,t.isScaledElement=Qo,t.isShadowRoot=Ko,t.isString=tt,t.isTableElement=Al,t.isWeakMap=Cl,t.isWindow=cn,t.keyAlt=Qa,t.keyArrowDown=Xa,t.keyArrowLeft=Ga,t.keyArrowRight=Ja,t.keyArrowUp=Ya,t.keyBackspace=Za,t.keyCapsLock=_a,t.keyControl=xa,t.keyDelete=er,t.keyEnter=tr,t.keyEscape=nr,t.keyInsert=sr,t.keyMeta=or,t.keyPause=ir,t.keyScrollLock=ar,t.keyShift=rr,t.keySpace=lr,t.keyTab=cr,t.keyboardEventKeys=Ka,t.keydownEvent=ie,t.keypressEvent=pe,t.keyupEvent=te,t.loadEvent=ze,t.loadstartEvent=Wa,t.matches=Il,t.mouseClickEvents=Fa,t.mouseHoverEvents=ja,t.mouseSwipeEvents=qa,t.mouseclickEvent=de,t.mousedblclickEvent=Pe,t.mousedownEvent=We,t.mouseenterEvent=qe,t.mousehoverEvent=ne,t.mouseinEvent=be,t.mouseleaveEvent=Ee,t.mousemoveEvent=Me,t.mouseoutEvent=Ce,t.mouseoverEvent=ye,t.mouseupEvent=ae,t.mousewheelEvent=Fe,t.moveEvent=Et,t.nativeEvents=Na,t.noop=Oo,t.normalizeOptions=Gr,t.normalizeValue=mn,t.off=Po,t.offsetHeight=hr,t.offsetWidth=gr,t.on=No,t.one=Mo,t.orientationchangeEvent=ao,t.passiveHandler=el,t.pointercancelEvent=ro,t.pointerdownEvent=lo,t.pointerleaveEvent=co,t.pointermoveEvent=uo,t.pointerupEvent=mo,t.querySelector=Dl,t.querySelectorAll=Ll,t.readystatechangeEvent=ho,t.reflow=tl,t.removeAttribute=Mr,t.removeAttributeNS=Or,t.removeClass=Rr,t.removeEventListener=ur,t.resetEvent=go,t.resizeEvent=fo,t.scrollEvent=bo,t.scrollHeight=fr,t.scrollWidth=vr,t.selectEvent=vo,t.selectendEvent=po,t.selectstartEvent=Eo,t.setAttribute=Nr,t.setAttributeNS=Pr,t.setElementStyle=nl,t.submitEvent=Co,t.support3DTransform=wr,t.supportAnimation=$r,t.supportPassive=Sr,t.supportTouch=Dr,t.supportTransform=Ar,t.supportTransition=Hr,t.tabindex=pr,t.toLowerCase=Vo,t.toUpperCase=ol,t.touchEvents=Va,t.touchcancelEvent=wo,t.touchendEvent=So,t.touchmoveEvent=To,t.touchstartEvent=yo,t.transitionDelay=Lo,t.transitionDuration=Ho,t.transitionEndEvent=Ct,t.transitionProperty=rn,t.unloadEvent=Ao,t.userAgent=_e,t.userAgentData=Ze,t.version=Nl})(e);const P="fade",E="show",it="data-bs-dismiss",at="alert",hn="Alert",ei="5.0.3";class J{element;options;constructor(n,s){const o=e.querySelector(n);if(!o)throw e.isString(n)?Error(`${this.name} Error: "${n}" is not a valid selector.`):Error(`${this.name} Error: your target is not an instance of HTMLElement.`);const a=e.Data.get(o,this.name);a&&a.dispose(),this.element=o,this.defaults&&e.ObjectKeys(this.defaults).length&&(this.options=e.normalizeOptions(o,this.defaults,s||{},"bs")),e.Data.set(o,this.name,this)}get version(){return ei}get name(){return"BaseComponent"}get defaults(){return{}}dispose(){e.Data.remove(this.element,this.name),e.ObjectKeys(this).forEach(n=>{delete this[n]})}}const gn=`.${at}`,ti=`[${it}="${at}"]`,fn=t=>e.getInstance(t,hn),ni=t=>new At(t),vn=e.createCustomEvent(`close.bs.${at}`),si=e.createCustomEvent(`closed.bs.${at}`),pn=t=>{const{element:n}=t;St(t),e.dispatchEvent(n,si),t.dispose(),n.remove()},St=(t,n)=>{const s=n?C.addListener:C.removeListener,{dismiss:o}=t;o&&s(o,e.mouseclickEvent,t.close)};class At extends J{static selector=gn;static init=ni;static getInstance=fn;dismiss;constructor(n){super(n),this.dismiss=e.querySelector(ti,this.element),St(this,!0)}get name(){return hn}close(n){const s=n?fn(e.closest(n.target,gn)):this,{element:o}=s;if(o&&e.hasClass(o,E)){if(e.dispatchEvent(o,vn),vn.defaultPrevented)return;e.removeClass(o,E),e.hasClass(o,P)?e.emulateTransitionEnd(o,()=>pn(s)):pn(s)}}dispose(){St(this),super.dispose()}}const T="active",j="data-bs-toggle",oi="button",En="Button",ii=`[${j}="${oi}"]`,bn=t=>e.getInstance(t,En),ai=t=>new Dt(t),Cn=(t,n)=>{(n?C.addListener:C.removeListener)(t.element,e.mouseclickEvent,t.toggle)};class Dt extends J{static selector=ii;static init=ai;static getInstance=bn;isActive=!1;constructor(n){super(n);const{element:s}=this;this.isActive=e.hasClass(s,T),e.setAttribute(s,e.ariaPressed,String(!!this.isActive)),Cn(this,!0)}get name(){return En}toggle(n){n&&n.preventDefault();const s=n?bn(n.target):this;if(!s.element)return;const{element:o,isActive:a}=s;if(e.hasClass(o,"disabled"))return;(a?e.removeClass:e.addClass)(o,T),e.setAttribute(o,e.ariaPressed,a?"false":"true"),s.isActive=e.hasClass(o,T)}dispose(){Cn(this),super.dispose()}}const $t="data-bs-target",Ae="carousel",yn="Carousel",Tn="data-bs-parent",ri="data-bs-container",q=t=>{const n=[$t,Tn,ri,"href"],s=e.getDocument(t);return n.map(o=>{const a=e.getAttribute(t,o);return a?o===Tn?e.closest(t,a):e.querySelector(a,s):null}).filter(o=>o)[0]},Ue=`[data-bs-ride="${Ae}"]`,Z=`${Ae}-item`,Ht="data-bs-slide-to",he="data-bs-slide",ge="paused",wn={pause:"hover",keyboard:!1,touch:!0,interval:5e3},oe=t=>e.getInstance(t,yn),li=t=>new Pt(t);let De=0,Oe=0,Ke=0;const Lt=e.createCustomEvent(`slide.bs.${Ae}`),kt=e.createCustomEvent(`slid.bs.${Ae}`),ci=t=>{const{index:n,direction:s,element:o,slides:a,options:r}=t;if(t.isAnimating&&oe(o)){const d=Nt(t),c=s==="left"?"next":"prev",m=s==="left"?"start":"end";e.addClass(a[n],T),e.removeClass(a[n],`${Z}-${c}`),e.removeClass(a[n],`${Z}-${m}`),e.removeClass(a[d],T),e.removeClass(a[d],`${Z}-${m}`),e.dispatchEvent(o,kt),e.Timer.clear(o,he),!e.getDocument(o).hidden&&r.interval&&!t.isPaused&&t.cycle()}};function di(){const t=oe(this);t&&!t.isPaused&&!e.Timer.get(this,ge)&&e.addClass(this,ge)}function ui(){const t=oe(this);t&&t.isPaused&&!e.Timer.get(this,ge)&&t.cycle()}function mi(t){t.preventDefault();const n=e.closest(this,Ue)||q(this),s=oe(n);if(!s||s.isAnimating)return;const o=+(e.getAttribute(this,Ht)||0);this&&!e.hasClass(this,T)&&!Number.isNaN(o)&&s.to(o)}function hi(t){t.preventDefault();const n=e.closest(this,Ue)||q(this),s=oe(n);if(!s||s.isAnimating)return;const o=e.getAttribute(this,he);o==="next"?s.next():o==="prev"&&s.prev()}const gi=({code:t,target:n})=>{const s=e.getDocument(n),[o]=[...e.querySelectorAll(Ue,s)].filter(m=>e.isElementInScrollRange(m)),a=oe(o);if(!a||a.isAnimating||/textarea|input/i.test(n.nodeName))return;const r=e.isRTL(o),d=r?e.keyArrowLeft:e.keyArrowRight,c=r?e.keyArrowRight:e.keyArrowLeft;t===c?a.prev():t===d&&a.next()};function Sn(t){const{target:n}=t,s=oe(this);s&&s.isTouch&&(s.indicator&&!s.indicator.contains(n)||!s.controls.includes(n))&&(t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault())}function fi(t){const{target:n}=t,s=oe(this);if(!s||s.isAnimating||s.isTouch)return;const{controls:o,indicators:a}=s;[...o,...a].some(r=>r===n||r.contains(n))||(De=t.pageX,this.contains(n)&&(s.isTouch=!0,An(s,!0)))}const vi=t=>{Oe=t.pageX},pi=t=>{const{target:n}=t,s=e.getDocument(n),o=[...e.querySelectorAll(Ue,s)].map(c=>oe(c)).find(c=>c.isTouch);if(!o)return;const{element:a,index:r}=o,d=e.isRTL(a);if(o.isTouch=!1,An(o),s.getSelection()?.toString().length){De=0,Oe=0,Ke=0;return}if(Ke=t.pageX,!a.contains(n)||Math.abs(De-Ke)<120){De=0,Oe=0,Ke=0;return}Oe<De?o.to(r+(d?-1:1)):Oe>De&&o.to(r+(d?1:-1)),De=0,Oe=0,Ke=0},It=(t,n)=>{const{indicators:s}=t;[...s].forEach(o=>e.removeClass(o,T)),t.indicators[n]&&e.addClass(s[n],T)},An=(t,n)=>{const{element:s}=t,o=n?C.addListener:C.removeListener;o(e.getDocument(s),e.pointermoveEvent,vi,e.passiveHandler),o(e.getDocument(s),e.pointerupEvent,pi,e.passiveHandler)},Dn=(t,n)=>{const{element:s,options:o,slides:a,controls:r,indicators:d}=t,{touch:c,pause:m,interval:h,keyboard:p}=o,v=n?C.addListener:C.removeListener;m&&h&&(v(s,e.mouseenterEvent,di),v(s,e.mouseleaveEvent,ui)),c&&a.length>2&&(v(s,e.pointerdownEvent,fi,e.passiveHandler),v(s,e.touchstartEvent,Sn,{passive:!1}),v(s,e.dragstartEvent,Sn,{passive:!1})),r.length&&r.forEach(b=>{b&&v(b,e.mouseclickEvent,hi)}),d.length&&d.forEach(b=>{v(b,e.mouseclickEvent,mi)}),p&&v(e.getDocument(s),e.keydownEvent,gi)},Nt=t=>{const{slides:n,element:s}=t,o=e.querySelector(`.${Z}.${T}`,s);return e.isHTMLElement(o)?[...n].indexOf(o):-1};class Pt extends J{static selector=Ue;static init=li;static getInstance=oe;constructor(n,s){super(n,s);const{element:o}=this;this.direction=e.isRTL(o)?"right":"left",this.index=0,this.isTouch=!1,this.slides=e.getElementsByClassName(Z,o);const{slides:a}=this;if(a.length<2)return;const r=e.getDocument(o);this.controls=[...e.querySelectorAll(`[${he}]`,o),...e.querySelectorAll(`[${he}][${$t}="#${o.id}"]`,r)],this.indicator=e.querySelector(`.${Ae}-indicators`,o),this.indicators=[...this.indicator?e.querySelectorAll(`[${Ht}]`,this.indicator):[],...e.querySelectorAll(`[${Ht}][${$t}="#${o.id}"]`,r)];const{options:d}=this;this.options.interval=d.interval===!0?wn.interval:d.interval,Nt(this)<0&&(e.addClass(a[0],T),this.indicators.length&&It(this,0)),Dn(this,!0),d.interval&&this.cycle()}get name(){return yn}get defaults(){return wn}get isPaused(){return e.hasClass(this.element,ge)}get isAnimating(){return e.querySelector(`.${Z}-next,.${Z}-prev`,this.element)!==null}cycle(){const{element:n,options:s,isPaused:o,index:a}=this;e.Timer.clear(n,Ae),o&&(e.Timer.clear(n,ge),e.removeClass(n,ge)),e.Timer.set(n,()=>{this.element&&!this.isPaused&&!this.isTouch&&e.isElementInScrollRange(n)&&this.to(a+1)},s.interval,Ae)}pause(){const{element:n,options:s}=this;!this.isPaused&&s.interval&&(e.addClass(n,ge),e.Timer.set(n,()=>{},1,ge))}next(){this.isAnimating||this.to(this.index+1)}prev(){this.isAnimating||this.to(this.index-1)}to(n){const{element:s,slides:o,options:a}=this,r=Nt(this),d=e.isRTL(s);let c=n;if(this.isAnimating||r===c||e.Timer.get(s,he))return;r<c||r===0&&c===o.length-1?this.direction=d?"right":"left":(r>c||r===o.length-1&&c===0)&&(this.direction=d?"left":"right");const{direction:m}=this;c<0?c=o.length-1:c>=o.length&&(c=0);const h=m==="left"?"next":"prev",p=m==="left"?"start":"end",v={relatedTarget:o[c],from:r,to:c,direction:m};e.ObjectAssign(Lt,v),e.ObjectAssign(kt,v),e.dispatchEvent(s,Lt),!Lt.defaultPrevented&&(this.index=c,It(this,c),e.getElementTransitionDuration(o[c])&&e.hasClass(s,"slide")?e.Timer.set(s,()=>{e.addClass(o[c],`${Z}-${h}`),e.reflow(o[c]),e.addClass(o[c],`${Z}-${p}`),e.addClass(o[r],`${Z}-${p}`),e.emulateTransitionEnd(o[c],()=>ci(this))},0,he):(e.addClass(o[c],T),e.removeClass(o[r],T),e.Timer.set(s,()=>{e.Timer.clear(s,he),s&&a.interval&&!this.isPaused&&this.cycle(),e.dispatchEvent(s,kt)},0,he)))}dispose(){const{slides:n}=this,s=["start","end","prev","next"];[...n].forEach((o,a)=>{e.hasClass(o,T)&&It(this,a),s.forEach(r=>e.removeClass(o,`${Z}-${r}`))}),Dn(this),super.dispose()}}const $e="collapsing",F="collapse",$n="Collapse",Ei=`.${F}`,Hn=`[${j}="${F}"]`,bi={parent:null},rt=t=>e.getInstance(t,$n),Ci=t=>new Mt(t),Ln=e.createCustomEvent(`show.bs.${F}`),yi=e.createCustomEvent(`shown.bs.${F}`),kn=e.createCustomEvent(`hide.bs.${F}`),Ti=e.createCustomEvent(`hidden.bs.${F}`),wi=t=>{const{element:n,parent:s,triggers:o}=t;e.dispatchEvent(n,Ln),!Ln.defaultPrevented&&(e.Timer.set(n,e.noop,17),s&&e.Timer.set(s,e.noop,17),e.addClass(n,$e),e.removeClass(n,F),e.setElementStyle(n,{height:`${n.scrollHeight}px`}),e.emulateTransitionEnd(n,()=>{e.Timer.clear(n),s&&e.Timer.clear(s),o.forEach(a=>e.setAttribute(a,e.ariaExpanded,"true")),e.removeClass(n,$e),e.addClass(n,F),e.addClass(n,E),e.setElementStyle(n,{height:""}),e.dispatchEvent(n,yi)}))},In=t=>{const{element:n,parent:s,triggers:o}=t;e.dispatchEvent(n,kn),!kn.defaultPrevented&&(e.Timer.set(n,e.noop,17),s&&e.Timer.set(s,e.noop,17),e.setElementStyle(n,{height:`${n.scrollHeight}px`}),e.removeClass(n,F),e.removeClass(n,E),e.addClass(n,$e),e.reflow(n),e.setElementStyle(n,{height:"0px"}),e.emulateTransitionEnd(n,()=>{e.Timer.clear(n),s&&e.Timer.clear(s),o.forEach(a=>e.setAttribute(a,e.ariaExpanded,"false")),e.removeClass(n,$e),e.addClass(n,F),e.setElementStyle(n,{height:""}),e.dispatchEvent(n,Ti)}))},Nn=(t,n)=>{const s=n?C.addListener:C.removeListener,{triggers:o}=t;o.length&&o.forEach(a=>s(a,e.mouseclickEvent,Si))},Si=t=>{const{target:n}=t,s=n&&e.closest(n,Hn),o=s&&q(s),a=o&&rt(o);a&&a.toggle(),s&&s.tagName==="A"&&t.preventDefault()};class Mt extends J{static selector=Ei;static init=Ci;static getInstance=rt;constructor(n,s){super(n,s);const{element:o,options:a}=this,r=e.getDocument(o);this.triggers=[...e.querySelectorAll(Hn,r)].filter(d=>q(d)===o),this.parent=e.isHTMLElement(a.parent)?a.parent:e.isString(a.parent)?q(o)||e.querySelector(a.parent,r):null,Nn(this,!0)}get name(){return $n}get defaults(){return bi}toggle(){e.hasClass(this.element,E)?this.hide():this.show()}hide(){const{triggers:n,element:s}=this;e.Timer.get(s)||(In(this),n.length&&n.forEach(o=>e.addClass(o,`${F}d`)))}show(){const{element:n,parent:s,triggers:o}=this;let a,r;s&&(a=[...e.querySelectorAll(`.${F}.${E}`,s)].find(d=>rt(d)),r=a&&rt(a)),(!s||!e.Timer.get(s))&&!e.Timer.get(n)&&(r&&a!==n&&(In(r),r.triggers.forEach(d=>{e.addClass(d,`${F}d`)})),wi(this),o.length&&o.forEach(d=>e.removeClass(d,`${F}d`)))}dispose(){Nn(this),super.dispose()}}const He=["dropdown","dropup","dropstart","dropend"],Pn="Dropdown",Mn="dropdown-menu",On=t=>{const n=e.closest(t,"A");return t.tagName==="A"&&e.hasAttribute(t,"href")&&t.href.slice(-1)==="#"||n&&e.hasAttribute(n,"href")&&n.href.slice(-1)==="#"},[_,lt,ct,dt]=He,Ot=`[${j}="${_}"],[${j}="${lt}"],[${j}="${dt}"],[${j}="${ct}"]`,Be=t=>e.getInstance(t,Pn),Ai=t=>new zt(t),Di=`${Mn}-end`,Bn=[_,lt],Rn=[ct,dt],zn=["A","BUTTON"],$i={offset:5,display:"dynamic"},Bt=e.createCustomEvent(`show.bs.${_}`),Wn=e.createCustomEvent(`shown.bs.${_}`),Rt=e.createCustomEvent(`hide.bs.${_}`),qn=e.createCustomEvent(`hidden.bs.${_}`),Fn=e.createCustomEvent(`updated.bs.${_}`),jn=t=>{const{element:n,menu:s,parentElement:o,options:a}=t,{offset:r}=a;if(e.getElementStyle(s,"position")==="static")return;const d=e.isRTL(n),c=e.hasClass(s,Di);["margin","top","bottom","left","right"].forEach(D=>{const ee={};ee[D]="",e.setElementStyle(s,ee)});let h=He.find(D=>e.hasClass(o,D))||_;const p={dropdown:[r,0,0],dropup:[0,0,r],dropstart:d?[-1,0,0,r]:[-1,r,0],dropend:d?[-1,r,0]:[-1,0,0,r]},v={dropdown:{top:"100%"},dropup:{top:"auto",bottom:"100%"},dropstart:d?{left:"100%",right:"auto"}:{left:"auto",right:"100%"},dropend:d?{left:"auto",right:"100%"}:{left:"100%",right:"auto"},menuStart:d?{right:"0",left:"auto"}:{right:"auto",left:"0"},menuEnd:d?{right:"auto",left:"0"}:{right:"0",left:"auto"}},{offsetWidth:b,offsetHeight:S}=s,{clientWidth:R,clientHeight:y}=e.getDocumentElement(n),{left:M,top:z,width:le,height:X}=e.getBoundingClientRect(n),A=M-b-r<0,Y=M+b+le+r>=R,U=z+S+r>=y,L=z+S+X+r>=y,O=z-S-r<0,w=(!d&&c||d&&!c)&&M+le-b<0,ce=(d&&c||!d&&!c)&&M+b>=R;if(Rn.includes(h)&&A&&Y&&(h=_),h===ct&&(d?Y:A)&&(h=dt),h===dt&&(d?A:Y)&&(h=ct),h===lt&&O&&!L&&(h=_),h===_&&L&&!O&&(h=lt),Rn.includes(h)&&U&&e.ObjectAssign(v[h],{top:"auto",bottom:0}),Bn.includes(h)&&(w||ce)){let D={left:"auto",right:"auto"};!w&&ce&&!d&&(D={left:"auto",right:0}),w&&!ce&&d&&(D={left:0,right:"auto"}),D&&e.ObjectAssign(v[h],D)}const x=p[h];if(e.setElementStyle(s,{...v[h],margin:`${x.map(D=>D&&`${D}px`).join(" ")}`}),Bn.includes(h)&&c&&c){const D=!d&&w||d&&ce?"menuStart":"menuEnd";e.setElementStyle(s,v[D])}e.dispatchEvent(o,Fn)},Hi=t=>[...t.children].map(n=>{if(n&&zn.includes(n.tagName))return n;const{firstElementChild:s}=n;return s&&zn.includes(s.tagName)?s:null}).filter(n=>n),Vn=t=>{const{element:n,options:s}=t,o=t.open?C.addListener:C.removeListener,a=e.getDocument(n);o(a,e.mouseclickEvent,Kn),o(a,e.focusEvent,Kn),o(a,e.keydownEvent,ki),o(a,e.keyupEvent,Ii),s.display==="dynamic"&&[e.scrollEvent,e.resizeEvent].forEach(r=>{o(e.getWindow(n),r,Ni,e.passiveHandler)})},Un=(t,n)=>{(n?C.addListener:C.removeListener)(t.element,e.mouseclickEvent,Li)},ut=t=>{const n=[...He,"btn-group","input-group"].map(s=>e.getElementsByClassName(`${s} ${E}`,e.getDocument(t))).find(s=>s.length);if(n&&n.length)return[...n[0].children].find(s=>He.some(o=>o===e.getAttribute(s,j)))},Kn=t=>{const{target:n,type:s}=t;if(!n||!n.closest)return;const o=ut(n),a=o&&Be(o);if(!a)return;const{parentElement:r,menu:d}=a,c=e.closest(n,Ot)!==null,m=r&&r.contains(n)&&(n.tagName==="form"||e.closest(n,"form")!==null);s===e.mouseclickEvent&&On(n)&&t.preventDefault(),!(s===e.focusEvent&&(n===o||n===d||d.contains(n)))&&(m||c||a&&a.hide())},Li=t=>{const{target:n}=t,s=n&&e.closest(n,Ot),o=s&&Be(s);o&&(t.stopImmediatePropagation(),o.toggle(),s&&On(s)&&t.preventDefault())},ki=t=>{[e.keyArrowDown,e.keyArrowUp].includes(t.code)&&t.preventDefault()};function Ii(t){const{code:n}=t,s=ut(this),o=s&&Be(s),{activeElement:a}=s&&e.getDocument(s);if(!o||!a)return;const{menu:r,open:d}=o,c=Hi(r);if(c&&c.length&&[e.keyArrowDown,e.keyArrowUp].includes(n)){let m=c.indexOf(a);a===s?m=0:n===e.keyArrowUp?m=m>1?m-1:0:n===e.keyArrowDown&&(m=m<c.length-1?m+1:m),c[m]&&e.focus(c[m])}e.keyEscape===n&&d&&(o.toggle(),e.focus(s))}function Ni(){const t=ut(this),n=t&&Be(t);n&&n.open&&jn(n)}class zt extends J{static selector=Ot;static init=Ai;static getInstance=Be;constructor(n,s){super(n,s);const{parentElement:o}=this.element,a=e.querySelector(`.${Mn}`,o);a&&(this.parentElement=o,this.menu=a,Un(this,!0))}get name(){return Pn}get defaults(){return $i}toggle(){this.open?this.hide():this.show()}show(){const{element:n,open:s,menu:o,parentElement:a}=this;if(s)return;const r=ut(n),d=r&&Be(r);d&&d.hide(),[Bt,Wn,Fn].forEach(c=>{c.relatedTarget=n}),e.dispatchEvent(a,Bt),!Bt.defaultPrevented&&(e.addClass(o,E),e.addClass(a,E),e.setAttribute(n,e.ariaExpanded,"true"),jn(this),this.open=!s,e.focus(n),Vn(this),e.dispatchEvent(a,Wn))}hide(){const{element:n,open:s,menu:o,parentElement:a}=this;s&&([Rt,qn].forEach(r=>{r.relatedTarget=n}),e.dispatchEvent(a,Rt),!Rt.defaultPrevented&&(e.removeClass(o,E),e.removeClass(a,E),e.setAttribute(n,e.ariaExpanded,"false"),this.open=!s,Vn(this),e.dispatchEvent(a,qn)))}dispose(){this.open&&this.hide(),Un(this),super.dispose()}}const V="modal",Wt="Modal",qt="Offcanvas",Pi="fixed-top",Mi="fixed-bottom",Qn="sticky-top",Xn="position-sticky",Yn=t=>[...e.getElementsByClassName(Pi,t),...e.getElementsByClassName(Mi,t),...e.getElementsByClassName(Qn,t),...e.getElementsByClassName(Xn,t),...e.getElementsByClassName("is-fixed",t)],Oi=t=>{const n=e.getDocumentBody(t);e.setElementStyle(n,{paddingRight:"",overflow:""});const s=Yn(n);s.length&&s.forEach(o=>{e.setElementStyle(o,{paddingRight:"",marginRight:""})})},Gn=t=>{const{clientWidth:n}=e.getDocumentElement(t),{innerWidth:s}=e.getWindow(t);return Math.abs(s-n)},Jn=(t,n)=>{const s=e.getDocumentBody(t),o=parseInt(e.getElementStyle(s,"paddingRight"),10),r=e.getElementStyle(s,"overflow")==="hidden"&&o?0:Gn(t),d=Yn(s);n&&(e.setElementStyle(s,{overflow:"hidden",paddingRight:`${o+r}px`}),d.length&&d.forEach(c=>{const m=e.getElementStyle(c,"paddingRight");if(c.style.paddingRight=`${parseInt(m,10)+r}px`,[Qn,Xn].some(h=>e.hasClass(c,h))){const h=e.getElementStyle(c,"marginRight");c.style.marginRight=`${parseInt(h,10)-r}px`}}))},K="offcanvas",fe=e.createElement({tagName:"div",className:"popup-container"}),Zn=(t,n)=>{const s=e.isNode(n)&&n.nodeName==="BODY",o=e.isNode(n)&&!s?n:fe,a=s?n:e.getDocumentBody(t);e.isNode(t)&&(o===fe&&a.append(fe),o.append(t))},_n=(t,n)=>{const s=e.isNode(n)&&n.nodeName==="BODY",o=e.isNode(n)&&!s?n:fe;e.isNode(t)&&(t.remove(),o===fe&&!fe.children.length&&fe.remove())},Le=(t,n)=>{const s=e.isNode(n)&&n.nodeName!=="BODY"?n:fe;return e.isNode(t)&&s.contains(t)},xn="backdrop",es=`${V}-${xn}`,ts=`${K}-${xn}`,ns=`.${V}.${E}`,Ft=`.${K}.${E}`,$=e.createElement("div"),ke=t=>e.querySelector(`${ns},${Ft}`,e.getDocument(t)),jt=t=>{const n=t?es:ts;[es,ts].forEach(s=>{e.removeClass($,s)}),e.addClass($,n)},ss=(t,n,s)=>{jt(s),Zn($,e.getDocumentBody(t)),n&&e.addClass($,P)},os=()=>{e.hasClass($,E)||(e.addClass($,E),e.reflow($))},mt=()=>{e.removeClass($,E)},is=t=>{ke(t)||(e.removeClass($,P),_n($,e.getDocumentBody(t)),Oi(t))},as=t=>e.isHTMLElement(t)&&e.getElementStyle(t,"visibility")!=="hidden"&&t.offsetParent!==null,Bi=`.${V}`,rs=`[${j}="${V}"]`,Ri=`[${it}="${V}"]`,ls=`${V}-static`,zi={backdrop:!0,keyboard:!0},Qe=t=>e.getInstance(t,Wt),Wi=t=>new Ut(t),ht=e.createCustomEvent(`show.bs.${V}`),cs=e.createCustomEvent(`shown.bs.${V}`),Vt=e.createCustomEvent(`hide.bs.${V}`),ds=e.createCustomEvent(`hidden.bs.${V}`),us=t=>{const{element:n}=t,s=Gn(n),{clientHeight:o,scrollHeight:a}=e.getDocumentElement(n),{clientHeight:r,scrollHeight:d}=n,c=r!==d;if(!c&&s){const m=e.isRTL(n)?"paddingLeft":"paddingRight",h={};h[m]=`${s}px`,e.setElementStyle(n,h)}Jn(n,c||o!==a)},ms=(t,n)=>{const s=n?C.addListener:C.removeListener,{element:o}=t;s(o,e.mouseclickEvent,ji),s(e.getWindow(o),e.resizeEvent,t.update,e.passiveHandler),s(e.getDocument(o),e.keydownEvent,Fi)},hs=(t,n)=>{const s=n?C.addListener:C.removeListener,{triggers:o}=t;o.length&&o.forEach(a=>s(a,e.mouseclickEvent,qi))},gs=(t,n)=>{const{triggers:s,element:o,relatedTarget:a}=t;is(o),e.setElementStyle(o,{paddingRight:"",display:""}),ms(t);const r=ht.relatedTarget||s.find(as);r&&e.focus(r),e.isFunction(n)&&n(),ds.relatedTarget=a,e.dispatchEvent(o,ds)},fs=t=>{const{element:n,relatedTarget:s}=t;e.focus(n),ms(t,!0),cs.relatedTarget=s,e.dispatchEvent(n,cs)},vs=t=>{const{element:n,hasFade:s}=t;e.setElementStyle(n,{display:"block"}),us(t),ke(n)||e.setElementStyle(e.getDocumentBody(n),{overflow:"hidden"}),e.addClass(n,E),e.removeAttribute(n,e.ariaHidden),e.setAttribute(n,e.ariaModal,"true"),s?e.emulateTransitionEnd(n,()=>fs(t)):fs(t)},ps=(t,n)=>{const{element:s,options:o,hasFade:a}=t;o.backdrop&&!n&&a&&e.hasClass($,E)&&!ke(s)?(mt(),e.emulateTransitionEnd($,()=>gs(t))):gs(t,n)},qi=t=>{const{target:n}=t,s=n&&e.closest(n,rs),o=s&&q(s),a=o&&Qe(o);a&&(s&&s.tagName==="A"&&t.preventDefault(),a.relatedTarget=s,a.toggle())},Fi=({code:t,target:n})=>{const s=e.querySelector(ns,e.getDocument(n)),o=s&&Qe(s);if(!o)return;const{options:a}=o;a.keyboard&&t===e.keyEscape&&e.hasClass(s,E)&&(o.relatedTarget=null,o.hide())};function ji(t){const n=Qe(this);if(!n||e.Timer.get(this))return;const{options:s,isStatic:o,modalDialog:a}=n,{backdrop:r}=s,{target:d}=t,c=e.getDocument(this)?.getSelection()?.toString().length,m=a?.contains(d),h=d&&e.closest(d,Ri);o&&!m?e.Timer.set(this,()=>{e.addClass(this,ls),e.emulateTransitionEnd(a,()=>Vi(n))},17):(h||!c&&!o&&!m&&r)&&(n.relatedTarget=h||null,n.hide(),t.preventDefault())}const Vi=t=>{const{element:n,modalDialog:s}=t,o=(e.isHTMLElement(s)?e.getElementTransitionDuration(s):0)+17;e.removeClass(n,ls),e.Timer.set(n,()=>e.Timer.clear(n),o)};class Ut extends J{static selector=Bi;static init=Wi;static getInstance=Qe;constructor(n,s){super(n,s);const{element:o}=this;this.modalDialog=e.querySelector(`.${V}-dialog`,o),this.triggers=[...e.querySelectorAll(rs,e.getDocument(o))].filter(a=>q(a)===o),this.isStatic=this.options.backdrop==="static",this.hasFade=e.hasClass(o,P),this.relatedTarget=null,hs(this,!0),this.update=this.update.bind(this)}get name(){return Wt}get defaults(){return zi}toggle(){e.hasClass(this.element,E)?this.hide():this.show()}show(){const{element:n,options:s,hasFade:o,relatedTarget:a}=this,{backdrop:r}=s;let d=0;if(e.hasClass(n,E)||(ht.relatedTarget=a||void 0,e.dispatchEvent(n,ht),ht.defaultPrevented))return;const c=ke(n);if(c&&c!==n){const m=Qe(c)||e.getInstance(c,qt);m&&m.hide()}r?(Le($)?jt(!0):ss(n,o,!0),d=e.getElementTransitionDuration($),os(),setTimeout(()=>vs(this),d)):(vs(this),c&&e.hasClass($,E)&&mt())}hide(n){const{element:s,hasFade:o,relatedTarget:a}=this;e.hasClass(s,E)&&(Vt.relatedTarget=a||void 0,e.dispatchEvent(s,Vt),!Vt.defaultPrevented&&(e.removeClass(s,E),e.setAttribute(s,e.ariaHidden,"true"),e.removeAttribute(s,e.ariaModal),o?e.emulateTransitionEnd(s,()=>ps(this,n)):ps(this,n)))}update(){e.hasClass(this.element,E)&&us(this)}dispose(){hs(this),this.hide(()=>super.dispose())}}const Ui=`.${K}`,Kt=`[${j}="${K}"]`,Ki=`[${it}="${K}"]`,gt=`${K}-toggling`,Qi={backdrop:!0,keyboard:!0,scroll:!1},Xe=t=>e.getInstance(t,qt),Xi=t=>new Xt(t),ft=e.createCustomEvent(`show.bs.${K}`),Es=e.createCustomEvent(`shown.bs.${K}`),Qt=e.createCustomEvent(`hide.bs.${K}`),bs=e.createCustomEvent(`hidden.bs.${K}`),Yi=t=>{const{element:n}=t,{clientHeight:s,scrollHeight:o}=e.getDocumentElement(n);Jn(n,s!==o)},Cs=(t,n)=>{const s=n?C.addListener:C.removeListener;t.triggers.forEach(o=>s(o,e.mouseclickEvent,Gi))},ys=(t,n)=>{const s=n?C.addListener:C.removeListener,o=e.getDocument(t.element);s(o,e.keydownEvent,Zi),s(o,e.mouseclickEvent,Ji)},Ts=t=>{const{element:n,options:s}=t;s.scroll||(Yi(t),e.setElementStyle(e.getDocumentBody(n),{overflow:"hidden"})),e.addClass(n,gt),e.addClass(n,E),e.setElementStyle(n,{visibility:"visible"}),e.emulateTransitionEnd(n,()=>_i(t))},ws=(t,n)=>{const{element:s,options:o}=t,a=ke(s);s.blur(),!a&&o.backdrop&&e.hasClass($,E)?(mt(),e.emulateTransitionEnd($,()=>Ss(t,n))):Ss(t,n)},Gi=t=>{const n=e.closest(t.target,Kt),s=n&&q(n),o=s&&Xe(s);o&&(o.relatedTarget=n,o.toggle(),n&&n.tagName==="A"&&t.preventDefault())},Ji=t=>{const{target:n}=t,s=e.querySelector(Ft,e.getDocument(n)),o=e.querySelector(Ki,s),a=s&&Xe(s);if(!a)return;const{options:r,triggers:d}=a,{backdrop:c}=r,m=e.closest(n,Kt),h=e.getDocument(s).getSelection();$.contains(n)&&c==="static"||(!(h&&h.toString().length)&&(!s.contains(n)&&c&&(!m||d.includes(n))||o&&o.contains(n))&&(a.relatedTarget=o&&o.contains(n)?o:null,a.hide()),m&&m.tagName==="A"&&t.preventDefault())},Zi=({code:t,target:n})=>{const s=e.querySelector(Ft,e.getDocument(n)),o=s&&Xe(s);o&&o.options.keyboard&&t===e.keyEscape&&(o.relatedTarget=null,o.hide())},_i=t=>{const{element:n}=t;e.removeClass(n,gt),e.removeAttribute(n,e.ariaHidden),e.setAttribute(n,e.ariaModal,"true"),e.setAttribute(n,"role","dialog"),e.dispatchEvent(n,Es),ys(t,!0),e.focus(n)},Ss=(t,n)=>{const{element:s,triggers:o}=t;e.setAttribute(s,e.ariaHidden,"true"),e.removeAttribute(s,e.ariaModal),e.removeAttribute(s,"role"),e.setElementStyle(s,{visibility:""});const a=ft.relatedTarget||o.find(as);a&&e.focus(a),is(s),e.dispatchEvent(s,bs),e.removeClass(s,gt),ke(s)||ys(t),e.isFunction(n)&&n()};class Xt extends J{static selector=Ui;static init=Xi;static getInstance=Xe;constructor(n,s){super(n,s);const{element:o}=this;this.triggers=[...e.querySelectorAll(Kt,e.getDocument(o))].filter(a=>q(a)===o),this.relatedTarget=null,Cs(this,!0)}get name(){return qt}get defaults(){return Qi}toggle(){e.hasClass(this.element,E)?this.hide():this.show()}show(){const{element:n,options:s,relatedTarget:o}=this;let a=0;if(e.hasClass(n,E)||(ft.relatedTarget=o||void 0,Es.relatedTarget=o||void 0,e.dispatchEvent(n,ft),ft.defaultPrevented))return;const r=ke(n);if(r&&r!==n){const d=Xe(r)||e.getInstance(r,Wt);d&&d.hide()}s.backdrop?(Le($)?jt():ss(n,!0),a=e.getElementTransitionDuration($),os(),setTimeout(()=>Ts(this),a)):(Ts(this),r&&e.hasClass($,E)&&mt())}hide(n){const{element:s,relatedTarget:o}=this;e.hasClass(s,E)&&(Qt.relatedTarget=o||void 0,bs.relatedTarget=o||void 0,e.dispatchEvent(s,Qt),!Qt.defaultPrevented&&(e.addClass(s,gt),e.removeClass(s,E),n?ws(this,n):e.emulateTransitionEnd(s,()=>ws(this,n))))}dispose(){Cs(this),this.hide(()=>super.dispose())}}const Ie="popover",vt="Popover",re="tooltip",As=t=>{const n=t===re,s=n?`${t}-inner`:`${t}-body`,o=n?"":`<h3 class="${t}-header"></h3>`,a=`<div class="${t}-arrow"></div>`,r=`<div class="${s}"></div>`;return`<div class="${t}" role="${re}">${o+a+r}</div>`},Ds={top:"top",bottom:"bottom",left:"start",right:"end"},Yt=t=>{const n=/\b(top|bottom|start|end)+/,{element:s,tooltip:o,container:a,options:r,arrow:d}=t;if(!o)return;const c={...Ds},m=e.isRTL(s);e.setElementStyle(o,{top:"",left:"",right:"",bottom:""});const h=t.name===vt,{offsetWidth:p,offsetHeight:v}=o,{clientWidth:b,clientHeight:S,offsetWidth:R}=e.getDocumentElement(s);let{placement:y}=r;const{clientWidth:M,offsetWidth:z}=a,X=e.getElementStyle(a,"position")==="fixed",A=Math.abs(X?M-z:b-R),Y=m&&X?A:0,U=b-(m?0:A)-1,{width:L,height:O,left:w,right:ce,top:x}=e.getBoundingClientRect(s,!0),{x:D,y:ee}={x:w,y:x};e.setElementStyle(d,{top:"",left:"",right:"",bottom:""});let ie=0,pe="",te=0,ze="",de="",Pe="",We="";const ae=d.offsetWidth||0,ne=d.offsetHeight||0,qe=ae/2;let Ee=x-v-ne<0,be=x+v+O+ne>=S,Ce=w-p-ae<Y,ye=w+p+L+ae>=U;const Me=["left","right"],Fe=["top","bottom"];Ee=Me.includes(y)?x+O/2-v/2-ne<0:Ee,be=Me.includes(y)?x+v/2+O/2+ne>=S:be,Ce=Fe.includes(y)?w+L/2-p/2<Y:Ce,ye=Fe.includes(y)?w+p/2+L/2>=U:ye,y=Me.includes(y)&&Ce&&ye?"top":y,y=y==="top"&&Ee?"bottom":y,y=y==="bottom"&&be?"top":y,y=y==="left"&&Ce?"right":y,y=y==="right"&&ye?"left":y,o.className.includes(y)||(o.className=o.className.replace(n,c[y])),Me.includes(y)?(y==="left"?te=D-p-(h?ae:0):te=D+L+(h?ae:0),Ee&&be?(ie=0,pe=0,de=x+O/2-ne/2):Ee?(ie=ee,pe="",de=O/2-ae):be?(ie=ee-v+O,pe="",de=v-O/2-ae):(ie=ee-v/2+O/2,de=v/2-ne/2)):Fe.includes(y)&&(y==="top"?ie=ee-v-(h?ne:0):ie=ee+O+(h?ne:0),Ce?(te=0,Pe=D+L/2-qe):ye?(te="auto",ze=0,We=L/2+U-ce-qe):(te=D-p/2+L/2,Pe=p/2-qe)),e.setElementStyle(o,{top:`${ie}px`,bottom:pe===""?"":`${pe}px`,left:te==="auto"?te:`${te}px`,right:ze!==""?`${ze}px`:""}),e.isHTMLElement(d)&&(de!==""&&(d.style.top=`${de}px`),Pe!==""?d.style.left=`${Pe}px`:We!==""&&(d.style.right=`${We}px`));const Et=e.createCustomEvent(`updated.bs.${e.toLowerCase(t.name)}`);e.dispatchEvent(s,Et)},Gt={template:As(re),title:"",customClass:"",trigger:"hover focus",placement:"top",sanitizeFn:void 0,animation:!0,delay:200,container:document.body,content:"",dismissible:!1,btnClose:""},$s="data-original-title",Ne="Tooltip",ve=(t,n,s)=>{if(!(!e.isHTMLElement(t)||e.isString(n)&&!n.length))if(e.isString(n)){let o=n.trim();e.isFunction(s)&&(o=s(o));const r=new DOMParser().parseFromString(o,"text/html");t.append(...r.body.childNodes)}else e.isHTMLElement(n)?t.append(n):(e.isNodeList(n)||e.isArray(n)&&n.every(e.isNode))&&t.append(...n)},xi=t=>{const n=t.name===Ne,{id:s,element:o,options:a}=t,{title:r,placement:d,template:c,animation:m,customClass:h,sanitizeFn:p,dismissible:v,content:b,btnClose:S}=a,R=n?re:Ie,y={...Ds};let M=[],z=[];e.isRTL(o)&&(y.left="end",y.right="start");const le=`bs-${R}-${y[d]}`;let X;if(e.isHTMLElement(c))X=c;else{const w=e.createElement("div");ve(w,c,p),X=w.firstChild}t.tooltip=e.isHTMLElement(X)?X.cloneNode(!0):void 0;const{tooltip:A}=t;if(!A)return;e.setAttribute(A,"id",s),e.setAttribute(A,"role",re);const Y=n?`${re}-inner`:`${Ie}-body`,U=n?null:e.querySelector(`.${Ie}-header`,A),L=e.querySelector(`.${Y}`,A);t.arrow=e.querySelector(`.${R}-arrow`,A);const{arrow:O}=t;if(e.isHTMLElement(r))M=[r.cloneNode(!0)];else{const w=e.createElement("div");ve(w,r,p),M=[...w.childNodes]}if(e.isHTMLElement(b))z=[b.cloneNode(!0)];else{const w=e.createElement("div");ve(w,b,p),z=[...w.childNodes]}if(v)if(r)if(e.isHTMLElement(S))M=[...M,S.cloneNode(!0)];else{const w=e.createElement("div");ve(w,S,p),M=[...M,w.firstChild]}else if(U&&U.remove(),e.isHTMLElement(S))z=[...z,S.cloneNode(!0)];else{const w=e.createElement("div");ve(w,S,p),z=[...z,w.firstChild]}n?r&&L&&ve(L,r,p):(r&&U&&ve(U,M,p),b&&L&&ve(L,z,p),t.btn=e.querySelector(".btn-close",A)||void 0),e.addClass(A,"position-fixed"),e.addClass(O,"position-absolute"),e.hasClass(A,R)||e.addClass(A,R),m&&!e.hasClass(A,P)&&e.addClass(A,P),h&&!e.hasClass(A,h)&&e.addClass(A,h),e.hasClass(A,le)||e.addClass(A,le)},ea=t=>{const n=["HTML","BODY"],s=[];let{parentNode:o}=t;for(;o&&!n.includes(o.nodeName);)o=e.getParentNode(o),e.isShadowRoot(o)||e.isTableElement(o)||s.push(o);return s.find((a,r)=>e.getElementStyle(a,"position")!=="relative"&&s.slice(r+1).every(d=>e.getElementStyle(d,"position")==="static")?a:null)||e.getDocument(t).body},ta=`[${j}="${re}"],[data-tip="${re}"]`,Hs="title";let Ls=t=>e.getInstance(t,Ne);const na=t=>new pt(t),sa=t=>{const{element:n,tooltip:s,container:o,offsetParent:a}=t;e.removeAttribute(n,e.ariaDescribedBy),_n(s,o===a?o:a)},oa=(t,n)=>{const{element:s}=t;Ye(t),e.hasAttribute(s,$s)&&t.name===Ne&&Ms(t),n&&n()},ks=(t,n)=>{const s=n?C.addListener:C.removeListener,{element:o}=t;s(e.getDocument(o),e.touchstartEvent,t.handleTouch,e.passiveHandler),[e.scrollEvent,e.resizeEvent].forEach(a=>{s(e.getWindow(o),a,t.update,e.passiveHandler)})},Is=t=>{const{element:n}=t,s=e.createCustomEvent(`shown.bs.${e.toLowerCase(t.name)}`);ks(t,!0),e.dispatchEvent(n,s),e.Timer.clear(n,"in")},Ns=t=>{const{element:n,onHideComplete:s}=t,o=e.createCustomEvent(`hidden.bs.${e.toLowerCase(t.name)}`);ks(t),sa(t),e.dispatchEvent(n,o),e.isFunction(s)&&(s(),t.onHideComplete=void 0),e.Timer.clear(n,"out")},Ye=(t,n)=>{const s=n?C.addListener:C.removeListener,{element:o,options:a,btn:r}=t,{trigger:d}=a,m=!!(t.name!==Ne&&a.dismissible);if(d.includes("manual"))return;t.enabled=!!n,d.split(" ").forEach(p=>{p===e.mousehoverEvent?(s(o,e.mousedownEvent,t.show),s(o,e.mouseenterEvent,t.show),m&&r?s(r,e.mouseclickEvent,t.hide):(s(o,e.mouseleaveEvent,t.hide),s(e.getDocument(o),e.touchstartEvent,t.handleTouch,e.passiveHandler))):p===e.mouseclickEvent?s(o,p,m?t.show:t.toggle):p===e.focusEvent&&(s(o,e.focusinEvent,t.show),m||s(o,e.focusoutEvent,t.hide),e.isApple&&s(o,e.mouseclickEvent,()=>e.focus(o)))})},Ps=(t,n)=>{const s=n?C.addListener:C.removeListener,{element:o,container:a,offsetParent:r}=t,{offsetHeight:d,scrollHeight:c}=a,m=e.closest(o,`.${V}`),h=e.closest(o,`.${K}`),p=e.getWindow(o),b=a===r&&d!==c?a:p;s(b,e.resizeEvent,t.update,e.passiveHandler),s(b,e.scrollEvent,t.update,e.passiveHandler),m&&s(m,`hide.bs.${V}`,t.hide),h&&s(h,`hide.bs.${K}`,t.hide)},Ms=(t,n)=>{const s=[$s,Hs],{element:o}=t;e.setAttribute(o,s[n?0:1],n||e.getAttribute(o,s[0])||""),e.removeAttribute(o,s[n?1:0])};class pt extends J{static selector=ta;static init=na;static getInstance=Ls;static styleTip=Yt;constructor(n,s){super(n,s);const{element:o}=this,a=this.name===Ne,r=a?re:Ie,d=a?Ne:vt;Ls=m=>e.getInstance(m,d),this.enabled=!0,this.id=`${r}-${e.getUID(o,r)}`;const{options:c}=this;!c.title&&a||!a&&!c.content||(e.ObjectAssign(Gt,{titleAttr:""}),this.handleTouch=this.handleTouch.bind(this),this.update=this.update.bind(this),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.toggle=this.toggle.bind(this),e.hasAttribute(o,Hs)&&a&&typeof c.title=="string"&&Ms(this,c.title),this.container=ea(o),this.offsetParent=["sticky","fixed"].some(m=>e.getElementStyle(this.container,"position")===m)?this.container:e.getDocument(this.element).body,xi(this),Ye(this,!0))}get name(){return Ne}get defaults(){return Gt}show(){const{options:n,tooltip:s,element:o,container:a,offsetParent:r,id:d}=this,{animation:c}=n,m=e.Timer.get(o,"out"),h=a===r?a:r;e.Timer.clear(o,"out"),s&&!m&&!Le(s,h)&&e.Timer.set(o,()=>{const p=e.createCustomEvent(`show.bs.${e.toLowerCase(this.name)}`);e.dispatchEvent(o,p),!p.defaultPrevented&&(Zn(s,h),e.setAttribute(o,e.ariaDescribedBy,`#${d}`),this.update(),Ps(this,!0),e.hasClass(s,E)||e.addClass(s,E),c?e.emulateTransitionEnd(s,()=>Is(this)):Is(this))},17,"in")}hide(){const{options:n,tooltip:s,element:o,container:a,offsetParent:r}=this,{animation:d,delay:c}=n;e.Timer.clear(o,"in"),s&&Le(s,a===r?a:r)&&e.Timer.set(o,()=>{const m=e.createCustomEvent(`hide.bs.${e.toLowerCase(this.name)}`);e.dispatchEvent(o,m),!m.defaultPrevented&&(this.update(),e.removeClass(s,E),Ps(this),d?e.emulateTransitionEnd(s,()=>Ns(this)):Ns(this))},c+17,"out")}update(){Yt(this)}toggle(){const{tooltip:n,container:s,offsetParent:o}=this;n&&!Le(n,s===o?s:o)?this.show():this.hide()}enable(){const{enabled:n}=this;n||(Ye(this,!0),this.enabled=!n)}disable(){const{tooltip:n,container:s,offsetParent:o,options:a,enabled:r}=this,{animation:d}=a;r&&(n&&Le(n,s===o?s:o)&&d?(this.onHideComplete=()=>Ye(this),this.hide()):Ye(this),this.enabled=!r)}toggleEnabled(){this.enabled?this.disable():this.enable()}handleTouch({target:n}){const{tooltip:s,element:o}=this;s&&s.contains(n)||n===o||n&&o.contains(n)||this.hide()}dispose(){const{tooltip:n,container:s,offsetParent:o,options:a}=this,r=()=>oa(this,()=>super.dispose());a.animation&&n&&Le(n,s===o?s:o)?(this.options.delay=0,this.onHideComplete=r,this.hide()):r()}}const ia=`[${j}="${Ie}"],[data-tip="${Ie}"]`,aa=e.ObjectAssign({},Gt,{template:As(Ie),content:"",dismissible:!1,btnClose:'<button class="btn-close" aria-label="Close"></button>'}),ra=t=>e.getInstance(t,vt),la=t=>new Jt(t);class Jt extends pt{static selector=ia;static init=la;static getInstance=ra;static styleTip=Yt;constructor(n,s){super(n,s)}get name(){return vt}get defaults(){return aa}show(){super.show();const{options:n,btn:s}=this;n.dismissible&&s&&setTimeout(()=>e.focus(s),17)}}const ca="scrollspy",Os="ScrollSpy",da='[data-bs-spy="scroll"]',ua={offset:10,target:null},ma=t=>e.getInstance(t,Os),ha=t=>new Zt(t),Bs=e.createCustomEvent(`activate.bs.${ca}`),ga=t=>{const{target:n,scrollTarget:s,options:o,itemsLength:a,scrollHeight:r,element:d}=t,{offset:c}=o,m=e.isWindow(s),h=n&&e.getElementsByTagName("A",n),p=s?Rs(s):r;if(t.scrollTop=m?s.scrollY:s.scrollTop,h&&(p!==r||a!==h.length)){let v,b,S;t.items=[],t.offsets=[],t.scrollHeight=p,t.maxScroll=t.scrollHeight-fa(t),[...h].forEach(R=>{v=e.getAttribute(R,"href"),b=v&&v.charAt(0)==="#"&&v.slice(-1)!=="#"&&e.querySelector(v,e.getDocument(d)),b&&(t.items.push(R),S=e.getBoundingClientRect(b),t.offsets.push((m?S.top+t.scrollTop:b.offsetTop)-c))}),t.itemsLength=t.items.length}},Rs=t=>e.isHTMLElement(t)?t.scrollHeight:e.getDocumentElement(t).scrollHeight,fa=({element:t,scrollTarget:n})=>e.isWindow(n)?n.innerHeight:e.getBoundingClientRect(t).height,zs=t=>{[...e.getElementsByTagName("A",t)].forEach(n=>{e.hasClass(n,T)&&e.removeClass(n,T)})},Ws=(t,n)=>{const{target:s,element:o}=t;e.isHTMLElement(s)&&zs(s),t.activeItem=n,e.addClass(n,T);const a=[];let r=n;for(;r!==e.getDocumentBody(o);)r=r.parentElement,(e.hasClass(r,"nav")||e.hasClass(r,"dropdown-menu"))&&a.push(r);a.forEach(d=>{const c=d.previousElementSibling;c&&!e.hasClass(c,T)&&e.addClass(c,T)}),Bs.relatedTarget=n,e.dispatchEvent(o,Bs)},qs=(t,n)=>{(n?C.addListener:C.removeListener)(t.scrollTarget,e.scrollEvent,t.refresh,e.passiveHandler)};class Zt extends J{static selector=da;static init=ha;static getInstance=ma;constructor(n,s){super(n,s);const{element:o,options:a}=this;this.target=e.querySelector(a.target,e.getDocument(o)),this.target&&(this.scrollTarget=o.clientHeight<o.scrollHeight?o:e.getWindow(o),this.scrollHeight=Rs(this.scrollTarget),this.refresh=this.refresh.bind(this),qs(this,!0),this.refresh())}get name(){return Os}get defaults(){return ua}refresh(){const{target:n}=this;if(n?.offsetHeight===0)return;ga(this);const{scrollTop:s,maxScroll:o,itemsLength:a,items:r,activeItem:d}=this;if(s>=o){const m=r[a-1];d!==m&&Ws(this,m);return}const{offsets:c}=this;if(d&&s<c[0]&&c[0]>0){this.activeItem=null,n&&zs(n);return}r.forEach((m,h)=>{d!==m&&s>=c[h]&&(typeof c[h+1]>"u"||s<c[h+1])&&Ws(this,m)})}dispose(){qs(this),super.dispose()}}const Ge="tab",Fs="Tab",js=`[${j}="${Ge}"]`,Vs=t=>e.getInstance(t,Fs),va=t=>new en(t),_t=e.createCustomEvent(`show.bs.${Ge}`),Us=e.createCustomEvent(`shown.bs.${Ge}`),xt=e.createCustomEvent(`hide.bs.${Ge}`),Ks=e.createCustomEvent(`hidden.bs.${Ge}`),Je=new Map,Qs=t=>{const{tabContent:n,nav:s}=t;n&&e.hasClass(n,$e)&&(n.style.height="",e.removeClass(n,$e)),s&&e.Timer.clear(s)},Xs=t=>{const{element:n,tabContent:s,content:o,nav:a}=t,{tab:r}=e.isHTMLElement(a)&&Je.get(a)||{tab:null};if(s&&o&&e.hasClass(o,P)){const{currentHeight:d,nextHeight:c}=Je.get(n)||{currentHeight:0,nextHeight:0};d===c?Qs(t):setTimeout(()=>{s.style.height=`${c}px`,e.reflow(s),e.emulateTransitionEnd(s,()=>Qs(t))},50)}else a&&e.Timer.clear(a);Us.relatedTarget=r,e.dispatchEvent(n,Us)},Ys=t=>{const{element:n,content:s,tabContent:o,nav:a}=t,{tab:r,content:d}=a&&Je.get(a)||{tab:null,content:null};let c=0;if(o&&s&&e.hasClass(s,P)&&([d,s].forEach(m=>{e.isHTMLElement(m)&&e.addClass(m,"overflow-hidden")}),c=e.isHTMLElement(d)?d.scrollHeight:0),_t.relatedTarget=r,Ks.relatedTarget=n,e.dispatchEvent(n,_t),!_t.defaultPrevented){if(s&&e.addClass(s,T),d&&e.removeClass(d,T),o&&s&&e.hasClass(s,P)){const m=s.scrollHeight;Je.set(n,{currentHeight:c,nextHeight:m,tab:null,content:null}),e.addClass(o,$e),o.style.height=`${c}px`,e.reflow(o),[d,s].forEach(h=>{h&&e.removeClass(h,"overflow-hidden")})}s&&s&&e.hasClass(s,P)?setTimeout(()=>{e.addClass(s,E),e.emulateTransitionEnd(s,()=>{Xs(t)})},1):(s&&e.addClass(s,E),Xs(t)),r&&e.dispatchEvent(r,Ks)}},Gs=t=>{const{nav:n}=t;if(!e.isHTMLElement(n))return{tab:null,content:null};const s=e.getElementsByClassName(T,n);let o=null;s.length===1&&!He.some(r=>e.hasClass(s[0].parentElement,r))?[o]=s:s.length>1&&(o=s[s.length-1]);const a=e.isHTMLElement(o)?q(o):null;return{tab:o,content:a}},Js=t=>{if(!e.isHTMLElement(t))return null;const n=e.closest(t,`.${He.join(",.")}`);return n?e.querySelector(`.${He[0]}-toggle`,n):null},Zs=(t,n)=>{(n?C.addListener:C.removeListener)(t.element,e.mouseclickEvent,pa)},pa=t=>{const n=Vs(t.target);n&&(t.preventDefault(),n.show())};class en extends J{static selector=js;static init=va;static getInstance=Vs;constructor(n){super(n);const{element:s}=this,o=q(s);if(!o)return;const a=e.closest(s,".nav"),r=e.closest(o,".tab-content");this.nav=a,this.content=o,this.tabContent=r,this.dropdown=Js(s);const{tab:d}=Gs(this);if(a&&!d){const c=e.querySelector(js,a),m=c&&q(c);m&&(e.addClass(c,T),e.addClass(m,E),e.addClass(m,T),e.setAttribute(s,e.ariaSelected,"true"))}Zs(this,!0)}get name(){return Fs}show(){const{element:n,content:s,nav:o,dropdown:a}=this;if(!(o&&e.Timer.get(o))&&!e.hasClass(n,T)){const{tab:r,content:d}=Gs(this);if(o&&Je.set(o,{tab:r,content:d,currentHeight:0,nextHeight:0}),xt.relatedTarget=n,e.isHTMLElement(r)&&e.dispatchEvent(r,xt),xt.defaultPrevented)return;e.addClass(n,T),e.setAttribute(n,e.ariaSelected,"true");const c=e.isHTMLElement(r)&&Js(r);if(c&&e.hasClass(c,T)&&e.removeClass(c,T),o){const m=()=>{r&&(e.removeClass(r,T),e.setAttribute(r,e.ariaSelected,"false")),a&&!e.hasClass(a,T)&&e.addClass(a,T)};d&&(e.hasClass(d,P)||s&&e.hasClass(s,P))?e.Timer.set(o,m,1):m()}d&&(e.removeClass(d,E),e.hasClass(d,P)?e.emulateTransitionEnd(d,()=>Ys(this)):Ys(this))}}dispose(){Zs(this),super.dispose()}}const Q="toast",_s="Toast",Ea=`.${Q}`,ba=`[${it}="${Q}"]`,xs=`[${j}="${Q}"]`,Re="showing",eo="hide",Ca={animation:!0,autohide:!0,delay:5e3},tn=t=>e.getInstance(t,_s),ya=t=>new nn(t),to=e.createCustomEvent(`show.bs.${Q}`),Ta=e.createCustomEvent(`shown.bs.${Q}`),no=e.createCustomEvent(`hide.bs.${Q}`),wa=e.createCustomEvent(`hidden.bs.${Q}`),so=t=>{const{element:n,options:s}=t;e.removeClass(n,Re),e.Timer.clear(n,Re),e.dispatchEvent(n,Ta),s.autohide&&e.Timer.set(n,()=>t.hide(),s.delay,Q)},oo=t=>{const{element:n}=t;e.removeClass(n,Re),e.removeClass(n,E),e.addClass(n,eo),e.Timer.clear(n,Q),e.dispatchEvent(n,wa)},Sa=t=>{const{element:n,options:s}=t;e.addClass(n,Re),s.animation?(e.reflow(n),e.emulateTransitionEnd(n,()=>oo(t))):oo(t)},Aa=t=>{const{element:n,options:s}=t;e.Timer.set(n,()=>{e.removeClass(n,eo),e.reflow(n),e.addClass(n,E),e.addClass(n,Re),s.animation?e.emulateTransitionEnd(n,()=>so(t)):so(t)},17,Re)},io=(t,n)=>{const s=n?C.addListener:C.removeListener,{element:o,triggers:a,dismiss:r,options:d}=t;r&&s(r,e.mouseclickEvent,t.hide),d.autohide&&[e.focusinEvent,e.focusoutEvent,e.mouseenterEvent,e.mouseleaveEvent].forEach(c=>s(o,c,Ha)),a.length&&a.forEach(c=>s(c,e.mouseclickEvent,$a))},Da=t=>{e.Timer.clear(t.element,Q),io(t)},$a=t=>{const{target:n}=t,s=n&&e.closest(n,xs),o=s&&q(s),a=o&&tn(o);a&&(s&&s.tagName==="A"&&t.preventDefault(),a.relatedTarget=s,a.show())},Ha=t=>{const n=t.target,s=tn(n),{type:o,relatedTarget:a}=t;!s||n===a||n.contains(a)||([e.mouseenterEvent,e.focusinEvent].includes(o)?e.Timer.clear(n,Q):e.Timer.set(n,()=>s.hide(),s.options.delay,Q))};class nn extends J{static selector=Ea;static init=ya;static getInstance=tn;constructor(n,s){super(n,s);const{element:o,options:a}=this;a.animation&&!e.hasClass(o,P)?e.addClass(o,P):!a.animation&&e.hasClass(o,P)&&e.removeClass(o,P),this.dismiss=e.querySelector(ba,o),this.triggers=[...e.querySelectorAll(xs,e.getDocument(o))].filter(r=>q(r)===o),this.show=this.show.bind(this),this.hide=this.hide.bind(this),io(this,!0)}get name(){return _s}get defaults(){return Ca}get isShown(){return e.hasClass(this.element,E)}show(){const{element:n,isShown:s}=this;if(n&&!s){if(e.dispatchEvent(n,to),to.defaultPrevented)return;Aa(this)}}hide(){const{element:n,isShown:s}=this;if(n&&s){if(e.dispatchEvent(n,no),no.defaultPrevented)return;Sa(this)}}dispose(){const{element:n,isShown:s}=this;s&&e.removeClass(n,E),Da(this),super.dispose()}}const sn=new Map;[At,Dt,Pt,Mt,zt,Ut,Xt,Jt,Zt,en,nn,pt].forEach(t=>sn.set(t.prototype.name,t));const La=(t,n)=>{[...n].forEach(s=>t(s))},ka=(t,n)=>{const s=e.Data.getAllFor(t);s&&[...s].forEach(([o,a])=>{n.contains(o)&&a.dispose()})},on=t=>{const n=t&&t.nodeName?t:document,s=[...e.getElementsByTagName("*",n)];sn.forEach(o=>{const{init:a,selector:r}=o;La(a,s.filter(d=>e.matches(d,r)))})},Ia=t=>{const n=t&&t.nodeName?t:document;sn.forEach(s=>{ka(s.prototype.name,n)})};return document.body?on():C.addListener(document,"DOMContentLoaded",()=>on(),{once:!0}),N.Alert=At,N.Button=Dt,N.Carousel=Pt,N.Collapse=Mt,N.Dropdown=zt,N.Listener=C,N.Modal=Ut,N.Offcanvas=Xt,N.Popover=Jt,N.ScrollSpy=Zt,N.Tab=en,N.Toast=nn,N.Tooltip=pt,N.initCallback=on,N.removeDataAPI=Ia,Object.defineProperty(N,Symbol.toStringTag,{value:"Module"}),N}({});
var BSN=function(D){"use strict";var Oc=Object.defineProperty;var Bc=(D,b,e)=>b in D?Oc(D,b,{enumerable:!0,configurable:!0,writable:!0,value:e}):D[b]=e;var v=(D,b,e)=>(Bc(D,typeof b!="symbol"?b+"":b,e),e);var b={};(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const s={},n=d=>{const{type:u,currentTarget:h}=d;[...s[u]].forEach(([p,f])=>{h===p&&[...f].forEach(([y,A])=>{y.apply(p,[d]),typeof A=="object"&&A.once&&a(p,u,y,A)})})},o=(d,u,h,p)=>{s[u]||(s[u]=new Map);const f=s[u];f.has(d)||f.set(d,new Map);const y=f.get(d),{size:A}=y;y.set(h,p),A||d.addEventListener(u,n,p)},a=(d,u,h,p)=>{const f=s[u],y=f&&f.get(d),A=y&&y.get(h),z=A!==void 0?A:p;y&&y.has(h)&&y.delete(h),f&&(!y||!y.size)&&f.delete(d),(!f||!f.size)&&delete s[u],(!y||!y.size)&&d.removeEventListener(u,n,z)},r=o,l=a;t.addListener=o,t.globalListener=n,t.off=l,t.on=r,t.registry=s,t.removeListener=a})(b);var e={};(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const s="aria-checked",n="aria-description",o="aria-describedby",a="aria-expanded",r="aria-haspopup",l="aria-hidden",d="aria-label",u="aria-labelledby",h="aria-modal",p="aria-pressed",f="aria-selected",y="aria-valuemin",A="aria-valuemax",z="aria-valuenow",T="aria-valuetext",O="abort",W="beforeunload",le="blur",Y="change",$="contextmenu",G="DOMContentLoaded",K="DOMMouseScroll",I="error",B="focus",S="focusin",de="focusout",ee="gesturechange",H="gestureend",te="gesturestart",ae="keydown",be="keypress",ne="keyup",Je="load",ue="click",Be="dblclick",Ze="mousedown",re="mouseup",se="hover",xe="mouseenter",Ce="mouseleave",ye="mousein",Te="mouseout",we="mouseover",Re="mousemove",et="mousewheel",kt="move",oo="orientationchange",io="pointercancel",ao="pointerdown",ro="pointerleave",co="pointermove",lo="pointerup",uo="readystatechange",mo="reset",ho="resize",go="select",fo="selectend",vo="selectstart",po="scroll",Eo="submit",bo="touchstart",Co="touchmove",yo="touchcancel",To="touchend",wo="unload",Ma={DOMContentLoaded:G,DOMMouseScroll:K,abort:O,beforeunload:W,blur:le,change:Y,click:ue,contextmenu:$,dblclick:Be,error:I,focus:B,focusin:S,focusout:de,gesturechange:ee,gestureend:H,gesturestart:te,hover:se,keydown:ae,keypress:be,keyup:ne,load:Je,mousedown:Ze,mousemove:Re,mousein:ye,mouseout:Te,mouseenter:xe,mouseleave:Ce,mouseover:we,mouseup:re,mousewheel:et,move:kt,orientationchange:oo,pointercancel:io,pointerdown:ao,pointerleave:ro,pointermove:co,pointerup:lo,readystatechange:uo,reset:mo,resize:ho,scroll:po,select:go,selectend:fo,selectstart:vo,submit:Eo,touchcancel:yo,touchend:To,touchmove:Co,touchstart:bo,unload:wo},Pa="drag",Oa="dragstart",Ba="dragenter",Ra="dragleave",za="dragover",Wa="dragend",qa="loadstart",Fa={start:"mousedown",end:"mouseup",move:"mousemove",cancel:"mouseleave"},ja={down:"mousedown",up:"mouseup"},Va="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],Ua={start:"touchstart",end:"touchend",move:"touchmove",cancel:"touchcancel"},Ka={in:"focusin",out:"focusout"},Qa={Backspace:"Backspace",Tab:"Tab",Enter:"Enter",Shift:"Shift",Control:"Control",Alt:"Alt",Pause:"Pause",CapsLock:"CapsLock",Escape:"Escape",Scape:"Space",ArrowLeft:"ArrowLeft",ArrowUp:"ArrowUp",ArrowRight:"ArrowRight",ArrowDown:"ArrowDown",Insert:"Insert",Delete:"Delete",Meta:"Meta",ContextMenu:"ContextMenu",ScrollLock:"ScrollLock"},Xa="Alt",Ya="ArrowDown",Ga="ArrowUp",_a="ArrowLeft",Ja="ArrowRight",Za="Backspace",xa="CapsLock",er="Control",tr="Delete",nr="Enter",sr="Escape",or="Insert",ir="Meta",ar="Pause",rr="ScrollLock",cr="Shift",lr="Space",dr="Tab",So="animationDuration",Ao="animationDelay",rn="animationName",It="animationend",$o="transitionDuration",Do="transitionDelay",Nt="transitionend",cn="transitionProperty",ur="addEventListener",mr="removeEventListener",hr={linear:"linear",easingSinusoidalIn:"cubic-bezier(0.47,0,0.745,0.715)",easingSinusoidalOut:"cubic-bezier(0.39,0.575,0.565,1)",easingSinusoidalInOut:"cubic-bezier(0.445,0.05,0.55,0.95)",easingQuadraticIn:"cubic-bezier(0.550,0.085,0.680,0.530)",easingQuadraticOut:"cubic-bezier(0.250,0.460,0.450,0.940)",easingQuadraticInOut:"cubic-bezier(0.455,0.030,0.515,0.955)",easingCubicIn:"cubic-bezier(0.55,0.055,0.675,0.19)",easingCubicOut:"cubic-bezier(0.215,0.61,0.355,1)",easingCubicInOut:"cubic-bezier(0.645,0.045,0.355,1)",easingQuarticIn:"cubic-bezier(0.895,0.03,0.685,0.22)",easingQuarticOut:"cubic-bezier(0.165,0.84,0.44,1)",easingQuarticInOut:"cubic-bezier(0.77,0,0.175,1)",easingQuinticIn:"cubic-bezier(0.755,0.05,0.855,0.06)",easingQuinticOut:"cubic-bezier(0.23,1,0.32,1)",easingQuinticInOut:"cubic-bezier(0.86,0,0.07,1)",easingExponentialIn:"cubic-bezier(0.95,0.05,0.795,0.035)",easingExponentialOut:"cubic-bezier(0.19,1,0.22,1)",easingExponentialInOut:"cubic-bezier(1,0,0,1)",easingCircularIn:"cubic-bezier(0.6,0.04,0.98,0.335)",easingCircularOut:"cubic-bezier(0.075,0.82,0.165,1)",easingCircularInOut:"cubic-bezier(0.785,0.135,0.15,0.86)",easingBackIn:"cubic-bezier(0.6,-0.28,0.735,0.045)",easingBackOut:"cubic-bezier(0.175,0.885,0.32,1.275)",easingBackInOut:"cubic-bezier(0.68,-0.55,0.265,1.55)"},gr="offsetHeight",fr="offsetWidth",vr="scrollHeight",pr="scrollWidth",Er="tabindex",br=navigator.userAgentData,dt=br,{userAgent:Cr}=navigator,ut=Cr,Ho=/iPhone|iPad|iPod|Android/i;let ln=!1;dt?ln=dt.brands.some(i=>Ho.test(i.brand)):ln=Ho.test(ut);const yr=ln,Lo=/(iPhone|iPod|iPad)/,Tr=dt?dt.brands.some(i=>Lo.test(i.brand)):Lo.test(ut),wr=ut?ut.includes("Firefox"):!1,{head:mt}=document,Sr=["webkitPerspective","perspective"].some(i=>i in mt.style),ko=(i,c,m,g)=>{const E=g||!1;i.addEventListener(c,m,E)},Io=(i,c,m,g)=>{const E=g||!1;i.removeEventListener(c,m,E)},No=(i,c,m,g)=>{const E=M=>{(M.target===i||M.currentTarget===i)&&(m.apply(i,[M]),Io(i,c,E,g))};ko(i,c,E,g)},Mo=()=>{},Ar=(()=>{let i=!1;try{const c=Object.defineProperty({},"passive",{get:()=>(i=!0,i)});No(document,G,Mo,c)}catch{}return i})(),$r=["webkitTransform","transform"].some(i=>i in mt.style),Dr="ontouchstart"in window||"msMaxTouchPoints"in navigator,Hr=["webkitAnimation","animation"].some(i=>i in mt.style),Lr=["webkitTransition","transition"].some(i=>i in mt.style),Po=(i,c)=>i.getAttribute(c),kr=(i,c,m)=>c.getAttributeNS(i,m),Ir=(i,c)=>i.hasAttribute(c),Nr=(i,c,m)=>c.hasAttributeNS(i,m),Mr=(i,c,m)=>i.setAttribute(c,m),Pr=(i,c,m,g)=>c.setAttributeNS(i,m,g),Or=(i,c)=>i.removeAttribute(c),Br=(i,c,m)=>c.removeAttributeNS(i,m),Rr=(i,...c)=>{i.classList.add(...c)},zr=(i,...c)=>{i.classList.remove(...c)},Wr=(i,c)=>i.classList.contains(c),{body:qr}=document,{documentElement:Fr}=document,jr=i=>Array.from(i),me=i=>i!=null&&typeof i=="object"||!1,N=i=>me(i)&&typeof i.nodeType=="number"&&[1,2,3,4,5,6,7,8,9,10,11].some(c=>i.nodeType===c)||!1,q=i=>N(i)&&i.nodeType===1||!1,ht=new Map,Mt={set:(i,c,m)=>{q(i)&&(ht.has(c)||ht.set(c,new Map),ht.get(c).set(i,m))},getAllFor:i=>ht.get(i)||null,get:(i,c)=>{if(!q(i)||!c)return null;const m=Mt.getAllFor(c);return i&&m&&m.get(i)||null},remove:(i,c)=>{const m=Mt.getAllFor(c);!m||!q(i)||(m.delete(i),m.size===0&&ht.delete(c))}},Vr=(i,c)=>Mt.get(i,c),gt=i=>typeof i=="string"||!1,dn=i=>me(i)&&i.constructor.name==="Window"||!1,un=i=>N(i)&&i.nodeType===9||!1,oe=i=>dn(i)?i.document:un(i)?i:N(i)?i.ownerDocument:window.document,ft=(i,...c)=>Object.assign(i,...c),Oo=i=>{if(!i)return;if(gt(i))return oe().createElement(i);const{tagName:c}=i,m=Oo(c);if(!m)return;const g={...i};return delete g.tagName,ft(m,g)},Bo=(i,c)=>{if(!i||!c)return;if(gt(c))return oe().createElementNS(i,c);const{tagName:m}=c,g=Bo(i,m);if(!g)return;const E={...c};return delete E.tagName,ft(g,E)},mn=(i,c)=>i.dispatchEvent(c),Ur=(i,c,m)=>m.indexOf(i)===c,he=(i,c)=>{const m=getComputedStyle(i),g=c.replace("webkit","Webkit").replace(/([A-Z])/g,"-$1").toLowerCase();return m.getPropertyValue(g)},Ro=i=>{const c=he(i,rn),m=he(i,Ao),g=m.includes("ms")?1:1e3,E=c&&c!=="none"?parseFloat(m)*g:0;return Number.isNaN(E)?0:E},zo=i=>{const c=he(i,rn),m=he(i,So),g=m.includes("ms")?1:1e3,E=c&&c!=="none"?parseFloat(m)*g:0;return Number.isNaN(E)?0:E},Kr=(i,c)=>{let m=0;const g=new Event(It),E=zo(i),M=Ro(i);if(E){const R=_=>{_.target===i&&(c.apply(i,[_]),i.removeEventListener(It,R),m=1)};i.addEventListener(It,R),setTimeout(()=>{m||mn(i,g)},E+M+17)}else c.apply(i,[g])},Wo=i=>{const c=he(i,cn),m=he(i,Do),g=m.includes("ms")?1:1e3,E=c&&c!=="none"?parseFloat(m)*g:0;return Number.isNaN(E)?0:E},qo=i=>{const c=he(i,cn),m=he(i,$o),g=m.includes("ms")?1:1e3,E=c&&c!=="none"?parseFloat(m)*g:0;return Number.isNaN(E)?0:E},Qr=(i,c)=>{let m=0;const g=new Event(Nt),E=qo(i),M=Wo(i);if(E){const R=_=>{_.target===i&&(c.apply(i,[_]),i.removeEventListener(Nt,R),m=1)};i.addEventListener(Nt,R),setTimeout(()=>{m||mn(i,g)},E+M+17)}else c.apply(i,[g])},Xr=i=>Float32Array.from(Array.from(i)),Yr=i=>Float64Array.from(Array.from(i)),Gr=(i,c)=>i.focus(c),hn=i=>["true",!0].includes(i)?!0:["false",!1].includes(i)?!1:["null","",null,void 0].includes(i)?null:i!==""&&!Number.isNaN(+i)?+i:i,vt=i=>Object.entries(i),Fo=i=>i.toLowerCase(),_r=(i,c,m,g)=>{const E={...m},M={...i.dataset},R={...c},_={},Ae="title";return vt(M).forEach(([k,$e])=>{const Ot=g&&typeof k=="string"&&k.includes(g)?k.replace(g,"").replace(/[A-Z]/g,Pc=>Fo(Pc)):k;_[Ot]=hn($e)}),vt(E).forEach(([k,$e])=>{E[k]=hn($e)}),vt(c).forEach(([k,$e])=>{k in E?R[k]=E[k]:k in _?R[k]=_[k]:R[k]=k===Ae?Po(i,Ae):$e}),R},Jr=(i,c)=>me(i)&&(Object.hasOwn(i,c)||c in i),Zr=i=>Object.keys(i),xr=i=>Object.values(i),ec=(i,c)=>{const m=new CustomEvent(i,{cancelable:!0,bubbles:!0});return me(c)&&ft(m,c),m},tc={passive:!0},nc=i=>i.offsetHeight,sc=(i,c)=>{vt(c).forEach(([m,g])=>{if(g&&gt(m)&&m.includes("--"))i.style.setProperty(m,g);else{const E={};E[m]=g,ft(i.style,E)}})},Pt=i=>me(i)&&i.constructor.name==="Map"||!1,jo=i=>typeof i=="number"||!1,Se=new Map,oc={set:(i,c,m,g)=>{q(i)&&(g&&g.length?(Se.has(i)||Se.set(i,new Map),Se.get(i).set(g,setTimeout(c,m))):Se.set(i,setTimeout(c,m)))},get:(i,c)=>{if(!q(i))return null;const m=Se.get(i);return c&&m&&Pt(m)?m.get(c)||null:jo(m)?m:null},clear:(i,c)=>{if(!q(i))return;const m=Se.get(i);c&&c.length&&Pt(m)?(clearTimeout(m.get(c)),m.delete(c),m.size===0&&Se.delete(i)):(clearTimeout(m),Se.delete(i))}},ic=i=>i.toUpperCase(),tt=(i,c)=>{const{width:m,height:g,top:E,right:M,bottom:R,left:_}=i.getBoundingClientRect();let Ae=1,k=1;if(c&&q(i)){const{offsetWidth:$e,offsetHeight:Ot}=i;Ae=$e>0?Math.round(m)/$e:1,k=Ot>0?Math.round(g)/Ot:1}return{width:m/Ae,height:g/k,top:E/k,right:M/Ae,bottom:R/k,left:_/Ae,x:_/Ae,y:E/k}},ac=i=>oe(i).body,pt=i=>oe(i).documentElement,rc=i=>oe(i).head,cc=i=>{const c=dn(i),m=c?i.scrollX:i.scrollLeft,g=c?i.scrollY:i.scrollTop;return{x:m,y:g}},Vo=i=>N(i)&&i.constructor.name==="ShadowRoot"||!1,lc=i=>i.nodeName==="HTML"?i:q(i)&&i.assignedSlot||N(i)&&i.parentNode||Vo(i)&&i.host||pt(i),Uo=i=>{if(!q(i))return!1;const{width:c,height:m}=tt(i),{offsetWidth:g,offsetHeight:E}=i;return Math.round(c)!==g||Math.round(m)!==E},dc=(i,c,m)=>{const g=q(c),E=tt(i,g&&Uo(c)),M={x:0,y:0};if(g){const R=tt(c,!0);M.x=R.x+c.clientLeft,M.y=R.y+c.clientTop}return{x:E.left+m.x-M.x,y:E.top+m.y-M.y,width:E.width,height:E.height}};let Ko=0,Qo=0;const nt=new Map,Xo=(i,c)=>{let m=c?Ko:Qo;if(c){const g=Xo(i),E=nt.get(g)||new Map;nt.has(g)||nt.set(g,E),Pt(E)&&!E.has(c)?(E.set(c,m),Ko+=1):m=E.get(c)}else{const g=i.id||i;nt.has(g)?m=nt.get(g):(nt.set(g,m),Qo+=1)}return m},uc=i=>{var c;return i?un(i)?i.defaultView:N(i)?(c=i==null?void 0:i.ownerDocument)==null?void 0:c.defaultView:i:window},Yo=i=>Array.isArray(i)||!1,mc=i=>N(i)&&i.nodeName==="CANVAS"||!1,Go=i=>q(i)&&!!i.shadowRoot||!1,hc=i=>N(i)&&[1,2,3,4,5,6,7,8].some(c=>i.nodeType===c)||!1,gc=i=>{if(!N(i))return!1;const{top:c,bottom:m}=tt(i),{clientHeight:g}=pt(i);return c<=g&&m>=0},fc=i=>{if(!N(i))return!1;const{clientWidth:c,clientHeight:m}=pt(i),{top:g,left:E,bottom:M,right:R}=tt(i,!0);return g>=0&&E>=0&&M<=m&&R<=c},vc=i=>Yo(i)&&i.every(q)||!1,pc=i=>typeof i=="function"||!1,Ec=i=>me(i)&&i.constructor.name==="HTMLCollection"||!1,bc=i=>q(i)&&i.tagName==="IMG"||!1,Cc=i=>{if(!gt(i))return!1;try{JSON.parse(i)}catch{return!1}return!0},yc=i=>me(i)&&i.constructor.name==="WeakMap"||!1,Tc=i=>N(i)&&["SVG","Image","Video","Canvas"].some(c=>i.constructor.name.includes(c))||!1,wc=i=>me(i)&&i.constructor.name==="NodeList"||!1,Sc=i=>pt(i).dir==="rtl",Ac=i=>N(i)&&i.constructor.name.includes("SVG")||!1,$c=i=>N(i)&&["TABLE","TD","TH"].includes(i.nodeName)||!1,_o=(i,c)=>i?i.closest(c)||_o(i.getRootNode().host,c):null,Dc=(i,c)=>q(i)?i:(N(c)?c:oe()).querySelector(i),Jo=(i,c)=>(N(c)?c:oe()).getElementsByTagName(i),Hc=i=>[...Jo("*",i)].filter(Go),Lc=(i,c)=>oe(c).getElementById(i)||null,kc=(i,c)=>(N(c)?c:oe()).querySelectorAll(i),Ic=(i,c)=>(c&&N(c)?c:oe()).getElementsByClassName(i),Nc=(i,c)=>i.matches(c),Mc="2.0.0alpha12";t.ArrayFrom=jr,t.DOMContentLoadedEvent=G,t.DOMMouseScrollEvent=K,t.Data=Mt,t.Float32ArrayFrom=Xr,t.Float64ArrayFrom=Yr,t.ObjectAssign=ft,t.ObjectEntries=vt,t.ObjectHasOwn=Jr,t.ObjectKeys=Zr,t.ObjectValues=xr,t.Timer=oc,t.abortEvent=O,t.addClass=Rr,t.addEventListener=ur,t.animationDelay=Ao,t.animationDuration=So,t.animationEndEvent=It,t.animationName=rn,t.ariaChecked=s,t.ariaDescribedBy=o,t.ariaDescription=n,t.ariaExpanded=a,t.ariaHasPopup=r,t.ariaHidden=l,t.ariaLabel=d,t.ariaLabelledBy=u,t.ariaModal=h,t.ariaPressed=p,t.ariaSelected=f,t.ariaValueMax=A,t.ariaValueMin=y,t.ariaValueNow=z,t.ariaValueText=T,t.beforeunloadEvent=W,t.bezierEasings=hr,t.blurEvent=le,t.changeEvent=Y,t.closest=_o,t.contextmenuEvent=$,t.createCustomEvent=ec,t.createElement=Oo,t.createElementNS=Bo,t.dispatchEvent=mn,t.distinct=Ur,t.documentBody=qr,t.documentElement=Fr,t.documentHead=mt,t.dragEvent=Pa,t.dragendEvent=Wa,t.dragenterEvent=Ba,t.dragleaveEvent=Ra,t.dragoverEvent=za,t.dragstartEvent=Oa,t.emulateAnimationEnd=Kr,t.emulateTransitionEnd=Qr,t.errorEvent=I,t.focus=Gr,t.focusEvent=B,t.focusEvents=Ka,t.focusinEvent=S,t.focusoutEvent=de,t.gesturechangeEvent=ee,t.gestureendEvent=H,t.gesturestartEvent=te,t.getAttribute=Po,t.getAttributeNS=kr,t.getBoundingClientRect=tt,t.getCustomElements=Hc,t.getDocument=oe,t.getDocumentBody=ac,t.getDocumentElement=pt,t.getDocumentHead=rc,t.getElementAnimationDelay=Ro,t.getElementAnimationDuration=zo,t.getElementById=Lc,t.getElementStyle=he,t.getElementTransitionDelay=Wo,t.getElementTransitionDuration=qo,t.getElementsByClassName=Ic,t.getElementsByTagName=Jo,t.getInstance=Vr,t.getNodeScroll=cc,t.getParentNode=lc,t.getRectRelativeToOffsetParent=dc,t.getUID=Xo,t.getWindow=uc,t.hasAttribute=Ir,t.hasAttributeNS=Nr,t.hasClass=Wr,t.isApple=Tr,t.isArray=Yo,t.isCanvas=mc,t.isCustomElement=Go,t.isDocument=un,t.isElement=hc,t.isElementInScrollRange=gc,t.isElementInViewport=fc,t.isElementsArray=vc,t.isFirefox=wr,t.isFunction=pc,t.isHTMLCollection=Ec,t.isHTMLElement=q,t.isHTMLImageElement=bc,t.isJSON=Cc,t.isMap=Pt,t.isMedia=Tc,t.isMobile=yr,t.isNode=N,t.isNodeList=wc,t.isNumber=jo,t.isObject=me,t.isRTL=Sc,t.isSVGElement=Ac,t.isScaledElement=Uo,t.isShadowRoot=Vo,t.isString=gt,t.isTableElement=$c,t.isWeakMap=yc,t.isWindow=dn,t.keyAlt=Xa,t.keyArrowDown=Ya,t.keyArrowLeft=_a,t.keyArrowRight=Ja,t.keyArrowUp=Ga,t.keyBackspace=Za,t.keyCapsLock=xa,t.keyControl=er,t.keyDelete=tr,t.keyEnter=nr,t.keyEscape=sr,t.keyInsert=or,t.keyMeta=ir,t.keyPause=ar,t.keyScrollLock=rr,t.keyShift=cr,t.keySpace=lr,t.keyTab=dr,t.keyboardEventKeys=Qa,t.keydownEvent=ae,t.keypressEvent=be,t.keyupEvent=ne,t.loadEvent=Je,t.loadstartEvent=qa,t.matches=Nc,t.mouseClickEvents=ja,t.mouseHoverEvents=Va,t.mouseSwipeEvents=Fa,t.mouseclickEvent=ue,t.mousedblclickEvent=Be,t.mousedownEvent=Ze,t.mouseenterEvent=xe,t.mousehoverEvent=se,t.mouseinEvent=ye,t.mouseleaveEvent=Ce,t.mousemoveEvent=Re,t.mouseoutEvent=Te,t.mouseoverEvent=we,t.mouseupEvent=re,t.mousewheelEvent=et,t.moveEvent=kt,t.nativeEvents=Ma,t.noop=Mo,t.normalizeOptions=_r,t.normalizeValue=hn,t.off=Io,t.offsetHeight=gr,t.offsetWidth=fr,t.on=ko,t.one=No,t.orientationchangeEvent=oo,t.passiveHandler=tc,t.pointercancelEvent=io,t.pointerdownEvent=ao,t.pointerleaveEvent=ro,t.pointermoveEvent=co,t.pointerupEvent=lo,t.querySelector=Dc,t.querySelectorAll=kc,t.readystatechangeEvent=uo,t.reflow=nc,t.removeAttribute=Or,t.removeAttributeNS=Br,t.removeClass=zr,t.removeEventListener=mr,t.resetEvent=mo,t.resizeEvent=ho,t.scrollEvent=po,t.scrollHeight=vr,t.scrollWidth=pr,t.selectEvent=go,t.selectendEvent=fo,t.selectstartEvent=vo,t.setAttribute=Mr,t.setAttributeNS=Pr,t.setElementStyle=sc,t.submitEvent=Eo,t.support3DTransform=Sr,t.supportAnimation=Hr,t.supportPassive=Ar,t.supportTouch=Dr,t.supportTransform=$r,t.supportTransition=Lr,t.tabindex=Er,t.toLowerCase=Fo,t.toUpperCase=ic,t.touchEvents=Ua,t.touchcancelEvent=yo,t.touchendEvent=To,t.touchmoveEvent=Co,t.touchstartEvent=bo,t.transitionDelay=Do,t.transitionDuration=$o,t.transitionEndEvent=Nt,t.transitionProperty=cn,t.unloadEvent=wo,t.userAgent=ut,t.userAgentData=dt,t.version=Mc})(e);const P="fade",C="show",Et="data-bs-dismiss",bt="alert",gn="Alert",Zo="5.0.4";class J{constructor(s,n){v(this,"element");v(this,"options");const o=e.querySelector(s);if(!o)throw e.isString(s)?Error(`${this.name} Error: "${s}" is not a valid selector.`):Error(`${this.name} Error: your target is not an instance of HTMLElement.`);const a=e.Data.get(o,this.name);a&&a.dispose(),this.element=o,this.defaults&&e.ObjectKeys(this.defaults).length&&(this.options=e.normalizeOptions(o,this.defaults,n||{},"bs")),e.Data.set(o,this.name,this)}get version(){return Zo}get name(){return"BaseComponent"}get defaults(){return{}}dispose(){e.Data.remove(this.element,this.name),e.ObjectKeys(this).forEach(s=>{delete this[s]})}}const xo=`.${bt}`,ei=`[${Et}="${bt}"]`,ti=t=>e.getInstance(t,gn),ni=t=>new ze(t),fn=e.createCustomEvent(`close.bs.${bt}`),si=e.createCustomEvent(`closed.bs.${bt}`),vn=t=>{const{element:s}=t;Bt(t),e.dispatchEvent(s,si),t.dispose(),s.remove()},Bt=(t,s)=>{const n=s?b.addListener:b.removeListener,{dismiss:o,close:a}=t;o&&n(o,e.mouseclickEvent,a)};class ze extends J{constructor(n){super(n);v(this,"dismiss");v(this,"close",()=>{const{element:n}=this;if(n&&e.hasClass(n,C)){if(e.dispatchEvent(n,fn),fn.defaultPrevented)return;e.removeClass(n,C),e.hasClass(n,P)?e.emulateTransitionEnd(n,()=>vn(this)):vn(this)}});this.dismiss=e.querySelector(ei,this.element),Bt(this,!0)}get name(){return gn}dispose(){Bt(this),super.dispose()}}v(ze,"selector",xo),v(ze,"init",ni),v(ze,"getInstance",ti);const w="active",V="data-bs-toggle",oi="button",pn="Button",ii=`[${V}="${oi}"]`,ai=t=>e.getInstance(t,pn),ri=t=>new We(t),En=(t,s)=>{(s?b.addListener:b.removeListener)(t.element,e.mouseclickEvent,t.toggle)};class We extends J{constructor(n){super(n);v(this,"isActive",!1);v(this,"toggle",n=>{n&&n.preventDefault();const{element:o,isActive:a}=this;if(e.hasClass(o,"disabled"))return;(a?e.removeClass:e.addClass)(o,w),e.setAttribute(o,e.ariaPressed,a?"false":"true"),this.isActive=e.hasClass(o,w)});const{element:o}=this;this.isActive=e.hasClass(o,w),e.setAttribute(o,e.ariaPressed,String(!!this.isActive)),En(this,!0)}get name(){return pn}dispose(){En(this),super.dispose()}}v(We,"selector",ii),v(We,"init",ri),v(We,"getInstance",ai);const Rt="data-bs-target",De="carousel",bn="Carousel",Cn="data-bs-parent",ci="data-bs-container",F=t=>{const s=[Rt,Cn,ci,"href"],n=e.getDocument(t);return s.map(o=>{const a=e.getAttribute(t,o);return a?o===Cn?e.closest(t,a):e.querySelector(a,n):null}).filter(o=>o)[0]},st=`[data-bs-ride="${De}"]`,Z=`${De}-item`,zt="data-bs-slide-to",ge="data-bs-slide",fe="paused",yn={pause:"hover",keyboard:!1,touch:!0,interval:5e3},ie=t=>e.getInstance(t,bn),li=t=>new Fe(t);let He=0,qe=0,ot=0;const Wt=e.createCustomEvent(`slide.bs.${De}`),qt=e.createCustomEvent(`slid.bs.${De}`),di=t=>{const{index:s,direction:n,element:o,slides:a,options:r}=t;if(t.isAnimating&&ie(o)){const l=jt(t),d=n==="left"?"next":"prev",u=n==="left"?"start":"end";e.addClass(a[s],w),e.removeClass(a[s],`${Z}-${d}`),e.removeClass(a[s],`${Z}-${u}`),e.removeClass(a[l],w),e.removeClass(a[l],`${Z}-${u}`),e.dispatchEvent(o,qt),e.Timer.clear(o,ge),!e.getDocument(o).hidden&&r.interval&&!t.isPaused&&t.cycle()}};function ui(){const t=ie(this);t&&!t.isPaused&&!e.Timer.get(this,fe)&&e.addClass(this,fe)}function mi(){const t=ie(this);t&&t.isPaused&&!e.Timer.get(this,fe)&&t.cycle()}function hi(t){t.preventDefault();const s=e.closest(this,st)||F(this),n=ie(s);if(!n||n.isAnimating)return;const o=+(e.getAttribute(this,zt)||0);this&&!e.hasClass(this,w)&&!Number.isNaN(o)&&n.to(o)}function gi(t){t.preventDefault();const s=e.closest(this,st)||F(this),n=ie(s);if(!n||n.isAnimating)return;const o=e.getAttribute(this,ge);o==="next"?n.next():o==="prev"&&n.prev()}const fi=({code:t,target:s})=>{const n=e.getDocument(s),[o]=[...e.querySelectorAll(st,n)].filter(u=>e.isElementInScrollRange(u)),a=ie(o);if(!a||a.isAnimating||/textarea|input/i.test(s.nodeName))return;const r=e.isRTL(o),l=r?e.keyArrowLeft:e.keyArrowRight,d=r?e.keyArrowRight:e.keyArrowLeft;t===d?a.prev():t===l&&a.next()};function Tn(t){const{target:s}=t,n=ie(this);n&&n.isTouch&&(n.indicator&&!n.indicator.contains(s)||!n.controls.includes(s))&&(t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault())}function vi(t){const{target:s}=t,n=ie(this);if(!n||n.isAnimating||n.isTouch)return;const{controls:o,indicators:a}=n;[...o,...a].some(r=>r===s||r.contains(s))||(He=t.pageX,this.contains(s)&&(n.isTouch=!0,wn(n,!0)))}const pi=t=>{qe=t.pageX},Ei=t=>{var d;const{target:s}=t,n=e.getDocument(s),o=[...e.querySelectorAll(st,n)].map(u=>ie(u)).find(u=>u.isTouch);if(!o)return;const{element:a,index:r}=o,l=e.isRTL(a);if(o.isTouch=!1,wn(o),(d=n.getSelection())!=null&&d.toString().length){He=0,qe=0,ot=0;return}if(ot=t.pageX,!a.contains(s)||Math.abs(He-ot)<120){He=0,qe=0,ot=0;return}qe<He?o.to(r+(l?-1:1)):qe>He&&o.to(r+(l?1:-1)),He=0,qe=0,ot=0},Ft=(t,s)=>{const{indicators:n}=t;[...n].forEach(o=>e.removeClass(o,w)),t.indicators[s]&&e.addClass(n[s],w)},wn=(t,s)=>{const{element:n}=t,o=s?b.addListener:b.removeListener;o(e.getDocument(n),e.pointermoveEvent,pi,e.passiveHandler),o(e.getDocument(n),e.pointerupEvent,Ei,e.passiveHandler)},Sn=(t,s)=>{const{element:n,options:o,slides:a,controls:r,indicators:l}=t,{touch:d,pause:u,interval:h,keyboard:p}=o,f=s?b.addListener:b.removeListener;u&&h&&(f(n,e.mouseenterEvent,ui),f(n,e.mouseleaveEvent,mi)),d&&a.length>2&&(f(n,e.pointerdownEvent,vi,e.passiveHandler),f(n,e.touchstartEvent,Tn,{passive:!1}),f(n,e.dragstartEvent,Tn,{passive:!1})),r.length&&r.forEach(y=>{y&&f(y,e.mouseclickEvent,gi)}),l.length&&l.forEach(y=>{f(y,e.mouseclickEvent,hi)}),p&&f(e.getDocument(n),e.keydownEvent,fi)},jt=t=>{const{slides:s,element:n}=t,o=e.querySelector(`.${Z}.${w}`,n);return e.isHTMLElement(o)?[...s].indexOf(o):-1};class Fe extends J{constructor(s,n){super(s,n);const{element:o}=this;this.direction=e.isRTL(o)?"right":"left",this.index=0,this.isTouch=!1,this.slides=e.getElementsByClassName(Z,o);const{slides:a}=this;if(a.length<2)return;const r=e.getDocument(o);this.controls=[...e.querySelectorAll(`[${ge}]`,o),...e.querySelectorAll(`[${ge}][${Rt}="#${o.id}"]`,r)],this.indicator=e.querySelector(`.${De}-indicators`,o),this.indicators=[...this.indicator?e.querySelectorAll(`[${zt}]`,this.indicator):[],...e.querySelectorAll(`[${zt}][${Rt}="#${o.id}"]`,r)];const{options:l}=this;this.options.interval=l.interval===!0?yn.interval:l.interval,jt(this)<0&&(e.addClass(a[0],w),this.indicators.length&&Ft(this,0)),Sn(this,!0),l.interval&&this.cycle()}get name(){return bn}get defaults(){return yn}get isPaused(){return e.hasClass(this.element,fe)}get isAnimating(){return e.querySelector(`.${Z}-next,.${Z}-prev`,this.element)!==null}cycle(){const{element:s,options:n,isPaused:o,index:a}=this;e.Timer.clear(s,De),o&&(e.Timer.clear(s,fe),e.removeClass(s,fe)),e.Timer.set(s,()=>{this.element&&!this.isPaused&&!this.isTouch&&e.isElementInScrollRange(s)&&this.to(a+1)},n.interval,De)}pause(){const{element:s,options:n}=this;!this.isPaused&&n.interval&&(e.addClass(s,fe),e.Timer.set(s,()=>{},1,fe))}next(){this.isAnimating||this.to(this.index+1)}prev(){this.isAnimating||this.to(this.index-1)}to(s){const{element:n,slides:o,options:a}=this,r=jt(this),l=e.isRTL(n);let d=s;if(this.isAnimating||r===d||e.Timer.get(n,ge))return;r<d||r===0&&d===o.length-1?this.direction=l?"right":"left":(r>d||r===o.length-1&&d===0)&&(this.direction=l?"left":"right");const{direction:u}=this;d<0?d=o.length-1:d>=o.length&&(d=0);const h=u==="left"?"next":"prev",p=u==="left"?"start":"end",f={relatedTarget:o[d],from:r,to:d,direction:u};e.ObjectAssign(Wt,f),e.ObjectAssign(qt,f),e.dispatchEvent(n,Wt),!Wt.defaultPrevented&&(this.index=d,Ft(this,d),e.getElementTransitionDuration(o[d])&&e.hasClass(n,"slide")?e.Timer.set(n,()=>{e.addClass(o[d],`${Z}-${h}`),e.reflow(o[d]),e.addClass(o[d],`${Z}-${p}`),e.addClass(o[r],`${Z}-${p}`),e.emulateTransitionEnd(o[d],()=>di(this))},0,ge):(e.addClass(o[d],w),e.removeClass(o[r],w),e.Timer.set(n,()=>{e.Timer.clear(n,ge),n&&a.interval&&!this.isPaused&&this.cycle(),e.dispatchEvent(n,qt)},0,ge)))}dispose(){const{slides:s}=this,n=["start","end","prev","next"];[...s].forEach((o,a)=>{e.hasClass(o,w)&&Ft(this,a),n.forEach(r=>e.removeClass(o,`${Z}-${r}`))}),Sn(this),super.dispose()}}v(Fe,"selector",st),v(Fe,"init",li),v(Fe,"getInstance",ie);const Le="collapsing",j="collapse",An="Collapse",bi=`.${j}`,$n=`[${V}="${j}"]`,Ci={parent:null},Ct=t=>e.getInstance(t,An),yi=t=>new je(t),Dn=e.createCustomEvent(`show.bs.${j}`),Ti=e.createCustomEvent(`shown.bs.${j}`),Hn=e.createCustomEvent(`hide.bs.${j}`),wi=e.createCustomEvent(`hidden.bs.${j}`),Si=t=>{const{element:s,parent:n,triggers:o}=t;e.dispatchEvent(s,Dn),!Dn.defaultPrevented&&(e.Timer.set(s,e.noop,17),n&&e.Timer.set(n,e.noop,17),e.addClass(s,Le),e.removeClass(s,j),e.setElementStyle(s,{height:`${s.scrollHeight}px`}),e.emulateTransitionEnd(s,()=>{e.Timer.clear(s),n&&e.Timer.clear(n),o.forEach(a=>e.setAttribute(a,e.ariaExpanded,"true")),e.removeClass(s,Le),e.addClass(s,j),e.addClass(s,C),e.setElementStyle(s,{height:""}),e.dispatchEvent(s,Ti)}))},Ln=t=>{const{element:s,parent:n,triggers:o}=t;e.dispatchEvent(s,Hn),!Hn.defaultPrevented&&(e.Timer.set(s,e.noop,17),n&&e.Timer.set(n,e.noop,17),e.setElementStyle(s,{height:`${s.scrollHeight}px`}),e.removeClass(s,j),e.removeClass(s,C),e.addClass(s,Le),e.reflow(s),e.setElementStyle(s,{height:"0px"}),e.emulateTransitionEnd(s,()=>{e.Timer.clear(s),n&&e.Timer.clear(n),o.forEach(a=>e.setAttribute(a,e.ariaExpanded,"false")),e.removeClass(s,Le),e.addClass(s,j),e.setElementStyle(s,{height:""}),e.dispatchEvent(s,wi)}))},kn=(t,s)=>{const n=s?b.addListener:b.removeListener,{triggers:o}=t;o.length&&o.forEach(a=>n(a,e.mouseclickEvent,Ai))},Ai=t=>{const{target:s}=t,n=s&&e.closest(s,$n),o=n&&F(n),a=o&&Ct(o);a&&a.toggle(),n&&n.tagName==="A"&&t.preventDefault()};class je extends J{constructor(s,n){super(s,n);const{element:o,options:a}=this,r=e.getDocument(o);this.triggers=[...e.querySelectorAll($n,r)].filter(l=>F(l)===o),this.parent=e.isHTMLElement(a.parent)?a.parent:e.isString(a.parent)?F(o)||e.querySelector(a.parent,r):null,kn(this,!0)}get name(){return An}get defaults(){return Ci}toggle(){e.hasClass(this.element,C)?this.hide():this.show()}hide(){const{triggers:s,element:n}=this;e.Timer.get(n)||(Ln(this),s.length&&s.forEach(o=>e.addClass(o,`${j}d`)))}show(){const{element:s,parent:n,triggers:o}=this;let a,r;n&&(a=[...e.querySelectorAll(`.${j}.${C}`,n)].find(l=>Ct(l)),r=a&&Ct(a)),(!n||!e.Timer.get(n))&&!e.Timer.get(s)&&(r&&a!==s&&(Ln(r),r.triggers.forEach(l=>{e.addClass(l,`${j}d`)})),Si(this),o.length&&o.forEach(l=>e.removeClass(l,`${j}d`)))}dispose(){kn(this),super.dispose()}}v(je,"selector",bi),v(je,"init",yi),v(je,"getInstance",Ct);const ke=["dropdown","dropup","dropstart","dropend"],In="Dropdown",Nn="dropdown-menu",Mn=t=>{const s=e.closest(t,"A");return t.tagName==="A"&&e.hasAttribute(t,"href")&&t.href.slice(-1)==="#"||s&&e.hasAttribute(s,"href")&&s.href.slice(-1)==="#"},[x,yt,Tt,wt]=ke,Vt=`[${V}="${x}"],[${V}="${yt}"],[${V}="${wt}"],[${V}="${Tt}"]`,Ve=t=>e.getInstance(t,In),$i=t=>new Ue(t),Di=`${Nn}-end`,Pn=[x,yt],On=[Tt,wt],Bn=["A","BUTTON"],Hi={offset:5,display:"dynamic"},Ut=e.createCustomEvent(`show.bs.${x}`),Rn=e.createCustomEvent(`shown.bs.${x}`),Kt=e.createCustomEvent(`hide.bs.${x}`),zn=e.createCustomEvent(`hidden.bs.${x}`),Wn=e.createCustomEvent(`updated.bs.${x}`),qn=t=>{const{element:s,menu:n,parentElement:o,options:a}=t,{offset:r}=a;if(e.getElementStyle(n,"position")==="static")return;const l=e.isRTL(s),d=e.hasClass(n,Di);["margin","top","bottom","left","right"].forEach(H=>{const te={};te[H]="",e.setElementStyle(n,te)});let h=ke.find(H=>e.hasClass(o,H))||x;const p={dropdown:[r,0,0],dropup:[0,0,r],dropstart:l?[-1,0,0,r]:[-1,r,0],dropend:l?[-1,r,0]:[-1,0,0,r]},f={dropdown:{top:"100%"},dropup:{top:"auto",bottom:"100%"},dropstart:l?{left:"100%",right:"auto"}:{left:"auto",right:"100%"},dropend:l?{left:"auto",right:"100%"}:{left:"100%",right:"auto"},menuStart:l?{right:"0",left:"auto"}:{right:"auto",left:"0"},menuEnd:l?{right:"auto",left:"0"}:{right:"0",left:"auto"}},{offsetWidth:y,offsetHeight:A}=n,{clientWidth:z,clientHeight:T}=e.getDocumentElement(s),{left:O,top:W,width:le,height:Y}=e.getBoundingClientRect(s),$=O-y-r<0,G=O+y+le+r>=z,K=W+A+r>=T,I=W+A+Y+r>=T,B=W-A-r<0,S=(!l&&d||l&&!d)&&O+le-y<0,de=(l&&d||!l&&!d)&&O+y>=z;if(On.includes(h)&&$&&G&&(h=x),h===Tt&&(l?G:$)&&(h=wt),h===wt&&(l?$:G)&&(h=Tt),h===yt&&B&&!I&&(h=x),h===x&&I&&!B&&(h=yt),On.includes(h)&&K&&e.ObjectAssign(f[h],{top:"auto",bottom:0}),Pn.includes(h)&&(S||de)){let H={left:"auto",right:"auto"};!S&&de&&!l&&(H={left:"auto",right:0}),S&&!de&&l&&(H={left:0,right:"auto"}),H&&e.ObjectAssign(f[h],H)}const ee=p[h];if(e.setElementStyle(n,{...f[h],margin:`${ee.map(H=>H&&`${H}px`).join(" ")}`}),Pn.includes(h)&&d&&d){const H=!l&&S||l&&de?"menuStart":"menuEnd";e.setElementStyle(n,f[H])}e.dispatchEvent(o,Wn)},Li=t=>[...t.children].map(s=>{if(s&&Bn.includes(s.tagName))return s;const{firstElementChild:n}=s;return n&&Bn.includes(n.tagName)?n:null}).filter(s=>s),Fn=t=>{const{element:s,options:n}=t,o=t.open?b.addListener:b.removeListener,a=e.getDocument(s);o(a,e.mouseclickEvent,Vn),o(a,e.focusEvent,Vn),o(a,e.keydownEvent,Ii),o(a,e.keyupEvent,Ni),n.display==="dynamic"&&[e.scrollEvent,e.resizeEvent].forEach(r=>{o(e.getWindow(s),r,Mi,e.passiveHandler)})},jn=(t,s)=>{(s?b.addListener:b.removeListener)(t.element,e.mouseclickEvent,ki)},St=t=>{const s=[...ke,"btn-group","input-group"].map(n=>e.getElementsByClassName(`${n} ${C}`,e.getDocument(t))).find(n=>n.length);if(s&&s.length)return[...s[0].children].find(n=>ke.some(o=>o===e.getAttribute(n,V)))},Vn=t=>{const{target:s,type:n}=t;if(!s||!s.closest)return;const o=St(s),a=o&&Ve(o);if(!a)return;const{parentElement:r,menu:l}=a,d=e.closest(s,Vt)!==null,u=r&&r.contains(s)&&(s.tagName==="form"||e.closest(s,"form")!==null);n===e.mouseclickEvent&&Mn(s)&&t.preventDefault(),!(n===e.focusEvent&&(s===o||s===l||l.contains(s)))&&(u||d||a&&a.hide())},ki=t=>{const{target:s}=t,n=s&&e.closest(s,Vt),o=n&&Ve(n);o&&(t.stopImmediatePropagation(),o.toggle(),n&&Mn(n)&&t.preventDefault())},Ii=t=>{[e.keyArrowDown,e.keyArrowUp].includes(t.code)&&t.preventDefault()};function Ni(t){const{code:s}=t,n=St(this),o=n&&Ve(n),{activeElement:a}=n&&e.getDocument(n);if(!o||!a)return;const{menu:r,open:l}=o,d=Li(r);if(d&&d.length&&[e.keyArrowDown,e.keyArrowUp].includes(s)){let u=d.indexOf(a);a===n?u=0:s===e.keyArrowUp?u=u>1?u-1:0:s===e.keyArrowDown&&(u=u<d.length-1?u+1:u),d[u]&&e.focus(d[u])}e.keyEscape===s&&l&&(o.toggle(),e.focus(n))}function Mi(){const t=St(this),s=t&&Ve(t);s&&s.open&&qn(s)}class Ue extends J{constructor(s,n){super(s,n);const{parentElement:o}=this.element,a=e.querySelector(`.${Nn}`,o);a&&(this.parentElement=o,this.menu=a,jn(this,!0))}get name(){return In}get defaults(){return Hi}toggle(){this.open?this.hide():this.show()}show(){const{element:s,open:n,menu:o,parentElement:a}=this;if(n)return;const r=St(s),l=r&&Ve(r);l&&l.hide(),[Ut,Rn,Wn].forEach(d=>{d.relatedTarget=s}),e.dispatchEvent(a,Ut),!Ut.defaultPrevented&&(e.addClass(o,C),e.addClass(a,C),e.setAttribute(s,e.ariaExpanded,"true"),qn(this),this.open=!n,e.focus(s),Fn(this),e.dispatchEvent(a,Rn))}hide(){const{element:s,open:n,menu:o,parentElement:a}=this;n&&([Kt,zn].forEach(r=>{r.relatedTarget=s}),e.dispatchEvent(a,Kt),!Kt.defaultPrevented&&(e.removeClass(o,C),e.removeClass(a,C),e.setAttribute(s,e.ariaExpanded,"false"),this.open=!n,Fn(this),e.dispatchEvent(a,zn)))}dispose(){this.open&&this.hide(),jn(this),super.dispose()}}v(Ue,"selector",Vt),v(Ue,"init",$i),v(Ue,"getInstance",Ve);const U="modal",Qt="Modal",Xt="Offcanvas",Pi="fixed-top",Oi="fixed-bottom",Un="sticky-top",Kn="position-sticky",Qn=t=>[...e.getElementsByClassName(Pi,t),...e.getElementsByClassName(Oi,t),...e.getElementsByClassName(Un,t),...e.getElementsByClassName(Kn,t),...e.getElementsByClassName("is-fixed",t)],Bi=t=>{const s=e.getDocumentBody(t);e.setElementStyle(s,{paddingRight:"",overflow:""});const n=Qn(s);n.length&&n.forEach(o=>{e.setElementStyle(o,{paddingRight:"",marginRight:""})})},Xn=t=>{const{clientWidth:s}=e.getDocumentElement(t),{innerWidth:n}=e.getWindow(t);return Math.abs(n-s)},Yn=(t,s)=>{const n=e.getDocumentBody(t),o=parseInt(e.getElementStyle(n,"paddingRight"),10),r=e.getElementStyle(n,"overflow")==="hidden"&&o?0:Xn(t),l=Qn(n);s&&(e.setElementStyle(n,{overflow:"hidden",paddingRight:`${o+r}px`}),l.length&&l.forEach(d=>{const u=e.getElementStyle(d,"paddingRight");if(d.style.paddingRight=`${parseInt(u,10)+r}px`,[Un,Kn].some(h=>e.hasClass(d,h))){const h=e.getElementStyle(d,"marginRight");d.style.marginRight=`${parseInt(h,10)-r}px`}}))},Q="offcanvas",ve=e.createElement({tagName:"div",className:"popup-container"}),Gn=(t,s)=>{const n=e.isNode(s)&&s.nodeName==="BODY",o=e.isNode(s)&&!n?s:ve,a=n?s:e.getDocumentBody(t);e.isNode(t)&&(o===ve&&a.append(ve),o.append(t))},_n=(t,s)=>{const n=e.isNode(s)&&s.nodeName==="BODY",o=e.isNode(s)&&!n?s:ve;e.isNode(t)&&(t.remove(),o===ve&&!ve.children.length&&ve.remove())},Ie=(t,s)=>{const n=e.isNode(s)&&s.nodeName!=="BODY"?s:ve;return e.isNode(t)&&n.contains(t)},Jn="backdrop",Zn=`${U}-${Jn}`,xn=`${Q}-${Jn}`,es=`.${U}.${C}`,Yt=`.${Q}.${C}`,L=e.createElement("div"),Ne=t=>e.querySelector(`${es},${Yt}`,e.getDocument(t)),Gt=t=>{const s=t?Zn:xn;[Zn,xn].forEach(n=>{e.removeClass(L,n)}),e.addClass(L,s)},ts=(t,s,n)=>{Gt(n),Gn(L,e.getDocumentBody(t)),s&&e.addClass(L,P)},ns=()=>{e.hasClass(L,C)||(e.addClass(L,C),e.reflow(L))},At=()=>{e.removeClass(L,C)},ss=t=>{Ne(t)||(e.removeClass(L,P),_n(L,e.getDocumentBody(t)),Bi(t))},os=t=>e.isHTMLElement(t)&&e.getElementStyle(t,"visibility")!=="hidden"&&t.offsetParent!==null,Ri=`.${U}`,is=`[${V}="${U}"]`,zi=`[${Et}="${U}"]`,as=`${U}-static`,Wi={backdrop:!0,keyboard:!0},it=t=>e.getInstance(t,Qt),qi=t=>new Ke(t),$t=e.createCustomEvent(`show.bs.${U}`),rs=e.createCustomEvent(`shown.bs.${U}`),_t=e.createCustomEvent(`hide.bs.${U}`),cs=e.createCustomEvent(`hidden.bs.${U}`),ls=t=>{const{element:s}=t,n=Xn(s),{clientHeight:o,scrollHeight:a}=e.getDocumentElement(s),{clientHeight:r,scrollHeight:l}=s,d=r!==l;if(!d&&n){const u=e.isRTL(s)?"paddingLeft":"paddingRight",h={};h[u]=`${n}px`,e.setElementStyle(s,h)}Yn(s,d||o!==a)},ds=(t,s)=>{const n=s?b.addListener:b.removeListener,{element:o,update:a}=t;n(o,e.mouseclickEvent,Vi),n(e.getWindow(o),e.resizeEvent,a,e.passiveHandler),n(e.getDocument(o),e.keydownEvent,ji)},us=(t,s)=>{const n=s?b.addListener:b.removeListener,{triggers:o}=t;o.length&&o.forEach(a=>n(a,e.mouseclickEvent,Fi))},ms=(t,s)=>{const{triggers:n,element:o,relatedTarget:a}=t;ss(o),e.setElementStyle(o,{paddingRight:"",display:""}),ds(t);const r=$t.relatedTarget||n.find(os);r&&e.focus(r),e.isFunction(s)&&s(),cs.relatedTarget=a,e.dispatchEvent(o,cs)},hs=t=>{const{element:s,relatedTarget:n}=t;e.focus(s),ds(t,!0),rs.relatedTarget=n,e.dispatchEvent(s,rs)},gs=t=>{const{element:s,hasFade:n}=t;e.setElementStyle(s,{display:"block"}),ls(t),Ne(s)||e.setElementStyle(e.getDocumentBody(s),{overflow:"hidden"}),e.addClass(s,C),e.removeAttribute(s,e.ariaHidden),e.setAttribute(s,e.ariaModal,"true"),n?e.emulateTransitionEnd(s,()=>hs(t)):hs(t)},fs=(t,s)=>{const{element:n,options:o,hasFade:a}=t;o.backdrop&&!s&&a&&e.hasClass(L,C)&&!Ne(n)?(At(),e.emulateTransitionEnd(L,()=>ms(t))):ms(t,s)},Fi=t=>{const{target:s}=t,n=s&&e.closest(s,is),o=n&&F(n),a=o&&it(o);a&&(n&&n.tagName==="A"&&t.preventDefault(),a.relatedTarget=n,a.toggle())},ji=({code:t,target:s})=>{const n=e.querySelector(es,e.getDocument(s)),o=n&&it(n);if(!o)return;const{options:a}=o;a.keyboard&&t===e.keyEscape&&e.hasClass(n,C)&&(o.relatedTarget=null,o.hide())};function Vi(t){var p,f;const s=it(this);if(!s||e.Timer.get(this))return;const{options:n,isStatic:o,modalDialog:a}=s,{backdrop:r}=n,{target:l}=t,d=(f=(p=e.getDocument(this))==null?void 0:p.getSelection())==null?void 0:f.toString().length,u=a==null?void 0:a.contains(l),h=l&&e.closest(l,zi);o&&!u?e.Timer.set(this,()=>{e.addClass(this,as),e.emulateTransitionEnd(a,()=>Ui(s))},17):(h||!d&&!o&&!u&&r)&&(s.relatedTarget=h||null,s.hide(),t.preventDefault())}const Ui=t=>{const{element:s,modalDialog:n}=t,o=(e.isHTMLElement(n)?e.getElementTransitionDuration(n):0)+17;e.removeClass(s,as),e.Timer.set(s,()=>e.Timer.clear(s),o)};class Ke extends J{constructor(n,o){super(n,o);v(this,"update",()=>{e.hasClass(this.element,C)&&ls(this)});const{element:a}=this;this.modalDialog=e.querySelector(`.${U}-dialog`,a),this.triggers=[...e.querySelectorAll(is,e.getDocument(a))].filter(r=>F(r)===a),this.isStatic=this.options.backdrop==="static",this.hasFade=e.hasClass(a,P),this.relatedTarget=null,us(this,!0)}get name(){return Qt}get defaults(){return Wi}toggle(){e.hasClass(this.element,C)?this.hide():this.show()}show(){const{element:n,options:o,hasFade:a,relatedTarget:r}=this,{backdrop:l}=o;let d=0;if(e.hasClass(n,C)||($t.relatedTarget=r||void 0,e.dispatchEvent(n,$t),$t.defaultPrevented))return;const u=Ne(n);if(u&&u!==n){const h=it(u)||e.getInstance(u,Xt);h&&h.hide()}l?(Ie(L)?Gt(!0):ts(n,a,!0),d=e.getElementTransitionDuration(L),ns(),setTimeout(()=>gs(this),d)):(gs(this),u&&e.hasClass(L,C)&&At())}hide(n){const{element:o,hasFade:a,relatedTarget:r}=this;e.hasClass(o,C)&&(_t.relatedTarget=r||void 0,e.dispatchEvent(o,_t),!_t.defaultPrevented&&(e.removeClass(o,C),e.setAttribute(o,e.ariaHidden,"true"),e.removeAttribute(o,e.ariaModal),a?e.emulateTransitionEnd(o,()=>fs(this,n)):fs(this,n)))}dispose(){us(this),this.hide(()=>super.dispose())}}v(Ke,"selector",Ri),v(Ke,"init",qi),v(Ke,"getInstance",it);const Ki=`.${Q}`,Jt=`[${V}="${Q}"]`,Qi=`[${Et}="${Q}"]`,Dt=`${Q}-toggling`,Xi={backdrop:!0,keyboard:!0,scroll:!1},at=t=>e.getInstance(t,Xt),Yi=t=>new Qe(t),Ht=e.createCustomEvent(`show.bs.${Q}`),vs=e.createCustomEvent(`shown.bs.${Q}`),Zt=e.createCustomEvent(`hide.bs.${Q}`),ps=e.createCustomEvent(`hidden.bs.${Q}`),Gi=t=>{const{element:s}=t,{clientHeight:n,scrollHeight:o}=e.getDocumentElement(s);Yn(s,n!==o)},Es=(t,s)=>{const n=s?b.addListener:b.removeListener;t.triggers.forEach(o=>n(o,e.mouseclickEvent,_i))},bs=(t,s)=>{const n=s?b.addListener:b.removeListener,o=e.getDocument(t.element);n(o,e.keydownEvent,Zi),n(o,e.mouseclickEvent,Ji)},Cs=t=>{const{element:s,options:n}=t;n.scroll||(Gi(t),e.setElementStyle(e.getDocumentBody(s),{overflow:"hidden"})),e.addClass(s,Dt),e.addClass(s,C),e.setElementStyle(s,{visibility:"visible"}),e.emulateTransitionEnd(s,()=>xi(t))},ys=(t,s)=>{const{element:n,options:o}=t,a=Ne(n);n.blur(),!a&&o.backdrop&&e.hasClass(L,C)?(At(),e.emulateTransitionEnd(L,()=>Ts(t,s))):Ts(t,s)},_i=t=>{const s=e.closest(t.target,Jt),n=s&&F(s),o=n&&at(n);o&&(o.relatedTarget=s,o.toggle(),s&&s.tagName==="A"&&t.preventDefault())},Ji=t=>{const{target:s}=t,n=e.querySelector(Yt,e.getDocument(s)),o=e.querySelector(Qi,n),a=n&&at(n);if(!a)return;const{options:r,triggers:l}=a,{backdrop:d}=r,u=e.closest(s,Jt),h=e.getDocument(n).getSelection();L.contains(s)&&d==="static"||(!(h&&h.toString().length)&&(!n.contains(s)&&d&&(!u||l.includes(s))||o&&o.contains(s))&&(a.relatedTarget=o&&o.contains(s)?o:null,a.hide()),u&&u.tagName==="A"&&t.preventDefault())},Zi=({code:t,target:s})=>{const n=e.querySelector(Yt,e.getDocument(s)),o=n&&at(n);o&&o.options.keyboard&&t===e.keyEscape&&(o.relatedTarget=null,o.hide())},xi=t=>{const{element:s}=t;e.removeClass(s,Dt),e.removeAttribute(s,e.ariaHidden),e.setAttribute(s,e.ariaModal,"true"),e.setAttribute(s,"role","dialog"),e.dispatchEvent(s,vs),bs(t,!0),e.focus(s)},Ts=(t,s)=>{const{element:n,triggers:o}=t;e.setAttribute(n,e.ariaHidden,"true"),e.removeAttribute(n,e.ariaModal),e.removeAttribute(n,"role"),e.setElementStyle(n,{visibility:""});const a=Ht.relatedTarget||o.find(os);a&&e.focus(a),ss(n),e.dispatchEvent(n,ps),e.removeClass(n,Dt),Ne(n)||bs(t),e.isFunction(s)&&s()};class Qe extends J{constructor(s,n){super(s,n);const{element:o}=this;this.triggers=[...e.querySelectorAll(Jt,e.getDocument(o))].filter(a=>F(a)===o),this.relatedTarget=null,Es(this,!0)}get name(){return Xt}get defaults(){return Xi}toggle(){e.hasClass(this.element,C)?this.hide():this.show()}show(){const{element:s,options:n,relatedTarget:o}=this;let a=0;if(e.hasClass(s,C)||(Ht.relatedTarget=o||void 0,vs.relatedTarget=o||void 0,e.dispatchEvent(s,Ht),Ht.defaultPrevented))return;const r=Ne(s);if(r&&r!==s){const l=at(r)||e.getInstance(r,Qt);l&&l.hide()}n.backdrop?(Ie(L)?Gt():ts(s,!0),a=e.getElementTransitionDuration(L),ns(),setTimeout(()=>Cs(this),a)):(Cs(this),r&&e.hasClass(L,C)&&At())}hide(s){const{element:n,relatedTarget:o}=this;e.hasClass(n,C)&&(Zt.relatedTarget=o||void 0,ps.relatedTarget=o||void 0,e.dispatchEvent(n,Zt),!Zt.defaultPrevented&&(e.addClass(n,Dt),e.removeClass(n,C),s?ys(this,s):e.emulateTransitionEnd(n,()=>ys(this,s))))}dispose(){Es(this),this.hide(()=>super.dispose())}}v(Qe,"selector",Ki),v(Qe,"init",Yi),v(Qe,"getInstance",at);const Me="popover",Lt="Popover",ce="tooltip",ws=t=>{const s=t===ce,n=s?`${t}-inner`:`${t}-body`,o=s?"":`<h3 class="${t}-header"></h3>`,a=`<div class="${t}-arrow"></div>`,r=`<div class="${n}"></div>`;return`<div class="${t}" role="${ce}">${o+a+r}</div>`},Ss={top:"top",bottom:"bottom",left:"start",right:"end"},xt=t=>{const s=/\b(top|bottom|start|end)+/,{element:n,tooltip:o,container:a,options:r,arrow:l}=t;if(!o)return;const d={...Ss},u=e.isRTL(n);e.setElementStyle(o,{top:"",left:"",right:"",bottom:""});const h=t.name===Lt,{offsetWidth:p,offsetHeight:f}=o,{clientWidth:y,clientHeight:A,offsetWidth:z}=e.getDocumentElement(n);let{placement:T}=r;const{clientWidth:O,offsetWidth:W}=a,Y=e.getElementStyle(a,"position")==="fixed",$=Math.abs(Y?O-W:y-z),G=u&&Y?$:0,K=y-(u?0:$)-1,{width:I,height:B,left:S,right:de,top:ee}=e.getBoundingClientRect(n,!0),{x:H,y:te}={x:S,y:ee};e.setElementStyle(l,{top:"",left:"",right:"",bottom:""});let ae=0,be="",ne=0,Je="",ue="",Be="",Ze="";const re=l.offsetWidth||0,se=l.offsetHeight||0,xe=re/2;let Ce=ee-f-se<0,ye=ee+f+B+se>=A,Te=S-p-re<G,we=S+p+I+re>=K;const Re=["left","right"],et=["top","bottom"];Ce=Re.includes(T)?ee+B/2-f/2-se<0:Ce,ye=Re.includes(T)?ee+f/2+B/2+se>=A:ye,Te=et.includes(T)?S+I/2-p/2<G:Te,we=et.includes(T)?S+p/2+I/2>=K:we,T=Re.includes(T)&&Te&&we?"top":T,T=T==="top"&&Ce?"bottom":T,T=T==="bottom"&&ye?"top":T,T=T==="left"&&Te?"right":T,T=T==="right"&&we?"left":T,o.className.includes(T)||(o.className=o.className.replace(s,d[T])),Re.includes(T)?(T==="left"?ne=H-p-(h?re:0):ne=H+I+(h?re:0),Ce&&ye?(ae=0,be=0,ue=ee+B/2-se/2):Ce?(ae=te,be="",ue=B/2-re):ye?(ae=te-f+B,be="",ue=f-B/2-re):(ae=te-f/2+B/2,ue=f/2-se/2)):et.includes(T)&&(T==="top"?ae=te-f-(h?se:0):ae=te+B+(h?se:0),Te?(ne=0,Be=H+I/2-xe):we?(ne="auto",Je=0,Ze=I/2+K-de-xe):(ne=H-p/2+I/2,Be=p/2-xe)),e.setElementStyle(o,{top:`${ae}px`,bottom:be===""?"":`${be}px`,left:ne==="auto"?ne:`${ne}px`,right:Je!==""?`${Je}px`:""}),e.isHTMLElement(l)&&(ue!==""&&(l.style.top=`${ue}px`),Be!==""?l.style.left=`${Be}px`:Ze!==""&&(l.style.right=`${Ze}px`));const kt=e.createCustomEvent(`updated.bs.${e.toLowerCase(t.name)}`);e.dispatchEvent(n,kt)},en={template:ws(ce),title:"",customClass:"",trigger:"hover focus",placement:"top",sanitizeFn:void 0,animation:!0,delay:200,container:document.body,content:"",dismissible:!1,btnClose:""},As="data-original-title",Pe="Tooltip",pe=(t,s,n)=>{if(!(!e.isHTMLElement(t)||e.isString(s)&&!s.length))if(e.isString(s)){let o=s.trim();e.isFunction(n)&&(o=n(o));const r=new DOMParser().parseFromString(o,"text/html");t.append(...r.body.childNodes)}else e.isHTMLElement(s)?t.append(s):(e.isNodeList(s)||e.isArray(s)&&s.every(e.isNode))&&t.append(...s)},ea=t=>{const s=t.name===Pe,{id:n,element:o,options:a}=t,{title:r,placement:l,template:d,animation:u,customClass:h,sanitizeFn:p,dismissible:f,content:y,btnClose:A}=a,z=s?ce:Me,T={...Ss};let O=[],W=[];e.isRTL(o)&&(T.left="end",T.right="start");const le=`bs-${z}-${T[l]}`;let Y;if(e.isHTMLElement(d))Y=d;else{const S=e.createElement("div");pe(S,d,p),Y=S.firstChild}t.tooltip=e.isHTMLElement(Y)?Y.cloneNode(!0):void 0;const{tooltip:$}=t;if(!$)return;e.setAttribute($,"id",n),e.setAttribute($,"role",ce);const G=s?`${ce}-inner`:`${Me}-body`,K=s?null:e.querySelector(`.${Me}-header`,$),I=e.querySelector(`.${G}`,$);t.arrow=e.querySelector(`.${z}-arrow`,$);const{arrow:B}=t;if(e.isHTMLElement(r))O=[r.cloneNode(!0)];else{const S=e.createElement("div");pe(S,r,p),O=[...S.childNodes]}if(e.isHTMLElement(y))W=[y.cloneNode(!0)];else{const S=e.createElement("div");pe(S,y,p),W=[...S.childNodes]}if(f)if(r)if(e.isHTMLElement(A))O=[...O,A.cloneNode(!0)];else{const S=e.createElement("div");pe(S,A,p),O=[...O,S.firstChild]}else if(K&&K.remove(),e.isHTMLElement(A))W=[...W,A.cloneNode(!0)];else{const S=e.createElement("div");pe(S,A,p),W=[...W,S.firstChild]}s?r&&I&&pe(I,r,p):(r&&K&&pe(K,O,p),y&&I&&pe(I,W,p),t.btn=e.querySelector(".btn-close",$)||void 0),e.addClass($,"position-fixed"),e.addClass(B,"position-absolute"),e.hasClass($,z)||e.addClass($,z),u&&!e.hasClass($,P)&&e.addClass($,P),h&&!e.hasClass($,h)&&e.addClass($,h),e.hasClass($,le)||e.addClass($,le)},ta=t=>{const s=["HTML","BODY"],n=[];let{parentNode:o}=t;for(;o&&!s.includes(o.nodeName);)o=e.getParentNode(o),e.isShadowRoot(o)||e.isTableElement(o)||n.push(o);return n.find((a,r)=>e.getElementStyle(a,"position")!=="relative"&&n.slice(r+1).every(l=>e.getElementStyle(l,"position")==="static")?a:null)||e.getDocument(t).body},na=`[${V}="${ce}"],[data-tip="${ce}"]`,$s="title";let Ds=t=>e.getInstance(t,Pe);const sa=t=>new Ee(t),oa=t=>{const{element:s,tooltip:n,container:o,offsetParent:a}=t;e.removeAttribute(s,e.ariaDescribedBy),_n(n,o===a?o:a)},ia=(t,s)=>{const{element:n}=t;rt(t),e.hasAttribute(n,As)&&t.name===Pe&&Ns(t),s&&s()},Hs=(t,s)=>{const n=s?b.addListener:b.removeListener,{element:o}=t;n(e.getDocument(o),e.touchstartEvent,t.handleTouch,e.passiveHandler),[e.scrollEvent,e.resizeEvent].forEach(a=>{n(e.getWindow(o),a,t.update,e.passiveHandler)})},Ls=t=>{const{element:s}=t,n=e.createCustomEvent(`shown.bs.${e.toLowerCase(t.name)}`);Hs(t,!0),e.dispatchEvent(s,n),e.Timer.clear(s,"in")},ks=t=>{const{element:s,onHideComplete:n}=t,o=e.createCustomEvent(`hidden.bs.${e.toLowerCase(t.name)}`);Hs(t),oa(t),e.dispatchEvent(s,o),e.isFunction(n)&&(n(),t.onHideComplete=void 0),e.Timer.clear(s,"out")},rt=(t,s)=>{const n=s?b.addListener:b.removeListener,{element:o,options:a,btn:r}=t,{trigger:l}=a,u=!!(t.name!==Pe&&a.dismissible);if(l.includes("manual"))return;t.enabled=!!s,l.split(" ").forEach(p=>{p===e.mousehoverEvent?(n(o,e.mousedownEvent,t.show),n(o,e.mouseenterEvent,t.show),u&&r?n(r,e.mouseclickEvent,t.hide):(n(o,e.mouseleaveEvent,t.hide),n(e.getDocument(o),e.touchstartEvent,t.handleTouch,e.passiveHandler))):p===e.mouseclickEvent?n(o,p,u?t.show:t.toggle):p===e.focusEvent&&(n(o,e.focusinEvent,t.show),u||n(o,e.focusoutEvent,t.hide),e.isApple&&n(o,e.mouseclickEvent,()=>e.focus(o)))})},Is=(t,s)=>{const n=s?b.addListener:b.removeListener,{element:o,container:a,offsetParent:r}=t,{offsetHeight:l,scrollHeight:d}=a,u=e.closest(o,`.${U}`),h=e.closest(o,`.${Q}`),p=e.getWindow(o),y=a===r&&l!==d?a:p;n(y,e.resizeEvent,t.update,e.passiveHandler),n(y,e.scrollEvent,t.update,e.passiveHandler),u&&n(u,`hide.bs.${U}`,t.hide),h&&n(h,`hide.bs.${Q}`,t.hide)},Ns=(t,s)=>{const n=[As,$s],{element:o}=t;e.setAttribute(o,n[s?0:1],s||e.getAttribute(o,n[0])||""),e.removeAttribute(o,n[s?1:0])};class Ee extends J{constructor(n,o){super(n,o);v(this,"show",()=>this._show());v(this,"hide",()=>{const{options:n,tooltip:o,element:a,container:r,offsetParent:l}=this,{animation:d,delay:u}=n;e.Timer.clear(a,"in"),o&&Ie(o,r===l?r:l)&&e.Timer.set(a,()=>{const h=e.createCustomEvent(`hide.bs.${e.toLowerCase(this.name)}`);e.dispatchEvent(a,h),!h.defaultPrevented&&(this.update(),e.removeClass(o,C),Is(this),d?e.emulateTransitionEnd(o,()=>ks(this)):ks(this))},u+17,"out")});v(this,"update",()=>{xt(this)});v(this,"toggle",()=>{const{tooltip:n,container:o,offsetParent:a}=this;n&&!Ie(n,o===a?o:a)?this.show():this.hide()});v(this,"handleTouch",({target:n})=>{const{tooltip:o,element:a}=this;o&&o.contains(n)||n===a||n&&a.contains(n)||this.hide()});const{element:a}=this,r=this.name===Pe,l=r?ce:Me,d=r?Pe:Lt;Ds=h=>e.getInstance(h,d),this.enabled=!0,this.id=`${l}-${e.getUID(a,l)}`;const{options:u}=this;!u.title&&r||!r&&!u.content||(e.ObjectAssign(en,{titleAttr:""}),e.hasAttribute(a,$s)&&r&&typeof u.title=="string"&&Ns(this,u.title),this.container=ta(a),this.offsetParent=["sticky","fixed"].some(h=>e.getElementStyle(this.container,"position")===h)?this.container:e.getDocument(this.element).body,ea(this),rt(this,!0))}get name(){return Pe}get defaults(){return en}_show(){const{options:n,tooltip:o,element:a,container:r,offsetParent:l,id:d}=this,{animation:u}=n,h=e.Timer.get(a,"out"),p=r===l?r:l;e.Timer.clear(a,"out"),o&&!h&&!Ie(o,p)&&e.Timer.set(a,()=>{const f=e.createCustomEvent(`show.bs.${e.toLowerCase(this.name)}`);e.dispatchEvent(a,f),!f.defaultPrevented&&(Gn(o,p),e.setAttribute(a,e.ariaDescribedBy,`#${d}`),this.update(),Is(this,!0),e.hasClass(o,C)||e.addClass(o,C),u?e.emulateTransitionEnd(o,()=>Ls(this)):Ls(this))},17,"in")}enable(){const{enabled:n}=this;n||(rt(this,!0),this.enabled=!n)}disable(){const{tooltip:n,container:o,offsetParent:a,options:r,enabled:l}=this,{animation:d}=r;l&&(n&&Ie(n,o===a?o:a)&&d?(this.onHideComplete=()=>rt(this),this.hide()):rt(this),this.enabled=!l)}toggleEnabled(){this.enabled?this.disable():this.enable()}dispose(){const{tooltip:n,container:o,offsetParent:a,options:r}=this,l=()=>ia(this,()=>super.dispose());r.animation&&n&&Ie(n,o===a?o:a)?(this.options.delay=0,this.onHideComplete=l,this.hide()):l()}}v(Ee,"selector",na),v(Ee,"init",sa),v(Ee,"getInstance",Ds),v(Ee,"styleTip",xt);const aa=`[${V}="${Me}"],[data-tip="${Me}"]`,ra=e.ObjectAssign({},en,{template:ws(Me),content:"",dismissible:!1,btnClose:'<button class="btn-close" aria-label="Close"></button>'}),ca=t=>e.getInstance(t,Lt),la=t=>new Oe(t);class Oe extends Ee{constructor(n,o){super(n,o);v(this,"show",()=>{super._show();const{options:n,btn:o}=this;n.dismissible&&o&&setTimeout(()=>e.focus(o),17)})}get name(){return Lt}get defaults(){return ra}}v(Oe,"selector",aa),v(Oe,"init",la),v(Oe,"getInstance",ca),v(Oe,"styleTip",xt);const da="scrollspy",Ms="ScrollSpy",ua='[data-bs-spy="scroll"]',ma={offset:10,target:null},ha=t=>e.getInstance(t,Ms),ga=t=>new Xe(t),Ps=e.createCustomEvent(`activate.bs.${da}`),fa=t=>{const{target:s,scrollTarget:n,options:o,itemsLength:a,scrollHeight:r,element:l}=t,{offset:d}=o,u=e.isWindow(n),h=s&&e.getElementsByTagName("A",s),p=n?Os(n):r;if(t.scrollTop=u?n.scrollY:n.scrollTop,h&&(p!==r||a!==h.length)){let f,y,A;t.items=[],t.offsets=[],t.scrollHeight=p,t.maxScroll=t.scrollHeight-va(t),[...h].forEach(z=>{f=e.getAttribute(z,"href"),y=f&&f.charAt(0)==="#"&&f.slice(-1)!=="#"&&e.querySelector(f,e.getDocument(l)),y&&(t.items.push(z),A=e.getBoundingClientRect(y),t.offsets.push((u?A.top+t.scrollTop:y.offsetTop)-d))}),t.itemsLength=t.items.length}},Os=t=>e.isHTMLElement(t)?t.scrollHeight:e.getDocumentElement(t).scrollHeight,va=({element:t,scrollTarget:s})=>e.isWindow(s)?s.innerHeight:e.getBoundingClientRect(t).height,Bs=t=>{[...e.getElementsByTagName("A",t)].forEach(s=>{e.hasClass(s,w)&&e.removeClass(s,w)})},Rs=(t,s)=>{const{target:n,element:o}=t;e.isHTMLElement(n)&&Bs(n),t.activeItem=s,e.addClass(s,w);const a=[];let r=s;for(;r!==e.getDocumentBody(o);)r=r.parentElement,(e.hasClass(r,"nav")||e.hasClass(r,"dropdown-menu"))&&a.push(r);a.forEach(l=>{const d=l.previousElementSibling;d&&!e.hasClass(d,w)&&e.addClass(d,w)}),Ps.relatedTarget=s,e.dispatchEvent(o,Ps)},zs=(t,s)=>{(s?b.addListener:b.removeListener)(t.scrollTarget,e.scrollEvent,t.refresh,e.passiveHandler)};class Xe extends J{constructor(n,o){super(n,o);v(this,"refresh",()=>{const{target:n}=this;if((n==null?void 0:n.offsetHeight)===0)return;fa(this);const{scrollTop:o,maxScroll:a,itemsLength:r,items:l,activeItem:d}=this;if(o>=a){const h=l[r-1];d!==h&&Rs(this,h);return}const{offsets:u}=this;if(d&&o<u[0]&&u[0]>0){this.activeItem=null,n&&Bs(n);return}l.forEach((h,p)=>{d!==h&&o>=u[p]&&(typeof u[p+1]>"u"||o<u[p+1])&&Rs(this,h)})});const{element:a,options:r}=this;this.target=e.querySelector(r.target,e.getDocument(a)),this.target&&(this.scrollTarget=a.clientHeight<a.scrollHeight?a:e.getWindow(a),this.scrollHeight=Os(this.scrollTarget),zs(this,!0),this.refresh())}get name(){return Ms}get defaults(){return ma}dispose(){zs(this),super.dispose()}}v(Xe,"selector",ua),v(Xe,"init",ga),v(Xe,"getInstance",ha);const ct="tab",Ws="Tab",qs=`[${V}="${ct}"]`,Fs=t=>e.getInstance(t,Ws),pa=t=>new Ye(t),tn=e.createCustomEvent(`show.bs.${ct}`),js=e.createCustomEvent(`shown.bs.${ct}`),nn=e.createCustomEvent(`hide.bs.${ct}`),Vs=e.createCustomEvent(`hidden.bs.${ct}`),lt=new Map,Us=t=>{const{tabContent:s,nav:n}=t;s&&e.hasClass(s,Le)&&(s.style.height="",e.removeClass(s,Le)),n&&e.Timer.clear(n)},Ks=t=>{const{element:s,tabContent:n,content:o,nav:a}=t,{tab:r}=e.isHTMLElement(a)&&lt.get(a)||{tab:null};if(n&&o&&e.hasClass(o,P)){const{currentHeight:l,nextHeight:d}=lt.get(s)||{currentHeight:0,nextHeight:0};l===d?Us(t):setTimeout(()=>{n.style.height=`${d}px`,e.reflow(n),e.emulateTransitionEnd(n,()=>Us(t))},50)}else a&&e.Timer.clear(a);js.relatedTarget=r,e.dispatchEvent(s,js)},Qs=t=>{const{element:s,content:n,tabContent:o,nav:a}=t,{tab:r,content:l}=a&&lt.get(a)||{tab:null,content:null};let d=0;if(o&&n&&e.hasClass(n,P)&&([l,n].forEach(u=>{e.isHTMLElement(u)&&e.addClass(u,"overflow-hidden")}),d=e.isHTMLElement(l)?l.scrollHeight:0),tn.relatedTarget=r,Vs.relatedTarget=s,e.dispatchEvent(s,tn),!tn.defaultPrevented){if(n&&e.addClass(n,w),l&&e.removeClass(l,w),o&&n&&e.hasClass(n,P)){const u=n.scrollHeight;lt.set(s,{currentHeight:d,nextHeight:u,tab:null,content:null}),e.addClass(o,Le),o.style.height=`${d}px`,e.reflow(o),[l,n].forEach(h=>{h&&e.removeClass(h,"overflow-hidden")})}n&&n&&e.hasClass(n,P)?setTimeout(()=>{e.addClass(n,C),e.emulateTransitionEnd(n,()=>{Ks(t)})},1):(n&&e.addClass(n,C),Ks(t)),r&&e.dispatchEvent(r,Vs)}},Xs=t=>{const{nav:s}=t;if(!e.isHTMLElement(s))return{tab:null,content:null};const n=e.getElementsByClassName(w,s);let o=null;n.length===1&&!ke.some(r=>e.hasClass(n[0].parentElement,r))?[o]=n:n.length>1&&(o=n[n.length-1]);const a=e.isHTMLElement(o)?F(o):null;return{tab:o,content:a}},Ys=t=>{if(!e.isHTMLElement(t))return null;const s=e.closest(t,`.${ke.join(",.")}`);return s?e.querySelector(`.${ke[0]}-toggle`,s):null},Gs=(t,s)=>{(s?b.addListener:b.removeListener)(t.element,e.mouseclickEvent,Ea)},Ea=t=>{const s=Fs(t.target);s&&(t.preventDefault(),s.show())};class Ye extends J{constructor(s){super(s);const{element:n}=this,o=F(n);if(!o)return;const a=e.closest(n,".nav"),r=e.closest(o,".tab-content");this.nav=a,this.content=o,this.tabContent=r,this.dropdown=Ys(n);const{tab:l}=Xs(this);if(a&&!l){const d=e.querySelector(qs,a),u=d&&F(d);u&&(e.addClass(d,w),e.addClass(u,C),e.addClass(u,w),e.setAttribute(n,e.ariaSelected,"true"))}Gs(this,!0)}get name(){return Ws}show(){const{element:s,content:n,nav:o,dropdown:a}=this;if(!(o&&e.Timer.get(o))&&!e.hasClass(s,w)){const{tab:r,content:l}=Xs(this);if(o&&lt.set(o,{tab:r,content:l,currentHeight:0,nextHeight:0}),nn.relatedTarget=s,e.isHTMLElement(r)&&e.dispatchEvent(r,nn),nn.defaultPrevented)return;e.addClass(s,w),e.setAttribute(s,e.ariaSelected,"true");const d=e.isHTMLElement(r)&&Ys(r);if(d&&e.hasClass(d,w)&&e.removeClass(d,w),o){const u=()=>{r&&(e.removeClass(r,w),e.setAttribute(r,e.ariaSelected,"false")),a&&!e.hasClass(a,w)&&e.addClass(a,w)};l&&(e.hasClass(l,P)||n&&e.hasClass(n,P))?e.Timer.set(o,u,1):u()}l&&(e.removeClass(l,C),e.hasClass(l,P)?e.emulateTransitionEnd(l,()=>Qs(this)):Qs(this))}}dispose(){Gs(this),super.dispose()}}v(Ye,"selector",qs),v(Ye,"init",pa),v(Ye,"getInstance",Fs);const X="toast",_s="Toast",ba=`.${X}`,Ca=`[${Et}="${X}"]`,Js=`[${V}="${X}"]`,Ge="showing",Zs="hide",ya={animation:!0,autohide:!0,delay:5e3},sn=t=>e.getInstance(t,_s),Ta=t=>new _e(t),xs=e.createCustomEvent(`show.bs.${X}`),wa=e.createCustomEvent(`shown.bs.${X}`),eo=e.createCustomEvent(`hide.bs.${X}`),Sa=e.createCustomEvent(`hidden.bs.${X}`),to=t=>{const{element:s,options:n}=t;e.removeClass(s,Ge),e.Timer.clear(s,Ge),e.dispatchEvent(s,wa),n.autohide&&e.Timer.set(s,()=>t.hide(),n.delay,X)},no=t=>{const{element:s}=t;e.removeClass(s,Ge),e.removeClass(s,C),e.addClass(s,Zs),e.Timer.clear(s,X),e.dispatchEvent(s,Sa)},Aa=t=>{const{element:s,options:n}=t;e.addClass(s,Ge),n.animation?(e.reflow(s),e.emulateTransitionEnd(s,()=>no(t))):no(t)},$a=t=>{const{element:s,options:n}=t;e.Timer.set(s,()=>{e.removeClass(s,Zs),e.reflow(s),e.addClass(s,C),e.addClass(s,Ge),n.animation?e.emulateTransitionEnd(s,()=>to(t)):to(t)},17,Ge)},so=(t,s)=>{const n=s?b.addListener:b.removeListener,{element:o,triggers:a,dismiss:r,options:l,hide:d}=t;r&&n(r,e.mouseclickEvent,d),l.autohide&&[e.focusinEvent,e.focusoutEvent,e.mouseenterEvent,e.mouseleaveEvent].forEach(u=>n(o,u,La)),a.length&&a.forEach(u=>n(u,e.mouseclickEvent,Ha))},Da=t=>{e.Timer.clear(t.element,X),so(t)},Ha=t=>{const{target:s}=t,n=s&&e.closest(s,Js),o=n&&F(n),a=o&&sn(o);a&&(n&&n.tagName==="A"&&t.preventDefault(),a.relatedTarget=n,a.show())},La=t=>{const s=t.target,n=sn(s),{type:o,relatedTarget:a}=t;!n||s===a||s.contains(a)||([e.mouseenterEvent,e.focusinEvent].includes(o)?e.Timer.clear(s,X):e.Timer.set(s,()=>n.hide(),n.options.delay,X))};class _e extends J{constructor(n,o){super(n,o);v(this,"show",()=>{const{element:n,isShown:o}=this;if(n&&!o){if(e.dispatchEvent(n,xs),xs.defaultPrevented)return;$a(this)}});v(this,"hide",()=>{const{element:n,isShown:o}=this;if(n&&o){if(e.dispatchEvent(n,eo),eo.defaultPrevented)return;Aa(this)}});const{element:a,options:r}=this;r.animation&&!e.hasClass(a,P)?e.addClass(a,P):!r.animation&&e.hasClass(a,P)&&e.removeClass(a,P),this.dismiss=e.querySelector(Ca,a),this.triggers=[...e.querySelectorAll(Js,e.getDocument(a))].filter(l=>F(l)===a),so(this,!0)}get name(){return _s}get defaults(){return ya}get isShown(){return e.hasClass(this.element,C)}dispose(){const{element:n,isShown:o}=this;o&&e.removeClass(n,C),Da(this),super.dispose()}}v(_e,"selector",ba),v(_e,"init",Ta),v(_e,"getInstance",sn);const on=new Map;[ze,We,Fe,je,Ue,Ke,Qe,Oe,Xe,Ye,_e,Ee].forEach(t=>on.set(t.prototype.name,t));const ka=(t,s)=>{[...s].forEach(n=>t(n))},Ia=(t,s)=>{const n=e.Data.getAllFor(t);n&&[...n].forEach(([o,a])=>{s.contains(o)&&a.dispose()})},an=t=>{const s=t&&t.nodeName?t:document,n=[...e.getElementsByTagName("*",s)];on.forEach(o=>{const{init:a,selector:r}=o;ka(a,n.filter(l=>e.matches(l,r)))})},Na=t=>{const s=t&&t.nodeName?t:document;on.forEach(n=>{Ia(n.prototype.name,s)})};return document.body?an():b.addListener(document,"DOMContentLoaded",()=>an(),{once:!0}),D.Alert=ze,D.Button=We,D.Carousel=Fe,D.Collapse=je,D.Dropdown=Ue,D.Listener=b,D.Modal=Ke,D.Offcanvas=Qe,D.Popover=Oe,D.ScrollSpy=Xe,D.Tab=Ye,D.Toast=_e,D.Tooltip=Ee,D.initCallback=an,D.removeDataAPI=Na,Object.defineProperty(D,Symbol.toStringTag,{value:"Module"}),D}({});
//# sourceMappingURL=bootstrap-native.js.map
{
"name": "bootstrap.native",
"version": "5.0.3",
"version": "5.0.4",
"author": "thednp",

@@ -54,3 +54,3 @@ "license": "MIT",

"@typescript-eslint/parser": "^5.47.0",
"cypress": "^12.2.0",
"cypress": "^12.6.0",
"dts-bundle-generator": "^7.2.0",

@@ -68,4 +68,4 @@ "eslint": "^8.30.0",

"typescript": "^4.9.4",
"vite": "^4.0.4"
"vite": "^4.1.4"
}
}

@@ -8,4 +8,4 @@ # BSN

[![eslint version](https://img.shields.io/badge/eslint-8.30.0-brightgreen)](https://github.com/eslint)
[![cypress version](https://img.shields.io/badge/cypress-12.2.0-brightgreen)](https://www.cypress.io/)
[![vite version](https://img.shields.io/badge/vite-4.0.4-brightgreen)](https://vitejs.dev/)
[![cypress version](https://img.shields.io/badge/cypress-12.6.0-brightgreen)](https://www.cypress.io/)
[![vite version](https://img.shields.io/badge/vite-4.1.4-brightgreen)](https://vitejs.dev/)
[![prettier version](https://img.shields.io/badge/prettier-2.8.3-brightgreen)](https://prettier.io/)

@@ -12,0 +12,0 @@

@@ -8,3 +8,3 @@ /* Native JavaScript for Bootstrap 5 | Alert

querySelector,
closest,
// closest,
// ObjectAssign,

@@ -77,5 +77,5 @@ hasClass,

const action = add ? addListener : removeListener;
const { dismiss } = that;
const { dismiss, close } = that;
/* istanbul ignore else */
if (dismiss) action(dismiss, mouseclickEvent, that.close);
if (dismiss) action(dismiss, mouseclickEvent, close);
};

@@ -113,8 +113,5 @@

* removes the element from the DOM.
*
* @param e the `click` event
*/
close(e?: Event) {
const self = e ? (getAlertInstance(closest(e.target as HTMLElement, alertSelector) as HTMLElement) as Alert) : this;
const { element } = self;
close = () => {
const { element } = this;

@@ -129,6 +126,6 @@ /* istanbul ignore else */

if (hasClass(element, fadeClass)) {
emulateTransitionEnd(element, () => alertTransitionEnd(self));
} else alertTransitionEnd(self);
emulateTransitionEnd(element, () => alertTransitionEnd(this));
} else alertTransitionEnd(this);
}
}
};

@@ -135,0 +132,0 @@ /** Remove the component from target element. */

@@ -89,8 +89,6 @@ /* Native JavaScript for Bootstrap 5 | Button

*/
toggle(e: Event) {
toggle = (e: Event) => {
if (e) e.preventDefault();
const self = e ? (getButtonInstance(e.target as HTMLElement) as Button) : this;
if (!self.element) return;
const { element, isActive } = self;
const { element, isActive } = this;
if (hasClass(element, 'disabled')) return;

@@ -101,4 +99,4 @@

setAttribute(element, ariaPressed, isActive ? 'false' : 'true');
self.isActive = hasClass(element, activeClass);
}
this.isActive = hasClass(element, activeClass);
};

@@ -105,0 +103,0 @@ /** Removes the `Button` component from the target element. */

@@ -127,5 +127,5 @@ /* Native JavaScript for Bootstrap 5 | Modal

const action = add ? addListener : removeListener;
const { element } = self;
const { element, update } = self;
action(element, mouseclickEvent, modalDismissHandler as EventListener);
action(getWindow(element), resizeEvent, self.update, passiveHandler);
action(getWindow(element), resizeEvent, update, passiveHandler);
action(getDocument(element), keydownEvent, modalKeyHandler as EventListener);

@@ -369,5 +369,2 @@ };

toggleModalHandler(this, true);
// bind
this.update = this.update.bind(this);
}

@@ -466,6 +463,6 @@

*/
update() {
update = () => {
/* istanbul ignore else */
if (hasClass(this.element, showClass)) setModalScrollbar(this);
}
};

@@ -472,0 +469,0 @@ /** Removes the `Modal` component from target element. */

@@ -70,4 +70,4 @@ /* Native JavaScript for Bootstrap 5 | Popover

/* extend original `show()` */
show() {
super.show();
show = () => {
super._show();
// btn only exists within dismissible popover

@@ -77,3 +77,3 @@ const { options, btn } = this;

if (options.dismissible && btn) setTimeout(() => focus(btn), 17);
}
};
}

@@ -218,5 +218,2 @@ /* Native JavaScript for Bootstrap 5 | ScrollSpy

// bind events
this.refresh = this.refresh.bind(this);
// add event handlers

@@ -246,3 +243,3 @@ toggleSpyHandlers(this, true);

/** Updates all items. */
refresh() {
refresh = () => {
const { target } = this;

@@ -285,3 +282,3 @@

});
}
};

@@ -288,0 +285,0 @@ /** Removes `ScrollSpy` from the target element. */

@@ -154,7 +154,7 @@ /* Native JavaScript for Bootstrap 5 | Toast

const action = add ? addListener : removeListener;
const { element, triggers, dismiss, options } = self;
const { element, triggers, dismiss, options, hide } = self;
/* istanbul ignore else */
if (dismiss) {
action(dismiss, mouseclickEvent, self.hide);
action(dismiss, mouseclickEvent, hide);
}

@@ -259,6 +259,2 @@

// bind
this.show = this.show.bind(this);
this.hide = this.hide.bind(this);
// add event listener

@@ -289,3 +285,3 @@ toggleToastHandlers(this, true);

/** Shows the toast. */
show() {
show = () => {
const { element, isShown } = this;

@@ -300,6 +296,6 @@

}
}
};
/** Hides the toast. */
hide() {
hide = () => {
const { element, isShown } = this;

@@ -313,3 +309,3 @@

}
}
};

@@ -316,0 +312,0 @@ /** Removes the `Toast` component from the target element. */

@@ -301,9 +301,2 @@ /* Native JavaScript for Bootstrap 5 | Tooltip

// all functions bind
this.handleTouch = this.handleTouch.bind(this);
this.update = this.update.bind(this);
this.show = this.show.bind(this);
this.hide = this.hide.bind(this);
this.toggle = this.toggle.bind(this);
// set title attributes and add event listeners

@@ -346,3 +339,4 @@ /* istanbul ignore else */

/** Shows the tooltip. */
show() {
show = () => this._show();
_show() {
const { options, tooltip, element, container, offsetParent, id } = this;

@@ -384,3 +378,3 @@ const { animation } = options;

/** Hides the tooltip. */
hide() {
hide = () => {
const { options, tooltip, element, container, offsetParent } = this;

@@ -413,11 +407,11 @@ const { animation, delay } = options;

}
}
};
/** Updates the tooltip position. */
update() {
update = () => {
styleTip<Tooltip>(this);
}
};
/** Toggles the tooltip visibility. */
toggle() {
toggle = () => {
const { tooltip, container, offsetParent } = this;

@@ -427,3 +421,3 @@

else this.hide();
}
};

@@ -468,3 +462,3 @@ /** Enables the tooltip. */

*/
handleTouch({ target }: TouchEvent) {
handleTouch = ({ target }: TouchEvent) => {
const { tooltip, element } = this;

@@ -482,3 +476,3 @@

}
}
};

@@ -485,0 +479,0 @@ /** Removes the `Tooltip` from the target element. */

@@ -28,6 +28,4 @@ import { resolve } from 'path';

},
target: 'ESNext',
sourcemap: true,
minify: true,
},
});

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc