var Vt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function gt(b){return b&&b.__esModule&&Object.prototype.hasOwnProperty.call(b,"default")?b.default:b}var W={exports:{}},U={exports:{}},Q={exports:{}};/*!
  * Bootstrap data.js v5.3.3 (https://getbootstrap.com/)
  * Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
  */var _t=Q.exports,it;function Et(){return it||(it=1,function(b,O){(function(s,r){b.exports=r()})(_t,function(){const s=new Map;return{set(d,n,e){s.has(d)||s.set(d,new Map);const i=s.get(d);if(!i.has(n)&&i.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(i.keys())[0]}.`);return}i.set(n,e)},get(d,n){return s.has(d)&&s.get(d).get(n)||null},remove(d,n){if(!s.has(d))return;const e=s.get(d);e.delete(n),e.size===0&&s.delete(d)}}})}(Q)),Q.exports}var z={exports:{}},K={exports:{}};/*!
  * Bootstrap index.js v5.3.3 (https://getbootstrap.com/)
  * Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
  */var bt=K.exports,st;function q(){return st||(st=1,function(b,O){(function(s,r){r(O)})(bt,function(s){const n="transitionend",e=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,(a,o)=>`#${CSS.escape(o)}`)),t),i=t=>t==null?`${t}`:Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),h=t=>{do t+=Math.floor(Math.random()*1e6);while(document.getElementById(t));return t},l=t=>{if(!t)return 0;let{transitionDuration:a,transitionDelay:o}=window.getComputedStyle(t);const y=Number.parseFloat(a),v=Number.parseFloat(o);return!y&&!v?0:(a=a.split(",")[0],o=o.split(",")[0],(Number.parseFloat(a)+Number.parseFloat(o))*1e3)},A=t=>{t.dispatchEvent(new Event(n))},g=t=>!t||typeof t!="object"?!1:(typeof t.jquery<"u"&&(t=t[0]),typeof t.nodeType<"u"),f=t=>g(t)?t.jquery?t[0]:t:typeof t=="string"&&t.length>0?document.querySelector(e(t)):null,p=t=>{if(!g(t)||t.getClientRects().length===0)return!1;const a=getComputedStyle(t).getPropertyValue("visibility")==="visible",o=t.closest("details:not([open])");if(!o)return a;if(o!==t){const y=t.closest("summary");if(y&&y.parentNode!==o||y===null)return!1}return a},w=t=>!t||t.nodeType!==Node.ELEMENT_NODE||t.classList.contains("disabled")?!0:typeof t.disabled<"u"?t.disabled:t.hasAttribute("disabled")&&t.getAttribute("disabled")!=="false",C=t=>{if(!document.documentElement.attachShadow)return null;if(typeof t.getRootNode=="function"){const a=t.getRootNode();return a instanceof ShadowRoot?a:null}return t instanceof ShadowRoot?t:t.parentNode?C(t.parentNode):null},M=()=>{},T=t=>{t.offsetHeight},k=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,x=[],V=t=>{document.readyState==="loading"?(x.length||document.addEventListener("DOMContentLoaded",()=>{for(const a of x)a()}),x.push(t)):t()},F=()=>document.documentElement.dir==="rtl",c=t=>{V(()=>{const a=k();if(a){const o=t.NAME,y=a.fn[o];a.fn[o]=t.jQueryInterface,a.fn[o].Constructor=t,a.fn[o].noConflict=()=>(a.fn[o]=y,t.jQueryInterface)}})},u=(t,a=[],o=t)=>typeof t=="function"?t(...a):o,m=(t,a,o=!0)=>{if(!o){u(t);return}const v=l(a)+5;let D=!1;const S=({target:R})=>{R===a&&(D=!0,a.removeEventListener(n,S),u(t))};a.addEventListener(n,S),setTimeout(()=>{D||A(a)},v)},_=(t,a,o,y)=>{const v=t.length;let D=t.indexOf(a);return D===-1?!o&&y?t[v-1]:t[0]:(D+=o?1:-1,y&&(D=(D+v)%v),t[Math.max(0,Math.min(D,v-1))])};s.defineJQueryPlugin=c,s.execute=u,s.executeAfterTransition=m,s.findShadowRoot=C,s.getElement=f,s.getNextActiveElement=_,s.getTransitionDurationFromElement=l,s.getUID=h,s.getjQuery=k,s.isDisabled=w,s.isElement=g,s.isRTL=F,s.isVisible=p,s.noop=M,s.onDOMContentLoaded=V,s.parseSelector=e,s.reflow=T,s.toType=i,s.triggerTransitionEnd=A,Object.defineProperty(s,Symbol.toStringTag,{value:"Module"})})}(K,K.exports)),K.exports}/*!
  * Bootstrap event-handler.js v5.3.3 (https://getbootstrap.com/)
  * Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
  */var At=z.exports,rt;function Y(){return rt||(rt=1,function(b,O){(function(s,r){b.exports=r(q())})(At,function(s){const r=/[^.]*(?=\..*)\.|.*/,d=/\..*/,n=/::\d+$/,e={};let i=1;const h={mouseenter:"mouseover",mouseleave:"mouseout"},l=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function A(c,u){return u&&`${u}::${i++}`||c.uidEvent||i++}function g(c){const u=A(c);return c.uidEvent=u,e[u]=e[u]||{},e[u]}function f(c,u){return function m(_){return F(_,{delegateTarget:c}),m.oneOff&&V.off(c,_.type,u),u.apply(c,[_])}}function p(c,u,m){return function _(t){const a=c.querySelectorAll(u);for(let{target:o}=t;o&&o!==this;o=o.parentNode)for(const y of a)if(y===o)return F(t,{delegateTarget:o}),_.oneOff&&V.off(c,t.type,u,m),m.apply(o,[t])}}function w(c,u,m=null){return Object.values(c).find(_=>_.callable===u&&_.delegationSelector===m)}function C(c,u,m){const _=typeof u=="string",t=_?m:u||m;let a=x(c);return l.has(a)||(a=c),[_,t,a]}function M(c,u,m,_,t){if(typeof u!="string"||!c)return;let[a,o,y]=C(u,m,_);u in h&&(o=(et=>function(E){if(!E.relatedTarget||E.relatedTarget!==E.delegateTarget&&!E.delegateTarget.contains(E.relatedTarget))return et.call(this,E)})(o));const v=g(c),D=v[y]||(v[y]={}),S=w(D,o,a?m:null);if(S){S.oneOff=S.oneOff&&t;return}const R=A(o,u.replace(r,"")),L=a?p(c,m,o):f(c,o);L.delegationSelector=a?m:null,L.callable=o,L.oneOff=t,L.uidEvent=R,D[R]=L,c.addEventListener(y,L,a)}function T(c,u,m,_,t){const a=w(u[m],_,t);a&&(c.removeEventListener(m,a,!!t),delete u[m][a.uidEvent])}function k(c,u,m,_){const t=u[m]||{};for(const[a,o]of Object.entries(t))a.includes(_)&&T(c,u,m,o.callable,o.delegationSelector)}function x(c){return c=c.replace(d,""),h[c]||c}const V={on(c,u,m,_){M(c,u,m,_,!1)},one(c,u,m,_){M(c,u,m,_,!0)},off(c,u,m,_){if(typeof u!="string"||!c)return;const[t,a,o]=C(u,m,_),y=o!==u,v=g(c),D=v[o]||{},S=u.startsWith(".");if(typeof a<"u"){if(!Object.keys(D).length)return;T(c,v,o,a,t?m:null);return}if(S)for(const R of Object.keys(v))k(c,v,R,u.slice(1));for(const[R,L]of Object.entries(D)){const I=R.replace(n,"");(!y||u.includes(I))&&T(c,v,o,L.callable,L.delegationSelector)}},trigger(c,u,m){if(typeof u!="string"||!c)return null;const _=s.getjQuery(),t=x(u),a=u!==t;let o=null,y=!0,v=!0,D=!1;a&&_&&(o=_.Event(u,m),_(c).trigger(o),y=!o.isPropagationStopped(),v=!o.isImmediatePropagationStopped(),D=o.isDefaultPrevented());const S=F(new Event(u,{bubbles:y,cancelable:!0}),m);return D&&S.preventDefault(),v&&c.dispatchEvent(S),S.defaultPrevented&&o&&o.preventDefault(),S}};function F(c,u={}){for(const[m,_]of Object.entries(u))try{c[m]=_}catch{Object.defineProperty(c,m,{configurable:!0,get(){return _}})}return c}return V})}(z)),z.exports}var j={exports:{}},H={exports:{}};/*!
  * Bootstrap manipulator.js v5.3.3 (https://getbootstrap.com/)
  * Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
  */var yt=H.exports,ot;function mt(){return ot||(ot=1,function(b,O){(function(s,r){b.exports=r()})(yt,function(){function s(n){if(n==="true")return!0;if(n==="false")return!1;if(n===Number(n).toString())return Number(n);if(n===""||n==="null")return null;if(typeof n!="string")return n;try{return JSON.parse(decodeURIComponent(n))}catch{return n}}function r(n){return n.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}return{setDataAttribute(n,e,i){n.setAttribute(`data-bs-${r(e)}`,i)},removeDataAttribute(n,e){n.removeAttribute(`data-bs-${r(e)}`)},getDataAttributes(n){if(!n)return{};const e={},i=Object.keys(n.dataset).filter(h=>h.startsWith("bs")&&!h.startsWith("bsConfig"));for(const h of i){let l=h.replace(/^bs/,"");l=l.charAt(0).toLowerCase()+l.slice(1,l.length),e[l]=s(n.dataset[h])}return e},getDataAttribute(n,e){return s(n.getAttribute(`data-bs-${r(e)}`))}}})}(H)),H.exports}/*!
  * Bootstrap config.js v5.3.3 (https://getbootstrap.com/)
  * Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
  */var Tt=j.exports,at;function nt(){return at||(at=1,function(b,O){(function(s,r){b.exports=r(mt(),q())})(Tt,function(s,r){class d{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,i){const h=r.isElement(i)?s.getDataAttribute(i,"config"):{};return{...this.constructor.Default,...typeof h=="object"?h:{},...r.isElement(i)?s.getDataAttributes(i):{},...typeof e=="object"?e:{}}}_typeCheckConfig(e,i=this.constructor.DefaultType){for(const[h,l]of Object.entries(i)){const A=e[h],g=r.isElement(A)?"element":r.toType(A);if(!new RegExp(l).test(g))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${h}" provided type "${g}" but expected type "${l}".`)}}}return d})}(j)),j.exports}/*!
  * Bootstrap base-component.js v5.3.3 (https://getbootstrap.com/)
  * Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
  */var vt=U.exports,ut;function Dt(){return ut||(ut=1,function(b,O){(function(s,r){b.exports=r(Et(),Y(),nt(),q())})(vt,function(s,r,d,n){const e="5.3.3";class i extends d{constructor(l,A){super(),l=n.getElement(l),l&&(this._element=l,this._config=this._getConfig(A),s.set(this._element,this.constructor.DATA_KEY,this))}dispose(){s.remove(this._element,this.constructor.DATA_KEY),r.off(this._element,this.constructor.EVENT_KEY);for(const l of Object.getOwnPropertyNames(this))this[l]=null}_queueCallback(l,A,g=!0){n.executeAfterTransition(l,A,g)}_getConfig(l){return l=this._mergeConfigObj(l,this._element),l=this._configAfterMerge(l),this._typeCheckConfig(l),l}static getInstance(l){return s.get(n.getElement(l),this.DATA_KEY)}static getOrCreateInstance(l,A={}){return this.getInstance(l)||new this(l,typeof A=="object"?A:null)}static get VERSION(){return e}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(l){return`${l}${this.EVENT_KEY}`}}return i})}(U)),U.exports}var G={exports:{}};/*!
  * Bootstrap selector-engine.js v5.3.3 (https://getbootstrap.com/)
  * Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
  */var wt=G.exports,ct;function tt(){return ct||(ct=1,function(b,O){(function(s,r){b.exports=r(q())})(wt,function(s){const r=n=>{let e=n.getAttribute("data-bs-target");if(!e||e==="#"){let i=n.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),e=i&&i!=="#"?i.trim():null}return e?e.split(",").map(i=>s.parseSelector(i)).join(","):null},d={find(n,e=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(e,n))},findOne(n,e=document.documentElement){return Element.prototype.querySelector.call(e,n)},children(n,e){return[].concat(...n.children).filter(i=>i.matches(e))},parents(n,e){const i=[];let h=n.parentNode.closest(e);for(;h;)i.push(h),h=h.parentNode.closest(e);return i},prev(n,e){let i=n.previousElementSibling;for(;i;){if(i.matches(e))return[i];i=i.previousElementSibling}return[]},next(n,e){let i=n.nextElementSibling;for(;i;){if(i.matches(e))return[i];i=i.nextElementSibling}return[]},focusableChildren(n){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(i=>`${i}:not([tabindex^="-"])`).join(",");return this.find(e,n).filter(i=>!s.isDisabled(i)&&s.isVisible(i))},getSelectorFromElement(n){const e=r(n);return e&&d.findOne(e)?e:null},getElementFromSelector(n){const e=r(n);return e?d.findOne(e):null},getMultipleElementsFromSelector(n){const e=r(n);return e?d.find(e):[]}};return d})}(G)),G.exports}var J={exports:{}};/*!
  * Bootstrap backdrop.js v5.3.3 (https://getbootstrap.com/)
  * Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
  */var Nt=J.exports,lt;function St(){return lt||(lt=1,function(b,O){(function(s,r){b.exports=r(Y(),nt(),q())})(Nt,function(s,r,d){const n="backdrop",e="fade",i="show",h=`mousedown.bs.${n}`,l={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},A={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class g extends r{constructor(p){super(),this._config=this._getConfig(p),this._isAppended=!1,this._element=null}static get Default(){return l}static get DefaultType(){return A}static get NAME(){return n}show(p){if(!this._config.isVisible){d.execute(p);return}this._append();const w=this._getElement();this._config.isAnimated&&d.reflow(w),w.classList.add(i),this._emulateAnimation(()=>{d.execute(p)})}hide(p){if(!this._config.isVisible){d.execute(p);return}this._getElement().classList.remove(i),this._emulateAnimation(()=>{this.dispose(),d.execute(p)})}dispose(){this._isAppended&&(s.off(this._element,h),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const p=document.createElement("div");p.className=this._config.className,this._config.isAnimated&&p.classList.add(e),this._element=p}return this._element}_configAfterMerge(p){return p.rootElement=d.getElement(p.rootElement),p}_append(){if(this._isAppended)return;const p=this._getElement();this._config.rootElement.append(p),s.on(p,h,()=>{d.execute(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(p){d.executeAfterTransition(p,this._getElement(),this._config.isAnimated)}}return g})}(J)),J.exports}var B={exports:{}};/*!
  * Bootstrap component-functions.js v5.3.3 (https://getbootstrap.com/)
  * Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
  */var Ct=B.exports,dt;function Ot(){return dt||(dt=1,function(b,O){(function(s,r){r(O,Y(),tt(),q())})(Ct,function(s,r,d,n){const e=(i,h="hide")=>{const l=`click.dismiss${i.EVENT_KEY}`,A=i.NAME;r.on(document,l,`[data-bs-dismiss="${A}"]`,function(g){if(["A","AREA"].includes(this.tagName)&&g.preventDefault(),n.isDisabled(this))return;const f=d.getElementFromSelector(this)||this.closest(`.${A}`);i.getOrCreateInstance(f)[h]()})};s.enableDismissTrigger=e,Object.defineProperty(s,Symbol.toStringTag,{value:"Module"})})}(B,B.exports)),B.exports}var X={exports:{}};/*!
  * Bootstrap focustrap.js v5.3.3 (https://getbootstrap.com/)
  * Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
  */var Mt=X.exports,ft;function xt(){return ft||(ft=1,function(b,O){(function(s,r){b.exports=r(Y(),tt(),nt())})(Mt,function(s,r,d){const n="focustrap",i=".bs.focustrap",h=`focusin${i}`,l=`keydown.tab${i}`,A="Tab",g="forward",f="backward",p={autofocus:!0,trapElement:null},w={autofocus:"boolean",trapElement:"element"};class C extends d{constructor(T){super(),this._config=this._getConfig(T),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return p}static get DefaultType(){return w}static get NAME(){return n}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),s.off(document,i),s.on(document,h,T=>this._handleFocusin(T)),s.on(document,l,T=>this._handleKeydown(T)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,s.off(document,i))}_handleFocusin(T){const{trapElement:k}=this._config;if(T.target===document||T.target===k||k.contains(T.target))return;const x=r.focusableChildren(k);x.length===0?k.focus():this._lastTabNavDirection===f?x[x.length-1].focus():x[0].focus()}_handleKeydown(T){T.key===A&&(this._lastTabNavDirection=T.shiftKey?f:g)}}return C})}(X)),X.exports}var Z={exports:{}};/*!
  * Bootstrap scrollbar.js v5.3.3 (https://getbootstrap.com/)
  * Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
  */var kt=Z.exports,ht;function Lt(){return ht||(ht=1,function(b,O){(function(s,r){b.exports=r(mt(),tt(),q())})(kt,function(s,r,d){const n=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",e=".sticky-top",i="padding-right",h="margin-right";class l{constructor(){this._element=document.body}getWidth(){const g=document.documentElement.clientWidth;return Math.abs(window.innerWidth-g)}hide(){const g=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,i,f=>f+g),this._setElementAttributes(n,i,f=>f+g),this._setElementAttributes(e,h,f=>f-g)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,i),this._resetElementAttributes(n,i),this._resetElementAttributes(e,h)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(g,f,p){const w=this.getWidth(),C=M=>{if(M!==this._element&&window.innerWidth>M.clientWidth+w)return;this._saveInitialAttribute(M,f);const T=window.getComputedStyle(M).getPropertyValue(f);M.style.setProperty(f,`${p(Number.parseFloat(T))}px`)};this._applyManipulationCallback(g,C)}_saveInitialAttribute(g,f){const p=g.style.getPropertyValue(f);p&&s.setDataAttribute(g,f,p)}_resetElementAttributes(g,f){const p=w=>{const C=s.getDataAttribute(w,f);if(C===null){w.style.removeProperty(f);return}s.removeDataAttribute(w,f),w.style.setProperty(f,C)};this._applyManipulationCallback(g,p)}_applyManipulationCallback(g,f){if(d.isElement(g)){f(g);return}for(const p of r.find(g,this._element))f(p)}}return l})}(Z)),Z.exports}/*!
  * Bootstrap modal.js v5.3.3 (https://getbootstrap.com/)
  * Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
  */var $t=W.exports,pt;function Rt(){return pt||(pt=1,function(b,O){(function(s,r){b.exports=r(Dt(),Y(),tt(),St(),Ot(),xt(),q(),Lt())})($t,function(s,r,d,n,e,i,h,l){const A="modal",f=".bs.modal",p=".data-api",w="Escape",C=`hide${f}`,M=`hidePrevented${f}`,T=`hidden${f}`,k=`show${f}`,x=`shown${f}`,V=`resize${f}`,F=`click.dismiss${f}`,c=`mousedown.dismiss${f}`,u=`keydown.dismiss${f}`,m=`click${f}${p}`,_="modal-open",t="fade",a="show",o="modal-static",y=".modal.show",v=".modal-dialog",D=".modal-body",S='[data-bs-toggle="modal"]',R={backdrop:!0,focus:!0,keyboard:!0},L={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class I extends s{constructor(E,N){super(E,N),this._dialog=d.findOne(v,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new l,this._addEventListeners()}static get Default(){return R}static get DefaultType(){return L}static get NAME(){return A}toggle(E){return this._isShown?this.hide():this.show(E)}show(E){this._isShown||this._isTransitioning||r.trigger(this._element,k,{relatedTarget:E}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(_),this._adjustDialog(),this._backdrop.show(()=>this._showElement(E)))}hide(){!this._isShown||this._isTransitioning||r.trigger(this._element,C).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(a),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){r.off(window,f),r.off(this._dialog,f),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new n({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new i({trapElement:this._element})}_showElement(E){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const N=d.findOne(D,this._dialog);N&&(N.scrollTop=0),h.reflow(this._element),this._element.classList.add(a);const $=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,r.trigger(this._element,x,{relatedTarget:E})};this._queueCallback($,this._dialog,this._isAnimated())}_addEventListeners(){r.on(this._element,u,E=>{if(E.key===w){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),r.on(window,V,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),r.on(this._element,c,E=>{r.one(this._element,F,N=>{if(!(this._element!==E.target||this._element!==N.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(_),this._resetAdjustments(),this._scrollBar.reset(),r.trigger(this._element,T)})}_isAnimated(){return this._element.classList.contains(t)}_triggerBackdropTransition(){if(r.trigger(this._element,M).defaultPrevented)return;const N=this._element.scrollHeight>document.documentElement.clientHeight,$=this._element.style.overflowY;$==="hidden"||this._element.classList.contains(o)||(N||(this._element.style.overflowY="hidden"),this._element.classList.add(o),this._queueCallback(()=>{this._element.classList.remove(o),this._queueCallback(()=>{this._element.style.overflowY=$},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const E=this._element.scrollHeight>document.documentElement.clientHeight,N=this._scrollBar.getWidth(),$=N>0;if($&&!E){const P=h.isRTL()?"paddingLeft":"paddingRight";this._element.style[P]=`${N}px`}if(!$&&E){const P=h.isRTL()?"paddingRight":"paddingLeft";this._element.style[P]=`${N}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(E,N){return this.each(function(){const $=I.getOrCreateInstance(this,E);if(typeof E=="string"){if(typeof $[E]>"u")throw new TypeError(`No method named "${E}"`);$[E](N)}})}}return r.on(document,m,S,function(et){const E=d.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&et.preventDefault(),r.one(E,k,P=>{P.defaultPrevented||r.one(E,T,()=>{h.isVisible(this)&&this.focus()})});const N=d.findOne(y);N&&I.getInstance(N).hide(),I.getOrCreateInstance(E).toggle(this)}),e.enableDismissTrigger(I),h.defineJQueryPlugin(I),I})}(W)),W.exports}var It=Rt();const qt=gt(It);export{qt as M,Vt as c,gt as g};
//# sourceMappingURL=vendor-bootstrap-CCU-90um.js.map
