string(61106) "/** * Bundled by jsDelivr using Rollup v4.62.2 and esbuild v0.28.1. * Original file: /npm/bootstrap@5.3.3/dist/js/bootstrap.esm.js * * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files */ import*as nt from"/npm/@popperjs/core@2.11.8/+esm";const S=new Map,mt={set(s,t,e){S.has(s)||S.set(s,new Map);const n=S.get(s);if(!n.has(t)&&n.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`);return}n.set(t,e)},get(s,t){return S.has(s)&&S.get(s).get(t)||null},remove(s,t){if(!S.has(s))return;const e=S.get(s);e.delete(t),e.size===0&&S.delete(s)}},Be=1e6,Ue=1e3,gt="transitionend",Kt=s=>(s&&window.CSS&&window.CSS.escape&&(s=s.replace(/#([^\s"#']+)/g,(t,e)=>`#${CSS.escape(e)}`)),s),je=s=>s==null?`${s}`:Object.prototype.toString.call(s).match(/\s([a-z]+)/i)[1].toLowerCase(),Ge=s=>{do s+=Math.floor(Math.random()*Be);while(document.getElementById(s));return s},ze=s=>{if(!s)return 0;let{transitionDuration:t,transitionDelay:e}=window.getComputedStyle(s);const n=Number.parseFloat(t),i=Number.parseFloat(e);return!n&&!i?0:(t=t.split(",")[0],e=e.split(",")[0],(Number.parseFloat(t)+Number.parseFloat(e))*Ue)},Wt=s=>{s.dispatchEvent(new Event(gt))},b=s=>!s||typeof s!="object"?!1:(typeof s.jquery<"u"&&(s=s[0]),typeof s.nodeType<"u"),y=s=>b(s)?s.jquery?s[0]:s:typeof s=="string"&&s.length>0?document.querySelector(Kt(s)):null,H=s=>{if(!b(s)||s.getClientRects().length===0)return!1;const t=getComputedStyle(s).getPropertyValue("visibility")==="visible",e=s.closest("details:not([open])");if(!e)return t;if(e!==s){const n=s.closest("summary");if(n&&n.parentNode!==e||n===null)return!1}return t},O=s=>!s||s.nodeType!==Node.ELEMENT_NODE||s.classList.contains("disabled")?!0:typeof s.disabled<"u"?s.disabled:s.hasAttribute("disabled")&&s.getAttribute("disabled")!=="false",Ft=s=>{if(!document.documentElement.attachShadow)return null;if(typeof s.getRootNode=="function"){const t=s.getRootNode();return t instanceof ShadowRoot?t:null}return s instanceof ShadowRoot?s:s.parentNode?Ft(s.parentNode):null},it=()=>{},G=s=>{s.offsetHeight},Yt=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,At=[],qe=s=>{document.readyState==="loading"?(At.length||document.addEventListener("DOMContentLoaded",()=>{for(const t of At)t()}),At.push(s)):s()},f=()=>document.documentElement.dir==="rtl",p=s=>{qe(()=>{const t=Yt();if(t){const e=s.NAME,n=t.fn[e];t.fn[e]=s.jQueryInterface,t.fn[e].Constructor=s,t.fn[e].noConflict=()=>(t.fn[e]=n,s.jQueryInterface)}})},_=(s,t=[],e=s)=>typeof s=="function"?s(...t):e,Bt=(s,t,e=!0)=>{if(!e){_(s);return}const i=ze(t)+5;let a=!1;const r=({target:c})=>{c===t&&(a=!0,t.removeEventListener(gt,r),_(s))};t.addEventListener(gt,r),setTimeout(()=>{a||Wt(t)},i)},Tt=(s,t,e,n)=>{const i=s.length;let a=s.indexOf(t);return a===-1?!e&&n?s[i-1]:s[0]:(a+=e?1:-1,n&&(a=(a+i)%i),s[Math.max(0,Math.min(a,i-1))])},Qe=/[^.]*(?=\..*)\.|.*/,Xe=/\..*/,Ze=/::\d+$/,bt={};let Ut=1;const jt={mouseenter:"mouseover",mouseleave:"mouseout"},Je=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 Gt(s,t){return t&&`${t}::${Ut++}`||s.uidEvent||Ut++}function zt(s){const t=Gt(s);return s.uidEvent=t,bt[t]=bt[t]||{},bt[t]}function ts(s,t){return function e(n){return Ct(n,{delegateTarget:s}),e.oneOff&&o.off(s,n.type,t),t.apply(s,[n])}}function es(s,t,e){return function n(i){const a=s.querySelectorAll(t);for(let{target:r}=i;r&&r!==this;r=r.parentNode)for(const c of a)if(c===r)return Ct(i,{delegateTarget:r}),n.oneOff&&o.off(s,i.type,t,e),e.apply(r,[i])}}function qt(s,t,e=null){return Object.values(s).find(n=>n.callable===t&&n.delegationSelector===e)}function Qt(s,t,e){const n=typeof t=="string",i=n?e:t||e;let a=Zt(s);return Je.has(a)||(a=s),[n,i,a]}function Xt(s,t,e,n,i){if(typeof t!="string"||!s)return;let[a,r,c]=Qt(t,e,n);t in jt&&(r=(Ye=>function(V){if(!V.relatedTarget||V.relatedTarget!==V.delegateTarget&&!V.delegateTarget.contains(V.relatedTarget))return Ye.call(this,V)})(r));const u=zt(s),d=u[c]||(u[c]={}),h=qt(d,r,a?e:null);if(h){h.oneOff=h.oneOff&&i;return}const T=Gt(r,t.replace(Qe,"")),m=a?es(s,e,r):ts(s,r);m.delegationSelector=a?e:null,m.callable=r,m.oneOff=i,m.uidEvent=T,d[T]=m,s.addEventListener(c,m,a)}function Nt(s,t,e,n,i){const a=qt(t[e],n,i);a&&(s.removeEventListener(e,a,!!i),delete t[e][a.uidEvent])}function ss(s,t,e,n){const i=t[e]||{};for(const[a,r]of Object.entries(i))a.includes(n)&&Nt(s,t,e,r.callable,r.delegationSelector)}function Zt(s){return s=s.replace(Xe,""),jt[s]||s}const o={on(s,t,e,n){Xt(s,t,e,n,!1)},one(s,t,e,n){Xt(s,t,e,n,!0)},off(s,t,e,n){if(typeof t!="string"||!s)return;const[i,a,r]=Qt(t,e,n),c=r!==t,u=zt(s),d=u[r]||{},h=t.startsWith(".");if(typeof a<"u"){if(!Object.keys(d).length)return;Nt(s,u,r,a,i?e:null);return}if(h)for(const T of Object.keys(u))ss(s,u,T,t.slice(1));for(const[T,m]of Object.entries(d)){const st=T.replace(Ze,"");(!c||t.includes(st))&&Nt(s,u,r,m.callable,m.delegationSelector)}},trigger(s,t,e){if(typeof t!="string"||!s)return null;const n=Yt(),i=Zt(t),a=t!==i;let r=null,c=!0,u=!0,d=!1;a&&n&&(r=n.Event(t,e),n(s).trigger(r),c=!r.isPropagationStopped(),u=!r.isImmediatePropagationStopped(),d=r.isDefaultPrevented());const h=Ct(new Event(t,{bubbles:c,cancelable:!0}),e);return d&&h.preventDefault(),u&&s.dispatchEvent(h),h.defaultPrevented&&r&&r.preventDefault(),h}};function Ct(s,t={}){for(const[e,n]of Object.entries(t))try{s[e]=n}catch{Object.defineProperty(s,e,{configurable:!0,get(){return n}})}return s}function Jt(s){if(s==="true")return!0;if(s==="false")return!1;if(s===Number(s).toString())return Number(s);if(s===""||s==="null")return null;if(typeof s!="string")return s;try{return JSON.parse(decodeURIComponent(s))}catch{return s}}function vt(s){return s.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}const N={setDataAttribute(s,t,e){s.setAttribute(`data-bs-${vt(t)}`,e)},removeDataAttribute(s,t){s.removeAttribute(`data-bs-${vt(t)}`)},getDataAttributes(s){if(!s)return{};const t={},e=Object.keys(s.dataset).filter(n=>n.startsWith("bs")&&!n.startsWith("bsConfig"));for(const n of e){let i=n.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),t[i]=Jt(s.dataset[n])}return t},getDataAttribute(s,t){return Jt(s.getAttribute(`data-bs-${vt(t)}`))}};class z{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,e){const n=b(e)?N.getDataAttribute(e,"config"):{};return{...this.constructor.Default,...typeof n=="object"?n:{},...b(e)?N.getDataAttributes(e):{},...typeof t=="object"?t:{}}}_typeCheckConfig(t,e=this.constructor.DefaultType){for(const[n,i]of Object.entries(e)){const a=t[n],r=b(a)?"element":je(a);if(!new RegExp(i).test(r))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${r}" but expected type "${i}".`)}}}const ns="5.3.3";class g extends z{constructor(t,e){super(),t=y(t),t&&(this._element=t,this._config=this._getConfig(e),mt.set(this._element,this.constructor.DATA_KEY,this))}dispose(){mt.remove(this._element,this.constructor.DATA_KEY),o.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e,n=!0){Bt(t,e,n)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return mt.get(y(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,typeof e=="object"?e:null)}static get VERSION(){return ns}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}}const St=s=>{let t=s.getAttribute("data-bs-target");if(!t||t==="#"){let e=s.getAttribute("href");if(!e||!e.includes("#")&&!e.startsWith("."))return null;e.includes("#")&&!e.startsWith("#")&&(e=`#${e.split("#")[1]}`),t=e&&e!=="#"?e.trim():null}return t?t.split(",").map(e=>Kt(e)).join(","):null},l={find(s,t=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(t,s))},findOne(s,t=document.documentElement){return Element.prototype.querySelector.call(t,s)},children(s,t){return[].concat(...s.children).filter(e=>e.matches(t))},parents(s,t){const e=[];let n=s.parentNode.closest(t);for(;n;)e.push(n),n=n.parentNode.closest(t);return e},prev(s,t){let e=s.previousElementSibling;for(;e;){if(e.matches(t))return[e];e=e.previousElementSibling}return[]},next(s,t){let e=s.nextElementSibling;for(;e;){if(e.matches(t))return[e];e=e.nextElementSibling}return[]},focusableChildren(s){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(e=>`${e}:not([tabindex^="-"])`).join(",");return this.find(t,s).filter(e=>!O(e)&&H(e))},getSelectorFromElement(s){const t=St(s);return t&&l.findOne(t)?t:null},getElementFromSelector(s){const t=St(s);return t?l.findOne(t):null},getMultipleElementsFromSelector(s){const t=St(s);return t?l.find(t):[]}},ot=(s,t="hide")=>{const e=`click.dismiss${s.EVENT_KEY}`,n=s.NAME;o.on(document,e,`[data-bs-dismiss="${n}"]`,function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),O(this))return;const a=l.getElementFromSelector(this)||this.closest(`.${n}`);s.getOrCreateInstance(a)[t]()})},is="alert",os="bs.alert",te=`.${os}`,rs=`close${te}`,as=`closed${te}`,ls="fade",cs="show";class Z extends g{static get NAME(){return is}close(){if(o.trigger(this._element,rs).defaultPrevented)return;this._element.classList.remove(cs);const e=this._element.classList.contains(ls);this._queueCallback(()=>this._destroyElement(),this._element,e)}_destroyElement(){this._element.remove(),o.trigger(this._element,as),this.dispose()}static jQueryInterface(t){return this.each(function(){const e=Z.getOrCreateInstance(this);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t](this)}})}}ot(Z,"close"),p(Z);const hs="button",us="bs.button",_s=`.${us}`,ds=".data-api",fs="active",ee='[data-bs-toggle="button"]',ps=`click${_s}${ds}`;class J extends g{static get NAME(){return hs}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(fs))}static jQueryInterface(t){return this.each(function(){const e=J.getOrCreateInstance(this);t==="toggle"&&e[t]()})}}o.on(document,ps,ee,s=>{s.preventDefault();const t=s.target.closest(ee);J.getOrCreateInstance(t).toggle()}),p(J);const Es="swipe",x=".bs.swipe",ms=`touchstart${x}`,gs=`touchmove${x}`,As=`touchend${x}`,Ts=`pointerdown${x}`,bs=`pointerup${x}`,Ns="touch",Cs="pen",vs="pointer-event",Ss=40,ys={endCallback:null,leftCallback:null,rightCallback:null},Os={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class pt extends z{constructor(t,e){super(),this._element=t,!(!t||!pt.isSupported())&&(this._config=this._getConfig(e),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return ys}static get DefaultType(){return Os}static get NAME(){return Es}dispose(){o.off(this._element,x)}_start(t){if(!this._supportPointerEvents){this._deltaX=t.touches[0].clientX;return}this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX)}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),_(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){const t=Math.abs(this._deltaX);if(t<=Ss)return;const e=t/this._deltaX;this._deltaX=0,e&&_(e>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(o.on(this._element,Ts,t=>this._start(t)),o.on(this._element,bs,t=>this._end(t)),this._element.classList.add(vs)):(o.on(this._element,ms,t=>this._start(t)),o.on(this._element,gs,t=>this._move(t)),o.on(this._element,As,t=>this._end(t)))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&(t.pointerType===Cs||t.pointerType===Ns)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Ds="carousel",ws="bs.carousel",D=`.${ws}`,se=".data-api",Ls="ArrowLeft",$s="ArrowRight",Is=500,q="next",K="prev",W="left",rt="right",Ms=`slide${D}`,yt=`slid${D}`,Rs=`keydown${D}`,Ps=`mouseenter${D}`,ks=`mouseleave${D}`,Vs=`dragstart${D}`,Hs=`load${D}${se}`,xs=`click${D}${se}`,ne="carousel",at="active",Ks="slide",Ws="carousel-item-end",Fs="carousel-item-start",Ys="carousel-item-next",Bs="carousel-item-prev",ie=".active",oe=".carousel-item",Us=ie+oe,js=".carousel-item img",Gs=".carousel-indicators",zs="[data-bs-slide], [data-bs-slide-to]",qs='[data-bs-ride="carousel"]',Qs={[Ls]:rt,[$s]:W},Xs={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},Zs={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class U extends g{constructor(t,e){super(t,e),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=l.findOne(Gs,this._element),this._addEventListeners(),this._config.ride===ne&&this.cycle()}static get Default(){return Xs}static get DefaultType(){return Zs}static get NAME(){return Ds}next(){this._slide(q)}nextWhenVisible(){!document.hidden&&H(this._element)&&this.next()}prev(){this._slide(K)}pause(){this._isSliding&&Wt(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){o.one(this._element,yt,()=>this.cycle());return}this.cycle()}}to(t){const e=this._getItems();if(t>e.length-1||t<0)return;if(this._isSliding){o.one(this._element,yt,()=>this.to(t));return}const n=this._getItemIndex(this._getActive());if(n===t)return;const i=t>n?q:K;this._slide(i,e[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&o.on(this._element,Rs,t=>this._keydown(t)),this._config.pause==="hover"&&(o.on(this._element,Ps,()=>this.pause()),o.on(this._element,ks,()=>this._maybeEnableCycle())),this._config.touch&&pt.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const n of l.find(js,this._element))o.on(n,Vs,i=>i.preventDefault());const e={leftCallback:()=>this._slide(this._directionToOrder(W)),rightCallback:()=>this._slide(this._directionToOrder(rt)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),Is+this._config.interval))}};this._swipeHelper=new pt(this._element,e)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=Qs[t.key];e&&(t.preventDefault(),this._slide(this._directionToOrder(e)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const e=l.findOne(ie,this._indicatorsElement);e.classList.remove(at),e.removeAttribute("aria-current");const n=l.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);n&&(n.classList.add(at),n.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const e=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=e||this._config.defaultInterval}_slide(t,e=null){if(this._isSliding)return;const n=this._getActive(),i=t===q,a=e||Tt(this._getItems(),n,i,this._config.wrap);if(a===n)return;const r=this._getItemIndex(a),c=st=>o.trigger(this._element,st,{relatedTarget:a,direction:this._orderToDirection(t),from:this._getItemIndex(n),to:r});if(c(Ms).defaultPrevented||!n||!a)return;const d=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(r),this._activeElement=a;const h=i?Fs:Ws,T=i?Ys:Bs;a.classList.add(T),G(a),n.classList.add(h),a.classList.add(h);const m=()=>{a.classList.remove(h,T),a.classList.add(at),n.classList.remove(at,T,h),this._isSliding=!1,c(yt)};this._queueCallback(m,n,this._isAnimated()),d&&this.cycle()}_isAnimated(){return this._element.classList.contains(Ks)}_getActive(){return l.findOne(Us,this._element)}_getItems(){return l.find(oe,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return f()?t===W?K:q:t===W?q:K}_orderToDirection(t){return f()?t===K?W:rt:t===K?rt:W}static jQueryInterface(t){return this.each(function(){const e=U.getOrCreateInstance(this,t);if(typeof t=="number"){e.to(t);return}if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t]()}})}}o.on(document,xs,zs,function(s){const t=l.getElementFromSelector(this);if(!t||!t.classList.contains(ne))return;s.preventDefault();const e=U.getOrCreateInstance(t),n=this.getAttribute("data-bs-slide-to");if(n){e.to(n),e._maybeEnableCycle();return}if(N.getDataAttribute(this,"slide")==="next"){e.next(),e._maybeEnableCycle();return}e.prev(),e._maybeEnableCycle()}),o.on(window,Hs,()=>{const s=l.find(qs);for(const t of s)U.getOrCreateInstance(t)}),p(U);const Js="collapse",tn="bs.collapse",Q=`.${tn}`,en=".data-api",sn=`show${Q}`,nn=`shown${Q}`,on=`hide${Q}`,rn=`hidden${Q}`,an=`click${Q}${en}`,Ot="show",F="collapse",lt="collapsing",ln="collapsed",cn=`:scope .${F} .${F}`,hn="collapse-horizontal",un="width",_n="height",dn=".collapse.show, .collapse.collapsing",Dt='[data-bs-toggle="collapse"]',fn={parent:null,toggle:!0},pn={parent:"(null|element)",toggle:"boolean"};class j extends g{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];const n=l.find(Dt);for(const i of n){const a=l.getSelectorFromElement(i),r=l.find(a).filter(c=>c===this._element);a!==null&&r.length&&this._triggerArray.push(i)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return fn}static get DefaultType(){return pn}static get NAME(){return Js}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(dn).filter(c=>c!==this._element).map(c=>j.getOrCreateInstance(c,{toggle:!1}))),t.length&&t[0]._isTransitioning||o.trigger(this._element,sn).defaultPrevented)return;for(const c of t)c.hide();const n=this._getDimension();this._element.classList.remove(F),this._element.classList.add(lt),this._element.style[n]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const i=()=>{this._isTransitioning=!1,this._element.classList.remove(lt),this._element.classList.add(F,Ot),this._element.style[n]="",o.trigger(this._element,nn)},r=`scroll${n[0].toUpperCase()+n.slice(1)}`;this._queueCallback(i,this._element,!0),this._element.style[n]=`${this._element[r]}px`}hide(){if(this._isTransitioning||!this._isShown()||o.trigger(this._element,on).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,G(this._element),this._element.classList.add(lt),this._element.classList.remove(F,Ot);for(const i of this._triggerArray){const a=l.getElementFromSelector(i);a&&!this._isShown(a)&&this._addAriaAndCollapsedClass([i],!1)}this._isTransitioning=!0;const n=()=>{this._isTransitioning=!1,this._element.classList.remove(lt),this._element.classList.add(F),o.trigger(this._element,rn)};this._element.style[e]="",this._queueCallback(n,this._element,!0)}_isShown(t=this._element){return t.classList.contains(Ot)}_configAfterMerge(t){return t.toggle=!!t.toggle,t.parent=y(t.parent),t}_getDimension(){return this._element.classList.contains(hn)?un:_n}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(Dt);for(const e of t){const n=l.getElementFromSelector(e);n&&this._addAriaAndCollapsedClass([e],this._isShown(n))}}_getFirstLevelChildren(t){const e=l.find(cn,this._config.parent);return l.find(t,this._config.parent).filter(n=>!e.includes(n))}_addAriaAndCollapsedClass(t,e){if(t.length)for(const n of t)n.classList.toggle(ln,!e),n.setAttribute("aria-expanded",e)}static jQueryInterface(t){const e={};return typeof t=="string"&&/show|hide/.test(t)&&(e.toggle=!1),this.each(function(){const n=j.getOrCreateInstance(this,e);if(typeof t=="string"){if(typeof n[t]>"u")throw new TypeError(`No method named "${t}"`);n[t]()}})}}o.on(document,an,Dt,function(s){(s.target.tagName==="A"||s.delegateTarget&&s.delegateTarget.tagName==="A")&&s.preventDefault();for(const t of l.getMultipleElementsFromSelector(this))j.getOrCreateInstance(t,{toggle:!1}).toggle()}),p(j);const re="dropdown",En="bs.dropdown",L=`.${En}`,wt=".data-api",mn="Escape",ae="Tab",gn="ArrowUp",le="ArrowDown",An=2,Tn=`hide${L}`,bn=`hidden${L}`,Nn=`show${L}`,Cn=`shown${L}`,ce=`click${L}${wt}`,he=`keydown${L}${wt}`,vn=`keyup${L}${wt}`,Y="show",Sn="dropup",yn="dropend",On="dropstart",Dn="dropup-center",wn="dropdown-center",$='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Ln=`${$}.${Y}`,ct=".dropdown-menu",$n=".navbar",In=".navbar-nav",Mn=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Rn=f()?"top-end":"top-start",Pn=f()?"top-start":"top-end",kn=f()?"bottom-end":"bottom-start",Vn=f()?"bottom-start":"bottom-end",Hn=f()?"left-start":"right-start",xn=f()?"right-start":"left-start",Kn="top",Wn="bottom",Fn={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Yn={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class A extends g{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=l.next(this._element,ct)[0]||l.prev(this._element,ct)[0]||l.findOne(ct,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Fn}static get DefaultType(){return Yn}static get NAME(){return re}toggle(){return this._isShown()?this.hide():this.show()}show(){if(O(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!o.trigger(this._element,Nn,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(In))for(const n of[].concat(...document.body.children))o.on(n,"mouseover",it);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Y),this._element.classList.add(Y),o.trigger(this._element,Cn,t)}}hide(){if(O(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!o.trigger(this._element,Tn,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const n of[].concat(...document.body.children))o.off(n,"mouseover",it);this._popper&&this._popper.destroy(),this._menu.classList.remove(Y),this._element.classList.remove(Y),this._element.setAttribute("aria-expanded","false"),N.removeDataAttribute(this._menu,"popper"),o.trigger(this._element,bn,t)}}_getConfig(t){if(t=super._getConfig(t),typeof t.reference=="object"&&!b(t.reference)&&typeof t.reference.getBoundingClientRect!="function")throw new TypeError(`${re.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(typeof nt>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;this._config.reference==="parent"?t=this._parent:b(this._config.reference)?t=y(this._config.reference):typeof this._config.reference=="object"&&(t=this._config.reference);const e=this._getPopperConfig();this._popper=nt.createPopper(t,this._menu,e)}_isShown(){return this._menu.classList.contains(Y)}_getPlacement(){const t=this._parent;if(t.classList.contains(yn))return Hn;if(t.classList.contains(On))return xn;if(t.classList.contains(Dn))return Kn;if(t.classList.contains(wn))return Wn;const e=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return t.classList.contains(Sn)?e?Pn:Rn:e?Vn:kn}_detectNavbar(){return this._element.closest($n)!==null}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(e=>Number.parseInt(e,10)):typeof t=="function"?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(N.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,..._(this._config.popperConfig,[t])}}_selectMenuItem({key:t,target:e}){const n=l.find(Mn,this._menu).filter(i=>H(i));n.length&&Tt(n,e,t===le,!n.includes(e)).focus()}static jQueryInterface(t){return this.each(function(){const e=A.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t]()}})}static clearMenus(t){if(t.button===An||t.type==="keyup"&&t.key!==ae)return;const e=l.find(Ln);for(const n of e){const i=A.getInstance(n);if(!i||i._config.autoClose===!1)continue;const a=t.composedPath(),r=a.includes(i._menu);if(a.includes(i._element)||i._config.autoClose==="inside"&&!r||i._config.autoClose==="outside"&&r||i._menu.contains(t.target)&&(t.type==="keyup"&&t.key===ae||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const c={relatedTarget:i._element};t.type==="click"&&(c.clickEvent=t),i._completeHide(c)}}static dataApiKeydownHandler(t){const e=/input|textarea/i.test(t.target.tagName),n=t.key===mn,i=[gn,le].includes(t.key);if(!i&&!n||e&&!n)return;t.preventDefault();const a=this.matches($)?this:l.prev(this,$)[0]||l.next(this,$)[0]||l.findOne($,t.delegateTarget.parentNode),r=A.getOrCreateInstance(a);if(i){t.stopPropagation(),r.show(),r._selectMenuItem(t);return}r._isShown()&&(t.stopPropagation(),r.hide(),a.focus())}}o.on(document,he,$,A.dataApiKeydownHandler),o.on(document,he,ct,A.dataApiKeydownHandler),o.on(document,ce,A.clearMenus),o.on(document,vn,A.clearMenus),o.on(document,ce,$,function(s){s.preventDefault(),A.getOrCreateInstance(this).toggle()}),p(A);const ue="backdrop",Bn="fade",_e="show",de=`mousedown.bs.${ue}`,Un={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},jn={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class fe extends z{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return Un}static get DefaultType(){return jn}static get NAME(){return ue}show(t){if(!this._config.isVisible){_(t);return}this._append();const e=this._getElement();this._config.isAnimated&&G(e),e.classList.add(_e),this._emulateAnimation(()=>{_(t)})}hide(t){if(!this._config.isVisible){_(t);return}this._getElement().classList.remove(_e),this._emulateAnimation(()=>{this.dispose(),_(t)})}dispose(){this._isAppended&&(o.off(this._element,de),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add(Bn),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=y(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),o.on(t,de,()=>{_(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(t){Bt(t,this._getElement(),this._config.isAnimated)}}const Gn="focustrap",zn="bs.focustrap",ht=`.${zn}`,qn=`focusin${ht}`,Qn=`keydown.tab${ht}`,Xn="Tab",Zn="forward",pe="backward",Jn={autofocus:!0,trapElement:null},ti={autofocus:"boolean",trapElement:"element"};class Ee extends z{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Jn}static get DefaultType(){return ti}static get NAME(){return Gn}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),o.off(document,ht),o.on(document,qn,t=>this._handleFocusin(t)),o.on(document,Qn,t=>this._handleKeydown(t)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,o.off(document,ht))}_handleFocusin(t){const{trapElement:e}=this._config;if(t.target===document||t.target===e||e.contains(t.target))return;const n=l.focusableChildren(e);n.length===0?e.focus():this._lastTabNavDirection===pe?n[n.length-1].focus():n[0].focus()}_handleKeydown(t){t.key===Xn&&(this._lastTabNavDirection=t.shiftKey?pe:Zn)}}const me=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",ge=".sticky-top",ut="padding-right",Ae="margin-right";class Lt{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,ut,e=>e+t),this._setElementAttributes(me,ut,e=>e+t),this._setElementAttributes(ge,Ae,e=>e-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,ut),this._resetElementAttributes(me,ut),this._resetElementAttributes(ge,Ae)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,n){const i=this.getWidth(),a=r=>{if(r!==this._element&&window.innerWidth>r.clientWidth+i)return;this._saveInitialAttribute(r,e);const c=window.getComputedStyle(r).getPropertyValue(e);r.style.setProperty(e,`${n(Number.parseFloat(c))}px`)};this._applyManipulationCallback(t,a)}_saveInitialAttribute(t,e){const n=t.style.getPropertyValue(e);n&&N.setDataAttribute(t,e,n)}_resetElementAttributes(t,e){const n=i=>{const a=N.getDataAttribute(i,e);if(a===null){i.style.removeProperty(e);return}N.removeDataAttribute(i,e),i.style.setProperty(e,a)};this._applyManipulationCallback(t,n)}_applyManipulationCallback(t,e){if(b(t)){e(t);return}for(const n of l.find(t,this._element))e(n)}}const ei="modal",si="bs.modal",E=`.${si}`,ni=".data-api",ii="Escape",oi=`hide${E}`,ri=`hidePrevented${E}`,Te=`hidden${E}`,be=`show${E}`,ai=`shown${E}`,li=`resize${E}`,ci=`click.dismiss${E}`,hi=`mousedown.dismiss${E}`,ui=`keydown.dismiss${E}`,_i=`click${E}${ni}`,Ne="modal-open",di="fade",Ce="show",$t="modal-static",fi=".modal.show",pi=".modal-dialog",Ei=".modal-body",mi='[data-bs-toggle="modal"]',gi={backdrop:!0,focus:!0,keyboard:!0},Ai={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class R extends g{constructor(t,e){super(t,e),this._dialog=l.findOne(pi,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Lt,this._addEventListeners()}static get Default(){return gi}static get DefaultType(){return Ai}static get NAME(){return ei}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||o.trigger(this._element,be,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Ne),this._adjustDialog(),this._backdrop.show(()=>this._showElement(t)))}hide(){!this._isShown||this._isTransitioning||o.trigger(this._element,oi).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Ce),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){o.off(window,E),o.off(this._dialog,E),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new fe({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Ee({trapElement:this._element})}_showElement(t){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const e=l.findOne(Ei,this._dialog);e&&(e.scrollTop=0),G(this._element),this._element.classList.add(Ce);const n=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,o.trigger(this._element,ai,{relatedTarget:t})};this._queueCallback(n,this._dialog,this._isAnimated())}_addEventListeners(){o.on(this._element,ui,t=>{if(t.key===ii){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),o.on(window,li,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),o.on(this._element,hi,t=>{o.one(this._element,ci,e=>{if(!(this._element!==t.target||this._element!==e.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(Ne),this._resetAdjustments(),this._scrollBar.reset(),o.trigger(this._element,Te)})}_isAnimated(){return this._element.classList.contains(di)}_triggerBackdropTransition(){if(o.trigger(this._element,ri).defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,n=this._element.style.overflowY;n==="hidden"||this._element.classList.contains($t)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add($t),this._queueCallback(()=>{this._element.classList.remove($t),this._queueCallback(()=>{this._element.style.overflowY=n},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),n=e>0;if(n&&!t){const i=f()?"paddingLeft":"paddingRight";this._element.style[i]=`${e}px`}if(!n&&t){const i=f()?"paddingRight":"paddingLeft";this._element.style[i]=`${e}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each(function(){const n=R.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof n[t]>"u")throw new TypeError(`No method named "${t}"`);n[t](e)}})}}o.on(document,_i,mi,function(s){const t=l.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&s.preventDefault(),o.one(t,be,i=>{i.defaultPrevented||o.one(t,Te,()=>{H(this)&&this.focus()})});const e=l.findOne(fi);e&&R.getInstance(e).hide(),R.getOrCreateInstance(t).toggle(this)}),ot(R),p(R);const Ti="offcanvas",bi="bs.offcanvas",C=`.${bi}`,ve=".data-api",Ni=`load${C}${ve}`,Ci="Escape",Se="show",ye="showing",Oe="hiding",vi="offcanvas-backdrop",De=".offcanvas.show",Si=`show${C}`,yi=`shown${C}`,Oi=`hide${C}`,we=`hidePrevented${C}`,Le=`hidden${C}`,Di=`resize${C}`,wi=`click${C}${ve}`,Li=`keydown.dismiss${C}`,$i='[data-bs-toggle="offcanvas"]',Ii={backdrop:!0,keyboard:!0,scroll:!1},Mi={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class v extends g{constructor(t,e){super(t,e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Ii}static get DefaultType(){return Mi}static get NAME(){return Ti}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||o.trigger(this._element,Si,{relatedTarget:t}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new Lt().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(ye);const n=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(Se),this._element.classList.remove(ye),o.trigger(this._element,yi,{relatedTarget:t})};this._queueCallback(n,this._element,!0)}hide(){if(!this._isShown||o.trigger(this._element,Oi).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Oe),this._backdrop.hide();const e=()=>{this._element.classList.remove(Se,Oe),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new Lt().reset(),o.trigger(this._element,Le)};this._queueCallback(e,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=()=>{if(this._config.backdrop==="static"){o.trigger(this._element,we);return}this.hide()},e=!!this._config.backdrop;return new fe({className:vi,isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?t:null})}_initializeFocusTrap(){return new Ee({trapElement:this._element})}_addEventListeners(){o.on(this._element,Li,t=>{if(t.key===Ci){if(this._config.keyboard){this.hide();return}o.trigger(this._element,we)}})}static jQueryInterface(t){return this.each(function(){const e=v.getOrCreateInstance(this,t);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t](this)}})}}o.on(document,wi,$i,function(s){const t=l.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&s.preventDefault(),O(this))return;o.one(t,Le,()=>{H(this)&&this.focus()});const e=l.findOne(De);e&&e!==t&&v.getInstance(e).hide(),v.getOrCreateInstance(t).toggle(this)}),o.on(window,Ni,()=>{for(const s of l.find(De))v.getOrCreateInstance(s).show()}),o.on(window,Di,()=>{for(const s of l.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(s).position!=="fixed"&&v.getOrCreateInstance(s).hide()}),ot(v),p(v);const Ri=/^aria-[\w-]*$/i,$e={"*":["class","dir","id","lang","role",Ri],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Pi=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),ki=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Vi=(s,t)=>{const e=s.nodeName.toLowerCase();return t.includes(e)?Pi.has(e)?!!ki.test(s.nodeValue):!0:t.filter(n=>n instanceof RegExp).some(n=>n.test(e))};function Hi(s,t,e){if(!s.length)return s;if(e&&typeof e=="function")return e(s);const i=new window.DOMParser().parseFromString(s,"text/html"),a=[].concat(...i.body.querySelectorAll("*"));for(const r of a){const c=r.nodeName.toLowerCase();if(!Object.keys(t).includes(c)){r.remove();continue}const u=[].concat(...r.attributes),d=[].concat(t["*"]||[],t[c]||[]);for(const h of u)Vi(h,d)||r.removeAttribute(h.nodeName)}return i.body.innerHTML}const xi="TemplateFactory",Ki={allowList:$e,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},Wi={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Fi={entry:"(string|element|function|null)",selector:"(string|element)"};class Yi extends z{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return Ki}static get DefaultType(){return Wi}static get NAME(){return xi}getContent(){return Object.values(this._config.content).map(t=>this._resolvePossibleFunction(t)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[i,a]of Object.entries(this._config.content))this._setContent(t,a,i);const e=t.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&e.classList.add(...n.split(" ")),e}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[e,n]of Object.entries(t))super._typeCheckConfig({selector:e,entry:n},Fi)}_setContent(t,e,n){const i=l.findOne(n,t);if(i){if(e=this._resolvePossibleFunction(e),!e){i.remove();return}if(b(e)){this._putElementInTemplate(y(e),i);return}if(this._config.html){i.innerHTML=this._maybeSanitize(e);return}i.textContent=e}}_maybeSanitize(t){return this._config.sanitize?Hi(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return _(t,[this])}_putElementInTemplate(t,e){if(this._config.html){e.innerHTML="",e.append(t);return}e.textContent=t.textContent}}const Bi="tooltip",Ui=new Set(["sanitize","allowList","sanitizeFn"]),It="fade",ji="modal",_t="show",Gi=".tooltip-inner",Ie=`.${ji}`,Me="hide.bs.modal",X="hover",Mt="focus",zi="click",qi="manual",Qi="hide",Xi="hidden",Zi="show",Ji="shown",to="inserted",eo="click",so="focusin",no="focusout",io="mouseenter",oo="mouseleave",ro={AUTO:"auto",TOP:"top",RIGHT:f()?"left":"right",BOTTOM:"bottom",LEFT:f()?"right":"left"},ao={allowList:$e,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'',title:"",trigger:"hover focus"},lo={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class P extends g{constructor(t,e){if(typeof nt>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t,e),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return ao}static get DefaultType(){return lo}static get NAME(){return Bi}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),o.off(this._element.closest(Ie),Me,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const t=o.trigger(this._element,this.constructor.eventName(Zi)),n=(Ft(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!n)return;this._disposePopper();const i=this._getTipElement();this._element.setAttribute("aria-describedby",i.getAttribute("id"));const{container:a}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(a.append(i),o.trigger(this._element,this.constructor.eventName(to))),this._popper=this._createPopper(i),i.classList.add(_t),"ontouchstart"in document.documentElement)for(const c of[].concat(...document.body.children))o.on(c,"mouseover",it);const r=()=>{o.trigger(this._element,this.constructor.eventName(Ji)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(r,this.tip,this._isAnimated())}hide(){if(!this._isShown()||o.trigger(this._element,this.constructor.eventName(Qi)).defaultPrevented)return;if(this._getTipElement().classList.remove(_t),"ontouchstart"in document.documentElement)for(const i of[].concat(...document.body.children))o.off(i,"mouseover",it);this._activeTrigger[zi]=!1,this._activeTrigger[Mt]=!1,this._activeTrigger[X]=!1,this._isHovered=null;const n=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),o.trigger(this._element,this.constructor.eventName(Xi)))};this._queueCallback(n,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){const e=this._getTemplateFactory(t).toHtml();if(!e)return null;e.classList.remove(It,_t),e.classList.add(`bs-${this.constructor.NAME}-auto`);const n=Ge(this.constructor.NAME).toString();return e.setAttribute("id",n),this._isAnimated()&&e.classList.add(It),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new Yi({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[Gi]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(It)}_isShown(){return this.tip&&this.tip.classList.contains(_t)}_createPopper(t){const e=_(this._config.placement,[this,t,this._element]),n=ro[e.toUpperCase()];return nt.createPopper(this._element,t,this._getPopperConfig(n))}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(e=>Number.parseInt(e,10)):typeof t=="function"?e=>t(e,this._element):t}_resolvePossibleFunction(t){return _(t,[this._element])}_getPopperConfig(t){const e={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:n=>{this._getTipElement().setAttribute("data-popper-placement",n.state.placement)}}]};return{...e,..._(this._config.popperConfig,[e])}}_setListeners(){const t=this._config.trigger.split(" ");for(const e of t)if(e==="click")o.on(this._element,this.constructor.eventName(eo),this._config.selector,n=>{this._initializeOnDelegatedTarget(n).toggle()});else if(e!==qi){const n=e===X?this.constructor.eventName(io):this.constructor.eventName(so),i=e===X?this.constructor.eventName(oo):this.constructor.eventName(no);o.on(this._element,n,this._config.selector,a=>{const r=this._initializeOnDelegatedTarget(a);r._activeTrigger[a.type==="focusin"?Mt:X]=!0,r._enter()}),o.on(this._element,i,this._config.selector,a=>{const r=this._initializeOnDelegatedTarget(a);r._activeTrigger[a.type==="focusout"?Mt:X]=r._element.contains(a.relatedTarget),r._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},o.on(this._element.closest(Ie),Me,this._hideModalHandler)}_fixTitle(){const t=this._element.getAttribute("title");t&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(t,e){clearTimeout(this._timeout),this._timeout=setTimeout(t,e)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const e=N.getDataAttributes(this._element);for(const n of Object.keys(e))Ui.has(n)&&delete e[n];return t={...e,...typeof t=="object"&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=t.container===!1?document.body:y(t.container),typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),typeof t.title=="number"&&(t.title=t.title.toString()),typeof t.content=="number"&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const[e,n]of Object.entries(this._config))this.constructor.Default[e]!==n&&(t[e]=n);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each(function(){const e=P.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t]()}})}}p(P);const co="popover",ho=".popover-header",uo=".popover-body",_o={...P.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},fo={...P.DefaultType,content:"(null|string|element|function)"};class Et extends P{static get Default(){return _o}static get DefaultType(){return fo}static get NAME(){return co}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[ho]:this._getTitle(),[uo]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){const e=Et.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t]()}})}}p(Et);const po="scrollspy",Eo="bs.scrollspy",Rt=`.${Eo}`,mo=".data-api",go=`activate${Rt}`,Re=`click${Rt}`,Ao=`load${Rt}${mo}`,To="dropdown-item",B="active",bo='[data-bs-spy="scroll"]',Pt="[href]",No=".nav, .list-group",Pe=".nav-link",Co=".nav-item",vo=".list-group-item",So=`${Pe}, ${Co} > ${Pe}, ${vo}`,yo=".dropdown",Oo=".dropdown-toggle",Do={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},wo={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class tt extends g{constructor(t,e){super(t,e),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return Do}static get DefaultType(){return wo}static get NAME(){return po}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=y(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin,typeof t.threshold=="string"&&(t.threshold=t.threshold.split(",").map(e=>Number.parseFloat(e))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(o.off(this._config.target,Re),o.on(this._config.target,Re,Pt,t=>{const e=this._observableSections.get(t.target.hash);if(e){t.preventDefault();const n=this._rootElement||window,i=e.offsetTop-this._element.offsetTop;if(n.scrollTo){n.scrollTo({top:i,behavior:"smooth"});return}n.scrollTop=i}}))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(e=>this._observerCallback(e),t)}_observerCallback(t){const e=r=>this._targetLinks.get(`#${r.target.id}`),n=r=>{this._previousScrollData.visibleEntryTop=r.target.offsetTop,this._process(e(r))},i=(this._rootElement||document.documentElement).scrollTop,a=i>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=i;for(const r of t){if(!r.isIntersecting){this._activeTarget=null,this._clearActiveClass(e(r));continue}const c=r.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(a&&c){if(n(r),!i)return;continue}!a&&!c&&n(r)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=l.find(Pt,this._config.target);for(const e of t){if(!e.hash||O(e))continue;const n=l.findOne(decodeURI(e.hash),this._element);H(n)&&(this._targetLinks.set(decodeURI(e.hash),e),this._observableSections.set(e.hash,n))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(B),this._activateParents(t),o.trigger(this._element,go,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains(To)){l.findOne(Oo,t.closest(yo)).classList.add(B);return}for(const e of l.parents(t,No))for(const n of l.prev(e,So))n.classList.add(B)}_clearActiveClass(t){t.classList.remove(B);const e=l.find(`${Pt}.${B}`,t);for(const n of e)n.classList.remove(B)}static jQueryInterface(t){return this.each(function(){const e=tt.getOrCreateInstance(this,t);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t]()}})}}o.on(window,Ao,()=>{for(const s of l.find(bo))tt.getOrCreateInstance(s)}),p(tt);const Lo="tab",$o="bs.tab",I=`.${$o}`,Io=`hide${I}`,Mo=`hidden${I}`,Ro=`show${I}`,Po=`shown${I}`,ko=`click${I}`,Vo=`keydown${I}`,Ho=`load${I}`,xo="ArrowLeft",ke="ArrowRight",Ko="ArrowUp",Ve="ArrowDown",kt="Home",He="End",M="active",xe="fade",Vt="show",Wo="dropdown",Ke=".dropdown-toggle",Fo=".dropdown-menu",Ht=`:not(${Ke})`,Yo='.list-group, .nav, [role="tablist"]',Bo=".nav-item, .list-group-item",Uo=`.nav-link${Ht}, .list-group-item${Ht}, [role="tab"]${Ht}`,We='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',xt=`${Uo}, ${We}`,jo=`.${M}[data-bs-toggle="tab"], .${M}[data-bs-toggle="pill"], .${M}[data-bs-toggle="list"]`;class k extends g{constructor(t){super(t),this._parent=this._element.closest(Yo),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),o.on(this._element,Vo,e=>this._keydown(e)))}static get NAME(){return Lo}show(){const t=this._element;if(this._elemIsActive(t))return;const e=this._getActiveElem(),n=e?o.trigger(e,Io,{relatedTarget:t}):null;o.trigger(t,Ro,{relatedTarget:e}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(e,t),this._activate(t,e))}_activate(t,e){if(!t)return;t.classList.add(M),this._activate(l.getElementFromSelector(t));const n=()=>{if(t.getAttribute("role")!=="tab"){t.classList.add(Vt);return}t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),o.trigger(t,Po,{relatedTarget:e})};this._queueCallback(n,t,t.classList.contains(xe))}_deactivate(t,e){if(!t)return;t.classList.remove(M),t.blur(),this._deactivate(l.getElementFromSelector(t));const n=()=>{if(t.getAttribute("role")!=="tab"){t.classList.remove(Vt);return}t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),o.trigger(t,Mo,{relatedTarget:e})};this._queueCallback(n,t,t.classList.contains(xe))}_keydown(t){if(![xo,ke,Ko,Ve,kt,He].includes(t.key))return;t.stopPropagation(),t.preventDefault();const e=this._getChildren().filter(i=>!O(i));let n;if([kt,He].includes(t.key))n=e[t.key===kt?0:e.length-1];else{const i=[ke,Ve].includes(t.key);n=Tt(e,t.target,i,!0)}n&&(n.focus({preventScroll:!0}),k.getOrCreateInstance(n).show())}_getChildren(){return l.find(xt,this._parent)}_getActiveElem(){return this._getChildren().find(t=>this._elemIsActive(t))||null}_setInitialAttributes(t,e){this._setAttributeIfNotExists(t,"role","tablist");for(const n of e)this._setInitialAttributesOnChild(n)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const e=this._elemIsActive(t),n=this._getOuterElement(t);t.setAttribute("aria-selected",e),n!==t&&this._setAttributeIfNotExists(n,"role","presentation"),e||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const e=l.getElementFromSelector(t);e&&(this._setAttributeIfNotExists(e,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(e,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,e){const n=this._getOuterElement(t);if(!n.classList.contains(Wo))return;const i=(a,r)=>{const c=l.findOne(a,n);c&&c.classList.toggle(r,e)};i(Ke,M),i(Fo,Vt),n.setAttribute("aria-expanded",e)}_setAttributeIfNotExists(t,e,n){t.hasAttribute(e)||t.setAttribute(e,n)}_elemIsActive(t){return t.classList.contains(M)}_getInnerElement(t){return t.matches(xt)?t:l.findOne(xt,t)}_getOuterElement(t){return t.closest(Bo)||t}static jQueryInterface(t){return this.each(function(){const e=k.getOrCreateInstance(this);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t]()}})}}o.on(document,ko,We,function(s){["A","AREA"].includes(this.tagName)&&s.preventDefault(),!O(this)&&k.getOrCreateInstance(this).show()}),o.on(window,Ho,()=>{for(const s of l.find(jo))k.getOrCreateInstance(s)}),p(k);const Go="toast",zo="bs.toast",w=`.${zo}`,qo=`mouseover${w}`,Qo=`mouseout${w}`,Xo=`focusin${w}`,Zo=`focusout${w}`,Jo=`hide${w}`,tr=`hidden${w}`,er=`show${w}`,sr=`shown${w}`,nr="fade",Fe="hide",dt="show",ft="showing",ir={animation:"boolean",autohide:"boolean",delay:"number"},or={animation:!0,autohide:!0,delay:5e3};class et extends g{constructor(t,e){super(t,e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return or}static get DefaultType(){return ir}static get NAME(){return Go}show(){if(o.trigger(this._element,er).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(nr);const e=()=>{this._element.classList.remove(ft),o.trigger(this._element,sr),this._maybeScheduleHide()};this._element.classList.remove(Fe),G(this._element),this._element.classList.add(dt,ft),this._queueCallback(e,this._element,this._config.animation)}hide(){if(!this.isShown()||o.trigger(this._element,Jo).defaultPrevented)return;const e=()=>{this._element.classList.add(Fe),this._element.classList.remove(ft,dt),o.trigger(this._element,tr)};this._element.classList.add(ft),this._queueCallback(e,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(dt),super.dispose()}isShown(){return this._element.classList.contains(dt)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=e;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=e;break}}if(e){this._clearTimeout();return}const n=t.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){o.on(this._element,qo,t=>this._onInteraction(t,!0)),o.on(this._element,Qo,t=>this._onInteraction(t,!1)),o.on(this._element,Xo,t=>this._onInteraction(t,!0)),o.on(this._element,Zo,t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){const e=et.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t](this)}})}}ot(et),p(et);export{Z as Alert,J as Button,U as Carousel,j as Collapse,A as Dropdown,R as Modal,v as Offcanvas,Et as Popover,tt as ScrollSpy,k as Tab,et as Toast,P as Tooltip}; //# sourceMappingURL=/sm/4e6a547ae1ef00566048385d0a150ab3775a27f3f916444e41ce68e59e3b1487.map"