var F="top",K="bottom",q="right",V="left",je="auto",Jt=[F,K,q,V],Rt="start",Wt="end",ir="clippingParents",$n="viewport",Ht="popper",or="reference",yn=Jt.reduce(function(e,t){return e.concat([t+"-"+Rt,t+"-"+Wt])},[]),In=[].concat(Jt,[je]).reduce(function(e,t){return e.concat([t,t+"-"+Rt,t+"-"+Wt])},[]),ar="beforeRead",cr="read",lr="afterRead",ur="beforeMain",fr="main",dr="afterMain",hr="beforeWrite",pr="write",mr="afterWrite",_r=[ar,cr,lr,ur,fr,dr,hr,pr,mr];function lt(e){return e?(e.nodeName||"").toLowerCase():null}function z(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Dt(e){var t=z(e).Element;return e instanceof t||e instanceof Element}function J(e){var t=z(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function xn(e){if(typeof ShadowRoot>"u")return!1;var t=z(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Vi(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var s=t.styles[n]||{},r=t.attributes[n]||{},i=t.elements[n];!J(i)||!lt(i)||(Object.assign(i.style,s),Object.keys(r).forEach(function(o){var a=r[o];a===!1?i.removeAttribute(o):i.setAttribute(o,a===!0?"":a)}))})}function Hi(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(s){var r=t.elements[s],i=t.attributes[s]||{},o=Object.keys(t.styles.hasOwnProperty(s)?t.styles[s]:n[s]),a=o.reduce(function(l,f){return l[f]="",l},{});!J(r)||!lt(r)||(Object.assign(r.style,a),Object.keys(i).forEach(function(l){r.removeAttribute(l)}))})}}const gr={name:"applyStyles",enabled:!0,phase:"write",fn:Vi,effect:Hi,requires:["computeStyles"]};function ct(e){return e.split("-")[0]}var Ct=Math.max,ke=Math.min,Kt=Math.round;function An(){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 Er(){return!/^((?!chrome|android).)*safari/i.test(An())}function qt(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var s=e.getBoundingClientRect(),r=1,i=1;t&&J(e)&&(r=e.offsetWidth>0&&Kt(s.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Kt(s.height)/e.offsetHeight||1);var o=Dt(e)?z(e):window,a=o.visualViewport,l=!Er()&&n,f=(s.left+(l&&a?a.offsetLeft:0))/r,c=(s.top+(l&&a?a.offsetTop:0))/i,m=s.width/r,g=s.height/i;return{width:m,height:g,top:c,right:f+m,bottom:c+g,left:f,x:f,y:c}}function Pn(e){var t=qt(e),n=e.offsetWidth,s=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-s)<=1&&(s=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:s}}function br(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&xn(n)){var s=t;do{if(s&&e.isSameNode(s))return!0;s=s.parentNode||s.host}while(s)}return!1}function dt(e){return z(e).getComputedStyle(e)}function Bi(e){return["table","td","th"].indexOf(lt(e))>=0}function bt(e){return((Dt(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ue(e){return lt(e)==="html"?e:e.assignedSlot||e.parentNode||(xn(e)?e.host:null)||bt(e)}function is(e){return!J(e)||dt(e).position==="fixed"?null:e.offsetParent}function ji(e){var t=/firefox/i.test(An()),n=/Trident/i.test(An());if(n&&J(e)){var s=dt(e);if(s.position==="fixed")return null}var r=Ue(e);for(xn(r)&&(r=r.host);J(r)&&["html","body"].indexOf(lt(r))<0;){var i=dt(r);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return r;r=r.parentNode}return null}function ce(e){for(var t=z(e),n=is(e);n&&Bi(n)&&dt(n).position==="static";)n=is(n);return n&&(lt(n)==="html"||lt(n)==="body"&&dt(n).position==="static")?t:n||ji(e)||t}function Mn(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function oe(e,t,n){return Ct(e,ke(t,n))}function Ui(e,t,n){var s=oe(e,t,n);return s>n?n:s}function vr(){return{top:0,right:0,bottom:0,left:0}}function yr(e){return Object.assign({},vr(),e)}function Ar(e,t){return t.reduce(function(n,s){return n[s]=e,n},{})}var Wi=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,yr(typeof t!="number"?t:Ar(t,Jt))};function Ki(e){var t,n=e.state,s=e.name,r=e.options,i=n.elements.arrow,o=n.modifiersData.popperOffsets,a=ct(n.placement),l=Mn(a),f=[V,q].indexOf(a)>=0,c=f?"height":"width";if(!(!i||!o)){var m=Wi(r.padding,n),g=Pn(i),E=l==="y"?F:V,d=l==="y"?K:q,_=n.rects.reference[c]+n.rects.reference[l]-o[l]-n.rects.popper[c],p=o[l]-n.rects.reference[l],A=ce(i),C=A?l==="y"?A.clientHeight||0:A.clientWidth||0:0,T=_/2-p/2,v=m[E],w=C-g[c]-m[d],O=C/2-g[c]/2+T,S=oe(v,O,w),L=l;n.modifiersData[s]=(t={},t[L]=S,t.centerOffset=S-O,t)}}function qi(e){var t=e.state,n=e.options,s=n.element,r=s===void 0?"[data-popper-arrow]":s;r!=null&&(typeof r=="string"&&(r=t.elements.popper.querySelector(r),!r)||br(t.elements.popper,r)&&(t.elements.arrow=r))}const Tr={name:"arrow",enabled:!0,phase:"main",fn:Ki,effect:qi,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function zt(e){return e.split("-")[1]}var zi={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Yi(e,t){var n=e.x,s=e.y,r=t.devicePixelRatio||1;return{x:Kt(n*r)/r||0,y:Kt(s*r)/r||0}}function os(e){var t,n=e.popper,s=e.popperRect,r=e.placement,i=e.variation,o=e.offsets,a=e.position,l=e.gpuAcceleration,f=e.adaptive,c=e.roundOffsets,m=e.isFixed,g=o.x,E=g===void 0?0:g,d=o.y,_=d===void 0?0:d,p=typeof c=="function"?c({x:E,y:_}):{x:E,y:_};E=p.x,_=p.y;var A=o.hasOwnProperty("x"),C=o.hasOwnProperty("y"),T=V,v=F,w=window;if(f){var O=ce(n),S="clientHeight",L="clientWidth";if(O===z(n)&&(O=bt(n),dt(O).position!=="static"&&a==="absolute"&&(S="scrollHeight",L="scrollWidth")),O=O,r===F||(r===V||r===q)&&i===Wt){v=K;var R=m&&O===w&&w.visualViewport?w.visualViewport.height:O[S];_-=R-s.height,_*=l?1:-1}if(r===V||(r===F||r===K)&&i===Wt){T=q;var D=m&&O===w&&w.visualViewport?w.visualViewport.width:O[L];E-=D-s.width,E*=l?1:-1}}var x=Object.assign({position:a},f&&zi),P=c===!0?Yi({x:E,y:_},z(n)):{x:E,y:_};if(E=P.x,_=P.y,l){var $;return Object.assign({},x,($={},$[v]=C?"0":"",$[T]=A?"0":"",$.transform=(w.devicePixelRatio||1)<=1?"translate("+E+"px, "+_+"px)":"translate3d("+E+"px, "+_+"px, 0)",$))}return Object.assign({},x,(t={},t[v]=C?_+"px":"",t[T]=A?E+"px":"",t.transform="",t))}function Gi(e){var t=e.state,n=e.options,s=n.gpuAcceleration,r=s===void 0?!0:s,i=n.adaptive,o=i===void 0?!0:i,a=n.roundOffsets,l=a===void 0?!0:a,f={placement:ct(t.placement),variation:zt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,os(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,os(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const wr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Gi,data:{}};var Te={passive:!0};function Xi(e){var t=e.state,n=e.instance,s=e.options,r=s.scroll,i=r===void 0?!0:r,o=s.resize,a=o===void 0?!0:o,l=z(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&f.forEach(function(c){c.addEventListener("scroll",n.update,Te)}),a&&l.addEventListener("resize",n.update,Te),function(){i&&f.forEach(function(c){c.removeEventListener("scroll",n.update,Te)}),a&&l.removeEventListener("resize",n.update,Te)}}const Or={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Xi,data:{}};var Ji={left:"right",right:"left",bottom:"top",top:"bottom"};function Le(e){return e.replace(/left|right|bottom|top/g,function(t){return Ji[t]})}var Qi={start:"end",end:"start"};function as(e){return e.replace(/start|end/g,function(t){return Qi[t]})}function kn(e){var t=z(e),n=t.pageXOffset,s=t.pageYOffset;return{scrollLeft:n,scrollTop:s}}function Fn(e){return qt(bt(e)).left+kn(e).scrollLeft}function Zi(e,t){var n=z(e),s=bt(e),r=n.visualViewport,i=s.clientWidth,o=s.clientHeight,a=0,l=0;if(r){i=r.width,o=r.height;var f=Er();(f||!f&&t==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}return{width:i,height:o,x:a+Fn(e),y:l}}function to(e){var t,n=bt(e),s=kn(e),r=(t=e.ownerDocument)==null?void 0:t.body,i=Ct(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),o=Ct(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-s.scrollLeft+Fn(e),l=-s.scrollTop;return dt(r||n).direction==="rtl"&&(a+=Ct(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:o,x:a,y:l}}function Vn(e){var t=dt(e),n=t.overflow,s=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+s)}function Sr(e){return["html","body","#document"].indexOf(lt(e))>=0?e.ownerDocument.body:J(e)&&Vn(e)?e:Sr(Ue(e))}function ae(e,t){var n;t===void 0&&(t=[]);var s=Sr(e),r=s===((n=e.ownerDocument)==null?void 0:n.body),i=z(s),o=r?[i].concat(i.visualViewport||[],Vn(s)?s:[]):s,a=t.concat(o);return r?a:a.concat(ae(Ue(o)))}function Tn(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function eo(e,t){var n=qt(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 cs(e,t,n){return t===$n?Tn(Zi(e,n)):Dt(t)?eo(t,n):Tn(to(bt(e)))}function no(e){var t=ae(Ue(e)),n=["absolute","fixed"].indexOf(dt(e).position)>=0,s=n&&J(e)?ce(e):e;return Dt(s)?t.filter(function(r){return Dt(r)&&br(r,s)&<(r)!=="body"}):[]}function so(e,t,n,s){var r=t==="clippingParents"?no(e):[].concat(t),i=[].concat(r,[n]),o=i[0],a=i.reduce(function(l,f){var c=cs(e,f,s);return l.top=Ct(c.top,l.top),l.right=ke(c.right,l.right),l.bottom=ke(c.bottom,l.bottom),l.left=Ct(c.left,l.left),l},cs(e,o,s));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Cr(e){var t=e.reference,n=e.element,s=e.placement,r=s?ct(s):null,i=s?zt(s):null,o=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(r){case F:l={x:o,y:t.y-n.height};break;case K:l={x:o,y:t.y+t.height};break;case q:l={x:t.x+t.width,y:a};break;case V:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var f=r?Mn(r):null;if(f!=null){var c=f==="y"?"height":"width";switch(i){case Rt:l[f]=l[f]-(t[c]/2-n[c]/2);break;case Wt:l[f]=l[f]+(t[c]/2-n[c]/2);break}}return l}function Yt(e,t){t===void 0&&(t={});var n=t,s=n.placement,r=s===void 0?e.placement:s,i=n.strategy,o=i===void 0?e.strategy:i,a=n.boundary,l=a===void 0?ir:a,f=n.rootBoundary,c=f===void 0?$n:f,m=n.elementContext,g=m===void 0?Ht:m,E=n.altBoundary,d=E===void 0?!1:E,_=n.padding,p=_===void 0?0:_,A=yr(typeof p!="number"?p:Ar(p,Jt)),C=g===Ht?or:Ht,T=e.rects.popper,v=e.elements[d?C:g],w=so(Dt(v)?v:v.contextElement||bt(e.elements.popper),l,c,o),O=qt(e.elements.reference),S=Cr({reference:O,element:T,placement:r}),L=Tn(Object.assign({},T,S)),R=g===Ht?L:O,D={top:w.top-R.top+A.top,bottom:R.bottom-w.bottom+A.bottom,left:w.left-R.left+A.left,right:R.right-w.right+A.right},x=e.modifiersData.offset;if(g===Ht&&x){var P=x[r];Object.keys(D).forEach(function($){var k=[q,K].indexOf($)>=0?1:-1,ot=[F,K].indexOf($)>=0?"y":"x";D[$]+=P[ot]*k})}return D}function ro(e,t){t===void 0&&(t={});var n=t,s=n.placement,r=n.boundary,i=n.rootBoundary,o=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,f=l===void 0?In:l,c=zt(s),m=c?a?yn:yn.filter(function(d){return zt(d)===c}):Jt,g=m.filter(function(d){return f.indexOf(d)>=0});g.length===0&&(g=m);var E=g.reduce(function(d,_){return d[_]=Yt(e,{placement:_,boundary:r,rootBoundary:i,padding:o})[ct(_)],d},{});return Object.keys(E).sort(function(d,_){return E[d]-E[_]})}function io(e){if(ct(e)===je)return[];var t=Le(e);return[as(e),t,as(t)]}function oo(e){var t=e.state,n=e.options,s=e.name;if(!t.modifiersData[s]._skip){for(var r=n.mainAxis,i=r===void 0?!0:r,o=n.altAxis,a=o===void 0?!0:o,l=n.fallbackPlacements,f=n.padding,c=n.boundary,m=n.rootBoundary,g=n.altBoundary,E=n.flipVariations,d=E===void 0?!0:E,_=n.allowedAutoPlacements,p=t.options.placement,A=ct(p),C=A===p,T=l||(C||!d?[Le(p)]:io(p)),v=[p].concat(T).reduce(function(et,nt){return et.concat(ct(nt)===je?ro(t,{placement:nt,boundary:c,rootBoundary:m,padding:f,flipVariations:d,allowedAutoPlacements:_}):nt)},[]),w=t.rects.reference,O=t.rects.popper,S=new Map,L=!0,R=v[0],D=0;D=0,ot=k?"width":"height",N=Yt(t,{placement:x,boundary:c,rootBoundary:m,altBoundary:g,padding:f}),H=k?$?q:V:$?K:F;w[ot]>O[ot]&&(H=Le(H));var W=Le(H),at=[];if(i&&at.push(N[P]<=0),a&&at.push(N[H]<=0,N[W]<=0),at.every(function(et){return et})){R=x,L=!1;break}S.set(x,at)}if(L)for(var kt=d?3:1,Y=function(nt){var ne=v.find(function(ye){var At=S.get(ye);if(At)return At.slice(0,nt).every(function(Je){return Je})});if(ne)return R=ne,"break"},G=kt;G>0;G--){var mt=Y(G);if(mt==="break")break}t.placement!==R&&(t.modifiersData[s]._skip=!0,t.placement=R,t.reset=!0)}}const Nr={name:"flip",enabled:!0,phase:"main",fn:oo,requiresIfExists:["offset"],data:{_skip:!1}};function ls(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 us(e){return[F,q,K,V].some(function(t){return e[t]>=0})}function ao(e){var t=e.state,n=e.name,s=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,o=Yt(t,{elementContext:"reference"}),a=Yt(t,{altBoundary:!0}),l=ls(o,s),f=ls(a,r,i),c=us(l),m=us(f);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:f,isReferenceHidden:c,hasPopperEscaped:m},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":m})}const Rr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ao};function co(e,t,n){var s=ct(e),r=[V,F].indexOf(s)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=i[0],a=i[1];return o=o||0,a=(a||0)*r,[V,q].indexOf(s)>=0?{x:a,y:o}:{x:o,y:a}}function lo(e){var t=e.state,n=e.options,s=e.name,r=n.offset,i=r===void 0?[0,0]:r,o=In.reduce(function(c,m){return c[m]=co(m,t.rects,i),c},{}),a=o[t.placement],l=a.x,f=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=f),t.modifiersData[s]=o}const Dr={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:lo};function uo(e){var t=e.state,n=e.name;t.modifiersData[n]=Cr({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const Lr={name:"popperOffsets",enabled:!0,phase:"read",fn:uo,data:{}};function fo(e){return e==="x"?"y":"x"}function ho(e){var t=e.state,n=e.options,s=e.name,r=n.mainAxis,i=r===void 0?!0:r,o=n.altAxis,a=o===void 0?!1:o,l=n.boundary,f=n.rootBoundary,c=n.altBoundary,m=n.padding,g=n.tether,E=g===void 0?!0:g,d=n.tetherOffset,_=d===void 0?0:d,p=Yt(t,{boundary:l,rootBoundary:f,padding:m,altBoundary:c}),A=ct(t.placement),C=zt(t.placement),T=!C,v=Mn(A),w=fo(v),O=t.modifiersData.popperOffsets,S=t.rects.reference,L=t.rects.popper,R=typeof _=="function"?_(Object.assign({},t.rects,{placement:t.placement})):_,D=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),x=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,P={x:0,y:0};if(O){if(i){var $,k=v==="y"?F:V,ot=v==="y"?K:q,N=v==="y"?"height":"width",H=O[v],W=H+p[k],at=H-p[ot],kt=E?-L[N]/2:0,Y=C===Rt?S[N]:L[N],G=C===Rt?-L[N]:-S[N],mt=t.elements.arrow,et=E&&mt?Pn(mt):{width:0,height:0},nt=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:vr(),ne=nt[k],ye=nt[ot],At=oe(0,S[N],et[N]),Je=T?S[N]/2-kt-At-ne-D.mainAxis:Y-At-ne-D.mainAxis,Ii=T?-S[N]/2+kt+At+ye+D.mainAxis:G+At+ye+D.mainAxis,Qe=t.elements.arrow&&ce(t.elements.arrow),xi=Qe?v==="y"?Qe.clientTop||0:Qe.clientLeft||0:0,Xn=($=x?.[v])!=null?$:0,Pi=H+Je-Xn-xi,Mi=H+Ii-Xn,Jn=oe(E?ke(W,Pi):W,H,E?Ct(at,Mi):at);O[v]=Jn,P[v]=Jn-H}if(a){var Qn,ki=v==="x"?F:V,Fi=v==="x"?K:q,Tt=O[w],Ae=w==="y"?"height":"width",Zn=Tt+p[ki],ts=Tt-p[Fi],Ze=[F,V].indexOf(A)!==-1,es=(Qn=x?.[w])!=null?Qn:0,ns=Ze?Zn:Tt-S[Ae]-L[Ae]-es+D.altAxis,ss=Ze?Tt+S[Ae]+L[Ae]-es-D.altAxis:ts,rs=E&&Ze?Ui(ns,Tt,ss):oe(E?ns:Zn,Tt,E?ss:ts);O[w]=rs,P[w]=rs-Tt}t.modifiersData[s]=P}}const $r={name:"preventOverflow",enabled:!0,phase:"main",fn:ho,requiresIfExists:["offset"]};function po(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function mo(e){return e===z(e)||!J(e)?kn(e):po(e)}function _o(e){var t=e.getBoundingClientRect(),n=Kt(t.width)/e.offsetWidth||1,s=Kt(t.height)/e.offsetHeight||1;return n!==1||s!==1}function go(e,t,n){n===void 0&&(n=!1);var s=J(t),r=J(t)&&_o(t),i=bt(t),o=qt(e,r,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(s||!s&&!n)&&((lt(t)!=="body"||Vn(i))&&(a=mo(t)),J(t)?(l=qt(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=Fn(i))),{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function Eo(e){var t=new Map,n=new Set,s=[];e.forEach(function(i){t.set(i.name,i)});function r(i){n.add(i.name);var o=[].concat(i.requires||[],i.requiresIfExists||[]);o.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&r(l)}}),s.push(i)}return e.forEach(function(i){n.has(i.name)||r(i)}),s}function bo(e){var t=Eo(e);return _r.reduce(function(n,s){return n.concat(t.filter(function(r){return r.phase===s}))},[])}function vo(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function yo(e){var t=e.reduce(function(n,s){var r=n[s.name];return n[s.name]=r?Object.assign({},r,s,{options:Object.assign({},r.options,s.options),data:Object.assign({},r.data,s.data)}):s,n},{});return Object.keys(t).map(function(n){return t[n]})}var fs={placement:"bottom",modifiers:[],strategy:"absolute"};function ds(){for(var e=arguments.length,t=new Array(e),n=0;n(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,(t,n)=>`#${CSS.escape(n)}`)),e),Oo=e=>e==null?`${e}`:Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase(),So=e=>{do e+=Math.floor(Math.random()*To);while(document.getElementById(e));return e},Co=e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:n}=window.getComputedStyle(e);const s=Number.parseFloat(t),r=Number.parseFloat(n);return!s&&!r?0:(t=t.split(",")[0],n=n.split(",")[0],(Number.parseFloat(t)+Number.parseFloat(n))*wo)},Mr=e=>{e.dispatchEvent(new Event(wn))},ut=e=>!e||typeof e!="object"?!1:(typeof e.jquery<"u"&&(e=e[0]),typeof e.nodeType<"u"),gt=e=>ut(e)?e.jquery?e[0]:e:typeof e=="string"&&e.length>0?document.querySelector(Pr(e)):null,Qt=e=>{if(!ut(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 s=e.closest("summary");if(s&&s.parentNode!==n||s===null)return!1}return t},Et=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",kr=e=>{if(!document.documentElement.attachShadow)return null;if(typeof e.getRootNode=="function"){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?kr(e.parentNode):null},Fe=()=>{},le=e=>{e.offsetHeight},Fr=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,en=[],No=e=>{document.readyState==="loading"?(en.length||document.addEventListener("DOMContentLoaded",()=>{for(const t of en)t()}),en.push(e)):e()},Q=()=>document.documentElement.dir==="rtl",tt=e=>{No(()=>{const t=Fr();if(t){const n=e.NAME,s=t.fn[n];t.fn[n]=e.jQueryInterface,t.fn[n].Constructor=e,t.fn[n].noConflict=()=>(t.fn[n]=s,e.jQueryInterface)}})},B=(e,t=[],n=e)=>typeof e=="function"?e.call(...t):n,Vr=(e,t,n=!0)=>{if(!n){B(e);return}const r=Co(t)+5;let i=!1;const o=({target:a})=>{a===t&&(i=!0,t.removeEventListener(wn,o),B(e))};t.addEventListener(wn,o),setTimeout(()=>{i||Mr(t)},r)},Bn=(e,t,n,s)=>{const r=e.length;let i=e.indexOf(t);return i===-1?!n&&s?e[r-1]:e[0]:(i+=n?1:-1,s&&(i=(i+r)%r),e[Math.max(0,Math.min(i,r-1))])},Ro=/[^.]*(?=\..*)\.|.*/,Do=/\..*/,Lo=/::\d+$/,nn={};let hs=1;const Hr={mouseenter:"mouseover",mouseleave:"mouseout"},$o=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 Br(e,t){return t&&`${t}::${hs++}`||e.uidEvent||hs++}function jr(e){const t=Br(e);return e.uidEvent=t,nn[t]=nn[t]||{},nn[t]}function Io(e,t){return function n(s){return jn(s,{delegateTarget:e}),n.oneOff&&h.off(e,s.type,t),t.apply(e,[s])}}function xo(e,t,n){return function s(r){const i=e.querySelectorAll(t);for(let{target:o}=r;o&&o!==this;o=o.parentNode)for(const a of i)if(a===o)return jn(r,{delegateTarget:o}),s.oneOff&&h.off(e,r.type,t,n),n.apply(o,[r])}}function Ur(e,t,n=null){return Object.values(e).find(s=>s.callable===t&&s.delegationSelector===n)}function Wr(e,t,n){const s=typeof t=="string",r=s?n:t||n;let i=Kr(e);return $o.has(i)||(i=e),[s,r,i]}function ps(e,t,n,s,r){if(typeof t!="string"||!e)return;let[i,o,a]=Wr(t,n,s);t in Hr&&(o=(d=>function(_){if(!_.relatedTarget||_.relatedTarget!==_.delegateTarget&&!_.delegateTarget.contains(_.relatedTarget))return d.call(this,_)})(o));const l=jr(e),f=l[a]||(l[a]={}),c=Ur(f,o,i?n:null);if(c){c.oneOff=c.oneOff&&r;return}const m=Br(o,t.replace(Ro,"")),g=i?xo(e,n,o):Io(e,o);g.delegationSelector=i?n:null,g.callable=o,g.oneOff=r,g.uidEvent=m,f[m]=g,e.addEventListener(a,g,i)}function On(e,t,n,s,r){const i=Ur(t[n],s,r);i&&(e.removeEventListener(n,i,!!r),delete t[n][i.uidEvent])}function Po(e,t,n,s){const r=t[n]||{};for(const[i,o]of Object.entries(r))i.includes(s)&&On(e,t,n,o.callable,o.delegationSelector)}function Kr(e){return e=e.replace(Do,""),Hr[e]||e}const h={on(e,t,n,s){ps(e,t,n,s,!1)},one(e,t,n,s){ps(e,t,n,s,!0)},off(e,t,n,s){if(typeof t!="string"||!e)return;const[r,i,o]=Wr(t,n,s),a=o!==t,l=jr(e),f=l[o]||{},c=t.startsWith(".");if(typeof i<"u"){if(!Object.keys(f).length)return;On(e,l,o,i,r?n:null);return}if(c)for(const m of Object.keys(l))Po(e,l,m,t.slice(1));for(const[m,g]of Object.entries(f)){const E=m.replace(Lo,"");(!a||t.includes(E))&&On(e,l,o,g.callable,g.delegationSelector)}},trigger(e,t,n){if(typeof t!="string"||!e)return null;const s=Fr(),r=Kr(t),i=t!==r;let o=null,a=!0,l=!0,f=!1;i&&s&&(o=s.Event(t,n),s(e).trigger(o),a=!o.isPropagationStopped(),l=!o.isImmediatePropagationStopped(),f=o.isDefaultPrevented());const c=jn(new Event(t,{bubbles:a,cancelable:!0}),n);return f&&c.preventDefault(),l&&e.dispatchEvent(c),c.defaultPrevented&&o&&o.preventDefault(),c}};function jn(e,t={}){for(const[n,s]of Object.entries(t))try{e[n]=s}catch{Object.defineProperty(e,n,{configurable:!0,get(){return s}})}return e}function ms(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 sn(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}const ft={setDataAttribute(e,t,n){e.setAttribute(`data-bs-${sn(t)}`,n)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${sn(t)}`)},getDataAttributes(e){if(!e)return{};const t={},n=Object.keys(e.dataset).filter(s=>s.startsWith("bs")&&!s.startsWith("bsConfig"));for(const s of n){let r=s.replace(/^bs/,"");r=r.charAt(0).toLowerCase()+r.slice(1),t[r]=ms(e.dataset[s])}return t},getDataAttribute(e,t){return ms(e.getAttribute(`data-bs-${sn(t)}`))}};class ue{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 s=ut(n)?ft.getDataAttribute(n,"config"):{};return{...this.constructor.Default,...typeof s=="object"?s:{},...ut(n)?ft.getDataAttributes(n):{},...typeof t=="object"?t:{}}}_typeCheckConfig(t,n=this.constructor.DefaultType){for(const[s,r]of Object.entries(n)){const i=t[s],o=ut(i)?"element":Oo(i);if(!new RegExp(r).test(o))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${s}" provided type "${o}" but expected type "${r}".`)}}}const Mo="5.3.8";class rt extends ue{constructor(t,n){super(),t=gt(t),t&&(this._element=t,this._config=this._getConfig(n),tn.set(this._element,this.constructor.DATA_KEY,this))}dispose(){tn.remove(this._element,this.constructor.DATA_KEY),h.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,n,s=!0){Vr(t,n,s)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return tn.get(gt(t),this.DATA_KEY)}static getOrCreateInstance(t,n={}){return this.getInstance(t)||new this(t,typeof n=="object"?n:null)}static get VERSION(){return Mo}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 rn=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 t?t.split(",").map(n=>Pr(n)).join(","):null},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 s=e.parentNode.closest(t);for(;s;)n.push(s),s=s.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=>!Et(n)&&Qt(n))},getSelectorFromElement(e){const t=rn(e);return t&&b.findOne(t)?t:null},getElementFromSelector(e){const t=rn(e);return t?b.findOne(t):null},getMultipleElementsFromSelector(e){const t=rn(e);return t?b.find(t):[]}},We=(e,t="hide")=>{const n=`click.dismiss${e.EVENT_KEY}`,s=e.NAME;h.on(document,n,`[data-bs-dismiss="${s}"]`,function(r){if(["A","AREA"].includes(this.tagName)&&r.preventDefault(),Et(this))return;const i=b.getElementFromSelector(this)||this.closest(`.${s}`);e.getOrCreateInstance(i)[t]()})},ko="alert",Fo="bs.alert",qr=`.${Fo}`,Vo=`close${qr}`,Ho=`closed${qr}`,Bo="fade",jo="show";class fe extends rt{static get NAME(){return ko}close(){if(h.trigger(this._element,Vo).defaultPrevented)return;this._element.classList.remove(jo);const n=this._element.classList.contains(Bo);this._queueCallback(()=>this._destroyElement(),this._element,n)}_destroyElement(){this._element.remove(),h.trigger(this._element,Ho),this.dispose()}static jQueryInterface(t){return this.each(function(){const n=fe.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)}})}}We(fe,"close");tt(fe);const Uo="button",Wo="bs.button",Ko=`.${Wo}`,qo=".data-api",zo="active",_s='[data-bs-toggle="button"]',Yo=`click${Ko}${qo}`;class de extends rt{static get NAME(){return Uo}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(zo))}static jQueryInterface(t){return this.each(function(){const n=de.getOrCreateInstance(this);t==="toggle"&&n[t]()})}}h.on(document,Yo,_s,e=>{e.preventDefault();const t=e.target.closest(_s);de.getOrCreateInstance(t).toggle()});tt(de);const Go="swipe",Zt=".bs.swipe",Xo=`touchstart${Zt}`,Jo=`touchmove${Zt}`,Qo=`touchend${Zt}`,Zo=`pointerdown${Zt}`,ta=`pointerup${Zt}`,ea="touch",na="pen",sa="pointer-event",ra=40,ia={endCallback:null,leftCallback:null,rightCallback:null},oa={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Ve extends ue{constructor(t,n){super(),this._element=t,!(!t||!Ve.isSupported())&&(this._config=this._getConfig(n),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return ia}static get DefaultType(){return oa}static get NAME(){return Go}dispose(){h.off(this._element,Zt)}_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(),B(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<=ra)return;const n=t/this._deltaX;this._deltaX=0,n&&B(n>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(h.on(this._element,Zo,t=>this._start(t)),h.on(this._element,ta,t=>this._end(t)),this._element.classList.add(sa)):(h.on(this._element,Xo,t=>this._start(t)),h.on(this._element,Jo,t=>this._move(t)),h.on(this._element,Qo,t=>this._end(t)))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&(t.pointerType===na||t.pointerType===ea)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const aa="carousel",ca="bs.carousel",vt=`.${ca}`,zr=".data-api",la="ArrowLeft",ua="ArrowRight",fa=500,se="next",Ft="prev",Bt="left",$e="right",da=`slide${vt}`,on=`slid${vt}`,ha=`keydown${vt}`,pa=`mouseenter${vt}`,ma=`mouseleave${vt}`,_a=`dragstart${vt}`,ga=`load${vt}${zr}`,Ea=`click${vt}${zr}`,Yr="carousel",we="active",ba="slide",va="carousel-item-end",ya="carousel-item-start",Aa="carousel-item-next",Ta="carousel-item-prev",Gr=".active",Xr=".carousel-item",wa=Gr+Xr,Oa=".carousel-item img",Sa=".carousel-indicators",Ca="[data-bs-slide], [data-bs-slide-to]",Na='[data-bs-ride="carousel"]',Ra={[la]:$e,[ua]:Bt},Da={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},La={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class te extends rt{constructor(t,n){super(t,n),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=b.findOne(Sa,this._element),this._addEventListeners(),this._config.ride===Yr&&this.cycle()}static get Default(){return Da}static get DefaultType(){return La}static get NAME(){return aa}next(){this._slide(se)}nextWhenVisible(){!document.hidden&&Qt(this._element)&&this.next()}prev(){this._slide(Ft)}pause(){this._isSliding&&Mr(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){h.one(this._element,on,()=>this.cycle());return}this.cycle()}}to(t){const n=this._getItems();if(t>n.length-1||t<0)return;if(this._isSliding){h.one(this._element,on,()=>this.to(t));return}const s=this._getItemIndex(this._getActive());if(s===t)return;const r=t>s?se:Ft;this._slide(r,n[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&h.on(this._element,ha,t=>this._keydown(t)),this._config.pause==="hover"&&(h.on(this._element,pa,()=>this.pause()),h.on(this._element,ma,()=>this._maybeEnableCycle())),this._config.touch&&Ve.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const s of b.find(Oa,this._element))h.on(s,_a,r=>r.preventDefault());const n={leftCallback:()=>this._slide(this._directionToOrder(Bt)),rightCallback:()=>this._slide(this._directionToOrder($e)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),fa+this._config.interval))}};this._swipeHelper=new Ve(this._element,n)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const n=Ra[t.key];n&&(t.preventDefault(),this._slide(this._directionToOrder(n)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const n=b.findOne(Gr,this._indicatorsElement);n.classList.remove(we),n.removeAttribute("aria-current");const s=b.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);s&&(s.classList.add(we),s.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const n=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=n||this._config.defaultInterval}_slide(t,n=null){if(this._isSliding)return;const s=this._getActive(),r=t===se,i=n||Bn(this._getItems(),s,r,this._config.wrap);if(i===s)return;const o=this._getItemIndex(i),a=E=>h.trigger(this._element,E,{relatedTarget:i,direction:this._orderToDirection(t),from:this._getItemIndex(s),to:o});if(a(da).defaultPrevented||!s||!i)return;const f=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(o),this._activeElement=i;const c=r?ya:va,m=r?Aa:Ta;i.classList.add(m),le(i),s.classList.add(c),i.classList.add(c);const g=()=>{i.classList.remove(c,m),i.classList.add(we),s.classList.remove(we,m,c),this._isSliding=!1,a(on)};this._queueCallback(g,s,this._isAnimated()),f&&this.cycle()}_isAnimated(){return this._element.classList.contains(ba)}_getActive(){return b.findOne(wa,this._element)}_getItems(){return b.find(Xr,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return Q()?t===Bt?Ft:se:t===Bt?se:Ft}_orderToDirection(t){return Q()?t===Ft?Bt:$e:t===Ft?$e:Bt}static jQueryInterface(t){return this.each(function(){const n=te.getOrCreateInstance(this,t);if(typeof t=="number"){n.to(t);return}if(typeof t=="string"){if(n[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);n[t]()}})}}h.on(document,Ea,Ca,function(e){const t=b.getElementFromSelector(this);if(!t||!t.classList.contains(Yr))return;e.preventDefault();const n=te.getOrCreateInstance(t),s=this.getAttribute("data-bs-slide-to");if(s){n.to(s),n._maybeEnableCycle();return}if(ft.getDataAttribute(this,"slide")==="next"){n.next(),n._maybeEnableCycle();return}n.prev(),n._maybeEnableCycle()});h.on(window,ga,()=>{const e=b.find(Na);for(const t of e)te.getOrCreateInstance(t)});tt(te);const $a="collapse",Ia="bs.collapse",he=`.${Ia}`,xa=".data-api",Pa=`show${he}`,Ma=`shown${he}`,ka=`hide${he}`,Fa=`hidden${he}`,Va=`click${he}${xa}`,an="show",Ut="collapse",Oe="collapsing",Ha="collapsed",Ba=`:scope .${Ut} .${Ut}`,ja="collapse-horizontal",Ua="width",Wa="height",Ka=".collapse.show, .collapse.collapsing",Sn='[data-bs-toggle="collapse"]',qa={parent:null,toggle:!0},za={parent:"(null|element)",toggle:"boolean"};class Gt extends rt{constructor(t,n){super(t,n),this._isTransitioning=!1,this._triggerArray=[];const s=b.find(Sn);for(const r of s){const i=b.getSelectorFromElement(r),o=b.find(i).filter(a=>a===this._element);i!==null&&o.length&&this._triggerArray.push(r)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return qa}static get DefaultType(){return za}static get NAME(){return $a}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(Ka).filter(a=>a!==this._element).map(a=>Gt.getOrCreateInstance(a,{toggle:!1}))),t.length&&t[0]._isTransitioning||h.trigger(this._element,Pa).defaultPrevented)return;for(const a of t)a.hide();const s=this._getDimension();this._element.classList.remove(Ut),this._element.classList.add(Oe),this._element.style[s]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const r=()=>{this._isTransitioning=!1,this._element.classList.remove(Oe),this._element.classList.add(Ut,an),this._element.style[s]="",h.trigger(this._element,Ma)},o=`scroll${s[0].toUpperCase()+s.slice(1)}`;this._queueCallback(r,this._element,!0),this._element.style[s]=`${this._element[o]}px`}hide(){if(this._isTransitioning||!this._isShown()||h.trigger(this._element,ka).defaultPrevented)return;const n=this._getDimension();this._element.style[n]=`${this._element.getBoundingClientRect()[n]}px`,le(this._element),this._element.classList.add(Oe),this._element.classList.remove(Ut,an);for(const r of this._triggerArray){const i=b.getElementFromSelector(r);i&&!this._isShown(i)&&this._addAriaAndCollapsedClass([r],!1)}this._isTransitioning=!0;const s=()=>{this._isTransitioning=!1,this._element.classList.remove(Oe),this._element.classList.add(Ut),h.trigger(this._element,Fa)};this._element.style[n]="",this._queueCallback(s,this._element,!0)}_isShown(t=this._element){return t.classList.contains(an)}_configAfterMerge(t){return t.toggle=!!t.toggle,t.parent=gt(t.parent),t}_getDimension(){return this._element.classList.contains(ja)?Ua:Wa}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(Sn);for(const n of t){const s=b.getElementFromSelector(n);s&&this._addAriaAndCollapsedClass([n],this._isShown(s))}}_getFirstLevelChildren(t){const n=b.find(Ba,this._config.parent);return b.find(t,this._config.parent).filter(s=>!n.includes(s))}_addAriaAndCollapsedClass(t,n){if(t.length)for(const s of t)s.classList.toggle(Ha,!n),s.setAttribute("aria-expanded",n)}static jQueryInterface(t){const n={};return typeof t=="string"&&/show|hide/.test(t)&&(n.toggle=!1),this.each(function(){const s=Gt.getOrCreateInstance(this,n);if(typeof t=="string"){if(typeof s[t]>"u")throw new TypeError(`No method named "${t}"`);s[t]()}})}}h.on(document,Va,Sn,function(e){(e.target.tagName==="A"||e.delegateTarget&&e.delegateTarget.tagName==="A")&&e.preventDefault();for(const t of b.getMultipleElementsFromSelector(this))Gt.getOrCreateInstance(t,{toggle:!1}).toggle()});tt(Gt);const gs="dropdown",Ya="bs.dropdown",xt=`.${Ya}`,Un=".data-api",Ga="Escape",Es="Tab",Xa="ArrowUp",bs="ArrowDown",Ja=2,Qa=`hide${xt}`,Za=`hidden${xt}`,tc=`show${xt}`,ec=`shown${xt}`,Jr=`click${xt}${Un}`,Qr=`keydown${xt}${Un}`,nc=`keyup${xt}${Un}`,jt="show",sc="dropup",rc="dropend",ic="dropstart",oc="dropup-center",ac="dropdown-center",wt='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',cc=`${wt}.${jt}`,Ie=".dropdown-menu",lc=".navbar",uc=".navbar-nav",fc=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",dc=Q()?"top-end":"top-start",hc=Q()?"top-start":"top-end",pc=Q()?"bottom-end":"bottom-start",mc=Q()?"bottom-start":"bottom-end",_c=Q()?"left-start":"right-start",gc=Q()?"right-start":"left-start",Ec="top",bc="bottom",vc={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},yc={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class st extends rt{constructor(t,n){super(t,n),this._popper=null,this._parent=this._element.parentNode,this._menu=b.next(this._element,Ie)[0]||b.prev(this._element,Ie)[0]||b.findOne(Ie,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return vc}static get DefaultType(){return yc}static get NAME(){return gs}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Et(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!h.trigger(this._element,tc,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(uc))for(const s of[].concat(...document.body.children))h.on(s,"mouseover",Fe);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(jt),this._element.classList.add(jt),h.trigger(this._element,ec,t)}}hide(){if(Et(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(!h.trigger(this._element,Qa,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const s of[].concat(...document.body.children))h.off(s,"mouseover",Fe);this._popper&&this._popper.destroy(),this._menu.classList.remove(jt),this._element.classList.remove(jt),this._element.setAttribute("aria-expanded","false"),ft.removeDataAttribute(this._menu,"popper"),h.trigger(this._element,Za,t)}}_getConfig(t){if(t=super._getConfig(t),typeof t.reference=="object"&&!ut(t.reference)&&typeof t.reference.getBoundingClientRect!="function")throw new TypeError(`${gs.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(typeof xr>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)");let t=this._element;this._config.reference==="parent"?t=this._parent:ut(this._config.reference)?t=gt(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(jt)}_getPlacement(){const t=this._parent;if(t.classList.contains(rc))return _c;if(t.classList.contains(ic))return gc;if(t.classList.contains(oc))return Ec;if(t.classList.contains(ac))return bc;const n=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return t.classList.contains(sc)?n?hc:dc:n?mc:pc}_detectNavbar(){return this._element.closest(lc)!==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")&&(ft.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...B(this._config.popperConfig,[void 0,t])}}_selectMenuItem({key:t,target:n}){const s=b.find(fc,this._menu).filter(r=>Qt(r));s.length&&Bn(s,n,t===bs,!s.includes(n)).focus()}static jQueryInterface(t){return this.each(function(){const n=st.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===Ja||t.type==="keyup"&&t.key!==Es)return;const n=b.find(cc);for(const s of n){const r=st.getInstance(s);if(!r||r._config.autoClose===!1)continue;const i=t.composedPath(),o=i.includes(r._menu);if(i.includes(r._element)||r._config.autoClose==="inside"&&!o||r._config.autoClose==="outside"&&o||r._menu.contains(t.target)&&(t.type==="keyup"&&t.key===Es||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const a={relatedTarget:r._element};t.type==="click"&&(a.clickEvent=t),r._completeHide(a)}}static dataApiKeydownHandler(t){const n=/input|textarea/i.test(t.target.tagName),s=t.key===Ga,r=[Xa,bs].includes(t.key);if(!r&&!s||n&&!s)return;t.preventDefault();const i=this.matches(wt)?this:b.prev(this,wt)[0]||b.next(this,wt)[0]||b.findOne(wt,t.delegateTarget.parentNode),o=st.getOrCreateInstance(i);if(r){t.stopPropagation(),o.show(),o._selectMenuItem(t);return}o._isShown()&&(t.stopPropagation(),o.hide(),i.focus())}}h.on(document,Qr,wt,st.dataApiKeydownHandler);h.on(document,Qr,Ie,st.dataApiKeydownHandler);h.on(document,Jr,st.clearMenus);h.on(document,nc,st.clearMenus);h.on(document,Jr,wt,function(e){e.preventDefault(),st.getOrCreateInstance(this).toggle()});tt(st);const Zr="backdrop",Ac="fade",vs="show",ys=`mousedown.bs.${Zr}`,Tc={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},wc={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class ti extends ue{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return Tc}static get DefaultType(){return wc}static get NAME(){return Zr}show(t){if(!this._config.isVisible){B(t);return}this._append();const n=this._getElement();this._config.isAnimated&&le(n),n.classList.add(vs),this._emulateAnimation(()=>{B(t)})}hide(t){if(!this._config.isVisible){B(t);return}this._getElement().classList.remove(vs),this._emulateAnimation(()=>{this.dispose(),B(t)})}dispose(){this._isAppended&&(h.off(this._element,ys),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(Ac),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=gt(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),h.on(t,ys,()=>{B(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(t){Vr(t,this._getElement(),this._config.isAnimated)}}const Oc="focustrap",Sc="bs.focustrap",He=`.${Sc}`,Cc=`focusin${He}`,Nc=`keydown.tab${He}`,Rc="Tab",Dc="forward",As="backward",Lc={autofocus:!0,trapElement:null},$c={autofocus:"boolean",trapElement:"element"};class ei extends ue{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Lc}static get DefaultType(){return $c}static get NAME(){return Oc}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),h.off(document,He),h.on(document,Cc,t=>this._handleFocusin(t)),h.on(document,Nc,t=>this._handleKeydown(t)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,h.off(document,He))}_handleFocusin(t){const{trapElement:n}=this._config;if(t.target===document||t.target===n||n.contains(t.target))return;const s=b.focusableChildren(n);s.length===0?n.focus():this._lastTabNavDirection===As?s[s.length-1].focus():s[0].focus()}_handleKeydown(t){t.key===Rc&&(this._lastTabNavDirection=t.shiftKey?As:Dc)}}const Ts=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",ws=".sticky-top",Se="padding-right",Os="margin-right";class Cn{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,Se,n=>n+t),this._setElementAttributes(Ts,Se,n=>n+t),this._setElementAttributes(ws,Os,n=>n-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Se),this._resetElementAttributes(Ts,Se),this._resetElementAttributes(ws,Os)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,n,s){const r=this.getWidth(),i=o=>{if(o!==this._element&&window.innerWidth>o.clientWidth+r)return;this._saveInitialAttribute(o,n);const a=window.getComputedStyle(o).getPropertyValue(n);o.style.setProperty(n,`${s(Number.parseFloat(a))}px`)};this._applyManipulationCallback(t,i)}_saveInitialAttribute(t,n){const s=t.style.getPropertyValue(n);s&&ft.setDataAttribute(t,n,s)}_resetElementAttributes(t,n){const s=r=>{const i=ft.getDataAttribute(r,n);if(i===null){r.style.removeProperty(n);return}ft.removeDataAttribute(r,n),r.style.setProperty(n,i)};this._applyManipulationCallback(t,s)}_applyManipulationCallback(t,n){if(ut(t)){n(t);return}for(const s of b.find(t,this._element))n(s)}}const Ic="modal",xc="bs.modal",Z=`.${xc}`,Pc=".data-api",Mc="Escape",kc=`hide${Z}`,Fc=`hidePrevented${Z}`,ni=`hidden${Z}`,si=`show${Z}`,Vc=`shown${Z}`,Hc=`resize${Z}`,Bc=`click.dismiss${Z}`,jc=`mousedown.dismiss${Z}`,Uc=`keydown.dismiss${Z}`,Wc=`click${Z}${Pc}`,Ss="modal-open",Kc="fade",Cs="show",cn="modal-static",qc=".modal.show",zc=".modal-dialog",Yc=".modal-body",Gc='[data-bs-toggle="modal"]',Xc={backdrop:!0,focus:!0,keyboard:!0},Jc={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Lt extends rt{constructor(t,n){super(t,n),this._dialog=b.findOne(zc,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Cn,this._addEventListeners()}static get Default(){return Xc}static get DefaultType(){return Jc}static get NAME(){return Ic}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||h.trigger(this._element,si,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Ss),this._adjustDialog(),this._backdrop.show(()=>this._showElement(t)))}hide(){!this._isShown||this._isTransitioning||h.trigger(this._element,kc).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Cs),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){h.off(window,Z),h.off(this._dialog,Z),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new ti({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new ei({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(Yc,this._dialog);n&&(n.scrollTop=0),le(this._element),this._element.classList.add(Cs);const s=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,h.trigger(this._element,Vc,{relatedTarget:t})};this._queueCallback(s,this._dialog,this._isAnimated())}_addEventListeners(){h.on(this._element,Uc,t=>{if(t.key===Mc){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),h.on(window,Hc,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),h.on(this._element,jc,t=>{h.one(this._element,Bc,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(Ss),this._resetAdjustments(),this._scrollBar.reset(),h.trigger(this._element,ni)})}_isAnimated(){return this._element.classList.contains(Kc)}_triggerBackdropTransition(){if(h.trigger(this._element,Fc).defaultPrevented)return;const n=this._element.scrollHeight>document.documentElement.clientHeight,s=this._element.style.overflowY;s==="hidden"||this._element.classList.contains(cn)||(n||(this._element.style.overflowY="hidden"),this._element.classList.add(cn),this._queueCallback(()=>{this._element.classList.remove(cn),this._queueCallback(()=>{this._element.style.overflowY=s},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,n=this._scrollBar.getWidth(),s=n>0;if(s&&!t){const r=Q()?"paddingLeft":"paddingRight";this._element.style[r]=`${n}px`}if(!s&&t){const r=Q()?"paddingRight":"paddingLeft";this._element.style[r]=`${n}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,n){return this.each(function(){const s=Lt.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof s[t]>"u")throw new TypeError(`No method named "${t}"`);s[t](n)}})}}h.on(document,Wc,Gc,function(e){const t=b.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),h.one(t,si,r=>{r.defaultPrevented||h.one(t,ni,()=>{Qt(this)&&this.focus()})});const n=b.findOne(qc);n&&Lt.getInstance(n).hide(),Lt.getOrCreateInstance(t).toggle(this)});We(Lt);tt(Lt);const Qc="offcanvas",Zc="bs.offcanvas",pt=`.${Zc}`,ri=".data-api",tl=`load${pt}${ri}`,el="Escape",Ns="show",Rs="showing",Ds="hiding",nl="offcanvas-backdrop",ii=".offcanvas.show",sl=`show${pt}`,rl=`shown${pt}`,il=`hide${pt}`,Ls=`hidePrevented${pt}`,oi=`hidden${pt}`,ol=`resize${pt}`,al=`click${pt}${ri}`,cl=`keydown.dismiss${pt}`,ll='[data-bs-toggle="offcanvas"]',ul={backdrop:!0,keyboard:!0,scroll:!1},fl={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class ht extends rt{constructor(t,n){super(t,n),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return ul}static get DefaultType(){return fl}static get NAME(){return Qc}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||h.trigger(this._element,sl,{relatedTarget:t}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new Cn().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Rs);const s=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(Ns),this._element.classList.remove(Rs),h.trigger(this._element,rl,{relatedTarget:t})};this._queueCallback(s,this._element,!0)}hide(){if(!this._isShown||h.trigger(this._element,il).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Ds),this._backdrop.hide();const n=()=>{this._element.classList.remove(Ns,Ds),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new Cn().reset(),h.trigger(this._element,oi)};this._queueCallback(n,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=()=>{if(this._config.backdrop==="static"){h.trigger(this._element,Ls);return}this.hide()},n=!!this._config.backdrop;return new ti({className:nl,isVisible:n,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:n?t:null})}_initializeFocusTrap(){return new ei({trapElement:this._element})}_addEventListeners(){h.on(this._element,cl,t=>{if(t.key===el){if(this._config.keyboard){this.hide();return}h.trigger(this._element,Ls)}})}static jQueryInterface(t){return this.each(function(){const n=ht.getOrCreateInstance(this,t);if(typeof t=="string"){if(n[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);n[t](this)}})}}h.on(document,al,ll,function(e){const t=b.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),Et(this))return;h.one(t,oi,()=>{Qt(this)&&this.focus()});const n=b.findOne(ii);n&&n!==t&&ht.getInstance(n).hide(),ht.getOrCreateInstance(t).toggle(this)});h.on(window,tl,()=>{for(const e of b.find(ii))ht.getOrCreateInstance(e).show()});h.on(window,ol,()=>{for(const e of b.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(e).position!=="fixed"&&ht.getOrCreateInstance(e).hide()});We(ht);tt(ht);const dl=/^aria-[\w-]*$/i,ai={"*":["class","dir","id","lang","role",dl],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:[]},hl=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),pl=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,ml=(e,t)=>{const n=e.nodeName.toLowerCase();return t.includes(n)?hl.has(n)?!!pl.test(e.nodeValue):!0:t.filter(s=>s instanceof RegExp).some(s=>s.test(n))};function _l(e,t,n){if(!e.length)return e;if(n&&typeof n=="function")return n(e);const r=new window.DOMParser().parseFromString(e,"text/html"),i=[].concat(...r.body.querySelectorAll("*"));for(const o of i){const a=o.nodeName.toLowerCase();if(!Object.keys(t).includes(a)){o.remove();continue}const l=[].concat(...o.attributes),f=[].concat(t["*"]||[],t[a]||[]);for(const c of l)ml(c,f)||o.removeAttribute(c.nodeName)}return r.body.innerHTML}const gl="TemplateFactory",El={allowList:ai,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},bl={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},vl={entry:"(string|element|function|null)",selector:"(string|element)"};class yl extends ue{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return El}static get DefaultType(){return bl}static get NAME(){return gl}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[r,i]of Object.entries(this._config.content))this._setContent(t,i,r);const n=t.children[0],s=this._resolvePossibleFunction(this._config.extraClass);return s&&n.classList.add(...s.split(" ")),n}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[n,s]of Object.entries(t))super._typeCheckConfig({selector:n,entry:s},vl)}_setContent(t,n,s){const r=b.findOne(s,t);if(r){if(n=this._resolvePossibleFunction(n),!n){r.remove();return}if(ut(n)){this._putElementInTemplate(gt(n),r);return}if(this._config.html){r.innerHTML=this._maybeSanitize(n);return}r.textContent=n}}_maybeSanitize(t){return this._config.sanitize?_l(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return B(t,[void 0,this])}_putElementInTemplate(t,n){if(this._config.html){n.innerHTML="",n.append(t);return}n.textContent=t.textContent}}const Al="tooltip",Tl=new Set(["sanitize","allowList","sanitizeFn"]),ln="fade",wl="modal",Ce="show",Ol=".tooltip-inner",$s=`.${wl}`,Is="hide.bs.modal",re="hover",un="focus",fn="click",Sl="manual",Cl="hide",Nl="hidden",Rl="show",Dl="shown",Ll="inserted",$l="click",Il="focusin",xl="focusout",Pl="mouseenter",Ml="mouseleave",kl={AUTO:"auto",TOP:"top",RIGHT:Q()?"left":"right",BOTTOM:"bottom",LEFT:Q()?"right":"left"},Fl={allowList:ai,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"},Vl={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 Pt extends rt{constructor(t,n){if(typeof xr>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");super(t,n),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 Fl}static get DefaultType(){return Vl}static get NAME(){return Al}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),h.off(this._element.closest($s),Is,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=h.trigger(this._element,this.constructor.eventName(Rl)),s=(kr(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!s)return;this._disposePopper();const r=this._getTipElement();this._element.setAttribute("aria-describedby",r.getAttribute("id"));const{container:i}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(i.append(r),h.trigger(this._element,this.constructor.eventName(Ll))),this._popper=this._createPopper(r),r.classList.add(Ce),"ontouchstart"in document.documentElement)for(const a of[].concat(...document.body.children))h.on(a,"mouseover",Fe);const o=()=>{h.trigger(this._element,this.constructor.eventName(Dl)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(o,this.tip,this._isAnimated())}hide(){if(!this._isShown()||h.trigger(this._element,this.constructor.eventName(Cl)).defaultPrevented)return;if(this._getTipElement().classList.remove(Ce),"ontouchstart"in document.documentElement)for(const r of[].concat(...document.body.children))h.off(r,"mouseover",Fe);this._activeTrigger[fn]=!1,this._activeTrigger[un]=!1,this._activeTrigger[re]=!1,this._isHovered=null;const s=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),h.trigger(this._element,this.constructor.eventName(Nl)))};this._queueCallback(s,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 n=this._getTemplateFactory(t).toHtml();if(!n)return null;n.classList.remove(ln,Ce),n.classList.add(`bs-${this.constructor.NAME}-auto`);const s=So(this.constructor.NAME).toString();return n.setAttribute("id",s),this._isAnimated()&&n.classList.add(ln),n}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new yl({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[Ol]: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(ln)}_isShown(){return this.tip&&this.tip.classList.contains(Ce)}_createPopper(t){const n=B(this._config.placement,[this,t,this._element]),s=kl[n.toUpperCase()];return Hn(this._element,t,this._getPopperConfig(s))}_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}_resolvePossibleFunction(t){return B(t,[this._element,this._element])}_getPopperConfig(t){const n={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:s=>{this._getTipElement().setAttribute("data-popper-placement",s.state.placement)}}]};return{...n,...B(this._config.popperConfig,[void 0,n])}}_setListeners(){const t=this._config.trigger.split(" ");for(const n of t)if(n==="click")h.on(this._element,this.constructor.eventName($l),this._config.selector,s=>{const r=this._initializeOnDelegatedTarget(s);r._activeTrigger[fn]=!(r._isShown()&&r._activeTrigger[fn]),r.toggle()});else if(n!==Sl){const s=n===re?this.constructor.eventName(Pl):this.constructor.eventName(Il),r=n===re?this.constructor.eventName(Ml):this.constructor.eventName(xl);h.on(this._element,s,this._config.selector,i=>{const o=this._initializeOnDelegatedTarget(i);o._activeTrigger[i.type==="focusin"?un:re]=!0,o._enter()}),h.on(this._element,r,this._config.selector,i=>{const o=this._initializeOnDelegatedTarget(i);o._activeTrigger[i.type==="focusout"?un:re]=o._element.contains(i.relatedTarget),o._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},h.on(this._element.closest($s),Is,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,n){clearTimeout(this._timeout),this._timeout=setTimeout(t,n)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const n=ft.getDataAttributes(this._element);for(const s of Object.keys(n))Tl.has(s)&&delete n[s];return t={...n,...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:gt(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[n,s]of Object.entries(this._config))this.constructor.Default[n]!==s&&(t[n]=s);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each(function(){const n=Pt.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof n[t]>"u")throw new TypeError(`No method named "${t}"`);n[t]()}})}}tt(Pt);const Hl="popover",Bl=".popover-header",jl=".popover-body",Ul={...Pt.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},Wl={...Pt.DefaultType,content:"(null|string|element|function)"};class Ke extends Pt{static get Default(){return Ul}static get DefaultType(){return Wl}static get NAME(){return Hl}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[Bl]:this._getTitle(),[jl]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){const n=Ke.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof n[t]>"u")throw new TypeError(`No method named "${t}"`);n[t]()}})}}tt(Ke);const Kl="scrollspy",ql="bs.scrollspy",Wn=`.${ql}`,zl=".data-api",Yl=`activate${Wn}`,xs=`click${Wn}`,Gl=`load${Wn}${zl}`,Xl="dropdown-item",Vt="active",Jl='[data-bs-spy="scroll"]',dn="[href]",Ql=".nav, .list-group",Ps=".nav-link",Zl=".nav-item",tu=".list-group-item",eu=`${Ps}, ${Zl} > ${Ps}, ${tu}`,nu=".dropdown",su=".dropdown-toggle",ru={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},iu={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class pe extends rt{constructor(t,n){super(t,n),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 ru}static get DefaultType(){return iu}static get NAME(){return Kl}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=gt(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(n=>Number.parseFloat(n))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(h.off(this._config.target,xs),h.on(this._config.target,xs,dn,t=>{const n=this._observableSections.get(t.target.hash);if(n){t.preventDefault();const s=this._rootElement||window,r=n.offsetTop-this._element.offsetTop;if(s.scrollTo){s.scrollTo({top:r,behavior:"smooth"});return}s.scrollTop=r}}))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(n=>this._observerCallback(n),t)}_observerCallback(t){const n=o=>this._targetLinks.get(`#${o.target.id}`),s=o=>{this._previousScrollData.visibleEntryTop=o.target.offsetTop,this._process(n(o))},r=(this._rootElement||document.documentElement).scrollTop,i=r>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=r;for(const o of t){if(!o.isIntersecting){this._activeTarget=null,this._clearActiveClass(n(o));continue}const a=o.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(i&&a){if(s(o),!r)return;continue}!i&&!a&&s(o)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=b.find(dn,this._config.target);for(const n of t){if(!n.hash||Et(n))continue;const s=b.findOne(decodeURI(n.hash),this._element);Qt(s)&&(this._targetLinks.set(decodeURI(n.hash),n),this._observableSections.set(n.hash,s))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(Vt),this._activateParents(t),h.trigger(this._element,Yl,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains(Xl)){b.findOne(su,t.closest(nu)).classList.add(Vt);return}for(const n of b.parents(t,Ql))for(const s of b.prev(n,eu))s.classList.add(Vt)}_clearActiveClass(t){t.classList.remove(Vt);const n=b.find(`${dn}.${Vt}`,t);for(const s of n)s.classList.remove(Vt)}static jQueryInterface(t){return this.each(function(){const n=pe.getOrCreateInstance(this,t);if(typeof t=="string"){if(n[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);n[t]()}})}}h.on(window,Gl,()=>{for(const e of b.find(Jl))pe.getOrCreateInstance(e)});tt(pe);const ou="tab",au="bs.tab",Mt=`.${au}`,cu=`hide${Mt}`,lu=`hidden${Mt}`,uu=`show${Mt}`,fu=`shown${Mt}`,du=`click${Mt}`,hu=`keydown${Mt}`,pu=`load${Mt}`,mu="ArrowLeft",Ms="ArrowRight",_u="ArrowUp",ks="ArrowDown",hn="Home",Fs="End",Ot="active",Vs="fade",pn="show",gu="dropdown",ci=".dropdown-toggle",Eu=".dropdown-menu",mn=`:not(${ci})`,bu='.list-group, .nav, [role="tablist"]',vu=".nav-item, .list-group-item",yu=`.nav-link${mn}, .list-group-item${mn}, [role="tab"]${mn}`,li='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',_n=`${yu}, ${li}`,Au=`.${Ot}[data-bs-toggle="tab"], .${Ot}[data-bs-toggle="pill"], .${Ot}[data-bs-toggle="list"]`;class $t extends rt{constructor(t){super(t),this._parent=this._element.closest(bu),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),h.on(this._element,hu,n=>this._keydown(n)))}static get NAME(){return ou}show(){const t=this._element;if(this._elemIsActive(t))return;const n=this._getActiveElem(),s=n?h.trigger(n,cu,{relatedTarget:t}):null;h.trigger(t,uu,{relatedTarget:n}).defaultPrevented||s&&s.defaultPrevented||(this._deactivate(n,t),this._activate(t,n))}_activate(t,n){if(!t)return;t.classList.add(Ot),this._activate(b.getElementFromSelector(t));const s=()=>{if(t.getAttribute("role")!=="tab"){t.classList.add(pn);return}t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),h.trigger(t,fu,{relatedTarget:n})};this._queueCallback(s,t,t.classList.contains(Vs))}_deactivate(t,n){if(!t)return;t.classList.remove(Ot),t.blur(),this._deactivate(b.getElementFromSelector(t));const s=()=>{if(t.getAttribute("role")!=="tab"){t.classList.remove(pn);return}t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),h.trigger(t,lu,{relatedTarget:n})};this._queueCallback(s,t,t.classList.contains(Vs))}_keydown(t){if(![mu,Ms,_u,ks,hn,Fs].includes(t.key))return;t.stopPropagation(),t.preventDefault();const n=this._getChildren().filter(r=>!Et(r));let s;if([hn,Fs].includes(t.key))s=n[t.key===hn?0:n.length-1];else{const r=[Ms,ks].includes(t.key);s=Bn(n,t.target,r,!0)}s&&(s.focus({preventScroll:!0}),$t.getOrCreateInstance(s).show())}_getChildren(){return b.find(_n,this._parent)}_getActiveElem(){return this._getChildren().find(t=>this._elemIsActive(t))||null}_setInitialAttributes(t,n){this._setAttributeIfNotExists(t,"role","tablist");for(const s of n)this._setInitialAttributesOnChild(s)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const n=this._elemIsActive(t),s=this._getOuterElement(t);t.setAttribute("aria-selected",n),s!==t&&this._setAttributeIfNotExists(s,"role","presentation"),n||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const n=b.getElementFromSelector(t);n&&(this._setAttributeIfNotExists(n,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(n,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,n){const s=this._getOuterElement(t);if(!s.classList.contains(gu))return;const r=(i,o)=>{const a=b.findOne(i,s);a&&a.classList.toggle(o,n)};r(ci,Ot),r(Eu,pn),s.setAttribute("aria-expanded",n)}_setAttributeIfNotExists(t,n,s){t.hasAttribute(n)||t.setAttribute(n,s)}_elemIsActive(t){return t.classList.contains(Ot)}_getInnerElement(t){return t.matches(_n)?t:b.findOne(_n,t)}_getOuterElement(t){return t.closest(vu)||t}static jQueryInterface(t){return this.each(function(){const n=$t.getOrCreateInstance(this);if(typeof t=="string"){if(n[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);n[t]()}})}}h.on(document,du,li,function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),!Et(this)&&$t.getOrCreateInstance(this).show()});h.on(window,pu,()=>{for(const e of b.find(Au))$t.getOrCreateInstance(e)});tt($t);const Tu="toast",wu="bs.toast",yt=`.${wu}`,Ou=`mouseover${yt}`,Su=`mouseout${yt}`,Cu=`focusin${yt}`,Nu=`focusout${yt}`,Ru=`hide${yt}`,Du=`hidden${yt}`,Lu=`show${yt}`,$u=`shown${yt}`,Iu="fade",Hs="hide",Ne="show",Re="showing",xu={animation:"boolean",autohide:"boolean",delay:"number"},Pu={animation:!0,autohide:!0,delay:5e3};class me extends rt{constructor(t,n){super(t,n),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Pu}static get DefaultType(){return xu}static get NAME(){return Tu}show(){if(h.trigger(this._element,Lu).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(Iu);const n=()=>{this._element.classList.remove(Re),h.trigger(this._element,$u),this._maybeScheduleHide()};this._element.classList.remove(Hs),le(this._element),this._element.classList.add(Ne,Re),this._queueCallback(n,this._element,this._config.animation)}hide(){if(!this.isShown()||h.trigger(this._element,Ru).defaultPrevented)return;const n=()=>{this._element.classList.add(Hs),this._element.classList.remove(Re,Ne),h.trigger(this._element,Du)};this._element.classList.add(Re),this._queueCallback(n,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Ne),super.dispose()}isShown(){return this._element.classList.contains(Ne)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(t,n){switch(t.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=n;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=n;break}}if(n){this._clearTimeout();return}const s=t.relatedTarget;this._element===s||this._element.contains(s)||this._maybeScheduleHide()}_setListeners(){h.on(this._element,Ou,t=>this._onInteraction(t,!0)),h.on(this._element,Su,t=>this._onInteraction(t,!1)),h.on(this._element,Cu,t=>this._onInteraction(t,!0)),h.on(this._element,Nu,t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){const n=me.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof n[t]>"u")throw new TypeError(`No method named "${t}"`);n[t](this)}})}}We(me);tt(me);const Mu=Object.freeze(Object.defineProperty({__proto__:null,Alert:fe,Button:de,Carousel:te,Collapse:Gt,Dropdown:st,Modal:Lt,Offcanvas:ht,Popover:Ke,ScrollSpy:pe,Tab:$t,Toast:me,Tooltip:Pt},Symbol.toStringTag,{value:"Module"}));function ui(e,t){return function(){return e.apply(t,arguments)}}const{toString:ku}=Object.prototype,{getPrototypeOf:Kn}=Object,{iterator:qe,toStringTag:fi}=Symbol,ze=(e=>t=>{const n=ku.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),it=e=>(e=e.toLowerCase(),t=>ze(t)===e),Ye=e=>t=>typeof t===e,{isArray:ee}=Array,Xt=Ye("undefined");function _e(e){return e!==null&&!Xt(e)&&e.constructor!==null&&!Xt(e.constructor)&&j(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const di=it("ArrayBuffer");function Fu(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&di(e.buffer),t}const Vu=Ye("string"),j=Ye("function"),hi=Ye("number"),ge=e=>e!==null&&typeof e=="object",Hu=e=>e===!0||e===!1,xe=e=>{if(ze(e)!=="object")return!1;const t=Kn(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(fi in e)&&!(qe in e)},Bu=e=>{if(!ge(e)||_e(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},ju=it("Date"),Uu=it("File"),Wu=e=>!!(e&&typeof e.uri<"u"),Ku=e=>e&&typeof e.getParts<"u",qu=it("Blob"),zu=it("FileList"),Yu=e=>ge(e)&&j(e.pipe);function Gu(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const Bs=Gu(),js=typeof Bs.FormData<"u"?Bs.FormData:void 0,Xu=e=>{let t;return e&&(js&&e instanceof js||j(e.append)&&((t=ze(e))==="formdata"||t==="object"&&j(e.toString)&&e.toString()==="[object FormData]"))},Ju=it("URLSearchParams"),[Qu,Zu,tf,ef]=["ReadableStream","Request","Response","Headers"].map(it),nf=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ee(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,r;if(typeof e!="object"&&(e=[e]),ee(e))for(s=0,r=e.length;s0;)if(r=n[s],t===r.toLowerCase())return r;return null}const St=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,mi=e=>!Xt(e)&&e!==St;function Nn(){const{caseless:e,skipUndefined:t}=mi(this)&&this||{},n={},s=(r,i)=>{if(i==="__proto__"||i==="constructor"||i==="prototype")return;const o=e&&pi(n,i)||i;xe(n[o])&&xe(r)?n[o]=Nn(n[o],r):xe(r)?n[o]=Nn({},r):ee(r)?n[o]=r.slice():(!t||!Xt(r))&&(n[o]=r)};for(let r=0,i=arguments.length;r(Ee(t,(r,i)=>{n&&j(r)?Object.defineProperty(e,i,{value:ui(r,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,i,{value:r,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:s}),e),rf=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),of=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},af=(e,t,n,s)=>{let r,i,o;const a={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),i=r.length;i-- >0;)o=r[i],(!s||s(o,e,t))&&!a[o]&&(t[o]=e[o],a[o]=!0);e=n!==!1&&Kn(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},cf=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},lf=e=>{if(!e)return null;if(ee(e))return e;let t=e.length;if(!hi(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},uf=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Kn(Uint8Array)),ff=(e,t)=>{const s=(e&&e[qe]).call(e);let r;for(;(r=s.next())&&!r.done;){const i=r.value;t.call(e,i[0],i[1])}},df=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},hf=it("HTMLFormElement"),pf=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,r){return s.toUpperCase()+r}),Us=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),mf=it("RegExp"),_i=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};Ee(n,(r,i)=>{let o;(o=t(r,i,e))!==!1&&(s[i]=o||r)}),Object.defineProperties(e,s)},_f=e=>{_i(e,(t,n)=>{if(j(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if(j(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},gf=(e,t)=>{const n={},s=r=>{r.forEach(i=>{n[i]=!0})};return ee(e)?s(e):s(String(e).split(t)),n},Ef=()=>{},bf=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function vf(e){return!!(e&&j(e.append)&&e[fi]==="FormData"&&e[qe])}const yf=e=>{const t=new Array(10),n=(s,r)=>{if(ge(s)){if(t.indexOf(s)>=0)return;if(_e(s))return s;if(!("toJSON"in s)){t[r]=s;const i=ee(s)?[]:{};return Ee(s,(o,a)=>{const l=n(o,r+1);!Xt(l)&&(i[a]=l)}),t[r]=void 0,i}}return s};return n(e,0)},Af=it("AsyncFunction"),Tf=e=>e&&(ge(e)||j(e))&&j(e.then)&&j(e.catch),gi=((e,t)=>e?setImmediate:t?((n,s)=>(St.addEventListener("message",({source:r,data:i})=>{r===St&&i===n&&s.length&&s.shift()()},!1),r=>{s.push(r),St.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",j(St.postMessage)),wf=typeof queueMicrotask<"u"?queueMicrotask.bind(St):typeof process<"u"&&process.nextTick||gi,Of=e=>e!=null&&j(e[qe]),u={isArray:ee,isArrayBuffer:di,isBuffer:_e,isFormData:Xu,isArrayBufferView:Fu,isString:Vu,isNumber:hi,isBoolean:Hu,isObject:ge,isPlainObject:xe,isEmptyObject:Bu,isReadableStream:Qu,isRequest:Zu,isResponse:tf,isHeaders:ef,isUndefined:Xt,isDate:ju,isFile:Uu,isReactNativeBlob:Wu,isReactNative:Ku,isBlob:qu,isRegExp:mf,isFunction:j,isStream:Yu,isURLSearchParams:Ju,isTypedArray:uf,isFileList:zu,forEach:Ee,merge:Nn,extend:sf,trim:nf,stripBOM:rf,inherits:of,toFlatObject:af,kindOf:ze,kindOfTest:it,endsWith:cf,toArray:lf,forEachEntry:ff,matchAll:df,isHTMLForm:hf,hasOwnProperty:Us,hasOwnProp:Us,reduceDescriptors:_i,freezeMethods:_f,toObjectSet:gf,toCamelCase:pf,noop:Ef,toFiniteNumber:bf,findKey:pi,global:St,isContextDefined:mi,isSpecCompliantForm:vf,toJSONObject:yf,isAsyncFn:Af,isThenable:Tf,setImmediate:gi,asap:wf,isIterable:Of};let y=class Ei extends Error{static from(t,n,s,r,i,o){const a=new Ei(t.message,n||t.code,s,r,i);return a.cause=t,a.name=t.name,t.status!=null&&a.status==null&&(a.status=t.status),o&&Object.assign(a,o),a}constructor(t,n,s,r,i){super(t),Object.defineProperty(this,"message",{value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),s&&(this.config=s),r&&(this.request=r),i&&(this.response=i,this.status=i.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:u.toJSONObject(this.config),code:this.code,status:this.status}}};y.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";y.ERR_BAD_OPTION="ERR_BAD_OPTION";y.ECONNABORTED="ECONNABORTED";y.ETIMEDOUT="ETIMEDOUT";y.ERR_NETWORK="ERR_NETWORK";y.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";y.ERR_DEPRECATED="ERR_DEPRECATED";y.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";y.ERR_BAD_REQUEST="ERR_BAD_REQUEST";y.ERR_CANCELED="ERR_CANCELED";y.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";y.ERR_INVALID_URL="ERR_INVALID_URL";const Sf=null;function Rn(e){return u.isPlainObject(e)||u.isArray(e)}function bi(e){return u.endsWith(e,"[]")?e.slice(0,-2):e}function gn(e,t,n){return e?e.concat(t).map(function(r,i){return r=bi(r),!n&&i?"["+r+"]":r}).join(n?".":""):t}function Cf(e){return u.isArray(e)&&!e.some(Rn)}const Nf=u.toFlatObject(u,{},null,function(t){return/^is[A-Z]/.test(t)});function Ge(e,t,n){if(!u.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=u.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(_,p){return!u.isUndefined(p[_])});const s=n.metaTokens,r=n.visitor||c,i=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&u.isSpecCompliantForm(t);if(!u.isFunction(r))throw new TypeError("visitor must be a function");function f(d){if(d===null)return"";if(u.isDate(d))return d.toISOString();if(u.isBoolean(d))return d.toString();if(!l&&u.isBlob(d))throw new y("Blob is not supported. Use a Buffer instead.");return u.isArrayBuffer(d)||u.isTypedArray(d)?l&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function c(d,_,p){let A=d;if(u.isReactNative(t)&&u.isReactNativeBlob(d))return t.append(gn(p,_,i),f(d)),!1;if(d&&!p&&typeof d=="object"){if(u.endsWith(_,"{}"))_=s?_:_.slice(0,-2),d=JSON.stringify(d);else if(u.isArray(d)&&Cf(d)||(u.isFileList(d)||u.endsWith(_,"[]"))&&(A=u.toArray(d)))return _=bi(_),A.forEach(function(T,v){!(u.isUndefined(T)||T===null)&&t.append(o===!0?gn([_],v,i):o===null?_:_+"[]",f(T))}),!1}return Rn(d)?!0:(t.append(gn(p,_,i),f(d)),!1)}const m=[],g=Object.assign(Nf,{defaultVisitor:c,convertValue:f,isVisitable:Rn});function E(d,_){if(!u.isUndefined(d)){if(m.indexOf(d)!==-1)throw Error("Circular reference detected in "+_.join("."));m.push(d),u.forEach(d,function(A,C){(!(u.isUndefined(A)||A===null)&&r.call(t,A,u.isString(C)?C.trim():C,_,g))===!0&&E(A,_?_.concat(C):[C])}),m.pop()}}if(!u.isObject(e))throw new TypeError("data must be an object");return E(e),t}function Ws(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function qn(e,t){this._pairs=[],e&&Ge(e,this,t)}const vi=qn.prototype;vi.append=function(t,n){this._pairs.push([t,n])};vi.toString=function(t){const n=t?function(s){return t.call(this,s,Ws)}:Ws;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function Rf(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function yi(e,t,n){if(!t)return e;const s=n&&n.encode||Rf,r=u.isFunction(n)?{serialize:n}:n,i=r&&r.serialize;let o;if(i?o=i(t,r):o=u.isURLSearchParams(t)?t.toString():new qn(t,r).toString(s),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Ks{constructor(){this.handlers=[]}use(t,n,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){u.forEach(this.handlers,function(s){s!==null&&t(s)})}}const zn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Df=typeof URLSearchParams<"u"?URLSearchParams:qn,Lf=typeof FormData<"u"?FormData:null,$f=typeof Blob<"u"?Blob:null,If={isBrowser:!0,classes:{URLSearchParams:Df,FormData:Lf,Blob:$f},protocols:["http","https","file","blob","url","data"]},Yn=typeof window<"u"&&typeof document<"u",Dn=typeof navigator=="object"&&navigator||void 0,xf=Yn&&(!Dn||["ReactNative","NativeScript","NS"].indexOf(Dn.product)<0),Pf=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Mf=Yn&&window.location.href||"http://localhost",kf=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Yn,hasStandardBrowserEnv:xf,hasStandardBrowserWebWorkerEnv:Pf,navigator:Dn,origin:Mf},Symbol.toStringTag,{value:"Module"})),M={...kf,...If};function Ff(e,t){return Ge(e,new M.classes.URLSearchParams,{visitor:function(n,s,r,i){return M.isNode&&u.isBuffer(n)?(this.append(s,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function Vf(e){return u.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Hf(e){const t={},n=Object.keys(e);let s;const r=n.length;let i;for(s=0;s=n.length;return o=!o&&u.isArray(r)?r.length:o,l?(u.hasOwnProp(r,o)?r[o]=[r[o],s]:r[o]=s,!a):((!r[o]||!u.isObject(r[o]))&&(r[o]=[]),t(n,s,r[o],i)&&u.isArray(r[o])&&(r[o]=Hf(r[o])),!a)}if(u.isFormData(e)&&u.isFunction(e.entries)){const n={};return u.forEachEntry(e,(s,r)=>{t(Vf(s),r,n,0)}),n}return null}function Bf(e,t,n){if(u.isString(e))try{return(t||JSON.parse)(e),u.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(e)}const be={transitional:zn,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const s=n.getContentType()||"",r=s.indexOf("application/json")>-1,i=u.isObject(t);if(i&&u.isHTMLForm(t)&&(t=new FormData(t)),u.isFormData(t))return r?JSON.stringify(Ai(t)):t;if(u.isArrayBuffer(t)||u.isBuffer(t)||u.isStream(t)||u.isFile(t)||u.isBlob(t)||u.isReadableStream(t))return t;if(u.isArrayBufferView(t))return t.buffer;if(u.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(s.indexOf("application/x-www-form-urlencoded")>-1)return Ff(t,this.formSerializer).toString();if((a=u.isFileList(t))||s.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Ge(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||r?(n.setContentType("application/json",!1),Bf(t)):t}],transformResponse:[function(t){const n=this.transitional||be.transitional,s=n&&n.forcedJSONParsing,r=this.responseType==="json";if(u.isResponse(t)||u.isReadableStream(t))return t;if(t&&u.isString(t)&&(s&&!this.responseType||r)){const o=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t,this.parseReviver)}catch(a){if(o)throw a.name==="SyntaxError"?y.from(a,y.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:M.classes.FormData,Blob:M.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};u.forEach(["delete","get","head","post","put","patch"],e=>{be.headers[e]={}});const jf=u.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Uf=e=>{const t={};let n,s,r;return e&&e.split(` `).forEach(function(o){r=o.indexOf(":"),n=o.substring(0,r).trim().toLowerCase(),s=o.substring(r+1).trim(),!(!n||t[n]&&jf[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t},qs=Symbol("internals"),Wf=e=>!/[\r\n]/.test(e);function Ti(e,t){if(!(e===!1||e==null)){if(u.isArray(e)){e.forEach(n=>Ti(n,t));return}if(!Wf(String(e)))throw new Error(`Invalid character in header content ["${t}"]`)}}function ie(e){return e&&String(e).trim().toLowerCase()}function Kf(e){let t=e.length;for(;t>0;){const n=e.charCodeAt(t-1);if(n!==10&&n!==13)break;t-=1}return t===e.length?e:e.slice(0,t)}function Pe(e){return e===!1||e==null?e:u.isArray(e)?e.map(Pe):Kf(String(e))}function qf(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}const zf=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function En(e,t,n,s,r){if(u.isFunction(s))return s.call(this,t,n);if(r&&(t=n),!!u.isString(t)){if(u.isString(s))return t.indexOf(s)!==-1;if(u.isRegExp(s))return s.test(t)}}function Yf(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function Gf(e,t){const n=u.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{value:function(r,i,o){return this[s].call(this,t,r,i,o)},configurable:!0})})}let U=class{constructor(t){t&&this.set(t)}set(t,n,s){const r=this;function i(a,l,f){const c=ie(l);if(!c)throw new Error("header name must be a non-empty string");const m=u.findKey(r,c);(!m||r[m]===void 0||f===!0||f===void 0&&r[m]!==!1)&&(Ti(a,l),r[m||l]=Pe(a))}const o=(a,l)=>u.forEach(a,(f,c)=>i(f,c,l));if(u.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(u.isString(t)&&(t=t.trim())&&!zf(t))o(Uf(t),n);else if(u.isObject(t)&&u.isIterable(t)){let a={},l,f;for(const c of t){if(!u.isArray(c))throw TypeError("Object iterator must return a key-value pair");a[f=c[0]]=(l=a[f])?u.isArray(l)?[...l,c[1]]:[l,c[1]]:c[1]}o(a,n)}else t!=null&&i(n,t,s);return this}get(t,n){if(t=ie(t),t){const s=u.findKey(this,t);if(s){const r=this[s];if(!n)return r;if(n===!0)return qf(r);if(u.isFunction(n))return n.call(this,r,s);if(u.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ie(t),t){const s=u.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||En(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let r=!1;function i(o){if(o=ie(o),o){const a=u.findKey(s,o);a&&(!n||En(s,s[a],a,n))&&(delete s[a],r=!0)}}return u.isArray(t)?t.forEach(i):i(t),r}clear(t){const n=Object.keys(this);let s=n.length,r=!1;for(;s--;){const i=n[s];(!t||En(this,this[i],i,t,!0))&&(delete this[i],r=!0)}return r}normalize(t){const n=this,s={};return u.forEach(this,(r,i)=>{const o=u.findKey(s,i);if(o){n[o]=Pe(r),delete n[i];return}const a=t?Yf(i):String(i).trim();a!==i&&delete n[i],n[a]=Pe(r),s[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return u.forEach(this,(s,r)=>{s!=null&&s!==!1&&(n[r]=t&&u.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const s=new this(t);return n.forEach(r=>s.set(r)),s}static accessor(t){const s=(this[qs]=this[qs]={accessors:{}}).accessors,r=this.prototype;function i(o){const a=ie(o);s[a]||(Gf(r,o),s[a]=!0)}return u.isArray(t)?t.forEach(i):i(t),this}};U.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);u.reduceDescriptors(U.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}});u.freezeMethods(U);function bn(e,t){const n=this||be,s=t||n,r=U.from(s.headers);let i=s.data;return u.forEach(e,function(a){i=a.call(n,i,r.normalize(),t?t.status:void 0)}),r.normalize(),i}function wi(e){return!!(e&&e.__CANCEL__)}let ve=class extends y{constructor(t,n,s){super(t??"canceled",y.ERR_CANCELED,n,s),this.name="CanceledError",this.__CANCEL__=!0}};function Oi(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new y("Request failed with status code "+n.status,[y.ERR_BAD_REQUEST,y.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Xf(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Jf(e,t){e=e||10;const n=new Array(e),s=new Array(e);let r=0,i=0,o;return t=t!==void 0?t:1e3,function(l){const f=Date.now(),c=s[i];o||(o=f),n[r]=l,s[r]=f;let m=i,g=0;for(;m!==r;)g+=n[m++],m=m%e;if(r=(r+1)%e,r===i&&(i=(i+1)%e),f-o{n=c,r=null,i&&(clearTimeout(i),i=null),e(...f)};return[(...f)=>{const c=Date.now(),m=c-n;m>=s?o(f,c):(r=f,i||(i=setTimeout(()=>{i=null,o(r)},s-m)))},()=>r&&o(r)]}const Be=(e,t,n=3)=>{let s=0;const r=Jf(50,250);return Qf(i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,l=o-s,f=r(l),c=o<=a;s=o;const m={loaded:o,total:a,progress:a?o/a:void 0,bytes:l,rate:f||void 0,estimated:f&&a&&c?(a-o)/f:void 0,event:i,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(m)},n)},zs=(e,t)=>{const n=e!=null;return[s=>t[0]({lengthComputable:n,total:e,loaded:s}),t[1]]},Ys=e=>(...t)=>u.asap(()=>e(...t)),Zf=M.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,M.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(M.origin),M.navigator&&/(msie|trident)/i.test(M.navigator.userAgent)):()=>!0,td=M.hasStandardBrowserEnv?{write(e,t,n,s,r,i,o){if(typeof document>"u")return;const a=[`${e}=${encodeURIComponent(t)}`];u.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),u.isString(s)&&a.push(`path=${s}`),u.isString(r)&&a.push(`domain=${r}`),i===!0&&a.push("secure"),u.isString(o)&&a.push(`SameSite=${o}`),document.cookie=a.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function ed(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function nd(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Si(e,t,n){let s=!ed(t);return e&&(s||n==!1)?nd(e,t):t}const Gs=e=>e instanceof U?{...e}:e;function It(e,t){t=t||{};const n={};function s(f,c,m,g){return u.isPlainObject(f)&&u.isPlainObject(c)?u.merge.call({caseless:g},f,c):u.isPlainObject(c)?u.merge({},c):u.isArray(c)?c.slice():c}function r(f,c,m,g){if(u.isUndefined(c)){if(!u.isUndefined(f))return s(void 0,f,m,g)}else return s(f,c,m,g)}function i(f,c){if(!u.isUndefined(c))return s(void 0,c)}function o(f,c){if(u.isUndefined(c)){if(!u.isUndefined(f))return s(void 0,f)}else return s(void 0,c)}function a(f,c,m){if(m in t)return s(f,c);if(m in e)return s(void 0,f)}const l={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(f,c,m)=>r(Gs(f),Gs(c),m,!0)};return u.forEach(Object.keys({...e,...t}),function(c){if(c==="__proto__"||c==="constructor"||c==="prototype")return;const m=u.hasOwnProp(l,c)?l[c]:r,g=m(e[c],t[c],c);u.isUndefined(g)&&m!==a||(n[c]=g)}),n}const Ci=e=>{const t=It({},e);let{data:n,withXSRFToken:s,xsrfHeaderName:r,xsrfCookieName:i,headers:o,auth:a}=t;if(t.headers=o=U.from(o),t.url=yi(Si(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&o.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),u.isFormData(n)){if(M.hasStandardBrowserEnv||M.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(u.isFunction(n.getHeaders)){const l=n.getHeaders(),f=["content-type","content-length"];Object.entries(l).forEach(([c,m])=>{f.includes(c.toLowerCase())&&o.set(c,m)})}}if(M.hasStandardBrowserEnv&&(s&&u.isFunction(s)&&(s=s(t)),s||s!==!1&&Zf(t.url))){const l=r&&i&&td.read(i);l&&o.set(r,l)}return t},sd=typeof XMLHttpRequest<"u",rd=sd&&function(e){return new Promise(function(n,s){const r=Ci(e);let i=r.data;const o=U.from(r.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:f}=r,c,m,g,E,d;function _(){E&&E(),d&&d(),r.cancelToken&&r.cancelToken.unsubscribe(c),r.signal&&r.signal.removeEventListener("abort",c)}let p=new XMLHttpRequest;p.open(r.method.toUpperCase(),r.url,!0),p.timeout=r.timeout;function A(){if(!p)return;const T=U.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),w={data:!a||a==="text"||a==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:T,config:e,request:p};Oi(function(S){n(S),_()},function(S){s(S),_()},w),p=null}"onloadend"in p?p.onloadend=A:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(A)},p.onabort=function(){p&&(s(new y("Request aborted",y.ECONNABORTED,e,p)),p=null)},p.onerror=function(v){const w=v&&v.message?v.message:"Network Error",O=new y(w,y.ERR_NETWORK,e,p);O.event=v||null,s(O),p=null},p.ontimeout=function(){let v=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const w=r.transitional||zn;r.timeoutErrorMessage&&(v=r.timeoutErrorMessage),s(new y(v,w.clarifyTimeoutError?y.ETIMEDOUT:y.ECONNABORTED,e,p)),p=null},i===void 0&&o.setContentType(null),"setRequestHeader"in p&&u.forEach(o.toJSON(),function(v,w){p.setRequestHeader(w,v)}),u.isUndefined(r.withCredentials)||(p.withCredentials=!!r.withCredentials),a&&a!=="json"&&(p.responseType=r.responseType),f&&([g,d]=Be(f,!0),p.addEventListener("progress",g)),l&&p.upload&&([m,E]=Be(l),p.upload.addEventListener("progress",m),p.upload.addEventListener("loadend",E)),(r.cancelToken||r.signal)&&(c=T=>{p&&(s(!T||T.type?new ve(null,e,p):T),p.abort(),p=null)},r.cancelToken&&r.cancelToken.subscribe(c),r.signal&&(r.signal.aborted?c():r.signal.addEventListener("abort",c)));const C=Xf(r.url);if(C&&M.protocols.indexOf(C)===-1){s(new y("Unsupported protocol "+C+":",y.ERR_BAD_REQUEST,e));return}p.send(i||null)})},id=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let s=new AbortController,r;const i=function(f){if(!r){r=!0,a();const c=f instanceof Error?f:this.reason;s.abort(c instanceof y?c:new ve(c instanceof Error?c.message:c))}};let o=t&&setTimeout(()=>{o=null,i(new y(`timeout of ${t}ms exceeded`,y.ETIMEDOUT))},t);const a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(i):f.removeEventListener("abort",i)}),e=null)};e.forEach(f=>f.addEventListener("abort",i));const{signal:l}=s;return l.unsubscribe=()=>u.asap(a),l}},od=function*(e,t){let n=e.byteLength;if(n{const r=ad(e,t);let i=0,o,a=l=>{o||(o=!0,s&&s(l))};return new ReadableStream({async pull(l){try{const{done:f,value:c}=await r.next();if(f){a(),l.close();return}let m=c.byteLength;if(n){let g=i+=m;n(g)}l.enqueue(new Uint8Array(c))}catch(f){throw a(f),f}},cancel(l){return a(l),r.return()}},{highWaterMark:2})},Js=64*1024,{isFunction:De}=u,ld=(({Request:e,Response:t})=>({Request:e,Response:t}))(u.global),{ReadableStream:Qs,TextEncoder:Zs}=u.global,tr=(e,...t)=>{try{return!!e(...t)}catch{return!1}},ud=e=>{e=u.merge.call({skipUndefined:!0},ld,e);const{fetch:t,Request:n,Response:s}=e,r=t?De(t):typeof fetch=="function",i=De(n),o=De(s);if(!r)return!1;const a=r&&De(Qs),l=r&&(typeof Zs=="function"?(d=>_=>d.encode(_))(new Zs):async d=>new Uint8Array(await new n(d).arrayBuffer())),f=i&&a&&tr(()=>{let d=!1;const _=new Qs,p=new n(M.origin,{body:_,method:"POST",get duplex(){return d=!0,"half"}}).headers.has("Content-Type");return _.cancel(),d&&!p}),c=o&&a&&tr(()=>u.isReadableStream(new s("").body)),m={stream:c&&(d=>d.body)};r&&["text","arrayBuffer","blob","formData","stream"].forEach(d=>{!m[d]&&(m[d]=(_,p)=>{let A=_&&_[d];if(A)return A.call(_);throw new y(`Response type '${d}' is not supported`,y.ERR_NOT_SUPPORT,p)})});const g=async d=>{if(d==null)return 0;if(u.isBlob(d))return d.size;if(u.isSpecCompliantForm(d))return(await new n(M.origin,{method:"POST",body:d}).arrayBuffer()).byteLength;if(u.isArrayBufferView(d)||u.isArrayBuffer(d))return d.byteLength;if(u.isURLSearchParams(d)&&(d=d+""),u.isString(d))return(await l(d)).byteLength},E=async(d,_)=>{const p=u.toFiniteNumber(d.getContentLength());return p??g(_)};return async d=>{let{url:_,method:p,data:A,signal:C,cancelToken:T,timeout:v,onDownloadProgress:w,onUploadProgress:O,responseType:S,headers:L,withCredentials:R="same-origin",fetchOptions:D}=Ci(d),x=t||fetch;S=S?(S+"").toLowerCase():"text";let P=id([C,T&&T.toAbortSignal()],v),$=null;const k=P&&P.unsubscribe&&(()=>{P.unsubscribe()});let ot;try{if(O&&f&&p!=="get"&&p!=="head"&&(ot=await E(L,A))!==0){let Y=new n(_,{method:"POST",body:A,duplex:"half"}),G;if(u.isFormData(A)&&(G=Y.headers.get("content-type"))&&L.setContentType(G),Y.body){const[mt,et]=zs(ot,Be(Ys(O)));A=Xs(Y.body,Js,mt,et)}}u.isString(R)||(R=R?"include":"omit");const N=i&&"credentials"in n.prototype,H={...D,signal:P,method:p.toUpperCase(),headers:L.normalize().toJSON(),body:A,duplex:"half",credentials:N?R:void 0};$=i&&new n(_,H);let W=await(i?x($,D):x(_,H));const at=c&&(S==="stream"||S==="response");if(c&&(w||at&&k)){const Y={};["status","statusText","headers"].forEach(nt=>{Y[nt]=W[nt]});const G=u.toFiniteNumber(W.headers.get("content-length")),[mt,et]=w&&zs(G,Be(Ys(w),!0))||[];W=new s(Xs(W.body,Js,mt,()=>{et&&et(),k&&k()}),Y)}S=S||"text";let kt=await m[u.findKey(m,S)||"text"](W,d);return!at&&k&&k(),await new Promise((Y,G)=>{Oi(Y,G,{data:kt,headers:U.from(W.headers),status:W.status,statusText:W.statusText,config:d,request:$})})}catch(N){throw k&&k(),N&&N.name==="TypeError"&&/Load failed|fetch/i.test(N.message)?Object.assign(new y("Network Error",y.ERR_NETWORK,d,$,N&&N.response),{cause:N.cause||N}):y.from(N,N&&N.code,d,$,N&&N.response)}}},fd=new Map,Ni=e=>{let t=e&&e.env||{};const{fetch:n,Request:s,Response:r}=t,i=[s,r,n];let o=i.length,a=o,l,f,c=fd;for(;a--;)l=i[a],f=c.get(l),f===void 0&&c.set(l,f=a?new Map:ud(t)),c=f;return f};Ni();const Gn={http:Sf,xhr:rd,fetch:{get:Ni}};u.forEach(Gn,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const er=e=>`- ${e}`,dd=e=>u.isFunction(e)||e===null||e===!1;function hd(e,t){e=u.isArray(e)?e:[e];const{length:n}=e;let s,r;const i={};for(let o=0;o`adapter ${l} `+(f===!1?"is not supported by the environment":"is not available in the build"));let a=n?o.length>1?`since : `+o.map(er).join(` `):" "+er(o[0]):"as no adapter specified";throw new y("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r}const Ri={getAdapter:hd,adapters:Gn};function vn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ve(null,e)}function nr(e){return vn(e),e.headers=U.from(e.headers),e.data=bn.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ri.getAdapter(e.adapter||be.adapter,e)(e).then(function(s){return vn(e),s.data=bn.call(e,e.transformResponse,s),s.headers=U.from(s.headers),s},function(s){return wi(s)||(vn(e),s&&s.response&&(s.response.data=bn.call(e,e.transformResponse,s.response),s.response.headers=U.from(s.response.headers))),Promise.reject(s)})}const Di="1.15.0",Xe={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Xe[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const sr={};Xe.transitional=function(t,n,s){function r(i,o){return"[Axios v"+Di+"] Transitional option '"+i+"'"+o+(s?". "+s:"")}return(i,o,a)=>{if(t===!1)throw new y(r(o," has been removed"+(n?" in "+n:"")),y.ERR_DEPRECATED);return n&&!sr[o]&&(sr[o]=!0,console.warn(r(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,a):!0}};Xe.spelling=function(t){return(n,s)=>(console.warn(`${s} is likely a misspelling of ${t}`),!0)};function pd(e,t,n){if(typeof e!="object")throw new y("options must be an object",y.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let r=s.length;for(;r-- >0;){const i=s[r],o=t[i];if(o){const a=e[i],l=a===void 0||o(a,i,e);if(l!==!0)throw new y("option "+i+" must be "+l,y.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new y("Unknown option "+i,y.ERR_BAD_OPTION)}}const Me={assertOptions:pd,validators:Xe},X=Me.validators;let Nt=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Ks,response:new Ks}}async request(t,n){try{return await this._request(t,n)}catch(s){if(s instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const i=(()=>{if(!r.stack)return"";const o=r.stack.indexOf(` `);return o===-1?"":r.stack.slice(o+1)})();try{if(!s.stack)s.stack=i;else if(i){const o=i.indexOf(` `),a=o===-1?-1:i.indexOf(` `,o+1),l=a===-1?"":i.slice(a+1);String(s.stack).endsWith(l)||(s.stack+=` `+i)}}catch{}}throw s}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=It(this.defaults,n);const{transitional:s,paramsSerializer:r,headers:i}=n;s!==void 0&&Me.assertOptions(s,{silentJSONParsing:X.transitional(X.boolean),forcedJSONParsing:X.transitional(X.boolean),clarifyTimeoutError:X.transitional(X.boolean),legacyInterceptorReqResOrdering:X.transitional(X.boolean)},!1),r!=null&&(u.isFunction(r)?n.paramsSerializer={serialize:r}:Me.assertOptions(r,{encode:X.function,serialize:X.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Me.assertOptions(n,{baseUrl:X.spelling("baseURL"),withXsrfToken:X.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&u.merge(i.common,i[n.method]);i&&u.forEach(["delete","get","head","post","put","patch","common"],d=>{delete i[d]}),n.headers=U.concat(o,i);const a=[];let l=!0;this.interceptors.request.forEach(function(_){if(typeof _.runWhen=="function"&&_.runWhen(n)===!1)return;l=l&&_.synchronous;const p=n.transitional||zn;p&&p.legacyInterceptorReqResOrdering?a.unshift(_.fulfilled,_.rejected):a.push(_.fulfilled,_.rejected)});const f=[];this.interceptors.response.forEach(function(_){f.push(_.fulfilled,_.rejected)});let c,m=0,g;if(!l){const d=[nr.bind(this),void 0];for(d.unshift(...a),d.push(...f),g=d.length,c=Promise.resolve(n);m{if(!s._listeners)return;let i=s._listeners.length;for(;i-- >0;)s._listeners[i](r);s._listeners=null}),this.promise.then=r=>{let i;const o=new Promise(a=>{s.subscribe(a),i=a}).then(r);return o.cancel=function(){s.unsubscribe(i)},o},t(function(i,o,a){s.reason||(s.reason=new ve(i,o,a),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=s=>{t.abort(s)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Li(function(r){t=r}),cancel:t}}};function _d(e){return function(n){return e.apply(null,n)}}function gd(e){return u.isObject(e)&&e.isAxiosError===!0}const Ln={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Ln).forEach(([e,t])=>{Ln[t]=e});function $i(e){const t=new Nt(e),n=ui(Nt.prototype.request,t);return u.extend(n,Nt.prototype,t,{allOwnKeys:!0}),u.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return $i(It(e,r))},n}const I=$i(be);I.Axios=Nt;I.CanceledError=ve;I.CancelToken=md;I.isCancel=wi;I.VERSION=Di;I.toFormData=Ge;I.AxiosError=y;I.Cancel=I.CanceledError;I.all=function(t){return Promise.all(t)};I.spread=_d;I.isAxiosError=gd;I.mergeConfig=It;I.AxiosHeaders=U;I.formToJSON=e=>Ai(u.isHTMLForm(e)?new FormData(e):e);I.getAdapter=Ri.getAdapter;I.HttpStatusCode=Ln;I.default=I;const{Axios:yd,AxiosError:Ad,CanceledError:Td,isCancel:wd,CancelToken:Od,VERSION:Sd,all:Cd,Cancel:Nd,isAxiosError:Rd,spread:Dd,toFormData:Ld,AxiosHeaders:$d,HttpStatusCode:Id,formToJSON:xd,getAdapter:Pd,mergeConfig:Md}=I;window.bootstrap=Mu;window.axios=I;window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest";const rr=document.querySelector('meta[name="csrf-token"]')?.getAttribute("content");rr&&(window.axios.defaults.headers.common["X-CSRF-TOKEN"]=rr);