PageSourceSearch

https://fastyowi.com/_next/static/chunks/2929-9ae233bd2a5d88ed.js

js fastyowi.com collected 2026-10-09 23:00:24 UTC 238,635 bytes, 10 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ca5b542b-78a0-4d1f-b373-2017aa3835ae",e._sentryDebugIdIdentifier="sentry-dbid-ca5b542b-78a0-4d1f-b373-2017aa3835ae")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2929],{14095:function(e,t,r){r.d(t,{VS:function(){return n},Yv:function(){return o},Yx:function(){return l},sK:function(){return i}});var n=e=>{let t={top:{originY:1},bottom:{originY:0},left:{originX:1},right:{originX:0},"top-start":{originX:0,originY:1},"top-end":{originX:1,originY:1},"bottom-start":{originX:0,originY:0},"bottom-end":{originX:1,originY:0},"right-start":{originX:0,originY:0},"right-end":{originX:0,originY:1},"left-start":{originX:1,originY:0},"left-end":{originX:1,originY:1}};return(null==t?void 0:t[e])||{}},l=e=>({top:"top",bottom:"bottom",left:"left",right:"right","top-start":"top start","top-end":"top end","bottom-start":"bottom start","bottom-end":"bottom end","left-start":"left top","left-end":"left bottom","right-start":"right top","right-end":"right bottom"})[e],o=(e,t)=>{if(t.includes("-")){let[r]=t.split("-");if(r.includes(e))return!1}return!0},i=(e,t)=>{if(t.includes("-")){let[,r]=t.split("-");return"".concat(e,"-").concat(r)}return e}},34737:function(e,t,r){r.d(t,{c:function(){return o}});var n=r(2265);function l(e){return null}l.getCollectionNode=function*(e,t){let{childItems:r,title:l,children:o}=e,i=e.title||e.children,a=e.textValue||("string"==typeof i?i:"")||e["aria-label"]||"";a||null==t||t.suppressTextValueWarning,yield{type:"item",props:e,rendered:i,textValue:a,"aria-label":e["aria-label"],hasChildNodes:null!=e.hasChildItems?e.hasChildItems:!!(e.childItems||e.title&&n.Children.count(e.children)>0),*childNodes(){if(r)for(let e of r)yield{type:"item",value:e};else if(l){let e=[];n.Children.forEach(o,t=>{e.push({type:"item",element:t})}),yield*e}}}};let o=l},66947:function(e,t,r){r.d(t,{j:function(){return u}});var n=r(49442),l=(0,r(26544).tv)({base:"shrink-0 bg-divider border-none",variants:{orientation:{horizontal:"w-full h-divider",vertical:"h-full w-divider"}},defaultVariants:{orientation:"horizontal"}}),o=r(2265),i=r(82319),a=r(57437),s=(0,i.Gp)((e,t)=>{let{Component:r,getDividerProps:i}=function(e){var t;let r,i;let{as:a,className:s,orientation:u,...c}=e,d=a||"hr";"hr"===d&&"vertical"===u&&(d="div");let{separatorProps:f}=(t={elementType:"string"==typeof d?d:"hr",orientation:u},i=(0,n.z)(t,{enabled:"string"==typeof t.elementType}),("vertical"===t.orientation&&(r="vertical"),"hr"!==t.elementType)?{separatorProps:{...i,role:"separator","aria-orientation":r}}:{separatorProps:i}),h=(0,o.useMemo)(()=>l({orientation:u,className:s}),[u,s]);return{Component:d,getDividerProps:(0,o.useCallback)((e={})=>({className:h,role:"separator","data-orientation":u,...f,...c,...e}),[h,u,f,c])}}({...e});return(0,a.jsx)(r,{ref:t,...i()})});s.displayName="HeroUI.Divider";var u=s},21965:function(e,t,r){r.d(t,{Lj:function(){return n},y7:function(){return l}});var n={ease:[.36,.66,.4,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1],spring:[.155,1.105,.295,1.12],springOut:[.57,-.15,.62,.07],softSpring:[.16,1.11,.3,1.02]};n.easeOut,n.easeIn;var l={scaleSpring:{enter:{transform:"scale(1)",opacity:1,transition:{type:"spring",bounce:0,duration:.2}},exit:{transform:"scale(0.85)",opacity:0,transition:{type:"easeOut",duration:.15}}},scaleSpringOpacity:{initial:{opacity:0,transform:"scale(0.8)"},enter:{opacity:1,transform:"scale(1)",transition:{type:"spring",bounce:0,duration:.3}},exit:{opacity:0,transform:"scale(0.96)",transition:{type:"easeOut",bounce:0,duration:.15}}},scale:{enter:{scale:1},exit:{scale:.95}},scaleFadeIn:{enter:{transform:"scale(1)",opacity:1,transition:{duration:.25,ease:n.easeIn}},exit:{transform:"scale(0.95)",opacity:0,transition:{duration:.2,ease:n.easeOut}}},scaleInOut:{enter:{transform:"scale(1)",opacity:1,transition:{duration:.4,ease:n.ease}},exit:{transform:"scale(1.03)",opacity:0,transition:{duration:.3,ease:n.ease}}},fade:{enter:{opacity:1,transition:{duration:.4,ease:n.ease}},exit:{opacity:0,transition:{duration:.3,ease:n.ease}}},collapse:{enter:{opacity:1,height:"auto",transition:{height:{type:"spring",bounce:0,duration:.3},opacity:{easings:"ease",duration:.4}}},exit:{opacity:0,height:0,transition:{easings:"ease",duration:.3}}}}},43348:function(e,t,r){r.d(t,{Y:function(){return N}});var n=r(86495),l=r(91299),o=r(82319),i=r(2265);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}
1).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}var s=i.useLayoutEffect,u=function(e){var t=i.useRef(e);return s(function(){t.current=e}),t},c=function(e,t){if("function"==typeof e){e(t);return}e.current=t},d=function(e,t){var r=i.useRef();return i.useCallback(function(n){e.current=n,r.current&&c(r.current,null),r.current=t,t&&c(t,n)},[t])},f={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0",display:"block"},h=function(e){Object.keys(f).forEach(function(t){e.style.setProperty(t,f[t],"important")})},p=null,g=function(e,t){var r=e.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?r+t.borderSize:r-t.paddingSize},v=function(){},m=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak","wordSpacing","scrollbarGutter"],b=!!document.documentElement.currentStyle,y=function(e){var t=window.getComputedStyle(e);if(null===t)return null;var r=m.reduce(function(e,r){return e[r]=t[r],e},{}),n=r.boxSizing;if(""===n)return null;b&&"border-box"===n&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px");var l=parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),o=parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth);return{sizingStyle:r,paddingSize:l,borderSize:o}};function x(e,t,r){var n=u(r);i.useLayoutEffect(function(){var r=function(e){return n.current(e)};if(e)return e.addEventListener(t,r),function(){return e.removeEventListener(t,r)}},[])}var w=function(e,t){x(document.body,"reset",function(r){e.current.form===r.target&&t(r)})},E=function(e){x(window,"resize",e)},S=function(e){x(document.fonts,"loadingdone",e)},k=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],P=i.forwardRef(function(e,t){var r=e.cacheMeasurements,n=e.maxRows,l=e.minRows,o=e.onChange,s=void 0===o?v:o,u=e.onHeightChange,c=void 0===u?v:u,f=function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,k),m=void 0!==f.value,b=i.useRef(null),x=d(b,t),P=i.useRef(0),C=i.useRef(),K=function(){var e,t,o,i,a,s,u,d,f,v,m,x=b.current,w=r&&C.current?C.current:y(x);if(w){C.current=w;var E=(e=x.value||x.placeholder||"x",void 0===(t=l)&&(t=1),void 0===(o=n)&&(o=1/0),p||((p=document.createElement("textarea")).setAttribute("tabindex","-1"),p.setAttribute("aria-hidden","true"),h(p)),null===p.parentNode&&document.body.appendChild(p),i=w.paddingSize,a=w.borderSize,u=(s=w.sizingStyle).boxSizing,Object.keys(s).forEach(function(e){p.style[e]=s[e]}),h(p),p.value=e,d=g(p,w),p.value=e,d=g(p,w),p.value="x",v=(f=p.scrollHeight-i)*t,"border-box"===u&&(v=v+i+a),d=Math.max(v,d),m=f*o,"border-box"===u&&(m=m+i+a),[d=Math.min(m,d),f]),S=E[0],k=E[1];P.current!==S&&(P.current=S,x.style.setProperty("height",S+"px","important"),c(S,{rowHeight:k}))}};return i.useLayoutEffect(K),w(b,function(){if(!m){var e=b.current.value;requestAnimationFrame(function(){var t=b.current;t&&e!==t.value&&K()})}}),E(K),S(K),i.createElement("textarea",a({},f,{onChange:function(e){m||K(),s(e)},ref:x}))}),C=r(81166),K=r(57437),T=(0,o.Gp)((e,t)=>{let{style:r,minRows:o=3,maxRows:a=8,cacheMeasurements:s=!1,disableAutosize:u=!1,onHeightChange:c,...d}=e,{Component:f,label:h,description:p,startContent:g,endContent:v,hasHelper:m,shouldLabelBeOutside:b,shouldLabelBeInside:y,isInvalid:x,errorMessage:w,getBaseProps:E,getLabelProps:S,getInputProps:k,getInnerWrapperProps:T,getInputWrapperProps:N,getHelperWrapperProps:M,getDescriptionProps:D,getErrorMessageProps:R,isClearable:I,getClearButtonProps:L}=(0,n.G)({...d,ref:t,isMultiline:!0}),[A,F]=(0,i.useState)(o>1),[B,z]=(0,i.useState)(!1),O=h?(0,K.jsx)("label",{...S(),children:h}):null,_=k(),j=u?(0,K.jsx)("textarea",{..._,style:(0,l.dG)(_.style,null!=r?r:{})}):(0,K.jsx)(P,{..._,cacheMeasurements:s,"data-hide-scroll":(0,l.PB)(!B),maxRows:a,minRows:o,style:(0,l.dG)(_.style,null!=r?r:{}),onHeightChange:(e,t)=>
1{1===o&&F(e>=2*t.rowHeight),a>o&&z(e>=a*t.rowHeight),null==c||c(e,t)}}),W=(0,i.useMemo)(()=>I?(0,K.jsx)("button",{...L(),children:(0,K.jsx)(C.f,{})}):null,[I,L]),H=(0,i.useMemo)(()=>g||v?(0,K.jsxs)("div",{...T(),children:[g,j,v]}):(0,K.jsx)("div",{...T(),children:j}),[g,_,v,T]),V=x&&w,U=V||p;return(0,K.jsxs)(f,{...E(),children:[b?O:null,(0,K.jsxs)("div",{...N(),"data-has-multiple-rows":(0,l.PB)(A),children:[y?O:null,H,W]}),m&&U?(0,K.jsx)("div",{...M(),children:V?(0,K.jsx)("div",{...R(),children:w}):(0,K.jsx)("div",{...D(),children:p})}):null]})});T.displayName="HeroUI.Textarea";var N=T},28716:function(e,t,r){r.d(t,{O:function(){return u}});var n=r(61156),l=r(82319),o=r(57437),i=e=>(0,o.jsxs)("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:"1em",shapeRendering:"geometricPrecision",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",viewBox:"0 0 24 24",width:"1em",...e,children:[(0,o.jsx)("path",{d:"M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6"}),(0,o.jsx)("path",{d:"M15 3h6v6"}),(0,o.jsx)("path",{d:"M10 14L21 3"})]}),a=r(88755),s=(0,l.Gp)((e,t)=>{let{Component:r,children:l,showAnchorIcon:s,anchorIcon:u=(0,o.jsx)(i,{className:a.A}),getLinkProps:c}=(0,n.n)({ref:t,...e});return(0,o.jsx)(r,{...c(),children:(0,o.jsxs)(o.Fragment,{children:[l,s&&u]})})});s.displayName="HeroUI.Link";var u=s},61156:function(e,t,r){r.d(t,{n:function(){return A}});var n=r(88755);let l=new Set(["id"]),o=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),i=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),a=new Set(["dir","lang","hidden","inert","translate"]),s=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),u=/^(data-.*)$/;var c=r(2265);"undefined"!=typeof window&&window.document&&window.document.createElement;let d=new Map;"undefined"!=typeof FinalizationRegistry&&new FinalizationRegistry(e=>{d.delete(e)});var f=r(98099);function h(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let n=e[r];for(let e in n){let r=t[e],l=n[e];"function"==typeof r&&"function"==typeof l&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&90>=e.charCodeAt(2)?t[e]=function(...e){return(...t)=>{for(let r of e)"function"==typeof r&&r(...t)}}(r,l):("className"===e||"UNSAFE_className"===e)&&"string"==typeof r&&"string"==typeof l?t[e]=(0,f.Z)(r,l):"id"===e&&r&&l?t.id=function(e,t){if(e===t)return e;let r=d.get(e);if(r)return r.forEach(e=>e.current=t),t;let n=d.get(t);return n?(n.forEach(t=>t.current=e),e):t}(r,l):t[e]=void 0!==l?l:r}}return t}let p=null;function g(e){var t;if("undefined"==typeof window||null==window.navigator)return!1;let r=null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands;return Array.isArray(r)&&r.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function v(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function m(e){let t=null;return()=>(null==t&&(t=e()),t)}let b=m(function(){return v(/^Mac/i)}),y=m(function(){return v(/^iPhone/i)}),x=m(function(){return v(/^iPad/i)||b()&&navigator.maxTouchPoints>1}),w=m(function(){return y()||x()});m(function(){return b()||w()});let E=m(function(){return g(/AppleWebKit/i)&&!S()}),S=m(function(){return g(/Chrome/i)});m(function(){return g(/Android/i)});let k=m(function(){return g(/Firefox/i)}),P=(0,c.createContext)({isNative:!0,open:function(e,t){!function(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let r=document.createElement("a");r.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(r.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(r.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(r.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(r.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(r.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(r),t(r),e.removeChild(r)}}(e,e=>K(e,t))},useHref:e=>e});function C(){return(0,c.useContext)(P)}function K(e,t,r=!0){var n,l;
1let{metaKey:o,ctrlKey:i,altKey:a,shiftKey:s}=t;k()&&(null===(l=window.event)||void 0===l?void 0:null===(n=l.type)||void 0===n?void 0:n.startsWith("key"))&&"_blank"===e.target&&(b()?o=!0:i=!0);let u=E()&&b()&&!x()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:i,altKey:a,shiftKey:s}):new MouseEvent("click",{metaKey:o,ctrlKey:i,altKey:a,shiftKey:s,bubbles:!0,cancelable:!0});K.isOpening=r,function(e){if(function(){if(null==p){p=!1;try{document.createElement("div").focus({get preventScroll(){return p=!0,!0}})}catch{}}return p}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}(e);e.focus(),function(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}(t)}}(e),e.dispatchEvent(u),K.isOpening=!1}K.isOpening=!1;var T=r(7659),N=r(83452),M=r(41090),D=r(82319),R=r(34491),I=r(27939),L=r(91299);function A(e){var t,r,d,f;let p=(0,M.w)(),[g,v]=(0,D.oe)(e,n.p.variantKeys),{ref:m,as:b,children:y,anchorIcon:x,isExternal:w=!1,showAnchorIcon:E=!1,autoFocus:S=!1,className:k,onPress:P,onPressStart:K,onPressEnd:A,onClick:F,...B}=g,z=(0,R.gy)(m),O=null!=(r=null!=(t=null==e?void 0:e.disableAnimation)?t:null==p?void 0:p.disableAnimation)&&r,{linkProps:_}=function(e,t){let{elementType:r="a",onPress:n,onPressStart:c,onPressEnd:d,onClick:f,isDisabled:p,...g}=e,v={};"a"!==r&&(v={role:"link",tabIndex:p?void 0:0});let{focusableProps:m}=(0,T.kc)(e,t),{pressProps:b,isPressed:y}=(0,N.r)({onClick:f,onPress:n,onPressStart:c,onPressEnd:d,isDisabled:p,ref:t}),x=function(e,t={}){let{labelable:r,isLink:n,global:c,events:d=c,propNames:f}=t,h={};for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(l.has(t)||r&&o.has(t)||n&&i.has(t)||c&&a.has(t)||d&&s.has(t)||t.endsWith("Capture")&&s.has(t.slice(0,-7))||(null==f?void 0:f.has(t))||u.test(t))&&(h[t]=e[t]);return h}(g,{labelable:!0,isLink:"a"===r}),w=h(m,b),E=C();return{isPressed:y,linkProps:h(x,function(e){var t;let r=C().useHref(null!==(t=null==e?void 0:e.href)&&void 0!==t?t:"");return{href:(null==e?void 0:e.href)?r:void 0,target:null==e?void 0:e.target,rel:null==e?void 0:e.rel,download:null==e?void 0:e.download,ping:null==e?void 0:e.ping,referrerPolicy:null==e?void 0:e.referrerPolicy}}(e),{...w,...v,"aria-disabled":p||void 0,"aria-current":e["aria-current"],onClick:t=>{var r,n,l,o,i,a;let s;null==(r=b.onClick)||r.call(b,t),n=t,l=E,o=e.href,i=e.routerOptions,!(!l.isNative&&n.currentTarget instanceof HTMLAnchorElement)||!n.currentTarget.href||n.isDefaultPrevented()||(s=(a=n.currentTarget).getAttribute("target"))&&"_self"!==s||a.origin!==location.origin||a.hasAttribute("download")||n.metaKey||n.ctrlKey||n.altKey||n.shiftKey||!o||(n.preventDefault(),l.open(n.currentTarget,n,o,i))}})}}({...B,onPress:P,onPressStart:K,onPressEnd:A,onClick:F,isDisabled:e.isDisabled,elementType:"".concat(b)},z),{isFocused:j,isFocusVisible:W,focusProps:H}=(0,I.F)({autoFocus:S});w&&(B.rel=null!=(d=B.rel)?d:"noopener noreferrer",B.target=null!=(f=B.target)?f:"_blank");let V=(0,c.useMemo)(()=>(0,n.p)({...v,disableAnimation:O,className:k}),[(0,L.Xx)(v),O,k]);return{Component:b||"a",children:y,anchorIcon:x,showAnchorIcon:E,getLinkProps:(0,c.useCallback)(()=>({ref:z,className:V,"data-focus":(0,L.PB)(j),"data-disabled":(0,L.PB)(e.isDisabled),"data-focus-visible":(0,L.PB)(W),...(0,L.dG)(H,_,B)}),[V,j,W,H,_,B])}}},49355:function(e,t,r){r.d(t,{R:function(){return n}});var n=r(34737).c},71530:function(e,t,r){r.d(t,{X:function(){return F}});var n=r(31648),l=r(57437);function o(e){let{isSelected:t,disableAnimation:r,...n}=e;return(0,l.jsx)("svg",{"aria-hidden":"true","data-selected":t,role:"presentation",viewBox:"0 0 17 18",...n,children:(0,l.jsx)("polyline",{fill:"none",points:"1 9 7 14 15 4",stroke:"currentColor",strokeDasharray:22,strokeDashoffset:t?44:66,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,style:r?{}:{transition:"stroke-dashoffset 200ms ease"}})})}var i=r(2265),a=r(56952),s=r(41090),u=r(82319),c=r(27939),d=r(49442),f=r(91299),h=r(48944),p=r(38321),g=r(79279),v=r(20453),m=r(94382),b=r(45952),y=r(40582),x=r(14052),w=r(5092),E=r(73717),S=r(85408),k=r(83452),P=r(18204),C=r(19098),K=e=>{let{Component:t,rendered:r,description:n,isSelectable:K,isSelected:T,isDisabled:N,selectedIcon:M,startContent:D,endContent:R,hideSelectedIcon:I,disableAnimation:L,getItemProps:A,getLabelProps:F,getWrapperProps:B,getDescriptionProps:z,getSelectedIconProps:O}=function(e){var t,r;let n=(0,s.w)(),[l,o]=(0,u.oe)(e,a.D9.variantKeys),{as:K,item:T,state:N,description:M,startContent:D,endContent:R,isVirtualized:I,selectedIcon:L,className:A,classNames:F,autoFocus:B,onPress:z,onPressUp:O,onPressStart:_,onPressEnd:j,onPressChange:W,onClick:H,shouldHighlightOnFocus:V,hideSelectedIcon:U=!1,isReadOnly:G=!1,...Y}=l,$=null!=(r=null!=(t=e.disableAnimation)?t:null==n?void 0:n.disableAnimation)&&r,q=(0,i.useRef)(null),X=K||(e.href?"a":"li"),J="string"==typeof X,{rendered:Z,key:Q}=T,ee=N.disabledKeys.has(Q)||e.isDisabled,et="none"!==N.selectionManager.selectionMode,er=(0,C.d)(),{pressProps:en,isPressed:el}=(0,k.r)({ref:q,isDisabled:ee,onClick:H,onPress:z,onPressUp:O,onPressStart:_,onPressEnd:j,onPressChange:W}),{isHovered:eo,hoverProps:ei}=(0,P.X)({isDisabled:ee}),{isFocusVisible:ea,focusProps:es}=(0,c.F)({autoFocus:B}),{isFocused:eu,isSelected:ec,optionProps:ed,labelProps:ef,descriptionProps:eh}=function(e,t,r){var n,l,o,i,a,s,u,c;let{key:d}=e,f=(0,h.O).get(t),k=null!==(o=e.isDisabled)&&void 0!==o?o:t.selectionManager.isDisabled(d),P=null!==(i=e.isSelected)&&void 0!==i?i:t.selectionManager.isSelected(d),C=null!==(a=e.shouldSelectOnPressUp)&&void 0!==a?a:null==f?void 0:f.shouldSelectOnPressUp,K=null!==(s=e.shouldFocusOnHover)&&void 0!==s?s:null==f?void 0:f.shouldFocusOnHover,T=null!==(u=e.shouldUseVirtualFocus)&&void 0!==u?u:null==f?void 0:f.shouldUseVirtualFocus,N=null!==(c=e.isVirtualized)&&void 0!==c?c:null==f?void 0:f.isVirtualized,M=(0,p.mp)(),D=(0,p.mp)(),R={role:"option","aria-disabled":k||void 0,"aria-selected":"none"!==t.selectionManager.selectionMode?P:void 0};(0,g.V5)()&&(0,g.Pf)()||(R["aria-label"]=e["aria-label"],R["aria-labelledby"]=M,R["aria-describedby"]=D);let I=t.collection.getItem(d);if(N){let e=Number(null==I?void 0:I.index);R["aria-posinset"]=Number.isNaN(e)?void 0:e+1,R["aria-setsize"]=(0,x.i)(t.collection)}let L=(null==f?void 0:f.onAction)?()=>{var e;return null==f?void 0:null===(e=f.onAction)||void 0===e?void 0:e.call(f,d)}:void 0,A=(0,h.x)(t,d),{itemProps:F,isPressed:B,isFocused:z,hasAction:O,allowsSelection:_}
1=(0,S.C)({selectionManager:t.selectionManager,key:d,ref:r,shouldSelectOnPressUp:C,allowsDifferentPressOrigin:C&&K,isVirtualized:N,shouldUseVirtualFocus:T,isDisabled:k,onAction:L||(null==I?void 0:null===(n=I.props)||void 0===n?void 0:n.onAction)?(0,v.t)(null==I?void 0:null===(l=I.props)||void 0===l?void 0:l.onAction,L):void 0,linkBehavior:null==f?void 0:f.linkBehavior,id:A}),{hoverProps:j}=(0,w.X)({isDisabled:k||!K,onHoverStart(){(0,E.E)()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(d))}}),W=(0,m.z)(null==I?void 0:I.props);delete W.id;let H=(0,b.eY)(null==I?void 0:I.props);return{optionProps:{...R,...(0,y.d)(W,F,j,H),id:A},labelProps:{id:M},descriptionProps:{id:D},isFocused:z,isFocusVisible:z&&t.selectionManager.isFocused&&(0,E.E)(),isSelected:P,isDisabled:k,isPressed:B,allowsSelection:_,hasAction:O}}({key:Q,isDisabled:ee,"aria-label":l["aria-label"],isVirtualized:I},N,q),ep=ed,eg=(0,i.useMemo)(()=>(0,a.D9)({...o,isDisabled:ee,disableAnimation:$,hasTitleTextChild:"string"==typeof Z,hasDescriptionTextChild:"string"==typeof M}),[(0,f.Xx)(o),ee,$,Z,M]),ev=(0,f.Wy)(null==F?void 0:F.base,A);G&&(ep=(0,f.Os)(ep));let em=V&&eu||(er?eo||el:eo||eu&&!ea),eb=(0,i.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{"aria-hidden":(0,f.PB)(!0),"data-disabled":(0,f.PB)(ee),className:eg.selectedIcon({class:null==F?void 0:F.selectedIcon}),...e}},[ee,eg,F]);return{Component:X,domRef:q,slots:eg,classNames:F,isSelectable:et,isSelected:ec,isDisabled:ee,rendered:Z,description:M,startContent:D,endContent:R,selectedIcon:L,hideSelectedIcon:U,disableAnimation:$,getItemProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ref:q,...(0,f.dG)(ep,G?{}:(0,f.dG)(es,en),ei,(0,d.z)(Y,{enabled:J}),e),"data-selectable":(0,f.PB)(et),"data-focus":(0,f.PB)(eu),"data-hover":(0,f.PB)(em),"data-disabled":(0,f.PB)(ee),"data-selected":(0,f.PB)(ec),"data-pressed":(0,f.PB)(el),"data-focus-visible":(0,f.PB)(ea),className:eg.base({class:(0,f.Wy)(ev,e.className)})}},getLabelProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...(0,f.dG)(ef,e),"data-label":(0,f.PB)(!0),className:eg.title({class:null==F?void 0:F.title})}},getWrapperProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...(0,f.dG)(e),className:eg.wrapper({class:null==F?void 0:F.wrapper})}},getDescriptionProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...(0,f.dG)(eh,e),className:eg.description({class:null==F?void 0:F.description})}},getSelectedIconProps:eb}}(e),_=(0,i.useMemo)(()=>{let e=(0,l.jsx)(o,{disableAnimation:L,isSelected:T});return"function"==typeof M?M({icon:e,isSelected:T,isDisabled:N}):M||e},[M,T,N,L]);return(0,l.jsxs)(t,{...A(),children:[D,n?(0,l.jsxs)("div",{...B(),children:[(0,l.jsx)("span",{...F(),children:r}),(0,l.jsx)("span",{...z(),children:n})]}):(0,l.jsx)("span",{...F(),children:r}),K&&!I&&(0,l.jsx)("span",{...O(),children:_}),R]})};K.displayName="HeroUI.ListboxItem";var T=r(66947),N=(0,u.Gp)((e,t)=>{let{item:r,state:n,as:o,variant:s,color:u,disableAnimation:c,className:d,classNames:h,hideSelectedIcon:g,showDivider:v=!1,dividerProps:m={},itemClasses:b,title:y,items:x,...w}=e,E=(0,i.useMemo)(()=>(0,a.Dk)(),[]),S=(0,f.Wy)(null==h?void 0:h.base,d),k=(0,f.Wy)(null==h?void 0:h.divider,null==m?void 0:m.className),{itemProps:P,headingProps:C,groupProps:N}=function(e){let{heading:t,"aria-label":r}=e,n=(0,p.Me)();return{itemProps:{role:"presentation"},headingProps:t?{id:n,role:"presentation"}:{},groupProps:{role:"group","aria-label":r,"aria-labelledby":t?n:void 0}}}({heading:r.rendered,"aria-label":r["aria-label"]});return(0,l.jsxs)(o||"li",{"data-slot":"base",...(0,f.dG)(P,w),className:E.base({class:S}),children:[r.rendered&&(0,l.jsx)("span",{...C,className:E.heading({class:null==h?void 0:h.heading}),"data-slot":"heading",children:r.rendered}),(0,l.jsxs)("ul",{...N,className:E.group({class:null==h?void 0:h.group}),"data-has-title":!!r.rendered,"data-slot":"group",children:[[...r.childNodes].map(e=>{let{key:t,props:r}=e,o=(0,l.jsx)(K,{classNames:b,color:u,disableAnimation:c,hideSelectedIcon:g,item:e,state:n,variant:s,...r},t);return e.wrapper&&(o=e.wrapper(o)),o}),v&&(0,l.jsx)(T.j,{as:"li",className:E.divider({class:k}),...m})]})]},r.key)});N.displayName="HeroUI.ListboxSection";var M=r(91149),D=r(12315),R=r(34491),I=(e,t)=>{let r=[];for(let n of e)"section"===n.type?r.push(([...n.childNodes].length+1)*t):r.push(t);return r},L=e=>{if(!e||void 0===e.scrollTop||void 0===e.clientHeight||void 0===e.scrollHeight)return{isTop:!1,isBottom:!1,isMiddle:!1};
1let t=0===e.scrollTop,r=Math.ceil(e.scrollTop+e.clientHeight)>=e.scrollHeight;return{isTop:t,isBottom:r,isMiddle:!t&&!r}},A=e=>{var t;let{Component:r,state:n,color:o,variant:a,itemClasses:s,getBaseProps:c,topContent:h,bottomContent:p,hideEmptyContent:g,hideSelectedIcon:v,shouldHighlightOnFocus:m,disableAnimation:b,getEmptyContentProps:y,getListProps:x,scrollShadowProps:w}=e,{virtualization:E}=e;if(!E||!(0,f.xb)(E)&&!E.maxListboxHeight&&!E.itemHeight)throw Error("You are using a virtualized listbox. VirtualizedListbox requires 'virtualization' props with 'maxListboxHeight' and 'itemHeight' properties. This error might have originated from autocomplete components that use VirtualizedListbox. Please provide these props to use the virtualized listbox.");let{maxListboxHeight:S,itemHeight:k}=E,P=Math.min(S,k*n.collection.size),C=(0,i.useRef)(null),T=(0,i.useMemo)(()=>I([...n.collection],k),[n.collection,k]),A=(0,M.MG)({count:[...n.collection].length,getScrollElement:()=>C.current,estimateSize:e=>T[e]}),F=A.getVirtualItems(),B=A.getTotalSize(),{getBaseProps:z}=function(e){var t;let[r,n]=(0,u.oe)(e,D.w.variantKeys),{ref:l,as:o,children:a,className:s,style:c,size:d=40,offset:h=0,visibility:p="auto",isEnabled:g=!0,onVisibilityChange:v,...m}=r,b=(0,R.gy)(l);!function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{domRef:t,isEnabled:r=!0,overflowCheck:n="vertical",visibility:l="auto",offset:o=0,onVisibilityChange:a,updateDeps:s=[]}=e,u=(0,i.useRef)(l);(0,i.useEffect)(()=>{let e=null==t?void 0:t.current;if(!e||!r)return;let i=(t,r,n,o,i)=>{if("auto"===l){let t="".concat(o).concat((0,f.kC)(i),"Scroll");r&&n?(e.dataset[t]="true",e.removeAttribute("data-".concat(o,"-scroll")),e.removeAttribute("data-".concat(i,"-scroll"))):(e.dataset["".concat(o,"Scroll")]=r.toString(),e.dataset["".concat(i,"Scroll")]=n.toString(),e.removeAttribute("data-".concat(o,"-").concat(i,"-scroll")))}else{let e=r&&n?"both":r?o:n?i:"none";e!==u.current&&(null==a||a(e),u.current=e)}},s=()=>{var t,r;let l=e.querySelector('ul[data-slot="list"]'),a=+(null!=(t=null==l?void 0:l.getAttribute("data-virtual-scroll-height"))?t:e.scrollHeight),s=+(null!=(r=null==l?void 0:l.getAttribute("data-virtual-scroll-top"))?r:e.scrollTop);for(let{type:t,prefix:r,suffix:l}of[{type:"vertical",prefix:"top",suffix:"bottom"},{type:"horizontal",prefix:"left",suffix:"right"}])if(n===t||"both"===n){let n="vertical"===t?s>o:e.scrollLeft>o,u="vertical"===t?s+e.clientHeight+o<a:e.scrollLeft+e.clientWidth+o<e.scrollWidth;i(t,n,u,r,l)}},c=()=>{["top","bottom","top-bottom","left","right","left-right"].forEach(t=>{e.removeAttribute("data-".concat(t,"-scroll"))})};return s(),e.addEventListener("scroll",s,!0),"auto"!==l&&(c(),"both"===l?(e.dataset.topBottomScroll=String("vertical"===n),e.dataset.leftRightScroll=String("horizontal"===n)):(e.dataset.topBottomScroll="false",e.dataset.leftRightScroll="false",["top","bottom","left","right"].forEach(t=>{e.dataset["".concat(t,"Scroll")]=String(l===t)}))),()=>{e.removeEventListener("scroll",s,!0),c()}},[...s,r,l,n,a,t])}({domRef:b,offset:h,visibility:p,isEnabled:g,onVisibilityChange:v,updateDeps:[a],overflowCheck:null!=(t=e.orientation)?t:"vertical"});let y=(0,i.useMemo)(()=>(0,D.w)({...n,className:s}),[(0,f.Xx)(n),s]);return{Component:o||"div",styles:y,domRef:b,children:a,getBaseProps:function(){var t;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ref:b,className:y,"data-orientation":null!=(t=e.orientation)?t:"vertical",style:{"--scroll-shadow-size":"".concat(d,"px"),...c,...r.style},...m,...r}}}}({...w}),O=e=>{var t;let r=[...n.collection][e.index];if(!r)return null;let i={color:o,item:r,state:n,variant:a,disableAnimation:b,hideSelectedIcon:v,...r.props},u={position:"absolute",top:0,left:0,width:"100%",height:"".concat(e.size,"px"),transform:"translateY(".concat(e.start,"px)")};if("section"===r.type)return(0,l.jsx)(N,{...i,itemClasses:s,style:{...u,...i.style}},r.key);let c=(0,l.jsx)(K,{...i,classNames:(0,f.dG)(s,null==(t=r.props)?void 0:t.classNames),shouldHighlightOnFocus:m,style:{...u,...i.style}},r.key);return r.wrapper&&(c=r.wrapper(c)),c},[_,j]=(0,i.useState)({isTop:!1,isBottom:!0,isMiddle:!1}),W=(0,l.jsxs)(r,{...x(),"data-virtual-scroll-height":B,"data-virtual-scroll-top":null==(t=null==C?void 0:C.current)?void 0:t.scrollTop,children:[!n.collection.size&&!g&&(0,l.jsx)("li",{children:(0,l.jsx)("div",{...y()})}),(0,l.jsx)("div",{...(0,d.z)(z()),ref:C,style:{height:S,overflow:"auto"},onScroll:e=>{j(L(e.target))},children:P>0&&k>0&&(0,l.jsx)("div",{style:{height:"".concat(B,"px"),width:"100%",position:"relative"},children:F.map(e=>O(e))})})]});return(0,l.jsxs)("div",{...c(),children:[h,W,p]})},F=(0,u.Gp)(function(e,t){let{isVirtualized:r,...o}=e,i=(0,n.t)({...o,ref:t}),{Component:a,state:s,color:u,variant:c,itemClasses:d,getBaseProps:h,topContent:p,bottomContent:g,hideEmptyContent:v,hideSelectedIcon:m,shouldHighlightOnFocus:b,disableAnimation:y,getEmptyContentProps:x,getListProps:w}=i;
1if(r)return(0,l.jsx)(A,{...e,...i});let E=(0,l.jsxs)(a,{...w(),children:[!s.collection.size&&!v&&(0,l.jsx)("li",{children:(0,l.jsx)("div",{...x()})}),[...s.collection].map(e=>{var t;let r={color:u,item:e,state:s,variant:c,disableAnimation:y,hideSelectedIcon:m,...e.props};if("section"===e.type)return(0,l.jsx)(N,{...r,itemClasses:d},e.key);let n=(0,l.jsx)(K,{...r,classNames:(0,f.dG)(d,null==(t=e.props)?void 0:t.classNames),shouldHighlightOnFocus:b},e.key);return e.wrapper&&(n=e.wrapper(n)),n})]});return(0,l.jsxs)("div",{...h(),children:[p,E,g]})})},31648:function(e,t,r){r.d(t,{t:function(){return x}});var n=r(48944),l=r(94382),o=r(38321),i=r(40582),a=r(56428),s=r(88230),u=r(25113),c=r(41090),d=r(56952);class f{*[Symbol.iterator](){yield*this.iterable}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){var t;let r=this.keyMap.get(e);return r&&null!==(t=r.prevKey)&&void 0!==t?t:null}getKeyAfter(e){var t;let r=this.keyMap.get(e);return r&&null!==(t=r.nextKey)&&void 0!==t?t:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var t;return null!==(t=this.keyMap.get(e))&&void 0!==t?t:null}at(e){let t=[...this.getKeys()];return this.getItem(t[e])}getChildren(e){let t=this.keyMap.get(e);return(null==t?void 0:t.childNodes)||[]}constructor(e){var t;this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let r=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&"section"===e.type)for(let t of e.childNodes)r(t)};for(let t of e)r(t);let n=null,l=0,o=0;for(let[e,t]of this.keyMap)n?(n.nextKey=e,t.prevKey=n.key):(this.firstKey=e,t.prevKey=void 0),"item"===t.type&&(t.index=l++),("section"===t.type||"item"===t.type)&&o++,(n=t).nextKey=void 0;this._size=o,this.lastKey=null!==(t=null==n?void 0:n.key)&&void 0!==t?t:null}}var h=r(11417),p=r(567),g=r(2265),v=r(58149),m=r(34491),b=r(49442),y=r(91299);function x(e){var t;let r=(0,c.w)(),{ref:x,as:w,state:E,variant:S,color:k,onAction:P,children:C,onSelectionChange:K,disableAnimation:T=null!=(t=null==r?void 0:r.disableAnimation)&&t,itemClasses:N,className:M,topContent:D,bottomContent:R,emptyContent:I="No items.",hideSelectedIcon:L=!1,hideEmptyContent:A=!1,shouldHighlightOnFocus:F=!1,classNames:B,...z}=e,O=w||"ul",_="string"==typeof O,j=(0,m.gy)(x),W=function(e){let{filter:t,layoutDelegate:r}=e,n=(0,h.q)(e),l=(0,g.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),o=(0,g.useCallback)(e=>new f(t?t(e):e),[t]),i=(0,g.useMemo)(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),a=(0,v.K)(e,o,i),s=(0,g.useMemo)(()=>new p.Z(a,n,{layoutDelegate:r}),[a,n,r]);return function(e,t){let r=(0,g.useRef)(null);(0,g.useEffect)(()=>{if(null!=t.focusedKey&&!e.getItem(t.focusedKey)&&r.current){var n,l,o,i,a,s,u;let c=r.current.getItem(t.focusedKey),d=[...r.current.getKeys()].map(e=>{let t=r.current.getItem(e);return(null==t?void 0:t.type)==="item"?t:null}).filter(e=>null!==e),f=[...e.getKeys()].map(t=>{let r=e.getItem(t);return(null==r?void 0:r.type)==="item"?r:null}).filter(e=>null!==e),h=(null!==(n=null==d?void 0:d.length)&&void 0!==n?n:0)-(null!==(l=null==f?void 0:f.length)&&void 0!==l?l:0),p=Math.min(h>1?Math.max((null!==(o=null==c?void 0:c.index)&&void 0!==o?o:0)-h+1,0):null!==(i=null==c?void 0:c.index)&&void 0!==i?i:0,(null!==(a=null==f?void 0:f.length)&&void 0!==a?a:0)-1),g=null,v=!1;for(;p>=0;){if(!t.isDisabled(f[p].key)){g=f[p];break}p<f.length-1&&!v?p++:(v=!0,p>(null!==(s=null==c?void 0:c.index)&&void 0!==s?s:0)&&(p=null!==(u=null==c?void 0:c.index)&&void 0!==u?u:0),p--)}t.setFocusedKey(g?g.key:null)}r.current=e},[e,t])}(a,s),{collection:a,disabledKeys:l,selectionManager:s}}({...e,children:C,onSelectionChange:K}),H=E||W,{listBoxProps:V}=function(e,t,r){let c=(0,l.z)(e,{labelable:!0}),d=e.selectionBehavior||"toggle",f=e.linkBehavior||("replace"===d?"action":"override");"toggle"===d&&"action"===f&&(f="override");let{listProps:h}=(0,u._)({...e,ref:r,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:f}),{focusWithinProps:p}=(0,a.L)({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),g=(0,o.Me)(e.id);(0,n.O).set(t,{id:g,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:f});let{labelProps:v,fieldProps:m}=(0,s.N)({...e,id:g,labelElementType:"span"});return{labelProps:v,listBoxProps:(0,i.d)(c,p,"multiple"===t.selectionManager.selectionMode?{"aria-multiselectable":"true"}:{},{role:"listbox",...(0,i.d)(m,h)})}}({...e,onAction:P},H,j),U=(0,g.useMemo)(()=>(0,d.GI)(),[]),G=(0,y.Wy)(null==B?void 0:B.base,M);return{Component:O,state:H,variant:S,color:k,slots:U,classNames:B,topContent:D,bottomContent:R,emptyContent:I,hideEmptyContent:A,shouldHighlightOnFocus:F,hideSelectedIcon:L,disableAnimation:T,className:M,itemClasses:N,getBaseProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ref:j,"data-slot":"base",className:U.base({class:G}),...(0,b.z)(z,{enabled:_}),...e}},getListProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{"data-slot":"list",className:U.list({class:null==B?void 0:B.list}),...V,...e}},getEmptyContentProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{"data-slot":"empty-content",children:I,className:U.emptyContent({class:null==B?void 0:B.emptyContent}),...e}}}}},80317:function(e,t,r){r.d(t,{S:function(){return x}});var n=r(14095),l=new WeakMap,o=[],i=r(8500),a=r(2265),s=r(91299),u=r(29791),c=r(11718),d=r(34491),f=r(69861),h=r(27939),p=r(22489),g=r(38321),v=r(95730),m=r(41090),b=r(82319),y=r(25889);function x(e){var t,r,x;let w=(0,m.w)(),[E,S]=(0,b.oe)(e,y.v.variantKeys),{as:k,ref:P,children:C,state:K,triggerRef:T,scrollRef:N,defaultOpen:M,onOpenChange:D,isOpen:R,isNonModal:I=!0,shouldFlip:L=!0,containerPadding:A=12,shouldBlockScroll:F=!1,isDismissable:B=!0,shouldCloseOnBlur:z,portalContainer:O,updatePositionDeps:_,dialogProps:j,placement:W="top",triggerType:H="dialog",showArrow:V=!1,offset:U=7,crossOffset:G=0,boundaryElement:Y,isKeyboardDismissDisabled:$,shouldCloseOnInteractOutside:q,shouldCloseOnScroll:X,triggerAnchorPoint:J,motionProps:Z,className:Q,classNames:ee,onClose:et,...er}=E,en=(0,d.gy)(P),el=(0,a.useRef)(null),eo=(0,a.useRef)(!1),ei=T||el,ea=null!=(r=null!=(t=e.disableAnimation)?t:null==w?void 0:w.disableAnimation)&&r,es=function(e){let[t,r]=(0,f.z)(e.isOpen,e.defaultOpen||!1,e.onOpenChange),n=(0,a.useCallback)(()=>{r(!0)},[r]),l=(0,a.useCallback)(()=>{r(!1)},[r]),o=(0,a.useCallback)(()=>{r(!t)},[r,t]);return{isOpen:t,setOpen:r,open:n,close:l,toggle:o}}({isOpen:R,defaultOpen:M,onOpenChange:e=>{null==D||D(e),e||null==et||et()}}),eu=K||es,{popoverProps:ec,underlayProps:ed,placement:ef}=function(e,t){let{groupRef:r,triggerRef:d,popoverRef:f,showArrow:h,offset:p=7,crossOffset:g=0,scrollRef:v,shouldFlip:m,boundaryElement:b,isDismissable:y=!0,shouldCloseOnBlur:x=!0,shouldCloseOnScroll:w=!0,placement:E="top",containerPadding:S,shouldCloseOnInteractOutside:k,isNonModal:P,isKeyboardDismissDisabled:C,updatePositionDeps:K=[],...T}=e,N=null==P||P,M="SubmenuTrigger"===T.trigger,{overlayProps:D,underlayProps:R}
1=(0,c.S)({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:x,isDismissable:y||M,isKeyboardDismissDisabled:C,shouldCloseOnInteractOutside:k||(e=>{var t;return!(null==(t=d.current)?void 0:t.contains(e))}),disableOutsideEvents:!N},f),{overlayProps:I,arrowProps:L,placement:A,updatePosition:F,triggerAnchorPoint:B}=(0,i.t)({...T,shouldFlip:m,crossOffset:g,targetRef:d,overlayRef:f,isOpen:t.isOpen,scrollRef:v,boundaryElement:b,containerPadding:S,placement:(0,n.Yx)(E),offset:h?p+3:p,onClose:N&&!M&&w?t.close:()=>{}});return(0,u.G)(()=>{K.length&&F()},K),(0,a.useEffect)(()=>{var e,n;if(t.isOpen&&f.current)return N?function(e){let t=o[o.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}(null!=(e=null==r?void 0:r.current)?e:f.current):function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.body,r=new Set(e),n=new Set,i=e=>{for(let t of e.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))r.add(t);let t=e=>{if(r.has(e)||e.parentElement&&n.has(e.parentElement)&&"row"!==e.parentElement.getAttribute("role"))return NodeFilter.FILTER_REJECT;for(let t of r)if(e.contains(t))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},l=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:t}),o=t(e);if(o===NodeFilter.FILTER_ACCEPT&&a(e),o!==NodeFilter.FILTER_REJECT){let e=l.nextNode();for(;null!=e;)a(e),e=l.nextNode()}},a=e=>{var t;let r=null!=(t=l.get(e))?t:0;("true"!==e.getAttribute("aria-hidden")||0!==r)&&(0===r&&e.setAttribute("aria-hidden","true"),n.add(e),l.set(e,r+1))};o.length&&o[o.length-1].disconnect(),i(t);let s=new MutationObserver(e=>{for(let t of e)if("childList"===t.type&&0!==t.addedNodes.length&&![...r,...n].some(e=>e.contains(t.target))){for(let e of t.removedNodes)e instanceof Element&&(r.delete(e),n.delete(e));for(let e of t.addedNodes)(e instanceof HTMLElement||e instanceof SVGElement)&&("true"===e.dataset.liveAnnouncer||"true"===e.dataset.reactAriaTopLayer)?r.add(e):e instanceof Element&&i(e)}});s.observe(t,{childList:!0,subtree:!0});let u={visibleNodes:r,hiddenNodes:n,observe(){s.observe(t,{childList:!0,subtree:!0})},disconnect(){s.disconnect()}};return o.push(u),()=>{for(let e of(s.disconnect(),n)){let t=l.get(e);null!=t&&(1===t?(e.removeAttribute("aria-hidden"),l.delete(e)):l.set(e,t-1))}u===o[o.length-1]?(o.pop(),o.length&&o[o.length-1].observe()):o.splice(o.indexOf(u),1)}}([null!=(n=null==r?void 0:r.current)?n:f.current])},[N,t.isOpen,f,r]),{popoverProps:(0,s.dG)(D,I),arrowProps:L,underlayProps:R,placement:A,triggerAnchorPoint:B}}({triggerRef:ei,isNonModal:I,popoverRef:en,placement:W,offset:U,scrollRef:N,isDismissable:B,shouldCloseOnBlur:z,boundaryElement:Y,crossOffset:G,shouldFlip:L,containerPadding:A,updatePositionDeps:_,isKeyboardDismissDisabled:$,shouldCloseOnScroll:X,shouldCloseOnInteractOutside:q,triggerAnchorPoint:J},eu),eh=(0,a.useMemo)(()=>ef?(0,n.Yv)(ef,W)?ef:W:null,[ef,W]),{triggerProps:ep}=function(e,t,r){let n,{type:l}=e,{isOpen:o}=t;(0,a.useEffect)(()=>{r&&r.current&&(0,p.v).set(r.current,t.close)}),"menu"===l?n=!0:"listbox"===l&&(n="listbox");let i=(0,g.Me)();return{triggerProps:{"aria-haspopup":n,"aria-expanded":o,"aria-controls":o?i:void 0,onPress:t.toggle},overlayProps:{id:i}}}({type:H},eu,ei),{isFocusVisible:eg,isFocused:ev,focusProps:em}=(0,h.F)(),eb=(0,a.useMemo)(()=>(0,y.v)({...S}),[(0,s.Xx)(S)]),ey=(0,s.Wy)(null==ee?void 0:ee.base,Q),ex={"--trigger-anchor-point":J?"".concat(J.x,"px ").concat(J.y,"px"):void 0};(0,v.t)({isDisabled:!(F&&eu.isOpen)});let ew=(0,a.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{"data-slot":"content","data-open":(0,s.PB)(eu.isOpen),"data-arrow":(0,s.PB)(V),"data-placement":ef?(0,n.sK)(ef,W):void 0,className:eb.content({class:(0,s.Wy)(null==ee?void 0:ee.content,e.className)})}},[eb,eu.isOpen,V,eh,W,ee,ef]),eE=(0,a.useCallback)(t=>{var r;let n;return"touch"===t.pointerType&&((null==e?void 0:e.backdrop)==="blur"||(null==e?void 0:e.backdrop)==="opaque")?n=setTimeout(()=>{eo.current=!0},100):eo.current=!0,null==(r=ep.onPress)||r.call(ep,t),()=>{clearTimeout(n)}},[null==ep?void 0:ep.onPress]),eS=(0,a.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,{isDisabled:r,...n}=e;return{"data-slot":"trigger",...(0,s.dG)({"aria-haspopup":"dialog"},ep,n),onPress:eE,isDisabled:r,className:eb.trigger({class:(0,s.Wy)(null==ee?void 0:ee.trigger,e.className),isTriggerDisabled:r}),ref:(0,s.lq)(t,ei)}},[eu,ep,eE,ei]),ek=(0,a.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{"data-slot":"backdrop",className:eb.backdrop({class:null==ee?void 0:ee.backdrop}),onClick:e=>{if(!eo.current){e.preventDefault();return}eu.close(),eo.current=!1},...ed,...e}},[eb,eu.isOpen,ee,ed]);return{state:eu,Component:k||"div",children:C,classNames:ee,showArrow:V,triggerRef:ei,placement:eh,isNonModal:I,popoverRef:en,portalContainer:O,isOpen:eu.isOpen,onClose:eu.close,disableAnimation:ea,shouldBlockScroll:F,backdrop:null!=(x=e.backdrop)?x:"transparent",motionProps:Z,getBackdropProps:ek,getPopoverProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ref:en,...(0,s.dG)(ec,er,e),style:(0,s.dG)(ec.style,er.style,e.style)}},getTriggerProps:eS,getDialogProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{"data-slot":"base","data-open":(0,s.PB)(eu.isOpen),"data-focus":(0,s.PB)(ev),"data-arrow":(0,s.PB)(V),"data-focus-visible":(0,s.PB)(eg),"data-placement":ef?(0,n.sK)(ef,W):void 0,...(0,s.dG)(em,j,e),className:eb.base({class:(0,s.Wy)(ey)}),style:{outline:"none",...ex}}},getContentProps:ew}}},59362:function(e,t,r){r.d(t,{q:function(){return b}});var n=r(80317),l=r(2265),o=r(93998),i=r(38790),a=r(82319),s=r(30065),u=r(89306),c=r(91299),d=r(14095),f=r(21965),h=r(39180),p=r(57437),g=()=>Promise.all([r.e(170),r.e(49)]).then(r.bind(r,43171)).then(e=>e.default),v=(0,a.Gp)((e,t)=>{let{children:r,motionProps:n,placement:l,disableAnimation:o,style:i={},transformOrigin:a={},...h}=e,v=i;return void 0!==a.originX||void 0!==a.originY?v={...v,transformOrigin:a}:l&&(v={...v,...(0,d.VS)("center"===l?"top":l)}),o?(0,p.jsx)("div",{...h,ref:t,children:r}):(0,p.jsx)(s.X,{features:g,children:(0,p.jsx)(u.m.div,{ref:t,animate:"enter",exit:"exit",initial:"initial",style:v,variants:f.y7.scaleSpringOpacity,...(0,c.dG)(h,n),children:r})})});v.displayName="HeroUI.FreeSoloPopoverWrapper";var m=(0,a.Gp)((e,t)=>{let{children:r,transformOrigin:a,disableDialogFocus:c=!1,...d}=e,{Component:m,state:b,placement:y,backdrop:x,portalContainer:w,disableAnimation:E,motionProps:S,isNonModal:k,getPopoverProps:P,getBackdropProps:C,getDialogProps:K,getContentProps:T}=(0,n.S)({...d,ref:t}),N=l.useRef(null),{dialogProps:M,titleProps:D}=(0,h.R)({},N),R=K({...!c&&{ref:N},...M}),I=l.useMemo(()=>"transparent"===x?null:E?(0,p.jsx)("div",{...C()}):(0,p.jsx)(s.X,{features:g,children:(0,p.jsx)(u.m.div,{animate:"enter",exit:"exit",initial:"exit",variants:f.y7.fade,...C()})}),[x,E,C]);return(0,p.jsxs)(o.aV,{portalContainer:w,children:[!k&&I,(0,p.jsx)(m,{...P(),children:(0,p.jsxs)(v,{disableAnimation:E,motionProps:S,placement:y,tabIndex:-1,transformOrigin:a,...R,children:[!k&&(0,p.jsx)(i.U,{onDismiss:b.close}),(0,p.jsx)("div",{...T(),children:"function"==typeof r?r(D):r}),(0,p.jsx)(i.U,{onDismiss:b.close})]})})]})});m.displayName="HeroUI.FreeSoloPopover";var b=m},30887:function(e,t,r){r.d(t,{l:function(){return l}});var n=r(91299);function l(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return e=>{t.forEach(t=>(function(e,t){if(null!=e){if((0,n.mf)(e)){e(t);return}try{e.current=t}catch(r){throw Error("Cannot assign value '".concat(t,"' to ref '").concat(e,"'"))}}})(t,e))}}},24249:function(e,t,r){r.d(t,{o:function(){return a}});var n=r(43539),l=r(82319),o=r(57437),i=(0,l.Gp)((e,t)=>{let{Component:r,children:l,getBaseProps:i}=(0,n.p)({...e,ref:t});return(0,o.jsx)(r,{...i(),children:l})});i.displayName="HeroUI.ScrollShadow";var a=i},43539:function(e,t,r){r.d(t,{p:function(){return s}});
1var n=r(82319),l=r(12315),o=r(34491),i=r(91299),a=r(2265);function s(e){var t;let[r,s]=(0,n.oe)(e,l.w.variantKeys),{ref:u,as:c,children:d,className:f,style:h,size:p=40,offset:g=0,visibility:v="auto",isEnabled:m=!0,onVisibilityChange:b,...y}=r,x=(0,o.gy)(u);!function(e={}){let{domRef:t,isEnabled:r=!0,overflowCheck:n="vertical",visibility:l="auto",offset:o=0,onVisibilityChange:s,updateDeps:u=[]}=e,c=(0,a.useRef)(l);(0,a.useEffect)(()=>{let e=null==t?void 0:t.current;if(!e||!r)return;let a=(t,r,n,o,a)=>{if("auto"===l){let t=`${o}${(0,i.kC)(a)}Scroll`;r&&n?(e.dataset[t]="true",e.removeAttribute(`data-${o}-scroll`),e.removeAttribute(`data-${a}-scroll`)):(e.dataset[`${o}Scroll`]=r.toString(),e.dataset[`${a}Scroll`]=n.toString(),e.removeAttribute(`data-${o}-${a}-scroll`))}else{let e=r&&n?"both":r?o:n?a:"none";e!==c.current&&(null==s||s(e),c.current=e)}},u=()=>{var t,r;let l=e.querySelector('ul[data-slot="list"]'),i=+(null!=(t=null==l?void 0:l.getAttribute("data-virtual-scroll-height"))?t:e.scrollHeight),s=+(null!=(r=null==l?void 0:l.getAttribute("data-virtual-scroll-top"))?r:e.scrollTop);for(let{type:t,prefix:r,suffix:l}of[{type:"vertical",prefix:"top",suffix:"bottom"},{type:"horizontal",prefix:"left",suffix:"right"}])if(n===t||"both"===n){let n="vertical"===t?s>o:e.scrollLeft>o,u="vertical"===t?s+e.clientHeight+o<i:e.scrollLeft+e.clientWidth+o<e.scrollWidth;a(t,n,u,r,l)}},d=()=>{["top","bottom","top-bottom","left","right","left-right"].forEach(t=>{e.removeAttribute(`data-${t}-scroll`)})};return u(),e.addEventListener("scroll",u,!0),"auto"!==l&&(d(),"both"===l?(e.dataset.topBottomScroll=String("vertical"===n),e.dataset.leftRightScroll=String("horizontal"===n)):(e.dataset.topBottomScroll="false",e.dataset.leftRightScroll="false",["top","bottom","left","right"].forEach(t=>{e.dataset[`${t}Scroll`]=String(l===t)}))),()=>{e.removeEventListener("scroll",u,!0),d()}},[...u,r,l,n,s,t])}({domRef:x,offset:g,visibility:v,isEnabled:m,onVisibilityChange:b,updateDeps:[d],overflowCheck:null!=(t=e.orientation)?t:"vertical"});let w=(0,a.useMemo)(()=>(0,l.w)({...s,className:f}),[(0,i.Xx)(s),f]);return{Component:c||"div",styles:w,domRef:x,children:d,getBaseProps:function(){var t;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ref:x,className:w,"data-orientation":null!=(t=e.orientation)?t:"vertical",style:{"--scroll-shadow-size":"".concat(p,"px"),...h,...r.style},...y,...r}}}}},45305:function(e,t,r){r.d(t,{M:function(){return d}});var n=r(56530),l=r(44781),o=r(8486),i=r(73717),a=r(2265),s=r(8351),u=r(27078),c=r(57437);function d(e){var t;let{state:r,triggerRef:d,selectRef:f,label:h,name:p,isDisabled:g,form:v}=e,{containerProps:m,selectProps:b}=function(e,t,r){var c;let d=n.y.get(t)||{},{autoComplete:f,name:h=d.name,isDisabled:p=d.isDisabled,selectionMode:g,onChange:v,form:m}=e,{validationBehavior:b,isRequired:y,isInvalid:x}=d,{visuallyHiddenProps:w}=(0,o.S)();return(0,l.y$)(e.selectRef,t.selectedKeys,t.setSelectedKeys),!function(e,t,r){let{validationBehavior:n,focus:l}=e;(0,s.b)(()=>{if("native"===n&&(null==r?void 0:r.current)&&!r.current.disabled){var e;let n,l=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";r.current.setCustomValidity(l),r.current.hasAttribute("title")||(r.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation({isInvalid:!(e=r.current).validity.valid,validationDetails:{badInput:(n=e.validity).badInput,customError:n.customError,patternMismatch:n.patternMismatch,rangeOverflow:n.rangeOverflow,rangeUnderflow:n.rangeUnderflow,stepMismatch:n.stepMismatch,tooLong:n.tooLong,tooShort:n.tooShort,typeMismatch:n.typeMismatch,valueMissing:n.valueMissing,valid:n.valid},validationErrors:e.validationMessage?[e.validationMessage]:[]})}});let o=(0,a.useRef)(!1),c=(0,u.i)(()=>{o.current||t.resetValidation()}),d=(0,u.i)(e=>{var n,o;t.displayValidation.isInvalid||t.commitValidation();let a=null==r?void 0:null===(n=r.current)||void 0===n?void 0:n.form;!e.defaultPrevented&&r&&a&&function(e){for(let t=0;t<e.elements.length;t++){let r=e.elements[t];if(!r.validity.valid)return r}return null}(a)===r.current&&(l?l():null===(o=r.current)||void 0===o||o.focus(),(0,i._w)("keyboard")),e.preventDefault()}),f=(0,u.i)(()=>{t.commitValidation()});(0,a.useEffect)(()=>{let e=null==r?void 0:r.current;if(!e)return;let t=e.form,n=null==t?void 0:t.reset;return t&&(t.reset=()=>{o.current=!window.event||"message"===window.event.type&&window.event.target instanceof MessagePort,null==n||n.call(t),o.current=!1}),e.addEventListener("invalid",d),e.addEventListener("change",f),null==t||t.addEventListener("reset",c),()=>{e.removeEventListener("invalid",d),e.removeEventListener("change",f),null==t||t.removeEventListener("reset",c),t&&(t.reset=n)}},[r,d,f,c,n])}({validationBehavior:b,focus:()=>{var e;return null==(e=r.current)?void 0:e.focus()}},t,e.selectRef),{containerProps:{...w,"aria-hidden":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{style:{display:"none"}},selectProps:{form:m,autoComplete:f,disabled:p,"aria-invalid":x||void 0,"aria-required":y&&"aria"===b||void 0,required:y&&"native"===b,name:h,tabIndex:-1,value:"multiple"===g?[...t.selectedKeys].map(e=>String(e)):null!=(c=[...t.selectedKeys][0])?c:"",multiple:"multiple"===g,onChange:e=>{t.setSelectedKeys(e.target.value),null==v||v(e)}}}}({...e,selectRef:f},r,d);return r.collection.size<=300?(0,c.jsx)("div",{...m,"data-testid":"hidden-select-container",children:(0,c.jsxs)("label",{children:[h,(0,c.jsxs)("select",{...b,ref:f,children:[(0,c.jsx)("option",{}),[...r.collection.getKeys()].map(e=>{let t=r.collection.getItem(e);if((null==t?void 0:t.type)==="item")return(0,c.jsx)("option",{value:t.key,children:t.textValue},t.key)})]})]})}):p?(0,c.jsx)("input",{autoComplete:b.autoComplete,disabled:g,form:v,name:p,type:"hidden",value:null!=(t=[...r.selectedKeys].join(","))?t:""}):null}},56530:function(e,t,r){let n;r.d(t,{y:function(){return ed},L:function(){return ef}}
1);var l=r(41090),o=r(82319),i=r(73254),a=r(26544),s=r(16790),u=(0,a.tv)({slots:{base:["group inline-flex flex-col relative"],label:["block","absolute","z-10","origin-top-left","flex-shrink-0","rtl:origin-top-right","subpixel-antialiased","text-small","text-foreground-500","pointer-events-none","group-data-[has-label-outside=true]:pointer-events-auto"],mainWrapper:"w-full flex flex-col",trigger:"relative px-3 gap-3 w-full inline-flex flex-row items-center shadow-xs outline-solid outline-transparent tap-highlight-transparent",innerWrapper:"inline-flex h-fit w-[calc(100%_-theme(spacing.6))] min-h-4 items-center gap-1.5 box-border",selectorIcon:"absolute end-3 w-4 h-4",spinner:"absolute end-3",value:["text-foreground-500","font-normal","w-full","text-start"],listboxWrapper:"scroll-py-6 w-full",listbox:"",popoverContent:"w-full p-1 overflow-hidden",clearButton:["w-4","h-4","z-10","mb-4","relative","start-auto","appearance-none","outline-none","select-none","opacity-70","hover:!opacity-100","cursor-pointer","active:!opacity-70","rounded-full",...s.Dh],helperWrapper:"p-1 flex relative flex-col gap-1.5 group-data-[has-helper=true]:flex",description:"text-tiny text-foreground-400",errorMessage:"text-tiny text-danger",endWrapper:"flex end-18",endContent:"mb-4"},variants:{variant:{flat:{trigger:["bg-default-100","data-[hover=true]:bg-default-200","group-data-[focus=true]:bg-default-200"],clearButton:"mb-4"},faded:{trigger:["bg-default-100","border-medium","border-default-200","data-[hover=true]:border-default-400 data-[focus=true]:border-default-400 data-[open=true]:border-default-400"],value:"group-data-[has-value=true]:text-default-foreground",clearButton:"mb-4"},bordered:{trigger:["border-medium","border-default-200","data-[hover=true]:border-default-400","data-[open=true]:border-default-foreground","data-[focus=true]:border-default-foreground"],value:"group-data-[has-value=true]:text-default-foreground",clearButton:"mb-4"},underlined:{trigger:["!px-1","!pb-0","!gap-0","relative","box-border","border-b-medium","shadow-[0_1px_0px_0_rgba(0,0,0,0.05)]","border-default-200","!rounded-none","hover:border-default-300","after:content-['']","after:w-0","after:origin-center","after:bg-default-foreground","after:absolute","after:left-1/2","after:-translate-x-1/2","after:-bottom-[2px]","after:h-[2px]","data-[open=true]:after:w-full","data-[focus=true]:after:w-full"],value:"group-data-[has-value=true]:text-default-foreground",clearButton:"mb-4 me-2"}},color:{default:{},primary:{selectorIcon:"text-primary"},secondary:{selectorIcon:"text-secondary"},success:{selectorIcon:"text-success"},warning:{selectorIcon:"text-warning"},danger:{selectorIcon:"text-danger"}},size:{sm:{label:"text-tiny",trigger:"h-8 min-h-8 px-2 rounded-small",value:"text-small",clearButton:"text-medium"},md:{trigger:"h-10 min-h-10 rounded-medium",value:"text-small",clearButton:"text-large"},lg:{trigger:"h-12 min-h-12 rounded-large",value:"text-medium",clearButton:"mb-5 text-large"}},radius:{none:{trigger:"rounded-none"},sm:{trigger:"rounded-small"},md:{trigger:"rounded-medium"},lg:{trigger:"rounded-large"},full:{trigger:"rounded-full"}},labelPlacement:{outside:{base:"flex flex-col",clearButton:"mb-0"},"outside-left":{base:"flex-row items-center flex-nowrap data-[has-helper=true]:items-start",label:"relative pe-2 text-foreground",clearButton:"mb-0"},inside:{label:"text-tiny cursor-pointer",trigger:"flex-col items-start justify-center gap-0"}},fullWidth:{true:{base:"w-full"},false:{base:"min-w-40"}},isClearable:{true:{clearButton:"peer-data-[filled=true]:opacity-70 peer-data-[filled=true]:block",endContent:"ms-3"}},isDisabled:{true:{base:"opacity-disabled pointer-events-none",trigger:"pointer-events-none"}},isInvalid:{true:{label:"!text-danger",value:"!text-danger",selectorIcon:"text-danger"}},isRequired:{true:{label:"after:content-['*'] after:text-danger after:ms-0.5"}},isMultiline:{true:{label:"relative",trigger:"!h-auto"},false:{value:"truncate"}},disableAnimation:{true:{trigger:"after:transition-none",base:"transition-none",label:"transition-none",selectorIcon:"transition-none"},false:{base:"transition-background motion-reduce:transition-none !duration-150",label:["will-change-auto","origin-top-left","rtl:origin-top-right","!duration-200","!ease-out","transition-[transform,color,left,opacity,translate,scale]","motion-reduce:transition-none"],selectorIcon:"transition-transform duration-150 ease motion-reduce:transition-none",clearButton:["transition-opacity","motion-reduce:transition-none"]}},disableSelectorIconRotation:{true:{},false:{selectorIcon:"data-[open=true]:rotate-180"}}},defaultVariants:{variant:"flat",color:"default",size:"md",fullWidth:!0,isDisabled:!1,isMultiline:!1,disableSelectorIconRotation:!1},compoundVariants:[{variant:"flat",color:"default",class:{value:"group-data-[has-value=true]:text-default-foreground",trigger:["bg-default-100","data-[hover=true]:bg-default-200"]}},{variant:"flat",color:"primary",class:{trigger:["bg-primary-100","text-primary","data-[hover=true]:bg-primary-50","group-data-[focus=true]:bg-primary-50"],value:"text-primary",label:"text-primary"}},{variant:"flat",color:"secondary",class:{trigger:["bg-secondary-100","text-secondary","data-[hover=true]:bg-secondary-50","group-data-[focus=true]:bg-secondary-50"],value:"text-secondary",label:"text-secondary"}},{variant:"flat",color:"success",class:{trigger:["bg-success-100","text-success-600","dark:text-success","data-[hover=true]:bg-success-50","group-data-[focus=true]:bg-success-50"],value:"text-success-600 dark:text-success",label:"text-success-600 dark:text-success"}},{variant:"flat",color:"warning",class:{trigger:["bg-warning-100","text-warning-600","dark:text-warning","data-[hover=true]:bg-warning-50","group-data-[focus=true]:bg-warning-50"],value:"text-warning-600 dar
1k:text-warning",label:"text-warning-600 dark:text-warning"}},{variant:"flat",color:"danger",class:{trigger:["bg-danger-100","text-danger","dark:text-danger-500","data-[hover=true]:bg-danger-50","group-data-[focus=true]:bg-danger-50"],value:"text-danger dark:text-danger-500",label:"text-danger dark:text-danger-500"}},{variant:"faded",color:"primary",class:{trigger:"data-[hover=true]:border-primary data-[focus=true]:border-primary data-[open=true]:border-primary",label:"text-primary"}},{variant:"faded",color:"secondary",class:{trigger:"data-[hover=true]:border-secondary data-[focus=true]:border-secondary data-[open=true]:border-secondary",label:"text-secondary"}},{variant:"faded",color:"success",class:{trigger:"data-[hover=true]:border-success data-[focus=true]:border-success data-[open=true]:border-success",label:"text-success"}},{variant:"faded",color:"warning",class:{trigger:"data-[hover=true]:border-warning data-[focus=true]:border-warning data-[open=true]:border-warning",label:"text-warning"}},{variant:"faded",color:"danger",class:{trigger:"data-[hover=true]:border-danger data-[focus=true]:border-danger data-[open=true]:border-danger",label:"text-danger"}},{variant:"underlined",color:"default",class:{value:"group-data-[has-value=true]:text-foreground"}},{variant:"underlined",color:"primary",class:{trigger:"after:bg-primary",label:"text-primary"}},{variant:"underlined",color:"secondary",class:{trigger:"after:bg-secondary",label:"text-secondary"}},{variant:"underlined",color:"success",class:{trigger:"after:bg-success",label:"text-success"}},{variant:"underlined",color:"warning",class:{trigger:"after:bg-warning",label:"text-warning"}},{variant:"underlined",color:"danger",class:{trigger:"after:bg-danger",label:"text-danger"}},{variant:"bordered",color:"primary",class:{trigger:["data-[open=true]:border-primary","data-[focus=true]:border-primary"],label:"text-primary"}},{variant:"bordered",color:"secondary",class:{trigger:["data-[open=true]:border-secondary","data-[focus=true]:border-secondary"],label:"text-secondary"}},{variant:"bordered",color:"success",class:{trigger:["data-[open=true]:border-success","data-[focus=true]:border-success"],label:"text-success"}},{variant:"bordered",color:"warning",class:{trigger:["data-[open=true]:border-warning","data-[focus=true]:border-warning"],label:"text-warning"}},{variant:"bordered",color:"danger",class:{trigger:["data-[open=true]:border-danger","data-[focus=true]:border-danger"],label:"text-danger"}},{labelPlacement:"inside",color:"default",class:{label:"group-data-[filled=true]:text-default-600"}},{labelPlacement:"outside",color:"default",class:{label:"group-data-[filled=true]:text-foreground"}},{radius:"full",size:["sm"],class:{trigger:"px-3"}},{radius:"full",size:"md",class:{trigger:"px-4"}},{radius:"full",size:"lg",class:{trigger:"px-5"}},{disableAnimation:!1,variant:["faded","bordered"],class:{trigger:"transition-colors motion-reduce:transition-none"}},{disableAnimation:!1,variant:"underlined",class:{trigger:"after:transition-width motion-reduce:after:transition-none"}},{variant:["flat","faded"],class:{trigger:[...s.Dh]}},{isInvalid:!0,variant:"flat",class:{trigger:["bg-danger-50","data-[hover=true]:bg-danger-100","group-data-[focus=true]:bg-danger-50"]}},{isInvalid:!0,variant:"bordered",class:{trigger:"!border-danger group-data-[focus=true]:border-danger"}},{isInvalid:!0,variant:"underlined",class:{trigger:"after:bg-danger"}},{labelPlacement:"inside",size:"sm",class:{trigger:"h-12 min-h-12 py-1.5 px-3"}},{labelPlacement:"inside",size:"md",class:{trigger:"h-14 min-h-14 py-2"}},{labelPlacement:"inside",size:"lg",class:{label:"text-medium",trigger:"h-16 min-h-16 py-2.5 gap-0"}},{labelPlacement:"outside",isMultiline:!1,class:{base:"group relative justify-end",label:["pb-0","z-20","top-1/2","-translate-y-1/2","group-data-[filled=true]:start-0"]}},{labelPlacement:["inside"],class:{label:"group-data-[filled=true]:scale-85"}},{labelPlacement:"inside",size:["sm","md"],class:{label:"text-small"}},{labelPlacement:"inside",isMultiline:!1,size:"sm",class:{label:["group-data-[filled=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-tiny)/2_-_8px)]"],innerWrapper:"group-data-[has-label=true]:pt-4"}},{labelPlacement:"inside",isMultiline:!1,size:"md",class:{label:["group-data-[filled=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_6px)]"],innerWrapper:"group-data-[has-label=true]:pt-4"}},{labelPlacement:"inside",isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_8px)]"],innerWrapper:"group-data-[has-label=true]:pt-5"}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"sm",class:{label:["group-data-[filled=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-tiny)/2_-_8px_-_var(--heroui-border-width-medium))]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"md",class:{label:["group-data-[filled=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_6px_-_var(--heroui-border-width-medium))]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_8px_-_var(--heroui-border-width-medium))]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"sm",class:{label:["group-data-[filled=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-tiny)/2_-_5px)]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"md",class:{label:["group-data-[filled=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_3.5px)]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_4px)]"]}},{labelPlacement:"outside",size:"sm",isMultiline:!1,class:{label:["start-2","text-tiny","group-data-[filled=true]:-translate-y-[calc(100%_+var(--heroui-font-size-tiny)/2_+_16px)]","group-data-[has-helper=true]:-translate-y-[calc(100%_+_var(--heroui-font-size-small)/2_+_26px)]"],base:"data-[has-label=true]:mt-[calc(var(--heroui-font-size-small)_+_8px)]"}},{labelPlacement:"outside",isMultiline:!1,size:"md",class:{label:["start-3","text-small","group-data-[filled=true]:-translate-y-[calc(100%_+_var(--heroui-font-size-small)/2_+_20px)]","group-data-[has-helper=true]:-translate-y-[calc(100%_+_var(--heroui-font-size-small)/2_+_30px)]"],base:"data-[has-label=true]:mt-[calc(var(--heroui-font-size-small)_+_10px)]"}},{labelPlacement:"outside",isMultiline:!1,size:"lg",class:{label:["start-3","text-medium","group-data-[filled=true]:-translate-y-[calc(100%_+_var(--heroui-font-size-small)/2_+_24px)]","group-data-[has-helper=true]:-translate-y-[calc(100%_+_var(--heroui-font-size-small)/2_+_34px)]"],base:"data-[has-label=true]:mt-[calc(var(--heroui-font-size-small)_+_12px)]"}},{labelPlacement:"outside-left",size:"sm",class:{label:"group-data-[has-helper=true]:pt-2"}},{labelPlacement:"outside-left",size:"md",class:{label:"group-data-[has-helper=true]:pt-3"}},{labelPlacement:"outside-left",size:"lg",class:{label:"group-data-[has-helper=true]:pt-4"}},{labelPlacement:"outside",isMultiline:!0,class:{label:"pb-1.5"}},{labelPlacement:["inside","outside"],class:{label:["pe-2","max-w-full","text-ellipsis","overflow-hidden"]}},{labelPlacement:["outside","outside-left"],isClearable:!0,class:{endContent:["mt-4"],clearButton:["group-data-[has-end-content=true]:mt-4"]}},{isClearable:!1,labelPlacement:["outside","outside-left"],class:{endContent:["mt-4"]}},{isClearable:!0,variant:["underlined"],class:{clearButton:["relative group-data-[has-end-content=true]:left-2"],endContent:["me-2"]}},{isClearable:!1,variant:["underlined"],class:{endContent:["me-2"]}},{isClearable:!0,size:"sm",class:{endContent:"ms-2"}}]}),c=r(34491),d=r(49442),f=r(2265),h=r(67876),p=r(27939),g=r(91299),v=r(83452),m=r(18204);class b{*[Symbol.iterator](){yield*this.iterable}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){var t;let r=this.keyMap.get(e);return r&&null!==(t=r.prevKey)&&void 0!==t?t:null}getKeyAfter(e){var t;let r=this.keyMap.get(e);return r&&null!==(t=r.nextKey)&&void 0!==t?t:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var t;return null!==(t=this.keyMap.get(e))&&void 0!==t?t:null}at(e){let t=[...this.getKeys()];return this.getItem(t[e])}getChildren(e){let t=this.keyMap.get(e);return(null==t?void 0:t.childNodes)||[]}constructor(e){var t;this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let r=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&"section"===e.type)for(let t of e.childNodes)r(t)};for(let t of e)r(t);let n=null,l=0,o=0;for(let[e,t]of this.keyMap)n?(n.nextKey=e,t.prevKey=n.key):(this.firstKey=e,t.prevKey=void 0),"item"===t.type&&(t.index=l++),("section"===t.type||"item"===t.type)&&o++,(n=t).nextKey=void 0;this._size=o,this.lastKey=null!==(t=null==n?void 0:n.key)&&void 0!==t?t:null}}var y=r(11417),x=r(567),w=r(58149),E=r(7157);let S={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},k={...S,customError:!0,valid:!1}
1,P={isInvalid:!1,validationDetails:S,validationErrors:[]},C=(0,f.createContext)({}),K="__formValidationState"+Date.now();function T(e){return e?Array.isArray(e)?e:[e]:[]}function N(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:k}:null}function M(e,t){return e===t||!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((e,r)=>e===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([e,r])=>t.validationDetails[e]===r)}let D=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),R=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);var I=r(13485);let L=Symbol.for("react-aria.i18n.locale");function A(){let e="undefined"!=typeof window&&window[L]||"undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:!function(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize(),r="function"==typeof t.getTextInfo?t.getTextInfo():t.textInfo;if(r)return"rtl"===r.direction;if(t.script)return D.has(t.script)}let t=e.split("-")[0];return R.has(t)}(e)?"ltr":"rtl"}}let F=A(),B=new Set;function z(){for(let e of(F=A(),B))e(F)}let O=f.createContext(null),_=new Map;var j=r(69597),W=r(38321),H=r(86874),V=r(40582),U=r(58552);new WeakMap;class G{getItemRect(e){var t,r,n;let l,o,i=this.ref.current;if(!i)return null;let a=null!=e?(t=this.ref,l=`[data-key="${CSS.escape(String(e))}"]`,(o=null===(r=t.current)||void 0===r?void 0:r.dataset.collection)&&(l=`[data-collection="${CSS.escape(o)}"]${l}`),null===(n=t.current)||void 0===n?void 0:n.querySelector(l)):null;if(!a)return null;let s=i.getBoundingClientRect(),u=a.getBoundingClientRect();return{x:u.left-s.left+i.scrollLeft,y:u.top-s.top+i.scrollTop,width:u.width,height:u.height}}getContentSize(){var e,t;let r=this.ref.current;return{width:null!==(e=null==r?void 0:r.scrollWidth)&&void 0!==e?e:0,height:null!==(t=null==r?void 0:r.scrollHeight)&&void 0!==t?t:0}}getVisibleRect(){var e,t,r,n;let l=this.ref.current;return{x:null!==(e=null==l?void 0:l.scrollLeft)&&void 0!==e?e:0,y:null!==(t=null==l?void 0:l.scrollTop)&&void 0!==t?t:0,width:null!==(r=null==l?void 0:l.offsetWidth)&&void 0!==r?r:0,height:null!==(n=null==l?void 0:l.offsetHeight)&&void 0!==n?n:0}}constructor(e){this.ref=e}}var Y=r(49231);class ${isDisabled(e){var t;return"all"===this.disabledBehavior&&((null===(t=e.props)||void 0===t?void 0:t.isDisabled)||this.disabledKeys.has(e.key))}findNextNonDisabled(e,t){let r=e;for(;null!=r;){let e=this.collection.getItem(r);if((null==e?void 0:e.type)==="item"&&!this.isDisabled(e))return r;r=t(r)}return null}getNextKey(e){let t=e;return t=this.collection.getKeyAfter(t),this.findNextNonDisabled(t,e=>this.collection.getKeyAfter(e))}getPreviousKey(e){let t=e;return t=this.collection.getKeyBefore(t),this.findNextNonDisabled(t,e=>this.collection.getKeyBefore(e))}findKey(e,t,r){let n=e,l=this.layoutDelegate.getItemRect(n);if(!l||null==n)return null;let o=l;do{if(null==(n=t(n)))break;l=this.layoutDelegate.getItemRect(n)}while(l&&r(o,l)&&null!=n);return n}isSameRow(e,t){return e.y===t.y||e.x!==t.x}isSameColumn(e,t){return e.x===t.x||e.y!==t.y}getKeyBelow(e){return"grid"===this.layout&&"vertical"===this.orientation?this.findKey(e,e=>this.getNextKey(e),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return"grid"===this.layout&&"vertical"===this.orientation?this.findKey(e,e=>this.getPreviousKey(e),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,t){return t?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){let t="ltr"===this.direction?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,e=>this.layoutDelegate[t](e))):"grid"===this.layout?"vertical"===this.orientation?this.getNextColumn(e,"rtl"===this.direction):this.findKey(e,e=>this.getNextColumn(e,"rtl"===this.direction),this.isSameColumn):"horizontal"===this.orientation?this.getNextColumn(e,"rtl"===this.direction):null}getKeyLeftOf(e){let t="ltr"===this.direction?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,e=>this.layoutDelegate[t](e))):"grid"===this.layout?"vertical"===this.orientation?this.getNextColumn(e,"ltr"===this.direction):this.findKey(e,e=>this.getNextColumn(e,"ltr"===this.direction),this.isSameColumn):"horizontal"===this.orientation?this.getNextColumn(e,"ltr"===this.direction):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,e=>this.collection.getKeyAfter(e))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,e=>this.collection.getKeyBefore(e))}getKeyPageAbove(e){let t=this.ref.current,r=this.layoutDelegate.getItemRect(e);
1if(!r)return null;if(t&&!(0,Y.a)(t))return this.getFirstKey();let n=e;if("horizontal"===this.orientation){let e=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>e&&null!=n;)r=null==(n=this.getKeyAbove(n))?null:this.layoutDelegate.getItemRect(n)}else{let e=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>e&&null!=n;)r=null==(n=this.getKeyAbove(n))?null:this.layoutDelegate.getItemRect(n)}return null!=n?n:this.getFirstKey()}getKeyPageBelow(e){let t=this.ref.current,r=this.layoutDelegate.getItemRect(e);if(!r)return null;if(t&&!(0,Y.a)(t))return this.getLastKey();let n=e;if("horizontal"===this.orientation){let e=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<e&&null!=n;)r=null==(n=this.getKeyBelow(n))?null:this.layoutDelegate.getItemRect(n)}else{let e=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<e&&null!=n;)r=null==(n=this.getKeyBelow(n))?null:this.layoutDelegate.getItemRect(n)}return null!=n?n:this.getLastKey()}getKeyForSearch(e,t){if(!this.collator)return null;let r=this.collection,n=t||this.getFirstKey();for(;null!=n;){let t=r.getItem(n);if(!t)break;let l=t.textValue.slice(0,e.length);if(t.textValue&&0===this.collator.compare(l,e))return n;n=this.getNextKey(n)}return null}constructor(...e){if(1===e.length){let t=e[0];this.collection=t.collection,this.ref=t.ref,this.collator=t.collator,this.disabledKeys=t.disabledKeys||new Set,this.disabledBehavior=t.disabledBehavior||"all",this.orientation=t.orientation||"vertical",this.direction=t.direction,this.layout=t.layout||"stack",this.layoutDelegate=t.layoutDelegate||new G(t.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 G(this.ref);"stack"===this.layout&&"vertical"===this.orientation&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}let q=new Set(["id"]),X=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),J=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),Z=new Set(["dir","lang","hidden","inert","translate"]),Q=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),ee=/^(data-.*)$/;function et(...e){return(...t)=>{for(let r of e)"function"==typeof r&&r(...t)}}let er="undefined"!=typeof document?f.useLayoutEffect:()=>{},en=!!("undefined"!=typeof window&&window.document&&window.document.createElement),el=new Map;"undefined"!=typeof FinalizationRegistry&&(n=new FinalizationRegistry(e=>{el.delete(e)}));var eo=r(98099);function ei(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let n=e[r];for(let e in n){let r=t[e],l=n[e];"function"==typeof r&&"function"==typeof l&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&90>=e.charCodeAt(2)?t[e]=et(r,l):("className"===e||"UNSAFE_className"===e)&&"string"==typeof r&&"string"==typeof l?t[e]=(0,eo.Z)(r,l):"id"===e&&r&&l?t.id=function(e,t){if(e===t)return e;let r=el.get(e);if(r)return r.forEach(e=>e.current=t),t;let n=el.get(t);return n?(n.forEach(t=>t.current=e),e):t}(r,l):t[e]=void 0!==l?l:r}}return t}var ea=r(29791),es=r(48750),eu=r(12808),ec=r(95730),ed=new WeakMap;function ef(e){var t,r,a,s,S,D;let R=(0,l.w)(),{validationBehavior:L}=(0,es.jn)(eu.q)||{},[A,G]=(0,o.oe)(e,u.variantKeys),Y=null!=(r=null!=(t=e.disableAnimation)?t:null==R?void 0:R.disableAnimation)&&r,{ref:eo,as:ef,label:eh,name:ep,isLoading:eg,selectorIcon:ev,isOpen:em,defaultOpen:eb,onOpenChange:e
1y,startContent:ex,endContent:ew,description:eE,renderValue:eS,onSelectionChange:ek,placeholder:eP,isVirtualized:eC,itemHeight:eK=36,maxListboxHeight:eT=256,children:eN,disallowEmptySelection:eM=!1,selectionMode:eD="single",spinnerRef:eR,scrollRef:eI,popoverProps:eL={},scrollShadowProps:eA={},listboxProps:eF={},spinnerProps:eB={},validationState:ez,onChange:eO,onClose:e_,className:ej,classNames:eW,validationBehavior:eH=null!=(a=null!=L?L:null==R?void 0:R.validationBehavior)?a:"native",hideEmptyContent:eV=!1,onClear:eU,...eG}=A,eY=(0,c.gy)(eI),e$={popoverProps:(0,g.dG)({placement:"bottom",triggerScaleOnOpen:!1,offset:5,disableAnimation:Y},eL),scrollShadowProps:(0,g.dG)({ref:eY,isEnabled:null==(s=e.showScrollIndicators)||s,hideScrollBar:!0,offset:15},eA),listboxProps:(0,g.dG)({disableAnimation:Y},eF)},eq=ef||"button",eX="string"==typeof eq,eJ=(0,c.gy)(eo),eZ=(0,f.useRef)(null),eQ=(0,f.useRef)(null),e0=(0,f.useRef)(null),e1=function({validate:e,validationBehavior:t,...r}){let[n,l]=(0,f.useState)(!1),[o,i]=(0,f.useState)(null),a=function(e){let t=(0,E.d)(e),[r,n]=(0,f.useState)(null),[l,o]=(0,f.useState)([]),i=()=>{o([]),t.close()};return{focusStrategy:r,...t,open(e=null){n(e),t.open()},toggle(e=null){n(e),t.toggle()},close(){i()},expandedKeysStack:l,openSubmenu:(e,t)=>{o(r=>t>r.length?r:[...r.slice(0,t),e])},closeSubmenu:(e,t)=>{o(r=>r[t]===e?r.slice(0,t):r)}}}(r),s=function(e){let{collection:t,disabledKeys:r,selectionManager:n,selectionManager:{setSelectedKeys:l,selectedKeys:o,selectionMode:i}}=function(e){let{filter:t,layoutDelegate:r}=e,n=(0,y.q)(e),l=(0,f.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),o=(0,f.useCallback)(e=>new b(t?t(e):e),[t]),i=(0,f.useMemo)(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),a=(0,w.K)(e,o,i),s=(0,f.useMemo)(()=>new x.Z(a,n,{layoutDelegate:r}),[a,n,r]);return function(e,t){let r=(0,f.useRef)(null);(0,f.useEffect)(()=>{if(null!=t.focusedKey&&!e.getItem(t.focusedKey)&&r.current){var n,l,o,i,a,s,u;let c=r.current.getItem(t.focusedKey),d=[...r.current.getKeys()].map(e=>{let t=r.current.getItem(e);return(null==t?void 0:t.type)==="item"?t:null}).filter(e=>null!==e),f=[...e.getKeys()].map(t=>{let r=e.getItem(t);return(null==r?void 0:r.type)==="item"?r:null}).filter(e=>null!==e),h=(null!==(n=null==d?void 0:d.length)&&void 0!==n?n:0)-(null!==(l=null==f?void 0:f.length)&&void 0!==l?l:0),p=Math.min(h>1?Math.max((null!==(o=null==c?void 0:c.index)&&void 0!==o?o:0)-h+1,0):null!==(i=null==c?void 0:c.index)&&void 0!==i?i:0,(null!==(a=null==f?void 0:f.length)&&void 0!==a?a:0)-1),g=null,v=!1;for(;p>=0;){if(!t.isDisabled(f[p].key)){g=f[p];break}p<f.length-1&&!v?p++:(v=!0,p>(null!==(s=null==c?void 0:c.index)&&void 0!==s?s:0)&&(p=null!==(u=null==c?void 0:c.index)&&void 0!==u?u:0),p--)}t.setFocusedKey(g?g.key:null)}r.current=e},[e,t])}(a,s),{collection:a,disabledKeys:l,selectionManager:s}}(e),a=(0,f.useMemo)(()=>e.isLoading||0===o.size?[]:Array.from(o).filter(Boolean).filter(e=>!t.getItem(e)),[o,t]),s=0!==o.size?Array.from(o).map(e=>t.getItem(e)).filter(Boolean):null;return a.length&&console.warn(`Select: Keys "${a.join(", ")}" passed to "selectedKeys" are not present in the collection.`),{collection:t,disabledKeys:r,selectionManager:n,selectionMode:i,selectedKeys:o,setSelectedKeys:l.bind(n),selectedItems:s}}({...r,onSelectionChange:e=>{null!=r.onSelectionChange&&("all"===e?r.onSelectionChange(new Set(s.collection.getKeys())):r.onSelectionChange(e)),"single"===r.selectionMode&&a.close()}}),u=function(e){if(e[K]){let{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:l,commitValidation:o}=e[K];return{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:l,commitValidation:o}}return function(e){let{isInvalid:t,validationState:r,name:n,value:l,builtinValidation:o,validate:i,validationBehavior:a="aria"}=e;r&&(t||(t="invalid"===r));let s=void 0!==t?{isInvalid:t,validationErrors:[],validationDetails:k}:null,u=(0,f.useMemo)(()=>i&&null!=l?N(function(e,t){if("function"==typeof e){let r=e(t);if(r&&"boolean"!=typeof r)return T(r)}return[]}
1(i,l)):null,[i,l]);(null==o?void 0:o.validationDetails.valid)&&(o=void 0);let c=(0,f.useContext)(C),d=(0,f.useMemo)(()=>n?Array.isArray(n)?n.flatMap(e=>T(c[e])):T(c[n]):[],[c,n]),[h,p]=(0,f.useState)(c),[g,v]=(0,f.useState)(!1);c!==h&&(p(c),v(!1));let m=(0,f.useMemo)(()=>N(g?[]:d),[g,d]),b=(0,f.useRef)(P),[y,x]=(0,f.useState)(P),w=(0,f.useRef)(P),[E,S]=(0,f.useState)(!1);return(0,f.useEffect)(()=>{if(!E)return;S(!1);let e=u||o||b.current;M(e,w.current)||(w.current=e,x(e))}),{realtimeValidation:s||m||u||o||P,displayValidation:"native"===a?s||m||y:s||m||u||o||y,updateValidation(e){"aria"!==a||M(y,e)?b.current=e:x(e)},resetValidation(){M(P,w.current)||(w.current=P,x(P)),"native"===a&&S(!1),v(!0)},commitValidation(){"native"===a&&S(!0),v(!0)}}}(e)}({...r,validationBehavior:t,validate:t=>{if(!e)return;let n=Array.from(t);return e("single"===r.selectionMode?n[0]:n)},value:s.selectedKeys}),c=0===s.collection.size&&r.hideEmptyContent;return{...u,...s,...a,focusStrategy:o,close(){a.close()},open(e=null){c||(i(e),a.open())},toggle(e=null){c||(i(e),a.toggle())},isFocused:n,setFocused:l}}({...A,isOpen:em,selectionMode:eD,disallowEmptySelection:eM,validationBehavior:eH,children:eN,isRequired:e.isRequired,isDisabled:e.isDisabled,isInvalid:e.isInvalid,defaultOpen:eb,hideEmptyContent:eV,onOpenChange:e=>{null==ey||ey(e),e||null==e_||e_()},onSelectionChange:e=>{null==ek||ek(e),eO&&"function"==typeof eO&&eO({target:{...eJ.current&&{...eJ.current,name:eJ.current.name},value:Array.from(e).join(",")}}),e1.commitValidation()}});e1={...e1,...e.isDisabled&&{disabledKeys:new Set([...e1.collection.getKeys()])}},(0,ea.G)(()=>{var e;(null==(e=eJ.current)?void 0:e.value)&&e1.setSelectedKeys(new Set([...e1.selectedKeys,eJ.current.value]))},[eJ.current]);let{labelProps:e4,triggerProps:e3,valueProps:e2,menuProps:e5,descriptionProps:e9,errorMessageProps:e8,isInvalid:e6,validationErrors:e7,validationDetails:te}=function(e,t,r){let{disallowEmptySelection:l,isDisabled:o}=e,i=function(e){let t;let{locale:r}=(t=function(){let e=(0,I.Av)(),[t,r]=(0,f.useState)(F);return((0,f.useEffect)(()=>(0===B.size&&window.addEventListener("languagechange",z),B.add(r),()=>{B.delete(r),0===B.size&&window.removeEventListener("languagechange",z)}),[]),e)?{locale:"en-US",direction:"ltr"}:t}(),(0,f.useContext)(O)||t),n=r+(e?Object.entries(e).sort((e,t)=>e[0]<t[0]?-1:1).join():"");if(_.has(n))return _.get(n);let l=new Intl.Collator(r,e);return _.set(n,l),l}({usage:"search",sensitivity:"base"}),a=(0,f.useMemo)(()=>new $(t.collection,t.disabledKeys,null,i),[t.collection,t.disabledKeys,i]),{menuTriggerProps:s,menuProps:u}=(0,U.u)({isDisabled:o,type:"listbox"},t,r),{typeSelectProps:c}=function(e){let{keyboardDelegate:t,selectionManager:r,onTypeSelect:n}=e,l=(0,f.useRef)({search:"",timeout:void 0}).current;return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?e=>{var o;let i=1!==(o=e.key).length&&/^[A-Z]/i.test(o)?"":o;if(i&&!e.ctrlKey&&!e.metaKey&&e.currentTarget.contains(e.target)&&(0!==l.search.length||" "!==i)){if(" "!==i||!(l.search.trim().length>0)||(e.preventDefault(),"continuePropagation"in e||e.stopPropagation()),l.search+=i,null!=t.getKeyForSearch){let e=t.getKeyForSearch(l.search,r.focusedKey);null==e&&(e=t.getKeyForSearch(l.search)),null!=e&&(r.setFocusedKey(e),n&&n(e))}clearTimeout(l.timeout),l.timeout=setTimeout(()=>{l.search=""},1e3)}}:void 0}}}({keyboardDelegate:a,selectionManager:t.selectionManager,onTypeSelect(e){t.setSelectedKeys([e])}}),{isInvalid:d,validationErrors:h,validationDetails:p}=t.displayValidation,{labelProps:g,fieldProps:v,descriptionProps:m,errorMessageProps:b}=function(e){let{description:t,errorMessage:r,isInvalid:n,validationState:l}=e,{labelProps:o,fieldProps:i}=function(e){let{id:t,label:r,"aria-labelledby":n,"aria-label":l,labelElementType:o="label"}=e;t=(0,W.Me)(t);let i=(0,W.Me)(),a={};return r&&(n=n?`${i} ${n}`:i,a={id:i,htmlFor:"label"===o?t:void 0}),{labelProps:a,fieldProps:(0,H.b)({id:t,"aria-label":l,"aria-labelledby":n})}}(e),a=(0,W.mp)([!!t,!!r,n,l]),s=(0,W.mp)([!!t,!!r,n,l]);return{labelProps:o,fieldProps:i=(0,V.d)(i,{"aria-describedby":[a,s,e["aria-describedby"]].filter(
1Boolean).join(" ")||void 0}),descriptionProps:{id:a},errorMessageProps:{id:s}}}({...e,labelElementType:"span",isInvalid:d,errorMessage:e.errorMessage||h});c.onKeyDown=c.onKeyDownCapture,delete c.onKeyDownCapture,s.onPressStart=e=>{"touch"===e.pointerType||"keyboard"===e.pointerType||o||t.toggle("virtual"===e.pointerType?"first":null)};let y=function(e,t={}){let{labelable:r,isLink:n,global:l,events:o=l,propNames:i}=t,a={};for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(q.has(t)||r&&X.has(t)||n&&J.has(t)||l&&Z.has(t)||o&&Q.has(t)||t.endsWith("Capture")&&Q.has(t.slice(0,-7))||(null==i?void 0:i.has(t))||ee.test(t))&&(a[t]=e[t]);return a}(e,{labelable:!0}),x=ei(c,s,v),w=function(e){let[t,r]=(0,f.useState)(void 0),l=(0,f.useRef)(null),o=(0,I.gP)(t),i=(0,f.useRef)(null);if(n&&n.register(i,o),en){let e=el.get(o);e&&!e.includes(l)?e.push(l):el.set(o,[l])}return er(()=>()=>{n&&n.unregister(i),el.delete(o)},[o]),(0,f.useEffect)(()=>{let e=l.current;return e&&r(e),()=>{e&&(l.current=null)}}),o}();return{labelProps:{...g,onClick:()=>{var t;e.isDisabled||(null==(t=r.current)||t.focus(),(0,j._w)("keyboard"))}},triggerProps:ei(y,{...x,onKeyDown:et(x.onKeyDown,e=>{if("single"===t.selectionMode)switch(e.key){case"ArrowLeft":{e.preventDefault();let r=t.selectedKeys.size>0?a.getKeyAbove(t.selectedKeys.values().next().value):a.getFirstKey();r&&t.setSelectedKeys([r]);break}case"ArrowRight":{e.preventDefault();let r=t.selectedKeys.size>0?a.getKeyBelow(t.selectedKeys.values().next().value):a.getFirstKey();r&&t.setSelectedKeys([r])}}},e.onKeyDown),onKeyUp:e.onKeyUp,"aria-labelledby":[w,x["aria-labelledby"],x["aria-label"]&&!x["aria-labelledby"]?x.id:null].join(" "),onFocus(r){t.isFocused||(e.onFocus&&e.onFocus(r),t.setFocused(!0))},onBlur(r){t.isOpen||(e.onBlur&&e.onBlur(r),t.setFocused(!1))}}),valueProps:{id:w},menuProps:{...u,disallowEmptySelection:l,autoFocus:t.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,onBlur:r=>{r.currentTarget.contains(r.relatedTarget)||(e.onBlur&&e.onBlur(r),t.setFocused(!1))},onFocus:null==u?void 0:u.onFocus,"aria-labelledby":[v["aria-labelledby"],x["aria-label"]&&!v["aria-labelledby"]?x.id:null].filter(Boolean).join(" ")},descriptionProps:m,errorMessageProps:b,isInvalid:d,validationErrors:h,validationDetails:p}}({...A,disallowEmptySelection:eM,isDisabled:e.isDisabled},e1,eZ),tt=(0,f.useCallback)(()=>{var e;e1.setSelectedKeys(new Set([])),null==eU||eU(),null==(e=eZ.current)||e.focus()},[eU,e1]),{pressProps:tr}=(0,v.r)({isDisabled:!!(null==e?void 0:e.isDisabled),onPress:tt}),tn=e.isInvalid||"invalid"===ez||e6,{isPressed:tl,buttonProps:to}=(0,h.j)(e3,eZ),{focusProps:ti,isFocused:ta,isFocusVisible:ts}=(0,p.F)(),{focusProps:tu,isFocusVisible:tc}=(0,p.F)(),{isHovered:td,hoverProps:tf}=(0,m.X)({isDisabled:e.isDisabled}),th=(0,i.j)({labelPlacement:e.labelPlacement,label:eh}),tp=!!eP,tg="outside-left"===th||"outside"===th,tv="inside"===th,tm="outside-left"===th,tb=e.isClearable,ty=e1.isOpen||tp||!!(null==(S=e1.selectedItems)?void 0:S.length)||!!ex||!!ew||!!e.isMultiline,tx=!!(null==(D=e1.selectedItems)?void 0:D.length),tw=!!eh,tE=tw&&(tm||tg&&tp),tS=(0,g.Wy)(null==eW?void 0:eW.base,ej),tk=(0,f.useMemo)(()=>u({...G,isInvalid:tn,isClearable:tb,labelPlacement:th,disableAnimation:Y}),[(0,g.Xx)(G),tn,th,Y]);(0,ec.t)({isDisabled:!e1.isOpen});let tP="function"==typeof A.errorMessage?A.errorMessage({isInvalid:tn,validationErrors:e7,validationDetails:te}):A.errorMessage||(null==e7?void 0:e7.join(" ")),tC=!!eE||!!tP,tK=!!ew;(0,f.useEffect)(()=>{if(e1.isOpen&&e0.current&&eZ.current){let e=eZ.current.getBoundingClientRect();e0.current.style.width=e.width+"px"}},[e1.isOpen]);let tT=(0,f.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{"data-slot":"base","data-filled":(0,g.PB)(ty),"data-has-value":(0,g.PB)(tx),"data-has-label":(0,g.PB)(tw),"data-has-helper":(0,g.PB)(tC),"data-has-end-content":(0,g.PB)(tK),"data-invalid":(0,g.PB)(tn),"data-has-label-outside":(0,g.PB)(tE),className:tk.base({class:(0,g.Wy)(tS,e.className)}),...e}},[tk,tC,tx,tw,tE,ty,tS]),tN=(0,f.useCallback)(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ref:eZ,"data-slot":"trigger","data-open":(0,g.PB)(e1.isOpen),"data-disabled":(0,g.PB)(null==e?void 0:e.isDisabled),"data-focus":(0,g.PB)(ta),"data-pressed":(0,g.PB)(tl),"data-focus-visible":(0,g.PB)(ts),"data-hover":(0,g.PB)(td),className:tk.trigger({class:null==eW?void 0:eW.trigger}),...(0,g.dG)(to,ti,tf,(0,d.z)(eG,{enabled:eX}),(0,d.z)(t))}},[tk,eZ,e1.isOpen,null==eW?void 0:eW.trigger,null==e?void 0:e.isDisabled,ta,tl,ts,td,to,ti,tf,eG,eX]),tM=(0,f.useCallback)(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{state:e1,triggerRef:eZ,selectRef:eJ,selectionMode:eD,label:null==e?void 0:e.label,name:null==e?void 0:e.name,isRequired:null==e?void 0:e.isRequired,autoComplete:null==e?void 0:e.autoComplete,isDisabled:null==e?void 0:e.isDisabled,form:null==e?void 0:e.form,onChange:eO,...t}},[e1,eD,null==e?void 0:e.label,null==e?void 0:e.autoComplete,null==e?void 0:e.name,null==e?void 0:e.isDisabled,eZ]),tD=(0,f.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{"data-slot":"label",className:tk.label({class:(0,g.Wy)(null==eW?void 0:eW.label,e.className)}),...e4,...e}},[tk,null==eW?void 0:eW.label,e4]),tR=(0,f.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{"data-slot":"value",className:tk.value({class:(0,g.Wy)(null==eW?void 0:eW.value,e.className)}),...e2,...e}},[tk,null==eW?void 0:eW.value,e2]),tI=(0,f.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{"data-slot":"listboxWrapper",className:tk.listboxWrapper({class:(0,g.Wy)(null==eW?void 0:eW.listboxWrapper,null==e?void 0:e.className)}),style:{maxHeight:null!=eT?eT:256,...e.style},...(0,g.dG)(e$.scrollShadowProps,e)}},[tk.listboxWrapper,null==eW?void 0:eW.listboxWrapper,e$.scrollShadowProps,eT]),tL=(0,f.useCallback)(function(){var e,t;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=(0,g.dG)(e$.popoverProps,r);return{state:e1,triggerRef:eZ,ref:e0,"data-slot":"popover",scrollRef:eQ,triggerType:"listbox",classNames:{content:tk.popoverContent({class:(0,g.Wy)(null==eW?void 0:eW.popoverContent,r.className)})},...n,offset:e1.selectedItems&&e1.selectedItems.length>0?1e-8*e1.selectedItems.length+((null==(e=e$.popoverProps)?void 0:e.offset)||0):null==(t=e$.popoverProps)?void 0:t.offset}},[tk,null==eW?void 0:eW.popoverContent,e$.popoverProps,eZ,e1,e1.selectedItems]),tA=(0,f.useCallback)(()=>({"data-slot":"selectorIcon","aria-hidden":(0,g.PB)(!0),"data-open":(0,g.PB)(e1.isOpen),className:tk.selectorIcon({class:null==eW?void 0:eW.selectorIcon})}),[tk,null==eW?void 0:eW.selectorIcon,e1.isOpen]),tF=(0,f.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...e,"data-slot":"innerWrapper",className:tk.innerWrapper({class:(0,g.Wy)(null==eW?void 0:eW.innerWrapper,null==e?void 0:e.className)})}},[tk,null==eW?void 0:eW.innerWrapper]),tB=(0,f.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...e,"data-slot":"helperWrapper",className:tk.helperWrapper({class:(0,g.Wy)(null==eW?void 0:eW.helperWrapper,null==e?void 0:e.className)})}},[tk,null==eW?void 0:eW.helperWrapper]),tz=(0,f.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...e,...e9,"data-slot":"description",className:tk.description({class:(0,g.Wy)(null==eW?void 0:eW.description,null==e?void 0:e.className)})}},[tk,null==eW?void 0:eW.description]),tO=(0,f.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...e,"data-slot":"mainWrapper",className:tk.mainWrapper({class:(0,g.Wy)(null==eW?void 0:eW.mainWrapper,null==e?void 0:e.className)})}},[tk,null==eW?void 0:eW.mainWrapper]),t_=(0,f.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...e,"data-slot":"end-wrapper",className:tk.endWrapper({class:(0,g.Wy)(null==eW?void 0:eW.endWrapper,null==e?void 0:e.className)})}},[tk,null==eW?void 0:eW.endWrapper]),tj=(0,f.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...e,"data-slot":"end-content",className:tk.endContent({class:(0,g.Wy)(null==eW?void 0:eW.endContent,null==e?void 0:e.className)})}},[tk,null==eW?void 0:eW.endContent]),tW=(0,f.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...e,...e8,"data-slot":"error-message",className:tk.errorMessage({class:(0,g.Wy)(null==eW?void 0:eW.errorMessage,null==e?void 0:e.className)})}},[tk,e8,null==eW?void 0:eW.errorMessage]),tH=(0,f.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{"aria-hidden":(0,g.PB)(!0),"data-slot":"spinner",color:"current",size:"sm",...eB,...e,ref:eR,className:tk.spinner({class:(0,g.Wy)(null==eW?void 0:eW.spinner,null==e?void 0:e.className)})}},[tk,eR,eB,null==eW?void 0:eW.spinner]),tV=(0,f.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...e,type:"button",tabIndex:-1,"aria-label":"clear selection","data-slot":"clear-button","data-focus-visible":(0,g.PB)(tc),className:tk.clearButton({class:(0,g.Wy)(null==eW?void 0:eW.clearButton,null==e?void 0:e.className)}),...(0,g.dG)(tr,tu)}},[tk,tc,tr,tu,null==eW?void 0:eW.clearButton]);return ed.set(e1,{isDisabled:null==e?void 0:e.isDisabled,isRequired:null==e?void 0:e.isRequired,name:null==e?void 0:e.name,isInvalid:tn,validationBehavior:eH}),{Component:eq,domRef:eJ,state:e1,label:eh,name:ep,triggerRef:eZ,isLoading:eg,placeholder:eP,startContent:ex,endContent:ew,description:eE,selectorIcon:ev,hasHelper:tC,labelPlacement:th,hasPlaceholder:tp,renderValue:eS,selectionMode:eD,disableAnimation:Y,isOutsideLeft:tm,shouldLabelBeOutside:tg,shouldLabelBeInside:tv,isInvalid:tn,errorMessage:tP,isClearable:tb,getClearButtonProps:tV,getBaseProps:tT,getTriggerProps:tN,getLabelProps:tD,getValueProps:tR,getListboxProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=null!=eC?eC:e1.collection.size>50;return{state:e1,ref:eQ,isVirtualized:t,virtualization:t?{maxListboxHeight:eT,itemHeight:eK}:void 0,"data-slot":"listbox",className:tk.listbox({class:(0,g.Wy)(null==eW?void 0:eW.listbox,null==e?void 0:e.className)}),scrollShadowProps:e$.scrollShadowProps,...(0,g.dG)(e$.listboxProps,e,e5)}},getPopoverProps:tL,getSpinnerProps:tH,getMainWrapperProps:tO,getListboxWrapperProps:tI,getHiddenSelectProps:tM,getInnerWrapperProps:tF,getHelperWrapperProps:tB,getDescriptionProps:tz,getErrorMessageProps:tW,getSelectorIconProps:tA,getEndWrapperProps:t_,getEndContentProps:tj}}},97244:function(e,t,r){r.d(t,{g:function(){return v}});
1var n=r(45305),l=r(56530),o=r(71530),i=r(59362),a=r(10119),s=r(81166),u=r(92721),c=r(2265),d=r(82319),f=r(24249),h=r(8486),p=r(39785),g=r(57437),v=(0,d.Gp)(function(e,t){var r;let{Component:d,state:v,label:m,hasHelper:b,isLoading:y,triggerRef:x,selectorIcon:w=(0,g.jsx)(a.v,{}),description:E,errorMessage:S,isInvalid:k,startContent:P,endContent:C,placeholder:K,renderValue:T,shouldLabelBeOutside:N,disableAnimation:M,getBaseProps:D,getLabelProps:R,getTriggerProps:I,getValueProps:L,getListboxProps:A,getPopoverProps:F,getSpinnerProps:B,getMainWrapperProps:z,getInnerWrapperProps:O,getHiddenSelectProps:_,getHelperWrapperProps:j,getListboxWrapperProps:W,getDescriptionProps:H,getErrorMessageProps:V,getSelectorIconProps:U,isClearable:G,getClearButtonProps:Y,getEndWrapperProps:$,getEndContentProps:q}=(0,l.L)({...e,ref:t}),X=m?(0,g.jsx)("label",{...R(),children:m}):null,J=(0,c.cloneElement)(w,U()),Z=(0,c.useMemo)(()=>{var e;return G&&(null==(e=v.selectedItems)?void 0:e.length)?(0,g.jsx)("span",{...Y(),children:(0,g.jsx)(s.f,{})}):null},[G,Y,null==(r=v.selectedItems)?void 0:r.length]),Q=(0,c.useMemo)(()=>Z?(0,g.jsxs)("div",{...$(),children:[Z,C&&(0,g.jsx)("span",{...q(),children:C})]}):C&&(0,g.jsx)("span",{...q(),children:C}),[Z,C,$,q]),ee=(0,c.useMemo)(()=>{let e=k&&S,t=e||E;return b&&t?(0,g.jsx)("div",{...j(),children:e?(0,g.jsx)("div",{...V(),children:S}):(0,g.jsx)("div",{...H(),children:E})}):null},[b,k,S,E,j,V,H]),et=(0,c.useMemo)(()=>{var e;return(null==(e=v.selectedItems)?void 0:e.length)?T&&"function"==typeof T?T([...v.selectedItems].map(e=>({key:e.key,data:e.value,type:e.type,props:e.props,textValue:e.textValue,rendered:e.rendered,"aria-label":e["aria-label"]}))):v.selectedItems.map(e=>e.textValue).join(", "):K},[v.selectedItems,T,K]),er=(0,c.useMemo)(()=>y?(0,g.jsx)(u.c,{...B()}):J,[y,J,B]),en=(0,c.useMemo)(()=>v.isOpen?(0,g.jsx)(i.q,{...F(),children:(0,g.jsx)(f.o,{...W(),children:(0,g.jsx)(o.X,{...A()})})}):null,[v.isOpen,F,v,x,W,A]);return(0,g.jsxs)("div",{...D(),children:[(0,g.jsx)(n.M,{..._()}),N?X:null,(0,g.jsxs)("div",{...z(),children:[(0,g.jsxs)(d,{...I(),children:[N?null:X,(0,g.jsxs)("div",{...O(),children:[P,(0,g.jsx)("span",{...L(),children:et}),C&&v.selectedItems&&(0,g.jsx)(h.T,{elementType:"span",children:","}),Q]}),er]}),ee]}),M?en:(0,g.jsx)(p.M,{children:en})]})})},10119:function(e,t,r){r.d(t,{v:function(){return l}});var n=r(57437),l=({strokeWidth:e=1.5,...t})=>
1(0,n.jsx)("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:"1em",role:"presentation",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:e,viewBox:"0 0 24 24",width:"1em",...t,children:(0,n.jsx)("path",{d:"m6 9 6 6 6-6"})})},88755:function(e,t,r){r.d(t,{A:function(){return i},p:function(){return o}});var n=r(26544),l=r(16790),o=(0,n.tv)({base:["relative inline-flex items-center outline-solid outline-transparent tap-highlight-transparent",...l.Dh],variants:{size:{sm:"text-small",md:"text-medium",lg:"text-large"},color:{foreground:"text-foreground",primary:"text-primary",secondary:"text-secondary",success:"text-success",warning:"text-warning",danger:"text-danger"},underline:{none:"no-underline",hover:"hover:underline",always:"underline",active:"active:underline",focus:"focus:underline"},isBlock:{true:["px-2","py-1","hover:after:opacity-100","after:content-['']","after:inset-0","after:opacity-0","after:w-full","after:h-full","after:rounded-xl","after:transition-background","after:absolute"],false:"hover:opacity-hover active:opacity-disabled transition-opacity"},isDisabled:{true:"opacity-disabled cursor-default pointer-events-none"},disableAnimation:{true:"after:transition-none transition-none"}},compoundVariants:[{isBlock:!0,color:"foreground",class:"hover:after:bg-foreground
1/10"},{isBlock:!0,color:"primary",class:"hover:after:bg-primary/20"},{isBlock:!0,color:"secondary",class:"hover:after:bg-secondary/20"},{isBlock:!0,color:"success",class:"hover:after:bg-success/20"},{isBlock:!0,color:"warning",class:"hover:after:bg-warning/20"},{isBlock:!0,color:"danger",class:"hover:after:bg-danger/20"},{underline:["hover","always","active","focus"],class:"underline-offset-4"}],defaultVariants:{color:"primary",size:"md",isBlock:!1,underline:"none",isDisabled:!1}}),i="flex mx-1 text-current self-center"},56952:function(e,t,r){r.d(t,{D9:function(){return i},Dk:function(){return a},GI:function(){return o}});var n=r(26544),l=r(16790),o=(0,n.tv)({slots:{base:"w-full relative flex flex-col gap-1 p-1 overflow-clip",list:"w-full flex flex-col gap-0.5 outline-solid outline-transparent",emptyContent:["h-10","px-2","py-1.5","w-full","h-full","text-foreground-400","text-start"]}}),i=(0,n.tv)({slots:{base:["flex","group","gap-2","items-center","justify-between","relative","px-2","py-1.5","w-full","h-full","box-border","rounded-small","subpixel-antialiased","outline-solid outline-transparent","cursor-pointer","tap-highlight-transparent",...l.Dh,"data-[focus-visible=true]:dark:ring-offset-background-content1"],wrapper:"w-full flex flex-col items-start justify-center min-w-0",title:"flex-1 text-small font-normal w-full",description:["w-full","text-tiny","text-foreground-500","group-hover:text-current"],selectedIcon:["text-inherit","w-3","h-3","shrink-0"],shortcut:["px-1","py-0.5","rounded-sm","font-sans","text-foreground-500","text-tiny","border-small","border-default-300","group-hover:border-current"]},variants:{variant:{solid:{base:""},bordered:{base:"border-medium border-transparent bg-transparent"},light:{base:"bg-transparent"},faded:{base:["border-small border-transparent hover:border-default data-[hover=true]:bg-default-100","data-[selectable=true]:focus:border-default data-[selectable=true]:focus:bg-default-100"]},flat:{base:""},shadow:{base:"data-[hover=true]:shadow-lg"}},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},showDivider:{true:{base:["mb-1.5","after:content-['']","after:absolute","after:-bottom-1","after:left-0","after:right-0","after:h-divider","after:bg-divider"]},false:{}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},disableAnimation:{true:{},false:{base:"data-[hover=true]:transition-colors"}},hasTitleTextChild:{true:{title:"truncate"}},hasDescriptionTextChild:{true:{description:"truncate"}}},defaultVariants:{variant:"solid",color:"default",showDivider:!1},compoundVariants:[{variant:"solid",color:"default",class:{base:["data-[hover=true]:bg-default","data-[hover=true]:text-default-foreground","data-[selectable=true]:focus:bg-default","data-[selectable=true]:focus:text-default-foreground"]}},{variant:"solid",color:"primary",class:{base:["data-[hover=true]:bg-primary data-[hover=true]:text-primary-foreground","data-[selectable=true]:focus:bg-primary data-[selectable=true]:focus:text-primary-foreground"]}},{variant:"solid",color:"secondary",class:{base:["data-[hover=true]:bg-secondary data-[hover=true]:text-secondary-foreground","data-[selectable=true]:focus:bg-secondary data-[selectable=true]:focus:text-secondary-foreground"]}},{variant:"solid",color:"success",class:{base:["data-[hover=true]:bg-success data-[hover=true]:text-success-foreground","data-[selectable=true]:focus:bg-success data-[selectable=true]:focus:text-success-foreground"]}},{variant:"solid",color:"warning",class:{base:["data-[hover=true]:bg-warning data-[hover=true]:text-warning-foreground","data-[selectable=true]:focus:bg-warning data-[selectable=true]:focus:text-warning-foreground"]}},{variant:"solid",color:"danger",class:{base:["data-[hover=true]:bg-danger data-[hover=true]:text-danger-foreground","data-[selectable=true]:focus:bg-danger data-[selectable=true]:focus:text-danger-foreground"]}},{variant:"shadow",color:"default",class:{base:["data-[hover=true]:shadow-default/50 data-[hover=true]:bg-default data-[hover=true]:text-default-foreground","data-[selectable=true]:focus:shadow-default/50 data-[selectable=true]:focus:bg-default data-[selectable=true]:focus:text-default-foreground"]}},{variant:"shadow",color:"primary",class:{base:["data-[hover=true]:shadow-primary/30 data-[hover=true]:bg-primary data-[hover=true]:text-primary-foreground","data-[selectable=true]:focus:shadow-primary/30 data-[selectable=true]:focus:bg-primary data-[selectable=true]:focus:text-primary-foreground"]}},{variant:"shadow",color:"secondary",class:{base:["data-[hover=true]:shadow-secondary/30 data-[hover=true]:bg-secondary data-[hover=true]:text-secondary-foreground","data-[selectable=true]:focus:shadow-secondary/30 data-[selectable=true]:focus:bg-secondary data-[selectable=true]:focus:text-secondary-foreground"]}},{variant:"shadow",color:"success",class:{base:["data-[hover=true]:shadow-success/30 data-[hover=true]:bg-success data-[hover=true]:text-success-foreground","data-[selectable=true]:focus:shadow-success/30 data-[selectable=true]:focus:bg-success data-[selectable=true]:focus:text-success-foreground"]}},{variant:"shadow",color:"warning",class:{base:["data-[hover=true]:shadow-warning/30 data-[hover=true]:bg-warning data-[hover=true]:text-warning-foreground","data-[selectable=true]:focus:shadow-warning/30 data-[selectable=true]:focus:bg-warning data-[selectable=true]:focus:text-warning-foreground"]}},{variant:"shadow",color:"danger",class:{base:["data-[hover=true]:shadow-danger/30 data-[hover=true]:bg-danger data-[hover=true]:text-danger-foreground","data-[selectable=true]:focus:shadow-danger/30 data-[selectable=true]:focus:bg-danger data-[selectable=true]:focus:text-danger-foreground"]}},{variant:"bordered",color:"default",class:{base:["data-[hover=true]:border-default","data-[selectable=true]:focus:border-default"]}},{variant:"bordered",color:"primary",class:{base:["data-[hover=true]:border-primary data-[hover=true]:text-primary","data-[selectable=true]:focus:border-primary data-[selectable=true]:focus:text-primary"]}},{variant:"bordered",color:"secondary",class:{base:["data-[hover=true]:border-secondary data-[hover=true]:text-secondary","data-[selectable=true]:focus:border-secondary data-[selectable=true]:focus:text-secondary"]}},{variant:"bordered",color:"success",class:{base:["data-[hover=true]:border-success data-[hover=true]:text-success","data-[selectable=true]:focus:border-success data-[selectable=true]:focus:text-success"]}},{variant:"bordered",color:"warning",class:{base:["data-[hover=true]:border-warning data-[hover=true]:text-warning","data-[selectable=true]:focus:border-warning data-[selectable=true]:focus:text-warning"]}},{variant:"bordered",color:"danger",class:{base:["data-[hover=true]:border-danger data-[hover=true]:text-danger","data-[selectable=true]:focus:border-danger data-[selectable=true]:focus:text-danger"]}},{variant:"flat",color:"default",class:{base:["data-[hover=true]:bg-default/40","data-[hover=true]:text-default-foreground","data-[selectable=true]:focus:bg-default/40","data-[selectable=true]:focus:text-default-foreground"]}},{variant:"flat",color:"primary",class:{base:["data-[hover=true]:bg-primary/20 data-[hover=true]:text-primary","data-[selectable=true]:focus:bg-primary/20 data-[selectable=true]:focus:text-primary"]}},{variant:"flat",color:"secondary",class:{base:["data-[hover=true]:bg-secondary/20 data-[hover=true]:text-secondary","data-[selectable=true]:focus:bg-secondary/20 data-[selectable=true]:focus:text-secondary"]}},{variant:"flat",color:"success",class:{base:["data-[hover=true]:bg-success/20 data-[hover=true]:text-success","data-[selectable=true]:focus:bg-success/20 data-[selectable=true]:focus:text-success"]}},{variant:"flat",color:"warning",class:{base:["data-[hover=true]:bg-warning/20 data-[hover=true]:text-warning","data-[selectable=true]:focus:bg-warning/20 data-[selectable=true]:focus:text-warning"]}},{variant:"flat",color:"danger",class:{base:["data-[hover=true]:bg-danger/20 data-[hover=true]:text-danger","data-[selectable=true]:focus:bg-danger/20 data-[selectable=true]:focus:text-danger"]}},{variant:"faded",color:"default",class:{base:["data-[hover=true]:text-default-foreground","data-[selectable=true]:focus:text-default-foreground"]}},{variant:"faded",color:"primary",class:{base:["data-[hover=true]:text-primary","data-[selectable=true]:focus:text-primary"]}},{variant:"faded",color:"secondary",class:{base:["data-[hover=true]:text-secondary","data-[selectable=true]:focus:text-secondary"]}},{variant:"faded",color:"success",class:{base:["data-[hover=true]:text-success","data-[selectable=true]:focus:text-success"]}},{variant:"faded",color:"warning",class:{base:["data-[hover=true]:text-warning","data-[selectable=true]:focus:text-warning"]}},{variant:"faded",color:"danger",class:{base:["data-[hover=true]:text-danger","data-[selectable=true]:focus:text-danger"]}},{variant:"light",color:"default",class:{base:["data-[hover=true]:text-default-500","data-[selectable=true]:focus:text-default-500"]}},{variant:"light",color:"primary",class:{base:["data-[hover=true]:text-primary","data-[selectable=true]:focus:text-primary"]}},{variant:"light",color:"secondary",class:{base:["data-[hover=true]:text-secondary","data-[selectable=true]:focus:text-secondary"]}},{variant:"light",color:"success",class:{base:["data-[hover=true]:text-success","data-[selectable=true]:focus:text-success"]}},{variant:"light",color:"warning",class:{base:["data-[hover=true]:text-warning","data-[selectable=true]:focus:text-warning"]}},{variant:"light",color:"danger",class:{base:["data-[hover=true]:text-danger","data-[selectable=true]:focus:text-danger"]}}]}),a=(0,n.tv)({slots:{base:"relative mb-2",heading:"pl-1 text-tiny text-foreground-500",group:"data-[has-title=true]:pt-1",divider:"mt-2"}})},25889:function(e,t,r){r.d(t,{v:function(){return i}});var n=r(86397),l=r(26544),o=r(16790),i=(0,l.tv)({slots:{base:["z-0","relative","bg-transparent","[transform-origin:var(--trigger-anchor-point)]","before:content-['']","before:hidden","before:z-[-1]","before:absolute","before:rotate-45","before:w-2.5","before:h-2.5","before:rounded-sm","data-[arrow=true]:before:block","data-[placement=top]:before:-bottom-[calc(theme(sp
1acing.5)/4_-_1.5px)]","data-[placement=top]:before:left-1/2","data-[placement=top]:before:-translate-x-1/2","data-[placement=top-start]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top-start]:before:left-3","data-[placement=top-end]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top-end]:before:right-3","data-[placement=bottom]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom]:before:left-1/2","data-[placement=bottom]:before:-translate-x-1/2","data-[placement=bottom-start]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom-start]:before:left-3","data-[placement=bottom-end]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom-end]:before:right-3","data-[placement=left]:before:-right-[calc(theme(spacing.5)/4_-_2px)]","data-[placement=left]:before:top-1/2","data-[placement=left]:before:-translate-y-1/2","data-[placement=left-start]:before:-right-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=left-start]:before:top-1/4","data-[placement=left-end]:before:-right-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=left-end]:before:bottom-1/4","data-[placement=right]:before:-left-[calc(theme(spacing.5)/4_-_2px)]","data-[placement=right]:before:top-1/2","data-[placement=right]:before:-translate-y-1/2","data-[placement=right-start]:before:-left-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=right-start]:before:top-1/4","data-[placement=right-end]:before:-left-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=right-end]:before:bottom-1/4",...o.Dh],content:["z-10","px-2.5","py-1","w-full","inline-flex","flex-col","items-center","justify-center","box-border","subpixel-antialiased","outline-solid outline-transparent","box-border"],trigger:["z-10"],backdrop:["hidden"],arrow:[]},variants:{size:{sm:{content:"text-tiny"},md:{content:"text-small"},lg:{content:"text-medium"}},color:{default:{base:"before:bg-content1 before:shadow-small",content:"bg-content1"},foreground:{base:"before:bg-foreground",content:n.J.solid.foreground},primary:{base:"before:bg-primary",content:n.J.solid.primary},secondary:{base:"before:bg-secondary",content:n.J.solid.secondary},success:{base:"before:bg-success",content:n.J.solid.success},warning:{base:"before:bg-warning",content:n.J.solid.warning},danger:{base:"before:bg-danger",content:n.J.solid.danger}},radius:{none:{content:"rounded-none"},sm:{content:"rounded-small"},md:{content:"rounded-medium"},lg:{content:"rounded-large"},full:{content:"rounded-full"}},shadow:{none:{content:"shadow-none"},sm:{content:"shadow-small"},md:{content:"shadow-medium"},lg:{content:"shadow-large"}},backdrop:{transparent:{},opaque:{backdrop:"bg-overlay/50 backdrop-opacity-disabled"},blur:{backdrop:"backdrop-blur-sm backdrop-saturate-150 bg-overlay/30"}},triggerScaleOnOpen:{true:{trigger:["aria-expanded:scale-[0.97]","aria-expanded:opacity-70","subpixel-antialiased"]},false:{}},disableAnimation:{true:{base:"animate-none"}},isTriggerDisabled:{true:{trigger:"opacity-disabled pointer-events-none"},false:{}}},defaultVariants:{color:"default",radius:"lg",size:"md",shadow:"md",backdrop:"transparent",triggerScaleOnOpen:!0},compoundVariants:[{backdrop:["opaque","blur"],class:{backdrop:"block w-full h-full fixed inset-0 -z-30"}}]})},12315:function(e,t,r){r.d(t,{w:function(){return n}});var n=(0,r(26544).tv)({base:[],variants:{orientation:{vertical:["overflow-y-auto","data-[top-scroll=true]:[mask-image:linear-gradient(0deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[bottom-scroll=true]:[mask-image:linear-gradient(180deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[top-bottom-scroll=true]:[mask-image:linear-gradient(#000,#000,transparent_0,#000_var(--scroll-shadow-size),#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]"],horizontal:["overflow-x-auto","data-[left-scroll=true]:[mask-image:linear-gradient(270deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[right-scroll=true]:[mask-image:linear-gradient(90deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[left-right-scroll=true]:[mask-image:linear-gradient(to_right,#000,#000,transparent_0,#000_var(--scroll-shadow-size),#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]"]},hideScrollBar:{true:"scrollbar-hide",false:""}},defaultVariants:{orientation:"vertical",hideScrollBar:!1}})},74136:function(e,t,r){r.d(t,{l:function(){return C}});var n=r(2265),l=r(7157);let o={},i=0,a=!1,s=null,u=null;var c=r(73717),d=r(5092),f=r(7659),h=r(38321),p=r(40582),g=r(94382),v=r(8500),m=r(41090),b=r(82319),y=r(25889),x=r(91299),w=r(30887),E=r(34491),S=r(14095),k=r(29791),P=r(11718);function C(e){var t,r;let C=(0,m.w)(),[K,T]=(0,b.oe)(e,y.v.variantKeys),{ref:N,as:M,isOpen:D,content:R,children:I,defaultOpen:L,onOpenChange:A,isDisabled:F,trigger:B,shouldFlip:z=!0,containerPadding:O=12,placement:_="top",delay:j=0,closeDelay:W=500,showArrow:H=!1,offset:V=7,crossOffset:U=0,isDismissable:G,shouldCloseOnBlur:Y=!0,portalContainer:$,isKeyboardDismissDisabled:q=!1,updatePositionDeps:X=[],shouldCloseOnInteractOutside:J,className:Z,onClose:Q,motionProps:ee,classNames:et,...er}=K,en=null!=(r=null!=(t=null==e?void 0:e.disableAnimation)?t:null==C?void 0:C.disableAnimation)&&r,el=function(e={}){let{delay:t=1500,closeDelay:r=500}=e,{isOpen:c,open:d,close:f}=(0,l.d)(e),h=(0,n.useMemo)(()=>`${++i}`,[]),p=(0,n.useRef)(null),g=(0,n.useRef)(f),v=()=>{o[h]=y},m=()=>{for(let e in o)e!==h&&(o[e](!0),delete o[e])},b=()=>{p.current&&clearTimeout(p.current),p.current=null,m(),v(),a=!0,d(),s&&(clearTimeout(s),s=null),u&&(clearTimeout(u),u=null)},y=e=>{e||r<=0?(p.current&&clearTimeout(p.current),p.current=null,g.current()):p.current||(p.current=setTimeout(()=>{p.current=null,g.current()},r)),s&&(clearTimeout(s),s=null),a&&(u&&clearTimeout(u),u=setTimeout(()=>{delete o[h],u=null,a=!1},Math.max(500,r)))},x=()=>{m(),v(),c||s||a?c||b():s=setTimeout(()=>{s=null,a=!0,b()},t)};return(0,n.useEffect)(()=>{g.current=f},[f]),(0,n.useEffect)(()=>()=>{p.current&&clearTimeout(p.current),o[h]&&delete o[h]},[h]),{isOpen:c,open:e=>{e||!(t>0)||p.current?b():x()},close:y}}({delay:j,closeDelay:W,isDisabled:F,defaultOpen:L,isOpen:D,onOpenChange:e=>{null==A||A(e),e||null==Q||Q()}}),eo=(0,n.useRef)(null),ei=(0,n.useRef)(null),ea=(0,n.useId)(),es=el.isOpen&&!F;(0,n.useImperativeHandle)(N,()=>(0,E.fg)(ei));let{triggerProps:eu,tooltipProps:ec}=function(e,t,r){let{isDisabled:l,trigger:o}=e,i=(0,h.Me)(),a=(0,n.useRef)(!1),s=(0,n.useRef)(!1),u=()=>{(a.current||s.current)&&t.open(s.current)},g=e=>{a.current||s.current||t.close(e)};(0,n.useEffect)(()=>{let e=e=>{r&&r.current&&"Escape"===e.key&&(e.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",e,!0),()=>{document.removeEventListener("keydown",e,!0)}},[r,t]);let v=()=>{s.current=!1,a.current=!1,g(!0)},{hoverProps:m}=(0,d.X)({isDisabled:l,onHoverStart:()=>{"focus"!==o&&("pointer"===(0,c.Jz)()?a.current=!0:a.current=!1,u())},onHoverEnd:()=>{"focus"!==o&&(s.current=!1,a.current=!1,g())}}),{focusableProps:b}=(0,f.kc)({isDisabled:l,onFocus:()=>{(0,c.E)()&&(s.current=!0,u())},onBlur:()=>{s.current=!1,a.current=!1,g(!0)}},r);return{triggerProps:{"aria-describedby":t.isOpen?i:void 0,...(0,p.d)(b,m,{onPointerDown:v,onKeyDown:v}),tabIndex:void 0},tooltipProps:{id:i}}}({isDisabled:F,trigger:B},el,eo),{tooltipProps:ed}=function(e,t){let r=(0,g.z)(e,{labelable:!0}),{hoverProps:n}=(0,d.X)({onHoverStart:()=>null==t?void 0:t.open(!0),onHoverEnd:()=>null==t?void 0:t.close()});return{tooltipProps:(0,p.d)(r,n,{role:"tooltip"})}}({isOpen:es,...(0,x.dG)(K,ec)},el),{overlayProps:ef,placement:eh,updatePosition:ep}
1=(0,v.t)({isOpen:es,targetRef:eo,placement:(0,S.Yx)(_),overlayRef:ei,offset:H?V+3:V,crossOffset:U,shouldFlip:z,containerPadding:O});(0,k.G)(()=>{X.length&&ep()},X);let{overlayProps:eg}=(0,P.S)({isOpen:es,onClose:el.close,isDismissable:G,shouldCloseOnBlur:Y,isKeyboardDismissDisabled:q,shouldCloseOnInteractOutside:J},ei),ev=(0,n.useMemo)(()=>{var t,r,n;return(0,y.v)({...T,disableAnimation:en,radius:null!=(t=null==e?void 0:e.radius)?t:"md",size:null!=(r=null==e?void 0:e.size)?r:"md",shadow:null!=(n=null==e?void 0:e.shadow)?n:"sm"})},[(0,x.Xx)(T),en,null==e?void 0:e.radius,null==e?void 0:e.size,null==e?void 0:e.shadow]),em=(0,n.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...(0,x.dG)(eu,e),ref:(0,w.l)(t,eo),"aria-describedby":es?ea:void 0}},[eu,es,ea,el]),eb=(0,n.useCallback)(()=>({ref:ei,"data-slot":"base","data-open":(0,x.PB)(es),"data-arrow":(0,x.PB)(H),"data-disabled":(0,x.PB)(F),"data-placement":(0,S.sK)(eh||"top",_),...(0,x.dG)(ed,eg,er),style:(0,x.dG)(ef.style,er.style,K.style),className:ev.base({class:null==et?void 0:et.base}),id:ea}),[ev,es,H,F,eh,_,ed,eg,er,ef,K,ea]),ey=(0,n.useCallback)(()=>({"data-slot":"content","data-open":(0,x.PB)(es),"data-arrow":(0,x.PB)(H),"data-disabled":(0,x.PB)(F),"data-placement":(0,S.sK)(eh||"top",_),className:ev.content({class:(0,x.Wy)(null==et?void 0:et.content,Z)})}),[ev,es,H,F,eh,_,et]);return{Component:M||"div",content:R,children:I,isOpen:es,triggerRef:eo,showArrow:H,portalContainer:$,placement:_,disableAnimation:en,isDisabled:F,motionProps:ee,getTooltipContentProps:ey,getTriggerProps:em,getTooltipProps:eb}}},68027:function(e,t,r){r.d(t,{e:function(){return v}});var n=r(74136),l=r(82319),o=r(68029),i=r(89306),a=r(30065),s=r(39785),u=r(21965),c=r(91299),d=r(2265),f=r(14095),h=r(57437),p=()=>Promise.all([r.e(170),r.e(49)]).then(r.bind(r,43171)).then(e=>e.default),g=(0,l.Gp)((e,t)=>{var r;let l;let{Component:g,children:v,content:m,isOpen:b,portalContainer:y,placement:x,disableAnimation:w,motionProps:E,getTriggerProps:S,getTooltipProps:k,getTooltipContentProps:P}=(0,n.l)({...e,ref:t});try{let e=d.Children.count(v);if(1!==e)throw Error();if((0,d.isValidElement)(v)){let e=null!=(r=v.props.ref)?r:v.ref;l=(0,d.cloneElement)(v,S(v.props,e))}else l=(0,h.jsx)("p",{...S(),children:v})}catch(e){l=(0,h.jsx)("span",{}),(0,c.ZK)("Tooltip must have only one child node. Please, check your code.")}let{ref:C,id:K,style:T,...N}=k(),M=(0,h.jsx)("div",{ref:C,id:K,style:T,children:(0,h.jsx)(i.m.div,{animate:"enter",exit:"exit",initial:"exit",variants:u.y7.scaleSpring,...(0,c.dG)(E,N),style:{...(0,f.VS)(x)},children:(0,h.jsx)(g,{...P(),children:m})},"".concat(K,"-tooltip-inner"))},"".concat(K,"-tooltip-content"));return(0,h.jsxs)(h.Fragment,{children:[l,w?b&&(0,h.jsx)(o.Xj,{portalContainer:y,children:(0,h.jsx)("div",{ref:C,id:K,style:T,...N,children:(0,h.jsx)(g,{...P(),children:m})})}):(0,h.jsx)(a.X,{features:p,children:(0,h.jsx)(s.M,{children:b&&(0,h.jsx)(o.Xj,{portalContainer:y,children:M})})})]})});g.displayName="HeroUI.Tooltip";var v=g},11718:function(e,t,r){r.d(t,{S:function(){return c}});var n=r(64578),l=r(27078),o=r(28586),i=r(2265);function a(e,t){if(e.button>0)return!1;if(e.target){let t=e.target.ownerDocument;if(!t||!t.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return!!t.current&&!e.composedPath().includes(t.current)}var s=r(9530),u=[];function c(e,t){let{disableOutsideEvents:r=!0,isDismissable:c=!1,isKeyboardDismissDisabled:d=!1,isOpen:f,onClose:h,shouldCloseOnBlur:p,shouldCloseOnInteractOutside:g}=e;(0,i.useEffect)(()=>{if(f&&!u.includes(t))return u.push(t),()=>{let e=u.indexOf(t);e>=0&&u.splice(e,1)}},[f,t]);let v=()=>{u[u.length-1]===t&&h&&h()};!function(e){let{ref:t,onInteractOutside:r,isDisabled:n,onInteractOutsideStart:s}=e,u=(0,i.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),c=(0,l.i)(e=>{r&&a(e,t)&&(s&&s(e),u.current.isPointerDown=!0)}),d=(0,l.i)(e=>{r&&r(e)});(0,i.useEffect)(()=>{let e=u.current;if(n)return;let r=t.current,l=(0,o.r3)(r);if("undefined"!=typeof PointerEvent){let r=r=>{e.isPointerDown&&a(r,t)&&d(r),e.isPointerDown=!1};return l.addEventListener("pointerdown",c,!0),l.addEventListener("click",r,!0),()=>{l.removeEventListener("pointerdown",c,!0),l.removeEventListener("click",r,!0)}}},[t,n,c,d])}({isDisabled:!(c&&f),onInteractOutside:c&&f?e=>{(!g||g(e.target))&&(u[u.length-1]===t&&r&&(e.stopPropagation(),e.preventDefault()),v())}:void 0,onInteractOutsideStart:e=>{(!g||g(e.target))&&(u[u.length-1]===t&&r&&(e.stopPropagation(),e.preventDefault()),"pressEnd"!==function(e){let t=e.current;if(!t)return"unknown";let r=(t.getAttribute("role")||"").toLowerCase(),n=t.getAttribute("aria-modal");return("dialog"===r||"alertdialog"===r)&&(null===n||"true"===n.toLowerCase())?"pressEnd":["listbox","menu","tree","grid","combobox"].includes(r)?"pressStart":"unknown"}(t)&&v())},ref:t});let{focusWithinProps:m}=(0,s.L)({isDisabled:!p,onBlurWithin:e=>{!(!e.relatedTarget||(0,n.cW)(e.relatedTarget))&&(!g||g(e.relatedTarget))&&v()}});return{overlayProps:{onKeyDown:e=>{"Escape"!==e.key||d||e.nativeEvent.isComposing||(e.stopPropagation(),e.preventDefault(),v())},...m},underlayProps:{onPointerDown:e=>{e.target===e.currentTarget&&e.preventDefault()}}}}},68086:function(e,t,r){r.d(t,{W:function(){return o}});var n=r(2265),l=r(29791);function o(e,t=[]){let r=(0,n.useRef)(e);return(0,l.G)(()=>{r.current=e}),(0,n.useCallback)((...e)=>{var t;return null==(t=r.current)?void 0:t.call(r,...e)},t)}},44781:function(e,t,r){r.d(t,{y$:function(){return o}});var n=r(2265),l="undefined"!=typeof document?n.useLayoutEffect:()=>{};function o(e,t,r){let o=(0,n.useRef)(t),i=function(e){let t=(0,n.useRef)(null);return l(()=>{t.current=e},[e]),(0,n.useCallback)((...e)=>{let r=t.current;return null==r?void 0:r(...e)},[])}(()=>{r&&r(o.current)});(0,n.useEffect)(()=>{var t;let r=null==(t=null==e?void 0:e.current)?void 0:t.form;return null==r||r.addEventListener("reset",i),()=>{null==r||r.removeEventListener("reset",i)}},[e,i])}},19098:function(e,t,r){r.d(t,{d:function(){return u}});var n=r(2265);let l={prefix:String(Math.round(1e10*Math.random())),current:0},o=(n.createContext(l),n.createContext(!1));function i(){return!1}function a(){return!0}function s(e){return()=>{}}function u(){return!("function"==typeof n.useSyncExternalStore?n.useSyncExternalStore(s,i,a):(0,n.useContext)(o))&&"undefined"!=typeof window&&window.screen.width<=700}"undefined"!=typeof window&&window.document&&window.document.createElement,new WeakMap,n.useId},10965:function(e,t,r){let n;r.d(t,{J:function(){return i}});let l=Symbol.for("react-aria.i18n.locale"),o=Symbol.for("react-aria.i18n.strings");class i{constructor(e,t="en-US"){this.strings=Object.fromEntries(Object.entries(e).filter(([,e])=>e)),this.defaultLocale=t}getStringForLocale(e,t){let r=this.getStringsForLocale(t)[e];if(!r)throw Error(`Could not find intl message ${e} in ${t} locale`);return r}getStringsForLocale(e){let t=this.strings[e];return t||(t=function(e,t,r="en-US"){if(t[e])return t[e];let n=Intl.Locale?new Intl.Locale(e).language:e.split("-")[0];if(t[n])return t[n];for(let e in t)if(e.startsWith(n+"-"))return t[e];return t[r]}(e,this.strings,this.defaultLocale),this.strings[e]=t),t}static getGlobalDictionaryForPackage(e){if("undefined"==typeof window)return null;let t=window[l];if(void 0===n){let e=window[o];if(!e)return null;for(let r in n={},e)n[r]=new i({[t]:e[r]},t)}let r=n?.[e];if(!r)throw Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}}},72512:function(e,t,r){r.d(t,{E:function(){return o}});let n=new Map,l=new Map;class o{constructor(e,t){this.locale=e,this.strings=t}format(e,t){let r=this.strings.getStringForLocale(e,this.locale);return"function"==typeof r?r(t,this):r}plural(e,t,r="cardinal"){let l=t["="+e];if(l)return"function"==typeof l?l():l;let o=this.locale+":"+r,i=n.get(o);
1return i||(i=new Intl.PluralRules(this.locale,{type:r}),n.set(o,i)),"function"==typeof(l=t[i.select(e)]||t.other)?l():l}number(e){let t=l.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),l.set(this.locale,t)),t.format(e)}select(e,t){let r=e[t]||e.other;return"function"==typeof r?r():r}}},39180:function(e,t,r){r.d(t,{R:function(){return u}});var n=r(38321),l=r(94382),o=r(81780),i=r(2265),a=r(8351);r(54887);let s=i.createContext(null);function u(e,t){let r,u,{role:c="dialog"}=e,d=(0,n.mp)();d=e["aria-label"]?void 0:d;let f=(0,i.useRef)(!1);return(0,i.useEffect)(()=>{if(t.current&&!t.current.contains(document.activeElement)){(0,o.e)(t.current);let e=setTimeout(()=>{(document.activeElement===t.current||document.activeElement===document.body)&&(f.current=!0,t.current&&(t.current.blur(),(0,o.e)(t.current)),f.current=!1)},500);return()=>{clearTimeout(e)}}},[t]),r=(0,i.useContext)(s),u=r?.setContain,(0,a.b)(()=>{u?.(!0)},[u]),{dialogProps:{...(0,l.z)(e,{labelable:!0}),role:c,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||d,onBlur:e=>{f.current&&e.stopPropagation()}},titleProps:{id:d}}}},64578:function(e,t,r){r.d(t,{MT:function(){return g},cW:function(){return x}});var n=r(8351),l=r(44798),o=r(28586),i=r(79279),a=r(5934),s=r(88047),u=r(73717),c=r(81780),d=r(2265);let f=d.createContext(null),h="react-aria-focus-scope-restore",p=null;function g(e){let t,r,{children:a,contain:s,restoreFocus:c,autoFocus:g}=e,x=(0,d.useRef)(null),T=(0,d.useRef)(null),D=(0,d.useRef)([]),{parentNode:R}=(0,d.useContext)(f)||{},I=(0,d.useMemo)(()=>new N({scopeRef:D}),[D]);(0,n.b)(()=>{let e=R||M.root;if(M.getTreeNode(e.scopeRef)&&p&&!w(p,e.scopeRef)){let t=M.getTreeNode(p);t&&(e=t)}e.addChild(I),M.addNode(I)},[I,R]),(0,n.b)(()=>{let e=M.getTreeNode(D);e&&(e.contain=!!s)},[s]),(0,n.b)(()=>{var e;let t=null===(e=x.current)||void 0===e?void 0:e.nextSibling,r=[],n=e=>e.stopPropagation();for(;t&&t!==T.current;)r.push(t),t.addEventListener(h,n),t=t.nextSibling;return D.current=r,()=>{for(let e of r)e.removeEventListener(h,n)}},[a]),(0,n.b)(()=>{if(c||s)return;let e=D.current,t=(0,o.r3)(e?e[0]:void 0),r=e=>{let t=(0,l.NI)(e);b(t,D.current)?p=D:y(t)||(p=null)};return t.addEventListener("focusin",r,!1),null==e||e.forEach(e=>e.addEventListener("focusin",r,!1)),()=>{t.removeEventListener("focusin",r,!1),null==e||e.forEach(e=>e.removeEventListener("focusin",r,!1))}},[D,c,s]),t=(0,d.useRef)(void 0),r=(0,d.useRef)(void 0),(0,n.b)(()=>{let e=D.current;if(!s){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}let n=(0,o.r3)(e?e[0]:void 0),a=e=>{if("Tab"!==e.key||e.altKey||e.ctrlKey||e.metaKey||!m(D)||e.isComposing)return;let t=(0,l.vY)(n),r=D.current;if(!r||!b(t,r))return;let o=K(v(r),{tabbable:!0},r);if(!t)return;o.currentNode=t;let i=e.shiftKey?o.previousNode():o.nextNode();i||(o.currentNode=e.shiftKey?r[r.length-1].nextElementSibling:r[0].previousElementSibling,i=e.shiftKey?o.previousNode():o.nextNode()),e.preventDefault(),i&&E(i,!0)},c=e=>{(!p||w(p,D))&&b((0,l.NI)(e),D.current)?(p=D,t.current=(0,l.NI)(e)):m(D)&&!y((0,l.NI)(e),D)?t.current?t.current.focus():p&&p.current&&k(p.current):m(D)&&(t.current=(0,l.NI)(e))},d=e=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let r=(0,u.Jz)(),o=("virtual"===r||null===r)&&(0,i.Dt)()&&(0,i.i7)(),a=(0,l.vY)(n);if(!o&&a&&m(D)&&!y(a,D)){p=D;let r=(0,l.NI)(e);if(r&&r.isConnected){var s;t.current=r,null===(s=t.current)||void 0===s||s.focus()}else p.current&&k(p.current)}})};return n.addEventListener("keydown",a,!1),n.addEventListener("focusin",c,!1),null==e||e.forEach(e=>e.addEventListener("focusin",c,!1)),null==e||e.forEach(e=>e.addEventListener("focusout",d,!1)),()=>{n.removeEventListener("keydown",a,!1),n.removeEventListener("focusin",c,!1),null==e||e.forEach(e=>e.removeEventListener("focusin",c,!1)),null==e||e.forEach(e=>e.removeEventListener("focusout",d,!1))}},[D,s]),(0,n.b)(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r]),function(e,t,r){let i=(0,d.useRef)("undefined"!=typeof document?(0,l.vY)((0,o.r3)(e.current?e.current[0]:void 0)):null);(0,n.b)(()=>{let n=e.current,i=(0,o.r3)(n?n[0]:void 0);if(!t||r)return;let a=()=>{(!p||w(p,e))&&b((0,l.vY)(i),e.current)&&(p=e)};
1return i.addEventListener("focusin",a,!1),null==n||n.forEach(e=>e.addEventListener("focusin",a,!1)),()=>{i.removeEventListener("focusin",a,!1),null==n||n.forEach(e=>e.removeEventListener("focusin",a,!1))}},[e,r]),(0,n.b)(()=>{let n=(0,o.r3)(e.current?e.current[0]:void 0);if(!t)return;let l=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||!m(e)||t.isComposing)return;let r=n.activeElement;if(!y(r,e)||!P(e))return;let l=M.getTreeNode(e);if(!l)return;let o=l.nodeToRestore,i=K(n.body,{tabbable:!0});i.currentNode=r;let a=t.shiftKey?i.previousNode():i.nextNode();if(o&&o.isConnected&&o!==n.body||(o=void 0,l.nodeToRestore=void 0),(!a||!y(a,e))&&o){i.currentNode=o;do a=t.shiftKey?i.previousNode():i.nextNode();while(y(a,e));(t.preventDefault(),t.stopPropagation(),a)?E(a,!0):y(o)?E(o,!0):r.blur()}};return r||n.addEventListener("keydown",l,!0),()=>{r||n.removeEventListener("keydown",l,!0)}},[e,t,r]),(0,n.b)(()=>{var r;let n=(0,o.r3)(e.current?e.current[0]:void 0);if(!t)return;let a=M.getTreeNode(e);if(a)return a.nodeToRestore=null!==(r=i.current)&&void 0!==r?r:void 0,()=>{let r=M.getTreeNode(e);if(!r)return;let o=r.nodeToRestore,i=(0,l.vY)(n);if(t&&o&&(i&&y(i,e)||i===n.body&&P(e))){let t=M.clone();requestAnimationFrame(()=>{if(n.activeElement===n.body){let r=t.getTreeNode(e);for(;r;){if(r.nodeToRestore&&r.nodeToRestore.isConnected){C(r.nodeToRestore);return}r=r.parent}for(r=t.getTreeNode(e);r;){if(r.scopeRef&&r.scopeRef.current&&M.getTreeNode(r.scopeRef)){C(S(r.scopeRef.current,!0));return}r=r.parent}}})}}},[e,t])}(D,c,s),function(e,t){let r=d.useRef(t);(0,d.useEffect)(()=>{if(r.current){p=e;let t=(0,o.r3)(e.current?e.current[0]:void 0);!b((0,l.vY)(t),p.current)&&e.current&&k(e.current)}r.current=!1},[e])}(D,g),(0,d.useEffect)(()=>{let e=(0,l.vY)((0,o.r3)(D.current?D.current[0]:void 0)),t=null;if(b(e,D.current)){for(let r of M.traverse())r.scopeRef&&b(e,r.scopeRef.current)&&(t=r);t===M.getTreeNode(D)&&(p=t.scopeRef)}},[D]),(0,n.b)(()=>()=>{var e,t,r;let n=null!==(r=null===(t=M.getTreeNode(D))||void 0===t?void 0:null===(e=t.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==r?r:null;(D===p||w(D,p))&&(!n||M.getTreeNode(n))&&(p=n),M.removeTreeNode(D)},[D]);let L=(0,d.useMemo)(()=>({focusNext(e={}){var t;let r=D.current,{from:n,tabbable:i,wrap:a,accept:s}=e,u=n||(0,l.vY)((0,o.r3)(null!==(t=r[0])&&void 0!==t?t:void 0)),c=r[0].previousElementSibling,d=K(v(r),{tabbable:i,accept:s},r);d.currentNode=b(u,r)?u:c;let f=d.nextNode();return!f&&a&&(d.currentNode=c,f=d.nextNode()),f&&E(f,!0),f},focusPrevious(e={}){var t;let r=D.current,{from:n,tabbable:i,wrap:a,accept:s}=e,u=n||(0,l.vY)((0,o.r3)(null!==(t=r[0])&&void 0!==t?t:void 0)),c=r[r.length-1].nextElementSibling,d=K(v(r),{tabbable:i,accept:s},r);d.currentNode=b(u,r)?u:c;let f=d.previousNode();return!f&&a&&(d.currentNode=c,f=d.previousNode()),f&&E(f,!0),f},focusFirst(e={}){let t=D.current,{tabbable:r,accept:n}=e,l=K(v(t),{tabbable:r,accept:n},t);l.currentNode=t[0].previousElementSibling;let o=l.nextNode();return o&&E(o,!0),o},focusLast(e={}){let t=D.current,{tabbable:r,accept:n}=e,l=K(v(t),{tabbable:r,accept:n},t);l.currentNode=t[t.length-1].nextElementSibling;let o=l.previousNode();return o&&E(o,!0),o}}),[]),A=(0,d.useMemo)(()=>({focusManager:L,parentNode:I}),[I,L]);return d.createElement(f.Provider,{value:A},d.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:x}),a,d.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:T}))}function v(e){return e[0].parentElement}function m(e){let t=M.getTreeNode(p);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function b(e,t){return!!e&&!!t&&t.some(t=>t.contains(e))}function y(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of M.traverse(M.getTreeNode(t)))if(r&&b(e,r.current))return!0;return!1}function x(e){return y(e,p)}function w(e,t){var r;let n=null===(r=M.getTreeNode(t))||void 0===r?void 0:r.parent;for(;n;){if(n.scopeRef===e)return!0;n=n.parent}return!1}function E(e,t=!1){if(null==e||t){if(null!=e)try{e.focus()}catch{}}else try{(0,c.e)(e)}catch{}}function S(e,t=!0){let r=e[0].previousElementSibling,n=v(e),l=K(n,{tabbable:t},e);l.currentNode=r;let o=l.nextNode();return t&&!o&&((l=K(n=v(e),{tabbable:!1},e)).currentNode=r,o=l.nextNode()),o}function k(e,t=!0){E(S(e,t))}function P(e){let t=M.getTreeNode(p);for(;t&&t.scopeRef!==e;
1){if(t.nodeToRestore)return!1;t=t.parent}return(null==t?void 0:t.scopeRef)===e}function C(e){e.dispatchEvent(new CustomEvent(h,{bubbles:!0,cancelable:!0}))&&E(e)}function K(e,t,r){let n=(null==t?void 0:t.tabbable)?a.W:a.E,l=(null==e?void 0:e.nodeType)===Node.ELEMENT_NODE?e:null,i=(0,o.r3)(l),u=(0,s.A)(i,e||i,NodeFilter.SHOW_ELEMENT,{acceptNode(e){var l;return(null==t?void 0:null===(l=t.from)||void 0===l?void 0:l.contains(e))||(null==t?void 0:t.tabbable)&&"INPUT"===e.tagName&&"radio"===e.getAttribute("type")&&(!function(e){if(e.checked)return!0;let t=[];if(e.form){var r,n;let l=null===(n=e.form)||void 0===n?void 0:null===(r=n.elements)||void 0===r?void 0:r.namedItem(e.name);t=[...null!=l?l:[]]}else t=[...(0,o.r3)(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)].filter(e=>!e.form);return!!t&&!t.some(e=>e.checked)}(e)||"INPUT"===u.currentNode.tagName&&"radio"===u.currentNode.type&&u.currentNode.name===e.name)?NodeFilter.FILTER_REJECT:n(e)&&(!r||b(e,r))&&(!(null==t?void 0:t.accept)||t.accept(e))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return(null==t?void 0:t.from)&&(u.currentNode=t.from),u}class T{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,r){let n=this.fastMap.get(null!=t?t:null);if(!n)return;let l=new N({scopeRef:e});n.addChild(l),l.parent=n,this.fastMap.set(e,l),r&&(l.nodeToRestore=r)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(null===e)return;let t=this.fastMap.get(e);if(!t)return;let r=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&b(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let n=t.children;r&&(r.removeChild(t),n.size>0&&n.forEach(e=>r&&r.addChild(e))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(null!=e.scopeRef&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){var e,t;let r=new T;for(let n of this.traverse())r.addTreeNode(n.scopeRef,null!==(t=null===(e=n.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==t?t:null,n.nodeToRestore);return r}constructor(){this.fastMap=new Map,this.root=new N({scopeRef:null}),this.fastMap.set(null,this.root)}}class N{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 M=new T},69597:function(e,t,r){r.d(t,{E:function(){return E},Jz:function(){return S},_w:function(){return k},mG:function(){return C}});var n=r(88331),l=r(79279),o=r(83077),i=r(28586),a=r(2265);let s=null,u=new Set,c=new Map,d=!1,f=!1,h={Tab:!0,Escape:!0};function p(e,t){for(let r of u)r(e,t)}function g(e){d=!0,e.metaKey||!(0,l.V5)()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key||(s="keyboard",p("keyboard",e))}
1function v(e){s="pointer",("mousedown"===e.type||"pointerdown"===e.type)&&(d=!0,p("pointer",e))}function m(e){(0,o.Z)(e)&&(d=!0,s="virtual")}function b(e){e.target!==window&&e.target!==document&&!n.uR&&e.isTrusted&&(d||f||(s="virtual",p("virtual",e)),d=!1,f=!1)}function y(){n.uR||(d=!1,f=!0)}function x(e){if("undefined"==typeof window||"undefined"==typeof document||c.get((0,i.kR)(e)))return;let t=(0,i.kR)(e),r=(0,i.r3)(e),n=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){d=!0,n.apply(this,arguments)},r.addEventListener("keydown",g,!0),r.addEventListener("keyup",g,!0),r.addEventListener("click",m,!0),t.addEventListener("focus",b,!0),t.addEventListener("blur",y,!1),"undefined"!=typeof PointerEvent&&(r.addEventListener("pointerdown",v,!0),r.addEventListener("pointermove",v,!0),r.addEventListener("pointerup",v,!0)),t.addEventListener("beforeunload",()=>{w(e)},{once:!0}),c.set(t,{focus:n})}let w=(e,t)=>{let r=(0,i.kR)(e),n=(0,i.r3)(e);t&&n.removeEventListener("DOMContentLoaded",t),c.has(r)&&(r.HTMLElement.prototype.focus=c.get(r).focus,n.removeEventListener("keydown",g,!0),n.removeEventListener("keyup",g,!0),n.removeEventListener("click",m,!0),r.removeEventListener("focus",b,!0),r.removeEventListener("blur",y,!1),"undefined"!=typeof PointerEvent&&(n.removeEventListener("pointerdown",v,!0),n.removeEventListener("pointermove",v,!0),n.removeEventListener("pointerup",v,!0)),c.delete(r))};function E(){return"pointer"!==s}function S(){return s}function k(e){s=e,p(e,null)}"undefined"!=typeof document&&function(e){let t;let r=(0,i.r3)(void 0);"loading"!==r.readyState?x(void 0):(t=()=>{x(void 0)},r.addEventListener("DOMContentLoaded",t)),()=>w(e,t)}();let P=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function C(e,t,r){x(),(0,a.useEffect)(()=>{let t=(t,n)=>{(function(e,t,r){let n=(0,i.r3)(null==r?void 0:r.target),l="undefined"!=typeof window?(0,i.kR)(null==r?void 0:r.target).HTMLInputElement:HTMLInputElement,o="undefined"!=typeof window?(0,i.kR)(null==r?void 0:r.target).HTMLTextAreaElement:HTMLTextAreaElement,a="undefined"!=typeof window?(0,i.kR)(null==r?void 0:r.target).HTMLElement:HTMLElement,s="undefined"!=typeof window?(0,i.kR)(null==r?void 0:r.target).KeyboardEvent:KeyboardEvent;return!((e=e||n.activeElement instanceof l&&!P.has(n.activeElement.type)||n.activeElement instanceof o||n.activeElement instanceof a&&n.activeElement.isContentEditable)&&"keyboard"===t&&r instanceof s&&!h[r.key])})(!!(null==r?void 0:r.isTextInput),t,n)&&e(E())};return u.add(t),()=>{u.delete(t)}},t)}},48944:function(e,t,r){r.d(t,{O:function(){return n},x:function(){return l}});let n=new WeakMap;function l(e,t){let r=n.get(e);if(!r)throw Error("Unknown list");return`${r.id}-option-${"string"==typeof t?t.replace(/\s*/g,""):""+t}`}},58552:function(e,t,r){r.d(t,{u:function(){return u}});var n={};n={"ar-AE":{longPressMessage:`\u{627}\u{636}\u{63A}\u{637} \u{645}\u{637}\u{648}\u{644}\u{627}\u{64B} \u{623}\u{648} \u{627}\u{636}\u{63A}\u{637} \u{639}\u{644}\u{649} Alt + \u{627}\u{644}\u{633}\u{647}\u{645} \u{644}\u{623}\u{633}\u{641}\u{644} \u{644}\u{641}\u{62A}\u{62D} \u{627}\u{644}\u{642}\u{627}\u{626}\u{645}\u{629}`},"bg-BG":{longPressMessage:`\u{41D}\u{430}\u{442}\u{438}\u{441}\u{43D}\u{435}\u{442}\u{435} \u{43F}\u{440}\u{43E}\u{434}\u{44A}\u{43B}\u{436}\u{438}\u{442}\u{435}\u{43B}\u{43D}\u{43E} \u{438}\u{43B}\u{438} \u{43D}\u{430}\u{442}\u{438}\u{441}\u{43D}\u{435}\u{442}\u{435} Alt+ \u{441}\u{442}\u{440}\u{435}\u{43B}\u{43A}\u{430} \u{43D}\u{430}\u{434}\u{43E}\u{43B}\u{443}, \u{437}\u{430} \u{434}\u{430} \u{43E}\u{442}\u{432}\u{43E}\u{440}\u{438}\u{442}\u{435} \u{43C}\u{435}\u{43D}\u{44E}\u{442}\u{43E}`},"cs-CZ":{longPressMessage:`Dlouh\xfdm stiskem nebo stisknut\xedm kl\xe1ves Alt + \u{161}ipka dol\u{16F} otev\u{159}ete nab\xeddku`},"da-DK":{longPressMessage:`Langt tryk eller tryk p\xe5 Alt + pil ned for at \xe5bne menuen`},"de-DE":{longPressMessage:`Dr\xfccken Sie lange oder dr\xfccken Sie Alt + Nach-unten, um das Men\xfc zu \xf6ffnen`},"el-GR":{longPressMessage:`\u{3A0}\u{3B9}\u{3AD}\u{3C3}\u{3C4}\u{3B5} \u{3C0}\u{3B1}\u{3C1}\u{3B1}\u{3C4}\u{3B5}\u{3C4}\u{3B1}\u{3BC}\u{3AD}\u{3BD}\u{3B1} \u{3AE} \u{3C0}\u{3B1}\u{3C4}\u{3AE}\u{3C3}\u{3C4}\u{3B5} Alt + \u{3BA}\u{3AC}\u{3C4}\u{3C9} \u{3B2}\u{3AD}\u{3BB}\u{3BF}\u{3C2} \u{3B3}\u{3B9}\u{3B1} \u{3BD}\u{3B1} \u{3B1}\u{3BD}\u{3BF}\u{3AF}\u{3BE}\u{3B5}\u{3C4}\u{3B5} \u{3C4}\u{3BF} \u{3BC}\u{3B5}\u{3BD}\u{3BF}\u{3CD}`},"en-US":{longPressMessage:"Long press or press Alt + ArrowDown to open menu"},"es-ES":{longPressMessage:`Mantenga pulsado o pulse Alt + flecha abajo para abrir el men\xfa`},"et-EE":{longPressMessage:`Men\xfc\xfc avamiseks vajutage pikalt v\xf5i vajutage klahve Alt + allanool`},"fi-FI":{longPressMessage:`Avaa valikko painamalla pohjassa tai n\xe4pp\xe4inyhdistelm\xe4ll\xe4 Alt + Alanuoli`},"fr-FR":{longPressMessage:`Appuyez de mani\xe8re prolong\xe9e ou appuyez sur Alt\xa0+\xa0Fl\xe8che vers le bas pour ouvrir le menu.`},"he-IL":{longPressMessage:`\u{5DC}\u{5D7}\u{5E5} \u{5DC}\u{5D7}\u{5D9}\u{5E6}\u{5D4} \u{5D0}\u{5E8}\u{5D5}\u{5DB}\u{5D4} \u{5D0}\u{5D5} \u{5D4}\u{5E7}\u{5E9} Alt + ArrowDown \u{5DB}\u{5D3}\u{5D9} \u{5DC}\u{5E4}\u{5EA}\u{5D5}\u{5D7} \u{5D0}\u{5EA} \u{5D4}\u{5EA}\u{5E4}\u{5E8}\u{5D9}\u{5D8}`},"hr-HR":{longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"},"hu-HU":{longPressMessage:`Nyomja meg hosszan, vagy nyomja meg az Alt + lefele ny\xedl gombot a men\xfc megnyit\xe1s\xe1hoz`},"it-IT":{longPressMessage:`Premere a lungo o premere Alt + Freccia gi\xf9 per aprire il menu`},"ja-JP":{longPressMessage:`\u{9577}\u{62BC}\u{3057}\u{307E}\u{305F}\u{306F} Alt+\u{4E0B}\u{77E2}\u{5370}\u{30AD}\u{30FC}\u{3067}\u{30E1}\u{30CB}\u{30E5}\u{30FC}\u{3092}\u{958B}\u{304F}`},"ko-KR":{longPressMessage:`\u{AE38}\u{AC8C} \u{B204}\u{B974}\u{AC70}\u{B098} Alt + \u{C544}\u{B798}\u{CABD} \u{D654}\u{C0B4}\u{D45C}\u{B97C} \u{B20C}\u{B7EC} \u{BA54}\u{B274} \u{C5F4}\u{AE30}`},"lt-LT":{longPressMessage:`Nor\u{117}dami atidaryti meniu, nuspaud\u{119} palaikykite arba paspauskite \u{201E}Alt + ArrowDown\u{201C}.`},"lv-LV":{longPressMessage:`Lai atv\u{113}rtu izv\u{113}lni, turiet nospiestu vai nospiediet tausti\u{146}u kombin\u{101}ciju Alt + lejupv\u{113}rst\u{101} bulti\u{146}a`},"nb-NO":{longPressMessage:`Langt trykk eller trykk Alt + PilNed for \xe5 \xe5pne menyen`},"nl-NL":{longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"},"pl-PL":{longPressMessage:`Naci\u{15B}nij i przytrzymaj lub naci\u{15B}nij klawisze Alt + Strza\u{142}ka w d\xf3\u{142}, aby otworzy\u{107} menu`},"pt-BR":{longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"},"pt-PT":{longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"},"ro-RO":{longPressMessage:`Ap\u{103}sa\u{21B}i lung sau ap\u{103}sa\u{21B}i pe Alt + s\u{103}geat\u{103} \xeen jos pentru a deschide meniul`},"ru-RU":{longPressMessage:`\u{41D}\u{430}\u{436}\u{43C}\u{438}\u{442}\u{435} \u{438} \u{443}\u{434}\u{435}\u{440}\u{436}\u{438}\u{432}\u{430}\u{439}\u{442}\u{435} \u{438}\u{43B}\u{438} \u{43D}\u{430}\u{436}\u{43C}\u{438}\u{442}\u{435} Alt + \u{421}\u{442}\u{440}\u{435}\u{43B}\u{43A}\u{430} \u{432}\u{43D}\u{438}\u{437}, \u{447}\u{442}\u{43E}\u{431}\u{44B} \u{43E}\u{442}\u{43A}\u{440}\u{44B}\u{442}\u{44C} \u{43C}\u{435}\u{43D}\u{44E}`},"sk-SK":{longPressMessage:`Ponuku otvor\xedte dlh\xfdm stla\u{10D}en\xedm alebo stla\u{10D}en\xedm kl\xe1vesu Alt + kl\xe1vesu so \u{161}\xedpkou nadol`},"sl-SI":{longPressMessage:`Za odprtje menija pritisnite in dr\u{17E}ite gumb ali pritisnite Alt+pu\u{161}\u{10D}ica navzdol`},"sr-SP":{longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"},"sv-SE":{longPressMessage:`H\xe5ll nedtryckt eller tryck p\xe5 Alt + pil ned\xe5t f\xf6r att \xf6ppna menyn`}
1,"tr-TR":{longPressMessage:`Men\xfcy\xfc a\xe7mak i\xe7in uzun bas\u{131}n veya Alt + A\u{15F}a\u{11F}\u{131} Ok tu\u{15F}una bas\u{131}n`},"uk-UA":{longPressMessage:`\u{414}\u{43E}\u{432}\u{433}\u{43E} \u{430}\u{431}\u{43E} \u{437}\u{432}\u{438}\u{447}\u{430}\u{439}\u{43D}\u{43E} \u{43D}\u{430}\u{442}\u{438}\u{441}\u{43D}\u{456}\u{442}\u{44C} \u{43A}\u{43E}\u{43C}\u{431}\u{456}\u{43D}\u{430}\u{446}\u{456}\u{44E} \u{43A}\u{43B}\u{430}\u{432}\u{456}\u{448} Alt \u{456} \u{441}\u{442}\u{440}\u{456}\u{43B}\u{43A}\u{430} \u{432}\u{43D}\u{438}\u{437}, \u{449}\u{43E}\u{431} \u{432}\u{456}\u{434}\u{43A}\u{440}\u{438}\u{442}\u{438} \u{43C}\u{435}\u{43D}\u{44E}`},"zh-CN":{longPressMessage:`\u{957F}\u{6309}\u{6216}\u{6309} Alt + \u{5411}\u{4E0B}\u{65B9}\u{5411}\u{952E}\u{4EE5}\u{6253}\u{5F00}\u{83DC}\u{5355}`},"zh-TW":{longPressMessage:`\u{9577}\u{6309}\u{6216}\u{6309} Alt+\u{5411}\u{4E0B}\u{9375}\u{4EE5}\u{958B}\u{555F}\u{529F}\u{80FD}\u{8868}`}};var l=r(38321),o=r(91482),i=r(12443),a=r(12730),s=r(83500);function u(e,t,r){var u;let{type:c="menu",isDisabled:d,trigger:f="press"}=e,h=(0,l.Me)(),{triggerProps:p,overlayProps:g}=(0,s.I)({type:c},t,r),v=(0,a.q)((u=n)&&u.__esModule?u.default:u,"@react-aria/menu"),{longPressProps:m}=(0,i.T)({isDisabled:d||"longPress"!==f,accessibilityDescription:v.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}});return delete p.onPress,{menuTriggerProps:{...p,..."press"===f?{preventFocusOnPress:!0,onPressStart(e){"touch"===e.pointerType||"keyboard"===e.pointerType||d||((0,o.A)(e.target),t.open("virtual"===e.pointerType?"first":null))},onPress(e){"touch"!==e.pointerType||d||((0,o.A)(e.target),t.toggle())}}:m,id:h,onKeyDown:e=>{if(!d&&("longPress"!==f||e.altKey)&&r&&r.current)switch(e.key){case"Enter":case" ":if("longPress"===f||e.isDefaultPrevented())return;case"ArrowDown":"continuePropagation"in e||e.stopPropagation(),e.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in e||e.stopPropagation(),e.preventDefault(),t.toggle("last");break;default:"continuePropagation"in e&&e.continuePropagation()}}},menuProps:{...g,"aria-labelledby":h,autoFocus:t.focusStrategy||!0,onClose:t.close}}}},38790:function(e,t,r){r.d(t,{U:function(){return d}});var n={};n={"ar-AE":{dismiss:`\u{62A}\u{62C}\u{627}\u{647}\u{644}`},"bg-BG":{dismiss:`\u{41E}\u{442}\u{445}\u{432}\u{44A}\u{440}\u{43B}\u{44F}\u{43D}\u{435}`},"cs-CZ":{dismiss:"Odstranit"},"da-DK":{dismiss:"Luk"},"de-DE":{dismiss:`Schlie\xdfen`},"el-GR":{dismiss:`\u{391}\u{3C0}\u{3CC}\u{3C1}\u{3C1}\u{3B9}\u{3C8}\u{3B7}`},"en-US":{dismiss:"Dismiss"},"es-ES":{dismiss:"Descartar"},"et-EE":{dismiss:`L\xf5peta`},"fi-FI":{dismiss:`Hylk\xe4\xe4`},"fr-FR":{dismiss:"Rejeter"},"he-IL":{dismiss:`\u{5D4}\u{5EA}\u{5E2}\u{5DC}\u{5DD}`},"hr-HR":{dismiss:"Odbaci"},"hu-HU":{dismiss:`Elutas\xedt\xe1s`},"it-IT":{dismiss:"Ignora"},"ja-JP":{dismiss:`\u{9589}\u{3058}\u{308B}`},"ko-KR":{dismiss:`\u{BB34}\u{C2DC}`},"lt-LT":{dismiss:"Atmesti"},"lv-LV":{dismiss:`Ner\u{101}d\u{12B}t`},"nb-NO":{dismiss:"Lukk"},"nl-NL":{dismiss:"Negeren"},"pl-PL":{dismiss:"Zignoruj"},"pt-BR":{dismiss:"Descartar"},"pt-PT":{dismiss:"Dispensar"},"ro-RO":{dismiss:"Revocare"},"ru-RU":{dismiss:`\u{41F}\u{440}\u{43E}\u{43F}\u{443}\u{441}\u{442}\u{438}\u{442}\u{44C}`},"sk-SK":{dismiss:`Zru\u{161}i\u{165}`},"sl-SI":{dismiss:"Opusti"},"sr-SP":{dismiss:"Odbaci"},"sv-SE":{dismiss:"Avvisa"},"tr-TR":{dismiss:"Kapat"},"uk-UA":{dismiss:`\u{421}\u{43A}\u{430}\u{441}\u{443}\u{432}\u{430}\u{442}\u{438}`},"zh-CN":{dismiss:`\u{53D6}\u{6D88}`},"zh-TW":{dismiss:`\u{95DC}\u{9589}`}};var l=r(2265),o=r(86874),i=r(12730),a=r(40582),s=r(56428);let u={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 c(e){let{children:t,elementType:r="div",isFocusable:n,style:o,...i}=e,{visuallyHiddenProps:c}=function(e={}){let{style:t,isFocusable:r}=e,[n,o]=(0,l.useState)(!1),{focusWithinProps:i}=(0,s.L)({isDisabled:!r,onFocusWithinChange:e=>o(e)}),a=(0,l.useMemo)(()=>n?t:t?{...u,...t}:u,[n]);return{visuallyHiddenProps:{...i,style:a}}}(e);return l.createElement(r,(0,a.d)(i,c),t)}function d(e){var t;let{onDismiss:r,...a}=e,s=(0,i.q)((t=n)&&t.__esModule?t.default:t,"@react-aria/overlays"),u=(0,o.b)(a,s.format("dismiss"));return l.createElement(c,null,l.createElement("button",{...u,tabIndex:-1,onClick:()=>{r&&r()},style:{width:1,height:1}}))}},93998:function(e,t,r){r.d(t,{aV:function(){return f},Bq:function(){return h}});var n=r(54010),l=r(12765),o=r(2265);function i({children:e}){let t=(0,o.useMemo)(()=>({register:()=>{}}),[]);return o.createElement(l.O.Provider,{value:t},e)}var a=r(92200),s=r(54887),u=r(13485),c=r(8351);let d=o.createContext(null);
1function f(e){let t=(0,u.Av)(),{portalContainer:r=t?null:document.body,isExiting:l}=e,[c,f]=(0,o.useState)(!1),h=(0,o.useMemo)(()=>({contain:c,setContain:f}),[c,f]),{getContainer:p}=(0,n.i8)();if(!e.portalContainer&&p&&(r=p()),!r)return null;let g=e.children;return e.disableFocusManagement||(g=o.createElement(a.MT,{restoreFocus:!0,contain:(e.shouldContainFocus||c)&&!l},g)),g=o.createElement(d.Provider,{value:h},o.createElement(i,null,g)),s.createPortal(g,r)}function h(){let e=(0,o.useContext)(d),t=null==e?void 0:e.setContain;(0,c.b)(()=>{null==t||t(!0)},[t])}},54010:function(e,t,r){r.d(t,{i8:function(){return o}});var n=r(2265);let l=(0,n.createContext)({});function o(){var e;return null!==(e=(0,n.useContext)(l))&&void 0!==e?e:{}}},22489:function(e,t,r){r.d(t,{O:function(){return o},v:function(){return l}});var n=r(2265);let l=new WeakMap;function o(e){let{triggerRef:t,isOpen:r,onClose:o}=e;(0,n.useEffect)(()=>{if(!r||null===o)return;let e=e=>{let r=e.target;if(!t.current||r instanceof Node&&!r.contains(t.current)||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement)return;let n=o||l.get(t.current);n&&n()};return window.addEventListener("scroll",e,!0),()=>{window.removeEventListener("scroll",e,!0)}},[r,o,t])}},68029:function(e,t,r){r.d(t,{N3:function(){return c},Xj:function(){return d}});var n=r(54010),l=r(2265),o=r(54887),i=r(13485);let a=l.createContext(null);function s(e){let{children:t}=e,r=(0,l.useContext)(a),[n,o]=(0,l.useState)(0),i=(0,l.useMemo)(()=>({parent:r,modalCount:n,addModal(){o(e=>e+1),r&&r.addModal()},removeModal(){o(e=>e-1),r&&r.removeModal()}}),[r,n]);return l.createElement(a.Provider,{value:i},t)}function u(e){let t;let{modalProviderProps:r}={modalProviderProps:{"aria-hidden":!!(t=(0,l.useContext)(a))&&t.modalCount>0||void 0}};return l.createElement("div",{"data-overlay-container":!0,...e,...r})}function c(e){return l.createElement(s,null,l.createElement(u,e))}function d(e){let t=(0,i.Av)(),{portalContainer:r=t?null:document.body,...a}=e,{getContainer:s}=(0,n.i8)();if(!e.portalContainer&&s&&(r=s()),l.useEffect(()=>{if(null==r?void 0:r.closest("[data-overlay-container]"))throw Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[r]),!r)return null;let u=l.createElement(c,a);return o.createPortal(u,r)}},8500:function(e,t,r){r.d(t,{t:function(){return K}});var n=r(79279),l=r(84910);let o={top:"top",bottom:"top",left:"left",right:"left"},i={top:"bottom",bottom:"top",left:"right",right:"left"},a={top:"left",left:"top"},s={top:"height",left:"width"},u={width:"totalWidth",height:"totalHeight"},c={},d="undefined"!=typeof document?window.visualViewport:null;function f(e){var t,r,l,o,i;let a=0,s=0,u=0,c=0,f=0,h=0,p={},g=(null!==(t=null==d?void 0:d.scale)&&void 0!==t?t:1)>1;if("BODY"===e.tagName){let t=document.documentElement;u=t.clientWidth,c=t.clientHeight,a=null!==(r=null==d?void 0:d.width)&&void 0!==r?r:u,s=null!==(l=null==d?void 0:d.height)&&void 0!==l?l:c,p.top=t.scrollTop||e.scrollTop,p.left=t.scrollLeft||e.scrollLeft,d&&(f=d.offsetTop,h=d.offsetLeft)}else({width:a,height:s,top:f,left:h}=m(e)),p.top=e.scrollTop,p.left=e.scrollLeft,u=a,c=s;return(0,n.Pf)()&&("BODY"===e.tagName||"HTML"===e.tagName)&&g&&(p.top=0,p.left=0,f=null!==(o=null==d?void 0:d.pageTop)&&void 0!==o?o:0,h=null!==(i=null==d?void 0:d.pageLeft)&&void 0!==i?i:0),{width:a,height:s,totalWidth:u,totalHeight:c,scroll:p,top:f,left:h}}function h(e,t,r,n,l,i,a){var u;let c=null!==(u=l.scroll[e])&&void 0!==u?u:0,d=n[s[e]],f=n.scroll[o[e]]+i,h=d+n.scroll[o[e]]-i,p=t-c+a[e]-n[o[e]],g=t-c+r+a[e]-n[o[e]];return p<f?f-p:g>h?Math.max(h-g,f-p):0}function p(e){if(c[e])return c[e];let[t,r]=e.split(" "),n=o[t]||"right",l=a[n];o[r]||(r="center");let i=s[n],u=s[l];return c[e]={placement:t,crossPlacement:r,axis:n,crossAxis:l,size:i,crossSize:u},c[e]}function g(e,t,r,n,o,a,s,c,d,f){var h,p,g,v,m;let{placement:b,crossPlacement:y,axis:x,crossAxis:w,size:E,crossSize:S}=n,k={};k[w]=null!==(h=e[w])&&void 0!==h?h:0,"center"===y?k[w]+=((null!==(p=e[S])&&void 0!==p?p:0)-(null!==(g=r[S])&&void 0!==g?g:0))/2:y!==w&&(k[w]+=(null!==(v=e[S])&&void 0!==v?v:0)-(null!==(m=r[S])&&void 0!==m?m:0)),k[w]+=a;let P=e[w]-r[S]+d+f,C=e[w]+e[S]-d-f;if(k[w]=(0,l.uZ)(k[w],P,C),b===x){let r=c?s[E]:t[u[E]];k[i[x]]=Math.floor(r-e[x]+o)}else k[x]=Math.floor(e[x]+e[E]+o);return k}function v(e,t,r,n,l,o){var a,s,u;let{placement:c,axis:d,size:f}=o;return c===d?Math.max(0,r[d]-e[d]-(null!==(a=e.scroll[d])&&void 0!==a?a:0)+t[d]-(null!==(s=n[d])&&void 0!==s?s:0)-n[i[d]]-l):Math.max(0,e[f]+e[d]+e.scroll[d]-t[d]-r[d]-r[f]-(null!==(u=n[d])&&void 0!==u?u:0)-n[i[d]]-l)}function m(e){let{top:t,left:r,width:n,height:l}=e.getBoundingClientRect(),{scrollTop:o,scrollLeft:i,clientTop:a,clientLeft:s}=document.documentElement;return{top:t+o-a,left:r+i-s,width:n,height:l}}function b(e,t){let r,n=window.getComputedStyle(e);
1if("fixed"===n.position){let{top:t,left:n,width:l,height:o}=e.getBoundingClientRect();r={top:t,left:n,width:l,height:o}}else{r=m(e);let n=m(t),l=window.getComputedStyle(t);n.top+=(parseInt(l.borderTopWidth,10)||0)-t.scrollTop,n.left+=(parseInt(l.borderLeftWidth,10)||0)-t.scrollLeft,r.top-=n.top,r.left-=n.left}return r.top-=parseInt(n.marginTop,10)||0,r.left-=parseInt(n.marginLeft,10)||0,r}function y(e){let t=window.getComputedStyle(e);return"none"!==t.transform||/transform|perspective/.test(t.willChange)||"none"!==t.filter||"paint"===t.contain||"backdropFilter"in t&&"none"!==t.backdropFilter||"WebkitBackdropFilter"in t&&"none"!==t.WebkitBackdropFilter}var x=r(22489),w=r(2265),E=r(8351),S=r(27078);function k(e){let{ref:t,box:r,onResize:n}=e,l=(0,S.i)(n);(0,w.useEffect)(()=>{let e=t?.current;if(e){if(!(void 0!==window.ResizeObserver))return window.addEventListener("resize",l,!1),()=>{window.removeEventListener("resize",l,!1)};{let t=new window.ResizeObserver(e=>{e.length&&l()});return t.observe(e,{box:r}),()=>{e&&t.unobserve(e)}}}},[t,r])}var P=r(13901);let C="undefined"!=typeof document?window.visualViewport:null;function K(e){var t,r,n;let{direction:a}=(0,P.j)(),{arrowSize:s,targetRef:c,overlayRef:d,arrowRef:S,scrollRef:K=d,placement:T="bottom",containerPadding:N=12,shouldFlip:M=!0,boundaryElement:D="undefined"!=typeof document?document.body:null,offset:R=0,crossOffset:I=0,shouldUpdatePosition:L=!0,isOpen:A=!0,onClose:F,maxHeight:B,arrowBoundaryOffset:z=0}=e,[O,_]=(0,w.useState)(null),j=[L,T,d.current,c.current,null==S?void 0:S.current,K.current,N,M,D,R,I,A,a,B,z,s],W=(0,w.useRef)(null==C?void 0:C.scale);(0,w.useEffect)(()=>{A&&(W.current=null==C?void 0:C.scale)},[A]);let H=(0,w.useCallback)(()=>{var e,t,r,n,x,w,E,k,P;if(!1===L||!A||!d.current||!c.current||!D||(null==C?void 0:C.scale)!==W.current||d.current.querySelector("[data-react-aria-incomplete]")||(null===(e=(t=d.current).getAnimations)||void 0===e?void 0:e.call(t).length)>0)return;let F=null;if(K.current&&K.current.contains(document.activeElement)){let e=null===(n=document.activeElement)||void 0===n?void 0:n.getBoundingClientRect(),t=K.current.getBoundingClientRect();(F={type:"top",offset:(null!==(x=null==e?void 0:e.top)&&void 0!==x?x:0)-t.top}).offset>t.height/2&&(F.type="bottom",F.offset=(null!==(w=null==e?void 0:e.bottom)&&void 0!==w?w:0)-t.bottom)}let O=d.current;!B&&d.current&&(O.style.top="0px",O.style.bottom="",O.style.maxHeight=(null!==(k=null===(E=window.visualViewport)||void 0===E?void 0:E.height)&&void 0!==k?k:window.innerHeight)+"px");let j=function(e){var t,r,n,a;let s;let{placement:c,targetNode:d,overlayNode:x,scrollNode:w,padding:E,shouldFlip:S,boundaryElement:k,offset:P,crossOffset:C,maxHeight:K,arrowSize:T=0,arrowBoundaryOffset:N=0}=e,M=x instanceof HTMLElement?function(e){let t=e.offsetParent;if(t&&t===document.body&&"static"===window.getComputedStyle(t).position&&!y(t)&&(t=document.documentElement),null==t)for(t=e.parentElement;t&&!y(t);)t=t.parentElement;return t||document.documentElement}(x):document.documentElement,D=M===document.documentElement,R=window.getComputedStyle(M).position,I=D?m(d):b(d,M);if(!D){let{marginTop:e,marginLeft:t}=window.getComputedStyle(d);I.top+=parseInt(e,10)||0,I.left+=parseInt(t,10)||0}let L=m(x),A={top:parseInt((s=window.getComputedStyle(x)).marginTop,10)||0,bottom:parseInt(s.marginBottom,10)||0,left:parseInt(s.marginLeft,10)||0,right:parseInt(s.marginRight,10)||0};L.width+=(null!==(t=A.left)&&void 0!==t?t:0)+(null!==(r=A.right)&&void 0!==r?r:0),L.height+=(null!==(n=A.top)&&void 0!==n?n:0)+(null!==(a=A.bottom)&&void 0!==a?a:0);let F={top:w.scrollTop,left:w.scrollLeft,width:w.scrollWidth,height:w.scrollHeight},B=f(k),z=f(M),O="BODY"===k.tagName?m(M):b(M,k);return"HTML"===M.tagName&&"BODY"===k.tagName&&(z.scroll.top=0,z.scroll.left=0),function(e,t,r,n,a,s,c,d,f,m,b,y,x,w,E,S){var k,P,C,K;let T=p(e),{size:N,crossAxis:M,crossSize:D,placement:R,crossPlacement:I}=T,L=g(t,d,r,T,b,y,m,x,E,S),A=b,F=v(d,m,t,a,s+b,T);if(c&&n[N]>F){let e=p(`${i[R]} ${I}`),n=g(t,d,r,e,b,y,m,x,E,S);v(d,m,t,a,s+b,e)>F&&(T=e,L=n,A=b)}let B="bottom";"top"===T.axis?"top"===T.placement?B="top":"bottom"===T.placement&&(B="bottom"):"top"===T.crossAxis&&("top"===T.crossPlacement?B="bottom":"bottom"===T.crossPlacement&&(B="top"));let z=h(M,L[M],r[D],d,f,s,m);L[M]+=z;let O=function(e,t,r,n,l,o,i,a){var s,c,d,f,h,p,g;let v=n?r.height:t[u.height],m=null!=e.top?r.top+e.top:r.top+(v-(null!==(s=e.bottom)&&void 0!==s?s:0)-i),b="top"!==a?Math.max(0,t.height+t.top+(null!==(c=t.scroll.top)&&void 0!==c?c:0)-m-((null!==(d=l.top)&&void 0!==d?d:0)+(null!==(f=l.bottom)&&void 0!==f?f:0)+o)):Math.max(0,m+i-(t.top+(null!==(h=t.scroll.top)&&void 0!==h?h:0))-((null!==(p=l.top)&&void 0!==p?p:0)+(null!==(g=l.bottom)&&void 0!==g?g:0)+o));return Math.min(t.height-2*o,b)}(L,d,m,x,a,s,r.height,B);w&&w<O&&(O=w),r.height=Math.min(r.height,O),z=h(M,(L=g(t,d,r,T,A,y,m,x,E,S))[M],r[D],d,f,s,m),L[M]+=z;let _={},j=t[M]-L[M]-a[o[M]],W=j+.5*t[D],H=E/2+S,V="left"===o[M]?(null!==(k=a.left)&&void 0!==k?k:0)+(null!==(P=a.right)&&void 0!==P?P:0):(null!==(C=a.top)&&void 0!==C?C:0)+(null!==(K=a.bottom)&&void 0!==K?K:0),U=r[D]-V-E/2-S,G=t[M]+E/2-(L[M]+a[o[M]]),Y=t[M]+t[D]-E/2-(L[M]+a[o[M]]),$=(0,l.uZ)(W,G,Y);_[M]=(0,l.uZ)($,H,U),({placement:R,crossPlacement:I}=T),E?j=_[M]:"right"===I?j+=t[D]:"center"===I&&(j+=t[D]/2);
1let q="left"===R||"top"===R?r[N]:0,X={x:"top"===R||"bottom"===R?j:q,y:"left"===R||"right"===R?j:q};return{position:L,maxHeight:O,arrowOffsetLeft:_.left,arrowOffsetTop:_.top,placement:R,triggerAnchorPoint:X}}(c,I,L,F,A,E,S,B,z,O,P,C,!!R&&"static"!==R,K,T,N)}({placement:"rtl"===a?T.replace("start","right").replace("end","left"):T.replace("start","left").replace("end","right"),overlayNode:d.current,targetNode:c.current,scrollNode:K.current||d.current,padding:N,shouldFlip:M,boundaryElement:D,offset:R,crossOffset:I,maxHeight:B,arrowSize:null!==(P=null!=s?s:null==S?void 0:null===(r=S.current)||void 0===r?void 0:r.getBoundingClientRect().width)&&void 0!==P?P:0,arrowBoundaryOffset:z});if(j.position){if(O.style.top="",O.style.bottom="",O.style.left="",O.style.right="",Object.keys(j.position).forEach(e=>O.style[e]=j.position[e]+"px"),O.style.maxHeight=null!=j.maxHeight?j.maxHeight+"px":"",F&&document.activeElement&&K.current){let e=document.activeElement.getBoundingClientRect(),t=K.current.getBoundingClientRect(),r=e[F.type]-t[F.type];K.current.scrollTop+=r-F.offset}_(j)}},j);(0,E.b)(H,j),(0,E.b)(()=>(window.addEventListener("resize",H,!1),()=>{window.removeEventListener("resize",H,!1)}),[H]),k({ref:d,onResize:H}),k({ref:c,onResize:H});let V=(0,w.useRef)(!1);(0,E.b)(()=>{let e;let t=()=>{V.current=!0,clearTimeout(e),e=setTimeout(()=>{V.current=!1},500),H()},r=()=>{V.current&&t()};return null==C||C.addEventListener("resize",t),null==C||C.addEventListener("scroll",r),()=>{null==C||C.removeEventListener("resize",t),null==C||C.removeEventListener("scroll",r)}},[H]);let U=(0,w.useCallback)(()=>{V.current||null==F||F()},[F,V]);return(0,x.O)({triggerRef:c,isOpen:A,onClose:F&&U}),{overlayProps:{style:{position:O?"absolute":"fixed",top:O?void 0:0,left:O?void 0:0,zIndex:1e5,...null==O?void 0:O.position,maxHeight:null!==(t=null==O?void 0:O.maxHeight)&&void 0!==t?t:"100vh"}},placement:null!==(r=null==O?void 0:O.placement)&&void 0!==r?r:null,triggerAnchorPoint:null!==(n=null==O?void 0:O.triggerAnchorPoint)&&void 0!==n?n:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:null==O?void 0:O.arrowOffsetLeft,top:null==O?void 0:O.arrowOffsetTop}},updatePosition:H}}},95730:function(e,t,r){let n;r.d(t,{t:function(){return d}});var l=r(8351),o=r(79279),i=r(20453),a=r(28866);let s="undefined"!=typeof document&&window.visualViewport,u=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),c=0;function d(e={}){let{isDisabled:t}=e;(0,l.b)(()=>{if(!t){let e,t,r,l,d,g;return 1==++c&&(n=(0,o.gn)()?(r=null,l=()=>{if(r)return;let e=window.pageXOffset,t=window.pageYOffset;r=(0,i.t)(h(window,"scroll",()=>{window.scrollTo(0,0)}),f(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),f(document.documentElement,"overflow","hidden"),f(document.body,"marginTop",`-${t}px`),()=>{window.scrollTo(e,t)}),window.scrollTo(0,0)},d=(0,i.t)(h(document,"touchstart",r=>{((e=(0,a.r)(r.target,!0))!==document.documentElement||e!==document.body)&&e instanceof HTMLElement&&"auto"===window.getComputedStyle(e).overscrollBehavior&&(t=f(e,"overscrollBehavior","contain"))},{passive:!1,capture:!0}),h(document,"touchmove",t=>{if(!e||e===document.documentElement||e===document.body){t.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&t.preventDefault()},{passive:!1,capture:!0}),h(document,"touchend",()=>{t&&t()},{passive:!1,capture:!0}),h(document,"focus",e=>{let t=e.target;(t instanceof HTMLInputElement&&!u.has(t.type)||t instanceof HTMLTextAreaElement||t instanceof HTMLElement&&t.isContentEditable)&&(l(),t.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{t.style.transform="",s&&(s.height<window.innerHeight?requestAnimationFrame(()=>{p(t)}):s.addEventListener("resize",()=>p(t),{once:!0}))}))},!0)),()=>{null==t||t(),null==r||r(),d()}):(g=window.innerWidth-document.documentElement.clientWidth,(0,i.t)(g>0&&("scrollbarGutter"in document.documentElement.style?f(document.documentElement,"scrollbarGutter","stable"):f(document.documentElement,"paddingRight",`${g}
1px`)),f(document.documentElement,"overflow","hidden")))),()=>{0==--c&&n()}}},[t])}function f(e,t,r){let n=e.style[t];return e.style[t]=r,()=>{e.style[t]=n}}function h(e,t,r,n){return e.addEventListener(t,r,n),()=>{e.removeEventListener(t,r,n)}}function p(e){let t=document.scrollingElement||document.documentElement,r=e;for(;r&&r!==t;){let e=(0,a.r)(r);if(e!==document.documentElement&&e!==document.body&&e!==r){let t=e.getBoundingClientRect().top,n=r.getBoundingClientRect().top;n>t+r.clientHeight&&(e.scrollTop+=n-t)}r=e.parentElement}}},8486:function(e,t,r){r.d(t,{S:function(){return a},T:function(){return s}});var n=r(40582),l=r(2265),o=r(56428);let i={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 a(e={}){let{style:t,isFocusable:r}=e,[n,a]=(0,l.useState)(!1),{focusWithinProps:s}=(0,o.L)({isDisabled:!r,onFocusWithinChange:e=>a(e)}),u=(0,l.useMemo)(()=>n?t:t?{...i,...t}:i,[n]);return{visuallyHiddenProps:{...s,style:u}}}function s(e){let{children:t,elementType:r="div",isFocusable:o,style:i,...s}=e,{visuallyHiddenProps:u}=a(e);return l.createElement(r,(0,n.d)(s,u),t)}},91149:function(e,t,r){r.d(t,{MG:function(){return x}});var n=r(2265),l=r(54887);function o(e,t,r){let n,l=r.initialDeps??[];return()=>{var o,i,a,s;let u,c;r.key&&(null==(o=r.debug)?void 0:o.call(r))&&(u=Date.now());let d=e();if(!(d.length!==l.length||d.some((e,t)=>l[t]!==e)))return n;if(l=d,r.key&&(null==(i=r.debug)?void 0:i.call(r))&&(c=Date.now()),n=t(...d),r.key&&(null==(a=r.debug)?void 0:a.call(r))){let e=Math.round((Date.now()-u)*100)/100,t=Math.round((Date.now()-c)*100)/100,n=t/16,l=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${l(t,5)} /${l(e,5)} ms`,`
2            font-size: .6rem;
3            font-weight: bold;
4            color: hsl(${Math.max(0,Math.min(120-120*n,120))}deg 100% 31%);`,null==r?void 0:r.key)}return null==(s=null==r?void 0:r.onChange)||s.call(r,n),n}}function i(e,t){if(void 0!==e)return e;throw Error(`Unexpected undefined${t?`: ${t}`:""}`)}let a=(e,t)=>1>Math.abs(e-t),s=(e,t,r)=>{let n;return function(...l){e.clearTimeout(n),n=e.setTimeout(()=>t.apply(this,l),r)}},u=e=>e,c=e=>{let t=Math.max(e.startIndex-e.overscan,0),r=Math.min(e.endIndex+e.overscan,e.count-1),n=[];for(let e=t;e<=r;e++)n.push(e);return n},d=(e,t)=>{let r=e.scrollElement;if(!r)return;let n=e.targetWindow;if(!n)return;let l=e=>{let{width:r,height:n}=e;t({width:Math.round(r),height:Math.round(n)})};if(l(r.getBoundingClientRect()),!n.ResizeObserver)return()=>{};let o=new n.ResizeObserver(e=>{let t=e[0];if(null==t?void 0:t.borderBoxSize){let e=t.borderBoxSize[0];if(e){l({width:e.inlineSize,height:e.blockSize});return}}l(r.getBoundingClientRect())});return o.observe(r,{box:"border-box"}),()=>{o.unobserve(r)}},f={passive:!0},h="undefined"==typeof window||"onscrollend"in window,p=(e,t)=>{let r=e.scrollElement;if(!r)return;let n=e.targetWindow;if(!n)return;let l=0,o=e.options.useScrollendEvent&&h?()=>void 0:s(n,()=>{t(l,!1)},e.options.isScrollingResetDelay),i=n=>()=>{let{horizontal:i,isRtl:a}=e.options;l=i?r.scrollLeft*(a&&-1||1):r.scrollTop,o(),t(l,n)},a=i(!0),u=i(!1);return u(),r.addEventListener("scroll",a,f),r.addEventListener("scrollend",u,f),()=>{r.removeEventListener("scroll",a),r.removeEventListener("scrollend",u)}},g=(e,t,r)=>{if(null==t?void 0:t.borderBoxSize){let e=t.borderBoxSize[0];if(e)return Math.round(e[r.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[r.options.horizontal?"width":"height"])},v=(e,{adjustments:t=0,behavior:r},n)=>{var l,o;null==(o=null==(l=n.scrollElement)?void 0:l.scrollTo)||o.call(l,{[n.options.horizontal?"left":"top"]:e+t,behavior:r})};class m{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null,t=()=>e||(this.targetWindow&&this.targetWindow.ResizeObserver?e=new this.targetWindow.ResizeObserver(e=>
4{e.forEach(e=>{this._measureElement(e.target,e)})}):null);return{disconnect:()=>{var r;null==(r=t())||r.disconnect(),e=null},observe:e=>{var r;return null==(r=t())?void 0:r.observe(e,{box:"border-box"})},unobserve:e=>{var r;return null==(r=t())?void 0:r.unobserve(e)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([t,r])=>{void 0===r&&delete e[t]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:u,rangeExtractor:c,onChange:()=>{},measureElement:g,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,...e}},this.notify=e=>{var t,r;null==(r=(t=this.options).onChange)||r.call(t,this,e)},this.maybeNotify=o(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e;let t=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==t){if(this.cleanup(),!t){this.maybeNotify();return}this.scrollElement=t,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(null==(e=this.scrollElement)?void 0:e.window)??null,this.elementsCache.forEach(e=>{this.observer.observe(e)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{this.scrollAdjustments=0,this.scrollDirection=t?this.getScrollOffset()<e?"forward":"backward":null,this.scrollOffset=e,this.isScrolling=t,this.maybeNotify()}))}}
4,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??("function"==typeof this.options.initialOffset?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(e,t)=>{let r=new Map,n=new Map;for(let l=t-1;l>=0;l--){let t=e[l];if(r.has(t.lane))continue;let o=n.get(t.lane);if(null==o||t.end>o.end?n.set(t.lane,t):t.end<o.end&&r.set(t.lane,!0),r.size===this.options.lanes)break}return n.size===this.options.lanes?Array.from(n.values()).sort((e,t)=>e.end===t.end?e.index-t.index:e.end-t.end)[0]:void 0},this.getMeasurementOptions=o(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,t,r,n,l)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:t,scrollMargin:r,getItemKey:n,enabled:l}),{key:!1}),this.getMeasurements=o(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:t,scrollMargin:r,getItemKey:n,enabled:l},o)=>{if(!l)return this.measurementsCache=[],this.itemSizeCache.clear(),[];0===this.measurementsCache.length&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));let i=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let a=this.measurementsCache.slice(0,i);for(let l=i;l<e;l++){let e=n(l),i=1===this.options.lanes?a[l-1]:this.getFurthestMeasurement(a,l),s=i?i.end+this.options.gap:t+r,u=o.get(e),c="number"==typeof u?u:this.options.estimateSize(l),d=s+c,f=i?i.lane:l%this.options.lanes;a[l]={index:l,start:s,size:c,end:d,key:e,lane:f}}return this.measurementsCache=a,a},{key:!1,debug:()=>this.options.debug}),this.calculateRange=o(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(e,t,r)=>this.range=e.length>0&&t>0?function({measurements:e,outerSize:t,scrollOffset:r}){let n=e.length-1,l=b(0,n,t=>e[t].start,r),o=l;for(;o<n&&e[o].end<r+t;)o++;return{startIndex:l,endIndex:o}}({measurements:e,outerSize:t,scrollOffset:r}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=o(()=>{let e=null,t=null,r=this.calculateRange();return r&&(e=r.startIndex,t=r.endIndex),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]},(e,t,r,n,l)=>null===n||null===l?[]:e({startIndex:n,endIndex:l,overscan:t,count:r}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let t=this.options.indexAttribute,r=e.getAttribute(t);return r?parseInt(r,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this._measureElement=(e,t)=>{let r=this.indexFromElement(e),n=this.measurementsCache[r];if(!n)return;let l=n.key,o=this.elementsCache.get(l);o!==e&&(o&&this.observer.unobserve(o),this.observer.observe(e),this.elementsCache.set(l,e)),e.isConnected&&this.resizeItem(r,this.options.measureElement(e,t,this))},this.resizeItem=(e,t)=>{let r=this.measurementsCache[e];if(!r)return;let n=t-(this.itemSizeCache.get(r.key)??r.size);0!==n&&((void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(r,n,this):r.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=n,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(r.index),this.itemSizeCache=new Map(this.itemSizeCache.set(r.key,t)),this.notify(!1))},this.measureElement=e=>{if(!e){this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))});return}this._measureElement(e,void 0)},this.getVirtualItems=o(()=>[this.getIndexes(),this.getMeasurements()],(e,t)=>{let r=[];for(let n=0,l=e.length;n<l;n++){let l=t[e[n]];r.push(l)}return r},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let t=this.getMeasurements();if(0!==t.length)return i(t[b(0,t.length-1,e=>i(t[e]).start,e)])},this.getOffsetForAlignment=(e,t)=>
4{let r=this.getSize(),n=this.getScrollOffset();"auto"===t&&e>=n+r&&(t="end"),"end"===t&&(e-=r);let l=this.options.horizontal?"scrollWidth":"scrollHeight";return Math.max(Math.min((this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[l]:this.scrollElement[l]:0)-r,e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));let r=this.measurementsCache[e];if(!r)return;let n=this.getSize(),l=this.getScrollOffset();if("auto"===t){if(r.end>=l+n-this.options.scrollPaddingEnd)t="end";else{if(!(r.start<=l+this.options.scrollPaddingStart))return[l,t];t="start"}}let o=r.start-this.options.scrollPaddingStart+(r.size-n)/2;switch(t){case"center":return[this.getOffsetForAlignment(o,t),t];case"end":return[this.getOffsetForAlignment(r.end+this.options.scrollPaddingEnd,t),t];default:return[this.getOffsetForAlignment(r.start-this.options.scrollPaddingStart,t),t]}},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{null!==this.scrollToIndexTimeoutId&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(e,{align:t="start",behavior:r}={})=>{this.cancelScrollToIndex(),"smooth"===r&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,t),{adjustments:void 0,behavior:r})},this.scrollToIndex=(e,{align:t="auto",behavior:r}={})=>{e=Math.max(0,Math.min(e,this.options.count-1)),this.cancelScrollToIndex(),"smooth"===r&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");let n=this.getOffsetForIndex(e,t);if(!n)return;let[l,o]=n;this._scrollToOffset(l,{adjustments:void 0,behavior:r}),"smooth"!==r&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(e))){let[t]=i(this.getOffsetForIndex(e,o));a(t,this.getScrollOffset())||this.scrollToIndex(e,{align:o,behavior:r})}else this.scrollToIndex(e,{align:o,behavior:r})}))},this.scrollBy=(e,{behavior:t}={})=>{this.cancelScrollToIndex(),"smooth"===t&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adju
4stments:void 0,behavior:t})},this.getTotalSize=()=>{var e;let t=this.getMeasurements();return Math.max((0===t.length?this.options.paddingStart:1===this.options.lanes?(null==(e=t[t.length-1])?void 0:e.end)??0:Math.max(...t.slice(-this.options.lanes).map(e=>e.end)))-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:t,behavior:r})=>{this.options.scrollToFn(e,{behavior:r,adjustments:t},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(e)}}let b=(e,t,r,n)=>{for(;e<=t;){let l=(e+t)/2|0,o=r(l);if(o<n)e=l+1;else{if(!(o>n))return l;t=l-1}}return e>0?e-1:0},y="undefined"!=typeof document?n.useLayoutEffect:n.useEffect;function x(e){return function(e){let t=n.useReducer(()=>({}),{})[1],r={...e,onChange:(r,n)=>{var o;n?(0,l.flushSync)(t):t(),null==(o=e.onChange)||o.call(e,r,n)}},[o]=n.useState(()=>new m(r));return o.setOptions(r),y(()=>o._didMount(),[]),y(()=>o._willUpdate()),o}({observeElementRect:d,observeElementOffset:p,scrollToFn:v,...e})}},92200:function(e,t,r){r.d(t,{E7:function(){return K},MT:function(){return g},QL:function(){return C}});var n=r(88047),l=r(81780),o=r(44798),i=r(73717),a=r(28586),s=r(79279),u=r(5934),c=r(8351),d=r(2265);let f=d.createContext(null),h="react-aria-focus-scope-restore",p=null;function g(e){let t,r,{children:n,contain:l,restoreFocus:u,autoFocus:g}=e,K=(0,d.useRef)(null),T=(0,d.useRef)(null),N=(0,d.useRef)([]),{parentNode:R}=(0,d.useContext)(f)||{},I=(0,d.useMemo)(()=>new M({scopeRef:N}),[N]);(0,c.b)(()=>{let e=R||D.root;if(D.getTreeNode(e.scopeRef)&&p&&!x(p,e.scopeRef)){let t=D.getTreeNode(p);t&&(e=t)}e.addChild(I),D.addNode(I)},[I,R]),(0,c.b)(()=>{let e=D.getTreeNode(N);e&&(e.contain=!!l)},[l]),(0,c.b)(()=>{let e=K.current?.nextSibling,t=[],r=e=>e.stopPropagation();for(;e&&e!==T.current;)t.push(e),e.addEventListener(h,r),e=e.nextSibling;return N.current=t,()=>{for(let e of t)e.removeEventListener(h,r)}},[n]),(0,c.b)(()=>{if(u||l)return;let e=N.current,t=(0,a.r3)(e?e[0]:void 0),r=e=>{let t=(0,o.NI)(e);b(t,N.current)?p=N:y(t)||(p=null)};return t.addEventListener("focusin",r,!1),e?.forEach(e=>e.addEventListener("focusin",r,!1)),()=>{t.removeEventListener("focusin",r,!1),e?.forEach(e=>e.removeEventListener("focusin",r,!1))}},[N,u,l]),t=(0,d.useRef)(void 0),r=(0,d.useRef)(void 0),(0,c.b)(()=>{let e=N.current;if(!l){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}let n=(0,a.r3)(e?e[0]:void 0),u=e=>{if("Tab"!==e.key||e.altKey||e.ctrlKey||e.metaKey||!m(N)||e.isComposing)return;let t=(0,o.vY)(n),r=N.current;if(!r||!b(t,r))return;let l=C(v(r),{tabbable:!0},r);if(!t)return;l.currentNode=t;let i=e.shiftKey?l.previousNode():l.nextNode();i||(l.currentNode=e.shiftKey?r[r.length-1].nextElementSibling:r[0].previousElementSibling,i=e.shiftKey?l.previousNode():l.nextNode()),e.preventDefault(),i&&(w(i,!0),i instanceof(0,a.kR)(i).HTMLInputElement&&i.select())},c=e=>{(!p||x(p,N))&&b((0,o.NI)(e),N.current)?(p=N,t.current=(0,o.NI)(e)):m(N)&&!y((0,o.NI)(e),N)?t.current?t.current.focus():p&&p.current&&S(p.current):m(N)&&(t.current=(0,o.NI)(e))},d=e=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let r=(0,i.Jz)(),l=("virtual"===r||null===r)&&(0,s.Dt)()&&(0,s.i7)(),a=(0,o.vY)(n);if(!l&&a&&m(N)&&!y(a,N)){p=N;let r=(0,o.NI)(e);r&&r.isConnected?(t.current=r,t.current?.focus()):p.current&&S(p.current)}})};return n.addEventListener("keydown",u,!1),n.addEventListener("focusin",c,!1),e?.forEach(e=>e.addEventListener("focusin",c,!1)),e?.forEach(e=>e.addEventListener("focusout",d,!1)),()=>{n.removeEventListener("keydown",u,!1),n.removeEventListener("focusin",c,!1),e?.forEach(e=>e.removeEventListener("focusin",c,!1)),e?.forEach(e=>e.removeEventListener("focusout",d,!1))}},[N,l]),(0,c.b)(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r]),function(e,t,r){let n=(0,d.useRef)("undefined"!=typeof document?(0,o.vY)((0,a.r3)(e.current?e.current[0]:void 0)):null);(0,c.b)(()=>{let n=e.current,l=(0,a.r3)(n?n[0]:void 0);if(!t||r)return;let i=()=>{(!p||x(p,e))&&b((0,o.vY)(l),e.current)&&(p=e)};
4return l.addEventListener("focusin",i,!1),n?.forEach(e=>e.addEventListener("focusin",i,!1)),()=>{l.removeEventListener("focusin",i,!1),n?.forEach(e=>e.removeEventListener("focusin",i,!1))}},[e,r]),(0,c.b)(()=>{let n=(0,a.r3)(e.current?e.current[0]:void 0);if(!t)return;let l=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||!m(e)||t.isComposing)return;let r=n.activeElement;if(!y(r,e)||!k(e))return;let l=D.getTreeNode(e);if(!l)return;let o=l.nodeToRestore,i=C(n.body,{tabbable:!0});i.currentNode=r;let a=t.shiftKey?i.previousNode():i.nextNode();if(o&&o.isConnected&&o!==n.body||(o=void 0,l.nodeToRestore=void 0),(!a||!y(a,e))&&o){i.currentNode=o;do a=t.shiftKey?i.previousNode():i.nextNode();while(y(a,e));(t.preventDefault(),t.stopPropagation(),a)?w(a,!0):y(o)?w(o,!0):r.blur()}};return r||n.addEventListener("keydown",l,!0),()=>{r||n.removeEventListener("keydown",l,!0)}},[e,t,r]),(0,c.b)(()=>{let r=(0,a.r3)(e.current?e.current[0]:void 0);if(!t)return;let l=D.getTreeNode(e);if(l)return l.nodeToRestore=n.current??void 0,()=>{let n=D.getTreeNode(e);if(!n)return;let l=n.nodeToRestore,i=(0,o.vY)(r);if(t&&l&&(i&&y(i,e)||i===r.body&&k(e))){let t=D.clone();requestAnimationFrame(()=>{if(r.activeElement===r.body){let r=t.getTreeNode(e);for(;r;){if(r.nodeToRestore&&r.nodeToRestore.isConnected){P(r.nodeToRestore);return}r=r.parent}for(r=t.getTreeNode(e);r;){if(r.scopeRef&&r.scopeRef.current&&D.getTreeNode(r.scopeRef)){P(E(r.scopeRef.current,!0));return}r=r.parent}}})}}},[e,t])}(N,u,l),function(e,t){let r=d.useRef(t);(0,d.useEffect)(()=>{if(r.current){p=e;let t=(0,a.r3)(e.current?e.current[0]:void 0);!b((0,o.vY)(t),p.current)&&e.current&&S(e.current)}r.current=!1},[e])}(N,g),(0,d.useEffect)(()=>{let e=(0,o.vY)((0,a.r3)(N.current?N.current[0]:void 0)),t=null;if(b(e,N.current)){for(let r of D.traverse())r.scopeRef&&b(e,r.scopeRef.current)&&(t=r);t===D.getTreeNode(N)&&(p=t.scopeRef)}},[N]),(0,c.b)(()=>()=>{let e=D.getTreeNode(N)?.parent?.scopeRef??null;(N===p||x(N,p))&&(!e||D.getTreeNode(e))&&(p=e),D.removeTreeNode(N)},[N]);let L=(0,d.useMemo)(()=>({focusNext(e={}){let t=N.current,{from:r,tabbable:n,wrap:l,accept:i}=e,s=r||(0,o.vY)((0,a.r3)(t[0]??void 0)),u=t[0].previousElementSibling,c=C(v(t),{tabbable:n,accept:i},t);c.currentNode=b(s,t)?s:u;let d=c.nextNode();return!d&&l&&(c.currentNode=u,d=c.nextNode()),d&&w(d,!0),d},focusPrevious(e={}){let t=N.current,{from:r,tabbable:n,wrap:l,accept:i}=e,s=r||(0,o.vY)((0,a.r3)(t[0]??void 0)),u=t[t.length-1].nextElementSibling,c=C(v(t),{tabbable:n,accept:i},t);c.currentNode=b(s,t)?s:u;let d=c.previousNode();return!d&&l&&(c.currentNode=u,d=c.previousNode()),d&&w(d,!0),d},focusFirst(e={}){let t=N.current,{tabbable:r,accept:n}=e,l=C(v(t),{tabbable:r,accept:n},t);l.currentNode=t[0].previousElementSibling;let o=l.nextNode();return o&&w(o,!0),o},focusLast(e={}){let t=N.current,{tabbable:r,accept:n}=e,l=C(v(t),{tabbable:r,accept:n},t);l.currentNode=t[t.length-1].nextElementSibling;let o=l.previousNode();return o&&w(o,!0),o}}),[]),A=(0,d.useMemo)(()=>({focusManager:L,parentNode:I}),[I,L]);return d.createElement(f.Provider,{value:A},d.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:K}),n,d.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:T}))}function v(e){return e[0].parentElement}function m(e){let t=D.getTreeNode(p);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function b(e,t){return!!e&&!!t&&t.some(t=>(0,o.bE)(t,e))}function y(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of D.traverse(D.getTreeNode(t)))if(r&&b(e,r.current))return!0;return!1}function x(e,t){let r=D.getTreeNode(t)?.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function w(e,t=!1){if(null==e||t){if(null!=e)try{e.focus()}catch{}}else try{(0,l.e)(e)}catch{}}function E(e,t=!0){let r=e[0].previousElementSibling,n=v(e),l=C(n,{tabbable:t},e);l.currentNode=r;let o=l.nextNode();return t&&!o&&((l=C(n=v(e),{tabbable:!1},e)).currentNode=r,o=l.nextNode()),o}function S(e,t=!0){w(E(e,t))}function k(e){let t=D.getTreeNode(p);for(;t&&t.scopeRef!==e;
4){if(t.nodeToRestore)return!1;t=t.parent}return t?.scopeRef===e}function P(e){e.dispatchEvent(new CustomEvent(h,{bubbles:!0,cancelable:!0}))&&w(e)}function C(e,t,r){let l=t?.tabbable?u.W:u.E,i=e?.nodeType===Node.ELEMENT_NODE?e:null,s=(0,a.r3)(i),c=(0,n.A)(s,e||s,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>(0,o.bE)(t?.from,e)||t?.tabbable&&"INPUT"===e.tagName&&"radio"===e.getAttribute("type")&&(!function(e){if(e.checked)return!0;let t=function(e){if(!e.form)return Array.from((0,a.r3)(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter(e=>!e.form);let t=e.form.elements.namedItem(e.name),r=(0,a.kR)(e);return t instanceof r.RadioNodeList?Array.from(t).filter(e=>e instanceof r.HTMLInputElement):t instanceof r.HTMLInputElement?[t]:[]}(e);return t.length>0&&!t.some(e=>e.checked)}(e)||"INPUT"===c.currentNode.tagName&&"radio"===c.currentNode.type&&c.currentNode.name===e.name)?NodeFilter.FILTER_REJECT:l(e)&&(!r||b(e,r))&&(!t?.accept||t.accept(e))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});return t?.from&&(c.currentNode=t.from),c}function K(e,t={}){return{focusNext(r={}){let n=e.current;if(!n)return null;let{from:l,tabbable:i=t.tabbable,wrap:s=t.wrap,accept:u=t.accept}=r,c=l||(0,o.vY)((0,a.r3)(n)),d=C(n,{tabbable:i,accept:u});(0,o.bE)(n,c)&&(d.currentNode=c);let f=d.nextNode();return!f&&s&&(d.currentNode=n,f=d.nextNode()),f&&w(f,!0),f},focusPrevious(r=t){let n=e.current;if(!n)return null;let{from:l,tabbable:i=t.tabbable,wrap:s=t.wrap,accept:u=t.accept}=r,c=l||(0,o.vY)((0,a.r3)(n)),d=C(n,{tabbable:i,accept:u});if((0,o.bE)(n,c))d.currentNode=c;else{let e=T(d);return e&&w(e,!0),e??null}let f=d.previousNode();if(!f&&s){d.currentNode=n;let e=T(d);if(!e)return null;f=e}return f&&w(f,!0),f??null},focusFirst(r=t){let n=e.current;if(!n)return null;let{tabbable:l=t.tabbable,accept:o=t.accept}=r,i=C(n,{tabbable:l,accept:o}).nextNode();return i&&w(i,!0),i},focusLast(r=t){let n=e.current;if(!n)return null;let{tabbable:l=t.tabbable,accept:o=t.accept}=r,i=T(C(n,{tabbable:l,accept:o}));return i&&w(i,!0),i??null}}}function T(e){let t,r;do(t=e.lastChild())&&(r=t);while(t);return r}class N{constructor(){this.fastMap=new Map,this.root=new M({scopeRef:null}),this.fastMap.set(null,this.root)}get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,r){let n=this.fastMap.get(t??null);if(!n)return;let l=new M({scopeRef:e});n.addChild(l),l.parent=n,this.fastMap.set(e,l),r&&(l.nodeToRestore=r)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(null===e)return;let t=this.fastMap.get(e);if(!t)return;let r=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&b(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let n=t.children;r&&(r.removeChild(t),n.size>0&&n.forEach(e=>r&&r.addChild(e))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(null!=e.scopeRef&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){let e=new N;for(let t of this.traverse())e.addTreeNode(t.scopeRef,t.parent?.scopeRef??null,t.nodeToRestore);return e}}class M{constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}}let D=new N},40916:function(e,t,r){r.d(t,{Jv:function(){return i},q6:function(){return o}});var n=r(44798),l=r(28586);function o(e){var t;let r,o;let a=(t=(0,l.r3)(e),r=(0,n.vY)(t),(o=r?.getAttribute("aria-activedescendant"))&&t.getElementById(o)||r);a!==e&&(a&&(a.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),a.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))),e&&i(e,a))}function i(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}},13901:function(e,t,r){r.d(t,{j:function(){return h}});let n=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),l=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);var o=r(13485),i=r(2265);let a=Symbol.for("react-aria.i18n.locale");function s(){let e="undefined"!=typeof window&&window[a]||"undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:!function(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize(),r="function"==typeof t.getTextInfo?t.getTextInfo():t.textInfo;if(r)return"rtl"===r.direction;if(t.script)return n.has(t.script)}let t=e.split("-")[0];return l.has(t)}(e)?"ltr":"rtl"}}let u=s(),c=new Set;function d(){for(let e of(u=s(),c))e(u)}let f=i.createContext(null);function h(){let e=function(){let e=(0,o.Av)(),[t,r]=(0,i.useState)(u);return((0,i.useEffect)(()=>(0===c.size&&window.addEventListener("languagechange",d),c.add(r),()=>{c.delete(r),0===c.size&&window.removeEventListener("languagechange",d)}),[]),e)?{locale:"undefined"!=typeof window&&window[a]||"en-US",direction:"ltr"}:t}();return(0,i.useContext)(f)||e}},16999:function(e,t,r){r.d(t,{X:function(){return o}});var n=r(13901);let l=new Map;function o(e){let{locale:t}=(0,n.j)(),r=t+(e?Object.entries(e).sort((e,t)=>
4e[0]<t[0]?-1:1).join():"");if(l.has(r))return l.get(r);let o=new Intl.Collator(t,e);return l.set(r,o),o}},12730:function(e,t,r){r.d(t,{K:function(){return s},q:function(){return u}});var n=r(13901),l=r(10965),o=r(72512),i=r(2265);let a=new WeakMap;function s(e,t){let r;return t&&(0,l.J).getGlobalDictionaryForPackage(t)||((r=a.get(e))||(r=new l.J(e),a.set(e,r)),r)}function u(e,t){let{locale:r}=(0,n.j)(),l=s(e,t);return(0,i.useMemo)(()=>new o.E(r,l),[r,l])}},12765:function(e,t,r){r.d(t,{O:function(){return n}});let n=r(2265).createContext({register:()=>{}});n.displayName="PressResponderContext"},69471:function(e,t,r){r.d(t,{A:function(){return c},l:function(){return u}});var n=r(28586),l=r(79279),o=r(13925);let i="default",a="",s=new WeakMap;function u(e){if((0,l.gn)()){if("default"===i){let t=(0,n.r3)(e);a=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}i="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";s.set(e,e.style[t]),e.style[t]="none"}}function c(e){if((0,l.gn)())"disabled"===i&&(i="restoring",setTimeout(()=>{(0,o.Q)(()=>{if("restoring"===i){let t=(0,n.r3)(e);"none"===t.documentElement.style.webkitUserSelect&&(t.documentElement.style.webkitUserSelect=a||""),a="",i="default"}})},300));else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&s.has(e)){let t=s.get(e),r="userSelect"in e.style?"userSelect":"webkitUserSelect";"none"===e.style[r]&&(e.style[r]=t),""===e.getAttribute("style")&&e.removeAttribute("style"),s.delete(e)}}},5092:function(e,t,r){r.d(t,{X:function(){return d}});var n=r(44798),l=r(28586),o=r(94648),i=r(2265);let a=!1,s=0;function u(e){"touch"===e.pointerType&&(a=!0,setTimeout(()=>{a=!1},500))}function c(){let e=(0,l.r3)(null);if(void 0!==e)return 0===s&&"undefined"!=typeof PointerEvent&&e.addEventListener("pointerup",u),s++,()=>{--s>0||"undefined"==typeof PointerEvent||e.removeEventListener("pointerup",u)}}function d(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:s,isDisabled:u}=e,[d,f]=(0,i.useState)(!1),h=(0,i.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,i.useEffect)(c,[]);let{addGlobalListener:p,removeAllGlobalListeners:g}=(0,o.x)(),{hoverProps:v,triggerHoverEnd:m}=(0,i.useMemo)(()=>{let e=(e,i)=>{if(h.pointerType=i,u||"touch"===i||h.isHovered||!(0,n.bE)(e.currentTarget,(0,n.NI)(e)))return;h.isHovered=!0;let a=e.currentTarget;h.target=a,p((0,l.r3)((0,n.NI)(e)),"pointerover",e=>{h.isHovered&&h.target&&!(0,n.bE)(h.target,(0,n.NI)(e))&&o(e,e.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:a,pointerType:i}),r&&r(!0),f(!0)},o=(e,t)=>{let n=h.target;h.pointerType="",h.target=null,"touch"!==t&&h.isHovered&&n&&(h.isHovered=!1,g(),s&&s({type:"hoverend",target:n,pointerType:t}),r&&r(!1),f(!1))},i={};return"undefined"!=typeof PointerEvent&&(i.onPointerEnter=t=>{a&&"mouse"===t.pointerType||e(t,t.pointerType)},i.onPointerLeave=e=>{!u&&(0,n.bE)(e.currentTarget,(0,n.NI)(e))&&o(e,e.pointerType)}),{hoverProps:i,triggerHoverEnd:o}},[t,r,s,u,h,p,g]);return(0,i.useEffect)(()=>{u&&m({currentTarget:h.target},h.pointerType)},[u]),{hoverProps:v,isHovered:d}}},12443:function(e,t,r){r.d(t,{T:function(){return c}});var n=r(91482),l=r(28586),o=r(40582),i=r(87523),a=r(94648),s=r(95594),u=r(2265);function c(e){let{isDisabled:t,onLongPressStart:r,onLongPressEnd:c,onLongPress:d,threshold:f=500,accessibilityDescription:h}=e,p=(0,u.useRef)(void 0),{addGlobalListener:g,removeGlobalListener:v}=(0,a.x)(),{pressProps:m}=(0,s.r)({isDisabled:t,onPressStart(e){if(e.continuePropagation(),("mouse"===e.pointerType||"touch"===e.pointerType)&&(r&&r({...e,type:"longpressstart"}),p.current=setTimeout(()=>{e.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),(0,l.r3)(e.target).activeElement!==e.target&&(0,n.A)(e.target),d&&d({...e,type:"longpress"}),p.current=void 0},f),"touch"===e.pointerType)){let t=e=>{e.preventDefault()},r=(0,l.kR)(e.target);g(e.target,"contextmenu",t,{once:!0}),g(r,"pointerup",()=>{setTimeout(()=>{v(e.target,"contextmenu",t)}
4,30)},{once:!0})}},onPressEnd(e){p.current&&clearTimeout(p.current),c&&("mouse"===e.pointerType||"touch"===e.pointerType)&&c({...e,type:"longpressend"})}}),b=(0,i.P)(d&&!t?h:void 0);return{longPressProps:(0,o.d)(m,b)}}},95594:function(e,t,r){r.d(t,{r:function(){return k}});var n=r(20453),l=r(48349),o=r(69471),i=r(91482),a=r(44798),s=r(28586);function u(e){let t=e?.defaultView;return t?.__webpack_nonce__||globalThis.__webpack_nonce__||void 0}let c=new WeakMap;var d=r(79279),f=r(83077),h=r(40582),p=r(45952),g=r(12765),v=r(27078),m=r(94648),b=r(89793);r(54887);var y=r(2265);class x{#e;constructor(e,t,r,n){this.#e=!0;let l=n?.target??r.currentTarget,o=l?.getBoundingClientRect(),i,a=0,s,u=null;null!=r.clientX&&null!=r.clientY&&(s=r.clientX,u=r.clientY),o&&(null!=s&&null!=u?(i=s-o.left,a=u-o.top):(i=o.width/2,a=o.height/2)),this.type=e,this.pointerType=t,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=i,this.y=a,this.key=r.key}continuePropagation(){this.#e=!1}get shouldStopPropagation(){return this.#e}}let w=Symbol("linkClicked"),E="react-aria-pressable-style",S="data-react-aria-pressable";function k(e){let{onPress:t,onPressChange:r,onPressStart:k,onPressEnd:N,onPressUp:M,onClick:D,isDisabled:R,isPressed:I,preventFocusOnPress:L,shouldCancelOnPointerExit:A,allowTextSelectionOnPress:F,ref:B,...z}=function(e){let t=(0,y.useContext)(g.O);if(t){let{register:r,ref:n,...l}=t;e=(0,h.d)(l,e),r()}return(0,b.l)(t,e.ref),e}(e),[O,_]=(0,y.useState)(!1),j=(0,y.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:W,removeAllGlobalListeners:H}=(0,m.x)(),V=(0,y.useCallback)((e,t)=>{let n=j.current;if(R||n.didFirePressStart)return!1;let l=!0;if(n.isTriggeringEvent=!0,k){let r=new x("pressstart",t,e);k(r),l=r.shouldStopPropagation}return r&&r(!0),n.isTriggeringEvent=!1,n.didFirePressStart=!0,_(!0),l},[R,k,r]),U=(0,y.useCallback)((e,n,l=!0)=>{let o=j.current;if(!o.didFirePressStart)return!1;o.didFirePressStart=!1,o.isTriggeringEvent=!0;let i=!0;if(N){let t=new x("pressend",n,e);N(t),i=t.shouldStopPropagation}if(r&&r(!1),_(!1),t&&l&&!R){let r=new x("press",n,e);t(r),i&&=r.shouldStopPropagation}return o.isTriggeringEvent=!1,i},[R,N,r,t]),G=(0,v.i)(U),Y=(0,y.useCallback)((e,t)=>{let r=j.current;if(R)return!1;if(M){r.isTriggeringEvent=!0;let n=new x("pressup",t,e);return M(n),r.isTriggeringEvent=!1,n.shouldStopPropagation}return!0},[R,M]),$=(0,v.i)(Y),q=(0,y.useCallback)(e=>{let t=j.current;if(t.isPressed&&t.target){for(let r of(t.didFirePressStart&&null!=t.pointerType&&U(K(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,H(),F||(0,o.A)(t.target),t.disposables))r();t.disposables=[]}},[F,H,U]),X=(0,v.i)(q),J=(0,y.useCallback)(e=>{A&&q(e)},[A,q]),Z=(0,y.useCallback)(e=>{R||D?.(e)},[R,D]),Q=(0,y.useCallback)((e,t)=>{if(!R&&D){let r=new MouseEvent("click",e);(0,l.nh)(r,t),D((0,l.yA)(r))}},[R,D]),ee=(0,y.useMemo)(()=>{let e=j.current,t={onKeyDown(t){if(C(t.nativeEvent,t.currentTarget)&&(0,a.bE)(t.currentTarget,(0,a.NI)(t))){T((0,a.NI)(t),t.key)&&t.preventDefault();let l=!0;e.isPressed||t.repeat||(e.target=t.currentTarget,e.isPressed=!0,e.pointerType="keyboard",l=V(t,"keyboard"));let o=t.currentTarget;W((0,s.r3)(t.currentTarget),"keyup",(0,n.t)(t=>{C(t,o)&&!t.repeat&&(0,a.bE)(o,(0,a.NI)(t))&&e.target&&$(K(e.target,t),"keyboard")},r),!0),l&&t.stopPropagation(),t.metaKey&&(0,d.V5)()&&e.metaKeyEvents?.set(t.key,t.nativeEvent)}else"Meta"===t.key&&(e.metaKeyEvents=new Map)},onClick(t){if((!t||(0,a.bE)(t.currentTarget,(0,a.NI)(t)))&&t&&0===t.button&&!e.isTriggeringEvent&&!p.nG.isOpening){let r=!0;if(R&&t.preventDefault(),!e.ignoreEmulatedMouseEvents&&!e.isPressed&&("virtual"===e.pointerType||(0,f.Z)(t.nativeEvent))){let e=V(t,"virtual"),n=$(t,"virtual"),l=G(t,"virtual");Z(t),r=e&&n&&l}else if(e.isPressed&&"keyboard"!==e.pointerType){let n=e.pointerType||t.nativeEvent.pointerType||"virtual",l=$(K(t.currentTarget,t),n),o=G(K(t.currentTarget,t),n,!0);r=l&&o,e.isOverTarget=!1,Z(t),X(t)}e.ignoreEmulatedMouseEvents=!1,r&&t.stopPropagation()}}},r=t=>{if(e.isPressed&&e.target&&C(t,e.target)){T((0,a.NI)(t),t.key)&&t.preventDefault();let r=(0,a.NI)(t),n=(0,a.bE)(e.target,r);G(K(e.target,t),"keyboard",n),n&&Q(t,e.target),H(),"Enter"!==t.key&&P(e.target)&&(0,a.bE)(e.target,r)&&!t[w]&&(t[w]=!0,(0,p.nG)(e.target,t,!1)),e.
4isPressed=!1,e.metaKeyEvents?.delete(t.key)}else if("Meta"===t.key&&e.metaKeyEvents?.size){let t=e.metaKeyEvents;for(let r of(e.metaKeyEvents=void 0,t.values()))e.target?.dispatchEvent(new KeyboardEvent("keyup",r))}};if("undefined"!=typeof PointerEvent){t.onPointerDown=t=>{if(0!==t.button||!(0,a.bE)(t.currentTarget,(0,a.NI)(t)))return;if((0,f.c)(t.nativeEvent)){e.pointerType="virtual";return}e.pointerType=t.pointerType;let l=!0;if(!e.isPressed){e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=t.pointerId,e.target=t.currentTarget,F||(0,o.l)(e.target),l=V(t,e.pointerType);let i=(0,a.NI)(t);"releasePointerCapture"in i&&("hasPointerCapture"in i?i.hasPointerCapture(t.pointerId)&&i.releasePointerCapture(t.pointerId):i.releasePointerCapture(t.pointerId)),W((0,s.r3)(t.currentTarget),"pointerup",r,!1),W((0,s.r3)(t.currentTarget),"pointercancel",n,!1)}l&&t.stopPropagation()},t.onMouseDown=t=>{if((0,a.bE)(t.currentTarget,(0,a.NI)(t))&&0===t.button){if(L){let r=(0,l.WZ)(t.target);r&&e.disposables.push(r)}t.stopPropagation()}},t.onPointerUp=t=>{(0,a.bE)(t.currentTarget,(0,a.NI)(t))&&"virtual"!==e.pointerType&&0===t.button&&!e.isPressed&&$(t,e.pointerType||t.pointerType)},t.onPointerEnter=t=>{t.pointerId===e.activePointerId&&e.target&&!e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!0,V(K(e.target,t),e.pointerType))},t.onPointerLeave=t=>{t.pointerId===e.activePointerId&&e.target&&e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,G(K(e.target,t),e.pointerType,!1),J(t))};let r=t=>{if(t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&e.target){if((0,a.bE)(e.target,(0,a.NI)(t))&&null!=e.pointerType){let r=!1,n=setTimeout(()=>{e.isPressed&&e.target instanceof HTMLElement&&(r?X(t):((0,i.A)(e.target),e.target.click()))},80);W(t.currentTarget,"click",()=>r=!0,!0),e.disposables.push(()=>clearTimeout(n))}else X(t);e.isOverTarget=!1}},n=e=>{X(e)};t.onDragStart=e=>{(0,a.bE)(e.currentTarget,(0,a.NI)(e))&&X(e)}}return t},[W,R,L,H,F,J,V,Z,Q]);return(0,y.useEffect)(()=>{if(!B)return;let e=(0,s.r3)(B.current);if(!e||!e.head||e.getElementById(E))return;let t=e.createElement("style");t.id=E;let r=function(e){let t=e??("undefined"!=typeof document?document:void 0);if(!t)return u(t);if(c.has(t))return c.get(t);let r=t.querySelector('meta[property="csp-nonce"]'),n=r&&r instanceof(0,s.kR)(r).HTMLMetaElement&&(r.nonce||r.content)||u(t)||void 0;return void 0!==n&&c.set(t,n),n}(e);r&&(t.nonce=r),t.textContent=`
5@layer {
6  [${S}] {
7    touch-action: pan-x pan-y pinch-zoom;
8  }
9}
10    `.trim(),e.head.prepend(t)},[B]),(0,y.useEffect)(()=>{let e=j.current;return()=>{for(let t of(F||(0,o.A)(e.target??void 0),e.disposables))t();e.disposables=[]}},[F]),{isPressed:I||O,pressProps:(0,h.d)(z,ee,{[S]:!0})}}function P(e){return"A"===e.tagName&&e.hasAttribute("href")}function C(e,t){let{key:r,code:n}=e,l=t.getAttribute("role");return("Enter"===r||" "===r||"Spacebar"===r||"Space"===n)&&!(t instanceof(0,s.kR)(t).HTMLInputElement&&!M(t,r)||t instanceof(0,s.kR)(t).HTMLTextAreaElement||t.isContentEditable)&&!(("link"===l||!l&&P(t))&&"Enter"!==r)}function K(e,t){let r=t.clientX,n=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:r,clientY:n,key:t.key}}function T(e,t){return e instanceof HTMLInputElement?!M(e,t):!(e instanceof HTMLInputElement)&&(e instanceof HTMLButtonElement?"submit"!==e.type&&"reset"!==e.type:!P(e))}let N=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function M(e,t){return"checkbox"===e.type||"radio"===e.type?" "===t:N.has(e.type)}},83500:function(e,t,r){r.d(t,{I:function(){return i}});var n=r(2265);let l=new WeakMap;var o=r(38321);function i(e,t,r){let i,{type:a}=e,{isOpen:s}=t;(0,n.useEffect)(()=>{r&&r.current&&l.set(r.current,t.close)}),"menu"===a?i=!0:"listbox"===a&&(i="listbox");let u=(0,o.Me)();return{triggerProps:{"aria-haspopup":i,"aria-expanded":s,"aria-controls":s?u:void 0,onPress:t.toggle},overlayProps:{id:u}}}},12086:function(e,t,r){r.d(t,{k:function(){return l}});var n=r(41313);class l{constructor(e){this.ref=e}getItemRect(e){let t=this.ref.current;if(!t)return null;let r=null!=e?(0,n.D0)(this.ref,e):null;if(!r)return null;let l=t.getBoundingClientRect(),o=r.getBoundingClientRect();return{x:o.left-l.left-t.clientLeft+t.scrollLeft,y:o.top-l.top-t.clientTop+t.scrollTop,width:o.width,height:o.height}}getContentSize(){let e=this.ref.current;return{width:e?.scrollWidth??0,height:e?.scrollHeight??0}}getVisibleRect(){let e=this.ref.current;return{x:e?.scrollLeft??0,y:e?.scrollTop??0,width:e?.clientWidth??0,height:e?.clientHeight??0}}}},60764:function(e,t,r){r.d(t,{d:function(){return o}});var n=r(12086),l=r(49231);class o{constructor(...e){if(1===e.length){let t=e[0];this.collection=t.collection,this.ref=t.ref,this.collator=t.collator,this.disabledKeys=t.disabledKeys||new Set,this.disabledBehavior=t.disabledBehavior||"all",this.orientation=t.orientation||"vertical",this.direction=t.direction,this.layout=t.layout||"stack",this.layoutDelegate=t.layoutDelegate||new n.k(t.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 n.k(this.ref);"stack"===this.layout&&"vertical"===this.orientation&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}isDisabled(e){return"all"===this.disabledBehavior&&(e.props?.isDisabled||this.disabledKeys.has(e.key))}findNextNonDisabled(e,t){let r=e;for(;null!=r;){let e=this.collection.getItem(r);if(e?.type==="item"&&!this.isDisabled(e))return r;r=t(r)}return null}getNextKey(e){let t=e;return t=this.collection.getKeyAfter(t),this.findNextNonDisabled(t,e=>this.collection.getKeyAfter(e))}getPreviousKey(e){let t=e;return t=this.collection.getKeyBefore(t),this.findNextNonDisabled(t,e=>this.collection.getKeyBefore(e))}findKey(e,t,r){let n=e,l=this.layoutDelegate.getItemRect(n);if(!l||null==n)return null;let o=l;do{if(null==(n=t(n)))break;l=this.layoutDelegate.getItemRect(n)}while(l&&r(o,l)&&null!=n);return n}isSameRow(e,t){return e.y===t.y||e.x!==t.x}isSameColumn(e,t){return e.x===t.x||e.y!==t.y}getKeyBelow(e){return"grid"===this.layout&&"vertical"===this.orientation?this.findKey(e,e=>this.getNextKey(e),this.isSameRow):this.getNextKey(e)}
10getKeyAbove(e){return"grid"===this.layout&&"vertical"===this.orientation?this.findKey(e,e=>this.getPreviousKey(e),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,t){return t?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){let t="ltr"===this.direction?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,e=>this.layoutDelegate[t](e))):"grid"===this.layout?"vertical"===this.orientation?this.getNextColumn(e,"rtl"===this.direction):this.findKey(e,e=>this.getNextColumn(e,"rtl"===this.direction),this.isSameColumn):"horizontal"===this.orientation?this.getNextColumn(e,"rtl"===this.direction):null}getKeyLeftOf(e){let t="ltr"===this.direction?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,e=>this.layoutDelegate[t](e))):"grid"===this.layout?"vertical"===this.orientation?this.getNextColumn(e,"ltr"===this.direction):this.findKey(e,e=>this.getNextColumn(e,"ltr"===this.direction),this.isSameColumn):"horizontal"===this.orientation?this.getNextColumn(e,"ltr"===this.direction):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,e=>this.collection.getKeyAfter(e))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,e=>this.collection.getKeyBefore(e))}getKeyPageAbove(e){let t=this.ref.current,r=this.layoutDelegate.getItemRect(e);if(!r)return null;if(t&&!(0,l.a)(t))return this.getFirstKey();let n=e;if("horizontal"===this.orientation){let e=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>e&&null!=n;)r=null==(n=this.getKeyAbove(n))?null:this.layoutDelegate.getItemRect(n)}else{let e=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>e&&null!=n;)r=null==(n=this.getKeyAbove(n))?null:this.layoutDelegate.getItemRect(n)}return n??this.getFirstKey()}getKeyPageBelow(e){let t=this.ref.current,r=this.layoutDelegate.getItemRect(e);if(!r)return null;if(t&&!(0,l.a)(t))return this.getLastKey();let n=e;if("horizontal"===this.orientation){let e=Math.min(this.layoutDelegate.getContentSize().width,r.x-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<e&&null!=n;)r=null==(n=this.getKeyBelow(n))?null:this.layoutDelegate.getItemRect(n)}else{let e=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<e&&null!=n;)r=null==(n=this.getKeyBelow(n))?null:this.layoutDelegate.getItemRect(n)}return n??this.getLastKey()}getKeyForSearch(e,t){if(!this.collator)return null;let r=this.collection,n=t||this.getFirstKey();for(;null!=n;){let t=r.getItem(n);if(!t)break;let l=t.textValue.slice(0,e.length);if(t.textValue&&0===this.collator.compare(l,e))return n;n=this.getNextKey(n)}return null}}},15510:function(e,t,r){r.d(t,{g:function(){return w}});var n=r(3781),l=r(40916),o=r(81780),i=r(91482),a=r(44798),s=r(92200),u=r(73717),c=r(41313),d=r(4421),f=r(5934),h=r(40582),p=r(13850),g=r(75210),v=r(13901),m=r(45952),b=r(2265),y=r(83750),x=r(54887);function w(e){let t,{selectionManager:r,keyboardDelegate:w,ref:E,autoFocus:S=!1,shouldFocusWrap:k=!1,disallowEmptySelection:P=!1,disallowSelectAll:C=!1,escapeKeyBehavior:K="clearSelection",selectOnFocus:T="replace"===r.selectionBehavior,disallowTypeAhead:N=!1,shouldUseVirtualFocus:M,allowsTabNavigation:D=!1,scrollRef:R=E,linkBehavior:I="action"}=e,{direction:L}=(0,v.j)(),A=(0,m.tv)(),F=(0,b.useRef)({top:0,left:0});(0,g.z)(R,"scroll",()=>{F.current={top:R.current?.scrollTop??0,left:R.current?.scrollLeft??0}});let B=(0,b.useRef)(!1);(0,g.z)(E,n.N,M?e=>{let{detail:t}=e;e.stopPropagation(),r.setFocused(!0),t?.focusStrategy==="first"&&(B.current=!0)}:void 0),(0,y.i)(()=>{if(B.current){let e=w.getFirstKey?.()??null;if(null==e){let e=(0,a.vY)();(0,l.q6)(E.current),(0,l.Jv)(e,null),r.collection.size>0&&(B.current=!1)}else r.setFocusedKey(e),B.current=!1}},[r.collection]),(0,y.i)(()=>{r.collection.size>0&&(B.current=!1)},[r.focusedKey]),(0,g.z)(E,n.o,M?e=>{e.stopPropagation(),r.setFocused(!1),e.detail?.clearFocusKey&&r.setFocusedKey(null)}:void 0);let z=(0,b.useRef)(S),O=(0,b.useRef)(!1);(0,b.useEffect)(()=>
10{if(z.current){let e=null;"first"===S&&(e=w.getFirstKey?.()??null),"last"===S&&(e=w.getLastKey?.()??null);let t=r.selectedKeys;if(t.size){for(let n of t)if(r.canSelectItem(n)){e=n;break}}r.setFocused(!0),r.setFocusedKey(e),null==e&&!M&&E.current&&(0,o.e)(E.current),r.collection.size>0&&(z.current=!1,O.current=!0)}});let _=(0,b.useRef)(r.focusedKey),j=(0,b.useRef)(null);(0,b.useEffect)(()=>{if(r.isFocused&&null!=r.focusedKey&&(r.focusedKey!==_.current||O.current)&&R.current&&E.current){let e=(0,u.Jz)(),t=(0,c.D0)(E,r.focusedKey);if(!(t instanceof HTMLElement))return;("keyboard"===e||O.current)&&(j.current&&cancelAnimationFrame(j.current),j.current=requestAnimationFrame(()=>{R.current&&((0,p.z)(R.current,t),"virtual"!==e&&(0,p.G)(t,{containingElement:E.current}))}))}!M&&r.isFocused&&null==r.focusedKey&&null!=_.current&&E.current&&(0,o.e)(E.current),_.current=r.focusedKey,O.current=!1}),(0,b.useEffect)(()=>()=>{j.current&&cancelAnimationFrame(j.current)},[]),(0,g.z)(E,"react-aria-focus-scope-restore",e=>{e.preventDefault(),r.setFocused(!0)});let W={onKeyDown:e=>{if(e.altKey&&"Tab"===e.key&&e.preventDefault(),!E.current||!(0,a.bE)(E.current,(0,a.NI)(e)))return;let t=(t,n)=>{if(null!=t){if(r.isLink(t)&&"selection"===I&&T&&!(0,c.FJ)(e)){(0,x.flushSync)(()=>{r.setFocusedKey(t,n)});let l=(0,c.D0)(E,t),o=r.getItemProps(t);l&&A.open(l,e,o.href,o.routerOptions);return}r.setFocusedKey(t,n),r.isLink(t)&&"override"===I||(e.shiftKey&&"multiple"===r.selectionMode?r.extendSelection(t):T&&!(0,c.FJ)(e)&&r.replaceSelection(t))}};switch(e.key){case"ArrowDown":if(w.getKeyBelow){let n=null!=r.focusedKey?w.getKeyBelow?.(r.focusedKey):w.getFirstKey?.();null==n&&k&&(n=w.getFirstKey?.(r.focusedKey)),null!=n&&(e.preventDefault(),t(n))}break;case"ArrowUp":if(w.getKeyAbove){let n=null!=r.focusedKey?w.getKeyAbove?.(r.focusedKey):w.getLastKey?.();null==n&&k&&(n=w.getLastKey?.(r.focusedKey)),null!=n&&(e.preventDefault(),t(n))}break;case"ArrowLeft":if(w.getKeyLeftOf){let n=null!=r.focusedKey?w.getKeyLeftOf?.(r.focusedKey):w.getFirstKey?.();null==n&&k&&(n="rtl"===L?w.getFirstKey?.(r.focusedKey):w.getLastKey?.(r.focusedKey)),null!=n&&(e.preventDefault(),t(n,"rtl"===L?"first":"last"))}break;case"ArrowRight":if(w.getKeyRightOf){let n=null!=r.focusedKey?w.getKeyRightOf?.(r.focusedKey):w.getFirstKey?.();null==n&&k&&(n="rtl"===L?w.getLastKey?.(r.focusedKey):w.getFirstKey?.(r.focusedKey)),null!=n&&(e.preventDefault(),t(n,"rtl"===L?"last":"first"))}break;case"Home":if(w.getFirstKey){if(null===r.focusedKey&&e.shiftKey)return;e.preventDefault();let t=w.getFirstKey(r.focusedKey,(0,d.y)(e));r.setFocusedKey(t),null!=t&&((0,d.y)(e)&&e.shiftKey&&"multiple"===r.selectionMode?r.extendSelection(t):T&&r.replaceSelection(t))}break;case"End":if(w.getLastKey){if(null===r.focusedKey&&e.shiftKey)return;e.preventDefault();let t=w.getLastKey(r.focusedKey,(0,d.y)(e));r.setFocusedKey(t),null!=t&&((0,d.y)(e)&&e.shiftKey&&"multiple"===r.selectionMode?r.extendSelection(t):T&&r.replaceSelection(t))}break;case"PageDown":if(w.getKeyPageBelow&&null!=r.focusedKey){let n=w.getKeyPageBelow(r.focusedKey);null!=n&&(e.preventDefault(),t(n))}break;case"PageUp":if(w.getKeyPageAbove&&null!=r.focusedKey){let n=w.getKeyPageAbove(r.focusedKey);null!=n&&(e.preventDefault(),t(n))}break;case"a":(0,d.y)(e)&&"multiple"===r.selectionMode&&!0!==C&&(e.preventDefault(),r.selectAll());break;case"Escape":"clearSelection"!==K||P||0===r.selectedKeys.size||(e.stopPropagation(),e.preventDefault(),r.clearSelection());break;case"Tab":if(!D){if(e.shiftKey)E.current.focus();else{let e,t,r=(0,s.QL)(E.current,{tabbable:!0});do(t=r.lastChild())&&(e=t);while(t);let n=(0,a.vY)();e&&(!(0,a.ak)(e)||n&&!(0,f.W)(n))&&(0,i.A)(e)}}}},onFocus:e=>{if(r.isFocused){(0,a.bE)(e.currentTarget,(0,a.NI)(e))||r.setFocused(!1);return}if((0,a.bE)(e.currentTarget,(0,a.NI)(e))){if(r.setFocused(!0),null==r.focusedKey){let t=e=>{null!=e&&(r.setFocusedKey(e),T&&!r.isSelected(e)&&r.replaceSelection(e))},n=e.relatedTarget;n&&e.currentTarget.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING?t(r.lastSelectedKey??w.getLastKey?.()):t(r.firstSelectedKey??w.getFirstKey?.())}else R.current&&(R.current.scrollTop=F.current.top,R.current.scrollLeft=F.current.left);if(null!=r.focusedKey&&R.current){let e=(0,c.D0)(E,r.focusedKey);e instanceof HTMLElement&&((0,a.ak)(e)||M||(0,i.A)(e),"keyboard"===(0,u.Jz)()&&(0,p.G)(e,{containingElement:E.current}))}}},onBlur:e=>{(0,a.bE)(e.currentTarget,e.relatedTarget)||r.setFocused(!1)},onMouseDown(e){R.current===(0,a.NI)(e)&&e.preventDefault()}}
10,{typeSelectProps:H}=function(e){let{keyboardDelegate:t,selectionManager:r,onTypeSelect:n}=e,l=(0,b.useRef)({search:"",timeout:void 0}).current;return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?e=>{var o;let i=1!==(o=e.key).length&&/^[A-Z]/i.test(o)?"":o;if(i&&!e.ctrlKey&&!e.metaKey&&(0,a.bE)(e.currentTarget,(0,a.NI)(e))&&(0!==l.search.length||" "!==i)){if(" "!==i||!(l.search.trim().length>0)||(e.preventDefault(),"continuePropagation"in e||e.stopPropagation()),l.search+=i,null!=t.getKeyForSearch){let e=t.getKeyForSearch(l.search,r.focusedKey);null==e&&(e=t.getKeyForSearch(l.search)),null!=e&&(r.setFocusedKey(e),n&&n(e))}clearTimeout(l.timeout),l.timeout=setTimeout(()=>{l.search=""},1e3)}}:void 0}}}({keyboardDelegate:w,selectionManager:r});N||(W=(0,h.d)(H,W)),M||(t=null==r.focusedKey?0:-1);let V=(0,c.Mm)(r.collection);return{collectionProps:(0,h.d)(W,{tabIndex:t,"data-collection":V})}}},85408:function(e,t,r){r.d(t,{C:function(){return g}});var n=r(20453),l=r(81780),o=r(44798),i=r(41313),a=r(4421),s=r(40582),u=r(40916),c=r(45952),d=r(95594),f=r(38321),h=r(12443),p=r(2265);function g(e){let{id:t,selectionManager:r,key:g,ref:v,shouldSelectOnPressUp:m,shouldUseVirtualFocus:b,focus:y,isDisabled:x,onAction:w,allowsDifferentPressOrigin:E,linkBehavior:S="action"}=e,k=(0,c.tv)();t=(0,f.Me)(t);let P=e=>{if("keyboard"===e.pointerType&&(0,i.FJ)(e))r.toggleSelection(g);else{if("none"===r.selectionMode)return;if(r.isLink(g)){if("selection"===S&&v.current){let t=r.getItemProps(g);k.open(v.current,e,t.href,t.routerOptions),r.setSelectedKeys(r.selectedKeys);return}if("override"===S||"none"===S)return}"single"===r.selectionMode?r.isSelected(g)&&!r.disallowEmptySelection?r.toggleSelection(g):r.replaceSelection(g):e&&e.shiftKey?r.extendSelection(g):"toggle"===r.selectionBehavior||e&&((0,a.y)(e)||"touch"===e.pointerType||"virtual"===e.pointerType)?r.toggleSelection(g):r.replaceSelection(g)}};(0,p.useEffect)(()=>{g===r.focusedKey&&r.isFocused&&(b?(0,u.q6)(v.current):y?y():(0,o.vY)()!==v.current&&v.current&&(0,l.e)(v.current))},[v,g,r.focusedKey,r.childFocusStrategy,r.isFocused,b]),x=x||r.isDisabled(g);let C={};b||x?x&&(C.onMouseDown=e=>{e.preventDefault()}):C={tabIndex:g===r.focusedKey?0:-1,onFocus(e){(0,o.NI)(e)===v.current&&r.setFocusedKey(g)}},(0,p.useEffect)(()=>{x&&r.focusedKey===g&&r.setFocusedKey(null)},[r,x,g]);let K=r.isLink(g)&&"override"===S,T=w&&"action"===e.UNSTABLE_itemBehavior,N=r.isLink(g)&&"selection"!==S&&"none"!==S,M=!x&&r.canSelectItem(g)&&!K&&!T,D=(w||N)&&!x,R=D&&("replace"===r.selectionBehavior?!M:!M||r.isEmpty),I=D&&M&&"replace"===r.selectionBehavior,L=R||I,A=(0,p.useRef)(null),F=L&&M,B=(0,p.useRef)(!1),z=(0,p.useRef)(!1),O=r.getItemProps(g),_=e=>{w&&(w(),v.current?.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))),N&&v.current&&k.open(v.current,e,O.href,O.routerOptions)},j={ref:v};if(m?(j.onPressStart=e=>{A.current=e.pointerType,B.current=F,"keyboard"!==e.pointerType||L&&" "!==e.key||P(e)},E?(j.onPressUp=R?void 0:e=>{"mouse"===e.pointerType&&M&&P(e)},j.onPress=R?_:e=>{"keyboard"!==e.pointerType&&"mouse"!==e.pointerType&&M&&P(e)}):j.onPress=e=>{R||I&&"mouse"!==e.pointerType?("keyboard"!==e.pointerType||"Enter"===e.key)&&_(e):"keyboard"!==e.pointerType&&M&&P(e)}):(j.onPressStart=e=>{A.current=e.pointerType,B.current=F,z.current=R,!M||("mouse"!==e.pointerType||R)&&("keyboard"!==e.pointerType||D&&" "!==e.key)||P(e)},j.onPress=e=>{("touch"===e.pointerType||"pen"===e.pointerType||"virtual"===e.pointerType||"keyboard"===e.pointerType&&L&&"Enter"===e.key||"mouse"===e.pointerType&&z.current)&&(L?_(e):M&&P(e))}),C["data-collection"]=(0,i.Zx)(r.collection),C["data-key"]=g,j.preventFocusOnPress=b,b&&(j=(0,s.d)(j,{onPressStart(e){"touch"!==e.pointerType&&(r.setFocused(!0),r.setFocusedKey(g))},onPress(e){"touch"===e.pointerType&&(r.setFocused(!0),r.setFocusedKey(g))}})),O)for(let e of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])O[e]&&(j[e]=(0,n.t)(j[e],O[e]));let{pressProps:W,isPressed:H}=(0,d.r)(j),V=I?e=>{"mouse"===A.current&&(e.stopPropagation(),e.preventDefault(),_(e))}:void 0,{longPressProps:U}=(0,h.T)({isDisabled:!F,onLongPress(e){"touch"===e.pointerType&&(P(e),r.setSelectionBehavior("toggle"))}}),G="none"!==S&&r.isLink(g)?e=>{c.nG.isOpening||e.preventDefault()}:void 0;return{itemProps:(0,s.d)(C,M||R||b&&!x?W:{},F?U:{},{onDoubleClick:V,onDragStartCapture:e=>{"touch"===A.current&&B.current&&e.preventDefault()},onClick:G,id:t},b?{onMouseDown:e=>e.preventDefault()}:void 0),isPressed:H,isSelected:r.isSelected(g),isFocused:r.isFocused&&r.focusedKey===g,isDisabled:x,allowsSelection:M,hasAction:L}}},25113:function(e,t,r){r.d(t,{_:function(){return a}});var n=r(15510),l=r(60764),o=r(16999),i=r(2265);function a(e){let{selectionManager:t,collection:r,disabledKeys:a,ref:s,keyboardDelegate:u,layoutDelegate:c,orientation:d}=e,f=(0,o.X)({usage:"search",sensitivity:"base"}),h=t.disabledBehavior,p=(0,i.useMemo)(()=>u||new l.d({collection:r,disabledKeys:a,disabledBehavior:h,ref:s,collator:f,layoutDelegate:c,orientation:d}),[u,c,r,a,s,f,h,d]),{collectionProps:g}=(0,n.g)({...e,ref:s,selectionManager:t,keyboardDelegate:p});return{listProps:g}}},41313:function(e,t,r){r.d(t,{D0:function(){return i},FJ:function(){return o},Mm:function(){return s},Zx:function(){return u}});var n=r(79279),l=r(38321);function o(e){return(0,n.ad)()?e.altKey:e.ctrlKey}function i(e,t){let r=`[data-key="${CSS.escape(String(t))}"]`,n=e.current?.dataset.collection;return n&&(r=`[data-collection="${CSS.escape(n)}"]${r}`),e.current?.querySelector(r)}let a=new WeakMap;function s(e){let t=(0,l.Me)();return a.set(e,t),t}function u(e){return a.get(e)}},3781:function(e,t,r){r.d(t,{N:function(){return l},o:function(){return n}});let n="react-aria-clear-focus",l="react-aria-focus"},28866:function(e,t,r){r.d(t,{r:function(){return l}});var n=r(49231);function l(e,t){let r=e;for((0,n.a)(r,t)&&(r=r.parentElement);r&&!(0,n.a)(r,t);)r=r.parentElement;return r||document.scrollingElement||document.documentElement}},49231:function(e,t,r){r.d(t,{a:function(){return n}});function n(e,t){if(!e)return!1;let r=window.getComputedStyle(e),n=document.scrollingElement||document.documentElement,l=/(auto|scroll)/.test(r.overflow+r.overflowX+r.overflowY);
10return e===n&&"hidden"!==r.overflow&&(l=!0),l&&t&&(l=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),l}},4421:function(e,t,r){r.d(t,{y:function(){return l}});var n=r(79279);function l(e){return(0,n.V5)()?e.metaKey:e.ctrlKey}},13850:function(e,t,r){r.d(t,{z:function(){return i},G:function(){return a}});var n=r(49231);function l(e,t){let r=[],l=document.scrollingElement||document.documentElement;do(0,n.a)(e,t)&&r.push(e),e=e.parentElement;while(e&&e!==l);return r}var o=r(79279);function i(e,t,r={}){let{block:n="nearest",inline:l="nearest"}=r;if(e===t)return;let i=e.scrollTop,a=e.scrollLeft,s=t.getBoundingClientRect(),u=e.getBoundingClientRect(),c=window.getComputedStyle(t),d=window.getComputedStyle(e),f=document.scrollingElement||document.documentElement,h=e===f?0:u.top,p=e===f?e.clientHeight:u.bottom,g=e===f?0:u.left,v=e===f?e.clientWidth:u.right,m=parseInt(c.scrollMarginTop,10)||0,b=parseInt(c.scrollMarginBottom,10)||0,y=parseInt(c.scrollMarginLeft,10)||0,x=parseInt(c.scrollMarginRight,10)||0,w=parseInt(d.scrollPaddingTop,10)||0,E=parseInt(d.scrollPaddingBottom,10)||0,S=parseInt(d.scrollPaddingLeft,10)||0,k=parseInt(d.scrollPaddingRight,10)||0,P=parseInt(d.borderTopWidth,10)||0,C=parseInt(d.borderBottomWidth,10)||0,K=parseInt(d.borderLeftWidth,10)||0,T=parseInt(d.borderRightWidth,10)||0,N=s.top-m,M=s.bottom+b,D=s.left-y,R=s.right+x,I=e===f?0:K+T,L=e===f?0:P+C,A=e.offsetWidth-e.clientWidth-I,F=e.offsetHeight-e.clientHeight-L,B=h+P+w,z=p-C-E-F,O=g+K+S,_=v-T-k;"rtl"!==d.direction||(0,o.gn)()?_-=A:O+=A;let j=N<B||M>z,W=D<O||R>_;if(j&&"start"===n)i+=N-B;else if(j&&"center"===n)i+=(N+M)/2-(B+z)/2;else if(j&&"end"===n)i+=M-z;else if(j&&"nearest"===n){let e=N-B,t=M-z;i+=Math.abs(e)<=Math.abs(t)?e:t}if(W&&"start"===l)a+=D-O;else if(W&&"center"===l)a+=(D+R)/2-(O+_)/2;else if(W&&"end"===l)a+=R-_;else if(W&&"nearest"===l){let e=D-O,t=R-_;a+=Math.abs(e)<=Math.abs(t)?e:t}e.scrollTo({left:a,top:i})}function a(e,t={}){let{containingElement:r}=t;if(e&&e.isConnected){let t=document.scrollingElement||document.documentElement;if("hidden"===window.getComputedStyle(t).overflow){let{left:t,top:n}=e.getBoundingClientRect(),o=l(e,!0);for(let t of o)i(t,e);let{left:a,top:s}=e.getBoundingClientRect();if(Math.abs(t-a)>1||Math.abs(n-s)>1)for(let e of o=r?l(r,!0):[])i(e,r,{block:"center",inline:"center"})}else{let{left:t,top:n}=e.getBoundingClientRect();e?.scrollIntoView?.({block:"nearest"});let{left:l,top:o}=e.getBoundingClientRect();(Math.abs(t-l)>1||Math.abs(n-o)>1)&&(r?.scrollIntoView?.({block:"center",inline:"center"}),e.scrollIntoView?.({block:"nearest"}))}}}},88047:function(e,t,r){r.d(t,{A:function(){return i}});var n=r(44798),l=r(58385);class o{constructor(e,t,r,n){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=e=>{if(e.nodeType===Node.ELEMENT_NODE){let t=e.shadowRoot;if(t){let e=this._doc.createTreeWalker(t,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(e),NodeFilter.FILTER_ACCEPT}if("function"==typeof this.filter)return this.filter(e);if(this.filter?.acceptNode)return this.filter.acceptNode(e);if(null===this.filter)return NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_SKIP},this._doc=e,this.root=t,this.filter=n??null,this.whatToShow=r??NodeFilter.SHOW_ALL,this._currentNode=t,this._walkerStack.unshift(e.createTreeWalker(t,r,this._acceptNode));let l=t.shadowRoot;if(l){let e=this._doc.createTreeWalker(l,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(e)}}get currentNode(){return this._currentNode}set currentNode(e){if(!(0,n.bE)(this.root,e))throw Error("Cannot set currentNode to a node that is not contained by the root node.");let t=[],r=e,l=e;for(this._currentNode=e;r&&r!==this.root;)if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let e=r,n=this._doc.createTreeWalker(e,this.whatToShow,{acceptNode:this._acceptNode});t.push(n),n.currentNode=l,this._currentSetFor.add(n),r=l=e.host}else r=r.parentNode;let o=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});t.push(o),o.currentNode=l,this._currentSetFor.add(o),this._walkerStack=t}get doc(){return this._doc}firstChild(){let e=this.currentNode,t=this.nextNode();return(0,n.bE)(e,t)?(t&&(this.currentNode=t),t):(this.currentNode=e,null)}lastChild(){let e=this._walkerStack[0].lastChild();return e&&(this.currentNode=e),e}nextNode(){let e=this._walkerStack[0].nextNode();if(e){if(e.shadowRoot){let t;if("function"==typeof this.filter?t=this.filter(e):this.filter?.acceptNode&&(t=this.filter.acceptNode(e)),t===NodeFilter.FILTER_ACCEPT)return this.currentNode=e,e;let r=this.nextNode();return r&&(this.currentNode=r),r}return e&&(this.currentNode=e),e}if(!(this._walkerStack.length>1))return null;{this._walkerStack.shift();let e=this.nextNode();return e&&(this.currentNode=e),e}}previousNode(){let e=this._walkerStack[0];if(e.currentNode===e.root){if(this._currentSetFor.has(e)&&(this._currentSetFor.delete(e),this._walkerStack.length>1)){this._walkerStack.shift();let e=this.previousNode();return e&&(this.currentNode=e),e}return null}let t=e.previousNode();if(t){if(t.shadowRoot){let e;if("function"==typeof this.filter?e=this.filter(t):this.filter?.acceptNode&&(e=this.filter.acceptNode(t)),e===NodeFilter.FILTER_ACCEPT)return t&&(this.currentNode=t),t;let r=this.lastChild();return r&&(this.currentNode=r),r}return t&&(this.currentNode=t),t}if(!(this._walkerStack.length>1))return null;{this._walkerStack.shift();let e=this.previousNode();return e&&(this.currentNode=e),e}}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}}function i(e,t,r,n){return(0,l.Wr)()?new o(e,t,r,n):e.createTreeWalker(t,r,n)}},87523:function(e,t,r){r.d(t,{P:function(){return a}});var n=r(8351),l=r(2265);let o=0,i=new Map;function a(e){let[t,r]=(0,l.useState)();return(0,n.b)(()=>
10{if(!e)return;let t=i.get(e);if(t)r(t.element.id);else{let n=`react-aria-description-${o++}`;r(n);let l=document.createElement("div");l.id=n,l.style.display="none",l.textContent=e,document.body.appendChild(l),t={refCount:0,element:l},i.set(e,t)}return t.refCount++,()=>{t&&0==--t.refCount&&(t.element.remove(),i.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}},75210:function(e,t,r){r.d(t,{z:function(){return o}});var n=r(27078),l=r(2265);function o(e,t,r,o){let i=(0,n.i)(r),a=null==r;(0,l.useEffect)(()=>{if(a||!e.current)return;let r=e.current;return r.addEventListener(t,i,o),()=>{r.removeEventListener(t,i,o)}},[e,t,o,a])}},83750:function(e,t,r){r.d(t,{i:function(){return o}});var n=r(8351),l=r(2265);function o(e,t){let r=(0,l.useRef)(!0),o=(0,l.useRef)(null);(0,n.b)(()=>(r.current=!0,()=>{r.current=!1}),[]),(0,n.b)(()=>{r.current?r.current=!1:(!o.current||t.some((e,t)=>!Object.is(e,o[t])))&&e(),o.current=t},t)}},92474:function(e,t,r){function n(e,t){return"function"==typeof t.getChildren?t.getChildren(e.key):e.childNodes}function l(e){return o(e,0)}function o(e,t){if(t<0)return;let r=0;for(let n of e){if(r===t)return n;r++}}function i(e){let t;for(let r of e)t=r;return t}function a(e,t,r){if(t.parentKey===r.parentKey)return t.index-r.index;let n=[...s(e,t),t],l=[...s(e,r),r],o=n.slice(0,l.length).findIndex((e,t)=>e!==l[t]);return -1!==o?(t=n[o],r=l[o],t.index-r.index):n.findIndex(e=>e===r)>=0?1:(l.findIndex(e=>e===t),-1)}function s(e,t){let r=[],n=t;for(;n?.parentKey!=null;)(n=e.getItem(n.parentKey))&&r.unshift(n);return r}r.d(t,{Em:function(){return o},_P:function(){return n},eg:function(){return a},l8:function(){return l},s:function(){return i}})},14052:function(e,t,r){r.d(t,{i:function(){return o}});var n=r(92474);let l=new WeakMap;function o(e){let t=l.get(e);if(null!=t)return t;let r=0,o=t=>{for(let l of t)"section"===l.type?o((0,n._P)(l,e)):"item"===l.type&&r++};return o(e),l.set(e,r),r}},58149:function(e,t,r){r.d(t,{K:function(){return a}});var n=r(2265);class l{build(e,t){return this.context=t,o(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:t,items:r}=e;if(n.isValidElement(t)&&t.type===n.Fragment)yield*this.iterateCollection({children:t.props.children,items:r});else if("function"==typeof t){if(!r)throw Error("props.children was a function but props.items is missing");let e=0;for(let n of r)yield*this.getFullNode({value:n,index:e},{renderer:t}),e++}else{let e=[];n.Children.forEach(t,t=>{t&&e.push(t)});let r=0;for(let t of e)for(let e of this.getFullNode({element:t,index:r},{}))r++,yield e}}getKey(e,t,r,n){if(null!=e.key)return e.key;if("cell"===t.type&&null!=t.key)return`${n}${t.key}`;let l=t.value;if(null!=l){let e=l.key??l.id;if(null==e)throw Error("No key found for item");return e}return n?`${n}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,r,l){if(n.isValidElement(e.element)&&e.element.type===n.Fragment){let o=[];n.Children.forEach(e.element.props.children,e=>{o.push(e)});let i=e.index??0;for(let e of o)yield*this.getFullNode({element:e,index:i++},t,r,l);return}let a=e.element;if(!a&&e.value&&t&&t.renderer){let r=this.cache.get(e.value);if(r&&(!r.shouldInvalidate||!r.shouldInvalidate(this.context))){r.index=e.index,r.parentKey=l?l.key:null,yield r;return}a=t.renderer(e.value)}if(n.isValidElement(a)){let n=a.type;if("function"!=typeof n&&"function"!=typeof n.getCollectionNode){let e=a.type;throw Error(`Unknown element <${e}> in collection.`)}let o=n.getCollectionNode(a.props,this.context),s=e.index??0,u=o.next();for(;!u.done&&u.value;){let n=u.value;e.index=s;let c=n.key??null;null==c&&(c=n.element?null:this.getKey(a,e,t,r));let d=[...this.getFullNode({...n,key:c,index:s,wrapper:function(e,t){return e&&t?r=>e(t(r)):e||t||void 0}(e.wrapper,n.wrapper)},this.getChildState(t,n),r?`${r}${a.key}`:a.key,l)];for(let t of d){if(t.value=n.value??e.value??null,t.value&&this.cache.set(t.value,t),e.type&&t.type!==e.type)throw Error(`Unsupported type <${i(t.type)}> in <${i(l?.type??"unknown parent type")}>. Only <${i(e.type)}> is supported.`);s++,yield t}
10u=o.next(d)}return}if(null==e.key||null==e.type)return;let s=this,u={type:e.type,props:e.props,key:e.key,parentKey:l?l.key:null,value:e.value??null,level:(l?.level??0)+(l?.type==="item"?1:0),index:e.index,rendered:e.rendered,textValue:e.textValue??"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:o(function*(){if(!e.hasChildNodes||!e.childNodes)return;let r=0;for(let n of e.childNodes())for(let e of(null!=n.key&&(n.key=`${u.key}${n.key}`),s.getFullNode({...n,index:r},s.getChildState(t,n),u.key,u)))r++,yield e})};yield u}constructor(){this.cache=new WeakMap}}function o(e){let t=[],r=null;return{*[Symbol.iterator](){for(let e of t)yield e;for(let n of(r||(r=e()),r))t.push(n),yield n}}}function i(e){return e[0].toUpperCase()+e.slice(1)}function a(e,t,r){let o=(0,n.useMemo)(()=>new l,[]),{children:i,items:a,collection:s}=e;return(0,n.useMemo)(()=>s||t(o.build({children:i,items:a},r)),[o,i,a,s,r,t])}},7157:function(e,t,r){r.d(t,{d:function(){return o}});var n=r(69861),l=r(2265);function o(e){let[t,r]=(0,n.z)(e.isOpen,e.defaultOpen||!1,e.onOpenChange),o=(0,l.useCallback)(()=>{r(!0)},[r]),i=(0,l.useCallback)(()=>{r(!1)},[r]),a=(0,l.useCallback)(()=>{r(!t)},[r,t]);return{isOpen:t,setOpen:r,open:o,close:i,toggle:a}}},93073:function(e,t,r){r.d(t,{Y:function(){return n}});class n extends Set{constructor(e,t,r){super(e),e instanceof n?(this.anchorKey=t??e.anchorKey,this.currentKey=r??e.currentKey):(this.anchorKey=t??null,this.currentKey=r??null)}}},567:function(e,t,r){r.d(t,{Z:function(){return o}});var n=r(92474),l=r(93073);class o{constructor(e,t,r){this.collection=e,this.state=t,this.allowsCellSelection=r?.allowsCellSelection??!1,this._isSelectAll=null,this.layoutDelegate=r?.layoutDelegate||null,this.fullCollection=r?.fullCollection||null}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,t){(null==e||this.collection.getItem(e))&&this.state.setFocusedKey(e,t)}get selectedKeys(){return"all"===this.state.selectedKeys?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if("none"===this.state.selectionMode)return!1;let t=this.getKey(e);return null!=t&&("all"===this.state.selectedKeys?this.canSelectItem(t):this.state.selectedKeys.has(t))}get isEmpty(){return"all"!==this.state.selectedKeys&&0===this.state.selectedKeys.size}get isSelectAll(){if(this.isEmpty)return!1;if("all"===this.state.selectedKeys)return!0;if(null!=this._isSelectAll)return this._isSelectAll;let e=this.getSelectAllKeys(),t=this.state.selectedKeys;return this._isSelectAll=e.every(e=>t.has(e)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let r=this.collection.getItem(t);(!e||r&&0>(0,n.eg)(this.collection,r,e))&&(e=r)}return e?.key??null}get lastSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let r=this.collection.getItem(t);(!e||r&&(0,n.eg)(this.collection,r,e)>0)&&(e=r)}return e?.key??null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){let t;if("none"===this.selectionMode)return;if("single"===this.selectionMode){this.replaceSelection(e);return}let r=this.getKey(e);if(null!=r){if("all"===this.state.selectedKeys)t=new l.Y([r],r,r);else{let e=this.state.selectedKeys,n=e.anchorKey??r;for(let o of(t=new l.Y(e,n,r),this.getKeyRange(n,e.currentKey??r)))t.delete(o);for(let e of this.getKeyRange(r,n))this.canSelectItem(e)&&t.add(e)}this.state.setSelectedKeys(t)}}getKeyRange(e,t){let r=this.collection.getItem(e),l=this.collection.getItem(t);return r&&l?0>=(0,n.eg)(this.collection,r,l)?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){if(this.layoutDelegate?.getKeyRange)return this.layoutDelegate.getKeyRange(e,t);let r=[],n=e;for(;null!=n;){let e=this.collection.getItem(n);if(e&&("item"===e.type||"cell"===e.type&&this.allowsCellSelection)&&r.push(n),n===t)return r;n=this.collection.getKeyAfter(n)}return[]}getKey(e){let t=this.collection.getItem(e);if(!t||"cell"===t.type&&this.allowsCellSelection)return e;for(;t&&"item"!==t.type&&null!=t.parentKey;)t=this.collection.getItem(t.parentKey);return t&&"item"===t.type?t.key:null}toggleSelection(e){if("none"===this.selectionMode)return;if("single"===this.selectionMode&&!this.isSelected(e)){this.replaceSelection(e);return}let t=this.getKey(e);if(null==t)return;
10let r=new l.Y("all"===this.state.selectedKeys?this.getSelectAllKeys():this.state.selectedKeys);r.has(t)?r.delete(t):this.canSelectItem(t)&&(r.add(t),r.anchorKey=t,r.currentKey=t),this.disallowEmptySelection&&0===r.size||this.state.setSelectedKeys(r)}replaceSelection(e){if("none"===this.selectionMode)return;let t=this.getKey(e);if(null==t)return;let r=this.canSelectItem(t)?new l.Y([t],t,t):new l.Y;this.state.setSelectedKeys(r)}setSelectedKeys(e){if("none"===this.selectionMode)return;let t=new l.Y;for(let r of e){let e=this.getKey(r);if(null!=e&&(t.add(e),"single"===this.selectionMode))break}this.state.setSelectedKeys(t)}getSelectAllKeys(){let e=this.fullCollection??this.collection,t=[],r=l=>{for(;null!=l;){if(this.canSelectItemIn(l,e)){let o=e.getItem(l);o?.type==="item"&&t.push(l),o?.hasChildNodes&&(this.allowsCellSelection||"item"!==o.type)&&r(n.l8(n._P(o,e))?.key??null)}l=e.getKeyAfter(l)}};return r(e.getFirstKey()),t}selectAll(){this.isSelectAll||"multiple"!==this.selectionMode||this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&("all"===this.state.selectedKeys||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new l.Y)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,t){"none"!==this.selectionMode&&("single"===this.selectionMode?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):"toggle"===this.selectionBehavior||t&&("touch"===t.pointerType||"virtual"===t.pointerType)?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let t=this.selectedKeys;if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;for(let r of t)if(!e.has(r))return!1;return!0}canSelectItem(e){return this.canSelectItemIn(e,this.collection)}canSelectItemIn(e,t){if("none"===this.state.selectionMode||this.state.disabledKeys.has(e))return!1;let r=t.getItem(e);return!(!r||r?.props?.isDisabled)&&("cell"!==r.type||!!this.allowsCellSelection)}isDisabled(e){return"all"===this.state.disabledBehavior&&(this.state.disabledKeys.has(e)||!!this.collection.getItem(e)?.props?.isDisabled)}isLink(e){return!!this.collection.getItem(e)?.props?.href}getItemProps(e){return this.collection.getItem(e)?.props}withCollection(e){return new o(e,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0,fullCollection:this.fullCollection??this.collection})}}},11417:function(e,t,r){r.d(t,{q:function(){return i}});var n=r(93073),l=r(69861),o=r(2265);function i(e){let{selectionMode:t="none",disallowEmptySelection:r=!1,allowDuplicateSelectionEvents:i,selectionBehavior:s="toggle",disabledBehavior:u="all"}=e,c=(0,o.useRef)(!1),[,d]=(0,o.useState)(!1),f=(0,o.useRef)(null),h=(0,o.useRef)(null),[,p]=(0,o.useState)(null),g=(0,o.useMemo)(()=>a(e.selectedKeys),[e.selectedKeys]),v=(0,o.useMemo)(()=>a(e.defaultSelectedKeys,new n.Y),[e.defaultSelectedKeys]),[m,b]=(0,l.z)(g,v,e.onSelectionChange),y=(0,o.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[x,w]=(0,o.useState)(s);"replace"===s&&"toggle"===x&&"object"==typeof m&&0===m.size&&w("replace");let E=(0,o.useRef)(s);return(0,o.useEffect)(()=>{s!==E.current&&(w(s),E.current=s)},[s]),{selectionMode:t,disallowEmptySelection:r,selectionBehavior:x,setSelectionBehavior:w,get isFocused(){return c.current},setFocused(e){c.current=e,d(e)},get focusedKey(){return f.current},get childFocusStrategy(){return h.current},setFocusedKey(e,t="first"){f.current=e,h.current=t,p(e)},selectedKeys:m,setSelectedKeys(e){(i||!function(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}(e,m))&&b(e)},disabledKeys:y,disabledBehavior:u}}function a(e,t){return e?"all"===e?"all":new n.Y(e):t}},84910:function(e,t,r){function n(e,t=-1/0,r=1/0){return Math.min(Math.max(e,t),r)}function l(e,t){let r=e,n=0,l=t.toString(),o=l.toLowerCase().indexOf("e-");if(o>0)n=Math.abs(Math.floor(Math.log10(Math.abs(t))))+o;else{let e=l.indexOf(".");e>=0&&(n=l.length-e)}if(n>0){let e=Math.pow(10,n);r=Math.round(r*e)/e}return r}function o(e,t,r,n){t=Number(t),r=Number(r);let o=(e-(isNaN(t)?0:t))%n,i=l(2*Math.abs(o)>=n?e+Math.sign(o)*(n-Math.abs(o)):e-o,n);return isNaN(t)?!isNaN(r)&&i>r&&(i=Math.floor(l(r/n,n))*n):i<t?i=t:!isNaN(r)&&i>r&&(i=t+Math.floor(l((r-t)/n,n))*n),i=l(i,n)}r.d(t,{N4:function(){return o},uZ:function(){return n}})}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.