diff --git a/assets/index-a9ce55ce.js b/assets/index-b405da8a.js similarity index 93% rename from assets/index-a9ce55ce.js rename to assets/index-b405da8a.js index d23edd5..9482ae7 100644 --- a/assets/index-a9ce55ce.js +++ b/assets/index-b405da8a.js @@ -69,7 +69,7 @@ Add a component higher in the tree to provide a loading Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/(function(e){(function(){var t={}.hasOwnProperty;function A(){for(var o="",i=0;i=0)continue;A[n]=e[n]}return A}function vd(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function xv(e){var t=Yv(e,"string");return typeof t=="symbol"?t:String(t)}function Yv(e,t){if(typeof e!="object"||e===null)return e;var A=e[Symbol.toPrimitive];if(A!==void 0){var n=A.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lE(e,t,A){var n=C.useRef(e!==void 0),r=C.useState(t),o=r[0],i=r[1],a=e!==void 0,s=n.current;return n.current=a,!a&&s&&o!==t&&i(t),[a?e:o,C.useCallback(function(l){for(var c=arguments.length,u=new Array(c>1?c-1:0),g=1;g{o.target===e&&(r(),t(o))},A+n)}function ro(...e){return e.filter(t=>t!=null).reduce((t,A)=>{if(typeof A!="function")throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return t===null?A:function(...r){t.apply(this,r),A.apply(this,r)}},null)}function dE(e){e.offsetHeight}const Dd=e=>!e||typeof e=="function"?e:t=>{e.current=t};function tw(e,t){const A=Dd(e),n=Dd(t);return r=>{A&&A(r),n&&n(r)}}function Kt(e,t){return C.useMemo(()=>tw(e,t),[e,t])}function $a(e){return e&&"setState"in e?MA.findDOMNode(e):e??null}const Aw=Z.forwardRef(({onEnter:e,onEntering:t,onEntered:A,onExit:n,onExiting:r,onExited:o,addEndListener:i,children:a,childRef:s,...l},c)=>{const u=C.useRef(null),g=Kt(u,s),I=m=>{g($a(m))},h=m=>w=>{m&&u.current&&m(u.current,w)},y=C.useCallback(h(e),[e]),d=C.useCallback(h(t),[t]),E=C.useCallback(h(A),[A]),f=C.useCallback(h(n),[n]),B=C.useCallback(h(r),[r]),p=C.useCallback(h(o),[o]),v=C.useCallback(h(i),[i]);return Q(Wv,{ref:c,...l,onEnter:y,onEntered:E,onEntering:d,onExit:f,onExited:p,onExiting:B,addEndListener:v,nodeRef:u,children:typeof a=="function"?(m,w)=>a(m,{...w,ref:I}):Z.cloneElement(a,{ref:I})})}),$u=Aw,nw={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function rw(e,t){const A=`offset${e[0].toUpperCase()}${e.slice(1)}`,n=t[A],r=nw[e];return n+parseInt(hA(t,r[0]),10)+parseInt(hA(t,r[1]),10)}const ow={[kA]:"collapse",[ri]:"collapsing",[qt]:"collapsing",[CA]:"collapse show"},iw=Z.forwardRef(({onEnter:e,onEntering:t,onEntered:A,onExit:n,onExiting:r,className:o,children:i,dimension:a="height",in:s=!1,timeout:l=300,mountOnEnter:c=!1,unmountOnExit:u=!1,appear:g=!1,getDimensionValue:I=rw,...h},y)=>{const d=typeof a=="function"?a():a,E=C.useMemo(()=>ro(m=>{m.style[d]="0"},e),[d,e]),f=C.useMemo(()=>ro(m=>{const w=`scroll${d[0].toUpperCase()}${d.slice(1)}`;m.style[d]=`${m[w]}px`},t),[d,t]),B=C.useMemo(()=>ro(m=>{m.style[d]=null},A),[d,A]),p=C.useMemo(()=>ro(m=>{m.style[d]=`${I(d,m)}px`,dE(m)},n),[n,I,d]),v=C.useMemo(()=>ro(m=>{m.style[d]=null},r),[d,r]);return Q($u,{ref:y,addEndListener:Ju,...h,"aria-expanded":h.role?s:null,onEnter:E,onEntering:f,onEntered:B,onExit:p,onExiting:v,childRef:i.ref,in:s,timeout:l,mountOnEnter:c,unmountOnExit:u,appear:g,children:(m,w)=>Z.cloneElement(i,{...w,className:_(o,i.props.className,ow[m],d==="width"&&"collapse-horizontal")})})}),aw=iw;function sw(e){const t=C.useRef(e);return C.useEffect(()=>{t.current=e},[e]),t}function Ve(e){const t=sw(e);return C.useCallback(function(...A){return t.current&&t.current(...A)},[t])}const Vs=e=>C.forwardRef((t,A)=>Q("div",{...t,ref:A,className:_(t.className,e)}));function Ka(){return C.useState(null)}function lw(e,t,A,n=!1){const r=Ve(A);C.useEffect(()=>{const o=typeof e=="function"?e():e;return o.addEventListener(t,r,n),()=>o.removeEventListener(t,r,n)},[e])}function Ku(){const e=C.useRef(!0),t=C.useRef(()=>e.current);return C.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function CE(e){const t=C.useRef(null);return C.useEffect(()=>{t.current=e}),t.current}const cw=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",uw=typeof document<"u",oi=uw||cw?C.useLayoutEffect:C.useEffect,gw=["as","disabled"];function fw(e,t){if(e==null)return{};var A={},n=Object.keys(e),r,o;for(o=0;o=0)&&(A[r]=e[r]);return A}function dw(e){return!e||e.trim()==="#"}function ju({tagName:e,disabled:t,href:A,target:n,rel:r,role:o,onClick:i,tabIndex:a=0,type:s}){e||(A!=null||n!=null||r!=null?e="a":e="button");const l={tagName:e};if(e==="button")return[{type:s||"button",disabled:t},l];const c=g=>{if((t||e==="a"&&dw(A))&&g.preventDefault(),t){g.stopPropagation();return}i==null||i(g)},u=g=>{g.key===" "&&(g.preventDefault(),c(g))};return e==="a"&&(A||(A="#"),t&&(A=void 0)),[{role:o??"button",disabled:void 0,tabIndex:t?void 0:a,href:A,target:e==="a"?n:void 0,"aria-disabled":t||void 0,rel:e==="a"?r:void 0,onClick:c,onKeyDown:u},l]}const zu=C.forwardRef((e,t)=>{let{as:A,disabled:n}=e,r=fw(e,gw);const[o,{tagName:i}]=ju(Object.assign({tagName:A,disabled:n},r));return Q(i,Object.assign({},r,o,{ref:t}))});zu.displayName="Button";const Cw=["onKeyDown"];function Iw(e,t){if(e==null)return{};var A={},n=Object.keys(e),r,o;for(o=0;o=0)&&(A[r]=e[r]);return A}function Bw(e){return!e||e.trim()==="#"}const IE=C.forwardRef((e,t)=>{let{onKeyDown:A}=e,n=Iw(e,Cw);const[r]=ju(Object.assign({tagName:"a"},n)),o=Ve(i=>{r.onKeyDown(i),A==null||A(i)});return Bw(n.href)||n.role==="button"?Q("a",Object.assign({ref:t},n,r,{onKeyDown:o})):Q("a",Object.assign({ref:t},n,{onKeyDown:A}))});IE.displayName="Anchor";const _u=IE,Ew={[qt]:"show",[CA]:"show"},BE=C.forwardRef(({className:e,children:t,transitionClasses:A={},onEnter:n,...r},o)=>{const i={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...r},a=C.useCallback((s,l)=>{dE(s),n==null||n(s,l)},[n]);return Q($u,{ref:o,addEndListener:Ju,...i,onEnter:a,childRef:t.ref,children:(s,l)=>C.cloneElement(t,{...l,className:_("fade",e,t.props.className,Ew[s],A[s])})})});BE.displayName="Fade";const ii=BE,pw={"aria-label":ce.string,onClick:ce.func,variant:ce.oneOf(["white"])},Wu=C.forwardRef(({className:e,variant:t,"aria-label":A="Close",...n},r)=>Q("button",{ref:r,type:"button",className:_("btn-close",t&&`btn-close-${t}`,e),"aria-label":A,...n}));Wu.displayName="CloseButton";Wu.propTypes=pw;const Qw=Wu,EE=C.forwardRef(({as:e,bsPrefix:t,variant:A="primary",size:n,active:r=!1,disabled:o=!1,className:i,...a},s)=>{const l=X(t,"btn"),[c,{tagName:u}]=ju({tagName:e,disabled:o,...a});return Q(u,{...c,...a,ref:s,disabled:o,className:_(i,l,r&&"active",A&&`${l}-${A}`,n&&`${l}-${n}`,a.href&&o&&"disabled")})});EE.displayName="Button";const Qn=EE,pE=C.forwardRef(({className:e,bsPrefix:t,as:A="div",...n},r)=>(t=X(t,"card-body"),Q(A,{ref:r,className:_(e,t),...n})));pE.displayName="CardBody";const QE=pE,hE=C.forwardRef(({className:e,bsPrefix:t,as:A="div",...n},r)=>(t=X(t,"card-footer"),Q(A,{ref:r,className:_(e,t),...n})));hE.displayName="CardFooter";const hw=hE,mE=C.createContext(null);mE.displayName="CardHeaderContext";const yE=mE,vE=C.forwardRef(({bsPrefix:e,className:t,as:A="div",...n},r)=>{const o=X(e,"card-header"),i=C.useMemo(()=>({cardHeaderBsPrefix:o}),[o]);return Q(yE.Provider,{value:i,children:Q(A,{ref:r,...n,className:_(t,o)})})});vE.displayName="CardHeader";const mw=vE,wE=C.forwardRef(({bsPrefix:e,className:t,variant:A,as:n="img",...r},o)=>{const i=X(e,"card-img");return Q(n,{ref:o,className:_(A?`${i}-${A}`:i,t),...r})});wE.displayName="CardImg";const yw=wE,VE=C.forwardRef(({className:e,bsPrefix:t,as:A="div",...n},r)=>(t=X(t,"card-img-overlay"),Q(A,{ref:r,className:_(e,t),...n})));VE.displayName="CardImgOverlay";const vw=VE,DE=C.forwardRef(({className:e,bsPrefix:t,as:A="a",...n},r)=>(t=X(t,"card-link"),Q(A,{ref:r,className:_(e,t),...n})));DE.displayName="CardLink";const ww=DE,Vw=Vs("h6"),SE=C.forwardRef(({className:e,bsPrefix:t,as:A=Vw,...n},r)=>(t=X(t,"card-subtitle"),Q(A,{ref:r,className:_(e,t),...n})));SE.displayName="CardSubtitle";const Dw=SE,NE=C.forwardRef(({className:e,bsPrefix:t,as:A="p",...n},r)=>(t=X(t,"card-text"),Q(A,{ref:r,className:_(e,t),...n})));NE.displayName="CardText";const Sw=NE,Nw=Vs("h5"),kE=C.forwardRef(({className:e,bsPrefix:t,as:A=Nw,...n},r)=>(t=X(t,"card-title"),Q(A,{ref:r,className:_(e,t),...n})));kE.displayName="CardTitle";const kw=kE,RE=C.forwardRef(({bsPrefix:e,className:t,bg:A,text:n,border:r,body:o=!1,children:i,as:a="div",...s},l)=>{const c=X(e,"card");return Q(a,{ref:l,...s,className:_(t,c,A&&`bg-${A}`,n&&`text-${n}`,r&&`border-${r}`),children:o?Q(QE,{children:i}):i})});RE.displayName="Card";const ul=Object.assign(RE,{Img:yw,Title:kw,Subtitle:Dw,Body:QE,Link:ww,Text:Sw,Header:mw,Footer:hw,ImgOverlay:vw});function Rw(e){const t=C.useRef(e);return t.current=e,t}function Xu(e){const t=Rw(e);C.useEffect(()=>()=>t.current(),[])}const Ec=2**31-1;function GE(e,t,A){const n=A-Date.now();e.current=n<=Ec?setTimeout(t,n):setTimeout(()=>GE(e,t,A),Ec)}function Gw(){const e=Ku(),t=C.useRef();return Xu(()=>clearTimeout(t.current)),C.useMemo(()=>{const A=()=>clearTimeout(t.current);function n(r,o=0){e()&&(A(),o<=Ec?t.current=setTimeout(r,o):GE(t,r,Date.now()+o))}return{set:n,clear:A,handleRef:t}},[])}function Lw(e,t){return C.Children.toArray(e).some(A=>C.isValidElement(A)&&A.type===t)}function Fw({as:e,bsPrefix:t,className:A,...n}){t=X(t,"col");const r=cE(),o=uE(),i=[],a=[];return r.forEach(s=>{const l=n[s];delete n[s];let c,u,g;typeof l=="object"&&l!=null?{span:c,offset:u,order:g}=l:c=l;const I=s!==o?`-${s}`:"";c&&i.push(c===!0?`${t}${I}`:`${t}${I}-${c}`),g!=null&&a.push(`order${I}-${g}`),u!=null&&a.push(`offset${I}-${u}`)}),[{...n,className:_(A,...i,...a)},{as:e,bsPrefix:t,spans:i}]}const LE=C.forwardRef((e,t)=>{const[{className:A,...n},{as:r="div",bsPrefix:o,spans:i}]=Fw(e);return Q(r,{...n,ref:t,className:_(A,!i.length&&o)})});LE.displayName="Col";const de=LE,FE=C.forwardRef(({bsPrefix:e,fluid:t=!1,as:A="div",className:n,...r},o)=>{const i=X(e,"container"),a=typeof t=="string"?`-${t}`:"-fluid";return Q(A,{ref:o,...r,className:_(n,t?`${i}${a}`:i)})});FE.displayName="Container";const Yr=FE;var Mw=Function.prototype.bind.call(Function.prototype.call,[].slice);function fA(e,t){return Mw(e.querySelectorAll(t))}function bw(e,t,A){const n=C.useRef(e!==void 0),[r,o]=C.useState(t),i=e!==void 0,a=n.current;return n.current=i,!i&&a&&r!==t&&o(t),[i?e:r,C.useCallback((...s)=>{const[l,...c]=s;let u=A==null?void 0:A(l,...c);return o(l),u},[A])]}function ME(){const[,e]=C.useReducer(t=>!t,!1);return e}const Ow=C.createContext(null),Ds=Ow;var Sd=Object.prototype.hasOwnProperty;function Nd(e,t,A){for(A of e.keys())if(Mo(A,t))return A}function Mo(e,t){var A,n,r;if(e===t)return!0;if(e&&t&&(A=e.constructor)===t.constructor){if(A===Date)return e.getTime()===t.getTime();if(A===RegExp)return e.toString()===t.toString();if(A===Array){if((n=e.length)===t.length)for(;n--&&Mo(e[n],t[n]););return n===-1}if(A===Set){if(e.size!==t.size)return!1;for(n of e)if(r=n,r&&typeof r=="object"&&(r=Nd(t,r),!r)||!t.has(r))return!1;return!0}if(A===Map){if(e.size!==t.size)return!1;for(n of e)if(r=n[0],r&&typeof r=="object"&&(r=Nd(t,r),!r)||!Mo(n[1],t.get(r)))return!1;return!0}if(A===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(A===DataView){if((n=e.byteLength)===t.byteLength)for(;n--&&e.getInt8(n)===t.getInt8(n););return n===-1}if(ArrayBuffer.isView(e)){if((n=e.byteLength)===t.byteLength)for(;n--&&e[n]===t[n];);return n===-1}if(!A||typeof e=="object"){n=0;for(A in e)if(Sd.call(e,A)&&++n&&!Sd.call(t,A)||!(A in t)||!Mo(e[A],t[A]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}function xw(e){const t=Ku();return[e[0],C.useCallback(A=>{if(t())return e[1](A)},[t,e[1]])]}var dt="top",Mt="bottom",bt="right",Ct="left",Zu="auto",yi=[dt,Mt,bt,Ct],vr="start",ai="end",Yw="clippingParents",bE="viewport",oo="popper",Uw="reference",kd=yi.reduce(function(e,t){return e.concat([t+"-"+vr,t+"-"+ai])},[]),OE=[].concat(yi,[Zu]).reduce(function(e,t){return e.concat([t,t+"-"+vr,t+"-"+ai])},[]),Tw="beforeRead",qw="read",Pw="afterRead",Hw="beforeMain",Jw="main",$w="afterMain",Kw="beforeWrite",jw="write",zw="afterWrite",_w=[Tw,qw,Pw,Hw,Jw,$w,Kw,jw,zw];function AA(e){return e.split("-")[0]}function ht(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function kn(e){var t=ht(e).Element;return e instanceof t||e instanceof Element}function nA(e){var t=ht(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function eg(e){if(typeof ShadowRoot>"u")return!1;var t=ht(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var vn=Math.max,ja=Math.min,wr=Math.round;function pc(){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 xE(){return!/^((?!chrome|android).)*safari/i.test(pc())}function Vr(e,t,A){t===void 0&&(t=!1),A===void 0&&(A=!1);var n=e.getBoundingClientRect(),r=1,o=1;t&&nA(e)&&(r=e.offsetWidth>0&&wr(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&wr(n.height)/e.offsetHeight||1);var i=kn(e)?ht(e):window,a=i.visualViewport,s=!xE()&&A,l=(n.left+(s&&a?a.offsetLeft:0))/r,c=(n.top+(s&&a?a.offsetTop:0))/o,u=n.width/r,g=n.height/o;return{width:u,height:g,top:c,right:l+u,bottom:c+g,left:l,x:l,y:c}}function tg(e){var t=Vr(e),A=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-A)<=1&&(A=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:A,height:n}}function YE(e,t){var A=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(A&&eg(A)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function XA(e){return e?(e.nodeName||"").toLowerCase():null}function vA(e){return ht(e).getComputedStyle(e)}function Ww(e){return["table","td","th"].indexOf(XA(e))>=0}function on(e){return((kn(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ss(e){return XA(e)==="html"?e:e.assignedSlot||e.parentNode||(eg(e)?e.host:null)||on(e)}function Rd(e){return!nA(e)||vA(e).position==="fixed"?null:e.offsetParent}function Xw(e){var t=/firefox/i.test(pc()),A=/Trident/i.test(pc());if(A&&nA(e)){var n=vA(e);if(n.position==="fixed")return null}var r=Ss(e);for(eg(r)&&(r=r.host);nA(r)&&["html","body"].indexOf(XA(r))<0;){var o=vA(r);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return r;r=r.parentNode}return null}function vi(e){for(var t=ht(e),A=Rd(e);A&&Ww(A)&&vA(A).position==="static";)A=Rd(A);return A&&(XA(A)==="html"||XA(A)==="body"&&vA(A).position==="static")?t:A||Xw(e)||t}function Ag(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function bo(e,t,A){return vn(e,ja(t,A))}function Zw(e,t,A){var n=bo(e,t,A);return n>A?A:n}function UE(){return{top:0,right:0,bottom:0,left:0}}function TE(e){return Object.assign({},UE(),e)}function qE(e,t){return t.reduce(function(A,n){return A[n]=e,A},{})}var eV=function(t,A){return t=typeof t=="function"?t(Object.assign({},A.rects,{placement:A.placement})):t,TE(typeof t!="number"?t:qE(t,yi))};function tV(e){var t,A=e.state,n=e.name,r=e.options,o=A.elements.arrow,i=A.modifiersData.popperOffsets,a=AA(A.placement),s=Ag(a),l=[Ct,bt].indexOf(a)>=0,c=l?"height":"width";if(!(!o||!i)){var u=eV(r.padding,A),g=tg(o),I=s==="y"?dt:Ct,h=s==="y"?Mt:bt,y=A.rects.reference[c]+A.rects.reference[s]-i[s]-A.rects.popper[c],d=i[s]-A.rects.reference[s],E=vi(o),f=E?s==="y"?E.clientHeight||0:E.clientWidth||0:0,B=y/2-d/2,p=u[I],v=f-g[c]-u[h],m=f/2-g[c]/2+B,w=bo(p,m,v),V=s;A.modifiersData[n]=(t={},t[V]=w,t.centerOffset=w-m,t)}}function AV(e){var t=e.state,A=e.options,n=A.element,r=n===void 0?"[data-popper-arrow]":n;r!=null&&(typeof r=="string"&&(r=t.elements.popper.querySelector(r),!r)||YE(t.elements.popper,r)&&(t.elements.arrow=r))}const nV={name:"arrow",enabled:!0,phase:"main",fn:tV,effect:AV,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Dr(e){return e.split("-")[1]}var rV={top:"auto",right:"auto",bottom:"auto",left:"auto"};function oV(e,t){var A=e.x,n=e.y,r=t.devicePixelRatio||1;return{x:wr(A*r)/r||0,y:wr(n*r)/r||0}}function Gd(e){var t,A=e.popper,n=e.popperRect,r=e.placement,o=e.variation,i=e.offsets,a=e.position,s=e.gpuAcceleration,l=e.adaptive,c=e.roundOffsets,u=e.isFixed,g=i.x,I=g===void 0?0:g,h=i.y,y=h===void 0?0:h,d=typeof c=="function"?c({x:I,y}):{x:I,y};I=d.x,y=d.y;var E=i.hasOwnProperty("x"),f=i.hasOwnProperty("y"),B=Ct,p=dt,v=window;if(l){var m=vi(A),w="clientHeight",V="clientWidth";if(m===ht(A)&&(m=on(A),vA(m).position!=="static"&&a==="absolute"&&(w="scrollHeight",V="scrollWidth")),m=m,r===dt||(r===Ct||r===bt)&&o===ai){p=Mt;var D=u&&m===v&&v.visualViewport?v.visualViewport.height:m[w];y-=D-n.height,y*=s?1:-1}if(r===Ct||(r===dt||r===Mt)&&o===ai){B=bt;var G=u&&m===v&&v.visualViewport?v.visualViewport.width:m[V];I-=G-n.width,I*=s?1:-1}}var L=Object.assign({position:a},l&&rV),O=c===!0?oV({x:I,y},ht(A)):{x:I,y};if(I=O.x,y=O.y,s){var U;return Object.assign({},L,(U={},U[p]=f?"0":"",U[B]=E?"0":"",U.transform=(v.devicePixelRatio||1)<=1?"translate("+I+"px, "+y+"px)":"translate3d("+I+"px, "+y+"px, 0)",U))}return Object.assign({},L,(t={},t[p]=f?y+"px":"",t[B]=E?I+"px":"",t.transform="",t))}function iV(e){var t=e.state,A=e.options,n=A.gpuAcceleration,r=n===void 0?!0:n,o=A.adaptive,i=o===void 0?!0:o,a=A.roundOffsets,s=a===void 0?!0:a,l={placement:AA(t.placement),variation:Dr(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,Gd(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:s})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Gd(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const aV={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:iV,data:{}};var Hi={passive:!0};function sV(e){var t=e.state,A=e.instance,n=e.options,r=n.scroll,o=r===void 0?!0:r,i=n.resize,a=i===void 0?!0:i,s=ht(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&l.forEach(function(c){c.addEventListener("scroll",A.update,Hi)}),a&&s.addEventListener("resize",A.update,Hi),function(){o&&l.forEach(function(c){c.removeEventListener("scroll",A.update,Hi)}),a&&s.removeEventListener("resize",A.update,Hi)}}const lV={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:sV,data:{}};var cV={left:"right",right:"left",bottom:"top",top:"bottom"};function ga(e){return e.replace(/left|right|bottom|top/g,function(t){return cV[t]})}var uV={start:"end",end:"start"};function Ld(e){return e.replace(/start|end/g,function(t){return uV[t]})}function ng(e){var t=ht(e),A=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:A,scrollTop:n}}function rg(e){return Vr(on(e)).left+ng(e).scrollLeft}function gV(e,t){var A=ht(e),n=on(e),r=A.visualViewport,o=n.clientWidth,i=n.clientHeight,a=0,s=0;if(r){o=r.width,i=r.height;var l=xE();(l||!l&&t==="fixed")&&(a=r.offsetLeft,s=r.offsetTop)}return{width:o,height:i,x:a+rg(e),y:s}}function fV(e){var t,A=on(e),n=ng(e),r=(t=e.ownerDocument)==null?void 0:t.body,o=vn(A.scrollWidth,A.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),i=vn(A.scrollHeight,A.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-n.scrollLeft+rg(e),s=-n.scrollTop;return vA(r||A).direction==="rtl"&&(a+=vn(A.clientWidth,r?r.clientWidth:0)-o),{width:o,height:i,x:a,y:s}}function og(e){var t=vA(e),A=t.overflow,n=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(A+r+n)}function PE(e){return["html","body","#document"].indexOf(XA(e))>=0?e.ownerDocument.body:nA(e)&&og(e)?e:PE(Ss(e))}function Oo(e,t){var A;t===void 0&&(t=[]);var n=PE(e),r=n===((A=e.ownerDocument)==null?void 0:A.body),o=ht(n),i=r?[o].concat(o.visualViewport||[],og(n)?n:[]):n,a=t.concat(i);return r?a:a.concat(Oo(Ss(i)))}function Qc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function dV(e,t){var A=Vr(e,!1,t==="fixed");return A.top=A.top+e.clientTop,A.left=A.left+e.clientLeft,A.bottom=A.top+e.clientHeight,A.right=A.left+e.clientWidth,A.width=e.clientWidth,A.height=e.clientHeight,A.x=A.left,A.y=A.top,A}function Fd(e,t,A){return t===bE?Qc(gV(e,A)):kn(t)?dV(t,A):Qc(fV(on(e)))}function CV(e){var t=Oo(Ss(e)),A=["absolute","fixed"].indexOf(vA(e).position)>=0,n=A&&nA(e)?vi(e):e;return kn(n)?t.filter(function(r){return kn(r)&&YE(r,n)&&XA(r)!=="body"}):[]}function IV(e,t,A,n){var r=t==="clippingParents"?CV(e):[].concat(t),o=[].concat(r,[A]),i=o[0],a=o.reduce(function(s,l){var c=Fd(e,l,n);return s.top=vn(c.top,s.top),s.right=ja(c.right,s.right),s.bottom=ja(c.bottom,s.bottom),s.left=vn(c.left,s.left),s},Fd(e,i,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function HE(e){var t=e.reference,A=e.element,n=e.placement,r=n?AA(n):null,o=n?Dr(n):null,i=t.x+t.width/2-A.width/2,a=t.y+t.height/2-A.height/2,s;switch(r){case dt:s={x:i,y:t.y-A.height};break;case Mt:s={x:i,y:t.y+t.height};break;case bt:s={x:t.x+t.width,y:a};break;case Ct:s={x:t.x-A.width,y:a};break;default:s={x:t.x,y:t.y}}var l=r?Ag(r):null;if(l!=null){var c=l==="y"?"height":"width";switch(o){case vr:s[l]=s[l]-(t[c]/2-A[c]/2);break;case ai:s[l]=s[l]+(t[c]/2-A[c]/2);break}}return s}function si(e,t){t===void 0&&(t={});var A=t,n=A.placement,r=n===void 0?e.placement:n,o=A.strategy,i=o===void 0?e.strategy:o,a=A.boundary,s=a===void 0?Yw:a,l=A.rootBoundary,c=l===void 0?bE:l,u=A.elementContext,g=u===void 0?oo:u,I=A.altBoundary,h=I===void 0?!1:I,y=A.padding,d=y===void 0?0:y,E=TE(typeof d!="number"?d:qE(d,yi)),f=g===oo?Uw:oo,B=e.rects.popper,p=e.elements[h?f:g],v=IV(kn(p)?p:p.contextElement||on(e.elements.popper),s,c,i),m=Vr(e.elements.reference),w=HE({reference:m,element:B,strategy:"absolute",placement:r}),V=Qc(Object.assign({},B,w)),D=g===oo?V:m,G={top:v.top-D.top+E.top,bottom:D.bottom-v.bottom+E.bottom,left:v.left-D.left+E.left,right:D.right-v.right+E.right},L=e.modifiersData.offset;if(g===oo&&L){var O=L[r];Object.keys(G).forEach(function(U){var F=[bt,Mt].indexOf(U)>=0?1:-1,N=[dt,Mt].indexOf(U)>=0?"y":"x";G[U]+=O[N]*F})}return G}function BV(e,t){t===void 0&&(t={});var A=t,n=A.placement,r=A.boundary,o=A.rootBoundary,i=A.padding,a=A.flipVariations,s=A.allowedAutoPlacements,l=s===void 0?OE:s,c=Dr(n),u=c?a?kd:kd.filter(function(h){return Dr(h)===c}):yi,g=u.filter(function(h){return l.indexOf(h)>=0});g.length===0&&(g=u);var I=g.reduce(function(h,y){return h[y]=si(e,{placement:y,boundary:r,rootBoundary:o,padding:i})[AA(y)],h},{});return Object.keys(I).sort(function(h,y){return I[h]-I[y]})}function EV(e){if(AA(e)===Zu)return[];var t=ga(e);return[Ld(e),t,Ld(t)]}function pV(e){var t=e.state,A=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var r=A.mainAxis,o=r===void 0?!0:r,i=A.altAxis,a=i===void 0?!0:i,s=A.fallbackPlacements,l=A.padding,c=A.boundary,u=A.rootBoundary,g=A.altBoundary,I=A.flipVariations,h=I===void 0?!0:I,y=A.allowedAutoPlacements,d=t.options.placement,E=AA(d),f=E===d,B=s||(f||!h?[ga(d)]:EV(d)),p=[d].concat(B).reduce(function(P,z){return P.concat(AA(z)===Zu?BV(t,{placement:z,boundary:c,rootBoundary:u,padding:l,flipVariations:h,allowedAutoPlacements:y}):z)},[]),v=t.rects.reference,m=t.rects.popper,w=new Map,V=!0,D=p[0],G=0;G=0,N=F?"width":"height",S=si(t,{placement:L,boundary:c,rootBoundary:u,altBoundary:g,padding:l}),M=F?U?bt:Ct:U?Mt:dt;v[N]>m[N]&&(M=ga(M));var R=ga(M),b=[];if(o&&b.push(S[O]<=0),a&&b.push(S[M]<=0,S[R]<=0),b.every(function(P){return P})){D=L,V=!1;break}w.set(L,b)}if(V)for(var Y=h?3:1,k=function(z){var ee=p.find(function(ne){var se=w.get(ne);if(se)return se.slice(0,z).every(function(ue){return ue})});if(ee)return D=ee,"break"},x=Y;x>0;x--){var q=k(x);if(q==="break")break}t.placement!==D&&(t.modifiersData[n]._skip=!0,t.placement=D,t.reset=!0)}}const QV={name:"flip",enabled:!0,phase:"main",fn:pV,requiresIfExists:["offset"],data:{_skip:!1}};function Md(e,t,A){return A===void 0&&(A={x:0,y:0}),{top:e.top-t.height-A.y,right:e.right-t.width+A.x,bottom:e.bottom-t.height+A.y,left:e.left-t.width-A.x}}function bd(e){return[dt,bt,Mt,Ct].some(function(t){return e[t]>=0})}function hV(e){var t=e.state,A=e.name,n=t.rects.reference,r=t.rects.popper,o=t.modifiersData.preventOverflow,i=si(t,{elementContext:"reference"}),a=si(t,{altBoundary:!0}),s=Md(i,n),l=Md(a,r,o),c=bd(s),u=bd(l);t.modifiersData[A]={referenceClippingOffsets:s,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":u})}const mV={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hV};function yV(e,t,A){var n=AA(e),r=[Ct,dt].indexOf(n)>=0?-1:1,o=typeof A=="function"?A(Object.assign({},t,{placement:e})):A,i=o[0],a=o[1];return i=i||0,a=(a||0)*r,[Ct,bt].indexOf(n)>=0?{x:a,y:i}:{x:i,y:a}}function vV(e){var t=e.state,A=e.options,n=e.name,r=A.offset,o=r===void 0?[0,0]:r,i=OE.reduce(function(c,u){return c[u]=yV(u,t.rects,o),c},{}),a=i[t.placement],s=a.x,l=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=l),t.modifiersData[n]=i}const wV={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:vV};function VV(e){var t=e.state,A=e.name;t.modifiersData[A]=HE({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const DV={name:"popperOffsets",enabled:!0,phase:"read",fn:VV,data:{}};function SV(e){return e==="x"?"y":"x"}function NV(e){var t=e.state,A=e.options,n=e.name,r=A.mainAxis,o=r===void 0?!0:r,i=A.altAxis,a=i===void 0?!1:i,s=A.boundary,l=A.rootBoundary,c=A.altBoundary,u=A.padding,g=A.tether,I=g===void 0?!0:g,h=A.tetherOffset,y=h===void 0?0:h,d=si(t,{boundary:s,rootBoundary:l,padding:u,altBoundary:c}),E=AA(t.placement),f=Dr(t.placement),B=!f,p=Ag(E),v=SV(p),m=t.modifiersData.popperOffsets,w=t.rects.reference,V=t.rects.popper,D=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,G=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(m){if(o){var U,F=p==="y"?dt:Ct,N=p==="y"?Mt:bt,S=p==="y"?"height":"width",M=m[p],R=M+d[F],b=M-d[N],Y=I?-V[S]/2:0,k=f===vr?w[S]:V[S],x=f===vr?-V[S]:-w[S],q=t.elements.arrow,P=I&&q?tg(q):{width:0,height:0},z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:UE(),ee=z[F],ne=z[N],se=bo(0,w[S],P[S]),ue=B?w[S]/2-Y-se-ee-G.mainAxis:k-se-ee-G.mainAxis,le=B?-w[S]/2+Y+se+ne+G.mainAxis:x+se+ne+G.mainAxis,Ie=t.elements.arrow&&vi(t.elements.arrow),ye=Ie?p==="y"?Ie.clientTop||0:Ie.clientLeft||0:0,J=(U=L==null?void 0:L[p])!=null?U:0,T=M+ue-J-ye,$=M+le-J,te=bo(I?ja(R,T):R,M,I?vn(b,$):b);m[p]=te,O[p]=te-M}if(a){var Ce,wt=p==="x"?dt:Ct,cn=p==="x"?Mt:bt,et=m[v],K=v==="y"?"height":"width",ie=et+d[wt],fe=et-d[cn],Se=[dt,Ct].indexOf(E)!==-1,Ee=(Ce=L==null?void 0:L[v])!=null?Ce:0,re=Se?ie:et-w[K]-V[K]-Ee+G.altAxis,it=Se?et+w[K]+V[K]-Ee-G.altAxis:fe,un=I&&Se?Zw(re,et,it):bo(I?re:ie,et,I?it:fe);m[v]=un,O[v]=un-et}t.modifiersData[n]=O}}const kV={name:"preventOverflow",enabled:!0,phase:"main",fn:NV,requiresIfExists:["offset"]};function RV(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function GV(e){return e===ht(e)||!nA(e)?ng(e):RV(e)}function LV(e){var t=e.getBoundingClientRect(),A=wr(t.width)/e.offsetWidth||1,n=wr(t.height)/e.offsetHeight||1;return A!==1||n!==1}function FV(e,t,A){A===void 0&&(A=!1);var n=nA(t),r=nA(t)&&LV(t),o=on(t),i=Vr(e,r,A),a={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(n||!n&&!A)&&((XA(t)!=="body"||og(o))&&(a=GV(t)),nA(t)?(s=Vr(t,!0),s.x+=t.clientLeft,s.y+=t.clientTop):o&&(s.x=rg(o))),{x:i.left+a.scrollLeft-s.x,y:i.top+a.scrollTop-s.y,width:i.width,height:i.height}}function MV(e){var t=new Map,A=new Set,n=[];e.forEach(function(o){t.set(o.name,o)});function r(o){A.add(o.name);var i=[].concat(o.requires||[],o.requiresIfExists||[]);i.forEach(function(a){if(!A.has(a)){var s=t.get(a);s&&r(s)}}),n.push(o)}return e.forEach(function(o){A.has(o.name)||r(o)}),n}function bV(e){var t=MV(e);return _w.reduce(function(A,n){return A.concat(t.filter(function(r){return r.phase===n}))},[])}function OV(e){var t;return function(){return t||(t=new Promise(function(A){Promise.resolve().then(function(){t=void 0,A(e())})})),t}}function xV(e){var t=e.reduce(function(A,n){var r=A[n.name];return A[n.name]=r?Object.assign({},r,n,{options:Object.assign({},r.options,n.options),data:Object.assign({},r.data,n.data)}):n,A},{});return Object.keys(t).map(function(A){return t[A]})}var Od={placement:"bottom",modifiers:[],strategy:"absolute"};function xd(){for(var e=arguments.length,t=new Array(e),A=0;A=0)&&(A[r]=e[r]);return A}const PV={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},HV={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:A}=e.elements;if("removeAttribute"in t){const n=(t.getAttribute("aria-describedby")||"").split(",").filter(r=>r.trim()!==A.id);n.length?t.setAttribute("aria-describedby",n.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:A,reference:n}=e.elements,r=(t=A.getAttribute("role"))==null?void 0:t.toLowerCase();if(A.id&&r==="tooltip"&&"setAttribute"in n){const o=n.getAttribute("aria-describedby");if(o&&o.split(",").indexOf(A.id)!==-1)return;n.setAttribute("aria-describedby",o?`${o},${A.id}`:A.id)}}},JV=[];function JE(e,t,A={}){let{enabled:n=!0,placement:r="bottom",strategy:o="absolute",modifiers:i=JV}=A,a=qV(A,TV);const s=C.useRef(i),l=C.useRef(),c=C.useCallback(()=>{var d;(d=l.current)==null||d.update()},[]),u=C.useCallback(()=>{var d;(d=l.current)==null||d.forceUpdate()},[]),[g,I]=xw(C.useState({placement:r,update:c,forceUpdate:u,attributes:{},styles:{popper:{},arrow:{}}})),h=C.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:d})=>{const E={},f={};Object.keys(d.elements).forEach(B=>{E[B]=d.styles[B],f[B]=d.attributes[B]}),I({state:d,styles:E,attributes:f,update:c,forceUpdate:u,placement:d.placement})}}),[c,u,I]),y=C.useMemo(()=>(Mo(s.current,i)||(s.current=i),s.current),[i]);return C.useEffect(()=>{!l.current||!n||l.current.setOptions({placement:r,strategy:o,modifiers:[...y,h,PV]})},[o,r,h,n,y]),C.useEffect(()=>{if(!(!n||e==null||t==null))return l.current=UV(e,t,Object.assign({},a,{placement:r,strategy:o,modifiers:[...y,HV,h]})),()=>{l.current!=null&&(l.current.destroy(),l.current=void 0,I(d=>Object.assign({},d,{attributes:{},styles:{popper:{}}})))}},[n,e,t]),g}function li(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}var $V=function(){},KV=$V;const jV=It(KV),Yd=()=>{};function zV(e){return e.button===0}function _V(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const fa=e=>e&&("current"in e?e.current:e),Ud={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function $E(e,t=Yd,{disabled:A,clickTrigger:n="click"}={}){const r=C.useRef(!1),o=C.useRef(!1),i=C.useCallback(l=>{const c=fa(e);jV(!!c,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),r.current=!c||_V(l)||!zV(l)||!!li(c,l.target)||o.current,o.current=!1},[e]),a=Ve(l=>{const c=fa(e);c&&li(c,l.target)&&(o.current=!0)}),s=Ve(l=>{r.current||t(l)});C.useEffect(()=>{var l,c;if(A||e==null)return;const u=Or(fa(e)),g=u.defaultView||window;let I=(l=g.event)!=null?l:(c=g.parent)==null?void 0:c.event,h=null;Ud[n]&&(h=pA(u,Ud[n],a,!0));const y=pA(u,n,i,!0),d=pA(u,n,f=>{if(f===I){I=void 0;return}s(f)});let E=[];return"ontouchstart"in u.documentElement&&(E=[].slice.call(u.body.children).map(f=>pA(f,"mousemove",Yd))),()=>{h==null||h(),y(),d(),E.forEach(f=>f())}},[e,A,n,i,a,s])}function WV(e){const t={};return Array.isArray(e)?(e==null||e.forEach(A=>{t[A.name]=A}),t):e||t}function XV(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function KE({enabled:e,enableEvents:t,placement:A,flip:n,offset:r,fixed:o,containerPadding:i,arrowElement:a,popperConfig:s={}}){var l,c,u,g,I;const h=WV(s.modifiers);return Object.assign({},s,{placement:A,enabled:e,strategy:o?"fixed":s.strategy,modifiers:XV(Object.assign({},h,{eventListeners:{enabled:t,options:(l=h.eventListeners)==null?void 0:l.options},preventOverflow:Object.assign({},h.preventOverflow,{options:i?Object.assign({padding:i},(c=h.preventOverflow)==null?void 0:c.options):(u=h.preventOverflow)==null?void 0:u.options}),offset:{options:Object.assign({offset:r},(g=h.offset)==null?void 0:g.options)},arrow:Object.assign({},h.arrow,{enabled:!!a,options:Object.assign({},(I=h.arrow)==null?void 0:I.options,{element:a})}),flip:Object.assign({enabled:!!n},h.flip)}))})}const ZV=["children"];function e1(e,t){if(e==null)return{};var A={},n=Object.keys(e),r,o;for(o=0;o=0)&&(A[r]=e[r]);return A}const t1=()=>{};function jE(e={}){const t=C.useContext(Ds),[A,n]=Ka(),r=C.useRef(!1),{flip:o,offset:i,rootCloseEvent:a,fixed:s=!1,placement:l,popperConfig:c={},enableEventListeners:u=!0,usePopper:g=!!t}=e,I=(t==null?void 0:t.show)==null?!!e.show:t.show;I&&!r.current&&(r.current=!0);const h=m=>{t==null||t.toggle(!1,m)},{placement:y,setMenu:d,menuElement:E,toggleElement:f}=t||{},B=JE(f,E,KE({placement:l||y||"bottom-start",enabled:g,enableEvents:u??I,offset:i,flip:o,fixed:s,arrowElement:A,popperConfig:c})),p=Object.assign({ref:d||t1,"aria-labelledby":f==null?void 0:f.id},B.attributes.popper,{style:B.styles.popper}),v={show:I,placement:y,hasShown:r.current,toggle:t==null?void 0:t.toggle,popper:g?B:null,arrowProps:g?Object.assign({ref:n},B.attributes.arrow,{style:B.styles.arrow}):{}};return $E(E,h,{clickTrigger:a,disabled:!I}),[p,v]}const A1={usePopper:!0};function ig(e){let{children:t}=e,A=e1(e,ZV);const[n,r]=jE(A);return Q(Qt,{children:t(n,r)})}ig.displayName="DropdownMenu";ig.defaultProps=A1;const za={prefix:String(Math.round(Math.random()*1e10)),current:0},zE=Z.createContext(za),n1=Z.createContext(!1);let r1=!!(typeof window<"u"&&window.document&&window.document.createElement),gl=new WeakMap;function o1(e=!1){let t=C.useContext(zE),A=C.useRef(null);if(A.current===null&&!e){var n,r;let o=(r=Z.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||r===void 0||(n=r.ReactCurrentOwner)===null||n===void 0?void 0:n.current;if(o){let i=gl.get(o);i==null?gl.set(o,{id:t.current,state:o.memoizedState}):o.memoizedState!==i.state&&(t.current=i.id,gl.delete(o))}A.current=++t.current}return A.current}function i1(e){let t=C.useContext(zE);t===za&&!r1&&console.warn("When server rendering, you must wrap your application in an to ensure consistent ids are generated between the client and server.");let A=o1(!!e),n=`react-aria${t.prefix}`;return e||`${n}-${A}`}function a1(e){let t=Z.useId(),[A]=C.useState(g1()),n=A?"react-aria":`react-aria${za.prefix}`;return e||`${n}-${t}`}const s1=typeof Z.useId=="function"?a1:i1;function l1(){return!1}function c1(){return!0}function u1(e){return()=>{}}function g1(){return typeof Z.useSyncExternalStore=="function"?Z.useSyncExternalStore(u1,l1,c1):C.useContext(n1)}const _E=e=>{var t;return((t=e.getAttribute("role"))==null?void 0:t.toLowerCase())==="menu"},Td=()=>{};function WE(){const e=s1(),{show:t=!1,toggle:A=Td,setToggle:n,menuElement:r}=C.useContext(Ds)||{},o=C.useCallback(a=>{A(!t,a)},[t,A]),i={id:e,ref:n||Td,onClick:o,"aria-expanded":!!t};return r&&_E(r)&&(i["aria-haspopup"]=!0),[i,{show:t,toggle:A}]}function XE({children:e}){const[t,A]=WE();return Q(Qt,{children:e(t,A)})}XE.displayName="DropdownToggle";const f1=C.createContext(null),ci=(e,t=null)=>e!=null?String(e):t||null,Rn=f1,ZE=C.createContext(null);ZE.displayName="NavContext";const ag=ZE,d1="data-rr-ui-",C1="rrUi";function Ur(e){return`${d1}${e}`}function I1(e){return`${C1}${e}`}const B1=["eventKey","disabled","onClick","active","as"];function E1(e,t){if(e==null)return{};var A={},n=Object.keys(e),r,o;for(o=0;o=0)&&(A[r]=e[r]);return A}function ep({key:e,href:t,active:A,disabled:n,onClick:r}){const o=C.useContext(Rn),i=C.useContext(ag),{activeKey:a}=i||{},s=ci(e,t),l=A==null&&e!=null?ci(a)===s:A;return[{onClick:Ve(u=>{n||(r==null||r(u),o&&!u.isPropagationStopped()&&o(s,u))}),"aria-disabled":n||void 0,"aria-selected":l,[Ur("dropdown-item")]:""},{isActive:l}]}const tp=C.forwardRef((e,t)=>{let{eventKey:A,disabled:n,onClick:r,active:o,as:i=zu}=e,a=E1(e,B1);const[s]=ep({key:A,href:a.href,disabled:n,onClick:r,active:o});return Q(i,Object.assign({},a,{ref:t},s))});tp.displayName="DropdownItem";const Ap=C.createContext(xr?window:void 0);Ap.Provider;function Ns(){return C.useContext(Ap)}function qd(){const e=ME(),t=C.useRef(null),A=C.useCallback(n=>{t.current=n,e()},[e]);return[t,A]}function wi({defaultShow:e,show:t,onSelect:A,onToggle:n,itemSelector:r=`* [${Ur("dropdown-item")}]`,focusFirstItemOnShow:o,placement:i="bottom-start",children:a}){const s=Ns(),[l,c]=bw(t,e,n),[u,g]=qd(),I=u.current,[h,y]=qd(),d=h.current,E=CE(l),f=C.useRef(null),B=C.useRef(!1),p=C.useContext(Rn),v=C.useCallback((L,O,U=O==null?void 0:O.type)=>{c(L,{originalEvent:O,source:U})},[c]),m=Ve((L,O)=>{A==null||A(L,O),v(!1,O,"select"),O.isPropagationStopped()||p==null||p(L,O)}),w=C.useMemo(()=>({toggle:v,placement:i,show:l,menuElement:I,toggleElement:d,setMenu:g,setToggle:y}),[v,i,l,I,d,g,y]);I&&E&&!l&&(B.current=I.contains(I.ownerDocument.activeElement));const V=Ve(()=>{d&&d.focus&&d.focus()}),D=Ve(()=>{const L=f.current;let O=o;if(O==null&&(O=u.current&&_E(u.current)?"keyboard":!1),O===!1||O==="keyboard"&&!/^key.+$/.test(L))return;const U=fA(u.current,r)[0];U&&U.focus&&U.focus()});C.useEffect(()=>{l?D():B.current&&(B.current=!1,V())},[l,B,V,D]),C.useEffect(()=>{f.current=null});const G=(L,O)=>{if(!u.current)return null;const U=fA(u.current,r);let F=U.indexOf(L)+O;return F=Math.max(0,Math.min(F,U.length)),U[F]};return lw(C.useCallback(()=>s.document,[s]),"keydown",L=>{var O,U;const{key:F}=L,N=L.target,S=(O=u.current)==null?void 0:O.contains(N),M=(U=h.current)==null?void 0:U.contains(N);if(/input|textarea/i.test(N.tagName)&&(F===" "||F!=="Escape"&&S||F==="Escape"&&N.type==="search")||!S&&!M||F==="Tab"&&(!u.current||!l))return;f.current=L.type;const b={originalEvent:L,source:L.type};switch(F){case"ArrowUp":{const Y=G(N,-1);Y&&Y.focus&&Y.focus(),L.preventDefault();return}case"ArrowDown":if(L.preventDefault(),!l)c(!0,b);else{const Y=G(N,1);Y&&Y.focus&&Y.focus()}return;case"Tab":Hu(N.ownerDocument,"keyup",Y=>{var k;(Y.key==="Tab"&&!Y.target||!((k=u.current)!=null&&k.contains(Y.target)))&&c(!1,b)},{once:!0});break;case"Escape":F==="Escape"&&(L.preventDefault(),L.stopPropagation()),c(!1,b);break}}),Q(Rn.Provider,{value:m,children:Q(Ds.Provider,{value:w,children:a})})}wi.displayName="Dropdown";wi.Menu=ig;wi.Toggle=XE;wi.Item=tp;const np=C.createContext({});np.displayName="DropdownContext";const rp=np,op=C.forwardRef(({className:e,bsPrefix:t,as:A="hr",role:n="separator",...r},o)=>(t=X(t,"dropdown-divider"),Q(A,{ref:o,className:_(e,t),role:n,...r})));op.displayName="DropdownDivider";const p1=op,ip=C.forwardRef(({className:e,bsPrefix:t,as:A="div",role:n="heading",...r},o)=>(t=X(t,"dropdown-header"),Q(A,{ref:o,className:_(e,t),role:n,...r})));ip.displayName="DropdownHeader";const Q1=ip,ap=C.forwardRef(({bsPrefix:e,className:t,eventKey:A,disabled:n=!1,onClick:r,active:o,as:i=_u,...a},s)=>{const l=X(e,"dropdown-item"),[c,u]=ep({key:A,href:a.href,disabled:n,onClick:r,active:o});return Q(i,{...a,...c,ref:s,className:_(t,l,u.isActive&&"active",n&&"disabled")})});ap.displayName="DropdownItem";const h1=ap,sp=C.forwardRef(({className:e,bsPrefix:t,as:A="span",...n},r)=>(t=X(t,"dropdown-item-text"),Q(A,{ref:r,className:_(e,t),...n})));sp.displayName="DropdownItemText";const m1=sp,lp=C.createContext(null);lp.displayName="InputGroupContext";const sg=lp,cp=C.createContext(null);cp.displayName="NavbarContext";const xn=cp;function up(e,t){return e}function gp(e,t,A){const n=A?"top-end":"top-start",r=A?"top-start":"top-end",o=A?"bottom-end":"bottom-start",i=A?"bottom-start":"bottom-end",a=A?"right-start":"left-start",s=A?"right-end":"left-end",l=A?"left-start":"right-start",c=A?"left-end":"right-end";let u=e?i:o;return t==="up"?u=e?r:n:t==="end"?u=e?c:l:t==="start"?u=e?s:a:t==="down-centered"?u="bottom":t==="up-centered"&&(u="top"),u}const fp=C.forwardRef(({bsPrefix:e,className:t,align:A,rootCloseEvent:n,flip:r=!0,show:o,renderOnMount:i,as:a="div",popperConfig:s,variant:l,...c},u)=>{let g=!1;const I=C.useContext(xn),h=X(e,"dropdown-menu"),{align:y,drop:d,isRTL:E}=C.useContext(rp);A=A||y;const f=C.useContext(sg),B=[];if(A)if(typeof A=="object"){const L=Object.keys(A);if(L.length){const O=L[0],U=A[O];g=U==="start",B.push(`${h}-${O}-${U}`)}}else A==="end"&&(g=!0);const p=gp(g,d,E),[v,{hasShown:m,popper:w,show:V,toggle:D}]=jE({flip:r,rootCloseEvent:n,show:o,usePopper:!I&&B.length===0,offset:[0,2],popperConfig:s,placement:p});if(v.ref=Kt(up(u),v.ref),oi(()=>{V&&(w==null||w.update())},[V]),!m&&!i&&!f)return null;typeof a!="string"&&(v.show=V,v.close=()=>D==null?void 0:D(!1),v.align=A);let G=c.style;return w!=null&&w.placement&&(G={...c.style,...v.style},c["x-placement"]=w.placement),Q(a,{...c,...v,style:G,...(B.length||I)&&{"data-bs-popper":"static"},className:_(t,h,V&&"show",g&&`${h}-end`,l&&`${h}-${l}`,...B)})});fp.displayName="DropdownMenu";const y1=fp,dp=C.forwardRef(({bsPrefix:e,split:t,className:A,childBsPrefix:n,as:r=Qn,...o},i)=>{const a=X(e,"dropdown-toggle"),s=C.useContext(Ds);n!==void 0&&(o.bsPrefix=n);const[l]=WE();return l.ref=Kt(l.ref,up(i)),Q(r,{className:_(A,a,t&&`${a}-split`,(s==null?void 0:s.show)&&"show"),...l,...o})});dp.displayName="DropdownToggle";const v1=dp,Cp=C.forwardRef((e,t)=>{const{bsPrefix:A,drop:n="down",show:r,className:o,align:i="start",onSelect:a,onToggle:s,focusFirstItemOnShow:l,as:c="div",navbar:u,autoClose:g=!0,...I}=Pu(e,{show:"onToggle"}),h=C.useContext(sg),y=X(A,"dropdown"),d=ws(),E=w=>g===!1?w==="click":g==="inside"?w!=="rootClose":g==="outside"?w!=="select":!0,f=Ve((w,V)=>{var D,G;!((D=V.originalEvent)==null||(G=D.target)==null)&&G.classList.contains("dropdown-toggle")&&V.source==="mousedown"||(V.originalEvent.currentTarget===document&&(V.source!=="keydown"||V.originalEvent.key==="Escape")&&(V.source="rootClose"),E(V.source)&&(s==null||s(w,V)))}),p=gp(i==="end",n,d),v=C.useMemo(()=>({align:i,drop:n,isRTL:d}),[i,n,d]),m={down:y,"down-centered":`${y}-center`,up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"};return Q(rp.Provider,{value:v,children:Q(wi,{placement:p,show:r,onSelect:a,onToggle:f,focusFirstItemOnShow:l,itemSelector:`.${y}-item:not(.disabled):not(:disabled)`,children:h?I.children:Q(c,{...I,ref:t,className:_(o,r&&"show",m[n])})})})});Cp.displayName="Dropdown";const Vt=Object.assign(Cp,{Toggle:v1,Menu:y1,Item:h1,ItemText:m1,Divider:p1,Header:Q1}),w1={type:ce.string,tooltip:ce.bool,as:ce.elementType},lg=C.forwardRef(({as:e="div",className:t,type:A="valid",tooltip:n=!1,...r},o)=>Q(e,{...r,ref:o,className:_(t,`${A}-${n?"tooltip":"feedback"}`)}));lg.displayName="Feedback";lg.propTypes=w1;const Ip=lg,V1=C.createContext({}),wA=V1,Bp=C.forwardRef(({id:e,bsPrefix:t,className:A,type:n="checkbox",isValid:r=!1,isInvalid:o=!1,as:i="input",...a},s)=>{const{controlId:l}=C.useContext(wA);return t=X(t,"form-check-input"),Q(i,{...a,ref:s,type:n,id:e||l,className:_(A,t,r&&"is-valid",o&&"is-invalid")})});Bp.displayName="FormCheckInput";const ks=Bp,Ep=C.forwardRef(({bsPrefix:e,className:t,htmlFor:A,...n},r)=>{const{controlId:o}=C.useContext(wA);return e=X(e,"form-check-label"),Q("label",{...n,ref:r,htmlFor:A||o,className:_(t,e)})});Ep.displayName="FormCheckLabel";const hc=Ep,pp=C.forwardRef(({id:e,bsPrefix:t,bsSwitchPrefix:A,inline:n=!1,reverse:r=!1,disabled:o=!1,isValid:i=!1,isInvalid:a=!1,feedbackTooltip:s=!1,feedback:l,feedbackType:c,className:u,style:g,title:I="",type:h="checkbox",label:y,children:d,as:E="input",...f},B)=>{t=X(t,"form-check"),A=X(A,"form-switch");const{controlId:p}=C.useContext(wA),v=C.useMemo(()=>({controlId:e||p}),[p,e]),m=!d&&y!=null&&y!==!1||Lw(d,hc),w=Q(ks,{...f,type:h==="switch"?"checkbox":h,ref:B,isValid:i,isInvalid:a,disabled:o,as:E});return Q(wA.Provider,{value:v,children:Q("div",{style:g,className:_(u,m&&t,n&&`${t}-inline`,r&&`${t}-reverse`,h==="switch"&&A),children:d||j(Qt,{children:[w,m&&Q(hc,{title:I,children:y}),l&&Q(Ip,{type:c,tooltip:s,children:l})]})})})});pp.displayName="FormCheck";const _a=Object.assign(pp,{Input:ks,Label:hc}),Qp=C.forwardRef(({bsPrefix:e,type:t,size:A,htmlSize:n,id:r,className:o,isValid:i=!1,isInvalid:a=!1,plaintext:s,readOnly:l,as:c="input",...u},g)=>{const{controlId:I}=C.useContext(wA);return e=X(e,"form-control"),Q(c,{...u,type:t,size:n,ref:g,readOnly:l,id:r||I,className:_(o,s?`${e}-plaintext`:e,A&&`${e}-${A}`,t==="color"&&`${e}-color`,i&&"is-valid",a&&"is-invalid")})});Qp.displayName="FormControl";const D1=Object.assign(Qp,{Feedback:Ip}),hp=C.forwardRef(({className:e,bsPrefix:t,as:A="div",...n},r)=>(t=X(t,"form-floating"),Q(A,{ref:r,className:_(e,t),...n})));hp.displayName="FormFloating";const S1=hp,mp=C.forwardRef(({controlId:e,as:t="div",...A},n)=>{const r=C.useMemo(()=>({controlId:e}),[e]);return Q(wA.Provider,{value:r,children:Q(t,{...A,ref:n})})});mp.displayName="FormGroup";const yp=mp,vp=C.forwardRef(({as:e="label",bsPrefix:t,column:A=!1,visuallyHidden:n=!1,className:r,htmlFor:o,...i},a)=>{const{controlId:s}=C.useContext(wA);t=X(t,"form-label");let l="col-form-label";typeof A=="string"&&(l=`${l} ${l}-${A}`);const c=_(r,t,n&&"visually-hidden",A&&l);return o=o||s,A?Q(de,{ref:a,as:"label",className:c,htmlFor:o,...i}):Q(e,{ref:a,className:c,htmlFor:o,...i})});vp.displayName="FormLabel";const N1=vp,wp=C.forwardRef(({bsPrefix:e,className:t,id:A,...n},r)=>{const{controlId:o}=C.useContext(wA);return e=X(e,"form-range"),Q("input",{...n,type:"range",ref:r,className:_(t,e),id:A||o})});wp.displayName="FormRange";const k1=wp,Vp=C.forwardRef(({bsPrefix:e,size:t,htmlSize:A,className:n,isValid:r=!1,isInvalid:o=!1,id:i,...a},s)=>{const{controlId:l}=C.useContext(wA);return e=X(e,"form-select"),Q("select",{...a,size:A,ref:s,className:_(n,e,t&&`${e}-${t}`,r&&"is-valid",o&&"is-invalid"),id:i||l})});Vp.displayName="FormSelect";const R1=Vp,Dp=C.forwardRef(({bsPrefix:e,className:t,as:A="small",muted:n,...r},o)=>(e=X(e,"form-text"),Q(A,{...r,ref:o,className:_(t,e,n&&"text-muted")})));Dp.displayName="FormText";const G1=Dp,Sp=C.forwardRef((e,t)=>Q(_a,{...e,ref:t,type:"switch"}));Sp.displayName="Switch";const L1=Object.assign(Sp,{Input:_a.Input,Label:_a.Label}),Np=C.forwardRef(({bsPrefix:e,className:t,children:A,controlId:n,label:r,...o},i)=>(e=X(e,"form-floating"),j(yp,{ref:i,className:_(t,e),controlId:n,...o,children:[A,Q("label",{htmlFor:n,children:r})]})));Np.displayName="FloatingLabel";const F1=Np,M1={_ref:ce.any,validated:ce.bool,as:ce.elementType},cg=C.forwardRef(({className:e,validated:t,as:A="form",...n},r)=>Q(A,{...n,ref:r,className:_(e,t&&"was-validated")}));cg.displayName="Form";cg.propTypes=M1;const ct=Object.assign(cg,{Group:yp,Control:D1,Floating:S1,Check:_a,Switch:L1,Label:N1,Text:G1,Range:k1,Select:R1,FloatingLabel:F1}),kp=C.forwardRef(({className:e,bsPrefix:t,as:A="span",...n},r)=>(t=X(t,"input-group-text"),Q(A,{ref:r,className:_(e,t),...n})));kp.displayName="InputGroupText";const ug=kp,b1=e=>Q(ug,{children:Q(ks,{type:"checkbox",...e})}),O1=e=>Q(ug,{children:Q(ks,{type:"radio",...e})}),Rp=C.forwardRef(({bsPrefix:e,size:t,hasValidation:A,className:n,as:r="div",...o},i)=>{e=X(e,"input-group");const a=C.useMemo(()=>({}),[]);return Q(sg.Provider,{value:a,children:Q(r,{ref:i,...o,className:_(n,e,t&&`${e}-${t}`,A&&"has-validation")})})});Rp.displayName="InputGroup";const Sr=Object.assign(Rp,{Text:ug,Radio:O1,Checkbox:b1}),x1=C.createContext(null),Gp=x1,Y1=["as","active","eventKey"];function U1(e,t){if(e==null)return{};var A={},n=Object.keys(e),r,o;for(o=0;o=0)&&(A[r]=e[r]);return A}function Lp({key:e,onClick:t,active:A,id:n,role:r,disabled:o}){const i=C.useContext(Rn),a=C.useContext(ag),s=C.useContext(Gp);let l=A;const c={role:r};if(a){!r&&a.role==="tablist"&&(c.role="tab");const u=a.getControllerId(e??null),g=a.getControlledId(e??null);c[Ur("event-key")]=e,c.id=u||n,l=A==null&&e!=null?a.activeKey===e:A,(l||!(s!=null&&s.unmountOnExit)&&!(s!=null&&s.mountOnEnter))&&(c["aria-controls"]=g)}return c.role==="tab"&&(c["aria-selected"]=l,l||(c.tabIndex=-1),o&&(c.tabIndex=-1,c["aria-disabled"]=!0)),c.onClick=Ve(u=>{o||(t==null||t(u),e!=null&&i&&!u.isPropagationStopped()&&i(e,u))}),[c,{isActive:l}]}const Fp=C.forwardRef((e,t)=>{let{as:A=zu,active:n,eventKey:r}=e,o=U1(e,Y1);const[i,a]=Lp(Object.assign({key:ci(r,o.href),active:n},o));return i[Ur("active")]=a.isActive,Q(A,Object.assign({},o,i,{ref:t}))});Fp.displayName="NavItem";const T1=Fp,q1=["as","onSelect","activeKey","role","onKeyDown"];function P1(e,t){if(e==null)return{};var A={},n=Object.keys(e),r,o;for(o=0;o=0)&&(A[r]=e[r]);return A}const Pd=()=>{},Hd=Ur("event-key"),Mp=C.forwardRef((e,t)=>{let{as:A="div",onSelect:n,activeKey:r,role:o,onKeyDown:i}=e,a=P1(e,q1);const s=ME(),l=C.useRef(!1),c=C.useContext(Rn),u=C.useContext(Gp);let g,I;u&&(o=o||"tablist",r=u.activeKey,g=u.getControlledId,I=u.getControllerId);const h=C.useRef(null),y=B=>{const p=h.current;if(!p)return null;const v=fA(p,`[${Hd}]:not([aria-disabled=true])`),m=p.querySelector("[aria-selected=true]");if(!m||m!==document.activeElement)return null;const w=v.indexOf(m);if(w===-1)return null;let V=w+B;return V>=v.length&&(V=0),V<0&&(V=v.length-1),v[V]},d=(B,p)=>{B!=null&&(n==null||n(B,p),c==null||c(B,p))},E=B=>{if(i==null||i(B),!u)return;let p;switch(B.key){case"ArrowLeft":case"ArrowUp":p=y(-1);break;case"ArrowRight":case"ArrowDown":p=y(1);break;default:return}p&&(B.preventDefault(),d(p.dataset[I1("EventKey")]||null,B),l.current=!0,s())};C.useEffect(()=>{if(h.current&&l.current){const B=h.current.querySelector(`[${Hd}][aria-selected=true]`);B==null||B.focus()}l.current=!1});const f=Kt(t,h);return Q(Rn.Provider,{value:d,children:Q(ag.Provider,{value:{role:o,activeKey:ci(r),getControlledId:g||Pd,getControllerId:I||Pd},children:Q(A,Object.assign({},a,{onKeyDown:E,ref:f,role:o}))})})});Mp.displayName="Nav";const H1=Object.assign(Mp,{Item:T1});var Ji;function Jd(e){if((!Ji&&Ji!==0||e)&&xr){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),Ji=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Ji}function fl(e){e===void 0&&(e=Or());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function J1(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const $d=Ur("modal-open");class $1{constructor({ownerDocument:t,handleContainerOverflow:A=!0,isRTL:n=!1}={}){this.handleContainerOverflow=A,this.isRTL=n,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return J1(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const A={overflow:"hidden"},n=this.isRTL?"paddingLeft":"paddingRight",r=this.getElement();t.style={overflow:r.style.overflow,[n]:r.style[n]},t.scrollBarWidth&&(A[n]=`${parseInt(hA(r,n)||"0",10)+t.scrollBarWidth}px`),r.setAttribute($d,""),hA(r,A)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const A=this.getElement();A.removeAttribute($d),Object.assign(A.style,t.style)}add(t){let A=this.modals.indexOf(t);return A!==-1||(A=this.modals.length,this.modals.push(t),this.setModalAttributes(t),A!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),A}remove(t){const A=this.modals.indexOf(t);A!==-1&&(this.modals.splice(A,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(t))}isTopModal(t){return!!this.modals.length&&this.modals[this.modals.length-1]===t}}const gg=$1,dl=(e,t)=>xr?e==null?(t||Or()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function mc(e,t){const A=Ns(),[n,r]=C.useState(()=>dl(e,A==null?void 0:A.document));if(!n){const o=dl(e);o&&r(o)}return C.useEffect(()=>{t&&n&&t(n)},[t,n]),C.useEffect(()=>{const o=dl(e);o!==n&&r(o)},[e,n]),n}function K1({children:e,in:t,onExited:A,mountOnEnter:n,unmountOnExit:r}){const o=C.useRef(null),i=C.useRef(t),a=Ve(A);C.useEffect(()=>{t?i.current=!0:a(o.current)},[t,a]);const s=Kt(o,e.ref),l=C.cloneElement(e,{ref:s});return t?l:r||!i.current&&n?null:l}const j1=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function z1(e,t){if(e==null)return{};var A={},n=Object.keys(e),r,o;for(o=0;o=0)&&(A[r]=e[r]);return A}function _1(e){let{onEnter:t,onEntering:A,onEntered:n,onExit:r,onExiting:o,onExited:i,addEndListener:a,children:s}=e,l=z1(e,j1);const c=C.useRef(null),u=Kt(c,typeof s=="function"?null:s.ref),g=p=>v=>{p&&c.current&&p(c.current,v)},I=C.useCallback(g(t),[t]),h=C.useCallback(g(A),[A]),y=C.useCallback(g(n),[n]),d=C.useCallback(g(r),[r]),E=C.useCallback(g(o),[o]),f=C.useCallback(g(i),[i]),B=C.useCallback(g(a),[a]);return Object.assign({},l,{nodeRef:c},t&&{onEnter:I},A&&{onEntering:h},n&&{onEntered:y},r&&{onExit:d},o&&{onExiting:E},i&&{onExited:f},a&&{addEndListener:B},{children:typeof s=="function"?(p,v)=>s(p,Object.assign({},v,{ref:u})):C.cloneElement(s,{ref:u})})}const W1=["component"];function X1(e,t){if(e==null)return{};var A={},n=Object.keys(e),r,o;for(o=0;o=0)&&(A[r]=e[r]);return A}const Z1=C.forwardRef((e,t)=>{let{component:A}=e,n=X1(e,W1);const r=_1(n);return Q(A,Object.assign({ref:t},r))}),eD=Z1;function tD({in:e,onTransition:t}){const A=C.useRef(null),n=C.useRef(!0),r=Ve(t);return oi(()=>{if(!A.current)return;let o=!1;return r({in:e,element:A.current,initial:n.current,isStale:()=>o}),()=>{o=!0}},[e,r]),oi(()=>(n.current=!1,()=>{n.current=!0}),[]),A}function AD({children:e,in:t,onExited:A,onEntered:n,transition:r}){const[o,i]=C.useState(!t);t&&o&&i(!1);const a=tD({in:!!t,onTransition:l=>{const c=()=>{l.isStale()||(l.in?n==null||n(l.element,l.initial):(i(!0),A==null||A(l.element)))};Promise.resolve(r(l)).then(c,u=>{throw l.in||i(!0),u})}}),s=Kt(a,e.ref);return o&&!t?null:C.cloneElement(e,{ref:s})}function yc(e,t,A){return e?Q(eD,Object.assign({},A,{component:e})):t?Q(AD,Object.assign({},A,{transition:t})):Q(K1,Object.assign({},A))}function bp(e){return e.code==="Escape"||e.keyCode===27}const nD=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function rD(e,t){if(e==null)return{};var A={},n=Object.keys(e),r,o;for(o=0;o=0)&&(A[r]=e[r]);return A}let Cl;function oD(e){return Cl||(Cl=new gg({ownerDocument:e==null?void 0:e.document})),Cl}function iD(e){const t=Ns(),A=e||oD(t),n=C.useRef({dialog:null,backdrop:null});return Object.assign(n.current,{add:()=>A.add(n.current),remove:()=>A.remove(n.current),isTopModal:()=>A.isTopModal(n.current),setDialogRef:C.useCallback(r=>{n.current.dialog=r},[]),setBackdropRef:C.useCallback(r=>{n.current.backdrop=r},[])})}const Op=C.forwardRef((e,t)=>{let{show:A=!1,role:n="dialog",className:r,style:o,children:i,backdrop:a=!0,keyboard:s=!0,onBackdropClick:l,onEscapeKeyDown:c,transition:u,runTransition:g,backdropTransition:I,runBackdropTransition:h,autoFocus:y=!0,enforceFocus:d=!0,restoreFocus:E=!0,restoreFocusOptions:f,renderDialog:B,renderBackdrop:p=$=>Q("div",Object.assign({},$)),manager:v,container:m,onShow:w,onHide:V=()=>{},onExit:D,onExited:G,onExiting:L,onEnter:O,onEntering:U,onEntered:F}=e,N=rD(e,nD);const S=Ns(),M=mc(m),R=iD(v),b=Ku(),Y=CE(A),[k,x]=C.useState(!A),q=C.useRef(null);C.useImperativeHandle(t,()=>R,[R]),xr&&!Y&&A&&(q.current=fl(S==null?void 0:S.document)),A&&k&&x(!1);const P=Ve(()=>{if(R.add(),le.current=pA(document,"keydown",se),ue.current=pA(document,"focus",()=>setTimeout(ee),!0),w&&w(),y){var $,te;const Ce=fl(($=(te=R.dialog)==null?void 0:te.ownerDocument)!=null?$:S==null?void 0:S.document);R.dialog&&Ce&&!li(R.dialog,Ce)&&(q.current=Ce,R.dialog.focus())}}),z=Ve(()=>{if(R.remove(),le.current==null||le.current(),ue.current==null||ue.current(),E){var $;($=q.current)==null||$.focus==null||$.focus(f),q.current=null}});C.useEffect(()=>{!A||!M||P()},[A,M,P]),C.useEffect(()=>{k&&z()},[k,z]),Xu(()=>{z()});const ee=Ve(()=>{if(!d||!b()||!R.isTopModal())return;const $=fl(S==null?void 0:S.document);R.dialog&&$&&!li(R.dialog,$)&&R.dialog.focus()}),ne=Ve($=>{$.target===$.currentTarget&&(l==null||l($),a===!0&&V())}),se=Ve($=>{s&&bp($)&&R.isTopModal()&&(c==null||c($),$.defaultPrevented||V())}),ue=C.useRef(),le=C.useRef(),Ie=(...$)=>{x(!0),G==null||G(...$)};if(!M)return null;const ye=Object.assign({role:n,ref:R.setDialogRef,"aria-modal":n==="dialog"?!0:void 0},N,{style:o,className:r,tabIndex:-1});let J=B?B(ye):Q("div",Object.assign({},ye,{children:C.cloneElement(i,{role:"document"})}));J=yc(u,g,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!A,onExit:D,onExiting:L,onExited:Ie,onEnter:O,onEntering:U,onEntered:F,children:J});let T=null;return a&&(T=p({ref:R.setBackdropRef,onClick:ne}),T=yc(I,h,{in:!!A,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:T})),Q(Qt,{children:MA.createPortal(j(Qt,{children:[T,J]}),M)})});Op.displayName="Modal";const xp=Object.assign(Op,{Manager:gg});function vc(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function aD(e,t){e.classList?e.classList.add(t):vc(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Kd(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function sD(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Kd(e.className,t):e.setAttribute("class",Kd(e.className&&e.className.baseVal||"",t))}const Pn={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class Yp extends gg{adjustAndStore(t,A,n){const r=A.style[t];A.dataset[t]=r,hA(A,{[t]:`${parseFloat(hA(A,t))+n}px`})}restore(t,A){const n=A.dataset[t];n!==void 0&&(delete A.dataset[t],hA(A,{[t]:n}))}setContainerStyle(t){super.setContainerStyle(t);const A=this.getElement();if(aD(A,"modal-open"),!t.scrollBarWidth)return;const n=this.isRTL?"paddingLeft":"paddingRight",r=this.isRTL?"marginLeft":"marginRight";fA(A,Pn.FIXED_CONTENT).forEach(o=>this.adjustAndStore(n,o,t.scrollBarWidth)),fA(A,Pn.STICKY_CONTENT).forEach(o=>this.adjustAndStore(r,o,-t.scrollBarWidth)),fA(A,Pn.NAVBAR_TOGGLER).forEach(o=>this.adjustAndStore(r,o,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const A=this.getElement();sD(A,"modal-open");const n=this.isRTL?"paddingLeft":"paddingRight",r=this.isRTL?"marginLeft":"marginRight";fA(A,Pn.FIXED_CONTENT).forEach(o=>this.restore(n,o)),fA(A,Pn.STICKY_CONTENT).forEach(o=>this.restore(r,o)),fA(A,Pn.NAVBAR_TOGGLER).forEach(o=>this.restore(r,o))}}let Il;function Up(e){return Il||(Il=new Yp(e)),Il}const Tp=C.forwardRef(({className:e,bsPrefix:t,as:A="div",...n},r)=>(t=X(t,"modal-body"),Q(A,{ref:r,className:_(e,t),...n})));Tp.displayName="ModalBody";const lD=Tp,cD=C.createContext({onHide(){}}),fg=cD,qp=C.forwardRef(({bsPrefix:e,className:t,contentClassName:A,centered:n,size:r,fullscreen:o,children:i,scrollable:a,...s},l)=>{e=X(e,"modal");const c=`${e}-dialog`,u=typeof o=="string"?`${e}-fullscreen-${o}`:`${e}-fullscreen`;return Q("div",{...s,ref:l,className:_(c,t,r&&`${e}-${r}`,n&&`${c}-centered`,a&&`${c}-scrollable`,o&&u),children:Q("div",{className:_(`${e}-content`,A),children:i})})});qp.displayName="ModalDialog";const Pp=qp,Hp=C.forwardRef(({className:e,bsPrefix:t,as:A="div",...n},r)=>(t=X(t,"modal-footer"),Q(A,{ref:r,className:_(e,t),...n})));Hp.displayName="ModalFooter";const uD=Hp,gD=C.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:A=!1,onHide:n,children:r,...o},i)=>{const a=C.useContext(fg),s=Ve(()=>{a==null||a.onHide(),n==null||n()});return j("div",{ref:i,...o,children:[r,A&&Q(Qw,{"aria-label":e,variant:t,onClick:s})]})}),Jp=gD,$p=C.forwardRef(({bsPrefix:e,className:t,closeLabel:A="Close",closeButton:n=!1,...r},o)=>(e=X(e,"modal-header"),Q(Jp,{ref:o,...r,className:_(t,e),closeLabel:A,closeButton:n})));$p.displayName="ModalHeader";const fD=$p,dD=Vs("h4"),Kp=C.forwardRef(({className:e,bsPrefix:t,as:A=dD,...n},r)=>(t=X(t,"modal-title"),Q(A,{ref:r,className:_(e,t),...n})));Kp.displayName="ModalTitle";const CD=Kp;function ID(e){return Q(ii,{...e,timeout:null})}function BD(e){return Q(ii,{...e,timeout:null})}const jp=C.forwardRef(({bsPrefix:e,className:t,style:A,dialogClassName:n,contentClassName:r,children:o,dialogAs:i=Pp,"data-bs-theme":a,"aria-labelledby":s,"aria-describedby":l,"aria-label":c,show:u=!1,animation:g=!0,backdrop:I=!0,keyboard:h=!0,onEscapeKeyDown:y,onShow:d,onHide:E,container:f,autoFocus:B=!0,enforceFocus:p=!0,restoreFocus:v=!0,restoreFocusOptions:m,onEntered:w,onExit:V,onExiting:D,onEnter:G,onEntering:L,onExited:O,backdropClassName:U,manager:F,...N},S)=>{const[M,R]=C.useState({}),[b,Y]=C.useState(!1),k=C.useRef(!1),x=C.useRef(!1),q=C.useRef(null),[P,z]=Ka(),ee=Kt(S,z),ne=Ve(E),se=ws();e=X(e,"modal");const ue=C.useMemo(()=>({onHide:ne}),[ne]);function le(){return F||Up({isRTL:se})}function Ie(re){if(!xr)return;const it=le().getScrollbarWidth()>0,un=re.scrollHeight>Or(re).documentElement.clientHeight;R({paddingRight:it&&!un?Jd():void 0,paddingLeft:!it&&un?Jd():void 0})}const ye=Ve(()=>{P&&Ie(P.dialog)});Xu(()=>{Bc(window,"resize",ye),q.current==null||q.current()});const J=()=>{k.current=!0},T=re=>{k.current&&P&&re.target===P.dialog&&(x.current=!0),k.current=!1},$=()=>{Y(!0),q.current=fE(P.dialog,()=>{Y(!1)})},te=re=>{re.target===re.currentTarget&&$()},Ce=re=>{if(I==="static"){te(re);return}if(x.current||re.target!==re.currentTarget){x.current=!1;return}E==null||E()},wt=re=>{h?y==null||y(re):(re.preventDefault(),I==="static"&&$())},cn=(re,it)=>{re&&Ie(re),G==null||G(re,it)},et=re=>{q.current==null||q.current(),V==null||V(re)},K=(re,it)=>{L==null||L(re,it),Hu(window,"resize",ye)},ie=re=>{re&&(re.style.display=""),O==null||O(re),Bc(window,"resize",ye)},fe=C.useCallback(re=>Q("div",{...re,className:_(`${e}-backdrop`,U,!g&&"show")}),[g,U,e]),Se={...A,...M};Se.display="block";const Ee=re=>Q("div",{role:"dialog",...re,style:Se,className:_(t,e,b&&`${e}-static`,!g&&"show"),onClick:I?Ce:void 0,onMouseUp:T,"data-bs-theme":a,"aria-label":c,"aria-labelledby":s,"aria-describedby":l,children:Q(i,{...N,onMouseDown:J,className:n,contentClassName:r,children:o})});return Q(fg.Provider,{value:ue,children:Q(xp,{show:u,ref:ee,backdrop:I,container:f,keyboard:!0,autoFocus:B,enforceFocus:p,restoreFocus:v,restoreFocusOptions:m,onEscapeKeyDown:wt,onShow:d,onHide:E,onEnter:cn,onEntering:K,onEntered:w,onExit:et,onExiting:D,onExited:ie,manager:le(),transition:g?ID:void 0,backdropTransition:g?BD:void 0,renderBackdrop:fe,renderDialog:Ee})})});jp.displayName="Modal";const jd=Object.assign(jp,{Body:lD,Header:fD,Title:CD,Footer:uD,Dialog:Pp,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150});var zd={exports:{}},wc={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=A;function A(n){function r(i,a,s,l,c,u){var g=l||"<>",I=u||s;if(a[s]==null)return i?new Error("Required "+c+" `"+I+"` was not specified "+("in `"+g+"`.")):null;for(var h=arguments.length,y=Array(h>6?h-6:0),d=6;d(t=X(t,"nav-item"),Q(A,{ref:r,className:_(e,t),...n})));zp.displayName="NavItem";const pD=zp,_p=C.forwardRef(({bsPrefix:e,className:t,as:A=_u,active:n,eventKey:r,disabled:o=!1,...i},a)=>{e=X(e,"nav-link");const[s,l]=Lp({key:ci(r,i.href),active:n,disabled:o,...i});return Q(A,{...i,...s,ref:a,disabled:o,className:_(t,e,o&&"disabled",l.isActive&&"active")})});_p.displayName="NavLink";const QD=_p,Wp=C.forwardRef((e,t)=>{const{as:A="div",bsPrefix:n,variant:r,fill:o=!1,justify:i=!1,navbar:a,navbarScroll:s,className:l,activeKey:c,...u}=Pu(e,{activeKey:"onSelect"}),g=X(n,"nav");let I,h,y=!1;const d=C.useContext(xn),E=C.useContext(yE);return d?(I=d.bsPrefix,y=a??!0):E&&({cardHeaderBsPrefix:h}=E),Q(H1,{as:A,ref:t,activeKey:c,className:_(l,{[g]:!y,[`${I}-nav`]:y,[`${I}-nav-scroll`]:y&&s,[`${h}-${r}`]:!!h,[`${g}-${r}`]:!!r,[`${g}-fill`]:o,[`${g}-justified`]:i}),...u})});Wp.displayName="Nav";const Er=Object.assign(Wp,{Item:pD,Link:QD}),Xp=C.forwardRef(({bsPrefix:e,className:t,as:A,...n},r)=>{e=X(e,"navbar-brand");const o=A||(n.href?"a":"span");return Q(o,{...n,ref:r,className:_(t,e)})});Xp.displayName="NavbarBrand";const hD=Xp,Zp=C.forwardRef(({children:e,bsPrefix:t,...A},n)=>{t=X(t,"navbar-collapse");const r=C.useContext(xn);return Q(aw,{in:!!(r&&r.expanded),...A,children:Q("div",{ref:n,className:t,children:e})})});Zp.displayName="NavbarCollapse";const mD=Zp,eQ=C.forwardRef(({bsPrefix:e,className:t,children:A,label:n="Toggle navigation",as:r="button",onClick:o,...i},a)=>{e=X(e,"navbar-toggler");const{onToggle:s,expanded:l}=C.useContext(xn)||{},c=Ve(u=>{o&&o(u),s&&s()});return r==="button"&&(i.type="button"),Q(r,{...i,ref:a,onClick:c,"aria-label":n,className:_(t,e,!l&&"collapsed"),children:A||Q("span",{className:`${e}-icon`})})});eQ.displayName="NavbarToggle";const yD=eQ,Vc=new WeakMap,_d=(e,t)=>{if(!e||!t)return;const A=Vc.get(t)||new Map;Vc.set(t,A);let n=A.get(e);return n||(n=t.matchMedia(e),n.refCount=0,A.set(n.media,n)),n};function vD(e,t=typeof window>"u"?void 0:window){const A=_d(e,t),[n,r]=C.useState(()=>A?A.matches:!1);return oi(()=>{let o=_d(e,t);if(!o)return r(!1);let i=Vc.get(t);const a=()=>{r(o.matches)};return o.refCount++,o.addListener(a),a(),()=>{o.removeListener(a),o.refCount--,o.refCount<=0&&(i==null||i.delete(o.media)),o=void 0}},[e]),n}function wD(e){const t=Object.keys(e);function A(a,s){return a===s?s:a?`${a} and ${s}`:s}function n(a){return t[Math.min(t.indexOf(a)+1,t.length-1)]}function r(a){const s=n(a);let l=e[s];return typeof l=="number"?l=`${l-.2}px`:l=`calc(${l} - 0.2px)`,`(max-width: ${l})`}function o(a){let s=e[a];return typeof s=="number"&&(s=`${s}px`),`(min-width: ${s})`}function i(a,s,l){let c;typeof a=="object"?(c=a,l=s,s=!0):(s=s||!0,c={[a]:s});let u=C.useMemo(()=>Object.entries(c).reduce((g,[I,h])=>((h==="up"||h===!0)&&(g=A(g,o(I))),(h==="down"||h===!0)&&(g=A(g,r(I))),g),""),[JSON.stringify(c)]);return vD(u,l)}return i}const VD=wD({xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400}),tQ=C.forwardRef(({className:e,bsPrefix:t,as:A="div",...n},r)=>(t=X(t,"offcanvas-body"),Q(A,{ref:r,className:_(e,t),...n})));tQ.displayName="OffcanvasBody";const DD=tQ,SD={[qt]:"show",[CA]:"show"},AQ=C.forwardRef(({bsPrefix:e,className:t,children:A,in:n=!1,mountOnEnter:r=!1,unmountOnExit:o=!1,appear:i=!1,...a},s)=>(e=X(e,"offcanvas"),Q($u,{ref:s,addEndListener:Ju,in:n,mountOnEnter:r,unmountOnExit:o,appear:i,...a,childRef:A.ref,children:(l,c)=>C.cloneElement(A,{...c,className:_(t,A.props.className,(l===qt||l===ri)&&`${e}-toggling`,SD[l])})})));AQ.displayName="OffcanvasToggling";const ND=AQ,nQ=C.forwardRef(({bsPrefix:e,className:t,closeLabel:A="Close",closeButton:n=!1,...r},o)=>(e=X(e,"offcanvas-header"),Q(Jp,{ref:o,...r,className:_(t,e),closeLabel:A,closeButton:n})));nQ.displayName="OffcanvasHeader";const kD=nQ,RD=Vs("h5"),rQ=C.forwardRef(({className:e,bsPrefix:t,as:A=RD,...n},r)=>(t=X(t,"offcanvas-title"),Q(A,{ref:r,className:_(e,t),...n})));rQ.displayName="OffcanvasTitle";const GD=rQ;function LD(e){return Q(ND,{...e})}function FD(e){return Q(ii,{...e})}const oQ=C.forwardRef(({bsPrefix:e,className:t,children:A,"aria-labelledby":n,placement:r="start",responsive:o,show:i=!1,backdrop:a=!0,keyboard:s=!0,scroll:l=!1,onEscapeKeyDown:c,onShow:u,onHide:g,container:I,autoFocus:h=!0,enforceFocus:y=!0,restoreFocus:d=!0,restoreFocusOptions:E,onEntered:f,onExit:B,onExiting:p,onEnter:v,onEntering:m,onExited:w,backdropClassName:V,manager:D,renderStaticNode:G=!1,...L},O)=>{const U=C.useRef();e=X(e,"offcanvas");const{onToggle:F}=C.useContext(xn)||{},[N,S]=C.useState(!1),M=VD(o||"xs","up");C.useEffect(()=>{S(o?i&&!M:i)},[i,o,M]);const R=Ve(()=>{F==null||F(),g==null||g()}),b=C.useMemo(()=>({onHide:R}),[R]);function Y(){return D||(l?(U.current||(U.current=new Yp({handleContainerOverflow:!1})),U.current):Up())}const k=(z,...ee)=>{z&&(z.style.visibility="visible"),v==null||v(z,...ee)},x=(z,...ee)=>{z&&(z.style.visibility=""),w==null||w(...ee)},q=C.useCallback(z=>Q("div",{...z,className:_(`${e}-backdrop`,V)}),[V,e]),P=z=>Q("div",{...z,...L,className:_(t,o?`${e}-${o}`:e,`${e}-${r}`),"aria-labelledby":n,children:A});return j(Qt,{children:[!N&&(o||G)&&P({}),Q(fg.Provider,{value:b,children:Q(xp,{show:N,ref:O,backdrop:a,container:I,keyboard:s,autoFocus:h,enforceFocus:y&&!l,restoreFocus:d,restoreFocusOptions:E,onEscapeKeyDown:c,onShow:u,onHide:R,onEnter:k,onEntering:m,onEntered:f,onExit:B,onExiting:p,onExited:x,manager:Y(),transition:LD,backdropTransition:FD,renderBackdrop:q,renderDialog:P})})]})});oQ.displayName="Offcanvas";const MD=Object.assign(oQ,{Body:DD,Header:kD,Title:GD}),iQ=C.forwardRef((e,t)=>{const A=C.useContext(xn);return Q(MD,{ref:t,show:!!(A!=null&&A.expanded),...e,renderStaticNode:!0})});iQ.displayName="NavbarOffcanvas";const bD=iQ,aQ=C.forwardRef(({className:e,bsPrefix:t,as:A="span",...n},r)=>(t=X(t,"navbar-text"),Q(A,{ref:r,className:_(e,t),...n})));aQ.displayName="NavbarText";const OD=aQ,sQ=C.forwardRef((e,t)=>{const{bsPrefix:A,expand:n=!0,variant:r="light",bg:o,fixed:i,sticky:a,className:s,as:l="nav",expanded:c,onToggle:u,onSelect:g,collapseOnSelect:I=!1,...h}=Pu(e,{expanded:"onToggle"}),y=X(A,"navbar"),d=C.useCallback((...B)=>{g==null||g(...B),I&&c&&(u==null||u(!1))},[g,I,c,u]);h.role===void 0&&l!=="nav"&&(h.role="navigation");let E=`${y}-expand`;typeof n=="string"&&(E=`${E}-${n}`);const f=C.useMemo(()=>({onToggle:()=>u==null?void 0:u(!c),bsPrefix:y,expanded:!!c,expand:n}),[y,c,n,u]);return Q(xn.Provider,{value:f,children:Q(Rn.Provider,{value:d,children:Q(l,{ref:t,...h,className:_(s,y,n&&E,r&&`${y}-${r}`,o&&`bg-${o}`,a&&`sticky-${a}`,i&&`fixed-${i}`)})})})});sQ.displayName="Navbar";const $i=Object.assign(sQ,{Brand:hD,Collapse:mD,Offcanvas:bD,Text:OD,Toggle:yD}),xD=()=>{};function YD(e,t,{disabled:A,clickTrigger:n}={}){const r=t||xD;$E(e,r,{disabled:A,clickTrigger:n});const o=Ve(i=>{bp(i)&&r(i)});C.useEffect(()=>{if(A||e==null)return;const i=Or(fa(e));let a=(i.defaultView||window).event;const s=pA(i,"keyup",l=>{if(l===a){a=void 0;return}o(l)});return()=>{s()}},[e,A,o])}const lQ=C.forwardRef((e,t)=>{const{flip:A,offset:n,placement:r,containerPadding:o,popperConfig:i={},transition:a,runTransition:s}=e,[l,c]=Ka(),[u,g]=Ka(),I=Kt(c,t),h=mc(e.container),y=mc(e.target),[d,E]=C.useState(!e.show),f=JE(y,l,KE({placement:r,enableEvents:!!e.show,containerPadding:o||5,flip:A,offset:n,arrowElement:u,popperConfig:i}));e.show&&d&&E(!1);const B=(...L)=>{E(!0),e.onExited&&e.onExited(...L)},p=e.show||!d;if(YD(l,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!p)return null;const{onExit:v,onExiting:m,onEnter:w,onEntering:V,onEntered:D}=e;let G=e.children(Object.assign({},f.attributes.popper,{style:f.styles.popper,ref:I}),{popper:f,placement:r,show:!!e.show,arrowProps:Object.assign({},f.attributes.arrow,{style:f.styles.arrow,ref:g})});return G=yc(a,s,{in:!!e.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:G,onExit:v,onExiting:m,onExited:B,onEnter:w,onEntering:V,onEntered:D}),h?MA.createPortal(G,h):null});lQ.displayName="Overlay";const UD=lQ,cQ=C.forwardRef(({className:e,bsPrefix:t,as:A="div",...n},r)=>(t=X(t,"popover-header"),Q(A,{ref:r,className:_(e,t),...n})));cQ.displayName="PopoverHeader";const TD=cQ,uQ=C.forwardRef(({className:e,bsPrefix:t,as:A="div",...n},r)=>(t=X(t,"popover-body"),Q(A,{ref:r,className:_(e,t),...n})));uQ.displayName="PopoverBody";const gQ=uQ;function fQ(e,t){let A=e;return e==="left"?A=t?"end":"start":e==="right"&&(A=t?"start":"end"),A}function dQ(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const qD=C.forwardRef(({bsPrefix:e,placement:t="right",className:A,style:n,children:r,body:o,arrowProps:i,hasDoneInitialMeasure:a,popper:s,show:l,...c},u)=>{const g=X(e,"popover"),I=ws(),[h]=(t==null?void 0:t.split("-"))||[],y=fQ(h,I);let d=n;return l&&!a&&(d={...n,...dQ(s==null?void 0:s.strategy)}),j("div",{ref:u,role:"tooltip",style:d,"x-placement":h,className:_(A,g,h&&`bs-popover-${y}`),...c,children:[Q("div",{className:"popover-arrow",...i}),o?Q(gQ,{children:r}):r]})}),PD=Object.assign(qD,{Header:TD,Body:gQ,POPPER_OFFSET:[0,8]}),CQ=C.forwardRef(({bsPrefix:e,placement:t="right",className:A,style:n,children:r,arrowProps:o,hasDoneInitialMeasure:i,popper:a,show:s,...l},c)=>{e=X(e,"tooltip");const u=ws(),[g]=(t==null?void 0:t.split("-"))||[],I=fQ(g,u);let h=n;return s&&!i&&(h={...n,...dQ(a==null?void 0:a.strategy)}),j("div",{ref:c,style:h,role:"tooltip","x-placement":g,className:_(A,e,`bs-tooltip-${I}`),...l,children:[Q("div",{className:"tooltip-arrow",...o}),Q("div",{className:`${e}-inner`,children:r})]})});CQ.displayName="Tooltip";const IQ=Object.assign(CQ,{TOOLTIP_OFFSET:[0,6]});function HD(e){const t=C.useRef(null),A=X(void 0,"popover"),n=X(void 0,"tooltip"),r=C.useMemo(()=>({name:"offset",options:{offset:()=>{if(e)return e;if(t.current){if(vc(t.current,A))return PD.POPPER_OFFSET;if(vc(t.current,n))return IQ.TOOLTIP_OFFSET}return[0,0]}}}),[e,A,n]);return[t,[r]]}function JD(e,t){const{ref:A}=e,{ref:n}=t;e.ref=A.__wrapped||(A.__wrapped=r=>A($a(r))),t.ref=n.__wrapped||(n.__wrapped=r=>n($a(r)))}const BQ=C.forwardRef(({children:e,transition:t=ii,popperConfig:A={},rootClose:n=!1,placement:r="top",show:o=!1,...i},a)=>{const s=C.useRef({}),[l,c]=C.useState(null),[u,g]=HD(i.offset),I=Kt(a,u),h=t===!0?ii:t||void 0,y=Ve(d=>{c(d),A==null||A.onFirstUpdate==null||A.onFirstUpdate(d)});return oi(()=>{l&&i.target&&(s.current.scheduleUpdate==null||s.current.scheduleUpdate())},[l,i.target]),C.useEffect(()=>{o||c(null)},[o]),Q(UD,{...i,ref:I,popperConfig:{...A,modifiers:g.concat(A.modifiers||[]),onFirstUpdate:y},transition:h,rootClose:n,placement:r,show:o,children:(d,{arrowProps:E,popper:f,show:B})=>{var p,v;JD(d,E);const m=f==null?void 0:f.placement,w=Object.assign(s.current,{state:f==null?void 0:f.state,scheduleUpdate:f==null?void 0:f.update,placement:m,outOfBoundaries:(f==null||(p=f.state)==null||(v=p.modifiersData.hide)==null?void 0:v.isReferenceHidden)||!1,strategy:A.strategy}),V=!!l;return typeof e=="function"?e({...d,placement:m,show:B,...!t&&B&&{className:"show"},popper:w,arrowProps:E,hasDoneInitialMeasure:V}):C.cloneElement(e,{...d,placement:m,arrowProps:E,popper:w,hasDoneInitialMeasure:V,className:_(e.props.className,!t&&B&&"show"),style:{...e.props.style,...d.style}})}})});BQ.displayName="Overlay";const $D=BQ;function KD(e){return e&&typeof e=="object"?e:{show:e,hide:e}}function Wd(e,t,A){const[n]=t,r=n.currentTarget,o=n.relatedTarget||n.nativeEvent[A];(!o||o!==r)&&!li(r,o)&&e(...t)}ce.oneOf(["click","hover","focus"]);const jD=({trigger:e=["hover","focus"],overlay:t,children:A,popperConfig:n={},show:r,defaultShow:o=!1,onToggle:i,delay:a,placement:s,flip:l=s&&s.indexOf("auto")!==-1,...c})=>{const u=C.useRef(null),g=Kt(u,A.ref),I=Gw(),h=C.useRef(""),[y,d]=lE(r,o,i),E=KD(a),{onFocus:f,onBlur:B,onClick:p}=typeof A!="function"?C.Children.only(A).props:{},v=N=>{g($a(N))},m=C.useCallback(()=>{if(I.clear(),h.current="show",!E.show){d(!0);return}I.set(()=>{h.current==="show"&&d(!0)},E.show)},[E.show,d,I]),w=C.useCallback(()=>{if(I.clear(),h.current="hide",!E.hide){d(!1);return}I.set(()=>{h.current==="hide"&&d(!1)},E.hide)},[E.hide,d,I]),V=C.useCallback((...N)=>{m(),f==null||f(...N)},[m,f]),D=C.useCallback((...N)=>{w(),B==null||B(...N)},[w,B]),G=C.useCallback((...N)=>{d(!y),p==null||p(...N)},[p,d,y]),L=C.useCallback((...N)=>{Wd(m,N,"fromElement")},[m]),O=C.useCallback((...N)=>{Wd(w,N,"toElement")},[w]),U=e==null?[]:[].concat(e),F={ref:v};return U.indexOf("click")!==-1&&(F.onClick=G),U.indexOf("focus")!==-1&&(F.onFocus=V,F.onBlur=D),U.indexOf("hover")!==-1&&(F.onMouseOver=L,F.onMouseOut=O),j(Qt,{children:[typeof A=="function"?A(F):C.cloneElement(A,F),Q($D,{...c,show:y,onHide:w,flip:l,placement:s,popperConfig:n,target:u.current,children:t})]})},zD=jD,dg=C.forwardRef(({active:e=!1,disabled:t=!1,className:A,style:n,activeLabel:r="(current)",children:o,linkStyle:i,linkClassName:a,as:s=_u,...l},c)=>{const u=e||t?"span":s;return Q("li",{ref:c,style:n,className:_(A,"page-item",{active:e,disabled:t}),children:j(u,{className:_("page-link",a),style:i,...l,children:[o,e&&r&&Q("span",{className:"visually-hidden",children:r})]})})});dg.displayName="PageItem";const _D=dg;function Vi(e,t,A=e){const n=C.forwardRef(({children:r,...o},i)=>j(dg,{...o,ref:i,children:[Q("span",{"aria-hidden":"true",children:r||t}),Q("span",{className:"visually-hidden",children:A})]}));return n.displayName=e,n}const WD=Vi("First","«"),XD=Vi("Prev","‹","Previous"),ZD=Vi("Ellipsis","…","More"),eS=Vi("Next","›"),tS=Vi("Last","»"),EQ=C.forwardRef(({bsPrefix:e,className:t,size:A,...n},r)=>{const o=X(e,"pagination");return Q("ul",{ref:r,...n,className:_(t,o,A&&`${o}-${A}`)})});EQ.displayName="Pagination";const gn=Object.assign(EQ,{First:WD,Prev:XD,Ellipsis:ZD,Item:_D,Next:eS,Last:tS}),pQ=C.forwardRef(({bsPrefix:e,className:t,as:A="div",...n},r)=>{const o=X(e,"row"),i=cE(),a=uE(),s=`${o}-cols`,l=[];return i.forEach(c=>{const u=n[c];delete n[c];let g;u!=null&&typeof u=="object"?{cols:g}=u:g=u;const I=c!==a?`-${c}`:"";g!=null&&l.push(`${s}${I}-${g}`)}),Q(A,{ref:r,...n,className:_(t,o,...l)})});pQ.displayName="Row";const Me=pQ,QQ=C.forwardRef(({bsPrefix:e,variant:t,animation:A="border",size:n,as:r="div",className:o,...i},a)=>{e=X(e,"spinner");const s=`${e}-${A}`;return Q(r,{ref:a,...i,className:_(o,s,n&&`${s}-${n}`,t&&`text-${t}`)})});QQ.displayName="Spinner";const AS=QQ,nS=C.forwardRef(({bsPrefix:e,className:t,striped:A,bordered:n,borderless:r,hover:o,size:i,variant:a,responsive:s,...l},c)=>{const u=X(e,"table"),g=_(t,u,a&&`${u}-${a}`,i&&`${u}-${i}`,A&&`${u}-${typeof A=="string"?`striped-${A}`:"striped"}`,n&&`${u}-bordered`,r&&`${u}-borderless`,o&&`${u}-hover`),I=Q("table",{...l,className:g,ref:c});if(s){let h=`${u}-responsive`;return typeof s=="string"&&(h=`${h}-${s}`),Q("div",{className:h,children:I})}return I}),rS=nS;var hQ={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Dc=Z.createContext&&Z.createContext(hQ),$A=globalThis&&globalThis.__assign||function(){return $A=Object.assign||function(e){for(var t,A=1,n=arguments.length;A{const{official:t,stars:A=0,showTooltip:n=!0,...r}=e;return Q(zD,{placement:"bottom",delay:CS,overlay:n?j(IQ,{id:"buckettype-tooltip",children:[Q("span",{children:t?"Official bucket":A>=eC?"Popular community bucket":"Community bucket"}),e.stars!==void 0&&j("span",{className:"ms-1",children:["(",A," ",Q(fS,{}),")"]})]}):Q("span",{}),children:Q("span",{children:t&&Q(dS,{...r,color:IS})||A>=eC&&Q(Zd,{...r,color:ES})||Q(Zd,{...r,color:BS})})})},Cg=Z.memo(pS);var Ig=(e=>(e[e.Applications=0]="Applications",e[e.Buckets=1]="Buckets",e))(Ig||{});const QS={0:"applications",1:"buckets"},hS=e=>{const{searching:t,resultsCount:A,query:n,type:r}=e,o=QS[r];if(t)return j("span",{children:[j("span",{children:["Searching for ",o,"..."]})," ",Q(AS,{animation:"border",size:"sm",variant:"secondary"})]});let i=Q("span",{});return n&&(i=j("span",{children:[" ","for '",Q("strong",{children:n}),"'"]})),A?j("span",{children:["Found ",A," ",o,i,"."]}):j("span",{children:["No result found",i,"."]})},yQ=Z.memo(hS);var Wa=function(){function e(){}return e}(),Le;(function(e){e[e.DISABLE=0]="DISABLE",e[e.ENABLE=1]="ENABLE",e[e.LOGGING=2]="LOGGING"})(Le||(Le={}));var xo;(function(e){e[e.CASE_STRICT=1]="CASE_STRICT",e[e.CASE_INSENSITIVE=2]="CASE_INSENSITIVE"})(xo||(xo={}));var St;(function(e){e[e.ALLOW_NULL=1]="ALLOW_NULL",e[e.ALLOW_OBJECT_NULL=2]="ALLOW_OBJECT_NULL",e[e.DISALLOW_NULL=3]="DISALLOW_NULL"})(St||(St={}));var Ue;(function(e){e[e.MAP_NULLABLE=0]="MAP_NULLABLE",e[e.IGNORE_NULLABLE=1]="IGNORE_NULLABLE",e[e.PASS_NULLABLE=2]="PASS_NULLABLE"})(Ue||(Ue={}));var Oe=function(){function e(){}return e.MAPPING_PROPERTY="__jsonconvert__mapping__",e.MAPPER_PROPERTY="__jsonconvert__mapper__",e.CLASS_IDENTIFIER="__jsonconvert__class_identifier__",e}(),mS=function(){function e(){this.classPropertyName="",this.jsonPropertyName="",this.expectedJsonType=void 0,this.convertingMode=Ue.MAP_NULLABLE,this.customConverter=null}return e}(),vQ=function(){function e(t,A,n,r){this._operationMode=Le.ENABLE,this._valueCheckingMode=St.ALLOW_OBJECT_NULL,this._mapUndefinedToNull=!1,this._ignorePrimitiveChecks=!1,this._propertyMatchingRule=xo.CASE_STRICT,this._propertyConvertingMode=void 0,this._useDiscriminator=!1,this._discriminatorPropertyName="$type",this._classes=new Map,t!==void 0&&t in Le&&(this.operationMode=t),A!==void 0&&A in St&&(this.valueCheckingMode=A),n!==void 0&&(this.ignorePrimitiveChecks=n),r!==void 0&&(this.propertyMatchingRule=r)}return Object.defineProperty(e.prototype,"operationMode",{get:function(){return this._operationMode},set:function(t){t in Le&&(this._operationMode=t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"valueCheckingMode",{get:function(){return this._valueCheckingMode},set:function(t){t in St&&(this._valueCheckingMode=t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mapUndefinedToNull",{get:function(){return this._mapUndefinedToNull},set:function(t){this._mapUndefinedToNull=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ignorePrimitiveChecks",{get:function(){return this._ignorePrimitiveChecks},set:function(t){this._ignorePrimitiveChecks=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"propertyMatchingRule",{get:function(){return this._propertyMatchingRule},set:function(t){t in xo&&(this._propertyMatchingRule=t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"propertyConvertingMode",{get:function(){return this._propertyConvertingMode},set:function(t){this._propertyConvertingMode=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ignoreRequiredCheck",{get:function(){return this.propertyConvertingMode===Ue.IGNORE_NULLABLE},set:function(t){this.propertyConvertingMode=t?Ue.IGNORE_NULLABLE:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"useDiscriminator",{get:function(){return this._useDiscriminator},set:function(t){this._useDiscriminator=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"discriminatorPropertyName",{get:function(){return this._discriminatorPropertyName},set:function(t){this._discriminatorPropertyName=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"classes",{get:function(){return this._classes},enumerable:!1,configurable:!0}),e.prototype.registerClasses=function(){for(var t=this,A=[],n=0;n=0)continue;A[n]=e[n]}return A}function vd(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function xv(e){var t=Yv(e,"string");return typeof t=="symbol"?t:String(t)}function Yv(e,t){if(typeof e!="object"||e===null)return e;var A=e[Symbol.toPrimitive];if(A!==void 0){var n=A.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lE(e,t,A){var n=C.useRef(e!==void 0),r=C.useState(t),o=r[0],i=r[1],a=e!==void 0,s=n.current;return n.current=a,!a&&s&&o!==t&&i(t),[a?e:o,C.useCallback(function(l){for(var c=arguments.length,u=new Array(c>1?c-1:0),g=1;g{o.target===e&&(r(),t(o))},A+n)}function ro(...e){return e.filter(t=>t!=null).reduce((t,A)=>{if(typeof A!="function")throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return t===null?A:function(...r){t.apply(this,r),A.apply(this,r)}},null)}function dE(e){e.offsetHeight}const Dd=e=>!e||typeof e=="function"?e:t=>{e.current=t};function tw(e,t){const A=Dd(e),n=Dd(t);return r=>{A&&A(r),n&&n(r)}}function Kt(e,t){return C.useMemo(()=>tw(e,t),[e,t])}function $a(e){return e&&"setState"in e?MA.findDOMNode(e):e??null}const Aw=Z.forwardRef(({onEnter:e,onEntering:t,onEntered:A,onExit:n,onExiting:r,onExited:o,addEndListener:i,children:a,childRef:s,...l},c)=>{const u=C.useRef(null),g=Kt(u,s),I=m=>{g($a(m))},h=m=>w=>{m&&u.current&&m(u.current,w)},y=C.useCallback(h(e),[e]),d=C.useCallback(h(t),[t]),E=C.useCallback(h(A),[A]),f=C.useCallback(h(n),[n]),B=C.useCallback(h(r),[r]),p=C.useCallback(h(o),[o]),v=C.useCallback(h(i),[i]);return Q(Wv,{ref:c,...l,onEnter:y,onEntered:E,onEntering:d,onExit:f,onExited:p,onExiting:B,addEndListener:v,nodeRef:u,children:typeof a=="function"?(m,w)=>a(m,{...w,ref:I}):Z.cloneElement(a,{ref:I})})}),$u=Aw,nw={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function rw(e,t){const A=`offset${e[0].toUpperCase()}${e.slice(1)}`,n=t[A],r=nw[e];return n+parseInt(hA(t,r[0]),10)+parseInt(hA(t,r[1]),10)}const ow={[kA]:"collapse",[ri]:"collapsing",[qt]:"collapsing",[CA]:"collapse show"},iw=Z.forwardRef(({onEnter:e,onEntering:t,onEntered:A,onExit:n,onExiting:r,className:o,children:i,dimension:a="height",in:s=!1,timeout:l=300,mountOnEnter:c=!1,unmountOnExit:u=!1,appear:g=!1,getDimensionValue:I=rw,...h},y)=>{const d=typeof a=="function"?a():a,E=C.useMemo(()=>ro(m=>{m.style[d]="0"},e),[d,e]),f=C.useMemo(()=>ro(m=>{const w=`scroll${d[0].toUpperCase()}${d.slice(1)}`;m.style[d]=`${m[w]}px`},t),[d,t]),B=C.useMemo(()=>ro(m=>{m.style[d]=null},A),[d,A]),p=C.useMemo(()=>ro(m=>{m.style[d]=`${I(d,m)}px`,dE(m)},n),[n,I,d]),v=C.useMemo(()=>ro(m=>{m.style[d]=null},r),[d,r]);return Q($u,{ref:y,addEndListener:Ju,...h,"aria-expanded":h.role?s:null,onEnter:E,onEntering:f,onEntered:B,onExit:p,onExiting:v,childRef:i.ref,in:s,timeout:l,mountOnEnter:c,unmountOnExit:u,appear:g,children:(m,w)=>Z.cloneElement(i,{...w,className:_(o,i.props.className,ow[m],d==="width"&&"collapse-horizontal")})})}),aw=iw;function sw(e){const t=C.useRef(e);return C.useEffect(()=>{t.current=e},[e]),t}function Ve(e){const t=sw(e);return C.useCallback(function(...A){return t.current&&t.current(...A)},[t])}const Vs=e=>C.forwardRef((t,A)=>Q("div",{...t,ref:A,className:_(t.className,e)}));function Ka(){return C.useState(null)}function lw(e,t,A,n=!1){const r=Ve(A);C.useEffect(()=>{const o=typeof e=="function"?e():e;return o.addEventListener(t,r,n),()=>o.removeEventListener(t,r,n)},[e])}function Ku(){const e=C.useRef(!0),t=C.useRef(()=>e.current);return C.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function CE(e){const t=C.useRef(null);return C.useEffect(()=>{t.current=e}),t.current}const cw=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",uw=typeof document<"u",oi=uw||cw?C.useLayoutEffect:C.useEffect,gw=["as","disabled"];function fw(e,t){if(e==null)return{};var A={},n=Object.keys(e),r,o;for(o=0;o=0)&&(A[r]=e[r]);return A}function dw(e){return!e||e.trim()==="#"}function ju({tagName:e,disabled:t,href:A,target:n,rel:r,role:o,onClick:i,tabIndex:a=0,type:s}){e||(A!=null||n!=null||r!=null?e="a":e="button");const l={tagName:e};if(e==="button")return[{type:s||"button",disabled:t},l];const c=g=>{if((t||e==="a"&&dw(A))&&g.preventDefault(),t){g.stopPropagation();return}i==null||i(g)},u=g=>{g.key===" "&&(g.preventDefault(),c(g))};return e==="a"&&(A||(A="#"),t&&(A=void 0)),[{role:o??"button",disabled:void 0,tabIndex:t?void 0:a,href:A,target:e==="a"?n:void 0,"aria-disabled":t||void 0,rel:e==="a"?r:void 0,onClick:c,onKeyDown:u},l]}const zu=C.forwardRef((e,t)=>{let{as:A,disabled:n}=e,r=fw(e,gw);const[o,{tagName:i}]=ju(Object.assign({tagName:A,disabled:n},r));return Q(i,Object.assign({},r,o,{ref:t}))});zu.displayName="Button";const Cw=["onKeyDown"];function Iw(e,t){if(e==null)return{};var A={},n=Object.keys(e),r,o;for(o=0;o=0)&&(A[r]=e[r]);return A}function Bw(e){return!e||e.trim()==="#"}const IE=C.forwardRef((e,t)=>{let{onKeyDown:A}=e,n=Iw(e,Cw);const[r]=ju(Object.assign({tagName:"a"},n)),o=Ve(i=>{r.onKeyDown(i),A==null||A(i)});return Bw(n.href)||n.role==="button"?Q("a",Object.assign({ref:t},n,r,{onKeyDown:o})):Q("a",Object.assign({ref:t},n,{onKeyDown:A}))});IE.displayName="Anchor";const _u=IE,Ew={[qt]:"show",[CA]:"show"},BE=C.forwardRef(({className:e,children:t,transitionClasses:A={},onEnter:n,...r},o)=>{const i={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...r},a=C.useCallback((s,l)=>{dE(s),n==null||n(s,l)},[n]);return Q($u,{ref:o,addEndListener:Ju,...i,onEnter:a,childRef:t.ref,children:(s,l)=>C.cloneElement(t,{...l,className:_("fade",e,t.props.className,Ew[s],A[s])})})});BE.displayName="Fade";const ii=BE,pw={"aria-label":ce.string,onClick:ce.func,variant:ce.oneOf(["white"])},Wu=C.forwardRef(({className:e,variant:t,"aria-label":A="Close",...n},r)=>Q("button",{ref:r,type:"button",className:_("btn-close",t&&`btn-close-${t}`,e),"aria-label":A,...n}));Wu.displayName="CloseButton";Wu.propTypes=pw;const Qw=Wu,EE=C.forwardRef(({as:e,bsPrefix:t,variant:A="primary",size:n,active:r=!1,disabled:o=!1,className:i,...a},s)=>{const l=X(t,"btn"),[c,{tagName:u}]=ju({tagName:e,disabled:o,...a});return Q(u,{...c,...a,ref:s,disabled:o,className:_(i,l,r&&"active",A&&`${l}-${A}`,n&&`${l}-${n}`,a.href&&o&&"disabled")})});EE.displayName="Button";const Qn=EE,pE=C.forwardRef(({className:e,bsPrefix:t,as:A="div",...n},r)=>(t=X(t,"card-body"),Q(A,{ref:r,className:_(e,t),...n})));pE.displayName="CardBody";const QE=pE,hE=C.forwardRef(({className:e,bsPrefix:t,as:A="div",...n},r)=>(t=X(t,"card-footer"),Q(A,{ref:r,className:_(e,t),...n})));hE.displayName="CardFooter";const hw=hE,mE=C.createContext(null);mE.displayName="CardHeaderContext";const yE=mE,vE=C.forwardRef(({bsPrefix:e,className:t,as:A="div",...n},r)=>{const o=X(e,"card-header"),i=C.useMemo(()=>({cardHeaderBsPrefix:o}),[o]);return Q(yE.Provider,{value:i,children:Q(A,{ref:r,...n,className:_(t,o)})})});vE.displayName="CardHeader";const mw=vE,wE=C.forwardRef(({bsPrefix:e,className:t,variant:A,as:n="img",...r},o)=>{const i=X(e,"card-img");return Q(n,{ref:o,className:_(A?`${i}-${A}`:i,t),...r})});wE.displayName="CardImg";const yw=wE,VE=C.forwardRef(({className:e,bsPrefix:t,as:A="div",...n},r)=>(t=X(t,"card-img-overlay"),Q(A,{ref:r,className:_(e,t),...n})));VE.displayName="CardImgOverlay";const vw=VE,DE=C.forwardRef(({className:e,bsPrefix:t,as:A="a",...n},r)=>(t=X(t,"card-link"),Q(A,{ref:r,className:_(e,t),...n})));DE.displayName="CardLink";const ww=DE,Vw=Vs("h6"),SE=C.forwardRef(({className:e,bsPrefix:t,as:A=Vw,...n},r)=>(t=X(t,"card-subtitle"),Q(A,{ref:r,className:_(e,t),...n})));SE.displayName="CardSubtitle";const Dw=SE,NE=C.forwardRef(({className:e,bsPrefix:t,as:A="p",...n},r)=>(t=X(t,"card-text"),Q(A,{ref:r,className:_(e,t),...n})));NE.displayName="CardText";const Sw=NE,Nw=Vs("h5"),kE=C.forwardRef(({className:e,bsPrefix:t,as:A=Nw,...n},r)=>(t=X(t,"card-title"),Q(A,{ref:r,className:_(e,t),...n})));kE.displayName="CardTitle";const kw=kE,RE=C.forwardRef(({bsPrefix:e,className:t,bg:A,text:n,border:r,body:o=!1,children:i,as:a="div",...s},l)=>{const c=X(e,"card");return Q(a,{ref:l,...s,className:_(t,c,A&&`bg-${A}`,n&&`text-${n}`,r&&`border-${r}`),children:o?Q(QE,{children:i}):i})});RE.displayName="Card";const ul=Object.assign(RE,{Img:yw,Title:kw,Subtitle:Dw,Body:QE,Link:ww,Text:Sw,Header:mw,Footer:hw,ImgOverlay:vw});function Rw(e){const t=C.useRef(e);return t.current=e,t}function Xu(e){const t=Rw(e);C.useEffect(()=>()=>t.current(),[])}const Ec=2**31-1;function GE(e,t,A){const n=A-Date.now();e.current=n<=Ec?setTimeout(t,n):setTimeout(()=>GE(e,t,A),Ec)}function Gw(){const e=Ku(),t=C.useRef();return Xu(()=>clearTimeout(t.current)),C.useMemo(()=>{const A=()=>clearTimeout(t.current);function n(r,o=0){e()&&(A(),o<=Ec?t.current=setTimeout(r,o):GE(t,r,Date.now()+o))}return{set:n,clear:A,handleRef:t}},[])}function Lw(e,t){return C.Children.toArray(e).some(A=>C.isValidElement(A)&&A.type===t)}function Fw({as:e,bsPrefix:t,className:A,...n}){t=X(t,"col");const r=cE(),o=uE(),i=[],a=[];return r.forEach(s=>{const l=n[s];delete n[s];let c,u,g;typeof l=="object"&&l!=null?{span:c,offset:u,order:g}=l:c=l;const I=s!==o?`-${s}`:"";c&&i.push(c===!0?`${t}${I}`:`${t}${I}-${c}`),g!=null&&a.push(`order${I}-${g}`),u!=null&&a.push(`offset${I}-${u}`)}),[{...n,className:_(A,...i,...a)},{as:e,bsPrefix:t,spans:i}]}const LE=C.forwardRef((e,t)=>{const[{className:A,...n},{as:r="div",bsPrefix:o,spans:i}]=Fw(e);return Q(r,{...n,ref:t,className:_(A,!i.length&&o)})});LE.displayName="Col";const de=LE,FE=C.forwardRef(({bsPrefix:e,fluid:t=!1,as:A="div",className:n,...r},o)=>{const i=X(e,"container"),a=typeof t=="string"?`-${t}`:"-fluid";return Q(A,{ref:o,...r,className:_(n,t?`${i}${a}`:i)})});FE.displayName="Container";const Yr=FE;var Mw=Function.prototype.bind.call(Function.prototype.call,[].slice);function fA(e,t){return Mw(e.querySelectorAll(t))}function bw(e,t,A){const n=C.useRef(e!==void 0),[r,o]=C.useState(t),i=e!==void 0,a=n.current;return n.current=i,!i&&a&&r!==t&&o(t),[i?e:r,C.useCallback((...s)=>{const[l,...c]=s;let u=A==null?void 0:A(l,...c);return o(l),u},[A])]}function ME(){const[,e]=C.useReducer(t=>!t,!1);return e}const Ow=C.createContext(null),Ds=Ow;var Sd=Object.prototype.hasOwnProperty;function Nd(e,t,A){for(A of e.keys())if(Mo(A,t))return A}function Mo(e,t){var A,n,r;if(e===t)return!0;if(e&&t&&(A=e.constructor)===t.constructor){if(A===Date)return e.getTime()===t.getTime();if(A===RegExp)return e.toString()===t.toString();if(A===Array){if((n=e.length)===t.length)for(;n--&&Mo(e[n],t[n]););return n===-1}if(A===Set){if(e.size!==t.size)return!1;for(n of e)if(r=n,r&&typeof r=="object"&&(r=Nd(t,r),!r)||!t.has(r))return!1;return!0}if(A===Map){if(e.size!==t.size)return!1;for(n of e)if(r=n[0],r&&typeof r=="object"&&(r=Nd(t,r),!r)||!Mo(n[1],t.get(r)))return!1;return!0}if(A===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(A===DataView){if((n=e.byteLength)===t.byteLength)for(;n--&&e.getInt8(n)===t.getInt8(n););return n===-1}if(ArrayBuffer.isView(e)){if((n=e.byteLength)===t.byteLength)for(;n--&&e[n]===t[n];);return n===-1}if(!A||typeof e=="object"){n=0;for(A in e)if(Sd.call(e,A)&&++n&&!Sd.call(t,A)||!(A in t)||!Mo(e[A],t[A]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}function xw(e){const t=Ku();return[e[0],C.useCallback(A=>{if(t())return e[1](A)},[t,e[1]])]}var dt="top",Mt="bottom",bt="right",Ct="left",Zu="auto",yi=[dt,Mt,bt,Ct],vr="start",ai="end",Yw="clippingParents",bE="viewport",oo="popper",Uw="reference",kd=yi.reduce(function(e,t){return e.concat([t+"-"+vr,t+"-"+ai])},[]),OE=[].concat(yi,[Zu]).reduce(function(e,t){return e.concat([t,t+"-"+vr,t+"-"+ai])},[]),Tw="beforeRead",qw="read",Pw="afterRead",Hw="beforeMain",Jw="main",$w="afterMain",Kw="beforeWrite",jw="write",zw="afterWrite",_w=[Tw,qw,Pw,Hw,Jw,$w,Kw,jw,zw];function AA(e){return e.split("-")[0]}function ht(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function kn(e){var t=ht(e).Element;return e instanceof t||e instanceof Element}function nA(e){var t=ht(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function eg(e){if(typeof ShadowRoot>"u")return!1;var t=ht(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var vn=Math.max,ja=Math.min,wr=Math.round;function pc(){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 xE(){return!/^((?!chrome|android).)*safari/i.test(pc())}function Vr(e,t,A){t===void 0&&(t=!1),A===void 0&&(A=!1);var n=e.getBoundingClientRect(),r=1,o=1;t&&nA(e)&&(r=e.offsetWidth>0&&wr(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&wr(n.height)/e.offsetHeight||1);var i=kn(e)?ht(e):window,a=i.visualViewport,s=!xE()&&A,l=(n.left+(s&&a?a.offsetLeft:0))/r,c=(n.top+(s&&a?a.offsetTop:0))/o,u=n.width/r,g=n.height/o;return{width:u,height:g,top:c,right:l+u,bottom:c+g,left:l,x:l,y:c}}function tg(e){var t=Vr(e),A=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-A)<=1&&(A=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:A,height:n}}function YE(e,t){var A=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(A&&eg(A)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function XA(e){return e?(e.nodeName||"").toLowerCase():null}function vA(e){return ht(e).getComputedStyle(e)}function Ww(e){return["table","td","th"].indexOf(XA(e))>=0}function on(e){return((kn(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ss(e){return XA(e)==="html"?e:e.assignedSlot||e.parentNode||(eg(e)?e.host:null)||on(e)}function Rd(e){return!nA(e)||vA(e).position==="fixed"?null:e.offsetParent}function Xw(e){var t=/firefox/i.test(pc()),A=/Trident/i.test(pc());if(A&&nA(e)){var n=vA(e);if(n.position==="fixed")return null}var r=Ss(e);for(eg(r)&&(r=r.host);nA(r)&&["html","body"].indexOf(XA(r))<0;){var o=vA(r);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return r;r=r.parentNode}return null}function vi(e){for(var t=ht(e),A=Rd(e);A&&Ww(A)&&vA(A).position==="static";)A=Rd(A);return A&&(XA(A)==="html"||XA(A)==="body"&&vA(A).position==="static")?t:A||Xw(e)||t}function Ag(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function bo(e,t,A){return vn(e,ja(t,A))}function Zw(e,t,A){var n=bo(e,t,A);return n>A?A:n}function UE(){return{top:0,right:0,bottom:0,left:0}}function TE(e){return Object.assign({},UE(),e)}function qE(e,t){return t.reduce(function(A,n){return A[n]=e,A},{})}var eV=function(t,A){return t=typeof t=="function"?t(Object.assign({},A.rects,{placement:A.placement})):t,TE(typeof t!="number"?t:qE(t,yi))};function tV(e){var t,A=e.state,n=e.name,r=e.options,o=A.elements.arrow,i=A.modifiersData.popperOffsets,a=AA(A.placement),s=Ag(a),l=[Ct,bt].indexOf(a)>=0,c=l?"height":"width";if(!(!o||!i)){var u=eV(r.padding,A),g=tg(o),I=s==="y"?dt:Ct,h=s==="y"?Mt:bt,y=A.rects.reference[c]+A.rects.reference[s]-i[s]-A.rects.popper[c],d=i[s]-A.rects.reference[s],E=vi(o),f=E?s==="y"?E.clientHeight||0:E.clientWidth||0:0,B=y/2-d/2,p=u[I],v=f-g[c]-u[h],m=f/2-g[c]/2+B,w=bo(p,m,v),V=s;A.modifiersData[n]=(t={},t[V]=w,t.centerOffset=w-m,t)}}function AV(e){var t=e.state,A=e.options,n=A.element,r=n===void 0?"[data-popper-arrow]":n;r!=null&&(typeof r=="string"&&(r=t.elements.popper.querySelector(r),!r)||YE(t.elements.popper,r)&&(t.elements.arrow=r))}const nV={name:"arrow",enabled:!0,phase:"main",fn:tV,effect:AV,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Dr(e){return e.split("-")[1]}var rV={top:"auto",right:"auto",bottom:"auto",left:"auto"};function oV(e,t){var A=e.x,n=e.y,r=t.devicePixelRatio||1;return{x:wr(A*r)/r||0,y:wr(n*r)/r||0}}function Gd(e){var t,A=e.popper,n=e.popperRect,r=e.placement,o=e.variation,i=e.offsets,a=e.position,s=e.gpuAcceleration,l=e.adaptive,c=e.roundOffsets,u=e.isFixed,g=i.x,I=g===void 0?0:g,h=i.y,y=h===void 0?0:h,d=typeof c=="function"?c({x:I,y}):{x:I,y};I=d.x,y=d.y;var E=i.hasOwnProperty("x"),f=i.hasOwnProperty("y"),B=Ct,p=dt,v=window;if(l){var m=vi(A),w="clientHeight",V="clientWidth";if(m===ht(A)&&(m=on(A),vA(m).position!=="static"&&a==="absolute"&&(w="scrollHeight",V="scrollWidth")),m=m,r===dt||(r===Ct||r===bt)&&o===ai){p=Mt;var D=u&&m===v&&v.visualViewport?v.visualViewport.height:m[w];y-=D-n.height,y*=s?1:-1}if(r===Ct||(r===dt||r===Mt)&&o===ai){B=bt;var G=u&&m===v&&v.visualViewport?v.visualViewport.width:m[V];I-=G-n.width,I*=s?1:-1}}var L=Object.assign({position:a},l&&rV),O=c===!0?oV({x:I,y},ht(A)):{x:I,y};if(I=O.x,y=O.y,s){var U;return Object.assign({},L,(U={},U[p]=f?"0":"",U[B]=E?"0":"",U.transform=(v.devicePixelRatio||1)<=1?"translate("+I+"px, "+y+"px)":"translate3d("+I+"px, "+y+"px, 0)",U))}return Object.assign({},L,(t={},t[p]=f?y+"px":"",t[B]=E?I+"px":"",t.transform="",t))}function iV(e){var t=e.state,A=e.options,n=A.gpuAcceleration,r=n===void 0?!0:n,o=A.adaptive,i=o===void 0?!0:o,a=A.roundOffsets,s=a===void 0?!0:a,l={placement:AA(t.placement),variation:Dr(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,Gd(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:s})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Gd(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const aV={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:iV,data:{}};var Hi={passive:!0};function sV(e){var t=e.state,A=e.instance,n=e.options,r=n.scroll,o=r===void 0?!0:r,i=n.resize,a=i===void 0?!0:i,s=ht(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&l.forEach(function(c){c.addEventListener("scroll",A.update,Hi)}),a&&s.addEventListener("resize",A.update,Hi),function(){o&&l.forEach(function(c){c.removeEventListener("scroll",A.update,Hi)}),a&&s.removeEventListener("resize",A.update,Hi)}}const lV={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:sV,data:{}};var cV={left:"right",right:"left",bottom:"top",top:"bottom"};function ga(e){return e.replace(/left|right|bottom|top/g,function(t){return cV[t]})}var uV={start:"end",end:"start"};function Ld(e){return e.replace(/start|end/g,function(t){return uV[t]})}function ng(e){var t=ht(e),A=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:A,scrollTop:n}}function rg(e){return Vr(on(e)).left+ng(e).scrollLeft}function gV(e,t){var A=ht(e),n=on(e),r=A.visualViewport,o=n.clientWidth,i=n.clientHeight,a=0,s=0;if(r){o=r.width,i=r.height;var l=xE();(l||!l&&t==="fixed")&&(a=r.offsetLeft,s=r.offsetTop)}return{width:o,height:i,x:a+rg(e),y:s}}function fV(e){var t,A=on(e),n=ng(e),r=(t=e.ownerDocument)==null?void 0:t.body,o=vn(A.scrollWidth,A.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),i=vn(A.scrollHeight,A.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-n.scrollLeft+rg(e),s=-n.scrollTop;return vA(r||A).direction==="rtl"&&(a+=vn(A.clientWidth,r?r.clientWidth:0)-o),{width:o,height:i,x:a,y:s}}function og(e){var t=vA(e),A=t.overflow,n=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(A+r+n)}function PE(e){return["html","body","#document"].indexOf(XA(e))>=0?e.ownerDocument.body:nA(e)&&og(e)?e:PE(Ss(e))}function Oo(e,t){var A;t===void 0&&(t=[]);var n=PE(e),r=n===((A=e.ownerDocument)==null?void 0:A.body),o=ht(n),i=r?[o].concat(o.visualViewport||[],og(n)?n:[]):n,a=t.concat(i);return r?a:a.concat(Oo(Ss(i)))}function Qc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function dV(e,t){var A=Vr(e,!1,t==="fixed");return A.top=A.top+e.clientTop,A.left=A.left+e.clientLeft,A.bottom=A.top+e.clientHeight,A.right=A.left+e.clientWidth,A.width=e.clientWidth,A.height=e.clientHeight,A.x=A.left,A.y=A.top,A}function Fd(e,t,A){return t===bE?Qc(gV(e,A)):kn(t)?dV(t,A):Qc(fV(on(e)))}function CV(e){var t=Oo(Ss(e)),A=["absolute","fixed"].indexOf(vA(e).position)>=0,n=A&&nA(e)?vi(e):e;return kn(n)?t.filter(function(r){return kn(r)&&YE(r,n)&&XA(r)!=="body"}):[]}function IV(e,t,A,n){var r=t==="clippingParents"?CV(e):[].concat(t),o=[].concat(r,[A]),i=o[0],a=o.reduce(function(s,l){var c=Fd(e,l,n);return s.top=vn(c.top,s.top),s.right=ja(c.right,s.right),s.bottom=ja(c.bottom,s.bottom),s.left=vn(c.left,s.left),s},Fd(e,i,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function HE(e){var t=e.reference,A=e.element,n=e.placement,r=n?AA(n):null,o=n?Dr(n):null,i=t.x+t.width/2-A.width/2,a=t.y+t.height/2-A.height/2,s;switch(r){case dt:s={x:i,y:t.y-A.height};break;case Mt:s={x:i,y:t.y+t.height};break;case bt:s={x:t.x+t.width,y:a};break;case Ct:s={x:t.x-A.width,y:a};break;default:s={x:t.x,y:t.y}}var l=r?Ag(r):null;if(l!=null){var c=l==="y"?"height":"width";switch(o){case vr:s[l]=s[l]-(t[c]/2-A[c]/2);break;case ai:s[l]=s[l]+(t[c]/2-A[c]/2);break}}return s}function si(e,t){t===void 0&&(t={});var A=t,n=A.placement,r=n===void 0?e.placement:n,o=A.strategy,i=o===void 0?e.strategy:o,a=A.boundary,s=a===void 0?Yw:a,l=A.rootBoundary,c=l===void 0?bE:l,u=A.elementContext,g=u===void 0?oo:u,I=A.altBoundary,h=I===void 0?!1:I,y=A.padding,d=y===void 0?0:y,E=TE(typeof d!="number"?d:qE(d,yi)),f=g===oo?Uw:oo,B=e.rects.popper,p=e.elements[h?f:g],v=IV(kn(p)?p:p.contextElement||on(e.elements.popper),s,c,i),m=Vr(e.elements.reference),w=HE({reference:m,element:B,strategy:"absolute",placement:r}),V=Qc(Object.assign({},B,w)),D=g===oo?V:m,G={top:v.top-D.top+E.top,bottom:D.bottom-v.bottom+E.bottom,left:v.left-D.left+E.left,right:D.right-v.right+E.right},L=e.modifiersData.offset;if(g===oo&&L){var O=L[r];Object.keys(G).forEach(function(U){var F=[bt,Mt].indexOf(U)>=0?1:-1,N=[dt,Mt].indexOf(U)>=0?"y":"x";G[U]+=O[N]*F})}return G}function BV(e,t){t===void 0&&(t={});var A=t,n=A.placement,r=A.boundary,o=A.rootBoundary,i=A.padding,a=A.flipVariations,s=A.allowedAutoPlacements,l=s===void 0?OE:s,c=Dr(n),u=c?a?kd:kd.filter(function(h){return Dr(h)===c}):yi,g=u.filter(function(h){return l.indexOf(h)>=0});g.length===0&&(g=u);var I=g.reduce(function(h,y){return h[y]=si(e,{placement:y,boundary:r,rootBoundary:o,padding:i})[AA(y)],h},{});return Object.keys(I).sort(function(h,y){return I[h]-I[y]})}function EV(e){if(AA(e)===Zu)return[];var t=ga(e);return[Ld(e),t,Ld(t)]}function pV(e){var t=e.state,A=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var r=A.mainAxis,o=r===void 0?!0:r,i=A.altAxis,a=i===void 0?!0:i,s=A.fallbackPlacements,l=A.padding,c=A.boundary,u=A.rootBoundary,g=A.altBoundary,I=A.flipVariations,h=I===void 0?!0:I,y=A.allowedAutoPlacements,d=t.options.placement,E=AA(d),f=E===d,B=s||(f||!h?[ga(d)]:EV(d)),p=[d].concat(B).reduce(function(P,z){return P.concat(AA(z)===Zu?BV(t,{placement:z,boundary:c,rootBoundary:u,padding:l,flipVariations:h,allowedAutoPlacements:y}):z)},[]),v=t.rects.reference,m=t.rects.popper,w=new Map,V=!0,D=p[0],G=0;G=0,N=F?"width":"height",S=si(t,{placement:L,boundary:c,rootBoundary:u,altBoundary:g,padding:l}),M=F?U?bt:Ct:U?Mt:dt;v[N]>m[N]&&(M=ga(M));var R=ga(M),b=[];if(o&&b.push(S[O]<=0),a&&b.push(S[M]<=0,S[R]<=0),b.every(function(P){return P})){D=L,V=!1;break}w.set(L,b)}if(V)for(var Y=h?3:1,k=function(z){var ee=p.find(function(ne){var se=w.get(ne);if(se)return se.slice(0,z).every(function(ue){return ue})});if(ee)return D=ee,"break"},x=Y;x>0;x--){var q=k(x);if(q==="break")break}t.placement!==D&&(t.modifiersData[n]._skip=!0,t.placement=D,t.reset=!0)}}const QV={name:"flip",enabled:!0,phase:"main",fn:pV,requiresIfExists:["offset"],data:{_skip:!1}};function Md(e,t,A){return A===void 0&&(A={x:0,y:0}),{top:e.top-t.height-A.y,right:e.right-t.width+A.x,bottom:e.bottom-t.height+A.y,left:e.left-t.width-A.x}}function bd(e){return[dt,bt,Mt,Ct].some(function(t){return e[t]>=0})}function hV(e){var t=e.state,A=e.name,n=t.rects.reference,r=t.rects.popper,o=t.modifiersData.preventOverflow,i=si(t,{elementContext:"reference"}),a=si(t,{altBoundary:!0}),s=Md(i,n),l=Md(a,r,o),c=bd(s),u=bd(l);t.modifiersData[A]={referenceClippingOffsets:s,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":u})}const mV={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hV};function yV(e,t,A){var n=AA(e),r=[Ct,dt].indexOf(n)>=0?-1:1,o=typeof A=="function"?A(Object.assign({},t,{placement:e})):A,i=o[0],a=o[1];return i=i||0,a=(a||0)*r,[Ct,bt].indexOf(n)>=0?{x:a,y:i}:{x:i,y:a}}function vV(e){var t=e.state,A=e.options,n=e.name,r=A.offset,o=r===void 0?[0,0]:r,i=OE.reduce(function(c,u){return c[u]=yV(u,t.rects,o),c},{}),a=i[t.placement],s=a.x,l=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=l),t.modifiersData[n]=i}const wV={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:vV};function VV(e){var t=e.state,A=e.name;t.modifiersData[A]=HE({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const DV={name:"popperOffsets",enabled:!0,phase:"read",fn:VV,data:{}};function SV(e){return e==="x"?"y":"x"}function NV(e){var t=e.state,A=e.options,n=e.name,r=A.mainAxis,o=r===void 0?!0:r,i=A.altAxis,a=i===void 0?!1:i,s=A.boundary,l=A.rootBoundary,c=A.altBoundary,u=A.padding,g=A.tether,I=g===void 0?!0:g,h=A.tetherOffset,y=h===void 0?0:h,d=si(t,{boundary:s,rootBoundary:l,padding:u,altBoundary:c}),E=AA(t.placement),f=Dr(t.placement),B=!f,p=Ag(E),v=SV(p),m=t.modifiersData.popperOffsets,w=t.rects.reference,V=t.rects.popper,D=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,G=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(m){if(o){var U,F=p==="y"?dt:Ct,N=p==="y"?Mt:bt,S=p==="y"?"height":"width",M=m[p],R=M+d[F],b=M-d[N],Y=I?-V[S]/2:0,k=f===vr?w[S]:V[S],x=f===vr?-V[S]:-w[S],q=t.elements.arrow,P=I&&q?tg(q):{width:0,height:0},z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:UE(),ee=z[F],ne=z[N],se=bo(0,w[S],P[S]),ue=B?w[S]/2-Y-se-ee-G.mainAxis:k-se-ee-G.mainAxis,le=B?-w[S]/2+Y+se+ne+G.mainAxis:x+se+ne+G.mainAxis,Ie=t.elements.arrow&&vi(t.elements.arrow),ye=Ie?p==="y"?Ie.clientTop||0:Ie.clientLeft||0:0,J=(U=L==null?void 0:L[p])!=null?U:0,T=M+ue-J-ye,$=M+le-J,te=bo(I?ja(R,T):R,M,I?vn(b,$):b);m[p]=te,O[p]=te-M}if(a){var Ce,wt=p==="x"?dt:Ct,cn=p==="x"?Mt:bt,et=m[v],K=v==="y"?"height":"width",ie=et+d[wt],fe=et-d[cn],Se=[dt,Ct].indexOf(E)!==-1,Ee=(Ce=L==null?void 0:L[v])!=null?Ce:0,re=Se?ie:et-w[K]-V[K]-Ee+G.altAxis,it=Se?et+w[K]+V[K]-Ee-G.altAxis:fe,un=I&&Se?Zw(re,et,it):bo(I?re:ie,et,I?it:fe);m[v]=un,O[v]=un-et}t.modifiersData[n]=O}}const kV={name:"preventOverflow",enabled:!0,phase:"main",fn:NV,requiresIfExists:["offset"]};function RV(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function GV(e){return e===ht(e)||!nA(e)?ng(e):RV(e)}function LV(e){var t=e.getBoundingClientRect(),A=wr(t.width)/e.offsetWidth||1,n=wr(t.height)/e.offsetHeight||1;return A!==1||n!==1}function FV(e,t,A){A===void 0&&(A=!1);var n=nA(t),r=nA(t)&&LV(t),o=on(t),i=Vr(e,r,A),a={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(n||!n&&!A)&&((XA(t)!=="body"||og(o))&&(a=GV(t)),nA(t)?(s=Vr(t,!0),s.x+=t.clientLeft,s.y+=t.clientTop):o&&(s.x=rg(o))),{x:i.left+a.scrollLeft-s.x,y:i.top+a.scrollTop-s.y,width:i.width,height:i.height}}function MV(e){var t=new Map,A=new Set,n=[];e.forEach(function(o){t.set(o.name,o)});function r(o){A.add(o.name);var i=[].concat(o.requires||[],o.requiresIfExists||[]);i.forEach(function(a){if(!A.has(a)){var s=t.get(a);s&&r(s)}}),n.push(o)}return e.forEach(function(o){A.has(o.name)||r(o)}),n}function bV(e){var t=MV(e);return _w.reduce(function(A,n){return A.concat(t.filter(function(r){return r.phase===n}))},[])}function OV(e){var t;return function(){return t||(t=new Promise(function(A){Promise.resolve().then(function(){t=void 0,A(e())})})),t}}function xV(e){var t=e.reduce(function(A,n){var r=A[n.name];return A[n.name]=r?Object.assign({},r,n,{options:Object.assign({},r.options,n.options),data:Object.assign({},r.data,n.data)}):n,A},{});return Object.keys(t).map(function(A){return t[A]})}var Od={placement:"bottom",modifiers:[],strategy:"absolute"};function xd(){for(var e=arguments.length,t=new Array(e),A=0;A=0)&&(A[r]=e[r]);return A}const PV={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},HV={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:A}=e.elements;if("removeAttribute"in t){const n=(t.getAttribute("aria-describedby")||"").split(",").filter(r=>r.trim()!==A.id);n.length?t.setAttribute("aria-describedby",n.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:A,reference:n}=e.elements,r=(t=A.getAttribute("role"))==null?void 0:t.toLowerCase();if(A.id&&r==="tooltip"&&"setAttribute"in n){const o=n.getAttribute("aria-describedby");if(o&&o.split(",").indexOf(A.id)!==-1)return;n.setAttribute("aria-describedby",o?`${o},${A.id}`:A.id)}}},JV=[];function JE(e,t,A={}){let{enabled:n=!0,placement:r="bottom",strategy:o="absolute",modifiers:i=JV}=A,a=qV(A,TV);const s=C.useRef(i),l=C.useRef(),c=C.useCallback(()=>{var d;(d=l.current)==null||d.update()},[]),u=C.useCallback(()=>{var d;(d=l.current)==null||d.forceUpdate()},[]),[g,I]=xw(C.useState({placement:r,update:c,forceUpdate:u,attributes:{},styles:{popper:{},arrow:{}}})),h=C.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:d})=>{const E={},f={};Object.keys(d.elements).forEach(B=>{E[B]=d.styles[B],f[B]=d.attributes[B]}),I({state:d,styles:E,attributes:f,update:c,forceUpdate:u,placement:d.placement})}}),[c,u,I]),y=C.useMemo(()=>(Mo(s.current,i)||(s.current=i),s.current),[i]);return C.useEffect(()=>{!l.current||!n||l.current.setOptions({placement:r,strategy:o,modifiers:[...y,h,PV]})},[o,r,h,n,y]),C.useEffect(()=>{if(!(!n||e==null||t==null))return l.current=UV(e,t,Object.assign({},a,{placement:r,strategy:o,modifiers:[...y,HV,h]})),()=>{l.current!=null&&(l.current.destroy(),l.current=void 0,I(d=>Object.assign({},d,{attributes:{},styles:{popper:{}}})))}},[n,e,t]),g}function li(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}var $V=function(){},KV=$V;const jV=It(KV),Yd=()=>{};function zV(e){return e.button===0}function _V(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const fa=e=>e&&("current"in e?e.current:e),Ud={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function $E(e,t=Yd,{disabled:A,clickTrigger:n="click"}={}){const r=C.useRef(!1),o=C.useRef(!1),i=C.useCallback(l=>{const c=fa(e);jV(!!c,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),r.current=!c||_V(l)||!zV(l)||!!li(c,l.target)||o.current,o.current=!1},[e]),a=Ve(l=>{const c=fa(e);c&&li(c,l.target)&&(o.current=!0)}),s=Ve(l=>{r.current||t(l)});C.useEffect(()=>{var l,c;if(A||e==null)return;const u=Or(fa(e)),g=u.defaultView||window;let I=(l=g.event)!=null?l:(c=g.parent)==null?void 0:c.event,h=null;Ud[n]&&(h=pA(u,Ud[n],a,!0));const y=pA(u,n,i,!0),d=pA(u,n,f=>{if(f===I){I=void 0;return}s(f)});let E=[];return"ontouchstart"in u.documentElement&&(E=[].slice.call(u.body.children).map(f=>pA(f,"mousemove",Yd))),()=>{h==null||h(),y(),d(),E.forEach(f=>f())}},[e,A,n,i,a,s])}function WV(e){const t={};return Array.isArray(e)?(e==null||e.forEach(A=>{t[A.name]=A}),t):e||t}function XV(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function KE({enabled:e,enableEvents:t,placement:A,flip:n,offset:r,fixed:o,containerPadding:i,arrowElement:a,popperConfig:s={}}){var l,c,u,g,I;const h=WV(s.modifiers);return Object.assign({},s,{placement:A,enabled:e,strategy:o?"fixed":s.strategy,modifiers:XV(Object.assign({},h,{eventListeners:{enabled:t,options:(l=h.eventListeners)==null?void 0:l.options},preventOverflow:Object.assign({},h.preventOverflow,{options:i?Object.assign({padding:i},(c=h.preventOverflow)==null?void 0:c.options):(u=h.preventOverflow)==null?void 0:u.options}),offset:{options:Object.assign({offset:r},(g=h.offset)==null?void 0:g.options)},arrow:Object.assign({},h.arrow,{enabled:!!a,options:Object.assign({},(I=h.arrow)==null?void 0:I.options,{element:a})}),flip:Object.assign({enabled:!!n},h.flip)}))})}const ZV=["children"];function e1(e,t){if(e==null)return{};var A={},n=Object.keys(e),r,o;for(o=0;o=0)&&(A[r]=e[r]);return A}const t1=()=>{};function jE(e={}){const t=C.useContext(Ds),[A,n]=Ka(),r=C.useRef(!1),{flip:o,offset:i,rootCloseEvent:a,fixed:s=!1,placement:l,popperConfig:c={},enableEventListeners:u=!0,usePopper:g=!!t}=e,I=(t==null?void 0:t.show)==null?!!e.show:t.show;I&&!r.current&&(r.current=!0);const h=m=>{t==null||t.toggle(!1,m)},{placement:y,setMenu:d,menuElement:E,toggleElement:f}=t||{},B=JE(f,E,KE({placement:l||y||"bottom-start",enabled:g,enableEvents:u??I,offset:i,flip:o,fixed:s,arrowElement:A,popperConfig:c})),p=Object.assign({ref:d||t1,"aria-labelledby":f==null?void 0:f.id},B.attributes.popper,{style:B.styles.popper}),v={show:I,placement:y,hasShown:r.current,toggle:t==null?void 0:t.toggle,popper:g?B:null,arrowProps:g?Object.assign({ref:n},B.attributes.arrow,{style:B.styles.arrow}):{}};return $E(E,h,{clickTrigger:a,disabled:!I}),[p,v]}const A1={usePopper:!0};function ig(e){let{children:t}=e,A=e1(e,ZV);const[n,r]=jE(A);return Q(Qt,{children:t(n,r)})}ig.displayName="DropdownMenu";ig.defaultProps=A1;const za={prefix:String(Math.round(Math.random()*1e10)),current:0},zE=Z.createContext(za),n1=Z.createContext(!1);let r1=!!(typeof window<"u"&&window.document&&window.document.createElement),gl=new WeakMap;function o1(e=!1){let t=C.useContext(zE),A=C.useRef(null);if(A.current===null&&!e){var n,r;let o=(r=Z.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||r===void 0||(n=r.ReactCurrentOwner)===null||n===void 0?void 0:n.current;if(o){let i=gl.get(o);i==null?gl.set(o,{id:t.current,state:o.memoizedState}):o.memoizedState!==i.state&&(t.current=i.id,gl.delete(o))}A.current=++t.current}return A.current}function i1(e){let t=C.useContext(zE);t===za&&!r1&&console.warn("When server rendering, you must wrap your application in an to ensure consistent ids are generated between the client and server.");let A=o1(!!e),n=`react-aria${t.prefix}`;return e||`${n}-${A}`}function a1(e){let t=Z.useId(),[A]=C.useState(g1()),n=A?"react-aria":`react-aria${za.prefix}`;return e||`${n}-${t}`}const s1=typeof Z.useId=="function"?a1:i1;function l1(){return!1}function c1(){return!0}function u1(e){return()=>{}}function g1(){return typeof Z.useSyncExternalStore=="function"?Z.useSyncExternalStore(u1,l1,c1):C.useContext(n1)}const _E=e=>{var t;return((t=e.getAttribute("role"))==null?void 0:t.toLowerCase())==="menu"},Td=()=>{};function WE(){const e=s1(),{show:t=!1,toggle:A=Td,setToggle:n,menuElement:r}=C.useContext(Ds)||{},o=C.useCallback(a=>{A(!t,a)},[t,A]),i={id:e,ref:n||Td,onClick:o,"aria-expanded":!!t};return r&&_E(r)&&(i["aria-haspopup"]=!0),[i,{show:t,toggle:A}]}function XE({children:e}){const[t,A]=WE();return Q(Qt,{children:e(t,A)})}XE.displayName="DropdownToggle";const f1=C.createContext(null),ci=(e,t=null)=>e!=null?String(e):t||null,Rn=f1,ZE=C.createContext(null);ZE.displayName="NavContext";const ag=ZE,d1="data-rr-ui-",C1="rrUi";function Ur(e){return`${d1}${e}`}function I1(e){return`${C1}${e}`}const B1=["eventKey","disabled","onClick","active","as"];function E1(e,t){if(e==null)return{};var A={},n=Object.keys(e),r,o;for(o=0;o=0)&&(A[r]=e[r]);return A}function ep({key:e,href:t,active:A,disabled:n,onClick:r}){const o=C.useContext(Rn),i=C.useContext(ag),{activeKey:a}=i||{},s=ci(e,t),l=A==null&&e!=null?ci(a)===s:A;return[{onClick:Ve(u=>{n||(r==null||r(u),o&&!u.isPropagationStopped()&&o(s,u))}),"aria-disabled":n||void 0,"aria-selected":l,[Ur("dropdown-item")]:""},{isActive:l}]}const tp=C.forwardRef((e,t)=>{let{eventKey:A,disabled:n,onClick:r,active:o,as:i=zu}=e,a=E1(e,B1);const[s]=ep({key:A,href:a.href,disabled:n,onClick:r,active:o});return Q(i,Object.assign({},a,{ref:t},s))});tp.displayName="DropdownItem";const Ap=C.createContext(xr?window:void 0);Ap.Provider;function Ns(){return C.useContext(Ap)}function qd(){const e=ME(),t=C.useRef(null),A=C.useCallback(n=>{t.current=n,e()},[e]);return[t,A]}function wi({defaultShow:e,show:t,onSelect:A,onToggle:n,itemSelector:r=`* [${Ur("dropdown-item")}]`,focusFirstItemOnShow:o,placement:i="bottom-start",children:a}){const s=Ns(),[l,c]=bw(t,e,n),[u,g]=qd(),I=u.current,[h,y]=qd(),d=h.current,E=CE(l),f=C.useRef(null),B=C.useRef(!1),p=C.useContext(Rn),v=C.useCallback((L,O,U=O==null?void 0:O.type)=>{c(L,{originalEvent:O,source:U})},[c]),m=Ve((L,O)=>{A==null||A(L,O),v(!1,O,"select"),O.isPropagationStopped()||p==null||p(L,O)}),w=C.useMemo(()=>({toggle:v,placement:i,show:l,menuElement:I,toggleElement:d,setMenu:g,setToggle:y}),[v,i,l,I,d,g,y]);I&&E&&!l&&(B.current=I.contains(I.ownerDocument.activeElement));const V=Ve(()=>{d&&d.focus&&d.focus()}),D=Ve(()=>{const L=f.current;let O=o;if(O==null&&(O=u.current&&_E(u.current)?"keyboard":!1),O===!1||O==="keyboard"&&!/^key.+$/.test(L))return;const U=fA(u.current,r)[0];U&&U.focus&&U.focus()});C.useEffect(()=>{l?D():B.current&&(B.current=!1,V())},[l,B,V,D]),C.useEffect(()=>{f.current=null});const G=(L,O)=>{if(!u.current)return null;const U=fA(u.current,r);let F=U.indexOf(L)+O;return F=Math.max(0,Math.min(F,U.length)),U[F]};return lw(C.useCallback(()=>s.document,[s]),"keydown",L=>{var O,U;const{key:F}=L,N=L.target,S=(O=u.current)==null?void 0:O.contains(N),M=(U=h.current)==null?void 0:U.contains(N);if(/input|textarea/i.test(N.tagName)&&(F===" "||F!=="Escape"&&S||F==="Escape"&&N.type==="search")||!S&&!M||F==="Tab"&&(!u.current||!l))return;f.current=L.type;const b={originalEvent:L,source:L.type};switch(F){case"ArrowUp":{const Y=G(N,-1);Y&&Y.focus&&Y.focus(),L.preventDefault();return}case"ArrowDown":if(L.preventDefault(),!l)c(!0,b);else{const Y=G(N,1);Y&&Y.focus&&Y.focus()}return;case"Tab":Hu(N.ownerDocument,"keyup",Y=>{var k;(Y.key==="Tab"&&!Y.target||!((k=u.current)!=null&&k.contains(Y.target)))&&c(!1,b)},{once:!0});break;case"Escape":F==="Escape"&&(L.preventDefault(),L.stopPropagation()),c(!1,b);break}}),Q(Rn.Provider,{value:m,children:Q(Ds.Provider,{value:w,children:a})})}wi.displayName="Dropdown";wi.Menu=ig;wi.Toggle=XE;wi.Item=tp;const np=C.createContext({});np.displayName="DropdownContext";const rp=np,op=C.forwardRef(({className:e,bsPrefix:t,as:A="hr",role:n="separator",...r},o)=>(t=X(t,"dropdown-divider"),Q(A,{ref:o,className:_(e,t),role:n,...r})));op.displayName="DropdownDivider";const p1=op,ip=C.forwardRef(({className:e,bsPrefix:t,as:A="div",role:n="heading",...r},o)=>(t=X(t,"dropdown-header"),Q(A,{ref:o,className:_(e,t),role:n,...r})));ip.displayName="DropdownHeader";const Q1=ip,ap=C.forwardRef(({bsPrefix:e,className:t,eventKey:A,disabled:n=!1,onClick:r,active:o,as:i=_u,...a},s)=>{const l=X(e,"dropdown-item"),[c,u]=ep({key:A,href:a.href,disabled:n,onClick:r,active:o});return Q(i,{...a,...c,ref:s,className:_(t,l,u.isActive&&"active",n&&"disabled")})});ap.displayName="DropdownItem";const h1=ap,sp=C.forwardRef(({className:e,bsPrefix:t,as:A="span",...n},r)=>(t=X(t,"dropdown-item-text"),Q(A,{ref:r,className:_(e,t),...n})));sp.displayName="DropdownItemText";const m1=sp,lp=C.createContext(null);lp.displayName="InputGroupContext";const sg=lp,cp=C.createContext(null);cp.displayName="NavbarContext";const xn=cp;function up(e,t){return e}function gp(e,t,A){const n=A?"top-end":"top-start",r=A?"top-start":"top-end",o=A?"bottom-end":"bottom-start",i=A?"bottom-start":"bottom-end",a=A?"right-start":"left-start",s=A?"right-end":"left-end",l=A?"left-start":"right-start",c=A?"left-end":"right-end";let u=e?i:o;return t==="up"?u=e?r:n:t==="end"?u=e?c:l:t==="start"?u=e?s:a:t==="down-centered"?u="bottom":t==="up-centered"&&(u="top"),u}const fp=C.forwardRef(({bsPrefix:e,className:t,align:A,rootCloseEvent:n,flip:r=!0,show:o,renderOnMount:i,as:a="div",popperConfig:s,variant:l,...c},u)=>{let g=!1;const I=C.useContext(xn),h=X(e,"dropdown-menu"),{align:y,drop:d,isRTL:E}=C.useContext(rp);A=A||y;const f=C.useContext(sg),B=[];if(A)if(typeof A=="object"){const L=Object.keys(A);if(L.length){const O=L[0],U=A[O];g=U==="start",B.push(`${h}-${O}-${U}`)}}else A==="end"&&(g=!0);const p=gp(g,d,E),[v,{hasShown:m,popper:w,show:V,toggle:D}]=jE({flip:r,rootCloseEvent:n,show:o,usePopper:!I&&B.length===0,offset:[0,2],popperConfig:s,placement:p});if(v.ref=Kt(up(u),v.ref),oi(()=>{V&&(w==null||w.update())},[V]),!m&&!i&&!f)return null;typeof a!="string"&&(v.show=V,v.close=()=>D==null?void 0:D(!1),v.align=A);let G=c.style;return w!=null&&w.placement&&(G={...c.style,...v.style},c["x-placement"]=w.placement),Q(a,{...c,...v,style:G,...(B.length||I)&&{"data-bs-popper":"static"},className:_(t,h,V&&"show",g&&`${h}-end`,l&&`${h}-${l}`,...B)})});fp.displayName="DropdownMenu";const y1=fp,dp=C.forwardRef(({bsPrefix:e,split:t,className:A,childBsPrefix:n,as:r=Qn,...o},i)=>{const a=X(e,"dropdown-toggle"),s=C.useContext(Ds);n!==void 0&&(o.bsPrefix=n);const[l]=WE();return l.ref=Kt(l.ref,up(i)),Q(r,{className:_(A,a,t&&`${a}-split`,(s==null?void 0:s.show)&&"show"),...l,...o})});dp.displayName="DropdownToggle";const v1=dp,Cp=C.forwardRef((e,t)=>{const{bsPrefix:A,drop:n="down",show:r,className:o,align:i="start",onSelect:a,onToggle:s,focusFirstItemOnShow:l,as:c="div",navbar:u,autoClose:g=!0,...I}=Pu(e,{show:"onToggle"}),h=C.useContext(sg),y=X(A,"dropdown"),d=ws(),E=w=>g===!1?w==="click":g==="inside"?w!=="rootClose":g==="outside"?w!=="select":!0,f=Ve((w,V)=>{var D,G;!((D=V.originalEvent)==null||(G=D.target)==null)&&G.classList.contains("dropdown-toggle")&&V.source==="mousedown"||(V.originalEvent.currentTarget===document&&(V.source!=="keydown"||V.originalEvent.key==="Escape")&&(V.source="rootClose"),E(V.source)&&(s==null||s(w,V)))}),p=gp(i==="end",n,d),v=C.useMemo(()=>({align:i,drop:n,isRTL:d}),[i,n,d]),m={down:y,"down-centered":`${y}-center`,up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"};return Q(rp.Provider,{value:v,children:Q(wi,{placement:p,show:r,onSelect:a,onToggle:f,focusFirstItemOnShow:l,itemSelector:`.${y}-item:not(.disabled):not(:disabled)`,children:h?I.children:Q(c,{...I,ref:t,className:_(o,r&&"show",m[n])})})})});Cp.displayName="Dropdown";const Vt=Object.assign(Cp,{Toggle:v1,Menu:y1,Item:h1,ItemText:m1,Divider:p1,Header:Q1}),w1={type:ce.string,tooltip:ce.bool,as:ce.elementType},lg=C.forwardRef(({as:e="div",className:t,type:A="valid",tooltip:n=!1,...r},o)=>Q(e,{...r,ref:o,className:_(t,`${A}-${n?"tooltip":"feedback"}`)}));lg.displayName="Feedback";lg.propTypes=w1;const Ip=lg,V1=C.createContext({}),wA=V1,Bp=C.forwardRef(({id:e,bsPrefix:t,className:A,type:n="checkbox",isValid:r=!1,isInvalid:o=!1,as:i="input",...a},s)=>{const{controlId:l}=C.useContext(wA);return t=X(t,"form-check-input"),Q(i,{...a,ref:s,type:n,id:e||l,className:_(A,t,r&&"is-valid",o&&"is-invalid")})});Bp.displayName="FormCheckInput";const ks=Bp,Ep=C.forwardRef(({bsPrefix:e,className:t,htmlFor:A,...n},r)=>{const{controlId:o}=C.useContext(wA);return e=X(e,"form-check-label"),Q("label",{...n,ref:r,htmlFor:A||o,className:_(t,e)})});Ep.displayName="FormCheckLabel";const hc=Ep,pp=C.forwardRef(({id:e,bsPrefix:t,bsSwitchPrefix:A,inline:n=!1,reverse:r=!1,disabled:o=!1,isValid:i=!1,isInvalid:a=!1,feedbackTooltip:s=!1,feedback:l,feedbackType:c,className:u,style:g,title:I="",type:h="checkbox",label:y,children:d,as:E="input",...f},B)=>{t=X(t,"form-check"),A=X(A,"form-switch");const{controlId:p}=C.useContext(wA),v=C.useMemo(()=>({controlId:e||p}),[p,e]),m=!d&&y!=null&&y!==!1||Lw(d,hc),w=Q(ks,{...f,type:h==="switch"?"checkbox":h,ref:B,isValid:i,isInvalid:a,disabled:o,as:E});return Q(wA.Provider,{value:v,children:Q("div",{style:g,className:_(u,m&&t,n&&`${t}-inline`,r&&`${t}-reverse`,h==="switch"&&A),children:d||j(Qt,{children:[w,m&&Q(hc,{title:I,children:y}),l&&Q(Ip,{type:c,tooltip:s,children:l})]})})})});pp.displayName="FormCheck";const _a=Object.assign(pp,{Input:ks,Label:hc}),Qp=C.forwardRef(({bsPrefix:e,type:t,size:A,htmlSize:n,id:r,className:o,isValid:i=!1,isInvalid:a=!1,plaintext:s,readOnly:l,as:c="input",...u},g)=>{const{controlId:I}=C.useContext(wA);return e=X(e,"form-control"),Q(c,{...u,type:t,size:n,ref:g,readOnly:l,id:r||I,className:_(o,s?`${e}-plaintext`:e,A&&`${e}-${A}`,t==="color"&&`${e}-color`,i&&"is-valid",a&&"is-invalid")})});Qp.displayName="FormControl";const D1=Object.assign(Qp,{Feedback:Ip}),hp=C.forwardRef(({className:e,bsPrefix:t,as:A="div",...n},r)=>(t=X(t,"form-floating"),Q(A,{ref:r,className:_(e,t),...n})));hp.displayName="FormFloating";const S1=hp,mp=C.forwardRef(({controlId:e,as:t="div",...A},n)=>{const r=C.useMemo(()=>({controlId:e}),[e]);return Q(wA.Provider,{value:r,children:Q(t,{...A,ref:n})})});mp.displayName="FormGroup";const yp=mp,vp=C.forwardRef(({as:e="label",bsPrefix:t,column:A=!1,visuallyHidden:n=!1,className:r,htmlFor:o,...i},a)=>{const{controlId:s}=C.useContext(wA);t=X(t,"form-label");let l="col-form-label";typeof A=="string"&&(l=`${l} ${l}-${A}`);const c=_(r,t,n&&"visually-hidden",A&&l);return o=o||s,A?Q(de,{ref:a,as:"label",className:c,htmlFor:o,...i}):Q(e,{ref:a,className:c,htmlFor:o,...i})});vp.displayName="FormLabel";const N1=vp,wp=C.forwardRef(({bsPrefix:e,className:t,id:A,...n},r)=>{const{controlId:o}=C.useContext(wA);return e=X(e,"form-range"),Q("input",{...n,type:"range",ref:r,className:_(t,e),id:A||o})});wp.displayName="FormRange";const k1=wp,Vp=C.forwardRef(({bsPrefix:e,size:t,htmlSize:A,className:n,isValid:r=!1,isInvalid:o=!1,id:i,...a},s)=>{const{controlId:l}=C.useContext(wA);return e=X(e,"form-select"),Q("select",{...a,size:A,ref:s,className:_(n,e,t&&`${e}-${t}`,r&&"is-valid",o&&"is-invalid"),id:i||l})});Vp.displayName="FormSelect";const R1=Vp,Dp=C.forwardRef(({bsPrefix:e,className:t,as:A="small",muted:n,...r},o)=>(e=X(e,"form-text"),Q(A,{...r,ref:o,className:_(t,e,n&&"text-muted")})));Dp.displayName="FormText";const G1=Dp,Sp=C.forwardRef((e,t)=>Q(_a,{...e,ref:t,type:"switch"}));Sp.displayName="Switch";const L1=Object.assign(Sp,{Input:_a.Input,Label:_a.Label}),Np=C.forwardRef(({bsPrefix:e,className:t,children:A,controlId:n,label:r,...o},i)=>(e=X(e,"form-floating"),j(yp,{ref:i,className:_(t,e),controlId:n,...o,children:[A,Q("label",{htmlFor:n,children:r})]})));Np.displayName="FloatingLabel";const F1=Np,M1={_ref:ce.any,validated:ce.bool,as:ce.elementType},cg=C.forwardRef(({className:e,validated:t,as:A="form",...n},r)=>Q(A,{...n,ref:r,className:_(e,t&&"was-validated")}));cg.displayName="Form";cg.propTypes=M1;const ct=Object.assign(cg,{Group:yp,Control:D1,Floating:S1,Check:_a,Switch:L1,Label:N1,Text:G1,Range:k1,Select:R1,FloatingLabel:F1}),kp=C.forwardRef(({className:e,bsPrefix:t,as:A="span",...n},r)=>(t=X(t,"input-group-text"),Q(A,{ref:r,className:_(e,t),...n})));kp.displayName="InputGroupText";const ug=kp,b1=e=>Q(ug,{children:Q(ks,{type:"checkbox",...e})}),O1=e=>Q(ug,{children:Q(ks,{type:"radio",...e})}),Rp=C.forwardRef(({bsPrefix:e,size:t,hasValidation:A,className:n,as:r="div",...o},i)=>{e=X(e,"input-group");const a=C.useMemo(()=>({}),[]);return Q(sg.Provider,{value:a,children:Q(r,{ref:i,...o,className:_(n,e,t&&`${e}-${t}`,A&&"has-validation")})})});Rp.displayName="InputGroup";const Sr=Object.assign(Rp,{Text:ug,Radio:O1,Checkbox:b1}),x1=C.createContext(null),Gp=x1,Y1=["as","active","eventKey"];function U1(e,t){if(e==null)return{};var A={},n=Object.keys(e),r,o;for(o=0;o=0)&&(A[r]=e[r]);return A}function Lp({key:e,onClick:t,active:A,id:n,role:r,disabled:o}){const i=C.useContext(Rn),a=C.useContext(ag),s=C.useContext(Gp);let l=A;const c={role:r};if(a){!r&&a.role==="tablist"&&(c.role="tab");const u=a.getControllerId(e??null),g=a.getControlledId(e??null);c[Ur("event-key")]=e,c.id=u||n,l=A==null&&e!=null?a.activeKey===e:A,(l||!(s!=null&&s.unmountOnExit)&&!(s!=null&&s.mountOnEnter))&&(c["aria-controls"]=g)}return c.role==="tab"&&(c["aria-selected"]=l,l||(c.tabIndex=-1),o&&(c.tabIndex=-1,c["aria-disabled"]=!0)),c.onClick=Ve(u=>{o||(t==null||t(u),e!=null&&i&&!u.isPropagationStopped()&&i(e,u))}),[c,{isActive:l}]}const Fp=C.forwardRef((e,t)=>{let{as:A=zu,active:n,eventKey:r}=e,o=U1(e,Y1);const[i,a]=Lp(Object.assign({key:ci(r,o.href),active:n},o));return i[Ur("active")]=a.isActive,Q(A,Object.assign({},o,i,{ref:t}))});Fp.displayName="NavItem";const T1=Fp,q1=["as","onSelect","activeKey","role","onKeyDown"];function P1(e,t){if(e==null)return{};var A={},n=Object.keys(e),r,o;for(o=0;o=0)&&(A[r]=e[r]);return A}const Pd=()=>{},Hd=Ur("event-key"),Mp=C.forwardRef((e,t)=>{let{as:A="div",onSelect:n,activeKey:r,role:o,onKeyDown:i}=e,a=P1(e,q1);const s=ME(),l=C.useRef(!1),c=C.useContext(Rn),u=C.useContext(Gp);let g,I;u&&(o=o||"tablist",r=u.activeKey,g=u.getControlledId,I=u.getControllerId);const h=C.useRef(null),y=B=>{const p=h.current;if(!p)return null;const v=fA(p,`[${Hd}]:not([aria-disabled=true])`),m=p.querySelector("[aria-selected=true]");if(!m||m!==document.activeElement)return null;const w=v.indexOf(m);if(w===-1)return null;let V=w+B;return V>=v.length&&(V=0),V<0&&(V=v.length-1),v[V]},d=(B,p)=>{B!=null&&(n==null||n(B,p),c==null||c(B,p))},E=B=>{if(i==null||i(B),!u)return;let p;switch(B.key){case"ArrowLeft":case"ArrowUp":p=y(-1);break;case"ArrowRight":case"ArrowDown":p=y(1);break;default:return}p&&(B.preventDefault(),d(p.dataset[I1("EventKey")]||null,B),l.current=!0,s())};C.useEffect(()=>{if(h.current&&l.current){const B=h.current.querySelector(`[${Hd}][aria-selected=true]`);B==null||B.focus()}l.current=!1});const f=Kt(t,h);return Q(Rn.Provider,{value:d,children:Q(ag.Provider,{value:{role:o,activeKey:ci(r),getControlledId:g||Pd,getControllerId:I||Pd},children:Q(A,Object.assign({},a,{onKeyDown:E,ref:f,role:o}))})})});Mp.displayName="Nav";const H1=Object.assign(Mp,{Item:T1});var Ji;function Jd(e){if((!Ji&&Ji!==0||e)&&xr){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),Ji=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Ji}function fl(e){e===void 0&&(e=Or());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function J1(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const $d=Ur("modal-open");class $1{constructor({ownerDocument:t,handleContainerOverflow:A=!0,isRTL:n=!1}={}){this.handleContainerOverflow=A,this.isRTL=n,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return J1(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const A={overflow:"hidden"},n=this.isRTL?"paddingLeft":"paddingRight",r=this.getElement();t.style={overflow:r.style.overflow,[n]:r.style[n]},t.scrollBarWidth&&(A[n]=`${parseInt(hA(r,n)||"0",10)+t.scrollBarWidth}px`),r.setAttribute($d,""),hA(r,A)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const A=this.getElement();A.removeAttribute($d),Object.assign(A.style,t.style)}add(t){let A=this.modals.indexOf(t);return A!==-1||(A=this.modals.length,this.modals.push(t),this.setModalAttributes(t),A!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),A}remove(t){const A=this.modals.indexOf(t);A!==-1&&(this.modals.splice(A,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(t))}isTopModal(t){return!!this.modals.length&&this.modals[this.modals.length-1]===t}}const gg=$1,dl=(e,t)=>xr?e==null?(t||Or()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function mc(e,t){const A=Ns(),[n,r]=C.useState(()=>dl(e,A==null?void 0:A.document));if(!n){const o=dl(e);o&&r(o)}return C.useEffect(()=>{t&&n&&t(n)},[t,n]),C.useEffect(()=>{const o=dl(e);o!==n&&r(o)},[e,n]),n}function K1({children:e,in:t,onExited:A,mountOnEnter:n,unmountOnExit:r}){const o=C.useRef(null),i=C.useRef(t),a=Ve(A);C.useEffect(()=>{t?i.current=!0:a(o.current)},[t,a]);const s=Kt(o,e.ref),l=C.cloneElement(e,{ref:s});return t?l:r||!i.current&&n?null:l}const j1=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function z1(e,t){if(e==null)return{};var A={},n=Object.keys(e),r,o;for(o=0;o=0)&&(A[r]=e[r]);return A}function _1(e){let{onEnter:t,onEntering:A,onEntered:n,onExit:r,onExiting:o,onExited:i,addEndListener:a,children:s}=e,l=z1(e,j1);const c=C.useRef(null),u=Kt(c,typeof s=="function"?null:s.ref),g=p=>v=>{p&&c.current&&p(c.current,v)},I=C.useCallback(g(t),[t]),h=C.useCallback(g(A),[A]),y=C.useCallback(g(n),[n]),d=C.useCallback(g(r),[r]),E=C.useCallback(g(o),[o]),f=C.useCallback(g(i),[i]),B=C.useCallback(g(a),[a]);return Object.assign({},l,{nodeRef:c},t&&{onEnter:I},A&&{onEntering:h},n&&{onEntered:y},r&&{onExit:d},o&&{onExiting:E},i&&{onExited:f},a&&{addEndListener:B},{children:typeof s=="function"?(p,v)=>s(p,Object.assign({},v,{ref:u})):C.cloneElement(s,{ref:u})})}const W1=["component"];function X1(e,t){if(e==null)return{};var A={},n=Object.keys(e),r,o;for(o=0;o=0)&&(A[r]=e[r]);return A}const Z1=C.forwardRef((e,t)=>{let{component:A}=e,n=X1(e,W1);const r=_1(n);return Q(A,Object.assign({ref:t},r))}),eD=Z1;function tD({in:e,onTransition:t}){const A=C.useRef(null),n=C.useRef(!0),r=Ve(t);return oi(()=>{if(!A.current)return;let o=!1;return r({in:e,element:A.current,initial:n.current,isStale:()=>o}),()=>{o=!0}},[e,r]),oi(()=>(n.current=!1,()=>{n.current=!0}),[]),A}function AD({children:e,in:t,onExited:A,onEntered:n,transition:r}){const[o,i]=C.useState(!t);t&&o&&i(!1);const a=tD({in:!!t,onTransition:l=>{const c=()=>{l.isStale()||(l.in?n==null||n(l.element,l.initial):(i(!0),A==null||A(l.element)))};Promise.resolve(r(l)).then(c,u=>{throw l.in||i(!0),u})}}),s=Kt(a,e.ref);return o&&!t?null:C.cloneElement(e,{ref:s})}function yc(e,t,A){return e?Q(eD,Object.assign({},A,{component:e})):t?Q(AD,Object.assign({},A,{transition:t})):Q(K1,Object.assign({},A))}function bp(e){return e.code==="Escape"||e.keyCode===27}const nD=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function rD(e,t){if(e==null)return{};var A={},n=Object.keys(e),r,o;for(o=0;o=0)&&(A[r]=e[r]);return A}let Cl;function oD(e){return Cl||(Cl=new gg({ownerDocument:e==null?void 0:e.document})),Cl}function iD(e){const t=Ns(),A=e||oD(t),n=C.useRef({dialog:null,backdrop:null});return Object.assign(n.current,{add:()=>A.add(n.current),remove:()=>A.remove(n.current),isTopModal:()=>A.isTopModal(n.current),setDialogRef:C.useCallback(r=>{n.current.dialog=r},[]),setBackdropRef:C.useCallback(r=>{n.current.backdrop=r},[])})}const Op=C.forwardRef((e,t)=>{let{show:A=!1,role:n="dialog",className:r,style:o,children:i,backdrop:a=!0,keyboard:s=!0,onBackdropClick:l,onEscapeKeyDown:c,transition:u,runTransition:g,backdropTransition:I,runBackdropTransition:h,autoFocus:y=!0,enforceFocus:d=!0,restoreFocus:E=!0,restoreFocusOptions:f,renderDialog:B,renderBackdrop:p=$=>Q("div",Object.assign({},$)),manager:v,container:m,onShow:w,onHide:V=()=>{},onExit:D,onExited:G,onExiting:L,onEnter:O,onEntering:U,onEntered:F}=e,N=rD(e,nD);const S=Ns(),M=mc(m),R=iD(v),b=Ku(),Y=CE(A),[k,x]=C.useState(!A),q=C.useRef(null);C.useImperativeHandle(t,()=>R,[R]),xr&&!Y&&A&&(q.current=fl(S==null?void 0:S.document)),A&&k&&x(!1);const P=Ve(()=>{if(R.add(),le.current=pA(document,"keydown",se),ue.current=pA(document,"focus",()=>setTimeout(ee),!0),w&&w(),y){var $,te;const Ce=fl(($=(te=R.dialog)==null?void 0:te.ownerDocument)!=null?$:S==null?void 0:S.document);R.dialog&&Ce&&!li(R.dialog,Ce)&&(q.current=Ce,R.dialog.focus())}}),z=Ve(()=>{if(R.remove(),le.current==null||le.current(),ue.current==null||ue.current(),E){var $;($=q.current)==null||$.focus==null||$.focus(f),q.current=null}});C.useEffect(()=>{!A||!M||P()},[A,M,P]),C.useEffect(()=>{k&&z()},[k,z]),Xu(()=>{z()});const ee=Ve(()=>{if(!d||!b()||!R.isTopModal())return;const $=fl(S==null?void 0:S.document);R.dialog&&$&&!li(R.dialog,$)&&R.dialog.focus()}),ne=Ve($=>{$.target===$.currentTarget&&(l==null||l($),a===!0&&V())}),se=Ve($=>{s&&bp($)&&R.isTopModal()&&(c==null||c($),$.defaultPrevented||V())}),ue=C.useRef(),le=C.useRef(),Ie=(...$)=>{x(!0),G==null||G(...$)};if(!M)return null;const ye=Object.assign({role:n,ref:R.setDialogRef,"aria-modal":n==="dialog"?!0:void 0},N,{style:o,className:r,tabIndex:-1});let J=B?B(ye):Q("div",Object.assign({},ye,{children:C.cloneElement(i,{role:"document"})}));J=yc(u,g,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!A,onExit:D,onExiting:L,onExited:Ie,onEnter:O,onEntering:U,onEntered:F,children:J});let T=null;return a&&(T=p({ref:R.setBackdropRef,onClick:ne}),T=yc(I,h,{in:!!A,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:T})),Q(Qt,{children:MA.createPortal(j(Qt,{children:[T,J]}),M)})});Op.displayName="Modal";const xp=Object.assign(Op,{Manager:gg});function vc(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function aD(e,t){e.classList?e.classList.add(t):vc(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Kd(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function sD(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Kd(e.className,t):e.setAttribute("class",Kd(e.className&&e.className.baseVal||"",t))}const Pn={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class Yp extends gg{adjustAndStore(t,A,n){const r=A.style[t];A.dataset[t]=r,hA(A,{[t]:`${parseFloat(hA(A,t))+n}px`})}restore(t,A){const n=A.dataset[t];n!==void 0&&(delete A.dataset[t],hA(A,{[t]:n}))}setContainerStyle(t){super.setContainerStyle(t);const A=this.getElement();if(aD(A,"modal-open"),!t.scrollBarWidth)return;const n=this.isRTL?"paddingLeft":"paddingRight",r=this.isRTL?"marginLeft":"marginRight";fA(A,Pn.FIXED_CONTENT).forEach(o=>this.adjustAndStore(n,o,t.scrollBarWidth)),fA(A,Pn.STICKY_CONTENT).forEach(o=>this.adjustAndStore(r,o,-t.scrollBarWidth)),fA(A,Pn.NAVBAR_TOGGLER).forEach(o=>this.adjustAndStore(r,o,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const A=this.getElement();sD(A,"modal-open");const n=this.isRTL?"paddingLeft":"paddingRight",r=this.isRTL?"marginLeft":"marginRight";fA(A,Pn.FIXED_CONTENT).forEach(o=>this.restore(n,o)),fA(A,Pn.STICKY_CONTENT).forEach(o=>this.restore(r,o)),fA(A,Pn.NAVBAR_TOGGLER).forEach(o=>this.restore(r,o))}}let Il;function Up(e){return Il||(Il=new Yp(e)),Il}const Tp=C.forwardRef(({className:e,bsPrefix:t,as:A="div",...n},r)=>(t=X(t,"modal-body"),Q(A,{ref:r,className:_(e,t),...n})));Tp.displayName="ModalBody";const lD=Tp,cD=C.createContext({onHide(){}}),fg=cD,qp=C.forwardRef(({bsPrefix:e,className:t,contentClassName:A,centered:n,size:r,fullscreen:o,children:i,scrollable:a,...s},l)=>{e=X(e,"modal");const c=`${e}-dialog`,u=typeof o=="string"?`${e}-fullscreen-${o}`:`${e}-fullscreen`;return Q("div",{...s,ref:l,className:_(c,t,r&&`${e}-${r}`,n&&`${c}-centered`,a&&`${c}-scrollable`,o&&u),children:Q("div",{className:_(`${e}-content`,A),children:i})})});qp.displayName="ModalDialog";const Pp=qp,Hp=C.forwardRef(({className:e,bsPrefix:t,as:A="div",...n},r)=>(t=X(t,"modal-footer"),Q(A,{ref:r,className:_(e,t),...n})));Hp.displayName="ModalFooter";const uD=Hp,gD=C.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:A=!1,onHide:n,children:r,...o},i)=>{const a=C.useContext(fg),s=Ve(()=>{a==null||a.onHide(),n==null||n()});return j("div",{ref:i,...o,children:[r,A&&Q(Qw,{"aria-label":e,variant:t,onClick:s})]})}),Jp=gD,$p=C.forwardRef(({bsPrefix:e,className:t,closeLabel:A="Close",closeButton:n=!1,...r},o)=>(e=X(e,"modal-header"),Q(Jp,{ref:o,...r,className:_(t,e),closeLabel:A,closeButton:n})));$p.displayName="ModalHeader";const fD=$p,dD=Vs("h4"),Kp=C.forwardRef(({className:e,bsPrefix:t,as:A=dD,...n},r)=>(t=X(t,"modal-title"),Q(A,{ref:r,className:_(e,t),...n})));Kp.displayName="ModalTitle";const CD=Kp;function ID(e){return Q(ii,{...e,timeout:null})}function BD(e){return Q(ii,{...e,timeout:null})}const jp=C.forwardRef(({bsPrefix:e,className:t,style:A,dialogClassName:n,contentClassName:r,children:o,dialogAs:i=Pp,"data-bs-theme":a,"aria-labelledby":s,"aria-describedby":l,"aria-label":c,show:u=!1,animation:g=!0,backdrop:I=!0,keyboard:h=!0,onEscapeKeyDown:y,onShow:d,onHide:E,container:f,autoFocus:B=!0,enforceFocus:p=!0,restoreFocus:v=!0,restoreFocusOptions:m,onEntered:w,onExit:V,onExiting:D,onEnter:G,onEntering:L,onExited:O,backdropClassName:U,manager:F,...N},S)=>{const[M,R]=C.useState({}),[b,Y]=C.useState(!1),k=C.useRef(!1),x=C.useRef(!1),q=C.useRef(null),[P,z]=Ka(),ee=Kt(S,z),ne=Ve(E),se=ws();e=X(e,"modal");const ue=C.useMemo(()=>({onHide:ne}),[ne]);function le(){return F||Up({isRTL:se})}function Ie(re){if(!xr)return;const it=le().getScrollbarWidth()>0,un=re.scrollHeight>Or(re).documentElement.clientHeight;R({paddingRight:it&&!un?Jd():void 0,paddingLeft:!it&&un?Jd():void 0})}const ye=Ve(()=>{P&&Ie(P.dialog)});Xu(()=>{Bc(window,"resize",ye),q.current==null||q.current()});const J=()=>{k.current=!0},T=re=>{k.current&&P&&re.target===P.dialog&&(x.current=!0),k.current=!1},$=()=>{Y(!0),q.current=fE(P.dialog,()=>{Y(!1)})},te=re=>{re.target===re.currentTarget&&$()},Ce=re=>{if(I==="static"){te(re);return}if(x.current||re.target!==re.currentTarget){x.current=!1;return}E==null||E()},wt=re=>{h?y==null||y(re):(re.preventDefault(),I==="static"&&$())},cn=(re,it)=>{re&&Ie(re),G==null||G(re,it)},et=re=>{q.current==null||q.current(),V==null||V(re)},K=(re,it)=>{L==null||L(re,it),Hu(window,"resize",ye)},ie=re=>{re&&(re.style.display=""),O==null||O(re),Bc(window,"resize",ye)},fe=C.useCallback(re=>Q("div",{...re,className:_(`${e}-backdrop`,U,!g&&"show")}),[g,U,e]),Se={...A,...M};Se.display="block";const Ee=re=>Q("div",{role:"dialog",...re,style:Se,className:_(t,e,b&&`${e}-static`,!g&&"show"),onClick:I?Ce:void 0,onMouseUp:T,"data-bs-theme":a,"aria-label":c,"aria-labelledby":s,"aria-describedby":l,children:Q(i,{...N,onMouseDown:J,className:n,contentClassName:r,children:o})});return Q(fg.Provider,{value:ue,children:Q(xp,{show:u,ref:ee,backdrop:I,container:f,keyboard:!0,autoFocus:B,enforceFocus:p,restoreFocus:v,restoreFocusOptions:m,onEscapeKeyDown:wt,onShow:d,onHide:E,onEnter:cn,onEntering:K,onEntered:w,onExit:et,onExiting:D,onExited:ie,manager:le(),transition:g?ID:void 0,backdropTransition:g?BD:void 0,renderBackdrop:fe,renderDialog:Ee})})});jp.displayName="Modal";const jd=Object.assign(jp,{Body:lD,Header:fD,Title:CD,Footer:uD,Dialog:Pp,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150});var zd={exports:{}},wc={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=A;function A(n){function r(i,a,s,l,c,u){var g=l||"<>",I=u||s;if(a[s]==null)return i?new Error("Required "+c+" `"+I+"` was not specified "+("in `"+g+"`.")):null;for(var h=arguments.length,y=Array(h>6?h-6:0),d=6;d(t=X(t,"nav-item"),Q(A,{ref:r,className:_(e,t),...n})));zp.displayName="NavItem";const pD=zp,_p=C.forwardRef(({bsPrefix:e,className:t,as:A=_u,active:n,eventKey:r,disabled:o=!1,...i},a)=>{e=X(e,"nav-link");const[s,l]=Lp({key:ci(r,i.href),active:n,disabled:o,...i});return Q(A,{...i,...s,ref:a,disabled:o,className:_(t,e,o&&"disabled",l.isActive&&"active")})});_p.displayName="NavLink";const QD=_p,Wp=C.forwardRef((e,t)=>{const{as:A="div",bsPrefix:n,variant:r,fill:o=!1,justify:i=!1,navbar:a,navbarScroll:s,className:l,activeKey:c,...u}=Pu(e,{activeKey:"onSelect"}),g=X(n,"nav");let I,h,y=!1;const d=C.useContext(xn),E=C.useContext(yE);return d?(I=d.bsPrefix,y=a??!0):E&&({cardHeaderBsPrefix:h}=E),Q(H1,{as:A,ref:t,activeKey:c,className:_(l,{[g]:!y,[`${I}-nav`]:y,[`${I}-nav-scroll`]:y&&s,[`${h}-${r}`]:!!h,[`${g}-${r}`]:!!r,[`${g}-fill`]:o,[`${g}-justified`]:i}),...u})});Wp.displayName="Nav";const Er=Object.assign(Wp,{Item:pD,Link:QD}),Xp=C.forwardRef(({bsPrefix:e,className:t,as:A,...n},r)=>{e=X(e,"navbar-brand");const o=A||(n.href?"a":"span");return Q(o,{...n,ref:r,className:_(t,e)})});Xp.displayName="NavbarBrand";const hD=Xp,Zp=C.forwardRef(({children:e,bsPrefix:t,...A},n)=>{t=X(t,"navbar-collapse");const r=C.useContext(xn);return Q(aw,{in:!!(r&&r.expanded),...A,children:Q("div",{ref:n,className:t,children:e})})});Zp.displayName="NavbarCollapse";const mD=Zp,eQ=C.forwardRef(({bsPrefix:e,className:t,children:A,label:n="Toggle navigation",as:r="button",onClick:o,...i},a)=>{e=X(e,"navbar-toggler");const{onToggle:s,expanded:l}=C.useContext(xn)||{},c=Ve(u=>{o&&o(u),s&&s()});return r==="button"&&(i.type="button"),Q(r,{...i,ref:a,onClick:c,"aria-label":n,className:_(t,e,!l&&"collapsed"),children:A||Q("span",{className:`${e}-icon`})})});eQ.displayName="NavbarToggle";const yD=eQ,Vc=new WeakMap,_d=(e,t)=>{if(!e||!t)return;const A=Vc.get(t)||new Map;Vc.set(t,A);let n=A.get(e);return n||(n=t.matchMedia(e),n.refCount=0,A.set(n.media,n)),n};function vD(e,t=typeof window>"u"?void 0:window){const A=_d(e,t),[n,r]=C.useState(()=>A?A.matches:!1);return oi(()=>{let o=_d(e,t);if(!o)return r(!1);let i=Vc.get(t);const a=()=>{r(o.matches)};return o.refCount++,o.addListener(a),a(),()=>{o.removeListener(a),o.refCount--,o.refCount<=0&&(i==null||i.delete(o.media)),o=void 0}},[e]),n}function wD(e){const t=Object.keys(e);function A(a,s){return a===s?s:a?`${a} and ${s}`:s}function n(a){return t[Math.min(t.indexOf(a)+1,t.length-1)]}function r(a){const s=n(a);let l=e[s];return typeof l=="number"?l=`${l-.2}px`:l=`calc(${l} - 0.2px)`,`(max-width: ${l})`}function o(a){let s=e[a];return typeof s=="number"&&(s=`${s}px`),`(min-width: ${s})`}function i(a,s,l){let c;typeof a=="object"?(c=a,l=s,s=!0):(s=s||!0,c={[a]:s});let u=C.useMemo(()=>Object.entries(c).reduce((g,[I,h])=>((h==="up"||h===!0)&&(g=A(g,o(I))),(h==="down"||h===!0)&&(g=A(g,r(I))),g),""),[JSON.stringify(c)]);return vD(u,l)}return i}const VD=wD({xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400}),tQ=C.forwardRef(({className:e,bsPrefix:t,as:A="div",...n},r)=>(t=X(t,"offcanvas-body"),Q(A,{ref:r,className:_(e,t),...n})));tQ.displayName="OffcanvasBody";const DD=tQ,SD={[qt]:"show",[CA]:"show"},AQ=C.forwardRef(({bsPrefix:e,className:t,children:A,in:n=!1,mountOnEnter:r=!1,unmountOnExit:o=!1,appear:i=!1,...a},s)=>(e=X(e,"offcanvas"),Q($u,{ref:s,addEndListener:Ju,in:n,mountOnEnter:r,unmountOnExit:o,appear:i,...a,childRef:A.ref,children:(l,c)=>C.cloneElement(A,{...c,className:_(t,A.props.className,(l===qt||l===ri)&&`${e}-toggling`,SD[l])})})));AQ.displayName="OffcanvasToggling";const ND=AQ,nQ=C.forwardRef(({bsPrefix:e,className:t,closeLabel:A="Close",closeButton:n=!1,...r},o)=>(e=X(e,"offcanvas-header"),Q(Jp,{ref:o,...r,className:_(t,e),closeLabel:A,closeButton:n})));nQ.displayName="OffcanvasHeader";const kD=nQ,RD=Vs("h5"),rQ=C.forwardRef(({className:e,bsPrefix:t,as:A=RD,...n},r)=>(t=X(t,"offcanvas-title"),Q(A,{ref:r,className:_(e,t),...n})));rQ.displayName="OffcanvasTitle";const GD=rQ;function LD(e){return Q(ND,{...e})}function FD(e){return Q(ii,{...e})}const oQ=C.forwardRef(({bsPrefix:e,className:t,children:A,"aria-labelledby":n,placement:r="start",responsive:o,show:i=!1,backdrop:a=!0,keyboard:s=!0,scroll:l=!1,onEscapeKeyDown:c,onShow:u,onHide:g,container:I,autoFocus:h=!0,enforceFocus:y=!0,restoreFocus:d=!0,restoreFocusOptions:E,onEntered:f,onExit:B,onExiting:p,onEnter:v,onEntering:m,onExited:w,backdropClassName:V,manager:D,renderStaticNode:G=!1,...L},O)=>{const U=C.useRef();e=X(e,"offcanvas");const{onToggle:F}=C.useContext(xn)||{},[N,S]=C.useState(!1),M=VD(o||"xs","up");C.useEffect(()=>{S(o?i&&!M:i)},[i,o,M]);const R=Ve(()=>{F==null||F(),g==null||g()}),b=C.useMemo(()=>({onHide:R}),[R]);function Y(){return D||(l?(U.current||(U.current=new Yp({handleContainerOverflow:!1})),U.current):Up())}const k=(z,...ee)=>{z&&(z.style.visibility="visible"),v==null||v(z,...ee)},x=(z,...ee)=>{z&&(z.style.visibility=""),w==null||w(...ee)},q=C.useCallback(z=>Q("div",{...z,className:_(`${e}-backdrop`,V)}),[V,e]),P=z=>Q("div",{...z,...L,className:_(t,o?`${e}-${o}`:e,`${e}-${r}`),"aria-labelledby":n,children:A});return j(Qt,{children:[!N&&(o||G)&&P({}),Q(fg.Provider,{value:b,children:Q(xp,{show:N,ref:O,backdrop:a,container:I,keyboard:s,autoFocus:h,enforceFocus:y&&!l,restoreFocus:d,restoreFocusOptions:E,onEscapeKeyDown:c,onShow:u,onHide:R,onEnter:k,onEntering:m,onEntered:f,onExit:B,onExiting:p,onExited:x,manager:Y(),transition:LD,backdropTransition:FD,renderBackdrop:q,renderDialog:P})})]})});oQ.displayName="Offcanvas";const MD=Object.assign(oQ,{Body:DD,Header:kD,Title:GD}),iQ=C.forwardRef((e,t)=>{const A=C.useContext(xn);return Q(MD,{ref:t,show:!!(A!=null&&A.expanded),...e,renderStaticNode:!0})});iQ.displayName="NavbarOffcanvas";const bD=iQ,aQ=C.forwardRef(({className:e,bsPrefix:t,as:A="span",...n},r)=>(t=X(t,"navbar-text"),Q(A,{ref:r,className:_(e,t),...n})));aQ.displayName="NavbarText";const OD=aQ,sQ=C.forwardRef((e,t)=>{const{bsPrefix:A,expand:n=!0,variant:r="light",bg:o,fixed:i,sticky:a,className:s,as:l="nav",expanded:c,onToggle:u,onSelect:g,collapseOnSelect:I=!1,...h}=Pu(e,{expanded:"onToggle"}),y=X(A,"navbar"),d=C.useCallback((...B)=>{g==null||g(...B),I&&c&&(u==null||u(!1))},[g,I,c,u]);h.role===void 0&&l!=="nav"&&(h.role="navigation");let E=`${y}-expand`;typeof n=="string"&&(E=`${E}-${n}`);const f=C.useMemo(()=>({onToggle:()=>u==null?void 0:u(!c),bsPrefix:y,expanded:!!c,expand:n}),[y,c,n,u]);return Q(xn.Provider,{value:f,children:Q(Rn.Provider,{value:d,children:Q(l,{ref:t,...h,className:_(s,y,n&&E,r&&`${y}-${r}`,o&&`bg-${o}`,a&&`sticky-${a}`,i&&`fixed-${i}`)})})})});sQ.displayName="Navbar";const $i=Object.assign(sQ,{Brand:hD,Collapse:mD,Offcanvas:bD,Text:OD,Toggle:yD}),xD=()=>{};function YD(e,t,{disabled:A,clickTrigger:n}={}){const r=t||xD;$E(e,r,{disabled:A,clickTrigger:n});const o=Ve(i=>{bp(i)&&r(i)});C.useEffect(()=>{if(A||e==null)return;const i=Or(fa(e));let a=(i.defaultView||window).event;const s=pA(i,"keyup",l=>{if(l===a){a=void 0;return}o(l)});return()=>{s()}},[e,A,o])}const lQ=C.forwardRef((e,t)=>{const{flip:A,offset:n,placement:r,containerPadding:o,popperConfig:i={},transition:a,runTransition:s}=e,[l,c]=Ka(),[u,g]=Ka(),I=Kt(c,t),h=mc(e.container),y=mc(e.target),[d,E]=C.useState(!e.show),f=JE(y,l,KE({placement:r,enableEvents:!!e.show,containerPadding:o||5,flip:A,offset:n,arrowElement:u,popperConfig:i}));e.show&&d&&E(!1);const B=(...L)=>{E(!0),e.onExited&&e.onExited(...L)},p=e.show||!d;if(YD(l,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!p)return null;const{onExit:v,onExiting:m,onEnter:w,onEntering:V,onEntered:D}=e;let G=e.children(Object.assign({},f.attributes.popper,{style:f.styles.popper,ref:I}),{popper:f,placement:r,show:!!e.show,arrowProps:Object.assign({},f.attributes.arrow,{style:f.styles.arrow,ref:g})});return G=yc(a,s,{in:!!e.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:G,onExit:v,onExiting:m,onExited:B,onEnter:w,onEntering:V,onEntered:D}),h?MA.createPortal(G,h):null});lQ.displayName="Overlay";const UD=lQ,cQ=C.forwardRef(({className:e,bsPrefix:t,as:A="div",...n},r)=>(t=X(t,"popover-header"),Q(A,{ref:r,className:_(e,t),...n})));cQ.displayName="PopoverHeader";const TD=cQ,uQ=C.forwardRef(({className:e,bsPrefix:t,as:A="div",...n},r)=>(t=X(t,"popover-body"),Q(A,{ref:r,className:_(e,t),...n})));uQ.displayName="PopoverBody";const gQ=uQ;function fQ(e,t){let A=e;return e==="left"?A=t?"end":"start":e==="right"&&(A=t?"start":"end"),A}function dQ(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const qD=C.forwardRef(({bsPrefix:e,placement:t="right",className:A,style:n,children:r,body:o,arrowProps:i,hasDoneInitialMeasure:a,popper:s,show:l,...c},u)=>{const g=X(e,"popover"),I=ws(),[h]=(t==null?void 0:t.split("-"))||[],y=fQ(h,I);let d=n;return l&&!a&&(d={...n,...dQ(s==null?void 0:s.strategy)}),j("div",{ref:u,role:"tooltip",style:d,"x-placement":h,className:_(A,g,h&&`bs-popover-${y}`),...c,children:[Q("div",{className:"popover-arrow",...i}),o?Q(gQ,{children:r}):r]})}),PD=Object.assign(qD,{Header:TD,Body:gQ,POPPER_OFFSET:[0,8]}),CQ=C.forwardRef(({bsPrefix:e,placement:t="right",className:A,style:n,children:r,arrowProps:o,hasDoneInitialMeasure:i,popper:a,show:s,...l},c)=>{e=X(e,"tooltip");const u=ws(),[g]=(t==null?void 0:t.split("-"))||[],I=fQ(g,u);let h=n;return s&&!i&&(h={...n,...dQ(a==null?void 0:a.strategy)}),j("div",{ref:c,style:h,role:"tooltip","x-placement":g,className:_(A,e,`bs-tooltip-${I}`),...l,children:[Q("div",{className:"tooltip-arrow",...o}),Q("div",{className:`${e}-inner`,children:r})]})});CQ.displayName="Tooltip";const IQ=Object.assign(CQ,{TOOLTIP_OFFSET:[0,6]});function HD(e){const t=C.useRef(null),A=X(void 0,"popover"),n=X(void 0,"tooltip"),r=C.useMemo(()=>({name:"offset",options:{offset:()=>{if(e)return e;if(t.current){if(vc(t.current,A))return PD.POPPER_OFFSET;if(vc(t.current,n))return IQ.TOOLTIP_OFFSET}return[0,0]}}}),[e,A,n]);return[t,[r]]}function JD(e,t){const{ref:A}=e,{ref:n}=t;e.ref=A.__wrapped||(A.__wrapped=r=>A($a(r))),t.ref=n.__wrapped||(n.__wrapped=r=>n($a(r)))}const BQ=C.forwardRef(({children:e,transition:t=ii,popperConfig:A={},rootClose:n=!1,placement:r="top",show:o=!1,...i},a)=>{const s=C.useRef({}),[l,c]=C.useState(null),[u,g]=HD(i.offset),I=Kt(a,u),h=t===!0?ii:t||void 0,y=Ve(d=>{c(d),A==null||A.onFirstUpdate==null||A.onFirstUpdate(d)});return oi(()=>{l&&i.target&&(s.current.scheduleUpdate==null||s.current.scheduleUpdate())},[l,i.target]),C.useEffect(()=>{o||c(null)},[o]),Q(UD,{...i,ref:I,popperConfig:{...A,modifiers:g.concat(A.modifiers||[]),onFirstUpdate:y},transition:h,rootClose:n,placement:r,show:o,children:(d,{arrowProps:E,popper:f,show:B})=>{var p,v;JD(d,E);const m=f==null?void 0:f.placement,w=Object.assign(s.current,{state:f==null?void 0:f.state,scheduleUpdate:f==null?void 0:f.update,placement:m,outOfBoundaries:(f==null||(p=f.state)==null||(v=p.modifiersData.hide)==null?void 0:v.isReferenceHidden)||!1,strategy:A.strategy}),V=!!l;return typeof e=="function"?e({...d,placement:m,show:B,...!t&&B&&{className:"show"},popper:w,arrowProps:E,hasDoneInitialMeasure:V}):C.cloneElement(e,{...d,placement:m,arrowProps:E,popper:w,hasDoneInitialMeasure:V,className:_(e.props.className,!t&&B&&"show"),style:{...e.props.style,...d.style}})}})});BQ.displayName="Overlay";const $D=BQ;function KD(e){return e&&typeof e=="object"?e:{show:e,hide:e}}function Wd(e,t,A){const[n]=t,r=n.currentTarget,o=n.relatedTarget||n.nativeEvent[A];(!o||o!==r)&&!li(r,o)&&e(...t)}ce.oneOf(["click","hover","focus"]);const jD=({trigger:e=["hover","focus"],overlay:t,children:A,popperConfig:n={},show:r,defaultShow:o=!1,onToggle:i,delay:a,placement:s,flip:l=s&&s.indexOf("auto")!==-1,...c})=>{const u=C.useRef(null),g=Kt(u,A.ref),I=Gw(),h=C.useRef(""),[y,d]=lE(r,o,i),E=KD(a),{onFocus:f,onBlur:B,onClick:p}=typeof A!="function"?C.Children.only(A).props:{},v=N=>{g($a(N))},m=C.useCallback(()=>{if(I.clear(),h.current="show",!E.show){d(!0);return}I.set(()=>{h.current==="show"&&d(!0)},E.show)},[E.show,d,I]),w=C.useCallback(()=>{if(I.clear(),h.current="hide",!E.hide){d(!1);return}I.set(()=>{h.current==="hide"&&d(!1)},E.hide)},[E.hide,d,I]),V=C.useCallback((...N)=>{m(),f==null||f(...N)},[m,f]),D=C.useCallback((...N)=>{w(),B==null||B(...N)},[w,B]),G=C.useCallback((...N)=>{d(!y),p==null||p(...N)},[p,d,y]),L=C.useCallback((...N)=>{Wd(m,N,"fromElement")},[m]),O=C.useCallback((...N)=>{Wd(w,N,"toElement")},[w]),U=e==null?[]:[].concat(e),F={ref:v};return U.indexOf("click")!==-1&&(F.onClick=G),U.indexOf("focus")!==-1&&(F.onFocus=V,F.onBlur=D),U.indexOf("hover")!==-1&&(F.onMouseOver=L,F.onMouseOut=O),j(Qt,{children:[typeof A=="function"?A(F):C.cloneElement(A,F),Q($D,{...c,show:y,onHide:w,flip:l,placement:s,popperConfig:n,target:u.current,children:t})]})},zD=jD,dg=C.forwardRef(({active:e=!1,disabled:t=!1,className:A,style:n,activeLabel:r="(current)",children:o,linkStyle:i,linkClassName:a,as:s=_u,...l},c)=>{const u=e||t?"span":s;return Q("li",{ref:c,style:n,className:_(A,"page-item",{active:e,disabled:t}),children:j(u,{className:_("page-link",a),style:i,...l,children:[o,e&&r&&Q("span",{className:"visually-hidden",children:r})]})})});dg.displayName="PageItem";const _D=dg;function Vi(e,t,A=e){const n=C.forwardRef(({children:r,...o},i)=>j(dg,{...o,ref:i,children:[Q("span",{"aria-hidden":"true",children:r||t}),Q("span",{className:"visually-hidden",children:A})]}));return n.displayName=e,n}const WD=Vi("First","«"),XD=Vi("Prev","‹","Previous"),ZD=Vi("Ellipsis","…","More"),eS=Vi("Next","›"),tS=Vi("Last","»"),EQ=C.forwardRef(({bsPrefix:e,className:t,size:A,...n},r)=>{const o=X(e,"pagination");return Q("ul",{ref:r,...n,className:_(t,o,A&&`${o}-${A}`)})});EQ.displayName="Pagination";const gn=Object.assign(EQ,{First:WD,Prev:XD,Ellipsis:ZD,Item:_D,Next:eS,Last:tS}),pQ=C.forwardRef(({bsPrefix:e,className:t,as:A="div",...n},r)=>{const o=X(e,"row"),i=cE(),a=uE(),s=`${o}-cols`,l=[];return i.forEach(c=>{const u=n[c];delete n[c];let g;u!=null&&typeof u=="object"?{cols:g}=u:g=u;const I=c!==a?`-${c}`:"";g!=null&&l.push(`${s}${I}-${g}`)}),Q(A,{ref:r,...n,className:_(t,o,...l)})});pQ.displayName="Row";const Me=pQ,QQ=C.forwardRef(({bsPrefix:e,variant:t,animation:A="border",size:n,as:r="div",className:o,...i},a)=>{e=X(e,"spinner");const s=`${e}-${A}`;return Q(r,{ref:a,...i,className:_(o,s,n&&`${s}-${n}`,t&&`text-${t}`)})});QQ.displayName="Spinner";const AS=QQ,nS=C.forwardRef(({bsPrefix:e,className:t,striped:A,bordered:n,borderless:r,hover:o,size:i,variant:a,responsive:s,...l},c)=>{const u=X(e,"table"),g=_(t,u,a&&`${u}-${a}`,i&&`${u}-${i}`,A&&`${u}-${typeof A=="string"?`striped-${A}`:"striped"}`,n&&`${u}-bordered`,r&&`${u}-borderless`,o&&`${u}-hover`),I=Q("table",{...l,className:g,ref:c});if(s){let h=`${u}-responsive`;return typeof s=="string"&&(h=`${h}-${s}`),Q("div",{className:h,children:I})}return I}),rS=nS;var hQ={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Dc=Z.createContext&&Z.createContext(hQ),$A=globalThis&&globalThis.__assign||function(){return $A=Object.assign||function(e){for(var t,A=1,n=arguments.length;A{const{official:t,stars:A=0,showTooltip:n=!0,...r}=e;return Q(zD,{placement:"bottom",delay:CS,overlay:n?j(IQ,{id:"buckettype-tooltip",children:[Q("span",{children:t?"Official bucket":A>=eC?"Popular community bucket":"Community bucket"}),e.stars!==void 0&&j("span",{className:"ms-1",children:["(",A," ",Q(fS,{}),")"]})]}):Q("span",{}),children:Q("span",{children:t&&Q(dS,{...r,color:IS})||A>=eC&&Q(Zd,{...r,color:ES})||Q(Zd,{...r,color:BS})})})},Cg=Z.memo(pS);var Ig=(e=>(e[e.Applications=0]="Applications",e[e.Buckets=1]="Buckets",e))(Ig||{});const QS={0:"applications",1:"buckets"},hS=e=>{const{searching:t,resultsCount:A,query:n,type:r,officialOnly:o}=e,i=QS[r];if(t)return j("span",{children:[j("span",{children:["Searching for ",i,"..."]})," ",Q(AS,{animation:"border",size:"sm",variant:"secondary"})]});let a=Q("span",{});return n&&(a=j("span",{children:[" ","for '",Q("strong",{children:n}),"'"]})),A?j("span",{children:["Found ",A," ",i,a,"."]}):o?j("span",{children:["No result found",a," from ",Q("strong",{children:"Official buckets"}),". Try modifying the filters for possible manifests."]}):j("span",{children:["No result found",a,"."]})},yQ=Z.memo(hS);var Wa=function(){function e(){}return e}(),Le;(function(e){e[e.DISABLE=0]="DISABLE",e[e.ENABLE=1]="ENABLE",e[e.LOGGING=2]="LOGGING"})(Le||(Le={}));var xo;(function(e){e[e.CASE_STRICT=1]="CASE_STRICT",e[e.CASE_INSENSITIVE=2]="CASE_INSENSITIVE"})(xo||(xo={}));var St;(function(e){e[e.ALLOW_NULL=1]="ALLOW_NULL",e[e.ALLOW_OBJECT_NULL=2]="ALLOW_OBJECT_NULL",e[e.DISALLOW_NULL=3]="DISALLOW_NULL"})(St||(St={}));var Ue;(function(e){e[e.MAP_NULLABLE=0]="MAP_NULLABLE",e[e.IGNORE_NULLABLE=1]="IGNORE_NULLABLE",e[e.PASS_NULLABLE=2]="PASS_NULLABLE"})(Ue||(Ue={}));var Oe=function(){function e(){}return e.MAPPING_PROPERTY="__jsonconvert__mapping__",e.MAPPER_PROPERTY="__jsonconvert__mapper__",e.CLASS_IDENTIFIER="__jsonconvert__class_identifier__",e}(),mS=function(){function e(){this.classPropertyName="",this.jsonPropertyName="",this.expectedJsonType=void 0,this.convertingMode=Ue.MAP_NULLABLE,this.customConverter=null}return e}(),vQ=function(){function e(t,A,n,r){this._operationMode=Le.ENABLE,this._valueCheckingMode=St.ALLOW_OBJECT_NULL,this._mapUndefinedToNull=!1,this._ignorePrimitiveChecks=!1,this._propertyMatchingRule=xo.CASE_STRICT,this._propertyConvertingMode=void 0,this._useDiscriminator=!1,this._discriminatorPropertyName="$type",this._classes=new Map,t!==void 0&&t in Le&&(this.operationMode=t),A!==void 0&&A in St&&(this.valueCheckingMode=A),n!==void 0&&(this.ignorePrimitiveChecks=n),r!==void 0&&(this.propertyMatchingRule=r)}return Object.defineProperty(e.prototype,"operationMode",{get:function(){return this._operationMode},set:function(t){t in Le&&(this._operationMode=t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"valueCheckingMode",{get:function(){return this._valueCheckingMode},set:function(t){t in St&&(this._valueCheckingMode=t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mapUndefinedToNull",{get:function(){return this._mapUndefinedToNull},set:function(t){this._mapUndefinedToNull=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ignorePrimitiveChecks",{get:function(){return this._ignorePrimitiveChecks},set:function(t){this._ignorePrimitiveChecks=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"propertyMatchingRule",{get:function(){return this._propertyMatchingRule},set:function(t){t in xo&&(this._propertyMatchingRule=t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"propertyConvertingMode",{get:function(){return this._propertyConvertingMode},set:function(t){this._propertyConvertingMode=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ignoreRequiredCheck",{get:function(){return this.propertyConvertingMode===Ue.IGNORE_NULLABLE},set:function(t){this.propertyConvertingMode=t?Ue.IGNORE_NULLABLE:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"useDiscriminator",{get:function(){return this._useDiscriminator},set:function(t){this._useDiscriminator=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"discriminatorPropertyName",{get:function(){return this._discriminatorPropertyName},set:function(t){this._discriminatorPropertyName=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"classes",{get:function(){return this._classes},enumerable:!1,configurable:!0}),e.prototype.registerClasses=function(){for(var t=this,A=[],n=0;nj(Yr,{className:"footer text-lg-center",children:[Q("hr",{}),j(Me,{className:"mb-3",children:[j(de,{md:4,className:"mb-2",children:[Q(Xd,{className:"footer-icon"})," ",Q("a",{href:"https://github.com/ScoopInstaller",children:"Scoop"})," created by"," ",Q("a",{href:"https://github.com/lukesampson",children:"lukesampson"})]}),j(de,{md:4,className:"mb-2",children:[Q(Xd,{className:"footer-icon"})," ",Q("a",{href:"https://github.com/ScoopInstaller/scoopinstaller.github.io",children:"Website"})," created by"," ",Q("a",{href:"https://github.com/gpailler",children:"gpailler"})," - ","0.2.0","/",Q("a",{href:`https://github.com/ScoopInstaller/scoopinstaller.github.io/commit/402245f -`,children:`402245f -`})]}),j(de,{md:4,className:"mb-2",children:[Q(G2,{className:"footer-icon"})," Maintained by the"," ",Q("a",{href:"https://github.com/orgs/ScoopInstaller/people",children:"community"})]})]})]}),x2=Z.memo(O2);function LC(e){return qe({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8 15A7 7 0 1 0 8 1v14zm0 1A8 8 0 1 1 8 0a8 8 0 0 1 0 16z"}}]})(e)}function FC(e){return qe({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M6 .278a.768.768 0 0 1 .08.858 7.208 7.208 0 0 0-.878 3.46c0 4.021 3.278 7.277 7.318 7.277.527 0 1.04-.055 1.533-.16a.787.787 0 0 1 .81.316.733.733 0 0 1-.031.893A8.349 8.349 0 0 1 8.344 16C3.734 16 0 12.286 0 7.71 0 4.266 2.114 1.312 5.124.06A.752.752 0 0 1 6 .278zM4.858 1.311A7.269 7.269 0 0 0 1.025 7.71c0 4.02 3.279 7.276 7.319 7.276a7.316 7.316 0 0 0 5.205-2.162c-.337.042-.68.063-1.029.063-4.61 0-8.343-3.714-8.343-8.29 0-1.167.242-2.278.681-3.286z"}}]})(e)}function MC(e){return qe({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8 11a3 3 0 1 1 0-6 3 3 0 0 1 0 6zm0 1a4 4 0 1 0 0-8 4 4 0 0 0 0 8zM8 0a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 0zm0 13a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 13zm8-5a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2a.5.5 0 0 1 .5.5zM3 8a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2A.5.5 0 0 1 3 8zm10.657-5.657a.5.5 0 0 1 0 .707l-1.414 1.415a.5.5 0 1 1-.707-.708l1.414-1.414a.5.5 0 0 1 .707 0zm-9.193 9.193a.5.5 0 0 1 0 .707L3.05 13.657a.5.5 0 0 1-.707-.707l1.414-1.414a.5.5 0 0 1 .707 0zm9.193 2.121a.5.5 0 0 1-.707 0l-1.414-1.414a.5.5 0 0 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .707zM4.464 4.465a.5.5 0 0 1-.707 0L2.343 3.05a.5.5 0 1 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .708z"}}]})(e)}const Y2=()=>{const{preferedColorScheme:e,browserColorScheme:t,toggleColorScheme:A}=C.useContext(Os);return Q($i,{expand:"sm",bg:"dark",variant:"dark",children:j(Yr,{children:[j($i.Brand,{as:Br,to:"/",children:[Q("img",{alt:"",src:"https://avatars.githubusercontent.com/u/16618068?s=30",width:"30",height:"30",className:"d-inline-block align-top rounded me-2"}),"Scoop"]}),Q($i.Toggle,{"aria-controls":"responsive-navbar-nav"}),j($i.Collapse,{id:"responsive-navbar-nav",children:[j(Er,{className:"me-auto",children:[Q(Er.Link,{as:Br,to:"/apps",children:"Apps"}),Q(Er.Link,{as:Br,to:"/buckets",children:"Buckets"})]}),j(Qn,{onClick:A,size:"sm",variant:"secondary",children:[e==Be.Auto&&(t==Be.Light?Q(LC,{title:"Auto mode. Click to switch to dark mode"}):Q(LC,{title:"Auto mode. Click to switch to light mode"})),e==Be.Light&&(t==Be.Light?Q(MC,{title:"Light mode. Click to switch to OS/browser preferred mode"}):Q(MC,{title:"Light mode. Click to switch to dark mode"})),e==Be.Dark&&(t==Be.Light?Q(FC,{title:"Dark mode. Click to switch to light mode"}):Q(FC,{title:"Dark mode. Click to switch to OS/browser preferred mode"}))]})]})]})})},U2=Z.memo(Y2),T2=e=>{const t="light",A="dark",n="preferred-color-scheme",[r,o]=C.useState(vh),[i,a]=C.useState(),[s,l]=C.useState(),c=C.useCallback(()=>{switch(s){case Be.Auto:l(i===Be.Light?Be.Dark:Be.Light);break;case Be.Light:l(i===Be.Light?Be.Auto:Be.Dark);break;case Be.Dark:l(i===Be.Dark?Be.Auto:Be.Light);break}},[s,i]),u=I=>I===null?Be.Auto:typeof I=="boolean"?I?Be.Dark:Be.Light:parseInt(I),g=I=>{const h=document.getElementsByTagName("html")[0];I===Be.Dark?(h.classList.remove(t),h.classList.add(A)):(h.classList.remove(A),h.classList.add(t))};return C.useLayoutEffect(()=>{if(s===void 0||i===void 0)return;let I;s===Be.Auto?(I=i,localStorage.removeItem(n)):(I=s,localStorage.setItem(n,s.toString())),g(I),o({preferedColorScheme:s,browserColorScheme:i,isDarkMode:I===Be.Dark,toggleColorScheme:c})},[i,s,c]),C.useLayoutEffect(()=>{const I=window.matchMedia("(prefers-color-scheme: dark)");I.addEventListener("change",h=>{a(u(h.matches))}),a(u(I.matches)),l(u(localStorage.getItem(n)))},[]),Q(Os.Provider,{value:r,children:e.children})},q2=()=>Q("div",{children:Q(Dc.Provider,{value:{className:"react-icon"},children:j(T2,{children:[Q(U2,{}),Q(mv,{}),Q(x2,{})]})})}),ao=2,P2=e=>{const{currentPage:t,resultsCount:A,resultsPerPage:n,onPageChange:r}=e,o=i=>{const a=Math.ceil(A/n),s=Math.max(1,Math.min(i,a));r(s)};if(A>0){const i=Math.ceil(A/n);if(t>i&&r(i),i>1){const a=[];let s=Math.max(2,t-ao),l=Math.min(i-1,t+ao);const c=ao*2-(l-s),u=l-(l+c);l=Math.min(i-1,l+c),s=Math.max(2,s+u);for(let g=s;g<=l;g+=1)g===t-ao+u||g===t+ao+c?a.push(Q(gn.Ellipsis,{disabled:!0},g)):a.push(Q(gn.Item,{active:g===t,onClick:()=>o(g),children:g},g));return j(gn,{size:"sm",children:[Q(gn.Prev,{onClick:()=>o(t-1)},"prev"),Q(gn.Item,{active:t===1,onClick:()=>o(1),children:1},1),a,Q(gn.Item,{active:i===t,onClick:()=>o(i),children:i},i),Q(gn.Next,{onClick:()=>o(t+1)},"next")]})}}return Q(Qt,{})},H2=Z.memo(P2);var J2=Object.defineProperty,$2=Object.getOwnPropertyDescriptor,K2=(e,t,A,n)=>{for(var r=n>1?void 0:n?$2(t,A):t,o=e.length-1,i;o>=0;o--)(i=e[o])&&(r=(n?i(t,A,r):i(r))||r);return n&&r&&J2(t,A,r),r};let Uc=class{serialize(e){throw new Error("Conversion not supported")}deserialize(e){return new Date(e)}};Uc=K2([yS],Uc);const j2=Uc;var z2=Object.defineProperty,_2=Object.getOwnPropertyDescriptor,ln=(e,t,A,n)=>{for(var r=n>1?void 0:n?_2(t,A):t,o=e.length-1,i;o>=0;o--)(i=e[o])&&(r=(n?i(t,A,r):i(r))||r);return n&&r&&z2(t,A,r),r};let oA=class{constructor(){this.repository="",this.repositoryOfficial=!1,this.stars=0,this.branchName="",this.filePath="",this.committed=new Date,this.sha=""}};ln([Ne("Repository",String)],oA.prototype,"repository",2);ln([Ne("OfficialRepository",Boolean)],oA.prototype,"repositoryOfficial",2);ln([Ne("RepositoryStars",Number)],oA.prototype,"stars",2);ln([Ne("BranchName",String,!0)],oA.prototype,"branchName",2);ln([Ne("FilePath",String)],oA.prototype,"filePath",2);ln([Ne("Committed",j2)],oA.prototype,"committed",2);ln([Ne("Sha",String)],oA.prototype,"sha",2);oA=ln([Rs("MetadataJson")],oA);const Vh=oA;var W2=Object.defineProperty,X2=Object.getOwnPropertyDescriptor,vt=(e,t,A,n)=>{for(var r=n>1?void 0:n?X2(t,A):t,o=e.length-1,i;o>=0;o--)(i=e[o])&&(r=(n?i(t,A,r):i(r))||r);return n&&r&&W2(t,A,r),r};let rt=class{constructor(){this.id="",this.score=0,this.name="",this.namePartial="",this.nameSuffix="",this.description=void 0,this.notes=void 0,this.homepage=void 0,this.license=void 0,this.version="",this.metadata=new Vh,this.highlights=void 0}get highlightedName(){return this.tryGetHighlights(["NamePartial","Name","NameSuffix"],this.name)}get highlightedLicense(){return this.tryGetHighlight("License",this.license)}get highlightedRepository(){return this.tryGetHighlight("Metadata/Repository",this.metadata.repository)}get highlightedDescription(){return this.tryGetHighlight("Description",this.description)}get highlightedVersion(){return this.tryGetHighlight("Version",this.version.length?this.version:"Unknown")}get favicon(){if(this.homepage){const e=document.createElement("a");return e.href=this.homepage,`${e.origin}/favicon.ico`}}tryGetHighlight(e,t){return this.tryGetHighlights([e],t)}tryGetHighlights(e,t){const A=e.find(n=>this.highlights&&this.highlights[n]);return A&&this.highlights?this.highlights[A].join(" "):t}};vt([Ne("Id",String)],rt.prototype,"id",2);vt([Ne("@search.score",Number)],rt.prototype,"score",2);vt([Ne("Name",String)],rt.prototype,"name",2);vt([Ne("NamePartial",String)],rt.prototype,"namePartial",2);vt([Ne("NameSuffix",String)],rt.prototype,"nameSuffix",2);vt([Ne("Description",String,!0)],rt.prototype,"description",2);vt([Ne("Notes",String,!0)],rt.prototype,"notes",2);vt([Ne("Homepage",String,!0)],rt.prototype,"homepage",2);vt([Ne("License",String,!0)],rt.prototype,"license",2);vt([Ne("Version",String,!0)],rt.prototype,"version",2);vt([Ne("Metadata",Vh)],rt.prototype,"metadata",2);vt([Ne("@search.highlights",Wa,!0)],rt.prototype,"highlights",2);rt=vt([Rs("ManifestJson")],rt);const Z2=rt;var eM=Object.defineProperty,tM=Object.getOwnPropertyDescriptor,$g=(e,t,A,n)=>{for(var r=n>1?void 0:n?tM(t,A):t,o=e.length-1,i;o>=0;o--)(i=e[o])&&(r=(n?i(t,A,r):i(r))||r);return n&&r&&eM(t,A,r),r};let tn=class{constructor(){this.count=0,this.results=Array()}static Create(e){return tn.jsonConvert.deserializeObject(e,tn)}};tn.jsonConvert=new vQ;$g([Ne("@odata.count",Number)],tn.prototype,"count",2);$g([Ne("value",[Z2])],tn.prototype,"results",2);tn=$g([Rs("SearchResultsJson")],tn);const AM=tn,_n=[{DisplayName:"Best match",DefaultSortDirection:1,OrderBy:{0:["search.score() asc","Metadata/OfficialRepositoryNumber asc","NameSortable desc"],1:["search.score() desc","Metadata/OfficialRepositoryNumber desc","NameSortable asc"]}},{DisplayName:"Name",DefaultSortDirection:0,OrderBy:{0:["NameSortable asc","Metadata/OfficialRepositoryNumber desc","Metadata/RepositoryStars desc","Metadata/Committed desc"],1:["NameSortable desc","Metadata/OfficialRepositoryNumber asc","Metadata/RepositoryStars asc","Metadata/Committed asc"]}},{DisplayName:"Newest",DefaultSortDirection:1,OrderBy:{0:["Metadata/Committed asc","Metadata/OfficialRepositoryNumber asc","Metadata/RepositoryStars asc"],1:["Metadata/Committed desc","Metadata/OfficialRepositoryNumber desc","Metadata/RepositoryStars desc"]}}],{VITE_APP_AZURESEARCH_URL:bC,VITE_APP_AZURESEARCH_KEY:OC}={VITE_APP_AZURESEARCH_URL:"https://scoopsearch.search.windows.net/indexes/apps/docs",VITE_APP_AZURESEARCH_KEY:"DC6D2BBE65FC7313F2C52BBD2B0286ED",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1},nM=e=>{const[t,A]=C.useState(0),[n,r]=C.useState(!1),o=C.useRef(new AbortController),{query:i,page:a,resultsPerPage:s,sortIndex:l,sortDirection:c,officialOnly:u,onOfficialOnlyChange:g,distinctManifestsOnly:I,onDistinctManifestsOnlyChange:h,installBucketName:y,onInstallBucketName:d,onResultsChange:E,onSortChange:f}=e,B=C.useCallback((G,L)=>{f(G,L)},[f]),p=C.useCallback(G=>{G.currentTarget.blur(),g(!u)},[u,g]),v=C.useCallback(G=>{G.currentTarget.blur(),h(!I)},[I,h]),m=C.useCallback(G=>{G.currentTarget.blur(),d(!y)},[y,d]),w=C.useCallback((G,L)=>{G.currentTarget.blur(),B(L,L===l?(c+1)%2:_n[L].DefaultSortDirection)},[l,c,B]);C.useEffect(()=>(o.current.abort(),o.current=new AbortController,(L=>{if(r(!0),!bC)throw new Error("VITE_APP_AZURESEARCH_URL is not defined");if(!OC)throw new Error("VITE_APP_AZURESEARCH_KEY is not defined");const O=[];u&&O.push("Metadata/OfficialRepositoryNumber eq 1"),I&&O.push("Metadata/DuplicateOf eq null");const U=`${bC}/search?api-version=2020-06-30`;fetch(U,{method:"POST",body:JSON.stringify({count:!0,search:i.trim(),searchMode:"all",filter:O.join(" and "),orderby:_n[l].OrderBy[c].join(", "),skip:(a-1)*s,top:s,select:["Id","Name","NamePartial","NameSuffix","Description","Notes","Homepage","License","Version","Metadata/Repository","Metadata/FilePath","Metadata/OfficialRepository","Metadata/RepositoryStars","Metadata/Committed","Metadata/Sha"].join(","),highlight:["Name","NamePartial","NameSuffix","Description","Version","License","Metadata/Repository"].join(","),highlightPreTag:"",highlightPostTag:""}),headers:{"api-key":OC,"Content-Type":"application/json"},signal:L}).then(F=>{if(!F.ok)throw new Error(`${F.status} ${F.statusText}`);return F.json()}).then(F=>{const N=AM.Create(F);r(!1),A(N.count),E(N)}).catch(F=>{F.name!=="AbortError"&&(r(!1),A(0),E(void 0))})})(o.current.signal),()=>o.current.abort()),[i,a,l,c,u,I,s,E]);const V=G=>{const{currentSortIndex:L,...O}=G;return l===L?c===_n[L].DefaultSortDirection?Q(GC,{...O}):Q(k2,{...O}):Q(GC,{...O,visibility:"hidden"})},D=()=>`${_n[l].DisplayName}, ${u?"Official buckets only":"All buckets"}`;return Q(ct,{children:j(Me,{children:[Q(de,{xs:6,className:"my-auto",children:Q(yQ,{query:i,resultsCount:t,searching:n,type:Ig.Applications})}),Q(de,{xs:6,className:"text-end",children:j(Vt,{autoClose:"outside",align:"end",drop:"end",className:"sorting-filtering-button",children:[j(Vt.Toggle,{size:"sm",variant:"secondary",children:[Q(gS,{className:"me-2"}),Q("span",{className:"d-none d-sm-inline",children:D()})]}),j(Vt.Menu,{className:"sorting-filtering-menu",children:[Q(Vt.Header,{children:"Sorting"}),_n.map((G,L)=>j(Vt.Item,{as:Qn,onClick:O=>w(O,L),children:[Q(V,{currentSortIndex:L,className:"me-2"}),G.DisplayName]},G.DisplayName)),Q(Vt.Divider,{}),Q(Vt.Header,{children:"Filtering"}),Q(Vt.Item,{as:Qn,onClick:G=>p(G),children:j(ct.Switch,{className:"form-switch-sm",children:[Q(ct.Switch.Input,{checked:u}),j(ct.Switch.Label,{children:["Official buckets only ",Q(Cg,{className:"ms-1",official:!0,showTooltip:!1})]})]})}),Q(Vt.Item,{as:Qn,onClick:G=>v(G),children:j(ct.Switch,{className:"form-switch-sm",children:[Q(ct.Switch.Input,{checked:I}),Q(ct.Switch.Label,{children:"Distinct manifests only"})]})}),Q(Vt.Divider,{}),Q(Vt.Header,{children:"Option"}),Q(Vt.Item,{as:Qn,onClick:G=>m(G),children:j(ct.Switch,{className:"form-switch-sm",children:[Q(ct.Switch.Input,{checked:y}),Q(ct.Switch.Label,{children:"Show bucket name"})]})})]})]})})]})})},rM=Z.memo(nM);var Dh={exports:{}};(function(e,t){(function(A,n){e.exports=n()})(Vn,function(){var A=1e3,n=6e4,r=36e5,o="millisecond",i="second",a="minute",s="hour",l="day",c="week",u="month",g="quarter",I="year",h="date",y="Invalid Date",d=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,E=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,f={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(F){var N=["th","st","nd","rd"],S=F%100;return"["+F+(N[(S-20)%10]||N[S]||N[0])+"]"}},B=function(F,N,S){var M=String(F);return!M||M.length>=N?F:""+Array(N+1-M.length).join(S)+F},p={s:B,z:function(F){var N=-F.utcOffset(),S=Math.abs(N),M=Math.floor(S/60),R=S%60;return(N<=0?"+":"-")+B(M,2,"0")+":"+B(R,2,"0")},m:function F(N,S){if(N.date()1)return F(Y[0])}else{var k=N.name;m[k]=N,R=k}return!M&&R&&(v=R),R||!M&&v},G=function(F,N){if(V(F))return F.clone();var S=typeof N=="object"?N:{};return S.date=F,S.args=arguments,new O(S)},L=p;L.l=D,L.i=V,L.w=function(F,N){return G(F,{locale:N.$L,utc:N.$u,x:N.$x,$offset:N.$offset})};var O=function(){function F(S){this.$L=D(S.locale,null,!0),this.parse(S),this.$x=this.$x||S.x||{},this[w]=!0}var N=F.prototype;return N.parse=function(S){this.$d=function(M){var R=M.date,b=M.utc;if(R===null)return new Date(NaN);if(L.u(R))return new Date;if(R instanceof Date)return new Date(R);if(typeof R=="string"&&!/Z$/i.test(R)){var Y=R.match(d);if(Y){var k=Y[2]-1||0,x=(Y[7]||"0").substring(0,3);return b?new Date(Date.UTC(Y[1],k,Y[3]||1,Y[4]||0,Y[5]||0,Y[6]||0,x)):new Date(Y[1],k,Y[3]||1,Y[4]||0,Y[5]||0,Y[6]||0,x)}}return new Date(R)}(S),this.init()},N.init=function(){var S=this.$d;this.$y=S.getFullYear(),this.$M=S.getMonth(),this.$D=S.getDate(),this.$W=S.getDay(),this.$H=S.getHours(),this.$m=S.getMinutes(),this.$s=S.getSeconds(),this.$ms=S.getMilliseconds()},N.$utils=function(){return L},N.isValid=function(){return this.$d.toString()!==y},N.isSame=function(S,M){var R=G(S);return this.startOf(M)<=R&&R<=this.endOf(M)},N.isAfter=function(S,M){return G(S)0,m<=v.r||!v.r){m<=1&&p>0&&(v=f[p-1]);var w=E[v.l];I&&(m=I(""+m)),y=typeof w=="string"?w.replace("%d",m):w(m,c,v.l,d);break}}if(c)return y;var V=d?E.future:E.past;return typeof V=="function"?V(y):V.replace("%s",y)},o.to=function(l,c){return a(l,c,this,!0)},o.from=function(l,c){return a(l,c,this)};var s=function(l){return l.$u?r.utc():r()};o.toNow=function(l){return this.to(s(this),l)},o.fromNow=function(l){return this.from(s(this),l)}}})})(Nh);var sM=Nh.exports;const lM=It(sM);var kh=function(e){var t=e.decode,A=t===void 0?!0:t,n=e.crossOrigin,r=n===void 0?"":n;return function(o){return new Promise(function(i,a){var s=new Image;r&&(s.crossOrigin=r),s.onload=function(){A&&s.decode?s.decode().then(i).catch(a):i()},s.onerror=a,s.src=o})}};function xC(e,t){var A=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),A.push.apply(A,n)}return A}function Zi(e){for(var t=1;t{const[A,n]=C.useState(!1),{onClick:r,...o}=e;C.useEffect(()=>{A&&setTimeout(()=>{n(!1)},pM)},[A]);const i=C.useCallback(a=>{r==null||r.call(void 0,a),n(!0)},[r]);return Q(Qn,{...o,onClick:i,disabled:A,ref:t,children:A?Q(S2,{}):Q(R2,{})})});Rh.displayName="CopyToClipboardButton";const QM=Z.memo(Rh),hM=EM.concat(BM);as.extend(aM);as.extend(lM);const mM=e=>{const{result:t,officialRepositories:A,installBucketName:n,onCopyToClipbard:r,onResultSelected:o,cardRef:i}=e,a=C.useRef(null),[s,l]=C.useState(!1),c=C.useCallback(R=>{r(R)},[r]),u=C.useCallback(()=>{o==null||o.call(void 0,t)},[o,t]),g=R=>R&&Q("span",{dangerouslySetInnerHTML:{__html:R}}),I=R=>{const{value:b,...Y}=R,k=C.useRef(null),x=()=>{var q;(q=k.current)==null||q.click()};return j(Sr,{size:"sm",className:"copy-command-group",...Y,children:[Q(Sr.Text,{className:"border-end-0 copy-command-prefix",children:">"}),Q(ct.Control,{className:"border-start-0 copy-command-text",readOnly:!0,title:"Copy to clipboard",type:"text",value:b,onClick:x}),Q(QM,{className:"copy-command-button",ref:k,title:"Copy to clipboard",variant:"outline-secondary",onClick:()=>c(b)})]})},h=()=>{a.current&&l(a.current.offsetWidth>=a.current.scrollWidth)},{id:y,name:d,favicon:E,highlightedName:f,highlightedDescription:B,notes:p,highlightedLicense:v,highlightedRepository:m,highlightedVersion:w,metadata:V,homepage:D,version:G,license:L}=t,O=(D??"").replace(/^(?:\w+:\/\/)(.+?)\/*$/,"$1"),U=V.repositoryOfficial?m==null?void 0:m.toString().replace(V.repository,A[V.repository]):m==null?void 0:m.toString().replace(/^(|)(?:.*?\/){3}(.+)$/,"$1$2"),F=G.length>0&&/^\d/.test(G)&&"v",N=V.repositoryOfficial?A[V.repository]||V.repository.substring(V.repository.lastIndexOf("/")+1).toLowerCase():`${Eg.extractPathFromUrl(V.repository,"_")}`,S=V.repositoryOfficial?"":`${V.repository}`,M=`${N} ${S}`.trim();return j(ul,{className:"mb-2",ref:i,children:[Q(ul.Header,{children:j(Me,{children:[j(de,{lg:7,className:"valign-items",children:[E&&Q(IM,{className:"me-2",src:E,width:20,height:20}),Q("span",{className:"fw-bold",role:o?"button":void 0,onClick:u,children:g(f)}),Q("span",{className:"me-1 ms-1",children:"in"}),Q("a",{href:V.repository,children:g(U)}),Q(Cg,{className:"ms-1",official:V.repositoryOfficial,stars:V.stars})]}),j(de,{lg:5,className:"text-lg-end text-truncate",children:[Q(sS,{title:"Updated",className:"me-1"}),Q("a",{href:`${V.repository}/commit/${V.sha}`,title:`Diff (${as(V.committed).format("LLL")})`,children:as(V.committed).fromNow()}),Q("span",{className:"ms-1 me-1",children:"|"}),Q(uS,{title:"Version",className:"me-1"}),j("a",{href:`${V.repository}/blob/master/${V.filePath.replace("#","%23")}`,title:"Manifest file",children:[F,g(w)]})]})]})}),Q(ul.Body,{children:Q(Yr,{className:"p-0",children:j(Me,{children:[j(de,{lg:6,children:[Q(Me,{children:B&&g(B)}),j(Me,{className:"mt-2",children:[D&&j("span",{className:"text-truncate",ref:a,children:[Q(cS,{title:"Homepage",className:"me-1"}),Q("a",{href:D,onMouseOver:h,title:s?"":D,children:Q("span",{children:g(O)})})]}),L&&j("span",{children:[Q(lS,{title:"License",className:"me-1"}),L&&hM.includes(L)&&Q("a",{href:`https://spdx.org/licenses/${L}.html`,children:g(v)})||g(v)]}),p&&j("span",{children:[Q(aS,{title:"Notes",className:"me-1"}),p]})]})]}),j(de,{lg:6,className:"mt-4 mt-lg-0",children:[Q(Me,{children:Q(I,{value:`scoop bucket add ${M}`,id:"bucket-command"})}),Q(Me,{className:"mt-2",children:Q(I,{value:`scoop install ${n?N+"/":""}${d}`,id:"app-command"})})]})]})})})]},y)},UC=Z.memo(mM),yM=window.requestIdleCallback||function(t){const A=Date.now();return setTimeout(()=>{t({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-A))}})},1)},TC=20,qC="q",PC="p",HC="s",JC="d",$C="o",KC="dm",jC="n",zC="id",vM=500;function wM(e,t){const[A,n]=C.useState(e);return C.useEffect(()=>{const r=setTimeout(()=>n(e),t||vM);return()=>{clearTimeout(r)}},[e,t]),A}const VM=()=>{const[e,t]=bv(),A=C.useCallback(()=>e.get(qC)??"",[e]),n=C.useCallback(()=>parseInt(e.get(PC)||"1"),[e]),r=C.useCallback((T,$)=>{const te=e.get(T)||localStorage.getItem(T);if(te)switch(typeof $){case"number":return parseInt(te);case"boolean":return te==="true";case"string":return te}return $},[e]),o=C.useCallback(()=>r(HC,0),[r]),i=C.useCallback(T=>r(JC,_n[T].DefaultSortDirection),[r]),a=C.useCallback(()=>r($C,!0),[r]),s=C.useCallback(()=>r(KC,!0),[r]),l=C.useCallback(()=>r(jC,!0),[r]),c=C.useCallback(()=>r(zC,""),[r]),u=C.useCallback((T,$,te)=>{$?(e.set(T,$),te&&localStorage.setItem(T,$)):(e.delete(T),te&&localStorage.removeItem(T)),t(e,{replace:!0})},[e,t]),[g,I]=C.useState(A),[h,y]=C.useState(A),d=wM(h),[E,f]=C.useState(n),[B,p]=C.useState(o),[v,m]=C.useState(i(B)),[w,V]=C.useState(a),[D,G]=C.useState(s()),[L,O]=C.useState(l()),[U,F]=C.useState(),[N,S]=C.useState({}),[M,R]=C.useState(),[b,Y]=C.useState(c),k=C.useRef(null);C.useEffect(()=>{const T=A();I(T),y(T)},[A]),C.useEffect(()=>{f(n())},[n]),o()!==B&&p(o()),i(o())!==v&&p(i(o())),a()!==w&&V(a()),s()!==D&&G(s()),l()!==L&&O(l()),C.useEffect(()=>{var T;if(U!=null&&U.results&&b){const $=U.results.find(te=>te.id===b);$&&(R($),(T=k.current)==null||T.scrollIntoView())}else R(void 0);u(zC,b,!1)},[b,U,u]),C.useEffect(()=>{fetch("https://cdn.jsdelivr.net/gh/ScoopInstaller/Scoop/buckets.json").then(T=>T.json()).then(T=>{const $=T,te={};Object.keys($).forEach(Ce=>{te[$[Ce]]=Ce}),S(te)}).catch(T=>console.log(T))},[]);const x=C.useCallback(T=>{u(qC,T,!1),I(T),f(1)},[u]),q=C.useCallback(()=>{y(g)},[g]),P=C.useRef(-1),z=C.useCallback(T=>{P.current=yM(()=>F(T))},[]);C.useEffect(()=>()=>cancelIdleCallback(P.current),[P]);const ee=C.useCallback(T=>{u(PC,T.toString(),!1),f(T),window.scrollTo(0,0)},[u]),ne=C.useCallback((T,$)=>{u(HC,T.toString(),!0),u(JC,$.toString(),!0),p(T),m($)},[u]),se=C.useCallback(T=>{u($C,T.toString(),!0),V(T)},[u]),ue=C.useCallback(T=>{u(KC,T.toString(),!0),G(T)},[u]),le=C.useCallback(T=>{(async te=>{await navigator.clipboard.writeText(te)})(T).finally(()=>{})},[]),Ie=C.useCallback(T=>{Y(T.id)},[]),ye=C.useCallback(()=>{Y("")},[]),J=C.useCallback(T=>{u(jC,T.toString(),!0),O(T)},[u]);return j(Qt,{children:[Q(ti,{children:j("title",{children:["Apps",h&&` (${h})`]})}),j(Yr,{className:"mt-5 mb-5",children:[Q(Me,{className:"justify-content-center",children:Q(de,{sm:8,children:Q(wh,{query:g,onQueryChange:x,onSubmit:q})})}),Q(Me,{className:"mt-5 mb-1",children:Q(de,{children:Q(rM,{resultsPerPage:TC,page:E,query:d,sortIndex:B,sortDirection:v,officialOnly:w,onOfficialOnlyChange:se,distinctManifestsOnly:D,onDistinctManifestsOnlyChange:ue,onResultsChange:z,onSortChange:ne,installBucketName:L,onInstallBucketName:J})})}),Q(Me,{className:"mt-2",children:Q(de,{children:U==null?void 0:U.results.map(T=>Q(UC,{cardRef:T.id==b?k:void 0,result:T,officialRepositories:N,installBucketName:L,onCopyToClipbard:le,onResultSelected:Ie},T.id))})}),Q(Me,{children:Q(de,{className:"d-flex justify-content-center",children:Q(H2,{resultsPerPage:TC,currentPage:E,resultsCount:(U==null?void 0:U.count)??0,onPageChange:ee})})})]}),Q(jd,{show:M!==void 0,onHide:ye,restoreFocus:!1,size:"xl",centered:!0,className:"modal-selected-result",children:Q(jd.Body,{children:M&&Q(UC,{result:M,officialRepositories:N,installBucketName:L,onCopyToClipbard:le})})})]})},DM=Z.memo(VM),SM=()=>j(Qt,{children:[Q(ti,{defaultTitle:"Scoop",titleTemplate:"Scoop - %s"}),Q(Gv,{children:Q(vv,{children:j(fo,{path:"/",element:Q(q2,{}),children:[Q(fo,{path:"apps",element:Q(DM,{})}),Q(fo,{path:"buckets",element:Q(NS,{})}),Q(fo,{index:!0,element:Q(b2,{})})]})})})]}),NM=e=>{e&&e instanceof Function&&tN(()=>import("./web-vitals-60d3425a.js"),[]).then(({getCLS:t,getFID:A,getFCP:n,getLCP:r,getTTFB:o})=>{t(e),A(e),n(e),r(e),o(e)})};MA.render(Q(Z.StrictMode,{children:Q(SM,{})}),document.getElementById("root"));NM()});export default kM(); +}`})}),Q(de,{lg:6,children:"Scoop manifests are simple JSON files, which can be optionally complemented with inline PowerShell statements."})]}),Q("h3",{className:"mt-5 mb-4 text-center fw-normal",children:"Documentation"}),j("p",{className:"text-center",children:["Looking for something specific, or ready to dive into Scoop internals? Check out"," ",Q("a",{href:"https://github.com/ScoopInstaller/Scoop#readme",children:"Scoop's Readme"})," or refer to the"," ",Q("a",{href:"https://github.com/ScoopInstaller/Scoop/wiki",children:"Wiki"}),"."]})]})})},b2=Z.memo(M2),O2=()=>j(Yr,{className:"footer text-lg-center",children:[Q("hr",{}),j(Me,{className:"mb-3",children:[j(de,{md:4,className:"mb-2",children:[Q(Xd,{className:"footer-icon"})," ",Q("a",{href:"https://github.com/ScoopInstaller",children:"Scoop"})," created by"," ",Q("a",{href:"https://github.com/lukesampson",children:"lukesampson"})]}),j(de,{md:4,className:"mb-2",children:[Q(Xd,{className:"footer-icon"})," ",Q("a",{href:"https://github.com/ScoopInstaller/scoopinstaller.github.io",children:"Website"})," created by"," ",Q("a",{href:"https://github.com/gpailler",children:"gpailler"})," - ","0.2.0","/",Q("a",{href:`https://github.com/ScoopInstaller/scoopinstaller.github.io/commit/963d020 +`,children:`963d020 +`})]}),j(de,{md:4,className:"mb-2",children:[Q(G2,{className:"footer-icon"})," Maintained by the"," ",Q("a",{href:"https://github.com/orgs/ScoopInstaller/people",children:"community"})]})]})]}),x2=Z.memo(O2);function LC(e){return qe({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8 15A7 7 0 1 0 8 1v14zm0 1A8 8 0 1 1 8 0a8 8 0 0 1 0 16z"}}]})(e)}function FC(e){return qe({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M6 .278a.768.768 0 0 1 .08.858 7.208 7.208 0 0 0-.878 3.46c0 4.021 3.278 7.277 7.318 7.277.527 0 1.04-.055 1.533-.16a.787.787 0 0 1 .81.316.733.733 0 0 1-.031.893A8.349 8.349 0 0 1 8.344 16C3.734 16 0 12.286 0 7.71 0 4.266 2.114 1.312 5.124.06A.752.752 0 0 1 6 .278zM4.858 1.311A7.269 7.269 0 0 0 1.025 7.71c0 4.02 3.279 7.276 7.319 7.276a7.316 7.316 0 0 0 5.205-2.162c-.337.042-.68.063-1.029.063-4.61 0-8.343-3.714-8.343-8.29 0-1.167.242-2.278.681-3.286z"}}]})(e)}function MC(e){return qe({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8 11a3 3 0 1 1 0-6 3 3 0 0 1 0 6zm0 1a4 4 0 1 0 0-8 4 4 0 0 0 0 8zM8 0a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 0zm0 13a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 13zm8-5a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2a.5.5 0 0 1 .5.5zM3 8a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2A.5.5 0 0 1 3 8zm10.657-5.657a.5.5 0 0 1 0 .707l-1.414 1.415a.5.5 0 1 1-.707-.708l1.414-1.414a.5.5 0 0 1 .707 0zm-9.193 9.193a.5.5 0 0 1 0 .707L3.05 13.657a.5.5 0 0 1-.707-.707l1.414-1.414a.5.5 0 0 1 .707 0zm9.193 2.121a.5.5 0 0 1-.707 0l-1.414-1.414a.5.5 0 0 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .707zM4.464 4.465a.5.5 0 0 1-.707 0L2.343 3.05a.5.5 0 1 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .708z"}}]})(e)}const Y2=()=>{const{preferedColorScheme:e,browserColorScheme:t,toggleColorScheme:A}=C.useContext(Os);return Q($i,{expand:"sm",bg:"dark",variant:"dark",children:j(Yr,{children:[j($i.Brand,{as:Br,to:"/",children:[Q("img",{alt:"",src:"https://avatars.githubusercontent.com/u/16618068?s=30",width:"30",height:"30",className:"d-inline-block align-top rounded me-2"}),"Scoop"]}),Q($i.Toggle,{"aria-controls":"responsive-navbar-nav"}),j($i.Collapse,{id:"responsive-navbar-nav",children:[j(Er,{className:"me-auto",children:[Q(Er.Link,{as:Br,to:"/apps",children:"Apps"}),Q(Er.Link,{as:Br,to:"/buckets",children:"Buckets"})]}),j(Qn,{onClick:A,size:"sm",variant:"secondary",children:[e==Be.Auto&&(t==Be.Light?Q(LC,{title:"Auto mode. Click to switch to dark mode"}):Q(LC,{title:"Auto mode. Click to switch to light mode"})),e==Be.Light&&(t==Be.Light?Q(MC,{title:"Light mode. Click to switch to OS/browser preferred mode"}):Q(MC,{title:"Light mode. Click to switch to dark mode"})),e==Be.Dark&&(t==Be.Light?Q(FC,{title:"Dark mode. Click to switch to light mode"}):Q(FC,{title:"Dark mode. Click to switch to OS/browser preferred mode"}))]})]})]})})},U2=Z.memo(Y2),T2=e=>{const t="light",A="dark",n="preferred-color-scheme",[r,o]=C.useState(vh),[i,a]=C.useState(),[s,l]=C.useState(),c=C.useCallback(()=>{switch(s){case Be.Auto:l(i===Be.Light?Be.Dark:Be.Light);break;case Be.Light:l(i===Be.Light?Be.Auto:Be.Dark);break;case Be.Dark:l(i===Be.Dark?Be.Auto:Be.Light);break}},[s,i]),u=I=>I===null?Be.Auto:typeof I=="boolean"?I?Be.Dark:Be.Light:parseInt(I),g=I=>{const h=document.getElementsByTagName("html")[0];I===Be.Dark?(h.classList.remove(t),h.classList.add(A)):(h.classList.remove(A),h.classList.add(t))};return C.useLayoutEffect(()=>{if(s===void 0||i===void 0)return;let I;s===Be.Auto?(I=i,localStorage.removeItem(n)):(I=s,localStorage.setItem(n,s.toString())),g(I),o({preferedColorScheme:s,browserColorScheme:i,isDarkMode:I===Be.Dark,toggleColorScheme:c})},[i,s,c]),C.useLayoutEffect(()=>{const I=window.matchMedia("(prefers-color-scheme: dark)");I.addEventListener("change",h=>{a(u(h.matches))}),a(u(I.matches)),l(u(localStorage.getItem(n)))},[]),Q(Os.Provider,{value:r,children:e.children})},q2=()=>Q("div",{children:Q(Dc.Provider,{value:{className:"react-icon"},children:j(T2,{children:[Q(U2,{}),Q(mv,{}),Q(x2,{})]})})}),ao=2,P2=e=>{const{currentPage:t,resultsCount:A,resultsPerPage:n,onPageChange:r}=e,o=i=>{const a=Math.ceil(A/n),s=Math.max(1,Math.min(i,a));r(s)};if(A>0){const i=Math.ceil(A/n);if(t>i&&r(i),i>1){const a=[];let s=Math.max(2,t-ao),l=Math.min(i-1,t+ao);const c=ao*2-(l-s),u=l-(l+c);l=Math.min(i-1,l+c),s=Math.max(2,s+u);for(let g=s;g<=l;g+=1)g===t-ao+u||g===t+ao+c?a.push(Q(gn.Ellipsis,{disabled:!0},g)):a.push(Q(gn.Item,{active:g===t,onClick:()=>o(g),children:g},g));return j(gn,{size:"sm",children:[Q(gn.Prev,{onClick:()=>o(t-1)},"prev"),Q(gn.Item,{active:t===1,onClick:()=>o(1),children:1},1),a,Q(gn.Item,{active:i===t,onClick:()=>o(i),children:i},i),Q(gn.Next,{onClick:()=>o(t+1)},"next")]})}}return Q(Qt,{})},H2=Z.memo(P2);var J2=Object.defineProperty,$2=Object.getOwnPropertyDescriptor,K2=(e,t,A,n)=>{for(var r=n>1?void 0:n?$2(t,A):t,o=e.length-1,i;o>=0;o--)(i=e[o])&&(r=(n?i(t,A,r):i(r))||r);return n&&r&&J2(t,A,r),r};let Uc=class{serialize(e){throw new Error("Conversion not supported")}deserialize(e){return new Date(e)}};Uc=K2([yS],Uc);const j2=Uc;var z2=Object.defineProperty,_2=Object.getOwnPropertyDescriptor,ln=(e,t,A,n)=>{for(var r=n>1?void 0:n?_2(t,A):t,o=e.length-1,i;o>=0;o--)(i=e[o])&&(r=(n?i(t,A,r):i(r))||r);return n&&r&&z2(t,A,r),r};let oA=class{constructor(){this.repository="",this.repositoryOfficial=!1,this.stars=0,this.branchName="",this.filePath="",this.committed=new Date,this.sha=""}};ln([Ne("Repository",String)],oA.prototype,"repository",2);ln([Ne("OfficialRepository",Boolean)],oA.prototype,"repositoryOfficial",2);ln([Ne("RepositoryStars",Number)],oA.prototype,"stars",2);ln([Ne("BranchName",String,!0)],oA.prototype,"branchName",2);ln([Ne("FilePath",String)],oA.prototype,"filePath",2);ln([Ne("Committed",j2)],oA.prototype,"committed",2);ln([Ne("Sha",String)],oA.prototype,"sha",2);oA=ln([Rs("MetadataJson")],oA);const Vh=oA;var W2=Object.defineProperty,X2=Object.getOwnPropertyDescriptor,vt=(e,t,A,n)=>{for(var r=n>1?void 0:n?X2(t,A):t,o=e.length-1,i;o>=0;o--)(i=e[o])&&(r=(n?i(t,A,r):i(r))||r);return n&&r&&W2(t,A,r),r};let rt=class{constructor(){this.id="",this.score=0,this.name="",this.namePartial="",this.nameSuffix="",this.description=void 0,this.notes=void 0,this.homepage=void 0,this.license=void 0,this.version="",this.metadata=new Vh,this.highlights=void 0}get highlightedName(){return this.tryGetHighlights(["NamePartial","Name","NameSuffix"],this.name)}get highlightedLicense(){return this.tryGetHighlight("License",this.license)}get highlightedRepository(){return this.tryGetHighlight("Metadata/Repository",this.metadata.repository)}get highlightedDescription(){return this.tryGetHighlight("Description",this.description)}get highlightedVersion(){return this.tryGetHighlight("Version",this.version.length?this.version:"Unknown")}get favicon(){if(this.homepage){const e=document.createElement("a");return e.href=this.homepage,`${e.origin}/favicon.ico`}}tryGetHighlight(e,t){return this.tryGetHighlights([e],t)}tryGetHighlights(e,t){const A=e.find(n=>this.highlights&&this.highlights[n]);return A&&this.highlights?this.highlights[A].join(" "):t}};vt([Ne("Id",String)],rt.prototype,"id",2);vt([Ne("@search.score",Number)],rt.prototype,"score",2);vt([Ne("Name",String)],rt.prototype,"name",2);vt([Ne("NamePartial",String)],rt.prototype,"namePartial",2);vt([Ne("NameSuffix",String)],rt.prototype,"nameSuffix",2);vt([Ne("Description",String,!0)],rt.prototype,"description",2);vt([Ne("Notes",String,!0)],rt.prototype,"notes",2);vt([Ne("Homepage",String,!0)],rt.prototype,"homepage",2);vt([Ne("License",String,!0)],rt.prototype,"license",2);vt([Ne("Version",String,!0)],rt.prototype,"version",2);vt([Ne("Metadata",Vh)],rt.prototype,"metadata",2);vt([Ne("@search.highlights",Wa,!0)],rt.prototype,"highlights",2);rt=vt([Rs("ManifestJson")],rt);const Z2=rt;var eM=Object.defineProperty,tM=Object.getOwnPropertyDescriptor,$g=(e,t,A,n)=>{for(var r=n>1?void 0:n?tM(t,A):t,o=e.length-1,i;o>=0;o--)(i=e[o])&&(r=(n?i(t,A,r):i(r))||r);return n&&r&&eM(t,A,r),r};let tn=class{constructor(){this.count=0,this.results=Array()}static Create(e){return tn.jsonConvert.deserializeObject(e,tn)}};tn.jsonConvert=new vQ;$g([Ne("@odata.count",Number)],tn.prototype,"count",2);$g([Ne("value",[Z2])],tn.prototype,"results",2);tn=$g([Rs("SearchResultsJson")],tn);const AM=tn,_n=[{DisplayName:"Best match",DefaultSortDirection:1,OrderBy:{0:["search.score() asc","Metadata/OfficialRepositoryNumber asc","NameSortable desc"],1:["search.score() desc","Metadata/OfficialRepositoryNumber desc","NameSortable asc"]}},{DisplayName:"Name",DefaultSortDirection:0,OrderBy:{0:["NameSortable asc","Metadata/OfficialRepositoryNumber desc","Metadata/RepositoryStars desc","Metadata/Committed desc"],1:["NameSortable desc","Metadata/OfficialRepositoryNumber asc","Metadata/RepositoryStars asc","Metadata/Committed asc"]}},{DisplayName:"Newest",DefaultSortDirection:1,OrderBy:{0:["Metadata/Committed asc","Metadata/OfficialRepositoryNumber asc","Metadata/RepositoryStars asc"],1:["Metadata/Committed desc","Metadata/OfficialRepositoryNumber desc","Metadata/RepositoryStars desc"]}}],{VITE_APP_AZURESEARCH_URL:bC,VITE_APP_AZURESEARCH_KEY:OC}={VITE_APP_AZURESEARCH_URL:"https://scoopsearch.search.windows.net/indexes/apps/docs",VITE_APP_AZURESEARCH_KEY:"DC6D2BBE65FC7313F2C52BBD2B0286ED",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1},nM=e=>{const[t,A]=C.useState(0),[n,r]=C.useState(!1),o=C.useRef(new AbortController),{query:i,page:a,resultsPerPage:s,sortIndex:l,sortDirection:c,officialOnly:u,onOfficialOnlyChange:g,distinctManifestsOnly:I,onDistinctManifestsOnlyChange:h,installBucketName:y,onInstallBucketName:d,onResultsChange:E,onSortChange:f}=e,B=C.useCallback((G,L)=>{f(G,L)},[f]),p=C.useCallback(G=>{G.currentTarget.blur(),g(!u)},[u,g]),v=C.useCallback(G=>{G.currentTarget.blur(),h(!I)},[I,h]),m=C.useCallback(G=>{G.currentTarget.blur(),d(!y)},[y,d]),w=C.useCallback((G,L)=>{G.currentTarget.blur(),B(L,L===l?(c+1)%2:_n[L].DefaultSortDirection)},[l,c,B]);C.useEffect(()=>(o.current.abort(),o.current=new AbortController,(L=>{if(r(!0),!bC)throw new Error("VITE_APP_AZURESEARCH_URL is not defined");if(!OC)throw new Error("VITE_APP_AZURESEARCH_KEY is not defined");const O=[];u&&O.push("Metadata/OfficialRepositoryNumber eq 1"),I&&O.push("Metadata/DuplicateOf eq null");const U=`${bC}/search?api-version=2020-06-30`;fetch(U,{method:"POST",body:JSON.stringify({count:!0,search:i.trim(),searchMode:"all",filter:O.join(" and "),orderby:_n[l].OrderBy[c].join(", "),skip:(a-1)*s,top:s,select:["Id","Name","NamePartial","NameSuffix","Description","Notes","Homepage","License","Version","Metadata/Repository","Metadata/FilePath","Metadata/OfficialRepository","Metadata/RepositoryStars","Metadata/Committed","Metadata/Sha"].join(","),highlight:["Name","NamePartial","NameSuffix","Description","Version","License","Metadata/Repository"].join(","),highlightPreTag:"",highlightPostTag:""}),headers:{"api-key":OC,"Content-Type":"application/json"},signal:L}).then(F=>{if(!F.ok)throw new Error(`${F.status} ${F.statusText}`);return F.json()}).then(F=>{const N=AM.Create(F);r(!1),A(N.count),E(N)}).catch(F=>{F.name!=="AbortError"&&(r(!1),A(0),E(void 0))})})(o.current.signal),()=>o.current.abort()),[i,a,l,c,u,I,s,E]);const V=G=>{const{currentSortIndex:L,...O}=G;return l===L?c===_n[L].DefaultSortDirection?Q(GC,{...O}):Q(k2,{...O}):Q(GC,{...O,visibility:"hidden"})},D=()=>`${_n[l].DisplayName}, ${u?"Official buckets only":"All buckets"}`;return Q(ct,{children:j(Me,{children:[Q(de,{xs:8,className:"my-auto",children:Q(yQ,{query:i,resultsCount:t,searching:n,type:Ig.Applications,officialOnly:u})}),Q(de,{xs:4,className:"text-end",children:j(Vt,{autoClose:"outside",align:"end",drop:"end",className:"sorting-filtering-button",children:[j(Vt.Toggle,{size:"sm",variant:"secondary",children:[Q(gS,{className:"me-2"}),Q("span",{className:"d-none d-sm-inline",children:D()})]}),j(Vt.Menu,{className:"sorting-filtering-menu",children:[Q(Vt.Header,{children:"Sorting"}),_n.map((G,L)=>j(Vt.Item,{as:Qn,onClick:O=>w(O,L),children:[Q(V,{currentSortIndex:L,className:"me-2"}),G.DisplayName]},G.DisplayName)),Q(Vt.Divider,{}),Q(Vt.Header,{children:"Filtering"}),Q(Vt.Item,{as:Qn,onClick:G=>p(G),children:j(ct.Switch,{className:"form-switch-sm",children:[Q(ct.Switch.Input,{checked:u}),j(ct.Switch.Label,{children:["Official buckets only ",Q(Cg,{className:"ms-1",official:!0,showTooltip:!1})]})]})}),Q(Vt.Item,{as:Qn,onClick:G=>v(G),children:j(ct.Switch,{className:"form-switch-sm",children:[Q(ct.Switch.Input,{checked:I}),Q(ct.Switch.Label,{children:"Distinct manifests only"})]})}),Q(Vt.Divider,{}),Q(Vt.Header,{children:"Option"}),Q(Vt.Item,{as:Qn,onClick:G=>m(G),children:j(ct.Switch,{className:"form-switch-sm",children:[Q(ct.Switch.Input,{checked:y}),Q(ct.Switch.Label,{children:"Show bucket name"})]})})]})]})})]})})},rM=Z.memo(nM);var Dh={exports:{}};(function(e,t){(function(A,n){e.exports=n()})(Vn,function(){var A=1e3,n=6e4,r=36e5,o="millisecond",i="second",a="minute",s="hour",l="day",c="week",u="month",g="quarter",I="year",h="date",y="Invalid Date",d=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,E=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,f={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(F){var N=["th","st","nd","rd"],S=F%100;return"["+F+(N[(S-20)%10]||N[S]||N[0])+"]"}},B=function(F,N,S){var M=String(F);return!M||M.length>=N?F:""+Array(N+1-M.length).join(S)+F},p={s:B,z:function(F){var N=-F.utcOffset(),S=Math.abs(N),M=Math.floor(S/60),R=S%60;return(N<=0?"+":"-")+B(M,2,"0")+":"+B(R,2,"0")},m:function F(N,S){if(N.date()1)return F(Y[0])}else{var k=N.name;m[k]=N,R=k}return!M&&R&&(v=R),R||!M&&v},G=function(F,N){if(V(F))return F.clone();var S=typeof N=="object"?N:{};return S.date=F,S.args=arguments,new O(S)},L=p;L.l=D,L.i=V,L.w=function(F,N){return G(F,{locale:N.$L,utc:N.$u,x:N.$x,$offset:N.$offset})};var O=function(){function F(S){this.$L=D(S.locale,null,!0),this.parse(S),this.$x=this.$x||S.x||{},this[w]=!0}var N=F.prototype;return N.parse=function(S){this.$d=function(M){var R=M.date,b=M.utc;if(R===null)return new Date(NaN);if(L.u(R))return new Date;if(R instanceof Date)return new Date(R);if(typeof R=="string"&&!/Z$/i.test(R)){var Y=R.match(d);if(Y){var k=Y[2]-1||0,x=(Y[7]||"0").substring(0,3);return b?new Date(Date.UTC(Y[1],k,Y[3]||1,Y[4]||0,Y[5]||0,Y[6]||0,x)):new Date(Y[1],k,Y[3]||1,Y[4]||0,Y[5]||0,Y[6]||0,x)}}return new Date(R)}(S),this.init()},N.init=function(){var S=this.$d;this.$y=S.getFullYear(),this.$M=S.getMonth(),this.$D=S.getDate(),this.$W=S.getDay(),this.$H=S.getHours(),this.$m=S.getMinutes(),this.$s=S.getSeconds(),this.$ms=S.getMilliseconds()},N.$utils=function(){return L},N.isValid=function(){return this.$d.toString()!==y},N.isSame=function(S,M){var R=G(S);return this.startOf(M)<=R&&R<=this.endOf(M)},N.isAfter=function(S,M){return G(S)0,m<=v.r||!v.r){m<=1&&p>0&&(v=f[p-1]);var w=E[v.l];I&&(m=I(""+m)),y=typeof w=="string"?w.replace("%d",m):w(m,c,v.l,d);break}}if(c)return y;var V=d?E.future:E.past;return typeof V=="function"?V(y):V.replace("%s",y)},o.to=function(l,c){return a(l,c,this,!0)},o.from=function(l,c){return a(l,c,this)};var s=function(l){return l.$u?r.utc():r()};o.toNow=function(l){return this.to(s(this),l)},o.fromNow=function(l){return this.from(s(this),l)}}})})(Nh);var sM=Nh.exports;const lM=It(sM);var kh=function(e){var t=e.decode,A=t===void 0?!0:t,n=e.crossOrigin,r=n===void 0?"":n;return function(o){return new Promise(function(i,a){var s=new Image;r&&(s.crossOrigin=r),s.onload=function(){A&&s.decode?s.decode().then(i).catch(a):i()},s.onerror=a,s.src=o})}};function xC(e,t){var A=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),A.push.apply(A,n)}return A}function Zi(e){for(var t=1;t{const[A,n]=C.useState(!1),{onClick:r,...o}=e;C.useEffect(()=>{A&&setTimeout(()=>{n(!1)},pM)},[A]);const i=C.useCallback(a=>{r==null||r.call(void 0,a),n(!0)},[r]);return Q(Qn,{...o,onClick:i,disabled:A,ref:t,children:A?Q(S2,{}):Q(R2,{})})});Rh.displayName="CopyToClipboardButton";const QM=Z.memo(Rh),hM=EM.concat(BM);as.extend(aM);as.extend(lM);const mM=e=>{const{result:t,officialRepositories:A,installBucketName:n,onCopyToClipbard:r,onResultSelected:o,cardRef:i}=e,a=C.useRef(null),[s,l]=C.useState(!1),c=C.useCallback(R=>{r(R)},[r]),u=C.useCallback(()=>{o==null||o.call(void 0,t)},[o,t]),g=R=>R&&Q("span",{dangerouslySetInnerHTML:{__html:R}}),I=R=>{const{value:b,...Y}=R,k=C.useRef(null),x=()=>{var q;(q=k.current)==null||q.click()};return j(Sr,{size:"sm",className:"copy-command-group",...Y,children:[Q(Sr.Text,{className:"border-end-0 copy-command-prefix",children:">"}),Q(ct.Control,{className:"border-start-0 copy-command-text",readOnly:!0,title:"Copy to clipboard",type:"text",value:b,onClick:x}),Q(QM,{className:"copy-command-button",ref:k,title:"Copy to clipboard",variant:"outline-secondary",onClick:()=>c(b)})]})},h=()=>{a.current&&l(a.current.offsetWidth>=a.current.scrollWidth)},{id:y,name:d,favicon:E,highlightedName:f,highlightedDescription:B,notes:p,highlightedLicense:v,highlightedRepository:m,highlightedVersion:w,metadata:V,homepage:D,version:G,license:L}=t,O=(D??"").replace(/^(?:\w+:\/\/)(.+?)\/*$/,"$1"),U=V.repositoryOfficial?m==null?void 0:m.toString().replace(V.repository,A[V.repository]):m==null?void 0:m.toString().replace(/^(|)(?:.*?\/){3}(.+)$/,"$1$2"),F=G.length>0&&/^\d/.test(G)&&"v",N=V.repositoryOfficial?A[V.repository]||V.repository.substring(V.repository.lastIndexOf("/")+1).toLowerCase():`${Eg.extractPathFromUrl(V.repository,"_")}`,S=V.repositoryOfficial?"":`${V.repository}`,M=`${N} ${S}`.trim();return j(ul,{className:"mb-2",ref:i,children:[Q(ul.Header,{children:j(Me,{children:[j(de,{lg:7,className:"valign-items",children:[E&&Q(IM,{className:"me-2",src:E,width:20,height:20}),Q("span",{className:"fw-bold",role:o?"button":void 0,onClick:u,children:g(f)}),Q("span",{className:"me-1 ms-1",children:"in"}),Q("a",{href:V.repository,children:g(U)}),Q(Cg,{className:"ms-1",official:V.repositoryOfficial,stars:V.stars})]}),j(de,{lg:5,className:"text-lg-end text-truncate",children:[Q(sS,{title:"Updated",className:"me-1"}),Q("a",{href:`${V.repository}/commit/${V.sha}`,title:`Diff (${as(V.committed).format("LLL")})`,children:as(V.committed).fromNow()}),Q("span",{className:"ms-1 me-1",children:"|"}),Q(uS,{title:"Version",className:"me-1"}),j("a",{href:`${V.repository}/blob/master/${V.filePath.replace("#","%23")}`,title:"Manifest file",children:[F,g(w)]})]})]})}),Q(ul.Body,{children:Q(Yr,{className:"p-0",children:j(Me,{children:[j(de,{lg:6,children:[Q(Me,{children:B&&g(B)}),j(Me,{className:"mt-2",children:[D&&j("span",{className:"text-truncate",ref:a,children:[Q(cS,{title:"Homepage",className:"me-1"}),Q("a",{href:D,onMouseOver:h,title:s?"":D,children:Q("span",{children:g(O)})})]}),L&&j("span",{children:[Q(lS,{title:"License",className:"me-1"}),L&&hM.includes(L)&&Q("a",{href:`https://spdx.org/licenses/${L}.html`,children:g(v)})||g(v)]}),p&&j("span",{children:[Q(aS,{title:"Notes",className:"me-1"}),p]})]})]}),j(de,{lg:6,className:"mt-4 mt-lg-0",children:[Q(Me,{children:Q(I,{value:`scoop bucket add ${M}`,id:"bucket-command"})}),Q(Me,{className:"mt-2",children:Q(I,{value:`scoop install ${n?N+"/":""}${d}`,id:"app-command"})})]})]})})})]},y)},UC=Z.memo(mM),yM=window.requestIdleCallback||function(t){const A=Date.now();return setTimeout(()=>{t({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-A))}})},1)},TC=20,qC="q",PC="p",HC="s",JC="d",$C="o",KC="dm",jC="n",zC="id",vM=500;function wM(e,t){const[A,n]=C.useState(e);return C.useEffect(()=>{const r=setTimeout(()=>n(e),t||vM);return()=>{clearTimeout(r)}},[e,t]),A}const VM=()=>{const[e,t]=bv(),A=C.useCallback(()=>e.get(qC)??"",[e]),n=C.useCallback(()=>parseInt(e.get(PC)||"1"),[e]),r=C.useCallback((T,$)=>{const te=e.get(T)||localStorage.getItem(T);if(te)switch(typeof $){case"number":return parseInt(te);case"boolean":return te==="true";case"string":return te}return $},[e]),o=C.useCallback(()=>r(HC,0),[r]),i=C.useCallback(T=>r(JC,_n[T].DefaultSortDirection),[r]),a=C.useCallback(()=>r($C,!0),[r]),s=C.useCallback(()=>r(KC,!0),[r]),l=C.useCallback(()=>r(jC,!0),[r]),c=C.useCallback(()=>r(zC,""),[r]),u=C.useCallback((T,$,te)=>{$?(e.set(T,$),te&&localStorage.setItem(T,$)):(e.delete(T),te&&localStorage.removeItem(T)),t(e,{replace:!0})},[e,t]),[g,I]=C.useState(A),[h,y]=C.useState(A),d=wM(h),[E,f]=C.useState(n),[B,p]=C.useState(o),[v,m]=C.useState(i(B)),[w,V]=C.useState(a),[D,G]=C.useState(s()),[L,O]=C.useState(l()),[U,F]=C.useState(),[N,S]=C.useState({}),[M,R]=C.useState(),[b,Y]=C.useState(c),k=C.useRef(null);C.useEffect(()=>{const T=A();I(T),y(T)},[A]),C.useEffect(()=>{f(n())},[n]),o()!==B&&p(o()),i(o())!==v&&p(i(o())),a()!==w&&V(a()),s()!==D&&G(s()),l()!==L&&O(l()),C.useEffect(()=>{var T;if(U!=null&&U.results&&b){const $=U.results.find(te=>te.id===b);$&&(R($),(T=k.current)==null||T.scrollIntoView())}else R(void 0);u(zC,b,!1)},[b,U,u]),C.useEffect(()=>{fetch("https://cdn.jsdelivr.net/gh/ScoopInstaller/Scoop/buckets.json").then(T=>T.json()).then(T=>{const $=T,te={};Object.keys($).forEach(Ce=>{te[$[Ce]]=Ce}),S(te)}).catch(T=>console.log(T))},[]);const x=C.useCallback(T=>{u(qC,T,!1),I(T),f(1)},[u]),q=C.useCallback(()=>{y(g)},[g]),P=C.useRef(-1),z=C.useCallback(T=>{P.current=yM(()=>F(T))},[]);C.useEffect(()=>()=>cancelIdleCallback(P.current),[P]);const ee=C.useCallback(T=>{u(PC,T.toString(),!1),f(T),window.scrollTo(0,0)},[u]),ne=C.useCallback((T,$)=>{u(HC,T.toString(),!0),u(JC,$.toString(),!0),p(T),m($)},[u]),se=C.useCallback(T=>{u($C,T.toString(),!0),V(T)},[u]),ue=C.useCallback(T=>{u(KC,T.toString(),!0),G(T)},[u]),le=C.useCallback(T=>{(async te=>{await navigator.clipboard.writeText(te)})(T).finally(()=>{})},[]),Ie=C.useCallback(T=>{Y(T.id)},[]),ye=C.useCallback(()=>{Y("")},[]),J=C.useCallback(T=>{u(jC,T.toString(),!0),O(T)},[u]);return j(Qt,{children:[Q(ti,{children:j("title",{children:["Apps",h&&` (${h})`]})}),j(Yr,{className:"mt-5 mb-5",children:[Q(Me,{className:"justify-content-center",children:Q(de,{sm:8,children:Q(wh,{query:g,onQueryChange:x,onSubmit:q})})}),Q(Me,{className:"mt-5 mb-1",children:Q(de,{children:Q(rM,{resultsPerPage:TC,page:E,query:d,sortIndex:B,sortDirection:v,officialOnly:w,onOfficialOnlyChange:se,distinctManifestsOnly:D,onDistinctManifestsOnlyChange:ue,onResultsChange:z,onSortChange:ne,installBucketName:L,onInstallBucketName:J})})}),Q(Me,{className:"mt-2",children:Q(de,{children:U==null?void 0:U.results.map(T=>Q(UC,{cardRef:T.id==b?k:void 0,result:T,officialRepositories:N,installBucketName:L,onCopyToClipbard:le,onResultSelected:Ie},T.id))})}),Q(Me,{children:Q(de,{className:"d-flex justify-content-center",children:Q(H2,{resultsPerPage:TC,currentPage:E,resultsCount:(U==null?void 0:U.count)??0,onPageChange:ee})})})]}),Q(jd,{show:M!==void 0,onHide:ye,restoreFocus:!1,size:"xl",centered:!0,className:"modal-selected-result",children:Q(jd.Body,{children:M&&Q(UC,{result:M,officialRepositories:N,installBucketName:L,onCopyToClipbard:le})})})]})},DM=Z.memo(VM),SM=()=>j(Qt,{children:[Q(ti,{defaultTitle:"Scoop",titleTemplate:"Scoop - %s"}),Q(Gv,{children:Q(vv,{children:j(fo,{path:"/",element:Q(q2,{}),children:[Q(fo,{path:"apps",element:Q(DM,{})}),Q(fo,{path:"buckets",element:Q(NS,{})}),Q(fo,{index:!0,element:Q(b2,{})})]})})})]}),NM=e=>{e&&e instanceof Function&&tN(()=>import("./web-vitals-60d3425a.js"),[]).then(({getCLS:t,getFID:A,getFCP:n,getLCP:r,getTTFB:o})=>{t(e),A(e),n(e),r(e),o(e)})};MA.render(Q(Z.StrictMode,{children:Q(SM,{})}),document.getElementById("root"));NM()});export default kM(); diff --git a/index.html b/index.html index e111ae1..99ac86a 100644 --- a/index.html +++ b/index.html @@ -22,7 +22,7 @@ href="https://cdn.jsdelivr.net/npm/bootstrap-dark-5@1.1.3/dist/css/bootstrap-nightshade.min.css" rel="stylesheet" /> - +