@gouvfr-lasuite/ui-kit 0.8.0 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -44,7 +44,7 @@ Check the top-level render call using <`+D+">."),Y}var C=c,P=Symbol.for("react.t
|
|
|
44
44
|
*
|
|
45
45
|
* This source code is licensed under the MIT license found in the
|
|
46
46
|
* LICENSE file in the root directory of this source tree.
|
|
47
|
-
*/var Aa;function Ip(){return Aa||(Aa=1,process.env.NODE_ENV!=="production"&&function(){function t(g,y){return g===y&&(g!==0||1/g===1/y)||g!==g&&y!==y}function e(g,y){d||i.startTransition===void 0||(d=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var h=y();if(!f){var v=y();o(h,v)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}v=l({inst:{value:h,getSnapshot:y}});var m=v[0].inst,S=v[1];return s(function(){m.value=h,m.getSnapshot=y,n(m)&&S({inst:m})},[g,h,y]),a(function(){return n(m)&&S({inst:m}),g(function(){n(m)&&S({inst:m})})},[g]),u(h),h}function n(g){var y=g.getSnapshot;g=g.value;try{var h=y();return!o(g,h)}catch{return!0}}function r(g,y){return y()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=c,o=typeof Object.is=="function"?Object.is:t,l=i.useState,a=i.useEffect,s=i.useLayoutEffect,u=i.useDebugValue,d=!1,f=!1,p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:e;Qi.useSyncExternalStore=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:p,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Qi}var Ka;function Op(){return Ka||(Ka=1,process.env.NODE_ENV==="production"?Sr.exports=_p():Sr.exports=Ip()),Sr.exports}var jl=Op();const xc=c.createContext(!1),lr=c.createContext(null);function Ei(t){if(c.useContext(lr))return t.content;let{collection:n,document:r}=Mp(t.createCollection);return c.createElement(c.Fragment,null,c.createElement(hp,null,c.createElement(lr.Provider,{value:r},t.content)),c.createElement(kp,{render:t.children,collection:n}))}function kp({collection:t,render:e}){return e(t)}function Np(t,e,n){let r=Fl(),i=c.useRef(r);i.current=r;let o=c.useCallback(()=>i.current?n():e(),[e,n]);return jl.useSyncExternalStore(t,o)}const Rp=typeof c.useSyncExternalStore=="function"?c.useSyncExternalStore:Np;function Mp(t){let[e]=c.useState(()=>new fp((t==null?void 0:t())||new Al)),n=c.useCallback(l=>e.subscribe(l),[e]),r=c.useCallback(()=>{let l=e.getCollection();return e.isSSR&&e.resetAfterSSR(),l},[e]),i=c.useCallback(()=>(e.isSSR=!0,e.getCollection()),[e]),o=Rp(n,r,i);return gp(()=>(e.isMounted=!0,()=>{e.isMounted=!1}),[e]),{collection:o,document:e}}const Uo=c.createContext(null);function Lp(t,e,n,r,i,o){let l=c.useCallback(s=>{s==null||s.setProps(e,n,r,o)},[e,n,r,o]),a=c.useContext(Uo);if(a){let s=a.ownerDocument.nodesByProps.get(e);return s||(s=a.ownerDocument.createElement(t),s.setProps(e,n,r,o),a.appendChild(s),a.ownerDocument.updateCollection(),a.ownerDocument.nodesByProps.set(e,s)),i?c.createElement(Uo.Provider,{value:s},i):null}return c.createElement(t,{ref:l},i)}function $i(t,e){let n=({node:i})=>e(i.props,i.props.ref,i),r=c.forwardRef((i,o)=>{let l=c.useContext(Ma);if(!c.useContext(xc)){if(e.length>=3)throw new Error(e.name+" cannot be rendered outside a collection.");return e(i,o)}return Lp(t,i,o,"children"in i?i.children:null,null,s=>c.createElement(Ma.Provider,{value:l},c.createElement(n,{node:s})))});return r.displayName=e.name,r}function Ap(t){return Sc({...t,addIdAndValue:!0})}const Fa=c.createContext(null);function Hl(t){let e=c.useContext(Fa),n=((e==null?void 0:e.dependencies)||[]).concat(t.dependencies),r=t.idScope||(e==null?void 0:e.idScope),i=Ap({...t,idScope:r,dependencies:n});return c.useContext(lr)&&(i=c.createElement(Kp,null,i)),e=c.useMemo(()=>({dependencies:n,idScope:r}),[r,...n]),c.createElement(Fa.Provider,{value:e},i)}function Kp({children:t}){let e=c.useContext(lr),n=c.useMemo(()=>c.createElement(lr.Provider,{value:null},c.createElement(xc.Provider,{value:!0},t)),[t]);return Fl()?c.createElement(Uo.Provider,{value:e},n):Wt.createPortal(n,e)}function zl(t){let e=t;return e.nativeEvent=t,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function Ec(t,e){Object.defineProperty(t,"target",{value:e}),Object.defineProperty(t,"currentTarget",{value:e})}function $c(t){let e=c.useRef({isFocused:!1,observer:null});ue(()=>{const r=e.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=be(r=>{t==null||t(r)});return c.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){e.current.isFocused=!0;let i=r.target,o=l=>{if(e.current.isFocused=!1,i.disabled){let a=zl(l);n(a)}e.current.observer&&(e.current.observer.disconnect(),e.current.observer=null)};i.addEventListener("focusout",o,{once:!0}),e.current.observer=new MutationObserver(()=>{if(e.current.isFocused&&i.disabled){var l;(l=e.current.observer)===null||l===void 0||l.disconnect();let a=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),e.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let ei=!1;function ja(t){for(;t&&!yc(t);)t=t.parentElement;let e=Re(t),n=e.document.activeElement;if(!n||n===t)return;ei=!0;let r=!1,i=d=>{(d.target===n||r)&&d.stopImmediatePropagation()},o=d=>{(d.target===n||r)&&(d.stopImmediatePropagation(),!t&&!r&&(r=!0,Ze(n),s()))},l=d=>{(d.target===t||r)&&d.stopImmediatePropagation()},a=d=>{(d.target===t||r)&&(d.stopImmediatePropagation(),r||(r=!0,Ze(n),s()))};e.addEventListener("blur",i,!0),e.addEventListener("focusout",o,!0),e.addEventListener("focusin",a,!0),e.addEventListener("focus",l,!0);let s=()=>{cancelAnimationFrame(u),e.removeEventListener("blur",i,!0),e.removeEventListener("focusout",o,!0),e.removeEventListener("focusin",a,!0),e.removeEventListener("focus",l,!0),ei=!1,r=!1},u=requestAnimationFrame(s);return s}let mn="default",Wo="",Ar=new WeakMap;function Ha(t){if(bi()){if(mn==="default"){const e=ce(t);Wo=e.documentElement.style.webkitUserSelect,e.documentElement.style.webkitUserSelect="none"}mn="disabled"}else if(t instanceof HTMLElement||t instanceof SVGElement){let e="userSelect"in t.style?"userSelect":"webkitUserSelect";Ar.set(t,t.style[e]),t.style[e]="none"}}function eo(t){if(bi()){if(mn!=="disabled")return;mn="restoring",setTimeout(()=>{hc(()=>{if(mn==="restoring"){const e=ce(t);e.documentElement.style.webkitUserSelect==="none"&&(e.documentElement.style.webkitUserSelect=Wo||""),Wo="",mn="default"}})},300)}else if((t instanceof HTMLElement||t instanceof SVGElement)&&t&&Ar.has(t)){let e=Ar.get(t),n="userSelect"in t.style?"userSelect":"webkitUserSelect";t.style[n]==="none"&&(t.style[n]=e),t.getAttribute("style")===""&&t.removeAttribute("style"),Ar.delete(t)}}const Vl=c.createContext({register:()=>{}});Vl.displayName="PressResponderContext";function Fp(t){let e=c.useContext(Vl);if(e){let{register:n,...r}=e;t=le(r,t),n()}return pc(e,t.ref),t}var Cr=new WeakMap;class wr{continuePropagation(){Ra(this,Cr,!1)}get shouldStopPropagation(){return $p(this,Cr)}constructor(e,n,r,i){Dp(this,Cr,{writable:!0,value:void 0}),Ra(this,Cr,!0);var o;let l=(o=i==null?void 0:i.target)!==null&&o!==void 0?o:r.currentTarget;const a=l==null?void 0:l.getBoundingClientRect();let s,u=0,d,f=null;r.clientX!=null&&r.clientY!=null&&(d=r.clientX,f=r.clientY),a&&(d!=null&&f!=null?(s=d-a.left,u=f-a.top):(s=a.width/2,u=a.height/2)),this.type=e,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=s,this.y=u}}const za=Symbol("linkClicked");function Pi(t){let{onPress:e,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:o,onClick:l,isDisabled:a,isPressed:s,preventFocusOnPress:u,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:f,ref:p,...g}=Fp(t),[y,h]=c.useState(!1),v=c.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:m,removeAllGlobalListeners:S}=Ci(),C=be((w,M)=>{let B=v.current;if(a||B.didFirePressStart)return!1;let R=!0;if(B.isTriggeringEvent=!0,r){let U=new wr("pressstart",M,w);r(U),R=U.shouldStopPropagation}return n&&n(!0),B.isTriggeringEvent=!1,B.didFirePressStart=!0,h(!0),R}),P=be((w,M,B=!0)=>{let R=v.current;if(!R.didFirePressStart)return!1;R.didFirePressStart=!1,R.isTriggeringEvent=!0;let U=!0;if(i){let x=new wr("pressend",M,w);i(x),U=x.shouldStopPropagation}if(n&&n(!1),h(!1),e&&B&&!a){let x=new wr("press",M,w);e(x),U&&(U=x.shouldStopPropagation)}return R.isTriggeringEvent=!1,U}),$=be((w,M)=>{let B=v.current;if(a)return!1;if(o){B.isTriggeringEvent=!0;let R=new wr("pressup",M,w);return o(R),B.isTriggeringEvent=!1,R.shouldStopPropagation}return!0}),E=be(w=>{let M=v.current;if(M.isPressed&&M.target){M.didFirePressStart&&M.pointerType!=null&&P(Qt(M.target,w),M.pointerType,!1),M.isPressed=!1,M.isOverTarget=!1,M.activePointerId=null,M.pointerType=null,S(),f||eo(M.target);for(let B of M.disposables)B();M.disposables=[]}}),T=be(w=>{d&&E(w)}),L=be(w=>{l==null||l(w)}),z=be((w,M)=>{if(l){let B=new MouseEvent("click",w);Ec(B,M),l(zl(B))}}),A=c.useMemo(()=>{let w=v.current,M={onKeyDown(R){if(to(R.nativeEvent,R.currentTarget)&&he(R.currentTarget,se(R.nativeEvent))){var U;Ua(se(R.nativeEvent),R.key)&&R.preventDefault();let x=!0;if(!w.isPressed&&!R.repeat){w.target=R.currentTarget,w.isPressed=!0,w.pointerType="keyboard",x=C(R,"keyboard");let N=R.currentTarget,I=G=>{to(G,N)&&!G.repeat&&he(N,se(G))&&w.target&&$(Qt(w.target,G),"keyboard")};m(ce(R.currentTarget),"keyup",At(I,B),!0)}x&&R.stopPropagation(),R.metaKey&&Et()&&((U=w.metaKeyEvents)===null||U===void 0||U.set(R.key,R.nativeEvent))}else R.key==="Meta"&&(w.metaKeyEvents=new Map)},onClick(R){if(!(R&&!he(R.currentTarget,se(R.nativeEvent)))&&R&&R.button===0&&!w.isTriggeringEvent&&!Kt.isOpening){let U=!0;if(a&&R.preventDefault(),!w.ignoreEmulatedMouseEvents&&!w.isPressed&&(w.pointerType==="virtual"||Vo(R.nativeEvent))){let x=C(R,"virtual"),N=$(R,"virtual"),I=P(R,"virtual");L(R),U=x&&N&&I}else if(w.isPressed&&w.pointerType!=="keyboard"){let x=w.pointerType||R.nativeEvent.pointerType||"virtual";U=P(Qt(R.currentTarget,R),x,!0),w.isOverTarget=!1,L(R),E(R)}w.ignoreEmulatedMouseEvents=!1,U&&R.stopPropagation()}}},B=R=>{var U;if(w.isPressed&&w.target&&to(R,w.target)){var x;Ua(se(R),R.key)&&R.preventDefault();let I=se(R),G=he(w.target,se(R));P(Qt(w.target,R),"keyboard",G),G&&z(R,w.target),S(),R.key!=="Enter"&&Bl(w.target)&&he(w.target,I)&&!R[za]&&(R[za]=!0,Kt(w.target,R,!1)),w.isPressed=!1,(x=w.metaKeyEvents)===null||x===void 0||x.delete(R.key)}else if(R.key==="Meta"&&(!((U=w.metaKeyEvents)===null||U===void 0)&&U.size)){var N;let I=w.metaKeyEvents;w.metaKeyEvents=void 0;for(let G of I.values())(N=w.target)===null||N===void 0||N.dispatchEvent(new KeyboardEvent("keyup",G))}};if(typeof PointerEvent<"u"){M.onPointerDown=x=>{if(x.button!==0||!he(x.currentTarget,se(x.nativeEvent)))return;if(ep(x.nativeEvent)){w.pointerType="virtual";return}w.pointerType=x.pointerType;let N=!0;if(!w.isPressed){w.isPressed=!0,w.isOverTarget=!0,w.activePointerId=x.pointerId,w.target=x.currentTarget,f||Ha(w.target),N=C(x,w.pointerType);let I=se(x.nativeEvent);"releasePointerCapture"in I&&I.releasePointerCapture(x.pointerId),m(ce(x.currentTarget),"pointerup",R,!1),m(ce(x.currentTarget),"pointercancel",U,!1)}N&&x.stopPropagation()},M.onMouseDown=x=>{if(he(x.currentTarget,se(x.nativeEvent))&&x.button===0){if(u){let N=ja(x.target);N&&w.disposables.push(N)}x.stopPropagation()}},M.onPointerUp=x=>{!he(x.currentTarget,se(x.nativeEvent))||w.pointerType==="virtual"||x.button===0&&$(x,w.pointerType||x.pointerType)},M.onPointerEnter=x=>{x.pointerId===w.activePointerId&&w.target&&!w.isOverTarget&&w.pointerType!=null&&(w.isOverTarget=!0,C(Qt(w.target,x),w.pointerType))},M.onPointerLeave=x=>{x.pointerId===w.activePointerId&&w.target&&w.isOverTarget&&w.pointerType!=null&&(w.isOverTarget=!1,P(Qt(w.target,x),w.pointerType,!1),T(x))};let R=x=>{if(x.pointerId===w.activePointerId&&w.isPressed&&x.button===0&&w.target){if(he(w.target,se(x))&&w.pointerType!=null){let N=!1,I=setTimeout(()=>{w.isPressed&&w.target instanceof HTMLElement&&(N?E(x):(Ze(w.target),w.target.click()))},80);m(x.currentTarget,"click",()=>N=!0,!0),w.disposables.push(()=>clearTimeout(I))}else E(x);w.isOverTarget=!1}},U=x=>{E(x)};M.onDragStart=x=>{he(x.currentTarget,se(x.nativeEvent))&&E(x)}}else if(process.env.NODE_ENV==="test"){M.onMouseDown=x=>{if(x.button!==0||!he(x.currentTarget,se(x.nativeEvent)))return;if(w.ignoreEmulatedMouseEvents){x.stopPropagation();return}if(w.isPressed=!0,w.isOverTarget=!0,w.target=x.currentTarget,w.pointerType=Vo(x.nativeEvent)?"virtual":"mouse",Wt.flushSync(()=>C(x,w.pointerType))&&x.stopPropagation(),u){let I=ja(x.target);I&&w.disposables.push(I)}m(ce(x.currentTarget),"mouseup",R,!1)},M.onMouseEnter=x=>{if(!he(x.currentTarget,se(x.nativeEvent)))return;let N=!0;w.isPressed&&!w.ignoreEmulatedMouseEvents&&w.pointerType!=null&&(w.isOverTarget=!0,N=C(x,w.pointerType)),N&&x.stopPropagation()},M.onMouseLeave=x=>{if(!he(x.currentTarget,se(x.nativeEvent)))return;let N=!0;w.isPressed&&!w.ignoreEmulatedMouseEvents&&w.pointerType!=null&&(w.isOverTarget=!1,N=P(x,w.pointerType,!1),T(x)),N&&x.stopPropagation()},M.onMouseUp=x=>{he(x.currentTarget,se(x.nativeEvent))&&!w.ignoreEmulatedMouseEvents&&x.button===0&&$(x,w.pointerType||"mouse")};let R=x=>{if(x.button===0){if(w.ignoreEmulatedMouseEvents){w.ignoreEmulatedMouseEvents=!1;return}w.target&&w.target.contains(x.target)&&w.pointerType!=null||E(x),w.isOverTarget=!1}};M.onTouchStart=x=>{if(!he(x.currentTarget,se(x.nativeEvent)))return;let N=jp(x.nativeEvent);if(!N)return;w.activePointerId=N.identifier,w.ignoreEmulatedMouseEvents=!0,w.isOverTarget=!0,w.isPressed=!0,w.target=x.currentTarget,w.pointerType="touch",f||Ha(w.target),C(mt(w.target,x),w.pointerType)&&x.stopPropagation(),m(Re(x.currentTarget),"scroll",U,!0)},M.onTouchMove=x=>{if(!he(x.currentTarget,se(x.nativeEvent)))return;if(!w.isPressed){x.stopPropagation();return}let N=Va(x.nativeEvent,w.activePointerId),I=!0;N&&Ba(N,x.currentTarget)?!w.isOverTarget&&w.pointerType!=null&&(w.isOverTarget=!0,I=C(mt(w.target,x),w.pointerType)):w.isOverTarget&&w.pointerType!=null&&(w.isOverTarget=!1,I=P(mt(w.target,x),w.pointerType,!1),T(mt(w.target,x))),I&&x.stopPropagation()},M.onTouchEnd=x=>{if(!he(x.currentTarget,se(x.nativeEvent)))return;if(!w.isPressed){x.stopPropagation();return}let N=Va(x.nativeEvent,w.activePointerId),I=!0;N&&Ba(N,x.currentTarget)&&w.pointerType!=null?($(mt(w.target,x),w.pointerType),I=P(mt(w.target,x),w.pointerType),z(x.nativeEvent,w.target)):w.isOverTarget&&w.pointerType!=null&&(I=P(mt(w.target,x),w.pointerType,!1)),I&&x.stopPropagation(),w.isPressed=!1,w.activePointerId=null,w.isOverTarget=!1,w.ignoreEmulatedMouseEvents=!0,w.target&&!f&&eo(w.target),S()},M.onTouchCancel=x=>{he(x.currentTarget,se(x.nativeEvent))&&(x.stopPropagation(),w.isPressed&&E(mt(w.target,x)))};let U=x=>{w.isPressed&&he(se(x),w.target)&&E({currentTarget:w.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};M.onDragStart=x=>{he(x.currentTarget,se(x.nativeEvent))&&E(x)}}return M},[m,a,u,S,f,E,T,P,C,$,L,z]);return c.useEffect(()=>{let w=p==null?void 0:p.current;w&&w instanceof Re(w).Element&&Re(w).getComputedStyle(w).touchAction==="auto"&&(w.style.touchAction="pan-x pan-y pinch-zoom")},[p]),c.useEffect(()=>{let w=v.current;return()=>{var M;f||eo((M=w.target)!==null&&M!==void 0?M:void 0);for(let B of w.disposables)B();w.disposables=[]}},[f]),{isPressed:s||y,pressProps:le(g,A)}}function Bl(t){return t.tagName==="A"&&t.hasAttribute("href")}function to(t,e){const{key:n,code:r}=t,i=e,o=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof Re(i).HTMLInputElement&&!Pc(i,n)||i instanceof Re(i).HTMLTextAreaElement||i.isContentEditable)&&!((o==="link"||!o&&Bl(i))&&n!=="Enter")}function jp(t){const{targetTouches:e}=t;return e.length>0?e[0]:null}function Va(t,e){const n=t.changedTouches;for(let r=0;r<n.length;r++){const i=n[r];if(i.identifier===e)return i}return null}function mt(t,e){let n=0,r=0;return e.targetTouches&&e.targetTouches.length===1&&(n=e.targetTouches[0].clientX,r=e.targetTouches[0].clientY),{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,clientX:n,clientY:r}}function Qt(t,e){let n=e.clientX,r=e.clientY;return{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,clientX:n,clientY:r}}function Hp(t){let e=0,n=0;return t.width!==void 0?e=t.width/2:t.radiusX!==void 0&&(e=t.radiusX),t.height!==void 0?n=t.height/2:t.radiusY!==void 0&&(n=t.radiusY),{top:t.clientY-n,right:t.clientX+e,bottom:t.clientY+n,left:t.clientX-e}}function zp(t,e){return!(t.left>e.right||e.left>t.right||t.top>e.bottom||e.top>t.bottom)}function Ba(t,e){let n=e.getBoundingClientRect(),r=Hp(t);return zp(n,r)}function Vp(t){return t instanceof HTMLInputElement?!1:t instanceof HTMLButtonElement?t.type!=="submit"&&t.type!=="reset":!Bl(t)}function Ua(t,e){return t instanceof HTMLInputElement?!Pc(t,e):Vp(t)}const Bp=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Pc(t,e){return t.type==="checkbox"||t.type==="radio"?e===" ":Bp.has(t.type)}let Gt=null,Go=new Set,nr=new Map,Ft=!1,qo=!1;const Up={Tab:!0,Escape:!0};function Di(t,e){for(let n of Go)n(t,e)}function Wp(t){return!(t.metaKey||!Et()&&t.altKey||t.ctrlKey||t.key==="Control"||t.key==="Shift"||t.key==="Meta")}function ti(t){Ft=!0,Wp(t)&&(Gt="keyboard",Di("keyboard",t))}function He(t){Gt="pointer",(t.type==="mousedown"||t.type==="pointerdown")&&(Ft=!0,Di("pointer",t))}function Dc(t){Vo(t)&&(Ft=!0,Gt="virtual")}function Tc(t){t.target===window||t.target===document||ei||!t.isTrusted||(!Ft&&!qo&&(Gt="virtual",Di("virtual",t)),Ft=!1,qo=!1)}function _c(){ei||(Ft=!1,qo=!0)}function Yo(t){if(typeof window>"u"||nr.get(Re(t)))return;const e=Re(t),n=ce(t);let r=e.HTMLElement.prototype.focus;e.HTMLElement.prototype.focus=function(){Ft=!0,r.apply(this,arguments)},n.addEventListener("keydown",ti,!0),n.addEventListener("keyup",ti,!0),n.addEventListener("click",Dc,!0),e.addEventListener("focus",Tc,!0),e.addEventListener("blur",_c,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",He,!0),n.addEventListener("pointermove",He,!0),n.addEventListener("pointerup",He,!0)):process.env.NODE_ENV==="test"&&(n.addEventListener("mousedown",He,!0),n.addEventListener("mousemove",He,!0),n.addEventListener("mouseup",He,!0)),e.addEventListener("beforeunload",()=>{Ic(t)},{once:!0}),nr.set(e,{focus:r})}const Ic=(t,e)=>{const n=Re(t),r=ce(t);e&&r.removeEventListener("DOMContentLoaded",e),nr.has(n)&&(n.HTMLElement.prototype.focus=nr.get(n).focus,r.removeEventListener("keydown",ti,!0),r.removeEventListener("keyup",ti,!0),r.removeEventListener("click",Dc,!0),n.removeEventListener("focus",Tc,!0),n.removeEventListener("blur",_c,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",He,!0),r.removeEventListener("pointermove",He,!0),r.removeEventListener("pointerup",He,!0)):process.env.NODE_ENV==="test"&&(r.removeEventListener("mousedown",He,!0),r.removeEventListener("mousemove",He,!0),r.removeEventListener("mouseup",He,!0)),nr.delete(n))};function Gp(t){const e=ce(t);let n;return e.readyState!=="loading"?Yo(t):(n=()=>{Yo(t)},e.addEventListener("DOMContentLoaded",n)),()=>Ic(t,n)}typeof document<"u"&&Gp();function Tn(){return Gt!=="pointer"}function ni(){return Gt}function Oc(t){Gt=t,Di(t,null)}const qp=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Yp(t,e,n){let r=ce(n==null?void 0:n.target);const i=typeof window<"u"?Re(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,o=typeof window<"u"?Re(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,l=typeof window<"u"?Re(n==null?void 0:n.target).HTMLElement:HTMLElement,a=typeof window<"u"?Re(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return t=t||r.activeElement instanceof i&&!qp.has(r.activeElement.type)||r.activeElement instanceof o||r.activeElement instanceof l&&r.activeElement.isContentEditable,!(t&&e==="keyboard"&&n instanceof a&&!Up[n.key])}function Zp(t,e,n){Yo(),c.useEffect(()=>{let r=(i,o)=>{Yp(!!(n!=null&&n.isTextInput),i,o)&&t(Tn())};return Go.add(r),()=>{Go.delete(r)}},e)}function _n(t){const e=ce(t),n=_e(e);if(ni()==="virtual"){let r=n;hc(()=>{_e(e)===r&&t.isConnected&&Ze(t)})}else Ze(t)}function Ul(t){let{isDisabled:e,onFocus:n,onBlur:r,onFocusChange:i}=t;const o=c.useCallback(s=>{if(s.target===s.currentTarget)return r&&r(s),i&&i(!1),!0},[r,i]),l=$c(o),a=c.useCallback(s=>{const u=ce(s.target),d=u?_e(u):_e();s.target===s.currentTarget&&d===se(s.nativeEvent)&&(n&&n(s),i&&i(!0),l(s))},[i,n,l]);return{focusProps:{onFocus:!e&&(n||i||r)?a:void 0,onBlur:!e&&(r||i)?o:void 0}}}function Wa(t){if(!t)return;let e=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){e&&process.env.NODE_ENV!=="production"?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):e=!0},continuePropagation(){e=!1},isPropagationStopped(){return e}};t(r),e&&n.stopPropagation()}}function kc(t){return{keyboardProps:t.isDisabled?{}:{onKeyDown:Wa(t.onKeyDown),onKeyUp:Wa(t.onKeyUp)}}}let Xp=c.createContext(null);function Jp(t){let e=c.useContext(Xp)||{};pc(e,t);let{ref:n,...r}=e;return r}function Nc(t,e){let{focusProps:n}=Ul(t),{keyboardProps:r}=kc(t),i=le(n,r),o=Jp(e),l=t.isDisabled?{}:o,a=c.useRef(t.autoFocus);c.useEffect(()=>{a.current&&e.current&&_n(e.current),a.current=!1},[e]);let s=t.excludeFromTabOrder?-1:0;return t.isDisabled&&(s=void 0),{focusableProps:le({...i,tabIndex:s},l)}}function Qp({children:t}){let e=c.useMemo(()=>({register:()=>{}}),[]);return c.createElement(Vl.Provider,{value:e},t)}function Ti(t){let{isDisabled:e,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=t,o=c.useRef({isFocusWithin:!1}),{addGlobalListener:l,removeAllGlobalListeners:a}=Ci(),s=c.useCallback(f=>{f.currentTarget.contains(f.target)&&o.current.isFocusWithin&&!f.currentTarget.contains(f.relatedTarget)&&(o.current.isFocusWithin=!1,a(),n&&n(f),i&&i(!1))},[n,i,o,a]),u=$c(s),d=c.useCallback(f=>{if(!f.currentTarget.contains(f.target))return;const p=ce(f.target),g=_e(p);if(!o.current.isFocusWithin&&g===se(f.nativeEvent)){r&&r(f),i&&i(!0),o.current.isFocusWithin=!0,u(f);let y=f.currentTarget;l(p,"focus",h=>{if(o.current.isFocusWithin&&!he(y,h.target)){let v=new p.defaultView.FocusEvent("blur",{relatedTarget:h.target});Ec(v,y);let m=zl(v);s(m)}},{capture:!0})}},[r,i,u,l,s]);return e?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:d,onBlur:s}}}let ri=!1,no=0;function Zo(){ri=!0,setTimeout(()=>{ri=!1},50)}function Ga(t){t.pointerType==="touch"&&Zo()}function eg(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",Ga):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",Zo),no++,()=>{no--,!(no>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Ga):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",Zo))}}function Mn(t){let{onHoverStart:e,onHoverChange:n,onHoverEnd:r,isDisabled:i}=t,[o,l]=c.useState(!1),a=c.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;c.useEffect(eg,[]);let{addGlobalListener:s,removeAllGlobalListeners:u}=Ci(),{hoverProps:d,triggerHoverEnd:f}=c.useMemo(()=>{let p=(h,v)=>{if(a.pointerType=v,i||v==="touch"||a.isHovered||!h.currentTarget.contains(h.target))return;a.isHovered=!0;let m=h.currentTarget;a.target=m,s(ce(h.target),"pointerover",S=>{a.isHovered&&a.target&&!he(a.target,S.target)&&g(S,S.pointerType)},{capture:!0}),e&&e({type:"hoverstart",target:m,pointerType:v}),n&&n(!0),l(!0)},g=(h,v)=>{let m=a.target;a.pointerType="",a.target=null,!(v==="touch"||!a.isHovered||!m)&&(a.isHovered=!1,u(),r&&r({type:"hoverend",target:m,pointerType:v}),n&&n(!1),l(!1))},y={};return typeof PointerEvent<"u"?(y.onPointerEnter=h=>{ri&&h.pointerType==="mouse"||p(h,h.pointerType)},y.onPointerLeave=h=>{!i&&h.currentTarget.contains(h.target)&&g(h,h.pointerType)}):process.env.NODE_ENV==="test"&&(y.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},y.onMouseEnter=h=>{!a.ignoreEmulatedMouseEvents&&!ri&&p(h,"mouse"),a.ignoreEmulatedMouseEvents=!1},y.onMouseLeave=h=>{!i&&h.currentTarget.contains(h.target)&&g(h,"mouse")}),{hoverProps:y,triggerHoverEnd:g}},[e,n,r,i,a,s,u]);return c.useEffect(()=>{i&&f({currentTarget:a.target},a.pointerType)},[i]),{hoverProps:d,isHovered:o}}function tg(t){let{ref:e,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=t,o=c.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),l=be(s=>{n&&xr(s,e)&&(i&&i(s),o.current.isPointerDown=!0)}),a=be(s=>{n&&n(s)});c.useEffect(()=>{let s=o.current;if(r)return;const u=e.current,d=ce(u);if(typeof PointerEvent<"u"){let f=p=>{s.isPointerDown&&xr(p,e)&&a(p),s.isPointerDown=!1};return d.addEventListener("pointerdown",l,!0),d.addEventListener("pointerup",f,!0),()=>{d.removeEventListener("pointerdown",l,!0),d.removeEventListener("pointerup",f,!0)}}else if(process.env.NODE_ENV==="test"){let f=g=>{s.ignoreEmulatedMouseEvents?s.ignoreEmulatedMouseEvents=!1:s.isPointerDown&&xr(g,e)&&a(g),s.isPointerDown=!1},p=g=>{s.ignoreEmulatedMouseEvents=!0,s.isPointerDown&&xr(g,e)&&a(g),s.isPointerDown=!1};return d.addEventListener("mousedown",l,!0),d.addEventListener("mouseup",f,!0),d.addEventListener("touchstart",l,!0),d.addEventListener("touchend",p,!0),()=>{d.removeEventListener("mousedown",l,!0),d.removeEventListener("mouseup",f,!0),d.removeEventListener("touchstart",l,!0),d.removeEventListener("touchend",p,!0)}}},[e,r,l,a])}function xr(t,e){if(t.button>0)return!1;if(t.target){const n=t.target.ownerDocument;if(!n||!n.documentElement.contains(t.target)||t.target.closest("[data-react-aria-top-layer]"))return!1}return e.current?!t.composedPath().includes(e.current):!1}const ng=500;function Rc(t){let{isDisabled:e,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:o=ng,accessibilityDescription:l}=t;const a=c.useRef(void 0);let{addGlobalListener:s,removeGlobalListener:u}=Ci(),{pressProps:d}=Pi({isDisabled:e,onPressStart(p){if(p.continuePropagation(),(p.pointerType==="mouse"||p.pointerType==="touch")&&(n&&n({...p,type:"longpressstart"}),a.current=setTimeout(()=>{p.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),ce(p.target).activeElement!==p.target&&Ze(p.target),i&&i({...p,type:"longpress"}),a.current=void 0},o),p.pointerType==="touch")){let g=y=>{y.preventDefault()};s(p.target,"contextmenu",g,{once:!0}),s(window,"pointerup",()=>{setTimeout(()=>{u(p.target,"contextmenu",g)},30)},{once:!0})}},onPressEnd(p){a.current&&clearTimeout(a.current),r&&(p.pointerType==="mouse"||p.pointerType==="touch")&&r({...p,type:"longpressend"})}}),f=Qh(i&&!e?l:void 0);return{longPressProps:le(d,f)}}const rg=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),ig=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function og(t){if(Intl.Locale){let n=new Intl.Locale(t).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return rg.has(n.script)}let e=t.split("-")[0];return ig.has(e)}const lg=Symbol.for("react-aria.i18n.locale");function Mc(){let t=typeof window<"u"&&window[lg]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([t])}catch{t="en-US"}return{locale:t,direction:og(t)?"rtl":"ltr"}}let Xo=Mc(),Zn=new Set;function qa(){Xo=Mc();for(let t of Zn)t(Xo)}function ag(){let t=Dl(),[e,n]=c.useState(Xo);return c.useEffect(()=>(Zn.size===0&&window.addEventListener("languagechange",qa),Zn.add(n),()=>{Zn.delete(n),Zn.size===0&&window.removeEventListener("languagechange",qa)}),[]),t?{locale:"en-US",direction:"ltr"}:e}const sg=c.createContext(null);function qt(){let t=ag();return c.useContext(sg)||t}var nt=function(){return nt=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},nt.apply(this,arguments)};function Lc(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function ug(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}const cg=Symbol.for("react-aria.i18n.locale"),dg=Symbol.for("react-aria.i18n.strings");let en;class _i{getStringForLocale(e,n){let i=this.getStringsForLocale(n)[e];if(!i)throw new Error(`Could not find intl message ${e} in ${n} locale`);return i}getStringsForLocale(e){let n=this.strings[e];return n||(n=fg(e,this.strings,this.defaultLocale),this.strings[e]=n),n}static getGlobalDictionaryForPackage(e){if(typeof window>"u")return null;let n=window[cg];if(en===void 0){let i=window[dg];if(!i)return null;en={};for(let o in i)en[o]=new _i({[n]:i[o]},n)}let r=en==null?void 0:en[e];if(!r)throw new Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(e,n="en-US"){this.strings=Object.fromEntries(Object.entries(e).filter(([,r])=>r)),this.defaultLocale=n}}function fg(t,e,n="en-US"){if(e[t])return e[t];let r=hg(t);if(e[r])return e[r];for(let i in e)if(i.startsWith(r+"-"))return e[i];return e[n]}function hg(t){return Intl.Locale?new Intl.Locale(t).language:t.split("-")[0]}const Ya=new Map,Za=new Map;class pg{format(e,n){let r=this.strings.getStringForLocale(e,this.locale);return typeof r=="function"?r(n,this):r}plural(e,n,r="cardinal"){let i=n["="+e];if(i)return typeof i=="function"?i():i;let o=this.locale+":"+r,l=Ya.get(o);l||(l=new Intl.PluralRules(this.locale,{type:r}),Ya.set(o,l));let a=l.select(e);return i=n[a]||n.other,typeof i=="function"?i():i}number(e){let n=Za.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),Za.set(this.locale,n)),n.format(e)}select(e,n){let r=e[n]||e.other;return typeof r=="function"?r():r}constructor(e,n){this.locale=e,this.strings=n}}const Xa=new WeakMap;function gg(t){let e=Xa.get(t);return e||(e=new _i(t),Xa.set(t,e)),e}function vg(t,e){return e&&_i.getGlobalDictionaryForPackage(e)||gg(t)}function Ac(t,e){let{locale:n}=qt(),r=vg(t,e);return c.useMemo(()=>new pg(n,r),[n,r])}let ro=new Map;function Wl(t){let{locale:e}=qt(),n=e+(t?Object.entries(t).sort((i,o)=>i[0]<o[0]?-1:1).join():"");if(ro.has(n))return ro.get(n);let r=new Intl.Collator(e,t);return ro.set(n,r),r}function mg(t,e){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:o,onPressEnd:l,onPressUp:a,onPressChange:s,preventFocusOnPress:u,allowFocusWhenDisabled:d,onClick:f,href:p,target:g,rel:y,type:h="button"}=t,v;n==="button"?v={type:h,disabled:r}:v={role:"button",href:n==="a"&&!r?p:void 0,target:n==="a"?g:void 0,type:n==="input"?h:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?y:void 0};let{pressProps:m,isPressed:S}=Pi({onPressStart:o,onPressEnd:l,onPressChange:s,onPress:i,onPressUp:a,onClick:f,isDisabled:r,preventFocusOnPress:u,ref:e}),{focusableProps:C}=Nc(t,e);d&&(C.tabIndex=r?-1:C.tabIndex);let P=le(C,m,Se(t,{labelable:!0}));return{isPressed:S,buttonProps:le(v,P,{"aria-haspopup":t["aria-haspopup"],"aria-expanded":t["aria-expanded"],"aria-controls":t["aria-controls"],"aria-pressed":t["aria-pressed"],"aria-current":t["aria-current"]})}}const Kc=7e3;let Qe=null;function Ja(t,e="assertive",n=Kc){Qe?Qe.announce(t,e,n):(Qe=new yg,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Qe.announce(t,e,n):setTimeout(()=>{Qe!=null&&Qe.isAttached()&&(Qe==null||Qe.announce(t,e,n))},100))}class yg{isAttached(){var e;return(e=this.node)===null||e===void 0?void 0:e.isConnected}createLog(e){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",e),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,n="assertive",r=Kc){var i,o;if(!this.node)return;let l=document.createElement("div");typeof e=="object"?(l.setAttribute("role","img"),l.setAttribute("aria-labelledby",e["aria-labelledby"])):l.textContent=e,n==="assertive"?(i=this.assertiveLog)===null||i===void 0||i.appendChild(l):(o=this.politeLog)===null||o===void 0||o.appendChild(l),e!==""&&setTimeout(()=>{l.remove()},r)}clear(e){this.node&&((!e||e==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!e||e==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}function bg(t,e,n){let{validationBehavior:r,focus:i}=t;ue(()=>{if(r==="native"&&(n!=null&&n.current)&&!n.current.disabled){let s=e.realtimeValidation.isInvalid?e.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(s),n.current.hasAttribute("title")||(n.current.title=""),e.realtimeValidation.isInvalid||e.updateValidation(Cg(n.current))}});let o=be(()=>{e.resetValidation()}),l=be(s=>{var u;e.displayValidation.isInvalid||e.commitValidation();let d=n==null||(u=n.current)===null||u===void 0?void 0:u.form;if(!s.defaultPrevented&&n&&d&&wg(d)===n.current){var f;i?i():(f=n.current)===null||f===void 0||f.focus(),Oc("keyboard")}s.preventDefault()}),a=be(()=>{e.commitValidation()});c.useEffect(()=>{let s=n==null?void 0:n.current;if(!s)return;let u=s.form;return s.addEventListener("invalid",l),s.addEventListener("change",a),u==null||u.addEventListener("reset",o),()=>{s.removeEventListener("invalid",l),s.removeEventListener("change",a),u==null||u.removeEventListener("reset",o)}},[n,l,a,o,r])}function Sg(t){let e=t.validity;return{badInput:e.badInput,customError:e.customError,patternMismatch:e.patternMismatch,rangeOverflow:e.rangeOverflow,rangeUnderflow:e.rangeUnderflow,stepMismatch:e.stepMismatch,tooLong:e.tooLong,tooShort:e.tooShort,typeMismatch:e.typeMismatch,valueMissing:e.valueMissing,valid:e.valid}}function Cg(t){return{isInvalid:!t.validity.valid,validationDetails:Sg(t),validationErrors:t.validationMessage?[t.validationMessage]:[]}}function wg(t){for(let e=0;e<t.elements.length;e++){let n=t.elements[e];if(!n.validity.valid)return n}return null}function Fc(t){let{id:e,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:o="label"}=t;e=Ie(e);let l=Ie(),a={};n?(r=r?`${l} ${r}`:l,a={id:l,htmlFor:o==="label"?e:void 0}):!r&&!i&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let s=wi({id:e,"aria-label":i,"aria-labelledby":r});return{labelProps:a,fieldProps:s}}function xg(t){let{description:e,errorMessage:n,isInvalid:r,validationState:i}=t,{labelProps:o,fieldProps:l}=Fc(t),a=Nt([!!e,!!n,r,i]),s=Nt([!!e,!!n,r,i]);return l=le(l,{"aria-describedby":[a,s,t["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:o,fieldProps:l,descriptionProps:{id:a},errorMessageProps:{id:s}}}const Qa={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function jc(t={}){let{style:e,isFocusable:n}=t,[r,i]=c.useState(!1),{focusWithinProps:o}=Ti({isDisabled:!n,onFocusWithinChange:a=>i(a)}),l=c.useMemo(()=>r?e:e?{...Qa,...e}:Qa,[r]);return{visuallyHiddenProps:{...o,style:l}}}function Eg(t){let{children:e,elementType:n="div",isFocusable:r,style:i,...o}=t,{visuallyHiddenProps:l}=jc(t);return c.createElement(n,le(o,l),e)}const rt={top:"top",bottom:"top",left:"left",right:"left"},ii={top:"bottom",bottom:"top",left:"right",right:"left"},$g={top:"left",left:"top"},Jo={top:"height",left:"width"},Hc={width:"totalWidth",height:"totalHeight"},Er={};let Ce=typeof document<"u"?window.visualViewport:null;function es(t){let e=0,n=0,r=0,i=0,o=0,l=0,a={};var s;let u=((s=Ce==null?void 0:Ce.scale)!==null&&s!==void 0?s:1)>1;if(t.tagName==="BODY"){let y=document.documentElement;r=y.clientWidth,i=y.clientHeight;var d;e=(d=Ce==null?void 0:Ce.width)!==null&&d!==void 0?d:r;var f;n=(f=Ce==null?void 0:Ce.height)!==null&&f!==void 0?f:i,a.top=y.scrollTop||t.scrollTop,a.left=y.scrollLeft||t.scrollLeft,Ce&&(o=Ce.offsetTop,l=Ce.offsetLeft)}else({width:e,height:n,top:o,left:l}=xn(t)),a.top=t.scrollTop,a.left=t.scrollLeft,r=e,i=n;if(Il()&&(t.tagName==="BODY"||t.tagName==="HTML")&&u){a.top=0,a.left=0;var p;o=(p=Ce==null?void 0:Ce.pageTop)!==null&&p!==void 0?p:0;var g;l=(g=Ce==null?void 0:Ce.pageLeft)!==null&&g!==void 0?g:0}return{width:e,height:n,totalWidth:r,totalHeight:i,scroll:a,top:o,left:l}}function Pg(t){return{top:t.scrollTop,left:t.scrollLeft,width:t.scrollWidth,height:t.scrollHeight}}function ts(t,e,n,r,i,o,l){var a;let s=(a=i.scroll[t])!==null&&a!==void 0?a:0,u=r[Jo[t]],d=r.scroll[rt[t]]+o,f=u+r.scroll[rt[t]]-o,p=e-s+l[t]-r[rt[t]],g=e-s+n+l[t]-r[rt[t]];return p<d?d-p:g>f?Math.max(f-g,d-p):0}function Dg(t){let e=window.getComputedStyle(t);return{top:parseInt(e.marginTop,10)||0,bottom:parseInt(e.marginBottom,10)||0,left:parseInt(e.marginLeft,10)||0,right:parseInt(e.marginRight,10)||0}}function ns(t){if(Er[t])return Er[t];let[e,n]=t.split(" "),r=rt[e]||"right",i=$g[r];rt[n]||(n="center");let o=Jo[r],l=Jo[i];return Er[t]={placement:e,crossPlacement:n,axis:r,crossAxis:i,size:o,crossSize:l},Er[t]}function io(t,e,n,r,i,o,l,a,s,u){let{placement:d,crossPlacement:f,axis:p,crossAxis:g,size:y,crossSize:h}=r,v={};var m;v[g]=(m=t[g])!==null&&m!==void 0?m:0;var S,C,P,$;f==="center"?v[g]+=(((S=t[h])!==null&&S!==void 0?S:0)-((C=n[h])!==null&&C!==void 0?C:0))/2:f!==g&&(v[g]+=((P=t[h])!==null&&P!==void 0?P:0)-(($=n[h])!==null&&$!==void 0?$:0)),v[g]+=o;const E=t[g]-n[h]+s+u,T=t[g]+t[h]-s-u;if(v[g]=Bo(v[g],E,T),d===p){const L=a?l[y]:e[Hc[y]];v[ii[p]]=Math.floor(L-t[p]+i)}else v[p]=Math.floor(t[p]+t[y]+i);return v}function Tg(t,e,n,r,i,o,l,a){const s=r?n.height:e[Hc.height];var u;let d=t.top!=null?n.top+t.top:n.top+(s-((u=t.bottom)!==null&&u!==void 0?u:0)-l);var f,p,g,y,h,v;let m=a!=="top"?Math.max(0,e.height+e.top+((f=e.scroll.top)!==null&&f!==void 0?f:0)-d-(((p=i.top)!==null&&p!==void 0?p:0)+((g=i.bottom)!==null&&g!==void 0?g:0)+o)):Math.max(0,d+l-(e.top+((y=e.scroll.top)!==null&&y!==void 0?y:0))-(((h=i.top)!==null&&h!==void 0?h:0)+((v=i.bottom)!==null&&v!==void 0?v:0)+o));return Math.min(e.height-o*2,m)}function rs(t,e,n,r,i,o){let{placement:l,axis:a,size:s}=o;var u,d;if(l===a)return Math.max(0,n[a]-t[a]-((u=t.scroll[a])!==null&&u!==void 0?u:0)+e[a]-((d=r[a])!==null&&d!==void 0?d:0)-r[ii[a]]-i);var f;return Math.max(0,t[s]+t[a]+t.scroll[a]-e[a]-n[a]-n[s]-((f=r[a])!==null&&f!==void 0?f:0)-r[ii[a]]-i)}function _g(t,e,n,r,i,o,l,a,s,u,d,f,p,g,y,h){let v=ns(t),{size:m,crossAxis:S,crossSize:C,placement:P,crossPlacement:$}=v,E=io(e,a,n,v,d,f,u,p,y,h),T=d,L=rs(a,u,e,i,o+d,v);if(l&&r[m]>L){let F=ns(`${ii[P]} ${$}`),K=io(e,a,n,F,d,f,u,p,y,h);rs(a,u,e,i,o+d,F)>L&&(v=F,E=K,T=d)}let z="bottom";v.axis==="top"?v.placement==="top"?z="top":v.placement==="bottom"&&(z="bottom"):v.crossAxis==="top"&&(v.crossPlacement==="top"?z="bottom":v.crossPlacement==="bottom"&&(z="top"));let A=ts(S,E[S],n[C],a,s,o,u);E[S]+=A;let w=Tg(E,a,u,p,i,o,n.height,z);g&&g<w&&(w=g),n.height=Math.min(n.height,w),E=io(e,a,n,v,T,f,u,p,y,h),A=ts(S,E[S],n[C],a,s,o,u),E[S]+=A;let M={},B=e[S]+.5*e[C]-E[S]-i[rt[S]];const R=y/2+h;var U,x,N,I;const G=rt[S]==="left"?((U=i.left)!==null&&U!==void 0?U:0)+((x=i.right)!==null&&x!==void 0?x:0):((N=i.top)!==null&&N!==void 0?N:0)+((I=i.bottom)!==null&&I!==void 0?I:0),H=n[C]-G-y/2-h,j=e[S]+y/2-(E[S]+i[rt[S]]),O=e[S]+e[C]-y/2-(E[S]+i[rt[S]]),k=Bo(B,j,O);return M[S]=Bo(k,R,H),{position:E,maxHeight:w,arrowOffsetLeft:M.left,arrowOffsetTop:M.top,placement:v.placement}}function Ig(t){let{placement:e,targetNode:n,overlayNode:r,scrollNode:i,padding:o,shouldFlip:l,boundaryElement:a,offset:s,crossOffset:u,maxHeight:d,arrowSize:f=0,arrowBoundaryOffset:p=0}=t,g=r instanceof HTMLElement?Og(r):document.documentElement,y=g===document.documentElement;const h=window.getComputedStyle(g).position;let v=!!h&&h!=="static",m=y?xn(n):is(n,g);if(!y){let{marginTop:M,marginLeft:B}=window.getComputedStyle(n);m.top+=parseInt(M,10)||0,m.left+=parseInt(B,10)||0}let S=xn(r),C=Dg(r);var P,$;S.width+=((P=C.left)!==null&&P!==void 0?P:0)+(($=C.right)!==null&&$!==void 0?$:0);var E,T;S.height+=((E=C.top)!==null&&E!==void 0?E:0)+((T=C.bottom)!==null&&T!==void 0?T:0);let L=Pg(i),z=es(a),A=es(g),w=a.tagName==="BODY"?xn(g):is(g,a);return g.tagName==="HTML"&&a.tagName==="BODY"&&(A.scroll.top=0,A.scroll.left=0),_g(e,m,S,L,C,o,l,z,A,w,s,u,v,d,f,p)}function xn(t){let{top:e,left:n,width:r,height:i}=t.getBoundingClientRect(),{scrollTop:o,scrollLeft:l,clientTop:a,clientLeft:s}=document.documentElement;return{top:e+o-a,left:n+l-s,width:r,height:i}}function is(t,e){let n=window.getComputedStyle(t),r;if(n.position==="fixed"){let{top:i,left:o,width:l,height:a}=t.getBoundingClientRect();r={top:i,left:o,width:l,height:a}}else{r=xn(t);let i=xn(e),o=window.getComputedStyle(e);i.top+=(parseInt(o.borderTopWidth,10)||0)-e.scrollTop,i.left+=(parseInt(o.borderLeftWidth,10)||0)-e.scrollLeft,r.top-=i.top,r.left-=i.left}return r.top-=parseInt(n.marginTop,10)||0,r.left-=parseInt(n.marginLeft,10)||0,r}function Og(t){let e=t.offsetParent;if(e&&e===document.body&&window.getComputedStyle(e).position==="static"&&!os(e)&&(e=document.documentElement),e==null)for(e=t.parentElement;e&&!os(e);)e=e.parentElement;return e||document.documentElement}function os(t){let e=window.getComputedStyle(t);return e.transform!=="none"||/transform|perspective/.test(e.willChange)||e.filter!=="none"||e.contain==="paint"||"backdropFilter"in e&&e.backdropFilter!=="none"||"WebkitBackdropFilter"in e&&e.WebkitBackdropFilter!=="none"}const zc=new WeakMap;function kg(t){let{triggerRef:e,isOpen:n,onClose:r}=t;c.useEffect(()=>{if(!n||r===null)return;let i=o=>{let l=o.target;if(!e.current||l instanceof Node&&!l.contains(e.current)||o.target instanceof HTMLInputElement||o.target instanceof HTMLTextAreaElement)return;let a=r||zc.get(e.current);a&&a()};return window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("scroll",i,!0)}},[n,r,e])}let ve=typeof document<"u"?window.visualViewport:null;function Ng(t){let{direction:e}=qt(),{arrowSize:n=0,targetRef:r,overlayRef:i,scrollRef:o=i,placement:l="bottom",containerPadding:a=12,shouldFlip:s=!0,boundaryElement:u=typeof document<"u"?document.body:null,offset:d=0,crossOffset:f=0,shouldUpdatePosition:p=!0,isOpen:g=!0,onClose:y,maxHeight:h,arrowBoundaryOffset:v=0}=t,[m,S]=c.useState(null),C=[p,l,i.current,r.current,o.current,a,s,u,d,f,g,e,h,v,n],P=c.useRef(ve==null?void 0:ve.scale);c.useEffect(()=>{g&&(P.current=ve==null?void 0:ve.scale)},[g]);let $=c.useCallback(()=>{if(p===!1||!g||!i.current||!r.current||!u||(ve==null?void 0:ve.scale)!==P.current)return;let A=null;if(o.current&&o.current.contains(document.activeElement)){var w;let I=(w=document.activeElement)===null||w===void 0?void 0:w.getBoundingClientRect(),G=o.current.getBoundingClientRect();var M;if(A={type:"top",offset:((M=I==null?void 0:I.top)!==null&&M!==void 0?M:0)-G.top},A.offset>G.height/2){A.type="bottom";var B;A.offset=((B=I==null?void 0:I.bottom)!==null&&B!==void 0?B:0)-G.bottom}}let R=i.current;if(!h&&i.current){var U;R.style.top="0px",R.style.bottom="";var x;R.style.maxHeight=((x=(U=window.visualViewport)===null||U===void 0?void 0:U.height)!==null&&x!==void 0?x:window.innerHeight)+"px"}let N=Ig({placement:Mg(l,e),overlayNode:i.current,targetNode:r.current,scrollNode:o.current||i.current,padding:a,shouldFlip:s,boundaryElement:u,offset:d,crossOffset:f,maxHeight:h,arrowSize:n,arrowBoundaryOffset:v});if(N.position){if(R.style.top="",R.style.bottom="",R.style.left="",R.style.right="",Object.keys(N.position).forEach(I=>R.style[I]=N.position[I]+"px"),R.style.maxHeight=N.maxHeight!=null?N.maxHeight+"px":"",A&&document.activeElement&&o.current){let I=document.activeElement.getBoundingClientRect(),G=o.current.getBoundingClientRect(),H=I[A.type]-G[A.type];o.current.scrollTop+=H-A.offset}S(N)}},C);ue($,C),Rg($),zo({ref:i,onResize:$}),zo({ref:r,onResize:$});let E=c.useRef(!1);ue(()=>{let A,w=()=>{E.current=!0,clearTimeout(A),A=setTimeout(()=>{E.current=!1},500),$()},M=()=>{E.current&&w()};return ve==null||ve.addEventListener("resize",w),ve==null||ve.addEventListener("scroll",M),()=>{ve==null||ve.removeEventListener("resize",w),ve==null||ve.removeEventListener("scroll",M)}},[$]);let T=c.useCallback(()=>{E.current||y==null||y()},[y,E]);kg({triggerRef:r,isOpen:g,onClose:y&&T});var L,z;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...m==null?void 0:m.position,maxHeight:(L=m==null?void 0:m.maxHeight)!==null&&L!==void 0?L:"100vh"}},placement:(z=m==null?void 0:m.placement)!==null&&z!==void 0?z:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:m==null?void 0:m.arrowOffsetLeft,top:m==null?void 0:m.arrowOffsetTop}},updatePosition:$}}function Rg(t){ue(()=>(window.addEventListener("resize",t,!1),()=>{window.removeEventListener("resize",t,!1)}),[t])}function Mg(t,e){return e==="rtl"?t.replace("start","right").replace("end","left"):t.replace("start","left").replace("end","right")}function Lg(t){const e=Re(t);if(!(t instanceof e.HTMLElement)&&!(t instanceof e.SVGElement))return!1;let{display:n,visibility:r}=t.style,i=n!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:o}=t.ownerDocument.defaultView;let{display:l,visibility:a}=o(t);i=l!=="none"&&a!=="hidden"&&a!=="collapse"}return i}function Ag(t,e){return!t.hasAttribute("hidden")&&!t.hasAttribute("data-react-aria-prevent-focus")&&(t.nodeName==="DETAILS"&&e&&e.nodeName!=="SUMMARY"?t.hasAttribute("open"):!0)}function Vc(t,e){return t.nodeName!=="#comment"&&Lg(t)&&Ag(t,e)&&(!t.parentElement||Vc(t.parentElement,t))}const ls=c.createContext(null),Qo="react-aria-focus-scope-restore";let de=null;function Gl(t){let{children:e,contain:n,restoreFocus:r,autoFocus:i}=t,o=c.useRef(null),l=c.useRef(null),a=c.useRef([]),{parentNode:s}=c.useContext(ls)||{},u=c.useMemo(()=>new tl({scopeRef:a}),[a]);ue(()=>{let p=s||ye.root;if(ye.getTreeNode(p.scopeRef)&&de&&!oi(de,p.scopeRef)){let g=ye.getTreeNode(de);g&&(p=g)}p.addChild(u),ye.addNode(u)},[u,s]),ue(()=>{let p=ye.getTreeNode(a);p&&(p.contain=!!n)},[n]),ue(()=>{var p;let g=(p=o.current)===null||p===void 0?void 0:p.nextSibling,y=[],h=v=>v.stopPropagation();for(;g&&g!==l.current;)y.push(g),g.addEventListener(Qo,h),g=g.nextSibling;return a.current=y,()=>{for(let v of y)v.removeEventListener(Qo,h)}},[e]),zg(a,r,n),Fg(a,n),Vg(a,r,n),Hg(a,i),c.useEffect(()=>{const p=_e(ce(a.current?a.current[0]:void 0));let g=null;if(Ue(p,a.current)){for(let y of ye.traverse())y.scopeRef&&Ue(p,y.scopeRef.current)&&(g=y);g===ye.getTreeNode(a)&&(de=g.scopeRef)}},[a]),ue(()=>()=>{var p,g,y;let h=(y=(g=ye.getTreeNode(a))===null||g===void 0||(p=g.parent)===null||p===void 0?void 0:p.scopeRef)!==null&&y!==void 0?y:null;(a===de||oi(a,de))&&(!h||ye.getTreeNode(h))&&(de=h),ye.removeTreeNode(a)},[a]);let d=c.useMemo(()=>Kg(a),[]),f=c.useMemo(()=>({focusManager:d,parentNode:u}),[u,d]);return c.createElement(ls.Provider,{value:f},c.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:o}),e,c.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:l}))}function Kg(t){return{focusNext(e={}){let n=t.current,{from:r,tabbable:i,wrap:o,accept:l}=e;var a;let s=r||_e(ce((a=n[0])!==null&&a!==void 0?a:void 0)),u=n[0].previousElementSibling,d=Ot(n),f=it(d,{tabbable:i,accept:l},n);f.currentNode=Ue(s,n)?s:u;let p=f.nextNode();return!p&&o&&(f.currentNode=u,p=f.nextNode()),p&&ct(p,!0),p},focusPrevious(e={}){let n=t.current,{from:r,tabbable:i,wrap:o,accept:l}=e;var a;let s=r||_e(ce((a=n[0])!==null&&a!==void 0?a:void 0)),u=n[n.length-1].nextElementSibling,d=Ot(n),f=it(d,{tabbable:i,accept:l},n);f.currentNode=Ue(s,n)?s:u;let p=f.previousNode();return!p&&o&&(f.currentNode=u,p=f.previousNode()),p&&ct(p,!0),p},focusFirst(e={}){let n=t.current,{tabbable:r,accept:i}=e,o=Ot(n),l=it(o,{tabbable:r,accept:i},n);l.currentNode=n[0].previousElementSibling;let a=l.nextNode();return a&&ct(a,!0),a},focusLast(e={}){let n=t.current,{tabbable:r,accept:i}=e,o=Ot(n),l=it(o,{tabbable:r,accept:i},n);l.currentNode=n[n.length-1].nextElementSibling;let a=l.previousNode();return a&&ct(a,!0),a}}}function Ot(t){return t[0].parentElement}function Xn(t){let e=ye.getTreeNode(de);for(;e&&e.scopeRef!==t;){if(e.contain)return!1;e=e.parent}return!0}function Fg(t,e){let n=c.useRef(void 0),r=c.useRef(void 0);ue(()=>{let i=t.current;if(!e){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const o=ce(i?i[0]:void 0);let l=u=>{if(u.key!=="Tab"||u.altKey||u.ctrlKey||u.metaKey||!Xn(t)||u.isComposing)return;let d=_e(o),f=t.current;if(!f||!Ue(d,f))return;let p=Ot(f),g=it(p,{tabbable:!0},f);if(!d)return;g.currentNode=d;let y=u.shiftKey?g.previousNode():g.nextNode();y||(g.currentNode=u.shiftKey?f[f.length-1].nextElementSibling:f[0].previousElementSibling,y=u.shiftKey?g.previousNode():g.nextNode()),u.preventDefault(),y&&ct(y,!0)},a=u=>{(!de||oi(de,t))&&Ue(se(u),t.current)?(de=t,n.current=se(u)):Xn(t)&&!wt(se(u),t)?n.current?n.current.focus():de&&de.current&&el(de.current):Xn(t)&&(n.current=se(u))},s=u=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let d=ni(),f=(d==="virtual"||d===null)&&Ol()&&fc(),p=_e(o);if(!f&&p&&Xn(t)&&!wt(p,t)){de=t;let y=se(u);if(y&&y.isConnected){var g;n.current=y,(g=n.current)===null||g===void 0||g.focus()}else de.current&&el(de.current)}})};return o.addEventListener("keydown",l,!1),o.addEventListener("focusin",a,!1),i==null||i.forEach(u=>u.addEventListener("focusin",a,!1)),i==null||i.forEach(u=>u.addEventListener("focusout",s,!1)),()=>{o.removeEventListener("keydown",l,!1),o.removeEventListener("focusin",a,!1),i==null||i.forEach(u=>u.removeEventListener("focusin",a,!1)),i==null||i.forEach(u=>u.removeEventListener("focusout",s,!1))}},[t,e]),ue(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function Bc(t){return wt(t)}function Ue(t,e){return!t||!e?!1:e.some(n=>n.contains(t))}function wt(t,e=null){if(t instanceof Element&&t.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of ye.traverse(ye.getTreeNode(e)))if(n&&Ue(t,n.current))return!0;return!1}function jg(t){return wt(t,de)}function oi(t,e){var n;let r=(n=ye.getTreeNode(e))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===t)return!0;r=r.parent}return!1}function ct(t,e=!1){if(t!=null&&!e)try{_n(t)}catch{}else if(t!=null)try{t.focus()}catch{}}function Uc(t,e=!0){let n=t[0].previousElementSibling,r=Ot(t),i=it(r,{tabbable:e},t);i.currentNode=n;let o=i.nextNode();return e&&!o&&(r=Ot(t),i=it(r,{tabbable:!1},t),i.currentNode=n,o=i.nextNode()),o}function el(t,e=!0){ct(Uc(t,e))}function Hg(t,e){const n=c.useRef(e);c.useEffect(()=>{if(n.current){de=t;const r=ce(t.current?t.current[0]:void 0);!Ue(_e(r),de.current)&&t.current&&el(t.current)}n.current=!1},[t])}function zg(t,e,n){ue(()=>{if(e||n)return;let r=t.current;const i=ce(r?r[0]:void 0);let o=l=>{let a=se(l);Ue(a,t.current)?de=t:Bc(a)||(de=null)};return i.addEventListener("focusin",o,!1),r==null||r.forEach(l=>l.addEventListener("focusin",o,!1)),()=>{i.removeEventListener("focusin",o,!1),r==null||r.forEach(l=>l.removeEventListener("focusin",o,!1))}},[t,e,n])}function as(t){let e=ye.getTreeNode(de);for(;e&&e.scopeRef!==t;){if(e.nodeToRestore)return!1;e=e.parent}return(e==null?void 0:e.scopeRef)===t}function Vg(t,e,n){const r=c.useRef(typeof document<"u"?_e(ce(t.current?t.current[0]:void 0)):null);ue(()=>{let i=t.current;const o=ce(i?i[0]:void 0);if(!e||n)return;let l=()=>{(!de||oi(de,t))&&Ue(_e(o),t.current)&&(de=t)};return o.addEventListener("focusin",l,!1),i==null||i.forEach(a=>a.addEventListener("focusin",l,!1)),()=>{o.removeEventListener("focusin",l,!1),i==null||i.forEach(a=>a.removeEventListener("focusin",l,!1))}},[t,n]),ue(()=>{const i=ce(t.current?t.current[0]:void 0);if(!e)return;let o=l=>{if(l.key!=="Tab"||l.altKey||l.ctrlKey||l.metaKey||!Xn(t)||l.isComposing)return;let a=i.activeElement;if(!wt(a,t)||!as(t))return;let s=ye.getTreeNode(t);if(!s)return;let u=s.nodeToRestore,d=it(i.body,{tabbable:!0});d.currentNode=a;let f=l.shiftKey?d.previousNode():d.nextNode();if((!u||!u.isConnected||u===i.body)&&(u=void 0,s.nodeToRestore=void 0),(!f||!wt(f,t))&&u){d.currentNode=u;do f=l.shiftKey?d.previousNode():d.nextNode();while(wt(f,t));l.preventDefault(),l.stopPropagation(),f?ct(f,!0):Bc(u)?ct(u,!0):a.blur()}};return n||i.addEventListener("keydown",o,!0),()=>{n||i.removeEventListener("keydown",o,!0)}},[t,e,n]),ue(()=>{const i=ce(t.current?t.current[0]:void 0);if(!e)return;let o=ye.getTreeNode(t);if(o){var l;return o.nodeToRestore=(l=r.current)!==null&&l!==void 0?l:void 0,()=>{let a=ye.getTreeNode(t);if(!a)return;let s=a.nodeToRestore,u=_e(i);if(e&&s&&(u&&wt(u,t)||u===i.body&&as(t))){let d=ye.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let f=d.getTreeNode(t);for(;f;){if(f.nodeToRestore&&f.nodeToRestore.isConnected){ss(f.nodeToRestore);return}f=f.parent}for(f=d.getTreeNode(t);f;){if(f.scopeRef&&f.scopeRef.current&&ye.getTreeNode(f.scopeRef)){let p=Uc(f.scopeRef.current,!0);ss(p);return}f=f.parent}}})}}}},[t,e])}function ss(t){t.dispatchEvent(new CustomEvent(Qo,{bubbles:!0,cancelable:!0}))&&ct(t)}function it(t,e,n){let r=e!=null&&e.tabbable?up:yc,i=(t==null?void 0:t.nodeType)===Node.ELEMENT_NODE?t:null,o=ce(i),l=Lh(o,t||o,NodeFilter.SHOW_ELEMENT,{acceptNode(a){var s;return!(e==null||(s=e.from)===null||s===void 0)&&s.contains(a)?NodeFilter.FILTER_REJECT:r(a)&&Vc(a)&&(!n||Ue(a,n))&&(!(e!=null&&e.accept)||e.accept(a))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return e!=null&&e.from&&(l.currentNode=e.from),l}class ql{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,n,r){let i=this.fastMap.get(n??null);if(!i)return;let o=new tl({scopeRef:e});i.addChild(o),o.parent=i,this.fastMap.set(e,o),r&&(o.nodeToRestore=r)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(e===null)return;let n=this.fastMap.get(e);if(!n)return;let r=n.parent;for(let o of this.traverse())o!==n&&n.nodeToRestore&&o.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&Ue(o.nodeToRestore,n.scopeRef.current)&&(o.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(o=>r&&r.addChild(o))),this.fastMap.delete(n.scopeRef)}*traverse(e=this.root){if(e.scopeRef!=null&&(yield e),e.children.size>0)for(let n of e.children)yield*this.traverse(n)}clone(){var e;let n=new ql;var r;for(let i of this.traverse())n.addTreeNode(i.scopeRef,(r=(e=i.parent)===null||e===void 0?void 0:e.scopeRef)!==null&&r!==void 0?r:null,i.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new tl({scopeRef:null}),this.fastMap.set(null,this.root)}}class tl{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}}let ye=new ql;function Ln(t={}){let{autoFocus:e=!1,isTextInput:n,within:r}=t,i=c.useRef({isFocused:!1,isFocusVisible:e||Tn()}),[o,l]=c.useState(!1),[a,s]=c.useState(()=>i.current.isFocused&&i.current.isFocusVisible),u=c.useCallback(()=>s(i.current.isFocused&&i.current.isFocusVisible),[]),d=c.useCallback(g=>{i.current.isFocused=g,l(g),u()},[u]);Zp(g=>{i.current.isFocusVisible=g,u()},[],{isTextInput:n});let{focusProps:f}=Ul({isDisabled:r,onFocusChange:d}),{focusWithinProps:p}=Ti({isDisabled:!r,onFocusWithinChange:d});return{isFocused:o,isFocusVisible:a,focusProps:r?p:f}}function Bg(t,e){let n=e==null?void 0:e.isDisabled,[r,i]=c.useState(!1);return ue(()=>{if(t!=null&&t.current&&!n){let o=()=>{if(t.current){let a=it(t.current,{tabbable:!0});i(!!a.nextNode())}};o();let l=new MutationObserver(o);return l.observe(t.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{l.disconnect()}}}),n?!1:r}function Wc(t){let e=Gg(ce(t));e!==t&&(e&&Ug(e,t),t&&Wg(t,e))}function Ug(t,e){t.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}function Wg(t,e){t.dispatchEvent(new FocusEvent("focus",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:e}))}function Gg(t){let e=_e(t),n=e==null?void 0:e.getAttribute("aria-activedescendant");return n&&t.getElementById(n)||e}const et=[];function qg(t,e){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:o=!1,isKeyboardDismissDisabled:l=!1,shouldCloseOnInteractOutside:a}=t;c.useEffect(()=>{if(i&&!et.includes(e))return et.push(e),()=>{let y=et.indexOf(e);y>=0&&et.splice(y,1)}},[i,e]);let s=()=>{et[et.length-1]===e&&n&&n()},u=y=>{(!a||a(y.target))&&et[et.length-1]===e&&(y.stopPropagation(),y.preventDefault())},d=y=>{(!a||a(y.target))&&(et[et.length-1]===e&&(y.stopPropagation(),y.preventDefault()),s())},f=y=>{y.key==="Escape"&&!l&&!y.nativeEvent.isComposing&&(y.stopPropagation(),y.preventDefault(),s())};tg({ref:e,onInteractOutside:o&&i?d:void 0,onInteractOutsideStart:u});let{focusWithinProps:p}=Ti({isDisabled:!r,onBlurWithin:y=>{!y.relatedTarget||jg(y.relatedTarget)||(!a||a(y.relatedTarget))&&(n==null||n())}}),g=y=>{y.target===y.currentTarget&&y.preventDefault()};return{overlayProps:{onKeyDown:f,...p},underlayProps:{onPointerDown:g}}}function Yg(t,e,n){let{type:r}=t,{isOpen:i}=e;c.useEffect(()=>{n&&n.current&&zc.set(n.current,e.close)});let o;r==="menu"?o=!0:r==="listbox"&&(o="listbox");let l=Ie();return{triggerProps:{"aria-haspopup":o,"aria-expanded":i,"aria-controls":i?l:void 0,onPress:e.toggle},overlayProps:{id:l}}}const oo=typeof document<"u"&&window.visualViewport,Zg=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let $r=0,lo;function Xg(t={}){let{isDisabled:e}=t;ue(()=>{if(!e)return $r++,$r===1&&(bi()?lo=Qg():lo=Jg()),()=>{$r--,$r===0&&lo()}},[e])}function Jg(){return At(yn(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),yn(document.documentElement,"overflow","hidden"))}function Qg(){let t,e,n=u=>{t=gc(u.target,!0),!(t===document.documentElement&&t===document.body)&&t instanceof HTMLElement&&window.getComputedStyle(t).overscrollBehavior==="auto"&&(e=yn(t,"overscrollBehavior","contain"))},r=u=>{if(!t||t===document.documentElement||t===document.body){u.preventDefault();return}t.scrollHeight===t.clientHeight&&t.scrollWidth===t.clientWidth&&u.preventDefault()},i=()=>{e&&e()},o=u=>{let d=u.target;e5(d)&&(a(),d.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{d.style.transform="",oo&&(oo.height<window.innerHeight?requestAnimationFrame(()=>{us(d)}):oo.addEventListener("resize",()=>us(d),{once:!0}))}))},l=null,a=()=>{if(l)return;let u=()=>{window.scrollTo(0,0)},d=window.pageXOffset,f=window.pageYOffset;l=At(zn(window,"scroll",u),yn(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),yn(document.documentElement,"overflow","hidden"),yn(document.body,"marginTop",`-${f}px`),()=>{window.scrollTo(d,f)}),window.scrollTo(0,0)},s=At(zn(document,"touchstart",n,{passive:!1,capture:!0}),zn(document,"touchmove",r,{passive:!1,capture:!0}),zn(document,"touchend",i,{passive:!1,capture:!0}),zn(document,"focus",o,!0));return()=>{e==null||e(),l==null||l(),s()}}function yn(t,e,n){let r=t.style[e];return t.style[e]=n,()=>{t.style[e]=r}}function zn(t,e,n,r){return t.addEventListener(e,n,r),()=>{t.removeEventListener(e,n,r)}}function us(t){let e=document.scrollingElement||document.documentElement,n=t;for(;n&&n!==e;){let r=gc(n);if(r!==document.documentElement&&r!==document.body&&r!==n){let i=r.getBoundingClientRect().top,o=n.getBoundingClientRect().top;o>i+n.clientHeight&&(r.scrollTop+=o-i)}n=r.parentElement}}function e5(t){return t instanceof HTMLInputElement&&!Zg.has(t.type)||t instanceof HTMLTextAreaElement||t instanceof HTMLElement&&t.isContentEditable}const t5=c.createContext({});function n5(){var t;return(t=c.useContext(t5))!==null&&t!==void 0?t:{}}var Gc={};Gc={dismiss:"تجاهل"};var qc={};qc={dismiss:"Отхвърляне"};var Yc={};Yc={dismiss:"Odstranit"};var Zc={};Zc={dismiss:"Luk"};var Xc={};Xc={dismiss:"Schließen"};var Jc={};Jc={dismiss:"Απόρριψη"};var Qc={};Qc={dismiss:"Dismiss"};var ed={};ed={dismiss:"Descartar"};var td={};td={dismiss:"Lõpeta"};var nd={};nd={dismiss:"Hylkää"};var rd={};rd={dismiss:"Rejeter"};var id={};id={dismiss:"התעלם"};var od={};od={dismiss:"Odbaci"};var ld={};ld={dismiss:"Elutasítás"};var ad={};ad={dismiss:"Ignora"};var sd={};sd={dismiss:"閉じる"};var ud={};ud={dismiss:"무시"};var cd={};cd={dismiss:"Atmesti"};var dd={};dd={dismiss:"Nerādīt"};var fd={};fd={dismiss:"Lukk"};var hd={};hd={dismiss:"Negeren"};var pd={};pd={dismiss:"Zignoruj"};var gd={};gd={dismiss:"Descartar"};var vd={};vd={dismiss:"Dispensar"};var md={};md={dismiss:"Revocare"};var yd={};yd={dismiss:"Пропустить"};var bd={};bd={dismiss:"Zrušiť"};var Sd={};Sd={dismiss:"Opusti"};var Cd={};Cd={dismiss:"Odbaci"};var wd={};wd={dismiss:"Avvisa"};var xd={};xd={dismiss:"Kapat"};var Ed={};Ed={dismiss:"Скасувати"};var $d={};$d={dismiss:"取消"};var Pd={};Pd={dismiss:"關閉"};var Dd={};Dd={"ar-AE":Gc,"bg-BG":qc,"cs-CZ":Yc,"da-DK":Zc,"de-DE":Xc,"el-GR":Jc,"en-US":Qc,"es-ES":ed,"et-EE":td,"fi-FI":nd,"fr-FR":rd,"he-IL":id,"hr-HR":od,"hu-HU":ld,"it-IT":ad,"ja-JP":sd,"ko-KR":ud,"lt-LT":cd,"lv-LV":dd,"nb-NO":fd,"nl-NL":hd,"pl-PL":pd,"pt-BR":gd,"pt-PT":vd,"ro-RO":md,"ru-RU":yd,"sk-SK":bd,"sl-SI":Sd,"sr-SP":Cd,"sv-SE":wd,"tr-TR":xd,"uk-UA":Ed,"zh-CN":$d,"zh-TW":Pd};function r5(t){return t&&t.__esModule?t.default:t}function cs(t){let{onDismiss:e,...n}=t,r=Ac(r5(Dd),"@react-aria/overlays"),i=wi(n,r.format("dismiss")),o=()=>{e&&e()};return c.createElement(Eg,null,c.createElement("button",{...i,tabIndex:-1,onClick:o,style:{width:1,height:1}}))}let Vn=new WeakMap,ke=[];function i5(t,e=document.body){let n=new Set(t),r=new Set,i=s=>{for(let p of s.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(p);let u=p=>{if(n.has(p)||p.parentElement&&r.has(p.parentElement)&&p.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let g of n)if(p.contains(g))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},d=document.createTreeWalker(s,NodeFilter.SHOW_ELEMENT,{acceptNode:u}),f=u(s);if(f===NodeFilter.FILTER_ACCEPT&&o(s),f!==NodeFilter.FILTER_REJECT){let p=d.nextNode();for(;p!=null;)o(p),p=d.nextNode()}},o=s=>{var u;let d=(u=Vn.get(s))!==null&&u!==void 0?u:0;s.getAttribute("aria-hidden")==="true"&&d===0||(d===0&&s.setAttribute("aria-hidden","true"),r.add(s),Vn.set(s,d+1))};ke.length&&ke[ke.length-1].disconnect(),i(e);let l=new MutationObserver(s=>{for(let u of s)if(!(u.type!=="childList"||u.addedNodes.length===0)&&![...n,...r].some(d=>d.contains(u.target))){for(let d of u.removedNodes)d instanceof Element&&(n.delete(d),r.delete(d));for(let d of u.addedNodes)(d instanceof HTMLElement||d instanceof SVGElement)&&(d.dataset.liveAnnouncer==="true"||d.dataset.reactAriaTopLayer==="true")?n.add(d):d instanceof Element&&i(d)}});l.observe(e,{childList:!0,subtree:!0});let a={visibleNodes:n,hiddenNodes:r,observe(){l.observe(e,{childList:!0,subtree:!0})},disconnect(){l.disconnect()}};return ke.push(a),()=>{l.disconnect();for(let s of r){let u=Vn.get(s);u!=null&&(u===1?(s.removeAttribute("aria-hidden"),Vn.delete(s)):Vn.set(s,u-1))}a===ke[ke.length-1]?(ke.pop(),ke.length&&ke[ke.length-1].observe()):ke.splice(ke.indexOf(a),1)}}function o5(t){let e=ke[ke.length-1];if(e&&!e.visibleNodes.has(t))return e.visibleNodes.add(t),()=>{e.visibleNodes.delete(t)}}function l5(t,e){let{triggerRef:n,popoverRef:r,groupRef:i,isNonModal:o,isKeyboardDismissDisabled:l,shouldCloseOnInteractOutside:a,...s}=t,u=s.trigger==="SubmenuTrigger",{overlayProps:d,underlayProps:f}=qg({isOpen:e.isOpen,onClose:e.close,shouldCloseOnBlur:!0,isDismissable:!o||u,isKeyboardDismissDisabled:l,shouldCloseOnInteractOutside:a},i??r),{overlayProps:p,arrowProps:g,placement:y}=Ng({...s,targetRef:n,overlayRef:r,isOpen:e.isOpen,onClose:o&&!u?e.close:null});return Xg({isDisabled:o||!e.isOpen}),ue(()=>{if(e.isOpen&&r.current){var h,v;return o?o5((h=i==null?void 0:i.current)!==null&&h!==void 0?h:r.current):i5([(v=i==null?void 0:i.current)!==null&&v!==void 0?v:r.current])}},[o,e.isOpen,r,i]),{popoverProps:le(d,p),arrowProps:g,underlayProps:f,placement:y}}const a5=c.createContext(null);function ds(t){let e=Dl(),{portalContainer:n=e?null:document.body,isExiting:r}=t,[i,o]=c.useState(!1),l=c.useMemo(()=>({contain:i,setContain:o}),[i,o]),{getContainer:a}=n5();if(!t.portalContainer&&a&&(n=a()),!n)return null;let s=t.children;return t.disableFocusManagement||(s=c.createElement(Gl,{restoreFocus:!0,contain:(t.shouldContainFocus||i)&&!r},s)),s=c.createElement(a5.Provider,{value:l},c.createElement(Qp,null,s)),Wt.createPortal(s,n)}const Yl=new WeakMap;function s5(t){return typeof t=="string"?t.replace(/\s*/g,""):""+t}function u5(t,e){let n=Yl.get(t);if(!n)throw new Error("Unknown list");return`${n.id}-option-${s5(e)}`}function nl(t){return Uh()?t.altKey:t.ctrlKey}function Kr(t,e){var n,r;let i=`[data-key="${CSS.escape(String(e))}"]`,o=(n=t.current)===null||n===void 0?void 0:n.dataset.collection;return o&&(i=`[data-collection="${CSS.escape(o)}"]${i}`),(r=t.current)===null||r===void 0?void 0:r.querySelector(i)}const Td=new WeakMap;function c5(t){let e=Ie();return Td.set(t,e),e}function d5(t){return Td.get(t)}const f5=1e3;function _d(t){let{keyboardDelegate:e,selectionManager:n,onTypeSelect:r}=t,i=c.useRef({search:"",timeout:void 0}).current,o=l=>{let a=h5(l.key);if(!(!a||l.ctrlKey||l.metaKey||!l.currentTarget.contains(l.target))){if(a===" "&&i.search.trim().length>0&&(l.preventDefault(),"continuePropagation"in l||l.stopPropagation()),i.search+=a,e.getKeyForSearch!=null){let s=e.getKeyForSearch(i.search,n.focusedKey);s==null&&(s=e.getKeyForSearch(i.search)),s!=null&&(n.setFocusedKey(s),r&&r(s))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},f5)}};return{typeSelectProps:{onKeyDownCapture:e.getKeyForSearch?o:void 0}}}function h5(t){return t.length===1||!/^[A-Z]/i.test(t)?t:""}function Id(t){let{selectionManager:e,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:o=!1,disallowEmptySelection:l=!1,disallowSelectAll:a=!1,escapeKeyBehavior:s="clearSelection",selectOnFocus:u=e.selectionBehavior==="replace",disallowTypeAhead:d=!1,shouldUseVirtualFocus:f,allowsTabNavigation:p=!1,isVirtualized:g,scrollRef:y=r,linkBehavior:h="action"}=t,{direction:v}=qt(),m=Si(),S=x=>{var N;if(x.altKey&&x.key==="Tab"&&x.preventDefault(),!(!((N=r.current)===null||N===void 0)&&N.contains(x.target)))return;const I=(q,fe)=>{if(q!=null){if(e.isLink(q)&&h==="selection"&&u&&!nl(x)){Wt.flushSync(()=>{e.setFocusedKey(q,fe)});let re=Kr(r,q),me=e.getItemProps(q);re&&m.open(re,x,me.href,me.routerOptions);return}if(e.setFocusedKey(q,fe),e.isLink(q)&&h==="override")return;x.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(q):u&&!nl(x)&&e.replaceSelection(q)}};switch(x.key){case"ArrowDown":if(n.getKeyBelow){var G,H,j;let q=e.focusedKey!=null?(G=n.getKeyBelow)===null||G===void 0?void 0:G.call(n,e.focusedKey):(H=n.getFirstKey)===null||H===void 0?void 0:H.call(n);q==null&&o&&(q=(j=n.getFirstKey)===null||j===void 0?void 0:j.call(n,e.focusedKey)),q!=null&&(x.preventDefault(),I(q))}break;case"ArrowUp":if(n.getKeyAbove){var O,k,F;let q=e.focusedKey!=null?(O=n.getKeyAbove)===null||O===void 0?void 0:O.call(n,e.focusedKey):(k=n.getLastKey)===null||k===void 0?void 0:k.call(n);q==null&&o&&(q=(F=n.getLastKey)===null||F===void 0?void 0:F.call(n,e.focusedKey)),q!=null&&(x.preventDefault(),I(q))}break;case"ArrowLeft":if(n.getKeyLeftOf){var K,V,W;let q=e.focusedKey!=null?(K=n.getKeyLeftOf)===null||K===void 0?void 0:K.call(n,e.focusedKey):null;q==null&&o&&(q=v==="rtl"?(V=n.getFirstKey)===null||V===void 0?void 0:V.call(n,e.focusedKey):(W=n.getLastKey)===null||W===void 0?void 0:W.call(n,e.focusedKey)),q!=null&&(x.preventDefault(),I(q,v==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var X,Q,oe;let q=e.focusedKey!=null?(X=n.getKeyRightOf)===null||X===void 0?void 0:X.call(n,e.focusedKey):null;q==null&&o&&(q=v==="rtl"?(Q=n.getLastKey)===null||Q===void 0?void 0:Q.call(n,e.focusedKey):(oe=n.getFirstKey)===null||oe===void 0?void 0:oe.call(n,e.focusedKey)),q!=null&&(x.preventDefault(),I(q,v==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(e.focusedKey===null&&x.shiftKey)return;x.preventDefault();let q=n.getFirstKey(e.focusedKey,pn(x));e.setFocusedKey(q),q!=null&&(pn(x)&&x.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(q):u&&e.replaceSelection(q))}break;case"End":if(n.getLastKey){if(e.focusedKey===null&&x.shiftKey)return;x.preventDefault();let q=n.getLastKey(e.focusedKey,pn(x));e.setFocusedKey(q),q!=null&&(pn(x)&&x.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(q):u&&e.replaceSelection(q))}break;case"PageDown":if(n.getKeyPageBelow&&e.focusedKey!=null){let q=n.getKeyPageBelow(e.focusedKey);q!=null&&(x.preventDefault(),I(q))}break;case"PageUp":if(n.getKeyPageAbove&&e.focusedKey!=null){let q=n.getKeyPageAbove(e.focusedKey);q!=null&&(x.preventDefault(),I(q))}break;case"a":pn(x)&&e.selectionMode==="multiple"&&a!==!0&&(x.preventDefault(),e.selectAll());break;case"Escape":s==="clearSelection"&&!l&&e.selectedKeys.size!==0&&(x.stopPropagation(),x.preventDefault(),e.clearSelection());break;case"Tab":if(!p){if(x.shiftKey)r.current.focus();else{let q=it(r.current,{tabbable:!0}),fe,re;do re=q.lastChild(),re&&(fe=re);while(re);fe&&!fe.contains(document.activeElement)&&Ze(fe)}break}}},C=c.useRef({top:0,left:0});br(y,"scroll",g?void 0:()=>{var x,N,I,G;C.current={top:(I=(x=y.current)===null||x===void 0?void 0:x.scrollTop)!==null&&I!==void 0?I:0,left:(G=(N=y.current)===null||N===void 0?void 0:N.scrollLeft)!==null&&G!==void 0?G:0}});let P=x=>{if(e.isFocused){x.currentTarget.contains(x.target)||e.setFocused(!1);return}if(x.currentTarget.contains(x.target)){if(e.setFocused(!0),e.focusedKey==null){var N,I;let j=k=>{k!=null&&(e.setFocusedKey(k),u&&!e.isSelected(k)&&e.replaceSelection(k))},O=x.relatedTarget;var G,H;O&&x.currentTarget.compareDocumentPosition(O)&Node.DOCUMENT_POSITION_FOLLOWING?j((G=e.lastSelectedKey)!==null&&G!==void 0?G:(N=n.getLastKey)===null||N===void 0?void 0:N.call(n)):j((H=e.firstSelectedKey)!==null&&H!==void 0?H:(I=n.getFirstKey)===null||I===void 0?void 0:I.call(n))}else!g&&y.current&&(y.current.scrollTop=C.current.top,y.current.scrollLeft=C.current.left);if(e.focusedKey!=null&&y.current){let j=Kr(r,e.focusedKey);j instanceof HTMLElement&&(!j.contains(document.activeElement)&&!f&&Ze(j),ni()==="keyboard"&&ka(j,{containingElement:r.current}))}}},$=x=>{x.currentTarget.contains(x.relatedTarget)||e.setFocused(!1)},E=c.useRef(!1);br(r,ip,f?x=>{let{detail:N}=x;x.stopPropagation(),e.setFocused(!0),(N==null?void 0:N.focusStrategy)==="first"&&(E.current=!0)}:void 0);let T=be(()=>{var x,N;let I=(N=(x=n.getFirstKey)===null||x===void 0?void 0:x.call(n))!==null&&N!==void 0?N:null;I==null?(Wc(r.current),e.collection.size>0&&(E.current=!1)):(e.setFocusedKey(I),E.current=!1)});Ia(()=>{E.current&&T()},[e.collection,T]);let L=be(()=>{e.collection.size>0&&(E.current=!1)});Ia(()=>{L()},[e.focusedKey,L]),br(r,rp,f?x=>{var N;x.stopPropagation(),e.setFocused(!1),!((N=x.detail)===null||N===void 0)&&N.clearFocusKey&&e.setFocusedKey(null)}:void 0);const z=c.useRef(i),A=c.useRef(!1);c.useEffect(()=>{if(z.current){var x,N;let H=null;var I;i==="first"&&(H=(I=(x=n.getFirstKey)===null||x===void 0?void 0:x.call(n))!==null&&I!==void 0?I:null);var G;i==="last"&&(H=(G=(N=n.getLastKey)===null||N===void 0?void 0:N.call(n))!==null&&G!==void 0?G:null);let j=e.selectedKeys;if(j.size){for(let O of j)if(e.canSelectItem(O)){H=O;break}}e.setFocused(!0),e.setFocusedKey(H),H==null&&!f&&r.current&&_n(r.current),e.collection.size>0&&(z.current=!1,A.current=!0)}});let w=c.useRef(e.focusedKey);c.useEffect(()=>{if(e.isFocused&&e.focusedKey!=null&&(e.focusedKey!==w.current||A.current)&&y.current&&r.current){let x=ni(),N=Kr(r,e.focusedKey);if(!(N instanceof HTMLElement))return;(x==="keyboard"||A.current)&&(vc(y.current,N),x!=="virtual"&&ka(N,{containingElement:r.current}))}!f&&e.isFocused&&e.focusedKey==null&&w.current!=null&&r.current&&_n(r.current),w.current=e.focusedKey,A.current=!1}),br(r,"react-aria-focus-scope-restore",x=>{x.preventDefault(),e.setFocused(!0)});let M={onKeyDown:S,onFocus:P,onBlur:$,onMouseDown(x){y.current===x.target&&x.preventDefault()}},{typeSelectProps:B}=_d({keyboardDelegate:n,selectionManager:e});d||(M=le(B,M));let R;f||(R=e.focusedKey==null?0:-1);let U=c5(e.collection);return{collectionProps:le(M,{tabIndex:R,"data-collection":U})}}function Zl(t){let{id:e,selectionManager:n,key:r,ref:i,shouldSelectOnPressUp:o,shouldUseVirtualFocus:l,focus:a,isDisabled:s,onAction:u,allowsDifferentPressOrigin:d,linkBehavior:f="action"}=t,p=Si();e=Ie(e);let g=I=>{if(I.pointerType==="keyboard"&&nl(I))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(f==="selection"&&i.current){let G=n.getItemProps(r);p.open(i.current,I,G.href,G.routerOptions),n.setSelectedKeys(n.selectedKeys);return}else if(f==="override"||f==="none")return}n.selectionMode==="single"?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):I&&I.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||I&&(pn(I)||I.pointerType==="touch"||I.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};c.useEffect(()=>{r===n.focusedKey&&n.isFocused&&(l?Wc(i.current):a?a():document.activeElement!==i.current&&i.current&&_n(i.current))},[i,r,n.focusedKey,n.childFocusStrategy,n.isFocused,l]),s=s||n.isDisabled(r);let y={};!l&&!s?y={tabIndex:r===n.focusedKey?0:-1,onFocus(I){I.target===i.current&&n.setFocusedKey(r)}}:s&&(y.onMouseDown=I=>{I.preventDefault()});let h=n.isLink(r)&&f==="override",v=n.isLink(r)&&f!=="selection"&&f!=="none",m=!s&&n.canSelectItem(r)&&!h,S=(u||v)&&!s,C=S&&(n.selectionBehavior==="replace"?!m:!m||n.isEmpty),P=S&&m&&n.selectionBehavior==="replace",$=C||P,E=c.useRef(null),T=$&&m,L=c.useRef(!1),z=c.useRef(!1),A=I=>{if(u&&u(),v&&i.current){let G=n.getItemProps(r);p.open(i.current,I,G.href,G.routerOptions)}},w={ref:i};o?(w.onPressStart=I=>{E.current=I.pointerType,L.current=T,I.pointerType==="keyboard"&&(!$||hs())&&g(I)},d?(w.onPressUp=C?void 0:I=>{I.pointerType==="mouse"&&m&&g(I)},w.onPress=C?A:I=>{I.pointerType!=="keyboard"&&I.pointerType!=="mouse"&&m&&g(I)}):w.onPress=I=>{if(C||P&&I.pointerType!=="mouse"){if(I.pointerType==="keyboard"&&!fs())return;A(I)}else I.pointerType!=="keyboard"&&m&&g(I)}):(w.onPressStart=I=>{E.current=I.pointerType,L.current=T,z.current=C,m&&(I.pointerType==="mouse"&&!C||I.pointerType==="keyboard"&&(!S||hs()))&&g(I)},w.onPress=I=>{(I.pointerType==="touch"||I.pointerType==="pen"||I.pointerType==="virtual"||I.pointerType==="keyboard"&&$&&fs()||I.pointerType==="mouse"&&z.current)&&($?A(I):m&&g(I))}),y["data-collection"]=d5(n.collection),y["data-key"]=r,w.preventFocusOnPress=l,l&&(w=le(w,{onPressStart(I){I.pointerType!=="touch"&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(I){I.pointerType==="touch"&&(n.setFocused(!0),n.setFocusedKey(r))}}));let{pressProps:M,isPressed:B}=Pi(w),R=P?I=>{E.current==="mouse"&&(I.stopPropagation(),I.preventDefault(),A(I))}:void 0,{longPressProps:U}=Rc({isDisabled:!T,onLongPress(I){I.pointerType==="touch"&&(g(I),n.setSelectionBehavior("toggle"))}}),x=I=>{E.current==="touch"&&L.current&&I.preventDefault()},N=n.isLink(r)?I=>{Kt.isOpening||I.preventDefault()}:void 0;return{itemProps:le(y,m||C||l?M:{},T?U:{},{onDoubleClick:R,onDragStartCapture:x,onClick:N,id:e},l?{onMouseDown:I=>I.preventDefault()}:void 0),isPressed:B,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:s,allowsSelection:m,hasAction:$}}function fs(){let t=window.event;return(t==null?void 0:t.key)==="Enter"}function hs(){let t=window.event;return(t==null?void 0:t.key)===" "||(t==null?void 0:t.code)==="Space"}class ps{getItemRect(e){let n=this.ref.current;if(!n)return null;let r=e!=null?Kr(this.ref,e):null;if(!r)return null;let i=n.getBoundingClientRect(),o=r.getBoundingClientRect();return{x:o.left-i.left+n.scrollLeft,y:o.top-i.top+n.scrollTop,width:o.width,height:o.height}}getContentSize(){let e=this.ref.current;var n,r;return{width:(n=e==null?void 0:e.scrollWidth)!==null&&n!==void 0?n:0,height:(r=e==null?void 0:e.scrollHeight)!==null&&r!==void 0?r:0}}getVisibleRect(){let e=this.ref.current;var n,r,i,o;return{x:(n=e==null?void 0:e.scrollLeft)!==null&&n!==void 0?n:0,y:(r=e==null?void 0:e.scrollTop)!==null&&r!==void 0?r:0,width:(i=e==null?void 0:e.offsetWidth)!==null&&i!==void 0?i:0,height:(o=e==null?void 0:e.offsetHeight)!==null&&o!==void 0?o:0}}constructor(e){this.ref=e}}class Xl{isDisabled(e){var n;return this.disabledBehavior==="all"&&(((n=e.props)===null||n===void 0?void 0:n.isDisabled)||this.disabledKeys.has(e.key))}findNextNonDisabled(e,n){let r=e;for(;r!=null;){let i=this.collection.getItem(r);if((i==null?void 0:i.type)==="item"&&!this.isDisabled(i))return r;r=n(r)}return null}getNextKey(e){let n=e;return n=this.collection.getKeyAfter(n),this.findNextNonDisabled(n,r=>this.collection.getKeyAfter(r))}getPreviousKey(e){let n=e;return n=this.collection.getKeyBefore(n),this.findNextNonDisabled(n,r=>this.collection.getKeyBefore(r))}findKey(e,n,r){let i=e,o=this.layoutDelegate.getItemRect(i);if(!o||i==null)return null;let l=o;do{if(i=n(i),i==null)break;o=this.layoutDelegate.getItemRect(i)}while(o&&r(l,o)&&i!=null);return i}isSameRow(e,n){return e.y===n.y||e.x!==n.x}isSameColumn(e,n){return e.x===n.x||e.y!==n.y}getKeyBelow(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,n){return n?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){let n=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[n]?(e=this.layoutDelegate[n](e),this.findNextNonDisabled(e,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="rtl"):this.findKey(e,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="rtl"):null}getKeyLeftOf(e){let n=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[n]?(e=this.layoutDelegate[n](e),this.findNextNonDisabled(e,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="ltr"):this.findKey(e,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="ltr"):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,n=>this.collection.getKeyAfter(n))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,n=>this.collection.getKeyBefore(n))}getKeyPageAbove(e){let n=this.ref.current,r=this.layoutDelegate.getItemRect(e);if(!r)return null;if(n&&!or(n))return this.getFirstKey();let i=e;if(this.orientation==="horizontal"){let o=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>o&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let o=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>o&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getFirstKey()}getKeyPageBelow(e){let n=this.ref.current,r=this.layoutDelegate.getItemRect(e);if(!r)return null;if(n&&!or(n))return this.getLastKey();let i=e;if(this.orientation==="horizontal"){let o=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<o&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let o=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<o&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getLastKey()}getKeyForSearch(e,n){if(!this.collator)return null;let r=this.collection,i=n||this.getFirstKey();for(;i!=null;){let o=r.getItem(i);if(!o)return null;let l=o.textValue.slice(0,e.length);if(o.textValue&&this.collator.compare(l,e)===0)return i;i=this.getNextKey(i)}return null}constructor(...e){if(e.length===1){let n=e[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.disabledBehavior=n.disabledBehavior||"all",this.orientation=n.orientation||"vertical",this.direction=n.direction,this.layout=n.layout||"stack",this.layoutDelegate=n.layoutDelegate||new ps(n.ref)}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new ps(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function Od(t){let{selectionManager:e,collection:n,disabledKeys:r,ref:i,keyboardDelegate:o,layoutDelegate:l}=t,a=Wl({usage:"search",sensitivity:"base"}),s=e.disabledBehavior,u=c.useMemo(()=>o||new Xl({collection:n,disabledKeys:r,disabledBehavior:s,ref:i,collator:a,layoutDelegate:l}),[o,l,n,r,i,a,s]),{collectionProps:d}=Id({...t,ref:i,selectionManager:e,keyboardDelegate:u});return{listProps:d}}function p5(t,e,n){let r=Se(t,{labelable:!0}),i=t.selectionBehavior||"toggle",o=t.linkBehavior||(i==="replace"?"action":"override");i==="toggle"&&o==="action"&&(o="override");let{listProps:l}=Od({...t,ref:n,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,linkBehavior:o}),{focusWithinProps:a}=Ti({onFocusWithin:t.onFocus,onBlurWithin:t.onBlur,onFocusWithinChange:t.onFocusChange}),s=Ie(t.id);Yl.set(e,{id:s,shouldUseVirtualFocus:t.shouldUseVirtualFocus,shouldSelectOnPressUp:t.shouldSelectOnPressUp,shouldFocusOnHover:t.shouldFocusOnHover,isVirtualized:t.isVirtualized,onAction:t.onAction,linkBehavior:o});let{labelProps:u,fieldProps:d}=Fc({...t,id:s,labelElementType:"span"});return{labelProps:u,listBoxProps:le(r,a,e.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...le(d,l)})}}function kd(t,e){return typeof e.getChildren=="function"?e.getChildren(t.key):t.childNodes}function g5(t){return v5(t)}function v5(t,e){for(let n of t)return n}function ao(t,e,n){if(e.parentKey===n.parentKey)return e.index-n.index;let r=[...gs(t,e),e],i=[...gs(t,n),n],o=r.slice(0,i.length).findIndex((l,a)=>l!==i[a]);return o!==-1?(e=r[o],n=i[o],e.index-n.index):r.findIndex(l=>l===n)>=0?1:(i.findIndex(l=>l===e)>=0,-1)}function gs(t,e){let n=[],r=e;for(;(r==null?void 0:r.parentKey)!=null;)r=t.getItem(r.parentKey),r&&n.unshift(r);return n}const vs=new WeakMap;function Nd(t){let e=vs.get(t);if(e!=null)return e;let n=0,r=i=>{for(let o of i)o.type==="section"?r(kd(o,t)):n++};return r(t),vs.set(t,n),n}function m5(t,e,n){var r,i;let{key:o}=t,l=Yl.get(e);var a;let s=(a=t.isDisabled)!==null&&a!==void 0?a:e.selectionManager.isDisabled(o);var u;let d=(u=t.isSelected)!==null&&u!==void 0?u:e.selectionManager.isSelected(o);var f;let p=(f=t.shouldSelectOnPressUp)!==null&&f!==void 0?f:l==null?void 0:l.shouldSelectOnPressUp;var g;let y=(g=t.shouldFocusOnHover)!==null&&g!==void 0?g:l==null?void 0:l.shouldFocusOnHover;var h;let v=(h=t.shouldUseVirtualFocus)!==null&&h!==void 0?h:l==null?void 0:l.shouldUseVirtualFocus;var m;let S=(m=t.isVirtualized)!==null&&m!==void 0?m:l==null?void 0:l.isVirtualized,C=Nt(),P=Nt(),$={role:"option","aria-disabled":s||void 0,"aria-selected":e.selectionManager.selectionMode!=="none"?d:void 0};Et()&&Il()||($["aria-label"]=t["aria-label"],$["aria-labelledby"]=C,$["aria-describedby"]=P);let E=e.collection.getItem(o);if(S){let N=Number(E==null?void 0:E.index);$["aria-posinset"]=Number.isNaN(N)?void 0:N+1,$["aria-setsize"]=Nd(e.collection)}let T=l!=null&&l.onAction?()=>{var N;return l==null||(N=l.onAction)===null||N===void 0?void 0:N.call(l,o)}:void 0,L=u5(e,o),{itemProps:z,isPressed:A,isFocused:w,hasAction:M,allowsSelection:B}=Zl({selectionManager:e.selectionManager,key:o,ref:n,shouldSelectOnPressUp:p,allowsDifferentPressOrigin:p&&y,isVirtualized:S,shouldUseVirtualFocus:v,isDisabled:s,onAction:T||!(E==null||(r=E.props)===null||r===void 0)&&r.onAction?At(E==null||(i=E.props)===null||i===void 0?void 0:i.onAction,T):void 0,linkBehavior:l==null?void 0:l.linkBehavior,id:L}),{hoverProps:R}=Mn({isDisabled:s||!y,onHoverStart(){Tn()||(e.selectionManager.setFocused(!0),e.selectionManager.setFocusedKey(o))}}),U=Se(E==null?void 0:E.props);delete U.id;let x=kl(E==null?void 0:E.props);return{optionProps:{...$,...le(U,z,R,x),id:L},labelProps:{id:C},descriptionProps:{id:P},isFocused:w,isFocusVisible:w&&e.selectionManager.isFocused&&Tn(),isSelected:d,isDisabled:s,isPressed:A,allowsSelection:B,hasAction:M}}function y5(t){let{heading:e,"aria-label":n}=t,r=Ie();return{itemProps:{role:"presentation"},headingProps:e?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":e?r:void 0}}}var Rd={};Rd={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var Md={};Md={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var Ld={};Ld={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var Ad={};Ad={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var Kd={};Kd={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var Fd={};Fd={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var jd={};jd={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var Hd={};Hd={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var zd={};zd={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var Vd={};Vd={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var Bd={};Bd={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var Ud={};Ud={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var Wd={};Wd={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var Gd={};Gd={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var qd={};qd={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var Yd={};Yd={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var Zd={};Zd={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var Xd={};Xd={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var Jd={};Jd={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var Qd={};Qd={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var ef={};ef={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var tf={};tf={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var nf={};nf={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var rf={};rf={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var of={};of={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var lf={};lf={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var af={};af={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var sf={};sf={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var uf={};uf={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var cf={};cf={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var df={};df={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var ff={};ff={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var hf={};hf={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var pf={};pf={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var gf={};gf={"ar-AE":Rd,"bg-BG":Md,"cs-CZ":Ld,"da-DK":Ad,"de-DE":Kd,"el-GR":Fd,"en-US":jd,"es-ES":Hd,"et-EE":zd,"fi-FI":Vd,"fr-FR":Bd,"he-IL":Ud,"hr-HR":Wd,"hu-HU":Gd,"it-IT":qd,"ja-JP":Yd,"ko-KR":Zd,"lt-LT":Xd,"lv-LV":Jd,"nb-NO":Qd,"nl-NL":ef,"pl-PL":tf,"pt-BR":nf,"pt-PT":rf,"ro-RO":of,"ru-RU":lf,"sk-SK":af,"sl-SI":sf,"sr-SP":uf,"sv-SE":cf,"tr-TR":df,"uk-UA":ff,"zh-CN":hf,"zh-TW":pf};function b5(t){return t&&t.__esModule?t.default:t}function S5(t,e,n){let{type:r="menu",isDisabled:i,trigger:o="press"}=t,l=Ie(),{triggerProps:a,overlayProps:s}=Yg({type:r},e,n),u=g=>{if(!i&&!(o==="longPress"&&!g.altKey)&&n&&n.current)switch(g.key){case"Enter":case" ":if(o==="longPress")return;case"ArrowDown":"continuePropagation"in g||g.stopPropagation(),g.preventDefault(),e.toggle("first");break;case"ArrowUp":"continuePropagation"in g||g.stopPropagation(),g.preventDefault(),e.toggle("last");break;default:"continuePropagation"in g&&g.continuePropagation()}},d=Ac(b5(gf),"@react-aria/menu"),{longPressProps:f}=Rc({isDisabled:i||o!=="longPress",accessibilityDescription:d.format("longPressMessage"),onLongPressStart(){e.close()},onLongPress(){e.open("first")}}),p={preventFocusOnPress:!0,onPressStart(g){g.pointerType!=="touch"&&g.pointerType!=="keyboard"&&!i&&(Ze(g.target),e.open(g.pointerType==="virtual"?"first":null))},onPress(g){g.pointerType==="touch"&&!i&&(Ze(g.target),e.toggle())}};return delete a.onPress,{menuTriggerProps:{...a,...o==="press"?p:f,id:l,onKeyDown:u},menuProps:{...s,"aria-labelledby":l,autoFocus:e.focusStrategy||!0,onClose:e.close}}}const vf=new WeakMap;function C5(t,e,n){let{shouldFocusWrap:r=!0,onKeyDown:i,onKeyUp:o,...l}=t;!t["aria-label"]&&!t["aria-labelledby"]&&process.env.NODE_ENV!=="production"&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let a=Se(t,{labelable:!0}),{listProps:s}=Od({...l,ref:n,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,shouldFocusWrap:r,linkBehavior:"override"});return vf.set(e,{onClose:t.onClose,onAction:t.onAction,shouldUseVirtualFocus:t.shouldUseVirtualFocus}),{menuProps:le(a,{onKeyDown:i,onKeyUp:o},{role:"menu",...s,onKeyDown:u=>{var d;(u.key!=="Escape"||t.shouldUseVirtualFocus)&&((d=s.onKeyDown)===null||d===void 0||d.call(s,u))}})}}function w5(t,e,n){let{id:r,key:i,closeOnSelect:o,isVirtualized:l,"aria-haspopup":a,onPressStart:s,onPressUp:u,onPress:d,onPressChange:f,onPressEnd:p,onHoverStart:g,onHoverChange:y,onHoverEnd:h,onKeyDown:v,onKeyUp:m,onFocus:S,onFocusChange:C,onBlur:P,selectionManager:$=e.selectionManager}=t,E=!!a,T=E&&t["aria-expanded"]==="true";var L;let z=(L=t.isDisabled)!==null&&L!==void 0?L:$.isDisabled(i);var A;let w=(A=t.isSelected)!==null&&A!==void 0?A:$.isSelected(i),M=vf.get(e),B=e.collection.getItem(i),R=t.onClose||M.onClose,U=Si(),x=ie=>{var Je;if(!E){if(!(B==null||(Je=B.props)===null||Je===void 0)&&Je.onAction?B.props.onAction():t.onAction&&t.onAction(i),M.onAction){let gt=M.onAction;gt(i)}ie.target instanceof HTMLAnchorElement&&B&&U.open(ie.target,ie,B.props.href,B.props.routerOptions)}},N="menuitem";E||($.selectionMode==="single"?N="menuitemradio":$.selectionMode==="multiple"&&(N="menuitemcheckbox"));let I=Nt(),G=Nt(),H=Nt(),j={id:r,"aria-disabled":z||void 0,role:N,"aria-label":t["aria-label"],"aria-labelledby":I,"aria-describedby":[G,H].filter(Boolean).join(" ")||void 0,"aria-controls":t["aria-controls"],"aria-haspopup":a,"aria-expanded":t["aria-expanded"]};$.selectionMode!=="none"&&!E&&(j["aria-checked"]=w),l&&(j["aria-posinset"]=B==null?void 0:B.index,j["aria-setsize"]=Nd(e.collection));let O=ie=>{ie.pointerType==="keyboard"&&x(ie),s==null||s(ie)},k=()=>{!E&&R&&(o??($.selectionMode!=="multiple"||$.isLink(i)))&&R()},F=ie=>{ie.pointerType==="mouse"&&(x(ie),k()),u==null||u(ie)},K=ie=>{ie.pointerType!=="keyboard"&&ie.pointerType!=="mouse"&&(x(ie),k()),d==null||d(ie)},{itemProps:V,isFocused:W}=Zl({id:r,selectionManager:$,key:i,ref:n,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none",shouldUseVirtualFocus:M.shouldUseVirtualFocus}),{pressProps:X,isPressed:Q}=Pi({onPressStart:O,onPress:K,onPressUp:F,onPressChange:f,onPressEnd:p,isDisabled:z}),{hoverProps:oe}=Mn({isDisabled:z,onHoverStart(ie){!Tn()&&!(T&&a)&&($.setFocused(!0),$.setFocusedKey(i)),g==null||g(ie)},onHoverChange:y,onHoverEnd:h}),{keyboardProps:q}=kc({onKeyDown:ie=>{if(ie.repeat){ie.continuePropagation();return}switch(ie.key){case" ":!z&&$.selectionMode==="none"&&!E&&o!==!1&&R&&R();break;case"Enter":!z&&o!==!1&&!E&&R&&R();break;default:E||ie.continuePropagation(),v==null||v(ie);break}},onKeyUp:m}),{focusProps:fe}=Ul({onBlur:P,onFocus:S,onFocusChange:C}),re=Se(B==null?void 0:B.props);delete re.id;let me=kl(B==null?void 0:B.props);return{menuItemProps:{...j,...le(re,me,E?{onFocus:V.onFocus,"data-collection":V["data-collection"],"data-key":V["data-key"]}:V,X,oe,q,fe,M.shouldUseVirtualFocus||E?{onMouseDown:ie=>ie.preventDefault()}:void 0),tabIndex:V.tabIndex!=null&&T&&!M.shouldUseVirtualFocus?-1:V.tabIndex},labelProps:{id:I},descriptionProps:{id:G},keyboardShortcutProps:{id:H},isFocused:W,isFocusVisible:W&&$.isFocused&&Tn()&&!T,isSelected:w,isPressed:Q,isDisabled:z}}function x5(t){let{heading:e,"aria-label":n}=t,r=Ie();return{itemProps:{role:"presentation"},headingProps:e?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":e?r:void 0}}}const mf=new WeakMap;function E5(t,e,n){let{keyboardDelegate:r,isDisabled:i,isRequired:o,name:l,validationBehavior:a="aria"}=t,s=Wl({usage:"search",sensitivity:"base"}),u=c.useMemo(()=>r||new Xl(e.collection,e.disabledKeys,n,s),[r,e.collection,e.disabledKeys,s,n]),{menuTriggerProps:d,menuProps:f}=S5({isDisabled:i,type:"listbox"},e,n),p=L=>{switch(L.key){case"ArrowLeft":{var z,A;L.preventDefault();let B=e.selectedKey!=null?(z=u.getKeyAbove)===null||z===void 0?void 0:z.call(u,e.selectedKey):(A=u.getFirstKey)===null||A===void 0?void 0:A.call(u);B&&e.setSelectedKey(B);break}case"ArrowRight":{var w,M;L.preventDefault();let B=e.selectedKey!=null?(w=u.getKeyBelow)===null||w===void 0?void 0:w.call(u,e.selectedKey):(M=u.getFirstKey)===null||M===void 0?void 0:M.call(u);B&&e.setSelectedKey(B);break}}},{typeSelectProps:g}=_d({keyboardDelegate:u,selectionManager:e.selectionManager,onTypeSelect(L){e.setSelectedKey(L)}}),{isInvalid:y,validationErrors:h,validationDetails:v}=e.displayValidation,{labelProps:m,fieldProps:S,descriptionProps:C,errorMessageProps:P}=xg({...t,labelElementType:"span",isInvalid:y,errorMessage:t.errorMessage||h});g.onKeyDown=g.onKeyDownCapture,delete g.onKeyDownCapture;let $=Se(t,{labelable:!0}),E=le(g,d,S),T=Ie();return mf.set(e,{isDisabled:i,isRequired:o,name:l,validationBehavior:a}),{labelProps:{...m,onClick:()=>{if(!t.isDisabled){var L;(L=n.current)===null||L===void 0||L.focus(),Oc("keyboard")}}},triggerProps:le($,{...E,isDisabled:i,onKeyDown:At(E.onKeyDown,p,t.onKeyDown),onKeyUp:t.onKeyUp,"aria-labelledby":[T,E["aria-labelledby"],E["aria-label"]&&!E["aria-labelledby"]?E.id:null].filter(Boolean).join(" "),onFocus(L){e.isFocused||(t.onFocus&&t.onFocus(L),t.onFocusChange&&t.onFocusChange(!0),e.setFocused(!0))},onBlur(L){e.isOpen||(t.onBlur&&t.onBlur(L),t.onFocusChange&&t.onFocusChange(!1),e.setFocused(!1))}}),valueProps:{id:T},menuProps:{...f,autoFocus:e.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,linkBehavior:"selection",onBlur:L=>{L.currentTarget.contains(L.relatedTarget)||(t.onBlur&&t.onBlur(L),t.onFocusChange&&t.onFocusChange(!1),e.setFocused(!1))},"aria-labelledby":[S["aria-labelledby"],E["aria-label"]&&!S["aria-labelledby"]?E.id:null].filter(Boolean).join(" ")},descriptionProps:C,errorMessageProps:P,isInvalid:y,validationErrors:h,validationDetails:v}}function $5(t,e,n){let r=mf.get(e)||{},{autoComplete:i,name:o=r.name,isDisabled:l=r.isDisabled}=t,{validationBehavior:a,isRequired:s}=r,{visuallyHiddenProps:u}=jc();tp(t.selectRef,e.selectedKey,e.setSelectedKey),bg({validationBehavior:a,focus:()=>{var f;return(f=n.current)===null||f===void 0?void 0:f.focus()}},e,t.selectRef);var d;return{containerProps:{...u,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{style:{display:"none"}},selectProps:{tabIndex:-1,autoComplete:i,disabled:l,required:a==="native"&&s,name:o,value:(d=e.selectedKey)!==null&&d!==void 0?d:void 0,onChange:f=>e.setSelectedKey(f.target.value)}}}function P5(t){let{state:e,triggerRef:n,label:r,name:i,isDisabled:o}=t,l=c.useRef(null),{containerProps:a,selectProps:s}=$5({...t,selectRef:l},e,n);var u;return e.collection.size<=300?c.createElement("div",{...a,"data-testid":"hidden-select-container"},c.createElement("label",null,r,c.createElement("select",{...s,ref:l},c.createElement("option",null),[...e.collection.getKeys()].map(d=>{let f=e.collection.getItem(d);if(f&&f.type==="item")return c.createElement("option",{key:f.key,value:f.key},f.textValue)})))):i?c.createElement("input",{type:"hidden",autoComplete:s.autoComplete,name:i,disabled:o,value:(u=e.selectedKey)!==null&&u!==void 0?u:""}):null}function D5(t){let e=Se(t,{labelable:!0}),n;return t.orientation==="vertical"&&(n="vertical"),t.elementType!=="hr"?{separatorProps:{...e,role:"separator","aria-orientation":n}}:{separatorProps:e}}const yf=new WeakMap;function li(t,e,n){return t?(typeof e=="string"&&(e=e.replace(/\s+/g,"")),`${yf.get(t)}-${n}-${e}`):""}function T5(t,e,n){let{key:r,isDisabled:i,shouldSelectOnPressUp:o}=t,{selectionManager:l,selectedKey:a}=e,s=r===a,u=i||e.isDisabled||e.selectionManager.isDisabled(r),{itemProps:d,isPressed:f}=Zl({selectionManager:l,key:r,ref:n,isDisabled:u,shouldSelectOnPressUp:o,linkBehavior:"selection"}),p=li(e,r,"tab"),g=li(e,r,"tabpanel"),{tabIndex:y}=d,h=e.collection.getItem(r),v=Se(h==null?void 0:h.props,{labelable:!0});delete v.id;let m=kl(h==null?void 0:h.props),{focusableProps:S}=Nc({isDisabled:u},n);return{tabProps:le(v,S,m,d,{id:p,"aria-selected":s,"aria-disabled":u||void 0,"aria-controls":s?g:void 0,tabIndex:u?void 0:y,role:"tab"}),isSelected:s,isDisabled:u,isPressed:f}}function _5(t,e,n){let r=Bg(n)?void 0:0;var i;const o=li(e,(i=t.id)!==null&&i!==void 0?i:e==null?void 0:e.selectedKey,"tabpanel"),l=wi({...t,id:o,"aria-labelledby":li(e,e==null?void 0:e.selectedKey,"tab")});return{tabPanelProps:le(l,{tabIndex:r,role:"tabpanel","aria-describedby":t["aria-describedby"],"aria-details":t["aria-details"]})}}class I5{getKeyLeftOf(e){return this.flipDirection?this.getNextKey(e):this.getPreviousKey(e)}getKeyRightOf(e){return this.flipDirection?this.getPreviousKey(e):this.getNextKey(e)}isDisabled(e){var n,r;return this.disabledKeys.has(e)||!!(!((r=this.collection.getItem(e))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled)}getFirstKey(){let e=this.collection.getFirstKey();return e!=null&&this.isDisabled(e)&&(e=this.getNextKey(e)),e}getLastKey(){let e=this.collection.getLastKey();return e!=null&&this.isDisabled(e)&&(e=this.getPreviousKey(e)),e}getKeyAbove(e){return this.tabDirection?null:this.getPreviousKey(e)}getKeyBelow(e){return this.tabDirection?null:this.getNextKey(e)}getNextKey(e){let n=e;do n=this.collection.getKeyAfter(n),n==null&&(n=this.collection.getFirstKey());while(n!=null&&this.isDisabled(n));return n}getPreviousKey(e){let n=e;do n=this.collection.getKeyBefore(n),n==null&&(n=this.collection.getLastKey());while(n!=null&&this.isDisabled(n));return n}constructor(e,n,r,i=new Set){this.collection=e,this.flipDirection=n==="rtl"&&r==="horizontal",this.disabledKeys=i,this.tabDirection=r==="horizontal"}}function O5(t,e,n){let{orientation:r="horizontal",keyboardActivation:i="automatic"}=t,{collection:o,selectionManager:l,disabledKeys:a}=e,{direction:s}=qt(),u=c.useMemo(()=>new I5(o,s,r,a),[o,a,r,s]),{collectionProps:d}=Id({ref:n,selectionManager:l,keyboardDelegate:u,selectOnFocus:i==="automatic",disallowEmptySelection:!0,scrollRef:n,linkBehavior:"selection"}),f=Ie();yf.set(e,f);let p=wi({...t,id:f});return{tabListProps:{...le(d,p),role:"tablist","aria-orientation":r,tabIndex:void 0}}}const bf=c.createContext({}),k5=Kl(function(e,n){[e,n]=pt(e,n,bf);let{elementType:r="label",...i}=e;return c.createElement(r,{className:"react-aria-Label",...i,ref:n})}),N5=c.createContext(null),R5=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),Sf=c.createContext({}),M5=Kl(function(e,n){[e,n]=pt(e,n,Sf),e=L5(e);let r=e,{isPending:i}=r,{buttonProps:o,isPressed:l}=mg(e,n),{focusProps:a,isFocused:s,isFocusVisible:u}=Ln(e),{hoverProps:d,isHovered:f}=Mn({...e,isDisabled:e.isDisabled||i}),p={isHovered:f,isPressed:(r.isPressed||l)&&!i,isFocused:s,isFocusVisible:u,isDisabled:e.isDisabled||!1,isPending:i??!1},g=Le({...e,values:p,defaultClassName:"react-aria-Button"}),y=Ie(o.id),h=Ie(),v=o["aria-labelledby"];i&&(v?v=`${v} ${h}`:o["aria-label"]&&(v=`${y} ${h}`));let m=c.useRef(i);return c.useEffect(()=>{let S={"aria-labelledby":v||y};(!m.current&&s&&i||m.current&&s&&!i)&&Ja(S,"assertive"),m.current=i},[i,s,v,y]),c.createElement("button",{...Se(e,{propNames:R5}),...le(o,a,d),...g,type:o.type==="submit"&&i?"button":o.type,id:y,ref:n,"aria-labelledby":v,slot:e.slot||void 0,"aria-disabled":i?"true":o["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":p.isPressed||void 0,"data-hovered":f||void 0,"data-focused":s||void 0,"data-pending":i||void 0,"data-focus-visible":u||void 0},c.createElement(N5.Provider,{value:{id:h}},g.children))});function L5(t){return t.isPending&&(t.onPress=void 0,t.onPressStart=void 0,t.onPressEnd=void 0,t.onPressChange=void 0,t.onPressUp=void 0,t.onKeyDown=void 0,t.onKeyUp=void 0,t.onClick=void 0,t.href=void 0),t}const Jl=c.createContext({}),A5=c.createContext(null);function Ii(t,e,n){let[r,i]=c.useState(t||e),o=c.useRef(t!==void 0),l=t!==void 0;c.useEffect(()=>{let u=o.current;u!==l&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${u?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}.`),o.current=l},[l]);let a=l?t:r,s=c.useCallback((u,...d)=>{let f=(p,...g)=>{n&&(Object.is(a,p)||n(p,...g)),l||(a=p)};typeof u=="function"?(process.env.NODE_ENV!=="production"&&console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((g,...y)=>{let h=u(l?a:g,...y);return f(h,...d),l?g:h})):(l||i(u),f(u,...d))},[l,a,n]);return[a,s]}const Cf={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},wf={...Cf,customError:!0,valid:!1},Bn={isInvalid:!1,validationDetails:Cf,validationErrors:[]},K5=c.createContext({}),ms="__formValidationState"+Date.now();function F5(t){if(t[ms]){let{realtimeValidation:e,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}=t[ms];return{realtimeValidation:e,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}}return j5(t)}function j5(t){let{isInvalid:e,validationState:n,name:r,value:i,builtinValidation:o,validate:l,validationBehavior:a="aria"}=t;n&&(e||(e=n==="invalid"));let s=e!==void 0?{isInvalid:e,validationErrors:[],validationDetails:wf}:null,u=c.useMemo(()=>{if(!l||i==null)return null;let A=H5(l,i);return ys(A)},[l,i]);o!=null&&o.validationDetails.valid&&(o=void 0);let d=c.useContext(K5),f=c.useMemo(()=>r?Array.isArray(r)?r.flatMap(A=>rl(d[A])):rl(d[r]):[],[d,r]),[p,g]=c.useState(d),[y,h]=c.useState(!1);d!==p&&(g(d),h(!1));let v=c.useMemo(()=>ys(y?[]:f),[y,f]),m=c.useRef(Bn),[S,C]=c.useState(Bn),P=c.useRef(Bn),$=()=>{if(!E)return;T(!1);let A=u||o||m.current;so(A,P.current)||(P.current=A,C(A))},[E,T]=c.useState(!1);return c.useEffect($),{realtimeValidation:s||v||u||o||Bn,displayValidation:a==="native"?s||v||S:s||v||u||o||S,updateValidation(A){a==="aria"&&!so(S,A)?C(A):m.current=A},resetValidation(){let A=Bn;so(A,P.current)||(P.current=A,C(A)),a==="native"&&T(!1),h(!0)},commitValidation(){a==="native"&&T(!0),h(!0)}}}function rl(t){return t?Array.isArray(t)?t:[t]:[]}function H5(t,e){if(typeof t=="function"){let n=t(e);if(n&&typeof n!="boolean")return rl(n)}return[]}function ys(t){return t.length?{isInvalid:!0,validationErrors:t,validationDetails:wf}:null}function so(t,e){return t===e?!0:!!t&&!!e&&t.isInvalid===e.isInvalid&&t.validationErrors.length===e.validationErrors.length&&t.validationErrors.every((n,r)=>n===e.validationErrors[r])&&Object.entries(t.validationDetails).every(([n,r])=>e.validationDetails[n]===r)}class z5{build(e,n){return this.context=n,bs(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:n,items:r}=e;if(c.isValidElement(n)&&n.type===c.Fragment)yield*this.iterateCollection({children:n.props.children,items:r});else if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let i=0;for(let o of r)yield*this.getFullNode({value:o,index:i},{renderer:n}),i++}else{let i=[];c.Children.forEach(n,l=>{l&&i.push(l)});let o=0;for(let l of i){let a=this.getFullNode({element:l,index:o},{});for(let s of a)o++,yield s}}}getKey(e,n,r,i){if(e.key!=null)return e.key;if(n.type==="cell"&&n.key!=null)return`${i}${n.key}`;let o=n.value;if(o!=null){var l;let a=(l=o.key)!==null&&l!==void 0?l:o.id;if(a==null)throw new Error("No key found for item");return a}return i?`${i}.${n.index}`:`$.${n.index}`}getChildState(e,n){return{renderer:n.renderer||e.renderer}}*getFullNode(e,n,r,i){if(c.isValidElement(e.element)&&e.element.type===c.Fragment){let v=[];c.Children.forEach(e.element.props.children,S=>{v.push(S)});var o;let m=(o=e.index)!==null&&o!==void 0?o:0;for(const S of v)yield*this.getFullNode({element:S,index:m++},n,r,i);return}let l=e.element;if(!l&&e.value&&n&&n.renderer){let v=this.cache.get(e.value);if(v&&(!v.shouldInvalidate||!v.shouldInvalidate(this.context))){v.index=e.index,v.parentKey=i?i.key:null,yield v;return}l=n.renderer(e.value)}if(c.isValidElement(l)){let v=l.type;if(typeof v!="function"&&typeof v.getCollectionNode!="function"){let P=l.type;throw new Error(`Unknown element <${P}> in collection.`)}let m=v.getCollectionNode(l.props,this.context);var a;let S=(a=e.index)!==null&&a!==void 0?a:0,C=m.next();for(;!C.done&&C.value;){let P=C.value;e.index=S;var s;let $=(s=P.key)!==null&&s!==void 0?s:null;$==null&&($=P.element?null:this.getKey(l,e,n,r));let T=[...this.getFullNode({...P,key:$,index:S,wrapper:V5(e.wrapper,P.wrapper)},this.getChildState(n,P),r?`${r}${l.key}`:l.key,i)];for(let L of T){var u,d;L.value=(d=(u=P.value)!==null&&u!==void 0?u:e.value)!==null&&d!==void 0?d:null,L.value&&this.cache.set(L.value,L);var f;if(e.type&&L.type!==e.type)throw new Error(`Unsupported type <${uo(L.type)}> in <${uo((f=i==null?void 0:i.type)!==null&&f!==void 0?f:"unknown parent type")}>. Only <${uo(e.type)}> is supported.`);S++,yield L}C=m.next(T)}return}if(e.key==null||e.type==null)return;let p=this;var g,y;let h={type:e.type,props:e.props,key:e.key,parentKey:i?i.key:null,value:(g=e.value)!==null&&g!==void 0?g:null,level:i?i.level+1:0,index:e.index,rendered:e.rendered,textValue:(y=e.textValue)!==null&&y!==void 0?y:"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:bs(function*(){if(!e.hasChildNodes||!e.childNodes)return;let v=0;for(let m of e.childNodes()){m.key!=null&&(m.key=`${h.key}${m.key}`);let S=p.getFullNode({...m,index:v},p.getChildState(n,m),h.key,h);for(let C of S)v++,yield C}})};yield h}constructor(){this.cache=new WeakMap}}function bs(t){let e=[],n=null;return{*[Symbol.iterator](){for(let r of e)yield r;n||(n=t());for(let r of n)e.push(r),yield r}}}function V5(t,e){if(t&&e)return n=>t(e(n));if(t)return t;if(e)return e}function uo(t){return t[0].toUpperCase()+t.slice(1)}function xf(t,e,n){let r=c.useMemo(()=>new z5,[]),{children:i,items:o,collection:l}=t;return c.useMemo(()=>{if(l)return l;let s=r.build({children:i,items:o},n);return e(s)},[r,i,o,l,n,e])}function B5(t,e){return typeof e.getChildren=="function"?e.getChildren(t.key):t.childNodes}function U5(t){return W5(t)}function W5(t,e){for(let n of t)return n}function co(t,e,n){if(e.parentKey===n.parentKey)return e.index-n.index;let r=[...Ss(t,e),e],i=[...Ss(t,n),n],o=r.slice(0,i.length).findIndex((l,a)=>l!==i[a]);return o!==-1?(e=r[o],n=i[o],e.index-n.index):r.findIndex(l=>l===n)>=0?1:(i.findIndex(l=>l===e)>=0,-1)}function Ss(t,e){let n=[],r=e;for(;(r==null?void 0:r.parentKey)!=null;)r=t.getItem(r.parentKey),r&&n.unshift(r);return n}class Cs{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let n=this.keyMap.get(e);var r;return n&&(r=n.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(e){let n=this.keyMap.get(e);var r;return n&&(r=n.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var n;return(n=this.keyMap.get(e))!==null&&n!==void 0?n:null}at(e){const n=[...this.getKeys()];return this.getItem(n[e])}getChildren(e){let n=this.keyMap.get(e);return(n==null?void 0:n.childNodes)||[]}constructor(e){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let n=l=>{if(this.keyMap.set(l.key,l),l.childNodes&&l.type==="section")for(let a of l.childNodes)n(a)};for(let l of e)n(l);let r=null,i=0;for(let[l,a]of this.keyMap)r?(r.nextKey=l,a.prevKey=r.key):(this.firstKey=l,a.prevKey=void 0),a.type==="item"&&(a.index=i++),r=a,r.nextKey=void 0;var o;this.lastKey=(o=r==null?void 0:r.key)!==null&&o!==void 0?o:null}}let st=class Ef extends Set{constructor(e,n,r){super(e),e instanceof Ef?(this.anchorKey=n??e.anchorKey,this.currentKey=r??e.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}};function G5(t,e){if(t.size!==e.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function $f(t){let{selectionMode:e="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:o="all"}=t,l=c.useRef(!1),[,a]=c.useState(!1),s=c.useRef(null),u=c.useRef(null),[,d]=c.useState(null),f=c.useMemo(()=>ws(t.selectedKeys),[t.selectedKeys]),p=c.useMemo(()=>ws(t.defaultSelectedKeys,new st),[t.defaultSelectedKeys]),[g,y]=Ii(f,p,t.onSelectionChange),h=c.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),[v,m]=c.useState(i);i==="replace"&&v==="toggle"&&typeof g=="object"&&g.size===0&&m("replace");let S=c.useRef(i);return c.useEffect(()=>{i!==S.current&&(m(i),S.current=i)},[i]),{selectionMode:e,disallowEmptySelection:n,selectionBehavior:v,setSelectionBehavior:m,get isFocused(){return l.current},setFocused(C){l.current=C,a(C)},get focusedKey(){return s.current},get childFocusStrategy(){return u.current},setFocusedKey(C,P="first"){s.current=C,u.current=P,d(C)},selectedKeys:g,setSelectedKeys(C){(r||!G5(C,g))&&y(C)},disabledKeys:h,disabledBehavior:o}}function ws(t,e){return t?t==="all"?"all":new st(t):e}let Pf=class Df{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,n){(e==null||this.collection.getItem(e))&&this.state.setFocusedKey(e,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if(this.state.selectionMode==="none")return!1;let n=this.getKey(e);return n==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(n):this.state.selectedKeys.has(n)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let e=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=e.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!e||i&&co(this.collection,i,e)<0)&&(e=i)}var n;return(n=e==null?void 0:e.key)!==null&&n!==void 0?n:null}get lastSelectedKey(){let e=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!e||i&&co(this.collection,i,e)>0)&&(e=i)}var n;return(n=e==null?void 0:e.key)!==null&&n!==void 0?n:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(e);return}let n=this.getKey(e);if(n==null)return;let r;if(this.state.selectedKeys==="all")r=new st([n],n,n);else{let l=this.state.selectedKeys;var i;let a=(i=l.anchorKey)!==null&&i!==void 0?i:n;r=new st(l,a,n);var o;for(let s of this.getKeyRange(a,(o=l.currentKey)!==null&&o!==void 0?o:n))r.delete(s);for(let s of this.getKeyRange(n,a))this.canSelectItem(s)&&r.add(s)}this.state.setSelectedKeys(r)}getKeyRange(e,n){let r=this.collection.getItem(e),i=this.collection.getItem(n);return r&&i?co(this.collection,r,i)<=0?this.getKeyRangeInternal(e,n):this.getKeyRangeInternal(n,e):[]}getKeyRangeInternal(e,n){var r;if(!((r=this.layoutDelegate)===null||r===void 0)&&r.getKeyRange)return this.layoutDelegate.getKeyRange(e,n);let i=[],o=e;for(;o!=null;){let l=this.collection.getItem(o);if(l&&(l.type==="item"||l.type==="cell"&&this.allowsCellSelection)&&i.push(o),o===n)return i;o=this.collection.getKeyAfter(o)}return[]}getKey(e){let n=this.collection.getItem(e);if(!n||n.type==="cell"&&this.allowsCellSelection)return e;for(;n&&n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(e)){this.replaceSelection(e);return}let n=this.getKey(e);if(n==null)return;let r=new st(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(n)?r.delete(n):this.canSelectItem(n)&&(r.add(n),r.anchorKey=n,r.currentKey=n),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(e){if(this.selectionMode==="none")return;let n=this.getKey(e);if(n==null)return;let r=this.canSelectItem(n)?new st([n],n,n):new st;this.state.setSelectedKeys(r)}setSelectedKeys(e){if(this.selectionMode==="none")return;let n=new st;for(let r of e){let i=this.getKey(r);if(i!=null&&(n.add(i),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let e=[],n=r=>{for(;r!=null;){if(this.canSelectItem(r)){var i;let l=this.collection.getItem(r);(l==null?void 0:l.type)==="item"&&e.push(r);var o;l!=null&&l.hasChildNodes&&(this.allowsCellSelection||l.type!=="item")&&n((o=(i=U5(B5(l,this.collection)))===null||i===void 0?void 0:i.key)!==null&&o!==void 0?o:null)}r=this.collection.getKeyAfter(r)}};return n(this.collection.getFirstKey()),e}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new st)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(e.size!==n.size)return!1;for(let r of e)if(!n.has(r))return!1;for(let r of n)if(!e.has(r))return!1;return!0}canSelectItem(e){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(e))return!1;let r=this.collection.getItem(e);return!(!r||!(r==null||(n=r.props)===null||n===void 0)&&n.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(e){var n,r;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(e)||!!(!((r=this.collection.getItem(e))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled))}isLink(e){var n,r;return!!(!((r=this.collection.getItem(e))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}getItemProps(e){var n;return(n=this.collection.getItem(e))===null||n===void 0?void 0:n.props}withCollection(e){return new Df(e,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(e,n,r){this.collection=e,this.state=n;var i;this.allowsCellSelection=(i=r==null?void 0:r.allowsCellSelection)!==null&&i!==void 0?i:!1,this._isSelectAll=null,this.layoutDelegate=(r==null?void 0:r.layoutDelegate)||null}};function Tf(t){let{filter:e,layoutDelegate:n}=t,r=$f(t),i=c.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),o=c.useCallback(u=>e?new Cs(e(u)):new Cs(u),[e]),l=c.useMemo(()=>({suppressTextValueWarning:t.suppressTextValueWarning}),[t.suppressTextValueWarning]),a=xf(t,o,l),s=c.useMemo(()=>new Pf(a,r,{layoutDelegate:n}),[a,r,n]);return _f(a,s),{collection:a,disabledKeys:i,selectionManager:s}}function q5(t,e){let n=c.useMemo(()=>e?t.collection.UNSTABLE_filter(e):t.collection,[t.collection,e]),r=t.selectionManager.withCollection(n);return _f(n,r),{collection:n,selectionManager:r,disabledKeys:t.disabledKeys}}function _f(t,e){const n=c.useRef(null);c.useEffect(()=>{if(e.focusedKey!=null&&!t.getItem(e.focusedKey)&&n.current){const d=n.current.getItem(e.focusedKey),f=[...n.current.getKeys()].map(m=>{const S=n.current.getItem(m);return(S==null?void 0:S.type)==="item"?S:null}).filter(m=>m!==null),p=[...t.getKeys()].map(m=>{const S=t.getItem(m);return(S==null?void 0:S.type)==="item"?S:null}).filter(m=>m!==null);var r,i;const g=((r=f==null?void 0:f.length)!==null&&r!==void 0?r:0)-((i=p==null?void 0:p.length)!==null&&i!==void 0?i:0);var o,l,a;let y=Math.min(g>1?Math.max(((o=d==null?void 0:d.index)!==null&&o!==void 0?o:0)-g+1,0):(l=d==null?void 0:d.index)!==null&&l!==void 0?l:0,((a=p==null?void 0:p.length)!==null&&a!==void 0?a:0)-1),h=null,v=!1;for(;y>=0;){if(!e.isDisabled(p[y].key)){h=p[y];break}if(y<p.length-1&&!v)y++;else{v=!0;var s,u;y>((s=d==null?void 0:d.index)!==null&&s!==void 0?s:0)&&(y=(u=d==null?void 0:d.index)!==null&&u!==void 0?u:0),y--}}e.setFocusedKey(h?h.key:null)}n.current=t},[t,e])}function If(t){var e;let[n,r]=Ii(t.selectedKey,(e=t.defaultSelectedKey)!==null&&e!==void 0?e:null,t.onSelectionChange),i=c.useMemo(()=>n!=null?[n]:[],[n]),{collection:o,disabledKeys:l,selectionManager:a}=Tf({...t,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:i,onSelectionChange:u=>{if(u==="all")return;var d;let f=(d=u.values().next().value)!==null&&d!==void 0?d:null;f===n&&t.onSelectionChange&&t.onSelectionChange(f),r(f)}}),s=n!=null?o.getItem(n):null;return{collection:o,disabledKeys:l,selectionManager:a,selectedKey:n,setSelectedKey:r,selectedItem:s}}function Ql(t){let[e,n]=Ii(t.isOpen,t.defaultOpen||!1,t.onOpenChange);const r=c.useCallback(()=>{n(!0)},[n]),i=c.useCallback(()=>{n(!1)},[n]),o=c.useCallback(()=>{n(!e)},[n,e]);return{isOpen:e,setOpen:n,open:r,close:i,toggle:o}}function Y5(t){let{initialItems:e=[],initialSelectedKeys:n,getKey:r=h=>{var v;return(v=h.id)!==null&&v!==void 0?v:h.key},getChildren:i=h=>h.children}=t,[o,l]=c.useState(()=>f(e,new Map)),{items:a,nodeMap:s}=o,[u,d]=c.useState(new Set(n||[]));function f(h=[],v,m){return h==null&&(h=[]),{items:h.map(S=>{let C={key:r(S),parentKey:m,value:S,children:null};return C.children=f(i(S),v,C.key).items,v.set(C.key,C),C}),nodeMap:v}}function p(h,v,m,S){let C=S.get(v);if(!C)return{items:h,nodeMap:S};let P=new Map(S),$=m(C);for($==null?y(C,P):g($,P);C&&C.parentKey;){let T=P.get(C.parentKey),L={key:T.key,parentKey:T.parentKey,value:T.value,children:null},z=T.children;$==null&&z&&(z=z.filter(A=>A!==C));var E;L.children=(E=z==null?void 0:z.map(A=>A===C?$:A))!==null&&E!==void 0?E:null,P.set(L.key,L),$=L,C=T}return $==null&&(h=h.filter(T=>T!==C)),{items:h.map(T=>T===C?$:T),nodeMap:P}}function g(h,v){if(v.set(h.key,h),h.children)for(let m of h.children)g(m,v)}function y(h,v){if(v.delete(h.key),h.children)for(let m of h.children)y(m,v)}return{items:a,selectedKeys:u,setSelectedKeys:d,getItem(h){return s.get(h)},insert(h,v,...m){l(({items:S,nodeMap:C})=>{let{items:P,nodeMap:$}=f(m,C,h);return h==null?{items:[...S.slice(0,v),...P,...S.slice(v)],nodeMap:$}:p(S,h,E=>({key:E.key,parentKey:E.parentKey,value:E.value,children:[...E.children.slice(0,v),...P,...E.children.slice(v)]}),$)})},insertBefore(h,...v){let m=s.get(h);if(!m)return;let S=s.get(m.parentKey),P=(S?S.children:a).indexOf(m);var $;this.insert(($=S==null?void 0:S.key)!==null&&$!==void 0?$:null,P,...v)},insertAfter(h,...v){let m=s.get(h);if(!m)return;let S=s.get(m.parentKey),P=(S?S.children:a).indexOf(m);var $;this.insert(($=S==null?void 0:S.key)!==null&&$!==void 0?$:null,P+1,...v)},prepend(h,...v){this.insert(h,0,...v)},append(h,...v){if(h==null)this.insert(null,a.length,...v);else{let m=s.get(h);if(!m)return;this.insert(h,m.children.length,...v)}},remove(...h){if(h.length===0)return;let v=a,m=s,S;for(let P of h)S=p(v,P,()=>null,m),m=S.nodeMap,v=S.items;l(S);let C=new Set(u);for(let P of u)S.nodeMap.has(P)||C.delete(P);d(C)},removeSelectedItems(){this.remove(...u)},move(h,v,m){l(({items:S,nodeMap:C})=>{let P=C.get(h);if(!P)return{items:S,nodeMap:C};let{items:$,nodeMap:E}=p(S,h,()=>null,C);const T={...P,parentKey:v};return v==null?(E.set(T.key,T),{items:[...$.slice(0,m),T,...$.slice(m)],nodeMap:E}):p($,v,L=>({key:L.key,parentKey:L.parentKey,value:L.value,children:[...L.children.slice(0,m),T,...L.children.slice(m)]}),E)})},update(h,v){l(({items:m,nodeMap:S})=>p(m,h,C=>{let P={key:C.key,parentKey:C.parentKey,value:v,children:null},$=f(i(v),S,P.key);return P.children=$.items,P},S))}}}function Z5(t){let e=Ql(t),[n,r]=c.useState(null),[i,o]=c.useState([]),l=()=>{o([]),e.close()};return{focusStrategy:n,...e,open(u=null){r(u),e.open()},toggle(u=null){r(u),e.toggle()},close(){l()},expandedKeysStack:i,openSubmenu:(u,d)=>{o(f=>d>f.length?f:[...f.slice(0,d),u])},closeSubmenu:(u,d)=>{o(f=>f[d]===u?f.slice(0,d):f)}}}function X5(t){let e=Ql(t),[n,r]=c.useState(null),i=If({...t,onSelectionChange:s=>{t.onSelectionChange!=null&&t.onSelectionChange(s),e.close(),o.commitValidation()}}),o=F5({...t,value:i.selectedKey}),[l,a]=c.useState(!1);return{...o,...i,...e,focusStrategy:n,open(s=null){i.collection.size!==0&&(r(s),e.open())},toggle(s=null){i.collection.size!==0&&(r(s),e.toggle())},isFocused:l,setFocused:a}}function J5(t){var e,n;let r=If({...t,suppressTextValueWarning:!0,defaultSelectedKey:(n=(e=t.defaultSelectedKey)!==null&&e!==void 0?e:xs(t.collection,t.disabledKeys?new Set(t.disabledKeys):new Set))!==null&&n!==void 0?n:void 0}),{selectionManager:i,collection:o,selectedKey:l}=r,a=c.useRef(l);return c.useEffect(()=>{let s=l;t.selectedKey==null&&(i.isEmpty||s==null||!o.getItem(s))&&(s=xs(o,r.disabledKeys),s!=null&&i.setSelectedKeys([s])),(s!=null&&i.focusedKey==null||!i.isFocused&&s!==a.current)&&i.setFocusedKey(s),a.current=s}),{...r,isDisabled:t.isDisabled||!1}}function xs(t,e){let n=null;if(t){var r,i,o,l;for(n=t.getFirstKey();n!=null&&(e.has(n)||!((i=t.getItem(n))===null||i===void 0||(r=i.props)===null||r===void 0)&&r.isDisabled)&&n!==t.getLastKey();)n=t.getKeyAfter(n);n!=null&&(e.has(n)||!((l=t.getItem(n))===null||l===void 0||(o=l.props)===null||o===void 0)&&o.isDisabled)&&n===t.getLastKey()&&(n=t.getFirstKey())}return n}class Q5{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let n=this.keyMap.get(e);var r;return n&&(r=n.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(e){let n=this.keyMap.get(e);var r;return n&&(r=n.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var n;return(n=this.keyMap.get(e))!==null&&n!==void 0?n:null}at(e){const n=[...this.getKeys()];return this.getItem(n[e])}constructor(e,{expandedKeys:n}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e,n=n||new Set;let r=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&(a.type==="section"||n.has(a.key)))for(let s of a.childNodes)r(s)};for(let a of e)r(a);let i=null,o=0;for(let[a,s]of this.keyMap)i?(i.nextKey=a,s.prevKey=i.key):(this.firstKey=a,s.prevKey=void 0),s.type==="item"&&(s.index=o++),i=s,i.nextKey=void 0;var l;this.lastKey=(l=i==null?void 0:i.key)!==null&&l!==void 0?l:null}}function ev(t){let{onExpandedChange:e}=t,[n,r]=Ii(t.expandedKeys?new Set(t.expandedKeys):void 0,t.defaultExpandedKeys?new Set(t.defaultExpandedKeys):new Set,e),i=$f(t),o=c.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),l=xf(t,c.useCallback(s=>new Q5(s,{expandedKeys:n}),[n]),null);return c.useEffect(()=>{i.focusedKey!=null&&!l.getItem(i.focusedKey)&&i.setFocusedKey(null)},[l,i.focusedKey]),{collection:l,expandedKeys:n,disabledKeys:o,toggleKey:s=>{r(tv(n,s))},setExpandedKeys:r,selectionManager:new Pf(l,i)}}function tv(t,e){let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n}const nv=c.createContext(null),il=c.createContext(null),Of=c.createContext(null),kf={CollectionRoot({collection:t,renderDropIndicator:e}){return Es(t,null,e)},CollectionBranch({collection:t,parent:e,renderDropIndicator:n}){return Es(t,e,n)}};function Es(t,e,n){return Sc({items:e?t.getChildren(e.key):t,dependencies:[n],children(r){var i;let o=r.render(r);if(!n||r.type!=="item")return o;let l=r.key,a=t.getKeyAfter(l);return c.createElement(c.Fragment,null,n({type:"item",key:l,dropPosition:"before"}),o,(a==null||((i=t.getItem(a))===null||i===void 0?void 0:i.type)!=="item")&&n({type:"item",key:l,dropPosition:"after"}))}})}const Yt=c.createContext(kf);function Nf(t){return c.useMemo(()=>t!=null?new Set([t]):null,[t])}const Oi=c.createContext({}),Rf=c.createContext(null),rv=c.forwardRef(function(e,n){let{render:r}=c.useContext(Rf);return c.createElement(c.Fragment,null,r(e,n))});function Mf(t,e){var n;let r=t==null?void 0:t.renderDropIndicator,i=t==null||(n=t.isVirtualDragging)===null||n===void 0?void 0:n.call(t),o=c.useCallback(l=>{if(i||e!=null&&e.isDropTarget(l))return r?r(l):c.createElement(rv,{target:l})},[e==null?void 0:e.target,i,r]);return t!=null&&t.useDropIndicator?o:void 0}function iv(t,e,n){var r,i;let o=t.focusedKey,l=null;if(!(e==null||(r=e.isVirtualDragging)===null||r===void 0)&&r.call(e)&&(n==null||(i=n.target)===null||i===void 0?void 0:i.type)==="item"){l=n.target.key;var a;n.target.dropPosition==="after"&&(l=(a=n.collection.getKeyAfter(l))!==null&&a!==void 0?a:l)}return c.useMemo(()=>new Set([o,l].filter(s=>s!=null)),[o,l])}const Lf=c.createContext({}),ea=c.createContext({}),Af=$i("separator",function(e,n){[e,n]=pt(e,n,ea);let{elementType:r,orientation:i,style:o,className:l,slot:a,...s}=e,u=r||"hr";u==="hr"&&i==="vertical"&&(u="div");let{separatorProps:d}=D5({...s,elementType:r,orientation:i});return c.createElement(u,{...Se(e),...d,style:o,className:l??"react-aria-Separator",ref:n,slot:a||void 0})}),ta=c.createContext(null),fr=c.createContext(null),ov=c.forwardRef(function(e,n){[e,n]=pt(e,n,ta);let r=c.useContext(fr);return r?c.createElement(Kf,{state:r,props:e,listBoxRef:n}):c.createElement(Ei,{content:c.createElement(Hl,e)},i=>c.createElement(lv,{props:e,listBoxRef:n,collection:i}))});function lv({props:t,listBoxRef:e,collection:n}){t={...t,collection:n,children:null,items:null};let{layoutDelegate:r}=c.useContext(Yt),i=Tf({...t,layoutDelegate:r});return c.createElement(Kf,{state:i,props:t,listBoxRef:e})}function Kf({state:t,props:e,listBoxRef:n}){let{filter:r,collectionProps:i,collectionRef:o}=c.useContext(il)||{};e=c.useMemo(()=>i?{...e,...i}:e,[e,i]);let{dragAndDropHooks:l,layout:a="stack",orientation:s="vertical"}=e;n=ht(c.useMemo(()=>Tl(n,o!==void 0?o:null),[o,n]));let u=q5(t,r),{collection:d,selectionManager:f}=u,p=!!(l!=null&&l.useDraggableCollectionState),g=!!(l!=null&&l.useDroppableCollectionState),{direction:y}=qt(),{disabledBehavior:h,disabledKeys:v}=f,m=Wl({usage:"search",sensitivity:"base"}),{isVirtualized:S,layoutDelegate:C,dropTargetDelegate:P,CollectionRoot:$}=c.useContext(Yt),E=c.useMemo(()=>e.keyboardDelegate||new Xl({collection:d,collator:m,ref:n,disabledKeys:v,disabledBehavior:h,layout:a,orientation:s,direction:y,layoutDelegate:C}),[d,m,n,h,v,s,y,e.keyboardDelegate,a,C]),{listBoxProps:T}=p5({...e,shouldSelectOnPressUp:p||e.shouldSelectOnPressUp,keyboardDelegate:E,isVirtualized:S},u,n),L=c.useRef(p),z=c.useRef(g);c.useEffect(()=>{process.env.NODE_ENV!=="production"&&(L.current!==p&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),z.current!==g&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."))},[p,g]);let A,w,M,B=!1,R=null,U=c.useRef(null);if(p&&l){A=l.useDraggableCollectionState({collection:d,selectionManager:f,preview:l.renderDragPreview?U:void 0}),l.useDraggableCollection({},A,n);let O=l.DragPreview;R=l.renderDragPreview?c.createElement(O,{ref:U},l.renderDragPreview):null}if(g&&l){w=l.useDroppableCollectionState({collection:d,selectionManager:f});let O=l.dropTargetDelegate||P||new l.ListDropTargetDelegate(d,n,{orientation:s,layout:a,direction:y});M=l.useDroppableCollection({keyboardDelegate:E,dropTargetDelegate:O},w,n),B=w.isDropTarget({type:"root"})}let{focusProps:x,isFocused:N,isFocusVisible:I}=Ln(),G={isDropTarget:B,isEmpty:u.collection.size===0,isFocused:N,isFocusVisible:I,layout:e.layout||"stack",state:u},H=Le({className:e.className,style:e.style,defaultClassName:"react-aria-ListBox",values:G}),j=null;return u.collection.size===0&&e.renderEmptyState&&(j=c.createElement("div",{role:"option",style:{display:"contents"}},e.renderEmptyState(G))),c.createElement(Gl,null,c.createElement("div",{...Se(e),...le(T,x,M==null?void 0:M.collectionProps),...H,ref:n,slot:e.slot||void 0,onScroll:e.onScroll,"data-drop-target":B||void 0,"data-empty":u.collection.size===0||void 0,"data-focused":N||void 0,"data-focus-visible":I||void 0,"data-layout":e.layout||"stack","data-orientation":e.orientation||"vertical"},c.createElement($t,{values:[[ta,e],[fr,u],[Oi,{dragAndDropHooks:l,dragState:A,dropState:w}],[ea,{elementType:"div"}],[Rf,{render:uv}],[Of,{name:"ListBoxSection",render:av}]]},c.createElement($,{collection:d,scrollRef:n,persistedKeys:iv(f,l,w),renderDropIndicator:Mf(l,w)})),j,R))}function av(t,e,n,r="react-aria-ListBoxSection"){let i=c.useContext(fr),{dragAndDropHooks:o,dropState:l}=c.useContext(Oi),{CollectionBranch:a}=c.useContext(Yt),[s,u]=Ml();var d;let{headingProps:f,groupProps:p}=y5({heading:u,"aria-label":(d=t["aria-label"])!==null&&d!==void 0?d:void 0}),g=Le({defaultClassName:r,className:t.className,style:t.style,values:{}});return c.createElement("section",{...Se(t),...p,...g,ref:e},c.createElement(Lf.Provider,{value:{...f,ref:s}},c.createElement(a,{collection:i.collection,parent:n,renderDropIndicator:Mf(o,l)})))}const sv=$i("item",function(e,n,r){let i=ht(n),o=c.useContext(fr),{dragAndDropHooks:l,dragState:a,dropState:s}=c.useContext(Oi),{optionProps:u,labelProps:d,descriptionProps:f,...p}=m5({key:r.key,"aria-label":e==null?void 0:e["aria-label"]},o,i),{hoverProps:g,isHovered:y}=Mn({isDisabled:!p.allowsSelection&&!p.hasAction,onHoverStart:r.props.onHoverStart,onHoverChange:r.props.onHoverChange,onHoverEnd:r.props.onHoverEnd}),h=null;a&&l&&(h=l.useDraggableItem({key:r.key},a));let v=null;s&&l&&(v=l.useDroppableItem({target:{type:"item",key:r.key,dropPosition:"on"}},s,i));let m=a&&a.isDragging(r.key),S=Le({...e,id:void 0,children:e.children,defaultClassName:"react-aria-ListBoxItem",values:{...p,isHovered:y,selectionMode:o.selectionManager.selectionMode,selectionBehavior:o.selectionManager.selectionBehavior,allowsDragging:!!a,isDragging:m,isDropTarget:v==null?void 0:v.isDropTarget}});c.useEffect(()=>{!r.textValue&&process.env.NODE_ENV!=="production"&&console.warn("A `textValue` prop is required for <ListBoxItem> elements with non-plain text children in order to support accessibility features such as type to select.")},[r.textValue]);let C=e.href?"a":"div";return c.createElement(C,{...le(u,g,h==null?void 0:h.dragProps,v==null?void 0:v.dropProps),...S,ref:i,"data-allows-dragging":!!a||void 0,"data-selected":p.isSelected||void 0,"data-disabled":p.isDisabled||void 0,"data-hovered":y||void 0,"data-focused":p.isFocused||void 0,"data-focus-visible":p.isFocusVisible||void 0,"data-pressed":p.isPressed||void 0,"data-dragging":m||void 0,"data-drop-target":(v==null?void 0:v.isDropTarget)||void 0,"data-selection-mode":o.selectionManager.selectionMode==="none"?void 0:o.selectionManager.selectionMode},c.createElement($t,{values:[[Jl,{slots:{[Rl]:d,label:d,description:f}}]]},S.children))});function uv(t,e){e=ht(e);let{dragAndDropHooks:n,dropState:r}=c.useContext(Oi),{dropIndicatorProps:i,isHidden:o,isDropTarget:l}=n.useDropIndicator(t,r,e);return o?null:c.createElement(dv,{...t,dropIndicatorProps:i,isDropTarget:l,ref:e})}function cv(t,e){let{dropIndicatorProps:n,isDropTarget:r,...i}=t,o=Le({...i,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:r}});return c.createElement("div",{...n,...o,role:"option",ref:e,"data-drop-target":r||void 0})}const dv=c.forwardRef(cv),fv=c.createContext({placement:"bottom"}),Ff=c.createContext(null),$s=c.createContext(null),jf=c.forwardRef(function(e,n){[e,n]=pt(e,n,Ff);let r=c.useContext(Hf),i=Ql(e),o=e.isOpen!=null||e.defaultOpen!=null||!r?i:r,l=lp(n,o.isOpen)||e.isExiting||!1,a=pp(),{direction:s}=qt();if(a){let u=e.children;return typeof u=="function"&&(u=u({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),c.createElement(c.Fragment,null,u)}return o&&!o.isOpen&&!l?null:c.createElement(hv,{...e,triggerRef:e.triggerRef,state:o,popoverRef:n,isExiting:l,dir:s})});function hv({state:t,isExiting:e,UNSTABLE_portalContainer:n,...r}){let i=c.useRef(null),[o,l]=c.useState(0),a=c.useRef(null),s=c.useContext($s),u=s&&r.trigger==="SubmenuTrigger";ue(()=>{i.current&&t.isOpen&&l(i.current.getBoundingClientRect().width)},[t.isOpen,i]);var d;let{popoverProps:f,underlayProps:p,arrowProps:g,placement:y}=l5({...r,offset:(d=r.offset)!==null&&d!==void 0?d:8,arrowSize:o,groupRef:u?s:a},t),h=r.popoverRef,v=op(h,!!y)||r.isEntering||!1,m=Le({...r,defaultClassName:"react-aria-Popover",values:{trigger:r.trigger||null,placement:y,isEntering:v,isExiting:e}}),S=!r.isNonModal||r.trigger==="SubmenuTrigger",[C,P]=c.useState(!1);ue(()=>{h.current&&P(S&&!h.current.querySelector("[role=dialog]"))},[h,S]),c.useEffect(()=>{C&&h.current&&!h.current.contains(document.activeElement)&&_n(h.current)},[C,h]);let $={...f.style,...m.style},E=c.createElement("div",{...le(Se(r),f),...m,role:C?"dialog":void 0,tabIndex:C?-1:void 0,"aria-label":r["aria-label"],"aria-labelledby":r["aria-labelledby"],ref:h,slot:r.slot||void 0,style:$,dir:r.dir,"data-trigger":r.trigger,"data-placement":y,"data-entering":v||void 0,"data-exiting":e||void 0},!r.isNonModal&&c.createElement(cs,{onDismiss:t.close}),c.createElement(fv.Provider,{value:{...g,placement:y,ref:i}},m.children),c.createElement(cs,{onDismiss:t.close}));if(!u)return c.createElement(ds,{...r,shouldContainFocus:C,isExiting:e,portalContainer:n},!r.isNonModal&&t.isOpen&&c.createElement("div",{"data-testid":"underlay",...p,style:{position:"fixed",inset:0}}),c.createElement("div",{ref:a,style:{display:"contents"}},c.createElement($s.Provider,{value:a},E)));var T;return c.createElement(ds,{...r,shouldContainFocus:C,isExiting:e,portalContainer:(T=n??(s==null?void 0:s.current))!==null&&T!==void 0?T:void 0},E)}const pv=c.createContext({});class qe extends Set{constructor(e,n,r){super(e),e instanceof qe?(this.anchorKey=n??e.anchorKey,this.currentKey=r??e.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function gv(t,e){if(t.size!==e.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function vv(t){let{selectionMode:e="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:o="all"}=t,l=c.useRef(!1),[,a]=c.useState(!1),s=c.useRef(null),u=c.useRef(null),[,d]=c.useState(null),f=c.useMemo(()=>Ps(t.selectedKeys),[t.selectedKeys]),p=c.useMemo(()=>Ps(t.defaultSelectedKeys,new qe),[t.defaultSelectedKeys]),[g,y]=cp(f,p,t.onSelectionChange),h=c.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),[v,m]=c.useState(i);i==="replace"&&v==="toggle"&&typeof g=="object"&&g.size===0&&m("replace");let S=c.useRef(i);return c.useEffect(()=>{i!==S.current&&(m(i),S.current=i)},[i]),{selectionMode:e,disallowEmptySelection:n,selectionBehavior:v,setSelectionBehavior:m,get isFocused(){return l.current},setFocused(C){l.current=C,a(C)},get focusedKey(){return s.current},get childFocusStrategy(){return u.current},setFocusedKey(C,P="first"){s.current=C,u.current=P,d(C)},selectedKeys:g,setSelectedKeys(C){(r||!gv(C,g))&&y(C)},disabledKeys:h,disabledBehavior:o}}function Ps(t,e){return t?t==="all"?"all":new qe(t):e}class na{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,n){(e==null||this.collection.getItem(e))&&this.state.setFocusedKey(e,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if(this.state.selectionMode==="none")return!1;let n=this.getKey(e);return n==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(n):this.state.selectedKeys.has(n)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let e=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=e.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!e||i&&ao(this.collection,i,e)<0)&&(e=i)}var n;return(n=e==null?void 0:e.key)!==null&&n!==void 0?n:null}get lastSelectedKey(){let e=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!e||i&&ao(this.collection,i,e)>0)&&(e=i)}var n;return(n=e==null?void 0:e.key)!==null&&n!==void 0?n:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(e);return}let n=this.getKey(e);if(n==null)return;let r;if(this.state.selectedKeys==="all")r=new qe([n],n,n);else{let l=this.state.selectedKeys;var i;let a=(i=l.anchorKey)!==null&&i!==void 0?i:n;r=new qe(l,a,n);var o;for(let s of this.getKeyRange(a,(o=l.currentKey)!==null&&o!==void 0?o:n))r.delete(s);for(let s of this.getKeyRange(n,a))this.canSelectItem(s)&&r.add(s)}this.state.setSelectedKeys(r)}getKeyRange(e,n){let r=this.collection.getItem(e),i=this.collection.getItem(n);return r&&i?ao(this.collection,r,i)<=0?this.getKeyRangeInternal(e,n):this.getKeyRangeInternal(n,e):[]}getKeyRangeInternal(e,n){var r;if(!((r=this.layoutDelegate)===null||r===void 0)&&r.getKeyRange)return this.layoutDelegate.getKeyRange(e,n);let i=[],o=e;for(;o!=null;){let l=this.collection.getItem(o);if(l&&(l.type==="item"||l.type==="cell"&&this.allowsCellSelection)&&i.push(o),o===n)return i;o=this.collection.getKeyAfter(o)}return[]}getKey(e){let n=this.collection.getItem(e);if(!n||n.type==="cell"&&this.allowsCellSelection)return e;for(;n&&n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(e)){this.replaceSelection(e);return}let n=this.getKey(e);if(n==null)return;let r=new qe(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(n)?r.delete(n):this.canSelectItem(n)&&(r.add(n),r.anchorKey=n,r.currentKey=n),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(e){if(this.selectionMode==="none")return;let n=this.getKey(e);if(n==null)return;let r=this.canSelectItem(n)?new qe([n],n,n):new qe;this.state.setSelectedKeys(r)}setSelectedKeys(e){if(this.selectionMode==="none")return;let n=new qe;for(let r of e){let i=this.getKey(r);if(i!=null&&(n.add(i),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let e=[],n=r=>{for(;r!=null;){if(this.canSelectItem(r)){var i;let l=this.collection.getItem(r);(l==null?void 0:l.type)==="item"&&e.push(r);var o;l!=null&&l.hasChildNodes&&(this.allowsCellSelection||l.type!=="item")&&n((o=(i=g5(kd(l,this.collection)))===null||i===void 0?void 0:i.key)!==null&&o!==void 0?o:null)}r=this.collection.getKeyAfter(r)}};return n(this.collection.getFirstKey()),e}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new qe)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(e.size!==n.size)return!1;for(let r of e)if(!n.has(r))return!1;for(let r of n)if(!e.has(r))return!1;return!0}canSelectItem(e){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(e))return!1;let r=this.collection.getItem(e);return!(!r||!(r==null||(n=r.props)===null||n===void 0)&&n.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(e){var n,r;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(e)||!!(!((r=this.collection.getItem(e))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled))}isLink(e){var n,r;return!!(!((r=this.collection.getItem(e))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}getItemProps(e){var n;return(n=this.collection.getItem(e))===null||n===void 0?void 0:n.props}withCollection(e){return new na(e,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(e,n,r){this.collection=e,this.state=n;var i;this.allowsCellSelection=(i=r==null?void 0:r.allowsCellSelection)!==null&&i!==void 0?i:!1,this._isSelectAll=null,this.layoutDelegate=(r==null?void 0:r.layoutDelegate)||null}}const mv=c.createContext(null),ra=c.createContext(null),Ds=c.createContext(null),ai=c.createContext(null),yv=c.createContext(null),bv=c.forwardRef(function(e,n){return[e,n]=pt(e,n,mv),c.createElement(Ei,{content:c.createElement(Hl,e)},r=>c.createElement(Sv,{props:e,collection:r,menuRef:n}))});function Sv({props:t,collection:e,menuRef:n}){let{filter:r,collectionProps:i,collectionRef:o}=c.useContext(il)||{};n=ht(c.useMemo(()=>Tl(n,o!==void 0?o:null),[o,n]));let l=c.useMemo(()=>r?e.UNSTABLE_filter(r):e,[e,r]),a=ev({...t,collection:l,children:void 0}),s=c.useContext(Ds),{isVirtualized:u,CollectionRoot:d}=c.useContext(Yt),{menuProps:f}=C5({...t,...i,isVirtualized:u,onClose:t.onClose||(s==null?void 0:s.close)},a,n),p=Le({defaultClassName:"react-aria-Menu",className:t.className,style:t.style,values:{isEmpty:a.collection.size===0}}),g=null;return a.collection.size===0&&t.renderEmptyState&&(g=c.createElement("div",{role:"menuitem",style:{display:"contents"}},t.renderEmptyState())),c.createElement(Gl,null,c.createElement("div",{...Se(t),...f,...p,ref:n,slot:t.slot||void 0,"data-empty":a.collection.size===0||void 0,onScroll:t.onScroll},c.createElement($t,{values:[[ra,a],[ea,{elementType:"div"}],[Of,{name:"MenuSection",render:wv}],[yv,{parentMenuRef:n,shouldUseVirtualFocus:i==null?void 0:i.shouldUseVirtualFocus}],[ol,null],[il,null],[ai,a.selectionManager],[Ds,s??Z5({})]]},c.createElement(d,{collection:a.collection,persistedKeys:Nf(a.selectionManager.focusedKey),scrollRef:n})),g))}class Cv extends na{get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(e,n){return this.parent.setFocusedKey(e,n)}setFocused(e){this.parent.setFocused(e)}get childFocusStrategy(){return this.parent.childFocusStrategy}constructor(e,n){super(e.collection,n),this.parent=e}}function wv(t,e,n,r="react-aria-MenuSection"){var i,o;let l=c.useContext(ra),{CollectionBranch:a}=c.useContext(Yt),[s,u]=Ml();var d;let{headingProps:f,groupProps:p}=x5({heading:u,"aria-label":(d=n.props["aria-label"])!==null&&d!==void 0?d:void 0}),g=Le({defaultClassName:r,className:(i=n.props)===null||i===void 0?void 0:i.className,style:(o=n.props)===null||o===void 0?void 0:o.style,values:{}}),y=c.useContext(ai),h=vv(t),v=t.selectionMode!=null?new Cv(y,h):y;return c.createElement("section",{...Se(t),...p,...g,ref:e},c.createElement($t,{values:[[Lf,{...f,ref:s}],[ai,v]]},c.createElement(a,{collection:l.collection,parent:n})))}const ol=c.createContext(null),Ts=$i("item",function(e,n,r){var i;[e,n]=pt(e,n,ol);let o=(i=xi(ol))===null||i===void 0?void 0:i.id,l=c.useContext(ra),a=ht(n),s=c.useContext(ai),{menuItemProps:u,labelProps:d,descriptionProps:f,keyboardShortcutProps:p,...g}=w5({...e,id:o,key:r.key,selectionManager:s},l,a),{hoverProps:y,isHovered:h}=Mn({isDisabled:g.isDisabled}),v=Le({...e,id:void 0,children:r.rendered,defaultClassName:"react-aria-MenuItem",values:{...g,isHovered:h,isFocusVisible:g.isFocusVisible,selectionMode:s.selectionMode,selectionBehavior:s.selectionBehavior,hasSubmenu:!!e["aria-haspopup"],isOpen:e["aria-expanded"]==="true"}}),m=e.href?"a":"div";return c.createElement(m,{...le(u,y),...v,ref:a,"data-disabled":g.isDisabled||void 0,"data-hovered":h||void 0,"data-focused":g.isFocused||void 0,"data-focus-visible":g.isFocusVisible||void 0,"data-pressed":g.isPressed||void 0,"data-selected":g.isSelected||void 0,"data-selection-mode":s.selectionMode==="none"?void 0:s.selectionMode,"data-has-submenu":!!e["aria-haspopup"]||void 0,"data-open":e["aria-expanded"]==="true"||void 0},c.createElement($t,{values:[[Jl,{slots:{[Rl]:d,label:d,description:f}}],[pv,p]]},v.children))}),Hf=c.createContext(null),zf=c.createContext(null),Vf=c.createContext(null),xv=c.forwardRef(function(e,n){[e,n]=pt(e,n,zf);let{children:r,isDisabled:i=!1,isInvalid:o=!1,isRequired:l=!1}=e,a=c.useMemo(()=>typeof r=="function"?r({isOpen:!1,isDisabled:i,isInvalid:o,isRequired:l,isFocused:!1,isFocusVisible:!1,defaultChildren:null}):r,[r,i,o,l]);return c.createElement(Ei,{content:a},s=>c.createElement(Ev,{props:e,collection:s,selectRef:n}))});function Ev({props:t,selectRef:e,collection:n}){let{validationBehavior:r}=xi(nv)||{};var i,o;let l=(o=(i=t.validationBehavior)!==null&&i!==void 0?i:r)!==null&&o!==void 0?o:"native",a=X5({...t,collection:n,children:void 0,validationBehavior:l}),{isFocusVisible:s,focusProps:u}=Ln({within:!0}),d=c.useRef(null),[f,p]=Ml(!t["aria-label"]&&!t["aria-labelledby"]),{labelProps:g,triggerProps:y,valueProps:h,menuProps:v,descriptionProps:m,errorMessageProps:S,...C}=E5({...dp(t),label:p,validationBehavior:l},a,d),[P,$]=c.useState(null),E=c.useCallback(()=>{d.current&&$(d.current.offsetWidth+"px")},[d]);zo({ref:d,onResize:E});let T=c.useMemo(()=>({isOpen:a.isOpen,isFocused:a.isFocused,isFocusVisible:s,isDisabled:t.isDisabled||!1,isInvalid:C.isInvalid||!1,isRequired:t.isRequired||!1}),[a.isOpen,a.isFocused,s,t.isDisabled,C.isInvalid,t.isRequired]),L=Le({...t,values:T,defaultClassName:"react-aria-Select"}),z=Se(t);delete z.id;let A=c.useRef(null);return c.createElement($t,{values:[[zf,t],[Vf,a],[$v,h],[bf,{...g,ref:f,elementType:"span"}],[Sf,{...y,ref:d,isPressed:a.isOpen}],[Hf,a],[Ff,{trigger:"Select",triggerRef:d,scrollRef:A,placement:"bottom start",style:{"--trigger-width":P},"aria-labelledby":v["aria-labelledby"]}],[ta,{...v,ref:A}],[fr,a],[Jl,{slots:{description:m,errorMessage:S}}],[A5,C]]},c.createElement("div",{...z,...L,...u,ref:e,slot:t.slot||void 0,"data-focused":a.isFocused||void 0,"data-focus-visible":s||void 0,"data-open":a.isOpen||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":C.isInvalid||void 0,"data-required":t.isRequired||void 0}),c.createElement(P5,{autoComplete:t.autoComplete,state:a,triggerRef:d,label:p,name:t.name,isDisabled:t.isDisabled}))}const $v=c.createContext(null),ki=c.createContext(null),In=c.createContext(null),Pv=c.forwardRef(function(e,n){[e,n]=pt(e,n,ki);let{children:r,orientation:i="horizontal"}=e;return r=c.useMemo(()=>typeof r=="function"?r({orientation:i,defaultChildren:null}):r,[r,i]),c.createElement(Ei,{content:r},o=>c.createElement(Dv,{props:e,collection:o,tabsRef:n}))});function Dv({props:t,tabsRef:e,collection:n}){let{orientation:r="horizontal"}=t,i=J5({...t,collection:n,children:void 0}),{focusProps:o,isFocused:l,isFocusVisible:a}=Ln({within:!0}),s=c.useMemo(()=>({orientation:r,isFocusWithin:l,isFocusVisible:a}),[r,l,a]),u=Le({...t,defaultClassName:"react-aria-Tabs",values:s});return c.createElement("div",{...Se(t),...o,...u,ref:e,slot:t.slot||void 0,"data-focused":l||void 0,"data-orientation":r,"data-focus-visible":a||void 0,"data-disabled":i.isDisabled||void 0},c.createElement($t,{values:[[ki,t],[In,i]]},u.children))}const Tv=c.forwardRef(function(e,n){return c.useContext(In)?c.createElement(_v,{props:e,forwardedRef:n}):c.createElement(Hl,e)});function _v({props:t,forwardedRef:e}){let n=c.useContext(In),{CollectionRoot:r}=c.useContext(Yt),{orientation:i="horizontal",keyboardActivation:o="automatic"}=xi(ki),l=ht(e),{tabListProps:a}=O5({...t,orientation:i,keyboardActivation:o},n,l),s=Le({...t,children:null,defaultClassName:"react-aria-TabList",values:{orientation:i,state:n}}),u=Se(t);return delete u.id,c.createElement("div",{...u,...a,ref:l,...s,"data-orientation":i||void 0},c.createElement(r,{collection:n.collection,persistedKeys:Nf(n.selectionManager.focusedKey)}))}const Iv=$i("item",(t,e,n)=>{let r=c.useContext(In),i=ht(e),{tabProps:o,isSelected:l,isDisabled:a,isPressed:s}=T5({key:n.key,...t},r,i),{focusProps:u,isFocused:d,isFocusVisible:f}=Ln(),{hoverProps:p,isHovered:g}=Mn({isDisabled:a,onHoverStart:t.onHoverStart,onHoverEnd:t.onHoverEnd,onHoverChange:t.onHoverChange}),y=Le({...t,id:void 0,children:n.rendered,defaultClassName:"react-aria-Tab",values:{isSelected:l,isDisabled:a,isFocused:d,isFocusVisible:f,isPressed:s,isHovered:g}}),h=n.props.href?"a":"div";return c.createElement(h,{...le(o,u,p,y),ref:i,"data-selected":l||void 0,"data-disabled":a||void 0,"data-focused":d||void 0,"data-focus-visible":f||void 0,"data-pressed":s||void 0,"data-hovered":g||void 0},y.children)}),Ov=Kl(function(e,n){const r=c.useContext(In);let i=ht(n),{tabPanelProps:o}=_5(e,r,i),{focusProps:l,isFocused:a,isFocusVisible:s}=Ln(),u=r.selectedKey===e.id,d=Le({...e,defaultClassName:"react-aria-TabPanel",values:{isFocused:a,isFocusVisible:s,isInert:!u,state:r}});if(!u&&!e.shouldForceMount)return null;let f=Se(e);delete f.id;let p=u?le(f,o,l,d):d;return c.createElement("div",{...p,ref:i,"data-focused":a||void 0,"data-focus-visible":s||void 0,inert:np(!u),"data-inert":u?void 0:"true"},c.createElement($t,{values:[[ki,null],[In,null]]},c.createElement(Yt.Provider,{value:kf},d.children)))}),hr=({options:t,isOpen:e=!1,onOpenChange:n,children:r,selectedValues:i=[],onSelectValue:o,topMessage:l,shouldCloseOnInteractOutside:a})=>{const s=c.useId(),u=f=>{n==null||n(f)},d=c.useRef(null);return b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"c__dropdown-menu-trigger",ref:d,id:s,onClick:f=>{f.stopPropagation(),f.preventDefault()},children:r}),b.jsx(jf,{triggerRef:d,style:{marginTop:"0px"},isOpen:e,shouldCloseOnInteractOutside:a,onOpenChange:u,children:b.jsxs(bv,{className:"c__dropdown-menu","aria-labelledby":s,children:[l&&b.jsx(Ts,{className:"c__dropdown-menu-item-top-message",children:l}),t.map(f=>f.isHidden?null:b.jsxs(c.Fragment,{children:[b.jsxs(Ts,{className:"c__dropdown-menu-item","aria-label":f.label,onAction:()=>{var p;f.value&&(o==null||o(f.value)),(p=f.callback)==null||p.call(f),u(!1)},isDisabled:f.isDisabled,children:[f.icon,b.jsx("div",{className:"c__dropdown-menu-item__label","aria-label":f.label,children:f.label}),(f.isChecked||f.value&&i.includes(f.value))&&b.jsx("span",{className:"material-icons checked",children:"check"})]},f.label),f.showSeparator&&b.jsx(Af,{})]},f.label))]})})]})},On=()=>{const[t,e]=c.useState(!1);return{isOpen:t,setIsOpen:e}},_s="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M10%206v2H5v11h11v-5h2v6a1%201%200%200%201-1%201H4a1%201%200%200%201-1-1V7a1%201%200%200%201%201-1h6Zm11-3v8h-2V6.413l-7.793%207.794-1.414-1.414L17.585%205H13V3h8Z'%20/%3e%3c/svg%3e",kv="data:image/svg+xml,%3csvg%20width='109'%20height='60'%20viewBox='0%200%20109%2060'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20%3e%3crect%20width='33'%20height='12'%20fill='url(%23paint0_linear_5795_13250)'%20/%3e%3cg%20clip-path='url(%23clip0_5795_13250)'%3e%3cg%20clip-path='url(%23clip1_5795_13250)'%3e%3cpath%20d='M8.475%206.8999C7.8%207.3499%207.2%207.8749%206.75%208.4749V8.3999C7.05%208.0249%207.275%207.6499%207.5%207.2749C7.8%207.1249%208.025%206.8999%208.25%206.6749C8.625%206.2999%209%205.9249%209.525%205.6999C9.75%205.6249%209.9%205.6249%2010.125%205.6999C10.05%205.7749%209.975%205.7749%209.825%205.8499H9.75V5.7749C9.525%205.9999%209.225%206.1499%209%206.4499C8.925%206.5999%208.85%206.8999%208.475%206.8999C8.55%206.8999%208.475%206.9749%208.475%206.8999ZM9.675%2010.3499C9.675%2010.2749%209.6%2010.3499%209.525%2010.3499L9.45%2010.4249L9.375%2010.4999L9.225%2010.6499C9.225%2010.6499%209.3%2010.7249%209.375%2010.6499L9.45%2010.5749C9.525%2010.5749%209.6%2010.4999%209.6%2010.4249C9.675%2010.4249%209.675%2010.4249%209.675%2010.3499ZM8.475%207.1249C8.55%207.1249%208.625%207.1249%208.625%207.0499C8.625%206.9749%208.7%206.9749%208.7%206.9749V6.8999C8.55%206.9749%208.475%207.0499%208.475%207.1249ZM10.275%208.5499C10.35%208.4749%2010.425%208.4749%2010.5%208.4749C11.025%208.3999%2011.55%208.2499%2012.075%208.0249C11.475%207.6499%2010.8%207.3499%2010.125%207.2749H10.2C10.125%207.1999%209.975%207.1999%209.825%207.1249H9.9C9.75%207.0499%209.525%207.0499%209.375%206.9749C9.45%206.9749%209.525%206.8249%209.525%206.7499H9.45C9.15%206.8999%209%207.1249%208.85%207.4249C9%207.4999%209.225%207.4249%209.375%207.4999H9.15C9.075%207.4999%209%207.5749%209%207.6499H9.075C9%207.6499%209%207.7249%208.925%207.7249C9%207.7999%209.075%207.7249%209.225%207.7249C9.225%207.7999%209.3%207.7999%209.3%207.7999C9.225%207.7999%209.15%207.8749%209.075%208.0249C9%208.1749%208.925%208.1749%208.85%208.2499V8.3249C8.625%208.4749%208.4%208.6999%208.175%208.9249V8.9999C8.1%209.0749%208.025%209.0749%208.025%209.1499V9.2249C8.325%209.1499%208.475%208.9249%208.775%208.8499L9.225%208.6249C9.375%208.6249%209.45%208.5499%209.6%208.5499V8.6249H9.75C9.75%208.6999%209.6%208.6249%209.675%208.6999C9.75%208.7749%209.9%208.7749%209.975%208.6999C10.125%208.5499%2010.2%208.5499%2010.275%208.5499ZM9.3%209.7499C9%209.8999%208.625%209.8999%208.4%2010.0499C8.4%2010.0499%208.4%2010.1249%208.325%2010.1249C8.325%2010.1249%208.25%2010.1249%208.25%2010.1999C8.175%2010.1999%208.175%2010.2749%208.1%2010.3499L8.025%2010.4249C8.025%2010.4249%208.025%2010.4999%208.1%2010.4249L8.175%2010.3499C8.175%2010.3499%208.1%2010.4249%208.1%2010.4999V10.7249L8.025%2010.7999C8.025%2010.7999%208.025%2010.8749%207.95%2010.8749L7.875%2010.9499L8.025%2010.7999L8.1%2010.7249H8.25C8.25%2010.7249%208.25%2010.6499%208.325%2010.6499C8.4%2010.5749%208.475%2010.4999%208.55%2010.4999H8.625C8.7%2010.4249%208.85%2010.4249%208.925%2010.3499C9%2010.2749%209.075%2010.1999%209.15%2010.1999C9.3%2010.0499%209.525%209.9749%209.75%209.8249C9.675%209.8249%209.6%209.7499%209.525%209.7499C9.525%209.8249%209.375%209.7499%209.3%209.7499ZM22.5%206.5249C22.425%206.6749%2022.2%206.6749%2022.05%206.7499C21.9%206.8999%2022.05%207.0499%2022.125%207.1249C22.2%207.3499%2021.975%207.4999%2021.825%207.4999C21.9%207.5749%2021.975%207.5749%2021.975%207.5749C21.975%207.7249%2022.125%207.7249%2022.05%207.8749C21.975%208.0249%2021.675%208.0999%2021.825%208.2499C21.9%208.3999%2021.9%208.6249%2021.825%208.7749C21.75%208.9249%2021.6%209.0749%2021.45%209.1499C21.3%209.2249%2021.15%209.2249%2021%209.1499C20.925%209.1499%2020.925%209.0749%2020.85%209.0749C20.475%208.9999%2020.1%208.9249%2019.725%208.9249C19.65%208.9249%2019.5%208.9999%2019.425%208.9999C19.35%209.0749%2019.2%209.1499%2019.125%209.2249L19.05%209.2999C18.975%209.3749%2018.9%209.4499%2018.9%209.5249C18.825%209.6749%2018.75%209.8249%2018.75%209.9749C18.6%2010.3499%2018.6%2010.7249%2018.75%2011.0249C18.75%2011.0249%2019.5%2011.2499%2020.025%2011.4749C20.175%2011.5499%2020.4%2011.6249%2020.55%2011.7749L21.825%2012.5249H9.9L11.1%2011.7749C11.55%2011.4749%2012.075%2011.2499%2012.6%2011.0249C12.975%2010.8749%2013.425%2010.6499%2013.725%2010.3499C13.875%2010.1999%2013.95%2010.0499%2014.1%209.9749C14.325%209.6749%2014.55%209.4499%2014.85%209.2249L15.075%208.9999C15.075%208.9999%2015.075%208.9249%2015.15%208.9249C15%208.9999%2015%209.0749%2014.85%209.0749C14.85%209.0749%2014.775%209.0749%2014.85%208.9999C14.925%208.9249%2015%208.8499%2015.075%208.8499V8.7749C14.775%208.7749%2014.55%208.9249%2014.325%209.1499H14.175C13.8%209.2999%2013.575%209.5249%2013.275%209.6749V9.5999C13.125%209.6749%2012.975%209.7499%2012.9%209.7499C12.75%209.7499%2012.525%209.8249%2012.3%209.7499C12%209.7499%2011.775%209.8249%2011.475%209.8999C11.325%209.9749%2011.175%209.9749%2011.025%2010.0499V10.1249L10.875%2010.2749C10.725%2010.3499%2010.65%2010.4249%2010.5%2010.5749L10.125%2010.9499H10.05L10.125%2010.8749L10.2%2010.7999C10.2%2010.7249%2010.275%2010.7249%2010.275%2010.6499C10.425%2010.5749%2010.5%2010.4249%2010.65%2010.3499C10.65%2010.3499%2010.65%2010.2749%2010.725%2010.2749L10.65%2010.3499C10.575%2010.4249%2010.575%2010.4999%2010.5%2010.4999V10.4249V10.3499L10.65%2010.1999C10.725%2010.1249%2010.8%2010.1249%2010.875%2010.0499H10.95C10.8%2010.1249%2010.725%2010.1249%2010.575%2010.1999H10.5H10.425C10.425%2010.1249%2010.5%2010.1249%2010.575%2010.0499H10.65C11.4%209.4499%2012.375%209.5999%2013.2%209.2999C13.275%209.2249%2013.35%209.2249%2013.425%209.1499C13.5%209.0749%2013.65%208.9999%2013.8%208.9249C13.95%208.7749%2014.1%208.6249%2014.175%208.3999V8.3249C13.875%208.6249%2013.575%208.8499%2013.2%209.0749C12.75%209.2249%2012.225%209.3749%2011.7%209.3749C11.7%209.2999%2011.775%209.2999%2011.775%209.2999C11.775%209.2249%2011.85%209.2249%2011.85%209.1499H11.925C11.925%209.1499%2011.925%209.0749%2012%209.0749H12.075C12%208.9999%2011.85%209.1499%2011.775%209.0749C11.85%208.9999%2011.775%208.9249%2011.85%208.9249H11.925C11.925%208.9249%2011.925%208.8499%2012%208.8499C12.375%208.6249%2012.675%208.4749%2012.975%208.3249C12.9%208.3249%2012.9%208.3999%2012.825%208.3249C12.9%208.3249%2012.825%208.2499%2012.9%208.2499C13.125%208.1749%2013.35%208.0249%2013.575%207.9499C13.5%207.9499%2013.425%208.0249%2013.35%207.9499C13.425%207.9499%2013.425%207.8749%2013.5%207.8749V7.7999C13.5%207.7249%2013.575%207.7999%2013.65%207.7249H13.575C13.65%207.6499%2013.725%207.5749%2013.875%207.5749C13.875%207.4999%2013.8%207.5749%2013.8%207.4999H13.875H13.5C13.425%207.4999%2013.5%207.4249%2013.5%207.4249C13.575%207.2749%2013.65%207.0499%2013.725%206.8999H13.65C13.425%207.1249%2013.05%207.2749%2012.75%207.3499H12.6C12.45%207.4249%2012.3%207.4249%2012.225%207.3499C12.15%207.2749%2012.075%207.1999%2012%207.1999C11.85%207.1249%2011.625%206.9749%2011.4%206.8999C10.875%206.7499%2010.275%206.5999%209.675%206.6749C9.9%206.5999%2010.2%206.5249%2010.5%206.4499C10.875%206.2999%2011.25%206.2249%2011.625%206.2249H11.4C11.1%206.2249%2010.725%206.2999%2010.425%206.3749C10.2%206.4499%209.975%206.5249%209.75%206.5249C9.6%206.5999%209.525%206.6749%209.375%206.6749V6.5999C9.6%206.2999%209.9%206.0749%2010.2%205.9999C10.575%205.9249%2011.025%205.9999%2011.4%206.0749C11.7%206.0749%2012%206.1499%2012.225%206.2249C12.3%206.2249%2012.375%206.3749%2012.45%206.4499C12.6%206.5249%2012.75%206.4499%2012.825%206.5249V6.3749C12.9%206.2999%2013.05%206.3749%2013.125%206.3749C13.275%206.2249%2012.975%206.0749%2012.9%205.9249V5.8499C13.05%205.9999%2013.275%206.1499%2013.425%206.2999C13.5%206.3749%2013.8%206.4499%2013.8%206.2999C13.65%206.0749%2013.5%205.8499%2013.275%205.6249V5.4749C13.2%205.4749%2013.2%205.4749%2013.2%205.3999C13.125%205.3249%2013.125%205.2499%2013.125%205.1749C13.05%205.0249%2013.125%204.8749%2013.05%204.7999C12.975%204.6499%2012.975%204.5749%2012.975%204.4249C12.9%204.0499%2012.825%203.6749%2012.75%203.3749C12.675%202.9249%2012.975%202.6249%2013.2%202.2499C13.35%201.9499%2013.575%201.7249%2013.8%201.4999C13.875%201.1999%2014.025%200.974902%2014.25%200.749902C14.475%200.524902%2014.7%200.374902%2014.925%200.299902C15.15%200.224902%2015.3%200.149902%2015.525%200.0749024L17.4%20-0.225098H18.75L20.1%20-9.76473e-05C20.175%20-9.76473e-05%2020.25%20-9.76324e-05%2020.25%200.0749024C20.325%200.149902%2020.475%200.224902%2020.55%200.224902C20.7%200.299902%2020.85%200.449902%2021%200.599902C21.075%200.674902%2021.15%200.824902%2021.075%200.899902C21%200.974902%2021%201.1999%2020.925%201.1999C20.775%201.2749%2020.625%201.2749%2020.475%201.2749C20.4%201.2749%2020.325%201.2749%2020.175%201.1999C20.55%201.3499%2020.85%201.4999%2021.075%201.7999C21.075%201.8749%2021.225%201.8749%2021.3%201.8749V1.9499C21.225%202.0249%2021.225%202.0249%2021.225%202.0999H21.3C21.375%202.0249%2021.375%201.7999%2021.525%201.8749C21.675%201.9499%2021.675%202.0999%2021.6%202.1749C21.525%202.2499%2021.45%202.3249%2021.3%202.3999V2.5499C21.375%202.6249%2021.375%202.6999%2021.45%202.8499C21.525%202.9999%2021.525%203.2249%2021.6%203.3749C21.675%203.7499%2021.75%204.0499%2021.75%204.4249C21.75%204.5749%2021.675%204.7999%2021.75%204.9499L21.975%205.3999C22.05%205.5499%2022.125%205.6249%2022.2%205.7749C22.35%205.9999%2022.65%206.2249%2022.5%206.5249ZM10.8%2010.4249C10.725%2010.4249%2010.725%2010.4999%2010.725%2010.4999C10.725%2010.4999%2010.8%2010.4999%2010.8%2010.4249ZM10.125%208.9249C10.125%208.9999%2010.2%208.9249%2010.2%208.9249C10.35%208.8499%2010.575%208.9249%2010.65%208.7749C10.575%208.6999%2010.5%208.7749%2010.5%208.6999C10.425%208.6999%2010.35%208.6999%2010.35%208.7749C10.275%208.8499%2010.125%208.8499%2010.125%208.9249Z'%20fill='white'%20/%3e%3cpath%20d='M20.925%204.3501C21%204.3501%2021.15%204.3501%2021.15%204.4251C21.075%204.5751%2020.85%204.6501%2020.7%204.8001H20.625C20.55%204.8751%2020.55%204.9501%2020.55%204.9501H20.325C20.4%205.0251%2020.55%205.1001%2020.7%205.1001L20.775%205.1751H20.925V5.2501C20.85%205.3251%2020.775%205.3251%2020.625%205.3251C20.775%205.4001%2021%205.4001%2021.15%205.3251C21.3%205.2501%2021.15%205.0251%2021.225%204.9501C21.15%204.9501%2021.225%204.8751%2021.15%204.8751C21.225%204.8001%2021.225%204.7251%2021.3%204.7251C21.375%204.7251%2021.375%204.7251%2021.45%204.6501C21.45%204.5751%2021.375%204.5751%2021.375%204.5001C21.525%204.4251%2021.6%204.2751%2021.6%204.1251C21.6%204.0501%2021.375%204.0501%2021.3%203.9751H20.925C20.775%203.9751%2020.7%204.0501%2020.55%204.0501L20.1%204.2751C20.25%204.2001%2020.4%204.2001%2020.625%204.1251C20.625%204.3501%2020.775%204.3501%2020.925%204.3501Z'%20fill='%237C7C7C'%20/%3e%3c/g%3e%3c/g%3e%3cpath%20d='M5.355%2025.5762C6.1866%2025.5762%206.9048%2025.2864%207.4088%2024.8076V23.2704H5.166V21.7458H9.198V25.4502C8.379%2026.5464%207.0056%2027.252%205.355%2027.252C2.4948%2027.252%200.5418%2025.11%200.5418%2022.59C0.5418%2020.07%202.4444%2017.928%205.229%2017.928C6.8292%2017.928%208.1396%2018.6462%208.946%2019.7172L7.5348%2020.8134C7.0308%2020.0952%206.237%2019.6038%205.229%2019.6038C3.5658%2019.6038%202.3814%2020.9016%202.3814%2022.59C2.3814%2024.2784%203.6288%2025.5762%205.355%2025.5762ZM15.2175%2017.928C17.9895%2017.928%2019.8921%2020.07%2019.8921%2022.59C19.8921%2025.11%2017.9895%2027.252%2015.2175%2027.252C12.4329%2027.252%2010.5303%2025.11%2010.5303%2022.59C10.5303%2020.07%2012.4329%2017.928%2015.2175%2017.928ZM15.2175%2025.5762C16.8681%2025.5762%2018.0525%2024.2784%2018.0525%2022.59C18.0525%2020.9016%2016.8681%2019.6038%2015.2175%2019.6038C13.5543%2019.6038%2012.3699%2020.9016%2012.3699%2022.59C12.3699%2024.2784%2013.5543%2025.5762%2015.2175%2025.5762ZM26.8084%2023.6988V18.18H28.5976V23.5476C28.5976%2025.866%2027.2368%2027.252%2025.0192%2027.252C22.8142%2027.252%2021.4534%2025.866%2021.4534%2023.5476V18.18H23.2426V23.6988C23.2426%2024.8832%2023.9104%2025.5762%2025.0318%2025.5762C26.128%2025.5762%2026.8084%2024.8832%2026.8084%2023.6988ZM29.7114%2018.18H31.614L34.2222%2025.0722L36.8304%2018.18H38.733L35.394%2027H33.0504L29.7114%2018.18ZM40.095%2027V18.18H45.2358V19.6668H41.8842V21.7584H44.7318V23.2452H41.8842V25.5132H45.2358V27H40.095ZM47.3149%2027V18.18H50.0113C51.9517%2018.18%2053.1487%2019.1754%2053.1487%2020.8134C53.1487%2021.8844%2052.6321%2022.6782%2051.7249%2023.094L54.4843%2027H52.3801L50.0239%2023.4342H49.1041V27H47.3149ZM50.1121%2019.6668H49.1041V21.9474H50.1121C50.8681%2021.9474%2051.3091%2021.5064%2051.3091%2020.7882C51.3091%2020.1204%2050.8681%2019.6668%2050.1121%2019.6668ZM55.6176%2027V18.18H57.9108L61.8546%2024.5556V18.18H63.6438V27H61.3506L57.4068%2020.6244V27H55.6176ZM66.1105%2027V18.18H71.2513V19.6668H67.8997V21.7584H70.7473V23.2452H67.8997V25.5132H71.2513V27H66.1105ZM73.3304%2027V18.18H75.5606L77.7152%2021.8844L79.8698%2018.18H82.1V27H80.3108V20.6748L78.3452%2023.976H77.0852L75.1196%2020.6748V27H73.3304ZM84.5617%2027V18.18H89.7025V19.6668H86.3509V21.7584H89.1985V23.2452H86.3509V25.5132H89.7025V27H84.5617ZM91.7816%2027V18.18H94.0748L98.0186%2024.5556V18.18H99.8078V27H97.5146L93.5708%2020.6244V27H91.7816ZM101.367%2019.8054V18.18H108.6V19.8054H105.878V27H104.089V19.8054H101.367Z'%20fill='%23161616'%20/%3e%3cg%20clip-path='url(%23clip2_5795_13250)'%3e%3cg%20clip-path='url(%23clip3_5795_13250)'%3e%3cg%20clip-path='url(%23clip4_5795_13250)'%3e%3cg%20clip-path='url(%23clip5_5795_13250)'%3e%3cg%20clip-path='url(%23clip6_5795_13250)'%3e%3cpath%20d='M30.775%2056.45C31.15%2055.5%2030.7%2055.125%2030.15%2055.125C29.225%2055.125%2028.175%2056.75%2028.175%2058.05C28.175%2058.675%2028.475%2059%2028.925%2059C29.45%2059%2030%2058.5%2030.475%2057.625H30.225C29.925%2058%2029.575%2058.275%2029.25%2058.275C28.925%2058.275%2028.75%2058.075%2028.75%2057.625C28.7558%2057.4396%2028.781%2057.2552%2028.825%2057.075L30.775%2056.45ZM29.775%2055.675C30.05%2055.675%2030.275%2055.875%2030.15%2056.325L28.95%2056.65C29.15%2056.1%2029.5%2055.65%2029.8%2055.65L29.775%2055.675Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cpath%20d='M30.15%2054.6999L31.275%2053.6749V53.5249H30.525L29.85%2054.6999H30.175H30.15Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip7_5795_13250)'%3e%3cpath%20d='M25.975%2055.675H26.625L25.575%2058.525C25.5421%2058.576%2025.5242%2058.6352%2025.5232%2058.6959C25.5222%2058.7565%2025.5382%2058.8163%2025.5694%2058.8683C25.6007%2058.9204%2025.6458%2058.9626%2025.6998%2058.9903C25.7538%2059.018%2025.8145%2059.03%2025.875%2059.025C26.625%2059.025%2027.475%2058.375%2027.825%2057.475H27.65C27.3359%2057.9021%2026.8865%2058.2105%2026.375%2058.35L27.3%2055.675H28.3L28.425%2055.275H27.475L27.8%2054.25H27.45L26.775%2055.275L25.975%2055.375V55.675Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip8_5795_13250)'%3e%3cpath%20d='M25.3%2055.5249C25.375%2055.2749%2025.2%2055.1249%2025.05%2055.1249C24.5%2055.1249%2023.8%2055.6499%2023.55%2056.3749H23.725C23.9026%2056.0881%2024.1778%2055.875%2024.5%2055.7749L23.425%2058.5999C23.4034%2058.6422%2023.3932%2058.6894%2023.3952%2058.7368C23.3973%2058.7843%2023.4116%2058.8304%2023.4368%2058.8707C23.4619%2058.911%2023.4971%2058.9441%2023.5389%2058.9667C23.5806%2058.9893%2023.6275%2059.0008%2023.675%2058.9999C24.225%2058.9999%2024.85%2058.4999%2025.125%2057.7499H24.9C24.7378%2058.0509%2024.471%2058.2821%2024.15%2058.3999L25.3%2055.5249ZM25.4%2054.4499C25.4591%2054.4499%2025.5176%2054.4383%2025.5722%2054.4156C25.6268%2054.393%2025.6764%2054.3599%2025.7182%2054.3181C25.76%2054.2763%2025.7932%2054.2267%2025.8158%2054.1721C25.8384%2054.1175%2025.85%2054.059%2025.85%2053.9999C25.8534%2053.9387%2025.8443%2053.8775%2025.8232%2053.82C25.8021%2053.7625%2025.7695%2053.7099%2025.7274%2053.6654C25.6853%2053.6209%2025.6345%2053.5855%2025.5782%2053.5614C25.5219%2053.5372%2025.4613%2053.5248%2025.4%2053.5249C25.2807%2053.5249%2025.1662%2053.5723%2025.0818%2053.6567C24.9974%2053.7411%2024.95%2053.8556%2024.95%2053.9749C24.95%2054.0943%2024.9974%2054.2087%2025.0818%2054.2931C25.1662%2054.3775%2025.2807%2054.4249%2025.4%2054.4249'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip9_5795_13250)'%3e%3cpath%20d='M20.125%2055.8999C20.3%2055.8999%2020.375%2056.1499%2020.125%2056.7499L19.375%2058.4499C19.2%2058.7749%2019.375%2058.9999%2019.675%2058.9999C19.7577%2059.0148%2019.843%2058.997%2019.9129%2058.9504C19.9828%2058.9038%2020.0319%2058.8319%2020.05%2058.7499L20.8%2056.7499C21.15%2056.3249%2021.8%2055.8749%2022.05%2055.8749C22.3%2055.8749%2022.25%2056.0249%2022.125%2056.2749L20.975%2058.5249C20.9497%2058.5734%2020.9371%2058.6276%2020.9383%2058.6823C20.9395%2058.737%2020.9545%2058.7906%2020.9819%2058.838C21.0094%2058.8854%2021.0483%2058.925%2021.0952%2058.9533C21.142%2058.9816%2021.1953%2058.9976%2021.25%2058.9999C21.825%2058.9999%2022.5%2058.4999%2022.75%2057.7499H22.6C22.4209%2058.051%2022.1355%2058.274%2021.8%2058.3749L22.8%2056.3749C22.9222%2056.1611%2022.9908%2055.9209%2023%2055.6749C23.0079%2055.6007%2022.9991%2055.5257%2022.9742%2055.4554C22.9494%2055.3851%2022.9091%2055.3212%2022.8564%2055.2685C22.8036%2055.2158%2022.7398%2055.1755%2022.6695%2055.1507C22.5991%2055.1258%2022.5242%2055.117%2022.45%2055.1249C21.95%2055.1249%2021.55%2055.6749%2020.95%2056.3749V55.8249C20.95%2055.4749%2020.825%2055.1249%2020.5%2055.1249C20.1%2055.1249%2019.75%2055.7499%2019.475%2056.3499H19.65C19.825%2056.0749%2019.975%2055.8999%2020.15%2055.8999'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip10_5795_13250)'%3e%3cpath%20d='M19.375%2056C19.5%2055.525%2019.425%2055.125%2019.075%2055.125C18.625%2055.125%2018.5%2055.425%2018.075%2056.375V55.825C18.05%2055.45%2017.925%2055.125%2017.575%2055.125C17.2%2055.125%2016.85%2055.75%2016.55%2056.375H16.75C16.925%2056.05%2017.125%2055.875%2017.25%2055.875C17.425%2055.875%2017.5%2056.125%2017.25%2056.725L16.5%2058.425C16.325%2058.75%2016.5%2058.95%2016.8%2058.95C16.8827%2058.9649%2016.968%2058.9472%2017.0379%2058.9006C17.1078%2058.8539%2017.1569%2058.7821%2017.175%2058.7L17.925%2056.7C18.1317%2056.4415%2018.3486%2056.1913%2018.575%2055.95H19.375V56Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip11_5795_13250)'%3e%3cpath%20d='M16.175%2056.45C16.55%2055.5%2016.1%2055.125%2015.55%2055.125C14.625%2055.125%2013.575%2056.75%2013.575%2058.05C13.575%2058.675%2013.875%2059%2014.325%2059C14.85%2059%2015.4%2058.5%2015.875%2057.625H15.625C15.325%2058%2014.975%2058.275%2014.65%2058.275C14.325%2058.275%2014.15%2058.075%2014.15%2057.625C14.1559%2057.4396%2014.181%2057.2552%2014.225%2057.075L16.175%2056.45ZM15.175%2055.675C15.45%2055.675%2015.675%2055.875%2015.55%2056.325L14.35%2056.65C14.55%2056.1%2014.9%2055.65%2015.2%2055.65L15.175%2055.675Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip12_5795_13250)'%3e%3cpath%20d='M11.35%2055.675H12L10.95%2058.525C10.9171%2058.576%2010.8992%2058.6352%2010.8982%2058.6959C10.8972%2058.7565%2010.9132%2058.8163%2010.9444%2058.8683C10.9757%2058.9204%2011.0208%2058.9626%2011.0748%2058.9903C11.1288%2059.018%2011.1895%2059.03%2011.25%2059.025C12%2059.025%2012.85%2058.375%2013.2%2057.475H13.025C12.7109%2057.9021%2012.2615%2058.2105%2011.75%2058.35L12.675%2055.675H13.675L13.8%2055.275H12.85L13.175%2054.25H12.825L12.15%2055.275L11.35%2055.375V55.675Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip13_5795_13250)'%3e%3cpath%20d='M9.84996%2058.2252C9.69996%2058.2252%209.59996%2057.9752%209.84996%2057.3752L10.875%2054.9752L10.575%2054.9502L10.25%2055.2752H10.175C8.74996%2055.2752%207.22496%2057.1002%207.22496%2058.5002C7.22137%2058.5701%207.23249%2058.64%207.25761%2058.7053C7.28272%2058.7706%207.32126%2058.8299%207.37075%2058.8794C7.42024%2058.9289%207.47956%2058.9674%207.54488%2058.9926C7.6102%2059.0177%207.68007%2059.0288%207.74996%2059.0252C8.17496%2059.0252%208.57496%2058.4252%209.04996%2057.7752L9.02496%2058.0252C8.94996%2058.6752%209.17496%2059.0252%209.52496%2059.0252C9.89996%2059.0252%2010.275%2058.4252%2010.525%2057.8002H10.35C10.175%2058.0752%209.97496%2058.2502%209.84996%2058.2502V58.2252ZM9.19996%2057.4002C8.87496%2057.8002%208.34996%2058.2752%208.12496%2058.2752C7.99996%2058.2752%207.89996%2058.1502%207.89996%2057.8752C7.89996%2057.0002%208.89996%2055.8252%209.39996%2055.8252C9.51862%2055.822%209.63696%2055.8389%209.74996%2055.8752L9.19996%2057.4002Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip14_5795_13250)'%3e%3cpath%20d='M7.85004%2056C7.97504%2055.525%207.90004%2055.125%207.55004%2055.125C7.10004%2055.125%206.97504%2055.425%206.55004%2056.375V55.825C6.52504%2055.45%206.40004%2055.125%206.05004%2055.125C5.67504%2055.125%205.32504%2055.75%205.02504%2056.375H5.22504C5.40004%2056.05%205.60004%2055.875%205.72504%2055.875C5.90004%2055.875%205.97504%2056.125%205.72504%2056.725L4.97504%2058.425C4.80004%2058.75%204.97504%2058.95%205.27504%2058.95C5.35775%2058.9649%205.443%2058.9472%205.51292%2058.9006C5.58284%2058.8539%205.63198%2058.7821%205.65004%2058.7L6.40004%2056.7C6.60676%2056.4415%206.82359%2056.1913%207.05004%2055.95H7.85004V56Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip15_5795_13250)'%3e%3cpath%20d='M2.79998%2058.8499L2.87498%2058.6249C1.92498%2058.4499%201.79998%2058.4499%202.19998%2057.4249L2.54998%2056.4499H3.29998C3.77498%2056.4499%203.77498%2056.6749%203.69998%2057.1999H3.94998L4.59998%2055.4749H4.34998C4.09998%2055.8749%203.89998%2056.1999%203.39998%2056.1999H2.64998L3.14998%2054.7999C3.34998%2054.2999%203.42498%2054.1999%204.07498%2054.1999H4.24998C4.89998%2054.1999%204.99998%2054.3749%204.99998%2055.0749H5.24998L5.47498%2053.8999H1.82498L1.74998%2054.1249C2.49998%2054.2749%202.57498%2054.3499%202.24998%2055.3249L1.42498%2057.3999C1.04998%2058.3749%200.924976%2058.4499%200.0499756%2058.5999L-0.0250244%2058.8249L2.79998%2058.8499Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip16_5795_13250)'%3e%3cg%20clip-path='url(%23clip17_5795_13250)'%3e%3cpath%20d='M21.925%2048.2C22.3%2047.25%2021.85%2046.875%2021.3%2046.875C20.375%2046.875%2019.325%2048.5%2019.325%2049.8C19.325%2050.425%2019.625%2050.75%2020.075%2050.75C20.6%2050.75%2021.15%2050.25%2021.625%2049.375H21.375C21.075%2049.75%2020.725%2050.025%2020.4%2050.025C20.075%2050.025%2019.9%2049.825%2019.9%2049.375C19.9059%2049.1896%2019.931%2049.0052%2019.975%2048.825L21.925%2048.2ZM20.925%2047.425C21.2%2047.425%2021.425%2047.625%2021.3%2048.075L20.1%2048.4C20.3%2047.85%2020.65%2047.4%2020.95%2047.4L20.925%2047.425Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cpath%20d='M21.3%2046.4499L22.425%2045.4249V45.2749H21.675L21%2046.4499H21.325H21.3Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip18_5795_13250)'%3e%3cpath%20d='M17.125%2047.425H17.775L16.725%2050.275C16.6921%2050.326%2016.6742%2050.3852%2016.6732%2050.4459C16.6722%2050.5065%2016.6882%2050.5663%2016.7195%2050.6183C16.7507%2050.6704%2016.7959%2050.7126%2016.8499%2050.7403C16.9039%2050.768%2016.9645%2050.78%2017.025%2050.775C17.775%2050.775%2018.625%2050.125%2018.975%2049.225H18.8C18.4859%2049.6521%2018.0365%2049.9605%2017.525%2050.1L18.45%2047.425H19.45L19.575%2047.025H18.625L18.95%2046H18.6L17.925%2047.025L17.125%2047.125V47.425Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip19_5795_13250)'%3e%3cpath%20d='M16.45%2047.25C16.525%2047%2016.35%2046.85%2016.2%2046.85C15.65%2046.85%2014.95%2047.375%2014.7%2048.1H14.875C15.0526%2047.8132%2015.3278%2047.6001%2015.65%2047.5L14.575%2050.325C14.5534%2050.3673%2014.5431%2050.4145%2014.5452%2050.4619C14.5472%2050.5094%2014.5615%2050.5555%2014.5867%2050.5958C14.6119%2050.6361%2014.6471%2050.6692%2014.6888%2050.6918C14.7306%2050.7144%2014.7775%2050.7259%2014.825%2050.725C15.375%2050.725%2016%2050.225%2016.275%2049.475H16.05C15.8878%2049.776%2015.621%2050.0072%2015.3%2050.125L16.45%2047.25ZM16.55%2046.175C16.6091%2046.175%2016.6676%2046.1634%2016.7222%2046.1407C16.7768%2046.1181%2016.8264%2046.085%2016.8682%2046.0432C16.91%2046.0014%2016.9431%2045.9518%2016.9657%2045.8972C16.9884%2045.8426%2017%2045.7841%2017%2045.725C17.0034%2045.6638%2016.9943%2045.6026%2016.9732%2045.5451C16.9521%2045.4876%2016.9195%2045.435%2016.8774%2045.3905C16.8352%2045.346%2016.7845%2045.3106%2016.7282%2045.2865C16.6719%2045.2623%2016.6113%2045.2499%2016.55%2045.25C16.4306%2045.25%2016.3162%2045.2974%2016.2318%2045.3818C16.1474%2045.4662%2016.1%2045.5807%2016.1%2045.7C16.1%2045.8193%2016.1474%2045.9338%2016.2318%2046.0182C16.3162%2046.1026%2016.4306%2046.15%2016.55%2046.15'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip20_5795_13250)'%3e%3cpath%20d='M13.075%2050.1249L14.875%2045.3499L14.8%2045.2749L13.55%2045.4249V45.5749L13.8%2045.7499C14.025%2045.9249%2013.95%2046.0749%2013.75%2046.5999L12.4%2050.2499C12.3685%2050.2991%2012.3509%2050.3559%2012.349%2050.4142C12.3471%2050.4726%2012.3609%2050.5304%2012.389%2050.5815C12.4172%2050.6327%2012.4586%2050.6753%2012.5089%2050.705C12.5592%2050.7346%2012.6166%2050.7501%2012.675%2050.7499C13.25%2050.7499%2013.85%2050.2249%2014.125%2049.4999H13.95C13.7377%2049.8015%2013.4291%2050.0219%2013.075%2050.1249Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip21_5795_13250)'%3e%3cpath%20d='M11.35%2049.9752C11.2%2049.9752%2011.1%2049.7252%2011.35%2049.1252L12.375%2046.7252L12.075%2046.7002L11.75%2047.0252H11.675C10.25%2047.0252%208.72496%2048.8502%208.72496%2050.2502C8.72137%2050.3201%208.73249%2050.39%208.75761%2050.4553C8.78272%2050.5206%208.82126%2050.5799%208.87075%2050.6294C8.92024%2050.6789%208.97956%2050.7174%209.04488%2050.7426C9.1102%2050.7677%209.18007%2050.7788%209.24996%2050.7752C9.67496%2050.7752%2010.075%2050.1752%2010.55%2049.5252L10.525%2049.7752C10.45%2050.4252%2010.675%2050.7752%2011.025%2050.7752C11.4%2050.7752%2011.775%2050.1752%2012.025%2049.5502H11.85C11.675%2049.8252%2011.475%2050.0002%2011.35%2050.0002V49.9752ZM10.7%2049.1502C10.375%2049.5502%209.84996%2050.0252%209.62496%2050.0252C9.49996%2050.0252%209.39996%2049.9002%209.39996%2049.6252C9.39996%2048.7502%2010.4%2047.5752%2010.9%2047.5752C11.0186%2047.572%2011.137%2047.5889%2011.25%2047.6252L10.7%2049.1502Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip22_5795_13250)'%3e%3cpath%20d='M9.15%2047.0002H8.075C7.91845%2046.8999%207.73591%2046.8477%207.55%2046.8502C7.11669%2046.8501%206.70075%2047.0205%206.39202%2047.3246C6.0833%2047.6286%205.90657%2048.0419%205.9%2048.4752C5.88969%2048.5836%205.90095%2048.693%205.93314%2048.797C5.96532%2048.9011%206.01779%2048.9977%206.08751%2049.0814C6.15724%2049.1651%206.24284%2049.2341%206.33938%2049.2845C6.43592%2049.335%206.54149%2049.3658%206.65%2049.3752C6.175%2049.5752%205.9%2049.8252%205.9%2050.1002C5.9%2050.1772%205.92093%2050.2528%205.96057%2050.3188C6.0002%2050.3849%206.05703%2050.4389%206.125%2050.4752C5.05%2050.8002%204.625%2051.1752%204.625%2051.6502C4.625%2052.1502%205.275%2052.3502%206.025%2052.3502C7.35%2052.3502%208.425%2051.6752%208.425%2051.0752C8.425%2050.6252%208.025%2050.4502%207.35%2050.2502C6.8%2050.0752%206.55%2050.0502%206.55%2049.8502C6.56644%2049.752%206.60704%2049.6595%206.66814%2049.581C6.72924%2049.5024%206.80892%2049.4403%206.9%2049.4002C7.31131%2049.369%207.69601%2049.1848%207.97828%2048.884C8.26056%2048.5832%208.41993%2048.1876%208.425%2047.7752C8.42962%2047.6483%208.41272%2047.5215%208.375%2047.4002H9L9.15%2047.0002ZM7.1%2050.9002C7.625%2051.0752%207.85%2051.1502%207.85%2051.3002C7.85%2051.6502%207.35%2051.9252%206.45%2051.9252C5.775%2051.9252%205.45%2051.7752%205.45%2051.4252C5.45%2051.0502%205.8%2050.8002%206.325%2050.6002C6.56712%2050.7189%206.81783%2050.8191%207.075%2050.9002H7.1ZM6.9%2049.1002C6.65%2049.1002%206.575%2048.9002%206.575%2048.6752C6.575%2047.9752%206.925%2047.1252%207.45%2047.1252C7.7%2047.1252%207.775%2047.3252%207.775%2047.5252C7.775%2048.2502%207.425%2049.1002%206.9%2049.1002Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip23_5795_13250)'%3e%3cpath%20d='M3.575%2048.2252C4.05%2048.2252%204.075%2048.4252%203.975%2048.9252H4.25L4.875%2047.2252H4.625C4.375%2047.6252%204.2%2047.9502%203.675%2047.9502H2.65L3.15%2046.5502C3.325%2046.0502%203.4%2045.9502%204.075%2045.9502H4.5C5.15%2045.9502%205.25%2046.1252%205.25%2046.8252H5.5L5.725%2045.6502H1.825L1.75%2045.8752C2.5%2046.0252%202.575%2046.1002%202.25%2047.0752L1.45%2049.1752C1.075%2050.1502%200.95%2050.2252%200.05%2050.3752L0%2050.6252H4.35L5.15%2049.3752H4.85C4.35%2049.8752%203.85%2050.3252%202.85%2050.3252C1.675%2050.3252%201.775%2050.2502%202.175%2049.1752L2.525%2048.2252H3.575ZM4.15%2045.2752L5.25%2044.4752V44.3252H4.5L3.85%2045.3002H4.15V45.2752Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip24_5795_13250)'%3e%3cg%20clip-path='url(%23clip25_5795_13250)'%3e%3cpath%20d='M21.8%2039.95C22.175%2039%2021.725%2038.625%2021.175%2038.625C20.25%2038.625%2019.2%2040.25%2019.2%2041.55C19.2%2042.175%2019.5%2042.5%2019.95%2042.5C20.475%2042.5%2021.025%2042%2021.5%2041.125H21.25C20.95%2041.5%2020.6%2041.775%2020.275%2041.775C19.95%2041.775%2019.775%2041.575%2019.775%2041.125C19.7809%2040.9396%2019.806%2040.7552%2019.85%2040.575L21.8%2039.95ZM20.8%2039.175C21.075%2039.175%2021.3%2039.375%2021.175%2039.825L19.975%2040.15C20.175%2039.6%2020.525%2039.15%2020.825%2039.15L20.8%2039.175Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cpath%20d='M21.175%2038.1999L22.3%2037.1749V37.0249H21.55L20.875%2038.1999H21.2H21.175Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip26_5795_13250)'%3e%3cpath%20d='M16.975%2039.1501H17.625L16.575%2042.0001C16.5421%2042.0511%2016.5242%2042.1103%2016.5232%2042.171C16.5222%2042.2316%2016.5382%2042.2914%2016.5694%2042.3434C16.6007%2042.3955%2016.6458%2042.4377%2016.6998%2042.4654C16.7538%2042.4931%2016.8145%2042.5051%2016.875%2042.5001C17.625%2042.5001%2018.475%2041.8501%2018.825%2040.9501H18.65C18.3359%2041.3772%2017.8865%2041.6856%2017.375%2041.8251L18.3%2039.1501H19.3L19.425%2038.7501H18.475L18.8%2037.7251H18.45L17.775%2038.7501L16.975%2038.8501V39.1501Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip27_5795_13250)'%3e%3cpath%20d='M16.65%2039.5C16.775%2039.025%2016.7%2038.625%2016.35%2038.625C15.9%2038.625%2015.775%2038.925%2015.35%2039.875V39.325C15.325%2038.95%2015.2%2038.625%2014.85%2038.625C14.475%2038.625%2014.125%2039.25%2013.825%2039.875H14.025C14.2%2039.55%2014.4%2039.375%2014.525%2039.375C14.7%2039.375%2014.775%2039.625%2014.525%2040.225L13.775%2041.925C13.6%2042.25%2013.775%2042.45%2014.075%2042.45C14.1577%2042.4649%2014.243%2042.4472%2014.3129%2042.4006C14.3828%2042.3539%2014.432%2042.2821%2014.45%2042.2L15.2%2040.2C15.4067%2039.9415%2015.6236%2039.6913%2015.85%2039.45H16.65V39.5Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip28_5795_13250)'%3e%3cpath%20d='M13.45%2039.9251C13.825%2038.9751%2013.375%2038.6001%2012.825%2038.6001C11.9%2038.6001%2010.85%2040.2251%2010.85%2041.5251C10.85%2042.1501%2011.15%2042.4751%2011.6%2042.4751C12.125%2042.4751%2012.675%2041.9751%2013.15%2041.1001H12.9C12.6%2041.4751%2012.25%2041.7501%2011.925%2041.7501C11.6%2041.7501%2011.425%2041.5501%2011.425%2041.1001C11.4308%2040.9147%2011.456%2040.7303%2011.5%2040.5501L13.45%2039.9251ZM12.45%2039.1501C12.725%2039.1501%2012.95%2039.3501%2012.825%2039.8001L11.625%2040.1251C11.825%2039.5751%2012.175%2039.1251%2012.475%2039.1251L12.45%2039.1501Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip29_5795_13250)'%3e%3cpath%20d='M10.2%2038.6249C9.69998%2038.6249%209.19998%2039.1749%208.74998%2039.8249L9.74998%2037.0999L9.69998%2037.0249L8.44998%2037.1749V37.2749L8.69998%2037.4749C8.92498%2037.6499%208.84998%2037.7999%208.64998%2038.3249L7.54998%2041.2249C7.46796%2041.4023%207.40106%2041.5863%207.34998%2041.7749C7.34998%2042.1249%207.79998%2042.4499%208.22498%2042.4499C9.17498%2042.4499%2010.725%2040.7249%2010.725%2039.3999C10.725%2038.8249%2010.6%2038.5999%2010.2%2038.5999V38.6249ZM8.54998%2041.8999C8.34998%2041.8999%208.07498%2041.7249%208.07498%2041.5749C8.12768%2041.3868%208.19454%2041.2029%208.27498%2041.0249L8.59998%2040.1999C8.92498%2039.7749%209.44998%2039.3499%209.74998%2039.3499C9.92498%2039.3499%2010.05%2039.4499%2010.05%2039.7249C10.05%2040.4999%209.32498%2041.8999%208.54998%2041.8999Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip30_5795_13250)'%3e%3cpath%20d='M7.05003%2039C7.12503%2038.75%206.95003%2038.6%206.80003%2038.6C6.25003%2038.6%205.55003%2039.125%205.30003%2039.85H5.47503C5.65263%2039.5632%205.92784%2039.3501%206.25003%2039.25L5.17503%2042.075C5.15343%2042.1173%205.14316%2042.1645%205.14522%2042.2119C5.14727%2042.2594%205.16158%2042.3055%205.18676%2042.3458C5.21193%2042.3861%205.24711%2042.4192%205.28887%2042.4418C5.33063%2042.4644%205.37754%2042.4759%205.42503%2042.475C5.97503%2042.475%206.60003%2041.975%206.87503%2041.225H6.65003C6.4878%2041.526%206.22102%2041.7572%205.90003%2041.875L7.05003%2039ZM7.15003%2037.925C7.20913%2037.925%207.26764%2037.9134%207.32224%2037.8907C7.37684%2037.8681%207.42645%2037.835%207.46823%2037.7932C7.51002%2037.7514%207.54316%2037.7018%207.56578%2037.6472C7.58839%2037.5926%207.60003%2037.5341%207.60003%2037.475C7.60344%2037.4138%207.59432%2037.3526%207.57323%2037.2951C7.55214%2037.2376%207.51954%2037.185%207.47741%2037.1405C7.43528%2037.096%207.38451%2037.0606%207.32822%2037.0365C7.27193%2037.0123%207.21129%2036.9999%207.15003%2037C7.03069%2037%206.91623%2037.0474%206.83184%2037.1318C6.74744%2037.2162%206.70003%2037.3307%206.70003%2037.45C6.70003%2037.5693%206.74744%2037.6838%206.83184%2037.7682C6.91623%2037.8526%207.03069%2037.9%207.15003%2037.9'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip31_5795_13250)'%3e%3cpath%20d='M4.4%2037.3501H1.825L1.75%2037.5751C2.5%2037.7251%202.575%2037.8001%202.25%2038.7751L1.45%2040.9001C1.075%2041.8751%200.95%2041.9501%200.075%2042.1001L0%2042.3501H3.925L4.8%2040.8501H4.5C4%2041.3501%203.45%2042.0501%202.575%2042.0501C1.9%2042.0501%201.825%2041.9251%202.175%2040.9251L2.95%2038.8001C3.3%2037.8251%203.45%2037.7501%204.325%2037.6001L4.4%2037.3501Z'%20fill='%23161616'%20/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_5795_13250'%20x1='0'%20y1='6'%20x2='33'%20y2='6'%20gradientUnits='userSpaceOnUse'%20%3e%3cstop%20stop-color='%23000091'%20/%3e%3cstop%20offset='0.5'%20stop-color='%23000091'%20/%3e%3cstop%20offset='0.5'%20stop-color='%23E1000F'%20/%3e%3cstop%20offset='1'%20stop-color='%23E1000F'%20/%3e%3c/linearGradient%3e%3cclipPath%20id='clip0_5795_13250'%3e%3crect%20width='33'%20height='12'%20fill='white'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip1_5795_13250'%3e%3crect%20width='33'%20height='13.5'%20fill='white'%20transform='translate(0%20-0.75)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip2_5795_13250'%3e%3crect%20width='108.88'%20height='26.5'%20fill='white'%20transform='translate(0%2033)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip3_5795_13250'%3e%3crect%20width='63'%20height='45'%20fill='white'%20transform='translate(0%2037)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip4_5795_13250'%3e%3crect%20width='31.5'%20height='22.5'%20fill='white'%20transform='translate(0%2037)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip5_5795_13250'%3e%3crect%20width='3.1'%20height='5.45'%20fill='white'%20transform='translate(28.175%2053.5249)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip6_5795_13250'%3e%3crect%20width='2.75'%20height='3.875'%20fill='white'%20transform='translate(28.175%2055.125)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip7_5795_13250'%3e%3crect%20width='2.875'%20height='4.75'%20fill='white'%20transform='translate(25.55%2054.25)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip8_5795_13250'%3e%3crect%20width='2.45'%20height='5.475'%20fill='white'%20transform='translate(23.4%2053.5249)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip9_5795_13250'%3e%3crect%20width='3.7'%20height='3.875'%20fill='white'%20transform='translate(19.3%2055.125)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip10_5795_13250'%3e%3crect%20width='3'%20height='3.875'%20fill='white'%20transform='translate(16.425%2055.125)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip11_5795_13250'%3e%3crect%20width='2.75'%20height='3.875'%20fill='white'%20transform='translate(13.575%2055.125)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip12_5795_13250'%3e%3crect%20width='2.875'%20height='4.75'%20fill='white'%20transform='translate(10.925%2054.25)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip13_5795_13250'%3e%3crect%20width='3.675'%20height='4.05'%20fill='white'%20transform='translate(7.22498%2054.9502)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip14_5795_13250'%3e%3crect%20width='3'%20height='3.875'%20fill='white'%20transform='translate(4.90002%2055.125)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip15_5795_13250'%3e%3crect%20width='5.475'%20height='4.95'%20fill='white'%20transform='translate(0%2053.8999)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip16_5795_13250'%3e%3crect%20width='3.1'%20height='5.45'%20fill='white'%20transform='translate(19.325%2045.2749)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip17_5795_13250'%3e%3crect%20width='2.75'%20height='3.875'%20fill='white'%20transform='translate(19.325%2046.875)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip18_5795_13250'%3e%3crect%20width='2.875'%20height='4.75'%20fill='white'%20transform='translate(16.7%2046)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip19_5795_13250'%3e%3crect%20width='2.45'%20height='5.475'%20fill='white'%20transform='translate(14.55%2045.25)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip20_5795_13250'%3e%3crect%20width='2.525'%20height='5.475'%20fill='white'%20transform='translate(12.35%2045.2749)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip21_5795_13250'%3e%3crect%20width='3.675'%20height='4.05'%20fill='white'%20transform='translate(8.72498%2046.7002)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip22_5795_13250'%3e%3crect%20width='4.5'%20height='5.5'%20fill='white'%20transform='translate(4.65002%2046.8501)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip23_5795_13250'%3e%3crect%20width='5.75'%20height='6.275'%20fill='white'%20transform='translate(0%2044.3252)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip24_5795_13250'%3e%3crect%20width='3.1'%20height='5.45'%20fill='white'%20transform='translate(19.2%2037.0249)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip25_5795_13250'%3e%3crect%20width='2.75'%20height='3.875'%20fill='white'%20transform='translate(19.2%2038.625)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip26_5795_13250'%3e%3crect%20width='2.875'%20height='4.75'%20fill='white'%20transform='translate(16.55%2037.7251)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip27_5795_13250'%3e%3crect%20width='3'%20height='3.875'%20fill='white'%20transform='translate(13.7%2038.625)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip28_5795_13250'%3e%3crect%20width='2.75'%20height='3.875'%20fill='white'%20transform='translate(10.85%2038.6001)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip29_5795_13250'%3e%3crect%20width='3.4'%20height='5.45'%20fill='white'%20transform='translate(7.34998%2037.0249)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip30_5795_13250'%3e%3crect%20width='2.45'%20height='5.475'%20fill='white'%20transform='translate(5.15002%2037)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip31_5795_13250'%3e%3crect%20width='4.8'%20height='4.975'%20fill='white'%20transform='translate(0%2037.3501)'%20/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Nv=()=>{const{t}=pe.useCunningham();return b.jsxs("footer",{className:"c__footer",children:[b.jsx("div",{className:"c__footer__stripe"}),b.jsxs("div",{className:"c__footer__content",children:[b.jsxs("div",{className:"c__footer__content__top",children:[b.jsx("div",{children:b.jsx("div",{className:"c__footer__content__top__logo",children:b.jsx("img",{className:"c__footer__logo",alt:"",width:"0",height:"0",decoding:"async","data-nimg":"1",src:kv})})}),b.jsx("div",{className:"c__footer__content__top__links",children:[{label:"legifrance.gouv.fr",href:"https://legifrance.gouv.fr/"},{label:"info.gouv.fr",href:"https://info.gouv.fr/"},{label:"service-public.fr",href:"https://service-public.fr/"},{label:"data.gouv.fr",href:"https://data.gouv.fr/"}].map(({label:e,href:n})=>b.jsxs("a",{href:n,target:"_blank",children:[b.jsx("span",{children:e}),b.jsx("img",{alt:"",width:"18",decoding:"async","data-nimg":"1",src:_s})]},e))})]}),b.jsx("div",{className:"c__footer__content__middle",children:[{label:t("components.footer.links.legal"),href:"/legal-notice"},{label:t("components.footer.links.personal_data"),href:"/personal-data-cookies"},{label:t("components.footer.links.accessibility"),href:"/accessibility"}].map(({label:e,href:n})=>b.jsx("a",{href:n,children:b.jsx("span",{children:e})},e))}),b.jsxs("p",{className:"c__footer__content__mention",children:[t("components.footer.mention")," ",b.jsxs("a",{href:"https://github.com/etalab/licence-ouverte/blob/master/LO.md",target:"__blank",children:[b.jsx("span",{children:t("components.footer.license")}),b.jsx("img",{alt:"",width:"18",decoding:"async","data-nimg":"1",src:_s})]})]})]})]})},Rv=t=>b.jsx(xv,{...t,className:"c__filter",children:b.jsx(Mv,{...t})}),Mv=t=>{const e=c.useContext(Vf),n=e!=null&&e.selectedItem?t.options.find(r=>{var i;return r.value===((i=e.selectedItem)==null?void 0:i.key)}):null;return b.jsxs(b.Fragment,{children:[b.jsxs(M5,{className:Me("c__filter__button",{"c__filter__button--active":!!n}),children:[b.jsx(k5,{className:"c__filter__label",children:n?b.jsxs(b.Fragment,{children:[t.label," : ",n.label]}):b.jsx(b.Fragment,{children:t.label})}),b.jsx("span",{"aria-hidden":"true",className:Me("material-icons c__filter__button__icon",{opened:e==null?void 0:e.isOpen}),children:"keyboard_arrow_down"})]}),b.jsx(jf,{className:"c__dropdown-menu",children:b.jsx(ov,{children:t.options.map(r=>b.jsxs(c.Fragment,{children:[b.jsx(sv,{id:r.value,className:"c__dropdown-menu-item",children:b.jsxs("div",{className:"c__filter__item",children:[r.render?r.render():r.label,(t.selectedKey===r.value||r.isChecked)&&b.jsx("span",{className:"material-icons checked",children:"check"})]})},r.value),r.showSeparator&&b.jsx(Af,{})]},r.value))})})]})},Lv=({logo:t,mainButton:e,banner:n,title:r,subtitle:i})=>b.jsx("div",{className:"c__hero",children:b.jsxs("div",{className:"c__hero__display",children:[b.jsxs("div",{className:"c__hero__display__captions",children:[t,b.jsx("h2",{children:r}),b.jsx("span",{children:i}),e||b.jsx(sc,{})]}),b.jsx("img",{src:n,alt:""})]})}),Av=({children:t})=>b.jsx("div",{className:"c__home-gutter",children:t}),Bf=(t,e,n=void 0)=>{const r=Array.isArray(e)?e:e.replace(/(\[(\d)\])/g,".$2").replace(/^\./,"").split(".");if(!r.length||r[0]===void 0)return t;const i=r[0];return typeof t!="object"||t===null||!(i in t)||t[i]===void 0?n:Bf(t[i],r.slice(1),n)},Kv={placeholder:"Entrez votre adresse e-mail",srLabel:"Adresse e-mail",submit:"Suivant",title:"Connexion avec {linebreak}votre adresse e-mail"},Fv={homepageLinkTitle:{withoutService:"Retour à l'accueil",withService:"Retour à l'accueil - {serviceName}"},license:"Sauf mention explicite de propriété intellectuelle détenue par des tiers, les contenus de ce site sont proposés sous {license}",licenseEtalab:"licence etalab-2.0",links:{a11y:{perfect:"Accessibilité : conforme",partial:"Accessibilité : partiellement conforme",bad:"Accessibilité : non conforme"},privacy:"Données personnelles",sitemap:"Plan du site",terms:"Mentions légales"}},jv={label:"Les services de La Suite numérique"},Hv={homepageLinkTitle:"Accueil - {serviceName}"},zv={newWindow:"{title} - nouvelle fenêtre"},Vv={help:"Qu'est-ce que ProConnect ?",loginWith:"S’identifier avec",loginWithProconnect:"{loginWith} {proconnect}",or:"ou",title:"Connexion avec ProConnect"},Uf={email:Kv,footer:Fv,gaufre:jv,header:Hv,links:zv,proconnect:Vv},Bv=c.createContext(Uf);function Uv(){const t=c.useContext(Bv)||Uf;return{t:function(e,n={}){const r=Bf(t,e);if(!r)return console.warn(`Translation for key "${e}" not found`),e;if(n){const i=[];if(Object.keys(n).forEach(l=>{typeof n[l]!="string"&&i.push(l)}),!i.length)return r.replace(/{(\w+)}/g,(l,a)=>n[a]);const o=r.split(/{(.*?)}/);return b.jsx(b.Fragment,{children:o.map((l,a)=>l in n?b.jsx(c.Fragment,{children:n[l]},a):l)})}return r}}}const Wv={responsive:"lasuite-gaufre-btn--responsive",small:"lasuite-gaufre-btn--small"},Gv=({variant:t})=>{const{t:e}=Uv(),n=t?Wv[t]:"";return b.jsx("button",{type:"button",className:`lasuite-gaufre-btn ${n} lasuite-gaufre-btn--vanilla js-lasuite-gaufre-btn`,title:e("gaufre.label"),children:e("gaufre.label")})},qv=()=>b.jsxs(b.Fragment,{children:[b.jsx("script",{src:"https://integration.lasuite.numerique.gouv.fr/api/v1/gaufre.js",id:"lasuite-gaufre-script",async:!0,defer:!0}),b.jsx(Gv,{variant:"small"})]}),Wf=({languages:t})=>{const{isOpen:e,setIsOpen:n}=On();return b.jsx(hr,{options:t,isOpen:e,onOpenChange:n,children:b.jsxs(pe.Button,{onClick:()=>n(!e),color:"primary-text",className:"c__language-picker",children:[b.jsx("span",{className:"material-icons",children:"translate"}),b.jsx("span",{className:"c__language-picker__label",children:"Français"}),b.jsx("span",{className:"material-icons",children:e?"arrow_drop_up":"arrow_drop_down"})]})})},Gf=({leftIcon:t,rightIcon:e,languages:n,onTogglePanel:r,isPanelOpen:i})=>{const{t:o}=pe.useCunningham();return b.jsxs("div",{className:"c__header",children:[b.jsx("div",{className:"c__header__toggle-menu",children:b.jsx(pe.Button,{size:"medium",onClick:r,"aria-label":o(i?"Close the menu":"Open the menu"),color:"tertiary-text",icon:b.jsx("span",{className:"material-icons clr-primary-800",children:i?"close":"menu"})})}),b.jsx("div",{className:"c__header__left",children:t}),b.jsxs("div",{className:"c__header__right",children:[n&&b.jsx("div",{className:"c__header__right__language-picker",children:b.jsx(Wf,{languages:n})}),e]})]})},ll={themes:{default:{theme:{colors:{"primary-text":"#000091","primary-050":"#F5F5FE","primary-100":"#ECECFE","primary-150":"#F4F4FD","primary-200":"#E3E3FD","primary-300":"#CACAFB","primary-400":"#8585F6","primary-500":"#6A6AF4","primary-600":"#313178","primary-700":"#272747","primary-800":"#000091","primary-900":"#21213F","secondary-text":"#fff","secondary-100":"#fee9ea","secondary-200":"#fedfdf","secondary-300":"#fdbfbf","secondary-400":"#e1020f","secondary-500":"#c91a1f","secondary-600":"#5e2b2b","secondary-700":"#3b2424","secondary-800":"#341f1f","secondary-900":"#2b1919","greyscale-text":"#303C4B","greyscale-000":"#fff","greyscale-050":"#F6F6F6","greyscale-100":"#eee","greyscale-200":"#E5E5E5","greyscale-250":"#ddd","greyscale-300":"#CECECE","greyscale-350":"#ddd","greyscale-400":"#929292","greyscale-500":"#7C7C7C","greyscale-600":"#666666","greyscale-700":"#3A3A3A","greyscale-750":"#353535","greyscale-800":"#2A2A2A","greyscale-900":"#242424","greyscale-950":"#1E1E1E","greyscale-1000":"#161616","success-text":"#1f8d49","success-100":"#dffee6","success-200":"#b8fec9","success-300":"#88fdaa","success-400":"#3bea7e","success-500":"#1f8d49","success-600":"#18753c","success-700":"#204129","success-800":"#1e2e22","success-900":"#19281d","info-text":"#0078f3","info-100":"#E8EDFF","info-200":"#DDE5FF","info-300":"#BCCDFF","info-400":"#518FFF","info-500":"#0078F3","info-600":"#0063CB","info-700":"#273961","info-800":"#222A3F","info-900":"#1D2437","warning-text":"#d64d00","warning-100":"#fff4f3","warning-200":"#ffe9e6","warning-300":"#ffded9","warning-400":"#ffbeb4","warning-500":"#d64d00","warning-600":"#b34000","warning-700":"#5e2c21","warning-800":"#3e241e","warning-900":"#361e19","danger-text":"#FFF","danger-050":"#FFF4F4","danger-100":"#FFE9E9","danger-200":"#FFDDDD","danger-300":"#FFBDBD","danger-400":"#FF5655","danger-500":"#F60700","danger-600":"#CE0500","danger-700":"#642626","danger-800":"#412121","danger-900":"#391C1C","blue-500":"#417DC4","brown-500":"#BD987A","cyan-500":"#009099","gold-500":"#C3992A","green-500":"#00A95F","olive-500":"#68A532","orange-500":"#E4794A","purple-500":"#A558A0","red-500":"#E1000F","yellow-500":"#B7A73F","rose-500":"#E18B76"},font:{sizes:{xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",ml:"0.938rem",xl:"1.25rem",t:"0.6875rem",s:"0.75rem",h1:"2rem",h2:"1.75rem",h3:"1.5rem",h4:"1.375rem",h5:"1.25rem",h6:"1.125rem","xl-alt":"5rem","lg-alt":"4.5rem","md-alt":"4rem","sm-alt":"3.5rem","xs-alt":"3rem"},weights:{thin:100,extrabold:800,black:900},families:{accent:"Marianne",base:"Marianne"}},spacings:{0:"0",none:"0",auto:"auto",bx:"2.2rem",full:"100%","4xs":"0.125rem","3xs":"0.25rem","2xs":"0.375rem",xs:"0.5rem",sm:"0.75rem",base:"1rem",md:"1.5rem",lg:"2rem",xl:"2.5rem",xxl:"3rem",xxxl:"3.5rem","4xl":"4rem","5xl":"4.5rem","6xl":"6rem","7xl":"7.5rem"},breakpoints:{xxs:"320px",xs:"480px",mobile:"768px",tablet:"1024px"}},components:{modal:{"width-small":"342px"},tooltip:{padding:"4px 8px","background-color":"ref(theme.colors.greyscale-1000)"},button:{"medium-height":"40px","medium-text-height":"40px","border-radius":"4px","small-height":"26px",primary:{"background--color":"ref(theme.colors.primary-text)","background--color-hover":"#1212ff","background--color-active":"#2323ff","background--color-disabled":"ref(theme.colors.greyscale-100)",color:"#fff","color-hover":"#fff","color-active":"#fff","color-focus-visible":"#fff",disabled:"ref(theme.colors.greyscale-500)"},"primary-text":{"background--color":"ref(theme.colors.primary-text)","background--color-hover":"ref(theme.colors.greyscale-100)","background--color-active":"ref(theme.colors.primary-100)","background--color-focus-visible":"#fff","background--color-disabled":"ref(theme.colors.greyscale-000)",color:"ref(theme.colors.primary-800)","color-hover":"ref(theme.colors.primary-800)",disabled:"ref(theme.colors.greyscale-400)"},secondary:{"background--color-hover":"#F6F6F6","background--color-active":"#EDEDED","background--color-focus-visible":"ref(theme.colors.greyscale-000)","background--disabled":"ref(theme.colors.greyscale-000)",color:"ref(theme.colors.primary-800)","border--color":"ref(theme.colors.greyscale-300)","border--color-hover":"ref(theme.colors.greyscale-300)","border--color-disabled":"ref(theme.colors.greyscale-300)",disabled:"ref(theme.colors.greyscale-400)"},tertiary:{"background--color":"ref(theme.colors.primary-100)","background--color-focus-visible":"ref(theme.colors.primary-100)","background--color-hover":"ref(theme.colors.primary-300)","background--color-active":"ref(theme.colors.primary-300)","background--disabled":"ref(theme.colors.primary-050)",color:"ref(theme.colors.primary-800)",disabled:"ref(theme.colors.primary-300)"},"tertiary-text":{"background--color-hover":"ref(theme.colors.greyscale-100)","color-hover":"ref(theme.colors.primary-text)",color:"ref(theme.colors.primary-600)"},danger:{"color-hover":"white","background--color":"ref(theme.colors.danger-600)","background--color-hover":"#FF2725","background--color-focus-visible":"ref(theme.colors.danger-600)","background--color-disabled":"ref(theme.colors.greyscale-100)","color-disabled":"ref(theme.colors.greyscale-400)"}},datagrid:{"header--color":"ref(theme.colors.greyscale-600)","header--size":"12px","header--weight":"500","body--background-color-hover":"ref(theme.colors.greyscale-100)"},"forms-checkbox":{"border-radius":"4px","border-color":"ref(theme.colors.primary-800)","background-color--hover":"ref(theme.colors.greyscale-100)","border--color-disabled":"ref(theme.colors.greyscale-200)","border--color":"ref(theme.colors.primary-800)","background--disabled":"ref(theme.colors.greyscale-200)","background--enable":"ref(theme.colors.primary-800)","check--disabled":"ref(theme.colors.greyscale-300)","check--enable":"ref(theme.colors.greyscale-000)",color:"ref(theme.colors.primary-text)","label--color":"ref(theme.colors.greyscale-1000)","label--size":"ref(theme.font.sizes.sm)","label--weight":"500","text--color":"ref(theme.colors.greyscale-600)","text--size":"ref(theme.font.sizes.s)","text--weight":"400","text--color-disabled":"ref(theme.colors.greyscale-300)"},"forms-labelledbox":{"label-color--small":"ref(theme.colors.greyscale-950)","label-color--small--disabled":"ref(theme.colors.greyscale-300)","label-color--big":"ref(theme.colors.greyscale-950)","label-color--big--disabled":"ref(theme.colors.greyscale-300)"},"forms-radio":{"border-color":"ref(theme.colors.primary-800)","background-color":"ref(theme.colors.greyscale-000)","accent-color":"ref(theme.colors.primary-800)","accent-color-disabled":"ref(theme.colors.greyscale-300)"},"forms-switch":{"border--color-disabled":"ref(theme.colors.greyscale-300)","border--color":"ref(theme.colors.primary-800)","handle-background-color":"white","handle-background-color--disabled":"ref(theme.colors.greyscale-000)","rail-background-color--disabled":"ref(theme.colors.greyscale-000)","accent-color":"ref(theme.colors.primary-800)"},"forms-textarea":{"label-color--focus":"ref(theme.colors.greyscale-1000)","border-radius":"4px","border-color":"ref(theme.colors.greyscale-400)","box-shadow--color--hover":"ref(theme.colors.greyscale-400)","box-shadow--color--focus":"ref(theme.colors.primary-800)","value-color":"ref(theme.colors.greyscale-950)","value-color--disabled":"ref(theme.colors.greyscale-300)","font-size":"14px"},"forms-input":{"label-color--focus":"ref(theme.colors.greyscale-1000)","border-radius":"4px","border-color":"ref(theme.colors.greyscale-400)","box-shadow--color--hover":"ref(theme.colors.greyscale-400)","box-shadow--color--focus":"ref(theme.colors.primary-800)","value-color":"ref(theme.colors.greyscale-950)","value-color--disabled":"ref(theme.colors.greyscale-300)","font-size":"14px"},"forms-select":{"label-color--focus":"ref(theme.colors.greyscale-1000)","item-font-size":"14px","border-radius":"4px","border-radius-hover":"4px","border-color":"ref(theme.colors.greyscale-400)","box-shadow--color--hover":"ref(theme.colors.greyscale-400)","box-shadow--color--focus":"ref(theme.colors.primary-800)","value-color":"ref(theme.colors.greyscale-950)","font-size":"14px"},badge:{"font-size":"ref(theme.font.sizes.xs)","border-radius":"4px","padding-inline":"ref(theme.spacings.xs)","padding-block":"ref(theme.spacings.2xs)",accent:{"background-color":"ref(theme.colors.primary-100)",color:"ref(theme.colors.primary-600)"},neutral:{"background-color":"ref(theme.colors.greyscale-100)",color:"ref(theme.colors.greyscale-600)"},danger:{"background-color":"ref(theme.colors.danger-100)",color:"ref(theme.colors.danger-600)"},success:{"background-color":"ref(theme.colors.success-100)",color:"ref(theme.colors.success-600)"},warning:{"background-color":"ref(theme.colors.warning-100)",color:"ref(theme.colors.warning-600)"},info:{"background-color":"ref(theme.colors.info-100)",color:"ref(theme.colors.info-600)"}}}}}},An=()=>{const[t,e]=c.useState(window.innerWidth),n=parseInt(ll.themes.default.theme.breakpoints.mobile.replace("px","")),r=parseInt(ll.themes.default.theme.breakpoints.tablet.replace("px","")),i=()=>{e(window.innerWidth)};c.useEffect(()=>(window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)}),[]);const o=t<=n,l=t<=r,a=t>r;return{isMobile:o,isTablet:l,isDesktop:a}},qf=({children:t,isOpen:e=!1})=>{const{isDesktop:n}=An();return n?b.jsx("div",{className:"c__left-panel",children:t}):b.jsx("div",{className:Me("c__left-panel__mobile",{open:e}),children:t})},{createElement:kn,createContext:Yv,createRef:vS,forwardRef:Yf,useCallback:Oe,useContext:Zf,useEffect:Rt,useImperativeHandle:Xf,useLayoutEffect:Zv,useMemo:Xv,useRef:Ne,useState:En}=_,Is=_[`useId${Math.random()}`.slice(0,5)],Jv=Zv,Ni=Yv(null);Ni.displayName="PanelGroupContext";const Mt=Jv,Qv=typeof Is=="function"?Is:()=>null;let em=0;function ia(t=null){const e=Qv(),n=Ne(t||e||null);return n.current===null&&(n.current=""+em++),t??n.current}function Jf({children:t,className:e="",collapsedSize:n,collapsible:r,defaultSize:i,forwardedRef:o,id:l,maxSize:a,minSize:s,onCollapse:u,onExpand:d,onResize:f,order:p,style:g,tagName:y="div",...h}){const v=Zf(Ni);if(v===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:m,expandPanel:S,getPanelSize:C,getPanelStyle:P,groupId:$,isPanelCollapsed:E,reevaluatePanelConstraints:T,registerPanel:L,resizePanel:z,unregisterPanel:A}=v,w=ia(l),M=Ne({callbacks:{onCollapse:u,onExpand:d,onResize:f},constraints:{collapsedSize:n,collapsible:r,defaultSize:i,maxSize:a,minSize:s},id:w,idIsFromProps:l!==void 0,order:p});Ne({didLogMissingDefaultSizeWarning:!1}),Mt(()=>{const{callbacks:R,constraints:U}=M.current,x={...U};M.current.id=w,M.current.idIsFromProps=l!==void 0,M.current.order=p,R.onCollapse=u,R.onExpand=d,R.onResize=f,U.collapsedSize=n,U.collapsible=r,U.defaultSize=i,U.maxSize=a,U.minSize=s,(x.collapsedSize!==U.collapsedSize||x.collapsible!==U.collapsible||x.maxSize!==U.maxSize||x.minSize!==U.minSize)&&T(M.current,x)}),Mt(()=>{const R=M.current;return L(R),()=>{A(R)}},[p,w,L,A]),Xf(o,()=>({collapse:()=>{m(M.current)},expand:R=>{S(M.current,R)},getId(){return w},getSize(){return C(M.current)},isCollapsed(){return E(M.current)},isExpanded(){return!E(M.current)},resize:R=>{z(M.current,R)}}),[m,S,C,E,w,z]);const B=P(M.current,i);return kn(y,{...h,children:t,className:e,id:l,style:{...B,...g},"data-panel":"","data-panel-collapsible":r||void 0,"data-panel-group-id":$,"data-panel-id":w,"data-panel-size":parseFloat(""+B.flexGrow).toFixed(1)})}const al=Yf((t,e)=>kn(Jf,{...t,forwardedRef:e}));Jf.displayName="Panel";al.displayName="forwardRef(Panel)";let sl=null,kt=null;function tm(t,e){if(e){const n=(e&r0)!==0,r=(e&i0)!==0,i=(e&o0)!==0,o=(e&l0)!==0;if(n)return i?"se-resize":o?"ne-resize":"e-resize";if(r)return i?"sw-resize":o?"nw-resize":"w-resize";if(i)return"s-resize";if(o)return"n-resize"}switch(t){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function nm(){kt!==null&&(document.head.removeChild(kt),sl=null,kt=null)}function fo(t,e){const n=tm(t,e);sl!==n&&(sl=n,kt===null&&(kt=document.createElement("style"),document.head.appendChild(kt)),kt.innerHTML=`*{cursor: ${n}!important;}`)}function Qf(t){return t.type==="keydown"}function e0(t){return t.type.startsWith("pointer")}function t0(t){return t.type.startsWith("mouse")}function Ri(t){if(e0(t)){if(t.isPrimary)return{x:t.clientX,y:t.clientY}}else if(t0(t))return{x:t.clientX,y:t.clientY};return{x:1/0,y:1/0}}function rm(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function im(t,e,n){return t.x<e.x+e.width&&t.x+t.width>e.x&&t.y<e.y+e.height&&t.y+t.height>e.y}function om(t,e){if(t===e)throw new Error("Cannot compare node with itself");const n={a:Ns(t),b:Ns(e)};let r;for(;n.a.at(-1)===n.b.at(-1);)t=n.a.pop(),e=n.b.pop(),r=t;te(r,"Stacking order can only be calculated for elements with a common ancestor");const i={a:ks(Os(n.a)),b:ks(Os(n.b))};if(i.a===i.b){const o=r.childNodes,l={a:n.a.at(-1),b:n.b.at(-1)};let a=o.length;for(;a--;){const s=o[a];if(s===l.a)return 1;if(s===l.b)return-1}}return Math.sign(i.a-i.b)}const lm=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function am(t){var e;const n=getComputedStyle((e=n0(t))!==null&&e!==void 0?e:t).display;return n==="flex"||n==="inline-flex"}function sm(t){const e=getComputedStyle(t);return!!(e.position==="fixed"||e.zIndex!=="auto"&&(e.position!=="static"||am(t))||+e.opacity<1||"transform"in e&&e.transform!=="none"||"webkitTransform"in e&&e.webkitTransform!=="none"||"mixBlendMode"in e&&e.mixBlendMode!=="normal"||"filter"in e&&e.filter!=="none"||"webkitFilter"in e&&e.webkitFilter!=="none"||"isolation"in e&&e.isolation==="isolate"||lm.test(e.willChange)||e.webkitOverflowScrolling==="touch")}function Os(t){let e=t.length;for(;e--;){const n=t[e];if(te(n,"Missing node"),sm(n))return n}return null}function ks(t){return t&&Number(getComputedStyle(t).zIndex)||0}function Ns(t){const e=[];for(;t;)e.push(t),t=n0(t);return e}function n0(t){const{parentNode:e}=t;return e&&e instanceof ShadowRoot?e.host:e}const r0=1,i0=2,o0=4,l0=8,um=rm()==="coarse";let Ye=[],$n=!1,Ct=new Map,Mi=new Map;const ar=new Set;function cm(t,e,n,r,i){var o;const{ownerDocument:l}=e,a={direction:n,element:e,hitAreaMargins:r,setResizeHandlerState:i},s=(o=Ct.get(l))!==null&&o!==void 0?o:0;return Ct.set(l,s+1),ar.add(a),si(),function(){var d;Mi.delete(t),ar.delete(a);const f=(d=Ct.get(l))!==null&&d!==void 0?d:1;if(Ct.set(l,f-1),si(),f===1&&Ct.delete(l),Ye.includes(a)){const p=Ye.indexOf(a);p>=0&&Ye.splice(p,1),la(),i("up",!0,null)}}}function Rs(t){const{target:e}=t,{x:n,y:r}=Ri(t);$n=!0,oa({target:e,x:n,y:r}),si(),Ye.length>0&&(ui("down",t),t.preventDefault(),t.stopPropagation())}function Un(t){const{x:e,y:n}=Ri(t);if($n&&t.buttons===0&&($n=!1,ui("up",t)),!$n){const{target:r}=t;oa({target:r,x:e,y:n})}ui("move",t),la(),Ye.length>0&&t.preventDefault()}function tn(t){const{target:e}=t,{x:n,y:r}=Ri(t);Mi.clear(),$n=!1,Ye.length>0&&t.preventDefault(),ui("up",t),oa({target:e,x:n,y:r}),la(),si()}function oa({target:t,x:e,y:n}){Ye.splice(0);let r=null;(t instanceof HTMLElement||t instanceof SVGElement)&&(r=t),ar.forEach(i=>{const{element:o,hitAreaMargins:l}=i,a=o.getBoundingClientRect(),{bottom:s,left:u,right:d,top:f}=a,p=um?l.coarse:l.fine;if(e>=u-p&&e<=d+p&&n>=f-p&&n<=s+p){if(r!==null&&document.contains(r)&&o!==r&&!o.contains(r)&&!r.contains(o)&&om(r,o)>0){let y=r,h=!1;for(;y&&!y.contains(o);){if(im(y.getBoundingClientRect(),a)){h=!0;break}y=y.parentElement}if(h)return}Ye.push(i)}})}function ho(t,e){Mi.set(t,e)}function la(){let t=!1,e=!1;Ye.forEach(r=>{const{direction:i}=r;i==="horizontal"?t=!0:e=!0});let n=0;Mi.forEach(r=>{n|=r}),t&&e?fo("intersection",n):t?fo("horizontal",n):e?fo("vertical",n):nm()}function si(){Ct.forEach((t,e)=>{const{body:n}=e;n.removeEventListener("contextmenu",tn),n.removeEventListener("pointerdown",Rs),n.removeEventListener("pointerleave",Un),n.removeEventListener("pointermove",Un)}),window.removeEventListener("pointerup",tn),window.removeEventListener("pointercancel",tn),ar.size>0&&($n?(Ye.length>0&&Ct.forEach((t,e)=>{const{body:n}=e;t>0&&(n.addEventListener("contextmenu",tn),n.addEventListener("pointerleave",Un),n.addEventListener("pointermove",Un))}),window.addEventListener("pointerup",tn),window.addEventListener("pointercancel",tn)):Ct.forEach((t,e)=>{const{body:n}=e;t>0&&(n.addEventListener("pointerdown",Rs,{capture:!0}),n.addEventListener("pointermove",Un))}))}function ui(t,e){ar.forEach(n=>{const{setResizeHandlerState:r}=n,i=Ye.includes(n);r(t,i,e)})}function dm(){const[t,e]=En(0);return Oe(()=>e(n=>n+1),[])}function te(t,e){if(!t)throw console.error(e),Error(e)}const aa=10;function jt(t,e,n=aa){return t.toFixed(n)===e.toFixed(n)?0:t>e?1:-1}function ut(t,e,n=aa){return jt(t,e,n)===0}function Ae(t,e,n){return jt(t,e,n)===0}function fm(t,e,n){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++){const i=t[r],o=e[r];if(!Ae(i,o,n))return!1}return!0}function bn({panelConstraints:t,panelIndex:e,size:n}){const r=t[e];te(r!=null,`Panel constraints not found for index ${e}`);let{collapsedSize:i=0,collapsible:o,maxSize:l=100,minSize:a=0}=r;if(jt(n,a)<0)if(o){const s=(i+a)/2;jt(n,s)<0?n=i:n=a}else n=a;return n=Math.min(l,n),n=parseFloat(n.toFixed(aa)),n}function Jn({delta:t,initialLayout:e,panelConstraints:n,pivotIndices:r,prevLayout:i,trigger:o}){if(Ae(t,0))return e;const l=[...e],[a,s]=r;te(a!=null,"Invalid first pivot index"),te(s!=null,"Invalid second pivot index");let u=0;if(o==="keyboard"){{const f=t<0?s:a,p=n[f];te(p,`Panel constraints not found for index ${f}`);const{collapsedSize:g=0,collapsible:y,minSize:h=0}=p;if(y){const v=e[f];if(te(v!=null,`Previous layout not found for panel index ${f}`),Ae(v,g)){const m=h-v;jt(m,Math.abs(t))>0&&(t=t<0?0-m:m)}}}{const f=t<0?a:s,p=n[f];te(p,`No panel constraints found for index ${f}`);const{collapsedSize:g=0,collapsible:y,minSize:h=0}=p;if(y){const v=e[f];if(te(v!=null,`Previous layout not found for panel index ${f}`),Ae(v,h)){const m=v-g;jt(m,Math.abs(t))>0&&(t=t<0?0-m:m)}}}}{const f=t<0?1:-1;let p=t<0?s:a,g=0;for(;;){const h=e[p];te(h!=null,`Previous layout not found for panel index ${p}`);const m=bn({panelConstraints:n,panelIndex:p,size:100})-h;if(g+=m,p+=f,p<0||p>=n.length)break}const y=Math.min(Math.abs(t),Math.abs(g));t=t<0?0-y:y}{let p=t<0?a:s;for(;p>=0&&p<n.length;){const g=Math.abs(t)-Math.abs(u),y=e[p];te(y!=null,`Previous layout not found for panel index ${p}`);const h=y-g,v=bn({panelConstraints:n,panelIndex:p,size:h});if(!Ae(y,v)&&(u+=y-v,l[p]=v,u.toPrecision(3).localeCompare(Math.abs(t).toPrecision(3),void 0,{numeric:!0})>=0))break;t<0?p--:p++}}if(fm(i,l))return i;{const f=t<0?s:a,p=e[f];te(p!=null,`Previous layout not found for panel index ${f}`);const g=p+u,y=bn({panelConstraints:n,panelIndex:f,size:g});if(l[f]=y,!Ae(y,g)){let h=g-y,m=t<0?s:a;for(;m>=0&&m<n.length;){const S=l[m];te(S!=null,`Previous layout not found for panel index ${m}`);const C=S+h,P=bn({panelConstraints:n,panelIndex:m,size:C});if(Ae(S,P)||(h-=P-S,l[m]=P),Ae(h,0))break;t>0?m--:m++}}}const d=l.reduce((f,p)=>p+f,0);return Ae(d,100)?l:i}function hm({layout:t,panelsArray:e,pivotIndices:n}){let r=0,i=100,o=0,l=0;const a=n[0];te(a!=null,"No pivot index found"),e.forEach((f,p)=>{const{constraints:g}=f,{maxSize:y=100,minSize:h=0}=g;p===a?(r=h,i=y):(o+=h,l+=y)});const s=Math.min(i,100-o),u=Math.max(r,100-l),d=t[a];return{valueMax:s,valueMin:u,valueNow:d}}function sr(t,e=document){return Array.from(e.querySelectorAll(`[data-panel-resize-handle-id][data-panel-group-id="${t}"]`))}function a0(t,e,n=document){const i=sr(t,n).findIndex(o=>o.getAttribute("data-panel-resize-handle-id")===e);return i??null}function s0(t,e,n){const r=a0(t,e,n);return r!=null?[r,r+1]:[-1,-1]}function u0(t,e=document){var n;if(e instanceof HTMLElement&&(e==null||(n=e.dataset)===null||n===void 0?void 0:n.panelGroupId)==t)return e;const r=e.querySelector(`[data-panel-group][data-panel-group-id="${t}"]`);return r||null}function Li(t,e=document){const n=e.querySelector(`[data-panel-resize-handle-id="${t}"]`);return n||null}function pm(t,e,n,r=document){var i,o,l,a;const s=Li(e,r),u=sr(t,r),d=s?u.indexOf(s):-1,f=(i=(o=n[d])===null||o===void 0?void 0:o.id)!==null&&i!==void 0?i:null,p=(l=(a=n[d+1])===null||a===void 0?void 0:a.id)!==null&&l!==void 0?l:null;return[f,p]}function gm({committedValuesRef:t,eagerValuesRef:e,groupId:n,layout:r,panelDataArray:i,panelGroupElement:o,setLayout:l}){Ne({didWarnAboutMissingResizeHandle:!1}),Mt(()=>{if(!o)return;const a=sr(n,o);for(let s=0;s<i.length-1;s++){const{valueMax:u,valueMin:d,valueNow:f}=hm({layout:r,panelsArray:i,pivotIndices:[s,s+1]}),p=a[s];if(p!=null){const g=i[s];te(g,`No panel data found for index "${s}"`),p.setAttribute("aria-controls",g.id),p.setAttribute("aria-valuemax",""+Math.round(u)),p.setAttribute("aria-valuemin",""+Math.round(d)),p.setAttribute("aria-valuenow",f!=null?""+Math.round(f):"")}}return()=>{a.forEach((s,u)=>{s.removeAttribute("aria-controls"),s.removeAttribute("aria-valuemax"),s.removeAttribute("aria-valuemin"),s.removeAttribute("aria-valuenow")})}},[n,r,i,o]),Rt(()=>{if(!o)return;const a=e.current;te(a,"Eager values not found");const{panelDataArray:s}=a,u=u0(n,o);te(u!=null,`No group found for id "${n}"`);const d=sr(n,o);te(d,`No resize handles found for group id "${n}"`);const f=d.map(p=>{const g=p.getAttribute("data-panel-resize-handle-id");te(g,"Resize handle element has no handle id attribute");const[y,h]=pm(n,g,s,o);if(y==null||h==null)return()=>{};const v=m=>{if(!m.defaultPrevented)switch(m.key){case"Enter":{m.preventDefault();const S=s.findIndex(C=>C.id===y);if(S>=0){const C=s[S];te(C,`No panel data found for index ${S}`);const P=r[S],{collapsedSize:$=0,collapsible:E,minSize:T=0}=C.constraints;if(P!=null&&E){const L=Jn({delta:Ae(P,$)?T-$:$-P,initialLayout:r,panelConstraints:s.map(z=>z.constraints),pivotIndices:s0(n,g,o),prevLayout:r,trigger:"keyboard"});r!==L&&l(L)}}break}}};return p.addEventListener("keydown",v),()=>{p.removeEventListener("keydown",v)}});return()=>{f.forEach(p=>p())}},[o,t,e,n,r,i,l])}function Ms(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}function c0(t,e){const n=t==="horizontal",{x:r,y:i}=Ri(e);return n?r:i}function vm(t,e,n,r,i){const o=n==="horizontal",l=Li(e,i);te(l,`No resize handle element found for id "${e}"`);const a=l.getAttribute("data-panel-group-id");te(a,"Resize handle element has no group id attribute");let{initialCursorPosition:s}=r;const u=c0(n,t),d=u0(a,i);te(d,`No group element found for id "${a}"`);const f=d.getBoundingClientRect(),p=o?f.width:f.height;return(u-s)/p*100}function mm(t,e,n,r,i,o){if(Qf(t)){const l=n==="horizontal";let a=0;t.shiftKey?a=100:i!=null?a=i:a=10;let s=0;switch(t.key){case"ArrowDown":s=l?0:a;break;case"ArrowLeft":s=l?-a:0;break;case"ArrowRight":s=l?a:0;break;case"ArrowUp":s=l?0:-a;break;case"End":s=100;break;case"Home":s=-100;break}return s}else return r==null?0:vm(t,e,n,r,o)}function ym({panelDataArray:t}){const e=Array(t.length),n=t.map(o=>o.constraints);let r=0,i=100;for(let o=0;o<t.length;o++){const l=n[o];te(l,`Panel constraints not found for index ${o}`);const{defaultSize:a}=l;a!=null&&(r++,e[o]=a,i-=a)}for(let o=0;o<t.length;o++){const l=n[o];te(l,`Panel constraints not found for index ${o}`);const{defaultSize:a}=l;if(a!=null)continue;const s=t.length-r,u=i/s;r++,e[o]=u,i-=u}return e}function nn(t,e,n){e.forEach((r,i)=>{const o=t[i];te(o,`Panel data not found for index ${i}`);const{callbacks:l,constraints:a,id:s}=o,{collapsedSize:u=0,collapsible:d}=a,f=n[s];if(f==null||r!==f){n[s]=r;const{onCollapse:p,onExpand:g,onResize:y}=l;y&&y(r,f),d&&(p||g)&&(g&&(f==null||ut(f,u))&&!ut(r,u)&&g(),p&&(f==null||!ut(f,u))&&ut(r,u)&&p())}})}function Pr(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!=e[n])return!1;return!0}function bm({defaultSize:t,dragState:e,layout:n,panelData:r,panelIndex:i,precision:o=3}){const l=n[i];let a;return l==null?a=t!=null?t.toPrecision(o):"1":r.length===1?a="1":a=l.toPrecision(o),{flexBasis:0,flexGrow:a,flexShrink:1,overflow:"hidden",pointerEvents:e!==null?"none":void 0}}function Sm(t,e=10){let n=null;return(...i)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{t(...i)},e)}}function Ls(t){try{if(typeof localStorage<"u")t.getItem=e=>localStorage.getItem(e),t.setItem=(e,n)=>{localStorage.setItem(e,n)};else throw new Error("localStorage not supported in this environment")}catch(e){console.error(e),t.getItem=()=>null,t.setItem=()=>{}}}function d0(t){return`react-resizable-panels:${t}`}function f0(t){return t.map(e=>{const{constraints:n,id:r,idIsFromProps:i,order:o}=e;return i?r:o?`${o}:${JSON.stringify(n)}`:JSON.stringify(n)}).sort((e,n)=>e.localeCompare(n)).join(",")}function h0(t,e){try{const n=d0(t),r=e.getItem(n);if(r){const i=JSON.parse(r);if(typeof i=="object"&&i!=null)return i}}catch{}return null}function Cm(t,e,n){var r,i;const o=(r=h0(t,n))!==null&&r!==void 0?r:{},l=f0(e);return(i=o[l])!==null&&i!==void 0?i:null}function wm(t,e,n,r,i){var o;const l=d0(t),a=f0(e),s=(o=h0(t,i))!==null&&o!==void 0?o:{};s[a]={expandToSizes:Object.fromEntries(n.entries()),layout:r};try{i.setItem(l,JSON.stringify(s))}catch(u){console.error(u)}}function As({layout:t,panelConstraints:e}){const n=[...t],r=n.reduce((o,l)=>o+l,0);if(n.length!==e.length)throw Error(`Invalid ${e.length} panel layout: ${n.map(o=>`${o}%`).join(", ")}`);if(!Ae(r,100)&&n.length>0)for(let o=0;o<e.length;o++){const l=n[o];te(l!=null,`No layout data found for index ${o}`);const a=100/r*l;n[o]=a}let i=0;for(let o=0;o<e.length;o++){const l=n[o];te(l!=null,`No layout data found for index ${o}`);const a=bn({panelConstraints:e,panelIndex:o,size:l});l!=a&&(i+=l-a,n[o]=a)}if(!Ae(i,0))for(let o=0;o<e.length;o++){const l=n[o];te(l!=null,`No layout data found for index ${o}`);const a=l+i,s=bn({panelConstraints:e,panelIndex:o,size:a});if(l!==s&&(i-=s-l,n[o]=s,Ae(i,0)))break}return n}const xm=100,Qn={getItem:t=>(Ls(Qn),Qn.getItem(t)),setItem:(t,e)=>{Ls(Qn),Qn.setItem(t,e)}},Ks={};function p0({autoSaveId:t=null,children:e,className:n="",direction:r,forwardedRef:i,id:o=null,onLayout:l=null,keyboardResizeBy:a=null,storage:s=Qn,style:u,tagName:d="div",...f}){const p=ia(o),g=Ne(null),[y,h]=En(null),[v,m]=En([]),S=dm(),C=Ne({}),P=Ne(new Map),$=Ne(0),E=Ne({autoSaveId:t,direction:r,dragState:y,id:p,keyboardResizeBy:a,onLayout:l,storage:s}),T=Ne({layout:v,panelDataArray:[],panelDataArrayChanged:!1});Ne({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),Xf(i,()=>({getId:()=>E.current.id,getLayout:()=>{const{layout:k}=T.current;return k},setLayout:k=>{const{onLayout:F}=E.current,{layout:K,panelDataArray:V}=T.current,W=As({layout:k,panelConstraints:V.map(X=>X.constraints)});Ms(K,W)||(m(W),T.current.layout=W,F&&F(W),nn(V,W,C.current))}}),[]),Mt(()=>{E.current.autoSaveId=t,E.current.direction=r,E.current.dragState=y,E.current.id=p,E.current.onLayout=l,E.current.storage=s}),gm({committedValuesRef:E,eagerValuesRef:T,groupId:p,layout:v,panelDataArray:T.current.panelDataArray,setLayout:m,panelGroupElement:g.current}),Rt(()=>{const{panelDataArray:k}=T.current;if(t){if(v.length===0||v.length!==k.length)return;let F=Ks[t];F==null&&(F=Sm(wm,xm),Ks[t]=F);const K=[...k],V=new Map(P.current);F(t,K,V,v,s)}},[t,v,s]),Rt(()=>{});const L=Oe(k=>{const{onLayout:F}=E.current,{layout:K,panelDataArray:V}=T.current;if(k.constraints.collapsible){const W=V.map(q=>q.constraints),{collapsedSize:X=0,panelSize:Q,pivotIndices:oe}=Dt(V,k,K);if(te(Q!=null,`Panel size not found for panel "${k.id}"`),!ut(Q,X)){P.current.set(k.id,Q);const fe=gn(V,k)===V.length-1?Q-X:X-Q,re=Jn({delta:fe,initialLayout:K,panelConstraints:W,pivotIndices:oe,prevLayout:K,trigger:"imperative-api"});Pr(K,re)||(m(re),T.current.layout=re,F&&F(re),nn(V,re,C.current))}}},[]),z=Oe((k,F)=>{const{onLayout:K}=E.current,{layout:V,panelDataArray:W}=T.current;if(k.constraints.collapsible){const X=W.map(me=>me.constraints),{collapsedSize:Q=0,panelSize:oe=0,minSize:q=0,pivotIndices:fe}=Dt(W,k,V),re=F??q;if(ut(oe,Q)){const me=P.current.get(k.id),ie=me!=null&&me>=re?me:re,gt=gn(W,k)===W.length-1?oe-ie:ie-oe,xe=Jn({delta:gt,initialLayout:V,panelConstraints:X,pivotIndices:fe,prevLayout:V,trigger:"imperative-api"});Pr(V,xe)||(m(xe),T.current.layout=xe,K&&K(xe),nn(W,xe,C.current))}}},[]),A=Oe(k=>{const{layout:F,panelDataArray:K}=T.current,{panelSize:V}=Dt(K,k,F);return te(V!=null,`Panel size not found for panel "${k.id}"`),V},[]),w=Oe((k,F)=>{const{panelDataArray:K}=T.current,V=gn(K,k);return bm({defaultSize:F,dragState:y,layout:v,panelData:K,panelIndex:V})},[y,v]),M=Oe(k=>{const{layout:F,panelDataArray:K}=T.current,{collapsedSize:V=0,collapsible:W,panelSize:X}=Dt(K,k,F);return te(X!=null,`Panel size not found for panel "${k.id}"`),W===!0&&ut(X,V)},[]),B=Oe(k=>{const{layout:F,panelDataArray:K}=T.current,{collapsedSize:V=0,collapsible:W,panelSize:X}=Dt(K,k,F);return te(X!=null,`Panel size not found for panel "${k.id}"`),!W||jt(X,V)>0},[]),R=Oe(k=>{const{panelDataArray:F}=T.current;F.push(k),F.sort((K,V)=>{const W=K.order,X=V.order;return W==null&&X==null?0:W==null?-1:X==null?1:W-X}),T.current.panelDataArrayChanged=!0,S()},[S]);Mt(()=>{if(T.current.panelDataArrayChanged){T.current.panelDataArrayChanged=!1;const{autoSaveId:k,onLayout:F,storage:K}=E.current,{layout:V,panelDataArray:W}=T.current;let X=null;if(k){const oe=Cm(k,W,K);oe&&(P.current=new Map(Object.entries(oe.expandToSizes)),X=oe.layout)}X==null&&(X=ym({panelDataArray:W}));const Q=As({layout:X,panelConstraints:W.map(oe=>oe.constraints)});Ms(V,Q)||(m(Q),T.current.layout=Q,F&&F(Q),nn(W,Q,C.current))}}),Mt(()=>{const k=T.current;return()=>{k.layout=[]}},[]);const U=Oe(k=>{let F=!1;const K=g.current;return K&&window.getComputedStyle(K,null).getPropertyValue("direction")==="rtl"&&(F=!0),function(W){W.preventDefault();const X=g.current;if(!X)return()=>null;const{direction:Q,dragState:oe,id:q,keyboardResizeBy:fe,onLayout:re}=E.current,{layout:me,panelDataArray:ie}=T.current,{initialLayout:Je}=oe??{},gt=s0(q,k,X);let xe=mm(W,k,Q,oe,fe,X);const Kn=Q==="horizontal";Kn&&F&&(xe=-xe);const gr=ie.map(Z=>Z.constraints),D=Jn({delta:xe,initialLayout:Je??me,panelConstraints:gr,pivotIndices:gt,prevLayout:me,trigger:Qf(W)?"keyboard":"mouse-or-touch"}),Y=!Pr(me,D);(e0(W)||t0(W))&&$.current!=xe&&($.current=xe,!Y&&xe!==0?Kn?ho(k,xe<0?r0:i0):ho(k,xe<0?o0:l0):ho(k,0)),Y&&(m(D),T.current.layout=D,re&&re(D),nn(ie,D,C.current))}},[]),x=Oe((k,F)=>{const{onLayout:K}=E.current,{layout:V,panelDataArray:W}=T.current,X=W.map(me=>me.constraints),{panelSize:Q,pivotIndices:oe}=Dt(W,k,V);te(Q!=null,`Panel size not found for panel "${k.id}"`);const fe=gn(W,k)===W.length-1?Q-F:F-Q,re=Jn({delta:fe,initialLayout:V,panelConstraints:X,pivotIndices:oe,prevLayout:V,trigger:"imperative-api"});Pr(V,re)||(m(re),T.current.layout=re,K&&K(re),nn(W,re,C.current))},[]),N=Oe((k,F)=>{const{layout:K,panelDataArray:V}=T.current,{collapsedSize:W=0,collapsible:X}=F,{collapsedSize:Q=0,collapsible:oe,maxSize:q=100,minSize:fe=0}=k.constraints,{panelSize:re}=Dt(V,k,K);re!=null&&(X&&oe&&ut(re,W)?ut(W,Q)||x(k,Q):re<fe?x(k,fe):re>q&&x(k,q))},[x]),I=Oe((k,F)=>{const{direction:K}=E.current,{layout:V}=T.current;if(!g.current)return;const W=Li(k,g.current);te(W,`Drag handle element not found for id "${k}"`);const X=c0(K,F);h({dragHandleId:k,dragHandleRect:W.getBoundingClientRect(),initialCursorPosition:X,initialLayout:V})},[]),G=Oe(()=>{h(null)},[]),H=Oe(k=>{const{panelDataArray:F}=T.current,K=gn(F,k);K>=0&&(F.splice(K,1),delete C.current[k.id],T.current.panelDataArrayChanged=!0,S())},[S]),j=Xv(()=>({collapsePanel:L,direction:r,dragState:y,expandPanel:z,getPanelSize:A,getPanelStyle:w,groupId:p,isPanelCollapsed:M,isPanelExpanded:B,reevaluatePanelConstraints:N,registerPanel:R,registerResizeHandle:U,resizePanel:x,startDragging:I,stopDragging:G,unregisterPanel:H,panelGroupElement:g.current}),[L,y,r,z,A,w,p,M,B,N,R,U,x,I,G,H]),O={display:"flex",flexDirection:r==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return kn(Ni.Provider,{value:j},kn(d,{...f,children:e,className:n,id:o,ref:g,style:{...O,...u},"data-panel-group":"","data-panel-group-direction":r,"data-panel-group-id":p}))}const g0=Yf((t,e)=>kn(p0,{...t,forwardedRef:e}));p0.displayName="PanelGroup";g0.displayName="forwardRef(PanelGroup)";function gn(t,e){return t.findIndex(n=>n===e||n.id===e.id)}function Dt(t,e,n){const r=gn(t,e),o=r===t.length-1?[r-1,r]:[r,r+1],l=n[r];return{...e.constraints,panelSize:l,pivotIndices:o}}function Em({disabled:t,handleId:e,resizeHandler:n,panelGroupElement:r}){Rt(()=>{if(t||n==null||r==null)return;const i=Li(e,r);if(i==null)return;const o=l=>{if(!l.defaultPrevented)switch(l.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{l.preventDefault(),n(l);break}case"F6":{l.preventDefault();const a=i.getAttribute("data-panel-group-id");te(a,`No group element found for id "${a}"`);const s=sr(a,r),u=a0(a,e,r);te(u!==null,`No resize element found for id "${e}"`);const d=l.shiftKey?u>0?u-1:s.length-1:u+1<s.length?u+1:0;s[d].focus();break}}};return i.addEventListener("keydown",o),()=>{i.removeEventListener("keydown",o)}},[r,t,e,n])}function v0({children:t=null,className:e="",disabled:n=!1,hitAreaMargins:r,id:i,onBlur:o,onDragging:l,onFocus:a,style:s={},tabIndex:u=0,tagName:d="div",...f}){var p,g;const y=Ne(null),h=Ne({onDragging:l});Rt(()=>{h.current.onDragging=l});const v=Zf(Ni);if(v===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:m,groupId:S,registerResizeHandle:C,startDragging:P,stopDragging:$,panelGroupElement:E}=v,T=ia(i),[L,z]=En("inactive"),[A,w]=En(!1),[M,B]=En(null),R=Ne({state:L});Mt(()=>{R.current.state=L}),Rt(()=>{if(n)B(null);else{const I=C(T);B(()=>I)}},[n,T,C]);const U=(p=r==null?void 0:r.coarse)!==null&&p!==void 0?p:15,x=(g=r==null?void 0:r.fine)!==null&&g!==void 0?g:5;return Rt(()=>{if(n||M==null)return;const I=y.current;return te(I,"Element ref not attached"),cm(T,I,m,{coarse:U,fine:x},(H,j,O)=>{if(j)switch(H){case"down":{z("drag"),te(O,'Expected event to be defined for "down" action'),P(T,O);const{onDragging:k}=h.current;k&&k(!0);break}case"move":{const{state:k}=R.current;k!=="drag"&&z("hover"),te(O,'Expected event to be defined for "move" action'),M(O);break}case"up":{z("hover"),$();const{onDragging:k}=h.current;k&&k(!1);break}}else z("inactive")})},[U,m,n,x,C,T,M,P,$]),Em({disabled:n,handleId:T,resizeHandler:M,panelGroupElement:E}),kn(d,{...f,children:t,className:e,id:i,onBlur:()=>{w(!1),o==null||o()},onFocus:()=>{w(!0),a==null||a()},ref:y,role:"separator",style:{...{touchAction:"none",userSelect:"none"},...s},tabIndex:u,"data-panel-group-direction":m,"data-panel-group-id":S,"data-resize-handle":"","data-resize-handle-active":L==="drag"?"pointer":A?"keyboard":void 0,"data-resize-handle-state":L,"data-panel-resize-handle-enabled":!n,"data-panel-resize-handle-id":T})}v0.displayName="PanelResizeHandle";const $m=({children:t,isOpen:e})=>{const{isDesktop:n}=An();return n?b.jsx("div",{className:Me("c__right-panel",{open:e}),children:t}):b.jsx("div",{className:Me("c__right-panel__mobile",{open:e}),children:t})},Pm=(t,e,n)=>{const[r,i]=c.useState(typeof e>"u"?t:e),o=l=>{n?n(l):i(l)};return c.useEffect(()=>{n&&typeof e<"u"&&e!==r&&i(e)},[e]),[r,o]},Dm=({icon:t,children:e,hideLeftPanelOnDesktop:n=!1,leftPanelContent:r,rightPanelContent:i,rightHeaderContent:o,languages:l,enableResize:a=!1,rightPanelIsOpen:s=!1,...u})=>{const[d,f]=Pm(!1,u.isLeftPanelOpen,u.setIsLeftPanelOpen),{isDesktop:p}=An(),g=c.useRef(null),[y,h]=c.useState(Dr(300,p)),[v,m]=c.useState(Dr(450,p)),S=()=>{f(!d)};c.useEffect(()=>{const $=()=>{const E=Math.round(Dr(300,p)),T=Math.round(Math.min(Dr(450,p),40));h(p?E:0),m(a?T:E)};return $(),window.addEventListener("resize",()=>{$()}),()=>{window.removeEventListener("resize",$)}},[p,a]);const C=p?!n:!0,P=p?!n:d;return b.jsxs("div",{className:"c__main-layout",children:[b.jsx("div",{className:"c__main-layout__header",children:b.jsx(Gf,{onTogglePanel:S,isPanelOpen:d,rightIcon:o,leftIcon:t,languages:l})}),b.jsx("div",{className:"c__main-layout__content",children:b.jsxs(g0,{autoSaveId:"persistance",direction:"horizontal",children:[C&&b.jsxs(b.Fragment,{children:[b.jsx(al,{ref:g,order:0,defaultSize:y,minSize:y,maxSize:v,children:b.jsx(qf,{isOpen:P,children:r})}),p&&b.jsx(v0,{className:"bg-greyscale-200",style:{width:"1px"}})]}),b.jsx(al,{order:1,children:b.jsxs("div",{className:"c__main-layout__content__center",children:[b.jsx("div",{className:"c__main-layout__content__center__children",children:e}),b.jsx($m,{isOpen:s,children:i})]})})]})})]})},Dr=(t,e)=>{if(!e)return 0;const n=window.innerWidth;return t/n*100},Tm=52,sa=({size:t="sm"})=>b.jsx("div",{className:["c__spinner",t].join(" ")}),m0=({children:t,text:e,...n})=>b.jsxs("div",{className:"suite__label__container",children:[b.jsx("label",{...n,children:t}),e&&b.jsx("span",{className:"suite__label__container__description",children:e})]}),_m=({label:t,text:e,labelSide:n="right",children:r})=>b.jsxs("div",{className:Me("c__with-label",{[n]:!0}),children:[b.jsx(m0,{children:t,text:e}),r]});var Fs=1,Im=.9,Om=.8,km=.17,po=.1,go=.999,Nm=.9999,Rm=.99,Mm=/[\\\/_+.#"@\[\(\{&]/,Lm=/[\\\/_+.#"@\[\(\{&]/g,Am=/[\s-]/,y0=/[\s-]/g;function ul(t,e,n,r,i,o,l){if(o===e.length)return i===t.length?Fs:Rm;var a=`${i},${o}`;if(l[a]!==void 0)return l[a];for(var s=r.charAt(o),u=n.indexOf(s,i),d=0,f,p,g,y;u>=0;)f=ul(t,e,n,r,u+1,o+1,l),f>d&&(u===i?f*=Fs:Mm.test(t.charAt(u-1))?(f*=Om,g=t.slice(i,u-1).match(Lm),g&&i>0&&(f*=Math.pow(go,g.length))):Am.test(t.charAt(u-1))?(f*=Im,y=t.slice(i,u-1).match(y0),y&&i>0&&(f*=Math.pow(go,y.length))):(f*=km,i>0&&(f*=Math.pow(go,u-i))),t.charAt(u)!==e.charAt(o)&&(f*=Nm)),(f<po&&n.charAt(u-1)===r.charAt(o+1)||r.charAt(o+1)===r.charAt(o)&&n.charAt(u-1)!==r.charAt(o))&&(p=ul(t,e,n,r,u+1,o+2,l),p*po>f&&(f=p*po)),f>d&&(d=f),u=n.indexOf(s,u+1);return l[a]=d,d}function js(t){return t.toLowerCase().replace(y0," ")}function Km(t,e,n){return t=n&&n.length>0?`${t+" "+n.join(" ")}`:t,ul(t,e,js(t),js(e),0,0,{})}function xt(t,e,{checkForDefaultPrevented:n=!0}={}){return function(i){if(t==null||t(i),n===!1||!i.defaultPrevented)return e==null?void 0:e(i)}}function Hs(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function b0(...t){return e=>{let n=!1;const r=t.map(i=>{const o=Hs(i,e);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let i=0;i<r.length;i++){const o=r[i];typeof o=="function"?o():Hs(t[i],null)}}}}function Zt(...t){return _.useCallback(b0(...t),t)}function Fm(t,e){const n=_.createContext(e),r=o=>{const{children:l,...a}=o,s=_.useMemo(()=>a,Object.values(a));return b.jsx(n.Provider,{value:s,children:l})};r.displayName=t+"Provider";function i(o){const l=_.useContext(n);if(l)return l;if(e!==void 0)return e;throw new Error(`\`${o}\` must be used within \`${t}\``)}return[r,i]}function jm(t,e=[]){let n=[];function r(o,l){const a=_.createContext(l),s=n.length;n=[...n,l];const u=f=>{var m;const{scope:p,children:g,...y}=f,h=((m=p==null?void 0:p[t])==null?void 0:m[s])||a,v=_.useMemo(()=>y,Object.values(y));return b.jsx(h.Provider,{value:v,children:g})};u.displayName=o+"Provider";function d(f,p){var h;const g=((h=p==null?void 0:p[t])==null?void 0:h[s])||a,y=_.useContext(g);if(y)return y;if(l!==void 0)return l;throw new Error(`\`${f}\` must be used within \`${o}\``)}return[u,d]}const i=()=>{const o=n.map(l=>_.createContext(l));return function(a){const s=(a==null?void 0:a[t])||o;return _.useMemo(()=>({[`__scope${t}`]:{...a,[t]:s}}),[a,s])}};return i.scopeName=t,[r,Hm(i,...e)]}function Hm(...t){const e=t[0];if(t.length===1)return e;const n=()=>{const r=t.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const l=r.reduce((a,{useScope:s,scopeName:u})=>{const f=s(o)[`__scope${u}`];return{...a,...f}},{});return _.useMemo(()=>({[`__scope${e.scopeName}`]:l}),[l])}};return n.scopeName=e.scopeName,n}var ci=globalThis!=null&&globalThis.document?_.useLayoutEffect:()=>{},zm=_.useId||(()=>{}),Vm=0;function dt(t){const[e,n]=_.useState(zm());return ci(()=>{n(r=>r??String(Vm++))},[t]),e?`radix-${e}`:""}function Ht(t){const e=_.useRef(t);return _.useEffect(()=>{e.current=t}),_.useMemo(()=>(...n)=>{var r;return(r=e.current)==null?void 0:r.call(e,...n)},[])}function Bm({prop:t,defaultProp:e,onChange:n=()=>{}}){const[r,i]=Um({defaultProp:e,onChange:n}),o=t!==void 0,l=o?t:r,a=Ht(n),s=_.useCallback(u=>{if(o){const f=typeof u=="function"?u(t):u;f!==t&&a(f)}else i(u)},[o,t,i,a]);return[l,s]}function Um({defaultProp:t,onChange:e}){const n=_.useState(t),[r]=n,i=_.useRef(r),o=Ht(e);return _.useEffect(()=>{i.current!==r&&(o(r),i.current=r)},[r,i,o]),n}var ua=_.forwardRef((t,e)=>{const{children:n,...r}=t,i=_.Children.toArray(n),o=i.find(Gm);if(o){const l=o.props.children,a=i.map(s=>s===o?_.Children.count(l)>1?_.Children.only(null):_.isValidElement(l)?l.props.children:null:s);return b.jsx(cl,{...r,ref:e,children:_.isValidElement(l)?_.cloneElement(l,void 0,a):null})}return b.jsx(cl,{...r,ref:e,children:n})});ua.displayName="Slot";var cl=_.forwardRef((t,e)=>{const{children:n,...r}=t;if(_.isValidElement(n)){const i=Ym(n),o=qm(r,n.props);return n.type!==_.Fragment&&(o.ref=e?b0(e,i):i),_.cloneElement(n,o)}return _.Children.count(n)>1?_.Children.only(null):null});cl.displayName="SlotClone";var Wm=({children:t})=>b.jsx(b.Fragment,{children:t});function Gm(t){return _.isValidElement(t)&&t.type===Wm}function qm(t,e){const n={...e};for(const r in e){const i=t[r],o=e[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...a)=>{o(...a),i(...a)}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...t,...n}}function Ym(t){var r,i;let e=(r=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:r.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=(i=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:i.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var Zm=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Ee=Zm.reduce((t,e)=>{const n=_.forwardRef((r,i)=>{const{asChild:o,...l}=r,a=o?ua:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),b.jsx(a,{...l,ref:i})});return n.displayName=`Primitive.${e}`,{...t,[e]:n}},{});function Xm(t,e){t&&lh.flushSync(()=>t.dispatchEvent(e))}function Jm(t,e=globalThis==null?void 0:globalThis.document){const n=Ht(t);_.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return e.addEventListener("keydown",r,{capture:!0}),()=>e.removeEventListener("keydown",r,{capture:!0})},[n,e])}var Qm="DismissableLayer",dl="dismissableLayer.update",e1="dismissableLayer.pointerDownOutside",t1="dismissableLayer.focusOutside",zs,S0=_.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),C0=_.forwardRef((t,e)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:l,onDismiss:a,...s}=t,u=_.useContext(S0),[d,f]=_.useState(null),p=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=_.useState({}),y=Zt(e,T=>f(T)),h=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),m=h.indexOf(v),S=d?h.indexOf(d):-1,C=u.layersWithOutsidePointerEventsDisabled.size>0,P=S>=m,$=i1(T=>{const L=T.target,z=[...u.branches].some(A=>A.contains(L));!P||z||(i==null||i(T),l==null||l(T),T.defaultPrevented||a==null||a())},p),E=o1(T=>{const L=T.target;[...u.branches].some(A=>A.contains(L))||(o==null||o(T),l==null||l(T),T.defaultPrevented||a==null||a())},p);return Jm(T=>{S===u.layers.size-1&&(r==null||r(T),!T.defaultPrevented&&a&&(T.preventDefault(),a()))},p),_.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(zs=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Vs(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=zs)}},[d,p,n,u]),_.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Vs())},[d,u]),_.useEffect(()=>{const T=()=>g({});return document.addEventListener(dl,T),()=>document.removeEventListener(dl,T)},[]),b.jsx(Ee.div,{...s,ref:y,style:{pointerEvents:C?P?"auto":"none":void 0,...t.style},onFocusCapture:xt(t.onFocusCapture,E.onFocusCapture),onBlurCapture:xt(t.onBlurCapture,E.onBlurCapture),onPointerDownCapture:xt(t.onPointerDownCapture,$.onPointerDownCapture)})});C0.displayName=Qm;var n1="DismissableLayerBranch",r1=_.forwardRef((t,e)=>{const n=_.useContext(S0),r=_.useRef(null),i=Zt(e,r);return _.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),b.jsx(Ee.div,{...t,ref:i})});r1.displayName=n1;function i1(t,e=globalThis==null?void 0:globalThis.document){const n=Ht(t),r=_.useRef(!1),i=_.useRef(()=>{});return _.useEffect(()=>{const o=a=>{if(a.target&&!r.current){let s=function(){w0(e1,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(e.removeEventListener("click",i.current),i.current=s,e.addEventListener("click",i.current,{once:!0})):s()}else e.removeEventListener("click",i.current);r.current=!1},l=window.setTimeout(()=>{e.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(l),e.removeEventListener("pointerdown",o),e.removeEventListener("click",i.current)}},[e,n]),{onPointerDownCapture:()=>r.current=!0}}function o1(t,e=globalThis==null?void 0:globalThis.document){const n=Ht(t),r=_.useRef(!1);return _.useEffect(()=>{const i=o=>{o.target&&!r.current&&w0(t1,n,{originalEvent:o},{discrete:!1})};return e.addEventListener("focusin",i),()=>e.removeEventListener("focusin",i)},[e,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Vs(){const t=new CustomEvent(dl);document.dispatchEvent(t)}function w0(t,e,n,{discrete:r}){const i=n.originalEvent.target,o=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&i.addEventListener(t,e,{once:!0}),r?Xm(i,o):i.dispatchEvent(o)}var vo="focusScope.autoFocusOnMount",mo="focusScope.autoFocusOnUnmount",Bs={bubbles:!1,cancelable:!0},l1="FocusScope",x0=_.forwardRef((t,e)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...l}=t,[a,s]=_.useState(null),u=Ht(i),d=Ht(o),f=_.useRef(null),p=Zt(e,h=>s(h)),g=_.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;_.useEffect(()=>{if(r){let h=function(C){if(g.paused||!a)return;const P=C.target;a.contains(P)?f.current=P:yt(f.current,{select:!0})},v=function(C){if(g.paused||!a)return;const P=C.relatedTarget;P!==null&&(a.contains(P)||yt(f.current,{select:!0}))},m=function(C){if(document.activeElement===document.body)for(const $ of C)$.removedNodes.length>0&&yt(a)};document.addEventListener("focusin",h),document.addEventListener("focusout",v);const S=new MutationObserver(m);return a&&S.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",v),S.disconnect()}}},[r,a,g.paused]),_.useEffect(()=>{if(a){Ws.add(g);const h=document.activeElement;if(!a.contains(h)){const m=new CustomEvent(vo,Bs);a.addEventListener(vo,u),a.dispatchEvent(m),m.defaultPrevented||(a1(f1(E0(a)),{select:!0}),document.activeElement===h&&yt(a))}return()=>{a.removeEventListener(vo,u),setTimeout(()=>{const m=new CustomEvent(mo,Bs);a.addEventListener(mo,d),a.dispatchEvent(m),m.defaultPrevented||yt(h??document.body,{select:!0}),a.removeEventListener(mo,d),Ws.remove(g)},0)}}},[a,u,d,g]);const y=_.useCallback(h=>{if(!n&&!r||g.paused)return;const v=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,m=document.activeElement;if(v&&m){const S=h.currentTarget,[C,P]=s1(S);C&&P?!h.shiftKey&&m===P?(h.preventDefault(),n&&yt(C,{select:!0})):h.shiftKey&&m===C&&(h.preventDefault(),n&&yt(P,{select:!0})):m===S&&h.preventDefault()}},[n,r,g.paused]);return b.jsx(Ee.div,{tabIndex:-1,...l,ref:p,onKeyDown:y})});x0.displayName=l1;function a1(t,{select:e=!1}={}){const n=document.activeElement;for(const r of t)if(yt(r,{select:e}),document.activeElement!==n)return}function s1(t){const e=E0(t),n=Us(e,t),r=Us(e.reverse(),t);return[n,r]}function E0(t){const e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)e.push(n.currentNode);return e}function Us(t,e){for(const n of t)if(!u1(n,{upTo:e}))return n}function u1(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function c1(t){return t instanceof HTMLInputElement&&"select"in t}function yt(t,{select:e=!1}={}){if(t&&t.focus){const n=document.activeElement;t.focus({preventScroll:!0}),t!==n&&c1(t)&&e&&t.select()}}var Ws=d1();function d1(){let t=[];return{add(e){const n=t[0];e!==n&&(n==null||n.pause()),t=Gs(t,e),t.unshift(e)},remove(e){var n;t=Gs(t,e),(n=t[0])==null||n.resume()}}}function Gs(t,e){const n=[...t],r=n.indexOf(e);return r!==-1&&n.splice(r,1),n}function f1(t){return t.filter(e=>e.tagName!=="A")}var h1="Portal",$0=_.forwardRef((t,e)=>{var a;const{container:n,...r}=t,[i,o]=_.useState(!1);ci(()=>o(!0),[]);const l=n||i&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return l?Wt.createPortal(b.jsx(Ee.div,{...r,ref:e}),l):null});$0.displayName=h1;function p1(t,e){return _.useReducer((n,r)=>e[n][r]??n,t)}var Ai=t=>{const{present:e,children:n}=t,r=g1(e),i=typeof n=="function"?n({present:r.isPresent}):_.Children.only(n),o=Zt(r.ref,v1(i));return typeof n=="function"||r.isPresent?_.cloneElement(i,{ref:o}):null};Ai.displayName="Presence";function g1(t){const[e,n]=_.useState(),r=_.useRef({}),i=_.useRef(t),o=_.useRef("none"),l=t?"mounted":"unmounted",[a,s]=p1(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return _.useEffect(()=>{const u=Tr(r.current);o.current=a==="mounted"?u:"none"},[a]),ci(()=>{const u=r.current,d=i.current;if(d!==t){const p=o.current,g=Tr(u);t?s("MOUNT"):g==="none"||(u==null?void 0:u.display)==="none"?s("UNMOUNT"):s(d&&p!==g?"ANIMATION_OUT":"UNMOUNT"),i.current=t}},[t,s]),ci(()=>{if(e){let u;const d=e.ownerDocument.defaultView??window,f=g=>{const h=Tr(r.current).includes(g.animationName);if(g.target===e&&h&&(s("ANIMATION_END"),!i.current)){const v=e.style.animationFillMode;e.style.animationFillMode="forwards",u=d.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=v)})}},p=g=>{g.target===e&&(o.current=Tr(r.current))};return e.addEventListener("animationstart",p),e.addEventListener("animationcancel",f),e.addEventListener("animationend",f),()=>{d.clearTimeout(u),e.removeEventListener("animationstart",p),e.removeEventListener("animationcancel",f),e.removeEventListener("animationend",f)}}else s("ANIMATION_END")},[e,s]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:_.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function Tr(t){return(t==null?void 0:t.animationName)||"none"}function v1(t){var r,i;let e=(r=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:r.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=(i=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:i.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var yo=0;function m1(){_.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??qs()),document.body.insertAdjacentElement("beforeend",t[1]??qs()),yo++,()=>{yo===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),yo--}},[])}function qs(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var Fr="right-scroll-bar-position",jr="width-before-scroll-bar",y1="with-scroll-bars-hidden",b1="--removed-body-scroll-bar-size";function bo(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}function S1(t,e){var n=c.useState(function(){return{value:t,callback:e,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=e,n.facade}var C1=typeof window<"u"?_.useLayoutEffect:_.useEffect,Ys=new WeakMap;function w1(t,e){var n=S1(null,function(r){return t.forEach(function(i){return bo(i,r)})});return C1(function(){var r=Ys.get(n);if(r){var i=new Set(r),o=new Set(t),l=n.current;i.forEach(function(a){o.has(a)||bo(a,null)}),o.forEach(function(a){i.has(a)||bo(a,l)})}Ys.set(n,t)},[t]),n}function x1(t){return t}function E1(t,e){e===void 0&&(e=x1);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:t},useMedium:function(o){var l=e(o,r);return n.push(l),function(){n=n.filter(function(a){return a!==l})}},assignSyncMedium:function(o){for(r=!0;n.length;){var l=n;n=[],l.forEach(o)}n={push:function(a){return o(a)},filter:function(){return n}}},assignMedium:function(o){r=!0;var l=[];if(n.length){var a=n;n=[],a.forEach(o),l=n}var s=function(){var d=l;l=[],d.forEach(o)},u=function(){return Promise.resolve().then(s)};u(),n={push:function(d){l.push(d),u()},filter:function(d){return l=l.filter(d),n}}}};return i}function $1(t){t===void 0&&(t={});var e=E1(null);return e.options=nt({async:!0,ssr:!1},t),e}var P0=function(t){var e=t.sideCar,n=Lc(t,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=e.read();if(!r)throw new Error("Sidecar medium not found");return _.createElement(r,nt({},n))};P0.isSideCarExport=!0;function P1(t,e){return t.useMedium(e),P0}var D0=$1(),So=function(){},Ki=_.forwardRef(function(t,e){var n=_.useRef(null),r=_.useState({onScrollCapture:So,onWheelCapture:So,onTouchMoveCapture:So}),i=r[0],o=r[1],l=t.forwardProps,a=t.children,s=t.className,u=t.removeScrollBar,d=t.enabled,f=t.shards,p=t.sideCar,g=t.noIsolation,y=t.inert,h=t.allowPinchZoom,v=t.as,m=v===void 0?"div":v,S=t.gapMode,C=Lc(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),P=p,$=w1([n,e]),E=nt(nt({},C),i);return _.createElement(_.Fragment,null,d&&_.createElement(P,{sideCar:D0,removeScrollBar:u,shards:f,noIsolation:g,inert:y,setCallbacks:o,allowPinchZoom:!!h,lockRef:n,gapMode:S}),l?_.cloneElement(_.Children.only(a),nt(nt({},E),{ref:$})):_.createElement(m,nt({},E,{className:s,ref:$}),a))});Ki.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ki.classNames={fullWidth:jr,zeroRight:Fr};var D1=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function T1(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=D1();return e&&t.setAttribute("nonce",e),t}function _1(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function I1(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var O1=function(){var t=0,e=null;return{add:function(n){t==0&&(e=T1())&&(_1(e,n),I1(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},k1=function(){var t=O1();return function(e,n){_.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&n])}},T0=function(){var t=k1(),e=function(n){var r=n.styles,i=n.dynamic;return t(r,i),null};return e},N1={left:0,top:0,right:0,gap:0},Co=function(t){return parseInt(t||"",10)||0},R1=function(t){var e=window.getComputedStyle(document.body),n=e[t==="padding"?"paddingLeft":"marginLeft"],r=e[t==="padding"?"paddingTop":"marginTop"],i=e[t==="padding"?"paddingRight":"marginRight"];return[Co(n),Co(r),Co(i)]},M1=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return N1;var e=R1(t),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,r-n+e[2]-e[0])}},L1=T0(),Pn="data-scroll-locked",A1=function(t,e,n,r){var i=t.left,o=t.top,l=t.right,a=t.gap;return n===void 0&&(n="margin"),`
|
|
47
|
+
*/var Aa;function Ip(){return Aa||(Aa=1,process.env.NODE_ENV!=="production"&&function(){function t(g,y){return g===y&&(g!==0||1/g===1/y)||g!==g&&y!==y}function e(g,y){d||i.startTransition===void 0||(d=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var h=y();if(!f){var v=y();o(h,v)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}v=l({inst:{value:h,getSnapshot:y}});var m=v[0].inst,S=v[1];return s(function(){m.value=h,m.getSnapshot=y,n(m)&&S({inst:m})},[g,h,y]),a(function(){return n(m)&&S({inst:m}),g(function(){n(m)&&S({inst:m})})},[g]),u(h),h}function n(g){var y=g.getSnapshot;g=g.value;try{var h=y();return!o(g,h)}catch{return!0}}function r(g,y){return y()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=c,o=typeof Object.is=="function"?Object.is:t,l=i.useState,a=i.useEffect,s=i.useLayoutEffect,u=i.useDebugValue,d=!1,f=!1,p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:e;Qi.useSyncExternalStore=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:p,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Qi}var Ka;function Op(){return Ka||(Ka=1,process.env.NODE_ENV==="production"?Sr.exports=_p():Sr.exports=Ip()),Sr.exports}var jl=Op();const xc=c.createContext(!1),lr=c.createContext(null);function Ei(t){if(c.useContext(lr))return t.content;let{collection:n,document:r}=Mp(t.createCollection);return c.createElement(c.Fragment,null,c.createElement(hp,null,c.createElement(lr.Provider,{value:r},t.content)),c.createElement(kp,{render:t.children,collection:n}))}function kp({collection:t,render:e}){return e(t)}function Np(t,e,n){let r=Fl(),i=c.useRef(r);i.current=r;let o=c.useCallback(()=>i.current?n():e(),[e,n]);return jl.useSyncExternalStore(t,o)}const Rp=typeof c.useSyncExternalStore=="function"?c.useSyncExternalStore:Np;function Mp(t){let[e]=c.useState(()=>new fp((t==null?void 0:t())||new Al)),n=c.useCallback(l=>e.subscribe(l),[e]),r=c.useCallback(()=>{let l=e.getCollection();return e.isSSR&&e.resetAfterSSR(),l},[e]),i=c.useCallback(()=>(e.isSSR=!0,e.getCollection()),[e]),o=Rp(n,r,i);return gp(()=>(e.isMounted=!0,()=>{e.isMounted=!1}),[e]),{collection:o,document:e}}const Uo=c.createContext(null);function Lp(t,e,n,r,i,o){let l=c.useCallback(s=>{s==null||s.setProps(e,n,r,o)},[e,n,r,o]),a=c.useContext(Uo);if(a){let s=a.ownerDocument.nodesByProps.get(e);return s||(s=a.ownerDocument.createElement(t),s.setProps(e,n,r,o),a.appendChild(s),a.ownerDocument.updateCollection(),a.ownerDocument.nodesByProps.set(e,s)),i?c.createElement(Uo.Provider,{value:s},i):null}return c.createElement(t,{ref:l},i)}function $i(t,e){let n=({node:i})=>e(i.props,i.props.ref,i),r=c.forwardRef((i,o)=>{let l=c.useContext(Ma);if(!c.useContext(xc)){if(e.length>=3)throw new Error(e.name+" cannot be rendered outside a collection.");return e(i,o)}return Lp(t,i,o,"children"in i?i.children:null,null,s=>c.createElement(Ma.Provider,{value:l},c.createElement(n,{node:s})))});return r.displayName=e.name,r}function Ap(t){return Sc({...t,addIdAndValue:!0})}const Fa=c.createContext(null);function Hl(t){let e=c.useContext(Fa),n=((e==null?void 0:e.dependencies)||[]).concat(t.dependencies),r=t.idScope||(e==null?void 0:e.idScope),i=Ap({...t,idScope:r,dependencies:n});return c.useContext(lr)&&(i=c.createElement(Kp,null,i)),e=c.useMemo(()=>({dependencies:n,idScope:r}),[r,...n]),c.createElement(Fa.Provider,{value:e},i)}function Kp({children:t}){let e=c.useContext(lr),n=c.useMemo(()=>c.createElement(lr.Provider,{value:null},c.createElement(xc.Provider,{value:!0},t)),[t]);return Fl()?c.createElement(Uo.Provider,{value:e},n):Wt.createPortal(n,e)}function zl(t){let e=t;return e.nativeEvent=t,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function Ec(t,e){Object.defineProperty(t,"target",{value:e}),Object.defineProperty(t,"currentTarget",{value:e})}function $c(t){let e=c.useRef({isFocused:!1,observer:null});ue(()=>{const r=e.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=be(r=>{t==null||t(r)});return c.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){e.current.isFocused=!0;let i=r.target,o=l=>{if(e.current.isFocused=!1,i.disabled){let a=zl(l);n(a)}e.current.observer&&(e.current.observer.disconnect(),e.current.observer=null)};i.addEventListener("focusout",o,{once:!0}),e.current.observer=new MutationObserver(()=>{if(e.current.isFocused&&i.disabled){var l;(l=e.current.observer)===null||l===void 0||l.disconnect();let a=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),e.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let ei=!1;function ja(t){for(;t&&!yc(t);)t=t.parentElement;let e=Re(t),n=e.document.activeElement;if(!n||n===t)return;ei=!0;let r=!1,i=d=>{(d.target===n||r)&&d.stopImmediatePropagation()},o=d=>{(d.target===n||r)&&(d.stopImmediatePropagation(),!t&&!r&&(r=!0,Ze(n),s()))},l=d=>{(d.target===t||r)&&d.stopImmediatePropagation()},a=d=>{(d.target===t||r)&&(d.stopImmediatePropagation(),r||(r=!0,Ze(n),s()))};e.addEventListener("blur",i,!0),e.addEventListener("focusout",o,!0),e.addEventListener("focusin",a,!0),e.addEventListener("focus",l,!0);let s=()=>{cancelAnimationFrame(u),e.removeEventListener("blur",i,!0),e.removeEventListener("focusout",o,!0),e.removeEventListener("focusin",a,!0),e.removeEventListener("focus",l,!0),ei=!1,r=!1},u=requestAnimationFrame(s);return s}let mn="default",Wo="",Ar=new WeakMap;function Ha(t){if(bi()){if(mn==="default"){const e=ce(t);Wo=e.documentElement.style.webkitUserSelect,e.documentElement.style.webkitUserSelect="none"}mn="disabled"}else if(t instanceof HTMLElement||t instanceof SVGElement){let e="userSelect"in t.style?"userSelect":"webkitUserSelect";Ar.set(t,t.style[e]),t.style[e]="none"}}function eo(t){if(bi()){if(mn!=="disabled")return;mn="restoring",setTimeout(()=>{hc(()=>{if(mn==="restoring"){const e=ce(t);e.documentElement.style.webkitUserSelect==="none"&&(e.documentElement.style.webkitUserSelect=Wo||""),Wo="",mn="default"}})},300)}else if((t instanceof HTMLElement||t instanceof SVGElement)&&t&&Ar.has(t)){let e=Ar.get(t),n="userSelect"in t.style?"userSelect":"webkitUserSelect";t.style[n]==="none"&&(t.style[n]=e),t.getAttribute("style")===""&&t.removeAttribute("style"),Ar.delete(t)}}const Vl=c.createContext({register:()=>{}});Vl.displayName="PressResponderContext";function Fp(t){let e=c.useContext(Vl);if(e){let{register:n,...r}=e;t=le(r,t),n()}return pc(e,t.ref),t}var Cr=new WeakMap;class wr{continuePropagation(){Ra(this,Cr,!1)}get shouldStopPropagation(){return $p(this,Cr)}constructor(e,n,r,i){Dp(this,Cr,{writable:!0,value:void 0}),Ra(this,Cr,!0);var o;let l=(o=i==null?void 0:i.target)!==null&&o!==void 0?o:r.currentTarget;const a=l==null?void 0:l.getBoundingClientRect();let s,u=0,d,f=null;r.clientX!=null&&r.clientY!=null&&(d=r.clientX,f=r.clientY),a&&(d!=null&&f!=null?(s=d-a.left,u=f-a.top):(s=a.width/2,u=a.height/2)),this.type=e,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=s,this.y=u}}const za=Symbol("linkClicked");function Pi(t){let{onPress:e,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:o,onClick:l,isDisabled:a,isPressed:s,preventFocusOnPress:u,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:f,ref:p,...g}=Fp(t),[y,h]=c.useState(!1),v=c.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:m,removeAllGlobalListeners:S}=Ci(),C=be((w,M)=>{let B=v.current;if(a||B.didFirePressStart)return!1;let R=!0;if(B.isTriggeringEvent=!0,r){let U=new wr("pressstart",M,w);r(U),R=U.shouldStopPropagation}return n&&n(!0),B.isTriggeringEvent=!1,B.didFirePressStart=!0,h(!0),R}),P=be((w,M,B=!0)=>{let R=v.current;if(!R.didFirePressStart)return!1;R.didFirePressStart=!1,R.isTriggeringEvent=!0;let U=!0;if(i){let x=new wr("pressend",M,w);i(x),U=x.shouldStopPropagation}if(n&&n(!1),h(!1),e&&B&&!a){let x=new wr("press",M,w);e(x),U&&(U=x.shouldStopPropagation)}return R.isTriggeringEvent=!1,U}),$=be((w,M)=>{let B=v.current;if(a)return!1;if(o){B.isTriggeringEvent=!0;let R=new wr("pressup",M,w);return o(R),B.isTriggeringEvent=!1,R.shouldStopPropagation}return!0}),E=be(w=>{let M=v.current;if(M.isPressed&&M.target){M.didFirePressStart&&M.pointerType!=null&&P(Qt(M.target,w),M.pointerType,!1),M.isPressed=!1,M.isOverTarget=!1,M.activePointerId=null,M.pointerType=null,S(),f||eo(M.target);for(let B of M.disposables)B();M.disposables=[]}}),T=be(w=>{d&&E(w)}),L=be(w=>{l==null||l(w)}),z=be((w,M)=>{if(l){let B=new MouseEvent("click",w);Ec(B,M),l(zl(B))}}),A=c.useMemo(()=>{let w=v.current,M={onKeyDown(R){if(to(R.nativeEvent,R.currentTarget)&&he(R.currentTarget,se(R.nativeEvent))){var U;Ua(se(R.nativeEvent),R.key)&&R.preventDefault();let x=!0;if(!w.isPressed&&!R.repeat){w.target=R.currentTarget,w.isPressed=!0,w.pointerType="keyboard",x=C(R,"keyboard");let N=R.currentTarget,I=G=>{to(G,N)&&!G.repeat&&he(N,se(G))&&w.target&&$(Qt(w.target,G),"keyboard")};m(ce(R.currentTarget),"keyup",At(I,B),!0)}x&&R.stopPropagation(),R.metaKey&&Et()&&((U=w.metaKeyEvents)===null||U===void 0||U.set(R.key,R.nativeEvent))}else R.key==="Meta"&&(w.metaKeyEvents=new Map)},onClick(R){if(!(R&&!he(R.currentTarget,se(R.nativeEvent)))&&R&&R.button===0&&!w.isTriggeringEvent&&!Kt.isOpening){let U=!0;if(a&&R.preventDefault(),!w.ignoreEmulatedMouseEvents&&!w.isPressed&&(w.pointerType==="virtual"||Vo(R.nativeEvent))){let x=C(R,"virtual"),N=$(R,"virtual"),I=P(R,"virtual");L(R),U=x&&N&&I}else if(w.isPressed&&w.pointerType!=="keyboard"){let x=w.pointerType||R.nativeEvent.pointerType||"virtual";U=P(Qt(R.currentTarget,R),x,!0),w.isOverTarget=!1,L(R),E(R)}w.ignoreEmulatedMouseEvents=!1,U&&R.stopPropagation()}}},B=R=>{var U;if(w.isPressed&&w.target&&to(R,w.target)){var x;Ua(se(R),R.key)&&R.preventDefault();let I=se(R),G=he(w.target,se(R));P(Qt(w.target,R),"keyboard",G),G&&z(R,w.target),S(),R.key!=="Enter"&&Bl(w.target)&&he(w.target,I)&&!R[za]&&(R[za]=!0,Kt(w.target,R,!1)),w.isPressed=!1,(x=w.metaKeyEvents)===null||x===void 0||x.delete(R.key)}else if(R.key==="Meta"&&(!((U=w.metaKeyEvents)===null||U===void 0)&&U.size)){var N;let I=w.metaKeyEvents;w.metaKeyEvents=void 0;for(let G of I.values())(N=w.target)===null||N===void 0||N.dispatchEvent(new KeyboardEvent("keyup",G))}};if(typeof PointerEvent<"u"){M.onPointerDown=x=>{if(x.button!==0||!he(x.currentTarget,se(x.nativeEvent)))return;if(ep(x.nativeEvent)){w.pointerType="virtual";return}w.pointerType=x.pointerType;let N=!0;if(!w.isPressed){w.isPressed=!0,w.isOverTarget=!0,w.activePointerId=x.pointerId,w.target=x.currentTarget,f||Ha(w.target),N=C(x,w.pointerType);let I=se(x.nativeEvent);"releasePointerCapture"in I&&I.releasePointerCapture(x.pointerId),m(ce(x.currentTarget),"pointerup",R,!1),m(ce(x.currentTarget),"pointercancel",U,!1)}N&&x.stopPropagation()},M.onMouseDown=x=>{if(he(x.currentTarget,se(x.nativeEvent))&&x.button===0){if(u){let N=ja(x.target);N&&w.disposables.push(N)}x.stopPropagation()}},M.onPointerUp=x=>{!he(x.currentTarget,se(x.nativeEvent))||w.pointerType==="virtual"||x.button===0&&$(x,w.pointerType||x.pointerType)},M.onPointerEnter=x=>{x.pointerId===w.activePointerId&&w.target&&!w.isOverTarget&&w.pointerType!=null&&(w.isOverTarget=!0,C(Qt(w.target,x),w.pointerType))},M.onPointerLeave=x=>{x.pointerId===w.activePointerId&&w.target&&w.isOverTarget&&w.pointerType!=null&&(w.isOverTarget=!1,P(Qt(w.target,x),w.pointerType,!1),T(x))};let R=x=>{if(x.pointerId===w.activePointerId&&w.isPressed&&x.button===0&&w.target){if(he(w.target,se(x))&&w.pointerType!=null){let N=!1,I=setTimeout(()=>{w.isPressed&&w.target instanceof HTMLElement&&(N?E(x):(Ze(w.target),w.target.click()))},80);m(x.currentTarget,"click",()=>N=!0,!0),w.disposables.push(()=>clearTimeout(I))}else E(x);w.isOverTarget=!1}},U=x=>{E(x)};M.onDragStart=x=>{he(x.currentTarget,se(x.nativeEvent))&&E(x)}}else if(process.env.NODE_ENV==="test"){M.onMouseDown=x=>{if(x.button!==0||!he(x.currentTarget,se(x.nativeEvent)))return;if(w.ignoreEmulatedMouseEvents){x.stopPropagation();return}if(w.isPressed=!0,w.isOverTarget=!0,w.target=x.currentTarget,w.pointerType=Vo(x.nativeEvent)?"virtual":"mouse",Wt.flushSync(()=>C(x,w.pointerType))&&x.stopPropagation(),u){let I=ja(x.target);I&&w.disposables.push(I)}m(ce(x.currentTarget),"mouseup",R,!1)},M.onMouseEnter=x=>{if(!he(x.currentTarget,se(x.nativeEvent)))return;let N=!0;w.isPressed&&!w.ignoreEmulatedMouseEvents&&w.pointerType!=null&&(w.isOverTarget=!0,N=C(x,w.pointerType)),N&&x.stopPropagation()},M.onMouseLeave=x=>{if(!he(x.currentTarget,se(x.nativeEvent)))return;let N=!0;w.isPressed&&!w.ignoreEmulatedMouseEvents&&w.pointerType!=null&&(w.isOverTarget=!1,N=P(x,w.pointerType,!1),T(x)),N&&x.stopPropagation()},M.onMouseUp=x=>{he(x.currentTarget,se(x.nativeEvent))&&!w.ignoreEmulatedMouseEvents&&x.button===0&&$(x,w.pointerType||"mouse")};let R=x=>{if(x.button===0){if(w.ignoreEmulatedMouseEvents){w.ignoreEmulatedMouseEvents=!1;return}w.target&&w.target.contains(x.target)&&w.pointerType!=null||E(x),w.isOverTarget=!1}};M.onTouchStart=x=>{if(!he(x.currentTarget,se(x.nativeEvent)))return;let N=jp(x.nativeEvent);if(!N)return;w.activePointerId=N.identifier,w.ignoreEmulatedMouseEvents=!0,w.isOverTarget=!0,w.isPressed=!0,w.target=x.currentTarget,w.pointerType="touch",f||Ha(w.target),C(mt(w.target,x),w.pointerType)&&x.stopPropagation(),m(Re(x.currentTarget),"scroll",U,!0)},M.onTouchMove=x=>{if(!he(x.currentTarget,se(x.nativeEvent)))return;if(!w.isPressed){x.stopPropagation();return}let N=Va(x.nativeEvent,w.activePointerId),I=!0;N&&Ba(N,x.currentTarget)?!w.isOverTarget&&w.pointerType!=null&&(w.isOverTarget=!0,I=C(mt(w.target,x),w.pointerType)):w.isOverTarget&&w.pointerType!=null&&(w.isOverTarget=!1,I=P(mt(w.target,x),w.pointerType,!1),T(mt(w.target,x))),I&&x.stopPropagation()},M.onTouchEnd=x=>{if(!he(x.currentTarget,se(x.nativeEvent)))return;if(!w.isPressed){x.stopPropagation();return}let N=Va(x.nativeEvent,w.activePointerId),I=!0;N&&Ba(N,x.currentTarget)&&w.pointerType!=null?($(mt(w.target,x),w.pointerType),I=P(mt(w.target,x),w.pointerType),z(x.nativeEvent,w.target)):w.isOverTarget&&w.pointerType!=null&&(I=P(mt(w.target,x),w.pointerType,!1)),I&&x.stopPropagation(),w.isPressed=!1,w.activePointerId=null,w.isOverTarget=!1,w.ignoreEmulatedMouseEvents=!0,w.target&&!f&&eo(w.target),S()},M.onTouchCancel=x=>{he(x.currentTarget,se(x.nativeEvent))&&(x.stopPropagation(),w.isPressed&&E(mt(w.target,x)))};let U=x=>{w.isPressed&&he(se(x),w.target)&&E({currentTarget:w.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};M.onDragStart=x=>{he(x.currentTarget,se(x.nativeEvent))&&E(x)}}return M},[m,a,u,S,f,E,T,P,C,$,L,z]);return c.useEffect(()=>{let w=p==null?void 0:p.current;w&&w instanceof Re(w).Element&&Re(w).getComputedStyle(w).touchAction==="auto"&&(w.style.touchAction="pan-x pan-y pinch-zoom")},[p]),c.useEffect(()=>{let w=v.current;return()=>{var M;f||eo((M=w.target)!==null&&M!==void 0?M:void 0);for(let B of w.disposables)B();w.disposables=[]}},[f]),{isPressed:s||y,pressProps:le(g,A)}}function Bl(t){return t.tagName==="A"&&t.hasAttribute("href")}function to(t,e){const{key:n,code:r}=t,i=e,o=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof Re(i).HTMLInputElement&&!Pc(i,n)||i instanceof Re(i).HTMLTextAreaElement||i.isContentEditable)&&!((o==="link"||!o&&Bl(i))&&n!=="Enter")}function jp(t){const{targetTouches:e}=t;return e.length>0?e[0]:null}function Va(t,e){const n=t.changedTouches;for(let r=0;r<n.length;r++){const i=n[r];if(i.identifier===e)return i}return null}function mt(t,e){let n=0,r=0;return e.targetTouches&&e.targetTouches.length===1&&(n=e.targetTouches[0].clientX,r=e.targetTouches[0].clientY),{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,clientX:n,clientY:r}}function Qt(t,e){let n=e.clientX,r=e.clientY;return{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,clientX:n,clientY:r}}function Hp(t){let e=0,n=0;return t.width!==void 0?e=t.width/2:t.radiusX!==void 0&&(e=t.radiusX),t.height!==void 0?n=t.height/2:t.radiusY!==void 0&&(n=t.radiusY),{top:t.clientY-n,right:t.clientX+e,bottom:t.clientY+n,left:t.clientX-e}}function zp(t,e){return!(t.left>e.right||e.left>t.right||t.top>e.bottom||e.top>t.bottom)}function Ba(t,e){let n=e.getBoundingClientRect(),r=Hp(t);return zp(n,r)}function Vp(t){return t instanceof HTMLInputElement?!1:t instanceof HTMLButtonElement?t.type!=="submit"&&t.type!=="reset":!Bl(t)}function Ua(t,e){return t instanceof HTMLInputElement?!Pc(t,e):Vp(t)}const Bp=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Pc(t,e){return t.type==="checkbox"||t.type==="radio"?e===" ":Bp.has(t.type)}let Gt=null,Go=new Set,nr=new Map,Ft=!1,qo=!1;const Up={Tab:!0,Escape:!0};function Di(t,e){for(let n of Go)n(t,e)}function Wp(t){return!(t.metaKey||!Et()&&t.altKey||t.ctrlKey||t.key==="Control"||t.key==="Shift"||t.key==="Meta")}function ti(t){Ft=!0,Wp(t)&&(Gt="keyboard",Di("keyboard",t))}function He(t){Gt="pointer",(t.type==="mousedown"||t.type==="pointerdown")&&(Ft=!0,Di("pointer",t))}function Dc(t){Vo(t)&&(Ft=!0,Gt="virtual")}function Tc(t){t.target===window||t.target===document||ei||!t.isTrusted||(!Ft&&!qo&&(Gt="virtual",Di("virtual",t)),Ft=!1,qo=!1)}function _c(){ei||(Ft=!1,qo=!0)}function Yo(t){if(typeof window>"u"||nr.get(Re(t)))return;const e=Re(t),n=ce(t);let r=e.HTMLElement.prototype.focus;e.HTMLElement.prototype.focus=function(){Ft=!0,r.apply(this,arguments)},n.addEventListener("keydown",ti,!0),n.addEventListener("keyup",ti,!0),n.addEventListener("click",Dc,!0),e.addEventListener("focus",Tc,!0),e.addEventListener("blur",_c,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",He,!0),n.addEventListener("pointermove",He,!0),n.addEventListener("pointerup",He,!0)):process.env.NODE_ENV==="test"&&(n.addEventListener("mousedown",He,!0),n.addEventListener("mousemove",He,!0),n.addEventListener("mouseup",He,!0)),e.addEventListener("beforeunload",()=>{Ic(t)},{once:!0}),nr.set(e,{focus:r})}const Ic=(t,e)=>{const n=Re(t),r=ce(t);e&&r.removeEventListener("DOMContentLoaded",e),nr.has(n)&&(n.HTMLElement.prototype.focus=nr.get(n).focus,r.removeEventListener("keydown",ti,!0),r.removeEventListener("keyup",ti,!0),r.removeEventListener("click",Dc,!0),n.removeEventListener("focus",Tc,!0),n.removeEventListener("blur",_c,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",He,!0),r.removeEventListener("pointermove",He,!0),r.removeEventListener("pointerup",He,!0)):process.env.NODE_ENV==="test"&&(r.removeEventListener("mousedown",He,!0),r.removeEventListener("mousemove",He,!0),r.removeEventListener("mouseup",He,!0)),nr.delete(n))};function Gp(t){const e=ce(t);let n;return e.readyState!=="loading"?Yo(t):(n=()=>{Yo(t)},e.addEventListener("DOMContentLoaded",n)),()=>Ic(t,n)}typeof document<"u"&&Gp();function Tn(){return Gt!=="pointer"}function ni(){return Gt}function Oc(t){Gt=t,Di(t,null)}const qp=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Yp(t,e,n){let r=ce(n==null?void 0:n.target);const i=typeof window<"u"?Re(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,o=typeof window<"u"?Re(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,l=typeof window<"u"?Re(n==null?void 0:n.target).HTMLElement:HTMLElement,a=typeof window<"u"?Re(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return t=t||r.activeElement instanceof i&&!qp.has(r.activeElement.type)||r.activeElement instanceof o||r.activeElement instanceof l&&r.activeElement.isContentEditable,!(t&&e==="keyboard"&&n instanceof a&&!Up[n.key])}function Zp(t,e,n){Yo(),c.useEffect(()=>{let r=(i,o)=>{Yp(!!(n!=null&&n.isTextInput),i,o)&&t(Tn())};return Go.add(r),()=>{Go.delete(r)}},e)}function _n(t){const e=ce(t),n=_e(e);if(ni()==="virtual"){let r=n;hc(()=>{_e(e)===r&&t.isConnected&&Ze(t)})}else Ze(t)}function Ul(t){let{isDisabled:e,onFocus:n,onBlur:r,onFocusChange:i}=t;const o=c.useCallback(s=>{if(s.target===s.currentTarget)return r&&r(s),i&&i(!1),!0},[r,i]),l=$c(o),a=c.useCallback(s=>{const u=ce(s.target),d=u?_e(u):_e();s.target===s.currentTarget&&d===se(s.nativeEvent)&&(n&&n(s),i&&i(!0),l(s))},[i,n,l]);return{focusProps:{onFocus:!e&&(n||i||r)?a:void 0,onBlur:!e&&(r||i)?o:void 0}}}function Wa(t){if(!t)return;let e=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){e&&process.env.NODE_ENV!=="production"?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):e=!0},continuePropagation(){e=!1},isPropagationStopped(){return e}};t(r),e&&n.stopPropagation()}}function kc(t){return{keyboardProps:t.isDisabled?{}:{onKeyDown:Wa(t.onKeyDown),onKeyUp:Wa(t.onKeyUp)}}}let Xp=c.createContext(null);function Jp(t){let e=c.useContext(Xp)||{};pc(e,t);let{ref:n,...r}=e;return r}function Nc(t,e){let{focusProps:n}=Ul(t),{keyboardProps:r}=kc(t),i=le(n,r),o=Jp(e),l=t.isDisabled?{}:o,a=c.useRef(t.autoFocus);c.useEffect(()=>{a.current&&e.current&&_n(e.current),a.current=!1},[e]);let s=t.excludeFromTabOrder?-1:0;return t.isDisabled&&(s=void 0),{focusableProps:le({...i,tabIndex:s},l)}}function Qp({children:t}){let e=c.useMemo(()=>({register:()=>{}}),[]);return c.createElement(Vl.Provider,{value:e},t)}function Ti(t){let{isDisabled:e,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=t,o=c.useRef({isFocusWithin:!1}),{addGlobalListener:l,removeAllGlobalListeners:a}=Ci(),s=c.useCallback(f=>{f.currentTarget.contains(f.target)&&o.current.isFocusWithin&&!f.currentTarget.contains(f.relatedTarget)&&(o.current.isFocusWithin=!1,a(),n&&n(f),i&&i(!1))},[n,i,o,a]),u=$c(s),d=c.useCallback(f=>{if(!f.currentTarget.contains(f.target))return;const p=ce(f.target),g=_e(p);if(!o.current.isFocusWithin&&g===se(f.nativeEvent)){r&&r(f),i&&i(!0),o.current.isFocusWithin=!0,u(f);let y=f.currentTarget;l(p,"focus",h=>{if(o.current.isFocusWithin&&!he(y,h.target)){let v=new p.defaultView.FocusEvent("blur",{relatedTarget:h.target});Ec(v,y);let m=zl(v);s(m)}},{capture:!0})}},[r,i,u,l,s]);return e?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:d,onBlur:s}}}let ri=!1,no=0;function Zo(){ri=!0,setTimeout(()=>{ri=!1},50)}function Ga(t){t.pointerType==="touch"&&Zo()}function eg(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",Ga):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",Zo),no++,()=>{no--,!(no>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Ga):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",Zo))}}function Mn(t){let{onHoverStart:e,onHoverChange:n,onHoverEnd:r,isDisabled:i}=t,[o,l]=c.useState(!1),a=c.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;c.useEffect(eg,[]);let{addGlobalListener:s,removeAllGlobalListeners:u}=Ci(),{hoverProps:d,triggerHoverEnd:f}=c.useMemo(()=>{let p=(h,v)=>{if(a.pointerType=v,i||v==="touch"||a.isHovered||!h.currentTarget.contains(h.target))return;a.isHovered=!0;let m=h.currentTarget;a.target=m,s(ce(h.target),"pointerover",S=>{a.isHovered&&a.target&&!he(a.target,S.target)&&g(S,S.pointerType)},{capture:!0}),e&&e({type:"hoverstart",target:m,pointerType:v}),n&&n(!0),l(!0)},g=(h,v)=>{let m=a.target;a.pointerType="",a.target=null,!(v==="touch"||!a.isHovered||!m)&&(a.isHovered=!1,u(),r&&r({type:"hoverend",target:m,pointerType:v}),n&&n(!1),l(!1))},y={};return typeof PointerEvent<"u"?(y.onPointerEnter=h=>{ri&&h.pointerType==="mouse"||p(h,h.pointerType)},y.onPointerLeave=h=>{!i&&h.currentTarget.contains(h.target)&&g(h,h.pointerType)}):process.env.NODE_ENV==="test"&&(y.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},y.onMouseEnter=h=>{!a.ignoreEmulatedMouseEvents&&!ri&&p(h,"mouse"),a.ignoreEmulatedMouseEvents=!1},y.onMouseLeave=h=>{!i&&h.currentTarget.contains(h.target)&&g(h,"mouse")}),{hoverProps:y,triggerHoverEnd:g}},[e,n,r,i,a,s,u]);return c.useEffect(()=>{i&&f({currentTarget:a.target},a.pointerType)},[i]),{hoverProps:d,isHovered:o}}function tg(t){let{ref:e,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=t,o=c.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),l=be(s=>{n&&xr(s,e)&&(i&&i(s),o.current.isPointerDown=!0)}),a=be(s=>{n&&n(s)});c.useEffect(()=>{let s=o.current;if(r)return;const u=e.current,d=ce(u);if(typeof PointerEvent<"u"){let f=p=>{s.isPointerDown&&xr(p,e)&&a(p),s.isPointerDown=!1};return d.addEventListener("pointerdown",l,!0),d.addEventListener("pointerup",f,!0),()=>{d.removeEventListener("pointerdown",l,!0),d.removeEventListener("pointerup",f,!0)}}else if(process.env.NODE_ENV==="test"){let f=g=>{s.ignoreEmulatedMouseEvents?s.ignoreEmulatedMouseEvents=!1:s.isPointerDown&&xr(g,e)&&a(g),s.isPointerDown=!1},p=g=>{s.ignoreEmulatedMouseEvents=!0,s.isPointerDown&&xr(g,e)&&a(g),s.isPointerDown=!1};return d.addEventListener("mousedown",l,!0),d.addEventListener("mouseup",f,!0),d.addEventListener("touchstart",l,!0),d.addEventListener("touchend",p,!0),()=>{d.removeEventListener("mousedown",l,!0),d.removeEventListener("mouseup",f,!0),d.removeEventListener("touchstart",l,!0),d.removeEventListener("touchend",p,!0)}}},[e,r,l,a])}function xr(t,e){if(t.button>0)return!1;if(t.target){const n=t.target.ownerDocument;if(!n||!n.documentElement.contains(t.target)||t.target.closest("[data-react-aria-top-layer]"))return!1}return e.current?!t.composedPath().includes(e.current):!1}const ng=500;function Rc(t){let{isDisabled:e,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:o=ng,accessibilityDescription:l}=t;const a=c.useRef(void 0);let{addGlobalListener:s,removeGlobalListener:u}=Ci(),{pressProps:d}=Pi({isDisabled:e,onPressStart(p){if(p.continuePropagation(),(p.pointerType==="mouse"||p.pointerType==="touch")&&(n&&n({...p,type:"longpressstart"}),a.current=setTimeout(()=>{p.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),ce(p.target).activeElement!==p.target&&Ze(p.target),i&&i({...p,type:"longpress"}),a.current=void 0},o),p.pointerType==="touch")){let g=y=>{y.preventDefault()};s(p.target,"contextmenu",g,{once:!0}),s(window,"pointerup",()=>{setTimeout(()=>{u(p.target,"contextmenu",g)},30)},{once:!0})}},onPressEnd(p){a.current&&clearTimeout(a.current),r&&(p.pointerType==="mouse"||p.pointerType==="touch")&&r({...p,type:"longpressend"})}}),f=Qh(i&&!e?l:void 0);return{longPressProps:le(d,f)}}const rg=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),ig=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function og(t){if(Intl.Locale){let n=new Intl.Locale(t).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return rg.has(n.script)}let e=t.split("-")[0];return ig.has(e)}const lg=Symbol.for("react-aria.i18n.locale");function Mc(){let t=typeof window<"u"&&window[lg]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([t])}catch{t="en-US"}return{locale:t,direction:og(t)?"rtl":"ltr"}}let Xo=Mc(),Zn=new Set;function qa(){Xo=Mc();for(let t of Zn)t(Xo)}function ag(){let t=Dl(),[e,n]=c.useState(Xo);return c.useEffect(()=>(Zn.size===0&&window.addEventListener("languagechange",qa),Zn.add(n),()=>{Zn.delete(n),Zn.size===0&&window.removeEventListener("languagechange",qa)}),[]),t?{locale:"en-US",direction:"ltr"}:e}const sg=c.createContext(null);function qt(){let t=ag();return c.useContext(sg)||t}var nt=function(){return nt=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},nt.apply(this,arguments)};function Lc(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function ug(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}const cg=Symbol.for("react-aria.i18n.locale"),dg=Symbol.for("react-aria.i18n.strings");let en;class _i{getStringForLocale(e,n){let i=this.getStringsForLocale(n)[e];if(!i)throw new Error(`Could not find intl message ${e} in ${n} locale`);return i}getStringsForLocale(e){let n=this.strings[e];return n||(n=fg(e,this.strings,this.defaultLocale),this.strings[e]=n),n}static getGlobalDictionaryForPackage(e){if(typeof window>"u")return null;let n=window[cg];if(en===void 0){let i=window[dg];if(!i)return null;en={};for(let o in i)en[o]=new _i({[n]:i[o]},n)}let r=en==null?void 0:en[e];if(!r)throw new Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(e,n="en-US"){this.strings=Object.fromEntries(Object.entries(e).filter(([,r])=>r)),this.defaultLocale=n}}function fg(t,e,n="en-US"){if(e[t])return e[t];let r=hg(t);if(e[r])return e[r];for(let i in e)if(i.startsWith(r+"-"))return e[i];return e[n]}function hg(t){return Intl.Locale?new Intl.Locale(t).language:t.split("-")[0]}const Ya=new Map,Za=new Map;class pg{format(e,n){let r=this.strings.getStringForLocale(e,this.locale);return typeof r=="function"?r(n,this):r}plural(e,n,r="cardinal"){let i=n["="+e];if(i)return typeof i=="function"?i():i;let o=this.locale+":"+r,l=Ya.get(o);l||(l=new Intl.PluralRules(this.locale,{type:r}),Ya.set(o,l));let a=l.select(e);return i=n[a]||n.other,typeof i=="function"?i():i}number(e){let n=Za.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),Za.set(this.locale,n)),n.format(e)}select(e,n){let r=e[n]||e.other;return typeof r=="function"?r():r}constructor(e,n){this.locale=e,this.strings=n}}const Xa=new WeakMap;function gg(t){let e=Xa.get(t);return e||(e=new _i(t),Xa.set(t,e)),e}function vg(t,e){return e&&_i.getGlobalDictionaryForPackage(e)||gg(t)}function Ac(t,e){let{locale:n}=qt(),r=vg(t,e);return c.useMemo(()=>new pg(n,r),[n,r])}let ro=new Map;function Wl(t){let{locale:e}=qt(),n=e+(t?Object.entries(t).sort((i,o)=>i[0]<o[0]?-1:1).join():"");if(ro.has(n))return ro.get(n);let r=new Intl.Collator(e,t);return ro.set(n,r),r}function mg(t,e){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:o,onPressEnd:l,onPressUp:a,onPressChange:s,preventFocusOnPress:u,allowFocusWhenDisabled:d,onClick:f,href:p,target:g,rel:y,type:h="button"}=t,v;n==="button"?v={type:h,disabled:r}:v={role:"button",href:n==="a"&&!r?p:void 0,target:n==="a"?g:void 0,type:n==="input"?h:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?y:void 0};let{pressProps:m,isPressed:S}=Pi({onPressStart:o,onPressEnd:l,onPressChange:s,onPress:i,onPressUp:a,onClick:f,isDisabled:r,preventFocusOnPress:u,ref:e}),{focusableProps:C}=Nc(t,e);d&&(C.tabIndex=r?-1:C.tabIndex);let P=le(C,m,Se(t,{labelable:!0}));return{isPressed:S,buttonProps:le(v,P,{"aria-haspopup":t["aria-haspopup"],"aria-expanded":t["aria-expanded"],"aria-controls":t["aria-controls"],"aria-pressed":t["aria-pressed"],"aria-current":t["aria-current"]})}}const Kc=7e3;let Qe=null;function Ja(t,e="assertive",n=Kc){Qe?Qe.announce(t,e,n):(Qe=new yg,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Qe.announce(t,e,n):setTimeout(()=>{Qe!=null&&Qe.isAttached()&&(Qe==null||Qe.announce(t,e,n))},100))}class yg{isAttached(){var e;return(e=this.node)===null||e===void 0?void 0:e.isConnected}createLog(e){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",e),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,n="assertive",r=Kc){var i,o;if(!this.node)return;let l=document.createElement("div");typeof e=="object"?(l.setAttribute("role","img"),l.setAttribute("aria-labelledby",e["aria-labelledby"])):l.textContent=e,n==="assertive"?(i=this.assertiveLog)===null||i===void 0||i.appendChild(l):(o=this.politeLog)===null||o===void 0||o.appendChild(l),e!==""&&setTimeout(()=>{l.remove()},r)}clear(e){this.node&&((!e||e==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!e||e==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}function bg(t,e,n){let{validationBehavior:r,focus:i}=t;ue(()=>{if(r==="native"&&(n!=null&&n.current)&&!n.current.disabled){let s=e.realtimeValidation.isInvalid?e.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(s),n.current.hasAttribute("title")||(n.current.title=""),e.realtimeValidation.isInvalid||e.updateValidation(Cg(n.current))}});let o=be(()=>{e.resetValidation()}),l=be(s=>{var u;e.displayValidation.isInvalid||e.commitValidation();let d=n==null||(u=n.current)===null||u===void 0?void 0:u.form;if(!s.defaultPrevented&&n&&d&&wg(d)===n.current){var f;i?i():(f=n.current)===null||f===void 0||f.focus(),Oc("keyboard")}s.preventDefault()}),a=be(()=>{e.commitValidation()});c.useEffect(()=>{let s=n==null?void 0:n.current;if(!s)return;let u=s.form;return s.addEventListener("invalid",l),s.addEventListener("change",a),u==null||u.addEventListener("reset",o),()=>{s.removeEventListener("invalid",l),s.removeEventListener("change",a),u==null||u.removeEventListener("reset",o)}},[n,l,a,o,r])}function Sg(t){let e=t.validity;return{badInput:e.badInput,customError:e.customError,patternMismatch:e.patternMismatch,rangeOverflow:e.rangeOverflow,rangeUnderflow:e.rangeUnderflow,stepMismatch:e.stepMismatch,tooLong:e.tooLong,tooShort:e.tooShort,typeMismatch:e.typeMismatch,valueMissing:e.valueMissing,valid:e.valid}}function Cg(t){return{isInvalid:!t.validity.valid,validationDetails:Sg(t),validationErrors:t.validationMessage?[t.validationMessage]:[]}}function wg(t){for(let e=0;e<t.elements.length;e++){let n=t.elements[e];if(!n.validity.valid)return n}return null}function Fc(t){let{id:e,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:o="label"}=t;e=Ie(e);let l=Ie(),a={};n?(r=r?`${l} ${r}`:l,a={id:l,htmlFor:o==="label"?e:void 0}):!r&&!i&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let s=wi({id:e,"aria-label":i,"aria-labelledby":r});return{labelProps:a,fieldProps:s}}function xg(t){let{description:e,errorMessage:n,isInvalid:r,validationState:i}=t,{labelProps:o,fieldProps:l}=Fc(t),a=Nt([!!e,!!n,r,i]),s=Nt([!!e,!!n,r,i]);return l=le(l,{"aria-describedby":[a,s,t["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:o,fieldProps:l,descriptionProps:{id:a},errorMessageProps:{id:s}}}const Qa={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function jc(t={}){let{style:e,isFocusable:n}=t,[r,i]=c.useState(!1),{focusWithinProps:o}=Ti({isDisabled:!n,onFocusWithinChange:a=>i(a)}),l=c.useMemo(()=>r?e:e?{...Qa,...e}:Qa,[r]);return{visuallyHiddenProps:{...o,style:l}}}function Eg(t){let{children:e,elementType:n="div",isFocusable:r,style:i,...o}=t,{visuallyHiddenProps:l}=jc(t);return c.createElement(n,le(o,l),e)}const rt={top:"top",bottom:"top",left:"left",right:"left"},ii={top:"bottom",bottom:"top",left:"right",right:"left"},$g={top:"left",left:"top"},Jo={top:"height",left:"width"},Hc={width:"totalWidth",height:"totalHeight"},Er={};let Ce=typeof document<"u"?window.visualViewport:null;function es(t){let e=0,n=0,r=0,i=0,o=0,l=0,a={};var s;let u=((s=Ce==null?void 0:Ce.scale)!==null&&s!==void 0?s:1)>1;if(t.tagName==="BODY"){let y=document.documentElement;r=y.clientWidth,i=y.clientHeight;var d;e=(d=Ce==null?void 0:Ce.width)!==null&&d!==void 0?d:r;var f;n=(f=Ce==null?void 0:Ce.height)!==null&&f!==void 0?f:i,a.top=y.scrollTop||t.scrollTop,a.left=y.scrollLeft||t.scrollLeft,Ce&&(o=Ce.offsetTop,l=Ce.offsetLeft)}else({width:e,height:n,top:o,left:l}=xn(t)),a.top=t.scrollTop,a.left=t.scrollLeft,r=e,i=n;if(Il()&&(t.tagName==="BODY"||t.tagName==="HTML")&&u){a.top=0,a.left=0;var p;o=(p=Ce==null?void 0:Ce.pageTop)!==null&&p!==void 0?p:0;var g;l=(g=Ce==null?void 0:Ce.pageLeft)!==null&&g!==void 0?g:0}return{width:e,height:n,totalWidth:r,totalHeight:i,scroll:a,top:o,left:l}}function Pg(t){return{top:t.scrollTop,left:t.scrollLeft,width:t.scrollWidth,height:t.scrollHeight}}function ts(t,e,n,r,i,o,l){var a;let s=(a=i.scroll[t])!==null&&a!==void 0?a:0,u=r[Jo[t]],d=r.scroll[rt[t]]+o,f=u+r.scroll[rt[t]]-o,p=e-s+l[t]-r[rt[t]],g=e-s+n+l[t]-r[rt[t]];return p<d?d-p:g>f?Math.max(f-g,d-p):0}function Dg(t){let e=window.getComputedStyle(t);return{top:parseInt(e.marginTop,10)||0,bottom:parseInt(e.marginBottom,10)||0,left:parseInt(e.marginLeft,10)||0,right:parseInt(e.marginRight,10)||0}}function ns(t){if(Er[t])return Er[t];let[e,n]=t.split(" "),r=rt[e]||"right",i=$g[r];rt[n]||(n="center");let o=Jo[r],l=Jo[i];return Er[t]={placement:e,crossPlacement:n,axis:r,crossAxis:i,size:o,crossSize:l},Er[t]}function io(t,e,n,r,i,o,l,a,s,u){let{placement:d,crossPlacement:f,axis:p,crossAxis:g,size:y,crossSize:h}=r,v={};var m;v[g]=(m=t[g])!==null&&m!==void 0?m:0;var S,C,P,$;f==="center"?v[g]+=(((S=t[h])!==null&&S!==void 0?S:0)-((C=n[h])!==null&&C!==void 0?C:0))/2:f!==g&&(v[g]+=((P=t[h])!==null&&P!==void 0?P:0)-(($=n[h])!==null&&$!==void 0?$:0)),v[g]+=o;const E=t[g]-n[h]+s+u,T=t[g]+t[h]-s-u;if(v[g]=Bo(v[g],E,T),d===p){const L=a?l[y]:e[Hc[y]];v[ii[p]]=Math.floor(L-t[p]+i)}else v[p]=Math.floor(t[p]+t[y]+i);return v}function Tg(t,e,n,r,i,o,l,a){const s=r?n.height:e[Hc.height];var u;let d=t.top!=null?n.top+t.top:n.top+(s-((u=t.bottom)!==null&&u!==void 0?u:0)-l);var f,p,g,y,h,v;let m=a!=="top"?Math.max(0,e.height+e.top+((f=e.scroll.top)!==null&&f!==void 0?f:0)-d-(((p=i.top)!==null&&p!==void 0?p:0)+((g=i.bottom)!==null&&g!==void 0?g:0)+o)):Math.max(0,d+l-(e.top+((y=e.scroll.top)!==null&&y!==void 0?y:0))-(((h=i.top)!==null&&h!==void 0?h:0)+((v=i.bottom)!==null&&v!==void 0?v:0)+o));return Math.min(e.height-o*2,m)}function rs(t,e,n,r,i,o){let{placement:l,axis:a,size:s}=o;var u,d;if(l===a)return Math.max(0,n[a]-t[a]-((u=t.scroll[a])!==null&&u!==void 0?u:0)+e[a]-((d=r[a])!==null&&d!==void 0?d:0)-r[ii[a]]-i);var f;return Math.max(0,t[s]+t[a]+t.scroll[a]-e[a]-n[a]-n[s]-((f=r[a])!==null&&f!==void 0?f:0)-r[ii[a]]-i)}function _g(t,e,n,r,i,o,l,a,s,u,d,f,p,g,y,h){let v=ns(t),{size:m,crossAxis:S,crossSize:C,placement:P,crossPlacement:$}=v,E=io(e,a,n,v,d,f,u,p,y,h),T=d,L=rs(a,u,e,i,o+d,v);if(l&&r[m]>L){let F=ns(`${ii[P]} ${$}`),K=io(e,a,n,F,d,f,u,p,y,h);rs(a,u,e,i,o+d,F)>L&&(v=F,E=K,T=d)}let z="bottom";v.axis==="top"?v.placement==="top"?z="top":v.placement==="bottom"&&(z="bottom"):v.crossAxis==="top"&&(v.crossPlacement==="top"?z="bottom":v.crossPlacement==="bottom"&&(z="top"));let A=ts(S,E[S],n[C],a,s,o,u);E[S]+=A;let w=Tg(E,a,u,p,i,o,n.height,z);g&&g<w&&(w=g),n.height=Math.min(n.height,w),E=io(e,a,n,v,T,f,u,p,y,h),A=ts(S,E[S],n[C],a,s,o,u),E[S]+=A;let M={},B=e[S]+.5*e[C]-E[S]-i[rt[S]];const R=y/2+h;var U,x,N,I;const G=rt[S]==="left"?((U=i.left)!==null&&U!==void 0?U:0)+((x=i.right)!==null&&x!==void 0?x:0):((N=i.top)!==null&&N!==void 0?N:0)+((I=i.bottom)!==null&&I!==void 0?I:0),H=n[C]-G-y/2-h,j=e[S]+y/2-(E[S]+i[rt[S]]),O=e[S]+e[C]-y/2-(E[S]+i[rt[S]]),k=Bo(B,j,O);return M[S]=Bo(k,R,H),{position:E,maxHeight:w,arrowOffsetLeft:M.left,arrowOffsetTop:M.top,placement:v.placement}}function Ig(t){let{placement:e,targetNode:n,overlayNode:r,scrollNode:i,padding:o,shouldFlip:l,boundaryElement:a,offset:s,crossOffset:u,maxHeight:d,arrowSize:f=0,arrowBoundaryOffset:p=0}=t,g=r instanceof HTMLElement?Og(r):document.documentElement,y=g===document.documentElement;const h=window.getComputedStyle(g).position;let v=!!h&&h!=="static",m=y?xn(n):is(n,g);if(!y){let{marginTop:M,marginLeft:B}=window.getComputedStyle(n);m.top+=parseInt(M,10)||0,m.left+=parseInt(B,10)||0}let S=xn(r),C=Dg(r);var P,$;S.width+=((P=C.left)!==null&&P!==void 0?P:0)+(($=C.right)!==null&&$!==void 0?$:0);var E,T;S.height+=((E=C.top)!==null&&E!==void 0?E:0)+((T=C.bottom)!==null&&T!==void 0?T:0);let L=Pg(i),z=es(a),A=es(g),w=a.tagName==="BODY"?xn(g):is(g,a);return g.tagName==="HTML"&&a.tagName==="BODY"&&(A.scroll.top=0,A.scroll.left=0),_g(e,m,S,L,C,o,l,z,A,w,s,u,v,d,f,p)}function xn(t){let{top:e,left:n,width:r,height:i}=t.getBoundingClientRect(),{scrollTop:o,scrollLeft:l,clientTop:a,clientLeft:s}=document.documentElement;return{top:e+o-a,left:n+l-s,width:r,height:i}}function is(t,e){let n=window.getComputedStyle(t),r;if(n.position==="fixed"){let{top:i,left:o,width:l,height:a}=t.getBoundingClientRect();r={top:i,left:o,width:l,height:a}}else{r=xn(t);let i=xn(e),o=window.getComputedStyle(e);i.top+=(parseInt(o.borderTopWidth,10)||0)-e.scrollTop,i.left+=(parseInt(o.borderLeftWidth,10)||0)-e.scrollLeft,r.top-=i.top,r.left-=i.left}return r.top-=parseInt(n.marginTop,10)||0,r.left-=parseInt(n.marginLeft,10)||0,r}function Og(t){let e=t.offsetParent;if(e&&e===document.body&&window.getComputedStyle(e).position==="static"&&!os(e)&&(e=document.documentElement),e==null)for(e=t.parentElement;e&&!os(e);)e=e.parentElement;return e||document.documentElement}function os(t){let e=window.getComputedStyle(t);return e.transform!=="none"||/transform|perspective/.test(e.willChange)||e.filter!=="none"||e.contain==="paint"||"backdropFilter"in e&&e.backdropFilter!=="none"||"WebkitBackdropFilter"in e&&e.WebkitBackdropFilter!=="none"}const zc=new WeakMap;function kg(t){let{triggerRef:e,isOpen:n,onClose:r}=t;c.useEffect(()=>{if(!n||r===null)return;let i=o=>{let l=o.target;if(!e.current||l instanceof Node&&!l.contains(e.current)||o.target instanceof HTMLInputElement||o.target instanceof HTMLTextAreaElement)return;let a=r||zc.get(e.current);a&&a()};return window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("scroll",i,!0)}},[n,r,e])}let ve=typeof document<"u"?window.visualViewport:null;function Ng(t){let{direction:e}=qt(),{arrowSize:n=0,targetRef:r,overlayRef:i,scrollRef:o=i,placement:l="bottom",containerPadding:a=12,shouldFlip:s=!0,boundaryElement:u=typeof document<"u"?document.body:null,offset:d=0,crossOffset:f=0,shouldUpdatePosition:p=!0,isOpen:g=!0,onClose:y,maxHeight:h,arrowBoundaryOffset:v=0}=t,[m,S]=c.useState(null),C=[p,l,i.current,r.current,o.current,a,s,u,d,f,g,e,h,v,n],P=c.useRef(ve==null?void 0:ve.scale);c.useEffect(()=>{g&&(P.current=ve==null?void 0:ve.scale)},[g]);let $=c.useCallback(()=>{if(p===!1||!g||!i.current||!r.current||!u||(ve==null?void 0:ve.scale)!==P.current)return;let A=null;if(o.current&&o.current.contains(document.activeElement)){var w;let I=(w=document.activeElement)===null||w===void 0?void 0:w.getBoundingClientRect(),G=o.current.getBoundingClientRect();var M;if(A={type:"top",offset:((M=I==null?void 0:I.top)!==null&&M!==void 0?M:0)-G.top},A.offset>G.height/2){A.type="bottom";var B;A.offset=((B=I==null?void 0:I.bottom)!==null&&B!==void 0?B:0)-G.bottom}}let R=i.current;if(!h&&i.current){var U;R.style.top="0px",R.style.bottom="";var x;R.style.maxHeight=((x=(U=window.visualViewport)===null||U===void 0?void 0:U.height)!==null&&x!==void 0?x:window.innerHeight)+"px"}let N=Ig({placement:Mg(l,e),overlayNode:i.current,targetNode:r.current,scrollNode:o.current||i.current,padding:a,shouldFlip:s,boundaryElement:u,offset:d,crossOffset:f,maxHeight:h,arrowSize:n,arrowBoundaryOffset:v});if(N.position){if(R.style.top="",R.style.bottom="",R.style.left="",R.style.right="",Object.keys(N.position).forEach(I=>R.style[I]=N.position[I]+"px"),R.style.maxHeight=N.maxHeight!=null?N.maxHeight+"px":"",A&&document.activeElement&&o.current){let I=document.activeElement.getBoundingClientRect(),G=o.current.getBoundingClientRect(),H=I[A.type]-G[A.type];o.current.scrollTop+=H-A.offset}S(N)}},C);ue($,C),Rg($),zo({ref:i,onResize:$}),zo({ref:r,onResize:$});let E=c.useRef(!1);ue(()=>{let A,w=()=>{E.current=!0,clearTimeout(A),A=setTimeout(()=>{E.current=!1},500),$()},M=()=>{E.current&&w()};return ve==null||ve.addEventListener("resize",w),ve==null||ve.addEventListener("scroll",M),()=>{ve==null||ve.removeEventListener("resize",w),ve==null||ve.removeEventListener("scroll",M)}},[$]);let T=c.useCallback(()=>{E.current||y==null||y()},[y,E]);kg({triggerRef:r,isOpen:g,onClose:y&&T});var L,z;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...m==null?void 0:m.position,maxHeight:(L=m==null?void 0:m.maxHeight)!==null&&L!==void 0?L:"100vh"}},placement:(z=m==null?void 0:m.placement)!==null&&z!==void 0?z:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:m==null?void 0:m.arrowOffsetLeft,top:m==null?void 0:m.arrowOffsetTop}},updatePosition:$}}function Rg(t){ue(()=>(window.addEventListener("resize",t,!1),()=>{window.removeEventListener("resize",t,!1)}),[t])}function Mg(t,e){return e==="rtl"?t.replace("start","right").replace("end","left"):t.replace("start","left").replace("end","right")}function Lg(t){const e=Re(t);if(!(t instanceof e.HTMLElement)&&!(t instanceof e.SVGElement))return!1;let{display:n,visibility:r}=t.style,i=n!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:o}=t.ownerDocument.defaultView;let{display:l,visibility:a}=o(t);i=l!=="none"&&a!=="hidden"&&a!=="collapse"}return i}function Ag(t,e){return!t.hasAttribute("hidden")&&!t.hasAttribute("data-react-aria-prevent-focus")&&(t.nodeName==="DETAILS"&&e&&e.nodeName!=="SUMMARY"?t.hasAttribute("open"):!0)}function Vc(t,e){return t.nodeName!=="#comment"&&Lg(t)&&Ag(t,e)&&(!t.parentElement||Vc(t.parentElement,t))}const ls=c.createContext(null),Qo="react-aria-focus-scope-restore";let de=null;function Gl(t){let{children:e,contain:n,restoreFocus:r,autoFocus:i}=t,o=c.useRef(null),l=c.useRef(null),a=c.useRef([]),{parentNode:s}=c.useContext(ls)||{},u=c.useMemo(()=>new tl({scopeRef:a}),[a]);ue(()=>{let p=s||ye.root;if(ye.getTreeNode(p.scopeRef)&&de&&!oi(de,p.scopeRef)){let g=ye.getTreeNode(de);g&&(p=g)}p.addChild(u),ye.addNode(u)},[u,s]),ue(()=>{let p=ye.getTreeNode(a);p&&(p.contain=!!n)},[n]),ue(()=>{var p;let g=(p=o.current)===null||p===void 0?void 0:p.nextSibling,y=[],h=v=>v.stopPropagation();for(;g&&g!==l.current;)y.push(g),g.addEventListener(Qo,h),g=g.nextSibling;return a.current=y,()=>{for(let v of y)v.removeEventListener(Qo,h)}},[e]),zg(a,r,n),Fg(a,n),Vg(a,r,n),Hg(a,i),c.useEffect(()=>{const p=_e(ce(a.current?a.current[0]:void 0));let g=null;if(Ue(p,a.current)){for(let y of ye.traverse())y.scopeRef&&Ue(p,y.scopeRef.current)&&(g=y);g===ye.getTreeNode(a)&&(de=g.scopeRef)}},[a]),ue(()=>()=>{var p,g,y;let h=(y=(g=ye.getTreeNode(a))===null||g===void 0||(p=g.parent)===null||p===void 0?void 0:p.scopeRef)!==null&&y!==void 0?y:null;(a===de||oi(a,de))&&(!h||ye.getTreeNode(h))&&(de=h),ye.removeTreeNode(a)},[a]);let d=c.useMemo(()=>Kg(a),[]),f=c.useMemo(()=>({focusManager:d,parentNode:u}),[u,d]);return c.createElement(ls.Provider,{value:f},c.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:o}),e,c.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:l}))}function Kg(t){return{focusNext(e={}){let n=t.current,{from:r,tabbable:i,wrap:o,accept:l}=e;var a;let s=r||_e(ce((a=n[0])!==null&&a!==void 0?a:void 0)),u=n[0].previousElementSibling,d=Ot(n),f=it(d,{tabbable:i,accept:l},n);f.currentNode=Ue(s,n)?s:u;let p=f.nextNode();return!p&&o&&(f.currentNode=u,p=f.nextNode()),p&&ct(p,!0),p},focusPrevious(e={}){let n=t.current,{from:r,tabbable:i,wrap:o,accept:l}=e;var a;let s=r||_e(ce((a=n[0])!==null&&a!==void 0?a:void 0)),u=n[n.length-1].nextElementSibling,d=Ot(n),f=it(d,{tabbable:i,accept:l},n);f.currentNode=Ue(s,n)?s:u;let p=f.previousNode();return!p&&o&&(f.currentNode=u,p=f.previousNode()),p&&ct(p,!0),p},focusFirst(e={}){let n=t.current,{tabbable:r,accept:i}=e,o=Ot(n),l=it(o,{tabbable:r,accept:i},n);l.currentNode=n[0].previousElementSibling;let a=l.nextNode();return a&&ct(a,!0),a},focusLast(e={}){let n=t.current,{tabbable:r,accept:i}=e,o=Ot(n),l=it(o,{tabbable:r,accept:i},n);l.currentNode=n[n.length-1].nextElementSibling;let a=l.previousNode();return a&&ct(a,!0),a}}}function Ot(t){return t[0].parentElement}function Xn(t){let e=ye.getTreeNode(de);for(;e&&e.scopeRef!==t;){if(e.contain)return!1;e=e.parent}return!0}function Fg(t,e){let n=c.useRef(void 0),r=c.useRef(void 0);ue(()=>{let i=t.current;if(!e){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const o=ce(i?i[0]:void 0);let l=u=>{if(u.key!=="Tab"||u.altKey||u.ctrlKey||u.metaKey||!Xn(t)||u.isComposing)return;let d=_e(o),f=t.current;if(!f||!Ue(d,f))return;let p=Ot(f),g=it(p,{tabbable:!0},f);if(!d)return;g.currentNode=d;let y=u.shiftKey?g.previousNode():g.nextNode();y||(g.currentNode=u.shiftKey?f[f.length-1].nextElementSibling:f[0].previousElementSibling,y=u.shiftKey?g.previousNode():g.nextNode()),u.preventDefault(),y&&ct(y,!0)},a=u=>{(!de||oi(de,t))&&Ue(se(u),t.current)?(de=t,n.current=se(u)):Xn(t)&&!wt(se(u),t)?n.current?n.current.focus():de&&de.current&&el(de.current):Xn(t)&&(n.current=se(u))},s=u=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let d=ni(),f=(d==="virtual"||d===null)&&Ol()&&fc(),p=_e(o);if(!f&&p&&Xn(t)&&!wt(p,t)){de=t;let y=se(u);if(y&&y.isConnected){var g;n.current=y,(g=n.current)===null||g===void 0||g.focus()}else de.current&&el(de.current)}})};return o.addEventListener("keydown",l,!1),o.addEventListener("focusin",a,!1),i==null||i.forEach(u=>u.addEventListener("focusin",a,!1)),i==null||i.forEach(u=>u.addEventListener("focusout",s,!1)),()=>{o.removeEventListener("keydown",l,!1),o.removeEventListener("focusin",a,!1),i==null||i.forEach(u=>u.removeEventListener("focusin",a,!1)),i==null||i.forEach(u=>u.removeEventListener("focusout",s,!1))}},[t,e]),ue(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function Bc(t){return wt(t)}function Ue(t,e){return!t||!e?!1:e.some(n=>n.contains(t))}function wt(t,e=null){if(t instanceof Element&&t.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of ye.traverse(ye.getTreeNode(e)))if(n&&Ue(t,n.current))return!0;return!1}function jg(t){return wt(t,de)}function oi(t,e){var n;let r=(n=ye.getTreeNode(e))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===t)return!0;r=r.parent}return!1}function ct(t,e=!1){if(t!=null&&!e)try{_n(t)}catch{}else if(t!=null)try{t.focus()}catch{}}function Uc(t,e=!0){let n=t[0].previousElementSibling,r=Ot(t),i=it(r,{tabbable:e},t);i.currentNode=n;let o=i.nextNode();return e&&!o&&(r=Ot(t),i=it(r,{tabbable:!1},t),i.currentNode=n,o=i.nextNode()),o}function el(t,e=!0){ct(Uc(t,e))}function Hg(t,e){const n=c.useRef(e);c.useEffect(()=>{if(n.current){de=t;const r=ce(t.current?t.current[0]:void 0);!Ue(_e(r),de.current)&&t.current&&el(t.current)}n.current=!1},[t])}function zg(t,e,n){ue(()=>{if(e||n)return;let r=t.current;const i=ce(r?r[0]:void 0);let o=l=>{let a=se(l);Ue(a,t.current)?de=t:Bc(a)||(de=null)};return i.addEventListener("focusin",o,!1),r==null||r.forEach(l=>l.addEventListener("focusin",o,!1)),()=>{i.removeEventListener("focusin",o,!1),r==null||r.forEach(l=>l.removeEventListener("focusin",o,!1))}},[t,e,n])}function as(t){let e=ye.getTreeNode(de);for(;e&&e.scopeRef!==t;){if(e.nodeToRestore)return!1;e=e.parent}return(e==null?void 0:e.scopeRef)===t}function Vg(t,e,n){const r=c.useRef(typeof document<"u"?_e(ce(t.current?t.current[0]:void 0)):null);ue(()=>{let i=t.current;const o=ce(i?i[0]:void 0);if(!e||n)return;let l=()=>{(!de||oi(de,t))&&Ue(_e(o),t.current)&&(de=t)};return o.addEventListener("focusin",l,!1),i==null||i.forEach(a=>a.addEventListener("focusin",l,!1)),()=>{o.removeEventListener("focusin",l,!1),i==null||i.forEach(a=>a.removeEventListener("focusin",l,!1))}},[t,n]),ue(()=>{const i=ce(t.current?t.current[0]:void 0);if(!e)return;let o=l=>{if(l.key!=="Tab"||l.altKey||l.ctrlKey||l.metaKey||!Xn(t)||l.isComposing)return;let a=i.activeElement;if(!wt(a,t)||!as(t))return;let s=ye.getTreeNode(t);if(!s)return;let u=s.nodeToRestore,d=it(i.body,{tabbable:!0});d.currentNode=a;let f=l.shiftKey?d.previousNode():d.nextNode();if((!u||!u.isConnected||u===i.body)&&(u=void 0,s.nodeToRestore=void 0),(!f||!wt(f,t))&&u){d.currentNode=u;do f=l.shiftKey?d.previousNode():d.nextNode();while(wt(f,t));l.preventDefault(),l.stopPropagation(),f?ct(f,!0):Bc(u)?ct(u,!0):a.blur()}};return n||i.addEventListener("keydown",o,!0),()=>{n||i.removeEventListener("keydown",o,!0)}},[t,e,n]),ue(()=>{const i=ce(t.current?t.current[0]:void 0);if(!e)return;let o=ye.getTreeNode(t);if(o){var l;return o.nodeToRestore=(l=r.current)!==null&&l!==void 0?l:void 0,()=>{let a=ye.getTreeNode(t);if(!a)return;let s=a.nodeToRestore,u=_e(i);if(e&&s&&(u&&wt(u,t)||u===i.body&&as(t))){let d=ye.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let f=d.getTreeNode(t);for(;f;){if(f.nodeToRestore&&f.nodeToRestore.isConnected){ss(f.nodeToRestore);return}f=f.parent}for(f=d.getTreeNode(t);f;){if(f.scopeRef&&f.scopeRef.current&&ye.getTreeNode(f.scopeRef)){let p=Uc(f.scopeRef.current,!0);ss(p);return}f=f.parent}}})}}}},[t,e])}function ss(t){t.dispatchEvent(new CustomEvent(Qo,{bubbles:!0,cancelable:!0}))&&ct(t)}function it(t,e,n){let r=e!=null&&e.tabbable?up:yc,i=(t==null?void 0:t.nodeType)===Node.ELEMENT_NODE?t:null,o=ce(i),l=Lh(o,t||o,NodeFilter.SHOW_ELEMENT,{acceptNode(a){var s;return!(e==null||(s=e.from)===null||s===void 0)&&s.contains(a)?NodeFilter.FILTER_REJECT:r(a)&&Vc(a)&&(!n||Ue(a,n))&&(!(e!=null&&e.accept)||e.accept(a))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return e!=null&&e.from&&(l.currentNode=e.from),l}class ql{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,n,r){let i=this.fastMap.get(n??null);if(!i)return;let o=new tl({scopeRef:e});i.addChild(o),o.parent=i,this.fastMap.set(e,o),r&&(o.nodeToRestore=r)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(e===null)return;let n=this.fastMap.get(e);if(!n)return;let r=n.parent;for(let o of this.traverse())o!==n&&n.nodeToRestore&&o.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&Ue(o.nodeToRestore,n.scopeRef.current)&&(o.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(o=>r&&r.addChild(o))),this.fastMap.delete(n.scopeRef)}*traverse(e=this.root){if(e.scopeRef!=null&&(yield e),e.children.size>0)for(let n of e.children)yield*this.traverse(n)}clone(){var e;let n=new ql;var r;for(let i of this.traverse())n.addTreeNode(i.scopeRef,(r=(e=i.parent)===null||e===void 0?void 0:e.scopeRef)!==null&&r!==void 0?r:null,i.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new tl({scopeRef:null}),this.fastMap.set(null,this.root)}}class tl{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}}let ye=new ql;function Ln(t={}){let{autoFocus:e=!1,isTextInput:n,within:r}=t,i=c.useRef({isFocused:!1,isFocusVisible:e||Tn()}),[o,l]=c.useState(!1),[a,s]=c.useState(()=>i.current.isFocused&&i.current.isFocusVisible),u=c.useCallback(()=>s(i.current.isFocused&&i.current.isFocusVisible),[]),d=c.useCallback(g=>{i.current.isFocused=g,l(g),u()},[u]);Zp(g=>{i.current.isFocusVisible=g,u()},[],{isTextInput:n});let{focusProps:f}=Ul({isDisabled:r,onFocusChange:d}),{focusWithinProps:p}=Ti({isDisabled:!r,onFocusWithinChange:d});return{isFocused:o,isFocusVisible:a,focusProps:r?p:f}}function Bg(t,e){let n=e==null?void 0:e.isDisabled,[r,i]=c.useState(!1);return ue(()=>{if(t!=null&&t.current&&!n){let o=()=>{if(t.current){let a=it(t.current,{tabbable:!0});i(!!a.nextNode())}};o();let l=new MutationObserver(o);return l.observe(t.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{l.disconnect()}}}),n?!1:r}function Wc(t){let e=Gg(ce(t));e!==t&&(e&&Ug(e,t),t&&Wg(t,e))}function Ug(t,e){t.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}function Wg(t,e){t.dispatchEvent(new FocusEvent("focus",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:e}))}function Gg(t){let e=_e(t),n=e==null?void 0:e.getAttribute("aria-activedescendant");return n&&t.getElementById(n)||e}const et=[];function qg(t,e){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:o=!1,isKeyboardDismissDisabled:l=!1,shouldCloseOnInteractOutside:a}=t;c.useEffect(()=>{if(i&&!et.includes(e))return et.push(e),()=>{let y=et.indexOf(e);y>=0&&et.splice(y,1)}},[i,e]);let s=()=>{et[et.length-1]===e&&n&&n()},u=y=>{(!a||a(y.target))&&et[et.length-1]===e&&(y.stopPropagation(),y.preventDefault())},d=y=>{(!a||a(y.target))&&(et[et.length-1]===e&&(y.stopPropagation(),y.preventDefault()),s())},f=y=>{y.key==="Escape"&&!l&&!y.nativeEvent.isComposing&&(y.stopPropagation(),y.preventDefault(),s())};tg({ref:e,onInteractOutside:o&&i?d:void 0,onInteractOutsideStart:u});let{focusWithinProps:p}=Ti({isDisabled:!r,onBlurWithin:y=>{!y.relatedTarget||jg(y.relatedTarget)||(!a||a(y.relatedTarget))&&(n==null||n())}}),g=y=>{y.target===y.currentTarget&&y.preventDefault()};return{overlayProps:{onKeyDown:f,...p},underlayProps:{onPointerDown:g}}}function Yg(t,e,n){let{type:r}=t,{isOpen:i}=e;c.useEffect(()=>{n&&n.current&&zc.set(n.current,e.close)});let o;r==="menu"?o=!0:r==="listbox"&&(o="listbox");let l=Ie();return{triggerProps:{"aria-haspopup":o,"aria-expanded":i,"aria-controls":i?l:void 0,onPress:e.toggle},overlayProps:{id:l}}}const oo=typeof document<"u"&&window.visualViewport,Zg=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let $r=0,lo;function Xg(t={}){let{isDisabled:e}=t;ue(()=>{if(!e)return $r++,$r===1&&(bi()?lo=Qg():lo=Jg()),()=>{$r--,$r===0&&lo()}},[e])}function Jg(){return At(yn(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),yn(document.documentElement,"overflow","hidden"))}function Qg(){let t,e,n=u=>{t=gc(u.target,!0),!(t===document.documentElement&&t===document.body)&&t instanceof HTMLElement&&window.getComputedStyle(t).overscrollBehavior==="auto"&&(e=yn(t,"overscrollBehavior","contain"))},r=u=>{if(!t||t===document.documentElement||t===document.body){u.preventDefault();return}t.scrollHeight===t.clientHeight&&t.scrollWidth===t.clientWidth&&u.preventDefault()},i=()=>{e&&e()},o=u=>{let d=u.target;e5(d)&&(a(),d.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{d.style.transform="",oo&&(oo.height<window.innerHeight?requestAnimationFrame(()=>{us(d)}):oo.addEventListener("resize",()=>us(d),{once:!0}))}))},l=null,a=()=>{if(l)return;let u=()=>{window.scrollTo(0,0)},d=window.pageXOffset,f=window.pageYOffset;l=At(zn(window,"scroll",u),yn(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),yn(document.documentElement,"overflow","hidden"),yn(document.body,"marginTop",`-${f}px`),()=>{window.scrollTo(d,f)}),window.scrollTo(0,0)},s=At(zn(document,"touchstart",n,{passive:!1,capture:!0}),zn(document,"touchmove",r,{passive:!1,capture:!0}),zn(document,"touchend",i,{passive:!1,capture:!0}),zn(document,"focus",o,!0));return()=>{e==null||e(),l==null||l(),s()}}function yn(t,e,n){let r=t.style[e];return t.style[e]=n,()=>{t.style[e]=r}}function zn(t,e,n,r){return t.addEventListener(e,n,r),()=>{t.removeEventListener(e,n,r)}}function us(t){let e=document.scrollingElement||document.documentElement,n=t;for(;n&&n!==e;){let r=gc(n);if(r!==document.documentElement&&r!==document.body&&r!==n){let i=r.getBoundingClientRect().top,o=n.getBoundingClientRect().top;o>i+n.clientHeight&&(r.scrollTop+=o-i)}n=r.parentElement}}function e5(t){return t instanceof HTMLInputElement&&!Zg.has(t.type)||t instanceof HTMLTextAreaElement||t instanceof HTMLElement&&t.isContentEditable}const t5=c.createContext({});function n5(){var t;return(t=c.useContext(t5))!==null&&t!==void 0?t:{}}var Gc={};Gc={dismiss:"تجاهل"};var qc={};qc={dismiss:"Отхвърляне"};var Yc={};Yc={dismiss:"Odstranit"};var Zc={};Zc={dismiss:"Luk"};var Xc={};Xc={dismiss:"Schließen"};var Jc={};Jc={dismiss:"Απόρριψη"};var Qc={};Qc={dismiss:"Dismiss"};var ed={};ed={dismiss:"Descartar"};var td={};td={dismiss:"Lõpeta"};var nd={};nd={dismiss:"Hylkää"};var rd={};rd={dismiss:"Rejeter"};var id={};id={dismiss:"התעלם"};var od={};od={dismiss:"Odbaci"};var ld={};ld={dismiss:"Elutasítás"};var ad={};ad={dismiss:"Ignora"};var sd={};sd={dismiss:"閉じる"};var ud={};ud={dismiss:"무시"};var cd={};cd={dismiss:"Atmesti"};var dd={};dd={dismiss:"Nerādīt"};var fd={};fd={dismiss:"Lukk"};var hd={};hd={dismiss:"Negeren"};var pd={};pd={dismiss:"Zignoruj"};var gd={};gd={dismiss:"Descartar"};var vd={};vd={dismiss:"Dispensar"};var md={};md={dismiss:"Revocare"};var yd={};yd={dismiss:"Пропустить"};var bd={};bd={dismiss:"Zrušiť"};var Sd={};Sd={dismiss:"Opusti"};var Cd={};Cd={dismiss:"Odbaci"};var wd={};wd={dismiss:"Avvisa"};var xd={};xd={dismiss:"Kapat"};var Ed={};Ed={dismiss:"Скасувати"};var $d={};$d={dismiss:"取消"};var Pd={};Pd={dismiss:"關閉"};var Dd={};Dd={"ar-AE":Gc,"bg-BG":qc,"cs-CZ":Yc,"da-DK":Zc,"de-DE":Xc,"el-GR":Jc,"en-US":Qc,"es-ES":ed,"et-EE":td,"fi-FI":nd,"fr-FR":rd,"he-IL":id,"hr-HR":od,"hu-HU":ld,"it-IT":ad,"ja-JP":sd,"ko-KR":ud,"lt-LT":cd,"lv-LV":dd,"nb-NO":fd,"nl-NL":hd,"pl-PL":pd,"pt-BR":gd,"pt-PT":vd,"ro-RO":md,"ru-RU":yd,"sk-SK":bd,"sl-SI":Sd,"sr-SP":Cd,"sv-SE":wd,"tr-TR":xd,"uk-UA":Ed,"zh-CN":$d,"zh-TW":Pd};function r5(t){return t&&t.__esModule?t.default:t}function cs(t){let{onDismiss:e,...n}=t,r=Ac(r5(Dd),"@react-aria/overlays"),i=wi(n,r.format("dismiss")),o=()=>{e&&e()};return c.createElement(Eg,null,c.createElement("button",{...i,tabIndex:-1,onClick:o,style:{width:1,height:1}}))}let Vn=new WeakMap,ke=[];function i5(t,e=document.body){let n=new Set(t),r=new Set,i=s=>{for(let p of s.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(p);let u=p=>{if(n.has(p)||p.parentElement&&r.has(p.parentElement)&&p.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let g of n)if(p.contains(g))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},d=document.createTreeWalker(s,NodeFilter.SHOW_ELEMENT,{acceptNode:u}),f=u(s);if(f===NodeFilter.FILTER_ACCEPT&&o(s),f!==NodeFilter.FILTER_REJECT){let p=d.nextNode();for(;p!=null;)o(p),p=d.nextNode()}},o=s=>{var u;let d=(u=Vn.get(s))!==null&&u!==void 0?u:0;s.getAttribute("aria-hidden")==="true"&&d===0||(d===0&&s.setAttribute("aria-hidden","true"),r.add(s),Vn.set(s,d+1))};ke.length&&ke[ke.length-1].disconnect(),i(e);let l=new MutationObserver(s=>{for(let u of s)if(!(u.type!=="childList"||u.addedNodes.length===0)&&![...n,...r].some(d=>d.contains(u.target))){for(let d of u.removedNodes)d instanceof Element&&(n.delete(d),r.delete(d));for(let d of u.addedNodes)(d instanceof HTMLElement||d instanceof SVGElement)&&(d.dataset.liveAnnouncer==="true"||d.dataset.reactAriaTopLayer==="true")?n.add(d):d instanceof Element&&i(d)}});l.observe(e,{childList:!0,subtree:!0});let a={visibleNodes:n,hiddenNodes:r,observe(){l.observe(e,{childList:!0,subtree:!0})},disconnect(){l.disconnect()}};return ke.push(a),()=>{l.disconnect();for(let s of r){let u=Vn.get(s);u!=null&&(u===1?(s.removeAttribute("aria-hidden"),Vn.delete(s)):Vn.set(s,u-1))}a===ke[ke.length-1]?(ke.pop(),ke.length&&ke[ke.length-1].observe()):ke.splice(ke.indexOf(a),1)}}function o5(t){let e=ke[ke.length-1];if(e&&!e.visibleNodes.has(t))return e.visibleNodes.add(t),()=>{e.visibleNodes.delete(t)}}function l5(t,e){let{triggerRef:n,popoverRef:r,groupRef:i,isNonModal:o,isKeyboardDismissDisabled:l,shouldCloseOnInteractOutside:a,...s}=t,u=s.trigger==="SubmenuTrigger",{overlayProps:d,underlayProps:f}=qg({isOpen:e.isOpen,onClose:e.close,shouldCloseOnBlur:!0,isDismissable:!o||u,isKeyboardDismissDisabled:l,shouldCloseOnInteractOutside:a},i??r),{overlayProps:p,arrowProps:g,placement:y}=Ng({...s,targetRef:n,overlayRef:r,isOpen:e.isOpen,onClose:o&&!u?e.close:null});return Xg({isDisabled:o||!e.isOpen}),ue(()=>{if(e.isOpen&&r.current){var h,v;return o?o5((h=i==null?void 0:i.current)!==null&&h!==void 0?h:r.current):i5([(v=i==null?void 0:i.current)!==null&&v!==void 0?v:r.current])}},[o,e.isOpen,r,i]),{popoverProps:le(d,p),arrowProps:g,underlayProps:f,placement:y}}const a5=c.createContext(null);function ds(t){let e=Dl(),{portalContainer:n=e?null:document.body,isExiting:r}=t,[i,o]=c.useState(!1),l=c.useMemo(()=>({contain:i,setContain:o}),[i,o]),{getContainer:a}=n5();if(!t.portalContainer&&a&&(n=a()),!n)return null;let s=t.children;return t.disableFocusManagement||(s=c.createElement(Gl,{restoreFocus:!0,contain:(t.shouldContainFocus||i)&&!r},s)),s=c.createElement(a5.Provider,{value:l},c.createElement(Qp,null,s)),Wt.createPortal(s,n)}const Yl=new WeakMap;function s5(t){return typeof t=="string"?t.replace(/\s*/g,""):""+t}function u5(t,e){let n=Yl.get(t);if(!n)throw new Error("Unknown list");return`${n.id}-option-${s5(e)}`}function nl(t){return Uh()?t.altKey:t.ctrlKey}function Kr(t,e){var n,r;let i=`[data-key="${CSS.escape(String(e))}"]`,o=(n=t.current)===null||n===void 0?void 0:n.dataset.collection;return o&&(i=`[data-collection="${CSS.escape(o)}"]${i}`),(r=t.current)===null||r===void 0?void 0:r.querySelector(i)}const Td=new WeakMap;function c5(t){let e=Ie();return Td.set(t,e),e}function d5(t){return Td.get(t)}const f5=1e3;function _d(t){let{keyboardDelegate:e,selectionManager:n,onTypeSelect:r}=t,i=c.useRef({search:"",timeout:void 0}).current,o=l=>{let a=h5(l.key);if(!(!a||l.ctrlKey||l.metaKey||!l.currentTarget.contains(l.target))){if(a===" "&&i.search.trim().length>0&&(l.preventDefault(),"continuePropagation"in l||l.stopPropagation()),i.search+=a,e.getKeyForSearch!=null){let s=e.getKeyForSearch(i.search,n.focusedKey);s==null&&(s=e.getKeyForSearch(i.search)),s!=null&&(n.setFocusedKey(s),r&&r(s))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},f5)}};return{typeSelectProps:{onKeyDownCapture:e.getKeyForSearch?o:void 0}}}function h5(t){return t.length===1||!/^[A-Z]/i.test(t)?t:""}function Id(t){let{selectionManager:e,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:o=!1,disallowEmptySelection:l=!1,disallowSelectAll:a=!1,escapeKeyBehavior:s="clearSelection",selectOnFocus:u=e.selectionBehavior==="replace",disallowTypeAhead:d=!1,shouldUseVirtualFocus:f,allowsTabNavigation:p=!1,isVirtualized:g,scrollRef:y=r,linkBehavior:h="action"}=t,{direction:v}=qt(),m=Si(),S=x=>{var N;if(x.altKey&&x.key==="Tab"&&x.preventDefault(),!(!((N=r.current)===null||N===void 0)&&N.contains(x.target)))return;const I=(q,fe)=>{if(q!=null){if(e.isLink(q)&&h==="selection"&&u&&!nl(x)){Wt.flushSync(()=>{e.setFocusedKey(q,fe)});let re=Kr(r,q),me=e.getItemProps(q);re&&m.open(re,x,me.href,me.routerOptions);return}if(e.setFocusedKey(q,fe),e.isLink(q)&&h==="override")return;x.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(q):u&&!nl(x)&&e.replaceSelection(q)}};switch(x.key){case"ArrowDown":if(n.getKeyBelow){var G,H,j;let q=e.focusedKey!=null?(G=n.getKeyBelow)===null||G===void 0?void 0:G.call(n,e.focusedKey):(H=n.getFirstKey)===null||H===void 0?void 0:H.call(n);q==null&&o&&(q=(j=n.getFirstKey)===null||j===void 0?void 0:j.call(n,e.focusedKey)),q!=null&&(x.preventDefault(),I(q))}break;case"ArrowUp":if(n.getKeyAbove){var O,k,F;let q=e.focusedKey!=null?(O=n.getKeyAbove)===null||O===void 0?void 0:O.call(n,e.focusedKey):(k=n.getLastKey)===null||k===void 0?void 0:k.call(n);q==null&&o&&(q=(F=n.getLastKey)===null||F===void 0?void 0:F.call(n,e.focusedKey)),q!=null&&(x.preventDefault(),I(q))}break;case"ArrowLeft":if(n.getKeyLeftOf){var K,V,W;let q=e.focusedKey!=null?(K=n.getKeyLeftOf)===null||K===void 0?void 0:K.call(n,e.focusedKey):null;q==null&&o&&(q=v==="rtl"?(V=n.getFirstKey)===null||V===void 0?void 0:V.call(n,e.focusedKey):(W=n.getLastKey)===null||W===void 0?void 0:W.call(n,e.focusedKey)),q!=null&&(x.preventDefault(),I(q,v==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var X,Q,oe;let q=e.focusedKey!=null?(X=n.getKeyRightOf)===null||X===void 0?void 0:X.call(n,e.focusedKey):null;q==null&&o&&(q=v==="rtl"?(Q=n.getLastKey)===null||Q===void 0?void 0:Q.call(n,e.focusedKey):(oe=n.getFirstKey)===null||oe===void 0?void 0:oe.call(n,e.focusedKey)),q!=null&&(x.preventDefault(),I(q,v==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(e.focusedKey===null&&x.shiftKey)return;x.preventDefault();let q=n.getFirstKey(e.focusedKey,pn(x));e.setFocusedKey(q),q!=null&&(pn(x)&&x.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(q):u&&e.replaceSelection(q))}break;case"End":if(n.getLastKey){if(e.focusedKey===null&&x.shiftKey)return;x.preventDefault();let q=n.getLastKey(e.focusedKey,pn(x));e.setFocusedKey(q),q!=null&&(pn(x)&&x.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(q):u&&e.replaceSelection(q))}break;case"PageDown":if(n.getKeyPageBelow&&e.focusedKey!=null){let q=n.getKeyPageBelow(e.focusedKey);q!=null&&(x.preventDefault(),I(q))}break;case"PageUp":if(n.getKeyPageAbove&&e.focusedKey!=null){let q=n.getKeyPageAbove(e.focusedKey);q!=null&&(x.preventDefault(),I(q))}break;case"a":pn(x)&&e.selectionMode==="multiple"&&a!==!0&&(x.preventDefault(),e.selectAll());break;case"Escape":s==="clearSelection"&&!l&&e.selectedKeys.size!==0&&(x.stopPropagation(),x.preventDefault(),e.clearSelection());break;case"Tab":if(!p){if(x.shiftKey)r.current.focus();else{let q=it(r.current,{tabbable:!0}),fe,re;do re=q.lastChild(),re&&(fe=re);while(re);fe&&!fe.contains(document.activeElement)&&Ze(fe)}break}}},C=c.useRef({top:0,left:0});br(y,"scroll",g?void 0:()=>{var x,N,I,G;C.current={top:(I=(x=y.current)===null||x===void 0?void 0:x.scrollTop)!==null&&I!==void 0?I:0,left:(G=(N=y.current)===null||N===void 0?void 0:N.scrollLeft)!==null&&G!==void 0?G:0}});let P=x=>{if(e.isFocused){x.currentTarget.contains(x.target)||e.setFocused(!1);return}if(x.currentTarget.contains(x.target)){if(e.setFocused(!0),e.focusedKey==null){var N,I;let j=k=>{k!=null&&(e.setFocusedKey(k),u&&!e.isSelected(k)&&e.replaceSelection(k))},O=x.relatedTarget;var G,H;O&&x.currentTarget.compareDocumentPosition(O)&Node.DOCUMENT_POSITION_FOLLOWING?j((G=e.lastSelectedKey)!==null&&G!==void 0?G:(N=n.getLastKey)===null||N===void 0?void 0:N.call(n)):j((H=e.firstSelectedKey)!==null&&H!==void 0?H:(I=n.getFirstKey)===null||I===void 0?void 0:I.call(n))}else!g&&y.current&&(y.current.scrollTop=C.current.top,y.current.scrollLeft=C.current.left);if(e.focusedKey!=null&&y.current){let j=Kr(r,e.focusedKey);j instanceof HTMLElement&&(!j.contains(document.activeElement)&&!f&&Ze(j),ni()==="keyboard"&&ka(j,{containingElement:r.current}))}}},$=x=>{x.currentTarget.contains(x.relatedTarget)||e.setFocused(!1)},E=c.useRef(!1);br(r,ip,f?x=>{let{detail:N}=x;x.stopPropagation(),e.setFocused(!0),(N==null?void 0:N.focusStrategy)==="first"&&(E.current=!0)}:void 0);let T=be(()=>{var x,N;let I=(N=(x=n.getFirstKey)===null||x===void 0?void 0:x.call(n))!==null&&N!==void 0?N:null;I==null?(Wc(r.current),e.collection.size>0&&(E.current=!1)):(e.setFocusedKey(I),E.current=!1)});Ia(()=>{E.current&&T()},[e.collection,T]);let L=be(()=>{e.collection.size>0&&(E.current=!1)});Ia(()=>{L()},[e.focusedKey,L]),br(r,rp,f?x=>{var N;x.stopPropagation(),e.setFocused(!1),!((N=x.detail)===null||N===void 0)&&N.clearFocusKey&&e.setFocusedKey(null)}:void 0);const z=c.useRef(i),A=c.useRef(!1);c.useEffect(()=>{if(z.current){var x,N;let H=null;var I;i==="first"&&(H=(I=(x=n.getFirstKey)===null||x===void 0?void 0:x.call(n))!==null&&I!==void 0?I:null);var G;i==="last"&&(H=(G=(N=n.getLastKey)===null||N===void 0?void 0:N.call(n))!==null&&G!==void 0?G:null);let j=e.selectedKeys;if(j.size){for(let O of j)if(e.canSelectItem(O)){H=O;break}}e.setFocused(!0),e.setFocusedKey(H),H==null&&!f&&r.current&&_n(r.current),e.collection.size>0&&(z.current=!1,A.current=!0)}});let w=c.useRef(e.focusedKey);c.useEffect(()=>{if(e.isFocused&&e.focusedKey!=null&&(e.focusedKey!==w.current||A.current)&&y.current&&r.current){let x=ni(),N=Kr(r,e.focusedKey);if(!(N instanceof HTMLElement))return;(x==="keyboard"||A.current)&&(vc(y.current,N),x!=="virtual"&&ka(N,{containingElement:r.current}))}!f&&e.isFocused&&e.focusedKey==null&&w.current!=null&&r.current&&_n(r.current),w.current=e.focusedKey,A.current=!1}),br(r,"react-aria-focus-scope-restore",x=>{x.preventDefault(),e.setFocused(!0)});let M={onKeyDown:S,onFocus:P,onBlur:$,onMouseDown(x){y.current===x.target&&x.preventDefault()}},{typeSelectProps:B}=_d({keyboardDelegate:n,selectionManager:e});d||(M=le(B,M));let R;f||(R=e.focusedKey==null?0:-1);let U=c5(e.collection);return{collectionProps:le(M,{tabIndex:R,"data-collection":U})}}function Zl(t){let{id:e,selectionManager:n,key:r,ref:i,shouldSelectOnPressUp:o,shouldUseVirtualFocus:l,focus:a,isDisabled:s,onAction:u,allowsDifferentPressOrigin:d,linkBehavior:f="action"}=t,p=Si();e=Ie(e);let g=I=>{if(I.pointerType==="keyboard"&&nl(I))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(f==="selection"&&i.current){let G=n.getItemProps(r);p.open(i.current,I,G.href,G.routerOptions),n.setSelectedKeys(n.selectedKeys);return}else if(f==="override"||f==="none")return}n.selectionMode==="single"?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):I&&I.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||I&&(pn(I)||I.pointerType==="touch"||I.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};c.useEffect(()=>{r===n.focusedKey&&n.isFocused&&(l?Wc(i.current):a?a():document.activeElement!==i.current&&i.current&&_n(i.current))},[i,r,n.focusedKey,n.childFocusStrategy,n.isFocused,l]),s=s||n.isDisabled(r);let y={};!l&&!s?y={tabIndex:r===n.focusedKey?0:-1,onFocus(I){I.target===i.current&&n.setFocusedKey(r)}}:s&&(y.onMouseDown=I=>{I.preventDefault()});let h=n.isLink(r)&&f==="override",v=n.isLink(r)&&f!=="selection"&&f!=="none",m=!s&&n.canSelectItem(r)&&!h,S=(u||v)&&!s,C=S&&(n.selectionBehavior==="replace"?!m:!m||n.isEmpty),P=S&&m&&n.selectionBehavior==="replace",$=C||P,E=c.useRef(null),T=$&&m,L=c.useRef(!1),z=c.useRef(!1),A=I=>{if(u&&u(),v&&i.current){let G=n.getItemProps(r);p.open(i.current,I,G.href,G.routerOptions)}},w={ref:i};o?(w.onPressStart=I=>{E.current=I.pointerType,L.current=T,I.pointerType==="keyboard"&&(!$||hs())&&g(I)},d?(w.onPressUp=C?void 0:I=>{I.pointerType==="mouse"&&m&&g(I)},w.onPress=C?A:I=>{I.pointerType!=="keyboard"&&I.pointerType!=="mouse"&&m&&g(I)}):w.onPress=I=>{if(C||P&&I.pointerType!=="mouse"){if(I.pointerType==="keyboard"&&!fs())return;A(I)}else I.pointerType!=="keyboard"&&m&&g(I)}):(w.onPressStart=I=>{E.current=I.pointerType,L.current=T,z.current=C,m&&(I.pointerType==="mouse"&&!C||I.pointerType==="keyboard"&&(!S||hs()))&&g(I)},w.onPress=I=>{(I.pointerType==="touch"||I.pointerType==="pen"||I.pointerType==="virtual"||I.pointerType==="keyboard"&&$&&fs()||I.pointerType==="mouse"&&z.current)&&($?A(I):m&&g(I))}),y["data-collection"]=d5(n.collection),y["data-key"]=r,w.preventFocusOnPress=l,l&&(w=le(w,{onPressStart(I){I.pointerType!=="touch"&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(I){I.pointerType==="touch"&&(n.setFocused(!0),n.setFocusedKey(r))}}));let{pressProps:M,isPressed:B}=Pi(w),R=P?I=>{E.current==="mouse"&&(I.stopPropagation(),I.preventDefault(),A(I))}:void 0,{longPressProps:U}=Rc({isDisabled:!T,onLongPress(I){I.pointerType==="touch"&&(g(I),n.setSelectionBehavior("toggle"))}}),x=I=>{E.current==="touch"&&L.current&&I.preventDefault()},N=n.isLink(r)?I=>{Kt.isOpening||I.preventDefault()}:void 0;return{itemProps:le(y,m||C||l?M:{},T?U:{},{onDoubleClick:R,onDragStartCapture:x,onClick:N,id:e},l?{onMouseDown:I=>I.preventDefault()}:void 0),isPressed:B,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:s,allowsSelection:m,hasAction:$}}function fs(){let t=window.event;return(t==null?void 0:t.key)==="Enter"}function hs(){let t=window.event;return(t==null?void 0:t.key)===" "||(t==null?void 0:t.code)==="Space"}class ps{getItemRect(e){let n=this.ref.current;if(!n)return null;let r=e!=null?Kr(this.ref,e):null;if(!r)return null;let i=n.getBoundingClientRect(),o=r.getBoundingClientRect();return{x:o.left-i.left+n.scrollLeft,y:o.top-i.top+n.scrollTop,width:o.width,height:o.height}}getContentSize(){let e=this.ref.current;var n,r;return{width:(n=e==null?void 0:e.scrollWidth)!==null&&n!==void 0?n:0,height:(r=e==null?void 0:e.scrollHeight)!==null&&r!==void 0?r:0}}getVisibleRect(){let e=this.ref.current;var n,r,i,o;return{x:(n=e==null?void 0:e.scrollLeft)!==null&&n!==void 0?n:0,y:(r=e==null?void 0:e.scrollTop)!==null&&r!==void 0?r:0,width:(i=e==null?void 0:e.offsetWidth)!==null&&i!==void 0?i:0,height:(o=e==null?void 0:e.offsetHeight)!==null&&o!==void 0?o:0}}constructor(e){this.ref=e}}class Xl{isDisabled(e){var n;return this.disabledBehavior==="all"&&(((n=e.props)===null||n===void 0?void 0:n.isDisabled)||this.disabledKeys.has(e.key))}findNextNonDisabled(e,n){let r=e;for(;r!=null;){let i=this.collection.getItem(r);if((i==null?void 0:i.type)==="item"&&!this.isDisabled(i))return r;r=n(r)}return null}getNextKey(e){let n=e;return n=this.collection.getKeyAfter(n),this.findNextNonDisabled(n,r=>this.collection.getKeyAfter(r))}getPreviousKey(e){let n=e;return n=this.collection.getKeyBefore(n),this.findNextNonDisabled(n,r=>this.collection.getKeyBefore(r))}findKey(e,n,r){let i=e,o=this.layoutDelegate.getItemRect(i);if(!o||i==null)return null;let l=o;do{if(i=n(i),i==null)break;o=this.layoutDelegate.getItemRect(i)}while(o&&r(l,o)&&i!=null);return i}isSameRow(e,n){return e.y===n.y||e.x!==n.x}isSameColumn(e,n){return e.x===n.x||e.y!==n.y}getKeyBelow(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,n){return n?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){let n=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[n]?(e=this.layoutDelegate[n](e),this.findNextNonDisabled(e,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="rtl"):this.findKey(e,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="rtl"):null}getKeyLeftOf(e){let n=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[n]?(e=this.layoutDelegate[n](e),this.findNextNonDisabled(e,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="ltr"):this.findKey(e,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="ltr"):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,n=>this.collection.getKeyAfter(n))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,n=>this.collection.getKeyBefore(n))}getKeyPageAbove(e){let n=this.ref.current,r=this.layoutDelegate.getItemRect(e);if(!r)return null;if(n&&!or(n))return this.getFirstKey();let i=e;if(this.orientation==="horizontal"){let o=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>o&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let o=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>o&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getFirstKey()}getKeyPageBelow(e){let n=this.ref.current,r=this.layoutDelegate.getItemRect(e);if(!r)return null;if(n&&!or(n))return this.getLastKey();let i=e;if(this.orientation==="horizontal"){let o=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<o&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let o=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<o&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getLastKey()}getKeyForSearch(e,n){if(!this.collator)return null;let r=this.collection,i=n||this.getFirstKey();for(;i!=null;){let o=r.getItem(i);if(!o)return null;let l=o.textValue.slice(0,e.length);if(o.textValue&&this.collator.compare(l,e)===0)return i;i=this.getNextKey(i)}return null}constructor(...e){if(e.length===1){let n=e[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.disabledBehavior=n.disabledBehavior||"all",this.orientation=n.orientation||"vertical",this.direction=n.direction,this.layout=n.layout||"stack",this.layoutDelegate=n.layoutDelegate||new ps(n.ref)}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new ps(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function Od(t){let{selectionManager:e,collection:n,disabledKeys:r,ref:i,keyboardDelegate:o,layoutDelegate:l}=t,a=Wl({usage:"search",sensitivity:"base"}),s=e.disabledBehavior,u=c.useMemo(()=>o||new Xl({collection:n,disabledKeys:r,disabledBehavior:s,ref:i,collator:a,layoutDelegate:l}),[o,l,n,r,i,a,s]),{collectionProps:d}=Id({...t,ref:i,selectionManager:e,keyboardDelegate:u});return{listProps:d}}function p5(t,e,n){let r=Se(t,{labelable:!0}),i=t.selectionBehavior||"toggle",o=t.linkBehavior||(i==="replace"?"action":"override");i==="toggle"&&o==="action"&&(o="override");let{listProps:l}=Od({...t,ref:n,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,linkBehavior:o}),{focusWithinProps:a}=Ti({onFocusWithin:t.onFocus,onBlurWithin:t.onBlur,onFocusWithinChange:t.onFocusChange}),s=Ie(t.id);Yl.set(e,{id:s,shouldUseVirtualFocus:t.shouldUseVirtualFocus,shouldSelectOnPressUp:t.shouldSelectOnPressUp,shouldFocusOnHover:t.shouldFocusOnHover,isVirtualized:t.isVirtualized,onAction:t.onAction,linkBehavior:o});let{labelProps:u,fieldProps:d}=Fc({...t,id:s,labelElementType:"span"});return{labelProps:u,listBoxProps:le(r,a,e.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...le(d,l)})}}function kd(t,e){return typeof e.getChildren=="function"?e.getChildren(t.key):t.childNodes}function g5(t){return v5(t)}function v5(t,e){for(let n of t)return n}function ao(t,e,n){if(e.parentKey===n.parentKey)return e.index-n.index;let r=[...gs(t,e),e],i=[...gs(t,n),n],o=r.slice(0,i.length).findIndex((l,a)=>l!==i[a]);return o!==-1?(e=r[o],n=i[o],e.index-n.index):r.findIndex(l=>l===n)>=0?1:(i.findIndex(l=>l===e)>=0,-1)}function gs(t,e){let n=[],r=e;for(;(r==null?void 0:r.parentKey)!=null;)r=t.getItem(r.parentKey),r&&n.unshift(r);return n}const vs=new WeakMap;function Nd(t){let e=vs.get(t);if(e!=null)return e;let n=0,r=i=>{for(let o of i)o.type==="section"?r(kd(o,t)):n++};return r(t),vs.set(t,n),n}function m5(t,e,n){var r,i;let{key:o}=t,l=Yl.get(e);var a;let s=(a=t.isDisabled)!==null&&a!==void 0?a:e.selectionManager.isDisabled(o);var u;let d=(u=t.isSelected)!==null&&u!==void 0?u:e.selectionManager.isSelected(o);var f;let p=(f=t.shouldSelectOnPressUp)!==null&&f!==void 0?f:l==null?void 0:l.shouldSelectOnPressUp;var g;let y=(g=t.shouldFocusOnHover)!==null&&g!==void 0?g:l==null?void 0:l.shouldFocusOnHover;var h;let v=(h=t.shouldUseVirtualFocus)!==null&&h!==void 0?h:l==null?void 0:l.shouldUseVirtualFocus;var m;let S=(m=t.isVirtualized)!==null&&m!==void 0?m:l==null?void 0:l.isVirtualized,C=Nt(),P=Nt(),$={role:"option","aria-disabled":s||void 0,"aria-selected":e.selectionManager.selectionMode!=="none"?d:void 0};Et()&&Il()||($["aria-label"]=t["aria-label"],$["aria-labelledby"]=C,$["aria-describedby"]=P);let E=e.collection.getItem(o);if(S){let N=Number(E==null?void 0:E.index);$["aria-posinset"]=Number.isNaN(N)?void 0:N+1,$["aria-setsize"]=Nd(e.collection)}let T=l!=null&&l.onAction?()=>{var N;return l==null||(N=l.onAction)===null||N===void 0?void 0:N.call(l,o)}:void 0,L=u5(e,o),{itemProps:z,isPressed:A,isFocused:w,hasAction:M,allowsSelection:B}=Zl({selectionManager:e.selectionManager,key:o,ref:n,shouldSelectOnPressUp:p,allowsDifferentPressOrigin:p&&y,isVirtualized:S,shouldUseVirtualFocus:v,isDisabled:s,onAction:T||!(E==null||(r=E.props)===null||r===void 0)&&r.onAction?At(E==null||(i=E.props)===null||i===void 0?void 0:i.onAction,T):void 0,linkBehavior:l==null?void 0:l.linkBehavior,id:L}),{hoverProps:R}=Mn({isDisabled:s||!y,onHoverStart(){Tn()||(e.selectionManager.setFocused(!0),e.selectionManager.setFocusedKey(o))}}),U=Se(E==null?void 0:E.props);delete U.id;let x=kl(E==null?void 0:E.props);return{optionProps:{...$,...le(U,z,R,x),id:L},labelProps:{id:C},descriptionProps:{id:P},isFocused:w,isFocusVisible:w&&e.selectionManager.isFocused&&Tn(),isSelected:d,isDisabled:s,isPressed:A,allowsSelection:B,hasAction:M}}function y5(t){let{heading:e,"aria-label":n}=t,r=Ie();return{itemProps:{role:"presentation"},headingProps:e?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":e?r:void 0}}}var Rd={};Rd={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var Md={};Md={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var Ld={};Ld={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var Ad={};Ad={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var Kd={};Kd={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var Fd={};Fd={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var jd={};jd={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var Hd={};Hd={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var zd={};zd={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var Vd={};Vd={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var Bd={};Bd={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var Ud={};Ud={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var Wd={};Wd={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var Gd={};Gd={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var qd={};qd={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var Yd={};Yd={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var Zd={};Zd={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var Xd={};Xd={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var Jd={};Jd={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var Qd={};Qd={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var ef={};ef={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var tf={};tf={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var nf={};nf={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var rf={};rf={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var of={};of={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var lf={};lf={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var af={};af={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var sf={};sf={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var uf={};uf={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var cf={};cf={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var df={};df={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var ff={};ff={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var hf={};hf={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var pf={};pf={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var gf={};gf={"ar-AE":Rd,"bg-BG":Md,"cs-CZ":Ld,"da-DK":Ad,"de-DE":Kd,"el-GR":Fd,"en-US":jd,"es-ES":Hd,"et-EE":zd,"fi-FI":Vd,"fr-FR":Bd,"he-IL":Ud,"hr-HR":Wd,"hu-HU":Gd,"it-IT":qd,"ja-JP":Yd,"ko-KR":Zd,"lt-LT":Xd,"lv-LV":Jd,"nb-NO":Qd,"nl-NL":ef,"pl-PL":tf,"pt-BR":nf,"pt-PT":rf,"ro-RO":of,"ru-RU":lf,"sk-SK":af,"sl-SI":sf,"sr-SP":uf,"sv-SE":cf,"tr-TR":df,"uk-UA":ff,"zh-CN":hf,"zh-TW":pf};function b5(t){return t&&t.__esModule?t.default:t}function S5(t,e,n){let{type:r="menu",isDisabled:i,trigger:o="press"}=t,l=Ie(),{triggerProps:a,overlayProps:s}=Yg({type:r},e,n),u=g=>{if(!i&&!(o==="longPress"&&!g.altKey)&&n&&n.current)switch(g.key){case"Enter":case" ":if(o==="longPress")return;case"ArrowDown":"continuePropagation"in g||g.stopPropagation(),g.preventDefault(),e.toggle("first");break;case"ArrowUp":"continuePropagation"in g||g.stopPropagation(),g.preventDefault(),e.toggle("last");break;default:"continuePropagation"in g&&g.continuePropagation()}},d=Ac(b5(gf),"@react-aria/menu"),{longPressProps:f}=Rc({isDisabled:i||o!=="longPress",accessibilityDescription:d.format("longPressMessage"),onLongPressStart(){e.close()},onLongPress(){e.open("first")}}),p={preventFocusOnPress:!0,onPressStart(g){g.pointerType!=="touch"&&g.pointerType!=="keyboard"&&!i&&(Ze(g.target),e.open(g.pointerType==="virtual"?"first":null))},onPress(g){g.pointerType==="touch"&&!i&&(Ze(g.target),e.toggle())}};return delete a.onPress,{menuTriggerProps:{...a,...o==="press"?p:f,id:l,onKeyDown:u},menuProps:{...s,"aria-labelledby":l,autoFocus:e.focusStrategy||!0,onClose:e.close}}}const vf=new WeakMap;function C5(t,e,n){let{shouldFocusWrap:r=!0,onKeyDown:i,onKeyUp:o,...l}=t;!t["aria-label"]&&!t["aria-labelledby"]&&process.env.NODE_ENV!=="production"&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let a=Se(t,{labelable:!0}),{listProps:s}=Od({...l,ref:n,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,shouldFocusWrap:r,linkBehavior:"override"});return vf.set(e,{onClose:t.onClose,onAction:t.onAction,shouldUseVirtualFocus:t.shouldUseVirtualFocus}),{menuProps:le(a,{onKeyDown:i,onKeyUp:o},{role:"menu",...s,onKeyDown:u=>{var d;(u.key!=="Escape"||t.shouldUseVirtualFocus)&&((d=s.onKeyDown)===null||d===void 0||d.call(s,u))}})}}function w5(t,e,n){let{id:r,key:i,closeOnSelect:o,isVirtualized:l,"aria-haspopup":a,onPressStart:s,onPressUp:u,onPress:d,onPressChange:f,onPressEnd:p,onHoverStart:g,onHoverChange:y,onHoverEnd:h,onKeyDown:v,onKeyUp:m,onFocus:S,onFocusChange:C,onBlur:P,selectionManager:$=e.selectionManager}=t,E=!!a,T=E&&t["aria-expanded"]==="true";var L;let z=(L=t.isDisabled)!==null&&L!==void 0?L:$.isDisabled(i);var A;let w=(A=t.isSelected)!==null&&A!==void 0?A:$.isSelected(i),M=vf.get(e),B=e.collection.getItem(i),R=t.onClose||M.onClose,U=Si(),x=ie=>{var Je;if(!E){if(!(B==null||(Je=B.props)===null||Je===void 0)&&Je.onAction?B.props.onAction():t.onAction&&t.onAction(i),M.onAction){let gt=M.onAction;gt(i)}ie.target instanceof HTMLAnchorElement&&B&&U.open(ie.target,ie,B.props.href,B.props.routerOptions)}},N="menuitem";E||($.selectionMode==="single"?N="menuitemradio":$.selectionMode==="multiple"&&(N="menuitemcheckbox"));let I=Nt(),G=Nt(),H=Nt(),j={id:r,"aria-disabled":z||void 0,role:N,"aria-label":t["aria-label"],"aria-labelledby":I,"aria-describedby":[G,H].filter(Boolean).join(" ")||void 0,"aria-controls":t["aria-controls"],"aria-haspopup":a,"aria-expanded":t["aria-expanded"]};$.selectionMode!=="none"&&!E&&(j["aria-checked"]=w),l&&(j["aria-posinset"]=B==null?void 0:B.index,j["aria-setsize"]=Nd(e.collection));let O=ie=>{ie.pointerType==="keyboard"&&x(ie),s==null||s(ie)},k=()=>{!E&&R&&(o??($.selectionMode!=="multiple"||$.isLink(i)))&&R()},F=ie=>{ie.pointerType==="mouse"&&(x(ie),k()),u==null||u(ie)},K=ie=>{ie.pointerType!=="keyboard"&&ie.pointerType!=="mouse"&&(x(ie),k()),d==null||d(ie)},{itemProps:V,isFocused:W}=Zl({id:r,selectionManager:$,key:i,ref:n,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none",shouldUseVirtualFocus:M.shouldUseVirtualFocus}),{pressProps:X,isPressed:Q}=Pi({onPressStart:O,onPress:K,onPressUp:F,onPressChange:f,onPressEnd:p,isDisabled:z}),{hoverProps:oe}=Mn({isDisabled:z,onHoverStart(ie){!Tn()&&!(T&&a)&&($.setFocused(!0),$.setFocusedKey(i)),g==null||g(ie)},onHoverChange:y,onHoverEnd:h}),{keyboardProps:q}=kc({onKeyDown:ie=>{if(ie.repeat){ie.continuePropagation();return}switch(ie.key){case" ":!z&&$.selectionMode==="none"&&!E&&o!==!1&&R&&R();break;case"Enter":!z&&o!==!1&&!E&&R&&R();break;default:E||ie.continuePropagation(),v==null||v(ie);break}},onKeyUp:m}),{focusProps:fe}=Ul({onBlur:P,onFocus:S,onFocusChange:C}),re=Se(B==null?void 0:B.props);delete re.id;let me=kl(B==null?void 0:B.props);return{menuItemProps:{...j,...le(re,me,E?{onFocus:V.onFocus,"data-collection":V["data-collection"],"data-key":V["data-key"]}:V,X,oe,q,fe,M.shouldUseVirtualFocus||E?{onMouseDown:ie=>ie.preventDefault()}:void 0),tabIndex:V.tabIndex!=null&&T&&!M.shouldUseVirtualFocus?-1:V.tabIndex},labelProps:{id:I},descriptionProps:{id:G},keyboardShortcutProps:{id:H},isFocused:W,isFocusVisible:W&&$.isFocused&&Tn()&&!T,isSelected:w,isPressed:Q,isDisabled:z}}function x5(t){let{heading:e,"aria-label":n}=t,r=Ie();return{itemProps:{role:"presentation"},headingProps:e?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":e?r:void 0}}}const mf=new WeakMap;function E5(t,e,n){let{keyboardDelegate:r,isDisabled:i,isRequired:o,name:l,validationBehavior:a="aria"}=t,s=Wl({usage:"search",sensitivity:"base"}),u=c.useMemo(()=>r||new Xl(e.collection,e.disabledKeys,n,s),[r,e.collection,e.disabledKeys,s,n]),{menuTriggerProps:d,menuProps:f}=S5({isDisabled:i,type:"listbox"},e,n),p=L=>{switch(L.key){case"ArrowLeft":{var z,A;L.preventDefault();let B=e.selectedKey!=null?(z=u.getKeyAbove)===null||z===void 0?void 0:z.call(u,e.selectedKey):(A=u.getFirstKey)===null||A===void 0?void 0:A.call(u);B&&e.setSelectedKey(B);break}case"ArrowRight":{var w,M;L.preventDefault();let B=e.selectedKey!=null?(w=u.getKeyBelow)===null||w===void 0?void 0:w.call(u,e.selectedKey):(M=u.getFirstKey)===null||M===void 0?void 0:M.call(u);B&&e.setSelectedKey(B);break}}},{typeSelectProps:g}=_d({keyboardDelegate:u,selectionManager:e.selectionManager,onTypeSelect(L){e.setSelectedKey(L)}}),{isInvalid:y,validationErrors:h,validationDetails:v}=e.displayValidation,{labelProps:m,fieldProps:S,descriptionProps:C,errorMessageProps:P}=xg({...t,labelElementType:"span",isInvalid:y,errorMessage:t.errorMessage||h});g.onKeyDown=g.onKeyDownCapture,delete g.onKeyDownCapture;let $=Se(t,{labelable:!0}),E=le(g,d,S),T=Ie();return mf.set(e,{isDisabled:i,isRequired:o,name:l,validationBehavior:a}),{labelProps:{...m,onClick:()=>{if(!t.isDisabled){var L;(L=n.current)===null||L===void 0||L.focus(),Oc("keyboard")}}},triggerProps:le($,{...E,isDisabled:i,onKeyDown:At(E.onKeyDown,p,t.onKeyDown),onKeyUp:t.onKeyUp,"aria-labelledby":[T,E["aria-labelledby"],E["aria-label"]&&!E["aria-labelledby"]?E.id:null].filter(Boolean).join(" "),onFocus(L){e.isFocused||(t.onFocus&&t.onFocus(L),t.onFocusChange&&t.onFocusChange(!0),e.setFocused(!0))},onBlur(L){e.isOpen||(t.onBlur&&t.onBlur(L),t.onFocusChange&&t.onFocusChange(!1),e.setFocused(!1))}}),valueProps:{id:T},menuProps:{...f,autoFocus:e.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,linkBehavior:"selection",onBlur:L=>{L.currentTarget.contains(L.relatedTarget)||(t.onBlur&&t.onBlur(L),t.onFocusChange&&t.onFocusChange(!1),e.setFocused(!1))},"aria-labelledby":[S["aria-labelledby"],E["aria-label"]&&!S["aria-labelledby"]?E.id:null].filter(Boolean).join(" ")},descriptionProps:C,errorMessageProps:P,isInvalid:y,validationErrors:h,validationDetails:v}}function $5(t,e,n){let r=mf.get(e)||{},{autoComplete:i,name:o=r.name,isDisabled:l=r.isDisabled}=t,{validationBehavior:a,isRequired:s}=r,{visuallyHiddenProps:u}=jc();tp(t.selectRef,e.selectedKey,e.setSelectedKey),bg({validationBehavior:a,focus:()=>{var f;return(f=n.current)===null||f===void 0?void 0:f.focus()}},e,t.selectRef);var d;return{containerProps:{...u,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{style:{display:"none"}},selectProps:{tabIndex:-1,autoComplete:i,disabled:l,required:a==="native"&&s,name:o,value:(d=e.selectedKey)!==null&&d!==void 0?d:void 0,onChange:f=>e.setSelectedKey(f.target.value)}}}function P5(t){let{state:e,triggerRef:n,label:r,name:i,isDisabled:o}=t,l=c.useRef(null),{containerProps:a,selectProps:s}=$5({...t,selectRef:l},e,n);var u;return e.collection.size<=300?c.createElement("div",{...a,"data-testid":"hidden-select-container"},c.createElement("label",null,r,c.createElement("select",{...s,ref:l},c.createElement("option",null),[...e.collection.getKeys()].map(d=>{let f=e.collection.getItem(d);if(f&&f.type==="item")return c.createElement("option",{key:f.key,value:f.key},f.textValue)})))):i?c.createElement("input",{type:"hidden",autoComplete:s.autoComplete,name:i,disabled:o,value:(u=e.selectedKey)!==null&&u!==void 0?u:""}):null}function D5(t){let e=Se(t,{labelable:!0}),n;return t.orientation==="vertical"&&(n="vertical"),t.elementType!=="hr"?{separatorProps:{...e,role:"separator","aria-orientation":n}}:{separatorProps:e}}const yf=new WeakMap;function li(t,e,n){return t?(typeof e=="string"&&(e=e.replace(/\s+/g,"")),`${yf.get(t)}-${n}-${e}`):""}function T5(t,e,n){let{key:r,isDisabled:i,shouldSelectOnPressUp:o}=t,{selectionManager:l,selectedKey:a}=e,s=r===a,u=i||e.isDisabled||e.selectionManager.isDisabled(r),{itemProps:d,isPressed:f}=Zl({selectionManager:l,key:r,ref:n,isDisabled:u,shouldSelectOnPressUp:o,linkBehavior:"selection"}),p=li(e,r,"tab"),g=li(e,r,"tabpanel"),{tabIndex:y}=d,h=e.collection.getItem(r),v=Se(h==null?void 0:h.props,{labelable:!0});delete v.id;let m=kl(h==null?void 0:h.props),{focusableProps:S}=Nc({isDisabled:u},n);return{tabProps:le(v,S,m,d,{id:p,"aria-selected":s,"aria-disabled":u||void 0,"aria-controls":s?g:void 0,tabIndex:u?void 0:y,role:"tab"}),isSelected:s,isDisabled:u,isPressed:f}}function _5(t,e,n){let r=Bg(n)?void 0:0;var i;const o=li(e,(i=t.id)!==null&&i!==void 0?i:e==null?void 0:e.selectedKey,"tabpanel"),l=wi({...t,id:o,"aria-labelledby":li(e,e==null?void 0:e.selectedKey,"tab")});return{tabPanelProps:le(l,{tabIndex:r,role:"tabpanel","aria-describedby":t["aria-describedby"],"aria-details":t["aria-details"]})}}class I5{getKeyLeftOf(e){return this.flipDirection?this.getNextKey(e):this.getPreviousKey(e)}getKeyRightOf(e){return this.flipDirection?this.getPreviousKey(e):this.getNextKey(e)}isDisabled(e){var n,r;return this.disabledKeys.has(e)||!!(!((r=this.collection.getItem(e))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled)}getFirstKey(){let e=this.collection.getFirstKey();return e!=null&&this.isDisabled(e)&&(e=this.getNextKey(e)),e}getLastKey(){let e=this.collection.getLastKey();return e!=null&&this.isDisabled(e)&&(e=this.getPreviousKey(e)),e}getKeyAbove(e){return this.tabDirection?null:this.getPreviousKey(e)}getKeyBelow(e){return this.tabDirection?null:this.getNextKey(e)}getNextKey(e){let n=e;do n=this.collection.getKeyAfter(n),n==null&&(n=this.collection.getFirstKey());while(n!=null&&this.isDisabled(n));return n}getPreviousKey(e){let n=e;do n=this.collection.getKeyBefore(n),n==null&&(n=this.collection.getLastKey());while(n!=null&&this.isDisabled(n));return n}constructor(e,n,r,i=new Set){this.collection=e,this.flipDirection=n==="rtl"&&r==="horizontal",this.disabledKeys=i,this.tabDirection=r==="horizontal"}}function O5(t,e,n){let{orientation:r="horizontal",keyboardActivation:i="automatic"}=t,{collection:o,selectionManager:l,disabledKeys:a}=e,{direction:s}=qt(),u=c.useMemo(()=>new I5(o,s,r,a),[o,a,r,s]),{collectionProps:d}=Id({ref:n,selectionManager:l,keyboardDelegate:u,selectOnFocus:i==="automatic",disallowEmptySelection:!0,scrollRef:n,linkBehavior:"selection"}),f=Ie();yf.set(e,f);let p=wi({...t,id:f});return{tabListProps:{...le(d,p),role:"tablist","aria-orientation":r,tabIndex:void 0}}}const bf=c.createContext({}),k5=Kl(function(e,n){[e,n]=pt(e,n,bf);let{elementType:r="label",...i}=e;return c.createElement(r,{className:"react-aria-Label",...i,ref:n})}),N5=c.createContext(null),R5=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),Sf=c.createContext({}),M5=Kl(function(e,n){[e,n]=pt(e,n,Sf),e=L5(e);let r=e,{isPending:i}=r,{buttonProps:o,isPressed:l}=mg(e,n),{focusProps:a,isFocused:s,isFocusVisible:u}=Ln(e),{hoverProps:d,isHovered:f}=Mn({...e,isDisabled:e.isDisabled||i}),p={isHovered:f,isPressed:(r.isPressed||l)&&!i,isFocused:s,isFocusVisible:u,isDisabled:e.isDisabled||!1,isPending:i??!1},g=Le({...e,values:p,defaultClassName:"react-aria-Button"}),y=Ie(o.id),h=Ie(),v=o["aria-labelledby"];i&&(v?v=`${v} ${h}`:o["aria-label"]&&(v=`${y} ${h}`));let m=c.useRef(i);return c.useEffect(()=>{let S={"aria-labelledby":v||y};(!m.current&&s&&i||m.current&&s&&!i)&&Ja(S,"assertive"),m.current=i},[i,s,v,y]),c.createElement("button",{...Se(e,{propNames:R5}),...le(o,a,d),...g,type:o.type==="submit"&&i?"button":o.type,id:y,ref:n,"aria-labelledby":v,slot:e.slot||void 0,"aria-disabled":i?"true":o["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":p.isPressed||void 0,"data-hovered":f||void 0,"data-focused":s||void 0,"data-pending":i||void 0,"data-focus-visible":u||void 0},c.createElement(N5.Provider,{value:{id:h}},g.children))});function L5(t){return t.isPending&&(t.onPress=void 0,t.onPressStart=void 0,t.onPressEnd=void 0,t.onPressChange=void 0,t.onPressUp=void 0,t.onKeyDown=void 0,t.onKeyUp=void 0,t.onClick=void 0,t.href=void 0),t}const Jl=c.createContext({}),A5=c.createContext(null);function Ii(t,e,n){let[r,i]=c.useState(t||e),o=c.useRef(t!==void 0),l=t!==void 0;c.useEffect(()=>{let u=o.current;u!==l&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${u?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}.`),o.current=l},[l]);let a=l?t:r,s=c.useCallback((u,...d)=>{let f=(p,...g)=>{n&&(Object.is(a,p)||n(p,...g)),l||(a=p)};typeof u=="function"?(process.env.NODE_ENV!=="production"&&console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((g,...y)=>{let h=u(l?a:g,...y);return f(h,...d),l?g:h})):(l||i(u),f(u,...d))},[l,a,n]);return[a,s]}const Cf={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},wf={...Cf,customError:!0,valid:!1},Bn={isInvalid:!1,validationDetails:Cf,validationErrors:[]},K5=c.createContext({}),ms="__formValidationState"+Date.now();function F5(t){if(t[ms]){let{realtimeValidation:e,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}=t[ms];return{realtimeValidation:e,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}}return j5(t)}function j5(t){let{isInvalid:e,validationState:n,name:r,value:i,builtinValidation:o,validate:l,validationBehavior:a="aria"}=t;n&&(e||(e=n==="invalid"));let s=e!==void 0?{isInvalid:e,validationErrors:[],validationDetails:wf}:null,u=c.useMemo(()=>{if(!l||i==null)return null;let A=H5(l,i);return ys(A)},[l,i]);o!=null&&o.validationDetails.valid&&(o=void 0);let d=c.useContext(K5),f=c.useMemo(()=>r?Array.isArray(r)?r.flatMap(A=>rl(d[A])):rl(d[r]):[],[d,r]),[p,g]=c.useState(d),[y,h]=c.useState(!1);d!==p&&(g(d),h(!1));let v=c.useMemo(()=>ys(y?[]:f),[y,f]),m=c.useRef(Bn),[S,C]=c.useState(Bn),P=c.useRef(Bn),$=()=>{if(!E)return;T(!1);let A=u||o||m.current;so(A,P.current)||(P.current=A,C(A))},[E,T]=c.useState(!1);return c.useEffect($),{realtimeValidation:s||v||u||o||Bn,displayValidation:a==="native"?s||v||S:s||v||u||o||S,updateValidation(A){a==="aria"&&!so(S,A)?C(A):m.current=A},resetValidation(){let A=Bn;so(A,P.current)||(P.current=A,C(A)),a==="native"&&T(!1),h(!0)},commitValidation(){a==="native"&&T(!0),h(!0)}}}function rl(t){return t?Array.isArray(t)?t:[t]:[]}function H5(t,e){if(typeof t=="function"){let n=t(e);if(n&&typeof n!="boolean")return rl(n)}return[]}function ys(t){return t.length?{isInvalid:!0,validationErrors:t,validationDetails:wf}:null}function so(t,e){return t===e?!0:!!t&&!!e&&t.isInvalid===e.isInvalid&&t.validationErrors.length===e.validationErrors.length&&t.validationErrors.every((n,r)=>n===e.validationErrors[r])&&Object.entries(t.validationDetails).every(([n,r])=>e.validationDetails[n]===r)}class z5{build(e,n){return this.context=n,bs(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:n,items:r}=e;if(c.isValidElement(n)&&n.type===c.Fragment)yield*this.iterateCollection({children:n.props.children,items:r});else if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let i=0;for(let o of r)yield*this.getFullNode({value:o,index:i},{renderer:n}),i++}else{let i=[];c.Children.forEach(n,l=>{l&&i.push(l)});let o=0;for(let l of i){let a=this.getFullNode({element:l,index:o},{});for(let s of a)o++,yield s}}}getKey(e,n,r,i){if(e.key!=null)return e.key;if(n.type==="cell"&&n.key!=null)return`${i}${n.key}`;let o=n.value;if(o!=null){var l;let a=(l=o.key)!==null&&l!==void 0?l:o.id;if(a==null)throw new Error("No key found for item");return a}return i?`${i}.${n.index}`:`$.${n.index}`}getChildState(e,n){return{renderer:n.renderer||e.renderer}}*getFullNode(e,n,r,i){if(c.isValidElement(e.element)&&e.element.type===c.Fragment){let v=[];c.Children.forEach(e.element.props.children,S=>{v.push(S)});var o;let m=(o=e.index)!==null&&o!==void 0?o:0;for(const S of v)yield*this.getFullNode({element:S,index:m++},n,r,i);return}let l=e.element;if(!l&&e.value&&n&&n.renderer){let v=this.cache.get(e.value);if(v&&(!v.shouldInvalidate||!v.shouldInvalidate(this.context))){v.index=e.index,v.parentKey=i?i.key:null,yield v;return}l=n.renderer(e.value)}if(c.isValidElement(l)){let v=l.type;if(typeof v!="function"&&typeof v.getCollectionNode!="function"){let P=l.type;throw new Error(`Unknown element <${P}> in collection.`)}let m=v.getCollectionNode(l.props,this.context);var a;let S=(a=e.index)!==null&&a!==void 0?a:0,C=m.next();for(;!C.done&&C.value;){let P=C.value;e.index=S;var s;let $=(s=P.key)!==null&&s!==void 0?s:null;$==null&&($=P.element?null:this.getKey(l,e,n,r));let T=[...this.getFullNode({...P,key:$,index:S,wrapper:V5(e.wrapper,P.wrapper)},this.getChildState(n,P),r?`${r}${l.key}`:l.key,i)];for(let L of T){var u,d;L.value=(d=(u=P.value)!==null&&u!==void 0?u:e.value)!==null&&d!==void 0?d:null,L.value&&this.cache.set(L.value,L);var f;if(e.type&&L.type!==e.type)throw new Error(`Unsupported type <${uo(L.type)}> in <${uo((f=i==null?void 0:i.type)!==null&&f!==void 0?f:"unknown parent type")}>. Only <${uo(e.type)}> is supported.`);S++,yield L}C=m.next(T)}return}if(e.key==null||e.type==null)return;let p=this;var g,y;let h={type:e.type,props:e.props,key:e.key,parentKey:i?i.key:null,value:(g=e.value)!==null&&g!==void 0?g:null,level:i?i.level+1:0,index:e.index,rendered:e.rendered,textValue:(y=e.textValue)!==null&&y!==void 0?y:"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:bs(function*(){if(!e.hasChildNodes||!e.childNodes)return;let v=0;for(let m of e.childNodes()){m.key!=null&&(m.key=`${h.key}${m.key}`);let S=p.getFullNode({...m,index:v},p.getChildState(n,m),h.key,h);for(let C of S)v++,yield C}})};yield h}constructor(){this.cache=new WeakMap}}function bs(t){let e=[],n=null;return{*[Symbol.iterator](){for(let r of e)yield r;n||(n=t());for(let r of n)e.push(r),yield r}}}function V5(t,e){if(t&&e)return n=>t(e(n));if(t)return t;if(e)return e}function uo(t){return t[0].toUpperCase()+t.slice(1)}function xf(t,e,n){let r=c.useMemo(()=>new z5,[]),{children:i,items:o,collection:l}=t;return c.useMemo(()=>{if(l)return l;let s=r.build({children:i,items:o},n);return e(s)},[r,i,o,l,n,e])}function B5(t,e){return typeof e.getChildren=="function"?e.getChildren(t.key):t.childNodes}function U5(t){return W5(t)}function W5(t,e){for(let n of t)return n}function co(t,e,n){if(e.parentKey===n.parentKey)return e.index-n.index;let r=[...Ss(t,e),e],i=[...Ss(t,n),n],o=r.slice(0,i.length).findIndex((l,a)=>l!==i[a]);return o!==-1?(e=r[o],n=i[o],e.index-n.index):r.findIndex(l=>l===n)>=0?1:(i.findIndex(l=>l===e)>=0,-1)}function Ss(t,e){let n=[],r=e;for(;(r==null?void 0:r.parentKey)!=null;)r=t.getItem(r.parentKey),r&&n.unshift(r);return n}class Cs{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let n=this.keyMap.get(e);var r;return n&&(r=n.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(e){let n=this.keyMap.get(e);var r;return n&&(r=n.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var n;return(n=this.keyMap.get(e))!==null&&n!==void 0?n:null}at(e){const n=[...this.getKeys()];return this.getItem(n[e])}getChildren(e){let n=this.keyMap.get(e);return(n==null?void 0:n.childNodes)||[]}constructor(e){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let n=l=>{if(this.keyMap.set(l.key,l),l.childNodes&&l.type==="section")for(let a of l.childNodes)n(a)};for(let l of e)n(l);let r=null,i=0;for(let[l,a]of this.keyMap)r?(r.nextKey=l,a.prevKey=r.key):(this.firstKey=l,a.prevKey=void 0),a.type==="item"&&(a.index=i++),r=a,r.nextKey=void 0;var o;this.lastKey=(o=r==null?void 0:r.key)!==null&&o!==void 0?o:null}}let st=class Ef extends Set{constructor(e,n,r){super(e),e instanceof Ef?(this.anchorKey=n??e.anchorKey,this.currentKey=r??e.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}};function G5(t,e){if(t.size!==e.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function $f(t){let{selectionMode:e="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:o="all"}=t,l=c.useRef(!1),[,a]=c.useState(!1),s=c.useRef(null),u=c.useRef(null),[,d]=c.useState(null),f=c.useMemo(()=>ws(t.selectedKeys),[t.selectedKeys]),p=c.useMemo(()=>ws(t.defaultSelectedKeys,new st),[t.defaultSelectedKeys]),[g,y]=Ii(f,p,t.onSelectionChange),h=c.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),[v,m]=c.useState(i);i==="replace"&&v==="toggle"&&typeof g=="object"&&g.size===0&&m("replace");let S=c.useRef(i);return c.useEffect(()=>{i!==S.current&&(m(i),S.current=i)},[i]),{selectionMode:e,disallowEmptySelection:n,selectionBehavior:v,setSelectionBehavior:m,get isFocused(){return l.current},setFocused(C){l.current=C,a(C)},get focusedKey(){return s.current},get childFocusStrategy(){return u.current},setFocusedKey(C,P="first"){s.current=C,u.current=P,d(C)},selectedKeys:g,setSelectedKeys(C){(r||!G5(C,g))&&y(C)},disabledKeys:h,disabledBehavior:o}}function ws(t,e){return t?t==="all"?"all":new st(t):e}let Pf=class Df{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,n){(e==null||this.collection.getItem(e))&&this.state.setFocusedKey(e,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if(this.state.selectionMode==="none")return!1;let n=this.getKey(e);return n==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(n):this.state.selectedKeys.has(n)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let e=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=e.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!e||i&&co(this.collection,i,e)<0)&&(e=i)}var n;return(n=e==null?void 0:e.key)!==null&&n!==void 0?n:null}get lastSelectedKey(){let e=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!e||i&&co(this.collection,i,e)>0)&&(e=i)}var n;return(n=e==null?void 0:e.key)!==null&&n!==void 0?n:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(e);return}let n=this.getKey(e);if(n==null)return;let r;if(this.state.selectedKeys==="all")r=new st([n],n,n);else{let l=this.state.selectedKeys;var i;let a=(i=l.anchorKey)!==null&&i!==void 0?i:n;r=new st(l,a,n);var o;for(let s of this.getKeyRange(a,(o=l.currentKey)!==null&&o!==void 0?o:n))r.delete(s);for(let s of this.getKeyRange(n,a))this.canSelectItem(s)&&r.add(s)}this.state.setSelectedKeys(r)}getKeyRange(e,n){let r=this.collection.getItem(e),i=this.collection.getItem(n);return r&&i?co(this.collection,r,i)<=0?this.getKeyRangeInternal(e,n):this.getKeyRangeInternal(n,e):[]}getKeyRangeInternal(e,n){var r;if(!((r=this.layoutDelegate)===null||r===void 0)&&r.getKeyRange)return this.layoutDelegate.getKeyRange(e,n);let i=[],o=e;for(;o!=null;){let l=this.collection.getItem(o);if(l&&(l.type==="item"||l.type==="cell"&&this.allowsCellSelection)&&i.push(o),o===n)return i;o=this.collection.getKeyAfter(o)}return[]}getKey(e){let n=this.collection.getItem(e);if(!n||n.type==="cell"&&this.allowsCellSelection)return e;for(;n&&n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(e)){this.replaceSelection(e);return}let n=this.getKey(e);if(n==null)return;let r=new st(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(n)?r.delete(n):this.canSelectItem(n)&&(r.add(n),r.anchorKey=n,r.currentKey=n),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(e){if(this.selectionMode==="none")return;let n=this.getKey(e);if(n==null)return;let r=this.canSelectItem(n)?new st([n],n,n):new st;this.state.setSelectedKeys(r)}setSelectedKeys(e){if(this.selectionMode==="none")return;let n=new st;for(let r of e){let i=this.getKey(r);if(i!=null&&(n.add(i),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let e=[],n=r=>{for(;r!=null;){if(this.canSelectItem(r)){var i;let l=this.collection.getItem(r);(l==null?void 0:l.type)==="item"&&e.push(r);var o;l!=null&&l.hasChildNodes&&(this.allowsCellSelection||l.type!=="item")&&n((o=(i=U5(B5(l,this.collection)))===null||i===void 0?void 0:i.key)!==null&&o!==void 0?o:null)}r=this.collection.getKeyAfter(r)}};return n(this.collection.getFirstKey()),e}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new st)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(e.size!==n.size)return!1;for(let r of e)if(!n.has(r))return!1;for(let r of n)if(!e.has(r))return!1;return!0}canSelectItem(e){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(e))return!1;let r=this.collection.getItem(e);return!(!r||!(r==null||(n=r.props)===null||n===void 0)&&n.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(e){var n,r;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(e)||!!(!((r=this.collection.getItem(e))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled))}isLink(e){var n,r;return!!(!((r=this.collection.getItem(e))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}getItemProps(e){var n;return(n=this.collection.getItem(e))===null||n===void 0?void 0:n.props}withCollection(e){return new Df(e,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(e,n,r){this.collection=e,this.state=n;var i;this.allowsCellSelection=(i=r==null?void 0:r.allowsCellSelection)!==null&&i!==void 0?i:!1,this._isSelectAll=null,this.layoutDelegate=(r==null?void 0:r.layoutDelegate)||null}};function Tf(t){let{filter:e,layoutDelegate:n}=t,r=$f(t),i=c.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),o=c.useCallback(u=>e?new Cs(e(u)):new Cs(u),[e]),l=c.useMemo(()=>({suppressTextValueWarning:t.suppressTextValueWarning}),[t.suppressTextValueWarning]),a=xf(t,o,l),s=c.useMemo(()=>new Pf(a,r,{layoutDelegate:n}),[a,r,n]);return _f(a,s),{collection:a,disabledKeys:i,selectionManager:s}}function q5(t,e){let n=c.useMemo(()=>e?t.collection.UNSTABLE_filter(e):t.collection,[t.collection,e]),r=t.selectionManager.withCollection(n);return _f(n,r),{collection:n,selectionManager:r,disabledKeys:t.disabledKeys}}function _f(t,e){const n=c.useRef(null);c.useEffect(()=>{if(e.focusedKey!=null&&!t.getItem(e.focusedKey)&&n.current){const d=n.current.getItem(e.focusedKey),f=[...n.current.getKeys()].map(m=>{const S=n.current.getItem(m);return(S==null?void 0:S.type)==="item"?S:null}).filter(m=>m!==null),p=[...t.getKeys()].map(m=>{const S=t.getItem(m);return(S==null?void 0:S.type)==="item"?S:null}).filter(m=>m!==null);var r,i;const g=((r=f==null?void 0:f.length)!==null&&r!==void 0?r:0)-((i=p==null?void 0:p.length)!==null&&i!==void 0?i:0);var o,l,a;let y=Math.min(g>1?Math.max(((o=d==null?void 0:d.index)!==null&&o!==void 0?o:0)-g+1,0):(l=d==null?void 0:d.index)!==null&&l!==void 0?l:0,((a=p==null?void 0:p.length)!==null&&a!==void 0?a:0)-1),h=null,v=!1;for(;y>=0;){if(!e.isDisabled(p[y].key)){h=p[y];break}if(y<p.length-1&&!v)y++;else{v=!0;var s,u;y>((s=d==null?void 0:d.index)!==null&&s!==void 0?s:0)&&(y=(u=d==null?void 0:d.index)!==null&&u!==void 0?u:0),y--}}e.setFocusedKey(h?h.key:null)}n.current=t},[t,e])}function If(t){var e;let[n,r]=Ii(t.selectedKey,(e=t.defaultSelectedKey)!==null&&e!==void 0?e:null,t.onSelectionChange),i=c.useMemo(()=>n!=null?[n]:[],[n]),{collection:o,disabledKeys:l,selectionManager:a}=Tf({...t,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:i,onSelectionChange:u=>{if(u==="all")return;var d;let f=(d=u.values().next().value)!==null&&d!==void 0?d:null;f===n&&t.onSelectionChange&&t.onSelectionChange(f),r(f)}}),s=n!=null?o.getItem(n):null;return{collection:o,disabledKeys:l,selectionManager:a,selectedKey:n,setSelectedKey:r,selectedItem:s}}function Ql(t){let[e,n]=Ii(t.isOpen,t.defaultOpen||!1,t.onOpenChange);const r=c.useCallback(()=>{n(!0)},[n]),i=c.useCallback(()=>{n(!1)},[n]),o=c.useCallback(()=>{n(!e)},[n,e]);return{isOpen:e,setOpen:n,open:r,close:i,toggle:o}}function Y5(t){let{initialItems:e=[],initialSelectedKeys:n,getKey:r=h=>{var v;return(v=h.id)!==null&&v!==void 0?v:h.key},getChildren:i=h=>h.children}=t,[o,l]=c.useState(()=>f(e,new Map)),{items:a,nodeMap:s}=o,[u,d]=c.useState(new Set(n||[]));function f(h=[],v,m){return h==null&&(h=[]),{items:h.map(S=>{let C={key:r(S),parentKey:m,value:S,children:null};return C.children=f(i(S),v,C.key).items,v.set(C.key,C),C}),nodeMap:v}}function p(h,v,m,S){let C=S.get(v);if(!C)return{items:h,nodeMap:S};let P=new Map(S),$=m(C);for($==null?y(C,P):g($,P);C&&C.parentKey;){let T=P.get(C.parentKey),L={key:T.key,parentKey:T.parentKey,value:T.value,children:null},z=T.children;$==null&&z&&(z=z.filter(A=>A!==C));var E;L.children=(E=z==null?void 0:z.map(A=>A===C?$:A))!==null&&E!==void 0?E:null,P.set(L.key,L),$=L,C=T}return $==null&&(h=h.filter(T=>T!==C)),{items:h.map(T=>T===C?$:T),nodeMap:P}}function g(h,v){if(v.set(h.key,h),h.children)for(let m of h.children)g(m,v)}function y(h,v){if(v.delete(h.key),h.children)for(let m of h.children)y(m,v)}return{items:a,selectedKeys:u,setSelectedKeys:d,getItem(h){return s.get(h)},insert(h,v,...m){l(({items:S,nodeMap:C})=>{let{items:P,nodeMap:$}=f(m,C,h);return h==null?{items:[...S.slice(0,v),...P,...S.slice(v)],nodeMap:$}:p(S,h,E=>({key:E.key,parentKey:E.parentKey,value:E.value,children:[...E.children.slice(0,v),...P,...E.children.slice(v)]}),$)})},insertBefore(h,...v){let m=s.get(h);if(!m)return;let S=s.get(m.parentKey),P=(S?S.children:a).indexOf(m);var $;this.insert(($=S==null?void 0:S.key)!==null&&$!==void 0?$:null,P,...v)},insertAfter(h,...v){let m=s.get(h);if(!m)return;let S=s.get(m.parentKey),P=(S?S.children:a).indexOf(m);var $;this.insert(($=S==null?void 0:S.key)!==null&&$!==void 0?$:null,P+1,...v)},prepend(h,...v){this.insert(h,0,...v)},append(h,...v){if(h==null)this.insert(null,a.length,...v);else{let m=s.get(h);if(!m)return;this.insert(h,m.children.length,...v)}},remove(...h){if(h.length===0)return;let v=a,m=s,S;for(let P of h)S=p(v,P,()=>null,m),m=S.nodeMap,v=S.items;l(S);let C=new Set(u);for(let P of u)S.nodeMap.has(P)||C.delete(P);d(C)},removeSelectedItems(){this.remove(...u)},move(h,v,m){l(({items:S,nodeMap:C})=>{let P=C.get(h);if(!P)return{items:S,nodeMap:C};let{items:$,nodeMap:E}=p(S,h,()=>null,C);const T={...P,parentKey:v};return v==null?(E.set(T.key,T),{items:[...$.slice(0,m),T,...$.slice(m)],nodeMap:E}):p($,v,L=>({key:L.key,parentKey:L.parentKey,value:L.value,children:[...L.children.slice(0,m),T,...L.children.slice(m)]}),E)})},update(h,v){l(({items:m,nodeMap:S})=>p(m,h,C=>{let P={key:C.key,parentKey:C.parentKey,value:v,children:null},$=f(i(v),S,P.key);return P.children=$.items,P},S))}}}function Z5(t){let e=Ql(t),[n,r]=c.useState(null),[i,o]=c.useState([]),l=()=>{o([]),e.close()};return{focusStrategy:n,...e,open(u=null){r(u),e.open()},toggle(u=null){r(u),e.toggle()},close(){l()},expandedKeysStack:i,openSubmenu:(u,d)=>{o(f=>d>f.length?f:[...f.slice(0,d),u])},closeSubmenu:(u,d)=>{o(f=>f[d]===u?f.slice(0,d):f)}}}function X5(t){let e=Ql(t),[n,r]=c.useState(null),i=If({...t,onSelectionChange:s=>{t.onSelectionChange!=null&&t.onSelectionChange(s),e.close(),o.commitValidation()}}),o=F5({...t,value:i.selectedKey}),[l,a]=c.useState(!1);return{...o,...i,...e,focusStrategy:n,open(s=null){i.collection.size!==0&&(r(s),e.open())},toggle(s=null){i.collection.size!==0&&(r(s),e.toggle())},isFocused:l,setFocused:a}}function J5(t){var e,n;let r=If({...t,suppressTextValueWarning:!0,defaultSelectedKey:(n=(e=t.defaultSelectedKey)!==null&&e!==void 0?e:xs(t.collection,t.disabledKeys?new Set(t.disabledKeys):new Set))!==null&&n!==void 0?n:void 0}),{selectionManager:i,collection:o,selectedKey:l}=r,a=c.useRef(l);return c.useEffect(()=>{let s=l;t.selectedKey==null&&(i.isEmpty||s==null||!o.getItem(s))&&(s=xs(o,r.disabledKeys),s!=null&&i.setSelectedKeys([s])),(s!=null&&i.focusedKey==null||!i.isFocused&&s!==a.current)&&i.setFocusedKey(s),a.current=s}),{...r,isDisabled:t.isDisabled||!1}}function xs(t,e){let n=null;if(t){var r,i,o,l;for(n=t.getFirstKey();n!=null&&(e.has(n)||!((i=t.getItem(n))===null||i===void 0||(r=i.props)===null||r===void 0)&&r.isDisabled)&&n!==t.getLastKey();)n=t.getKeyAfter(n);n!=null&&(e.has(n)||!((l=t.getItem(n))===null||l===void 0||(o=l.props)===null||o===void 0)&&o.isDisabled)&&n===t.getLastKey()&&(n=t.getFirstKey())}return n}class Q5{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let n=this.keyMap.get(e);var r;return n&&(r=n.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(e){let n=this.keyMap.get(e);var r;return n&&(r=n.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var n;return(n=this.keyMap.get(e))!==null&&n!==void 0?n:null}at(e){const n=[...this.getKeys()];return this.getItem(n[e])}constructor(e,{expandedKeys:n}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e,n=n||new Set;let r=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&(a.type==="section"||n.has(a.key)))for(let s of a.childNodes)r(s)};for(let a of e)r(a);let i=null,o=0;for(let[a,s]of this.keyMap)i?(i.nextKey=a,s.prevKey=i.key):(this.firstKey=a,s.prevKey=void 0),s.type==="item"&&(s.index=o++),i=s,i.nextKey=void 0;var l;this.lastKey=(l=i==null?void 0:i.key)!==null&&l!==void 0?l:null}}function ev(t){let{onExpandedChange:e}=t,[n,r]=Ii(t.expandedKeys?new Set(t.expandedKeys):void 0,t.defaultExpandedKeys?new Set(t.defaultExpandedKeys):new Set,e),i=$f(t),o=c.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),l=xf(t,c.useCallback(s=>new Q5(s,{expandedKeys:n}),[n]),null);return c.useEffect(()=>{i.focusedKey!=null&&!l.getItem(i.focusedKey)&&i.setFocusedKey(null)},[l,i.focusedKey]),{collection:l,expandedKeys:n,disabledKeys:o,toggleKey:s=>{r(tv(n,s))},setExpandedKeys:r,selectionManager:new Pf(l,i)}}function tv(t,e){let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n}const nv=c.createContext(null),il=c.createContext(null),Of=c.createContext(null),kf={CollectionRoot({collection:t,renderDropIndicator:e}){return Es(t,null,e)},CollectionBranch({collection:t,parent:e,renderDropIndicator:n}){return Es(t,e,n)}};function Es(t,e,n){return Sc({items:e?t.getChildren(e.key):t,dependencies:[n],children(r){var i;let o=r.render(r);if(!n||r.type!=="item")return o;let l=r.key,a=t.getKeyAfter(l);return c.createElement(c.Fragment,null,n({type:"item",key:l,dropPosition:"before"}),o,(a==null||((i=t.getItem(a))===null||i===void 0?void 0:i.type)!=="item")&&n({type:"item",key:l,dropPosition:"after"}))}})}const Yt=c.createContext(kf);function Nf(t){return c.useMemo(()=>t!=null?new Set([t]):null,[t])}const Oi=c.createContext({}),Rf=c.createContext(null),rv=c.forwardRef(function(e,n){let{render:r}=c.useContext(Rf);return c.createElement(c.Fragment,null,r(e,n))});function Mf(t,e){var n;let r=t==null?void 0:t.renderDropIndicator,i=t==null||(n=t.isVirtualDragging)===null||n===void 0?void 0:n.call(t),o=c.useCallback(l=>{if(i||e!=null&&e.isDropTarget(l))return r?r(l):c.createElement(rv,{target:l})},[e==null?void 0:e.target,i,r]);return t!=null&&t.useDropIndicator?o:void 0}function iv(t,e,n){var r,i;let o=t.focusedKey,l=null;if(!(e==null||(r=e.isVirtualDragging)===null||r===void 0)&&r.call(e)&&(n==null||(i=n.target)===null||i===void 0?void 0:i.type)==="item"){l=n.target.key;var a;n.target.dropPosition==="after"&&(l=(a=n.collection.getKeyAfter(l))!==null&&a!==void 0?a:l)}return c.useMemo(()=>new Set([o,l].filter(s=>s!=null)),[o,l])}const Lf=c.createContext({}),ea=c.createContext({}),Af=$i("separator",function(e,n){[e,n]=pt(e,n,ea);let{elementType:r,orientation:i,style:o,className:l,slot:a,...s}=e,u=r||"hr";u==="hr"&&i==="vertical"&&(u="div");let{separatorProps:d}=D5({...s,elementType:r,orientation:i});return c.createElement(u,{...Se(e),...d,style:o,className:l??"react-aria-Separator",ref:n,slot:a||void 0})}),ta=c.createContext(null),fr=c.createContext(null),ov=c.forwardRef(function(e,n){[e,n]=pt(e,n,ta);let r=c.useContext(fr);return r?c.createElement(Kf,{state:r,props:e,listBoxRef:n}):c.createElement(Ei,{content:c.createElement(Hl,e)},i=>c.createElement(lv,{props:e,listBoxRef:n,collection:i}))});function lv({props:t,listBoxRef:e,collection:n}){t={...t,collection:n,children:null,items:null};let{layoutDelegate:r}=c.useContext(Yt),i=Tf({...t,layoutDelegate:r});return c.createElement(Kf,{state:i,props:t,listBoxRef:e})}function Kf({state:t,props:e,listBoxRef:n}){let{filter:r,collectionProps:i,collectionRef:o}=c.useContext(il)||{};e=c.useMemo(()=>i?{...e,...i}:e,[e,i]);let{dragAndDropHooks:l,layout:a="stack",orientation:s="vertical"}=e;n=ht(c.useMemo(()=>Tl(n,o!==void 0?o:null),[o,n]));let u=q5(t,r),{collection:d,selectionManager:f}=u,p=!!(l!=null&&l.useDraggableCollectionState),g=!!(l!=null&&l.useDroppableCollectionState),{direction:y}=qt(),{disabledBehavior:h,disabledKeys:v}=f,m=Wl({usage:"search",sensitivity:"base"}),{isVirtualized:S,layoutDelegate:C,dropTargetDelegate:P,CollectionRoot:$}=c.useContext(Yt),E=c.useMemo(()=>e.keyboardDelegate||new Xl({collection:d,collator:m,ref:n,disabledKeys:v,disabledBehavior:h,layout:a,orientation:s,direction:y,layoutDelegate:C}),[d,m,n,h,v,s,y,e.keyboardDelegate,a,C]),{listBoxProps:T}=p5({...e,shouldSelectOnPressUp:p||e.shouldSelectOnPressUp,keyboardDelegate:E,isVirtualized:S},u,n),L=c.useRef(p),z=c.useRef(g);c.useEffect(()=>{process.env.NODE_ENV!=="production"&&(L.current!==p&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),z.current!==g&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."))},[p,g]);let A,w,M,B=!1,R=null,U=c.useRef(null);if(p&&l){A=l.useDraggableCollectionState({collection:d,selectionManager:f,preview:l.renderDragPreview?U:void 0}),l.useDraggableCollection({},A,n);let O=l.DragPreview;R=l.renderDragPreview?c.createElement(O,{ref:U},l.renderDragPreview):null}if(g&&l){w=l.useDroppableCollectionState({collection:d,selectionManager:f});let O=l.dropTargetDelegate||P||new l.ListDropTargetDelegate(d,n,{orientation:s,layout:a,direction:y});M=l.useDroppableCollection({keyboardDelegate:E,dropTargetDelegate:O},w,n),B=w.isDropTarget({type:"root"})}let{focusProps:x,isFocused:N,isFocusVisible:I}=Ln(),G={isDropTarget:B,isEmpty:u.collection.size===0,isFocused:N,isFocusVisible:I,layout:e.layout||"stack",state:u},H=Le({className:e.className,style:e.style,defaultClassName:"react-aria-ListBox",values:G}),j=null;return u.collection.size===0&&e.renderEmptyState&&(j=c.createElement("div",{role:"option",style:{display:"contents"}},e.renderEmptyState(G))),c.createElement(Gl,null,c.createElement("div",{...Se(e),...le(T,x,M==null?void 0:M.collectionProps),...H,ref:n,slot:e.slot||void 0,onScroll:e.onScroll,"data-drop-target":B||void 0,"data-empty":u.collection.size===0||void 0,"data-focused":N||void 0,"data-focus-visible":I||void 0,"data-layout":e.layout||"stack","data-orientation":e.orientation||"vertical"},c.createElement($t,{values:[[ta,e],[fr,u],[Oi,{dragAndDropHooks:l,dragState:A,dropState:w}],[ea,{elementType:"div"}],[Rf,{render:uv}],[Of,{name:"ListBoxSection",render:av}]]},c.createElement($,{collection:d,scrollRef:n,persistedKeys:iv(f,l,w),renderDropIndicator:Mf(l,w)})),j,R))}function av(t,e,n,r="react-aria-ListBoxSection"){let i=c.useContext(fr),{dragAndDropHooks:o,dropState:l}=c.useContext(Oi),{CollectionBranch:a}=c.useContext(Yt),[s,u]=Ml();var d;let{headingProps:f,groupProps:p}=y5({heading:u,"aria-label":(d=t["aria-label"])!==null&&d!==void 0?d:void 0}),g=Le({defaultClassName:r,className:t.className,style:t.style,values:{}});return c.createElement("section",{...Se(t),...p,...g,ref:e},c.createElement(Lf.Provider,{value:{...f,ref:s}},c.createElement(a,{collection:i.collection,parent:n,renderDropIndicator:Mf(o,l)})))}const sv=$i("item",function(e,n,r){let i=ht(n),o=c.useContext(fr),{dragAndDropHooks:l,dragState:a,dropState:s}=c.useContext(Oi),{optionProps:u,labelProps:d,descriptionProps:f,...p}=m5({key:r.key,"aria-label":e==null?void 0:e["aria-label"]},o,i),{hoverProps:g,isHovered:y}=Mn({isDisabled:!p.allowsSelection&&!p.hasAction,onHoverStart:r.props.onHoverStart,onHoverChange:r.props.onHoverChange,onHoverEnd:r.props.onHoverEnd}),h=null;a&&l&&(h=l.useDraggableItem({key:r.key},a));let v=null;s&&l&&(v=l.useDroppableItem({target:{type:"item",key:r.key,dropPosition:"on"}},s,i));let m=a&&a.isDragging(r.key),S=Le({...e,id:void 0,children:e.children,defaultClassName:"react-aria-ListBoxItem",values:{...p,isHovered:y,selectionMode:o.selectionManager.selectionMode,selectionBehavior:o.selectionManager.selectionBehavior,allowsDragging:!!a,isDragging:m,isDropTarget:v==null?void 0:v.isDropTarget}});c.useEffect(()=>{!r.textValue&&process.env.NODE_ENV!=="production"&&console.warn("A `textValue` prop is required for <ListBoxItem> elements with non-plain text children in order to support accessibility features such as type to select.")},[r.textValue]);let C=e.href?"a":"div";return c.createElement(C,{...le(u,g,h==null?void 0:h.dragProps,v==null?void 0:v.dropProps),...S,ref:i,"data-allows-dragging":!!a||void 0,"data-selected":p.isSelected||void 0,"data-disabled":p.isDisabled||void 0,"data-hovered":y||void 0,"data-focused":p.isFocused||void 0,"data-focus-visible":p.isFocusVisible||void 0,"data-pressed":p.isPressed||void 0,"data-dragging":m||void 0,"data-drop-target":(v==null?void 0:v.isDropTarget)||void 0,"data-selection-mode":o.selectionManager.selectionMode==="none"?void 0:o.selectionManager.selectionMode},c.createElement($t,{values:[[Jl,{slots:{[Rl]:d,label:d,description:f}}]]},S.children))});function uv(t,e){e=ht(e);let{dragAndDropHooks:n,dropState:r}=c.useContext(Oi),{dropIndicatorProps:i,isHidden:o,isDropTarget:l}=n.useDropIndicator(t,r,e);return o?null:c.createElement(dv,{...t,dropIndicatorProps:i,isDropTarget:l,ref:e})}function cv(t,e){let{dropIndicatorProps:n,isDropTarget:r,...i}=t,o=Le({...i,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:r}});return c.createElement("div",{...n,...o,role:"option",ref:e,"data-drop-target":r||void 0})}const dv=c.forwardRef(cv),fv=c.createContext({placement:"bottom"}),Ff=c.createContext(null),$s=c.createContext(null),jf=c.forwardRef(function(e,n){[e,n]=pt(e,n,Ff);let r=c.useContext(Hf),i=Ql(e),o=e.isOpen!=null||e.defaultOpen!=null||!r?i:r,l=lp(n,o.isOpen)||e.isExiting||!1,a=pp(),{direction:s}=qt();if(a){let u=e.children;return typeof u=="function"&&(u=u({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),c.createElement(c.Fragment,null,u)}return o&&!o.isOpen&&!l?null:c.createElement(hv,{...e,triggerRef:e.triggerRef,state:o,popoverRef:n,isExiting:l,dir:s})});function hv({state:t,isExiting:e,UNSTABLE_portalContainer:n,...r}){let i=c.useRef(null),[o,l]=c.useState(0),a=c.useRef(null),s=c.useContext($s),u=s&&r.trigger==="SubmenuTrigger";ue(()=>{i.current&&t.isOpen&&l(i.current.getBoundingClientRect().width)},[t.isOpen,i]);var d;let{popoverProps:f,underlayProps:p,arrowProps:g,placement:y}=l5({...r,offset:(d=r.offset)!==null&&d!==void 0?d:8,arrowSize:o,groupRef:u?s:a},t),h=r.popoverRef,v=op(h,!!y)||r.isEntering||!1,m=Le({...r,defaultClassName:"react-aria-Popover",values:{trigger:r.trigger||null,placement:y,isEntering:v,isExiting:e}}),S=!r.isNonModal||r.trigger==="SubmenuTrigger",[C,P]=c.useState(!1);ue(()=>{h.current&&P(S&&!h.current.querySelector("[role=dialog]"))},[h,S]),c.useEffect(()=>{C&&h.current&&!h.current.contains(document.activeElement)&&_n(h.current)},[C,h]);let $={...f.style,...m.style},E=c.createElement("div",{...le(Se(r),f),...m,role:C?"dialog":void 0,tabIndex:C?-1:void 0,"aria-label":r["aria-label"],"aria-labelledby":r["aria-labelledby"],ref:h,slot:r.slot||void 0,style:$,dir:r.dir,"data-trigger":r.trigger,"data-placement":y,"data-entering":v||void 0,"data-exiting":e||void 0},!r.isNonModal&&c.createElement(cs,{onDismiss:t.close}),c.createElement(fv.Provider,{value:{...g,placement:y,ref:i}},m.children),c.createElement(cs,{onDismiss:t.close}));if(!u)return c.createElement(ds,{...r,shouldContainFocus:C,isExiting:e,portalContainer:n},!r.isNonModal&&t.isOpen&&c.createElement("div",{"data-testid":"underlay",...p,style:{position:"fixed",inset:0}}),c.createElement("div",{ref:a,style:{display:"contents"}},c.createElement($s.Provider,{value:a},E)));var T;return c.createElement(ds,{...r,shouldContainFocus:C,isExiting:e,portalContainer:(T=n??(s==null?void 0:s.current))!==null&&T!==void 0?T:void 0},E)}const pv=c.createContext({});class qe extends Set{constructor(e,n,r){super(e),e instanceof qe?(this.anchorKey=n??e.anchorKey,this.currentKey=r??e.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function gv(t,e){if(t.size!==e.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function vv(t){let{selectionMode:e="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:o="all"}=t,l=c.useRef(!1),[,a]=c.useState(!1),s=c.useRef(null),u=c.useRef(null),[,d]=c.useState(null),f=c.useMemo(()=>Ps(t.selectedKeys),[t.selectedKeys]),p=c.useMemo(()=>Ps(t.defaultSelectedKeys,new qe),[t.defaultSelectedKeys]),[g,y]=cp(f,p,t.onSelectionChange),h=c.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),[v,m]=c.useState(i);i==="replace"&&v==="toggle"&&typeof g=="object"&&g.size===0&&m("replace");let S=c.useRef(i);return c.useEffect(()=>{i!==S.current&&(m(i),S.current=i)},[i]),{selectionMode:e,disallowEmptySelection:n,selectionBehavior:v,setSelectionBehavior:m,get isFocused(){return l.current},setFocused(C){l.current=C,a(C)},get focusedKey(){return s.current},get childFocusStrategy(){return u.current},setFocusedKey(C,P="first"){s.current=C,u.current=P,d(C)},selectedKeys:g,setSelectedKeys(C){(r||!gv(C,g))&&y(C)},disabledKeys:h,disabledBehavior:o}}function Ps(t,e){return t?t==="all"?"all":new qe(t):e}class na{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,n){(e==null||this.collection.getItem(e))&&this.state.setFocusedKey(e,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if(this.state.selectionMode==="none")return!1;let n=this.getKey(e);return n==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(n):this.state.selectedKeys.has(n)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let e=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=e.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!e||i&&ao(this.collection,i,e)<0)&&(e=i)}var n;return(n=e==null?void 0:e.key)!==null&&n!==void 0?n:null}get lastSelectedKey(){let e=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!e||i&&ao(this.collection,i,e)>0)&&(e=i)}var n;return(n=e==null?void 0:e.key)!==null&&n!==void 0?n:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(e);return}let n=this.getKey(e);if(n==null)return;let r;if(this.state.selectedKeys==="all")r=new qe([n],n,n);else{let l=this.state.selectedKeys;var i;let a=(i=l.anchorKey)!==null&&i!==void 0?i:n;r=new qe(l,a,n);var o;for(let s of this.getKeyRange(a,(o=l.currentKey)!==null&&o!==void 0?o:n))r.delete(s);for(let s of this.getKeyRange(n,a))this.canSelectItem(s)&&r.add(s)}this.state.setSelectedKeys(r)}getKeyRange(e,n){let r=this.collection.getItem(e),i=this.collection.getItem(n);return r&&i?ao(this.collection,r,i)<=0?this.getKeyRangeInternal(e,n):this.getKeyRangeInternal(n,e):[]}getKeyRangeInternal(e,n){var r;if(!((r=this.layoutDelegate)===null||r===void 0)&&r.getKeyRange)return this.layoutDelegate.getKeyRange(e,n);let i=[],o=e;for(;o!=null;){let l=this.collection.getItem(o);if(l&&(l.type==="item"||l.type==="cell"&&this.allowsCellSelection)&&i.push(o),o===n)return i;o=this.collection.getKeyAfter(o)}return[]}getKey(e){let n=this.collection.getItem(e);if(!n||n.type==="cell"&&this.allowsCellSelection)return e;for(;n&&n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(e)){this.replaceSelection(e);return}let n=this.getKey(e);if(n==null)return;let r=new qe(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(n)?r.delete(n):this.canSelectItem(n)&&(r.add(n),r.anchorKey=n,r.currentKey=n),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(e){if(this.selectionMode==="none")return;let n=this.getKey(e);if(n==null)return;let r=this.canSelectItem(n)?new qe([n],n,n):new qe;this.state.setSelectedKeys(r)}setSelectedKeys(e){if(this.selectionMode==="none")return;let n=new qe;for(let r of e){let i=this.getKey(r);if(i!=null&&(n.add(i),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let e=[],n=r=>{for(;r!=null;){if(this.canSelectItem(r)){var i;let l=this.collection.getItem(r);(l==null?void 0:l.type)==="item"&&e.push(r);var o;l!=null&&l.hasChildNodes&&(this.allowsCellSelection||l.type!=="item")&&n((o=(i=g5(kd(l,this.collection)))===null||i===void 0?void 0:i.key)!==null&&o!==void 0?o:null)}r=this.collection.getKeyAfter(r)}};return n(this.collection.getFirstKey()),e}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new qe)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(e.size!==n.size)return!1;for(let r of e)if(!n.has(r))return!1;for(let r of n)if(!e.has(r))return!1;return!0}canSelectItem(e){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(e))return!1;let r=this.collection.getItem(e);return!(!r||!(r==null||(n=r.props)===null||n===void 0)&&n.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(e){var n,r;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(e)||!!(!((r=this.collection.getItem(e))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled))}isLink(e){var n,r;return!!(!((r=this.collection.getItem(e))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}getItemProps(e){var n;return(n=this.collection.getItem(e))===null||n===void 0?void 0:n.props}withCollection(e){return new na(e,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(e,n,r){this.collection=e,this.state=n;var i;this.allowsCellSelection=(i=r==null?void 0:r.allowsCellSelection)!==null&&i!==void 0?i:!1,this._isSelectAll=null,this.layoutDelegate=(r==null?void 0:r.layoutDelegate)||null}}const mv=c.createContext(null),ra=c.createContext(null),Ds=c.createContext(null),ai=c.createContext(null),yv=c.createContext(null),bv=c.forwardRef(function(e,n){return[e,n]=pt(e,n,mv),c.createElement(Ei,{content:c.createElement(Hl,e)},r=>c.createElement(Sv,{props:e,collection:r,menuRef:n}))});function Sv({props:t,collection:e,menuRef:n}){let{filter:r,collectionProps:i,collectionRef:o}=c.useContext(il)||{};n=ht(c.useMemo(()=>Tl(n,o!==void 0?o:null),[o,n]));let l=c.useMemo(()=>r?e.UNSTABLE_filter(r):e,[e,r]),a=ev({...t,collection:l,children:void 0}),s=c.useContext(Ds),{isVirtualized:u,CollectionRoot:d}=c.useContext(Yt),{menuProps:f}=C5({...t,...i,isVirtualized:u,onClose:t.onClose||(s==null?void 0:s.close)},a,n),p=Le({defaultClassName:"react-aria-Menu",className:t.className,style:t.style,values:{isEmpty:a.collection.size===0}}),g=null;return a.collection.size===0&&t.renderEmptyState&&(g=c.createElement("div",{role:"menuitem",style:{display:"contents"}},t.renderEmptyState())),c.createElement(Gl,null,c.createElement("div",{...Se(t),...f,...p,ref:n,slot:t.slot||void 0,"data-empty":a.collection.size===0||void 0,onScroll:t.onScroll},c.createElement($t,{values:[[ra,a],[ea,{elementType:"div"}],[Of,{name:"MenuSection",render:wv}],[yv,{parentMenuRef:n,shouldUseVirtualFocus:i==null?void 0:i.shouldUseVirtualFocus}],[ol,null],[il,null],[ai,a.selectionManager],[Ds,s??Z5({})]]},c.createElement(d,{collection:a.collection,persistedKeys:Nf(a.selectionManager.focusedKey),scrollRef:n})),g))}class Cv extends na{get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(e,n){return this.parent.setFocusedKey(e,n)}setFocused(e){this.parent.setFocused(e)}get childFocusStrategy(){return this.parent.childFocusStrategy}constructor(e,n){super(e.collection,n),this.parent=e}}function wv(t,e,n,r="react-aria-MenuSection"){var i,o;let l=c.useContext(ra),{CollectionBranch:a}=c.useContext(Yt),[s,u]=Ml();var d;let{headingProps:f,groupProps:p}=x5({heading:u,"aria-label":(d=n.props["aria-label"])!==null&&d!==void 0?d:void 0}),g=Le({defaultClassName:r,className:(i=n.props)===null||i===void 0?void 0:i.className,style:(o=n.props)===null||o===void 0?void 0:o.style,values:{}}),y=c.useContext(ai),h=vv(t),v=t.selectionMode!=null?new Cv(y,h):y;return c.createElement("section",{...Se(t),...p,...g,ref:e},c.createElement($t,{values:[[Lf,{...f,ref:s}],[ai,v]]},c.createElement(a,{collection:l.collection,parent:n})))}const ol=c.createContext(null),Ts=$i("item",function(e,n,r){var i;[e,n]=pt(e,n,ol);let o=(i=xi(ol))===null||i===void 0?void 0:i.id,l=c.useContext(ra),a=ht(n),s=c.useContext(ai),{menuItemProps:u,labelProps:d,descriptionProps:f,keyboardShortcutProps:p,...g}=w5({...e,id:o,key:r.key,selectionManager:s},l,a),{hoverProps:y,isHovered:h}=Mn({isDisabled:g.isDisabled}),v=Le({...e,id:void 0,children:r.rendered,defaultClassName:"react-aria-MenuItem",values:{...g,isHovered:h,isFocusVisible:g.isFocusVisible,selectionMode:s.selectionMode,selectionBehavior:s.selectionBehavior,hasSubmenu:!!e["aria-haspopup"],isOpen:e["aria-expanded"]==="true"}}),m=e.href?"a":"div";return c.createElement(m,{...le(u,y),...v,ref:a,"data-disabled":g.isDisabled||void 0,"data-hovered":h||void 0,"data-focused":g.isFocused||void 0,"data-focus-visible":g.isFocusVisible||void 0,"data-pressed":g.isPressed||void 0,"data-selected":g.isSelected||void 0,"data-selection-mode":s.selectionMode==="none"?void 0:s.selectionMode,"data-has-submenu":!!e["aria-haspopup"]||void 0,"data-open":e["aria-expanded"]==="true"||void 0},c.createElement($t,{values:[[Jl,{slots:{[Rl]:d,label:d,description:f}}],[pv,p]]},v.children))}),Hf=c.createContext(null),zf=c.createContext(null),Vf=c.createContext(null),xv=c.forwardRef(function(e,n){[e,n]=pt(e,n,zf);let{children:r,isDisabled:i=!1,isInvalid:o=!1,isRequired:l=!1}=e,a=c.useMemo(()=>typeof r=="function"?r({isOpen:!1,isDisabled:i,isInvalid:o,isRequired:l,isFocused:!1,isFocusVisible:!1,defaultChildren:null}):r,[r,i,o,l]);return c.createElement(Ei,{content:a},s=>c.createElement(Ev,{props:e,collection:s,selectRef:n}))});function Ev({props:t,selectRef:e,collection:n}){let{validationBehavior:r}=xi(nv)||{};var i,o;let l=(o=(i=t.validationBehavior)!==null&&i!==void 0?i:r)!==null&&o!==void 0?o:"native",a=X5({...t,collection:n,children:void 0,validationBehavior:l}),{isFocusVisible:s,focusProps:u}=Ln({within:!0}),d=c.useRef(null),[f,p]=Ml(!t["aria-label"]&&!t["aria-labelledby"]),{labelProps:g,triggerProps:y,valueProps:h,menuProps:v,descriptionProps:m,errorMessageProps:S,...C}=E5({...dp(t),label:p,validationBehavior:l},a,d),[P,$]=c.useState(null),E=c.useCallback(()=>{d.current&&$(d.current.offsetWidth+"px")},[d]);zo({ref:d,onResize:E});let T=c.useMemo(()=>({isOpen:a.isOpen,isFocused:a.isFocused,isFocusVisible:s,isDisabled:t.isDisabled||!1,isInvalid:C.isInvalid||!1,isRequired:t.isRequired||!1}),[a.isOpen,a.isFocused,s,t.isDisabled,C.isInvalid,t.isRequired]),L=Le({...t,values:T,defaultClassName:"react-aria-Select"}),z=Se(t);delete z.id;let A=c.useRef(null);return c.createElement($t,{values:[[zf,t],[Vf,a],[$v,h],[bf,{...g,ref:f,elementType:"span"}],[Sf,{...y,ref:d,isPressed:a.isOpen}],[Hf,a],[Ff,{trigger:"Select",triggerRef:d,scrollRef:A,placement:"bottom start",style:{"--trigger-width":P},"aria-labelledby":v["aria-labelledby"]}],[ta,{...v,ref:A}],[fr,a],[Jl,{slots:{description:m,errorMessage:S}}],[A5,C]]},c.createElement("div",{...z,...L,...u,ref:e,slot:t.slot||void 0,"data-focused":a.isFocused||void 0,"data-focus-visible":s||void 0,"data-open":a.isOpen||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":C.isInvalid||void 0,"data-required":t.isRequired||void 0}),c.createElement(P5,{autoComplete:t.autoComplete,state:a,triggerRef:d,label:p,name:t.name,isDisabled:t.isDisabled}))}const $v=c.createContext(null),ki=c.createContext(null),In=c.createContext(null),Pv=c.forwardRef(function(e,n){[e,n]=pt(e,n,ki);let{children:r,orientation:i="horizontal"}=e;return r=c.useMemo(()=>typeof r=="function"?r({orientation:i,defaultChildren:null}):r,[r,i]),c.createElement(Ei,{content:r},o=>c.createElement(Dv,{props:e,collection:o,tabsRef:n}))});function Dv({props:t,tabsRef:e,collection:n}){let{orientation:r="horizontal"}=t,i=J5({...t,collection:n,children:void 0}),{focusProps:o,isFocused:l,isFocusVisible:a}=Ln({within:!0}),s=c.useMemo(()=>({orientation:r,isFocusWithin:l,isFocusVisible:a}),[r,l,a]),u=Le({...t,defaultClassName:"react-aria-Tabs",values:s});return c.createElement("div",{...Se(t),...o,...u,ref:e,slot:t.slot||void 0,"data-focused":l||void 0,"data-orientation":r,"data-focus-visible":a||void 0,"data-disabled":i.isDisabled||void 0},c.createElement($t,{values:[[ki,t],[In,i]]},u.children))}const Tv=c.forwardRef(function(e,n){return c.useContext(In)?c.createElement(_v,{props:e,forwardedRef:n}):c.createElement(Hl,e)});function _v({props:t,forwardedRef:e}){let n=c.useContext(In),{CollectionRoot:r}=c.useContext(Yt),{orientation:i="horizontal",keyboardActivation:o="automatic"}=xi(ki),l=ht(e),{tabListProps:a}=O5({...t,orientation:i,keyboardActivation:o},n,l),s=Le({...t,children:null,defaultClassName:"react-aria-TabList",values:{orientation:i,state:n}}),u=Se(t);return delete u.id,c.createElement("div",{...u,...a,ref:l,...s,"data-orientation":i||void 0},c.createElement(r,{collection:n.collection,persistedKeys:Nf(n.selectionManager.focusedKey)}))}const Iv=$i("item",(t,e,n)=>{let r=c.useContext(In),i=ht(e),{tabProps:o,isSelected:l,isDisabled:a,isPressed:s}=T5({key:n.key,...t},r,i),{focusProps:u,isFocused:d,isFocusVisible:f}=Ln(),{hoverProps:p,isHovered:g}=Mn({isDisabled:a,onHoverStart:t.onHoverStart,onHoverEnd:t.onHoverEnd,onHoverChange:t.onHoverChange}),y=Le({...t,id:void 0,children:n.rendered,defaultClassName:"react-aria-Tab",values:{isSelected:l,isDisabled:a,isFocused:d,isFocusVisible:f,isPressed:s,isHovered:g}}),h=n.props.href?"a":"div";return c.createElement(h,{...le(o,u,p,y),ref:i,"data-selected":l||void 0,"data-disabled":a||void 0,"data-focused":d||void 0,"data-focus-visible":f||void 0,"data-pressed":s||void 0,"data-hovered":g||void 0},y.children)}),Ov=Kl(function(e,n){const r=c.useContext(In);let i=ht(n),{tabPanelProps:o}=_5(e,r,i),{focusProps:l,isFocused:a,isFocusVisible:s}=Ln(),u=r.selectedKey===e.id,d=Le({...e,defaultClassName:"react-aria-TabPanel",values:{isFocused:a,isFocusVisible:s,isInert:!u,state:r}});if(!u&&!e.shouldForceMount)return null;let f=Se(e);delete f.id;let p=u?le(f,o,l,d):d;return c.createElement("div",{...p,ref:i,"data-focused":a||void 0,"data-focus-visible":s||void 0,inert:np(!u),"data-inert":u?void 0:"true"},c.createElement($t,{values:[[ki,null],[In,null]]},c.createElement(Yt.Provider,{value:kf},d.children)))}),hr=({options:t,isOpen:e=!1,onOpenChange:n,children:r,selectedValues:i=[],onSelectValue:o,topMessage:l,shouldCloseOnInteractOutside:a})=>{const s=c.useId(),u=f=>{n==null||n(f)},d=c.useRef(null);return b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"c__dropdown-menu-trigger",ref:d,id:s,onClick:f=>{f.stopPropagation(),f.preventDefault()},children:r}),b.jsx(jf,{triggerRef:d,style:{marginTop:"0px"},isOpen:e,shouldCloseOnInteractOutside:a,onOpenChange:u,children:b.jsxs(bv,{className:"c__dropdown-menu","aria-labelledby":s,children:[l&&b.jsx(Ts,{className:"c__dropdown-menu-item-top-message",children:l}),t.map(f=>f.isHidden?null:b.jsxs(c.Fragment,{children:[b.jsxs(Ts,{className:"c__dropdown-menu-item","aria-label":f.label,onAction:()=>{var p;f.value&&(o==null||o(f.value)),(p=f.callback)==null||p.call(f),u(!1)},isDisabled:f.isDisabled,children:[f.icon,b.jsx("div",{className:"c__dropdown-menu-item__label","aria-label":f.label,children:f.label}),(f.isChecked||f.value&&i.includes(f.value))&&b.jsx("span",{className:"material-icons checked",children:"check"})]},f.label),f.showSeparator&&b.jsx(Af,{})]},f.label))]})})]})},On=()=>{const[t,e]=c.useState(!1);return{isOpen:t,setIsOpen:e}},_s="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M10%206v2H5v11h11v-5h2v6a1%201%200%200%201-1%201H4a1%201%200%200%201-1-1V7a1%201%200%200%201%201-1h6Zm11-3v8h-2V6.413l-7.793%207.794-1.414-1.414L17.585%205H13V3h8Z'%20/%3e%3c/svg%3e",kv="data:image/svg+xml,%3csvg%20width='109'%20height='60'%20viewBox='0%200%20109%2060'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20%3e%3crect%20width='33'%20height='12'%20fill='url(%23paint0_linear_5795_13250)'%20/%3e%3cg%20clip-path='url(%23clip0_5795_13250)'%3e%3cg%20clip-path='url(%23clip1_5795_13250)'%3e%3cpath%20d='M8.475%206.8999C7.8%207.3499%207.2%207.8749%206.75%208.4749V8.3999C7.05%208.0249%207.275%207.6499%207.5%207.2749C7.8%207.1249%208.025%206.8999%208.25%206.6749C8.625%206.2999%209%205.9249%209.525%205.6999C9.75%205.6249%209.9%205.6249%2010.125%205.6999C10.05%205.7749%209.975%205.7749%209.825%205.8499H9.75V5.7749C9.525%205.9999%209.225%206.1499%209%206.4499C8.925%206.5999%208.85%206.8999%208.475%206.8999C8.55%206.8999%208.475%206.9749%208.475%206.8999ZM9.675%2010.3499C9.675%2010.2749%209.6%2010.3499%209.525%2010.3499L9.45%2010.4249L9.375%2010.4999L9.225%2010.6499C9.225%2010.6499%209.3%2010.7249%209.375%2010.6499L9.45%2010.5749C9.525%2010.5749%209.6%2010.4999%209.6%2010.4249C9.675%2010.4249%209.675%2010.4249%209.675%2010.3499ZM8.475%207.1249C8.55%207.1249%208.625%207.1249%208.625%207.0499C8.625%206.9749%208.7%206.9749%208.7%206.9749V6.8999C8.55%206.9749%208.475%207.0499%208.475%207.1249ZM10.275%208.5499C10.35%208.4749%2010.425%208.4749%2010.5%208.4749C11.025%208.3999%2011.55%208.2499%2012.075%208.0249C11.475%207.6499%2010.8%207.3499%2010.125%207.2749H10.2C10.125%207.1999%209.975%207.1999%209.825%207.1249H9.9C9.75%207.0499%209.525%207.0499%209.375%206.9749C9.45%206.9749%209.525%206.8249%209.525%206.7499H9.45C9.15%206.8999%209%207.1249%208.85%207.4249C9%207.4999%209.225%207.4249%209.375%207.4999H9.15C9.075%207.4999%209%207.5749%209%207.6499H9.075C9%207.6499%209%207.7249%208.925%207.7249C9%207.7999%209.075%207.7249%209.225%207.7249C9.225%207.7999%209.3%207.7999%209.3%207.7999C9.225%207.7999%209.15%207.8749%209.075%208.0249C9%208.1749%208.925%208.1749%208.85%208.2499V8.3249C8.625%208.4749%208.4%208.6999%208.175%208.9249V8.9999C8.1%209.0749%208.025%209.0749%208.025%209.1499V9.2249C8.325%209.1499%208.475%208.9249%208.775%208.8499L9.225%208.6249C9.375%208.6249%209.45%208.5499%209.6%208.5499V8.6249H9.75C9.75%208.6999%209.6%208.6249%209.675%208.6999C9.75%208.7749%209.9%208.7749%209.975%208.6999C10.125%208.5499%2010.2%208.5499%2010.275%208.5499ZM9.3%209.7499C9%209.8999%208.625%209.8999%208.4%2010.0499C8.4%2010.0499%208.4%2010.1249%208.325%2010.1249C8.325%2010.1249%208.25%2010.1249%208.25%2010.1999C8.175%2010.1999%208.175%2010.2749%208.1%2010.3499L8.025%2010.4249C8.025%2010.4249%208.025%2010.4999%208.1%2010.4249L8.175%2010.3499C8.175%2010.3499%208.1%2010.4249%208.1%2010.4999V10.7249L8.025%2010.7999C8.025%2010.7999%208.025%2010.8749%207.95%2010.8749L7.875%2010.9499L8.025%2010.7999L8.1%2010.7249H8.25C8.25%2010.7249%208.25%2010.6499%208.325%2010.6499C8.4%2010.5749%208.475%2010.4999%208.55%2010.4999H8.625C8.7%2010.4249%208.85%2010.4249%208.925%2010.3499C9%2010.2749%209.075%2010.1999%209.15%2010.1999C9.3%2010.0499%209.525%209.9749%209.75%209.8249C9.675%209.8249%209.6%209.7499%209.525%209.7499C9.525%209.8249%209.375%209.7499%209.3%209.7499ZM22.5%206.5249C22.425%206.6749%2022.2%206.6749%2022.05%206.7499C21.9%206.8999%2022.05%207.0499%2022.125%207.1249C22.2%207.3499%2021.975%207.4999%2021.825%207.4999C21.9%207.5749%2021.975%207.5749%2021.975%207.5749C21.975%207.7249%2022.125%207.7249%2022.05%207.8749C21.975%208.0249%2021.675%208.0999%2021.825%208.2499C21.9%208.3999%2021.9%208.6249%2021.825%208.7749C21.75%208.9249%2021.6%209.0749%2021.45%209.1499C21.3%209.2249%2021.15%209.2249%2021%209.1499C20.925%209.1499%2020.925%209.0749%2020.85%209.0749C20.475%208.9999%2020.1%208.9249%2019.725%208.9249C19.65%208.9249%2019.5%208.9999%2019.425%208.9999C19.35%209.0749%2019.2%209.1499%2019.125%209.2249L19.05%209.2999C18.975%209.3749%2018.9%209.4499%2018.9%209.5249C18.825%209.6749%2018.75%209.8249%2018.75%209.9749C18.6%2010.3499%2018.6%2010.7249%2018.75%2011.0249C18.75%2011.0249%2019.5%2011.2499%2020.025%2011.4749C20.175%2011.5499%2020.4%2011.6249%2020.55%2011.7749L21.825%2012.5249H9.9L11.1%2011.7749C11.55%2011.4749%2012.075%2011.2499%2012.6%2011.0249C12.975%2010.8749%2013.425%2010.6499%2013.725%2010.3499C13.875%2010.1999%2013.95%2010.0499%2014.1%209.9749C14.325%209.6749%2014.55%209.4499%2014.85%209.2249L15.075%208.9999C15.075%208.9999%2015.075%208.9249%2015.15%208.9249C15%208.9999%2015%209.0749%2014.85%209.0749C14.85%209.0749%2014.775%209.0749%2014.85%208.9999C14.925%208.9249%2015%208.8499%2015.075%208.8499V8.7749C14.775%208.7749%2014.55%208.9249%2014.325%209.1499H14.175C13.8%209.2999%2013.575%209.5249%2013.275%209.6749V9.5999C13.125%209.6749%2012.975%209.7499%2012.9%209.7499C12.75%209.7499%2012.525%209.8249%2012.3%209.7499C12%209.7499%2011.775%209.8249%2011.475%209.8999C11.325%209.9749%2011.175%209.9749%2011.025%2010.0499V10.1249L10.875%2010.2749C10.725%2010.3499%2010.65%2010.4249%2010.5%2010.5749L10.125%2010.9499H10.05L10.125%2010.8749L10.2%2010.7999C10.2%2010.7249%2010.275%2010.7249%2010.275%2010.6499C10.425%2010.5749%2010.5%2010.4249%2010.65%2010.3499C10.65%2010.3499%2010.65%2010.2749%2010.725%2010.2749L10.65%2010.3499C10.575%2010.4249%2010.575%2010.4999%2010.5%2010.4999V10.4249V10.3499L10.65%2010.1999C10.725%2010.1249%2010.8%2010.1249%2010.875%2010.0499H10.95C10.8%2010.1249%2010.725%2010.1249%2010.575%2010.1999H10.5H10.425C10.425%2010.1249%2010.5%2010.1249%2010.575%2010.0499H10.65C11.4%209.4499%2012.375%209.5999%2013.2%209.2999C13.275%209.2249%2013.35%209.2249%2013.425%209.1499C13.5%209.0749%2013.65%208.9999%2013.8%208.9249C13.95%208.7749%2014.1%208.6249%2014.175%208.3999V8.3249C13.875%208.6249%2013.575%208.8499%2013.2%209.0749C12.75%209.2249%2012.225%209.3749%2011.7%209.3749C11.7%209.2999%2011.775%209.2999%2011.775%209.2999C11.775%209.2249%2011.85%209.2249%2011.85%209.1499H11.925C11.925%209.1499%2011.925%209.0749%2012%209.0749H12.075C12%208.9999%2011.85%209.1499%2011.775%209.0749C11.85%208.9999%2011.775%208.9249%2011.85%208.9249H11.925C11.925%208.9249%2011.925%208.8499%2012%208.8499C12.375%208.6249%2012.675%208.4749%2012.975%208.3249C12.9%208.3249%2012.9%208.3999%2012.825%208.3249C12.9%208.3249%2012.825%208.2499%2012.9%208.2499C13.125%208.1749%2013.35%208.0249%2013.575%207.9499C13.5%207.9499%2013.425%208.0249%2013.35%207.9499C13.425%207.9499%2013.425%207.8749%2013.5%207.8749V7.7999C13.5%207.7249%2013.575%207.7999%2013.65%207.7249H13.575C13.65%207.6499%2013.725%207.5749%2013.875%207.5749C13.875%207.4999%2013.8%207.5749%2013.8%207.4999H13.875H13.5C13.425%207.4999%2013.5%207.4249%2013.5%207.4249C13.575%207.2749%2013.65%207.0499%2013.725%206.8999H13.65C13.425%207.1249%2013.05%207.2749%2012.75%207.3499H12.6C12.45%207.4249%2012.3%207.4249%2012.225%207.3499C12.15%207.2749%2012.075%207.1999%2012%207.1999C11.85%207.1249%2011.625%206.9749%2011.4%206.8999C10.875%206.7499%2010.275%206.5999%209.675%206.6749C9.9%206.5999%2010.2%206.5249%2010.5%206.4499C10.875%206.2999%2011.25%206.2249%2011.625%206.2249H11.4C11.1%206.2249%2010.725%206.2999%2010.425%206.3749C10.2%206.4499%209.975%206.5249%209.75%206.5249C9.6%206.5999%209.525%206.6749%209.375%206.6749V6.5999C9.6%206.2999%209.9%206.0749%2010.2%205.9999C10.575%205.9249%2011.025%205.9999%2011.4%206.0749C11.7%206.0749%2012%206.1499%2012.225%206.2249C12.3%206.2249%2012.375%206.3749%2012.45%206.4499C12.6%206.5249%2012.75%206.4499%2012.825%206.5249V6.3749C12.9%206.2999%2013.05%206.3749%2013.125%206.3749C13.275%206.2249%2012.975%206.0749%2012.9%205.9249V5.8499C13.05%205.9999%2013.275%206.1499%2013.425%206.2999C13.5%206.3749%2013.8%206.4499%2013.8%206.2999C13.65%206.0749%2013.5%205.8499%2013.275%205.6249V5.4749C13.2%205.4749%2013.2%205.4749%2013.2%205.3999C13.125%205.3249%2013.125%205.2499%2013.125%205.1749C13.05%205.0249%2013.125%204.8749%2013.05%204.7999C12.975%204.6499%2012.975%204.5749%2012.975%204.4249C12.9%204.0499%2012.825%203.6749%2012.75%203.3749C12.675%202.9249%2012.975%202.6249%2013.2%202.2499C13.35%201.9499%2013.575%201.7249%2013.8%201.4999C13.875%201.1999%2014.025%200.974902%2014.25%200.749902C14.475%200.524902%2014.7%200.374902%2014.925%200.299902C15.15%200.224902%2015.3%200.149902%2015.525%200.0749024L17.4%20-0.225098H18.75L20.1%20-9.76473e-05C20.175%20-9.76473e-05%2020.25%20-9.76324e-05%2020.25%200.0749024C20.325%200.149902%2020.475%200.224902%2020.55%200.224902C20.7%200.299902%2020.85%200.449902%2021%200.599902C21.075%200.674902%2021.15%200.824902%2021.075%200.899902C21%200.974902%2021%201.1999%2020.925%201.1999C20.775%201.2749%2020.625%201.2749%2020.475%201.2749C20.4%201.2749%2020.325%201.2749%2020.175%201.1999C20.55%201.3499%2020.85%201.4999%2021.075%201.7999C21.075%201.8749%2021.225%201.8749%2021.3%201.8749V1.9499C21.225%202.0249%2021.225%202.0249%2021.225%202.0999H21.3C21.375%202.0249%2021.375%201.7999%2021.525%201.8749C21.675%201.9499%2021.675%202.0999%2021.6%202.1749C21.525%202.2499%2021.45%202.3249%2021.3%202.3999V2.5499C21.375%202.6249%2021.375%202.6999%2021.45%202.8499C21.525%202.9999%2021.525%203.2249%2021.6%203.3749C21.675%203.7499%2021.75%204.0499%2021.75%204.4249C21.75%204.5749%2021.675%204.7999%2021.75%204.9499L21.975%205.3999C22.05%205.5499%2022.125%205.6249%2022.2%205.7749C22.35%205.9999%2022.65%206.2249%2022.5%206.5249ZM10.8%2010.4249C10.725%2010.4249%2010.725%2010.4999%2010.725%2010.4999C10.725%2010.4999%2010.8%2010.4999%2010.8%2010.4249ZM10.125%208.9249C10.125%208.9999%2010.2%208.9249%2010.2%208.9249C10.35%208.8499%2010.575%208.9249%2010.65%208.7749C10.575%208.6999%2010.5%208.7749%2010.5%208.6999C10.425%208.6999%2010.35%208.6999%2010.35%208.7749C10.275%208.8499%2010.125%208.8499%2010.125%208.9249Z'%20fill='white'%20/%3e%3cpath%20d='M20.925%204.3501C21%204.3501%2021.15%204.3501%2021.15%204.4251C21.075%204.5751%2020.85%204.6501%2020.7%204.8001H20.625C20.55%204.8751%2020.55%204.9501%2020.55%204.9501H20.325C20.4%205.0251%2020.55%205.1001%2020.7%205.1001L20.775%205.1751H20.925V5.2501C20.85%205.3251%2020.775%205.3251%2020.625%205.3251C20.775%205.4001%2021%205.4001%2021.15%205.3251C21.3%205.2501%2021.15%205.0251%2021.225%204.9501C21.15%204.9501%2021.225%204.8751%2021.15%204.8751C21.225%204.8001%2021.225%204.7251%2021.3%204.7251C21.375%204.7251%2021.375%204.7251%2021.45%204.6501C21.45%204.5751%2021.375%204.5751%2021.375%204.5001C21.525%204.4251%2021.6%204.2751%2021.6%204.1251C21.6%204.0501%2021.375%204.0501%2021.3%203.9751H20.925C20.775%203.9751%2020.7%204.0501%2020.55%204.0501L20.1%204.2751C20.25%204.2001%2020.4%204.2001%2020.625%204.1251C20.625%204.3501%2020.775%204.3501%2020.925%204.3501Z'%20fill='%237C7C7C'%20/%3e%3c/g%3e%3c/g%3e%3cpath%20d='M5.355%2025.5762C6.1866%2025.5762%206.9048%2025.2864%207.4088%2024.8076V23.2704H5.166V21.7458H9.198V25.4502C8.379%2026.5464%207.0056%2027.252%205.355%2027.252C2.4948%2027.252%200.5418%2025.11%200.5418%2022.59C0.5418%2020.07%202.4444%2017.928%205.229%2017.928C6.8292%2017.928%208.1396%2018.6462%208.946%2019.7172L7.5348%2020.8134C7.0308%2020.0952%206.237%2019.6038%205.229%2019.6038C3.5658%2019.6038%202.3814%2020.9016%202.3814%2022.59C2.3814%2024.2784%203.6288%2025.5762%205.355%2025.5762ZM15.2175%2017.928C17.9895%2017.928%2019.8921%2020.07%2019.8921%2022.59C19.8921%2025.11%2017.9895%2027.252%2015.2175%2027.252C12.4329%2027.252%2010.5303%2025.11%2010.5303%2022.59C10.5303%2020.07%2012.4329%2017.928%2015.2175%2017.928ZM15.2175%2025.5762C16.8681%2025.5762%2018.0525%2024.2784%2018.0525%2022.59C18.0525%2020.9016%2016.8681%2019.6038%2015.2175%2019.6038C13.5543%2019.6038%2012.3699%2020.9016%2012.3699%2022.59C12.3699%2024.2784%2013.5543%2025.5762%2015.2175%2025.5762ZM26.8084%2023.6988V18.18H28.5976V23.5476C28.5976%2025.866%2027.2368%2027.252%2025.0192%2027.252C22.8142%2027.252%2021.4534%2025.866%2021.4534%2023.5476V18.18H23.2426V23.6988C23.2426%2024.8832%2023.9104%2025.5762%2025.0318%2025.5762C26.128%2025.5762%2026.8084%2024.8832%2026.8084%2023.6988ZM29.7114%2018.18H31.614L34.2222%2025.0722L36.8304%2018.18H38.733L35.394%2027H33.0504L29.7114%2018.18ZM40.095%2027V18.18H45.2358V19.6668H41.8842V21.7584H44.7318V23.2452H41.8842V25.5132H45.2358V27H40.095ZM47.3149%2027V18.18H50.0113C51.9517%2018.18%2053.1487%2019.1754%2053.1487%2020.8134C53.1487%2021.8844%2052.6321%2022.6782%2051.7249%2023.094L54.4843%2027H52.3801L50.0239%2023.4342H49.1041V27H47.3149ZM50.1121%2019.6668H49.1041V21.9474H50.1121C50.8681%2021.9474%2051.3091%2021.5064%2051.3091%2020.7882C51.3091%2020.1204%2050.8681%2019.6668%2050.1121%2019.6668ZM55.6176%2027V18.18H57.9108L61.8546%2024.5556V18.18H63.6438V27H61.3506L57.4068%2020.6244V27H55.6176ZM66.1105%2027V18.18H71.2513V19.6668H67.8997V21.7584H70.7473V23.2452H67.8997V25.5132H71.2513V27H66.1105ZM73.3304%2027V18.18H75.5606L77.7152%2021.8844L79.8698%2018.18H82.1V27H80.3108V20.6748L78.3452%2023.976H77.0852L75.1196%2020.6748V27H73.3304ZM84.5617%2027V18.18H89.7025V19.6668H86.3509V21.7584H89.1985V23.2452H86.3509V25.5132H89.7025V27H84.5617ZM91.7816%2027V18.18H94.0748L98.0186%2024.5556V18.18H99.8078V27H97.5146L93.5708%2020.6244V27H91.7816ZM101.367%2019.8054V18.18H108.6V19.8054H105.878V27H104.089V19.8054H101.367Z'%20fill='%23161616'%20/%3e%3cg%20clip-path='url(%23clip2_5795_13250)'%3e%3cg%20clip-path='url(%23clip3_5795_13250)'%3e%3cg%20clip-path='url(%23clip4_5795_13250)'%3e%3cg%20clip-path='url(%23clip5_5795_13250)'%3e%3cg%20clip-path='url(%23clip6_5795_13250)'%3e%3cpath%20d='M30.775%2056.45C31.15%2055.5%2030.7%2055.125%2030.15%2055.125C29.225%2055.125%2028.175%2056.75%2028.175%2058.05C28.175%2058.675%2028.475%2059%2028.925%2059C29.45%2059%2030%2058.5%2030.475%2057.625H30.225C29.925%2058%2029.575%2058.275%2029.25%2058.275C28.925%2058.275%2028.75%2058.075%2028.75%2057.625C28.7558%2057.4396%2028.781%2057.2552%2028.825%2057.075L30.775%2056.45ZM29.775%2055.675C30.05%2055.675%2030.275%2055.875%2030.15%2056.325L28.95%2056.65C29.15%2056.1%2029.5%2055.65%2029.8%2055.65L29.775%2055.675Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cpath%20d='M30.15%2054.6999L31.275%2053.6749V53.5249H30.525L29.85%2054.6999H30.175H30.15Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip7_5795_13250)'%3e%3cpath%20d='M25.975%2055.675H26.625L25.575%2058.525C25.5421%2058.576%2025.5242%2058.6352%2025.5232%2058.6959C25.5222%2058.7565%2025.5382%2058.8163%2025.5694%2058.8683C25.6007%2058.9204%2025.6458%2058.9626%2025.6998%2058.9903C25.7538%2059.018%2025.8145%2059.03%2025.875%2059.025C26.625%2059.025%2027.475%2058.375%2027.825%2057.475H27.65C27.3359%2057.9021%2026.8865%2058.2105%2026.375%2058.35L27.3%2055.675H28.3L28.425%2055.275H27.475L27.8%2054.25H27.45L26.775%2055.275L25.975%2055.375V55.675Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip8_5795_13250)'%3e%3cpath%20d='M25.3%2055.5249C25.375%2055.2749%2025.2%2055.1249%2025.05%2055.1249C24.5%2055.1249%2023.8%2055.6499%2023.55%2056.3749H23.725C23.9026%2056.0881%2024.1778%2055.875%2024.5%2055.7749L23.425%2058.5999C23.4034%2058.6422%2023.3932%2058.6894%2023.3952%2058.7368C23.3973%2058.7843%2023.4116%2058.8304%2023.4368%2058.8707C23.4619%2058.911%2023.4971%2058.9441%2023.5389%2058.9667C23.5806%2058.9893%2023.6275%2059.0008%2023.675%2058.9999C24.225%2058.9999%2024.85%2058.4999%2025.125%2057.7499H24.9C24.7378%2058.0509%2024.471%2058.2821%2024.15%2058.3999L25.3%2055.5249ZM25.4%2054.4499C25.4591%2054.4499%2025.5176%2054.4383%2025.5722%2054.4156C25.6268%2054.393%2025.6764%2054.3599%2025.7182%2054.3181C25.76%2054.2763%2025.7932%2054.2267%2025.8158%2054.1721C25.8384%2054.1175%2025.85%2054.059%2025.85%2053.9999C25.8534%2053.9387%2025.8443%2053.8775%2025.8232%2053.82C25.8021%2053.7625%2025.7695%2053.7099%2025.7274%2053.6654C25.6853%2053.6209%2025.6345%2053.5855%2025.5782%2053.5614C25.5219%2053.5372%2025.4613%2053.5248%2025.4%2053.5249C25.2807%2053.5249%2025.1662%2053.5723%2025.0818%2053.6567C24.9974%2053.7411%2024.95%2053.8556%2024.95%2053.9749C24.95%2054.0943%2024.9974%2054.2087%2025.0818%2054.2931C25.1662%2054.3775%2025.2807%2054.4249%2025.4%2054.4249'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip9_5795_13250)'%3e%3cpath%20d='M20.125%2055.8999C20.3%2055.8999%2020.375%2056.1499%2020.125%2056.7499L19.375%2058.4499C19.2%2058.7749%2019.375%2058.9999%2019.675%2058.9999C19.7577%2059.0148%2019.843%2058.997%2019.9129%2058.9504C19.9828%2058.9038%2020.0319%2058.8319%2020.05%2058.7499L20.8%2056.7499C21.15%2056.3249%2021.8%2055.8749%2022.05%2055.8749C22.3%2055.8749%2022.25%2056.0249%2022.125%2056.2749L20.975%2058.5249C20.9497%2058.5734%2020.9371%2058.6276%2020.9383%2058.6823C20.9395%2058.737%2020.9545%2058.7906%2020.9819%2058.838C21.0094%2058.8854%2021.0483%2058.925%2021.0952%2058.9533C21.142%2058.9816%2021.1953%2058.9976%2021.25%2058.9999C21.825%2058.9999%2022.5%2058.4999%2022.75%2057.7499H22.6C22.4209%2058.051%2022.1355%2058.274%2021.8%2058.3749L22.8%2056.3749C22.9222%2056.1611%2022.9908%2055.9209%2023%2055.6749C23.0079%2055.6007%2022.9991%2055.5257%2022.9742%2055.4554C22.9494%2055.3851%2022.9091%2055.3212%2022.8564%2055.2685C22.8036%2055.2158%2022.7398%2055.1755%2022.6695%2055.1507C22.5991%2055.1258%2022.5242%2055.117%2022.45%2055.1249C21.95%2055.1249%2021.55%2055.6749%2020.95%2056.3749V55.8249C20.95%2055.4749%2020.825%2055.1249%2020.5%2055.1249C20.1%2055.1249%2019.75%2055.7499%2019.475%2056.3499H19.65C19.825%2056.0749%2019.975%2055.8999%2020.15%2055.8999'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip10_5795_13250)'%3e%3cpath%20d='M19.375%2056C19.5%2055.525%2019.425%2055.125%2019.075%2055.125C18.625%2055.125%2018.5%2055.425%2018.075%2056.375V55.825C18.05%2055.45%2017.925%2055.125%2017.575%2055.125C17.2%2055.125%2016.85%2055.75%2016.55%2056.375H16.75C16.925%2056.05%2017.125%2055.875%2017.25%2055.875C17.425%2055.875%2017.5%2056.125%2017.25%2056.725L16.5%2058.425C16.325%2058.75%2016.5%2058.95%2016.8%2058.95C16.8827%2058.9649%2016.968%2058.9472%2017.0379%2058.9006C17.1078%2058.8539%2017.1569%2058.7821%2017.175%2058.7L17.925%2056.7C18.1317%2056.4415%2018.3486%2056.1913%2018.575%2055.95H19.375V56Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip11_5795_13250)'%3e%3cpath%20d='M16.175%2056.45C16.55%2055.5%2016.1%2055.125%2015.55%2055.125C14.625%2055.125%2013.575%2056.75%2013.575%2058.05C13.575%2058.675%2013.875%2059%2014.325%2059C14.85%2059%2015.4%2058.5%2015.875%2057.625H15.625C15.325%2058%2014.975%2058.275%2014.65%2058.275C14.325%2058.275%2014.15%2058.075%2014.15%2057.625C14.1559%2057.4396%2014.181%2057.2552%2014.225%2057.075L16.175%2056.45ZM15.175%2055.675C15.45%2055.675%2015.675%2055.875%2015.55%2056.325L14.35%2056.65C14.55%2056.1%2014.9%2055.65%2015.2%2055.65L15.175%2055.675Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip12_5795_13250)'%3e%3cpath%20d='M11.35%2055.675H12L10.95%2058.525C10.9171%2058.576%2010.8992%2058.6352%2010.8982%2058.6959C10.8972%2058.7565%2010.9132%2058.8163%2010.9444%2058.8683C10.9757%2058.9204%2011.0208%2058.9626%2011.0748%2058.9903C11.1288%2059.018%2011.1895%2059.03%2011.25%2059.025C12%2059.025%2012.85%2058.375%2013.2%2057.475H13.025C12.7109%2057.9021%2012.2615%2058.2105%2011.75%2058.35L12.675%2055.675H13.675L13.8%2055.275H12.85L13.175%2054.25H12.825L12.15%2055.275L11.35%2055.375V55.675Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip13_5795_13250)'%3e%3cpath%20d='M9.84996%2058.2252C9.69996%2058.2252%209.59996%2057.9752%209.84996%2057.3752L10.875%2054.9752L10.575%2054.9502L10.25%2055.2752H10.175C8.74996%2055.2752%207.22496%2057.1002%207.22496%2058.5002C7.22137%2058.5701%207.23249%2058.64%207.25761%2058.7053C7.28272%2058.7706%207.32126%2058.8299%207.37075%2058.8794C7.42024%2058.9289%207.47956%2058.9674%207.54488%2058.9926C7.6102%2059.0177%207.68007%2059.0288%207.74996%2059.0252C8.17496%2059.0252%208.57496%2058.4252%209.04996%2057.7752L9.02496%2058.0252C8.94996%2058.6752%209.17496%2059.0252%209.52496%2059.0252C9.89996%2059.0252%2010.275%2058.4252%2010.525%2057.8002H10.35C10.175%2058.0752%209.97496%2058.2502%209.84996%2058.2502V58.2252ZM9.19996%2057.4002C8.87496%2057.8002%208.34996%2058.2752%208.12496%2058.2752C7.99996%2058.2752%207.89996%2058.1502%207.89996%2057.8752C7.89996%2057.0002%208.89996%2055.8252%209.39996%2055.8252C9.51862%2055.822%209.63696%2055.8389%209.74996%2055.8752L9.19996%2057.4002Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip14_5795_13250)'%3e%3cpath%20d='M7.85004%2056C7.97504%2055.525%207.90004%2055.125%207.55004%2055.125C7.10004%2055.125%206.97504%2055.425%206.55004%2056.375V55.825C6.52504%2055.45%206.40004%2055.125%206.05004%2055.125C5.67504%2055.125%205.32504%2055.75%205.02504%2056.375H5.22504C5.40004%2056.05%205.60004%2055.875%205.72504%2055.875C5.90004%2055.875%205.97504%2056.125%205.72504%2056.725L4.97504%2058.425C4.80004%2058.75%204.97504%2058.95%205.27504%2058.95C5.35775%2058.9649%205.443%2058.9472%205.51292%2058.9006C5.58284%2058.8539%205.63198%2058.7821%205.65004%2058.7L6.40004%2056.7C6.60676%2056.4415%206.82359%2056.1913%207.05004%2055.95H7.85004V56Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip15_5795_13250)'%3e%3cpath%20d='M2.79998%2058.8499L2.87498%2058.6249C1.92498%2058.4499%201.79998%2058.4499%202.19998%2057.4249L2.54998%2056.4499H3.29998C3.77498%2056.4499%203.77498%2056.6749%203.69998%2057.1999H3.94998L4.59998%2055.4749H4.34998C4.09998%2055.8749%203.89998%2056.1999%203.39998%2056.1999H2.64998L3.14998%2054.7999C3.34998%2054.2999%203.42498%2054.1999%204.07498%2054.1999H4.24998C4.89998%2054.1999%204.99998%2054.3749%204.99998%2055.0749H5.24998L5.47498%2053.8999H1.82498L1.74998%2054.1249C2.49998%2054.2749%202.57498%2054.3499%202.24998%2055.3249L1.42498%2057.3999C1.04998%2058.3749%200.924976%2058.4499%200.0499756%2058.5999L-0.0250244%2058.8249L2.79998%2058.8499Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip16_5795_13250)'%3e%3cg%20clip-path='url(%23clip17_5795_13250)'%3e%3cpath%20d='M21.925%2048.2C22.3%2047.25%2021.85%2046.875%2021.3%2046.875C20.375%2046.875%2019.325%2048.5%2019.325%2049.8C19.325%2050.425%2019.625%2050.75%2020.075%2050.75C20.6%2050.75%2021.15%2050.25%2021.625%2049.375H21.375C21.075%2049.75%2020.725%2050.025%2020.4%2050.025C20.075%2050.025%2019.9%2049.825%2019.9%2049.375C19.9059%2049.1896%2019.931%2049.0052%2019.975%2048.825L21.925%2048.2ZM20.925%2047.425C21.2%2047.425%2021.425%2047.625%2021.3%2048.075L20.1%2048.4C20.3%2047.85%2020.65%2047.4%2020.95%2047.4L20.925%2047.425Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cpath%20d='M21.3%2046.4499L22.425%2045.4249V45.2749H21.675L21%2046.4499H21.325H21.3Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip18_5795_13250)'%3e%3cpath%20d='M17.125%2047.425H17.775L16.725%2050.275C16.6921%2050.326%2016.6742%2050.3852%2016.6732%2050.4459C16.6722%2050.5065%2016.6882%2050.5663%2016.7195%2050.6183C16.7507%2050.6704%2016.7959%2050.7126%2016.8499%2050.7403C16.9039%2050.768%2016.9645%2050.78%2017.025%2050.775C17.775%2050.775%2018.625%2050.125%2018.975%2049.225H18.8C18.4859%2049.6521%2018.0365%2049.9605%2017.525%2050.1L18.45%2047.425H19.45L19.575%2047.025H18.625L18.95%2046H18.6L17.925%2047.025L17.125%2047.125V47.425Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip19_5795_13250)'%3e%3cpath%20d='M16.45%2047.25C16.525%2047%2016.35%2046.85%2016.2%2046.85C15.65%2046.85%2014.95%2047.375%2014.7%2048.1H14.875C15.0526%2047.8132%2015.3278%2047.6001%2015.65%2047.5L14.575%2050.325C14.5534%2050.3673%2014.5431%2050.4145%2014.5452%2050.4619C14.5472%2050.5094%2014.5615%2050.5555%2014.5867%2050.5958C14.6119%2050.6361%2014.6471%2050.6692%2014.6888%2050.6918C14.7306%2050.7144%2014.7775%2050.7259%2014.825%2050.725C15.375%2050.725%2016%2050.225%2016.275%2049.475H16.05C15.8878%2049.776%2015.621%2050.0072%2015.3%2050.125L16.45%2047.25ZM16.55%2046.175C16.6091%2046.175%2016.6676%2046.1634%2016.7222%2046.1407C16.7768%2046.1181%2016.8264%2046.085%2016.8682%2046.0432C16.91%2046.0014%2016.9431%2045.9518%2016.9657%2045.8972C16.9884%2045.8426%2017%2045.7841%2017%2045.725C17.0034%2045.6638%2016.9943%2045.6026%2016.9732%2045.5451C16.9521%2045.4876%2016.9195%2045.435%2016.8774%2045.3905C16.8352%2045.346%2016.7845%2045.3106%2016.7282%2045.2865C16.6719%2045.2623%2016.6113%2045.2499%2016.55%2045.25C16.4306%2045.25%2016.3162%2045.2974%2016.2318%2045.3818C16.1474%2045.4662%2016.1%2045.5807%2016.1%2045.7C16.1%2045.8193%2016.1474%2045.9338%2016.2318%2046.0182C16.3162%2046.1026%2016.4306%2046.15%2016.55%2046.15'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip20_5795_13250)'%3e%3cpath%20d='M13.075%2050.1249L14.875%2045.3499L14.8%2045.2749L13.55%2045.4249V45.5749L13.8%2045.7499C14.025%2045.9249%2013.95%2046.0749%2013.75%2046.5999L12.4%2050.2499C12.3685%2050.2991%2012.3509%2050.3559%2012.349%2050.4142C12.3471%2050.4726%2012.3609%2050.5304%2012.389%2050.5815C12.4172%2050.6327%2012.4586%2050.6753%2012.5089%2050.705C12.5592%2050.7346%2012.6166%2050.7501%2012.675%2050.7499C13.25%2050.7499%2013.85%2050.2249%2014.125%2049.4999H13.95C13.7377%2049.8015%2013.4291%2050.0219%2013.075%2050.1249Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip21_5795_13250)'%3e%3cpath%20d='M11.35%2049.9752C11.2%2049.9752%2011.1%2049.7252%2011.35%2049.1252L12.375%2046.7252L12.075%2046.7002L11.75%2047.0252H11.675C10.25%2047.0252%208.72496%2048.8502%208.72496%2050.2502C8.72137%2050.3201%208.73249%2050.39%208.75761%2050.4553C8.78272%2050.5206%208.82126%2050.5799%208.87075%2050.6294C8.92024%2050.6789%208.97956%2050.7174%209.04488%2050.7426C9.1102%2050.7677%209.18007%2050.7788%209.24996%2050.7752C9.67496%2050.7752%2010.075%2050.1752%2010.55%2049.5252L10.525%2049.7752C10.45%2050.4252%2010.675%2050.7752%2011.025%2050.7752C11.4%2050.7752%2011.775%2050.1752%2012.025%2049.5502H11.85C11.675%2049.8252%2011.475%2050.0002%2011.35%2050.0002V49.9752ZM10.7%2049.1502C10.375%2049.5502%209.84996%2050.0252%209.62496%2050.0252C9.49996%2050.0252%209.39996%2049.9002%209.39996%2049.6252C9.39996%2048.7502%2010.4%2047.5752%2010.9%2047.5752C11.0186%2047.572%2011.137%2047.5889%2011.25%2047.6252L10.7%2049.1502Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip22_5795_13250)'%3e%3cpath%20d='M9.15%2047.0002H8.075C7.91845%2046.8999%207.73591%2046.8477%207.55%2046.8502C7.11669%2046.8501%206.70075%2047.0205%206.39202%2047.3246C6.0833%2047.6286%205.90657%2048.0419%205.9%2048.4752C5.88969%2048.5836%205.90095%2048.693%205.93314%2048.797C5.96532%2048.9011%206.01779%2048.9977%206.08751%2049.0814C6.15724%2049.1651%206.24284%2049.2341%206.33938%2049.2845C6.43592%2049.335%206.54149%2049.3658%206.65%2049.3752C6.175%2049.5752%205.9%2049.8252%205.9%2050.1002C5.9%2050.1772%205.92093%2050.2528%205.96057%2050.3188C6.0002%2050.3849%206.05703%2050.4389%206.125%2050.4752C5.05%2050.8002%204.625%2051.1752%204.625%2051.6502C4.625%2052.1502%205.275%2052.3502%206.025%2052.3502C7.35%2052.3502%208.425%2051.6752%208.425%2051.0752C8.425%2050.6252%208.025%2050.4502%207.35%2050.2502C6.8%2050.0752%206.55%2050.0502%206.55%2049.8502C6.56644%2049.752%206.60704%2049.6595%206.66814%2049.581C6.72924%2049.5024%206.80892%2049.4403%206.9%2049.4002C7.31131%2049.369%207.69601%2049.1848%207.97828%2048.884C8.26056%2048.5832%208.41993%2048.1876%208.425%2047.7752C8.42962%2047.6483%208.41272%2047.5215%208.375%2047.4002H9L9.15%2047.0002ZM7.1%2050.9002C7.625%2051.0752%207.85%2051.1502%207.85%2051.3002C7.85%2051.6502%207.35%2051.9252%206.45%2051.9252C5.775%2051.9252%205.45%2051.7752%205.45%2051.4252C5.45%2051.0502%205.8%2050.8002%206.325%2050.6002C6.56712%2050.7189%206.81783%2050.8191%207.075%2050.9002H7.1ZM6.9%2049.1002C6.65%2049.1002%206.575%2048.9002%206.575%2048.6752C6.575%2047.9752%206.925%2047.1252%207.45%2047.1252C7.7%2047.1252%207.775%2047.3252%207.775%2047.5252C7.775%2048.2502%207.425%2049.1002%206.9%2049.1002Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip23_5795_13250)'%3e%3cpath%20d='M3.575%2048.2252C4.05%2048.2252%204.075%2048.4252%203.975%2048.9252H4.25L4.875%2047.2252H4.625C4.375%2047.6252%204.2%2047.9502%203.675%2047.9502H2.65L3.15%2046.5502C3.325%2046.0502%203.4%2045.9502%204.075%2045.9502H4.5C5.15%2045.9502%205.25%2046.1252%205.25%2046.8252H5.5L5.725%2045.6502H1.825L1.75%2045.8752C2.5%2046.0252%202.575%2046.1002%202.25%2047.0752L1.45%2049.1752C1.075%2050.1502%200.95%2050.2252%200.05%2050.3752L0%2050.6252H4.35L5.15%2049.3752H4.85C4.35%2049.8752%203.85%2050.3252%202.85%2050.3252C1.675%2050.3252%201.775%2050.2502%202.175%2049.1752L2.525%2048.2252H3.575ZM4.15%2045.2752L5.25%2044.4752V44.3252H4.5L3.85%2045.3002H4.15V45.2752Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip24_5795_13250)'%3e%3cg%20clip-path='url(%23clip25_5795_13250)'%3e%3cpath%20d='M21.8%2039.95C22.175%2039%2021.725%2038.625%2021.175%2038.625C20.25%2038.625%2019.2%2040.25%2019.2%2041.55C19.2%2042.175%2019.5%2042.5%2019.95%2042.5C20.475%2042.5%2021.025%2042%2021.5%2041.125H21.25C20.95%2041.5%2020.6%2041.775%2020.275%2041.775C19.95%2041.775%2019.775%2041.575%2019.775%2041.125C19.7809%2040.9396%2019.806%2040.7552%2019.85%2040.575L21.8%2039.95ZM20.8%2039.175C21.075%2039.175%2021.3%2039.375%2021.175%2039.825L19.975%2040.15C20.175%2039.6%2020.525%2039.15%2020.825%2039.15L20.8%2039.175Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cpath%20d='M21.175%2038.1999L22.3%2037.1749V37.0249H21.55L20.875%2038.1999H21.2H21.175Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip26_5795_13250)'%3e%3cpath%20d='M16.975%2039.1501H17.625L16.575%2042.0001C16.5421%2042.0511%2016.5242%2042.1103%2016.5232%2042.171C16.5222%2042.2316%2016.5382%2042.2914%2016.5694%2042.3434C16.6007%2042.3955%2016.6458%2042.4377%2016.6998%2042.4654C16.7538%2042.4931%2016.8145%2042.5051%2016.875%2042.5001C17.625%2042.5001%2018.475%2041.8501%2018.825%2040.9501H18.65C18.3359%2041.3772%2017.8865%2041.6856%2017.375%2041.8251L18.3%2039.1501H19.3L19.425%2038.7501H18.475L18.8%2037.7251H18.45L17.775%2038.7501L16.975%2038.8501V39.1501Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip27_5795_13250)'%3e%3cpath%20d='M16.65%2039.5C16.775%2039.025%2016.7%2038.625%2016.35%2038.625C15.9%2038.625%2015.775%2038.925%2015.35%2039.875V39.325C15.325%2038.95%2015.2%2038.625%2014.85%2038.625C14.475%2038.625%2014.125%2039.25%2013.825%2039.875H14.025C14.2%2039.55%2014.4%2039.375%2014.525%2039.375C14.7%2039.375%2014.775%2039.625%2014.525%2040.225L13.775%2041.925C13.6%2042.25%2013.775%2042.45%2014.075%2042.45C14.1577%2042.4649%2014.243%2042.4472%2014.3129%2042.4006C14.3828%2042.3539%2014.432%2042.2821%2014.45%2042.2L15.2%2040.2C15.4067%2039.9415%2015.6236%2039.6913%2015.85%2039.45H16.65V39.5Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip28_5795_13250)'%3e%3cpath%20d='M13.45%2039.9251C13.825%2038.9751%2013.375%2038.6001%2012.825%2038.6001C11.9%2038.6001%2010.85%2040.2251%2010.85%2041.5251C10.85%2042.1501%2011.15%2042.4751%2011.6%2042.4751C12.125%2042.4751%2012.675%2041.9751%2013.15%2041.1001H12.9C12.6%2041.4751%2012.25%2041.7501%2011.925%2041.7501C11.6%2041.7501%2011.425%2041.5501%2011.425%2041.1001C11.4308%2040.9147%2011.456%2040.7303%2011.5%2040.5501L13.45%2039.9251ZM12.45%2039.1501C12.725%2039.1501%2012.95%2039.3501%2012.825%2039.8001L11.625%2040.1251C11.825%2039.5751%2012.175%2039.1251%2012.475%2039.1251L12.45%2039.1501Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip29_5795_13250)'%3e%3cpath%20d='M10.2%2038.6249C9.69998%2038.6249%209.19998%2039.1749%208.74998%2039.8249L9.74998%2037.0999L9.69998%2037.0249L8.44998%2037.1749V37.2749L8.69998%2037.4749C8.92498%2037.6499%208.84998%2037.7999%208.64998%2038.3249L7.54998%2041.2249C7.46796%2041.4023%207.40106%2041.5863%207.34998%2041.7749C7.34998%2042.1249%207.79998%2042.4499%208.22498%2042.4499C9.17498%2042.4499%2010.725%2040.7249%2010.725%2039.3999C10.725%2038.8249%2010.6%2038.5999%2010.2%2038.5999V38.6249ZM8.54998%2041.8999C8.34998%2041.8999%208.07498%2041.7249%208.07498%2041.5749C8.12768%2041.3868%208.19454%2041.2029%208.27498%2041.0249L8.59998%2040.1999C8.92498%2039.7749%209.44998%2039.3499%209.74998%2039.3499C9.92498%2039.3499%2010.05%2039.4499%2010.05%2039.7249C10.05%2040.4999%209.32498%2041.8999%208.54998%2041.8999Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip30_5795_13250)'%3e%3cpath%20d='M7.05003%2039C7.12503%2038.75%206.95003%2038.6%206.80003%2038.6C6.25003%2038.6%205.55003%2039.125%205.30003%2039.85H5.47503C5.65263%2039.5632%205.92784%2039.3501%206.25003%2039.25L5.17503%2042.075C5.15343%2042.1173%205.14316%2042.1645%205.14522%2042.2119C5.14727%2042.2594%205.16158%2042.3055%205.18676%2042.3458C5.21193%2042.3861%205.24711%2042.4192%205.28887%2042.4418C5.33063%2042.4644%205.37754%2042.4759%205.42503%2042.475C5.97503%2042.475%206.60003%2041.975%206.87503%2041.225H6.65003C6.4878%2041.526%206.22102%2041.7572%205.90003%2041.875L7.05003%2039ZM7.15003%2037.925C7.20913%2037.925%207.26764%2037.9134%207.32224%2037.8907C7.37684%2037.8681%207.42645%2037.835%207.46823%2037.7932C7.51002%2037.7514%207.54316%2037.7018%207.56578%2037.6472C7.58839%2037.5926%207.60003%2037.5341%207.60003%2037.475C7.60344%2037.4138%207.59432%2037.3526%207.57323%2037.2951C7.55214%2037.2376%207.51954%2037.185%207.47741%2037.1405C7.43528%2037.096%207.38451%2037.0606%207.32822%2037.0365C7.27193%2037.0123%207.21129%2036.9999%207.15003%2037C7.03069%2037%206.91623%2037.0474%206.83184%2037.1318C6.74744%2037.2162%206.70003%2037.3307%206.70003%2037.45C6.70003%2037.5693%206.74744%2037.6838%206.83184%2037.7682C6.91623%2037.8526%207.03069%2037.9%207.15003%2037.9'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip31_5795_13250)'%3e%3cpath%20d='M4.4%2037.3501H1.825L1.75%2037.5751C2.5%2037.7251%202.575%2037.8001%202.25%2038.7751L1.45%2040.9001C1.075%2041.8751%200.95%2041.9501%200.075%2042.1001L0%2042.3501H3.925L4.8%2040.8501H4.5C4%2041.3501%203.45%2042.0501%202.575%2042.0501C1.9%2042.0501%201.825%2041.9251%202.175%2040.9251L2.95%2038.8001C3.3%2037.8251%203.45%2037.7501%204.325%2037.6001L4.4%2037.3501Z'%20fill='%23161616'%20/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_5795_13250'%20x1='0'%20y1='6'%20x2='33'%20y2='6'%20gradientUnits='userSpaceOnUse'%20%3e%3cstop%20stop-color='%23000091'%20/%3e%3cstop%20offset='0.5'%20stop-color='%23000091'%20/%3e%3cstop%20offset='0.5'%20stop-color='%23E1000F'%20/%3e%3cstop%20offset='1'%20stop-color='%23E1000F'%20/%3e%3c/linearGradient%3e%3cclipPath%20id='clip0_5795_13250'%3e%3crect%20width='33'%20height='12'%20fill='white'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip1_5795_13250'%3e%3crect%20width='33'%20height='13.5'%20fill='white'%20transform='translate(0%20-0.75)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip2_5795_13250'%3e%3crect%20width='108.88'%20height='26.5'%20fill='white'%20transform='translate(0%2033)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip3_5795_13250'%3e%3crect%20width='63'%20height='45'%20fill='white'%20transform='translate(0%2037)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip4_5795_13250'%3e%3crect%20width='31.5'%20height='22.5'%20fill='white'%20transform='translate(0%2037)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip5_5795_13250'%3e%3crect%20width='3.1'%20height='5.45'%20fill='white'%20transform='translate(28.175%2053.5249)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip6_5795_13250'%3e%3crect%20width='2.75'%20height='3.875'%20fill='white'%20transform='translate(28.175%2055.125)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip7_5795_13250'%3e%3crect%20width='2.875'%20height='4.75'%20fill='white'%20transform='translate(25.55%2054.25)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip8_5795_13250'%3e%3crect%20width='2.45'%20height='5.475'%20fill='white'%20transform='translate(23.4%2053.5249)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip9_5795_13250'%3e%3crect%20width='3.7'%20height='3.875'%20fill='white'%20transform='translate(19.3%2055.125)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip10_5795_13250'%3e%3crect%20width='3'%20height='3.875'%20fill='white'%20transform='translate(16.425%2055.125)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip11_5795_13250'%3e%3crect%20width='2.75'%20height='3.875'%20fill='white'%20transform='translate(13.575%2055.125)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip12_5795_13250'%3e%3crect%20width='2.875'%20height='4.75'%20fill='white'%20transform='translate(10.925%2054.25)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip13_5795_13250'%3e%3crect%20width='3.675'%20height='4.05'%20fill='white'%20transform='translate(7.22498%2054.9502)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip14_5795_13250'%3e%3crect%20width='3'%20height='3.875'%20fill='white'%20transform='translate(4.90002%2055.125)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip15_5795_13250'%3e%3crect%20width='5.475'%20height='4.95'%20fill='white'%20transform='translate(0%2053.8999)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip16_5795_13250'%3e%3crect%20width='3.1'%20height='5.45'%20fill='white'%20transform='translate(19.325%2045.2749)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip17_5795_13250'%3e%3crect%20width='2.75'%20height='3.875'%20fill='white'%20transform='translate(19.325%2046.875)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip18_5795_13250'%3e%3crect%20width='2.875'%20height='4.75'%20fill='white'%20transform='translate(16.7%2046)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip19_5795_13250'%3e%3crect%20width='2.45'%20height='5.475'%20fill='white'%20transform='translate(14.55%2045.25)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip20_5795_13250'%3e%3crect%20width='2.525'%20height='5.475'%20fill='white'%20transform='translate(12.35%2045.2749)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip21_5795_13250'%3e%3crect%20width='3.675'%20height='4.05'%20fill='white'%20transform='translate(8.72498%2046.7002)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip22_5795_13250'%3e%3crect%20width='4.5'%20height='5.5'%20fill='white'%20transform='translate(4.65002%2046.8501)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip23_5795_13250'%3e%3crect%20width='5.75'%20height='6.275'%20fill='white'%20transform='translate(0%2044.3252)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip24_5795_13250'%3e%3crect%20width='3.1'%20height='5.45'%20fill='white'%20transform='translate(19.2%2037.0249)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip25_5795_13250'%3e%3crect%20width='2.75'%20height='3.875'%20fill='white'%20transform='translate(19.2%2038.625)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip26_5795_13250'%3e%3crect%20width='2.875'%20height='4.75'%20fill='white'%20transform='translate(16.55%2037.7251)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip27_5795_13250'%3e%3crect%20width='3'%20height='3.875'%20fill='white'%20transform='translate(13.7%2038.625)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip28_5795_13250'%3e%3crect%20width='2.75'%20height='3.875'%20fill='white'%20transform='translate(10.85%2038.6001)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip29_5795_13250'%3e%3crect%20width='3.4'%20height='5.45'%20fill='white'%20transform='translate(7.34998%2037.0249)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip30_5795_13250'%3e%3crect%20width='2.45'%20height='5.475'%20fill='white'%20transform='translate(5.15002%2037)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip31_5795_13250'%3e%3crect%20width='4.8'%20height='4.975'%20fill='white'%20transform='translate(0%2037.3501)'%20/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Nv=()=>{const{t}=pe.useCunningham();return b.jsxs("footer",{className:"c__footer",children:[b.jsx("div",{className:"c__footer__stripe"}),b.jsxs("div",{className:"c__footer__content",children:[b.jsxs("div",{className:"c__footer__content__top",children:[b.jsx("div",{children:b.jsx("div",{className:"c__footer__content__top__logo",children:b.jsx("img",{className:"c__footer__logo",alt:"",width:"0",height:"0",decoding:"async","data-nimg":"1",src:kv})})}),b.jsx("div",{className:"c__footer__content__top__links",children:[{label:"legifrance.gouv.fr",href:"https://legifrance.gouv.fr/"},{label:"info.gouv.fr",href:"https://info.gouv.fr/"},{label:"service-public.fr",href:"https://service-public.fr/"},{label:"data.gouv.fr",href:"https://data.gouv.fr/"}].map(({label:e,href:n})=>b.jsxs("a",{href:n,target:"_blank",children:[b.jsx("span",{children:e}),b.jsx("img",{alt:"",width:"18",decoding:"async","data-nimg":"1",src:_s})]},e))})]}),b.jsx("div",{className:"c__footer__content__middle",children:[{label:t("components.footer.links.legal"),href:"/legal-notice"},{label:t("components.footer.links.personal_data"),href:"/personal-data-cookies"},{label:t("components.footer.links.accessibility"),href:"/accessibility"}].map(({label:e,href:n})=>b.jsx("a",{href:n,children:b.jsx("span",{children:e})},e))}),b.jsxs("p",{className:"c__footer__content__mention",children:[t("components.footer.mention")," ",b.jsxs("a",{href:"https://github.com/etalab/licence-ouverte/blob/master/LO.md",target:"__blank",children:[b.jsx("span",{children:t("components.footer.license")}),b.jsx("img",{alt:"",width:"18",decoding:"async","data-nimg":"1",src:_s})]})]})]})]})},Rv=t=>b.jsx(xv,{...t,className:"c__filter",children:b.jsx(Mv,{...t})}),Mv=t=>{const e=c.useContext(Vf),n=e!=null&&e.selectedItem?t.options.find(r=>{var i;return r.value===((i=e.selectedItem)==null?void 0:i.key)}):null;return b.jsxs(b.Fragment,{children:[b.jsxs(M5,{className:Me("c__filter__button",{"c__filter__button--active":!!n}),children:[b.jsx(k5,{className:"c__filter__label",children:n?b.jsxs(b.Fragment,{children:[t.label," : ",n.label]}):b.jsx(b.Fragment,{children:t.label})}),b.jsx("span",{"aria-hidden":"true",className:Me("material-icons c__filter__button__icon",{opened:e==null?void 0:e.isOpen}),children:"keyboard_arrow_down"})]}),b.jsx(jf,{className:"c__dropdown-menu",children:b.jsx(ov,{children:t.options.map(r=>b.jsxs(c.Fragment,{children:[b.jsx(sv,{id:r.value,className:"c__dropdown-menu-item",children:b.jsxs("div",{className:"c__filter__item",children:[r.render?r.render():r.label,(t.selectedKey===r.value||r.isChecked)&&b.jsx("span",{className:"material-icons checked",children:"check"})]})},r.value),r.showSeparator&&b.jsx(Af,{})]},r.value))})})]})},Lv=({logo:t,mainButton:e,banner:n,title:r,subtitle:i})=>b.jsx("div",{className:"c__hero",children:b.jsxs("div",{className:"c__hero__display",children:[b.jsxs("div",{className:"c__hero__display__captions",children:[t,b.jsx("h2",{children:r}),b.jsx("span",{className:"c__hero__display__captions__subtitle",children:i}),e||b.jsx(sc,{})]}),b.jsx("img",{src:n,alt:""})]})}),Av=({children:t})=>b.jsx("div",{className:"c__home-gutter",children:t}),Bf=(t,e,n=void 0)=>{const r=Array.isArray(e)?e:e.replace(/(\[(\d)\])/g,".$2").replace(/^\./,"").split(".");if(!r.length||r[0]===void 0)return t;const i=r[0];return typeof t!="object"||t===null||!(i in t)||t[i]===void 0?n:Bf(t[i],r.slice(1),n)},Kv={placeholder:"Entrez votre adresse e-mail",srLabel:"Adresse e-mail",submit:"Suivant",title:"Connexion avec {linebreak}votre adresse e-mail"},Fv={homepageLinkTitle:{withoutService:"Retour à l'accueil",withService:"Retour à l'accueil - {serviceName}"},license:"Sauf mention explicite de propriété intellectuelle détenue par des tiers, les contenus de ce site sont proposés sous {license}",licenseEtalab:"licence etalab-2.0",links:{a11y:{perfect:"Accessibilité : conforme",partial:"Accessibilité : partiellement conforme",bad:"Accessibilité : non conforme"},privacy:"Données personnelles",sitemap:"Plan du site",terms:"Mentions légales"}},jv={label:"Les services de La Suite numérique"},Hv={homepageLinkTitle:"Accueil - {serviceName}"},zv={newWindow:"{title} - nouvelle fenêtre"},Vv={help:"Qu'est-ce que ProConnect ?",loginWith:"S’identifier avec",loginWithProconnect:"{loginWith} {proconnect}",or:"ou",title:"Connexion avec ProConnect"},Uf={email:Kv,footer:Fv,gaufre:jv,header:Hv,links:zv,proconnect:Vv},Bv=c.createContext(Uf);function Uv(){const t=c.useContext(Bv)||Uf;return{t:function(e,n={}){const r=Bf(t,e);if(!r)return console.warn(`Translation for key "${e}" not found`),e;if(n){const i=[];if(Object.keys(n).forEach(l=>{typeof n[l]!="string"&&i.push(l)}),!i.length)return r.replace(/{(\w+)}/g,(l,a)=>n[a]);const o=r.split(/{(.*?)}/);return b.jsx(b.Fragment,{children:o.map((l,a)=>l in n?b.jsx(c.Fragment,{children:n[l]},a):l)})}return r}}}const Wv={responsive:"lasuite-gaufre-btn--responsive",small:"lasuite-gaufre-btn--small"},Gv=({variant:t})=>{const{t:e}=Uv(),n=t?Wv[t]:"";return b.jsx("button",{type:"button",className:`lasuite-gaufre-btn ${n} lasuite-gaufre-btn--vanilla js-lasuite-gaufre-btn`,title:e("gaufre.label"),children:e("gaufre.label")})},qv=()=>b.jsxs(b.Fragment,{children:[b.jsx("script",{src:"https://integration.lasuite.numerique.gouv.fr/api/v1/gaufre.js",id:"lasuite-gaufre-script",async:!0,defer:!0}),b.jsx(Gv,{variant:"small"})]}),Wf=({languages:t})=>{const{isOpen:e,setIsOpen:n}=On();return b.jsx(hr,{options:t,isOpen:e,onOpenChange:n,children:b.jsxs(pe.Button,{onClick:()=>n(!e),color:"primary-text",className:"c__language-picker",children:[b.jsx("span",{className:"material-icons",children:"translate"}),b.jsx("span",{className:"c__language-picker__label",children:"Français"}),b.jsx("span",{className:"material-icons",children:e?"arrow_drop_up":"arrow_drop_down"})]})})},Gf=({leftIcon:t,rightIcon:e,languages:n,onTogglePanel:r,isPanelOpen:i})=>{const{t:o}=pe.useCunningham();return b.jsxs("div",{className:"c__header",children:[b.jsx("div",{className:"c__header__toggle-menu",children:b.jsx(pe.Button,{size:"medium",onClick:r,"aria-label":o(i?"Close the menu":"Open the menu"),color:"tertiary-text",icon:b.jsx("span",{className:"material-icons clr-primary-800",children:i?"close":"menu"})})}),b.jsx("div",{className:"c__header__left",children:t}),b.jsxs("div",{className:"c__header__right",children:[n&&b.jsx("div",{className:"c__header__right__language-picker",children:b.jsx(Wf,{languages:n})}),e]})]})},ll={themes:{default:{theme:{colors:{"primary-text":"#000091","primary-050":"#F5F5FE","primary-100":"#ECECFE","primary-150":"#F4F4FD","primary-200":"#E3E3FD","primary-300":"#CACAFB","primary-400":"#8585F6","primary-500":"#6A6AF4","primary-600":"#313178","primary-700":"#272747","primary-800":"#000091","primary-900":"#21213F","secondary-text":"#fff","secondary-100":"#fee9ea","secondary-200":"#fedfdf","secondary-300":"#fdbfbf","secondary-400":"#e1020f","secondary-500":"#c91a1f","secondary-600":"#5e2b2b","secondary-700":"#3b2424","secondary-800":"#341f1f","secondary-900":"#2b1919","greyscale-text":"#303C4B","greyscale-000":"#fff","greyscale-050":"#F6F6F6","greyscale-100":"#eee","greyscale-200":"#E5E5E5","greyscale-250":"#ddd","greyscale-300":"#CECECE","greyscale-350":"#ddd","greyscale-400":"#929292","greyscale-500":"#7C7C7C","greyscale-600":"#666666","greyscale-700":"#3A3A3A","greyscale-750":"#353535","greyscale-800":"#2A2A2A","greyscale-900":"#242424","greyscale-950":"#1E1E1E","greyscale-1000":"#161616","success-text":"#1f8d49","success-100":"#dffee6","success-200":"#b8fec9","success-300":"#88fdaa","success-400":"#3bea7e","success-500":"#1f8d49","success-600":"#18753c","success-700":"#204129","success-800":"#1e2e22","success-900":"#19281d","info-text":"#0078f3","info-100":"#E8EDFF","info-200":"#DDE5FF","info-300":"#BCCDFF","info-400":"#518FFF","info-500":"#0078F3","info-600":"#0063CB","info-700":"#273961","info-800":"#222A3F","info-900":"#1D2437","warning-text":"#d64d00","warning-100":"#fff4f3","warning-200":"#ffe9e6","warning-300":"#ffded9","warning-400":"#ffbeb4","warning-500":"#d64d00","warning-600":"#b34000","warning-700":"#5e2c21","warning-800":"#3e241e","warning-900":"#361e19","danger-text":"#FFF","danger-050":"#FFF4F4","danger-100":"#FFE9E9","danger-200":"#FFDDDD","danger-300":"#FFBDBD","danger-400":"#FF5655","danger-500":"#F60700","danger-600":"#CE0500","danger-700":"#642626","danger-800":"#412121","danger-900":"#391C1C","blue-500":"#417DC4","brown-500":"#BD987A","cyan-500":"#009099","gold-500":"#C3992A","green-500":"#00A95F","olive-500":"#68A532","orange-500":"#E4794A","purple-500":"#A558A0","red-500":"#E1000F","yellow-500":"#B7A73F","rose-500":"#E18B76"},font:{sizes:{xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",ml:"0.938rem",xl:"1.25rem",t:"0.6875rem",s:"0.75rem",h1:"2rem",h2:"1.75rem",h3:"1.5rem",h4:"1.375rem",h5:"1.25rem",h6:"1.125rem","xl-alt":"5rem","lg-alt":"4.5rem","md-alt":"4rem","sm-alt":"3.5rem","xs-alt":"3rem"},weights:{thin:100,extrabold:800,black:900},families:{accent:"Marianne",base:"Marianne"}},spacings:{0:"0",none:"0",auto:"auto",bx:"2.2rem",full:"100%","4xs":"0.125rem","3xs":"0.25rem","2xs":"0.375rem",xs:"0.5rem",sm:"0.75rem",base:"1rem",md:"1.5rem",lg:"2rem",xl:"2.5rem",xxl:"3rem",xxxl:"3.5rem","4xl":"4rem","5xl":"4.5rem","6xl":"6rem","7xl":"7.5rem"},breakpoints:{xxs:"320px",xs:"480px",mobile:"768px",tablet:"1024px"}},components:{modal:{"width-small":"342px"},tooltip:{padding:"4px 8px","background-color":"ref(theme.colors.greyscale-1000)"},button:{"medium-height":"40px","medium-text-height":"40px","border-radius":"4px","small-height":"26px",primary:{"background--color":"ref(theme.colors.primary-text)","background--color-hover":"#1212ff","background--color-active":"#2323ff","background--color-disabled":"ref(theme.colors.greyscale-100)",color:"#fff","color-hover":"#fff","color-active":"#fff","color-focus-visible":"#fff",disabled:"ref(theme.colors.greyscale-500)"},"primary-text":{"background--color":"ref(theme.colors.primary-text)","background--color-hover":"ref(theme.colors.greyscale-100)","background--color-active":"ref(theme.colors.primary-100)","background--color-focus-visible":"#fff","background--color-disabled":"ref(theme.colors.greyscale-000)",color:"ref(theme.colors.primary-800)","color-hover":"ref(theme.colors.primary-800)",disabled:"ref(theme.colors.greyscale-400)"},secondary:{"background--color-hover":"#F6F6F6","background--color-active":"#EDEDED","background--color-focus-visible":"ref(theme.colors.greyscale-000)","background--disabled":"ref(theme.colors.greyscale-000)",color:"ref(theme.colors.primary-800)","border--color":"ref(theme.colors.greyscale-300)","border--color-hover":"ref(theme.colors.greyscale-300)","border--color-disabled":"ref(theme.colors.greyscale-300)",disabled:"ref(theme.colors.greyscale-400)"},tertiary:{"background--color":"ref(theme.colors.primary-100)","background--color-focus-visible":"ref(theme.colors.primary-100)","background--color-hover":"ref(theme.colors.primary-300)","background--color-active":"ref(theme.colors.primary-300)","background--disabled":"ref(theme.colors.primary-050)",color:"ref(theme.colors.primary-800)",disabled:"ref(theme.colors.primary-300)"},"tertiary-text":{"background--color-hover":"ref(theme.colors.greyscale-100)","color-hover":"ref(theme.colors.primary-text)",color:"ref(theme.colors.primary-600)"},danger:{"color-hover":"white","background--color":"ref(theme.colors.danger-600)","background--color-hover":"#FF2725","background--color-focus-visible":"ref(theme.colors.danger-600)","background--color-disabled":"ref(theme.colors.greyscale-100)","color-disabled":"ref(theme.colors.greyscale-400)"}},datagrid:{"header--color":"ref(theme.colors.greyscale-600)","header--size":"12px","header--weight":"500","body--background-color-hover":"ref(theme.colors.greyscale-100)"},"forms-checkbox":{"border-radius":"4px","border-color":"ref(theme.colors.primary-800)","background-color--hover":"ref(theme.colors.greyscale-100)","border--color-disabled":"ref(theme.colors.greyscale-200)","border--color":"ref(theme.colors.primary-800)","background--disabled":"ref(theme.colors.greyscale-200)","background--enable":"ref(theme.colors.primary-800)","check--disabled":"ref(theme.colors.greyscale-300)","check--enable":"ref(theme.colors.greyscale-000)",color:"ref(theme.colors.primary-text)","label--color":"ref(theme.colors.greyscale-1000)","label--size":"ref(theme.font.sizes.sm)","label--weight":"500","text--color":"ref(theme.colors.greyscale-600)","text--size":"ref(theme.font.sizes.s)","text--weight":"400","text--color-disabled":"ref(theme.colors.greyscale-300)"},"forms-labelledbox":{"label-color--small":"ref(theme.colors.greyscale-950)","label-color--small--disabled":"ref(theme.colors.greyscale-300)","label-color--big":"ref(theme.colors.greyscale-950)","label-color--big--disabled":"ref(theme.colors.greyscale-300)"},"forms-radio":{"border-color":"ref(theme.colors.primary-800)","background-color":"ref(theme.colors.greyscale-000)","accent-color":"ref(theme.colors.primary-800)","accent-color-disabled":"ref(theme.colors.greyscale-300)"},"forms-switch":{"border--color-disabled":"ref(theme.colors.greyscale-300)","border--color":"ref(theme.colors.primary-800)","handle-background-color":"white","handle-background-color--disabled":"ref(theme.colors.greyscale-000)","rail-background-color--disabled":"ref(theme.colors.greyscale-000)","accent-color":"ref(theme.colors.primary-800)"},"forms-textarea":{"label-color--focus":"ref(theme.colors.greyscale-1000)","border-radius":"4px","border-color":"ref(theme.colors.greyscale-400)","box-shadow--color--hover":"ref(theme.colors.greyscale-400)","box-shadow--color--focus":"ref(theme.colors.primary-800)","value-color":"ref(theme.colors.greyscale-950)","value-color--disabled":"ref(theme.colors.greyscale-300)","font-size":"14px"},"forms-input":{"label-color--focus":"ref(theme.colors.greyscale-1000)","border-radius":"4px","border-color":"ref(theme.colors.greyscale-400)","box-shadow--color--hover":"ref(theme.colors.greyscale-400)","box-shadow--color--focus":"ref(theme.colors.primary-800)","value-color":"ref(theme.colors.greyscale-950)","value-color--disabled":"ref(theme.colors.greyscale-300)","font-size":"14px"},"forms-select":{"label-color--focus":"ref(theme.colors.greyscale-1000)","item-font-size":"14px","border-radius":"4px","border-radius-hover":"4px","border-color":"ref(theme.colors.greyscale-400)","box-shadow--color--hover":"ref(theme.colors.greyscale-400)","box-shadow--color--focus":"ref(theme.colors.primary-800)","value-color":"ref(theme.colors.greyscale-950)","font-size":"14px"},badge:{"font-size":"ref(theme.font.sizes.xs)","border-radius":"4px","padding-inline":"ref(theme.spacings.xs)","padding-block":"ref(theme.spacings.2xs)",accent:{"background-color":"ref(theme.colors.primary-100)",color:"ref(theme.colors.primary-600)"},neutral:{"background-color":"ref(theme.colors.greyscale-100)",color:"ref(theme.colors.greyscale-600)"},danger:{"background-color":"ref(theme.colors.danger-100)",color:"ref(theme.colors.danger-600)"},success:{"background-color":"ref(theme.colors.success-100)",color:"ref(theme.colors.success-600)"},warning:{"background-color":"ref(theme.colors.warning-100)",color:"ref(theme.colors.warning-600)"},info:{"background-color":"ref(theme.colors.info-100)",color:"ref(theme.colors.info-600)"}}}}}},An=()=>{const[t,e]=c.useState(window.innerWidth),n=parseInt(ll.themes.default.theme.breakpoints.mobile.replace("px","")),r=parseInt(ll.themes.default.theme.breakpoints.tablet.replace("px","")),i=()=>{e(window.innerWidth)};c.useEffect(()=>(window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)}),[]);const o=t<=n,l=t<=r,a=t>r;return{isMobile:o,isTablet:l,isDesktop:a}},qf=({children:t,isOpen:e=!1})=>{const{isDesktop:n}=An();return n?b.jsx("div",{className:"c__left-panel",children:t}):b.jsx("div",{className:Me("c__left-panel__mobile",{open:e}),children:t})},{createElement:kn,createContext:Yv,createRef:vS,forwardRef:Yf,useCallback:Oe,useContext:Zf,useEffect:Rt,useImperativeHandle:Xf,useLayoutEffect:Zv,useMemo:Xv,useRef:Ne,useState:En}=_,Is=_[`useId${Math.random()}`.slice(0,5)],Jv=Zv,Ni=Yv(null);Ni.displayName="PanelGroupContext";const Mt=Jv,Qv=typeof Is=="function"?Is:()=>null;let em=0;function ia(t=null){const e=Qv(),n=Ne(t||e||null);return n.current===null&&(n.current=""+em++),t??n.current}function Jf({children:t,className:e="",collapsedSize:n,collapsible:r,defaultSize:i,forwardedRef:o,id:l,maxSize:a,minSize:s,onCollapse:u,onExpand:d,onResize:f,order:p,style:g,tagName:y="div",...h}){const v=Zf(Ni);if(v===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:m,expandPanel:S,getPanelSize:C,getPanelStyle:P,groupId:$,isPanelCollapsed:E,reevaluatePanelConstraints:T,registerPanel:L,resizePanel:z,unregisterPanel:A}=v,w=ia(l),M=Ne({callbacks:{onCollapse:u,onExpand:d,onResize:f},constraints:{collapsedSize:n,collapsible:r,defaultSize:i,maxSize:a,minSize:s},id:w,idIsFromProps:l!==void 0,order:p});Ne({didLogMissingDefaultSizeWarning:!1}),Mt(()=>{const{callbacks:R,constraints:U}=M.current,x={...U};M.current.id=w,M.current.idIsFromProps=l!==void 0,M.current.order=p,R.onCollapse=u,R.onExpand=d,R.onResize=f,U.collapsedSize=n,U.collapsible=r,U.defaultSize=i,U.maxSize=a,U.minSize=s,(x.collapsedSize!==U.collapsedSize||x.collapsible!==U.collapsible||x.maxSize!==U.maxSize||x.minSize!==U.minSize)&&T(M.current,x)}),Mt(()=>{const R=M.current;return L(R),()=>{A(R)}},[p,w,L,A]),Xf(o,()=>({collapse:()=>{m(M.current)},expand:R=>{S(M.current,R)},getId(){return w},getSize(){return C(M.current)},isCollapsed(){return E(M.current)},isExpanded(){return!E(M.current)},resize:R=>{z(M.current,R)}}),[m,S,C,E,w,z]);const B=P(M.current,i);return kn(y,{...h,children:t,className:e,id:l,style:{...B,...g},"data-panel":"","data-panel-collapsible":r||void 0,"data-panel-group-id":$,"data-panel-id":w,"data-panel-size":parseFloat(""+B.flexGrow).toFixed(1)})}const al=Yf((t,e)=>kn(Jf,{...t,forwardedRef:e}));Jf.displayName="Panel";al.displayName="forwardRef(Panel)";let sl=null,kt=null;function tm(t,e){if(e){const n=(e&r0)!==0,r=(e&i0)!==0,i=(e&o0)!==0,o=(e&l0)!==0;if(n)return i?"se-resize":o?"ne-resize":"e-resize";if(r)return i?"sw-resize":o?"nw-resize":"w-resize";if(i)return"s-resize";if(o)return"n-resize"}switch(t){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function nm(){kt!==null&&(document.head.removeChild(kt),sl=null,kt=null)}function fo(t,e){const n=tm(t,e);sl!==n&&(sl=n,kt===null&&(kt=document.createElement("style"),document.head.appendChild(kt)),kt.innerHTML=`*{cursor: ${n}!important;}`)}function Qf(t){return t.type==="keydown"}function e0(t){return t.type.startsWith("pointer")}function t0(t){return t.type.startsWith("mouse")}function Ri(t){if(e0(t)){if(t.isPrimary)return{x:t.clientX,y:t.clientY}}else if(t0(t))return{x:t.clientX,y:t.clientY};return{x:1/0,y:1/0}}function rm(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function im(t,e,n){return t.x<e.x+e.width&&t.x+t.width>e.x&&t.y<e.y+e.height&&t.y+t.height>e.y}function om(t,e){if(t===e)throw new Error("Cannot compare node with itself");const n={a:Ns(t),b:Ns(e)};let r;for(;n.a.at(-1)===n.b.at(-1);)t=n.a.pop(),e=n.b.pop(),r=t;te(r,"Stacking order can only be calculated for elements with a common ancestor");const i={a:ks(Os(n.a)),b:ks(Os(n.b))};if(i.a===i.b){const o=r.childNodes,l={a:n.a.at(-1),b:n.b.at(-1)};let a=o.length;for(;a--;){const s=o[a];if(s===l.a)return 1;if(s===l.b)return-1}}return Math.sign(i.a-i.b)}const lm=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function am(t){var e;const n=getComputedStyle((e=n0(t))!==null&&e!==void 0?e:t).display;return n==="flex"||n==="inline-flex"}function sm(t){const e=getComputedStyle(t);return!!(e.position==="fixed"||e.zIndex!=="auto"&&(e.position!=="static"||am(t))||+e.opacity<1||"transform"in e&&e.transform!=="none"||"webkitTransform"in e&&e.webkitTransform!=="none"||"mixBlendMode"in e&&e.mixBlendMode!=="normal"||"filter"in e&&e.filter!=="none"||"webkitFilter"in e&&e.webkitFilter!=="none"||"isolation"in e&&e.isolation==="isolate"||lm.test(e.willChange)||e.webkitOverflowScrolling==="touch")}function Os(t){let e=t.length;for(;e--;){const n=t[e];if(te(n,"Missing node"),sm(n))return n}return null}function ks(t){return t&&Number(getComputedStyle(t).zIndex)||0}function Ns(t){const e=[];for(;t;)e.push(t),t=n0(t);return e}function n0(t){const{parentNode:e}=t;return e&&e instanceof ShadowRoot?e.host:e}const r0=1,i0=2,o0=4,l0=8,um=rm()==="coarse";let Ye=[],$n=!1,Ct=new Map,Mi=new Map;const ar=new Set;function cm(t,e,n,r,i){var o;const{ownerDocument:l}=e,a={direction:n,element:e,hitAreaMargins:r,setResizeHandlerState:i},s=(o=Ct.get(l))!==null&&o!==void 0?o:0;return Ct.set(l,s+1),ar.add(a),si(),function(){var d;Mi.delete(t),ar.delete(a);const f=(d=Ct.get(l))!==null&&d!==void 0?d:1;if(Ct.set(l,f-1),si(),f===1&&Ct.delete(l),Ye.includes(a)){const p=Ye.indexOf(a);p>=0&&Ye.splice(p,1),la(),i("up",!0,null)}}}function Rs(t){const{target:e}=t,{x:n,y:r}=Ri(t);$n=!0,oa({target:e,x:n,y:r}),si(),Ye.length>0&&(ui("down",t),t.preventDefault(),t.stopPropagation())}function Un(t){const{x:e,y:n}=Ri(t);if($n&&t.buttons===0&&($n=!1,ui("up",t)),!$n){const{target:r}=t;oa({target:r,x:e,y:n})}ui("move",t),la(),Ye.length>0&&t.preventDefault()}function tn(t){const{target:e}=t,{x:n,y:r}=Ri(t);Mi.clear(),$n=!1,Ye.length>0&&t.preventDefault(),ui("up",t),oa({target:e,x:n,y:r}),la(),si()}function oa({target:t,x:e,y:n}){Ye.splice(0);let r=null;(t instanceof HTMLElement||t instanceof SVGElement)&&(r=t),ar.forEach(i=>{const{element:o,hitAreaMargins:l}=i,a=o.getBoundingClientRect(),{bottom:s,left:u,right:d,top:f}=a,p=um?l.coarse:l.fine;if(e>=u-p&&e<=d+p&&n>=f-p&&n<=s+p){if(r!==null&&document.contains(r)&&o!==r&&!o.contains(r)&&!r.contains(o)&&om(r,o)>0){let y=r,h=!1;for(;y&&!y.contains(o);){if(im(y.getBoundingClientRect(),a)){h=!0;break}y=y.parentElement}if(h)return}Ye.push(i)}})}function ho(t,e){Mi.set(t,e)}function la(){let t=!1,e=!1;Ye.forEach(r=>{const{direction:i}=r;i==="horizontal"?t=!0:e=!0});let n=0;Mi.forEach(r=>{n|=r}),t&&e?fo("intersection",n):t?fo("horizontal",n):e?fo("vertical",n):nm()}function si(){Ct.forEach((t,e)=>{const{body:n}=e;n.removeEventListener("contextmenu",tn),n.removeEventListener("pointerdown",Rs),n.removeEventListener("pointerleave",Un),n.removeEventListener("pointermove",Un)}),window.removeEventListener("pointerup",tn),window.removeEventListener("pointercancel",tn),ar.size>0&&($n?(Ye.length>0&&Ct.forEach((t,e)=>{const{body:n}=e;t>0&&(n.addEventListener("contextmenu",tn),n.addEventListener("pointerleave",Un),n.addEventListener("pointermove",Un))}),window.addEventListener("pointerup",tn),window.addEventListener("pointercancel",tn)):Ct.forEach((t,e)=>{const{body:n}=e;t>0&&(n.addEventListener("pointerdown",Rs,{capture:!0}),n.addEventListener("pointermove",Un))}))}function ui(t,e){ar.forEach(n=>{const{setResizeHandlerState:r}=n,i=Ye.includes(n);r(t,i,e)})}function dm(){const[t,e]=En(0);return Oe(()=>e(n=>n+1),[])}function te(t,e){if(!t)throw console.error(e),Error(e)}const aa=10;function jt(t,e,n=aa){return t.toFixed(n)===e.toFixed(n)?0:t>e?1:-1}function ut(t,e,n=aa){return jt(t,e,n)===0}function Ae(t,e,n){return jt(t,e,n)===0}function fm(t,e,n){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++){const i=t[r],o=e[r];if(!Ae(i,o,n))return!1}return!0}function bn({panelConstraints:t,panelIndex:e,size:n}){const r=t[e];te(r!=null,`Panel constraints not found for index ${e}`);let{collapsedSize:i=0,collapsible:o,maxSize:l=100,minSize:a=0}=r;if(jt(n,a)<0)if(o){const s=(i+a)/2;jt(n,s)<0?n=i:n=a}else n=a;return n=Math.min(l,n),n=parseFloat(n.toFixed(aa)),n}function Jn({delta:t,initialLayout:e,panelConstraints:n,pivotIndices:r,prevLayout:i,trigger:o}){if(Ae(t,0))return e;const l=[...e],[a,s]=r;te(a!=null,"Invalid first pivot index"),te(s!=null,"Invalid second pivot index");let u=0;if(o==="keyboard"){{const f=t<0?s:a,p=n[f];te(p,`Panel constraints not found for index ${f}`);const{collapsedSize:g=0,collapsible:y,minSize:h=0}=p;if(y){const v=e[f];if(te(v!=null,`Previous layout not found for panel index ${f}`),Ae(v,g)){const m=h-v;jt(m,Math.abs(t))>0&&(t=t<0?0-m:m)}}}{const f=t<0?a:s,p=n[f];te(p,`No panel constraints found for index ${f}`);const{collapsedSize:g=0,collapsible:y,minSize:h=0}=p;if(y){const v=e[f];if(te(v!=null,`Previous layout not found for panel index ${f}`),Ae(v,h)){const m=v-g;jt(m,Math.abs(t))>0&&(t=t<0?0-m:m)}}}}{const f=t<0?1:-1;let p=t<0?s:a,g=0;for(;;){const h=e[p];te(h!=null,`Previous layout not found for panel index ${p}`);const m=bn({panelConstraints:n,panelIndex:p,size:100})-h;if(g+=m,p+=f,p<0||p>=n.length)break}const y=Math.min(Math.abs(t),Math.abs(g));t=t<0?0-y:y}{let p=t<0?a:s;for(;p>=0&&p<n.length;){const g=Math.abs(t)-Math.abs(u),y=e[p];te(y!=null,`Previous layout not found for panel index ${p}`);const h=y-g,v=bn({panelConstraints:n,panelIndex:p,size:h});if(!Ae(y,v)&&(u+=y-v,l[p]=v,u.toPrecision(3).localeCompare(Math.abs(t).toPrecision(3),void 0,{numeric:!0})>=0))break;t<0?p--:p++}}if(fm(i,l))return i;{const f=t<0?s:a,p=e[f];te(p!=null,`Previous layout not found for panel index ${f}`);const g=p+u,y=bn({panelConstraints:n,panelIndex:f,size:g});if(l[f]=y,!Ae(y,g)){let h=g-y,m=t<0?s:a;for(;m>=0&&m<n.length;){const S=l[m];te(S!=null,`Previous layout not found for panel index ${m}`);const C=S+h,P=bn({panelConstraints:n,panelIndex:m,size:C});if(Ae(S,P)||(h-=P-S,l[m]=P),Ae(h,0))break;t>0?m--:m++}}}const d=l.reduce((f,p)=>p+f,0);return Ae(d,100)?l:i}function hm({layout:t,panelsArray:e,pivotIndices:n}){let r=0,i=100,o=0,l=0;const a=n[0];te(a!=null,"No pivot index found"),e.forEach((f,p)=>{const{constraints:g}=f,{maxSize:y=100,minSize:h=0}=g;p===a?(r=h,i=y):(o+=h,l+=y)});const s=Math.min(i,100-o),u=Math.max(r,100-l),d=t[a];return{valueMax:s,valueMin:u,valueNow:d}}function sr(t,e=document){return Array.from(e.querySelectorAll(`[data-panel-resize-handle-id][data-panel-group-id="${t}"]`))}function a0(t,e,n=document){const i=sr(t,n).findIndex(o=>o.getAttribute("data-panel-resize-handle-id")===e);return i??null}function s0(t,e,n){const r=a0(t,e,n);return r!=null?[r,r+1]:[-1,-1]}function u0(t,e=document){var n;if(e instanceof HTMLElement&&(e==null||(n=e.dataset)===null||n===void 0?void 0:n.panelGroupId)==t)return e;const r=e.querySelector(`[data-panel-group][data-panel-group-id="${t}"]`);return r||null}function Li(t,e=document){const n=e.querySelector(`[data-panel-resize-handle-id="${t}"]`);return n||null}function pm(t,e,n,r=document){var i,o,l,a;const s=Li(e,r),u=sr(t,r),d=s?u.indexOf(s):-1,f=(i=(o=n[d])===null||o===void 0?void 0:o.id)!==null&&i!==void 0?i:null,p=(l=(a=n[d+1])===null||a===void 0?void 0:a.id)!==null&&l!==void 0?l:null;return[f,p]}function gm({committedValuesRef:t,eagerValuesRef:e,groupId:n,layout:r,panelDataArray:i,panelGroupElement:o,setLayout:l}){Ne({didWarnAboutMissingResizeHandle:!1}),Mt(()=>{if(!o)return;const a=sr(n,o);for(let s=0;s<i.length-1;s++){const{valueMax:u,valueMin:d,valueNow:f}=hm({layout:r,panelsArray:i,pivotIndices:[s,s+1]}),p=a[s];if(p!=null){const g=i[s];te(g,`No panel data found for index "${s}"`),p.setAttribute("aria-controls",g.id),p.setAttribute("aria-valuemax",""+Math.round(u)),p.setAttribute("aria-valuemin",""+Math.round(d)),p.setAttribute("aria-valuenow",f!=null?""+Math.round(f):"")}}return()=>{a.forEach((s,u)=>{s.removeAttribute("aria-controls"),s.removeAttribute("aria-valuemax"),s.removeAttribute("aria-valuemin"),s.removeAttribute("aria-valuenow")})}},[n,r,i,o]),Rt(()=>{if(!o)return;const a=e.current;te(a,"Eager values not found");const{panelDataArray:s}=a,u=u0(n,o);te(u!=null,`No group found for id "${n}"`);const d=sr(n,o);te(d,`No resize handles found for group id "${n}"`);const f=d.map(p=>{const g=p.getAttribute("data-panel-resize-handle-id");te(g,"Resize handle element has no handle id attribute");const[y,h]=pm(n,g,s,o);if(y==null||h==null)return()=>{};const v=m=>{if(!m.defaultPrevented)switch(m.key){case"Enter":{m.preventDefault();const S=s.findIndex(C=>C.id===y);if(S>=0){const C=s[S];te(C,`No panel data found for index ${S}`);const P=r[S],{collapsedSize:$=0,collapsible:E,minSize:T=0}=C.constraints;if(P!=null&&E){const L=Jn({delta:Ae(P,$)?T-$:$-P,initialLayout:r,panelConstraints:s.map(z=>z.constraints),pivotIndices:s0(n,g,o),prevLayout:r,trigger:"keyboard"});r!==L&&l(L)}}break}}};return p.addEventListener("keydown",v),()=>{p.removeEventListener("keydown",v)}});return()=>{f.forEach(p=>p())}},[o,t,e,n,r,i,l])}function Ms(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}function c0(t,e){const n=t==="horizontal",{x:r,y:i}=Ri(e);return n?r:i}function vm(t,e,n,r,i){const o=n==="horizontal",l=Li(e,i);te(l,`No resize handle element found for id "${e}"`);const a=l.getAttribute("data-panel-group-id");te(a,"Resize handle element has no group id attribute");let{initialCursorPosition:s}=r;const u=c0(n,t),d=u0(a,i);te(d,`No group element found for id "${a}"`);const f=d.getBoundingClientRect(),p=o?f.width:f.height;return(u-s)/p*100}function mm(t,e,n,r,i,o){if(Qf(t)){const l=n==="horizontal";let a=0;t.shiftKey?a=100:i!=null?a=i:a=10;let s=0;switch(t.key){case"ArrowDown":s=l?0:a;break;case"ArrowLeft":s=l?-a:0;break;case"ArrowRight":s=l?a:0;break;case"ArrowUp":s=l?0:-a;break;case"End":s=100;break;case"Home":s=-100;break}return s}else return r==null?0:vm(t,e,n,r,o)}function ym({panelDataArray:t}){const e=Array(t.length),n=t.map(o=>o.constraints);let r=0,i=100;for(let o=0;o<t.length;o++){const l=n[o];te(l,`Panel constraints not found for index ${o}`);const{defaultSize:a}=l;a!=null&&(r++,e[o]=a,i-=a)}for(let o=0;o<t.length;o++){const l=n[o];te(l,`Panel constraints not found for index ${o}`);const{defaultSize:a}=l;if(a!=null)continue;const s=t.length-r,u=i/s;r++,e[o]=u,i-=u}return e}function nn(t,e,n){e.forEach((r,i)=>{const o=t[i];te(o,`Panel data not found for index ${i}`);const{callbacks:l,constraints:a,id:s}=o,{collapsedSize:u=0,collapsible:d}=a,f=n[s];if(f==null||r!==f){n[s]=r;const{onCollapse:p,onExpand:g,onResize:y}=l;y&&y(r,f),d&&(p||g)&&(g&&(f==null||ut(f,u))&&!ut(r,u)&&g(),p&&(f==null||!ut(f,u))&&ut(r,u)&&p())}})}function Pr(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!=e[n])return!1;return!0}function bm({defaultSize:t,dragState:e,layout:n,panelData:r,panelIndex:i,precision:o=3}){const l=n[i];let a;return l==null?a=t!=null?t.toPrecision(o):"1":r.length===1?a="1":a=l.toPrecision(o),{flexBasis:0,flexGrow:a,flexShrink:1,overflow:"hidden",pointerEvents:e!==null?"none":void 0}}function Sm(t,e=10){let n=null;return(...i)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{t(...i)},e)}}function Ls(t){try{if(typeof localStorage<"u")t.getItem=e=>localStorage.getItem(e),t.setItem=(e,n)=>{localStorage.setItem(e,n)};else throw new Error("localStorage not supported in this environment")}catch(e){console.error(e),t.getItem=()=>null,t.setItem=()=>{}}}function d0(t){return`react-resizable-panels:${t}`}function f0(t){return t.map(e=>{const{constraints:n,id:r,idIsFromProps:i,order:o}=e;return i?r:o?`${o}:${JSON.stringify(n)}`:JSON.stringify(n)}).sort((e,n)=>e.localeCompare(n)).join(",")}function h0(t,e){try{const n=d0(t),r=e.getItem(n);if(r){const i=JSON.parse(r);if(typeof i=="object"&&i!=null)return i}}catch{}return null}function Cm(t,e,n){var r,i;const o=(r=h0(t,n))!==null&&r!==void 0?r:{},l=f0(e);return(i=o[l])!==null&&i!==void 0?i:null}function wm(t,e,n,r,i){var o;const l=d0(t),a=f0(e),s=(o=h0(t,i))!==null&&o!==void 0?o:{};s[a]={expandToSizes:Object.fromEntries(n.entries()),layout:r};try{i.setItem(l,JSON.stringify(s))}catch(u){console.error(u)}}function As({layout:t,panelConstraints:e}){const n=[...t],r=n.reduce((o,l)=>o+l,0);if(n.length!==e.length)throw Error(`Invalid ${e.length} panel layout: ${n.map(o=>`${o}%`).join(", ")}`);if(!Ae(r,100)&&n.length>0)for(let o=0;o<e.length;o++){const l=n[o];te(l!=null,`No layout data found for index ${o}`);const a=100/r*l;n[o]=a}let i=0;for(let o=0;o<e.length;o++){const l=n[o];te(l!=null,`No layout data found for index ${o}`);const a=bn({panelConstraints:e,panelIndex:o,size:l});l!=a&&(i+=l-a,n[o]=a)}if(!Ae(i,0))for(let o=0;o<e.length;o++){const l=n[o];te(l!=null,`No layout data found for index ${o}`);const a=l+i,s=bn({panelConstraints:e,panelIndex:o,size:a});if(l!==s&&(i-=s-l,n[o]=s,Ae(i,0)))break}return n}const xm=100,Qn={getItem:t=>(Ls(Qn),Qn.getItem(t)),setItem:(t,e)=>{Ls(Qn),Qn.setItem(t,e)}},Ks={};function p0({autoSaveId:t=null,children:e,className:n="",direction:r,forwardedRef:i,id:o=null,onLayout:l=null,keyboardResizeBy:a=null,storage:s=Qn,style:u,tagName:d="div",...f}){const p=ia(o),g=Ne(null),[y,h]=En(null),[v,m]=En([]),S=dm(),C=Ne({}),P=Ne(new Map),$=Ne(0),E=Ne({autoSaveId:t,direction:r,dragState:y,id:p,keyboardResizeBy:a,onLayout:l,storage:s}),T=Ne({layout:v,panelDataArray:[],panelDataArrayChanged:!1});Ne({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),Xf(i,()=>({getId:()=>E.current.id,getLayout:()=>{const{layout:k}=T.current;return k},setLayout:k=>{const{onLayout:F}=E.current,{layout:K,panelDataArray:V}=T.current,W=As({layout:k,panelConstraints:V.map(X=>X.constraints)});Ms(K,W)||(m(W),T.current.layout=W,F&&F(W),nn(V,W,C.current))}}),[]),Mt(()=>{E.current.autoSaveId=t,E.current.direction=r,E.current.dragState=y,E.current.id=p,E.current.onLayout=l,E.current.storage=s}),gm({committedValuesRef:E,eagerValuesRef:T,groupId:p,layout:v,panelDataArray:T.current.panelDataArray,setLayout:m,panelGroupElement:g.current}),Rt(()=>{const{panelDataArray:k}=T.current;if(t){if(v.length===0||v.length!==k.length)return;let F=Ks[t];F==null&&(F=Sm(wm,xm),Ks[t]=F);const K=[...k],V=new Map(P.current);F(t,K,V,v,s)}},[t,v,s]),Rt(()=>{});const L=Oe(k=>{const{onLayout:F}=E.current,{layout:K,panelDataArray:V}=T.current;if(k.constraints.collapsible){const W=V.map(q=>q.constraints),{collapsedSize:X=0,panelSize:Q,pivotIndices:oe}=Dt(V,k,K);if(te(Q!=null,`Panel size not found for panel "${k.id}"`),!ut(Q,X)){P.current.set(k.id,Q);const fe=gn(V,k)===V.length-1?Q-X:X-Q,re=Jn({delta:fe,initialLayout:K,panelConstraints:W,pivotIndices:oe,prevLayout:K,trigger:"imperative-api"});Pr(K,re)||(m(re),T.current.layout=re,F&&F(re),nn(V,re,C.current))}}},[]),z=Oe((k,F)=>{const{onLayout:K}=E.current,{layout:V,panelDataArray:W}=T.current;if(k.constraints.collapsible){const X=W.map(me=>me.constraints),{collapsedSize:Q=0,panelSize:oe=0,minSize:q=0,pivotIndices:fe}=Dt(W,k,V),re=F??q;if(ut(oe,Q)){const me=P.current.get(k.id),ie=me!=null&&me>=re?me:re,gt=gn(W,k)===W.length-1?oe-ie:ie-oe,xe=Jn({delta:gt,initialLayout:V,panelConstraints:X,pivotIndices:fe,prevLayout:V,trigger:"imperative-api"});Pr(V,xe)||(m(xe),T.current.layout=xe,K&&K(xe),nn(W,xe,C.current))}}},[]),A=Oe(k=>{const{layout:F,panelDataArray:K}=T.current,{panelSize:V}=Dt(K,k,F);return te(V!=null,`Panel size not found for panel "${k.id}"`),V},[]),w=Oe((k,F)=>{const{panelDataArray:K}=T.current,V=gn(K,k);return bm({defaultSize:F,dragState:y,layout:v,panelData:K,panelIndex:V})},[y,v]),M=Oe(k=>{const{layout:F,panelDataArray:K}=T.current,{collapsedSize:V=0,collapsible:W,panelSize:X}=Dt(K,k,F);return te(X!=null,`Panel size not found for panel "${k.id}"`),W===!0&&ut(X,V)},[]),B=Oe(k=>{const{layout:F,panelDataArray:K}=T.current,{collapsedSize:V=0,collapsible:W,panelSize:X}=Dt(K,k,F);return te(X!=null,`Panel size not found for panel "${k.id}"`),!W||jt(X,V)>0},[]),R=Oe(k=>{const{panelDataArray:F}=T.current;F.push(k),F.sort((K,V)=>{const W=K.order,X=V.order;return W==null&&X==null?0:W==null?-1:X==null?1:W-X}),T.current.panelDataArrayChanged=!0,S()},[S]);Mt(()=>{if(T.current.panelDataArrayChanged){T.current.panelDataArrayChanged=!1;const{autoSaveId:k,onLayout:F,storage:K}=E.current,{layout:V,panelDataArray:W}=T.current;let X=null;if(k){const oe=Cm(k,W,K);oe&&(P.current=new Map(Object.entries(oe.expandToSizes)),X=oe.layout)}X==null&&(X=ym({panelDataArray:W}));const Q=As({layout:X,panelConstraints:W.map(oe=>oe.constraints)});Ms(V,Q)||(m(Q),T.current.layout=Q,F&&F(Q),nn(W,Q,C.current))}}),Mt(()=>{const k=T.current;return()=>{k.layout=[]}},[]);const U=Oe(k=>{let F=!1;const K=g.current;return K&&window.getComputedStyle(K,null).getPropertyValue("direction")==="rtl"&&(F=!0),function(W){W.preventDefault();const X=g.current;if(!X)return()=>null;const{direction:Q,dragState:oe,id:q,keyboardResizeBy:fe,onLayout:re}=E.current,{layout:me,panelDataArray:ie}=T.current,{initialLayout:Je}=oe??{},gt=s0(q,k,X);let xe=mm(W,k,Q,oe,fe,X);const Kn=Q==="horizontal";Kn&&F&&(xe=-xe);const gr=ie.map(Z=>Z.constraints),D=Jn({delta:xe,initialLayout:Je??me,panelConstraints:gr,pivotIndices:gt,prevLayout:me,trigger:Qf(W)?"keyboard":"mouse-or-touch"}),Y=!Pr(me,D);(e0(W)||t0(W))&&$.current!=xe&&($.current=xe,!Y&&xe!==0?Kn?ho(k,xe<0?r0:i0):ho(k,xe<0?o0:l0):ho(k,0)),Y&&(m(D),T.current.layout=D,re&&re(D),nn(ie,D,C.current))}},[]),x=Oe((k,F)=>{const{onLayout:K}=E.current,{layout:V,panelDataArray:W}=T.current,X=W.map(me=>me.constraints),{panelSize:Q,pivotIndices:oe}=Dt(W,k,V);te(Q!=null,`Panel size not found for panel "${k.id}"`);const fe=gn(W,k)===W.length-1?Q-F:F-Q,re=Jn({delta:fe,initialLayout:V,panelConstraints:X,pivotIndices:oe,prevLayout:V,trigger:"imperative-api"});Pr(V,re)||(m(re),T.current.layout=re,K&&K(re),nn(W,re,C.current))},[]),N=Oe((k,F)=>{const{layout:K,panelDataArray:V}=T.current,{collapsedSize:W=0,collapsible:X}=F,{collapsedSize:Q=0,collapsible:oe,maxSize:q=100,minSize:fe=0}=k.constraints,{panelSize:re}=Dt(V,k,K);re!=null&&(X&&oe&&ut(re,W)?ut(W,Q)||x(k,Q):re<fe?x(k,fe):re>q&&x(k,q))},[x]),I=Oe((k,F)=>{const{direction:K}=E.current,{layout:V}=T.current;if(!g.current)return;const W=Li(k,g.current);te(W,`Drag handle element not found for id "${k}"`);const X=c0(K,F);h({dragHandleId:k,dragHandleRect:W.getBoundingClientRect(),initialCursorPosition:X,initialLayout:V})},[]),G=Oe(()=>{h(null)},[]),H=Oe(k=>{const{panelDataArray:F}=T.current,K=gn(F,k);K>=0&&(F.splice(K,1),delete C.current[k.id],T.current.panelDataArrayChanged=!0,S())},[S]),j=Xv(()=>({collapsePanel:L,direction:r,dragState:y,expandPanel:z,getPanelSize:A,getPanelStyle:w,groupId:p,isPanelCollapsed:M,isPanelExpanded:B,reevaluatePanelConstraints:N,registerPanel:R,registerResizeHandle:U,resizePanel:x,startDragging:I,stopDragging:G,unregisterPanel:H,panelGroupElement:g.current}),[L,y,r,z,A,w,p,M,B,N,R,U,x,I,G,H]),O={display:"flex",flexDirection:r==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return kn(Ni.Provider,{value:j},kn(d,{...f,children:e,className:n,id:o,ref:g,style:{...O,...u},"data-panel-group":"","data-panel-group-direction":r,"data-panel-group-id":p}))}const g0=Yf((t,e)=>kn(p0,{...t,forwardedRef:e}));p0.displayName="PanelGroup";g0.displayName="forwardRef(PanelGroup)";function gn(t,e){return t.findIndex(n=>n===e||n.id===e.id)}function Dt(t,e,n){const r=gn(t,e),o=r===t.length-1?[r-1,r]:[r,r+1],l=n[r];return{...e.constraints,panelSize:l,pivotIndices:o}}function Em({disabled:t,handleId:e,resizeHandler:n,panelGroupElement:r}){Rt(()=>{if(t||n==null||r==null)return;const i=Li(e,r);if(i==null)return;const o=l=>{if(!l.defaultPrevented)switch(l.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{l.preventDefault(),n(l);break}case"F6":{l.preventDefault();const a=i.getAttribute("data-panel-group-id");te(a,`No group element found for id "${a}"`);const s=sr(a,r),u=a0(a,e,r);te(u!==null,`No resize element found for id "${e}"`);const d=l.shiftKey?u>0?u-1:s.length-1:u+1<s.length?u+1:0;s[d].focus();break}}};return i.addEventListener("keydown",o),()=>{i.removeEventListener("keydown",o)}},[r,t,e,n])}function v0({children:t=null,className:e="",disabled:n=!1,hitAreaMargins:r,id:i,onBlur:o,onDragging:l,onFocus:a,style:s={},tabIndex:u=0,tagName:d="div",...f}){var p,g;const y=Ne(null),h=Ne({onDragging:l});Rt(()=>{h.current.onDragging=l});const v=Zf(Ni);if(v===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:m,groupId:S,registerResizeHandle:C,startDragging:P,stopDragging:$,panelGroupElement:E}=v,T=ia(i),[L,z]=En("inactive"),[A,w]=En(!1),[M,B]=En(null),R=Ne({state:L});Mt(()=>{R.current.state=L}),Rt(()=>{if(n)B(null);else{const I=C(T);B(()=>I)}},[n,T,C]);const U=(p=r==null?void 0:r.coarse)!==null&&p!==void 0?p:15,x=(g=r==null?void 0:r.fine)!==null&&g!==void 0?g:5;return Rt(()=>{if(n||M==null)return;const I=y.current;return te(I,"Element ref not attached"),cm(T,I,m,{coarse:U,fine:x},(H,j,O)=>{if(j)switch(H){case"down":{z("drag"),te(O,'Expected event to be defined for "down" action'),P(T,O);const{onDragging:k}=h.current;k&&k(!0);break}case"move":{const{state:k}=R.current;k!=="drag"&&z("hover"),te(O,'Expected event to be defined for "move" action'),M(O);break}case"up":{z("hover"),$();const{onDragging:k}=h.current;k&&k(!1);break}}else z("inactive")})},[U,m,n,x,C,T,M,P,$]),Em({disabled:n,handleId:T,resizeHandler:M,panelGroupElement:E}),kn(d,{...f,children:t,className:e,id:i,onBlur:()=>{w(!1),o==null||o()},onFocus:()=>{w(!0),a==null||a()},ref:y,role:"separator",style:{...{touchAction:"none",userSelect:"none"},...s},tabIndex:u,"data-panel-group-direction":m,"data-panel-group-id":S,"data-resize-handle":"","data-resize-handle-active":L==="drag"?"pointer":A?"keyboard":void 0,"data-resize-handle-state":L,"data-panel-resize-handle-enabled":!n,"data-panel-resize-handle-id":T})}v0.displayName="PanelResizeHandle";const $m=({children:t,isOpen:e})=>{const{isDesktop:n}=An();return n?b.jsx("div",{className:Me("c__right-panel",{open:e}),children:t}):b.jsx("div",{className:Me("c__right-panel__mobile",{open:e}),children:t})},Pm=(t,e,n)=>{const[r,i]=c.useState(typeof e>"u"?t:e),o=l=>{n?n(l):i(l)};return c.useEffect(()=>{n&&typeof e<"u"&&e!==r&&i(e)},[e]),[r,o]},Dm=({icon:t,children:e,hideLeftPanelOnDesktop:n=!1,leftPanelContent:r,rightPanelContent:i,rightHeaderContent:o,languages:l,enableResize:a=!1,rightPanelIsOpen:s=!1,...u})=>{const[d,f]=Pm(!1,u.isLeftPanelOpen,u.setIsLeftPanelOpen),{isDesktop:p}=An(),g=c.useRef(null),[y,h]=c.useState(Dr(300,p)),[v,m]=c.useState(Dr(450,p)),S=()=>{f(!d)};c.useEffect(()=>{const $=()=>{const E=Math.round(Dr(300,p)),T=Math.round(Math.min(Dr(450,p),40));h(p?E:0),m(a?T:E)};return $(),window.addEventListener("resize",()=>{$()}),()=>{window.removeEventListener("resize",$)}},[p,a]);const C=p?!n:!0,P=p?!n:d;return b.jsxs("div",{className:"c__main-layout",children:[b.jsx("div",{className:"c__main-layout__header",children:b.jsx(Gf,{onTogglePanel:S,isPanelOpen:d,rightIcon:o,leftIcon:t,languages:l})}),b.jsx("div",{className:"c__main-layout__content",children:b.jsxs(g0,{autoSaveId:"persistance",direction:"horizontal",children:[C&&b.jsxs(b.Fragment,{children:[b.jsx(al,{ref:g,order:0,defaultSize:y,minSize:y,maxSize:v,children:b.jsx(qf,{isOpen:P,children:r})}),p&&b.jsx(v0,{className:"bg-greyscale-200",style:{width:"1px"}})]}),b.jsx(al,{order:1,children:b.jsxs("div",{className:"c__main-layout__content__center",children:[b.jsx("div",{className:"c__main-layout__content__center__children",children:e}),b.jsx($m,{isOpen:s,children:i})]})})]})})]})},Dr=(t,e)=>{if(!e)return 0;const n=window.innerWidth;return t/n*100},Tm=52,sa=({size:t="sm"})=>b.jsx("div",{className:["c__spinner",t].join(" ")}),m0=({children:t,text:e,...n})=>b.jsxs("div",{className:"suite__label__container",children:[b.jsx("label",{...n,children:t}),e&&b.jsx("span",{className:"suite__label__container__description",children:e})]}),_m=({label:t,text:e,labelSide:n="right",children:r})=>b.jsxs("div",{className:Me("c__with-label",{[n]:!0}),children:[b.jsx(m0,{children:t,text:e}),r]});var Fs=1,Im=.9,Om=.8,km=.17,po=.1,go=.999,Nm=.9999,Rm=.99,Mm=/[\\\/_+.#"@\[\(\{&]/,Lm=/[\\\/_+.#"@\[\(\{&]/g,Am=/[\s-]/,y0=/[\s-]/g;function ul(t,e,n,r,i,o,l){if(o===e.length)return i===t.length?Fs:Rm;var a=`${i},${o}`;if(l[a]!==void 0)return l[a];for(var s=r.charAt(o),u=n.indexOf(s,i),d=0,f,p,g,y;u>=0;)f=ul(t,e,n,r,u+1,o+1,l),f>d&&(u===i?f*=Fs:Mm.test(t.charAt(u-1))?(f*=Om,g=t.slice(i,u-1).match(Lm),g&&i>0&&(f*=Math.pow(go,g.length))):Am.test(t.charAt(u-1))?(f*=Im,y=t.slice(i,u-1).match(y0),y&&i>0&&(f*=Math.pow(go,y.length))):(f*=km,i>0&&(f*=Math.pow(go,u-i))),t.charAt(u)!==e.charAt(o)&&(f*=Nm)),(f<po&&n.charAt(u-1)===r.charAt(o+1)||r.charAt(o+1)===r.charAt(o)&&n.charAt(u-1)!==r.charAt(o))&&(p=ul(t,e,n,r,u+1,o+2,l),p*po>f&&(f=p*po)),f>d&&(d=f),u=n.indexOf(s,u+1);return l[a]=d,d}function js(t){return t.toLowerCase().replace(y0," ")}function Km(t,e,n){return t=n&&n.length>0?`${t+" "+n.join(" ")}`:t,ul(t,e,js(t),js(e),0,0,{})}function xt(t,e,{checkForDefaultPrevented:n=!0}={}){return function(i){if(t==null||t(i),n===!1||!i.defaultPrevented)return e==null?void 0:e(i)}}function Hs(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function b0(...t){return e=>{let n=!1;const r=t.map(i=>{const o=Hs(i,e);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let i=0;i<r.length;i++){const o=r[i];typeof o=="function"?o():Hs(t[i],null)}}}}function Zt(...t){return _.useCallback(b0(...t),t)}function Fm(t,e){const n=_.createContext(e),r=o=>{const{children:l,...a}=o,s=_.useMemo(()=>a,Object.values(a));return b.jsx(n.Provider,{value:s,children:l})};r.displayName=t+"Provider";function i(o){const l=_.useContext(n);if(l)return l;if(e!==void 0)return e;throw new Error(`\`${o}\` must be used within \`${t}\``)}return[r,i]}function jm(t,e=[]){let n=[];function r(o,l){const a=_.createContext(l),s=n.length;n=[...n,l];const u=f=>{var m;const{scope:p,children:g,...y}=f,h=((m=p==null?void 0:p[t])==null?void 0:m[s])||a,v=_.useMemo(()=>y,Object.values(y));return b.jsx(h.Provider,{value:v,children:g})};u.displayName=o+"Provider";function d(f,p){var h;const g=((h=p==null?void 0:p[t])==null?void 0:h[s])||a,y=_.useContext(g);if(y)return y;if(l!==void 0)return l;throw new Error(`\`${f}\` must be used within \`${o}\``)}return[u,d]}const i=()=>{const o=n.map(l=>_.createContext(l));return function(a){const s=(a==null?void 0:a[t])||o;return _.useMemo(()=>({[`__scope${t}`]:{...a,[t]:s}}),[a,s])}};return i.scopeName=t,[r,Hm(i,...e)]}function Hm(...t){const e=t[0];if(t.length===1)return e;const n=()=>{const r=t.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const l=r.reduce((a,{useScope:s,scopeName:u})=>{const f=s(o)[`__scope${u}`];return{...a,...f}},{});return _.useMemo(()=>({[`__scope${e.scopeName}`]:l}),[l])}};return n.scopeName=e.scopeName,n}var ci=globalThis!=null&&globalThis.document?_.useLayoutEffect:()=>{},zm=_.useId||(()=>{}),Vm=0;function dt(t){const[e,n]=_.useState(zm());return ci(()=>{n(r=>r??String(Vm++))},[t]),e?`radix-${e}`:""}function Ht(t){const e=_.useRef(t);return _.useEffect(()=>{e.current=t}),_.useMemo(()=>(...n)=>{var r;return(r=e.current)==null?void 0:r.call(e,...n)},[])}function Bm({prop:t,defaultProp:e,onChange:n=()=>{}}){const[r,i]=Um({defaultProp:e,onChange:n}),o=t!==void 0,l=o?t:r,a=Ht(n),s=_.useCallback(u=>{if(o){const f=typeof u=="function"?u(t):u;f!==t&&a(f)}else i(u)},[o,t,i,a]);return[l,s]}function Um({defaultProp:t,onChange:e}){const n=_.useState(t),[r]=n,i=_.useRef(r),o=Ht(e);return _.useEffect(()=>{i.current!==r&&(o(r),i.current=r)},[r,i,o]),n}var ua=_.forwardRef((t,e)=>{const{children:n,...r}=t,i=_.Children.toArray(n),o=i.find(Gm);if(o){const l=o.props.children,a=i.map(s=>s===o?_.Children.count(l)>1?_.Children.only(null):_.isValidElement(l)?l.props.children:null:s);return b.jsx(cl,{...r,ref:e,children:_.isValidElement(l)?_.cloneElement(l,void 0,a):null})}return b.jsx(cl,{...r,ref:e,children:n})});ua.displayName="Slot";var cl=_.forwardRef((t,e)=>{const{children:n,...r}=t;if(_.isValidElement(n)){const i=Ym(n),o=qm(r,n.props);return n.type!==_.Fragment&&(o.ref=e?b0(e,i):i),_.cloneElement(n,o)}return _.Children.count(n)>1?_.Children.only(null):null});cl.displayName="SlotClone";var Wm=({children:t})=>b.jsx(b.Fragment,{children:t});function Gm(t){return _.isValidElement(t)&&t.type===Wm}function qm(t,e){const n={...e};for(const r in e){const i=t[r],o=e[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...a)=>{o(...a),i(...a)}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...t,...n}}function Ym(t){var r,i;let e=(r=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:r.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=(i=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:i.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var Zm=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Ee=Zm.reduce((t,e)=>{const n=_.forwardRef((r,i)=>{const{asChild:o,...l}=r,a=o?ua:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),b.jsx(a,{...l,ref:i})});return n.displayName=`Primitive.${e}`,{...t,[e]:n}},{});function Xm(t,e){t&&lh.flushSync(()=>t.dispatchEvent(e))}function Jm(t,e=globalThis==null?void 0:globalThis.document){const n=Ht(t);_.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return e.addEventListener("keydown",r,{capture:!0}),()=>e.removeEventListener("keydown",r,{capture:!0})},[n,e])}var Qm="DismissableLayer",dl="dismissableLayer.update",e1="dismissableLayer.pointerDownOutside",t1="dismissableLayer.focusOutside",zs,S0=_.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),C0=_.forwardRef((t,e)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:l,onDismiss:a,...s}=t,u=_.useContext(S0),[d,f]=_.useState(null),p=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=_.useState({}),y=Zt(e,T=>f(T)),h=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),m=h.indexOf(v),S=d?h.indexOf(d):-1,C=u.layersWithOutsidePointerEventsDisabled.size>0,P=S>=m,$=i1(T=>{const L=T.target,z=[...u.branches].some(A=>A.contains(L));!P||z||(i==null||i(T),l==null||l(T),T.defaultPrevented||a==null||a())},p),E=o1(T=>{const L=T.target;[...u.branches].some(A=>A.contains(L))||(o==null||o(T),l==null||l(T),T.defaultPrevented||a==null||a())},p);return Jm(T=>{S===u.layers.size-1&&(r==null||r(T),!T.defaultPrevented&&a&&(T.preventDefault(),a()))},p),_.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(zs=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Vs(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=zs)}},[d,p,n,u]),_.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Vs())},[d,u]),_.useEffect(()=>{const T=()=>g({});return document.addEventListener(dl,T),()=>document.removeEventListener(dl,T)},[]),b.jsx(Ee.div,{...s,ref:y,style:{pointerEvents:C?P?"auto":"none":void 0,...t.style},onFocusCapture:xt(t.onFocusCapture,E.onFocusCapture),onBlurCapture:xt(t.onBlurCapture,E.onBlurCapture),onPointerDownCapture:xt(t.onPointerDownCapture,$.onPointerDownCapture)})});C0.displayName=Qm;var n1="DismissableLayerBranch",r1=_.forwardRef((t,e)=>{const n=_.useContext(S0),r=_.useRef(null),i=Zt(e,r);return _.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),b.jsx(Ee.div,{...t,ref:i})});r1.displayName=n1;function i1(t,e=globalThis==null?void 0:globalThis.document){const n=Ht(t),r=_.useRef(!1),i=_.useRef(()=>{});return _.useEffect(()=>{const o=a=>{if(a.target&&!r.current){let s=function(){w0(e1,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(e.removeEventListener("click",i.current),i.current=s,e.addEventListener("click",i.current,{once:!0})):s()}else e.removeEventListener("click",i.current);r.current=!1},l=window.setTimeout(()=>{e.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(l),e.removeEventListener("pointerdown",o),e.removeEventListener("click",i.current)}},[e,n]),{onPointerDownCapture:()=>r.current=!0}}function o1(t,e=globalThis==null?void 0:globalThis.document){const n=Ht(t),r=_.useRef(!1);return _.useEffect(()=>{const i=o=>{o.target&&!r.current&&w0(t1,n,{originalEvent:o},{discrete:!1})};return e.addEventListener("focusin",i),()=>e.removeEventListener("focusin",i)},[e,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Vs(){const t=new CustomEvent(dl);document.dispatchEvent(t)}function w0(t,e,n,{discrete:r}){const i=n.originalEvent.target,o=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&i.addEventListener(t,e,{once:!0}),r?Xm(i,o):i.dispatchEvent(o)}var vo="focusScope.autoFocusOnMount",mo="focusScope.autoFocusOnUnmount",Bs={bubbles:!1,cancelable:!0},l1="FocusScope",x0=_.forwardRef((t,e)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...l}=t,[a,s]=_.useState(null),u=Ht(i),d=Ht(o),f=_.useRef(null),p=Zt(e,h=>s(h)),g=_.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;_.useEffect(()=>{if(r){let h=function(C){if(g.paused||!a)return;const P=C.target;a.contains(P)?f.current=P:yt(f.current,{select:!0})},v=function(C){if(g.paused||!a)return;const P=C.relatedTarget;P!==null&&(a.contains(P)||yt(f.current,{select:!0}))},m=function(C){if(document.activeElement===document.body)for(const $ of C)$.removedNodes.length>0&&yt(a)};document.addEventListener("focusin",h),document.addEventListener("focusout",v);const S=new MutationObserver(m);return a&&S.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",v),S.disconnect()}}},[r,a,g.paused]),_.useEffect(()=>{if(a){Ws.add(g);const h=document.activeElement;if(!a.contains(h)){const m=new CustomEvent(vo,Bs);a.addEventListener(vo,u),a.dispatchEvent(m),m.defaultPrevented||(a1(f1(E0(a)),{select:!0}),document.activeElement===h&&yt(a))}return()=>{a.removeEventListener(vo,u),setTimeout(()=>{const m=new CustomEvent(mo,Bs);a.addEventListener(mo,d),a.dispatchEvent(m),m.defaultPrevented||yt(h??document.body,{select:!0}),a.removeEventListener(mo,d),Ws.remove(g)},0)}}},[a,u,d,g]);const y=_.useCallback(h=>{if(!n&&!r||g.paused)return;const v=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,m=document.activeElement;if(v&&m){const S=h.currentTarget,[C,P]=s1(S);C&&P?!h.shiftKey&&m===P?(h.preventDefault(),n&&yt(C,{select:!0})):h.shiftKey&&m===C&&(h.preventDefault(),n&&yt(P,{select:!0})):m===S&&h.preventDefault()}},[n,r,g.paused]);return b.jsx(Ee.div,{tabIndex:-1,...l,ref:p,onKeyDown:y})});x0.displayName=l1;function a1(t,{select:e=!1}={}){const n=document.activeElement;for(const r of t)if(yt(r,{select:e}),document.activeElement!==n)return}function s1(t){const e=E0(t),n=Us(e,t),r=Us(e.reverse(),t);return[n,r]}function E0(t){const e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)e.push(n.currentNode);return e}function Us(t,e){for(const n of t)if(!u1(n,{upTo:e}))return n}function u1(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function c1(t){return t instanceof HTMLInputElement&&"select"in t}function yt(t,{select:e=!1}={}){if(t&&t.focus){const n=document.activeElement;t.focus({preventScroll:!0}),t!==n&&c1(t)&&e&&t.select()}}var Ws=d1();function d1(){let t=[];return{add(e){const n=t[0];e!==n&&(n==null||n.pause()),t=Gs(t,e),t.unshift(e)},remove(e){var n;t=Gs(t,e),(n=t[0])==null||n.resume()}}}function Gs(t,e){const n=[...t],r=n.indexOf(e);return r!==-1&&n.splice(r,1),n}function f1(t){return t.filter(e=>e.tagName!=="A")}var h1="Portal",$0=_.forwardRef((t,e)=>{var a;const{container:n,...r}=t,[i,o]=_.useState(!1);ci(()=>o(!0),[]);const l=n||i&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return l?Wt.createPortal(b.jsx(Ee.div,{...r,ref:e}),l):null});$0.displayName=h1;function p1(t,e){return _.useReducer((n,r)=>e[n][r]??n,t)}var Ai=t=>{const{present:e,children:n}=t,r=g1(e),i=typeof n=="function"?n({present:r.isPresent}):_.Children.only(n),o=Zt(r.ref,v1(i));return typeof n=="function"||r.isPresent?_.cloneElement(i,{ref:o}):null};Ai.displayName="Presence";function g1(t){const[e,n]=_.useState(),r=_.useRef({}),i=_.useRef(t),o=_.useRef("none"),l=t?"mounted":"unmounted",[a,s]=p1(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return _.useEffect(()=>{const u=Tr(r.current);o.current=a==="mounted"?u:"none"},[a]),ci(()=>{const u=r.current,d=i.current;if(d!==t){const p=o.current,g=Tr(u);t?s("MOUNT"):g==="none"||(u==null?void 0:u.display)==="none"?s("UNMOUNT"):s(d&&p!==g?"ANIMATION_OUT":"UNMOUNT"),i.current=t}},[t,s]),ci(()=>{if(e){let u;const d=e.ownerDocument.defaultView??window,f=g=>{const h=Tr(r.current).includes(g.animationName);if(g.target===e&&h&&(s("ANIMATION_END"),!i.current)){const v=e.style.animationFillMode;e.style.animationFillMode="forwards",u=d.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=v)})}},p=g=>{g.target===e&&(o.current=Tr(r.current))};return e.addEventListener("animationstart",p),e.addEventListener("animationcancel",f),e.addEventListener("animationend",f),()=>{d.clearTimeout(u),e.removeEventListener("animationstart",p),e.removeEventListener("animationcancel",f),e.removeEventListener("animationend",f)}}else s("ANIMATION_END")},[e,s]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:_.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function Tr(t){return(t==null?void 0:t.animationName)||"none"}function v1(t){var r,i;let e=(r=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:r.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=(i=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:i.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var yo=0;function m1(){_.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??qs()),document.body.insertAdjacentElement("beforeend",t[1]??qs()),yo++,()=>{yo===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),yo--}},[])}function qs(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var Fr="right-scroll-bar-position",jr="width-before-scroll-bar",y1="with-scroll-bars-hidden",b1="--removed-body-scroll-bar-size";function bo(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}function S1(t,e){var n=c.useState(function(){return{value:t,callback:e,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=e,n.facade}var C1=typeof window<"u"?_.useLayoutEffect:_.useEffect,Ys=new WeakMap;function w1(t,e){var n=S1(null,function(r){return t.forEach(function(i){return bo(i,r)})});return C1(function(){var r=Ys.get(n);if(r){var i=new Set(r),o=new Set(t),l=n.current;i.forEach(function(a){o.has(a)||bo(a,null)}),o.forEach(function(a){i.has(a)||bo(a,l)})}Ys.set(n,t)},[t]),n}function x1(t){return t}function E1(t,e){e===void 0&&(e=x1);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:t},useMedium:function(o){var l=e(o,r);return n.push(l),function(){n=n.filter(function(a){return a!==l})}},assignSyncMedium:function(o){for(r=!0;n.length;){var l=n;n=[],l.forEach(o)}n={push:function(a){return o(a)},filter:function(){return n}}},assignMedium:function(o){r=!0;var l=[];if(n.length){var a=n;n=[],a.forEach(o),l=n}var s=function(){var d=l;l=[],d.forEach(o)},u=function(){return Promise.resolve().then(s)};u(),n={push:function(d){l.push(d),u()},filter:function(d){return l=l.filter(d),n}}}};return i}function $1(t){t===void 0&&(t={});var e=E1(null);return e.options=nt({async:!0,ssr:!1},t),e}var P0=function(t){var e=t.sideCar,n=Lc(t,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=e.read();if(!r)throw new Error("Sidecar medium not found");return _.createElement(r,nt({},n))};P0.isSideCarExport=!0;function P1(t,e){return t.useMedium(e),P0}var D0=$1(),So=function(){},Ki=_.forwardRef(function(t,e){var n=_.useRef(null),r=_.useState({onScrollCapture:So,onWheelCapture:So,onTouchMoveCapture:So}),i=r[0],o=r[1],l=t.forwardProps,a=t.children,s=t.className,u=t.removeScrollBar,d=t.enabled,f=t.shards,p=t.sideCar,g=t.noIsolation,y=t.inert,h=t.allowPinchZoom,v=t.as,m=v===void 0?"div":v,S=t.gapMode,C=Lc(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),P=p,$=w1([n,e]),E=nt(nt({},C),i);return _.createElement(_.Fragment,null,d&&_.createElement(P,{sideCar:D0,removeScrollBar:u,shards:f,noIsolation:g,inert:y,setCallbacks:o,allowPinchZoom:!!h,lockRef:n,gapMode:S}),l?_.cloneElement(_.Children.only(a),nt(nt({},E),{ref:$})):_.createElement(m,nt({},E,{className:s,ref:$}),a))});Ki.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ki.classNames={fullWidth:jr,zeroRight:Fr};var D1=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function T1(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=D1();return e&&t.setAttribute("nonce",e),t}function _1(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function I1(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var O1=function(){var t=0,e=null;return{add:function(n){t==0&&(e=T1())&&(_1(e,n),I1(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},k1=function(){var t=O1();return function(e,n){_.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&n])}},T0=function(){var t=k1(),e=function(n){var r=n.styles,i=n.dynamic;return t(r,i),null};return e},N1={left:0,top:0,right:0,gap:0},Co=function(t){return parseInt(t||"",10)||0},R1=function(t){var e=window.getComputedStyle(document.body),n=e[t==="padding"?"paddingLeft":"marginLeft"],r=e[t==="padding"?"paddingTop":"marginTop"],i=e[t==="padding"?"paddingRight":"marginRight"];return[Co(n),Co(r),Co(i)]},M1=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return N1;var e=R1(t),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,r-n+e[2]-e[0])}},L1=T0(),Pn="data-scroll-locked",A1=function(t,e,n,r){var i=t.left,o=t.top,l=t.right,a=t.gap;return n===void 0&&(n="margin"),`
|
|
48
48
|
.`.concat(y1,` {
|
|
49
49
|
overflow: hidden `).concat(r,`;
|
|
50
50
|
padding-right: `).concat(a,"px ").concat(r,`;
|