var P="top",V="bottom",H="right",x="left",$e="auto",Bt=[P,V,H,x],At="start",It="end",Gs="clippingParents",Sn="viewport",Dt="popper",Xs="reference",mn=Bt.reduce(function(e,t){return e.concat([t+"-"+At,t+"-"+It])},[]),Cn=[].concat(Bt,[$e]).reduce(function(e,t){return e.concat([t,t+"-"+At,t+"-"+It])},[]),Js="beforeRead",Qs="read",Zs="afterRead",tr="beforeMain",er="main",nr="afterMain",sr="beforeWrite",rr="write",ir="afterWrite",or=[Js,Qs,Zs,tr,er,nr,sr,rr,ir];function Q(e){return e?(e.nodeName||"").toLowerCase():null}function F(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Tt(e){var t=F(e).Element;return e instanceof t||e instanceof Element}function B(e){var t=F(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Nn(e){if(typeof ShadowRoot>"u")return!1;var t=F(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function bi(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];!B(i)||!Q(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 vi(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(u,c){return u[c]="",u},{});!B(r)||!Q(r)||(Object.assign(r.style,a),Object.keys(i).forEach(function(u){r.removeAttribute(u)}))})}}const Dn={name:"applyStyles",enabled:!0,phase:"write",fn:bi,effect:vi,requires:["computeStyles"]};function X(e){return e.split("-")[0]}var yt=Math.max,Ce=Math.min,Pt=Math.round;function _n(){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 ar(){return!/^((?!chrome|android).)*safari/i.test(_n())}function xt(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var s=e.getBoundingClientRect(),r=1,i=1;t&&B(e)&&(r=e.offsetWidth>0&&Pt(s.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Pt(s.height)/e.offsetHeight||1);var o=Tt(e)?F(e):window,a=o.visualViewport,u=!ar()&&n,c=(s.left+(u&&a?a.offsetLeft:0))/r,l=(s.top+(u&&a?a.offsetTop:0))/i,h=s.width/r,g=s.height/i;return{width:h,height:g,top:l,right:c+h,bottom:l+g,left:c,x:c,y:l}}function Ln(e){var t=xt(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 cr(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Nn(n)){var s=t;do{if(s&&e.isSameNode(s))return!0;s=s.parentNode||s.host}while(s)}return!1}function st(e){return F(e).getComputedStyle(e)}function yi(e){return["table","td","th"].indexOf(Q(e))>=0}function ft(e){return((Tt(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ie(e){return Q(e)==="html"?e:e.assignedSlot||e.parentNode||(Nn(e)?e.host:null)||ft(e)}function rs(e){return!B(e)||st(e).position==="fixed"?null:e.offsetParent}function Ai(e){var t=/firefox/i.test(_n()),n=/Trident/i.test(_n());if(n&&B(e)){var s=st(e);if(s.position==="fixed")return null}var r=Ie(e);for(Nn(r)&&(r=r.host);B(r)&&["html","body"].indexOf(Q(r))<0;){var i=st(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 ee(e){for(var t=F(e),n=rs(e);n&&yi(n)&&st(n).position==="static";)n=rs(n);return n&&(Q(n)==="html"||Q(n)==="body"&&st(n).position==="static")?t:n||Ai(e)||t}function Rn(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Jt(e,t,n){return yt(e,Ce(t,n))}function Ti(e,t,n){var s=Jt(e,t,n);return s>n?n:s}function lr(){return{top:0,right:0,bottom:0,left:0}}function ur(e){return Object.assign({},lr(),e)}function fr(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,ur(typeof t!="number"?t:fr(t,Bt))};function Oi(e){var t,n=e.state,s=e.name,r=e.options,i=n.elements.arrow,o=n.modifiersData.popperOffsets,a=X(n.placement),u=Rn(a),c=[x,H].indexOf(a)>=0,l=c?"height":"width";if(!(!i||!o)){var h=wi(r.padding,n),g=Ln(i),_=u==="y"?P:x,p=u==="y"?V:H,m=n.rects.reference[l]+n.rects.reference[u]-o[u]-n.rects.popper[l],b=o[u]-n.rects.reference[u],y=ee(i),T=y?u==="y"?y.clientHeight||0:y.clientWidth||0:0,S=m/2-b/2,v=h[_],w=T-g[l]-h[p],O=T/2-g[l]/2+S,C=Jt(v,O,w),R=u;n.modifiersData[s]=(t={},t[R]=C,t.centerOffset=C-O,t)}}function Si(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)||cr(t.elements.popper,r)&&(t.elements.arrow=r))}const dr={name:"arrow",enabled:!0,phase:"main",fn:Oi,effect:Si,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Mt(e){return e.split("-")[1]}var Ci={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ni(e,t){var n=e.x,s=e.y,r=t.devicePixelRatio||1;return{x:Pt(n*r)/r||0,y:Pt(s*r)/r||0}}function is(e){var t,n=e.popper,s=e.popperRect,r=e.placement,i=e.variation,o=e.offsets,a=e.position,u=e.gpuAcceleration,c=e.adaptive,l=e.roundOffsets,h=e.isFixed,g=o.x,_=g===void 0?0:g,p=o.y,m=p===void 0?0:p,b=typeof l=="function"?l({x:_,y:m}):{x:_,y:m};_=b.x,m=b.y;var y=o.hasOwnProperty("x"),T=o.hasOwnProperty("y"),S=x,v=P,w=window;if(c){var O=ee(n),C="clientHeight",R="clientWidth";if(O===F(n)&&(O=ft(n),st(O).position!=="static"&&a==="absolute"&&(C="scrollHeight",R="scrollWidth")),O=O,r===P||(r===x||r===H)&&i===It){v=V;var L=h&&O===w&&w.visualViewport?w.visualViewport.height:O[C];m-=L-s.height,m*=u?1:-1}if(r===x||(r===P||r===V)&&i===It){S=H;var N=h&&O===w&&w.visualViewport?w.visualViewport.width:O[R];_-=N-s.width,_*=u?1:-1}}var $=Object.assign({position:a},c&&Ci),z=l===!0?Ni({x:_,y:m},F(n)):{x:_,y:m};if(_=z.x,m=z.y,u){var I;return Object.assign({},$,(I={},I[v]=T?"0":"",I[S]=y?"0":"",I.transform=(w.devicePixelRatio||1)<=1?"translate("+_+"px, "+m+"px)":"translate3d("+_+"px, "+m+"px, 0)",I))}return Object.assign({},$,(t={},t[v]=T?m+"px":"",t[S]=y?_+"px":"",t.transform="",t))}function Di(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,u=a===void 0?!0:a,c={placement:X(t.placement),variation:Mt(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,is(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,is(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const $n={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Di,data:{}};var he={passive:!0};function Li(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,u=F(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(l){l.addEventListener("scroll",n.update,he)}),a&&u.addEventListener("resize",n.update,he),function(){i&&c.forEach(function(l){l.removeEventListener("scroll",n.update,he)}),a&&u.removeEventListener("resize",n.update,he)}}const In={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Li,data:{}};var Ri={left:"right",right:"left",bottom:"top",top:"bottom"};function ve(e){return e.replace(/left|right|bottom|top/g,function(t){return Ri[t]})}var $i={start:"end",end:"start"};function os(e){return e.replace(/start|end/g,function(t){return $i[t]})}function Pn(e){var t=F(e),n=t.pageXOffset,s=t.pageYOffset;return{scrollLeft:n,scrollTop:s}}function xn(e){return xt(ft(e)).left+Pn(e).scrollLeft}function Ii(e,t){var n=F(e),s=ft(e),r=n.visualViewport,i=s.clientWidth,o=s.clientHeight,a=0,u=0;if(r){i=r.width,o=r.height;var c=ar();(c||!c&&t==="fixed")&&(a=r.offsetLeft,u=r.offsetTop)}return{width:i,height:o,x:a+xn(e),y:u}}function Pi(e){var t,n=ft(e),s=Pn(e),r=(t=e.ownerDocument)==null?void 0:t.body,i=yt(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),o=yt(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-s.scrollLeft+xn(e),u=-s.scrollTop;return st(r||n).direction==="rtl"&&(a+=yt(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:o,x:a,y:u}}function Mn(e){var t=st(e),n=t.overflow,s=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+s)}function hr(e){return["html","body","#document"].indexOf(Q(e))>=0?e.ownerDocument.body:B(e)&&Mn(e)?e:hr(Ie(e))}function Qt(e,t){var n;t===void 0&&(t=[]);var s=hr(e),r=s===((n=e.ownerDocument)==null?void 0:n.body),i=F(s),o=r?[i].concat(i.visualViewport||[],Mn(s)?s:[]):s,a=t.concat(o);return r?a:a.concat(Qt(Ie(o)))}function gn(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function xi(e,t){var n=xt(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 as(e,t,n){return t===Sn?gn(Ii(e,n)):Tt(t)?xi(t,n):gn(Pi(ft(e)))}function Mi(e){var t=Qt(Ie(e)),n=["absolute","fixed"].indexOf(st(e).position)>=0,s=n&&B(e)?ee(e):e;return Tt(s)?t.filter(function(r){return Tt(r)&&cr(r,s)&&Q(r)!=="body"}):[]}function ki(e,t,n,s){var r=t==="clippingParents"?Mi(e):[].concat(t),i=[].concat(r,[n]),o=i[0],a=i.reduce(function(u,c){var l=as(e,c,s);return u.top=yt(l.top,u.top),u.right=Ce(l.right,u.right),u.bottom=Ce(l.bottom,u.bottom),u.left=yt(l.left,u.left),u},as(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 pr(e){var t=e.reference,n=e.element,s=e.placement,r=s?X(s):null,i=s?Mt(s):null,o=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,u;switch(r){case P:u={x:o,y:t.y-n.height};break;case V:u={x:o,y:t.y+t.height};break;case H:u={x:t.x+t.width,y:a};break;case x:u={x:t.x-n.width,y:a};break;default:u={x:t.x,y:t.y}}var c=r?Rn(r):null;if(c!=null){var l=c==="y"?"height":"width";switch(i){case At:u[c]=u[c]-(t[l]/2-n[l]/2);break;case It:u[c]=u[c]+(t[l]/2-n[l]/2);break}}return u}function kt(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,u=a===void 0?Gs:a,c=n.rootBoundary,l=c===void 0?Sn:c,h=n.elementContext,g=h===void 0?Dt:h,_=n.altBoundary,p=_===void 0?!1:_,m=n.padding,b=m===void 0?0:m,y=ur(typeof b!="number"?b:fr(b,Bt)),T=g===Dt?Xs:Dt,S=e.rects.popper,v=e.elements[p?T:g],w=ki(Tt(v)?v:v.contextElement||ft(e.elements.popper),u,l,o),O=xt(e.elements.reference),C=pr({reference:O,element:S,strategy:"absolute",placement:r}),R=gn(Object.assign({},S,C)),L=g===Dt?R:O,N={top:w.top-L.top+y.top,bottom:L.bottom-w.bottom+y.bottom,left:w.left-L.left+y.left,right:L.right-w.right+y.right},$=e.modifiersData.offset;if(g===Dt&&$){var z=$[r];Object.keys(N).forEach(function(I){var pt=[H,V].indexOf(I)>=0?1:-1,mt=[P,V].indexOf(I)>=0?"y":"x";N[I]+=z[mt]*pt})}return N}function Vi(e,t){t===void 0&&(t={});var n=t,s=n.placement,r=n.boundary,i=n.rootBoundary,o=n.padding,a=n.flipVariations,u=n.allowedAutoPlacements,c=u===void 0?Cn:u,l=Mt(s),h=l?a?mn:mn.filter(function(p){return Mt(p)===l}):Bt,g=h.filter(function(p){return c.indexOf(p)>=0});g.length===0&&(g=h);var _=g.reduce(function(p,m){return p[m]=kt(e,{placement:m,boundary:r,rootBoundary:i,padding:o})[X(m)],p},{});return Object.keys(_).sort(function(p,m){return _[p]-_[m]})}function Hi(e){if(X(e)===$e)return[];var t=ve(e);return[os(e),t,os(t)]}function Fi(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,u=n.fallbackPlacements,c=n.padding,l=n.boundary,h=n.rootBoundary,g=n.altBoundary,_=n.flipVariations,p=_===void 0?!0:_,m=n.allowedAutoPlacements,b=t.options.placement,y=X(b),T=y===b,S=u||(T||!p?[ve(b)]:Hi(b)),v=[b].concat(S).reduce(function(St,it){return St.concat(X(it)===$e?Vi(t,{placement:it,boundary:l,rootBoundary:h,padding:c,flipVariations:p,allowedAutoPlacements:m}):it)},[]),w=t.rects.reference,O=t.rects.popper,C=new Map,R=!0,L=v[0],N=0;N=0,mt=pt?"width":"height",k=kt(t,{placement:$,boundary:l,rootBoundary:h,altBoundary:g,padding:c}),Y=pt?I?H:x:I?V:P;w[mt]>O[mt]&&(Y=ve(Y));var ce=ve(Y),_t=[];if(i&&_t.push(k[z]<=0),a&&_t.push(k[Y]<=0,k[ce]<=0),_t.every(function(St){return St})){L=$,R=!1;break}C.set($,_t)}if(R)for(var le=p?3:1,ze=function(it){var Yt=v.find(function(fe){var gt=C.get(fe);if(gt)return gt.slice(0,it).every(function(Ye){return Ye})});if(Yt)return L=Yt,"break"},zt=le;zt>0;zt--){var ue=ze(zt);if(ue==="break")break}t.placement!==L&&(t.modifiersData[s]._skip=!0,t.placement=L,t.reset=!0)}}const mr={name:"flip",enabled:!0,phase:"main",fn:Fi,requiresIfExists:["offset"],data:{_skip:!1}};function cs(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 ls(e){return[P,H,V,x].some(function(t){return e[t]>=0})}function Bi(e){var t=e.state,n=e.name,s=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,o=kt(t,{elementContext:"reference"}),a=kt(t,{altBoundary:!0}),u=cs(o,s),c=cs(a,r,i),l=ls(u),h=ls(c);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:l,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":h})}const _r={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Bi};function ji(e,t,n){var s=X(e),r=[x,P].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,[x,H].indexOf(s)>=0?{x:a,y:o}:{x:o,y:a}}function Wi(e){var t=e.state,n=e.options,s=e.name,r=n.offset,i=r===void 0?[0,0]:r,o=Cn.reduce(function(l,h){return l[h]=ji(h,t.rects,i),l},{}),a=o[t.placement],u=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[s]=o}const gr={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Wi};function Ui(e){var t=e.state,n=e.name;t.modifiersData[n]=pr({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const kn={name:"popperOffsets",enabled:!0,phase:"read",fn:Ui,data:{}};function Ki(e){return e==="x"?"y":"x"}function zi(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,u=n.boundary,c=n.rootBoundary,l=n.altBoundary,h=n.padding,g=n.tether,_=g===void 0?!0:g,p=n.tetherOffset,m=p===void 0?0:p,b=kt(t,{boundary:u,rootBoundary:c,padding:h,altBoundary:l}),y=X(t.placement),T=Mt(t.placement),S=!T,v=Rn(y),w=Ki(v),O=t.modifiersData.popperOffsets,C=t.rects.reference,R=t.rects.popper,L=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,N=typeof L=="number"?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,z={x:0,y:0};if(O){if(i){var I,pt=v==="y"?P:x,mt=v==="y"?V:H,k=v==="y"?"height":"width",Y=O[v],ce=Y+b[pt],_t=Y-b[mt],le=_?-R[k]/2:0,ze=T===At?C[k]:R[k],zt=T===At?-R[k]:-C[k],ue=t.elements.arrow,St=_&&ue?Ln(ue):{width:0,height:0},it=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:lr(),Yt=it[pt],fe=it[mt],gt=Jt(0,C[k],St[k]),Ye=S?C[k]/2-le-gt-Yt-N.mainAxis:ze-gt-Yt-N.mainAxis,hi=S?-C[k]/2+le+gt+fe+N.mainAxis:zt+gt+fe+N.mainAxis,qe=t.elements.arrow&&ee(t.elements.arrow),pi=qe?v==="y"?qe.clientTop||0:qe.clientLeft||0:0,Gn=(I=$==null?void 0:$[v])!=null?I:0,mi=Y+Ye-Gn-pi,_i=Y+hi-Gn,Xn=Jt(_?Ce(ce,mi):ce,Y,_?yt(_t,_i):_t);O[v]=Xn,z[v]=Xn-Y}if(a){var Jn,gi=v==="x"?P:x,Ei=v==="x"?V:H,Et=O[w],de=w==="y"?"height":"width",Qn=Et+b[gi],Zn=Et-b[Ei],Ge=[P,x].indexOf(y)!==-1,ts=(Jn=$==null?void 0:$[w])!=null?Jn:0,es=Ge?Qn:Et-C[de]-R[de]-ts+N.altAxis,ns=Ge?Et+C[de]+R[de]-ts-N.altAxis:Zn,ss=_&&Ge?Ti(es,Et,ns):Jt(_?es:Qn,Et,_?ns:Zn);O[w]=ss,z[w]=ss-Et}t.modifiersData[s]=z}}const Er={name:"preventOverflow",enabled:!0,phase:"main",fn:zi,requiresIfExists:["offset"]};function Yi(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function qi(e){return e===F(e)||!B(e)?Pn(e):Yi(e)}function Gi(e){var t=e.getBoundingClientRect(),n=Pt(t.width)/e.offsetWidth||1,s=Pt(t.height)/e.offsetHeight||1;return n!==1||s!==1}function Xi(e,t,n){n===void 0&&(n=!1);var s=B(t),r=B(t)&&Gi(t),i=ft(t),o=xt(e,r,n),a={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(s||!s&&!n)&&((Q(t)!=="body"||Mn(i))&&(a=qi(t)),B(t)?(u=xt(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):i&&(u.x=xn(i))),{x:o.left+a.scrollLeft-u.x,y:o.top+a.scrollTop-u.y,width:o.width,height:o.height}}function Ji(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 u=t.get(a);u&&r(u)}}),s.push(i)}return e.forEach(function(i){n.has(i.name)||r(i)}),s}function Qi(e){var t=Ji(e);return or.reduce(function(n,s){return n.concat(t.filter(function(r){return r.phase===s}))},[])}function Zi(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function to(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 us={placement:"bottom",modifiers:[],strategy:"absolute"};function fs(){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),ao=e=>e==null?`${e}`:Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase(),co=e=>{do e+=Math.floor(Math.random()*io);while(document.getElementById(e));return e},lo=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))*oo)},yr=e=>{e.dispatchEvent(new Event(En))},tt=e=>!e||typeof e!="object"?!1:(typeof e.jquery<"u"&&(e=e[0]),typeof e.nodeType<"u"),ct=e=>tt(e)?e.jquery?e[0]:e:typeof e=="string"&&e.length>0?document.querySelector(vr(e)):null,jt=e=>{if(!tt(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},lt=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",Ar=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?Ar(e.parentNode):null},Ne=()=>{},ne=e=>{e.offsetHeight},Tr=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Je=[],uo=e=>{document.readyState==="loading"?(Je.length||document.addEventListener("DOMContentLoaded",()=>{for(const t of Je)t()}),Je.push(e)):e()},W=()=>document.documentElement.dir==="rtl",K=e=>{uo(()=>{const t=Tr();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)}})},M=(e,t=[],n=e)=>typeof e=="function"?e(...t):n,wr=(e,t,n=!0)=>{if(!n){M(e);return}const s=5,r=lo(t)+s;let i=!1;const o=({target:a})=>{a===t&&(i=!0,t.removeEventListener(En,o),M(e))};t.addEventListener(En,o),setTimeout(()=>{i||yr(t)},r)},Hn=(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))])},fo=/[^.]*(?=\..*)\.|.*/,ho=/\..*/,po=/::\d+$/,Qe={};let ds=1;const Or={mouseenter:"mouseover",mouseleave:"mouseout"},mo=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 Sr(e,t){return t&&`${t}::${ds++}`||e.uidEvent||ds++}function Cr(e){const t=Sr(e);return e.uidEvent=t,Qe[t]=Qe[t]||{},Qe[t]}function _o(e,t){return function n(s){return Fn(s,{delegateTarget:e}),n.oneOff&&d.off(e,s.type,t),t.apply(e,[s])}}function go(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 Fn(r,{delegateTarget:o}),s.oneOff&&d.off(e,r.type,t,n),n.apply(o,[r])}}function Nr(e,t,n=null){return Object.values(e).find(s=>s.callable===t&&s.delegationSelector===n)}function Dr(e,t,n){const s=typeof t=="string",r=s?n:t||n;let i=Lr(e);return mo.has(i)||(i=e),[s,r,i]}function hs(e,t,n,s,r){if(typeof t!="string"||!e)return;let[i,o,a]=Dr(t,n,s);t in Or&&(o=(p=>function(m){if(!m.relatedTarget||m.relatedTarget!==m.delegateTarget&&!m.delegateTarget.contains(m.relatedTarget))return p.call(this,m)})(o));const u=Cr(e),c=u[a]||(u[a]={}),l=Nr(c,o,i?n:null);if(l){l.oneOff=l.oneOff&&r;return}const h=Sr(o,t.replace(fo,"")),g=i?go(e,n,o):_o(e,o);g.delegationSelector=i?n:null,g.callable=o,g.oneOff=r,g.uidEvent=h,c[h]=g,e.addEventListener(a,g,i)}function bn(e,t,n,s,r){const i=Nr(t[n],s,r);i&&(e.removeEventListener(n,i,!!r),delete t[n][i.uidEvent])}function Eo(e,t,n,s){const r=t[n]||{};for(const[i,o]of Object.entries(r))i.includes(s)&&bn(e,t,n,o.callable,o.delegationSelector)}function Lr(e){return e=e.replace(ho,""),Or[e]||e}const d={on(e,t,n,s){hs(e,t,n,s,!1)},one(e,t,n,s){hs(e,t,n,s,!0)},off(e,t,n,s){if(typeof t!="string"||!e)return;const[r,i,o]=Dr(t,n,s),a=o!==t,u=Cr(e),c=u[o]||{},l=t.startsWith(".");if(typeof i<"u"){if(!Object.keys(c).length)return;bn(e,u,o,i,r?n:null);return}if(l)for(const h of Object.keys(u))Eo(e,u,h,t.slice(1));for(const[h,g]of Object.entries(c)){const _=h.replace(po,"");(!a||t.includes(_))&&bn(e,u,o,g.callable,g.delegationSelector)}},trigger(e,t,n){if(typeof t!="string"||!e)return null;const s=Tr(),r=Lr(t),i=t!==r;let o=null,a=!0,u=!0,c=!1;i&&s&&(o=s.Event(t,n),s(e).trigger(o),a=!o.isPropagationStopped(),u=!o.isImmediatePropagationStopped(),c=o.isDefaultPrevented());const l=Fn(new Event(t,{bubbles:a,cancelable:!0}),n);return c&&l.preventDefault(),u&&e.dispatchEvent(l),l.defaultPrevented&&o&&o.preventDefault(),l}};function Fn(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 ps(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 Ze(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}const et={setDataAttribute(e,t,n){e.setAttribute(`data-bs-${Ze(t)}`,n)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${Ze(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,r.length),t[r]=ps(e.dataset[s])}return t},getDataAttribute(e,t){return ps(e.getAttribute(`data-bs-${Ze(t)}`))}};class se{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=tt(n)?et.getDataAttribute(n,"config"):{};return{...this.constructor.Default,...typeof s=="object"?s:{},...tt(n)?et.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=tt(i)?"element":ao(i);if(!new RegExp(r).test(o))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${s}" provided type "${o}" but expected type "${r}".`)}}}const bo="5.3.0";class q extends se{constructor(t,n){super(),t=ct(t),t&&(this._element=t,this._config=this._getConfig(n),Xe.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Xe.remove(this._element,this.constructor.DATA_KEY),d.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,n,s=!0){wr(t,n,s)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return Xe.get(ct(t),this.DATA_KEY)}static getOrCreateInstance(t,n={}){return this.getInstance(t)||new this(t,typeof n=="object"?n:null)}static get VERSION(){return bo}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 tn=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 vr(t)},E={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=>!lt(n)&&jt(n))},getSelectorFromElement(e){const t=tn(e);return t&&E.findOne(t)?t:null},getElementFromSelector(e){const t=tn(e);return t?E.findOne(t):null},getMultipleElementsFromSelector(e){const t=tn(e);return t?E.find(t):[]}},xe=(e,t="hide")=>{const n=`click.dismiss${e.EVENT_KEY}`,s=e.NAME;d.on(document,n,`[data-bs-dismiss="${s}"]`,function(r){if(["A","AREA"].includes(this.tagName)&&r.preventDefault(),lt(this))return;const i=E.getElementFromSelector(this)||this.closest(`.${s}`);e.getOrCreateInstance(i)[t]()})},vo="alert",yo="bs.alert",Rr=`.${yo}`,Ao=`close${Rr}`,To=`closed${Rr}`,wo="fade",Oo="show";class Me extends q{static get NAME(){return vo}close(){if(d.trigger(this._element,Ao).defaultPrevented)return;this._element.classList.remove(Oo);const n=this._element.classList.contains(wo);this._queueCallback(()=>this._destroyElement(),this._element,n)}_destroyElement(){this._element.remove(),d.trigger(this._element,To),this.dispose()}static jQueryInterface(t){return this.each(function(){const n=Me.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)}})}}xe(Me,"close");K(Me);const So="button",Co="bs.button",No=`.${Co}`,Do=".data-api",Lo="active",ms='[data-bs-toggle="button"]',Ro=`click${No}${Do}`;class ke extends q{static get NAME(){return So}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(Lo))}static jQueryInterface(t){return this.each(function(){const n=ke.getOrCreateInstance(this);t==="toggle"&&n[t]()})}}d.on(document,Ro,ms,e=>{e.preventDefault();const t=e.target.closest(ms);ke.getOrCreateInstance(t).toggle()});K(ke);const $o="swipe",Wt=".bs.swipe",Io=`touchstart${Wt}`,Po=`touchmove${Wt}`,xo=`touchend${Wt}`,Mo=`pointerdown${Wt}`,ko=`pointerup${Wt}`,Vo="touch",Ho="pen",Fo="pointer-event",Bo=40,jo={endCallback:null,leftCallback:null,rightCallback:null},Wo={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class De extends se{constructor(t,n){super(),this._element=t,!(!t||!De.isSupported())&&(this._config=this._getConfig(n),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return jo}static get DefaultType(){return Wo}static get NAME(){return $o}dispose(){d.off(this._element,Wt)}_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(),M(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<=Bo)return;const n=t/this._deltaX;this._deltaX=0,n&&M(n>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(d.on(this._element,Mo,t=>this._start(t)),d.on(this._element,ko,t=>this._end(t)),this._element.classList.add(Fo)):(d.on(this._element,Io,t=>this._start(t)),d.on(this._element,Po,t=>this._move(t)),d.on(this._element,xo,t=>this._end(t)))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&(t.pointerType===Ho||t.pointerType===Vo)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Uo="carousel",Ko="bs.carousel",dt=`.${Ko}`,$r=".data-api",zo="ArrowLeft",Yo="ArrowRight",qo=500,qt="next",Ct="prev",Lt="left",ye="right",Go=`slide${dt}`,en=`slid${dt}`,Xo=`keydown${dt}`,Jo=`mouseenter${dt}`,Qo=`mouseleave${dt}`,Zo=`dragstart${dt}`,ta=`load${dt}${$r}`,ea=`click${dt}${$r}`,Ir="carousel",pe="active",na="slide",sa="carousel-item-end",ra="carousel-item-start",ia="carousel-item-next",oa="carousel-item-prev",Pr=".active",xr=".carousel-item",aa=Pr+xr,ca=".carousel-item img",la=".carousel-indicators",ua="[data-bs-slide], [data-bs-slide-to]",fa='[data-bs-ride="carousel"]',da={[zo]:ye,[Yo]:Lt},ha={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},pa={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class re extends q{constructor(t,n){super(t,n),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=E.findOne(la,this._element),this._addEventListeners(),this._config.ride===Ir&&this.cycle()}static get Default(){return ha}static get DefaultType(){return pa}static get NAME(){return Uo}next(){this._slide(qt)}nextWhenVisible(){!document.hidden&&jt(this._element)&&this.next()}prev(){this._slide(Ct)}pause(){this._isSliding&&yr(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){d.one(this._element,en,()=>this.cycle());return}this.cycle()}}to(t){const n=this._getItems();if(t>n.length-1||t<0)return;if(this._isSliding){d.one(this._element,en,()=>this.to(t));return}const s=this._getItemIndex(this._getActive());if(s===t)return;const r=t>s?qt:Ct;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&&d.on(this._element,Xo,t=>this._keydown(t)),this._config.pause==="hover"&&(d.on(this._element,Jo,()=>this.pause()),d.on(this._element,Qo,()=>this._maybeEnableCycle())),this._config.touch&&De.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const s of E.find(ca,this._element))d.on(s,Zo,r=>r.preventDefault());const n={leftCallback:()=>this._slide(this._directionToOrder(Lt)),rightCallback:()=>this._slide(this._directionToOrder(ye)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),qo+this._config.interval))}};this._swipeHelper=new De(this._element,n)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const n=da[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=E.findOne(Pr,this._indicatorsElement);n.classList.remove(pe),n.removeAttribute("aria-current");const s=E.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);s&&(s.classList.add(pe),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===qt,i=n||Hn(this._getItems(),s,r,this._config.wrap);if(i===s)return;const o=this._getItemIndex(i),a=_=>d.trigger(this._element,_,{relatedTarget:i,direction:this._orderToDirection(t),from:this._getItemIndex(s),to:o});if(a(Go).defaultPrevented||!s||!i)return;const c=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(o),this._activeElement=i;const l=r?ra:sa,h=r?ia:oa;i.classList.add(h),ne(i),s.classList.add(l),i.classList.add(l);const g=()=>{i.classList.remove(l,h),i.classList.add(pe),s.classList.remove(pe,h,l),this._isSliding=!1,a(en)};this._queueCallback(g,s,this._isAnimated()),c&&this.cycle()}_isAnimated(){return this._element.classList.contains(na)}_getActive(){return E.findOne(aa,this._element)}_getItems(){return E.find(xr,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return W()?t===Lt?Ct:qt:t===Lt?qt:Ct}_orderToDirection(t){return W()?t===Ct?Lt:ye:t===Ct?ye:Lt}static jQueryInterface(t){return this.each(function(){const n=re.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]()}})}}d.on(document,ea,ua,function(e){const t=E.getElementFromSelector(this);if(!t||!t.classList.contains(Ir))return;e.preventDefault();const n=re.getOrCreateInstance(t),s=this.getAttribute("data-bs-slide-to");if(s){n.to(s),n._maybeEnableCycle();return}if(et.getDataAttribute(this,"slide")==="next"){n.next(),n._maybeEnableCycle();return}n.prev(),n._maybeEnableCycle()});d.on(window,ta,()=>{const e=E.find(fa);for(const t of e)re.getOrCreateInstance(t)});K(re);const ma="collapse",_a="bs.collapse",ie=`.${_a}`,ga=".data-api",Ea=`show${ie}`,ba=`shown${ie}`,va=`hide${ie}`,ya=`hidden${ie}`,Aa=`click${ie}${ga}`,nn="show",$t="collapse",me="collapsing",Ta="collapsed",wa=`:scope .${$t} .${$t}`,Oa="collapse-horizontal",Sa="width",Ca="height",Na=".collapse.show, .collapse.collapsing",vn='[data-bs-toggle="collapse"]',Da={parent:null,toggle:!0},La={parent:"(null|element)",toggle:"boolean"};class Zt extends q{constructor(t,n){super(t,n),this._isTransitioning=!1,this._triggerArray=[];const s=E.find(vn);for(const r of s){const i=E.getSelectorFromElement(r),o=E.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 Da}static get DefaultType(){return La}static get NAME(){return ma}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(Na).filter(a=>a!==this._element).map(a=>Zt.getOrCreateInstance(a,{toggle:!1}))),t.length&&t[0]._isTransitioning||d.trigger(this._element,Ea).defaultPrevented)return;for(const a of t)a.hide();const s=this._getDimension();this._element.classList.remove($t),this._element.classList.add(me),this._element.style[s]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const r=()=>{this._isTransitioning=!1,this._element.classList.remove(me),this._element.classList.add($t,nn),this._element.style[s]="",d.trigger(this._element,ba)},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()||d.trigger(this._element,va).defaultPrevented)return;const n=this._getDimension();this._element.style[n]=`${this._element.getBoundingClientRect()[n]}px`,ne(this._element),this._element.classList.add(me),this._element.classList.remove($t,nn);for(const r of this._triggerArray){const i=E.getElementFromSelector(r);i&&!this._isShown(i)&&this._addAriaAndCollapsedClass([r],!1)}this._isTransitioning=!0;const s=()=>{this._isTransitioning=!1,this._element.classList.remove(me),this._element.classList.add($t),d.trigger(this._element,ya)};this._element.style[n]="",this._queueCallback(s,this._element,!0)}_isShown(t=this._element){return t.classList.contains(nn)}_configAfterMerge(t){return t.toggle=!!t.toggle,t.parent=ct(t.parent),t}_getDimension(){return this._element.classList.contains(Oa)?Sa:Ca}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(vn);for(const n of t){const s=E.getElementFromSelector(n);s&&this._addAriaAndCollapsedClass([n],this._isShown(s))}}_getFirstLevelChildren(t){const n=E.find(wa,this._config.parent);return E.find(t,this._config.parent).filter(s=>!n.includes(s))}_addAriaAndCollapsedClass(t,n){if(t.length)for(const s of t)s.classList.toggle(Ta,!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=Zt.getOrCreateInstance(this,n);if(typeof t=="string"){if(typeof s[t]>"u")throw new TypeError(`No method named "${t}"`);s[t]()}})}}d.on(document,Aa,vn,function(e){(e.target.tagName==="A"||e.delegateTarget&&e.delegateTarget.tagName==="A")&&e.preventDefault();for(const t of E.getMultipleElementsFromSelector(this))Zt.getOrCreateInstance(t,{toggle:!1}).toggle()});K(Zt);const _s="dropdown",Ra="bs.dropdown",wt=`.${Ra}`,Bn=".data-api",$a="Escape",gs="Tab",Ia="ArrowUp",Es="ArrowDown",Pa=2,xa=`hide${wt}`,Ma=`hidden${wt}`,ka=`show${wt}`,Va=`shown${wt}`,Mr=`click${wt}${Bn}`,kr=`keydown${wt}${Bn}`,Ha=`keyup${wt}${Bn}`,Rt="show",Fa="dropup",Ba="dropend",ja="dropstart",Wa="dropup-center",Ua="dropdown-center",bt='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Ka=`${bt}.${Rt}`,Ae=".dropdown-menu",za=".navbar",Ya=".navbar-nav",qa=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Ga=W()?"top-end":"top-start",Xa=W()?"top-start":"top-end",Ja=W()?"bottom-end":"bottom-start",Qa=W()?"bottom-start":"bottom-end",Za=W()?"left-start":"right-start",tc=W()?"right-start":"left-start",ec="top",nc="bottom",sc={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},rc={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class J extends q{constructor(t,n){super(t,n),this._popper=null,this._parent=this._element.parentNode,this._menu=E.next(this._element,Ae)[0]||E.prev(this._element,Ae)[0]||E.findOne(Ae,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return sc}static get DefaultType(){return rc}static get NAME(){return _s}toggle(){return this._isShown()?this.hide():this.show()}show(){if(lt(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!d.trigger(this._element,ka,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(Ya))for(const s of[].concat(...document.body.children))d.on(s,"mouseover",Ne);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Rt),this._element.classList.add(Rt),d.trigger(this._element,Va,t)}}hide(){if(lt(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!d.trigger(this._element,xa,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const s of[].concat(...document.body.children))d.off(s,"mouseover",Ne);this._popper&&this._popper.destroy(),this._menu.classList.remove(Rt),this._element.classList.remove(Rt),this._element.setAttribute("aria-expanded","false"),et.removeDataAttribute(this._menu,"popper"),d.trigger(this._element,Ma,t)}}_getConfig(t){if(t=super._getConfig(t),typeof t.reference=="object"&&!tt(t.reference)&&typeof t.reference.getBoundingClientRect!="function")throw new TypeError(`${_s.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(typeof br>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;this._config.reference==="parent"?t=this._parent:tt(this._config.reference)?t=ct(this._config.reference):typeof this._config.reference=="object"&&(t=this._config.reference);const n=this._getPopperConfig();this._popper=Vn(t,this._menu,n)}_isShown(){return this._menu.classList.contains(Rt)}_getPlacement(){const t=this._parent;if(t.classList.contains(Ba))return Za;if(t.classList.contains(ja))return tc;if(t.classList.contains(Wa))return ec;if(t.classList.contains(Ua))return nc;const n=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return t.classList.contains(Fa)?n?Xa:Ga:n?Qa:Ja}_detectNavbar(){return this._element.closest(za)!==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")&&(et.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...M(this._config.popperConfig,[t])}}_selectMenuItem({key:t,target:n}){const s=E.find(qa,this._menu).filter(r=>jt(r));s.length&&Hn(s,n,t===Es,!s.includes(n)).focus()}static jQueryInterface(t){return this.each(function(){const n=J.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===Pa||t.type==="keyup"&&t.key!==gs)return;const n=E.find(Ka);for(const s of n){const r=J.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===gs||/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===$a,r=[Ia,Es].includes(t.key);if(!r&&!s||n&&!s)return;t.preventDefault();const i=this.matches(bt)?this:E.prev(this,bt)[0]||E.next(this,bt)[0]||E.findOne(bt,t.delegateTarget.parentNode),o=J.getOrCreateInstance(i);if(r){t.stopPropagation(),o.show(),o._selectMenuItem(t);return}o._isShown()&&(t.stopPropagation(),o.hide(),i.focus())}}d.on(document,kr,bt,J.dataApiKeydownHandler);d.on(document,kr,Ae,J.dataApiKeydownHandler);d.on(document,Mr,J.clearMenus);d.on(document,Ha,J.clearMenus);d.on(document,Mr,bt,function(e){e.preventDefault(),J.getOrCreateInstance(this).toggle()});K(J);const Vr="backdrop",ic="fade",bs="show",vs=`mousedown.bs.${Vr}`,oc={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},ac={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Hr extends se{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return oc}static get DefaultType(){return ac}static get NAME(){return Vr}show(t){if(!this._config.isVisible){M(t);return}this._append();const n=this._getElement();this._config.isAnimated&&ne(n),n.classList.add(bs),this._emulateAnimation(()=>{M(t)})}hide(t){if(!this._config.isVisible){M(t);return}this._getElement().classList.remove(bs),this._emulateAnimation(()=>{this.dispose(),M(t)})}dispose(){this._isAppended&&(d.off(this._element,vs),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(ic),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=ct(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),d.on(t,vs,()=>{M(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(t){wr(t,this._getElement(),this._config.isAnimated)}}const cc="focustrap",lc="bs.focustrap",Le=`.${lc}`,uc=`focusin${Le}`,fc=`keydown.tab${Le}`,dc="Tab",hc="forward",ys="backward",pc={autofocus:!0,trapElement:null},mc={autofocus:"boolean",trapElement:"element"};class Fr extends se{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return pc}static get DefaultType(){return mc}static get NAME(){return cc}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),d.off(document,Le),d.on(document,uc,t=>this._handleFocusin(t)),d.on(document,fc,t=>this._handleKeydown(t)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,d.off(document,Le))}_handleFocusin(t){const{trapElement:n}=this._config;if(t.target===document||t.target===n||n.contains(t.target))return;const s=E.focusableChildren(n);s.length===0?n.focus():this._lastTabNavDirection===ys?s[s.length-1].focus():s[0].focus()}_handleKeydown(t){t.key===dc&&(this._lastTabNavDirection=t.shiftKey?ys:hc)}}const As=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Ts=".sticky-top",_e="padding-right",ws="margin-right";class yn{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,_e,n=>n+t),this._setElementAttributes(As,_e,n=>n+t),this._setElementAttributes(Ts,ws,n=>n-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,_e),this._resetElementAttributes(As,_e),this._resetElementAttributes(Ts,ws)}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&&et.setDataAttribute(t,n,s)}_resetElementAttributes(t,n){const s=r=>{const i=et.getDataAttribute(r,n);if(i===null){r.style.removeProperty(n);return}et.removeDataAttribute(r,n),r.style.setProperty(n,i)};this._applyManipulationCallback(t,s)}_applyManipulationCallback(t,n){if(tt(t)){n(t);return}for(const s of E.find(t,this._element))n(s)}}const _c="modal",gc="bs.modal",U=`.${gc}`,Ec=".data-api",bc="Escape",vc=`hide${U}`,yc=`hidePrevented${U}`,Br=`hidden${U}`,jr=`show${U}`,Ac=`shown${U}`,Tc=`resize${U}`,wc=`click.dismiss${U}`,Oc=`mousedown.dismiss${U}`,Sc=`keydown.dismiss${U}`,Cc=`click${U}${Ec}`,Os="modal-open",Nc="fade",Ss="show",sn="modal-static",Dc=".modal.show",Lc=".modal-dialog",Rc=".modal-body",$c='[data-bs-toggle="modal"]',Ic={backdrop:!0,focus:!0,keyboard:!0},Pc={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Vt extends q{constructor(t,n){super(t,n),this._dialog=E.findOne(Lc,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new yn,this._addEventListeners()}static get Default(){return Ic}static get DefaultType(){return Pc}static get NAME(){return _c}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||d.trigger(this._element,jr,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Os),this._adjustDialog(),this._backdrop.show(()=>this._showElement(t)))}hide(){!this._isShown||this._isTransitioning||d.trigger(this._element,vc).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Ss),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){d.off(window,U),d.off(this._dialog,U),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Hr({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Fr({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=E.findOne(Rc,this._dialog);n&&(n.scrollTop=0),ne(this._element),this._element.classList.add(Ss);const s=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,d.trigger(this._element,Ac,{relatedTarget:t})};this._queueCallback(s,this._dialog,this._isAnimated())}_addEventListeners(){d.on(this._element,Sc,t=>{if(t.key===bc){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),d.on(window,Tc,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),d.on(this._element,Oc,t=>{d.one(this._element,wc,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(Os),this._resetAdjustments(),this._scrollBar.reset(),d.trigger(this._element,Br)})}_isAnimated(){return this._element.classList.contains(Nc)}_triggerBackdropTransition(){if(d.trigger(this._element,yc).defaultPrevented)return;const n=this._element.scrollHeight>document.documentElement.clientHeight,s=this._element.style.overflowY;s==="hidden"||this._element.classList.contains(sn)||(n||(this._element.style.overflowY="hidden"),this._element.classList.add(sn),this._queueCallback(()=>{this._element.classList.remove(sn),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=W()?"paddingLeft":"paddingRight";this._element.style[r]=`${n}px`}if(!s&&t){const r=W()?"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=Vt.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof s[t]>"u")throw new TypeError(`No method named "${t}"`);s[t](n)}})}}d.on(document,Cc,$c,function(e){const t=E.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),d.one(t,jr,r=>{r.defaultPrevented||d.one(t,Br,()=>{jt(this)&&this.focus()})});const n=E.findOne(Dc);n&&Vt.getInstance(n).hide(),Vt.getOrCreateInstance(t).toggle(this)});xe(Vt);K(Vt);const xc="offcanvas",Mc="bs.offcanvas",rt=`.${Mc}`,Wr=".data-api",kc=`load${rt}${Wr}`,Vc="Escape",Cs="show",Ns="showing",Ds="hiding",Hc="offcanvas-backdrop",Ur=".offcanvas.show",Fc=`show${rt}`,Bc=`shown${rt}`,jc=`hide${rt}`,Ls=`hidePrevented${rt}`,Kr=`hidden${rt}`,Wc=`resize${rt}`,Uc=`click${rt}${Wr}`,Kc=`keydown.dismiss${rt}`,zc='[data-bs-toggle="offcanvas"]',Yc={backdrop:!0,keyboard:!0,scroll:!1},qc={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class ut extends q{constructor(t,n){super(t,n),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Yc}static get DefaultType(){return qc}static get NAME(){return xc}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||d.trigger(this._element,Fc,{relatedTarget:t}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new yn().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Ns);const s=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(Cs),this._element.classList.remove(Ns),d.trigger(this._element,Bc,{relatedTarget:t})};this._queueCallback(s,this._element,!0)}hide(){if(!this._isShown||d.trigger(this._element,jc).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(Cs,Ds),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new yn().reset(),d.trigger(this._element,Kr)};this._queueCallback(n,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=()=>{if(this._config.backdrop==="static"){d.trigger(this._element,Ls);return}this.hide()},n=!!this._config.backdrop;return new Hr({className:Hc,isVisible:n,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:n?t:null})}_initializeFocusTrap(){return new Fr({trapElement:this._element})}_addEventListeners(){d.on(this._element,Kc,t=>{if(t.key===Vc){if(this._config.keyboard){this.hide();return}d.trigger(this._element,Ls)}})}static jQueryInterface(t){return this.each(function(){const n=ut.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)}})}}d.on(document,Uc,zc,function(e){const t=E.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),lt(this))return;d.one(t,Kr,()=>{jt(this)&&this.focus()});const n=E.findOne(Ur);n&&n!==t&&ut.getInstance(n).hide(),ut.getOrCreateInstance(t).toggle(this)});d.on(window,kc,()=>{for(const e of E.find(Ur))ut.getOrCreateInstance(e).show()});d.on(window,Wc,()=>{for(const e of E.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(e).position!=="fixed"&&ut.getOrCreateInstance(e).hide()});xe(ut);K(ut);const Gc=/^aria-[\w-]*$/i,zr={"*":["class","dir","id","lang","role",Gc],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],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:[]},Xc=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Jc=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Qc=(e,t)=>{const n=e.nodeName.toLowerCase();return t.includes(n)?Xc.has(n)?!!Jc.test(e.nodeValue):!0:t.filter(s=>s instanceof RegExp).some(s=>s.test(n))};function Zc(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 u=[].concat(...o.attributes),c=[].concat(t["*"]||[],t[a]||[]);for(const l of u)Qc(l,c)||o.removeAttribute(l.nodeName)}return r.body.innerHTML}const tl="TemplateFactory",el={allowList:zr,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},nl={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},sl={entry:"(string|element|function|null)",selector:"(string|element)"};class rl extends se{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return el}static get DefaultType(){return nl}static get NAME(){return tl}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},sl)}_setContent(t,n,s){const r=E.findOne(s,t);if(r){if(n=this._resolvePossibleFunction(n),!n){r.remove();return}if(tt(n)){this._putElementInTemplate(ct(n),r);return}if(this._config.html){r.innerHTML=this._maybeSanitize(n);return}r.textContent=n}}_maybeSanitize(t){return this._config.sanitize?Zc(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return M(t,[this])}_putElementInTemplate(t,n){if(this._config.html){n.innerHTML="",n.append(t);return}n.textContent=t.textContent}}const il="tooltip",ol=new Set(["sanitize","allowList","sanitizeFn"]),rn="fade",al="modal",ge="show",cl=".tooltip-inner",Rs=`.${al}`,$s="hide.bs.modal",Gt="hover",on="focus",ll="click",ul="manual",fl="hide",dl="hidden",hl="show",pl="shown",ml="inserted",_l="click",gl="focusin",El="focusout",bl="mouseenter",vl="mouseleave",yl={AUTO:"auto",TOP:"top",RIGHT:W()?"left":"right",BOTTOM:"bottom",LEFT:W()?"right":"left"},Al={allowList:zr,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"},Tl={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 Ut extends q{constructor(t,n){if(typeof br>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");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 Al}static get DefaultType(){return Tl}static get NAME(){return il}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),d.off(this._element.closest(Rs),$s,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=d.trigger(this._element,this.constructor.eventName(hl)),s=(Ar(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),d.trigger(this._element,this.constructor.eventName(ml))),this._popper=this._createPopper(r),r.classList.add(ge),"ontouchstart"in document.documentElement)for(const a of[].concat(...document.body.children))d.on(a,"mouseover",Ne);const o=()=>{d.trigger(this._element,this.constructor.eventName(pl)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(o,this.tip,this._isAnimated())}hide(){if(!this._isShown()||d.trigger(this._element,this.constructor.eventName(fl)).defaultPrevented)return;if(this._getTipElement().classList.remove(ge),"ontouchstart"in document.documentElement)for(const r of[].concat(...document.body.children))d.off(r,"mouseover",Ne);this._activeTrigger[ll]=!1,this._activeTrigger[on]=!1,this._activeTrigger[Gt]=!1,this._isHovered=null;const s=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),d.trigger(this._element,this.constructor.eventName(dl)))};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(rn,ge),n.classList.add(`bs-${this.constructor.NAME}-auto`);const s=co(this.constructor.NAME).toString();return n.setAttribute("id",s),this._isAnimated()&&n.classList.add(rn),n}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new rl({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[cl]: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(rn)}_isShown(){return this.tip&&this.tip.classList.contains(ge)}_createPopper(t){const n=M(this._config.placement,[this,t,this._element]),s=yl[n.toUpperCase()];return Vn(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 M(t,[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,...M(this._config.popperConfig,[n])}}_setListeners(){const t=this._config.trigger.split(" ");for(const n of t)if(n==="click")d.on(this._element,this.constructor.eventName(_l),this._config.selector,s=>{this._initializeOnDelegatedTarget(s).toggle()});else if(n!==ul){const s=n===Gt?this.constructor.eventName(bl):this.constructor.eventName(gl),r=n===Gt?this.constructor.eventName(vl):this.constructor.eventName(El);d.on(this._element,s,this._config.selector,i=>{const o=this._initializeOnDelegatedTarget(i);o._activeTrigger[i.type==="focusin"?on:Gt]=!0,o._enter()}),d.on(this._element,r,this._config.selector,i=>{const o=this._initializeOnDelegatedTarget(i);o._activeTrigger[i.type==="focusout"?on:Gt]=o._element.contains(i.relatedTarget),o._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},d.on(this._element.closest(Rs),$s,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=et.getDataAttributes(this._element);for(const s of Object.keys(n))ol.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:ct(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=Ut.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof n[t]>"u")throw new TypeError(`No method named "${t}"`);n[t]()}})}}K(Ut);const wl="popover",Ol=".popover-header",Sl=".popover-body",Cl={...Ut.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},Nl={...Ut.DefaultType,content:"(null|string|element|function)"};class jn extends Ut{static get Default(){return Cl}static get DefaultType(){return Nl}static get NAME(){return wl}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[Ol]:this._getTitle(),[Sl]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){const n=jn.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof n[t]>"u")throw new TypeError(`No method named "${t}"`);n[t]()}})}}K(jn);const Dl="scrollspy",Ll="bs.scrollspy",Wn=`.${Ll}`,Rl=".data-api",$l=`activate${Wn}`,Is=`click${Wn}`,Il=`load${Wn}${Rl}`,Pl="dropdown-item",Nt="active",xl='[data-bs-spy="scroll"]',an="[href]",Ml=".nav, .list-group",Ps=".nav-link",kl=".nav-item",Vl=".list-group-item",Hl=`${Ps}, ${kl} > ${Ps}, ${Vl}`,Fl=".dropdown",Bl=".dropdown-toggle",jl={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Wl={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Ve extends q{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 jl}static get DefaultType(){return Wl}static get NAME(){return Dl}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=ct(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&&(d.off(this._config.target,Is),d.on(this._config.target,Is,an,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=E.find(an,this._config.target);for(const n of t){if(!n.hash||lt(n))continue;const s=E.findOne(decodeURI(n.hash),this._element);jt(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(Nt),this._activateParents(t),d.trigger(this._element,$l,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains(Pl)){E.findOne(Bl,t.closest(Fl)).classList.add(Nt);return}for(const n of E.parents(t,Ml))for(const s of E.prev(n,Hl))s.classList.add(Nt)}_clearActiveClass(t){t.classList.remove(Nt);const n=E.find(`${an}.${Nt}`,t);for(const s of n)s.classList.remove(Nt)}static jQueryInterface(t){return this.each(function(){const n=Ve.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]()}})}}d.on(window,Il,()=>{for(const e of E.find(xl))Ve.getOrCreateInstance(e)});K(Ve);const Ul="tab",Kl="bs.tab",Ot=`.${Kl}`,zl=`hide${Ot}`,Yl=`hidden${Ot}`,ql=`show${Ot}`,Gl=`shown${Ot}`,Xl=`click${Ot}`,Jl=`keydown${Ot}`,Ql=`load${Ot}`,Zl="ArrowLeft",xs="ArrowRight",tu="ArrowUp",Ms="ArrowDown",vt="active",ks="fade",cn="show",eu="dropdown",nu=".dropdown-toggle",su=".dropdown-menu",ln=":not(.dropdown-toggle)",ru='.list-group, .nav, [role="tablist"]',iu=".nav-item, .list-group-item",ou=`.nav-link${ln}, .list-group-item${ln}, [role="tab"]${ln}`,Yr='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',un=`${ou}, ${Yr}`,au=`.${vt}[data-bs-toggle="tab"], .${vt}[data-bs-toggle="pill"], .${vt}[data-bs-toggle="list"]`;class Ht extends q{constructor(t){super(t),this._parent=this._element.closest(ru),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),d.on(this._element,Jl,n=>this._keydown(n)))}static get NAME(){return Ul}show(){const t=this._element;if(this._elemIsActive(t))return;const n=this._getActiveElem(),s=n?d.trigger(n,zl,{relatedTarget:t}):null;d.trigger(t,ql,{relatedTarget:n}).defaultPrevented||s&&s.defaultPrevented||(this._deactivate(n,t),this._activate(t,n))}_activate(t,n){if(!t)return;t.classList.add(vt),this._activate(E.getElementFromSelector(t));const s=()=>{if(t.getAttribute("role")!=="tab"){t.classList.add(cn);return}t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),d.trigger(t,Gl,{relatedTarget:n})};this._queueCallback(s,t,t.classList.contains(ks))}_deactivate(t,n){if(!t)return;t.classList.remove(vt),t.blur(),this._deactivate(E.getElementFromSelector(t));const s=()=>{if(t.getAttribute("role")!=="tab"){t.classList.remove(cn);return}t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),d.trigger(t,Yl,{relatedTarget:n})};this._queueCallback(s,t,t.classList.contains(ks))}_keydown(t){if(![Zl,xs,tu,Ms].includes(t.key))return;t.stopPropagation(),t.preventDefault();const n=[xs,Ms].includes(t.key),s=Hn(this._getChildren().filter(r=>!lt(r)),t.target,n,!0);s&&(s.focus({preventScroll:!0}),Ht.getOrCreateInstance(s).show())}_getChildren(){return E.find(un,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=E.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(eu))return;const r=(i,o)=>{const a=E.findOne(i,s);a&&a.classList.toggle(o,n)};r(nu,vt),r(su,cn),s.setAttribute("aria-expanded",n)}_setAttributeIfNotExists(t,n,s){t.hasAttribute(n)||t.setAttribute(n,s)}_elemIsActive(t){return t.classList.contains(vt)}_getInnerElement(t){return t.matches(un)?t:E.findOne(un,t)}_getOuterElement(t){return t.closest(iu)||t}static jQueryInterface(t){return this.each(function(){const n=Ht.getOrCreateInstance(this);if(typeof t=="string"){if(n[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);n[t]()}})}}d.on(document,Xl,Yr,function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),!lt(this)&&Ht.getOrCreateInstance(this).show()});d.on(window,Ql,()=>{for(const e of E.find(au))Ht.getOrCreateInstance(e)});K(Ht);const cu="toast",lu="bs.toast",ht=`.${lu}`,uu=`mouseover${ht}`,fu=`mouseout${ht}`,du=`focusin${ht}`,hu=`focusout${ht}`,pu=`hide${ht}`,mu=`hidden${ht}`,_u=`show${ht}`,gu=`shown${ht}`,Eu="fade",Vs="hide",Ee="show",be="showing",bu={animation:"boolean",autohide:"boolean",delay:"number"},vu={animation:!0,autohide:!0,delay:5e3};class He extends q{constructor(t,n){super(t,n),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return vu}static get DefaultType(){return bu}static get NAME(){return cu}show(){if(d.trigger(this._element,_u).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(Eu);const n=()=>{this._element.classList.remove(be),d.trigger(this._element,gu),this._maybeScheduleHide()};this._element.classList.remove(Vs),ne(this._element),this._element.classList.add(Ee,be),this._queueCallback(n,this._element,this._config.animation)}hide(){if(!this.isShown()||d.trigger(this._element,pu).defaultPrevented)return;const n=()=>{this._element.classList.add(Vs),this._element.classList.remove(be,Ee),d.trigger(this._element,mu)};this._element.classList.add(be),this._queueCallback(n,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Ee),super.dispose()}isShown(){return this._element.classList.contains(Ee)}_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(){d.on(this._element,uu,t=>this._onInteraction(t,!0)),d.on(this._element,fu,t=>this._onInteraction(t,!1)),d.on(this._element,du,t=>this._onInteraction(t,!0)),d.on(this._element,hu,t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){const n=He.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof n[t]>"u")throw new TypeError(`No method named "${t}"`);n[t](this)}})}}xe(He);K(He);function qr(e,t){return function(){return e.apply(t,arguments)}}const{toString:yu}=Object.prototype,{getPrototypeOf:Un}=Object,Fe=(e=>t=>{const n=yu.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Z=e=>(e=e.toLowerCase(),t=>Fe(t)===e),Be=e=>t=>typeof t===e,{isArray:Kt}=Array,te=Be("undefined");function Au(e){return e!==null&&!te(e)&&e.constructor!==null&&!te(e.constructor)&&j(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Gr=Z("ArrayBuffer");function Tu(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Gr(e.buffer),t}const wu=Be("string"),j=Be("function"),Xr=Be("number"),je=e=>e!==null&&typeof e=="object",Ou=e=>e===!0||e===!1,Te=e=>{if(Fe(e)!=="object")return!1;const t=Un(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Su=Z("Date"),Cu=Z("File"),Nu=Z("Blob"),Du=Z("FileList"),Lu=e=>je(e)&&j(e.pipe),Ru=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||j(e.append)&&((t=Fe(e))==="formdata"||t==="object"&&j(e.toString)&&e.toString()==="[object FormData]"))},$u=Z("URLSearchParams"),Iu=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function oe(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,r;if(typeof e!="object"&&(e=[e]),Kt(e))for(s=0,r=e.length;s0;)if(r=n[s],t===r.toLowerCase())return r;return null}const Qr=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Zr=e=>!te(e)&&e!==Qr;function An(){const{caseless:e}=Zr(this)&&this||{},t={},n=(s,r)=>{const i=e&&Jr(t,r)||r;Te(t[i])&&Te(s)?t[i]=An(t[i],s):Te(s)?t[i]=An({},s):Kt(s)?t[i]=s.slice():t[i]=s};for(let s=0,r=arguments.length;s(oe(t,(r,i)=>{n&&j(r)?e[i]=qr(r,n):e[i]=r},{allOwnKeys:s}),e),xu=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Mu=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},ku=(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&&Un(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Vu=(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},Hu=e=>{if(!e)return null;if(Kt(e))return e;let t=e.length;if(!Xr(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Fu=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Un(Uint8Array)),Bu=(e,t)=>{const s=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=s.next())&&!r.done;){const i=r.value;t.call(e,i[0],i[1])}},ju=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},Wu=Z("HTMLFormElement"),Uu=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,r){return s.toUpperCase()+r}),Hs=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Ku=Z("RegExp"),ti=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};oe(n,(r,i)=>{t(r,i,e)!==!1&&(s[i]=r)}),Object.defineProperties(e,s)},zu=e=>{ti(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+"'")})}})},Yu=(e,t)=>{const n={},s=r=>{r.forEach(i=>{n[i]=!0})};return Kt(e)?s(e):s(String(e).split(t)),n},qu=()=>{},Gu=(e,t)=>(e=+e,Number.isFinite(e)?e:t),fn="abcdefghijklmnopqrstuvwxyz",Fs="0123456789",ei={DIGIT:Fs,ALPHA:fn,ALPHA_DIGIT:fn+fn.toUpperCase()+Fs},Xu=(e=16,t=ei.ALPHA_DIGIT)=>{let n="";const{length:s}=t;for(;e--;)n+=t[Math.random()*s|0];return n};function Ju(e){return!!(e&&j(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Qu=e=>{const t=new Array(10),n=(s,r)=>{if(je(s)){if(t.indexOf(s)>=0)return;if(!("toJSON"in s)){t[r]=s;const i=Kt(s)?[]:{};return oe(s,(o,a)=>{const u=n(o,r+1);!te(u)&&(i[a]=u)}),t[r]=void 0,i}}return s};return n(e,0)},Zu=Z("AsyncFunction"),tf=e=>e&&(je(e)||j(e))&&j(e.then)&&j(e.catch),f={isArray:Kt,isArrayBuffer:Gr,isBuffer:Au,isFormData:Ru,isArrayBufferView:Tu,isString:wu,isNumber:Xr,isBoolean:Ou,isObject:je,isPlainObject:Te,isUndefined:te,isDate:Su,isFile:Cu,isBlob:Nu,isRegExp:Ku,isFunction:j,isStream:Lu,isURLSearchParams:$u,isTypedArray:Fu,isFileList:Du,forEach:oe,merge:An,extend:Pu,trim:Iu,stripBOM:xu,inherits:Mu,toFlatObject:ku,kindOf:Fe,kindOfTest:Z,endsWith:Vu,toArray:Hu,forEachEntry:Bu,matchAll:ju,isHTMLForm:Wu,hasOwnProperty:Hs,hasOwnProp:Hs,reduceDescriptors:ti,freezeMethods:zu,toObjectSet:Yu,toCamelCase:Uu,noop:qu,toFiniteNumber:Gu,findKey:Jr,global:Qr,isContextDefined:Zr,ALPHABET:ei,generateString:Xu,isSpecCompliantForm:Ju,toJSONObject:Qu,isAsyncFn:Zu,isThenable:tf};function A(e,t,n,s,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),s&&(this.request=s),r&&(this.response=r)}f.inherits(A,Error,{toJSON:function(){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:f.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const ni=A.prototype,si={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{si[e]={value:e}});Object.defineProperties(A,si);Object.defineProperty(ni,"isAxiosError",{value:!0});A.from=(e,t,n,s,r,i)=>{const o=Object.create(ni);return f.toFlatObject(e,o,function(u){return u!==Error.prototype},a=>a!=="isAxiosError"),A.call(o,e.message,t,n,s,r),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};const ef=null;function Tn(e){return f.isPlainObject(e)||f.isArray(e)}function ri(e){return f.endsWith(e,"[]")?e.slice(0,-2):e}function Bs(e,t,n){return e?e.concat(t).map(function(r,i){return r=ri(r),!n&&i?"["+r+"]":r}).join(n?".":""):t}function nf(e){return f.isArray(e)&&!e.some(Tn)}const sf=f.toFlatObject(f,{},null,function(t){return/^is[A-Z]/.test(t)});function We(e,t,n){if(!f.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=f.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,b){return!f.isUndefined(b[m])});const s=n.metaTokens,r=n.visitor||l,i=n.dots,o=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&f.isSpecCompliantForm(t);if(!f.isFunction(r))throw new TypeError("visitor must be a function");function c(p){if(p===null)return"";if(f.isDate(p))return p.toISOString();if(!u&&f.isBlob(p))throw new A("Blob is not supported. Use a Buffer instead.");return f.isArrayBuffer(p)||f.isTypedArray(p)?u&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function l(p,m,b){let y=p;if(p&&!b&&typeof p=="object"){if(f.endsWith(m,"{}"))m=s?m:m.slice(0,-2),p=JSON.stringify(p);else if(f.isArray(p)&&nf(p)||(f.isFileList(p)||f.endsWith(m,"[]"))&&(y=f.toArray(p)))return m=ri(m),y.forEach(function(S,v){!(f.isUndefined(S)||S===null)&&t.append(o===!0?Bs([m],v,i):o===null?m:m+"[]",c(S))}),!1}return Tn(p)?!0:(t.append(Bs(b,m,i),c(p)),!1)}const h=[],g=Object.assign(sf,{defaultVisitor:l,convertValue:c,isVisitable:Tn});function _(p,m){if(!f.isUndefined(p)){if(h.indexOf(p)!==-1)throw Error("Circular reference detected in "+m.join("."));h.push(p),f.forEach(p,function(y,T){(!(f.isUndefined(y)||y===null)&&r.call(t,y,f.isString(T)?T.trim():T,m,g))===!0&&_(y,m?m.concat(T):[T])}),h.pop()}}if(!f.isObject(e))throw new TypeError("data must be an object");return _(e),t}function js(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function Kn(e,t){this._pairs=[],e&&We(e,this,t)}const ii=Kn.prototype;ii.append=function(t,n){this._pairs.push([t,n])};ii.toString=function(t){const n=t?function(s){return t.call(this,s,js)}:js;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,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function oi(e,t,n){if(!t)return e;const s=n&&n.encode||rf,r=n&&n.serialize;let i;if(r?i=r(t,n):i=f.isURLSearchParams(t)?t.toString():new Kn(t,n).toString(s),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class of{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){f.forEach(this.handlers,function(s){s!==null&&t(s)})}}const Ws=of,ai={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},af=typeof URLSearchParams<"u"?URLSearchParams:Kn,cf=typeof FormData<"u"?FormData:null,lf=typeof Blob<"u"?Blob:null,uf=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),ff=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),G={isBrowser:!0,classes:{URLSearchParams:af,FormData:cf,Blob:lf},isStandardBrowserEnv:uf,isStandardBrowserWebWorkerEnv:ff,protocols:["http","https","file","blob","url","data"]};function df(e,t){return We(e,new G.classes.URLSearchParams,Object.assign({visitor:function(n,s,r,i){return G.isNode&&f.isBuffer(n)?(this.append(s,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function hf(e){return f.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function pf(e){const t={},n=Object.keys(e);let s;const r=n.length;let i;for(s=0;s=n.length;return o=!o&&f.isArray(r)?r.length:o,u?(f.hasOwnProp(r,o)?r[o]=[r[o],s]:r[o]=s,!a):((!r[o]||!f.isObject(r[o]))&&(r[o]=[]),t(n,s,r[o],i)&&f.isArray(r[o])&&(r[o]=pf(r[o])),!a)}if(f.isFormData(e)&&f.isFunction(e.entries)){const n={};return f.forEachEntry(e,(s,r)=>{t(hf(s),r,n,0)}),n}return null}const mf={"Content-Type":void 0};function _f(e,t,n){if(f.isString(e))try{return(t||JSON.parse)(e),f.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(e)}const Ue={transitional:ai,adapter:["xhr","http"],transformRequest:[function(t,n){const s=n.getContentType()||"",r=s.indexOf("application/json")>-1,i=f.isObject(t);if(i&&f.isHTMLForm(t)&&(t=new FormData(t)),f.isFormData(t))return r&&r?JSON.stringify(ci(t)):t;if(f.isArrayBuffer(t)||f.isBuffer(t)||f.isStream(t)||f.isFile(t)||f.isBlob(t))return t;if(f.isArrayBufferView(t))return t.buffer;if(f.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 df(t,this.formSerializer).toString();if((a=f.isFileList(t))||s.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return We(a?{"files[]":t}:t,u&&new u,this.formSerializer)}}return i||r?(n.setContentType("application/json",!1),_f(t)):t}],transformResponse:[function(t){const n=this.transitional||Ue.transitional,s=n&&n.forcedJSONParsing,r=this.responseType==="json";if(t&&f.isString(t)&&(s&&!this.responseType||r)){const o=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(a){if(o)throw a.name==="SyntaxError"?A.from(a,A.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:G.classes.FormData,Blob:G.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};f.forEach(["delete","get","head"],function(t){Ue.headers[t]={}});f.forEach(["post","put","patch"],function(t){Ue.headers[t]=f.merge(mf)});const zn=Ue,gf=f.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"]),Ef=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]&&gf[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t},Us=Symbol("internals");function Xt(e){return e&&String(e).trim().toLowerCase()}function we(e){return e===!1||e==null?e:f.isArray(e)?e.map(we):String(e)}function bf(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 vf=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function dn(e,t,n,s,r){if(f.isFunction(s))return s.call(this,t,n);if(r&&(t=n),!!f.isString(t)){if(f.isString(s))return t.indexOf(s)!==-1;if(f.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 Af(e,t){const n=f.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})})}class Ke{constructor(t){t&&this.set(t)}set(t,n,s){const r=this;function i(a,u,c){const l=Xt(u);if(!l)throw new Error("header name must be a non-empty string");const h=f.findKey(r,l);(!h||r[h]===void 0||c===!0||c===void 0&&r[h]!==!1)&&(r[h||u]=we(a))}const o=(a,u)=>f.forEach(a,(c,l)=>i(c,l,u));return f.isPlainObject(t)||t instanceof this.constructor?o(t,n):f.isString(t)&&(t=t.trim())&&!vf(t)?o(Ef(t),n):t!=null&&i(n,t,s),this}get(t,n){if(t=Xt(t),t){const s=f.findKey(this,t);if(s){const r=this[s];if(!n)return r;if(n===!0)return bf(r);if(f.isFunction(n))return n.call(this,r,s);if(f.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Xt(t),t){const s=f.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||dn(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let r=!1;function i(o){if(o=Xt(o),o){const a=f.findKey(s,o);a&&(!n||dn(s,s[a],a,n))&&(delete s[a],r=!0)}}return f.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||dn(this,this[i],i,t,!0))&&(delete this[i],r=!0)}return r}normalize(t){const n=this,s={};return f.forEach(this,(r,i)=>{const o=f.findKey(s,i);if(o){n[o]=we(r),delete n[i];return}const a=t?yf(i):String(i).trim();a!==i&&delete n[i],n[a]=we(r),s[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return f.forEach(this,(s,r)=>{s!=null&&s!==!1&&(n[r]=t&&f.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(` `)}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[Us]=this[Us]={accessors:{}}).accessors,r=this.prototype;function i(o){const a=Xt(o);s[a]||(Af(r,o),s[a]=!0)}return f.isArray(t)?t.forEach(i):i(t),this}}Ke.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);f.freezeMethods(Ke.prototype);f.freezeMethods(Ke);const nt=Ke;function hn(e,t){const n=this||zn,s=t||n,r=nt.from(s.headers);let i=s.data;return f.forEach(e,function(a){i=a.call(n,i,r.normalize(),t?t.status:void 0)}),r.normalize(),i}function li(e){return!!(e&&e.__CANCEL__)}function ae(e,t,n){A.call(this,e??"canceled",A.ERR_CANCELED,t,n),this.name="CanceledError"}f.inherits(ae,A,{__CANCEL__:!0});function Tf(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new A("Request failed with status code "+n.status,[A.ERR_BAD_REQUEST,A.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const wf=G.isStandardBrowserEnv?function(){return{write:function(n,s,r,i,o,a){const u=[];u.push(n+"="+encodeURIComponent(s)),f.isNumber(r)&&u.push("expires="+new Date(r).toGMTString()),f.isString(i)&&u.push("path="+i),f.isString(o)&&u.push("domain="+o),a===!0&&u.push("secure"),document.cookie=u.join("; ")},read:function(n){const s=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return s?decodeURIComponent(s[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Of(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Sf(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function ui(e,t){return e&&!Of(t)?Sf(e,t):t}const Cf=G.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let s;function r(i){let o=i;return t&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return s=r(window.location.href),function(o){const a=f.isString(o)?r(o):o;return a.protocol===s.protocol&&a.host===s.host}}():function(){return function(){return!0}}();function Nf(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Df(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(u){const c=Date.now(),l=s[i];o||(o=c),n[r]=u,s[r]=c;let h=i,g=0;for(;h!==r;)g+=n[h++],h=h%e;if(r=(r+1)%e,r===i&&(i=(i+1)%e),c-o{const i=r.loaded,o=r.lengthComputable?r.total:void 0,a=i-n,u=s(a),c=i<=o;n=i;const l={loaded:i,total:o,progress:o?i/o:void 0,bytes:a,rate:u||void 0,estimated:u&&o&&c?(o-i)/u:void 0,event:r};l[t?"download":"upload"]=!0,e(l)}}const Lf=typeof XMLHttpRequest<"u",Rf=Lf&&function(e){return new Promise(function(n,s){let r=e.data;const i=nt.from(e.headers).normalize(),o=e.responseType;let a;function u(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}f.isFormData(r)&&(G.isStandardBrowserEnv||G.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.setContentType("multipart/form-data;",!1));let c=new XMLHttpRequest;if(e.auth){const _=e.auth.username||"",p=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(_+":"+p))}const l=ui(e.baseURL,e.url);c.open(e.method.toUpperCase(),oi(l,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function h(){if(!c)return;const _=nt.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),m={data:!o||o==="text"||o==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:_,config:e,request:c};Tf(function(y){n(y),u()},function(y){s(y),u()},m),c=null}if("onloadend"in c?c.onloadend=h:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(h)},c.onabort=function(){c&&(s(new A("Request aborted",A.ECONNABORTED,e,c)),c=null)},c.onerror=function(){s(new A("Network Error",A.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let p=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const m=e.transitional||ai;e.timeoutErrorMessage&&(p=e.timeoutErrorMessage),s(new A(p,m.clarifyTimeoutError?A.ETIMEDOUT:A.ECONNABORTED,e,c)),c=null},G.isStandardBrowserEnv){const _=(e.withCredentials||Cf(l))&&e.xsrfCookieName&&wf.read(e.xsrfCookieName);_&&i.set(e.xsrfHeaderName,_)}r===void 0&&i.setContentType(null),"setRequestHeader"in c&&f.forEach(i.toJSON(),function(p,m){c.setRequestHeader(m,p)}),f.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),o&&o!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",Ks(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",Ks(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=_=>{c&&(s(!_||_.type?new ae(null,e,c):_),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const g=Nf(l);if(g&&G.protocols.indexOf(g)===-1){s(new A("Unsupported protocol "+g+":",A.ERR_BAD_REQUEST,e));return}c.send(r||null)})},Oe={http:ef,xhr:Rf};f.forEach(Oe,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const $f={getAdapter:e=>{e=f.isArray(e)?e:[e];const{length:t}=e;let n,s;for(let r=0;re instanceof nt?e.toJSON():e;function Ft(e,t){t=t||{};const n={};function s(c,l,h){return f.isPlainObject(c)&&f.isPlainObject(l)?f.merge.call({caseless:h},c,l):f.isPlainObject(l)?f.merge({},l):f.isArray(l)?l.slice():l}function r(c,l,h){if(f.isUndefined(l)){if(!f.isUndefined(c))return s(void 0,c,h)}else return s(c,l,h)}function i(c,l){if(!f.isUndefined(l))return s(void 0,l)}function o(c,l){if(f.isUndefined(l)){if(!f.isUndefined(c))return s(void 0,c)}else return s(void 0,l)}function a(c,l,h){if(h in t)return s(c,l);if(h in e)return s(void 0,c)}const u={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials: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:(c,l)=>r(Ys(c),Ys(l),!0)};return f.forEach(Object.keys(Object.assign({},e,t)),function(l){const h=u[l]||r,g=h(e[l],t[l],l);f.isUndefined(g)&&h!==a||(n[l]=g)}),n}const fi="1.4.0",Yn={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Yn[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const qs={};Yn.transitional=function(t,n,s){function r(i,o){return"[Axios v"+fi+"] Transitional option '"+i+"'"+o+(s?". "+s:"")}return(i,o,a)=>{if(t===!1)throw new A(r(o," has been removed"+(n?" in "+n:"")),A.ERR_DEPRECATED);return n&&!qs[o]&&(qs[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}};function If(e,t,n){if(typeof e!="object")throw new A("options must be an object",A.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],u=a===void 0||o(a,i,e);if(u!==!0)throw new A("option "+i+" must be "+u,A.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new A("Unknown option "+i,A.ERR_BAD_OPTION)}}const wn={assertOptions:If,validators:Yn},at=wn.validators;class Re{constructor(t){this.defaults=t,this.interceptors={request:new Ws,response:new Ws}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ft(this.defaults,n);const{transitional:s,paramsSerializer:r,headers:i}=n;s!==void 0&&wn.assertOptions(s,{silentJSONParsing:at.transitional(at.boolean),forcedJSONParsing:at.transitional(at.boolean),clarifyTimeoutError:at.transitional(at.boolean)},!1),r!=null&&(f.isFunction(r)?n.paramsSerializer={serialize:r}:wn.assertOptions(r,{encode:at.function,serialize:at.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o;o=i&&f.merge(i.common,i[n.method]),o&&f.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),n.headers=nt.concat(o,i);const a=[];let u=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(u=u&&m.synchronous,a.unshift(m.fulfilled,m.rejected))});const c=[];this.interceptors.response.forEach(function(m){c.push(m.fulfilled,m.rejected)});let l,h=0,g;if(!u){const p=[zs.bind(this),void 0];for(p.unshift.apply(p,a),p.push.apply(p,c),g=p.length,l=Promise.resolve(n);h{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 ae(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)}static source(){let t;return{token:new qn(function(r){t=r}),cancel:t}}}const Pf=qn;function xf(e){return function(n){return e.apply(null,n)}}function Mf(e){return f.isObject(e)&&e.isAxiosError===!0}const On={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};Object.entries(On).forEach(([e,t])=>{On[t]=e});const kf=On;function di(e){const t=new Se(e),n=qr(Se.prototype.request,t);return f.extend(n,Se.prototype,t,{allOwnKeys:!0}),f.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return di(Ft(e,r))},n}const D=di(zn);D.Axios=Se;D.CanceledError=ae;D.CancelToken=Pf;D.isCancel=li;D.VERSION=fi;D.toFormData=We;D.AxiosError=A;D.Cancel=D.CanceledError;D.all=function(t){return Promise.all(t)};D.spread=xf;D.isAxiosError=Mf;D.mergeConfig=Ft;D.AxiosHeaders=nt;D.formToJSON=e=>ci(f.isHTMLForm(e)?new FormData(e):e);D.HttpStatusCode=kf;D.default=D;const Vf=D;window.axios=Vf;window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest";