import{m as sn}from"./module.esm.a06f5d3d.js";const q=new Map,Qt={set(e,t,n){q.has(e)||q.set(e,new Map);const r=q.get(e);if(!r.has(t)&&r.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(r.keys())[0]}.`);return}r.set(t,n)},get(e,t){return q.has(e)&&q.get(e).get(t)||null},remove(e,t){if(!q.has(e))return;const n=q.get(e);n.delete(t),n.size===0&&q.delete(e)}},Zn=1e3,re="transitionend",on=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,(t,n)=>`#${CSS.escape(n)}`)),e),tr=e=>e==null?`${e}`:Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase(),er=e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:n}=window.getComputedStyle(e);const r=Number.parseFloat(t),i=Number.parseFloat(n);return!r&&!i?0:(t=t.split(",")[0],n=n.split(",")[0],(Number.parseFloat(t)+Number.parseFloat(n))*Zn)},nr=e=>{e.dispatchEvent(new Event(re))},z=e=>!e||typeof e!="object"?!1:(typeof e.jquery<"u"&&(e=e[0]),typeof e.nodeType<"u"),wt=e=>z(e)?e.jquery?e[0]:e:typeof e=="string"&&e.length>0?document.querySelector(on(e)):null,le=e=>{if(!z(e)||e.getClientRects().length===0)return!1;const t=getComputedStyle(e).getPropertyValue("visibility")==="visible",n=e.closest("details:not([open])");if(!n)return t;if(n!==e){const r=e.closest("summary");if(r&&r.parentNode!==n||r===null)return!1}return t},It=e=>!e||e.nodeType!==Node.ELEMENT_NODE||e.classList.contains("disabled")?!0:typeof e.disabled<"u"?e.disabled:e.hasAttribute("disabled")&&e.getAttribute("disabled")!=="false",Re=()=>{},ue=e=>{e.offsetHeight},an=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Xt=[],rr=e=>{document.readyState==="loading"?(Xt.length||document.addEventListener("DOMContentLoaded",()=>{for(const t of Xt)t()}),Xt.push(e)):e()},G=()=>document.documentElement.dir==="rtl",jt=e=>{rr(()=>{const t=an();if(t){const n=e.NAME,r=t.fn[n];t.fn[n]=e.jQueryInterface,t.fn[n].Constructor=e,t.fn[n].noConflict=()=>(t.fn[n]=r,e.jQueryInterface)}})},U=(e,t=[],n=e)=>typeof e=="function"?e(...t):n,cn=(e,t,n=!0)=>{if(!n){U(e);return}const r=5,i=er(t)+r;let s=!1;const o=({target:a})=>{a===t&&(s=!0,t.removeEventListener(re,o),U(e))};t.addEventListener(re,o),setTimeout(()=>{s||nr(t)},i)},ir=(e,t,n,r)=>{const i=e.length;let s=e.indexOf(t);return s===-1?!n&&r?e[i-1]:e[0]:(s+=n?1:-1,r&&(s=(s+i)%i),e[Math.max(0,Math.min(s,i-1))])},sr=/[^.]*(?=\..*)\.|.*/,or=/\..*/,ar=/::\d+$/,Jt={};let ke=1;const ln={mouseenter:"mouseover",mouseleave:"mouseout"},cr=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 un(e,t){return t&&`${t}::${ke++}`||e.uidEvent||ke++}function fn(e){const t=un(e);return e.uidEvent=t,Jt[t]=Jt[t]||{},Jt[t]}function lr(e,t){return function n(r){return fe(r,{delegateTarget:e}),n.oneOff&&d.off(e,r.type,t),t.apply(e,[r])}}function ur(e,t,n){return function r(i){const s=e.querySelectorAll(t);for(let{target:o}=i;o&&o!==this;o=o.parentNode)for(const a of s)if(a===o)return fe(i,{delegateTarget:o}),r.oneOff&&d.off(e,i.type,t,n),n.apply(o,[i])}}function dn(e,t,n=null){return Object.values(e).find(r=>r.callable===t&&r.delegationSelector===n)}function pn(e,t,n){const r=typeof t=="string",i=r?n:t||n;let s=hn(e);return cr.has(s)||(s=e),[r,i,s]}function Ie(e,t,n,r,i){if(typeof t!="string"||!e)return;let[s,o,a]=pn(t,n,r);t in ln&&(o=(y=>function(p){if(!p.relatedTarget||p.relatedTarget!==p.delegateTarget&&!p.delegateTarget.contains(p.relatedTarget))return y.call(this,p)})(o));const c=fn(e),u=c[a]||(c[a]={}),l=dn(u,o,s?n:null);if(l){l.oneOff=l.oneOff&&i;return}const h=un(o,t.replace(sr,"")),m=s?ur(e,n,o):lr(e,o);m.delegationSelector=s?n:null,m.callable=o,m.oneOff=i,m.uidEvent=h,u[h]=m,e.addEventListener(a,m,s)}function ie(e,t,n,r,i){const s=dn(t[n],r,i);!s||(e.removeEventListener(n,s,Boolean(i)),delete t[n][s.uidEvent])}function fr(e,t,n,r){const i=t[n]||{};for(const[s,o]of Object.entries(i))s.includes(r)&&ie(e,t,n,o.callable,o.delegationSelector)}function hn(e){return e=e.replace(or,""),ln[e]||e}const d={on(e,t,n,r){Ie(e,t,n,r,!1)},one(e,t,n,r){Ie(e,t,n,r,!0)},off(e,t,n,r){if(typeof t!="string"||!e)return;const[i,s,o]=pn(t,n,r),a=o!==t,c=fn(e),u=c[o]||{},l=t.startsWith(".");if(typeof s<"u"){if(!Object.keys(u).length)return;ie(e,c,o,s,i?n:null);return}if(l)for(const h of Object.keys(c))fr(e,c,h,t.slice(1));for(const[h,m]of Object.entries(u)){const f=h.replace(ar,"");(!a||t.includes(f))&&ie(e,c,o,m.callable,m.delegationSelector)}},trigger(e,t,n){if(typeof t!="string"||!e)return null;const r=an(),i=hn(t),s=t!==i;let o=null,a=!0,c=!0,u=!1;s&&r&&(o=r.Event(t,n),r(e).trigger(o),a=!o.isPropagationStopped(),c=!o.isImmediatePropagationStopped(),u=o.isDefaultPrevented());const l=fe(new Event(t,{bubbles:a,cancelable:!0}),n);return u&&l.preventDefault(),c&&e.dispatchEvent(l),l.defaultPrevented&&o&&o.preventDefault(),l}};function fe(e,t={}){for(const[n,r]of Object.entries(t))try{e[n]=r}catch{Object.defineProperty(e,n,{configurable:!0,get(){return r}})}return e}function Be(e){if(e==="true")return!0;if(e==="false")return!1;if(e===Number(e).toString())return Number(e);if(e===""||e==="null")return null;if(typeof e!="string")return e;try{return JSON.parse(decodeURIComponent(e))}catch{return e}}function Zt(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}const rt={setDataAttribute(e,t,n){e.setAttribute(`data-bs-${Zt(t)}`,n)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${Zt(t)}`)},getDataAttributes(e){if(!e)return{};const t={},n=Object.keys(e.dataset).filter(r=>r.startsWith("bs")&&!r.startsWith("bsConfig"));for(const r of n){let i=r.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),t[i]=Be(e.dataset[r])}return t},getDataAttribute(e,t){return Be(e.getAttribute(`data-bs-${Zt(t)}`))}};class de{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,n){const r=z(n)?rt.getDataAttribute(n,"config"):{};return{...this.constructor.Default,...typeof r=="object"?r:{},...z(n)?rt.getDataAttributes(n):{},...typeof t=="object"?t:{}}}_typeCheckConfig(t,n=this.constructor.DefaultType){for(const[r,i]of Object.entries(n)){const s=t[r],o=z(s)?"element":tr(s);if(!new RegExp(i).test(o))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${r}" provided type "${o}" but expected type "${i}".`)}}}const dr="5.3.0";class Ht extends de{constructor(t,n){super(),t=wt(t),t&&(this._element=t,this._config=this._getConfig(n),Qt.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Qt.remove(this._element,this.constructor.DATA_KEY),d.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,n,r=!0){cn(t,n,r)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return Qt.get(wt(t),this.DATA_KEY)}static getOrCreateInstance(t,n={}){return this.getInstance(t)||new this(t,typeof n=="object"?n:null)}static get VERSION(){return dr}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 te=e=>{let t=e.getAttribute("data-bs-target");if(!t||t==="#"){let n=e.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n=`#${n.split("#")[1]}`),t=n&&n!=="#"?n.trim():null}return on(t)},b={find(e,t=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(t,e))},findOne(e,t=document.documentElement){return Element.prototype.querySelector.call(t,e)},children(e,t){return[].concat(...e.children).filter(n=>n.matches(t))},parents(e,t){const n=[];let r=e.parentNode.closest(t);for(;r;)n.push(r),r=r.parentNode.closest(t);return n},prev(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return[n];n=n.nextElementSibling}return[]},focusableChildren(e){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(n=>`${n}:not([tabindex^="-"])`).join(",");return this.find(t,e).filter(n=>!It(n)&&le(n))},getSelectorFromElement(e){const t=te(e);return t&&b.findOne(t)?t:null},getElementFromSelector(e){const t=te(e);return t?b.findOne(t):null},getMultipleElementsFromSelector(e){const t=te(e);return t?b.find(t):[]}},mn=(e,t="hide")=>{const n=`click.dismiss${e.EVENT_KEY}`,r=e.NAME;d.on(document,n,`[data-bs-dismiss="${r}"]`,function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),It(this))return;const s=b.getElementFromSelector(this)||this.closest(`.${r}`);e.getOrCreateInstance(s)[t]()})},pr="alert",hr="bs.alert",gn=`.${hr}`,mr=`close${gn}`,gr=`closed${gn}`,vr="fade",_r="show";class Wt extends Ht{static get NAME(){return pr}close(){if(d.trigger(this._element,mr).defaultPrevented)return;this._element.classList.remove(_r);const n=this._element.classList.contains(vr);this._queueCallback(()=>this._destroyElement(),this._element,n)}_destroyElement(){this._element.remove(),d.trigger(this._element,gr),this.dispose()}static jQueryInterface(t){return this.each(function(){const n=Wt.getOrCreateInstance(this);if(typeof t=="string"){if(n[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);n[t](this)}})}}mn(Wt,"close");jt(Wt);const Er="collapse",yr="bs.collapse",Tt=`.${yr}`,br=".data-api",Ar=`show${Tt}`,wr=`shown${Tt}`,Or=`hide${Tt}`,Tr=`hidden${Tt}`,Cr=`click${Tt}${br}`,ee="show",ft="collapse",Lt="collapsing",Nr="collapsed",Sr=`:scope .${ft} .${ft}`,Dr="collapse-horizontal",xr="width",$r="height",Lr=".collapse.show, .collapse.collapsing",se='[data-bs-toggle="collapse"]',Pr={parent:null,toggle:!0},Mr={parent:"(null|element)",toggle:"boolean"};class Ot extends Ht{constructor(t,n){super(t,n),this._isTransitioning=!1,this._triggerArray=[];const r=b.find(se);for(const i of r){const s=b.getSelectorFromElement(i),o=b.find(s).filter(a=>a===this._element);s!==null&&o.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 Pr}static get DefaultType(){return Mr}static get NAME(){return Er}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(Lr).filter(a=>a!==this._element).map(a=>Ot.getOrCreateInstance(a,{toggle:!1}))),t.length&&t[0]._isTransitioning||d.trigger(this._element,Ar).defaultPrevented)return;for(const a of t)a.hide();const r=this._getDimension();this._element.classList.remove(ft),this._element.classList.add(Lt),this._element.style[r]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const i=()=>{this._isTransitioning=!1,this._element.classList.remove(Lt),this._element.classList.add(ft,ee),this._element.style[r]="",d.trigger(this._element,wr)},o=`scroll${r[0].toUpperCase()+r.slice(1)}`;this._queueCallback(i,this._element,!0),this._element.style[r]=`${this._element[o]}px`}hide(){if(this._isTransitioning||!this._isShown()||d.trigger(this._element,Or).defaultPrevented)return;const n=this._getDimension();this._element.style[n]=`${this._element.getBoundingClientRect()[n]}px`,ue(this._element),this._element.classList.add(Lt),this._element.classList.remove(ft,ee);for(const i of this._triggerArray){const s=b.getElementFromSelector(i);s&&!this._isShown(s)&&this._addAriaAndCollapsedClass([i],!1)}this._isTransitioning=!0;const r=()=>{this._isTransitioning=!1,this._element.classList.remove(Lt),this._element.classList.add(ft),d.trigger(this._element,Tr)};this._element.style[n]="",this._queueCallback(r,this._element,!0)}_isShown(t=this._element){return t.classList.contains(ee)}_configAfterMerge(t){return t.toggle=Boolean(t.toggle),t.parent=wt(t.parent),t}_getDimension(){return this._element.classList.contains(Dr)?xr:$r}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(se);for(const n of t){const r=b.getElementFromSelector(n);r&&this._addAriaAndCollapsedClass([n],this._isShown(r))}}_getFirstLevelChildren(t){const n=b.find(Sr,this._config.parent);return b.find(t,this._config.parent).filter(r=>!n.includes(r))}_addAriaAndCollapsedClass(t,n){if(!!t.length)for(const r of t)r.classList.toggle(Nr,!n),r.setAttribute("aria-expanded",n)}static jQueryInterface(t){const n={};return typeof t=="string"&&/show|hide/.test(t)&&(n.toggle=!1),this.each(function(){const r=Ot.getOrCreateInstance(this,n);if(typeof t=="string"){if(typeof r[t]>"u")throw new TypeError(`No method named "${t}"`);r[t]()}})}}d.on(document,Cr,se,function(e){(e.target.tagName==="A"||e.delegateTarget&&e.delegateTarget.tagName==="A")&&e.preventDefault();for(const t of b.getMultipleElementsFromSelector(this))Ot.getOrCreateInstance(t,{toggle:!1}).toggle()});jt(Ot);var $="top",M="bottom",R="right",L="left",Yt="auto",_t=[$,M,R,L],st="start",dt="end",vn="clippingParents",pe="viewport",lt="popper",_n="reference",oe=_t.reduce(function(e,t){return e.concat([t+"-"+st,t+"-"+dt])},[]),he=[].concat(_t,[Yt]).reduce(function(e,t){return e.concat([t,t+"-"+st,t+"-"+dt])},[]),En="beforeRead",yn="read",bn="afterRead",An="beforeMain",wn="main",On="afterMain",Tn="beforeWrite",Cn="write",Nn="afterWrite",Sn=[En,yn,bn,An,wn,On,Tn,Cn,Nn];function Y(e){return e?(e.nodeName||"").toLowerCase():null}function k(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ot(e){var t=k(e).Element;return e instanceof t||e instanceof Element}function I(e){var t=k(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function me(e){if(typeof ShadowRoot>"u")return!1;var t=k(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Rr(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},s=t.elements[n];!I(s)||!Y(s)||(Object.assign(s.style,r),Object.keys(i).forEach(function(o){var a=i[o];a===!1?s.removeAttribute(o):s.setAttribute(o,a===!0?"":a)}))})}function kr(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],s=t.attributes[r]||{},o=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=o.reduce(function(c,u){return c[u]="",c},{});!I(i)||!Y(i)||(Object.assign(i.style,a),Object.keys(s).forEach(function(c){i.removeAttribute(c)}))})}}const ge={name:"applyStyles",enabled:!0,phase:"write",fn:Rr,effect:kr,requires:["computeStyles"]};function H(e){return e.split("-")[0]}var it=Math.max,Bt=Math.min,pt=Math.round;function ae(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Dn(){return!/^((?!chrome|android).)*safari/i.test(ae())}function ht(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,s=1;t&&I(e)&&(i=e.offsetWidth>0&&pt(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&pt(r.height)/e.offsetHeight||1);var o=ot(e)?k(e):window,a=o.visualViewport,c=!Dn()&&n,u=(r.left+(c&&a?a.offsetLeft:0))/i,l=(r.top+(c&&a?a.offsetTop:0))/s,h=r.width/i,m=r.height/s;return{width:h,height:m,top:l,right:u+h,bottom:l+m,left:u,x:u,y:l}}function ve(e){var t=ht(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function xn(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&me(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function K(e){return k(e).getComputedStyle(e)}function Ir(e){return["table","td","th"].indexOf(Y(e))>=0}function Q(e){return((ot(e)?e.ownerDocument:e.document)||window.document).documentElement}function Kt(e){return Y(e)==="html"?e:e.assignedSlot||e.parentNode||(me(e)?e.host:null)||Q(e)}function Ve(e){return!I(e)||K(e).position==="fixed"?null:e.offsetParent}function Br(e){var t=/firefox/i.test(ae()),n=/Trident/i.test(ae());if(n&&I(e)){var r=K(e);if(r.position==="fixed")return null}var i=Kt(e);for(me(i)&&(i=i.host);I(i)&&["html","body"].indexOf(Y(i))<0;){var s=K(i);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return i;i=i.parentNode}return null}function Ct(e){for(var t=k(e),n=Ve(e);n&&Ir(n)&&K(n).position==="static";)n=Ve(n);return n&&(Y(n)==="html"||Y(n)==="body"&&K(n).position==="static")?t:n||Br(e)||t}function _e(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function bt(e,t,n){return it(e,Bt(t,n))}function Vr(e,t,n){var r=bt(e,t,n);return r>n?n:r}function $n(){return{top:0,right:0,bottom:0,left:0}}function Ln(e){return Object.assign({},$n(),e)}function Pn(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var jr=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Ln(typeof t!="number"?t:Pn(t,_t))};function Hr(e){var t,n=e.state,r=e.name,i=e.options,s=n.elements.arrow,o=n.modifiersData.popperOffsets,a=H(n.placement),c=_e(a),u=[L,R].indexOf(a)>=0,l=u?"height":"width";if(!(!s||!o)){var h=jr(i.padding,n),m=ve(s),f=c==="y"?$:L,y=c==="y"?M:R,p=n.rects.reference[l]+n.rects.reference[c]-o[c]-n.rects.popper[l],v=o[c]-n.rects.reference[c],A=Ct(s),O=A?c==="y"?A.clientHeight||0:A.clientWidth||0:0,T=p/2-v/2,g=h[f],_=O-m[l]-h[y],E=O/2-m[l]/2+T,w=bt(g,E,_),S=c;n.modifiersData[r]=(t={},t[S]=w,t.centerOffset=w-E,t)}}function Wr(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||!xn(t.elements.popper,i)||(t.elements.arrow=i))}const Mn={name:"arrow",enabled:!0,phase:"main",fn:Hr,effect:Wr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function mt(e){return e.split("-")[1]}var Yr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Kr(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:pt(n*i)/i||0,y:pt(r*i)/i||0}}function je(e){var t,n=e.popper,r=e.popperRect,i=e.placement,s=e.variation,o=e.offsets,a=e.position,c=e.gpuAcceleration,u=e.adaptive,l=e.roundOffsets,h=e.isFixed,m=o.x,f=m===void 0?0:m,y=o.y,p=y===void 0?0:y,v=typeof l=="function"?l({x:f,y:p}):{x:f,y:p};f=v.x,p=v.y;var A=o.hasOwnProperty("x"),O=o.hasOwnProperty("y"),T=L,g=$,_=window;if(u){var E=Ct(n),w="clientHeight",S="clientWidth";if(E===k(n)&&(E=Q(n),K(E).position!=="static"&&a==="absolute"&&(w="scrollHeight",S="scrollWidth")),E=E,i===$||(i===L||i===R)&&s===dt){g=M;var N=h&&E===_&&_.visualViewport?_.visualViewport.height:E[w];p-=N-r.height,p*=c?1:-1}if(i===L||(i===$||i===M)&&s===dt){T=R;var C=h&&E===_&&_.visualViewport?_.visualViewport.width:E[S];f-=C-r.width,f*=c?1:-1}}var D=Object.assign({position:a},u&&Yr),V=l===!0?Kr({x:f,y:p},k(n)):{x:f,y:p};if(f=V.x,p=V.y,c){var x;return Object.assign({},D,(x={},x[g]=O?"0":"",x[T]=A?"0":"",x.transform=(_.devicePixelRatio||1)<=1?"translate("+f+"px, "+p+"px)":"translate3d("+f+"px, "+p+"px, 0)",x))}return Object.assign({},D,(t={},t[g]=O?p+"px":"",t[T]=A?f+"px":"",t.transform="",t))}function Fr(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,s=n.adaptive,o=s===void 0?!0:s,a=n.roundOffsets,c=a===void 0?!0:a,u={placement:H(t.placement),variation:mt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,je(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,je(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Ee={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Fr,data:{}};var Pt={passive:!0};function qr(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,s=i===void 0?!0:i,o=r.resize,a=o===void 0?!0:o,c=k(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&u.forEach(function(l){l.addEventListener("scroll",n.update,Pt)}),a&&c.addEventListener("resize",n.update,Pt),function(){s&&u.forEach(function(l){l.removeEventListener("scroll",n.update,Pt)}),a&&c.removeEventListener("resize",n.update,Pt)}}const ye={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:qr,data:{}};var Ur={left:"right",right:"left",bottom:"top",top:"bottom"};function Rt(e){return e.replace(/left|right|bottom|top/g,function(t){return Ur[t]})}var zr={start:"end",end:"start"};function He(e){return e.replace(/start|end/g,function(t){return zr[t]})}function be(e){var t=k(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Ae(e){return ht(Q(e)).left+be(e).scrollLeft}function Gr(e,t){var n=k(e),r=Q(e),i=n.visualViewport,s=r.clientWidth,o=r.clientHeight,a=0,c=0;if(i){s=i.width,o=i.height;var u=Dn();(u||!u&&t==="fixed")&&(a=i.offsetLeft,c=i.offsetTop)}return{width:s,height:o,x:a+Ae(e),y:c}}function Qr(e){var t,n=Q(e),r=be(e),i=(t=e.ownerDocument)==null?void 0:t.body,s=it(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=it(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+Ae(e),c=-r.scrollTop;return K(i||n).direction==="rtl"&&(a+=it(n.clientWidth,i?i.clientWidth:0)-s),{width:s,height:o,x:a,y:c}}function we(e){var t=K(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Rn(e){return["html","body","#document"].indexOf(Y(e))>=0?e.ownerDocument.body:I(e)&&we(e)?e:Rn(Kt(e))}function At(e,t){var n;t===void 0&&(t=[]);var r=Rn(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),s=k(r),o=i?[s].concat(s.visualViewport||[],we(r)?r:[]):r,a=t.concat(o);return i?a:a.concat(At(Kt(o)))}function ce(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Xr(e,t){var n=ht(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function We(e,t,n){return t===pe?ce(Gr(e,n)):ot(t)?Xr(t,n):ce(Qr(Q(e)))}function Jr(e){var t=At(Kt(e)),n=["absolute","fixed"].indexOf(K(e).position)>=0,r=n&&I(e)?Ct(e):e;return ot(r)?t.filter(function(i){return ot(i)&&xn(i,r)&&Y(i)!=="body"}):[]}function Zr(e,t,n,r){var i=t==="clippingParents"?Jr(e):[].concat(t),s=[].concat(i,[n]),o=s[0],a=s.reduce(function(c,u){var l=We(e,u,r);return c.top=it(l.top,c.top),c.right=Bt(l.right,c.right),c.bottom=Bt(l.bottom,c.bottom),c.left=it(l.left,c.left),c},We(e,o,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function kn(e){var t=e.reference,n=e.element,r=e.placement,i=r?H(r):null,s=r?mt(r):null,o=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,c;switch(i){case $:c={x:o,y:t.y-n.height};break;case M:c={x:o,y:t.y+t.height};break;case R:c={x:t.x+t.width,y:a};break;case L:c={x:t.x-n.width,y:a};break;default:c={x:t.x,y:t.y}}var u=i?_e(i):null;if(u!=null){var l=u==="y"?"height":"width";switch(s){case st:c[u]=c[u]-(t[l]/2-n[l]/2);break;case dt:c[u]=c[u]+(t[l]/2-n[l]/2);break}}return c}function gt(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,s=n.strategy,o=s===void 0?e.strategy:s,a=n.boundary,c=a===void 0?vn:a,u=n.rootBoundary,l=u===void 0?pe:u,h=n.elementContext,m=h===void 0?lt:h,f=n.altBoundary,y=f===void 0?!1:f,p=n.padding,v=p===void 0?0:p,A=Ln(typeof v!="number"?v:Pn(v,_t)),O=m===lt?_n:lt,T=e.rects.popper,g=e.elements[y?O:m],_=Zr(ot(g)?g:g.contextElement||Q(e.elements.popper),c,l,o),E=ht(e.elements.reference),w=kn({reference:E,element:T,strategy:"absolute",placement:i}),S=ce(Object.assign({},T,w)),N=m===lt?S:E,C={top:_.top-N.top+A.top,bottom:N.bottom-_.bottom+A.bottom,left:_.left-N.left+A.left,right:N.right-_.right+A.right},D=e.modifiersData.offset;if(m===lt&&D){var V=D[i];Object.keys(C).forEach(function(x){var X=[R,M].indexOf(x)>=0?1:-1,J=[$,M].indexOf(x)>=0?"y":"x";C[x]+=V[J]*X})}return C}function ti(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,s=n.rootBoundary,o=n.padding,a=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?he:c,l=mt(r),h=l?a?oe:oe.filter(function(y){return mt(y)===l}):_t,m=h.filter(function(y){return u.indexOf(y)>=0});m.length===0&&(m=h);var f=m.reduce(function(y,p){return y[p]=gt(e,{placement:p,boundary:i,rootBoundary:s,padding:o})[H(p)],y},{});return Object.keys(f).sort(function(y,p){return f[y]-f[p]})}function ei(e){if(H(e)===Yt)return[];var t=Rt(e);return[He(e),t,He(t)]}function ni(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,s=i===void 0?!0:i,o=n.altAxis,a=o===void 0?!0:o,c=n.fallbackPlacements,u=n.padding,l=n.boundary,h=n.rootBoundary,m=n.altBoundary,f=n.flipVariations,y=f===void 0?!0:f,p=n.allowedAutoPlacements,v=t.options.placement,A=H(v),O=A===v,T=c||(O||!y?[Rt(v)]:ei(v)),g=[v].concat(T).reduce(function(ct,F){return ct.concat(H(F)===Yt?ti(t,{placement:F,boundary:l,rootBoundary:h,padding:u,flipVariations:y,allowedAutoPlacements:p}):F)},[]),_=t.rects.reference,E=t.rects.popper,w=new Map,S=!0,N=g[0],C=0;C<g.length;C++){var D=g[C],V=H(D),x=mt(D)===st,X=[$,M].indexOf(V)>=0,J=X?"width":"height",P=gt(t,{placement:D,boundary:l,rootBoundary:h,altBoundary:m,padding:u}),j=X?x?R:L:x?M:$;_[J]>E[J]&&(j=Rt(j));var Nt=Rt(j),Z=[];if(s&&Z.push(P[V]<=0),a&&Z.push(P[j]<=0,P[Nt]<=0),Z.every(function(ct){return ct})){N=D,S=!1;break}w.set(D,Z)}if(S)for(var St=y?3:1,qt=function(F){var yt=g.find(function(xt){var tt=w.get(xt);if(tt)return tt.slice(0,F).every(function(Ut){return Ut})});if(yt)return N=yt,"break"},Et=St;Et>0;Et--){var Dt=qt(Et);if(Dt==="break")break}t.placement!==N&&(t.modifiersData[r]._skip=!0,t.placement=N,t.reset=!0)}}const In={name:"flip",enabled:!0,phase:"main",fn:ni,requiresIfExists:["offset"],data:{_skip:!1}};function Ye(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Ke(e){return[$,R,M,L].some(function(t){return e[t]>=0})}function ri(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,s=t.modifiersData.preventOverflow,o=gt(t,{elementContext:"reference"}),a=gt(t,{altBoundary:!0}),c=Ye(o,r),u=Ye(a,i,s),l=Ke(c),h=Ke(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:l,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":h})}const Bn={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ri};function ii(e,t,n){var r=H(e),i=[L,$].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=s[0],a=s[1];return o=o||0,a=(a||0)*i,[L,R].indexOf(r)>=0?{x:a,y:o}:{x:o,y:a}}function si(e){var t=e.state,n=e.options,r=e.name,i=n.offset,s=i===void 0?[0,0]:i,o=he.reduce(function(l,h){return l[h]=ii(h,t.rects,s),l},{}),a=o[t.placement],c=a.x,u=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=o}const Vn={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:si};function oi(e){var t=e.state,n=e.name;t.modifiersData[n]=kn({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Oe={name:"popperOffsets",enabled:!0,phase:"read",fn:oi,data:{}};function ai(e){return e==="x"?"y":"x"}function ci(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,s=i===void 0?!0:i,o=n.altAxis,a=o===void 0?!1:o,c=n.boundary,u=n.rootBoundary,l=n.altBoundary,h=n.padding,m=n.tether,f=m===void 0?!0:m,y=n.tetherOffset,p=y===void 0?0:y,v=gt(t,{boundary:c,rootBoundary:u,padding:h,altBoundary:l}),A=H(t.placement),O=mt(t.placement),T=!O,g=_e(A),_=ai(g),E=t.modifiersData.popperOffsets,w=t.rects.reference,S=t.rects.popper,N=typeof p=="function"?p(Object.assign({},t.rects,{placement:t.placement})):p,C=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,V={x:0,y:0};if(!!E){if(s){var x,X=g==="y"?$:L,J=g==="y"?M:R,P=g==="y"?"height":"width",j=E[g],Nt=j+v[X],Z=j-v[J],St=f?-S[P]/2:0,qt=O===st?w[P]:S[P],Et=O===st?-S[P]:-w[P],Dt=t.elements.arrow,ct=f&&Dt?ve(Dt):{width:0,height:0},F=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:$n(),yt=F[X],xt=F[J],tt=bt(0,w[P],ct[P]),Ut=T?w[P]/2-St-tt-yt-C.mainAxis:qt-tt-yt-C.mainAxis,Un=T?-w[P]/2+St+tt+xt+C.mainAxis:Et+tt+xt+C.mainAxis,zt=t.elements.arrow&&Ct(t.elements.arrow),zn=zt?g==="y"?zt.clientTop||0:zt.clientLeft||0:0,Ce=(x=D==null?void 0:D[g])!=null?x:0,Gn=j+Ut-Ce-zn,Qn=j+Un-Ce,Ne=bt(f?Bt(Nt,Gn):Nt,j,f?it(Z,Qn):Z);E[g]=Ne,V[g]=Ne-j}if(a){var Se,Xn=g==="x"?$:L,Jn=g==="x"?M:R,et=E[_],$t=_==="y"?"height":"width",De=et+v[Xn],xe=et-v[Jn],Gt=[$,L].indexOf(A)!==-1,$e=(Se=D==null?void 0:D[_])!=null?Se:0,Le=Gt?De:et-w[$t]-S[$t]-$e+C.altAxis,Pe=Gt?et+w[$t]+S[$t]-$e-C.altAxis:xe,Me=f&&Gt?Vr(Le,et,Pe):bt(f?Le:De,et,f?Pe:xe);E[_]=Me,V[_]=Me-et}t.modifiersData[r]=V}}const jn={name:"preventOverflow",enabled:!0,phase:"main",fn:ci,requiresIfExists:["offset"]};function li(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function ui(e){return e===k(e)||!I(e)?be(e):li(e)}function fi(e){var t=e.getBoundingClientRect(),n=pt(t.width)/e.offsetWidth||1,r=pt(t.height)/e.offsetHeight||1;return n!==1||r!==1}function di(e,t,n){n===void 0&&(n=!1);var r=I(t),i=I(t)&&fi(t),s=Q(t),o=ht(e,i,n),a={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Y(t)!=="body"||we(s))&&(a=ui(t)),I(t)?(c=ht(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):s&&(c.x=Ae(s))),{x:o.left+a.scrollLeft-c.x,y:o.top+a.scrollTop-c.y,width:o.width,height:o.height}}function pi(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function i(s){n.add(s.name);var o=[].concat(s.requires||[],s.requiresIfExists||[]);o.forEach(function(a){if(!n.has(a)){var c=t.get(a);c&&i(c)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||i(s)}),r}function hi(e){var t=pi(e);return Sn.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function mi(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function gi(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Fe={placement:"bottom",modifiers:[],strategy:"absolute"};function qe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function Ft(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,s=i===void 0?Fe:i;return function(a,c,u){u===void 0&&(u=s);var l={placement:"bottom",orderedModifiers:[],options:Object.assign({},Fe,s),modifiersData:{},elements:{reference:a,popper:c},attributes:{},styles:{}},h=[],m=!1,f={state:l,setOptions:function(A){var O=typeof A=="function"?A(l.options):A;p(),l.options=Object.assign({},s,l.options,O),l.scrollParents={reference:ot(a)?At(a):a.contextElement?At(a.contextElement):[],popper:At(c)};var T=hi(gi([].concat(r,l.options.modifiers)));return l.orderedModifiers=T.filter(function(g){return g.enabled}),y(),f.update()},forceUpdate:function(){if(!m){var A=l.elements,O=A.reference,T=A.popper;if(!!qe(O,T)){l.rects={reference:di(O,Ct(T),l.options.strategy==="fixed"),popper:ve(T)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach(function(C){return l.modifiersData[C.name]=Object.assign({},C.data)});for(var g=0;g<l.orderedModifiers.length;g++){if(l.reset===!0){l.reset=!1,g=-1;continue}var _=l.orderedModifiers[g],E=_.fn,w=_.options,S=w===void 0?{}:w,N=_.name;typeof E=="function"&&(l=E({state:l,options:S,name:N,instance:f})||l)}}}},update:mi(function(){return new Promise(function(v){f.forceUpdate(),v(l)})}),destroy:function(){p(),m=!0}};if(!qe(a,c))return f;f.setOptions(u).then(function(v){!m&&u.onFirstUpdate&&u.onFirstUpdate(v)});function y(){l.orderedModifiers.forEach(function(v){var A=v.name,O=v.options,T=O===void 0?{}:O,g=v.effect;if(typeof g=="function"){var _=g({state:l,name:A,instance:f,options:T}),E=function(){};h.push(_||E)}})}function p(){h.forEach(function(v){return v()}),h=[]}return f}}var vi=Ft(),_i=[ye,Oe,Ee,ge],Ei=Ft({defaultModifiers:_i}),yi=[ye,Oe,Ee,ge,Vn,In,jn,Mn,Bn],Hn=Ft({defaultModifiers:yi});const bi=Object.freeze(Object.defineProperty({__proto__:null,popperGenerator:Ft,detectOverflow:gt,createPopperBase:vi,createPopper:Hn,createPopperLite:Ei,top:$,bottom:M,right:R,left:L,auto:Yt,basePlacements:_t,start:st,end:dt,clippingParents:vn,viewport:pe,popper:lt,reference:_n,variationPlacements:oe,placements:he,beforeRead:En,read:yn,afterRead:bn,beforeMain:An,main:wn,afterMain:On,beforeWrite:Tn,write:Cn,afterWrite:Nn,modifierPhases:Sn,applyStyles:ge,arrow:Mn,computeStyles:Ee,eventListeners:ye,flip:In,hide:Bn,offset:Vn,popperOffsets:Oe,preventOverflow:jn},Symbol.toStringTag,{value:"Module"})),Ue="dropdown",Ai="bs.dropdown",at=`.${Ai}`,Te=".data-api",wi="Escape",ze="Tab",Oi="ArrowUp",Ge="ArrowDown",Ti=2,Ci=`hide${at}`,Ni=`hidden${at}`,Si=`show${at}`,Di=`shown${at}`,Wn=`click${at}${Te}`,Yn=`keydown${at}${Te}`,xi=`keyup${at}${Te}`,ut="show",$i="dropup",Li="dropend",Pi="dropstart",Mi="dropup-center",Ri="dropdown-center",nt='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',ki=`${nt}.${ut}`,kt=".dropdown-menu",Ii=".navbar",Bi=".navbar-nav",Vi=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",ji=G()?"top-end":"top-start",Hi=G()?"top-start":"top-end",Wi=G()?"bottom-end":"bottom-start",Yi=G()?"bottom-start":"bottom-end",Ki=G()?"left-start":"right-start",Fi=G()?"right-start":"left-start",qi="top",Ui="bottom",zi={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Gi={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class W extends Ht{constructor(t,n){super(t,n),this._popper=null,this._parent=this._element.parentNode,this._menu=b.next(this._element,kt)[0]||b.prev(this._element,kt)[0]||b.findOne(kt,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return zi}static get DefaultType(){return Gi}static get NAME(){return Ue}toggle(){return this._isShown()?this.hide():this.show()}show(){if(It(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!d.trigger(this._element,Si,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(Bi))for(const r of[].concat(...document.body.children))d.on(r,"mouseover",Re);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(ut),this._element.classList.add(ut),d.trigger(this._element,Di,t)}}hide(){if(It(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(!d.trigger(this._element,Ci,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const r of[].concat(...document.body.children))d.off(r,"mouseover",Re);this._popper&&this._popper.destroy(),this._menu.classList.remove(ut),this._element.classList.remove(ut),this._element.setAttribute("aria-expanded","false"),rt.removeDataAttribute(this._menu,"popper"),d.trigger(this._element,Ni,t)}}_getConfig(t){if(t=super._getConfig(t),typeof t.reference=="object"&&!z(t.reference)&&typeof t.reference.getBoundingClientRect!="function")throw new TypeError(`${Ue.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(typeof bi>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;this._config.reference==="parent"?t=this._parent:z(this._config.reference)?t=wt(this._config.reference):typeof this._config.reference=="object"&&(t=this._config.reference);const n=this._getPopperConfig();this._popper=Hn(t,this._menu,n)}_isShown(){return this._menu.classList.contains(ut)}_getPlacement(){const t=this._parent;if(t.classList.contains(Li))return Ki;if(t.classList.contains(Pi))return Fi;if(t.classList.contains(Mi))return qi;if(t.classList.contains(Ri))return Ui;const n=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return t.classList.contains($i)?n?Hi:ji:n?Yi:Wi}_detectNavbar(){return this._element.closest(Ii)!==null}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(n=>Number.parseInt(n,10)):typeof t=="function"?n=>t(n,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")&&(rt.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...U(this._config.popperConfig,[t])}}_selectMenuItem({key:t,target:n}){const r=b.find(Vi,this._menu).filter(i=>le(i));!r.length||ir(r,n,t===Ge,!r.includes(n)).focus()}static jQueryInterface(t){return this.each(function(){const n=W.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof n[t]>"u")throw new TypeError(`No method named "${t}"`);n[t]()}})}static clearMenus(t){if(t.button===Ti||t.type==="keyup"&&t.key!==ze)return;const n=b.find(ki);for(const r of n){const i=W.getInstance(r);if(!i||i._config.autoClose===!1)continue;const s=t.composedPath(),o=s.includes(i._menu);if(s.includes(i._element)||i._config.autoClose==="inside"&&!o||i._config.autoClose==="outside"&&o||i._menu.contains(t.target)&&(t.type==="keyup"&&t.key===ze||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const a={relatedTarget:i._element};t.type==="click"&&(a.clickEvent=t),i._completeHide(a)}}static dataApiKeydownHandler(t){const n=/input|textarea/i.test(t.target.tagName),r=t.key===wi,i=[Oi,Ge].includes(t.key);if(!i&&!r||n&&!r)return;t.preventDefault();const s=this.matches(nt)?this:b.prev(this,nt)[0]||b.next(this,nt)[0]||b.findOne(nt,t.delegateTarget.parentNode),o=W.getOrCreateInstance(s);if(i){t.stopPropagation(),o.show(),o._selectMenuItem(t);return}o._isShown()&&(t.stopPropagation(),o.hide(),s.focus())}}d.on(document,Yn,nt,W.dataApiKeydownHandler);d.on(document,Yn,kt,W.dataApiKeydownHandler);d.on(document,Wn,W.clearMenus);d.on(document,xi,W.clearMenus);d.on(document,Wn,nt,function(e){e.preventDefault(),W.getOrCreateInstance(this).toggle()});jt(W);const Kn="backdrop",Qi="fade",Qe="show",Xe=`mousedown.bs.${Kn}`,Xi={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Ji={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Zi extends de{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return Xi}static get DefaultType(){return Ji}static get NAME(){return Kn}show(t){if(!this._config.isVisible){U(t);return}this._append();const n=this._getElement();this._config.isAnimated&&ue(n),n.classList.add(Qe),this._emulateAnimation(()=>{U(t)})}hide(t){if(!this._config.isVisible){U(t);return}this._getElement().classList.remove(Qe),this._emulateAnimation(()=>{this.dispose(),U(t)})}dispose(){!this._isAppended||(d.off(this._element,Xe),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(Qi),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=wt(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),d.on(t,Xe,()=>{U(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(t){cn(t,this._getElement(),this._config.isAnimated)}}const ts="focustrap",es="bs.focustrap",Vt=`.${es}`,ns=`focusin${Vt}`,rs=`keydown.tab${Vt}`,is="Tab",ss="forward",Je="backward",os={autofocus:!0,trapElement:null},as={autofocus:"boolean",trapElement:"element"};class cs extends de{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return os}static get DefaultType(){return as}static get NAME(){return ts}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),d.off(document,Vt),d.on(document,ns,t=>this._handleFocusin(t)),d.on(document,rs,t=>this._handleKeydown(t)),this._isActive=!0)}deactivate(){!this._isActive||(this._isActive=!1,d.off(document,Vt))}_handleFocusin(t){const{trapElement:n}=this._config;if(t.target===document||t.target===n||n.contains(t.target))return;const r=b.focusableChildren(n);r.length===0?n.focus():this._lastTabNavDirection===Je?r[r.length-1].focus():r[0].focus()}_handleKeydown(t){t.key===is&&(this._lastTabNavDirection=t.shiftKey?Je:ss)}}const Ze=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",tn=".sticky-top",Mt="padding-right",en="margin-right";class ls{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,Mt,n=>n+t),this._setElementAttributes(Ze,Mt,n=>n+t),this._setElementAttributes(tn,en,n=>n-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Mt),this._resetElementAttributes(Ze,Mt),this._resetElementAttributes(tn,en)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,n,r){const i=this.getWidth(),s=o=>{if(o!==this._element&&window.innerWidth>o.clientWidth+i)return;this._saveInitialAttribute(o,n);const a=window.getComputedStyle(o).getPropertyValue(n);o.style.setProperty(n,`${r(Number.parseFloat(a))}px`)};this._applyManipulationCallback(t,s)}_saveInitialAttribute(t,n){const r=t.style.getPropertyValue(n);r&&rt.setDataAttribute(t,n,r)}_resetElementAttributes(t,n){const r=i=>{const s=rt.getDataAttribute(i,n);if(s===null){i.style.removeProperty(n);return}rt.removeDataAttribute(i,n),i.style.setProperty(n,s)};this._applyManipulationCallback(t,r)}_applyManipulationCallback(t,n){if(z(t)){n(t);return}for(const r of b.find(t,this._element))n(r)}}const us="modal",fs="bs.modal",B=`.${fs}`,ds=".data-api",ps="Escape",hs=`hide${B}`,ms=`hidePrevented${B}`,Fn=`hidden${B}`,qn=`show${B}`,gs=`shown${B}`,vs=`resize${B}`,_s=`click.dismiss${B}`,Es=`mousedown.dismiss${B}`,ys=`keydown.dismiss${B}`,bs=`click${B}${ds}`,nn="modal-open",As="fade",rn="show",ne="modal-static",ws=".modal.show",Os=".modal-dialog",Ts=".modal-body",Cs='[data-bs-toggle="modal"]',Ns={backdrop:!0,focus:!0,keyboard:!0},Ss={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class vt extends Ht{constructor(t,n){super(t,n),this._dialog=b.findOne(Os,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new ls,this._addEventListeners()}static get Default(){return Ns}static get DefaultType(){return Ss}static get NAME(){return us}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||d.trigger(this._element,qn,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(nn),this._adjustDialog(),this._backdrop.show(()=>this._showElement(t)))}hide(){!this._isShown||this._isTransitioning||d.trigger(this._element,hs).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(rn),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){d.off(window,B),d.off(this._dialog,B),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Zi({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new cs({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 n=b.findOne(Ts,this._dialog);n&&(n.scrollTop=0),ue(this._element),this._element.classList.add(rn);const r=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,d.trigger(this._element,gs,{relatedTarget:t})};this._queueCallback(r,this._dialog,this._isAnimated())}_addEventListeners(){d.on(this._element,ys,t=>{if(t.key===ps){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),d.on(window,vs,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),d.on(this._element,Es,t=>{d.one(this._element,_s,n=>{if(!(this._element!==t.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(nn),this._resetAdjustments(),this._scrollBar.reset(),d.trigger(this._element,Fn)})}_isAnimated(){return this._element.classList.contains(As)}_triggerBackdropTransition(){if(d.trigger(this._element,ms).defaultPrevented)return;const n=this._element.scrollHeight>document.documentElement.clientHeight,r=this._element.style.overflowY;r==="hidden"||this._element.classList.contains(ne)||(n||(this._element.style.overflowY="hidden"),this._element.classList.add(ne),this._queueCallback(()=>{this._element.classList.remove(ne),this._queueCallback(()=>{this._element.style.overflowY=r},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,n=this._scrollBar.getWidth(),r=n>0;if(r&&!t){const i=G()?"paddingLeft":"paddingRight";this._element.style[i]=`${n}px`}if(!r&&t){const i=G()?"paddingRight":"paddingLeft";this._element.style[i]=`${n}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,n){return this.each(function(){const r=vt.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof r[t]>"u")throw new TypeError(`No method named "${t}"`);r[t](n)}})}}d.on(document,bs,Cs,function(e){const t=b.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),d.one(t,qn,i=>{i.defaultPrevented||d.one(t,Fn,()=>{le(this)&&this.focus()})});const n=b.findOne(ws);n&&vt.getInstance(n).hide(),vt.getOrCreateInstance(t).toggle(this)});mn(vt);jt(vt);window.Alpine=sn;sn.start();
