@openpawlabs/diy-guides-ui 1.1.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,15 @@
1
- "use strict";var Ro=Object.create;var xr=Object.defineProperty;var jo=Object.getOwnPropertyDescriptor;var Oo=Object.getOwnPropertyNames;var Vo=Object.getPrototypeOf,Do=Object.prototype.hasOwnProperty;var $r=e=>{throw TypeError(e)};var Ao=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Oo(t))!Do.call(e,o)&&o!==r&&xr(e,o,{get:()=>t[o],enumerable:!(n=jo(t,o))||n.enumerable});return e};var _o=(e,t,r)=>(r=e!=null?Ro(Vo(e)):{},Ao(t||!e||!e.__esModule?xr(r,"default",{value:e,enumerable:!0}):r,e));var wr=(e,t,r)=>t.has(e)||$r("Cannot "+r);var Er=(e,t,r)=>(wr(e,t,"read from private field"),r?r.call(e):t.get(e)),kr=(e,t,r)=>t.has(e)?$r("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Pt=(e,t,r,n)=>(wr(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react/jsx-runtime"),l=require("react"),Fo=require("react-dom"),Te={GREY:"#7A8090",RED:"#E7320D",ORANGE:"#FF850A",YELLOW:"#F5E429",GREEN:"#14CC76",LIGHT_BLUE:"#20B3E9",BLUE:"#1738DE",MAGENTA:"#D945B1"};function Ke(e,t){const r=e.replace("#",""),n=parseInt(r.slice(0,2),16),o=parseInt(r.slice(2,4),16),a=parseInt(r.slice(4,6),16);return`rgba(${n}, ${o}, ${a}, ${t})`}function hn(e){const t=e.replace("#",""),r=parseInt(t.slice(0,2),16),n=parseInt(t.slice(2,4),16),o=parseInt(t.slice(4,6),16);return(.299*r+.587*n+.114*o)/255>.55?"#111111":"#ffffff"}const vn={note:"GREY",info:"LIGHT_BLUE",tip:"GREEN",caution:"ORANGE",danger:"RED"};function gn(e){return Te[vn[e]]}const ut={note:"Note",info:"Info",tip:"Tip",caution:"Caution",danger:"Danger"};function $t(e){var r;if(typeof window>"u"||window.navigator==null)return!1;let t=(r=window.navigator.userAgentData)==null?void 0:r.brands;return Array.isArray(t)&&t.some(n=>e.test(n.brand))||e.test(window.navigator.userAgent)}function rr(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)==null?void 0:t.platform)||window.navigator.platform):!1}function le(e){if(process.env.NODE_ENV==="test")return e;let t=null;return()=>(t==null&&(t=e()),t)}const Le=le(function(){return rr(/^Mac/i)}),Bo=le(function(){return rr(/^iPhone/i)}),yn=le(function(){return rr(/^iPad/i)||Le()&&navigator.maxTouchPoints>1}),nr=le(function(){return Bo()||yn()});le(function(){return Le()||nr()});const Go=le(function(){return $t(/AppleWebKit/i)&&!Ko()}),Ko=le(function(){return $t(/Chrome/i)}),xn=le(function(){return $t(/Android/i)}),zo=le(function(){return $t(/Firefox/i)});function Me(e){if(Ho())e.focus({preventScroll:!0});else{let t=Uo(e);e.focus(),Wo(t)}}let et=null;function Ho(){if(et==null){et=!1;try{document.createElement("div").focus({get preventScroll(){return et=!0,!0}})}catch{}}return et}function Uo(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}function Wo(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}const qo=l.createContext({isNative:!0,open:Zo,useHref:e=>e});function $n(){return l.useContext(qo)}function Yo(e,t){let r=e.getAttribute("target");return(!r||r==="_self")&&e.origin===location.origin&&!e.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function be(e,t,r=!0){var c,p;let{metaKey:n,ctrlKey:o,altKey:a,shiftKey:s}=t;zo()&&((p=(c=window.event)==null?void 0:c.type)!=null&&p.startsWith("key"))&&e.target==="_blank"&&(Le()?n=!0:o=!0);let i=Go()&&Le()&&!yn()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:n,ctrlKey:o,altKey:a,shiftKey:s}):new MouseEvent("click",{metaKey:n,ctrlKey:o,altKey:a,shiftKey:s,detail:1,bubbles:!0,cancelable:!0});be.isOpening=r,Me(e),e.dispatchEvent(i),be.isOpening=!1}be.isOpening=!1;function Xo(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)}}function Zo(e,t){Xo(e,r=>be(r,t))}function Jo(e){const r=$n().useHref((e==null?void 0:e.href)??"");let n={};if(e)for(let o of["href","target","rel","download","ping","referrerPolicy"])o in e&&(n[o]=o==="href"?r:e[o]);return n}function Qo(e,t,r,n){!t.isNative&&e.currentTarget instanceof HTMLAnchorElement&&e.currentTarget.href&&!e.isDefaultPrevented()&&Yo(e.currentTarget,e)&&r&&(e.preventDefault(),t.open(e.currentTarget,e,r,n))}const ce=typeof document<"u"?l.useLayoutEffect:()=>{},ft={prefix:String(Math.round(Math.random()*1e10)),current:0},wn=l.createContext(ft),ea=l.createContext(!1);let ta=!!(typeof window<"u"&&window.document&&window.document.createElement),St=new WeakMap;function ra(e=!1){var n,o;let t=l.useContext(wn),r=l.useRef(null);if(r.current===null&&!e){let a=(o=(n=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)==null?void 0:n.ReactCurrentOwner)==null?void 0:o.current;if(a){let s=St.get(a);s==null?St.set(a,{id:t.current,state:a.memoizedState}):a.memoizedState!==s.state&&(t.current=s.id,St.delete(a))}r.current=++t.current}return r.current}function na(e){let t=l.useContext(wn);t===ft&&!ta&&process.env.NODE_ENV!=="production"&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let r=ra(!!e),n=t===ft&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${n}-${r}`}function oa(e){let t=l.useId(),[r]=l.useState(or()),n=r||process.env.NODE_ENV==="test"?"react-aria":`react-aria${ft.prefix}`;return e||`${n}-${t}`}const aa=typeof l.useId=="function"?oa:na;function sa(){return!1}function ia(){return!0}function la(e){return()=>{}}function or(){return typeof l.useSyncExternalStore=="function"?l.useSyncExternalStore(la,sa,ia):l.useContext(ea)}let ca=!!(typeof window<"u"&&window.document&&window.document.createElement),Pe=new Map,Ae;typeof FinalizationRegistry<"u"&&(Ae=new FinalizationRegistry(e=>{Pe.delete(e)}));function Ne(e){let[t,r]=l.useState(e),n=l.useRef(null),o=aa(t),a=l.useRef(null);if(Ae&&Ae.register(a,o),ca){const s=Pe.get(o);s&&!s.includes(n)?s.push(n):Pe.set(o,[n])}return ce(()=>{let s=o;return()=>{Ae&&Ae.unregister(a),Pe.delete(s)}},[o]),l.useEffect(()=>{let s=n.current;return s&&r(s),()=>{s&&(n.current=null)}}),o}function da(e,t){if(e===t)return e;let r=Pe.get(e);if(r)return r.forEach(o=>o.current=t),t;let n=Pe.get(t);return n?(n.forEach(o=>o.current=e),e):t}function En(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}const Y=e=>(e==null?void 0:e.ownerDocument)??document,ae=e=>e&&"window"in e&&e.window===e?e:Y(e).defaultView||window;function ua(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function fa(e){return ua(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let pa=!1;function ar(){return pa}function D(e,t){if(!ar())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let r=t;for(;r!==null;){if(r===e)return!0;r.tagName==="SLOT"&&r.assignedSlot?r=r.assignedSlot.parentNode:fa(r)?r=r.host:r=r.parentNode}return!1}const me=(e=document)=>{var r;if(!ar())return e.activeElement;let t=e.activeElement;for(;t&&"shadowRoot"in t&&((r=t.shadowRoot)!=null&&r.activeElement);)t=t.shadowRoot.activeElement;return t};function I(e){if(ar()&&e.target instanceof Element&&e.target.shadowRoot){if("composedPath"in e)return e.composedPath()[0]??null;if("composedPath"in e.nativeEvent)return e.nativeEvent.composedPath()[0]??null}return e.target}function He(...e){return e.length===1&&e[0]?e[0]:t=>{let r=!1;const n=e.map(o=>{const a=Cr(o,t);return r||(r=typeof a=="function"),a});if(r)return()=>{n.forEach((o,a)=>{typeof o=="function"?o():Cr(e[a],null)})}}}function Cr(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function kn(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=kn(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ba(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=kn(e))&&(n&&(n+=" "),n+=t);return n}function K(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let n=e[r];for(let o in n){let a=t[o],s=n[o];typeof a=="function"&&typeof s=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=En(a,s):(o==="className"||o==="UNSAFE_className")&&typeof a=="string"&&typeof s=="string"?t[o]=ba(a,s):o==="id"&&a&&s?t.id=da(a,s):o==="ref"&&a&&s?t.ref=He(a,s):t[o]=s!==void 0?s:a}}return t}const ma=new Set(["id"]),ha=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),va=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),ga=new Set(["dir","lang","hidden","inert","translate"]),Pr=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"]),ya=/^(data-.*)$/;function ne(e,t={}){let{labelable:r,isLink:n,global:o,events:a=o,propNames:s}=t,i={};for(const c in e)Object.prototype.hasOwnProperty.call(e,c)&&(ma.has(c)||r&&ha.has(c)||n&&va.has(c)||o&&ga.has(c)||a&&(Pr.has(c)||c.endsWith("Capture")&&Pr.has(c.slice(0,-7)))||s!=null&&s.has(c)||ya.test(c))&&(i[c]=e[c]);return i}let pe=new Map,Dt=new Set;function Sr(){if(typeof window>"u")return;function e(n){return"propertyName"in n}let t=n=>{let o=I(n);if(!e(n)||!o)return;let a=pe.get(o);a||(a=new Set,pe.set(o,a),o.addEventListener("transitioncancel",r,{once:!0})),a.add(n.propertyName)},r=n=>{let o=I(n);if(!e(n)||!o)return;let a=pe.get(o);if(a&&(a.delete(n.propertyName),a.size===0&&(o.removeEventListener("transitioncancel",r),pe.delete(o)),pe.size===0)){for(let s of Dt)s();Dt.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?Sr():document.addEventListener("DOMContentLoaded",Sr));function xa(){for(const[e]of pe)"isConnected"in e&&!e.isConnected&&pe.delete(e)}function Cn(e){requestAnimationFrame(()=>{xa(),pe.size===0?e():Dt.add(e)})}function sr(){let e=l.useRef(new Map),t=l.useCallback((o,a,s,i)=>{let c=i!=null&&i.once?(...p)=>{e.current.delete(s),s(...p)}:s;e.current.set(s,{type:a,eventTarget:o,fn:c,options:i}),o.addEventListener(a,c,i)},[]),r=l.useCallback((o,a,s,i)=>{var p;let c=((p=e.current.get(s))==null?void 0:p.fn)||s;o.removeEventListener(a,c,i),e.current.delete(s)},[]),n=l.useCallback(()=>{e.current.forEach((o,a)=>{r(o.eventTarget,o.type,a,o.options)})},[r]);return l.useEffect(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}function $a(e,t){let{id:r,"aria-label":n,"aria-labelledby":o}=e;return r=Ne(r),o&&n?o=[...new Set([r,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!n&&!o&&t&&(n=t),{id:r,"aria-label":n,"aria-labelledby":o}}function Pn(e){const t=l.useRef(null),r=l.useRef(void 0),n=l.useCallback(o=>{if(typeof e=="function"){const a=e,s=a(o);return()=>{typeof s=="function"?s():a(null)}}else if(e)return e.current=o,()=>{e.current=null}},[e]);return l.useMemo(()=>({get current(){return t.current},set current(o){t.current=o,r.current&&(r.current(),r.current=void 0),o!=null&&(r.current=n(o))}}),[n])}const wa=l.useInsertionEffect??ce;function xe(e){const t=l.useRef(null);return wa(()=>{t.current=e},[e]),l.useCallback((...r)=>{const n=t.current;return n==null?void 0:n(...r)},[])}function Sn(e,t){ce(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function At(e){return e.pointerType===""&&e.isTrusted?!0:xn()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Ea(e){return!xn()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function ka(e,t,r){let n=xe(o=>{r&&!o.defaultPrevented&&r(t)});l.useEffect(()=>{var a;let o=(a=e==null?void 0:e.current)==null?void 0:a.form;return o==null||o.addEventListener("reset",n),()=>{o==null||o.removeEventListener("reset",n)}},[e])}const Ca=typeof Element<"u"&&"checkVisibility"in Element.prototype;function Pa(e){const t=ae(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:r,visibility:n}=e.style,o=r!=="none"&&n!=="hidden"&&n!=="collapse";if(o){const{getComputedStyle:a}=e.ownerDocument.defaultView;let{display:s,visibility:i}=a(e);o=s!=="none"&&i!=="hidden"&&i!=="collapse"}return o}function Sa(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function Tn(e,t){return Ca?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&Pa(e)&&Sa(e,t)&&(!e.parentElement||Tn(e.parentElement,e))}const Ln=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],Ta=Ln.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Ln.push('[tabindex]:not([tabindex="-1"]):not([disabled])');function La(e,t){return e.matches(Ta)&&!Ma(e)&&((t==null?void 0:t.skipVisibilityCheck)||Tn(e))}function Ma(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function Tr(e){let t=e==null?void 0:e.defaultView;return(t==null?void 0:t.__webpack_nonce__)||globalThis.__webpack_nonce__||void 0}let Tt=new WeakMap;function Na(e){let t=e??(typeof document<"u"?document:void 0);if(!t)return Tr(t);if(Tt.has(t))return Tt.get(t);let r=t.querySelector('meta[property="csp-nonce"]'),n=r&&r instanceof ae(r).HTMLMetaElement&&(r.nonce||r.content)||Tr(t)||void 0;return n!==void 0&&Tt.set(t,n),n}function Ia(e,t,r){const{render:n,...o}=t,a=l.useRef(null),s=l.useMemo(()=>He(r,a),[r,a]);ce(()=>{var c;typeof process<"u"&&((c=process.env)==null?void 0:c.NODE_ENV)!=="production"&&n&&(a.current||console.warn("Ref was not connected to DOM element returned by custom `render` function. Did you forget to pass through or merge the `ref`?"))},[e,n]);const i={...o,ref:s};return n?n(i,void 0):u.jsx(e,{...i})}const Lr={},W=new Proxy({},{get(e,t){if(typeof t!="string")return;let r=Lr[t];return r||(r=l.forwardRef(Ia.bind(null,t)),Lr[t]=r),r}});var Ra=/\s+/g,ja=e=>typeof e!="string"||!e?e:e.replace(Ra," ").trim(),ze=(...e)=>{const t=[],r=n=>{if(!n&&n!==0&&n!==0n)return;if(Array.isArray(n)){for(let a=0,s=n.length;a<s;a++)r(n[a]);return}const o=typeof n;if(o==="string"||o==="number"||o==="bigint"){if(o==="number"&&n!==n)return;t.push(String(n))}else if(o==="object"){const a=Object.keys(n);for(let s=0,i=a.length;s<i;s++){const c=a[s];n[c]&&t.push(c)}}};for(let n=0,o=e.length;n<o;n++){const a=e[n];a!=null&&r(a)}return t.length>0?ja(t.join(" ")):void 0},Mr=e=>e===!1?"false":e===!0?"true":e===0?"0":e,Q=e=>{if(!e||typeof e!="object")return!0;for(const t in e)return!1;return!0},Oa=(e,t)=>{if(e===t)return!0;if(!e||!t)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let o=0;o<r.length;o++){const a=r[o];if(!n.includes(a)||e[a]!==t[a])return!1}return!0},Va=(e,t)=>{for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)){const n=t[r];r in e?e[r]=ze(e[r],n):e[r]=n}return e},Mn=(e,t)=>{for(let r=0;r<e.length;r++){const n=e[r];Array.isArray(n)?Mn(n,t):n&&t.push(n)}},Nn=(...e)=>{const t=[];Mn(e,t);const r=[];for(let n=0;n<t.length;n++)t[n]&&r.push(t[n]);return r},_t=(e,t)=>{const r={};for(const n in e){const o=e[n];if(n in t){const a=t[n];Array.isArray(o)||Array.isArray(a)?r[n]=Nn(a,o):typeof o=="object"&&typeof a=="object"&&o&&a?r[n]=_t(o,a):r[n]=a+" "+o}else r[n]=o}for(const n in t)n in e||(r[n]=t[n]);return r},Da={twMerge:!0,twMergeConfig:{}};function Aa(){let e=null,t={},r=!1;return{get cachedTwMerge(){return e},set cachedTwMerge(n){e=n},get cachedTwMergeConfig(){return t},set cachedTwMergeConfig(n){t=n},get didTwMergeConfigChange(){return r},set didTwMergeConfigChange(n){r=n},reset(){e=null,t={},r=!1}}}var ie=Aa(),_a=e=>{const t=(n,o)=>{const{extend:a=null,slots:s={},variants:i={},compoundVariants:c=[],compoundSlots:p=[],defaultVariants:m={}}=n,f={...Da,...o},h=a!=null&&a.base?ze(a.base,n==null?void 0:n.base):n==null?void 0:n.base,g=a!=null&&a.variants&&!Q(a.variants)?_t(i,a.variants):i,$=a!=null&&a.defaultVariants&&!Q(a.defaultVariants)?{...a.defaultVariants,...m}:m;!Q(f.twMergeConfig)&&!Oa(f.twMergeConfig,ie.cachedTwMergeConfig)&&(ie.didTwMergeConfigChange=!0,ie.cachedTwMergeConfig=f.twMergeConfig);const v=Q(a==null?void 0:a.slots),w=Q(s)?{}:{base:ze(n==null?void 0:n.base,v&&(a==null?void 0:a.base)),...s},C=v?w:Va({...a==null?void 0:a.slots},Q(w)?{base:n==null?void 0:n.base}:w),N=Q(a==null?void 0:a.compoundVariants)?c:Nn(a==null?void 0:a.compoundVariants,c),j=R=>{if(Q(g)&&Q(s)&&v)return e(h,R==null?void 0:R.class,R==null?void 0:R.className)(f);if(N&&!Array.isArray(N))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof N}`);if(p&&!Array.isArray(p))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof p}`);const Z=(d,E=g,T=null,y=null)=>{const x=E[d];if(!x||Q(x))return null;const b=(y==null?void 0:y[d])??(R==null?void 0:R[d]);if(b===null)return null;const L=Mr(b);if(typeof L=="object")return null;const k=$==null?void 0:$[d],V=L??Mr(k);return x[V||"false"]},H=()=>{if(!g)return null;const d=Object.keys(g),E=[];for(let T=0;T<d.length;T++){const y=Z(d[T],g);y&&E.push(y)}return E},M=(d,E)=>{if(!g||typeof g!="object")return null;const T=[];for(const y in g){const x=Z(y,g,d,E),b=d==="base"&&typeof x=="string"?x:x&&x[d];b&&T.push(b)}return T},B={};for(const d in R){const E=R[d];E!==void 0&&(B[d]=E)}const A=(d,E)=>{var y;const T=typeof(R==null?void 0:R[d])=="object"?{[d]:(y=R[d])==null?void 0:y.initial}:{};return{...$,...B,...T,...E}},re=(d=[],E)=>{const T=[],y=d.length;for(let x=0;x<y;x++){const{class:b,className:L,...k}=d[x];let V=!0;const _=A(null,E);for(const G in k){const J=k[G],ve=_[G];if(Array.isArray(J)){if(!J.includes(ve)){V=!1;break}}else{if((J==null||J===!1)&&(ve==null||ve===!1))continue;if(ve!==J){V=!1;break}}}V&&(b&&T.push(b),L&&T.push(L))}return T},ee=d=>{const E=re(N,d);if(!Array.isArray(E))return E;const T={},y=e;for(let x=0;x<E.length;x++){const b=E[x];if(typeof b=="string")T.base=y(T.base,b)(f);else if(typeof b=="object")for(const L in b)T[L]=y(T[L],b[L])(f)}return T},de=d=>{if(p.length<1)return null;const E={},T=A(null,d);for(let y=0;y<p.length;y++){const{slots:x=[],class:b,className:L,...k}=p[y];if(!Q(k)){let V=!0;for(const _ in k){const G=T[_],J=k[_];if(G===void 0||(Array.isArray(J)?!J.includes(G):J!==G)){V=!1;break}}if(!V)continue}for(let V=0;V<x.length;V++){const _=x[V];E[_]||(E[_]=[]),E[_].push([b,L])}}return E};if(!Q(s)||!v){const d={};if(typeof C=="object"&&!Q(C)){const E=e;for(const T in C)d[T]=y=>{const x=ee(y),b=de(y);return E(C[T],M(T,y),x?x[T]:void 0,b?b[T]:void 0,y==null?void 0:y.class,y==null?void 0:y.className)(f)}}return d}return e(h,H(),re(N),R==null?void 0:R.class,R==null?void 0:R.className)(f)},F=()=>{if(!(!g||typeof g!="object"))return Object.keys(g)};return j.variantKeys=F(),j.extend=a,j.base=h,j.slots=C,j.variants=g,j.defaultVariants=$,j.compoundSlots=p,j.compoundVariants=N,j};return{tv:t,createTV:n=>(o,a)=>t(o,a?_t(n,a):n)}};const Fa=(e,t)=>{const r=new Array(e.length+t.length);for(let n=0;n<e.length;n++)r[n]=e[n];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r},Ba=(e,t)=>({classGroupId:e,validator:t}),In=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),pt="-",Nr=[],Ga="arbitrary..",Ka=e=>{const t=Ha(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return za(s);const i=s.split(pt),c=i[0]===""&&i.length>1?1:0;return Rn(i,c,t)},getConflictingClassGroupIds:(s,i)=>{if(i){const c=n[s],p=r[s];return c?p?Fa(p,c):c:p||Nr}return r[s]||Nr}}},Rn=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const o=e[t],a=r.nextPart.get(o);if(a){const p=Rn(e,t+1,a);if(p)return p}const s=r.validators;if(s===null)return;const i=t===0?e.join(pt):e.slice(t).join(pt),c=s.length;for(let p=0;p<c;p++){const m=s[p];if(m.validator(i))return m.classGroupId}},za=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?Ga+n:void 0})(),Ha=e=>{const{theme:t,classGroups:r}=e;return Ua(r,t)},Ua=(e,t)=>{const r=In();for(const n in e){const o=e[n];ir(o,r,n,t)}return r},ir=(e,t,r,n)=>{const o=e.length;for(let a=0;a<o;a++){const s=e[a];Wa(s,t,r,n)}},Wa=(e,t,r,n)=>{if(typeof e=="string"){qa(e,t,r);return}if(typeof e=="function"){Ya(e,t,r,n);return}Xa(e,t,r,n)},qa=(e,t,r)=>{const n=e===""?t:jn(t,e);n.classGroupId=r},Ya=(e,t,r,n)=>{if(Za(e)){ir(e(n),t,r,n);return}t.validators===null&&(t.validators=[]),t.validators.push(Ba(r,e))},Xa=(e,t,r,n)=>{const o=Object.entries(e),a=o.length;for(let s=0;s<a;s++){const[i,c]=o[s];ir(c,jn(t,i),r,n)}},jn=(e,t)=>{let r=e;const n=t.split(pt),o=n.length;for(let a=0;a<o;a++){const s=n[a];let i=r.nextPart.get(s);i||(i=In(),r.nextPart.set(s,i)),r=i}return r},Za=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Ja=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const o=(a,s)=>{r[a]=s,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(a){let s=r[a];if(s!==void 0)return s;if((s=n[a])!==void 0)return o(a,s),s},set(a,s){a in r?r[a]=s:o(a,s)}}},Ft="!",Ir=":",Qa=[],Rr=(e,t,r,n,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),es=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const a=[];let s=0,i=0,c=0,p;const m=o.length;for(let v=0;v<m;v++){const w=o[v];if(s===0&&i===0){if(w===Ir){a.push(o.slice(c,v)),c=v+1;continue}if(w==="/"){p=v;continue}}w==="["?s++:w==="]"?s--:w==="("?i++:w===")"&&i--}const f=a.length===0?o:o.slice(c);let h=f,g=!1;f.endsWith(Ft)?(h=f.slice(0,-1),g=!0):f.startsWith(Ft)&&(h=f.slice(1),g=!0);const $=p&&p>c?p-c:void 0;return Rr(a,g,h,$)};if(t){const o=t+Ir,a=n;n=s=>s.startsWith(o)?a(s.slice(o.length)):Rr(Qa,!1,s,void 0,!0)}if(r){const o=n;n=a=>r({className:a,parseClassName:o})}return n},ts=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,n)=>{t.set(r,1e6+n)}),r=>{const n=[];let o=[];for(let a=0;a<r.length;a++){const s=r[a],i=s[0]==="[",c=t.has(s);i||c?(o.length>0&&(o.sort(),n.push(...o),o=[]),n.push(s)):o.push(s)}return o.length>0&&(o.sort(),n.push(...o)),n}},rs=e=>({cache:Ja(e.cacheSize),parseClassName:es(e),sortModifiers:ts(e),...Ka(e)}),ns=/\s+/,os=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:a}=t,s=[],i=e.trim().split(ns);let c="";for(let p=i.length-1;p>=0;p-=1){const m=i[p],{isExternal:f,modifiers:h,hasImportantModifier:g,baseClassName:$,maybePostfixModifierPosition:v}=r(m);if(f){c=m+(c.length>0?" "+c:c);continue}let w=!!v,C=n(w?$.substring(0,v):$);if(!C){if(!w){c=m+(c.length>0?" "+c:c);continue}if(C=n($),!C){c=m+(c.length>0?" "+c:c);continue}w=!1}const N=h.length===0?"":h.length===1?h[0]:a(h).join(":"),j=g?N+Ft:N,F=j+C;if(s.indexOf(F)>-1)continue;s.push(F);const R=o(C,w);for(let Z=0;Z<R.length;++Z){const H=R[Z];s.push(j+H)}c=m+(c.length>0?" "+c:c)}return c},as=(...e)=>{let t=0,r,n,o="";for(;t<e.length;)(r=e[t++])&&(n=On(r))&&(o&&(o+=" "),o+=n);return o},On=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=On(e[n]))&&(r&&(r+=" "),r+=t);return r},Bt=(e,...t)=>{let r,n,o,a;const s=c=>{const p=t.reduce((m,f)=>f(m),e());return r=rs(p),n=r.cache.get,o=r.cache.set,a=i,i(c)},i=c=>{const p=n(c);if(p)return p;const m=os(c,r);return o(c,m),m};return a=s,(...c)=>a(as(...c))},ss=[],U=e=>{const t=r=>r[e]||ss;return t.isThemeGetter=!0,t},Vn=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Dn=/^\((?:(\w[\w-]*):)?(.+)\)$/i,is=/^\d+\/\d+$/,ls=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,cs=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ds=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,us=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,fs=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ee=e=>is.test(e),O=e=>!!e&&!Number.isNaN(Number(e)),ue=e=>!!e&&Number.isInteger(Number(e)),Lt=e=>e.endsWith("%")&&O(e.slice(0,-1)),se=e=>ls.test(e),ps=()=>!0,bs=e=>cs.test(e)&&!ds.test(e),An=()=>!1,ms=e=>us.test(e),hs=e=>fs.test(e),vs=e=>!P(e)&&!S(e),gs=e=>Ie(e,Bn,An),P=e=>Vn.test(e),ge=e=>Ie(e,Gn,bs),Mt=e=>Ie(e,Es,O),jr=e=>Ie(e,_n,An),ys=e=>Ie(e,Fn,hs),tt=e=>Ie(e,Kn,ms),S=e=>Dn.test(e),Ve=e=>Re(e,Gn),xs=e=>Re(e,ks),Or=e=>Re(e,_n),$s=e=>Re(e,Bn),ws=e=>Re(e,Fn),rt=e=>Re(e,Kn,!0),Ie=(e,t,r)=>{const n=Vn.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},Re=(e,t,r=!1)=>{const n=Dn.exec(e);return n?n[1]?t(n[1]):r:!1},_n=e=>e==="position"||e==="percentage",Fn=e=>e==="image"||e==="url",Bn=e=>e==="length"||e==="size"||e==="bg-size",Gn=e=>e==="length",Es=e=>e==="number",ks=e=>e==="family-name",Kn=e=>e==="shadow",Gt=()=>{const e=U("color"),t=U("font"),r=U("text"),n=U("font-weight"),o=U("tracking"),a=U("leading"),s=U("breakpoint"),i=U("container"),c=U("spacing"),p=U("radius"),m=U("shadow"),f=U("inset-shadow"),h=U("text-shadow"),g=U("drop-shadow"),$=U("blur"),v=U("perspective"),w=U("aspect"),C=U("ease"),N=U("animate"),j=()=>["auto","avoid","all","avoid-page","page","left","right","column"],F=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],R=()=>[...F(),S,P],Z=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto","contain","none"],M=()=>[S,P,c],B=()=>[Ee,"full","auto",...M()],A=()=>[ue,"none","subgrid",S,P],re=()=>["auto",{span:["full",ue,S,P]},ue,S,P],ee=()=>[ue,"auto",S,P],de=()=>["auto","min","max","fr",S,P],d=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],E=()=>["start","end","center","stretch","center-safe","end-safe"],T=()=>["auto",...M()],y=()=>[Ee,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...M()],x=()=>[e,S,P],b=()=>[...F(),Or,jr,{position:[S,P]}],L=()=>["no-repeat",{repeat:["","x","y","space","round"]}],k=()=>["auto","cover","contain",$s,gs,{size:[S,P]}],V=()=>[Lt,Ve,ge],_=()=>["","none","full",p,S,P],G=()=>["",O,Ve,ge],J=()=>["solid","dashed","dotted","double"],ve=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],q=()=>[O,Lt,Or,jr],yr=()=>["","none",$,S,P],Ze=()=>["none",O,S,P],Je=()=>["none",O,S,P],Ct=()=>[O,S,P],Qe=()=>[Ee,"full",...M()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[se],breakpoint:[se],color:[ps],container:[se],"drop-shadow":[se],ease:["in","out","in-out"],font:[vs],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[se],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[se],shadow:[se],spacing:["px",O],text:[se],"text-shadow":[se],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ee,P,S,w]}],container:["container"],columns:[{columns:[O,P,S,i]}],"break-after":[{"break-after":j()}],"break-before":[{"break-before":j()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:R()}],overflow:[{overflow:Z()}],"overflow-x":[{"overflow-x":Z()}],"overflow-y":[{"overflow-y":Z()}],overscroll:[{overscroll:H()}],"overscroll-x":[{"overscroll-x":H()}],"overscroll-y":[{"overscroll-y":H()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:B()}],"inset-x":[{"inset-x":B()}],"inset-y":[{"inset-y":B()}],start:[{start:B()}],end:[{end:B()}],top:[{top:B()}],right:[{right:B()}],bottom:[{bottom:B()}],left:[{left:B()}],visibility:["visible","invisible","collapse"],z:[{z:[ue,"auto",S,P]}],basis:[{basis:[Ee,"full","auto",i,...M()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[O,Ee,"auto","initial","none",P]}],grow:[{grow:["",O,S,P]}],shrink:[{shrink:["",O,S,P]}],order:[{order:[ue,"first","last","none",S,P]}],"grid-cols":[{"grid-cols":A()}],"col-start-end":[{col:re()}],"col-start":[{"col-start":ee()}],"col-end":[{"col-end":ee()}],"grid-rows":[{"grid-rows":A()}],"row-start-end":[{row:re()}],"row-start":[{"row-start":ee()}],"row-end":[{"row-end":ee()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":de()}],"auto-rows":[{"auto-rows":de()}],gap:[{gap:M()}],"gap-x":[{"gap-x":M()}],"gap-y":[{"gap-y":M()}],"justify-content":[{justify:[...d(),"normal"]}],"justify-items":[{"justify-items":[...E(),"normal"]}],"justify-self":[{"justify-self":["auto",...E()]}],"align-content":[{content:["normal",...d()]}],"align-items":[{items:[...E(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...E(),{baseline:["","last"]}]}],"place-content":[{"place-content":d()}],"place-items":[{"place-items":[...E(),"baseline"]}],"place-self":[{"place-self":["auto",...E()]}],p:[{p:M()}],px:[{px:M()}],py:[{py:M()}],ps:[{ps:M()}],pe:[{pe:M()}],pt:[{pt:M()}],pr:[{pr:M()}],pb:[{pb:M()}],pl:[{pl:M()}],m:[{m:T()}],mx:[{mx:T()}],my:[{my:T()}],ms:[{ms:T()}],me:[{me:T()}],mt:[{mt:T()}],mr:[{mr:T()}],mb:[{mb:T()}],ml:[{ml:T()}],"space-x":[{"space-x":M()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":M()}],"space-y-reverse":["space-y-reverse"],size:[{size:y()}],w:[{w:[i,"screen",...y()]}],"min-w":[{"min-w":[i,"screen","none",...y()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[s]},...y()]}],h:[{h:["screen","lh",...y()]}],"min-h":[{"min-h":["screen","lh","none",...y()]}],"max-h":[{"max-h":["screen","lh",...y()]}],"font-size":[{text:["base",r,Ve,ge]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,S,Mt]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Lt,P]}],"font-family":[{font:[xs,P,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,S,P]}],"line-clamp":[{"line-clamp":[O,"none",S,Mt]}],leading:[{leading:[a,...M()]}],"list-image":[{"list-image":["none",S,P]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",S,P]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:x()}],"text-color":[{text:x()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...J(),"wavy"]}],"text-decoration-thickness":[{decoration:[O,"from-font","auto",S,ge]}],"text-decoration-color":[{decoration:x()}],"underline-offset":[{"underline-offset":[O,"auto",S,P]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:M()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",S,P]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",S,P]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:b()}],"bg-repeat":[{bg:L()}],"bg-size":[{bg:k()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ue,S,P],radial:["",S,P],conic:[ue,S,P]},ws,ys]}],"bg-color":[{bg:x()}],"gradient-from-pos":[{from:V()}],"gradient-via-pos":[{via:V()}],"gradient-to-pos":[{to:V()}],"gradient-from":[{from:x()}],"gradient-via":[{via:x()}],"gradient-to":[{to:x()}],rounded:[{rounded:_()}],"rounded-s":[{"rounded-s":_()}],"rounded-e":[{"rounded-e":_()}],"rounded-t":[{"rounded-t":_()}],"rounded-r":[{"rounded-r":_()}],"rounded-b":[{"rounded-b":_()}],"rounded-l":[{"rounded-l":_()}],"rounded-ss":[{"rounded-ss":_()}],"rounded-se":[{"rounded-se":_()}],"rounded-ee":[{"rounded-ee":_()}],"rounded-es":[{"rounded-es":_()}],"rounded-tl":[{"rounded-tl":_()}],"rounded-tr":[{"rounded-tr":_()}],"rounded-br":[{"rounded-br":_()}],"rounded-bl":[{"rounded-bl":_()}],"border-w":[{border:G()}],"border-w-x":[{"border-x":G()}],"border-w-y":[{"border-y":G()}],"border-w-s":[{"border-s":G()}],"border-w-e":[{"border-e":G()}],"border-w-t":[{"border-t":G()}],"border-w-r":[{"border-r":G()}],"border-w-b":[{"border-b":G()}],"border-w-l":[{"border-l":G()}],"divide-x":[{"divide-x":G()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":G()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...J(),"hidden","none"]}],"divide-style":[{divide:[...J(),"hidden","none"]}],"border-color":[{border:x()}],"border-color-x":[{"border-x":x()}],"border-color-y":[{"border-y":x()}],"border-color-s":[{"border-s":x()}],"border-color-e":[{"border-e":x()}],"border-color-t":[{"border-t":x()}],"border-color-r":[{"border-r":x()}],"border-color-b":[{"border-b":x()}],"border-color-l":[{"border-l":x()}],"divide-color":[{divide:x()}],"outline-style":[{outline:[...J(),"none","hidden"]}],"outline-offset":[{"outline-offset":[O,S,P]}],"outline-w":[{outline:["",O,Ve,ge]}],"outline-color":[{outline:x()}],shadow:[{shadow:["","none",m,rt,tt]}],"shadow-color":[{shadow:x()}],"inset-shadow":[{"inset-shadow":["none",f,rt,tt]}],"inset-shadow-color":[{"inset-shadow":x()}],"ring-w":[{ring:G()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:x()}],"ring-offset-w":[{"ring-offset":[O,ge]}],"ring-offset-color":[{"ring-offset":x()}],"inset-ring-w":[{"inset-ring":G()}],"inset-ring-color":[{"inset-ring":x()}],"text-shadow":[{"text-shadow":["none",h,rt,tt]}],"text-shadow-color":[{"text-shadow":x()}],opacity:[{opacity:[O,S,P]}],"mix-blend":[{"mix-blend":[...ve(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ve()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[O]}],"mask-image-linear-from-pos":[{"mask-linear-from":q()}],"mask-image-linear-to-pos":[{"mask-linear-to":q()}],"mask-image-linear-from-color":[{"mask-linear-from":x()}],"mask-image-linear-to-color":[{"mask-linear-to":x()}],"mask-image-t-from-pos":[{"mask-t-from":q()}],"mask-image-t-to-pos":[{"mask-t-to":q()}],"mask-image-t-from-color":[{"mask-t-from":x()}],"mask-image-t-to-color":[{"mask-t-to":x()}],"mask-image-r-from-pos":[{"mask-r-from":q()}],"mask-image-r-to-pos":[{"mask-r-to":q()}],"mask-image-r-from-color":[{"mask-r-from":x()}],"mask-image-r-to-color":[{"mask-r-to":x()}],"mask-image-b-from-pos":[{"mask-b-from":q()}],"mask-image-b-to-pos":[{"mask-b-to":q()}],"mask-image-b-from-color":[{"mask-b-from":x()}],"mask-image-b-to-color":[{"mask-b-to":x()}],"mask-image-l-from-pos":[{"mask-l-from":q()}],"mask-image-l-to-pos":[{"mask-l-to":q()}],"mask-image-l-from-color":[{"mask-l-from":x()}],"mask-image-l-to-color":[{"mask-l-to":x()}],"mask-image-x-from-pos":[{"mask-x-from":q()}],"mask-image-x-to-pos":[{"mask-x-to":q()}],"mask-image-x-from-color":[{"mask-x-from":x()}],"mask-image-x-to-color":[{"mask-x-to":x()}],"mask-image-y-from-pos":[{"mask-y-from":q()}],"mask-image-y-to-pos":[{"mask-y-to":q()}],"mask-image-y-from-color":[{"mask-y-from":x()}],"mask-image-y-to-color":[{"mask-y-to":x()}],"mask-image-radial":[{"mask-radial":[S,P]}],"mask-image-radial-from-pos":[{"mask-radial-from":q()}],"mask-image-radial-to-pos":[{"mask-radial-to":q()}],"mask-image-radial-from-color":[{"mask-radial-from":x()}],"mask-image-radial-to-color":[{"mask-radial-to":x()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":F()}],"mask-image-conic-pos":[{"mask-conic":[O]}],"mask-image-conic-from-pos":[{"mask-conic-from":q()}],"mask-image-conic-to-pos":[{"mask-conic-to":q()}],"mask-image-conic-from-color":[{"mask-conic-from":x()}],"mask-image-conic-to-color":[{"mask-conic-to":x()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:b()}],"mask-repeat":[{mask:L()}],"mask-size":[{mask:k()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",S,P]}],filter:[{filter:["","none",S,P]}],blur:[{blur:yr()}],brightness:[{brightness:[O,S,P]}],contrast:[{contrast:[O,S,P]}],"drop-shadow":[{"drop-shadow":["","none",g,rt,tt]}],"drop-shadow-color":[{"drop-shadow":x()}],grayscale:[{grayscale:["",O,S,P]}],"hue-rotate":[{"hue-rotate":[O,S,P]}],invert:[{invert:["",O,S,P]}],saturate:[{saturate:[O,S,P]}],sepia:[{sepia:["",O,S,P]}],"backdrop-filter":[{"backdrop-filter":["","none",S,P]}],"backdrop-blur":[{"backdrop-blur":yr()}],"backdrop-brightness":[{"backdrop-brightness":[O,S,P]}],"backdrop-contrast":[{"backdrop-contrast":[O,S,P]}],"backdrop-grayscale":[{"backdrop-grayscale":["",O,S,P]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[O,S,P]}],"backdrop-invert":[{"backdrop-invert":["",O,S,P]}],"backdrop-opacity":[{"backdrop-opacity":[O,S,P]}],"backdrop-saturate":[{"backdrop-saturate":[O,S,P]}],"backdrop-sepia":[{"backdrop-sepia":["",O,S,P]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":M()}],"border-spacing-x":[{"border-spacing-x":M()}],"border-spacing-y":[{"border-spacing-y":M()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",S,P]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[O,"initial",S,P]}],ease:[{ease:["linear","initial",C,S,P]}],delay:[{delay:[O,S,P]}],animate:[{animate:["none",N,S,P]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,S,P]}],"perspective-origin":[{"perspective-origin":R()}],rotate:[{rotate:Ze()}],"rotate-x":[{"rotate-x":Ze()}],"rotate-y":[{"rotate-y":Ze()}],"rotate-z":[{"rotate-z":Ze()}],scale:[{scale:Je()}],"scale-x":[{"scale-x":Je()}],"scale-y":[{"scale-y":Je()}],"scale-z":[{"scale-z":Je()}],"scale-3d":["scale-3d"],skew:[{skew:Ct()}],"skew-x":[{"skew-x":Ct()}],"skew-y":[{"skew-y":Ct()}],transform:[{transform:[S,P,"","none","gpu","cpu"]}],"transform-origin":[{origin:R()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Qe()}],"translate-x":[{"translate-x":Qe()}],"translate-y":[{"translate-y":Qe()}],"translate-z":[{"translate-z":Qe()}],"translate-none":["translate-none"],accent:[{accent:x()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:x()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",S,P]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",S,P]}],fill:[{fill:["none",...x()]}],"stroke-w":[{stroke:[O,Ve,ge,Mt]}],stroke:[{stroke:["none",...x()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Cs=(e,{cacheSize:t,prefix:r,experimentalParseClassName:n,extend:o={},override:a={}})=>(_e(e,"cacheSize",t),_e(e,"prefix",r),_e(e,"experimentalParseClassName",n),nt(e.theme,a.theme),nt(e.classGroups,a.classGroups),nt(e.conflictingClassGroups,a.conflictingClassGroups),nt(e.conflictingClassGroupModifiers,a.conflictingClassGroupModifiers),_e(e,"orderSensitiveModifiers",a.orderSensitiveModifiers),ot(e.theme,o.theme),ot(e.classGroups,o.classGroups),ot(e.conflictingClassGroups,o.conflictingClassGroups),ot(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),zn(e,o,"orderSensitiveModifiers"),e),_e=(e,t,r)=>{r!==void 0&&(e[t]=r)},nt=(e,t)=>{if(t)for(const r in t)_e(e,r,t[r])},ot=(e,t)=>{if(t)for(const r in t)zn(e,t,r)},zn=(e,t,r)=>{const n=t[r];n!==void 0&&(e[r]=e[r]?e[r].concat(n):n)},Ps=(e,...t)=>typeof e=="function"?Bt(Gt,e,...t):Bt(()=>Cs(Gt(),e),...t),Ss=Bt(Gt);var Ts=e=>Q(e)?Ss:Ps({...e,extend:{theme:e.theme,classGroups:e.classGroups,conflictingClassGroupModifiers:e.conflictingClassGroupModifiers,conflictingClassGroups:e.conflictingClassGroups,...e.extend}}),Hn=(e,t)=>{const r=ze(e);return!r||!((t==null?void 0:t.twMerge)??!0)?r:((!ie.cachedTwMerge||ie.didTwMergeConfigChange)&&(ie.didTwMergeConfigChange=!1,ie.cachedTwMerge=Ts(ie.cachedTwMergeConfig)),ie.cachedTwMerge(r)||void 0)},z=(...e)=>Hn(e,{}),Ls=(...e)=>t=>Hn(e,t),{tv:he}=_a(Ls);const Ms=he({defaultVariants:{status:"default"},slots:{base:"alert",content:"alert__content",description:"alert__description",indicator:"alert__indicator",title:"alert__title"},variants:{status:{accent:{base:"alert--accent"},danger:{base:"alert--danger"},default:{base:"alert--default"},success:{base:"alert--success"},warning:{base:"alert--warning"}}}}),Ns=he({base:"button",defaultVariants:{fullWidth:!1,isIconOnly:!1,size:"md",variant:"primary"},variants:{fullWidth:{false:"",true:"button--full-width"},isIconOnly:{true:"button--icon-only"},size:{lg:"button--lg",md:"button--md",sm:"button--sm"},variant:{danger:"button--danger","danger-soft":"button--danger-soft",ghost:"button--ghost",outline:"button--outline",primary:"button--primary",secondary:"button--secondary",tertiary:"button--tertiary"}}}),Is=he({defaultVariants:{variant:"default"},slots:{base:"card",content:"card__content",description:"card__description",footer:"card__footer",header:"card__header",title:"card__title"},variants:{variant:{default:{base:"card--default"},secondary:{base:"card--secondary"},tertiary:{base:"card--tertiary"},transparent:{base:"card--transparent"}}}}),Rs=he({defaultVariants:{variant:"primary"},slots:{base:"checkbox",content:"checkbox__content",control:"checkbox__control",indicator:"checkbox__indicator"},variants:{variant:{primary:{base:"checkbox--primary"},secondary:{base:"checkbox--secondary"}}}}),js=he({defaultVariants:{color:"default",variant:"secondary"},slots:{base:"chip",label:"chip__label"},variants:{color:{accent:{base:"chip--accent"},danger:{base:"chip--danger"},default:{base:"chip--default"},success:{base:"chip--success"},warning:{base:"chip--warning"}},size:{lg:{base:"chip--lg"},md:{base:"chip--md"},sm:{base:"chip--sm"}},variant:{primary:{base:"chip--primary"},secondary:{base:"chip--secondary"},soft:{base:"chip--soft"},tertiary:{base:"chip--tertiary"}}}}),Os=he({slots:{base:"link",icon:"link__icon"}}),Vs=he({defaultVariants:{color:"accent",size:"md"},slots:{base:"progress-bar",fill:"progress-bar__fill",output:"progress-bar__output",track:"progress-bar__track"},variants:{color:{accent:{base:"progress-bar--accent"},danger:{base:"progress-bar--danger"},default:{base:"progress-bar--default"},success:{base:"progress-bar--success"},warning:{base:"progress-bar--warning"}},size:{lg:{base:"progress-bar--lg"},md:{base:"progress-bar--md"},sm:{base:"progress-bar--sm"}}}}),Ds=he({base:"separator",defaultVariants:{orientation:"horizontal",variant:"default"},variants:{orientation:{horizontal:"separator--horizontal",vertical:"separator--vertical"},variant:{default:"separator--default",secondary:"separator--secondary",tertiary:"separator--tertiary"}}}),As=Symbol("default");function _s({values:e,children:t}){for(let[r,n]of e)t=l.createElement(r.Provider,{value:n},t);return t}function Ue(e){let{className:t,style:r,children:n,defaultClassName:o,defaultChildren:a,defaultStyle:s,values:i,render:c}=e;return l.useMemo(()=>{let p,m,f;return typeof t=="function"?p=t({...i,defaultClassName:o}):p=t,typeof r=="function"?m=r({...i,defaultStyle:s||{}}):m=r,typeof n=="function"?f=n({...i,defaultChildren:a}):n==null?f=a:f=n,{className:p??o,style:m||s?{...s,...m}:void 0,children:f??a,"data-rac":"",render:c?h=>c(h,i):void 0}},[t,r,n,o,a,s,i,c])}function Fs(e,t){return r=>t(typeof e=="function"?e(r):e,r)}function lr(e,t){let r=l.useContext(e);if(t===null)return null;if(r&&typeof r=="object"&&"slots"in r&&r.slots){let n=t||As;if(!r.slots[n]){let o=new Intl.ListFormat().format(Object.keys(r.slots).map(s=>`"${s}"`)),a=t?`Invalid slot "${t}".`:"A slot prop is required.";throw new Error(`${a} Valid slot names are ${o}.`)}return r.slots[n]}return r}function We(e,t,r){let n=lr(r,e.slot)||{},{ref:o,...a}=n,s=Pn(l.useMemo(()=>He(t,o),[t,o])),i=K(a,e);return"style"in a&&a.style&&"style"in e&&e.style&&(typeof a.style=="function"||typeof e.style=="function"?i.style=c=>{let p=typeof a.style=="function"?a.style(c):a.style,m={...c.defaultStyle,...p},f=typeof e.style=="function"?e.style({...c,defaultStyle:m}):e.style;return{...m,...f}}:i.style={...a.style,...e.style}),[i,s]}function Bs(e=!0){let[t,r]=l.useState(e),n=l.useRef(!1),o=l.useCallback(a=>{n.current=!0,r(!!a)},[]);return ce(()=>{n.current||r(!1)},[]),[o,t]}function Gs(e){const t=/^(data-.*)$/;let r={};for(const n in e)t.test(n)||(r[n]=e[n]);return r}function Ks(e,t,r){let{render:n,...o}=t,a=l.useRef(null),s=l.useMemo(()=>He(r,a),[r,a]);ce(()=>{process.env.NODE_ENV!=="production"&&n&&(a.current?a.current.localName!==e&&console.warn(`Unexpected DOM element returned by custom \`render\` function. Expected <${e}>, got <${a.current.localName}>. This may break the component behavior and accessibility.`):console.warn("Ref was not connected to DOM element returned by custom `render` function. Did you forget to pass through or merge the `ref`?"))},[e,n]);let i={...o,ref:s};return n?n(i,void 0):l.createElement(e,i)}const Vr={},je=new Proxy({},{get(e,t){if(typeof t!="string")return;let r=Vr[t];return r||(r=l.forwardRef(Ks.bind(null,t)),Vr[t]=r),r}});typeof HTMLTemplateElement<"u"&&(Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.content.firstChild}}),Object.defineProperty(HTMLTemplateElement.prototype,"appendChild",{configurable:!0,enumerable:!0,value:function(e){return this.content.appendChild(e)}}),Object.defineProperty(HTMLTemplateElement.prototype,"removeChild",{configurable:!0,enumerable:!0,value:function(e){return this.content.removeChild(e)}}),Object.defineProperty(HTMLTemplateElement.prototype,"insertBefore",{configurable:!0,enumerable:!0,value:function(e,t){return this.content.insertBefore(e,t)}}));const zs=l.createContext(!1);function Hs(e){let t=(r,n)=>l.useContext(zs)?null:e(r,n);return t.displayName=e.displayName||e.name,l.forwardRef(t)}const Us=l.createContext({});function Ws(e){let{id:t,label:r,"aria-labelledby":n,"aria-label":o,labelElementType:a="label"}=e;t=Ne(t);let s=Ne(),i={};r?(n=n?`${s} ${n}`:s,i={id:s,htmlFor:a==="label"?t:void 0}):!n&&!o&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let c=$a({id:t,"aria-label":o,"aria-labelledby":n});return{labelProps:i,fieldProps:c}}const qs=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Ys=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Xs(e){if(Intl.Locale){let r=new Intl.Locale(e).maximize(),n=typeof r.getTextInfo=="function"?r.getTextInfo():r.textInfo;if(n)return n.direction==="rtl";if(r.script)return qs.has(r.script)}let t=e.split("-")[0];return Ys.has(t)}const Un=Symbol.for("react-aria.i18n.locale");function Wn(){let e=typeof window<"u"&&window[Un]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:Xs(e)?"rtl":"ltr"}}let Kt=Wn(),Fe=new Set;function Dr(){Kt=Wn();for(let e of Fe)e(Kt)}function Zs(){let e=or(),[t,r]=l.useState(Kt);return l.useEffect(()=>(Fe.size===0&&window.addEventListener("languagechange",Dr),Fe.add(r),()=>{Fe.delete(r),Fe.size===0&&window.removeEventListener("languagechange",Dr)}),[]),e?{locale:typeof window<"u"&&window[Un]||"en-US",direction:"ltr"}:t}const Js=l.createContext(null);function Qs(){let e=Zs();return l.useContext(Js)||e}let Nt=new Map,zt=!1;try{zt=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let bt=!1;try{bt=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const qn={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class ei{constructor(t,r={}){this.numberFormatter=ti(t,r),this.options=r}format(t){var n;let r="";if(!zt&&this.options.signDisplay!=null?r=ri(this.numberFormatter,this.options.signDisplay,t):r=this.numberFormatter.format(t),this.options.style==="unit"&&!bt){let{unit:o,unitDisplay:a="short",locale:s}=this.resolvedOptions();if(!o)return r;let i=(n=qn[o])==null?void 0:n[a];r+=i[s]||i.default}return r}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,r){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,r);if(r<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(r)}`}formatRangeToParts(t,r){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,r);if(r<t)throw new RangeError("End date must be >= start date");let n=this.numberFormatter.formatToParts(t),o=this.numberFormatter.formatToParts(r);return[...n.map(a=>({...a,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(a=>({...a,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!zt&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!bt&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}}function ti(e,t={}){var a;let{numberingSystem:r}=t;if(r&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${r}`),t.style==="unit"&&!bt){let{unit:s,unitDisplay:i="short"}=t;if(!s)throw new Error('unit option must be provided with style: "unit"');if(!((a=qn[s])!=null&&a[i]))throw new Error(`Unsupported unit ${s} with unitDisplay = ${i}`);t={...t,style:"decimal"}}let n=e+(t?Object.entries(t).sort((s,i)=>s[0]<i[0]?-1:1).join():"");if(Nt.has(n))return Nt.get(n);let o=new Intl.NumberFormat(e,t);return Nt.set(n,o),o}function ri(e,t,r){if(t==="auto")return e.format(r);if(t==="never")return e.format(Math.abs(r));{let n=!1;if(t==="always"?n=r>0||Object.is(r,0):t==="exceptZero"&&(Object.is(r,-0)||Object.is(r,0)?r=Math.abs(r):n=r>0),n){let o=e.format(-r),a=e.format(r),s=o.replace(a,"").replace(/\u200e|\u061C/,"");return[...s].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),o.replace(a,"!!!").replace(s,"+").replace("!!!",a)}else return e.format(r)}}function ni(e={}){let{locale:t}=Qs();return l.useMemo(()=>new ei(t,e),[t,e])}function oi(e,t=-1/0,r=1/0){return Math.min(Math.max(e,t),r)}function ai(e){let{value:t=0,minValue:r=0,maxValue:n=100,valueLabel:o,isIndeterminate:a,formatOptions:s={style:"percent"}}=e,i=ne(e,{labelable:!0}),{labelProps:c,fieldProps:p}=Ws({...e,labelElementType:"span"});t=oi(t,r,n);let m=(t-r)/(n-r),f=ni(s);if(!a&&!o){let h=s.style==="percent"?m:t;o=f.format(h)}return{progressBarProps:K(i,{...p,"aria-valuenow":a?void 0:t,"aria-valuemin":r,"aria-valuemax":n,"aria-valuetext":a?void 0:o,role:"progressbar"}),labelProps:c}}function si(e,t=-1/0,r=1/0){return Math.min(Math.max(e,t),r)}const Yn=l.createContext(null),ii=l.forwardRef(function(t,r){[t,r]=We(t,r,Yn);let{value:n=0,minValue:o=0,maxValue:a=100,isIndeterminate:s=!1}=t;n=si(n,o,a);let[i,c]=Bs(!t["aria-label"]&&!t["aria-labelledby"]),{progressBarProps:p,labelProps:m}=ai({...t,label:c}),f=s?void 0:(n-o)/(a-o)*100,h=Ue({...t,defaultClassName:"react-aria-ProgressBar",values:{percentage:f,valueText:p["aria-valuetext"],isIndeterminate:s}}),g=ne(t,{global:!0});return l.createElement(je.div,{...K(g,h,p),ref:r,slot:t.slot||void 0},l.createElement(Us.Provider,{value:{...m,ref:i,elementType:"span"}},h.children))}),Xn=7e3;let oe=null;function Ar(e,t="assertive",r=Xn){oe?oe.announce(e,t,r):(oe=new li,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?oe.announce(e,t,r):setTimeout(()=>{oe!=null&&oe.isAttached()&&(oe==null||oe.announce(e,t,r))},100))}class li{constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}isAttached(){var t;return(t=this.node)==null?void 0:t.isConnected}createLog(t){let r=document.createElement("div");return r.setAttribute("role","log"),r.setAttribute("aria-live",t),r.setAttribute("aria-relevant","additions"),r}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,r="assertive",n=Xn){var a,s;if(!this.node)return;let o=document.createElement("div");typeof t=="object"?(o.setAttribute("role","img"),o.setAttribute("aria-labelledby",t["aria-labelledby"])):o.textContent=t,r==="assertive"?(a=this.assertiveLog)==null||a.appendChild(o):(s=this.politeLog)==null||s.appendChild(o),t!==""&&setTimeout(()=>{o.remove()},n)}clear(t){this.node&&((!t||t==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}}function cr(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function Zn(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function Jn(e){let t=l.useRef({isFocused:!1,observer:null});return ce(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]),l.useCallback(r=>{let n=I(r);if(n instanceof HTMLButtonElement||n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement||n instanceof HTMLSelectElement){t.current.isFocused=!0;let o=n,a=s=>{if(t.current.isFocused=!1,o.disabled){let i=cr(s);e==null||e(i)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",a,{once:!0}),t.current.observer=new MutationObserver(()=>{var s;if(t.current.isFocused&&o.disabled){(s=t.current.observer)==null||s.disconnect();let i=o===me()?null:me();o.dispatchEvent(new FocusEvent("blur",{relatedTarget:i})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:i}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[e])}let mt=!1;function _r(e){for(;e&&!La(e,{skipVisibilityCheck:!0});)e=e.parentElement;let t=ae(e),r=t.document.activeElement;if(!r||r===e)return;mt=!0;let n=!1,o=m=>{(I(m)===r||n)&&m.stopImmediatePropagation()},a=m=>{(I(m)===r||n)&&(m.stopImmediatePropagation(),!e&&!n&&(n=!0,Me(r),c()))},s=m=>{(I(m)===e||n)&&m.stopImmediatePropagation()},i=m=>{(I(m)===e||n)&&(m.stopImmediatePropagation(),n||(n=!0,Me(r),c()))};t.addEventListener("blur",o,!0),t.addEventListener("focusout",a,!0),t.addEventListener("focusin",i,!0),t.addEventListener("focus",s,!0);let c=()=>{cancelAnimationFrame(p),t.removeEventListener("blur",o,!0),t.removeEventListener("focusout",a,!0),t.removeEventListener("focusin",i,!0),t.removeEventListener("focus",s,!0),mt=!1,n=!1},p=requestAnimationFrame(c);return c}let we=null;const Ht=new Set;let Ge=new Map,$e=!1,Ut=!1;const ci={Tab:!0,Escape:!0};function wt(e,t){for(let r of Ht)r(e,t)}function di(e){return!(e.metaKey||!Le()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function ht(e){$e=!0,!be.isOpening&&di(e)&&(we="keyboard",wt("keyboard",e))}function te(e){we="pointer","pointerType"in e&&e.pointerType,(e.type==="mousedown"||e.type==="pointerdown")&&($e=!0,wt("pointer",e))}function Qn(e){!be.isOpening&&At(e)&&($e=!0,we="virtual")}function eo(e){let t=ae(I(e)),r=Y(I(e));I(e)===t||I(e)===r||mt||!e.isTrusted||(!$e&&!Ut&&(we="virtual",wt("virtual",e)),$e=!1,Ut=!1)}function to(){mt||($e=!1,Ut=!0)}function Wt(e){if(typeof window>"u"||typeof document>"u")return;const t=ae(e),r=Y(e);if(Ge.get(t))return;let n=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){$e=!0,n.apply(this,arguments)},r.addEventListener("keydown",ht,!0),r.addEventListener("keyup",ht,!0),r.addEventListener("click",Qn,!0),t.addEventListener("focus",eo,!0),t.addEventListener("blur",to,!1),typeof PointerEvent<"u"?(r.addEventListener("pointerdown",te,!0),r.addEventListener("pointermove",te,!0),r.addEventListener("pointerup",te,!0)):process.env.NODE_ENV==="test"&&(r.addEventListener("mousedown",te,!0),r.addEventListener("mousemove",te,!0),r.addEventListener("mouseup",te,!0)),t.addEventListener("beforeunload",()=>{ro(e)},{once:!0}),Ge.set(t,{focus:n})}const ro=(e,t)=>{const r=ae(e),n=Y(e);t&&n.removeEventListener("DOMContentLoaded",t),Ge.has(r)&&(r.HTMLElement.prototype.focus=Ge.get(r).focus,n.removeEventListener("keydown",ht,!0),n.removeEventListener("keyup",ht,!0),n.removeEventListener("click",Qn,!0),r.removeEventListener("focus",eo,!0),r.removeEventListener("blur",to,!1),typeof PointerEvent<"u"?(n.removeEventListener("pointerdown",te,!0),n.removeEventListener("pointermove",te,!0),n.removeEventListener("pointerup",te,!0)):process.env.NODE_ENV==="test"&&(n.removeEventListener("mousedown",te,!0),n.removeEventListener("mousemove",te,!0),n.removeEventListener("mouseup",te,!0)),Ge.delete(r))};function ui(e){const t=Y(e);let r;return t.readyState!=="loading"?Wt(e):(r=()=>{Wt(e)},t.addEventListener("DOMContentLoaded",r)),()=>ro(e,r)}typeof document<"u"&&ui();function qt(){return we!=="pointer"}function fi(){return we}function pi(e){we=e,wt(e,null)}const bi=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function mi(e,t,r){let n=r?I(r):void 0,o=Y(n),a=ae(n);const s=typeof a<"u"?a.HTMLInputElement:HTMLInputElement,i=typeof a<"u"?a.HTMLTextAreaElement:HTMLTextAreaElement,c=typeof a<"u"?a.HTMLElement:HTMLElement,p=typeof a<"u"?a.KeyboardEvent:KeyboardEvent;let m=me(o);return e=e||m instanceof s&&!bi.has(m.type)||m instanceof i||m instanceof c&&m.isContentEditable,!(e&&t==="keyboard"&&r instanceof p&&!ci[r.key])}function hi(e,t,r){Wt(),l.useEffect(()=>{if((r==null?void 0:r.enabled)===!1)return;let n=(o,a)=>{mi(!!(r!=null&&r.isTextInput),o,a)&&e(qt())};return Ht.add(n),()=>{Ht.delete(n)}},t)}function vi(e){if(!e.isConnected)return;const t=Y(e);if(fi()==="virtual"){let r=me(t);Cn(()=>{const n=me(t);(n===r||n===t.body)&&e.isConnected&&Me(e)})}else Me(e)}function no(e){let{isDisabled:t,onFocus:r,onBlur:n,onFocusChange:o}=e;const a=l.useCallback(c=>{if(I(c)===c.currentTarget)return n&&n(c),o&&o(!1),!0},[n,o]),s=Jn(a),i=l.useCallback(c=>{let p=I(c);const m=Y(p),f=m?me(m):me();p===c.currentTarget&&p===f&&(r&&r(c),o&&o(!0),s(c))},[o,r,s]);return{focusProps:{onFocus:!t&&(r||o||n)?i:void 0,onBlur:!t&&(n||o)?a:void 0}}}function Fr(e){if(!e)return;let t=!0;return r=>{let n={...r,preventDefault(){r.preventDefault()},isDefaultPrevented(){return r.isDefaultPrevented()},stopPropagation(){t&&process.env.NODE_ENV!=="production"?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(n),t&&r.stopPropagation()}}function gi(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Fr(e.onKeyDown),onKeyUp:Fr(e.onKeyUp)}}}let Yt=l.createContext(null);function yi(e){let t=l.useContext(Yt)||{};Sn(t,e);let{ref:r,...n}=t;return n}function dr(e,t){let{focusProps:r}=no(e),{keyboardProps:n}=gi(e),o=K(r,n),a=yi(t),s=e.isDisabled?{}:a,i=l.useRef(e.autoFocus);l.useEffect(()=>{i.current&&t.current&&vi(t.current),i.current=!1},[t]);let c=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(c=void 0),{focusableProps:K({...o,tabIndex:c},s)}}let Ce="default",Xt="",dt=new WeakMap;function Br(e){if(nr()){if(Ce==="default"){const t=Y(e);Xt=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Ce="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";dt.set(e,e.style[t]),e.style[t]="none"}}function It(e){if(nr()){if(Ce!=="disabled")return;Ce="restoring",setTimeout(()=>{Cn(()=>{if(Ce==="restoring"){const t=Y(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Xt||""),Xt="",Ce="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&dt.has(e)){let t=dt.get(e),r="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[r]==="none"&&(e.style[r]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),dt.delete(e)}}const oo=l.createContext({register:()=>{}});oo.displayName="PressResponderContext";function xi(e){let t=l.useContext(oo);if(t){let{register:r,ref:n,...o}=t;e=K(o,e),r()}return Sn(t,e.ref),e}var Se;class at{constructor(t,r,n,o){kr(this,Se);Pt(this,Se,!0);let a=(o==null?void 0:o.target)??n.currentTarget;const s=a==null?void 0:a.getBoundingClientRect();let i,c=0,p,m=null;n.clientX!=null&&n.clientY!=null&&(p=n.clientX,m=n.clientY),s&&(p!=null&&m!=null?(i=p-s.left,c=m-s.top):(i=s.width/2,c=s.height/2)),this.type=t,this.pointerType=r,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=i,this.y=c,this.key=n.key}continuePropagation(){Pt(this,Se,!1)}get shouldStopPropagation(){return Er(this,Se)}}Se=new WeakMap;const Gr=Symbol("linkClicked"),Kr="react-aria-pressable-style",zr="data-react-aria-pressable";function vt(e){let{onPress:t,onPressChange:r,onPressStart:n,onPressEnd:o,onPressUp:a,onClick:s,isDisabled:i,isPressed:c,preventFocusOnPress:p,shouldCancelOnPointerExit:m,allowTextSelectionOnPress:f,ref:h,...g}=xi(e),[$,v]=l.useState(!1),w=l.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:C,removeAllGlobalListeners:N}=sr(),j=l.useCallback((d,E)=>{let T=w.current;if(i||T.didFirePressStart)return!1;let y=!0;if(T.isTriggeringEvent=!0,n){let x=new at("pressstart",E,d);n(x),y=x.shouldStopPropagation}return r&&r(!0),T.isTriggeringEvent=!1,T.didFirePressStart=!0,v(!0),y},[i,n,r]),F=l.useCallback((d,E,T=!0)=>{let y=w.current;if(!y.didFirePressStart)return!1;y.didFirePressStart=!1,y.isTriggeringEvent=!0;let x=!0;if(o){let b=new at("pressend",E,d);o(b),x=b.shouldStopPropagation}if(r&&r(!1),v(!1),t&&T&&!i){let b=new at("press",E,d);t(b),x&&(x=b.shouldStopPropagation)}return y.isTriggeringEvent=!1,x},[i,o,r,t]),R=xe(F),Z=l.useCallback((d,E)=>{let T=w.current;if(i)return!1;if(a){T.isTriggeringEvent=!0;let y=new at("pressup",E,d);return a(y),T.isTriggeringEvent=!1,y.shouldStopPropagation}return!0},[i,a]),H=xe(Z),M=l.useCallback(d=>{let E=w.current;if(E.isPressed&&E.target){E.didFirePressStart&&E.pointerType!=null&&F(ye(E.target,d),E.pointerType,!1),E.isPressed=!1,E.isOverTarget=!1,E.activePointerId=null,E.pointerType=null,N(),f||It(E.target);for(let T of E.disposables)T();E.disposables=[]}},[f,N,F]),B=xe(M);l.useEffect(()=>{i&&w.current.isPressed&&B({currentTarget:w.current.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})},[i]);let A=l.useCallback(d=>{m&&M(d)},[m,M]),re=l.useCallback(d=>{i||s==null||s(d)},[i,s]),ee=l.useCallback((d,E)=>{if(!i&&s){let T=new MouseEvent("click",d);Zn(T,E),s(cr(T))}},[i,s]),de=l.useMemo(()=>{let d=w.current,E={onKeyDown(y){var x;if(Rt(y.nativeEvent,y.currentTarget)&&D(y.currentTarget,I(y))){Wr(I(y),y.key)&&y.preventDefault();let b=!0;!d.isPressed&&!y.repeat&&(d.target=y.currentTarget,d.isPressed=!0,d.pointerType="keyboard",b=j(y,"keyboard"));let L=y.currentTarget,k=V=>{Rt(V,L)&&!V.repeat&&D(L,I(V))&&d.target&&H(ye(d.target,V),"keyboard")};C(Y(y.currentTarget),"keyup",En(k,T),!0),b&&y.stopPropagation(),y.metaKey&&Le()&&((x=d.metaKeyEvents)==null||x.set(y.key,y.nativeEvent))}else y.key==="Meta"&&(d.metaKeyEvents=new Map)},onClick(y){if(!(y&&!D(y.currentTarget,I(y)))&&y&&y.button===0&&!d.isTriggeringEvent&&!be.isOpening){let x=!0;if(i&&y.preventDefault(),!d.ignoreEmulatedMouseEvents&&!d.isPressed&&(d.pointerType==="virtual"||At(y.nativeEvent))){let b=j(y,"virtual"),L=H(y,"virtual"),k=R(y,"virtual");re(y),x=b&&L&&k}else if(d.isPressed&&d.pointerType!=="keyboard"){let b=d.pointerType||y.nativeEvent.pointerType||"virtual",L=H(ye(y.currentTarget,y),b),k=R(ye(y.currentTarget,y),b,!0);x=L&&k,d.isOverTarget=!1,re(y),B(y)}d.ignoreEmulatedMouseEvents=!1,x&&y.stopPropagation()}}},T=y=>{var x,b,L;if(d.isPressed&&d.target&&Rt(y,d.target)){Wr(I(y),y.key)&&y.preventDefault();let k=I(y),V=D(d.target,k);R(ye(d.target,y),"keyboard",V),V&&ee(y,d.target),N(),y.key!=="Enter"&&ur(d.target)&&D(d.target,k)&&!y[Gr]&&(y[Gr]=!0,be(d.target,y,!1)),d.isPressed=!1,(x=d.metaKeyEvents)==null||x.delete(y.key)}else if(y.key==="Meta"&&((b=d.metaKeyEvents)!=null&&b.size)){let k=d.metaKeyEvents;d.metaKeyEvents=void 0;for(let V of k.values())(L=d.target)==null||L.dispatchEvent(new KeyboardEvent("keyup",V))}};if(typeof PointerEvent<"u"){E.onPointerDown=b=>{if(b.button!==0||!D(b.currentTarget,I(b)))return;if(Ea(b.nativeEvent)){d.pointerType="virtual";return}d.pointerType=b.pointerType;let L=!0;if(!d.isPressed){d.isPressed=!0,d.isOverTarget=!0,d.activePointerId=b.pointerId,d.target=b.currentTarget,f||Br(d.target),L=j(b,d.pointerType);let k=I(b);"releasePointerCapture"in k&&("hasPointerCapture"in k?k.hasPointerCapture(b.pointerId)&&k.releasePointerCapture(b.pointerId):k.releasePointerCapture(b.pointerId)),C(Y(b.currentTarget),"pointerup",y,!1),C(Y(b.currentTarget),"pointercancel",x,!1)}L&&b.stopPropagation()},E.onMouseDown=b=>{if(D(b.currentTarget,I(b))&&b.button===0){if(p){let L=_r(b.target);L&&d.disposables.push(L)}b.stopPropagation()}},E.onPointerUp=b=>{!D(b.currentTarget,I(b))||d.pointerType==="virtual"||b.button===0&&!d.isPressed&&H(b,d.pointerType||b.pointerType)},E.onPointerEnter=b=>{b.pointerId===d.activePointerId&&d.target&&!d.isOverTarget&&d.pointerType!=null&&(d.isOverTarget=!0,j(ye(d.target,b),d.pointerType))},E.onPointerLeave=b=>{b.pointerId===d.activePointerId&&d.target&&d.isOverTarget&&d.pointerType!=null&&(d.isOverTarget=!1,R(ye(d.target,b),d.pointerType,!1),A(b))};let y=b=>{if(b.pointerId===d.activePointerId&&d.isPressed&&b.button===0&&d.target){if(D(d.target,I(b))&&d.pointerType!=null){let L=!1,k=setTimeout(()=>{d.isPressed&&d.target instanceof HTMLElement&&(L?B(b):(Me(d.target),d.target.click()))},80);C(b.currentTarget,"click",()=>L=!0,!0),d.disposables.push(()=>clearTimeout(k))}else B(b);d.isOverTarget=!1}},x=b=>{B(b)};E.onDragStart=b=>{D(b.currentTarget,I(b))&&B(b)}}else if(process.env.NODE_ENV==="test"){E.onMouseDown=b=>{if(b.button!==0||!D(b.currentTarget,I(b)))return;if(d.ignoreEmulatedMouseEvents){b.stopPropagation();return}if(d.isPressed=!0,d.isOverTarget=!0,d.target=b.currentTarget,d.pointerType=At(b.nativeEvent)?"virtual":"mouse",Fo.flushSync(()=>j(b,d.pointerType))&&b.stopPropagation(),p){let k=_r(b.target);k&&d.disposables.push(k)}C(Y(b.currentTarget),"mouseup",y,!1)},E.onMouseEnter=b=>{if(!D(b.currentTarget,I(b)))return;let L=!0;d.isPressed&&!d.ignoreEmulatedMouseEvents&&d.pointerType!=null&&(d.isOverTarget=!0,L=j(b,d.pointerType)),L&&b.stopPropagation()},E.onMouseLeave=b=>{if(!D(b.currentTarget,I(b)))return;let L=!0;d.isPressed&&!d.ignoreEmulatedMouseEvents&&d.pointerType!=null&&(d.isOverTarget=!1,L=R(b,d.pointerType,!1),A(b)),L&&b.stopPropagation()},E.onMouseUp=b=>{D(b.currentTarget,I(b))&&!d.ignoreEmulatedMouseEvents&&b.button===0&&!d.isPressed&&H(b,d.pointerType||"mouse")};let y=b=>{if(b.button===0){if(d.ignoreEmulatedMouseEvents){d.ignoreEmulatedMouseEvents=!1;return}d.target&&D(d.target,I(b))&&d.pointerType!=null||B(b),d.isOverTarget=!1}};E.onTouchStart=b=>{if(!D(b.currentTarget,I(b)))return;let L=$i(b.nativeEvent);if(!L)return;d.activePointerId=L.identifier,d.ignoreEmulatedMouseEvents=!0,d.isOverTarget=!0,d.isPressed=!0,d.target=b.currentTarget,d.pointerType="touch",f||Br(d.target),j(fe(d.target,b),d.pointerType)&&b.stopPropagation(),C(ae(b.currentTarget),"scroll",x,!0)},E.onTouchMove=b=>{if(!D(b.currentTarget,I(b)))return;if(!d.isPressed){b.stopPropagation();return}let L=Hr(b.nativeEvent,d.activePointerId),k=!0;L&&Ur(L,b.currentTarget)?!d.isOverTarget&&d.pointerType!=null&&(d.isOverTarget=!0,k=j(fe(d.target,b),d.pointerType)):d.isOverTarget&&d.pointerType!=null&&(d.isOverTarget=!1,k=R(fe(d.target,b),d.pointerType,!1),A(fe(d.target,b))),k&&b.stopPropagation()},E.onTouchEnd=b=>{if(!D(b.currentTarget,I(b)))return;if(!d.isPressed){b.stopPropagation();return}let L=Hr(b.nativeEvent,d.activePointerId),k=!0;L&&Ur(L,b.currentTarget)&&d.pointerType!=null?(H(fe(d.target,b),d.pointerType),k=R(fe(d.target,b),d.pointerType),ee(b.nativeEvent,d.target)):d.isOverTarget&&d.pointerType!=null&&(k=R(fe(d.target,b),d.pointerType,!1)),k&&b.stopPropagation(),d.isPressed=!1,d.activePointerId=null,d.isOverTarget=!1,d.ignoreEmulatedMouseEvents=!0,d.target&&!f&&It(d.target),N()},E.onTouchCancel=b=>{D(b.currentTarget,I(b))&&(b.stopPropagation(),d.isPressed&&B(fe(d.target,b)))};let x=b=>{d.isPressed&&D(I(b),d.target)&&B({currentTarget:d.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};E.onDragStart=b=>{D(b.currentTarget,I(b))&&B(b)}}return E},[C,i,p,N,f,A,j,re,ee]);return l.useEffect(()=>{if(!h||process.env.NODE_ENV==="test")return;const d=Y(h.current);if(!d||!d.head||d.getElementById(Kr))return;const E=d.createElement("style");E.id=Kr;let T=Na(d);T&&(E.nonce=T),E.textContent=`
1
+ "use strict";var Za=Object.create;var po=Object.defineProperty;var Ja=Object.getOwnPropertyDescriptor;var Qa=Object.getOwnPropertyNames;var ec=Object.getPrototypeOf,tc=Object.prototype.hasOwnProperty;var ho=t=>{throw TypeError(t)};var rc=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Qa(e))!tc.call(t,o)&&o!==r&&po(t,o,{get:()=>e[o],enumerable:!(n=Ja(e,o))||n.enumerable});return t};var nc=(t,e,r)=>(r=t!=null?Za(ec(t)):{},rc(e||!t||!t.__esModule?po(r,"default",{value:t,enumerable:!0}):r,t));var bo=(t,e,r)=>e.has(t)||ho("Cannot "+r);var mo=(t,e,r)=>(bo(t,e,"read from private field"),r?r.call(t):e.get(t)),go=(t,e,r)=>e.has(t)?ho("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),Vr=(t,e,r,n)=>(bo(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("react/jsx-runtime"),a=require("react"),jt=require("react-dom"),st={GREY:"#7A8090",RED:"#E7320D",ORANGE:"#FF850A",YELLOW:"#F5E429",GREEN:"#14CC76",LIGHT_BLUE:"#20B3E9",BLUE:"#1738DE",MAGENTA:"#D945B1"};function Rt(t,e){const r=t.replace("#",""),n=parseInt(r.slice(0,2),16),o=parseInt(r.slice(2,4),16),i=parseInt(r.slice(4,6),16);return`rgba(${n}, ${o}, ${i}, ${e})`}function Oi(t){const e=t.replace("#",""),r=parseInt(e.slice(0,2),16),n=parseInt(e.slice(2,4),16),o=parseInt(e.slice(4,6),16);return(.299*r+.587*n+.114*o)/255>.55?"#111111":"#ffffff"}const ji={note:"GREY",info:"LIGHT_BLUE",tip:"GREEN",caution:"ORANGE",danger:"RED"};function Bi(t){return st[ji[t]]}const fr={note:"Note",info:"Info",tip:"Tip",caution:"Caution",danger:"Danger"},oc="react-aria-clear-focus",ic="react-aria-focus";function Mr(t){var r;if(typeof window>"u"||window.navigator==null)return!1;let e=(r=window.navigator.userAgentData)==null?void 0:r.brands;return Array.isArray(e)&&e.some(n=>t.test(n.brand))||t.test(window.navigator.userAgent)}function On(t){var e;return typeof window<"u"&&window.navigator!=null?t.test(((e=window.navigator.userAgentData)==null?void 0:e.platform)||window.navigator.platform):!1}function Ae(t){if(process.env.NODE_ENV==="test")return t;let e=null;return()=>(e==null&&(e=t()),e)}const Ye=Ae(function(){return On(/^Mac/i)}),lc=Ae(function(){return On(/^iPhone/i)}),_i=Ae(function(){return On(/^iPad/i)||Ye()&&navigator.maxTouchPoints>1}),Bt=Ae(function(){return lc()||_i()}),sc=Ae(function(){return Ye()||Bt()}),Vi=Ae(function(){return Mr(/AppleWebKit/i)&&!Hi()}),Hi=Ae(function(){return Mr(/Chrome/i)}),jn=Ae(function(){return Mr(/Android/i)}),ac=Ae(function(){return Mr(/Firefox/i)});function de(t){if(cc())t.focus({preventScroll:!0});else{let e=uc(t);t.focus(),dc(e)}}let qt=null;function cc(){if(qt==null){qt=!1;try{document.createElement("div").focus({get preventScroll(){return qt=!0,!0}})}catch{}}return qt}function uc(t){let e=t.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;e instanceof HTMLElement&&e!==n;)(e.offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth)&&r.push({element:e,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),e=e.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}function dc(t){for(let{element:e,scrollTop:r,scrollLeft:n}of t)e.scrollTop=r,e.scrollLeft=n}const fc=a.createContext({isNative:!0,open:bc,useHref:t=>t});function _t(){return a.useContext(fc)}function pc(t,e){let r=t.getAttribute("target");return(!r||r==="_self")&&t.origin===location.origin&&!t.hasAttribute("download")&&!e.metaKey&&!e.ctrlKey&&!e.altKey&&!e.shiftKey}function Ie(t,e,r=!0){var c,u;let{metaKey:n,ctrlKey:o,altKey:i,shiftKey:l}=e;ac()&&((u=(c=window.event)==null?void 0:c.type)!=null&&u.startsWith("key"))&&t.target==="_blank"&&(Ye()?n=!0:o=!0);let s=Vi()&&Ye()&&!_i()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:n,ctrlKey:o,altKey:i,shiftKey:l}):new MouseEvent("click",{metaKey:n,ctrlKey:o,altKey:i,shiftKey:l,detail:1,bubbles:!0,cancelable:!0});Ie.isOpening=r,de(t),t.dispatchEvent(s),Ie.isOpening=!1}Ie.isOpening=!1;function hc(t,e){if(t instanceof HTMLAnchorElement)e(t);else if(t.hasAttribute("data-href")){let r=document.createElement("a");r.href=t.getAttribute("data-href"),t.hasAttribute("data-target")&&(r.target=t.getAttribute("data-target")),t.hasAttribute("data-rel")&&(r.rel=t.getAttribute("data-rel")),t.hasAttribute("data-download")&&(r.download=t.getAttribute("data-download")),t.hasAttribute("data-ping")&&(r.ping=t.getAttribute("data-ping")),t.hasAttribute("data-referrer-policy")&&(r.referrerPolicy=t.getAttribute("data-referrer-policy")),t.appendChild(r),e(r),t.removeChild(r)}}function bc(t,e){hc(t,r=>Ie(r,e))}function zi(t){const r=_t().useHref((t==null?void 0:t.href)??"");let n={};if(t)for(let o of["href","target","rel","download","ping","referrerPolicy"])o in t&&(n[o]=o==="href"?r:t[o]);return n}function Wi(t,e,r,n){!e.isNative&&t.currentTarget instanceof HTMLAnchorElement&&t.currentTarget.href&&!t.isDefaultPrevented()&&pc(t.currentTarget,t)&&r&&(t.preventDefault(),e.open(t.currentTarget,t,r,n))}const J=typeof document<"u"?a.useLayoutEffect:()=>{},pr={prefix:String(Math.round(Math.random()*1e10)),current:0},Ui=a.createContext(pr),mc=a.createContext(!1);let gc=!!(typeof window<"u"&&window.document&&window.document.createElement),Hr=new WeakMap;function yc(t=!1){var n,o;let e=a.useContext(Ui),r=a.useRef(null);if(r.current===null&&!t){let i=(o=(n=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)==null?void 0:n.ReactCurrentOwner)==null?void 0:o.current;if(i){let l=Hr.get(i);l==null?Hr.set(i,{id:e.current,state:i.memoizedState}):i.memoizedState!==l.state&&(e.current=l.id,Hr.delete(i))}r.current=++e.current}return r.current}function vc(t){let e=a.useContext(Ui);e===pr&&!gc&&process.env.NODE_ENV!=="production"&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let r=yc(!!t),n=e===pr&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${e.prefix}`;return t||`${n}-${r}`}function $c(t){let e=a.useId(),[r]=a.useState(dt()),n=r||process.env.NODE_ENV==="test"?"react-aria":`react-aria${pr.prefix}`;return t||`${n}-${e}`}const xc=typeof a.useId=="function"?$c:vc;function wc(){return!1}function Ec(){return!0}function Sc(t){return()=>{}}function dt(){return typeof a.useSyncExternalStore=="function"?a.useSyncExternalStore(Sc,wc,Ec):a.useContext(mc)}function Cc(t){let[e,r]=a.useState(t),n=a.useRef(e),o=a.useRef(null),i=a.useRef(()=>{if(!o.current)return;let s=o.current.next();if(s.done){o.current=null;return}n.current===s.value?i.current():r(s.value)});J(()=>{n.current=e,o.current&&i.current()});let l=a.useCallback(s=>{o.current=s(n.current),i.current()},[i]);return[e,l]}let Pc=!!(typeof window<"u"&&window.document&&window.document.createElement),ot=new Map,wt;typeof FinalizationRegistry<"u"&&(wt=new FinalizationRegistry(t=>{ot.delete(t)}));function ge(t){let[e,r]=a.useState(t),n=a.useRef(null),o=xc(e),i=a.useRef(null);if(wt&&wt.register(i,o),Pc){const l=ot.get(o);l&&!l.includes(n)?l.push(n):ot.set(o,[n])}return J(()=>{let l=o;return()=>{wt&&wt.unregister(i),ot.delete(l)}},[o]),a.useEffect(()=>{let l=n.current;return l&&r(l),()=>{l&&(n.current=null)}}),o}function kc(t,e){if(t===e)return t;let r=ot.get(t);if(r)return r.forEach(o=>o.current=e),e;let n=ot.get(e);return n?(n.forEach(o=>o.current=t),t):e}function zr(t=[]){let e=ge(),[r,n]=Cc(e),o=a.useCallback(()=>{n(function*(){yield e,yield document.getElementById(e)?e:void 0})},[e,n]);return J(o,[e,o,...t]),r}function Vt(...t){return(...e)=>{for(let r of t)typeof r=="function"&&r(...e)}}const Z=t=>(t==null?void 0:t.ownerDocument)??document,fe=t=>t&&"window"in t&&t.window===t?t:Z(t).defaultView||window;function Tc(t){return t!==null&&typeof t=="object"&&"nodeType"in t&&typeof t.nodeType=="number"}function Mc(t){return Tc(t)&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in t}let Rc=!1;function Ne(){return Rc}function H(t,e){if(!Ne())return e&&t?t.contains(e):!1;if(!t||!e)return!1;let r=e;for(;r!==null;){if(r===t)return!0;r.tagName==="SLOT"&&r.assignedSlot?r=r.assignedSlot.parentNode:Mc(r)?r=r.host:r=r.parentNode}return!1}const ne=(t=document)=>{var r;if(!Ne())return t.activeElement;let e=t.activeElement;for(;e&&"shadowRoot"in e&&((r=e.shadowRoot)!=null&&r.activeElement);)e=e.shadowRoot.activeElement;return e};function A(t){if(Ne()&&t.target instanceof Element&&t.target.shadowRoot){if("composedPath"in t)return t.composedPath()[0]??null;if("composedPath"in t.nativeEvent)return t.nativeEvent.composedPath()[0]??null}return t.target}function Nt(t){if(!t)return!1;let e=t.getRootNode(),r=fe(t);if(!(e instanceof r.Document||e instanceof r.ShadowRoot))return!1;let n=e.activeElement;return n!=null&&t.contains(n)}class Nc{constructor(e,r,n,o){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=l=>{var s;if(l.nodeType===Node.ELEMENT_NODE){const c=l.shadowRoot;if(c){const u=this._doc.createTreeWalker(c,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(u),NodeFilter.FILTER_ACCEPT}else{if(typeof this.filter=="function")return this.filter(l);if((s=this.filter)!=null&&s.acceptNode)return this.filter.acceptNode(l);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=e,this.root=r,this.filter=o??null,this.whatToShow=n??NodeFilter.SHOW_ALL,this._currentNode=r,this._walkerStack.unshift(e.createTreeWalker(r,n,this._acceptNode));const i=r.shadowRoot;if(i){const l=this._doc.createTreeWalker(i,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(l)}}get currentNode(){return this._currentNode}set currentNode(e){if(!H(this.root,e))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const r=[];let n=e,o=e;for(this._currentNode=e;n&&n!==this.root;)if(n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const l=n,s=this._doc.createTreeWalker(l,this.whatToShow,{acceptNode:this._acceptNode});r.push(s),s.currentNode=o,this._currentSetFor.add(s),n=o=l.host}else n=n.parentNode;const i=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});r.push(i),i.currentNode=o,this._currentSetFor.add(i),this._walkerStack=r}get doc(){return this._doc}firstChild(){let e=this.currentNode,r=this.nextNode();return H(e,r)?(r&&(this.currentNode=r),r):(this.currentNode=e,null)}lastChild(){let r=this._walkerStack[0].lastChild();return r&&(this.currentNode=r),r}nextNode(){var r;const e=this._walkerStack[0].nextNode();if(e){if(e.shadowRoot){let o;if(typeof this.filter=="function"?o=this.filter(e):(r=this.filter)!=null&&r.acceptNode&&(o=this.filter.acceptNode(e)),o===NodeFilter.FILTER_ACCEPT)return this.currentNode=e,e;let i=this.nextNode();return i&&(this.currentNode=i),i}return e&&(this.currentNode=e),e}else if(this._walkerStack.length>1){this._walkerStack.shift();let n=this.nextNode();return n&&(this.currentNode=n),n}else return null}previousNode(){var n;const e=this._walkerStack[0];if(e.currentNode===e.root){if(this._currentSetFor.has(e))if(this._currentSetFor.delete(e),this._walkerStack.length>1){this._walkerStack.shift();let o=this.previousNode();return o&&(this.currentNode=o),o}else return null;return null}const r=e.previousNode();if(r){if(r.shadowRoot){let i;if(typeof this.filter=="function"?i=this.filter(r):(n=this.filter)!=null&&n.acceptNode&&(i=this.filter.acceptNode(r)),i===NodeFilter.FILTER_ACCEPT)return r&&(this.currentNode=r),r;let l=this.lastChild();return l&&(this.currentNode=l),l}return r&&(this.currentNode=r),r}else if(this._walkerStack.length>1){this._walkerStack.shift();let o=this.previousNode();return o&&(this.currentNode=o),o}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}}function Gi(t,e,r,n){return Ne()?new Nc(t,e,r,n):t.createTreeWalker(e,r,n)}function Ht(...t){return t.length===1&&t[0]?t[0]:e=>{let r=!1;const n=t.map(o=>{const i=yo(o,e);return r||(r=typeof i=="function"),i});if(r)return()=>{n.forEach((o,i)=>{typeof o=="function"?o():yo(t[i],null)})}}}function yo(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function qi(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(r=qi(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function Dc(){for(var t,e,r=0,n="",o=arguments.length;r<o;r++)(t=arguments[r])&&(e=qi(t))&&(n&&(n+=" "),n+=e);return n}function X(...t){let e={...t[0]};for(let r=1;r<t.length;r++){let n=t[r];for(let o in n){let i=e[o],l=n[o];typeof i=="function"&&typeof l=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?e[o]=Vt(i,l):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof l=="string"?e[o]=Dc(i,l):o==="id"&&i&&l?e.id=kc(i,l):o==="ref"&&i&&l?e.ref=Ht(i,l):e[o]=l!==void 0?l:i}}return e}const Lc=new Set(["id"]),Ic=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Kc=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),Ac=new Set(["dir","lang","hidden","inert","translate"]),vo=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"]),Fc=/^(data-.*)$/;function ue(t,e={}){let{labelable:r,isLink:n,global:o,events:i=o,propNames:l}=e,s={};for(const c in t)Object.prototype.hasOwnProperty.call(t,c)&&(Lc.has(c)||r&&Ic.has(c)||n&&Kc.has(c)||o&&Ac.has(c)||i&&(vo.has(c)||c.endsWith("Capture")&&vo.has(c.slice(0,-7)))||l!=null&&l.has(c)||Fc.test(c))&&(s[c]=t[c]);return s}let Ve=new Map,un=new Set;function $o(){if(typeof window>"u")return;function t(n){return"propertyName"in n}let e=n=>{let o=A(n);if(!t(n)||!o)return;let i=Ve.get(o);i||(i=new Set,Ve.set(o,i),o.addEventListener("transitioncancel",r,{once:!0})),i.add(n.propertyName)},r=n=>{let o=A(n);if(!t(n)||!o)return;let i=Ve.get(o);if(i&&(i.delete(n.propertyName),i.size===0&&(o.removeEventListener("transitioncancel",r),Ve.delete(o)),Ve.size===0)){for(let l of un)l();un.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?$o():document.addEventListener("DOMContentLoaded",$o));function Oc(){for(const[t]of Ve)"isConnected"in t&&!t.isConnected&&Ve.delete(t)}function Yi(t){requestAnimationFrame(()=>{Oc(),Ve.size===0?t():un.add(t)})}function Rr(){let t=a.useRef(new Map),e=a.useCallback((o,i,l,s)=>{let c=s!=null&&s.once?(...u)=>{t.current.delete(l),l(...u)}:l;t.current.set(l,{type:i,eventTarget:o,fn:c,options:s}),o.addEventListener(i,c,s)},[]),r=a.useCallback((o,i,l,s)=>{var u;let c=((u=t.current.get(l))==null?void 0:u.fn)||l;o.removeEventListener(i,c,s),t.current.delete(l)},[]),n=a.useCallback(()=>{t.current.forEach((o,i)=>{r(o.eventTarget,o.type,i,o.options)})},[r]);return a.useEffect(()=>n,[n]),{addGlobalListener:e,removeGlobalListener:r,removeAllGlobalListeners:n}}function Xi(t,e){let{id:r,"aria-label":n,"aria-labelledby":o}=t;return r=ge(r),o&&n?o=[...new Set([r,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!n&&!o&&e&&(n=e),{id:r,"aria-label":n,"aria-labelledby":o}}function zt(t){const e=a.useRef(null),r=a.useRef(void 0),n=a.useCallback(o=>{if(typeof t=="function"){const i=t,l=i(o);return()=>{typeof l=="function"?l():i(null)}}else if(t)return t.current=o,()=>{t.current=null}},[t]);return a.useMemo(()=>({get current(){return e.current},set current(o){e.current=o,r.current&&(r.current(),r.current=void 0),o!=null&&(r.current=n(o))}}),[n])}const jc=a.useInsertionEffect??J;function xe(t){const e=a.useRef(null);return jc(()=>{e.current=t},[t]),a.useCallback((...r)=>{const n=e.current;return n==null?void 0:n(...r)},[])}function xo(t,e){const r=a.useRef(!0),n=a.useRef(null);J(()=>(r.current=!0,()=>{r.current=!1}),[]),J(()=>{r.current?r.current=!1:(!n.current||e.some((o,i)=>!Object.is(o,n[i])))&&t(),n.current=e},e)}function Bc(){return typeof window.ResizeObserver<"u"}function hr(t){const{ref:e,box:r,onResize:n}=t;let o=xe(n);a.useEffect(()=>{let i=e==null?void 0:e.current;if(i)if(Bc()){const l=new window.ResizeObserver(s=>{s.length&&o()});return l.observe(i,{box:r}),()=>{i&&l.unobserve(i)}}else return window.addEventListener("resize",o,!1),()=>{window.removeEventListener("resize",o,!1)}},[e,r])}function Bn(t,e){J(()=>{if(t&&t.ref&&e)return t.ref.current=e.current,()=>{t.ref&&(t.ref.current=null)}})}function at(t,e){if(!t)return!1;let r=window.getComputedStyle(t),n=document.scrollingElement||document.documentElement,o=/(auto|scroll)/.test(r.overflow+r.overflowX+r.overflowY);return t===n&&r.overflow!=="hidden"&&(o=!0),o&&e&&(o=t.scrollHeight!==t.clientHeight||t.scrollWidth!==t.clientWidth),o}function Zi(t,e){let r=t;for(at(r,e)&&(r=r.parentElement);r&&!at(r,e);)r=r.parentElement;return r||document.scrollingElement||document.documentElement}function Wr(t,e){let r=[],n=document.scrollingElement||document.documentElement;for(;t&&(at(t,e)&&r.push(t),t!==n);)t=t.parentElement;return r}function tt(t){return Ye()?t.metaKey:t.ctrlKey}const _c=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Ur(t){return t instanceof HTMLInputElement&&!_c.has(t.type)||t instanceof HTMLTextAreaElement||t instanceof HTMLElement&&t.isContentEditable}let Vc=0;const Gr=new Map;function Hc(t){let[e,r]=a.useState();return J(()=>{if(!t)return;let n=Gr.get(t);if(n)r(n.element.id);else{let o=`react-aria-description-${Vc++}`;r(o);let i=document.createElement("div");i.id=o,i.style.display="none",i.textContent=t,document.body.appendChild(i),n={refCount:0,element:i},Gr.set(t,n)}return n.refCount++,()=>{n&&--n.refCount===0&&(n.element.remove(),Gr.delete(t))}},[t]),{"aria-describedby":t?e:void 0}}function Et(t,e,r,n){let o=xe(r),i=r==null;a.useEffect(()=>{if(i||!t.current)return;let l=t.current;return l.addEventListener(e,o,n),()=>{l.removeEventListener(e,o,n)}},[t,e,n,i])}function ar(t,e,r={}){let{block:n="nearest",inline:o="nearest"}=r;if(t===e)return;let i=t.scrollTop,l=t.scrollLeft,s=e.getBoundingClientRect(),c=t.getBoundingClientRect(),u=window.getComputedStyle(e),d=window.getComputedStyle(t),f=document.scrollingElement||document.documentElement,m=t===f,p=t===f?0:c.top,g=t===f?t.clientHeight:c.bottom,y=t===f?0:c.left,v=t===f?t.clientWidth:c.right,E=parseFloat(u.scrollMarginTop)||0,$=parseFloat(u.scrollMarginBottom)||0,P=parseFloat(u.scrollMarginLeft)||0,k=parseFloat(u.scrollMarginRight)||0,L=parseFloat(d.scrollPaddingTop)||0,j=parseFloat(d.scrollPaddingBottom)||0,T=parseFloat(d.scrollPaddingLeft)||0,R=parseFloat(d.scrollPaddingRight)||0,I=parseFloat(d.borderTopWidth)||0,K=parseFloat(d.borderBottomWidth)||0,V=parseFloat(d.borderLeftWidth)||0,z=parseFloat(d.borderRightWidth)||0,B=s.top-E,h=s.bottom+$,w=s.left-P,N=s.right+k,C=t===f?0:V+z,M=t===f?0:I+K,x=t===f?0:t.offsetWidth-t.clientWidth-C,S=t===f?0:t.offsetHeight-t.clientHeight-M,D=p+(m?0:I)+L,W=g-(m?0:K)-j-S,U=y+(m?0:V)+T,G=v-(m?0:z)-R;d.direction==="rtl"&&!Bt()?U+=x:G-=x;let te=B<D||h>W,se=w<U||N>G;if(te&&n==="start")i+=B-D;else if(te&&n==="center")i+=(B+h)/2-(D+W)/2;else if(te&&n==="end")i+=h-W;else if(te&&n==="nearest"){let Y=B-D,pe=h-W;i+=Math.abs(Y)<=Math.abs(pe)?Y:pe}if(se&&o==="start")l+=w-U;else if(se&&o==="center")l+=(w+N)/2-(U+G)/2;else if(se&&o==="end")l+=N-G;else if(se&&o==="nearest"){let Y=w-U,pe=N-G;l+=Math.abs(Y)<=Math.abs(pe)?Y:pe}if(process.env.NODE_ENV==="test"){t.scrollLeft=l,t.scrollTop=i;return}t.scrollTo({left:l,top:i})}function wo(t,e={}){var n,o,i;let{containingElement:r}=e;if(t&&t.isConnected){let l=document.scrollingElement||document.documentElement;if(window.getComputedStyle(l).overflow==="hidden"){let{left:c,top:u}=t.getBoundingClientRect(),d=Wr(t,!0);for(let p of d)ar(p,t);let{left:f,top:m}=t.getBoundingClientRect();if(Math.abs(c-f)>1||Math.abs(u-m)>1){d=r?Wr(r,!0):[];for(let p of d)ar(p,r,{block:"center",inline:"center"});for(let p of Wr(t,!0))ar(p,t)}}else{let{left:c,top:u}=t.getBoundingClientRect();(n=t==null?void 0:t.scrollIntoView)==null||n.call(t,{block:"nearest"});let{left:d,top:f}=t.getBoundingClientRect();(Math.abs(c-d)>1||Math.abs(u-f)>1)&&((o=r==null?void 0:r.scrollIntoView)==null||o.call(r,{block:"center",inline:"center"}),(i=t.scrollIntoView)==null||i.call(t,{block:"nearest"}))}}}function dn(t){return t.pointerType===""&&t.isTrusted?!0:jn()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function zc(t){return!jn()&&t.width===0&&t.height===0||t.width===1&&t.height===1&&t.pressure===0&&t.detail===0&&t.pointerType==="mouse"}function Wc(t,e,r){let n=xe(o=>{r&&!o.defaultPrevented&&r(e)});a.useEffect(()=>{var i;let o=(i=t==null?void 0:t.current)==null?void 0:i.form;return o==null||o.addEventListener("reset",n),()=>{o==null||o.removeEventListener("reset",n)}},[t])}function Uc(t,e=!0){let[r,n]=a.useState(!0),o=r&&e;return J(()=>{if(o&&t.current&&"getAnimations"in t.current)for(let i of t.current.getAnimations())i instanceof CSSTransition&&i.cancel()},[t,o]),Ji(t,o,a.useCallback(()=>n(!1),[])),o}function Gc(t,e){let[r,n]=a.useState(e?"open":"closed");switch(r){case"open":e||n("exiting");break;case"closed":case"exiting":e&&n("open");break}let o=r==="exiting";return Ji(t,o,a.useCallback(()=>{n(i=>i==="exiting"?"closed":i)},[])),o}function Ji(t,e,r){J(()=>{if(e&&t.current){if(!("getAnimations"in t.current)){r();return}let n=t.current.getAnimations();if(n.length===0){r();return}let o=!1;return Promise.allSettled(n.map(i=>i.finished)).then(()=>{o||jt.flushSync(()=>{r()})}),()=>{o=!0}}},[t,e,r])}const qc=typeof Element<"u"&&"checkVisibility"in Element.prototype;function Yc(t){const e=fe(t);if(!(t instanceof e.HTMLElement)&&!(t instanceof e.SVGElement))return!1;let{display:r,visibility:n}=t.style,o=r!=="none"&&n!=="hidden"&&n!=="collapse";if(o){const{getComputedStyle:i}=t.ownerDocument.defaultView;let{display:l,visibility:s}=i(t);o=l!=="none"&&s!=="hidden"&&s!=="collapse"}return o}function Xc(t,e){return!t.hasAttribute("hidden")&&!t.hasAttribute("data-react-aria-prevent-focus")&&(t.nodeName==="DETAILS"&&e&&e.nodeName!=="SUMMARY"?t.hasAttribute("open"):!0)}function _n(t,e){return qc?t.checkVisibility({visibilityProperty:!0})&&!t.closest("[data-react-aria-prevent-focus]"):t.nodeName!=="#comment"&&Yc(t)&&Xc(t,e)&&(!t.parentElement||_n(t.parentElement,t))}const Vn=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],Zc=Vn.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Vn.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const Jc=Vn.join(':not([hidden]):not([tabindex="-1"]),');function Qi(t,e){return t.matches(Zc)&&!tl(t)&&((e==null?void 0:e.skipVisibilityCheck)||_n(t))}function el(t){return t.matches(Jc)&&_n(t)&&!tl(t)}function tl(t){let e=t;for(;e!=null;){if(e instanceof e.ownerDocument.defaultView.HTMLElement&&e.inert)return!0;e=e.parentElement}return!1}function Eo(t){let e=t==null?void 0:t.defaultView;return(e==null?void 0:e.__webpack_nonce__)||globalThis.__webpack_nonce__||void 0}let qr=new WeakMap;function rl(t){let e=t??(typeof document<"u"?document:void 0);if(!e)return Eo(e);if(qr.has(e))return qr.get(e);let r=e.querySelector('meta[property="csp-nonce"]'),n=r&&r instanceof fe(r).HTMLMetaElement&&(r.nonce||r.content)||Eo(e)||void 0;return n!==void 0&&qr.set(e,n),n}function Qc(t,e,r){const{render:n,...o}=e,i=a.useRef(null),l=a.useMemo(()=>Ht(r,i),[r,i]);J(()=>{var c;typeof process<"u"&&((c=process.env)==null?void 0:c.NODE_ENV)!=="production"&&n&&(i.current||console.warn("Ref was not connected to DOM element returned by custom `render` function. Did you forget to pass through or merge the `ref`?"))},[t,n]);const s={...o,ref:l};return n?n(s,void 0):b.jsx(t,{...s})}const So={},ie=new Proxy({},{get(t,e){if(typeof e!="string")return;let r=So[e];return r||(r=a.forwardRef(Qc.bind(null,e)),So[e]=r),r}});var eu=/\s+/g,tu=t=>typeof t!="string"||!t?t:t.replace(eu," ").trim(),Dt=(...t)=>{const e=[],r=n=>{if(!n&&n!==0&&n!==0n)return;if(Array.isArray(n)){for(let i=0,l=n.length;i<l;i++)r(n[i]);return}const o=typeof n;if(o==="string"||o==="number"||o==="bigint"){if(o==="number"&&n!==n)return;e.push(String(n))}else if(o==="object"){const i=Object.keys(n);for(let l=0,s=i.length;l<s;l++){const c=i[l];n[c]&&e.push(c)}}};for(let n=0,o=t.length;n<o;n++){const i=t[n];i!=null&&r(i)}return e.length>0?tu(e.join(" ")):void 0},Co=t=>t===!1?"false":t===!0?"true":t===0?"0":t,be=t=>{if(!t||typeof t!="object")return!0;for(const e in t)return!1;return!0},ru=(t,e)=>{if(t===e)return!0;if(!t||!e)return!1;const r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(let o=0;o<r.length;o++){const i=r[o];if(!n.includes(i)||t[i]!==e[i])return!1}return!0},nu=(t,e)=>{for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const n=e[r];r in t?t[r]=Dt(t[r],n):t[r]=n}return t},nl=(t,e)=>{for(let r=0;r<t.length;r++){const n=t[r];Array.isArray(n)?nl(n,e):n&&e.push(n)}},ol=(...t)=>{const e=[];nl(t,e);const r=[];for(let n=0;n<e.length;n++)e[n]&&r.push(e[n]);return r},fn=(t,e)=>{const r={};for(const n in t){const o=t[n];if(n in e){const i=e[n];Array.isArray(o)||Array.isArray(i)?r[n]=ol(i,o):typeof o=="object"&&typeof i=="object"&&o&&i?r[n]=fn(o,i):r[n]=i+" "+o}else r[n]=o}for(const n in e)n in t||(r[n]=e[n]);return r},ou={twMerge:!0,twMergeConfig:{}};function iu(){let t=null,e={},r=!1;return{get cachedTwMerge(){return t},set cachedTwMerge(n){t=n},get cachedTwMergeConfig(){return e},set cachedTwMergeConfig(n){e=n},get didTwMergeConfigChange(){return r},set didTwMergeConfigChange(n){r=n},reset(){t=null,e={},r=!1}}}var Re=iu(),lu=t=>{const e=(n,o)=>{const{extend:i=null,slots:l={},variants:s={},compoundVariants:c=[],compoundSlots:u=[],defaultVariants:d={}}=n,f={...ou,...o},m=i!=null&&i.base?Dt(i.base,n==null?void 0:n.base):n==null?void 0:n.base,p=i!=null&&i.variants&&!be(i.variants)?fn(s,i.variants):s,g=i!=null&&i.defaultVariants&&!be(i.defaultVariants)?{...i.defaultVariants,...d}:d;!be(f.twMergeConfig)&&!ru(f.twMergeConfig,Re.cachedTwMergeConfig)&&(Re.didTwMergeConfigChange=!0,Re.cachedTwMergeConfig=f.twMergeConfig);const y=be(i==null?void 0:i.slots),v=be(l)?{}:{base:Dt(n==null?void 0:n.base,y&&(i==null?void 0:i.base)),...l},E=y?v:nu({...i==null?void 0:i.slots},be(v)?{base:n==null?void 0:n.base}:v),$=be(i==null?void 0:i.compoundVariants)?c:ol(i==null?void 0:i.compoundVariants,c),P=L=>{if(be(p)&&be(l)&&y)return t(m,L==null?void 0:L.class,L==null?void 0:L.className)(f);if($&&!Array.isArray($))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof $}`);if(u&&!Array.isArray(u))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof u}`);const j=(h,w=p,N=null,C=null)=>{const M=w[h];if(!M||be(M))return null;const x=(C==null?void 0:C[h])??(L==null?void 0:L[h]);if(x===null)return null;const S=Co(x);if(typeof S=="object")return null;const D=g==null?void 0:g[h],W=S??Co(D);return M[W||"false"]},T=()=>{if(!p)return null;const h=Object.keys(p),w=[];for(let N=0;N<h.length;N++){const C=j(h[N],p);C&&w.push(C)}return w},R=(h,w)=>{if(!p||typeof p!="object")return null;const N=[];for(const C in p){const M=j(C,p,h,w),x=h==="base"&&typeof M=="string"?M:M&&M[h];x&&N.push(x)}return N},I={};for(const h in L){const w=L[h];w!==void 0&&(I[h]=w)}const K=(h,w)=>{var C;const N=typeof(L==null?void 0:L[h])=="object"?{[h]:(C=L[h])==null?void 0:C.initial}:{};return{...g,...I,...N,...w}},V=(h=[],w)=>{const N=[],C=h.length;for(let M=0;M<C;M++){const{class:x,className:S,...D}=h[M];let W=!0;const U=K(null,w);for(const G in D){const te=D[G],se=U[G];if(Array.isArray(te)){if(!te.includes(se)){W=!1;break}}else{if((te==null||te===!1)&&(se==null||se===!1))continue;if(se!==te){W=!1;break}}}W&&(x&&N.push(x),S&&N.push(S))}return N},z=h=>{const w=V($,h);if(!Array.isArray(w))return w;const N={},C=t;for(let M=0;M<w.length;M++){const x=w[M];if(typeof x=="string")N.base=C(N.base,x)(f);else if(typeof x=="object")for(const S in x)N[S]=C(N[S],x[S])(f)}return N},B=h=>{if(u.length<1)return null;const w={},N=K(null,h);for(let C=0;C<u.length;C++){const{slots:M=[],class:x,className:S,...D}=u[C];if(!be(D)){let W=!0;for(const U in D){const G=N[U],te=D[U];if(G===void 0||(Array.isArray(te)?!te.includes(G):te!==G)){W=!1;break}}if(!W)continue}for(let W=0;W<M.length;W++){const U=M[W];w[U]||(w[U]=[]),w[U].push([x,S])}}return w};if(!be(l)||!y){const h={};if(typeof E=="object"&&!be(E)){const w=t;for(const N in E)h[N]=C=>{const M=z(C),x=B(C);return w(E[N],R(N,C),M?M[N]:void 0,x?x[N]:void 0,C==null?void 0:C.class,C==null?void 0:C.className)(f)}}return h}return t(m,T(),V($),L==null?void 0:L.class,L==null?void 0:L.className)(f)},k=()=>{if(!(!p||typeof p!="object"))return Object.keys(p)};return P.variantKeys=k(),P.extend=i,P.base=m,P.slots=E,P.variants=p,P.defaultVariants=g,P.compoundSlots=u,P.compoundVariants=$,P};return{tv:e,createTV:n=>(o,i)=>e(o,i?fn(n,i):n)}};const su=(t,e)=>{const r=new Array(t.length+e.length);for(let n=0;n<t.length;n++)r[n]=t[n];for(let n=0;n<e.length;n++)r[t.length+n]=e[n];return r},au=(t,e)=>({classGroupId:t,validator:e}),il=(t=new Map,e=null,r)=>({nextPart:t,validators:e,classGroupId:r}),br="-",Po=[],cu="arbitrary..",uu=t=>{const e=fu(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=t;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return du(l);const s=l.split(br),c=s[0]===""&&s.length>1?1:0;return ll(s,c,e)},getConflictingClassGroupIds:(l,s)=>{if(s){const c=n[l],u=r[l];return c?u?su(u,c):c:u||Po}return r[l]||Po}}},ll=(t,e,r)=>{if(t.length-e===0)return r.classGroupId;const o=t[e],i=r.nextPart.get(o);if(i){const u=ll(t,e+1,i);if(u)return u}const l=r.validators;if(l===null)return;const s=e===0?t.join(br):t.slice(e).join(br),c=l.length;for(let u=0;u<c;u++){const d=l[u];if(d.validator(s))return d.classGroupId}},du=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const e=t.slice(1,-1),r=e.indexOf(":"),n=e.slice(0,r);return n?cu+n:void 0})(),fu=t=>{const{theme:e,classGroups:r}=t;return pu(r,e)},pu=(t,e)=>{const r=il();for(const n in t){const o=t[n];Hn(o,r,n,e)}return r},Hn=(t,e,r,n)=>{const o=t.length;for(let i=0;i<o;i++){const l=t[i];hu(l,e,r,n)}},hu=(t,e,r,n)=>{if(typeof t=="string"){bu(t,e,r);return}if(typeof t=="function"){mu(t,e,r,n);return}gu(t,e,r,n)},bu=(t,e,r)=>{const n=t===""?e:sl(e,t);n.classGroupId=r},mu=(t,e,r,n)=>{if(yu(t)){Hn(t(n),e,r,n);return}e.validators===null&&(e.validators=[]),e.validators.push(au(r,t))},gu=(t,e,r,n)=>{const o=Object.entries(t),i=o.length;for(let l=0;l<i;l++){const[s,c]=o[l];Hn(c,sl(e,s),r,n)}},sl=(t,e)=>{let r=t;const n=e.split(br),o=n.length;for(let i=0;i<o;i++){const l=n[i];let s=r.nextPart.get(l);s||(s=il(),r.nextPart.set(l,s)),r=s}return r},yu=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,vu=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,r=Object.create(null),n=Object.create(null);const o=(i,l)=>{r[i]=l,e++,e>t&&(e=0,n=r,r=Object.create(null))};return{get(i){let l=r[i];if(l!==void 0)return l;if((l=n[i])!==void 0)return o(i,l),l},set(i,l){i in r?r[i]=l:o(i,l)}}},pn="!",ko=":",$u=[],To=(t,e,r,n,o)=>({modifiers:t,hasImportantModifier:e,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),xu=t=>{const{prefix:e,experimentalParseClassName:r}=t;let n=o=>{const i=[];let l=0,s=0,c=0,u;const d=o.length;for(let y=0;y<d;y++){const v=o[y];if(l===0&&s===0){if(v===ko){i.push(o.slice(c,y)),c=y+1;continue}if(v==="/"){u=y;continue}}v==="["?l++:v==="]"?l--:v==="("?s++:v===")"&&s--}const f=i.length===0?o:o.slice(c);let m=f,p=!1;f.endsWith(pn)?(m=f.slice(0,-1),p=!0):f.startsWith(pn)&&(m=f.slice(1),p=!0);const g=u&&u>c?u-c:void 0;return To(i,p,m,g)};if(e){const o=e+ko,i=n;n=l=>l.startsWith(o)?i(l.slice(o.length)):To($u,!1,l,void 0,!0)}if(r){const o=n;n=i=>r({className:i,parseClassName:o})}return n},wu=t=>{const e=new Map;return t.orderSensitiveModifiers.forEach((r,n)=>{e.set(r,1e6+n)}),r=>{const n=[];let o=[];for(let i=0;i<r.length;i++){const l=r[i],s=l[0]==="[",c=e.has(l);s||c?(o.length>0&&(o.sort(),n.push(...o),o=[]),n.push(l)):o.push(l)}return o.length>0&&(o.sort(),n.push(...o)),n}},Eu=t=>({cache:vu(t.cacheSize),parseClassName:xu(t),sortModifiers:wu(t),...uu(t)}),Su=/\s+/,Cu=(t,e)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:i}=e,l=[],s=t.trim().split(Su);let c="";for(let u=s.length-1;u>=0;u-=1){const d=s[u],{isExternal:f,modifiers:m,hasImportantModifier:p,baseClassName:g,maybePostfixModifierPosition:y}=r(d);if(f){c=d+(c.length>0?" "+c:c);continue}let v=!!y,E=n(v?g.substring(0,y):g);if(!E){if(!v){c=d+(c.length>0?" "+c:c);continue}if(E=n(g),!E){c=d+(c.length>0?" "+c:c);continue}v=!1}const $=m.length===0?"":m.length===1?m[0]:i(m).join(":"),P=p?$+pn:$,k=P+E;if(l.indexOf(k)>-1)continue;l.push(k);const L=o(E,v);for(let j=0;j<L.length;++j){const T=L[j];l.push(P+T)}c=d+(c.length>0?" "+c:c)}return c},Pu=(...t)=>{let e=0,r,n,o="";for(;e<t.length;)(r=t[e++])&&(n=al(r))&&(o&&(o+=" "),o+=n);return o},al=t=>{if(typeof t=="string")return t;let e,r="";for(let n=0;n<t.length;n++)t[n]&&(e=al(t[n]))&&(r&&(r+=" "),r+=e);return r},hn=(t,...e)=>{let r,n,o,i;const l=c=>{const u=e.reduce((d,f)=>f(d),t());return r=Eu(u),n=r.cache.get,o=r.cache.set,i=s,s(c)},s=c=>{const u=n(c);if(u)return u;const d=Cu(c,r);return o(c,d),d};return i=l,(...c)=>i(Pu(...c))},ku=[],ae=t=>{const e=r=>r[t]||ku;return e.isThemeGetter=!0,e},cl=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ul=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Tu=/^\d+\/\d+$/,Mu=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ru=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Nu=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Du=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Lu=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Qe=t=>Tu.test(t),q=t=>!!t&&!Number.isNaN(Number(t)),Be=t=>!!t&&Number.isInteger(Number(t)),Yr=t=>t.endsWith("%")&&q(t.slice(0,-1)),Me=t=>Mu.test(t),Iu=()=>!0,Ku=t=>Ru.test(t)&&!Nu.test(t),dl=()=>!1,Au=t=>Du.test(t),Fu=t=>Lu.test(t),Ou=t=>!F(t)&&!O(t),ju=t=>ft(t,hl,dl),F=t=>cl.test(t),Ue=t=>ft(t,bl,Ku),Xr=t=>ft(t,zu,q),Mo=t=>ft(t,fl,dl),Bu=t=>ft(t,pl,Fu),Yt=t=>ft(t,ml,Au),O=t=>ul.test(t),yt=t=>pt(t,bl),_u=t=>pt(t,Wu),Ro=t=>pt(t,fl),Vu=t=>pt(t,hl),Hu=t=>pt(t,pl),Xt=t=>pt(t,ml,!0),ft=(t,e,r)=>{const n=cl.exec(t);return n?n[1]?e(n[1]):r(n[2]):!1},pt=(t,e,r=!1)=>{const n=ul.exec(t);return n?n[1]?e(n[1]):r:!1},fl=t=>t==="position"||t==="percentage",pl=t=>t==="image"||t==="url",hl=t=>t==="length"||t==="size"||t==="bg-size",bl=t=>t==="length",zu=t=>t==="number",Wu=t=>t==="family-name",ml=t=>t==="shadow",bn=()=>{const t=ae("color"),e=ae("font"),r=ae("text"),n=ae("font-weight"),o=ae("tracking"),i=ae("leading"),l=ae("breakpoint"),s=ae("container"),c=ae("spacing"),u=ae("radius"),d=ae("shadow"),f=ae("inset-shadow"),m=ae("text-shadow"),p=ae("drop-shadow"),g=ae("blur"),y=ae("perspective"),v=ae("aspect"),E=ae("ease"),$=ae("animate"),P=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],L=()=>[...k(),O,F],j=()=>["auto","hidden","clip","visible","scroll"],T=()=>["auto","contain","none"],R=()=>[O,F,c],I=()=>[Qe,"full","auto",...R()],K=()=>[Be,"none","subgrid",O,F],V=()=>["auto",{span:["full",Be,O,F]},Be,O,F],z=()=>[Be,"auto",O,F],B=()=>["auto","min","max","fr",O,F],h=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],w=()=>["start","end","center","stretch","center-safe","end-safe"],N=()=>["auto",...R()],C=()=>[Qe,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...R()],M=()=>[t,O,F],x=()=>[...k(),Ro,Mo,{position:[O,F]}],S=()=>["no-repeat",{repeat:["","x","y","space","round"]}],D=()=>["auto","cover","contain",Vu,ju,{size:[O,F]}],W=()=>[Yr,yt,Ue],U=()=>["","none","full",u,O,F],G=()=>["",q,yt,Ue],te=()=>["solid","dashed","dotted","double"],se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Y=()=>[q,Yr,Ro,Mo],pe=()=>["","none",g,O,F],Te=()=>["none",q,O,F],_=()=>["none",q,O,F],ye=()=>[q,O,F],he=()=>[Qe,"full",...R()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Me],breakpoint:[Me],color:[Iu],container:[Me],"drop-shadow":[Me],ease:["in","out","in-out"],font:[Ou],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Me],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Me],shadow:[Me],spacing:["px",q],text:[Me],"text-shadow":[Me],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Qe,F,O,v]}],container:["container"],columns:[{columns:[q,F,O,s]}],"break-after":[{"break-after":P()}],"break-before":[{"break-before":P()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:L()}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:I()}],"inset-x":[{"inset-x":I()}],"inset-y":[{"inset-y":I()}],start:[{start:I()}],end:[{end:I()}],top:[{top:I()}],right:[{right:I()}],bottom:[{bottom:I()}],left:[{left:I()}],visibility:["visible","invisible","collapse"],z:[{z:[Be,"auto",O,F]}],basis:[{basis:[Qe,"full","auto",s,...R()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[q,Qe,"auto","initial","none",F]}],grow:[{grow:["",q,O,F]}],shrink:[{shrink:["",q,O,F]}],order:[{order:[Be,"first","last","none",O,F]}],"grid-cols":[{"grid-cols":K()}],"col-start-end":[{col:V()}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":K()}],"row-start-end":[{row:V()}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":B()}],"auto-rows":[{"auto-rows":B()}],gap:[{gap:R()}],"gap-x":[{"gap-x":R()}],"gap-y":[{"gap-y":R()}],"justify-content":[{justify:[...h(),"normal"]}],"justify-items":[{"justify-items":[...w(),"normal"]}],"justify-self":[{"justify-self":["auto",...w()]}],"align-content":[{content:["normal",...h()]}],"align-items":[{items:[...w(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...w(),{baseline:["","last"]}]}],"place-content":[{"place-content":h()}],"place-items":[{"place-items":[...w(),"baseline"]}],"place-self":[{"place-self":["auto",...w()]}],p:[{p:R()}],px:[{px:R()}],py:[{py:R()}],ps:[{ps:R()}],pe:[{pe:R()}],pt:[{pt:R()}],pr:[{pr:R()}],pb:[{pb:R()}],pl:[{pl:R()}],m:[{m:N()}],mx:[{mx:N()}],my:[{my:N()}],ms:[{ms:N()}],me:[{me:N()}],mt:[{mt:N()}],mr:[{mr:N()}],mb:[{mb:N()}],ml:[{ml:N()}],"space-x":[{"space-x":R()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":R()}],"space-y-reverse":["space-y-reverse"],size:[{size:C()}],w:[{w:[s,"screen",...C()]}],"min-w":[{"min-w":[s,"screen","none",...C()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[l]},...C()]}],h:[{h:["screen","lh",...C()]}],"min-h":[{"min-h":["screen","lh","none",...C()]}],"max-h":[{"max-h":["screen","lh",...C()]}],"font-size":[{text:["base",r,yt,Ue]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,O,Xr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Yr,F]}],"font-family":[{font:[_u,F,e]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,O,F]}],"line-clamp":[{"line-clamp":[q,"none",O,Xr]}],leading:[{leading:[i,...R()]}],"list-image":[{"list-image":["none",O,F]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",O,F]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:M()}],"text-color":[{text:M()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...te(),"wavy"]}],"text-decoration-thickness":[{decoration:[q,"from-font","auto",O,Ue]}],"text-decoration-color":[{decoration:M()}],"underline-offset":[{"underline-offset":[q,"auto",O,F]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",O,F]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",O,F]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:x()}],"bg-repeat":[{bg:S()}],"bg-size":[{bg:D()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Be,O,F],radial:["",O,F],conic:[Be,O,F]},Hu,Bu]}],"bg-color":[{bg:M()}],"gradient-from-pos":[{from:W()}],"gradient-via-pos":[{via:W()}],"gradient-to-pos":[{to:W()}],"gradient-from":[{from:M()}],"gradient-via":[{via:M()}],"gradient-to":[{to:M()}],rounded:[{rounded:U()}],"rounded-s":[{"rounded-s":U()}],"rounded-e":[{"rounded-e":U()}],"rounded-t":[{"rounded-t":U()}],"rounded-r":[{"rounded-r":U()}],"rounded-b":[{"rounded-b":U()}],"rounded-l":[{"rounded-l":U()}],"rounded-ss":[{"rounded-ss":U()}],"rounded-se":[{"rounded-se":U()}],"rounded-ee":[{"rounded-ee":U()}],"rounded-es":[{"rounded-es":U()}],"rounded-tl":[{"rounded-tl":U()}],"rounded-tr":[{"rounded-tr":U()}],"rounded-br":[{"rounded-br":U()}],"rounded-bl":[{"rounded-bl":U()}],"border-w":[{border:G()}],"border-w-x":[{"border-x":G()}],"border-w-y":[{"border-y":G()}],"border-w-s":[{"border-s":G()}],"border-w-e":[{"border-e":G()}],"border-w-t":[{"border-t":G()}],"border-w-r":[{"border-r":G()}],"border-w-b":[{"border-b":G()}],"border-w-l":[{"border-l":G()}],"divide-x":[{"divide-x":G()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":G()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...te(),"hidden","none"]}],"divide-style":[{divide:[...te(),"hidden","none"]}],"border-color":[{border:M()}],"border-color-x":[{"border-x":M()}],"border-color-y":[{"border-y":M()}],"border-color-s":[{"border-s":M()}],"border-color-e":[{"border-e":M()}],"border-color-t":[{"border-t":M()}],"border-color-r":[{"border-r":M()}],"border-color-b":[{"border-b":M()}],"border-color-l":[{"border-l":M()}],"divide-color":[{divide:M()}],"outline-style":[{outline:[...te(),"none","hidden"]}],"outline-offset":[{"outline-offset":[q,O,F]}],"outline-w":[{outline:["",q,yt,Ue]}],"outline-color":[{outline:M()}],shadow:[{shadow:["","none",d,Xt,Yt]}],"shadow-color":[{shadow:M()}],"inset-shadow":[{"inset-shadow":["none",f,Xt,Yt]}],"inset-shadow-color":[{"inset-shadow":M()}],"ring-w":[{ring:G()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:M()}],"ring-offset-w":[{"ring-offset":[q,Ue]}],"ring-offset-color":[{"ring-offset":M()}],"inset-ring-w":[{"inset-ring":G()}],"inset-ring-color":[{"inset-ring":M()}],"text-shadow":[{"text-shadow":["none",m,Xt,Yt]}],"text-shadow-color":[{"text-shadow":M()}],opacity:[{opacity:[q,O,F]}],"mix-blend":[{"mix-blend":[...se(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":se()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[q]}],"mask-image-linear-from-pos":[{"mask-linear-from":Y()}],"mask-image-linear-to-pos":[{"mask-linear-to":Y()}],"mask-image-linear-from-color":[{"mask-linear-from":M()}],"mask-image-linear-to-color":[{"mask-linear-to":M()}],"mask-image-t-from-pos":[{"mask-t-from":Y()}],"mask-image-t-to-pos":[{"mask-t-to":Y()}],"mask-image-t-from-color":[{"mask-t-from":M()}],"mask-image-t-to-color":[{"mask-t-to":M()}],"mask-image-r-from-pos":[{"mask-r-from":Y()}],"mask-image-r-to-pos":[{"mask-r-to":Y()}],"mask-image-r-from-color":[{"mask-r-from":M()}],"mask-image-r-to-color":[{"mask-r-to":M()}],"mask-image-b-from-pos":[{"mask-b-from":Y()}],"mask-image-b-to-pos":[{"mask-b-to":Y()}],"mask-image-b-from-color":[{"mask-b-from":M()}],"mask-image-b-to-color":[{"mask-b-to":M()}],"mask-image-l-from-pos":[{"mask-l-from":Y()}],"mask-image-l-to-pos":[{"mask-l-to":Y()}],"mask-image-l-from-color":[{"mask-l-from":M()}],"mask-image-l-to-color":[{"mask-l-to":M()}],"mask-image-x-from-pos":[{"mask-x-from":Y()}],"mask-image-x-to-pos":[{"mask-x-to":Y()}],"mask-image-x-from-color":[{"mask-x-from":M()}],"mask-image-x-to-color":[{"mask-x-to":M()}],"mask-image-y-from-pos":[{"mask-y-from":Y()}],"mask-image-y-to-pos":[{"mask-y-to":Y()}],"mask-image-y-from-color":[{"mask-y-from":M()}],"mask-image-y-to-color":[{"mask-y-to":M()}],"mask-image-radial":[{"mask-radial":[O,F]}],"mask-image-radial-from-pos":[{"mask-radial-from":Y()}],"mask-image-radial-to-pos":[{"mask-radial-to":Y()}],"mask-image-radial-from-color":[{"mask-radial-from":M()}],"mask-image-radial-to-color":[{"mask-radial-to":M()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":k()}],"mask-image-conic-pos":[{"mask-conic":[q]}],"mask-image-conic-from-pos":[{"mask-conic-from":Y()}],"mask-image-conic-to-pos":[{"mask-conic-to":Y()}],"mask-image-conic-from-color":[{"mask-conic-from":M()}],"mask-image-conic-to-color":[{"mask-conic-to":M()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:x()}],"mask-repeat":[{mask:S()}],"mask-size":[{mask:D()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",O,F]}],filter:[{filter:["","none",O,F]}],blur:[{blur:pe()}],brightness:[{brightness:[q,O,F]}],contrast:[{contrast:[q,O,F]}],"drop-shadow":[{"drop-shadow":["","none",p,Xt,Yt]}],"drop-shadow-color":[{"drop-shadow":M()}],grayscale:[{grayscale:["",q,O,F]}],"hue-rotate":[{"hue-rotate":[q,O,F]}],invert:[{invert:["",q,O,F]}],saturate:[{saturate:[q,O,F]}],sepia:[{sepia:["",q,O,F]}],"backdrop-filter":[{"backdrop-filter":["","none",O,F]}],"backdrop-blur":[{"backdrop-blur":pe()}],"backdrop-brightness":[{"backdrop-brightness":[q,O,F]}],"backdrop-contrast":[{"backdrop-contrast":[q,O,F]}],"backdrop-grayscale":[{"backdrop-grayscale":["",q,O,F]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[q,O,F]}],"backdrop-invert":[{"backdrop-invert":["",q,O,F]}],"backdrop-opacity":[{"backdrop-opacity":[q,O,F]}],"backdrop-saturate":[{"backdrop-saturate":[q,O,F]}],"backdrop-sepia":[{"backdrop-sepia":["",q,O,F]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":R()}],"border-spacing-x":[{"border-spacing-x":R()}],"border-spacing-y":[{"border-spacing-y":R()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",O,F]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[q,"initial",O,F]}],ease:[{ease:["linear","initial",E,O,F]}],delay:[{delay:[q,O,F]}],animate:[{animate:["none",$,O,F]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[y,O,F]}],"perspective-origin":[{"perspective-origin":L()}],rotate:[{rotate:Te()}],"rotate-x":[{"rotate-x":Te()}],"rotate-y":[{"rotate-y":Te()}],"rotate-z":[{"rotate-z":Te()}],scale:[{scale:_()}],"scale-x":[{"scale-x":_()}],"scale-y":[{"scale-y":_()}],"scale-z":[{"scale-z":_()}],"scale-3d":["scale-3d"],skew:[{skew:ye()}],"skew-x":[{"skew-x":ye()}],"skew-y":[{"skew-y":ye()}],transform:[{transform:[O,F,"","none","gpu","cpu"]}],"transform-origin":[{origin:L()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:he()}],"translate-x":[{"translate-x":he()}],"translate-y":[{"translate-y":he()}],"translate-z":[{"translate-z":he()}],"translate-none":["translate-none"],accent:[{accent:M()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:M()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",O,F]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",O,F]}],fill:[{fill:["none",...M()]}],"stroke-w":[{stroke:[q,yt,Ue,Xr]}],stroke:[{stroke:["none",...M()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Uu=(t,{cacheSize:e,prefix:r,experimentalParseClassName:n,extend:o={},override:i={}})=>(St(t,"cacheSize",e),St(t,"prefix",r),St(t,"experimentalParseClassName",n),Zt(t.theme,i.theme),Zt(t.classGroups,i.classGroups),Zt(t.conflictingClassGroups,i.conflictingClassGroups),Zt(t.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),St(t,"orderSensitiveModifiers",i.orderSensitiveModifiers),Jt(t.theme,o.theme),Jt(t.classGroups,o.classGroups),Jt(t.conflictingClassGroups,o.conflictingClassGroups),Jt(t.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),gl(t,o,"orderSensitiveModifiers"),t),St=(t,e,r)=>{r!==void 0&&(t[e]=r)},Zt=(t,e)=>{if(e)for(const r in e)St(t,r,e[r])},Jt=(t,e)=>{if(e)for(const r in e)gl(t,e,r)},gl=(t,e,r)=>{const n=e[r];n!==void 0&&(t[r]=t[r]?t[r].concat(n):n)},Gu=(t,...e)=>typeof t=="function"?hn(bn,t,...e):hn(()=>Uu(bn(),t),...e),qu=hn(bn);var Yu=t=>be(t)?qu:Gu({...t,extend:{theme:t.theme,classGroups:t.classGroups,conflictingClassGroupModifiers:t.conflictingClassGroupModifiers,conflictingClassGroups:t.conflictingClassGroups,...t.extend}}),yl=(t,e)=>{const r=Dt(t);return!r||!((e==null?void 0:e.twMerge)??!0)?r:((!Re.cachedTwMerge||Re.didTwMergeConfigChange)&&(Re.didTwMergeConfigChange=!1,Re.cachedTwMerge=Yu(Re.cachedTwMergeConfig)),Re.cachedTwMerge(r)||void 0)},ee=(...t)=>yl(t,{}),Xu=(...t)=>e=>yl(t,e),{tv:Ee}=lu(Xu);const Zu=Ee({defaultVariants:{status:"default"},slots:{base:"alert",content:"alert__content",description:"alert__description",indicator:"alert__indicator",title:"alert__title"},variants:{status:{accent:{base:"alert--accent"},danger:{base:"alert--danger"},default:{base:"alert--default"},success:{base:"alert--success"},warning:{base:"alert--warning"}}}}),ze=Ee({base:"button",defaultVariants:{fullWidth:!1,isIconOnly:!1,size:"md",variant:"primary"},variants:{fullWidth:{false:"",true:"button--full-width"},isIconOnly:{true:"button--icon-only"},size:{lg:"button--lg",md:"button--md",sm:"button--sm"},variant:{danger:"button--danger","danger-soft":"button--danger-soft",ghost:"button--ghost",outline:"button--outline",primary:"button--primary",secondary:"button--secondary",tertiary:"button--tertiary"}}}),zn=Ee({defaultVariants:{fullWidth:!1,orientation:"horizontal"},slots:{base:"button-group",separator:"button-group__separator"},variants:{fullWidth:{false:{},true:{base:"button-group--full-width"}},orientation:{horizontal:{base:"button-group--horizontal"},vertical:{base:"button-group--vertical"}}}}),Ju=Ee({defaultVariants:{variant:"default"},slots:{base:"card",content:"card__content",description:"card__description",footer:"card__footer",header:"card__header",title:"card__title"},variants:{variant:{default:{base:"card--default"},secondary:{base:"card--secondary"},tertiary:{base:"card--tertiary"},transparent:{base:"card--transparent"}}}}),Qu=Ee({defaultVariants:{variant:"primary"},slots:{base:"checkbox",content:"checkbox__content",control:"checkbox__control",indicator:"checkbox__indicator"},variants:{variant:{primary:{base:"checkbox--primary"},secondary:{base:"checkbox--secondary"}}}}),ed=Ee({defaultVariants:{color:"default",variant:"secondary"},slots:{base:"chip",label:"chip__label"},variants:{color:{accent:{base:"chip--accent"},danger:{base:"chip--danger"},default:{base:"chip--default"},success:{base:"chip--success"},warning:{base:"chip--warning"}},size:{lg:{base:"chip--lg"},md:{base:"chip--md"},sm:{base:"chip--sm"}},variant:{primary:{base:"chip--primary"},secondary:{base:"chip--secondary"},soft:{base:"chip--soft"},tertiary:{base:"chip--tertiary"}}}}),td=Ee({slots:{menu:"dropdown__menu",popover:"dropdown__popover",root:"dropdown",trigger:"dropdown__trigger"}}),rd=Ee({slots:{base:"link",icon:"link__icon"}}),nd=Ee({defaultVariants:{color:"accent",size:"md"},slots:{base:"progress-bar",fill:"progress-bar__fill",output:"progress-bar__output",track:"progress-bar__track"},variants:{color:{accent:{base:"progress-bar--accent"},danger:{base:"progress-bar--danger"},default:{base:"progress-bar--default"},success:{base:"progress-bar--success"},warning:{base:"progress-bar--warning"}},size:{lg:{base:"progress-bar--lg"},md:{base:"progress-bar--md"},sm:{base:"progress-bar--sm"}}}}),od=Ee({defaultVariants:{variant:"default"},slots:{indicator:"menu-item__indicator",item:"menu-item",submenuIndicator:"menu-item__indicator menu-item__indicator--submenu"},variants:{variant:{danger:{item:"menu-item--danger"},default:{item:"menu-item--default"}}}}),id=Ee({base:"menu-section"}),ld=Ee({base:"separator",defaultVariants:{orientation:"horizontal",variant:"default"},variants:{orientation:{horizontal:"separator--horizontal",vertical:"separator--vertical"},variant:{default:"separator--default",secondary:"separator--secondary",tertiary:"separator--tertiary"}}}),vl=Symbol("default");function ht({values:t,children:e}){for(let[r,n]of t)e=a.createElement(r.Provider,{value:n},e);return e}function Fe(t){let{className:e,style:r,children:n,defaultClassName:o,defaultChildren:i,defaultStyle:l,values:s,render:c}=t;return a.useMemo(()=>{let u,d,f;return typeof e=="function"?u=e({...s,defaultClassName:o}):u=e,typeof r=="function"?d=r({...s,defaultStyle:l||{}}):d=r,typeof n=="function"?f=n({...s,defaultChildren:i}):n==null?f=i:f=n,{className:u??o,style:d||l?{...l,...d}:void 0,children:f??i,"data-rac":"",render:c?m=>c(m,s):void 0}},[e,r,n,o,i,l,s,c])}function sd(t,e){return r=>e(typeof t=="function"?t(r):t,r)}function Wt(t,e){let r=a.useContext(t);if(e===null)return null;if(r&&typeof r=="object"&&"slots"in r&&r.slots){let n=e||vl;if(!r.slots[n]){let o=new Intl.ListFormat().format(Object.keys(r.slots).map(l=>`"${l}"`)),i=e?`Invalid slot "${e}".`:"A slot prop is required.";throw new Error(`${i} Valid slot names are ${o}.`)}return r.slots[n]}return r}function Oe(t,e,r){let n=Wt(r,t.slot)||{},{ref:o,...i}=n,l=zt(a.useMemo(()=>Ht(e,o),[e,o])),s=X(i,t);return"style"in i&&i.style&&"style"in t&&t.style&&(typeof i.style=="function"||typeof t.style=="function"?s.style=c=>{let u=typeof i.style=="function"?i.style(c):i.style,d={...c.defaultStyle,...u},f=typeof t.style=="function"?t.style({...c,defaultStyle:d}):t.style;return{...d,...f}}:s.style={...i.style,...t.style}),[s,l]}function $l(t=!0){let[e,r]=a.useState(t),n=a.useRef(!1),o=a.useCallback(i=>{n.current=!0,r(!!i)},[]);return J(()=>{n.current||r(!1)},[]),[o,e]}function ad(t){const e=/^(data-.*)$/;let r={};for(const n in t)e.test(n)||(r[n]=t[n]);return r}function cd(t,e,r){let{render:n,...o}=e,i=a.useRef(null),l=a.useMemo(()=>Ht(r,i),[r,i]);J(()=>{process.env.NODE_ENV!=="production"&&n&&(i.current?i.current.localName!==t&&console.warn(`Unexpected DOM element returned by custom \`render\` function. Expected <${t}>, got <${i.current.localName}>. This may break the component behavior and accessibility.`):console.warn("Ref was not connected to DOM element returned by custom `render` function. Did you forget to pass through or merge the `ref`?"))},[t,n]);let s={...o,ref:l};return n?n(s,void 0):a.createElement(t,s)}const No={},Ce=new Proxy({},{get(t,e){if(typeof e!="string")return;let r=No[e];return r||(r=a.forwardRef(cd.bind(null,e)),No[e]=r),r}});typeof HTMLTemplateElement<"u"&&(Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.content.firstChild}}),Object.defineProperty(HTMLTemplateElement.prototype,"appendChild",{configurable:!0,enumerable:!0,value:function(t){return this.content.appendChild(t)}}),Object.defineProperty(HTMLTemplateElement.prototype,"removeChild",{configurable:!0,enumerable:!0,value:function(t){return this.content.removeChild(t)}}),Object.defineProperty(HTMLTemplateElement.prototype,"insertBefore",{configurable:!0,enumerable:!0,value:function(t,e){return this.content.insertBefore(t,e)}}));const mr=a.createContext(!1);function ud(t){if(a.useContext(mr))return a.createElement(a.Fragment,null,t.children);let r=a.createElement(mr.Provider,{value:!0},t.children);return a.createElement("template",null,r)}function dd(t){let e=(r,n)=>a.useContext(mr)?null:t(r,n);return e.displayName=t.displayName||t.name,a.forwardRef(e)}function xl(){return a.useContext(mr)}const fd=a.createContext({});function pd(t){let{id:e,label:r,"aria-labelledby":n,"aria-label":o,labelElementType:i="label"}=t;e=ge(e);let l=ge(),s={};r?(n=n?`${l} ${n}`:l,s={id:l,htmlFor:i==="label"?e:void 0}):!n&&!o&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let c=Xi({id:e,"aria-label":o,"aria-labelledby":n});return{labelProps:s,fieldProps:c}}const hd=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),bd=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function md(t){if(Intl.Locale){let r=new Intl.Locale(t).maximize(),n=typeof r.getTextInfo=="function"?r.getTextInfo():r.textInfo;if(n)return n.direction==="rtl";if(r.script)return hd.has(r.script)}let e=t.split("-")[0];return bd.has(e)}const wl=Symbol.for("react-aria.i18n.locale");function El(){let t=typeof window<"u"&&window[wl]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([t])}catch{t="en-US"}return{locale:t,direction:md(t)?"rtl":"ltr"}}let mn=El(),Ct=new Set;function Do(){mn=El();for(let t of Ct)t(mn)}function gd(){let t=dt(),[e,r]=a.useState(mn);return a.useEffect(()=>(Ct.size===0&&window.addEventListener("languagechange",Do),Ct.add(r),()=>{Ct.delete(r),Ct.size===0&&window.removeEventListener("languagechange",Do)}),[]),t?{locale:typeof window<"u"&&window[wl]||"en-US",direction:"ltr"}:e}const yd=a.createContext(null);function Je(){let t=gd();return a.useContext(yd)||t}let Zr=new Map,gn=!1;try{gn=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let gr=!1;try{gr=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const Sl={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class vd{constructor(e,r={}){this.numberFormatter=$d(e,r),this.options=r}format(e){var n;let r="";if(!gn&&this.options.signDisplay!=null?r=xd(this.numberFormatter,this.options.signDisplay,e):r=this.numberFormatter.format(e),this.options.style==="unit"&&!gr){let{unit:o,unitDisplay:i="short",locale:l}=this.resolvedOptions();if(!o)return r;let s=(n=Sl[o])==null?void 0:n[i];r+=s[l]||s.default}return r}formatToParts(e){return this.numberFormatter.formatToParts(e)}formatRange(e,r){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(e,r);if(r<e)throw new RangeError("End date must be >= start date");return`${this.format(e)} – ${this.format(r)}`}formatRangeToParts(e,r){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(e,r);if(r<e)throw new RangeError("End date must be >= start date");let n=this.numberFormatter.formatToParts(e),o=this.numberFormatter.formatToParts(r);return[...n.map(i=>({...i,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return!gn&&this.options.signDisplay!=null&&(e={...e,signDisplay:this.options.signDisplay}),!gr&&this.options.style==="unit"&&(e={...e,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),e}}function $d(t,e={}){var i;let{numberingSystem:r}=e;if(r&&t.includes("-nu-")&&(t.includes("-u-")||(t+="-u-"),t+=`-nu-${r}`),e.style==="unit"&&!gr){let{unit:l,unitDisplay:s="short"}=e;if(!l)throw new Error('unit option must be provided with style: "unit"');if(!((i=Sl[l])!=null&&i[s]))throw new Error(`Unsupported unit ${l} with unitDisplay = ${s}`);e={...e,style:"decimal"}}let n=t+(e?Object.entries(e).sort((l,s)=>l[0]<s[0]?-1:1).join():"");if(Zr.has(n))return Zr.get(n);let o=new Intl.NumberFormat(t,e);return Zr.set(n,o),o}function xd(t,e,r){if(e==="auto")return t.format(r);if(e==="never")return t.format(Math.abs(r));{let n=!1;if(e==="always"?n=r>0||Object.is(r,0):e==="exceptZero"&&(Object.is(r,-0)||Object.is(r,0)?r=Math.abs(r):n=r>0),n){let o=t.format(-r),i=t.format(r),l=o.replace(i,"").replace(/\u200e|\u061C/,"");return[...l].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),o.replace(i,"!!!").replace(l,"+").replace("!!!",i)}else return t.format(r)}}function wd(t={}){let{locale:e}=Je();return a.useMemo(()=>new vd(e,t),[e,t])}function yr(t,e=-1/0,r=1/0){return Math.min(Math.max(t,e),r)}function Ed(t){let{value:e=0,minValue:r=0,maxValue:n=100,valueLabel:o,isIndeterminate:i,formatOptions:l={style:"percent"}}=t,s=ue(t,{labelable:!0}),{labelProps:c,fieldProps:u}=pd({...t,labelElementType:"span"});e=yr(e,r,n);let d=(e-r)/(n-r),f=wd(l);if(!i&&!o){let m=l.style==="percent"?d:e;o=f.format(m)}return{progressBarProps:X(s,{...u,"aria-valuenow":i?void 0:e,"aria-valuemin":r,"aria-valuemax":n,"aria-valuetext":i?void 0:o,role:"progressbar"}),labelProps:c}}function Sd(t,e=-1/0,r=1/0){return Math.min(Math.max(t,e),r)}const Cl=a.createContext(null),Cd=a.forwardRef(function(e,r){[e,r]=Oe(e,r,Cl);let{value:n=0,minValue:o=0,maxValue:i=100,isIndeterminate:l=!1}=e;n=Sd(n,o,i);let[s,c]=$l(!e["aria-label"]&&!e["aria-labelledby"]),{progressBarProps:u,labelProps:d}=Ed({...e,label:c}),f=l?void 0:(n-o)/(i-o)*100,m=Fe({...e,defaultClassName:"react-aria-ProgressBar",values:{percentage:f,valueText:u["aria-valuetext"],isIndeterminate:l}}),p=ue(e,{global:!0});return a.createElement(Ce.div,{...X(p,m,u),ref:r,slot:e.slot||void 0},a.createElement(fd.Provider,{value:{...d,ref:s,elementType:"span"}},m.children))}),Pl=7e3;let Pe=null;function Lo(t,e="assertive",r=Pl){Pe?Pe.announce(t,e,r):(Pe=new Pd,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Pe.announce(t,e,r):setTimeout(()=>{Pe!=null&&Pe.isAttached()&&(Pe==null||Pe.announce(t,e,r))},100))}class Pd{constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}isAttached(){var e;return(e=this.node)==null?void 0:e.isConnected}createLog(e){let r=document.createElement("div");return r.setAttribute("role","log"),r.setAttribute("aria-live",e),r.setAttribute("aria-relevant","additions"),r}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,r="assertive",n=Pl){var i,l;if(!this.node)return;let o=document.createElement("div");typeof e=="object"?(o.setAttribute("role","img"),o.setAttribute("aria-labelledby",e["aria-labelledby"])):o.textContent=e,r==="assertive"?(i=this.assertiveLog)==null||i.appendChild(o):(l=this.politeLog)==null||l.appendChild(o),e!==""&&setTimeout(()=>{o.remove()},n)}clear(e){this.node&&((!e||e==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!e||e==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}}function Wn(t){let e=t;return e.nativeEvent=t,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function kl(t,e){Object.defineProperty(t,"target",{value:e}),Object.defineProperty(t,"currentTarget",{value:e})}function Tl(t){let e=a.useRef({isFocused:!1,observer:null});return J(()=>{const r=e.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]),a.useCallback(r=>{let n=A(r);if(n instanceof HTMLButtonElement||n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement||n instanceof HTMLSelectElement){e.current.isFocused=!0;let o=n,i=l=>{if(e.current.isFocused=!1,o.disabled){let s=Wn(l);t==null||t(s)}e.current.observer&&(e.current.observer.disconnect(),e.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),e.current.observer=new MutationObserver(()=>{var l;if(e.current.isFocused&&o.disabled){(l=e.current.observer)==null||l.disconnect();let s=o===ne()?null:ne();o.dispatchEvent(new FocusEvent("blur",{relatedTarget:s})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:s}))}}),e.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[t])}let vr=!1;function Io(t){for(;t&&!Qi(t,{skipVisibilityCheck:!0});)t=t.parentElement;let e=fe(t),r=e.document.activeElement;if(!r||r===t)return;vr=!0;let n=!1,o=d=>{(A(d)===r||n)&&d.stopImmediatePropagation()},i=d=>{(A(d)===r||n)&&(d.stopImmediatePropagation(),!t&&!n&&(n=!0,de(r),c()))},l=d=>{(A(d)===t||n)&&d.stopImmediatePropagation()},s=d=>{(A(d)===t||n)&&(d.stopImmediatePropagation(),n||(n=!0,de(r),c()))};e.addEventListener("blur",o,!0),e.addEventListener("focusout",i,!0),e.addEventListener("focusin",s,!0),e.addEventListener("focus",l,!0);let c=()=>{cancelAnimationFrame(u),e.removeEventListener("blur",o,!0),e.removeEventListener("focusout",i,!0),e.removeEventListener("focusin",s,!0),e.removeEventListener("focus",l,!0),vr=!1,n=!1},u=requestAnimationFrame(c);return c}let Ke=null;const Lt=new Set;let Tt=new Map,Xe=!1,yn=!1;const kd={Tab:!0,Escape:!0};function Nr(t,e){for(let r of Lt)r(t,e)}function Td(t){return!(t.metaKey||!Ye()&&t.altKey||t.ctrlKey||t.key==="Control"||t.key==="Shift"||t.key==="Meta")}function $r(t){Xe=!0,!Ie.isOpening&&Td(t)&&(Ke="keyboard",Nr("keyboard",t))}function ve(t){Ke="pointer","pointerType"in t&&t.pointerType,(t.type==="mousedown"||t.type==="pointerdown")&&(Xe=!0,Nr("pointer",t))}function Ml(t){!Ie.isOpening&&dn(t)&&(Xe=!0,Ke="virtual")}function Rl(t){let e=fe(A(t)),r=Z(A(t));A(t)===e||A(t)===r||vr||!t.isTrusted||(!Xe&&!yn&&(Ke="virtual",Nr("virtual",t)),Xe=!1,yn=!1)}function Nl(){vr||(Xe=!1,yn=!0)}function xr(t){if(typeof window>"u"||typeof document>"u")return;const e=fe(t),r=Z(t);if(Tt.get(e))return;let n=e.HTMLElement.prototype.focus;e.HTMLElement.prototype.focus=function(){Xe=!0,n.apply(this,arguments)},r.addEventListener("keydown",$r,!0),r.addEventListener("keyup",$r,!0),r.addEventListener("click",Ml,!0),e.addEventListener("focus",Rl,!0),e.addEventListener("blur",Nl,!1),typeof PointerEvent<"u"?(r.addEventListener("pointerdown",ve,!0),r.addEventListener("pointermove",ve,!0),r.addEventListener("pointerup",ve,!0)):process.env.NODE_ENV==="test"&&(r.addEventListener("mousedown",ve,!0),r.addEventListener("mousemove",ve,!0),r.addEventListener("mouseup",ve,!0)),e.addEventListener("beforeunload",()=>{Dl(t)},{once:!0}),Tt.set(e,{focus:n})}const Dl=(t,e)=>{const r=fe(t),n=Z(t);e&&n.removeEventListener("DOMContentLoaded",e),Tt.has(r)&&(r.HTMLElement.prototype.focus=Tt.get(r).focus,n.removeEventListener("keydown",$r,!0),n.removeEventListener("keyup",$r,!0),n.removeEventListener("click",Ml,!0),r.removeEventListener("focus",Rl,!0),r.removeEventListener("blur",Nl,!1),typeof PointerEvent<"u"?(n.removeEventListener("pointerdown",ve,!0),n.removeEventListener("pointermove",ve,!0),n.removeEventListener("pointerup",ve,!0)):process.env.NODE_ENV==="test"&&(n.removeEventListener("mousedown",ve,!0),n.removeEventListener("mousemove",ve,!0),n.removeEventListener("mouseup",ve,!0)),Tt.delete(r))};function Md(t){const e=Z(t);let r;return e.readyState!=="loading"?xr(t):(r=()=>{xr(t)},e.addEventListener("DOMContentLoaded",r)),()=>Dl(t,r)}typeof document<"u"&&Md();function It(){return Ke!=="pointer"}function Kt(){return Ke}function vn(t){Ke=t,Nr(t,null)}function Rd(){xr();let[t,e]=a.useState(Ke);return a.useEffect(()=>{let r=()=>{e(Ke)};return Lt.add(r),()=>{Lt.delete(r)}},[]),dt()?null:t}const Nd=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Dd(t,e,r){let n=r?A(r):void 0,o=Z(n),i=fe(n);const l=typeof i<"u"?i.HTMLInputElement:HTMLInputElement,s=typeof i<"u"?i.HTMLTextAreaElement:HTMLTextAreaElement,c=typeof i<"u"?i.HTMLElement:HTMLElement,u=typeof i<"u"?i.KeyboardEvent:KeyboardEvent;let d=ne(o);return t=t||d instanceof l&&!Nd.has(d.type)||d instanceof s||d instanceof c&&d.isContentEditable,!(t&&e==="keyboard"&&r instanceof u&&!kd[r.key])}function Ld(t,e,r){xr(),a.useEffect(()=>{if((r==null?void 0:r.enabled)===!1)return;let n=(o,i)=>{Dd(!!(r!=null&&r.isTextInput),o,i)&&t(It())};return Lt.add(n),()=>{Lt.delete(n)}},e)}function ct(t){if(!t.isConnected)return;const e=Z(t);if(Kt()==="virtual"){let r=ne(e);Yi(()=>{const n=ne(e);(n===r||n===e.body)&&t.isConnected&&de(t)})}else de(t)}function Ll(t){let{isDisabled:e,onFocus:r,onBlur:n,onFocusChange:o}=t;const i=a.useCallback(c=>{if(A(c)===c.currentTarget)return n&&n(c),o&&o(!1),!0},[n,o]),l=Tl(i),s=a.useCallback(c=>{let u=A(c);const d=Z(u),f=d?ne(d):ne();u===c.currentTarget&&u===f&&(r&&r(c),o&&o(!0),l(c))},[o,r,l]);return{focusProps:{onFocus:!e&&(r||o||n)?s:void 0,onBlur:!e&&(n||o)?i:void 0}}}function Ko(t){if(!t)return;let e=!0;return r=>{let n={...r,preventDefault(){r.preventDefault()},isDefaultPrevented(){return r.isDefaultPrevented()},stopPropagation(){e&&process.env.NODE_ENV!=="production"?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):e=!0},continuePropagation(){e=!1},isPropagationStopped(){return e}};t(n),e&&r.stopPropagation()}}function Il(t){return{keyboardProps:t.isDisabled?{}:{onKeyDown:Ko(t.onKeyDown),onKeyUp:Ko(t.onKeyUp)}}}let $n=a.createContext(null);function Id(t){let e=a.useContext($n)||{};Bn(e,t);let{ref:r,...n}=e;return n}function Dr(t,e){let{focusProps:r}=Ll(t),{keyboardProps:n}=Il(t),o=X(r,n),i=Id(e),l=t.isDisabled?{}:i,s=a.useRef(t.autoFocus);a.useEffect(()=>{s.current&&e.current&&ct(e.current),s.current=!1},[e]);let c=t.excludeFromTabOrder?-1:0;return t.isDisabled&&(c=void 0),{focusableProps:X({...o,tabIndex:c},l)}}let nt="default",xn="",cr=new WeakMap;function Ao(t){if(Bt()){if(nt==="default"){const e=Z(t);xn=e.documentElement.style.webkitUserSelect,e.documentElement.style.webkitUserSelect="none"}nt="disabled"}else if(t instanceof HTMLElement||t instanceof SVGElement){let e="userSelect"in t.style?"userSelect":"webkitUserSelect";cr.set(t,t.style[e]),t.style[e]="none"}}function Jr(t){if(Bt()){if(nt!=="disabled")return;nt="restoring",setTimeout(()=>{Yi(()=>{if(nt==="restoring"){const e=Z(t);e.documentElement.style.webkitUserSelect==="none"&&(e.documentElement.style.webkitUserSelect=xn||""),xn="",nt="default"}})},300)}else if((t instanceof HTMLElement||t instanceof SVGElement)&&t&&cr.has(t)){let e=cr.get(t),r="userSelect"in t.style?"userSelect":"webkitUserSelect";t.style[r]==="none"&&(t.style[r]=e),t.getAttribute("style")===""&&t.removeAttribute("style"),cr.delete(t)}}const At=a.createContext({register:()=>{}});At.displayName="PressResponderContext";function Kd(t){let e=a.useContext(At);if(e){let{register:r,ref:n,...o}=e;t=X(o,t),r()}return Bn(e,t.ref),t}var lt;class Qt{constructor(e,r,n,o){go(this,lt);Vr(this,lt,!0);let i=(o==null?void 0:o.target)??n.currentTarget;const l=i==null?void 0:i.getBoundingClientRect();let s,c=0,u,d=null;n.clientX!=null&&n.clientY!=null&&(u=n.clientX,d=n.clientY),l&&(u!=null&&d!=null?(s=u-l.left,c=d-l.top):(s=l.width/2,c=l.height/2)),this.type=e,this.pointerType=r,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=s,this.y=c,this.key=n.key}continuePropagation(){Vr(this,lt,!1)}get shouldStopPropagation(){return mo(this,lt)}}lt=new WeakMap;const Fo=Symbol("linkClicked"),Oo="react-aria-pressable-style",jo="data-react-aria-pressable";function Ze(t){let{onPress:e,onPressChange:r,onPressStart:n,onPressEnd:o,onPressUp:i,onClick:l,isDisabled:s,isPressed:c,preventFocusOnPress:u,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:f,ref:m,...p}=Kd(t),[g,y]=a.useState(!1),v=a.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:E,removeAllGlobalListeners:$}=Rr(),P=a.useCallback((h,w)=>{let N=v.current;if(s||N.didFirePressStart)return!1;let C=!0;if(N.isTriggeringEvent=!0,n){let M=new Qt("pressstart",w,h);n(M),C=M.shouldStopPropagation}return r&&r(!0),N.isTriggeringEvent=!1,N.didFirePressStart=!0,y(!0),C},[s,n,r]),k=a.useCallback((h,w,N=!0)=>{let C=v.current;if(!C.didFirePressStart)return!1;C.didFirePressStart=!1,C.isTriggeringEvent=!0;let M=!0;if(o){let x=new Qt("pressend",w,h);o(x),M=x.shouldStopPropagation}if(r&&r(!1),y(!1),e&&N&&!s){let x=new Qt("press",w,h);e(x),M&&(M=x.shouldStopPropagation)}return C.isTriggeringEvent=!1,M},[s,o,r,e]),L=xe(k),j=a.useCallback((h,w)=>{let N=v.current;if(s)return!1;if(i){N.isTriggeringEvent=!0;let C=new Qt("pressup",w,h);return i(C),N.isTriggeringEvent=!1,C.shouldStopPropagation}return!0},[s,i]),T=xe(j),R=a.useCallback(h=>{let w=v.current;if(w.isPressed&&w.target){w.didFirePressStart&&w.pointerType!=null&&k(Ge(w.target,h),w.pointerType,!1),w.isPressed=!1,w.isOverTarget=!1,w.activePointerId=null,w.pointerType=null,$(),f||Jr(w.target);for(let N of w.disposables)N();w.disposables=[]}},[f,$,k]),I=xe(R);a.useEffect(()=>{s&&v.current.isPressed&&I({currentTarget:v.current.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})},[s]);let K=a.useCallback(h=>{d&&R(h)},[d,R]),V=a.useCallback(h=>{s||l==null||l(h)},[s,l]),z=a.useCallback((h,w)=>{if(!s&&l){let N=new MouseEvent("click",h);kl(N,w),l(Wn(N))}},[s,l]),B=a.useMemo(()=>{let h=v.current,w={onKeyDown(C){var M;if(Qr(C.nativeEvent,C.currentTarget)&&H(C.currentTarget,A(C))){Vo(A(C),C.key)&&C.preventDefault();let x=!0;!h.isPressed&&!C.repeat&&(h.target=C.currentTarget,h.isPressed=!0,h.pointerType="keyboard",x=P(C,"keyboard"));let S=C.currentTarget,D=W=>{Qr(W,S)&&!W.repeat&&H(S,A(W))&&h.target&&T(Ge(h.target,W),"keyboard")};E(Z(C.currentTarget),"keyup",Vt(D,N),!0),x&&C.stopPropagation(),C.metaKey&&Ye()&&((M=h.metaKeyEvents)==null||M.set(C.key,C.nativeEvent))}else C.key==="Meta"&&(h.metaKeyEvents=new Map)},onClick(C){if(!(C&&!H(C.currentTarget,A(C)))&&C&&C.button===0&&!h.isTriggeringEvent&&!Ie.isOpening){let M=!0;if(s&&C.preventDefault(),!h.ignoreEmulatedMouseEvents&&!h.isPressed&&(h.pointerType==="virtual"||dn(C.nativeEvent))){let x=P(C,"virtual"),S=T(C,"virtual"),D=L(C,"virtual");V(C),M=x&&S&&D}else if(h.isPressed&&h.pointerType!=="keyboard"){let x=h.pointerType||C.nativeEvent.pointerType||"virtual",S=T(Ge(C.currentTarget,C),x),D=L(Ge(C.currentTarget,C),x,!0);M=S&&D,h.isOverTarget=!1,V(C),I(C)}h.ignoreEmulatedMouseEvents=!1,M&&C.stopPropagation()}}},N=C=>{var M,x,S;if(h.isPressed&&h.target&&Qr(C,h.target)){Vo(A(C),C.key)&&C.preventDefault();let D=A(C),W=H(h.target,D);L(Ge(h.target,C),"keyboard",W),W&&z(C,h.target),$(),C.key!=="Enter"&&Un(h.target)&&H(h.target,D)&&!C[Fo]&&(C[Fo]=!0,Ie(h.target,C,!1)),h.isPressed=!1,(M=h.metaKeyEvents)==null||M.delete(C.key)}else if(C.key==="Meta"&&((x=h.metaKeyEvents)!=null&&x.size)){let D=h.metaKeyEvents;h.metaKeyEvents=void 0;for(let W of D.values())(S=h.target)==null||S.dispatchEvent(new KeyboardEvent("keyup",W))}};if(typeof PointerEvent<"u"){w.onPointerDown=x=>{if(x.button!==0||!H(x.currentTarget,A(x)))return;if(zc(x.nativeEvent)){h.pointerType="virtual";return}h.pointerType=x.pointerType;let S=!0;if(!h.isPressed){h.isPressed=!0,h.isOverTarget=!0,h.activePointerId=x.pointerId,h.target=x.currentTarget,f||Ao(h.target),S=P(x,h.pointerType);let D=A(x);"releasePointerCapture"in D&&("hasPointerCapture"in D?D.hasPointerCapture(x.pointerId)&&D.releasePointerCapture(x.pointerId):D.releasePointerCapture(x.pointerId)),E(Z(x.currentTarget),"pointerup",C,!1),E(Z(x.currentTarget),"pointercancel",M,!1)}S&&x.stopPropagation()},w.onMouseDown=x=>{if(H(x.currentTarget,A(x))&&x.button===0){if(u){let S=Io(x.target);S&&h.disposables.push(S)}x.stopPropagation()}},w.onPointerUp=x=>{!H(x.currentTarget,A(x))||h.pointerType==="virtual"||x.button===0&&!h.isPressed&&T(x,h.pointerType||x.pointerType)},w.onPointerEnter=x=>{x.pointerId===h.activePointerId&&h.target&&!h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!0,P(Ge(h.target,x),h.pointerType))},w.onPointerLeave=x=>{x.pointerId===h.activePointerId&&h.target&&h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!1,L(Ge(h.target,x),h.pointerType,!1),K(x))};let C=x=>{if(x.pointerId===h.activePointerId&&h.isPressed&&x.button===0&&h.target){if(H(h.target,A(x))&&h.pointerType!=null){let S=!1,D=setTimeout(()=>{h.isPressed&&h.target instanceof HTMLElement&&(S?I(x):(de(h.target),h.target.click()))},80);E(x.currentTarget,"click",()=>S=!0,!0),h.disposables.push(()=>clearTimeout(D))}else I(x);h.isOverTarget=!1}},M=x=>{I(x)};w.onDragStart=x=>{H(x.currentTarget,A(x))&&I(x)}}else if(process.env.NODE_ENV==="test"){w.onMouseDown=x=>{if(x.button!==0||!H(x.currentTarget,A(x)))return;if(h.ignoreEmulatedMouseEvents){x.stopPropagation();return}if(h.isPressed=!0,h.isOverTarget=!0,h.target=x.currentTarget,h.pointerType=dn(x.nativeEvent)?"virtual":"mouse",jt.flushSync(()=>P(x,h.pointerType))&&x.stopPropagation(),u){let D=Io(x.target);D&&h.disposables.push(D)}E(Z(x.currentTarget),"mouseup",C,!1)},w.onMouseEnter=x=>{if(!H(x.currentTarget,A(x)))return;let S=!0;h.isPressed&&!h.ignoreEmulatedMouseEvents&&h.pointerType!=null&&(h.isOverTarget=!0,S=P(x,h.pointerType)),S&&x.stopPropagation()},w.onMouseLeave=x=>{if(!H(x.currentTarget,A(x)))return;let S=!0;h.isPressed&&!h.ignoreEmulatedMouseEvents&&h.pointerType!=null&&(h.isOverTarget=!1,S=L(x,h.pointerType,!1),K(x)),S&&x.stopPropagation()},w.onMouseUp=x=>{H(x.currentTarget,A(x))&&!h.ignoreEmulatedMouseEvents&&x.button===0&&!h.isPressed&&T(x,h.pointerType||"mouse")};let C=x=>{if(x.button===0){if(h.ignoreEmulatedMouseEvents){h.ignoreEmulatedMouseEvents=!1;return}h.target&&H(h.target,A(x))&&h.pointerType!=null||I(x),h.isOverTarget=!1}};w.onTouchStart=x=>{if(!H(x.currentTarget,A(x)))return;let S=Ad(x.nativeEvent);if(!S)return;h.activePointerId=S.identifier,h.ignoreEmulatedMouseEvents=!0,h.isOverTarget=!0,h.isPressed=!0,h.target=x.currentTarget,h.pointerType="touch",f||Ao(h.target),P(_e(h.target,x),h.pointerType)&&x.stopPropagation(),E(fe(x.currentTarget),"scroll",M,!0)},w.onTouchMove=x=>{if(!H(x.currentTarget,A(x)))return;if(!h.isPressed){x.stopPropagation();return}let S=Bo(x.nativeEvent,h.activePointerId),D=!0;S&&_o(S,x.currentTarget)?!h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!0,D=P(_e(h.target,x),h.pointerType)):h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!1,D=L(_e(h.target,x),h.pointerType,!1),K(_e(h.target,x))),D&&x.stopPropagation()},w.onTouchEnd=x=>{if(!H(x.currentTarget,A(x)))return;if(!h.isPressed){x.stopPropagation();return}let S=Bo(x.nativeEvent,h.activePointerId),D=!0;S&&_o(S,x.currentTarget)&&h.pointerType!=null?(T(_e(h.target,x),h.pointerType),D=L(_e(h.target,x),h.pointerType),z(x.nativeEvent,h.target)):h.isOverTarget&&h.pointerType!=null&&(D=L(_e(h.target,x),h.pointerType,!1)),D&&x.stopPropagation(),h.isPressed=!1,h.activePointerId=null,h.isOverTarget=!1,h.ignoreEmulatedMouseEvents=!0,h.target&&!f&&Jr(h.target),$()},w.onTouchCancel=x=>{H(x.currentTarget,A(x))&&(x.stopPropagation(),h.isPressed&&I(_e(h.target,x)))};let M=x=>{h.isPressed&&H(A(x),h.target)&&I({currentTarget:h.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};w.onDragStart=x=>{H(x.currentTarget,A(x))&&I(x)}}return w},[E,s,u,$,f,K,P,V,z]);return a.useEffect(()=>{if(!m||process.env.NODE_ENV==="test")return;const h=Z(m.current);if(!h||!h.head||h.getElementById(Oo))return;const w=h.createElement("style");w.id=Oo;let N=rl(h);N&&(w.nonce=N),w.textContent=`
2
2
  @layer {
3
- [${zr}] {
3
+ [${jo}] {
4
4
  touch-action: pan-x pan-y pinch-zoom;
5
5
  }
6
6
  }
7
- `.trim(),d.head.prepend(E)},[h]),l.useEffect(()=>{let d=w.current;return()=>{f||It(d.target??void 0);for(let E of d.disposables)E();d.disposables=[]}},[f]),{isPressed:c||$,pressProps:K(g,de,{[zr]:!0})}}function ur(e){return e.tagName==="A"&&e.hasAttribute("href")}function Rt(e,t){const{key:r,code:n}=e,o=t,a=o.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||n==="Space")&&!(o instanceof ae(o).HTMLInputElement&&!ao(o,r)||o instanceof ae(o).HTMLTextAreaElement||o.isContentEditable)&&!((a==="link"||!a&&ur(o))&&r!=="Enter")}function $i(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function Hr(e,t){const r=e.changedTouches;for(let n=0;n<r.length;n++){const o=r[n];if(o.identifier===t)return o}return null}function fe(e,t){let r=0,n=0;return t.targetTouches&&t.targetTouches.length===1&&(r=t.targetTouches[0].clientX,n=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:r,clientY:n}}function ye(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 wi(e){let t=0,r=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?r=e.height/2:e.radiusY!==void 0&&(r=e.radiusY),{top:e.clientY-r,right:e.clientX+t,bottom:e.clientY+r,left:e.clientX-t}}function Ei(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function Ur(e,t){let r=t.getBoundingClientRect(),n=wi(e);return Ei(r,n)}function ki(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!ur(e)}function Wr(e,t){return e instanceof HTMLInputElement?!ao(e,t):ki(e)}const Ci=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function ao(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":Ci.has(e.type)}function Pi(e,t){let{elementType:r="button",isDisabled:n,onPress:o,onPressStart:a,onPressEnd:s,onPressUp:i,onPressChange:c,preventFocusOnPress:p,allowFocusWhenDisabled:m,onClick:f,href:h,target:g,rel:$,type:v="button"}=e,w;r==="button"?w={type:v,disabled:n,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:w={role:"button",href:r==="a"&&!n?h:void 0,target:r==="a"?g:void 0,type:r==="input"?v:void 0,disabled:r==="input"?n:void 0,"aria-disabled":!n||r==="input"?void 0:n,rel:r==="a"?$:void 0};let{pressProps:C,isPressed:N}=vt({onPressStart:a,onPressEnd:s,onPressChange:c,onPress:o,onPressUp:i,onClick:f,isDisabled:n,preventFocusOnPress:p,ref:t}),{focusableProps:j}=dr(e,t);m&&(j.tabIndex=n?-1:j.tabIndex);let F=K(j,C,ne(e,{labelable:!0}));return{isPressed:N,buttonProps:K(w,F,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"],"aria-disabled":e["aria-disabled"]})}}function so(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:o}=e,a=l.useRef({isFocusWithin:!1}),{addGlobalListener:s,removeAllGlobalListeners:i}=sr(),c=l.useCallback(f=>{D(f.currentTarget,I(f))&&a.current.isFocusWithin&&!D(f.currentTarget,f.relatedTarget)&&(a.current.isFocusWithin=!1,i(),r&&r(f),o&&o(!1))},[r,o,a,i]),p=Jn(c),m=l.useCallback(f=>{if(!D(f.currentTarget,I(f)))return;let h=I(f);const g=Y(h),$=me(g);if(!a.current.isFocusWithin&&$===h){n&&n(f),o&&o(!0),a.current.isFocusWithin=!0,p(f);let v=f.currentTarget;s(g,"focus",w=>{let C=I(w);if(a.current.isFocusWithin&&!D(v,C)){let N=new g.defaultView.FocusEvent("blur",{relatedTarget:C});Zn(N,v);let j=cr(N);c(j)}},{capture:!0})}},[n,o,p,s,c]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:m,onBlur:c}}}function fr(e={}){let{autoFocus:t=!1,isTextInput:r,within:n}=e,o=l.useRef({isFocused:!1,isFocusVisible:t||qt()}),[a,s]=l.useState(!1),[i,c]=l.useState(()=>o.current.isFocused&&o.current.isFocusVisible),p=l.useCallback(()=>c(o.current.isFocused&&o.current.isFocusVisible),[]),m=l.useCallback(g=>{o.current.isFocused=g,o.current.isFocusVisible=qt(),s(g),p()},[p]);hi(g=>{o.current.isFocusVisible=g,p()},[r,a],{enabled:a,isTextInput:r});let{focusProps:f}=no({isDisabled:n,onFocusChange:m}),{focusWithinProps:h}=so({isDisabled:!n,onFocusWithinChange:m});return{isFocused:a,isFocusVisible:i,focusProps:n?h:f}}let gt=!1,st=0;function Zt(){gt=!0,setTimeout(()=>{gt=!1},500)}function qr(e){e.pointerType==="touch"&&Zt()}function Si(){let e=Y(null);if(!(typeof e>"u"))return st===0&&(typeof PointerEvent<"u"?e.addEventListener("pointerup",qr):process.env.NODE_ENV==="test"&&e.addEventListener("touchend",Zt)),st++,()=>{st--,!(st>0)&&(typeof PointerEvent<"u"?e.removeEventListener("pointerup",qr):process.env.NODE_ENV==="test"&&e.removeEventListener("touchend",Zt))}}function pr(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:n,isDisabled:o}=e,[a,s]=l.useState(!1),i=l.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;l.useEffect(Si,[]);let{addGlobalListener:c,removeAllGlobalListeners:p}=sr(),{hoverProps:m,triggerHoverEnd:f}=l.useMemo(()=>{let h=(v,w)=>{if(i.pointerType=w,o||w==="touch"||i.isHovered||!D(v.currentTarget,I(v)))return;i.isHovered=!0;let C=v.currentTarget;i.target=C,c(Y(I(v)),"pointerover",N=>{i.isHovered&&i.target&&!D(i.target,I(N))&&g(N,N.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:C,pointerType:w}),r&&r(!0),s(!0)},g=(v,w)=>{let C=i.target;i.pointerType="",i.target=null,!(w==="touch"||!i.isHovered||!C)&&(i.isHovered=!1,p(),n&&n({type:"hoverend",target:C,pointerType:w}),r&&r(!1),s(!1))},$={};return typeof PointerEvent<"u"?($.onPointerEnter=v=>{gt&&v.pointerType==="mouse"||h(v,v.pointerType)},$.onPointerLeave=v=>{!o&&D(v.currentTarget,I(v))&&g(v,v.pointerType)}):process.env.NODE_ENV==="test"&&($.onTouchStart=()=>{i.ignoreEmulatedMouseEvents=!0},$.onMouseEnter=v=>{!i.ignoreEmulatedMouseEvents&&!gt&&h(v,"mouse"),i.ignoreEmulatedMouseEvents=!1},$.onMouseLeave=v=>{!o&&D(v.currentTarget,I(v))&&g(v,"mouse")}),{hoverProps:$,triggerHoverEnd:g}},[t,r,n,o,i,c,p]);return l.useEffect(()=>{o&&f({currentTarget:i.target},i.pointerType)},[o]),{hoverProps:m,isHovered:a}}const Ti=l.createContext({}),Li=Hs(function(t,r){[t,r]=We(t,r,Ti);let n=t,{isPending:o}=n,{buttonProps:a,isPressed:s}=Pi(t,r);a=Ni(a,o);let{focusProps:i,isFocused:c,isFocusVisible:p}=fr(t),{hoverProps:m,isHovered:f}=pr({...t,isDisabled:t.isDisabled||o}),h={isHovered:f,isPressed:(n.isPressed||s)&&!o,isFocused:c,isFocusVisible:p,isDisabled:t.isDisabled||!1,isPending:o??!1},g=Ue({...t,values:h,defaultClassName:"react-aria-Button"}),$=Ne(a.id),v=Ne(),w=a["aria-labelledby"];o&&(w?w=`${w} ${v}`:a["aria-label"]&&(w=`${$} ${v}`));let C=l.useRef(o);l.useEffect(()=>{let j={"aria-labelledby":w||$};(!C.current&&c&&o||C.current&&c&&!o)&&Ar(j,"assertive"),C.current=o},[o,c,w,$]);let N=ne(t,{global:!0});return delete N.onClick,l.createElement(je.button,{...K(N,g,a,i,m),type:a.type==="submit"&&o?"button":a.type,id:$,ref:r,"aria-labelledby":w,slot:t.slot||void 0,"aria-disabled":o?"true":a["aria-disabled"],"data-disabled":t.isDisabled||void 0,"data-pressed":h.isPressed||void 0,"data-hovered":f||void 0,"data-focused":c||void 0,"data-pending":o||void 0,"data-focus-visible":p||void 0},l.createElement(Yn.Provider,{value:{id:v}},g.children))}),Mi=/Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;function Ni(e,t){if(t){for(const r in e)r.startsWith("on")&&!Mi.test(r)&&(e[r]=void 0);e.href=void 0,e.target=void 0}return e}const Ii=typeof document<"u"?l.useInsertionEffect??l.useLayoutEffect:()=>{};function Ri(e,t,r){let[n,o]=l.useState(e||t),a=l.useRef(n),s=l.useRef(e!==void 0),i=e!==void 0;l.useEffect(()=>{let f=s.current;f!==i&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${f?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}.`),s.current=i},[i]);let c=i?e:n;Ii(()=>{a.current=c});let[,p]=l.useReducer(()=>({}),{}),m=l.useCallback((f,...h)=>{let g=typeof f=="function"?f(a.current):f;Object.is(a.current,g)||(a.current=g,o(g),p(),r==null||r(g,...h))},[r]);return[c,m]}const ji=e=>e?"true":void 0;function qe(e,t){return Fs(e,(r,n)=>{const o=typeof t=="function"?t(n)??"":t??"";return ze(o,r??"")??""})}const X=(e,t,r)=>typeof e=="function"?e({className:t}):t,Oi=({height:e=9,width:t=9,...r})=>u.jsx("svg",{"aria-hidden":"true","aria-label":"External link icon",fill:"none",height:e,role:"presentation",viewBox:"0 0 7 7",width:t,xmlns:"http://www.w3.org/2000/svg",...r,children:u.jsx("path",{d:"M1.20592 6.84333L0.379822 6.01723L4.52594 1.8672H1.37819L1.38601 0.731812H6.48742V5.83714H5.34421L5.35203 2.6933L1.20592 6.84333Z",fill:"currentColor"})}),Yr=e=>u.jsx("svg",{"aria-hidden":"true","aria-label":"Info icon",fill:"none",height:16,role:"presentation",viewBox:"0 0 16 16",width:16,xmlns:"http://www.w3.org/2000/svg",...e,children:u.jsx("path",{clipRule:"evenodd",d:"M8 13.5a5.5 5.5 0 1 0 0-11a5.5 5.5 0 0 0 0 11M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m1-9.5a1 1 0 1 1-2 0a1 1 0 0 1 2 0m-.25 3a.75.75 0 0 0-1.5 0V11a.75.75 0 0 0 1.5 0z",fill:"currentColor",fillRule:"evenodd"})}),Vi=e=>u.jsx("svg",{"aria-hidden":"true","aria-label":"Warning icon",fill:"none",height:16,role:"presentation",viewBox:"0 0 16 16",width:16,xmlns:"http://www.w3.org/2000/svg",...e,children:u.jsx("path",{clipRule:"evenodd",d:"M7.134 2.994L2.217 11.5a1 1 0 0 0 .866 1.5h9.834a1 1 0 0 0 .866-1.5L8.866 2.993a1 1 0 0 0-1.732 0m3.03-.75c-.962-1.665-3.366-1.665-4.329 0L.918 10.749c-.963 1.666.24 3.751 2.165 3.751h9.834c1.925 0 3.128-2.085 2.164-3.751zM8 5a.75.75 0 0 1 .75.75v2a.75.75 0 0 1-1.5 0v-2A.75.75 0 0 1 8 5m1 5.75a1 1 0 1 1-2 0a1 1 0 0 1 2 0",fill:"currentColor",fillRule:"evenodd"})}),Di=e=>u.jsx("svg",{"aria-hidden":"true","aria-label":"Danger icon",fill:"none",height:16,role:"presentation",viewBox:"0 0 16 16",width:16,xmlns:"http://www.w3.org/2000/svg",...e,children:u.jsx("path",{clipRule:"evenodd",d:"M8 13.5a5.5 5.5 0 1 0 0-11a5.5 5.5 0 0 0 0 11M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m1-4.5a1 1 0 1 1-2 0a1 1 0 0 1 2 0M8.75 5a.75.75 0 0 0-1.5 0v2.5a.75.75 0 0 0 1.5 0z",fill:"currentColor",fillRule:"evenodd"})}),Ai=e=>u.jsx("svg",{"aria-hidden":"true","aria-label":"Success icon",fill:"none",height:16,role:"presentation",viewBox:"0 0 16 16",width:16,xmlns:"http://www.w3.org/2000/svg",...e,children:u.jsx("path",{clipRule:"evenodd",d:"M13.5 8a5.5 5.5 0 1 1-11 0a5.5 5.5 0 0 1 11 0M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0m-3.9-1.55a.75.75 0 1 0-1.2-.9L7.419 8.858L6.03 7.47a.75.75 0 0 0-1.06 1.06l2 2a.75.75 0 0 0 1.13-.08z",fill:"currentColor",fillRule:"evenodd"})}),io=l.createContext({}),Xr={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 _i(e={}){let{style:t,isFocusable:r}=e,[n,o]=l.useState(!1),{focusWithinProps:a}=so({isDisabled:!r,onFocusWithinChange:i=>o(i)}),s=l.useMemo(()=>n?t:t?{...Xr,...t}:Xr,[n]);return{visuallyHiddenProps:{...a,style:s}}}function Fi(e){let{children:t,elementType:r="div",isFocusable:n,style:o,...a}=e,{visuallyHiddenProps:s}=_i(e);return l.createElement(r,K(a,s),t)}class Ye{constructor(t){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=t}get childNodes(){throw new Error("childNodes is not supported")}clone(){let t=new this.constructor(this.key);return t.value=this.value,t.level=this.level,t.hasChildNodes=this.hasChildNodes,t.rendered=this.rendered,t.textValue=this.textValue,t["aria-label"]=this["aria-label"],t.index=this.index,t.parentKey=this.parentKey,t.prevKey=this.prevKey,t.nextKey=this.nextKey,t.firstChildKey=this.firstChildKey,t.lastChildKey=this.lastChildKey,t.props=this.props,t.render=this.render,t.colSpan=this.colSpan,t.colIndex=this.colIndex,t}filter(t,r,n){let o=this.clone();return r.addDescendants(o,t),o}}class lo extends Ye{filter(t,r,n){let[o,a]=Bi(t,r,this.firstChildKey,n),s=this.clone();return s.firstChildKey=o,s.lastChildKey=a,s}}const br=class br extends Ye{};br.type="header";let Zr=br;const mr=class mr extends Ye{};mr.type="loader";let Jr=mr;const hr=class hr extends lo{filter(t,r,n){if(n(this.textValue,this)){let o=this.clone();return r.addDescendants(o,t),o}return null}};hr.type="item";let Qr=hr;const vr=class vr extends lo{filter(t,r,n){let o=super.filter(t,r,n);if(o&&o.lastChildKey!==null){let a=t.getItem(o.lastChildKey);if(a&&a.type!=="header")return o}return null}};vr.type="section";let en=vr;function Bi(e,t,r,n){if(r==null)return[null,null];let o=null,a=null,s=e.getItem(r);for(;s!=null;){let i=s.filter(e,t,n);i!=null&&(i.nextKey=null,a&&(i.prevKey=a.key,a.nextKey=i.key),o==null&&(o=i),t.addNode(i),a=i),s=s.nextKey!=null?e.getItem(s.nextKey):null}if(a&&a.type==="separator"){let i=a.prevKey;t.removeNode(a.key),i!=null?(a=t.getItem(i),a.nextKey=null):a=null}return[(o==null?void 0:o.key)??null,(a==null?void 0:a.key)??null]}var it={exports:{}},jt={};/**
7
+ `.trim(),h.head.prepend(w)},[m]),a.useEffect(()=>{let h=v.current;return()=>{f||Jr(h.target??void 0);for(let w of h.disposables)w();h.disposables=[]}},[f]),{isPressed:c||g,pressProps:X(p,B,{[jo]:!0})}}function Un(t){return t.tagName==="A"&&t.hasAttribute("href")}function Qr(t,e){const{key:r,code:n}=t,o=e,i=o.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||n==="Space")&&!(o instanceof fe(o).HTMLInputElement&&!Kl(o,r)||o instanceof fe(o).HTMLTextAreaElement||o.isContentEditable)&&!((i==="link"||!i&&Un(o))&&r!=="Enter")}function Ad(t){const{targetTouches:e}=t;return e.length>0?e[0]:null}function Bo(t,e){const r=t.changedTouches;for(let n=0;n<r.length;n++){const o=r[n];if(o.identifier===e)return o}return null}function _e(t,e){let r=0,n=0;return e.targetTouches&&e.targetTouches.length===1&&(r=e.targetTouches[0].clientX,n=e.targetTouches[0].clientY),{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,clientX:r,clientY:n}}function Ge(t,e){let r=e.clientX,n=e.clientY;return{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,clientX:r,clientY:n,key:e.key}}function Fd(t){let e=0,r=0;return t.width!==void 0?e=t.width/2:t.radiusX!==void 0&&(e=t.radiusX),t.height!==void 0?r=t.height/2:t.radiusY!==void 0&&(r=t.radiusY),{top:t.clientY-r,right:t.clientX+e,bottom:t.clientY+r,left:t.clientX-e}}function Od(t,e){return!(t.left>e.right||e.left>t.right||t.top>e.bottom||e.top>t.bottom)}function _o(t,e){let r=e.getBoundingClientRect(),n=Fd(t);return Od(r,n)}function jd(t){return t instanceof HTMLInputElement?!1:t instanceof HTMLButtonElement?t.type!=="submit"&&t.type!=="reset":!Un(t)}function Vo(t,e){return t instanceof HTMLInputElement?!Kl(t,e):jd(t)}const Bd=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Kl(t,e){return t.type==="checkbox"||t.type==="radio"?e===" ":Bd.has(t.type)}function _d(t,e){let{elementType:r="button",isDisabled:n,onPress:o,onPressStart:i,onPressEnd:l,onPressUp:s,onPressChange:c,preventFocusOnPress:u,allowFocusWhenDisabled:d,onClick:f,href:m,target:p,rel:g,type:y="button"}=t,v;r==="button"?v={type:y,disabled:n,form:t.form,formAction:t.formAction,formEncType:t.formEncType,formMethod:t.formMethod,formNoValidate:t.formNoValidate,formTarget:t.formTarget,name:t.name,value:t.value}:v={role:"button",href:r==="a"&&!n?m:void 0,target:r==="a"?p:void 0,type:r==="input"?y:void 0,disabled:r==="input"?n:void 0,"aria-disabled":!n||r==="input"?void 0:n,rel:r==="a"?g:void 0};let{pressProps:E,isPressed:$}=Ze({onPressStart:i,onPressEnd:l,onPressChange:c,onPress:o,onPressUp:s,onClick:f,isDisabled:n,preventFocusOnPress:u,ref:e}),{focusableProps:P}=Dr(t,e);d&&(P.tabIndex=n?-1:P.tabIndex);let k=X(P,E,ue(t,{labelable:!0}));return{isPressed:$,buttonProps:X(v,k,{"aria-haspopup":t["aria-haspopup"],"aria-expanded":t["aria-expanded"],"aria-controls":t["aria-controls"],"aria-pressed":t["aria-pressed"],"aria-current":t["aria-current"],"aria-disabled":t["aria-disabled"]})}}function Gn(t){let{isDisabled:e,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:o}=t,i=a.useRef({isFocusWithin:!1}),{addGlobalListener:l,removeAllGlobalListeners:s}=Rr(),c=a.useCallback(f=>{H(f.currentTarget,A(f))&&i.current.isFocusWithin&&!H(f.currentTarget,f.relatedTarget)&&(i.current.isFocusWithin=!1,s(),r&&r(f),o&&o(!1))},[r,o,i,s]),u=Tl(c),d=a.useCallback(f=>{if(!H(f.currentTarget,A(f)))return;let m=A(f);const p=Z(m),g=ne(p);if(!i.current.isFocusWithin&&g===m){n&&n(f),o&&o(!0),i.current.isFocusWithin=!0,u(f);let y=f.currentTarget;l(p,"focus",v=>{let E=A(v);if(i.current.isFocusWithin&&!H(y,E)){let $=new p.defaultView.FocusEvent("blur",{relatedTarget:E});kl($,y);let P=Wn($);c(P)}},{capture:!0})}},[n,o,u,l,c]);return e?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:d,onBlur:c}}}function qn(t={}){let{autoFocus:e=!1,isTextInput:r,within:n}=t,o=a.useRef({isFocused:!1,isFocusVisible:e||It()}),[i,l]=a.useState(!1),[s,c]=a.useState(()=>o.current.isFocused&&o.current.isFocusVisible),u=a.useCallback(()=>c(o.current.isFocused&&o.current.isFocusVisible),[]),d=a.useCallback(p=>{o.current.isFocused=p,o.current.isFocusVisible=It(),l(p),u()},[u]);Ld(p=>{o.current.isFocusVisible=p,u()},[r,i],{enabled:i,isTextInput:r});let{focusProps:f}=Ll({isDisabled:n,onFocusChange:d}),{focusWithinProps:m}=Gn({isDisabled:!n,onFocusWithinChange:d});return{isFocused:i,isFocusVisible:s,focusProps:n?m:f}}let wr=!1,er=0;function wn(){wr=!0,setTimeout(()=>{wr=!1},500)}function Ho(t){t.pointerType==="touch"&&wn()}function Vd(){let t=Z(null);if(!(typeof t>"u"))return er===0&&(typeof PointerEvent<"u"?t.addEventListener("pointerup",Ho):process.env.NODE_ENV==="test"&&t.addEventListener("touchend",wn)),er++,()=>{er--,!(er>0)&&(typeof PointerEvent<"u"?t.removeEventListener("pointerup",Ho):process.env.NODE_ENV==="test"&&t.removeEventListener("touchend",wn))}}function Ut(t){let{onHoverStart:e,onHoverChange:r,onHoverEnd:n,isDisabled:o}=t,[i,l]=a.useState(!1),s=a.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;a.useEffect(Vd,[]);let{addGlobalListener:c,removeAllGlobalListeners:u}=Rr(),{hoverProps:d,triggerHoverEnd:f}=a.useMemo(()=>{let m=(y,v)=>{if(s.pointerType=v,o||v==="touch"||s.isHovered||!H(y.currentTarget,A(y)))return;s.isHovered=!0;let E=y.currentTarget;s.target=E,c(Z(A(y)),"pointerover",$=>{s.isHovered&&s.target&&!H(s.target,A($))&&p($,$.pointerType)},{capture:!0}),e&&e({type:"hoverstart",target:E,pointerType:v}),r&&r(!0),l(!0)},p=(y,v)=>{let E=s.target;s.pointerType="",s.target=null,!(v==="touch"||!s.isHovered||!E)&&(s.isHovered=!1,u(),n&&n({type:"hoverend",target:E,pointerType:v}),r&&r(!1),l(!1))},g={};return typeof PointerEvent<"u"?(g.onPointerEnter=y=>{wr&&y.pointerType==="mouse"||m(y,y.pointerType)},g.onPointerLeave=y=>{!o&&H(y.currentTarget,A(y))&&p(y,y.pointerType)}):process.env.NODE_ENV==="test"&&(g.onTouchStart=()=>{s.ignoreEmulatedMouseEvents=!0},g.onMouseEnter=y=>{!s.ignoreEmulatedMouseEvents&&!wr&&m(y,"mouse"),s.ignoreEmulatedMouseEvents=!1},g.onMouseLeave=y=>{!o&&H(y.currentTarget,A(y))&&p(y,"mouse")}),{hoverProps:g,triggerHoverEnd:p}},[e,r,n,o,s,c,u]);return a.useEffect(()=>{o&&f({currentTarget:s.target},s.pointerType)},[o]),{hoverProps:d,isHovered:i}}const Hd=a.createContext({}),Al=dd(function(e,r){[e,r]=Oe(e,r,Hd);let n=e,{isPending:o}=n,{buttonProps:i,isPressed:l}=_d(e,r);i=Wd(i,o);let{focusProps:s,isFocused:c,isFocusVisible:u}=qn(e),{hoverProps:d,isHovered:f}=Ut({...e,isDisabled:e.isDisabled||o}),m={isHovered:f,isPressed:(n.isPressed||l)&&!o,isFocused:c,isFocusVisible:u,isDisabled:e.isDisabled||!1,isPending:o??!1},p=Fe({...e,values:m,defaultClassName:"react-aria-Button"}),g=ge(i.id),y=ge(),v=i["aria-labelledby"];o&&(v?v=`${v} ${y}`:i["aria-label"]&&(v=`${g} ${y}`));let E=a.useRef(o);a.useEffect(()=>{let P={"aria-labelledby":v||g};(!E.current&&c&&o||E.current&&c&&!o)&&Lo(P,"assertive"),E.current=o},[o,c,v,g]);let $=ue(e,{global:!0});return delete $.onClick,a.createElement(Ce.button,{...X($,p,i,s,d),type:i.type==="submit"&&o?"button":i.type,id:g,ref:r,"aria-labelledby":v,slot:e.slot||void 0,"aria-disabled":o?"true":i["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":m.isPressed||void 0,"data-hovered":f||void 0,"data-focused":c||void 0,"data-pending":o||void 0,"data-focus-visible":u||void 0},a.createElement(Cl.Provider,{value:{id:y}},p.children))}),zd=/Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;function Wd(t,e){if(e){for(const r in t)r.startsWith("on")&&!zd.test(r)&&(t[r]=void 0);t.href=void 0,t.target=void 0}return t}const Ud=typeof document<"u"?a.useInsertionEffect??a.useLayoutEffect:()=>{};function Lr(t,e,r){let[n,o]=a.useState(t||e),i=a.useRef(n),l=a.useRef(t!==void 0),s=t!==void 0;a.useEffect(()=>{let f=l.current;f!==s&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${f?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),l.current=s},[s]);let c=s?t:n;Ud(()=>{i.current=c});let[,u]=a.useReducer(()=>({}),{}),d=a.useCallback((f,...m)=>{let p=typeof f=="function"?f(i.current):f;Object.is(i.current,p)||(i.current=p,o(p),u(),r==null||r(p,...m))},[r]);return[c,d]}const Gd=t=>t?"true":void 0;function je(t,e){return sd(t,(r,n)=>{const o=typeof e=="function"?e(n)??"":e??"";return Dt(o,r??"")??""})}const ce=(t,e,r)=>typeof t=="function"?t({className:e}):e,qd=t=>b.jsx("svg",{"aria-hidden":"true","aria-label":"Chevron right icon",fill:"none",height:16,role:"presentation",viewBox:"0 0 16 16",width:16,xmlns:"http://www.w3.org/2000/svg",...t,children:b.jsx("path",{clipRule:"evenodd",d:"M5.47 2.97a.75.75 0 0 1 1.06 0l4.5 4.5a.75.75 0 0 1 0 1.06l-4.5 4.5a.75.75 0 1 1-1.06-1.06L9.44 8 5.47 4.03a.75.75 0 0 1 0-1.06Z",fill:"currentColor",fillRule:"evenodd"})}),Yd=({height:t=9,width:e=9,...r})=>b.jsx("svg",{"aria-hidden":"true","aria-label":"External link icon",fill:"none",height:t,role:"presentation",viewBox:"0 0 7 7",width:e,xmlns:"http://www.w3.org/2000/svg",...r,children:b.jsx("path",{d:"M1.20592 6.84333L0.379822 6.01723L4.52594 1.8672H1.37819L1.38601 0.731812H6.48742V5.83714H5.34421L5.35203 2.6933L1.20592 6.84333Z",fill:"currentColor"})}),zo=t=>b.jsx("svg",{"aria-hidden":"true","aria-label":"Info icon",fill:"none",height:16,role:"presentation",viewBox:"0 0 16 16",width:16,xmlns:"http://www.w3.org/2000/svg",...t,children:b.jsx("path",{clipRule:"evenodd",d:"M8 13.5a5.5 5.5 0 1 0 0-11a5.5 5.5 0 0 0 0 11M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m1-9.5a1 1 0 1 1-2 0a1 1 0 0 1 2 0m-.25 3a.75.75 0 0 0-1.5 0V11a.75.75 0 0 0 1.5 0z",fill:"currentColor",fillRule:"evenodd"})}),Xd=t=>b.jsx("svg",{"aria-hidden":"true","aria-label":"Warning icon",fill:"none",height:16,role:"presentation",viewBox:"0 0 16 16",width:16,xmlns:"http://www.w3.org/2000/svg",...t,children:b.jsx("path",{clipRule:"evenodd",d:"M7.134 2.994L2.217 11.5a1 1 0 0 0 .866 1.5h9.834a1 1 0 0 0 .866-1.5L8.866 2.993a1 1 0 0 0-1.732 0m3.03-.75c-.962-1.665-3.366-1.665-4.329 0L.918 10.749c-.963 1.666.24 3.751 2.165 3.751h9.834c1.925 0 3.128-2.085 2.164-3.751zM8 5a.75.75 0 0 1 .75.75v2a.75.75 0 0 1-1.5 0v-2A.75.75 0 0 1 8 5m1 5.75a1 1 0 1 1-2 0a1 1 0 0 1 2 0",fill:"currentColor",fillRule:"evenodd"})}),Zd=t=>b.jsx("svg",{"aria-hidden":"true","aria-label":"Danger icon",fill:"none",height:16,role:"presentation",viewBox:"0 0 16 16",width:16,xmlns:"http://www.w3.org/2000/svg",...t,children:b.jsx("path",{clipRule:"evenodd",d:"M8 13.5a5.5 5.5 0 1 0 0-11a5.5 5.5 0 0 0 0 11M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m1-4.5a1 1 0 1 1-2 0a1 1 0 0 1 2 0M8.75 5a.75.75 0 0 0-1.5 0v2.5a.75.75 0 0 0 1.5 0z",fill:"currentColor",fillRule:"evenodd"})}),Jd=t=>b.jsx("svg",{"aria-hidden":"true","aria-label":"Success icon",fill:"none",height:16,role:"presentation",viewBox:"0 0 16 16",width:16,xmlns:"http://www.w3.org/2000/svg",...t,children:b.jsx("path",{clipRule:"evenodd",d:"M13.5 8a5.5 5.5 0 1 1-11 0a5.5 5.5 0 0 1 11 0M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0m-3.9-1.55a.75.75 0 1 0-1.2-.9L7.419 8.858L6.03 7.47a.75.75 0 0 0-1.06 1.06l2 2a.75.75 0 0 0 1.13-.08z",fill:"currentColor",fillRule:"evenodd"})}),Yn=a.createContext({}),Qd=a.createContext({placement:"bottom"}),ef=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype;function Wo(t){return t.dataset.liveAnnouncer==="true"||t.dataset.reactAriaTopLayer!==void 0}let vt=new WeakMap,me=[];function tf(t,e){let r=fe(t==null?void 0:t[0]),n=e instanceof r.Element?{root:e}:e,o=(n==null?void 0:n.root)??document.body,i=(n==null?void 0:n.shouldUseInert)&&ef,l=new Set(t),s=new Set,c=v=>i&&v instanceof r.HTMLElement?v.inert:v.getAttribute("aria-hidden")==="true",u=(v,E)=>{i&&v instanceof r.HTMLElement?v.inert=E:E?v.setAttribute("aria-hidden","true"):(v.removeAttribute("aria-hidden"),v instanceof r.HTMLElement&&(v.inert=!1))},d=new Set;if(Ne())for(let v of t){let E=v;for(;E&&E!==o;){let $=E.getRootNode();"shadowRoot"in $&&d.add($.shadowRoot),E=$.parentNode}}let f=v=>{for(let k of v.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))l.add(k);let E=k=>{if(s.has(k)||l.has(k)||k.parentElement&&s.has(k.parentElement)&&k.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let L of l)if(H(k,L))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},$=Gi(Z(v),v,NodeFilter.SHOW_ELEMENT,{acceptNode:E}),P=E(v);if(P===NodeFilter.FILTER_ACCEPT&&m(v),P!==NodeFilter.FILTER_REJECT){let k=$.nextNode();for(;k!=null;)m(k),k=$.nextNode()}},m=v=>{let E=vt.get(v)??0;c(v)&&E===0||(E===0&&u(v,!0),s.add(v),vt.set(v,E+1))};me.length&&me[me.length-1].disconnect(),f(o);let p=new MutationObserver(v=>{for(let E of v)if(E.type==="childList"){if(E.target.isConnected&&![...l,...s].some($=>H($,E.target)))for(let $ of E.addedNodes)($ instanceof HTMLElement||$ instanceof SVGElement)&&Wo($)?l.add($):$ instanceof Element&&f($);if(Ne()){for(let $ of d)if(!$.isConnected){p.disconnect();break}}}});p.observe(o,{childList:!0,subtree:!0});let g=new Set;if(Ne())for(let v of d){let E=new MutationObserver($=>{for(let P of $)if(P.type==="childList"){if(P.target.isConnected&&![...l,...s].some(k=>H(k,P.target)))for(let k of P.addedNodes)(k instanceof HTMLElement||k instanceof SVGElement)&&Wo(k)?l.add(k):k instanceof Element&&f(k);if(Ne()){for(let k of d)if(!k.isConnected){p.disconnect();break}}}});E.observe(v,{childList:!0,subtree:!0}),g.add(E)}let y={visibleNodes:l,hiddenNodes:s,observe(){p.observe(o,{childList:!0,subtree:!0})},disconnect(){p.disconnect()}};return me.push(y),()=>{if(p.disconnect(),Ne())for(let v of g)v.disconnect();for(let v of s){let E=vt.get(v);E!=null&&(E===1?(u(v,!1),vt.delete(v)):vt.set(v,E-1))}y===me[me.length-1]?(me.pop(),me.length&&me[me.length-1].observe()):me.splice(me.indexOf(y),1)}}function rf(t){let e=me[me.length-1];if(e&&!e.visibleNodes.has(t))return e.visibleNodes.add(t),()=>{e.visibleNodes.delete(t)}}const $e={top:"top",bottom:"top",left:"left",right:"left"},Er={top:"bottom",bottom:"top",left:"right",right:"left"},nf={top:"left",left:"top"},En={top:"height",left:"width"},Fl={width:"totalWidth",height:"totalHeight"},tr={};let of=()=>typeof document<"u"?window.visualViewport:null;function Uo(t,e){let r=0,n=0,o=0,i=0,l=0,s=0,c={},u=((e==null?void 0:e.scale)??1)>1;if(t.tagName==="BODY"||t.tagName==="HTML"){let d=document.documentElement;o=d.clientWidth,i=d.clientHeight,r=(e==null?void 0:e.width)??o,n=(e==null?void 0:e.height)??i,c.top=d.scrollTop||t.scrollTop,c.left=d.scrollLeft||t.scrollLeft,e&&(l=e.offsetTop,s=e.offsetLeft)}else({width:r,height:n,top:l,left:s}=Ft(t,!1)),c.top=t.scrollTop,c.left=t.scrollLeft,o=r,i=n;return Vi()&&(t.tagName==="BODY"||t.tagName==="HTML")&&u&&(c.top=0,c.left=0,l=(e==null?void 0:e.pageTop)??0,s=(e==null?void 0:e.pageLeft)??0),{width:r,height:n,totalWidth:o,totalHeight:i,scroll:c,top:l,left:s}}function lf(t){return{top:t.scrollTop,left:t.scrollLeft,width:t.scrollWidth,height:t.scrollHeight}}function Go(t,e,r,n,o,i,l){let s=o.scroll[t]??0,c=n[En[t]],u=l[t]+n.scroll[$e[t]]+i,d=l[t]+n.scroll[$e[t]]+c-i,f=e-s+n.scroll[$e[t]]+l[t]-n[$e[t]],m=e-s+r+n.scroll[$e[t]]+l[t]-n[$e[t]];return f<u?u-f:m>d?Math.max(d-m,u-f):0}function sf(t){let e=window.getComputedStyle(t);return{top:parseInt(e.marginTop,10)||0,bottom:parseInt(e.marginBottom,10)||0,left:parseInt(e.marginLeft,10)||0,right:parseInt(e.marginRight,10)||0}}function qo(t){if(tr[t])return tr[t];let[e,r]=t.split(" "),n=$e[e]||"right",o=nf[n];$e[r]||(r="center");let i=En[n],l=En[o];return tr[t]={placement:e,crossPlacement:r,axis:n,crossAxis:o,size:i,crossSize:l},tr[t]}function en(t,e,r,n,o,i,l,s,c,u,d){let{placement:f,crossPlacement:m,axis:p,crossAxis:g,size:y,crossSize:v}=n,E={};E[g]=t[g]??0,m==="center"?E[g]+=((t[v]??0)-(r[v]??0))/2:m!==g&&(E[g]+=(t[v]??0)-(r[v]??0)),E[g]+=i;const $=t[g]-r[v]+c+u,P=t[g]+t[v]-c-u;if(E[g]=yr(E[g],$,P),f===p){let k=s?d[y]:d[Fl[y]];E[Er[p]]=Math.floor(k-t[p]+o)}else E[p]=Math.floor(t[p]+t[y]+o);return E}function af(t,e,r,n,o,i,l,s,c,u,d){let f=(t.top!=null?t.top:c[Fl.height]-(t.bottom??0)-l)-(c.scroll.top??0),m=u?r.top:0,p={top:Math.max(e.top+m,((d==null?void 0:d.offsetTop)??e.top)+m),bottom:Math.min(e.top+e.height+m,((d==null?void 0:d.offsetTop)??0)+((d==null?void 0:d.height)??0))};return s!=="top"?Math.max(0,p.bottom-f-((o.top??0)+(o.bottom??0)+i)):Math.max(0,f+l-p.top-((o.top??0)+(o.bottom??0)+i))}function Yo(t,e,r,n,o,i,l,s){let{placement:c,axis:u,size:d}=i;return c===u?Math.max(0,r[u]-(l.scroll[u]??0)-(t[u]+(s?e[u]:0))-(n[u]??0)-n[Er[u]]-o):Math.max(0,t[d]+t[u]+(s?e[u]:0)-r[u]-r[d]+(l.scroll[u]??0)-(n[u]??0)-n[Er[u]]-o)}function cf(t,e,r,n,o,i,l,s,c,u,d,f,m,p,g,y,v,E){let $=qo(t),{size:P,crossAxis:k,crossSize:L,placement:j,crossPlacement:T}=$,R=en(e,s,r,$,d,f,u,m,g,y,c),I=d,K=Yo(s,u,e,o,i+d,$,c,v);if(l&&r[P]>K){let te=qo(`${Er[j]} ${T}`),se=en(e,s,r,te,d,f,u,m,g,y,c);Yo(s,u,e,o,i+d,te,c,v)>K&&($=te,R=se,I=d)}let V="bottom";$.axis==="top"?$.placement==="top"?V="top":$.placement==="bottom"&&(V="bottom"):$.crossAxis==="top"&&($.crossPlacement==="top"?V="bottom":$.crossPlacement==="bottom"&&(V="top"));let z=Go(k,R[k],r[L],s,c,i,u);R[k]+=z;let B=af(R,s,u,m,o,i,r.height,V,c,v,E);p&&p<B&&(B=p),r.height=Math.min(r.height,B),R=en(e,s,r,$,I,f,u,m,g,y,c),z=Go(k,R[k],r[L],s,c,i,u),R[k]+=z;let h={},w=e[k]-R[k]-o[$e[k]],N=w+.5*e[L];const C=g/2+y,M=$e[k]==="left"?(o.left??0)+(o.right??0):(o.top??0)+(o.bottom??0),x=r[L]-M-g/2-y,S=e[k]+g/2-(R[k]+o[$e[k]]),D=e[k]+e[L]-g/2-(R[k]+o[$e[k]]),W=yr(N,S,D);h[k]=yr(W,C,x),{placement:j,crossPlacement:T}=$,g?w=h[k]:T==="right"?w+=e[L]:T==="center"&&(w+=e[L]/2);let U=j==="left"||j==="top"?r[P]:0,G={x:j==="top"||j==="bottom"?w:U,y:j==="left"||j==="right"?w:U};return{position:R,maxHeight:B,arrowOffsetLeft:h.left,arrowOffsetTop:h.top,placement:j,triggerAnchorPoint:G}}function uf(t){let{placement:e,targetNode:r,overlayNode:n,scrollNode:o,padding:i,shouldFlip:l,boundaryElement:s,offset:c,crossOffset:u,maxHeight:d,arrowSize:f=0,arrowBoundaryOffset:m=0}=t,p=of(),g=n instanceof HTMLElement?df(n):document.documentElement,y=g===document.documentElement;const v=window.getComputedStyle(g).position;let E=!!v&&v!=="static",$=y?Ft(r,!1):Xo(r,g,!1);if(!y){let{marginTop:K,marginLeft:V}=window.getComputedStyle(r);$.top+=parseInt(K,10)||0,$.left+=parseInt(V,10)||0}let P=Ft(n,!0),k=sf(n);P.width+=(k.left??0)+(k.right??0),P.height+=(k.top??0)+(k.bottom??0);let L=lf(o),j=Uo(s,p),T=Uo(g,p),R;if((s.tagName==="BODY"||s.tagName==="HTML")&&!y){let K=Ir(g,!1);R={top:-(K.top-j.top),left:-(K.left-j.left),width:0,height:0}}else(s.tagName==="BODY"||s.tagName==="HTML")&&y?R={top:0,left:0,width:0,height:0}:R=Xo(s,g,!1);let I=H(s,g);return cf(e,$,P,L,k,i,l,j,T,R,c,u,E,d,f,m,I,p)}function Ir(t,e){let{top:r,left:n,width:o,height:i}=t.getBoundingClientRect();return e&&t instanceof t.ownerDocument.defaultView.HTMLElement&&(o=t.offsetWidth,i=t.offsetHeight),{top:r,left:n,width:o,height:i}}function Ft(t,e){let{top:r,left:n,width:o,height:i}=Ir(t,e),{scrollTop:l,scrollLeft:s,clientTop:c,clientLeft:u}=document.documentElement;return{top:r+l-c,left:n+s-u,width:o,height:i}}function Xo(t,e,r){let n=window.getComputedStyle(t),o;if(n.position==="fixed")o=Ir(t,r);else{o=Ft(t,r);let i=Ft(e,r),l=window.getComputedStyle(e);i.top+=(parseInt(l.borderTopWidth,10)||0)-e.scrollTop,i.left+=(parseInt(l.borderLeftWidth,10)||0)-e.scrollLeft,o.top-=i.top,o.left-=i.left}return o.top-=parseInt(n.marginTop,10)||0,o.left-=parseInt(n.marginLeft,10)||0,o}function df(t){let e=t.offsetParent;if(e&&e===document.body&&window.getComputedStyle(e).position==="static"&&!Zo(e)&&(e=document.documentElement),e==null)for(e=t.parentElement;e&&!Zo(e);)e=e.parentElement;return e||document.documentElement}function Zo(t){let e=window.getComputedStyle(t);return e.transform!=="none"||/transform|perspective/.test(e.willChange)||e.filter!=="none"||e.contain==="paint"||"backdropFilter"in e&&e.backdropFilter!=="none"||"WebkitBackdropFilter"in e&&e.WebkitBackdropFilter!=="none"}const Ol=new WeakMap;function ff(t){let{triggerRef:e,isOpen:r,onClose:n}=t;a.useEffect(()=>{if(!r||n===null)return;let o=i=>{let l=A(i);if(!e.current||l instanceof Node&&!H(l,e.current)||l instanceof HTMLInputElement||l instanceof HTMLTextAreaElement)return;let s=n||Ol.get(e.current);s&&s()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[r,n,e])}let oe=typeof document<"u"?window.visualViewport:null;function pf(t){let{direction:e}=Je(),{arrowSize:r,targetRef:n,overlayRef:o,arrowRef:i,scrollRef:l=o,placement:s="bottom",containerPadding:c=12,shouldFlip:u=!0,boundaryElement:d=typeof document<"u"?document.body:null,offset:f=0,crossOffset:m=0,shouldUpdatePosition:p=!0,isOpen:g=!0,onClose:y,maxHeight:v,arrowBoundaryOffset:E=0}=t,[$,P]=a.useState(null),k=[p,s,o.current,n.current,i==null?void 0:i.current,l.current,c,u,d,f,m,g,e,v,E,r],L=a.useRef(oe==null?void 0:oe.scale);a.useEffect(()=>{g&&(L.current=oe==null?void 0:oe.scale)},[g]);let j=a.useCallback(()=>{var B,h;if(p===!1||!g||!o.current||!n.current||!d||(oe==null?void 0:oe.scale)!==L.current)return;let I=null;if(l.current&&Nt(l.current)){let w=(B=ne())==null?void 0:B.getBoundingClientRect(),N=l.current.getBoundingClientRect();I={type:"top",offset:((w==null?void 0:w.top)??0)-N.top},I.offset>N.height/2&&(I.type="bottom",I.offset=((w==null?void 0:w.bottom)??0)-N.bottom)}let K=o.current;!v&&o.current&&(K.style.top="0px",K.style.bottom="",K.style.maxHeight=(((h=window.visualViewport)==null?void 0:h.height)??window.innerHeight)+"px");let V=uf({placement:bf(s,e),overlayNode:o.current,targetNode:n.current,scrollNode:l.current||o.current,padding:c,shouldFlip:u,boundaryElement:d,offset:f,crossOffset:m,maxHeight:v,arrowSize:r??(i!=null&&i.current?Ir(i.current,!0).width:0),arrowBoundaryOffset:E});if(!V.position)return;K.style.top="",K.style.bottom="",K.style.left="",K.style.right="",Object.keys(V.position).forEach(w=>K.style[w]=V.position[w]+"px"),K.style.maxHeight=V.maxHeight!=null?V.maxHeight+"px":"";let z=ne();if(I&&z&&l.current){let w=z.getBoundingClientRect(),N=l.current.getBoundingClientRect(),C=w[I.type]-N[I.type];l.current.scrollTop+=C-I.offset}P(V)},k);J(j,k),hf(j),hr({ref:o,onResize:j}),hr({ref:n,onResize:j});let T=a.useRef(!1);J(()=>{let I,K=()=>{T.current=!0,clearTimeout(I),I=setTimeout(()=>{T.current=!1},500),j()},V=()=>{T.current&&K()};return oe==null||oe.addEventListener("resize",K),oe==null||oe.addEventListener("scroll",V),()=>{oe==null||oe.removeEventListener("resize",K),oe==null||oe.removeEventListener("scroll",V)}},[j]);let R=a.useCallback(()=>{T.current||y==null||y()},[y,T]);return ff({triggerRef:n,isOpen:g,onClose:y&&R}),{overlayProps:{style:{position:$?"absolute":"fixed",top:$?void 0:0,left:$?void 0:0,zIndex:1e5,...$==null?void 0:$.position,maxHeight:($==null?void 0:$.maxHeight)??"100vh"}},placement:($==null?void 0:$.placement)??null,triggerAnchorPoint:($==null?void 0:$.triggerAnchorPoint)??null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:$==null?void 0:$.arrowOffsetLeft,top:$==null?void 0:$.arrowOffsetTop}},updatePosition:j}}function hf(t){J(()=>(window.addEventListener("resize",t,!1),()=>{window.removeEventListener("resize",t,!1)}),[t])}function bf(t,e){return e==="rtl"?t.replace("start","right").replace("end","left"):t.replace("start","left").replace("end","right")}const Jo=a.createContext(null),Sn="react-aria-focus-scope-restore";let re=null;function jl(t){let{children:e,contain:r,restoreFocus:n,autoFocus:o}=t,i=a.useRef(null),l=a.useRef(null),s=a.useRef([]),{parentNode:c}=a.useContext(Jo)||{},u=a.useMemo(()=>new Pn({scopeRef:s}),[s]);J(()=>{let m=c||le.root;if(le.getTreeNode(m.scopeRef)&&re&&!Sr(re,m.scopeRef)){let p=le.getTreeNode(re);p&&(m=p)}m.addChild(u),le.addNode(u)},[u,c]),J(()=>{let m=le.getTreeNode(s);m&&(m.contain=!!r)},[r]),J(()=>{var y;let m=(y=i.current)==null?void 0:y.nextSibling,p=[],g=v=>v.stopPropagation();for(;m&&m!==l.current;)p.push(m),m.addEventListener(Sn,g),m=m.nextSibling;return s.current=p,()=>{for(let v of p)v.removeEventListener(Sn,g)}},[e]),wf(s,n,r),vf(s,r),Ef(s,n,r),xf(s,o),a.useEffect(()=>{const m=ne(Z(s.current?s.current[0]:void 0));let p=null;if(we(m,s.current)){for(let g of le.traverse())g.scopeRef&&we(m,g.scopeRef.current)&&(p=g);p===le.getTreeNode(s)&&(re=p.scopeRef)}},[s]),J(()=>()=>{var p,g;let m=((g=(p=le.getTreeNode(s))==null?void 0:p.parent)==null?void 0:g.scopeRef)??null;(s===re||Sr(s,re))&&(!m||le.getTreeNode(m))&&(re=m),le.removeTreeNode(s)},[s]);let d=a.useMemo(()=>mf(s),[]),f=a.useMemo(()=>({focusManager:d,parentNode:u}),[u,d]);return a.createElement(Jo.Provider,{value:f},a.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:i}),e,a.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:l}))}function mf(t){return{focusNext(e={}){let r=t.current,{from:n,tabbable:o,wrap:i,accept:l}=e,s=n||ne(Z(r[0]??void 0)),c=r[0].previousElementSibling,u=qe(r),d=Le(u,{tabbable:o,accept:l},r);d.currentNode=we(s,r)?s:c;let f=d.nextNode();return!f&&i&&(d.currentNode=c,f=d.nextNode()),f&&De(f,!0),f},focusPrevious(e={}){let r=t.current,{from:n,tabbable:o,wrap:i,accept:l}=e,s=n||ne(Z(r[0]??void 0)),c=r[r.length-1].nextElementSibling,u=qe(r),d=Le(u,{tabbable:o,accept:l},r);d.currentNode=we(s,r)?s:c;let f=d.previousNode();return!f&&i&&(d.currentNode=c,f=d.previousNode()),f&&De(f,!0),f},focusFirst(e={}){let r=t.current,{tabbable:n,accept:o}=e,i=qe(r),l=Le(i,{tabbable:n,accept:o},r);l.currentNode=r[0].previousElementSibling;let s=l.nextNode();return s&&De(s,!0),s},focusLast(e={}){let r=t.current,{tabbable:n,accept:o}=e,i=qe(r),l=Le(i,{tabbable:n,accept:o},r);l.currentNode=r[r.length-1].nextElementSibling;let s=l.previousNode();return s&&De(s,!0),s}}}function qe(t){return t[0].parentElement}function Pt(t){let e=le.getTreeNode(re);for(;e&&e.scopeRef!==t;){if(e.contain)return!1;e=e.parent}return!0}function gf(t){if(!t.form)return Array.from(Z(t).querySelectorAll(`input[type="radio"][name="${CSS.escape(t.name)}"]`)).filter(n=>!n.form);const e=t.form.elements.namedItem(t.name);let r=fe(t);return e instanceof r.RadioNodeList?Array.from(e).filter(n=>n instanceof r.HTMLInputElement):e instanceof r.HTMLInputElement?[e]:[]}function yf(t){if(t.checked)return!0;const e=gf(t);return e.length>0&&!e.some(r=>r.checked)}function vf(t,e){let r=a.useRef(void 0),n=a.useRef(void 0);J(()=>{let o=t.current;if(!e){n.current&&(cancelAnimationFrame(n.current),n.current=void 0);return}const i=Z(o?o[0]:void 0);let l=u=>{if(u.key!=="Tab"||u.altKey||u.ctrlKey||u.metaKey||!Pt(t)||u.isComposing)return;let d=ne(i),f=t.current;if(!f||!we(d,f))return;let m=qe(f),p=Le(m,{tabbable:!0},f);if(!d)return;p.currentNode=d;let g=u.shiftKey?p.previousNode():p.nextNode();g||(p.currentNode=u.shiftKey?f[f.length-1].nextElementSibling:f[0].previousElementSibling,g=u.shiftKey?p.previousNode():p.nextNode()),u.preventDefault(),g&&(De(g,!0),g instanceof fe(g).HTMLInputElement&&g.select())},s=u=>{(!re||Sr(re,t))&&we(A(u),t.current)?(re=t,r.current=A(u)):Pt(t)&&!He(A(u),t)?r.current?r.current.focus():re&&re.current&&Cn(re.current):Pt(t)&&(r.current=A(u))},c=u=>{n.current&&cancelAnimationFrame(n.current),n.current=requestAnimationFrame(()=>{var p;let d=Kt(),f=(d==="virtual"||d===null)&&jn()&&Hi(),m=ne(i);if(!f&&m&&Pt(t)&&!He(m,t)){re=t;let g=A(u);g&&g.isConnected?(r.current=g,(p=r.current)==null||p.focus()):re.current&&Cn(re.current)}})};return i.addEventListener("keydown",l,!1),i.addEventListener("focusin",s,!1),o==null||o.forEach(u=>u.addEventListener("focusin",s,!1)),o==null||o.forEach(u=>u.addEventListener("focusout",c,!1)),()=>{i.removeEventListener("keydown",l,!1),i.removeEventListener("focusin",s,!1),o==null||o.forEach(u=>u.removeEventListener("focusin",s,!1)),o==null||o.forEach(u=>u.removeEventListener("focusout",c,!1))}},[t,e]),J(()=>()=>{n.current&&cancelAnimationFrame(n.current)},[n])}function Bl(t){return He(t)}function we(t,e){return!t||!e?!1:e.some(r=>H(r,t))}function He(t,e=null){if(t instanceof Element&&t.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of le.traverse(le.getTreeNode(e)))if(r&&we(t,r.current))return!0;return!1}function $f(t){return He(t,re)}function Sr(t,e){var n;let r=(n=le.getTreeNode(e))==null?void 0:n.parent;for(;r;){if(r.scopeRef===t)return!0;r=r.parent}return!1}function De(t,e=!1){if(t!=null&&!e)try{ct(t)}catch{}else if(t!=null)try{t.focus()}catch{}}function _l(t,e=!0){let r=t[0].previousElementSibling,n=qe(t),o=Le(n,{tabbable:e},t);o.currentNode=r;let i=o.nextNode();return e&&!i&&(n=qe(t),o=Le(n,{tabbable:!1},t),o.currentNode=r,i=o.nextNode()),i}function Cn(t,e=!0){De(_l(t,e))}function xf(t,e){const r=a.useRef(e);a.useEffect(()=>{if(r.current){re=t;const n=Z(t.current?t.current[0]:void 0);!we(ne(n),re.current)&&t.current&&Cn(t.current)}r.current=!1},[t])}function wf(t,e,r){J(()=>{if(e||r)return;let n=t.current;const o=Z(n?n[0]:void 0);let i=l=>{let s=A(l);we(s,t.current)?re=t:Bl(s)||(re=null)};return o.addEventListener("focusin",i,!1),n==null||n.forEach(l=>l.addEventListener("focusin",i,!1)),()=>{o.removeEventListener("focusin",i,!1),n==null||n.forEach(l=>l.removeEventListener("focusin",i,!1))}},[t,e,r])}function Qo(t){let e=le.getTreeNode(re);for(;e&&e.scopeRef!==t;){if(e.nodeToRestore)return!1;e=e.parent}return(e==null?void 0:e.scopeRef)===t}function Ef(t,e,r){const n=a.useRef(typeof document<"u"?ne(Z(t.current?t.current[0]:void 0)):null);J(()=>{let o=t.current;const i=Z(o?o[0]:void 0);if(!e||r)return;let l=()=>{(!re||Sr(re,t))&&we(ne(i),t.current)&&(re=t)};return i.addEventListener("focusin",l,!1),o==null||o.forEach(s=>s.addEventListener("focusin",l,!1)),()=>{i.removeEventListener("focusin",l,!1),o==null||o.forEach(s=>s.removeEventListener("focusin",l,!1))}},[t,r]),J(()=>{const o=Z(t.current?t.current[0]:void 0);if(!e)return;let i=l=>{if(l.key!=="Tab"||l.altKey||l.ctrlKey||l.metaKey||!Pt(t)||l.isComposing)return;let s=o.activeElement;if(!He(s,t)||!Qo(t))return;let c=le.getTreeNode(t);if(!c)return;let u=c.nodeToRestore,d=Le(o.body,{tabbable:!0});d.currentNode=s;let f=l.shiftKey?d.previousNode():d.nextNode();if((!u||!u.isConnected||u===o.body)&&(u=void 0,c.nodeToRestore=void 0),(!f||!He(f,t))&&u){d.currentNode=u;do f=l.shiftKey?d.previousNode():d.nextNode();while(He(f,t));l.preventDefault(),l.stopPropagation(),f?De(f,!0):Bl(u)?De(u,!0):s.blur()}};return r||o.addEventListener("keydown",i,!0),()=>{r||o.removeEventListener("keydown",i,!0)}},[t,e,r]),J(()=>{const o=Z(t.current?t.current[0]:void 0);if(!e)return;let i=le.getTreeNode(t);if(i)return i.nodeToRestore=n.current??void 0,()=>{let l=le.getTreeNode(t);if(!l)return;let s=l.nodeToRestore,c=ne(o);if(e&&s&&(c&&He(c,t)||c===o.body&&Qo(t))){let u=le.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let d=u.getTreeNode(t);for(;d;){if(d.nodeToRestore&&d.nodeToRestore.isConnected){ei(d.nodeToRestore);return}d=d.parent}for(d=u.getTreeNode(t);d;){if(d.scopeRef&&d.scopeRef.current&&le.getTreeNode(d.scopeRef)){let f=_l(d.scopeRef.current,!0);ei(f);return}d=d.parent}}})}}},[t,e])}function ei(t){t.dispatchEvent(new CustomEvent(Sn,{bubbles:!0,cancelable:!0}))&&De(t)}function Le(t,e,r){let n=e!=null&&e.tabbable?el:Qi,o=(t==null?void 0:t.nodeType)===Node.ELEMENT_NODE?t:null,i=Z(o),l=Gi(i,t||i,NodeFilter.SHOW_ELEMENT,{acceptNode(s){return H(e==null?void 0:e.from,s)||e!=null&&e.tabbable&&s.tagName==="INPUT"&&s.getAttribute("type")==="radio"&&(!yf(s)||l.currentNode.tagName==="INPUT"&&l.currentNode.type==="radio"&&l.currentNode.name===s.name)?NodeFilter.FILTER_REJECT:n(s)&&(!r||we(s,r))&&(!(e!=null&&e.accept)||e.accept(s))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return e!=null&&e.from&&(l.currentNode=e.from),l}class Xn{constructor(){this.fastMap=new Map,this.root=new Pn({scopeRef:null}),this.fastMap.set(null,this.root)}get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,r,n){let o=this.fastMap.get(r??null);if(!o)return;let i=new Pn({scopeRef:e});o.addChild(i),i.parent=o,this.fastMap.set(e,i),n&&(i.nodeToRestore=n)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(e===null)return;let r=this.fastMap.get(e);if(!r)return;let n=r.parent;for(let i of this.traverse())i!==r&&r.nodeToRestore&&i.nodeToRestore&&r.scopeRef&&r.scopeRef.current&&we(i.nodeToRestore,r.scopeRef.current)&&(i.nodeToRestore=r.nodeToRestore);let o=r.children;n&&(n.removeChild(r),o.size>0&&o.forEach(i=>n&&n.addChild(i))),this.fastMap.delete(r.scopeRef)}*traverse(e=this.root){if(e.scopeRef!=null&&(yield e),e.children.size>0)for(let r of e.children)yield*this.traverse(r)}clone(){var r;let e=new Xn;for(let n of this.traverse())e.addTreeNode(n.scopeRef,((r=n.parent)==null?void 0:r.scopeRef)??null,n.nodeToRestore);return e}}class Pn{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 le=new Xn;function Sf(t){let{ref:e,onInteractOutside:r,isDisabled:n,onInteractOutsideStart:o}=t,i=a.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),l=xe(c=>{r&&rr(c,e)&&(o&&o(c),i.current.isPointerDown=!0)}),s=xe(c=>{r&&r(c)});a.useEffect(()=>{let c=i.current;if(n)return;const u=e.current,d=Z(u);if(typeof PointerEvent<"u"){let f=m=>{c.isPointerDown&&rr(m,e)&&s(m),c.isPointerDown=!1};return d.addEventListener("pointerdown",l,!0),d.addEventListener("click",f,!0),()=>{d.removeEventListener("pointerdown",l,!0),d.removeEventListener("click",f,!0)}}else if(process.env.NODE_ENV==="test"){let f=p=>{c.ignoreEmulatedMouseEvents?c.ignoreEmulatedMouseEvents=!1:c.isPointerDown&&rr(p,e)&&s(p),c.isPointerDown=!1},m=p=>{c.ignoreEmulatedMouseEvents=!0,c.isPointerDown&&rr(p,e)&&s(p),c.isPointerDown=!1};return d.addEventListener("mousedown",l,!0),d.addEventListener("mouseup",f,!0),d.addEventListener("touchstart",l,!0),d.addEventListener("touchend",m,!0),()=>{d.removeEventListener("mousedown",l,!0),d.removeEventListener("mouseup",f,!0),d.removeEventListener("touchstart",l,!0),d.removeEventListener("touchend",m,!0)}}},[e,n])}function rr(t,e){if(t.button>0)return!1;let r=A(t);if(r){const n=r.ownerDocument;if(!n||!H(n.documentElement,r)||r.closest("[data-react-aria-top-layer]"))return!1}return e.current?!t.composedPath().includes(e.current):!1}const ke=[];function Cf(t,e){let{onClose:r,shouldCloseOnBlur:n,isOpen:o,isDismissable:i=!1,isKeyboardDismissDisabled:l=!1,shouldCloseOnInteractOutside:s}=t,c=a.useRef(void 0);a.useEffect(()=>{if(o&&!ke.includes(e))return ke.push(e),()=>{let g=ke.indexOf(e);g>=0&&ke.splice(g,1)}},[o,e]);let u=()=>{ke[ke.length-1]===e&&r&&r()},d=g=>{const y=ke[ke.length-1];c.current=y,(!s||s(A(g)))&&y===e&&g.stopPropagation()},f=g=>{(!s||s(A(g)))&&(ke[ke.length-1]===e&&g.stopPropagation(),c.current===e&&u()),c.current=void 0},m=g=>{g.key==="Escape"&&!l&&!g.nativeEvent.isComposing&&(g.stopPropagation(),g.preventDefault(),u())};Sf({ref:e,onInteractOutside:i&&o?f:void 0,onInteractOutsideStart:d});let{focusWithinProps:p}=Gn({isDisabled:!n,onBlurWithin:g=>{!g.relatedTarget||$f(g.relatedTarget)||(!s||s(g.relatedTarget))&&(r==null||r())}});return{overlayProps:{onKeyDown:m,...p},underlayProps:{}}}const Mt=typeof document<"u"&&window.visualViewport;let nr=0,tn;function Pf(t={}){let{isDisabled:e}=t;J(()=>{if(!e)return nr++,nr===1&&(Bt()?tn=Tf():tn=kf()),()=>{nr--,nr===0&&tn()}},[e])}function kf(){let t=window.innerWidth-document.documentElement.clientWidth;return Vt(t>0&&("scrollbarGutter"in document.documentElement.style?ur(document.documentElement,"scrollbarGutter","stable"):ur(document.documentElement,"paddingRight",`${t}px`)),ur(document.documentElement,"overflow","hidden"))}function Tf(){let t=ur(document.documentElement,"overflow","hidden"),e,r=!1,n=d=>{let f=A(d);e=at(f)?f:Zi(f,!0),r=!1;let m=f.ownerDocument.defaultView.getSelection();m&&!m.isCollapsed&&m.containsNode(f,!0)&&(r=!0),d.composedPath().some(p=>p instanceof HTMLInputElement&&p.type==="range")&&(r=!0),"selectionStart"in f&&"selectionEnd"in f&&f.selectionStart<f.selectionEnd&&f.ownerDocument.activeElement===f&&(r=!0)},o=document.createElement("style"),i=rl();i&&(o.nonce=i),o.textContent=`
8
+ @layer {
9
+ * {
10
+ overscroll-behavior: contain;
11
+ }
12
+ }`.trim(),document.head.prepend(o);let l=d=>{if(!(d.touches.length===2||r)){if(!e||e===document.documentElement||e===document.body){d.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&d.preventDefault()}},s=d=>{var p;let f=A(d),m=d.relatedTarget;if(m&&Ur(m))m.focus({preventScroll:!0}),ti(m,Ur(f));else if(!m){let g=(p=f.parentElement)==null?void 0:p.closest("[tabindex]");g==null||g.focus({preventScroll:!0})}},c=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(d){let f=ne(),m=f!=null&&Ur(f);c.call(this,{...d,preventScroll:!0}),(!d||!d.preventScroll)&&ti(this,m)};let u=Vt(rn(document,"touchstart",n,{passive:!1,capture:!0}),rn(document,"touchmove",l,{passive:!1,capture:!0}),rn(document,"blur",s,!0));return()=>{t(),u(),o.remove(),HTMLElement.prototype.focus=c}}function ur(t,e,r){let n=t.style[e];return t.style[e]=r,()=>{t.style[e]=n}}function rn(t,e,r,n){return t.addEventListener(e,r,n),()=>{t.removeEventListener(e,r,n)}}function ti(t,e){e||!Mt?ri(t):Mt.addEventListener("resize",()=>ri(t),{once:!0})}function ri(t){let e=document.scrollingElement||document.documentElement,r=t;for(;r&&r!==e;){let n=Zi(r);if(n!==document.documentElement&&n!==document.body&&n!==r){let o=n.getBoundingClientRect(),i=r.getBoundingClientRect();if(i.top<o.top||i.bottom>o.top+r.clientHeight){let l=o.bottom;Mt&&(l=Math.min(l,Mt.offsetTop+Mt.height));let s=i.top-o.top-((l-o.top)/2-i.height/2);n.scrollTo({top:Math.max(0,Math.min(n.scrollHeight-n.clientHeight,n.scrollTop+s)),behavior:"smooth"})}}r=n.parentElement}}function Mf(t,e){let{triggerRef:r,popoverRef:n,groupRef:o,isNonModal:i,isKeyboardDismissDisabled:l,shouldCloseOnInteractOutside:s,...c}=t,u=c.trigger==="SubmenuTrigger",{overlayProps:d,underlayProps:f}=Cf({isOpen:e.isOpen,onClose:e.close,shouldCloseOnBlur:!0,isDismissable:!i||u,isKeyboardDismissDisabled:l,shouldCloseOnInteractOutside:s},o??n),{overlayProps:m,arrowProps:p,placement:g,triggerAnchorPoint:y}=pf({...c,targetRef:r,overlayRef:n,isOpen:e.isOpen,onClose:i&&!u?e.close:null});return Pf({isDisabled:i||!e.isOpen}),a.useEffect(()=>{if(e.isOpen&&n.current)return i?rf((o==null?void 0:o.current)??n.current):tf([(o==null?void 0:o.current)??n.current],{shouldUseInert:!0})},[i,e.isOpen,n,o]),{popoverProps:X(d,m),arrowProps:p,underlayProps:f,placement:g,triggerAnchorPoint:y}}var Vl={};Vl={dismiss:"تجاهل"};var Hl={};Hl={dismiss:"Отхвърляне"};var zl={};zl={dismiss:"Odstranit"};var Wl={};Wl={dismiss:"Luk"};var Ul={};Ul={dismiss:"Schließen"};var Gl={};Gl={dismiss:"Απόρριψη"};var ql={};ql={dismiss:"Dismiss"};var Yl={};Yl={dismiss:"Descartar"};var Xl={};Xl={dismiss:"Lõpeta"};var Zl={};Zl={dismiss:"Hylkää"};var Jl={};Jl={dismiss:"Rejeter"};var Ql={};Ql={dismiss:"התעלם"};var es={};es={dismiss:"Odbaci"};var ts={};ts={dismiss:"Elutasítás"};var rs={};rs={dismiss:"Ignora"};var ns={};ns={dismiss:"閉じる"};var os={};os={dismiss:"무시"};var is={};is={dismiss:"Atmesti"};var ls={};ls={dismiss:"Nerādīt"};var ss={};ss={dismiss:"Lukk"};var as={};as={dismiss:"Negeren"};var cs={};cs={dismiss:"Zignoruj"};var us={};us={dismiss:"Descartar"};var ds={};ds={dismiss:"Dispensar"};var fs={};fs={dismiss:"Revocare"};var ps={};ps={dismiss:"Пропустить"};var hs={};hs={dismiss:"Zrušiť"};var bs={};bs={dismiss:"Opusti"};var ms={};ms={dismiss:"Odbaci"};var gs={};gs={dismiss:"Avvisa"};var ys={};ys={dismiss:"Kapat"};var vs={};vs={dismiss:"Скасувати"};var $s={};$s={dismiss:"取消"};var xs={};xs={dismiss:"關閉"};var ws={};ws={"ar-AE":Vl,"bg-BG":Hl,"cs-CZ":zl,"da-DK":Wl,"de-DE":Ul,"el-GR":Gl,"en-US":ql,"es-ES":Yl,"et-EE":Xl,"fi-FI":Zl,"fr-FR":Jl,"he-IL":Ql,"hr-HR":es,"hu-HU":ts,"it-IT":rs,"ja-JP":ns,"ko-KR":os,"lt-LT":is,"lv-LV":ls,"nb-NO":ss,"nl-NL":as,"pl-PL":cs,"pt-BR":us,"pt-PT":ds,"ro-RO":fs,"ru-RU":ps,"sk-SK":hs,"sl-SI":bs,"sr-SP":ms,"sv-SE":gs,"tr-TR":ys,"uk-UA":vs,"zh-CN":$s,"zh-TW":xs};const Rf=Symbol.for("react-aria.i18n.locale"),Nf=Symbol.for("react-aria.i18n.strings");let et;class Kr{constructor(e,r="en-US"){this.strings=Object.fromEntries(Object.entries(e).filter(([,n])=>n)),this.defaultLocale=r}getStringForLocale(e,r){let o=this.getStringsForLocale(r)[e];if(!o)throw new Error(`Could not find intl message ${e} in ${r} locale`);return o}getStringsForLocale(e){let r=this.strings[e];return r||(r=Df(e,this.strings,this.defaultLocale),this.strings[e]=r),r}static getGlobalDictionaryForPackage(e){if(typeof window>"u")return null;let r=window[Rf];if(et===void 0){let o=window[Nf];if(!o)return null;et={};for(let i in o)et[i]=new Kr({[r]:o[i]},r)}let n=et==null?void 0:et[e];if(!n)throw new Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return n}}function Df(t,e,r="en-US"){if(e[t])return e[t];let n=Lf(t);if(e[n])return e[n];for(let o in e)if(o.startsWith(n+"-"))return e[o];return e[r]}function Lf(t){return Intl.Locale?new Intl.Locale(t).language:t.split("-")[0]}const ni=new Map,oi=new Map;class If{constructor(e,r){this.locale=e,this.strings=r}format(e,r){let n=this.strings.getStringForLocale(e,this.locale);return typeof n=="function"?n(r,this):n}plural(e,r,n="cardinal"){let o=r["="+e];if(o)return typeof o=="function"?o():o;let i=this.locale+":"+n,l=ni.get(i);l||(l=new Intl.PluralRules(this.locale,{type:n}),ni.set(i,l));let s=l.select(e);return o=r[s]||r.other,typeof o=="function"?o():o}number(e){let r=oi.get(this.locale);return r||(r=new Intl.NumberFormat(this.locale),oi.set(this.locale,r)),r.format(e)}select(e,r){let n=e[r]||e.other;return typeof n=="function"?n():n}}const ii=new WeakMap;function Kf(t){let e=ii.get(t);return e||(e=new Kr(t),ii.set(t,e)),e}function Af(t,e){return e&&Kr.getGlobalDictionaryForPackage(e)||Kf(t)}function Es(t,e){let{locale:r}=Je(),n=Af(t,e);return a.useMemo(()=>new If(r,n),[r,n])}const li={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 Ff(t={}){let{style:e,isFocusable:r}=t,[n,o]=a.useState(!1),{focusWithinProps:i}=Gn({isDisabled:!r,onFocusWithinChange:s=>o(s)}),l=a.useMemo(()=>n?e:e?{...li,...e}:li,[n]);return{visuallyHiddenProps:{...i,style:l}}}function Ss(t){let{children:e,elementType:r="div",isFocusable:n,style:o,...i}=t,{visuallyHiddenProps:l}=Ff(t);return a.createElement(r,X(i,l),e)}function Of(t){return t&&t.__esModule?t.default:t}function si(t){let{onDismiss:e,...r}=t,n=Es(Of(ws),"@react-aria/overlays"),o=Xi(r,n.format("dismiss")),i=()=>{e&&e()};return a.createElement(Ss,null,a.createElement("button",{...o,tabIndex:-1,onClick:i,style:{width:1,height:1}}))}const jf=a.forwardRef(({children:t,...e},r)=>{let n=a.useRef(!1),o=a.useContext(At),i=X(o||{},{...e,register(){n.current=!0,o&&o.register()}});return i.ref=zt(r||(o==null?void 0:o.ref)),Bn(o,i.ref),a.useEffect(()=>{n.current||(process.env.NODE_ENV!=="production"&&console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component."),n.current=!0)},[]),a.createElement(At.Provider,{value:i},t)});function Bf({children:t}){let e=a.useMemo(()=>({register:()=>{}}),[]);return a.createElement(At.Provider,{value:e},t)}const _f=a.createContext({});function Vf(){return a.useContext(_f)??{}}const Hf=a.createContext(null);function ai(t){let e=dt(),{portalContainer:r=e?null:document.body,isExiting:n}=t,[o,i]=a.useState(!1),l=a.useMemo(()=>({contain:o,setContain:i}),[o,i]),{getContainer:s}=Vf();if(!t.portalContainer&&s&&(r=s()),!r)return null;let c=t.children;return t.disableFocusManagement||(c=a.createElement(jl,{restoreFocus:!0,contain:(t.shouldContainFocus||o)&&!n},c)),c=a.createElement(Hf.Provider,{value:l},a.createElement(Bf,null,c)),jt.createPortal(c,r)}function Cs(t){let[e,r]=Lr(t.isOpen,t.defaultOpen||!1,t.onOpenChange);const n=a.useCallback(()=>{r(!0)},[r]),o=a.useCallback(()=>{r(!1)},[r]),i=a.useCallback(()=>{r(!e)},[r,e]);return{isOpen:e,setOpen:r,open:n,close:o,toggle:i}}const Zn=a.createContext(null),ci=a.createContext(null),zf=a.forwardRef(function(e,r){[e,r]=Oe(e,r,Zn);let n=a.useContext(eo),o=Cs(e),i=e.isOpen!=null||e.defaultOpen!=null||!n?o:n,l=Gc(r,i.isOpen)||e.isExiting||!1,s=xl(),{direction:c}=Je();if(s){let u=e.children;return typeof u=="function"&&(u=u({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),a.createElement(a.Fragment,null,u)}return i&&!i.isOpen&&!l?null:a.createElement(Wf,{...e,triggerRef:e.triggerRef,state:i,popoverRef:r,isExiting:l,dir:c})});function Wf({state:t,isExiting:e,UNSTABLE_portalContainer:r,clearContexts:n,...o}){var K,V;let i=a.useRef(null),l=a.useRef(null),s=a.useContext(ci),c=s&&o.trigger==="SubmenuTrigger",{popoverProps:u,underlayProps:d,arrowProps:f,placement:m,triggerAnchorPoint:p}=Mf({...o,offset:o.offset??8,arrowRef:i,groupRef:c?s:l},t),g=o.popoverRef,y=Uc(g,!!m)||o.isEntering||!1,v=Fe({...o,defaultClassName:"react-aria-Popover",values:{trigger:o.trigger||null,placement:m,isEntering:y,isExiting:e}}),E=!o.isNonModal||o.trigger==="SubmenuTrigger",[$,P]=a.useState(!1);J(()=>{g.current&&P(E&&!g.current.querySelector("[role=dialog]"))},[g,E]),a.useEffect(()=>{$&&(o.trigger!=="SubmenuTrigger"||Kt()!=="pointer")&&g.current&&!Nt(g.current)&&ct(g.current)},[$,g,o.trigger]);let k=a.useMemo(()=>{let z=v.children;if(n)for(let B of n)z=a.createElement(B.Provider,{value:null},z);return z},[v.children,n]),[L,j]=a.useState(null),T=a.useCallback(()=>{o.triggerRef.current&&j(o.triggerRef.current.getBoundingClientRect().width+"px")},[o.triggerRef]);J(T,[T]),hr({ref:(K=v.style)!=null&&K["--trigger-width"]?void 0:o.triggerRef,onResize:T});let R={...u.style,"--trigger-anchor-point":p?`${p.x}px ${p.y}px`:void 0,...v.style,"--trigger-width":((V=v.style)==null?void 0:V["--trigger-width"])||L},I=a.createElement(Ce.div,{...X(ue(o,{global:!0}),u),...v,role:$?"dialog":void 0,tabIndex:$?-1:void 0,"aria-label":o["aria-label"],"aria-labelledby":o["aria-labelledby"],ref:g,slot:o.slot||void 0,style:R,dir:o.dir,"data-trigger":o.trigger,"data-placement":m,"data-entering":y||void 0,"data-exiting":e||void 0},!o.isNonModal&&a.createElement(si,{onDismiss:t.close}),a.createElement(Qd.Provider,{value:{...f,placement:m,ref:i}},k),a.createElement(si,{onDismiss:t.close}));return c?a.createElement(ai,{...o,shouldContainFocus:$,isExiting:e,portalContainer:r??(s==null?void 0:s.current)??void 0},I):a.createElement(ai,{...o,shouldContainFocus:$,isExiting:e,portalContainer:r},!o.isNonModal&&t.isOpen&&a.createElement("div",{"data-testid":"underlay",...d,style:{position:"fixed",inset:0}}),a.createElement("div",{ref:l,style:{display:"contents"}},a.createElement(ci.Provider,{value:l},I)))}class bt{constructor(e){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=e}get childNodes(){throw new Error("childNodes is not supported")}clone(){let e=new this.constructor(this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e["aria-label"]=this["aria-label"],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e.colSpan=this.colSpan,e.colIndex=this.colIndex,e}filter(e,r,n){let o=this.clone();return r.addDescendants(o,e),o}}class Ps extends bt{filter(e,r,n){let[o,i]=ks(e,r,this.firstChildKey,n),l=this.clone();return l.firstChildKey=o,l.lastChildKey=i,l}}const no=class no extends bt{};no.type="header";let ui=no;const oo=class oo extends bt{};oo.type="loader";let di=oo;const io=class io extends Ps{filter(e,r,n){if(n(this.textValue,this)){let o=this.clone();return r.addDescendants(o,e),o}return null}};io.type="item";let kn=io;const lo=class lo extends Ps{filter(e,r,n){let o=super.filter(e,r,n);if(o&&o.lastChildKey!==null){let i=e.getItem(o.lastChildKey);if(i&&i.type!=="header")return o}return null}};lo.type="section";let Tn=lo;class Uf{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;e;)yield e,e=e.nextKey!=null?this.keyMap.get(e.nextKey):void 0}getChildren(e){let r=this.keyMap;return{*[Symbol.iterator](){let n=r.get(e),o=(n==null?void 0:n.firstChildKey)!=null?r.get(n.firstChildKey):null;for(;o;)yield o,o=o.nextKey!=null?r.get(o.nextKey):void 0}}}getKeyBefore(e){let r=this.keyMap.get(e);if(!r)return null;if(r.prevKey!=null){for(r=this.keyMap.get(r.prevKey);r&&r.type!=="item"&&r.lastChildKey!=null;)r=this.keyMap.get(r.lastChildKey);return(r==null?void 0:r.key)??null}return r.parentKey}getKeyAfter(e){let r=this.keyMap.get(e);if(!r)return null;if(r.type!=="item"&&r.firstChildKey!=null)return r.firstChildKey;for(;r;){if(r.nextKey!=null)return r.nextKey;if(r.parentKey!=null)r=this.keyMap.get(r.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;(e==null?void 0:e.lastChildKey)!=null;)e=this.keyMap.get(e.lastChildKey);return(e==null?void 0:e.key)??null}getItem(e){return this.keyMap.get(e)??null}at(){throw new Error("Not implemented")}clone(){let e=this.constructor,r=new e;return r.keyMap=new Map(this.keyMap),r.firstKey=this.firstKey,r.lastKey=this.lastKey,r.itemCount=this.itemCount,r}addNode(e){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");e.type==="item"&&this.keyMap.get(e.key)==null&&this.itemCount++,this.keyMap.set(e.key,e)}addDescendants(e,r){this.addNode(e);let n=r.getChildren(e.key);for(let o of n)this.addDescendants(o,r)}removeNode(e){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");let r=this.keyMap.get(e);r!=null&&r.type==="item"&&this.itemCount--,this.keyMap.delete(e)}commit(e,r,n=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=e,this.lastKey=r,this.frozen=!n}filter(e){let r=new this.constructor,[n,o]=ks(this,r,this.firstKey,e);return r==null||r.commit(n,o),r}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}}function ks(t,e,r,n){if(r==null)return[null,null];let o=null,i=null,l=t.getItem(r);for(;l!=null;){let s=l.filter(t,e,n);s!=null&&(s.nextKey=null,i&&(s.prevKey=i.key,i.nextKey=s.key),o==null&&(o=s),e.addNode(s),i=s),l=l.nextKey!=null?t.getItem(l.nextKey):null}if(i&&i.type==="separator"){let s=i.prevKey;e.removeNode(i.key),s!=null?(i=e.getItem(s),i.nextKey=null):i=null}return[(o==null?void 0:o.key)??null,(i==null?void 0:i.key)??null]}class Ts{constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=e}*[Symbol.iterator](){let e=this.firstChild;for(;e;)yield e,e=e.nextSibling}get firstChild(){return this._firstChild}set firstChild(e){this._firstChild=e,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(e){this._lastChild=e,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(e){this._previousSibling=e,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(e){this._nextSibling=e,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(e){this._parentNode=e,this.ownerDocument.markDirty(this)}get isConnected(){var e;return((e=this.parentNode)==null?void 0:e.isConnected)||!1}invalidateChildIndices(e){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||e.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=e,this.ownerDocument.markDirty(this))}updateChildIndices(){let e=this._minInvalidChildIndex;for(;e;)e.index=e.previousSibling?e.previousSibling.index+1:0,e=e.nextSibling;this._minInvalidChildIndex=null}appendChild(e){e.parentNode&&e.parentNode.removeChild(e),this.firstChild==null&&(this.firstChild=e),this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(e,r){if(r==null)return this.appendChild(e);e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=r,e.previousSibling=r.previousSibling,e.index=r.index-1,this.firstChild===r?this.firstChild=e:r.previousSibling&&(r.previousSibling.nextSibling=e),r.previousSibling=e,e.parentNode=r.parentNode,this.invalidateChildIndices(e),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(e){e.parentNode===this&&(this._minInvalidChildIndex===e&&(this._minInvalidChildIndex=null),e.nextSibling&&(this.invalidateChildIndices(e.nextSibling),e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.markDirty(e),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let e=this.previousSibling;for(;e&&e.isHidden;)e=e.previousSibling;return e}get nextVisibleSibling(){let e=this.nextSibling;for(;e&&e.isHidden;)e=e.nextSibling;return e}get firstVisibleChild(){let e=this.firstChild;for(;e&&e.isHidden;)e=e.nextSibling;return e}get lastVisibleChild(){let e=this.lastChild;for(;e&&e.isHidden;)e=e.previousSibling;return e}}class it extends Ts{constructor(e,r){super(r),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){var e;return this.parentNode instanceof it?this.parentNode.level+(((e=this.parentNode.node)==null?void 0:e.type)==="item"?1:0):0}getMutableNode(){return this.node==null?null:(this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node)}updateNode(){var n,o,i,l,s,c,u,d;let e=this.nextVisibleSibling,r=this.getMutableNode();if(r!=null&&(r.index=this.index,r.level=this.level,r.parentKey=this.parentNode instanceof it?((n=this.parentNode.node)==null?void 0:n.key)??null:null,r.prevKey=((i=(o=this.previousVisibleSibling)==null?void 0:o.node)==null?void 0:i.key)??null,r.nextKey=((l=e==null?void 0:e.node)==null?void 0:l.key)??null,r.hasChildNodes=!!this.firstChild,r.firstChildKey=((c=(s=this.firstVisibleChild)==null?void 0:s.node)==null?void 0:c.key)??null,r.lastChildKey=((d=(u=this.lastVisibleChild)==null?void 0:u.node)==null?void 0:d.key)??null,(r.colSpan!=null||r.colIndex!=null)&&e)){let f=(r.colIndex??r.index)+(r.colSpan??1);if(e.node!=null&&f!==e.node.colIndex){let m=e.getMutableNode();m.colIndex=f}}}setProps(e,r,n,o,i){let l,{value:s,textValue:c,id:u,...d}=e;if(this.node==null?(l=new n(u??`react-aria-${++this.ownerDocument.nodeId}`),this.node=l):l=this.getMutableNode(),d.ref=r,l.props=d,l.rendered=o,l.render=i,l.value=s,e["aria-label"]&&(l["aria-label"]=e["aria-label"]),l.textValue=c||(typeof d.children=="string"?d.children:"")||e["aria-label"]||"",u!=null&&u!==l.key)throw new Error("Cannot change the id of an item");d.colSpan!=null&&(l.colSpan=d.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let e=this;return{get display(){return e.isHidden?"none":""},set display(r){var o,i;let n=r==="none";if(e.isHidden!==n){(((o=e.parentNode)==null?void 0:o.firstVisibleChild)===e||((i=e.parentNode)==null?void 0:i.lastVisibleChild)===e)&&e.ownerDocument.markDirty(e.parentNode);let l=e.previousVisibleSibling,s=e.nextVisibleSibling;l&&e.ownerDocument.markDirty(l),s&&e.ownerDocument.markDirty(s),e.isHidden=n,e.ownerDocument.markDirty(e)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}}class Gf extends Ts{constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=e,this.nextCollection=e}get isConnected(){return!0}createElement(e){return new it(e,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(e){this.dirtyNodes.add(e)}addNode(e){if(e.isHidden||e.node==null)return;let r=this.getMutableCollection();if(!r.getItem(e.node.key))for(let n of e)this.addNode(n);r.addNode(e.node)}removeNode(e){for(let r of e)this.removeNode(r);e.node&&this.getMutableCollection().removeNode(e.node.key)}getCollection(){return this.inSubscription?this.collection:(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){var e,r,n,o;for(let i of this.dirtyNodes)i instanceof it&&(!i.isConnected||i.isHidden)?this.removeNode(i):i.updateChildIndices();for(let i of this.dirtyNodes)i instanceof it?(i.isConnected&&!i.isHidden&&(i.updateNode(),this.addNode(i)),i.node&&this.dirtyNodes.delete(i),i.isMutated=!1):this.dirtyNodes.delete(i);this.nextCollection&&(this.nextCollection.commit(((r=(e=this.firstVisibleChild)==null?void 0:e.node)==null?void 0:r.key)??null,((o=(n=this.lastVisibleChild)==null?void 0:n.node)==null?void 0:o.key)??null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null))}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0,this.isSSR||(this.collection=this.collection.clone());for(let e of this.subscriptions)e();this.inSubscription=!1}}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}}function Ms(t){let{children:e,items:r,idScope:n,addIdAndValue:o,dependencies:i=[]}=t,l=a.useMemo(()=>process.env.NODE_ENV!=="production"&&typeof e=="function"?e.toString():void 0,[e]),s=a.useMemo(()=>new WeakMap,[...i,l]);return a.useMemo(()=>{if(r&&typeof e=="function"){let c=[];for(let u of r){let d=qf(u)?u:null,f=d?s.get(d):null;if(!f){f=e(u);let m=f.props.id??(u==null?void 0:u.key)??(u==null?void 0:u.id);n!=null&&f.props.id==null&&m!=null&&(m=n+":"+m);let p=m??c.length;f=a.cloneElement(f,o?{key:p,id:m,value:u}:{key:p}),d&&s.set(d,f)}c.push(f)}return c}else if(typeof e!="function")return e},[e,r,s,n,o])}function qf(t){switch(typeof t){case"object":return t!=null;case"function":case"symbol":return!0;default:return!1}}var or={exports:{}},nn={};/**
8
13
  * @license React
9
14
  * use-sync-external-store-shim.production.js
10
15
  *
@@ -12,7 +17,7 @@
12
17
  *
13
18
  * This source code is licensed under the MIT license found in the
14
19
  * LICENSE file in the root directory of this source tree.
15
- */var tn;function Gi(){if(tn)return jt;tn=1;var e=l;function t(f,h){return f===h&&(f!==0||1/f===1/h)||f!==f&&h!==h}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,o=e.useEffect,a=e.useLayoutEffect,s=e.useDebugValue;function i(f,h){var g=h(),$=n({inst:{value:g,getSnapshot:h}}),v=$[0].inst,w=$[1];return a(function(){v.value=g,v.getSnapshot=h,c(v)&&w({inst:v})},[f,g,h]),o(function(){return c(v)&&w({inst:v}),f(function(){c(v)&&w({inst:v})})},[f]),s(g),g}function c(f){var h=f.getSnapshot;f=f.value;try{var g=h();return!r(f,g)}catch{return!0}}function p(f,h){return h()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:i;return jt.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,jt}var Ot={};/**
20
+ */var fi;function Yf(){if(fi)return nn;fi=1;var t=a;function e(f,m){return f===m&&(f!==0||1/f===1/m)||f!==f&&m!==m}var r=typeof Object.is=="function"?Object.is:e,n=t.useState,o=t.useEffect,i=t.useLayoutEffect,l=t.useDebugValue;function s(f,m){var p=m(),g=n({inst:{value:p,getSnapshot:m}}),y=g[0].inst,v=g[1];return i(function(){y.value=p,y.getSnapshot=m,c(y)&&v({inst:y})},[f,p,m]),o(function(){return c(y)&&v({inst:y}),f(function(){c(y)&&v({inst:y})})},[f]),l(p),p}function c(f){var m=f.getSnapshot;f=f.value;try{var p=m();return!r(f,p)}catch{return!0}}function u(f,m){return m()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:s;return nn.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:d,nn}var on={};/**
16
21
  * @license React
17
22
  * use-sync-external-store-shim.development.js
18
23
  *
@@ -20,5 +25,5 @@
20
25
  *
21
26
  * This source code is licensed under the MIT license found in the
22
27
  * LICENSE file in the root directory of this source tree.
23
- */var rn;function Ki(){return rn||(rn=1,process.env.NODE_ENV!=="production"&&(function(){function e(g,$){return g===$&&(g!==0||1/g===1/$)||g!==g&&$!==$}function t(g,$){m||o.startTransition===void 0||(m=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var v=$();if(!f){var w=$();a(v,w)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}w=s({inst:{value:v,getSnapshot:$}});var C=w[0].inst,N=w[1];return c(function(){C.value=v,C.getSnapshot=$,r(C)&&N({inst:C})},[g,v,$]),i(function(){return r(C)&&N({inst:C}),g(function(){r(C)&&N({inst:C})})},[g]),p(v),v}function r(g){var $=g.getSnapshot;g=g.value;try{var v=$();return!a(g,v)}catch{return!0}}function n(g,$){return $()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=l,a=typeof Object.is=="function"?Object.is:e,s=o.useState,i=o.useEffect,c=o.useLayoutEffect,p=o.useDebugValue,m=!1,f=!1,h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:t;Ot.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:h,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Ot}var nn;function zi(){return nn||(nn=1,process.env.NODE_ENV==="production"?it.exports=Gi():it.exports=Ki()),it.exports}var Hi=zi();const Ui=l.createContext(!1);function Wi(e,t,r){let n=or(),o=l.useRef(n);o.current=n;let a=l.useCallback(()=>o.current?r():t(),[t,r]);return Hi.useSyncExternalStore(e,a)}typeof l.useSyncExternalStore=="function"&&l.useSyncExternalStore;const on=l.createContext(null);function qi(e){var r;return r=class extends Ye{},r.type=e,r}function Yi(e,t,r,n,o,a){typeof e=="string"&&(e=qi(e));let s=l.useCallback(c=>{c==null||c.setProps(t,r,e,n,a)},[t,r,n,a,e]),i=l.useContext(on);if(i){let c=i.ownerDocument.nodesByProps.get(t);return c||(c=i.ownerDocument.createElement(e.type),c.setProps(t,r,e,n,a),i.appendChild(c),i.ownerDocument.updateCollection(),i.ownerDocument.nodesByProps.set(t,c)),o?l.createElement(on.Provider,{value:c},o):null}return l.createElement(e.type,{ref:s},o)}function Xi(e,t){let r=({node:o})=>t(o.props,o.props.ref,o),n=l.forwardRef((o,a)=>{let s=l.useContext(Yt);if(!l.useContext(Ui)){if(t.length>=3)throw new Error(t.name+" cannot be rendered outside a collection.");return t(o,a)}return Yi(e,o,a,"children"in o?o.children:null,null,c=>l.createElement(Yt.Provider,{value:s},l.createElement(r,{node:c})))});return n.displayName=t.name,n}function Zi(e){let t=ne(e,{labelable:!0}),r;return e.orientation==="vertical"&&(r="vertical"),e.elementType!=="hr"?{separatorProps:{...t,role:"separator","aria-orientation":r}}:{separatorProps:t}}const co=l.createContext({}),gr=class gr extends Ye{filter(t,r){let n=r.getItem(this.prevKey);if(n&&n.type!=="separator"){let o=this.clone();return r.addDescendants(o,t),o}return null}};gr.type="separator";let Jt=gr;const Ji=Xi(Jt,function(t,r){[t,r]=We(t,r,co);let{elementType:n,orientation:o,style:a,className:s,slot:i,...c}=t,p=n||"hr";p==="hr"&&o==="vertical"&&(p="div");let m=je[p],{separatorProps:f}=Zi({...c,elementType:n,orientation:o}),h=ne(t,{global:!0});return l.createElement(m,{render:t.render,...K(h,f),style:a,className:s??"react-aria-Separator",ref:r,slot:i||void 0})}),Qi=l.createContext({}),el=l.createContext(null),tl=l.createContext(null);function rl(e,t,r){let{validationBehavior:n,focus:o}=e;ce(()=>{if(n==="native"&&(r!=null&&r.current)&&!r.current.disabled){let p=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";r.current.setCustomValidity(p),r.current.hasAttribute("title")||(r.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(ol(r.current))}});let a=l.useRef(!1),s=xe(()=>{a.current||t.resetValidation()}),i=xe(p=>{var f,h;t.displayValidation.isInvalid||t.commitValidation();let m=(f=r==null?void 0:r.current)==null?void 0:f.form;!p.defaultPrevented&&r&&m&&al(m)===r.current&&(o?o():(h=r.current)==null||h.focus(),pi("keyboard")),p.preventDefault()}),c=xe(()=>{t.commitValidation()});l.useEffect(()=>{let p=r==null?void 0:r.current;if(!p)return;let m=p.form,f=m==null?void 0:m.reset;return m&&(m.reset=()=>{a.current=!window.event||window.event.type==="message"&&I(window.event)instanceof MessagePort,f==null||f.call(m),a.current=!1}),p.addEventListener("invalid",i),p.addEventListener("change",c),m==null||m.addEventListener("reset",s),()=>{p.removeEventListener("invalid",i),p.removeEventListener("change",c),m==null||m.removeEventListener("reset",s),m&&(m.reset=f)}},[r,n])}function nl(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function ol(e){return{isInvalid:!e.validity.valid,validationDetails:nl(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function al(e){var t;for(let r=0;r<e.elements.length;r++){let n=e.elements[r];if(((t=n.validity)==null?void 0:t.valid)===!1)return n}return null}function sl(e,t){let{elementType:r="a",onPress:n,onPressStart:o,onPressEnd:a,onClick:s,isDisabled:i,...c}=e,p={};r!=="a"&&(p={role:"link",tabIndex:i?void 0:0});let{focusableProps:m}=dr(e,t),{pressProps:f,isPressed:h}=vt({onPress:n,onPressStart:o,onPressEnd:a,onClick:s,isDisabled:i,ref:t}),g=ne(c,{labelable:!0}),$=K(m,f),v=$n(),w=Jo(e);return{isPressed:h,linkProps:K(g,w,{...$,...p,"aria-disabled":i||void 0,"aria-current":e["aria-current"],onClick:C=>{var N;(N=f.onClick)==null||N.call(f,C),Qo(C,v,e.href,e.routerOptions)}})}}const il=l.createContext(null),ll=l.forwardRef(function(t,r){[t,r]=We(t,r,il);let n=t.href&&!t.isDisabled?"a":"span",{linkProps:o,isPressed:a}=sl({...t,elementType:n},r),s=je[n],{hoverProps:i,isHovered:c}=pr(t),{focusProps:p,isFocused:m,isFocusVisible:f}=fr(),h=Ue({...t,defaultClassName:"react-aria-Link",values:{isCurrent:!!t["aria-current"],isDisabled:t.isDisabled||!1,isPressed:a,isHovered:c,isFocused:m,isFocusVisible:f}}),g=ne(t,{global:!0});return delete g.onClick,l.createElement(s,{ref:r,slot:t.slot||void 0,...K(g,h,o,i,p),"data-focused":m||void 0,"data-hovered":c||void 0,"data-pressed":a||void 0,"data-focus-visible":f||void 0,"data-current":!!t["aria-current"]||void 0,"data-disabled":t.isDisabled||void 0},h.children)}),uo=l.createContext({}),an=({children:e,className:t,...r})=>{const n=l.useMemo(()=>Os(),[]);return u.jsx(uo,{value:{slots:n},children:u.jsx(ll,{...r,className:qe(t,n==null?void 0:n.base()),children:o=>u.jsx(u.Fragment,{children:typeof e=="function"?e(o):e})})})},cl=({children:e,className:t,...r})=>{const{slots:n}=l.useContext(uo);return u.jsx(W.span,{className:X(n==null?void 0:n.icon,t),"data-default-icon":ji(!e),"data-slot":"link-icon",...r,children:e??u.jsx(Oi,{"data-slot":"link-default-icon"})})},dl=Object.assign(an,{Root:an,Icon:cl});function ul(e={}){let{isReadOnly:t}=e,[r,n]=Ri(e.isSelected,e.defaultSelected||!1,e.onChange),[o]=l.useState(r);function a(i){t||n(i)}function s(){t||n(!r)}return{isSelected:r,defaultSelected:e.defaultSelected??o,setSelected:a,toggle:s}}const fl=l.createContext({}),pl="__button_group_child",sn=({children:e,className:t,fullWidth:r,isDisabled:n,isIconOnly:o,size:a,slot:s,style:i,variant:c,[pl]:p,...m})=>{const f=l.useContext(fl),h=p===!0,g=a??(h?f==null?void 0:f.size:void 0),$=c??(h?f==null?void 0:f.variant:void 0),v=n??(h?f==null?void 0:f.isDisabled:void 0),w=r??(h?f==null?void 0:f.fullWidth:void 0),C=Ns({fullWidth:w,isIconOnly:o,size:g,variant:$});return u.jsx(Li,{className:qe(t,C),"data-slot":"button",isDisabled:v,slot:s,style:i,...m,children:N=>typeof e=="function"?e(N):e})},bl=Object.assign(sn,{Root:sn}),Oe=l.createContext({}),ln=({children:e,className:t,variant:r="default",...n})=>{const o=l.useMemo(()=>Is({variant:r}),[r]),a=u.jsx(W.div,{className:o.base({className:t}),"data-slot":"card",...n,children:e});return u.jsx(Oe,{value:{slots:o},children:r==="transparent"?a:u.jsx(io,{value:{variant:r},children:a})})},ml=({className:e,...t})=>{const{slots:r}=l.useContext(Oe);return u.jsx(W.div,{className:X(r==null?void 0:r.header,e),"data-slot":"card-header",...t})},hl=({children:e,className:t,...r})=>{const{slots:n}=l.useContext(Oe);return u.jsx(W.h3,{className:X(n==null?void 0:n.title,t),"data-slot":"card-title",...r,children:e})},vl=({children:e,className:t,...r})=>{const{slots:n}=l.useContext(Oe);return u.jsx(W.p,{className:X(n==null?void 0:n.description,t),"data-slot":"card-description",...r,children:e})},gl=({className:e,...t})=>{const{slots:r}=l.useContext(Oe);return u.jsx(W.div,{className:X(r==null?void 0:r.content,e),"data-slot":"card-content",...t})},yl=({className:e,...t})=>{const{slots:r}=l.useContext(Oe);return u.jsx(W.div,{className:X(r==null?void 0:r.footer,e),"data-slot":"card-footer",...t})},Be=Object.assign(ln,{Root:ln,Header:ml,Title:hl,Description:vl,Content:gl,Footer:yl}),xl=new WeakMap;function $l(e=!0){let[t,r]=l.useState(e),n=l.useRef(!1),o=l.useCallback(a=>{n.current=!0,r(!!a)},[]);return ce(()=>{n.current||r(!1)},[]),[o,t]}function cn(e=!0){let t=Ne(),[r,n]=$l(e);return{id:n?t:void 0,ref:r}}const fo={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},po={...fo,customError:!0,valid:!1},ke={isInvalid:!1,validationDetails:fo,validationErrors:[]},wl=l.createContext({}),yt="__reactAriaFormValidationState";function bo(e){if(e[yt]){let{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:o,commitValidation:a}=e[yt];return{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:o,commitValidation:a}}return El(e)}function El(e){let{isInvalid:t,validationState:r,name:n,value:o,builtinValidation:a,validate:s,validationBehavior:i="aria"}=e;r&&(t||(t=r==="invalid"));let c=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:po}:null,p=l.useMemo(()=>{if(!s||o==null)return null;let A=kl(s,o);return dn(A)},[s,o]);a!=null&&a.validationDetails.valid&&(a=void 0);let m=l.useContext(wl),f=l.useMemo(()=>n?Array.isArray(n)?n.flatMap(A=>Qt(m[A])):Qt(m[n]):[],[m,n]),[h,g]=l.useState(m),[$,v]=l.useState(!1);m!==h&&(g(m),v(!1));let w=l.useMemo(()=>dn($?[]:f),[$,f]),C=l.useRef(ke),[N,j]=l.useState(ke),F=l.useRef(ke),R=()=>{if(!Z)return;H(!1);let A=p||a||C.current;Vt(A,F.current)||(F.current=A,j(A))},[Z,H]=l.useState(!1);return l.useEffect(R),{realtimeValidation:c||w||p||a||ke,displayValidation:i==="native"?c||w||N:c||w||p||a||N,updateValidation(A){i==="aria"&&!Vt(N,A)?j(A):C.current=A},resetValidation(){let A=ke;Vt(A,F.current)||(F.current=A,j(A)),i==="native"&&H(!1),v(!0)},commitValidation(){i==="native"&&H(!0),v(!0)}}}function Qt(e){return e?Array.isArray(e)?e:[e]:[]}function kl(e,t){if(typeof e=="function"){let r=e(t);if(r&&typeof r!="boolean")return Qt(r)}return[]}function dn(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:po}:null}function Vt(e,t){return e===t?!0:!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((r,n)=>r===t.validationErrors[n])&&Object.entries(e.validationDetails).every(([r,n])=>t.validationDetails[r]===n)}function Cl(e,t,r){let{isDisabled:n=!1,isReadOnly:o=!1,value:a,name:s,form:i,children:c,isRequired:p,validationBehavior:m="aria","aria-label":f,"aria-labelledby":h,"aria-describedby":g,onPressStart:$,onPressEnd:v,onPressChange:w,onPress:C,onPressUp:N,onClick:j}=e,F=bo({...e,value:t.isSelected}),{isInvalid:R,validationErrors:Z,validationDetails:H}=F.displayValidation;rl(e,F,r);let M=k=>{k.stopPropagation(),t.setSelected(I(k).checked)},B=c!=null,A=f!=null||h!=null;!B&&!A&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:re,isPressed:ee}=vt({onPressStart:$,onPressEnd:v,onPressChange:w,onPress:C,onPressUp:N,onClick:j,isDisabled:n}),[de,d]=l.useState(!1),{pressProps:E}=vt({onPressStart(k){if(k.pointerType==="keyboard"||k.pointerType==="virtual"){k.continuePropagation();return}$==null||$(k),w==null||w(!0),d(!0)},onPressEnd(k){if(k.pointerType==="keyboard"||k.pointerType==="virtual"){k.continuePropagation();return}v==null||v(k),w==null||w(!1),d(!1)},onPressUp(k){if(k.pointerType==="keyboard"||k.pointerType==="virtual"){k.continuePropagation();return}N==null||N(k)},onClick:j,onPress(k){var G;if(k.pointerType==="keyboard"||k.pointerType==="virtual"){k.continuePropagation();return}C==null||C(k),t.toggle(),(G=r.current)==null||G.focus();let{[yt]:V}=e,{commitValidation:_}=V||F;_()},isDisabled:n||o}),{focusableProps:T}=dr(e,r),y=K(re,T),x=ne(e,{labelable:!0});ka(r,t.defaultSelected,t.setSelected);let b=cn(),L=cn();return{labelProps:K(E,{onClick:k=>k.preventDefault()}),inputProps:K(x,{checked:t.isSelected,"aria-required":p&&m==="aria"||void 0,required:p&&m==="native","aria-invalid":R||e.validationState==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":o||void 0,"aria-describedby":[b.id,L.id,g].filter(Boolean).join(" ")||void 0,onChange:M,disabled:n,...a==null?{}:{value:a},name:s,form:i,type:"checkbox",...y}),descriptionProps:b,errorMessageProps:L,isSelected:t.isSelected,isPressed:ee||de,isDisabled:n,isReadOnly:o,isInvalid:R||e.validationState==="invalid",validationErrors:Z,validationDetails:H}}function mo(e,t,r){let{labelProps:n,inputProps:o,descriptionProps:a,errorMessageProps:s,isSelected:i,isPressed:c,isDisabled:p,isReadOnly:m,isInvalid:f,validationErrors:h,validationDetails:g}=Cl(e,t,r),{isIndeterminate:$}=e;return l.useEffect(()=>{r.current&&(r.current.indeterminate=!!$)}),{labelProps:K(n,l.useMemo(()=>({onMouseDown:v=>v.preventDefault()}),[])),inputProps:o,descriptionProps:a,errorMessageProps:s,isSelected:i,isPressed:c,isDisabled:p,isReadOnly:m,isInvalid:f,validationErrors:h,validationDetails:g}}const Pl=typeof document<"u"?l.useInsertionEffect??l.useLayoutEffect:()=>{};function Sl(e,t,r){let[n,o]=l.useState(e||t),a=l.useRef(n),s=l.useRef(e!==void 0),i=e!==void 0;l.useEffect(()=>{let f=s.current;f!==i&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${f?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}.`),s.current=i},[i]);let c=i?e:n;Pl(()=>{a.current=c});let[,p]=l.useReducer(()=>({}),{}),m=l.useCallback((f,...h)=>{let g=typeof f=="function"?f(a.current):f;Object.is(a.current,g)||(a.current=g,o(g),p(),r==null||r(g,...h))},[r]);return[c,m]}function Tl(e={}){let{isReadOnly:t}=e,[r,n]=Sl(e.isSelected,e.defaultSelected||!1,e.onChange),[o]=l.useState(r);function a(i){t||n(i)}function s(){t||n(!r)}return{isSelected:r,defaultSelected:e.defaultSelected??o,setSelected:a,toggle:s}}function Ll(e,t,r){const n=Tl({isReadOnly:e.isReadOnly||t.isReadOnly,isSelected:t.isSelected(e.value),defaultSelected:t.defaultValue.includes(e.value),onChange(v){v?t.addValue(e.value):t.removeValue(e.value),e.onChange&&e.onChange(v)}});let{name:o,form:a,descriptionId:s,errorMessageId:i,validationBehavior:c}=xl.get(t);c=e.validationBehavior??c;let{realtimeValidation:p}=bo({...e,value:n.isSelected,name:void 0,validationBehavior:"aria"}),m=l.useRef(ke),f=()=>{t.setInvalid(e.value,p.isInvalid?p:m.current)};l.useEffect(f);let h=t.realtimeValidation.isInvalid?t.realtimeValidation:p,g=c==="native"?t.displayValidation:h,$=mo({...e,isReadOnly:e.isReadOnly||t.isReadOnly,isDisabled:e.isDisabled||t.isDisabled,name:e.name||o,form:e.form||a,isRequired:e.isRequired??t.isRequired,validationBehavior:c,[yt]:{realtimeValidation:h,displayValidation:g,resetValidation:t.resetValidation,commitValidation:t.commitValidation,updateValidation(v){m.current=v,f()}}},n,r);return{...$,inputProps:{...$.inputProps,"aria-describedby":[$.inputProps["aria-describedby"],t.isInvalid?i:null,s].filter(Boolean).join(" ")||void 0}}}const Ml=l.createContext(null),ho=l.createContext(null),vo=l.createContext(null),Nl=l.forwardRef(function(t,r){let{inputRef:n=null,...o}=t;[t,r]=We(o,r,Ml);let a=l.useContext(ho),[s,i]=Il(t,n),{descriptionProps:c,errorMessageProps:p,isSelected:m,isDisabled:f,isReadOnly:h,isInvalid:g,validationDetails:$,validationErrors:v}=s,w=Ue({...t,defaultClassName:"react-aria-CheckboxField",values:{isSelected:m,isIndeterminate:t.isIndeterminate||!1,isDisabled:f,isReadOnly:h,isInvalid:g,isRequired:t.isRequired||!1}}),C=ne(t,{global:!0});return delete C.id,delete C.onClick,l.createElement(je.div,{...K(C,w),ref:r,slot:t.slot||void 0,"data-selected":m||void 0,"data-indeterminate":t.isIndeterminate||void 0,"data-disabled":f||void 0,"data-readonly":h||void 0,"data-invalid":g||void 0,"data-required":t.isRequired||void 0},l.createElement(_s,{values:[[vo,{...s,inputRef:i,defaultClassName:"react-aria-CheckboxButton",isIndeterminate:t.isIndeterminate,isRequired:t.isRequired}],[Qi,{slots:{description:c,errorMessage:p}}],[el,a?null:{isInvalid:g,validationDetails:$,validationErrors:v}]]},w.children))});function Il(e,t){let{validationBehavior:r}=lr(tl)||{},n=e.validationBehavior??r??"native",o=l.useContext(ho),a=Pn(l.useMemo(()=>He(t,e.inputRef!==void 0?e.inputRef:null),[t,e.inputRef])),s={...Gs(e),children:typeof e.children=="function"?!0:e.children,value:e.value,validationBehavior:n};return[o?Ll(s,o,a):mo(s,ul(e),a),a]}const Rl=l.forwardRef(function(t,r){let{labelProps:n,inputProps:o,isSelected:a,isDisabled:s,isReadOnly:i,isPressed:c,isInvalid:p,inputRef:m,defaultClassName:f,isIndeterminate:h,isRequired:g}=l.useContext(vo),{isFocused:$,isFocusVisible:v,focusProps:w}=fr(),C=s||i,{hoverProps:N,isHovered:j}=pr({...t,isDisabled:C}),F=Ue({...t,defaultClassName:f,values:{isSelected:a,isIndeterminate:h||!1,isPressed:c,isHovered:j,isFocused:$,isFocusVisible:v,isDisabled:s,isReadOnly:i,isInvalid:p,isRequired:g||!1}}),R=ne(t,{global:!0});return delete R.id,delete R.onClick,l.createElement(je.label,{...K(R,n,N,F),ref:r,slot:t.slot||void 0,"data-selected":a||void 0,"data-indeterminate":h||void 0,"data-pressed":c||void 0,"data-hovered":j||void 0,"data-focused":$||void 0,"data-focus-visible":v||void 0,"data-disabled":s||void 0,"data-readonly":i||void 0,"data-invalid":p||void 0,"data-required":g||void 0},l.createElement(Fi,{elementType:"span"},l.createElement("input",{...K(o,w),ref:m})),F.children)}),jl=l.createContext({}),Et=l.createContext({}),er=({children:e,className:t,variant:r,...n})=>{const o=l.useContext(jl),a=r??o.variant,s=l.useMemo(()=>Rs({variant:a}),[a]);return u.jsx(Nl,{"data-slot":"checkbox",...n,className:qe(t,s.base()),children:i=>u.jsx(Et,{value:{slots:s,state:i},children:typeof e=="function"?e(i):e})})};er.displayName="HeroUI.Checkbox";const go=({children:e,className:t,...r})=>{const{slots:n}=l.useContext(Et);return u.jsx(Rl,{"data-slot":"checkbox-content",...r,className:qe(t,n==null?void 0:n.content()),children:e})};go.displayName="HeroUI.Checkbox.Content";const yo=({children:e,className:t,...r})=>{const{slots:n}=l.useContext(Et);return u.jsx(W.span,{className:X(n==null?void 0:n.control,t),"data-slot":"checkbox-control",...r,children:e})};yo.displayName="HeroUI.Checkbox.Control";const xo=({children:e,className:t,...r})=>{const{slots:n,state:o}=l.useContext(Et),a=o==null?void 0:o.isSelected,s=o==null?void 0:o.isIndeterminate,i=typeof e=="function"?e(o??{}):e||(s?u.jsx("svg",{"aria-hidden":"true","data-slot":"checkbox-default-indicator--indeterminate",fill:"none",role:"presentation",stroke:"currentColor",strokeLinecap:"round",strokeWidth:3,viewBox:"0 0 24 24",children:u.jsx("line",{x1:"21",x2:"3",y1:"12",y2:"12"})}):u.jsx("svg",{"aria-hidden":"true","data-slot":"checkbox-default-indicator--checkmark",fill:"none",role:"presentation",stroke:"currentColor",strokeDasharray:22,strokeDashoffset:a?44:66,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 17 18",children:u.jsx("polyline",{points:"1 9 7 14 15 4"})}));return u.jsx(W.span,{"aria-hidden":"true",className:X(n==null?void 0:n.indicator,t),"data-slot":"checkbox-indicator",...r,children:i})};xo.displayName="HeroUI.Checkbox.Indicator";const lt=Object.assign(er,{Root:er,Content:go,Control:yo,Indicator:xo}),$o=l.createContext({}),un=({children:e,className:t,color:r,size:n,variant:o,...a})=>{const s=l.useMemo(()=>js({color:r,size:n,variant:o}),[r,n,o]),i=l.useMemo(()=>typeof e=="string"||typeof e=="number"?u.jsx(wo,{children:e}):e,[e]);return u.jsx($o,{value:{slots:s},children:u.jsx(W.span,{...a,className:X(s.base,t),"data-slot":"chip",children:i})})},wo=({children:e,className:t,...r})=>{const{slots:n}=l.useContext($o);return u.jsx(W.span,{className:X(n==null?void 0:n.label,t),"data-slot":"chip-label",...r,children:e})},xt=Object.assign(un,{Root:un,Label:wo}),kt=l.createContext({}),tr=({children:e,className:t,color:r,size:n,...o})=>{const a=l.useMemo(()=>Vs({color:r,size:n}),[r,n]);return u.jsx(ii,{"data-slot":"progress-bar",...o,className:qe(t,a.base()),children:s=>u.jsx(kt,{value:{slots:a,state:s},children:typeof e=="function"?e(s):e})})};tr.displayName="HeroUI.ProgressBar";const Eo=({children:e,className:t,...r})=>{const{slots:n,state:o}=l.useContext(kt);return u.jsx(W.span,{className:X(n==null?void 0:n.output,t),"data-slot":"progress-bar-output",...r,children:e??(o==null?void 0:o.valueText)})};Eo.displayName="HeroUI.ProgressBar.Output";const ko=({children:e,className:t,...r})=>{const{slots:n}=l.useContext(kt);return u.jsx(W.div,{className:X(n==null?void 0:n.track,t),"data-slot":"progress-bar-track",...r,children:e})};ko.displayName="HeroUI.ProgressBar.Track";const Co=({className:e,style:t,...r})=>{const{slots:n,state:o}=l.useContext(kt);return u.jsx(W.div,{className:X(n==null?void 0:n.fill,e),"data-slot":"progress-bar-fill",style:{...t,width:o!=null&&o.isIndeterminate?void 0:`${(o==null?void 0:o.percentage)??0}%`},...r})};Co.displayName="HeroUI.ProgressBar.Fill";const ct=Object.assign(tr,{Root:tr,Output:Eo,Track:ko,Fill:Co}),fn=({className:e,orientation:t,variant:r,...n})=>{const o=lr(co),a=t??(o==null?void 0:o.orientation)??"horizontal";return u.jsx(Ji,{"data-orientation":a,"data-slot":"separator",orientation:a,className:Ds({orientation:a,variant:r,className:e}),...n})},Ol=Object.assign(fn,{Root:fn}),Xe=l.createContext({}),pn=({children:e,className:t,status:r,...n})=>{const o=l.useMemo(()=>Ms({status:r}),[r]);return u.jsx(Xe,{value:{slots:o,status:r},children:u.jsx(io,{value:{variant:"default"},children:u.jsx(W.div,{className:o==null?void 0:o.base({className:t}),"data-slot":"alert-root",...n,children:e})})})},Vl=({children:e,className:t,...r})=>{const{slots:n,status:o}=l.useContext(Xe),a=()=>{switch(o){case"accent":return u.jsx(Yr,{"data-slot":"alert-default-icon"});case"success":return u.jsx(Ai,{"data-slot":"alert-default-icon"});case"warning":return u.jsx(Vi,{"data-slot":"alert-default-icon"});case"danger":return u.jsx(Di,{"data-slot":"alert-default-icon"});default:return u.jsx(Yr,{"data-slot":"alert-default-icon"})}};return u.jsx(W.div,{className:X(n==null?void 0:n.indicator,t),"data-slot":"alert-indicator",...r,children:e??a()})},Dl=({children:e,className:t,...r})=>{const{slots:n}=l.useContext(Xe);return u.jsx(W.div,{className:X(n==null?void 0:n.content,t),"data-slot":"alert-content",...r,children:e})},Al=({children:e,className:t,...r})=>{const{slots:n}=l.useContext(Xe);return u.jsx(W.p,{className:X(n==null?void 0:n.title,t),"data-slot":"alert-title",...r,children:e})},_l=({children:e,className:t,...r})=>{const{slots:n}=l.useContext(Xe);return u.jsx(W.span,{className:X(n==null?void 0:n.description,t),"data-slot":"alert-description",...r,children:e})},De=Object.assign(pn,{Root:pn,Indicator:Vl,Content:Dl,Title:Al,Description:_l}),Fl={easy:"GREEN",moderate:"ORANGE",difficult:"RED"},Bl={easy:"Easy",moderate:"Moderate",difficult:"Difficult"};function Gl(){return u.jsxs("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"size-[1em]",children:[u.jsx("path",{d:"M12 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"}),u.jsx("path",{d:"m13.4 10.6 3.6-3.6"}),u.jsx("path",{d:"M3.3 16a9 9 0 1 1 17.4 0"})]})}function Po({difficulty:e,label:t,showIcon:r=!0,size:n="md",className:o}){const a=Te[Fl[e]];return u.jsxs(xt,{variant:"soft",size:n,className:z(o),style:{backgroundColor:Ke(a,.15),color:a},children:[r&&u.jsx(Gl,{}),u.jsx(xt.Label,{children:t??Bl[e]})]})}const bn=u.jsx("path",{d:"M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0ZM12 9v4M12 17h.01"}),mn=u.jsxs(u.Fragment,{children:[u.jsx("circle",{cx:"12",cy:"12",r:"9"}),u.jsx("path",{d:"M12 16v-4M12 8h.01"})]}),Kl=u.jsxs(u.Fragment,{children:[u.jsx("circle",{cx:"12",cy:"12",r:"9"}),u.jsx("path",{d:"m8.5 12 2.5 2.5 4.5-5"})]}),zl={note:mn,info:mn,tip:Kl,caution:bn,danger:bn};function Hl({type:e}){return u.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"size-5",children:zl[e]})}function Ul({type:e="caution",title:t,icon:r,children:n,className:o}){const a=t===void 0?ut[e]:t,s=gn(e);return u.jsxs(De,{className:z("border",o),style:{backgroundColor:Ke(s,.1),borderColor:s},children:[u.jsx(De.Indicator,{style:{color:s},children:r??u.jsx(Hl,{type:e})}),u.jsxs(De.Content,{children:[a!=null&&u.jsx(De.Title,{children:a}),u.jsx(De.Description,{children:n})]})]})}const Wl=4/3;function So(e){return Math.round(e*3/4)}function ql(e,t,r){const{x:n,y:o,width:a}=e;if(a<=0||n<0||o<0)return!1;const s=So(a);return n+a<=t&&o+s<=r}function Yl(e,t,r,n,o){if(n<=0||o<=0||t<=0||r<=0||!ql(e,t,r))return null;const a=n/e.width;return{position:"absolute",width:a*t,height:a*r,left:-e.x*a,top:-e.y*a,maxWidth:"none"}}function Xl({src:e}){const t=l.useRef(null);return l.useEffect(()=>{const r=t.current;if(!r)return;let n=!1,o=null,a=null;return import("online-3d-viewer").then(s=>{if(n)return;const i=new s.EmbeddedViewer(r,{projectionMode:s.ProjectionMode.Orthographic,backgroundColor:new s.RGBAColor(219,234,254,255),defaultColor:new s.RGBColor(30,64,175),onModelLoaded:()=>{const c=i.GetViewer();c.SetNavigationMode(s.NavigationMode.FreeOrbit),c.SetUpVector(s.Direction.Z,!1);const p=c.GetBoundingSphere(()=>!0);c.FitSphereToWindow(p,!1)}});a=i,i.LoadModelFromUrlList([e]),typeof ResizeObserver<"u"&&(o=new ResizeObserver(()=>{i.Resize()}),o.observe(r))}),()=>{n=!0,o==null||o.disconnect(),a==null||a.Destroy()}},[e]),u.jsx("div",{ref:t,className:"absolute inset-0 [&_canvas]:size-full!","aria-label":"Interactive 3D model",role:"img"})}function Zl({src:e,type:t,displayRegion:r}){const n=l.useRef(null),[o,a]=l.useState(null),[s,i]=l.useState(null),c=l.useCallback(()=>{const $=n.current;if(!$)return;const{width:v,height:w}=$.getBoundingClientRect();v>0&&w>0&&i({width:v,height:w})},[]);l.useEffect(()=>{if(!r)return;c();const $=n.current;if(!$)return;const v=new ResizeObserver(c);return v.observe($),()=>v.disconnect()},[r,c]);const p=r&&o&&s&&Yl(r,o.width,o.height,s.width,s.height),m=!!p,f="size-full object-cover object-center",h=$=>{const v=$.currentTarget;v.naturalWidth>0&&v.naturalHeight>0&&a({width:v.naturalWidth,height:v.naturalHeight})},g=$=>{const v=$.currentTarget;v.videoWidth>0&&v.videoHeight>0&&a({width:v.videoWidth,height:v.videoHeight})};return t==="model"?u.jsx(Xl,{src:e}):u.jsx("div",{ref:n,className:"absolute inset-0",children:t==="video"?u.jsx("video",{src:e,controls:!0,className:m?"absolute max-w-none":f,style:m&&p?p:void 0,onLoadedMetadata:r?g:void 0}):u.jsx("img",{src:e,className:m?"absolute max-w-none":f,style:m&&p?p:void 0,onLoad:r?h:void 0})})}function Jl(e){return e.type==="circle"}function Ql(e){return e.type==="rectangle"}function ec(e,t){const r=e.id??t,n=e.color??"GREY",o=Te[n];if(Jl(e))return u.jsx("div",{role:"img","aria-label":e.title,className:"pointer-events-none absolute rounded-full border-2",style:{left:`${e.x}%`,top:`${e.y}%`,width:`${e.radius*2}%`,aspectRatio:"1",transform:"translate(-50%, -50%)",borderColor:o,backgroundColor:Ke(o,.1)}},r);if(Ql(e)){const a=Math.min(e.x1,e.x2),s=Math.min(e.y1,e.y2),i=Math.abs(e.x2-e.x1),c=Math.abs(e.y2-e.y1);return u.jsx("div",{role:"img","aria-label":e.title,className:"pointer-events-none absolute border-2",style:{left:`${a}%`,top:`${s}%`,width:`${i}%`,height:`${c}%`,borderColor:o,backgroundColor:Ke(o,.1)}},r)}return u.jsx("span",{role:"img","aria-label":e.title,style:{left:`${e.x}%`,top:`${e.y}%`,backgroundColor:o,color:hn(o)},className:"absolute flex min-h-6 min-w-6 -translate-x-1/2 -translate-y-1/2 items-center justify-center rounded-full px-1.5 text-xs font-semibold shadow ring-2 ring-background",children:e.label},r)}function To({src:e,type:t="image",annotations:r=[],displayRegion:n,className:o}){return u.jsx("figure",{className:z("flex flex-col gap-2",o),children:u.jsxs("div",{className:"relative aspect-[4/3] overflow-hidden rounded-lg border border-default bg-default-soft",children:[u.jsx(Zl,{src:e,type:t,displayRegion:n}),r.map(ec)]})})}function tc({name:e,thumbnail:t,href:r,quantity:n,price:o,children:a,className:s}){return u.jsxs("li",{className:z("flex items-center gap-3 py-3 first:pt-0 last:pb-0",s),children:[t&&u.jsx("img",{src:t,alt:"",className:"size-12 shrink-0 rounded-md border border-default object-cover"}),u.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[r?u.jsx(dl,{href:r,className:"font-medium",children:e}):u.jsx("span",{className:"font-medium",children:e}),a!=null&&u.jsx("span",{className:"text-sm text-default-500",children:a})]}),n!=null&&u.jsxs("span",{className:"shrink-0 text-sm text-default-500",children:["×",n]}),o!=null&&u.jsx("span",{className:"shrink-0 text-sm font-medium",children:o})]})}function rc({title:e="What you need",children:t,className:r}){return u.jsxs(Be,{className:z("w-full",r),children:[e!=null&&u.jsx(Be.Header,{children:u.jsx(Be.Title,{children:e})}),u.jsx(Be.Content,{children:u.jsx("ul",{className:"flex flex-col divide-y divide-default",children:t})})]})}const nc=Object.assign(rc,{Item:tc});function oc(e,t,r){const[n,o]=l.useState(t),a=e!==void 0,s=a?e:n,i=l.useCallback(c=>{a||o(c),r==null||r(c)},[a,r]);return[s,i]}const Lo=3,ac="#3ABF84",sc="#34B07A",ic="#0B7A47",lc={caution:ut.caution,reminder:"Reminder",note:ut.note};function cc(){return u.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"size-5 shrink-0 text-danger",children:u.jsx("path",{d:"M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0ZM12 9v4M12 17h.01"})})}function dc(){return u.jsxs("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"size-5 shrink-0 text-default-500",children:[u.jsx("circle",{cx:"12",cy:"12",r:"9"}),u.jsx("path",{d:"M12 16v-4M12 8h.01"})]})}function uc(){return u.jsx("span",{"aria-hidden":"true",className:"mt-0.5 flex size-6 shrink-0 items-center justify-center rounded bg-default-100",children:u.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:"size-3.5 text-default-500",children:u.jsx("path",{d:"M16 12V4h1V3H7v1h1v8l-2 2v1h5.2c-.2.6-.3 1.2-.3 1.8 0 2.2 1.8 4 4 4s4-1.8 4-4c0-.6-.1-1.2-.3-1.8H18v-1l-2-2z"})})})}function fc(){return u.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"size-7",children:u.jsx("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4M17 8l-5-5-5 5M12 3v12"})})}function pc(){return u.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round",className:"size-3",children:u.jsx("path",{d:"M18 6 6 18M6 6l12 12"})})}function bc(e){return l.isValidElement(e)&&e.type===To}function mc(e){return l.isValidElement(e)&&e.type===Io}function hc(e){return l.isValidElement(e)?l.Children.toArray(e.props.children).filter(mc).length:0}function vc(e,t=!1){let r=null,n=null;for(const a of l.Children.toArray(e))l.isValidElement(a)&&(a.type===Mo&&(r=a.props.children),a.type===No&&(n=a));const o=l.Children.toArray(r).filter(bc);return hc(n),{figures:o.slice(0,Lo),bullets:n}}function Mo(e){return null}function No({children:e,className:t}){return u.jsx("ul",{className:z("flex flex-col gap-2",t),children:e})}function Io({variant:e="dot",color:t="GREY",label:r,hideLabel:n=!1,onMarkerPress:o,markerAriaLabel:a,children:s,className:i}){if(e==="dot")return u.jsxs("li",{className:z("flex gap-2.5",i),children:[o?u.jsx("button",{type:"button",onClick:o,"aria-label":a??"Change bullet style",className:"mt-1.5 size-2 shrink-0 cursor-pointer rounded-full outline-none transition hover:ring-2 hover:ring-accent focus-visible:ring-2 focus-visible:ring-accent",style:{backgroundColor:Te[t]}}):u.jsx("span",{"aria-hidden":"true",className:"mt-1.5 size-2 shrink-0 rounded-full",style:{backgroundColor:Te[t]}}),u.jsx("span",{className:"flex-1",children:s})]});const c=r??lc[e],p=e==="caution"?u.jsx(cc,{}):e==="reminder"?u.jsx(uc,{}):u.jsx(dc,{});return u.jsxs("li",{className:z("flex gap-2.5",e==="caution"&&"text-danger",i),children:[o?u.jsx("button",{type:"button",onClick:o,"aria-label":a??"Change bullet style",className:"shrink-0 cursor-pointer rounded outline-none transition hover:opacity-70 focus-visible:ring-2 focus-visible:ring-accent",children:p}):p,u.jsxs("span",{className:"flex-1",children:[!n&&u.jsxs(u.Fragment,{children:[u.jsxs("span",{className:"font-semibold",children:[c,":"]})," "]}),s]})]})}function gc(){return u.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round",className:"size-4",children:u.jsx("path",{d:"m5 12 5 5 9-11"})})}function yc({figures:e,bullets:t,mediaEditing:r}){const n=r!=null,[o,a]=l.useState(0),s=(r==null?void 0:r.activeIndex)??o,i=e[s]??e[0],c=f=>{var h;a(f),(h=r==null?void 0:r.onSelectImage)==null||h.call(r,f)},p=n&&((r==null?void 0:r.canAddImage)??!0)&&e.length>=1&&e.length<Lo,m=n?e.length>=1:e.length>1;return u.jsxs("div",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2",children:[u.jsx("div",{className:"min-w-0",children:i?n?u.jsxs("div",{className:"group relative",children:[l.cloneElement(i,{className:z("w-full",i.props.className)}),u.jsx("button",{type:"button",onClick:()=>{var f;return(f=r==null?void 0:r.onReplaceImage)==null?void 0:f.call(r,s)},className:"absolute inset-0 flex items-center justify-center rounded-lg text-sm font-semibold text-background opacity-0 transition hover:bg-foreground/40 hover:opacity-100 focus-visible:bg-foreground/40 focus-visible:opacity-100 focus-visible:outline-none",children:"Replace image"})]}):l.cloneElement(i,{className:z("w-full",i.props.className)}):n&&u.jsxs("button",{type:"button",onClick:()=>{var f;return(f=r==null?void 0:r.onAddImage)==null?void 0:f.call(r)},className:"flex aspect-[4/3] w-full flex-col items-center justify-center gap-2 rounded-lg border-2 border-dashed border-default bg-default-soft text-default-500 transition hover:border-accent hover:text-accent focus-visible:border-accent focus-visible:text-accent focus-visible:outline-none",children:[u.jsx(fc,{}),u.jsx("span",{className:"text-sm font-medium",children:"Add image"})]})}),u.jsxs("div",{className:"flex min-w-0 flex-col gap-4",children:[(m||p)&&u.jsxs("div",{className:"flex flex-wrap gap-2",role:"group","aria-label":"Step images",children:[e.map((f,h)=>n?u.jsxs("div",{className:"relative",children:[u.jsx("button",{type:"button",className:z("block overflow-hidden rounded-md border-2 transition-[box-shadow,opacity,border-color]",h===s?"border-accent shadow-md":"border-default opacity-80 hover:opacity-100"),onClick:()=>c(h),"aria-label":`Image ${h+1}`,"aria-pressed":h===s,children:u.jsx("img",{src:f.props.src,alt:"",className:"size-16 object-cover sm:size-20"})}),u.jsx("button",{type:"button",onClick:()=>{var g;return(g=r==null?void 0:r.onRemoveImage)==null?void 0:g.call(r,h)},"aria-label":`Remove image ${h+1}`,className:"absolute -right-1.5 -top-1.5 flex size-5 items-center justify-center rounded-full bg-foreground text-background shadow transition hover:bg-danger focus-visible:bg-danger focus-visible:outline-none",children:u.jsx(pc,{})})]},f.key??f.props.src??h):u.jsx("button",{type:"button",className:z("overflow-hidden rounded-md border-2 transition-[box-shadow,opacity,border-color]",h===s?"border-accent shadow-md":"border-default opacity-80 hover:opacity-100"),onMouseEnter:()=>c(h),onFocus:()=>c(h),"aria-label":`Image ${h+1}`,"aria-pressed":h===s,children:u.jsx("img",{src:f.props.src,alt:"",className:"size-16 object-cover sm:size-20"})},f.key??f.props.src??h)),p&&u.jsx("button",{type:"button",onClick:()=>{var f;return(f=r==null?void 0:r.onAddImage)==null?void 0:f.call(r)},"aria-label":"Add image",className:"flex size-16 items-center justify-center rounded-md border-2 border-dashed border-default text-default-500 transition hover:border-accent hover:text-accent focus-visible:border-accent focus-visible:text-accent focus-visible:outline-none sm:size-20",children:u.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"size-6",children:u.jsx("path",{d:"M12 5v14M5 12h14"})})})]}),t]})]})}function xc({number:e,title:t,isCompleted:r,defaultCompleted:n=!1,onCompletedChange:o,completable:a=!0,mediaEditing:s,children:i,className:c}){const[p,m]=oc(r,n,o),f=l.useId(),{figures:h,bullets:g}=vc(i,s!=null);return u.jsxs("section",{"aria-labelledby":t!=null?f:void 0,"data-completed":p||void 0,className:z("flex flex-col gap-4 transition-opacity",p&&"opacity-60",c),children:[u.jsxs("header",{className:"flex flex-col gap-3 sm:flex-row sm:items-center",children:[u.jsxs("div",{className:"flex min-w-0 items-center gap-3 sm:flex-1",children:[e!=null&&u.jsx("span",{className:z("flex size-8 shrink-0 items-center justify-center rounded-md text-sm font-bold tabular-nums",p?"bg-success text-success-foreground":"bg-foreground text-background"),children:p?u.jsx(gc,{}):e}),t!=null&&u.jsx("h3",{id:f,className:"min-w-0 flex-1 text-lg font-semibold leading-tight",children:t})]}),a&&u.jsx(bl,{variant:p?"primary":"secondary",size:"lg",onPress:()=>m(!p),"aria-pressed":p,className:z("ml-auto shrink-0",p&&"guide-step-complete-button"),style:p?{"--guide-step-complete-bg":ac,"--guide-step-complete-bg-hover":sc,"--guide-step-complete-checkbox":ic}:void 0,children:u.jsx(lt,{isSelected:p,isReadOnly:!0,"aria-hidden":!0,className:"pointer-events-none gap-2 text-inherit",children:u.jsxs(lt.Content,{className:"flex items-center gap-2 whitespace-nowrap",children:[u.jsx(lt.Control,{children:u.jsx(lt.Indicator,{})}),"Mark complete"]})})})]}),u.jsx(yc,{figures:h,bullets:g,mediaEditing:s})]})}const $c=Object.assign(xc,{Media:Mo,Bullets:No,Bullet:Io});function wc(e){return l.isValidElement(e)}function Ec({children:e,showProgress:t=!0,onProgressChange:r,className:n}){const o=l.Children.toArray(e).filter(wc),a=o.length,[s,i]=l.useState(()=>Object.fromEntries(o.map((p,m)=>[p.props.number??m+1,!!(p.props.defaultCompleted??p.props.isCompleted)]))),c=Object.values(s).filter(Boolean).length;return l.useEffect(()=>{r==null||r({completed:c,total:a})},[c,a,r]),u.jsxs("div",{className:z("flex flex-col gap-8",n),children:[t&&a>0&&u.jsx("div",{className:"sticky top-2 mx-2 z-10",children:u.jsx(Be,{className:"w-full px-6 py-4",children:u.jsxs(ct,{value:c,maxValue:a,"aria-label":"Guide progress",className:"flex flex-col gap-1.5",children:[u.jsxs("div",{className:"flex items-center justify-between text-sm text-default-500",children:[u.jsx("span",{children:"Guide Progress"}),u.jsxs(ct.Output,{children:[c," / ",a," steps"]})]}),u.jsx(ct.Track,{className:"h-2 overflow-hidden rounded-full bg-default-soft",children:u.jsx(ct.Fill,{className:"h-full rounded-full bg-success transition-[width]"})})]})})}),u.jsx("ol",{className:"flex flex-col",children:o.map((p,m)=>{const f=p.props.number??m+1;return u.jsxs("li",{children:[l.cloneElement(p,{number:f,isCompleted:s[f]??!1,onCompletedChange:h=>{var g,$;i(v=>({...v,[f]:h})),($=(g=p.props).onCompletedChange)==null||$.call(g,h)}}),m<o.length-1&&u.jsx(Ol,{className:"my-8"})]},p.key??f)})})]})}function kc({title:e,difficulty:t,timeEstimate:r,meta:n,className:o}){const a=t!=null||r!=null;return u.jsxs("header",{className:z("flex flex-col gap-4 border-b border-default pb-6 md:[grid-area:header]",o),children:[u.jsxs("div",{className:"flex flex-col gap-1.5",children:[u.jsx("h1",{className:"text-3xl font-bold tracking-tight",children:e}),n!=null&&u.jsx("div",{className:"text-sm text-default-500",children:n})]}),a&&u.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[t!=null&&u.jsx(Po,{difficulty:t}),r!=null&&u.jsx(xt,{variant:"soft",color:"default",children:u.jsx(xt.Label,{children:r})})]})]})}function Cc({children:e,className:t}){return u.jsx("div",{className:z("min-w-0 md:[grid-area:intro]",t),children:u.jsx("div",{className:"max-w-prose text-default-700",children:e})})}function Pc({children:e,className:t}){return u.jsx("aside",{className:z("min-w-0 md:[grid-area:sidebar]",t),children:u.jsx("div",{className:"flex flex-col gap-4",children:e})})}function Sc({children:e,className:t}){return u.jsx("main",{className:z("min-w-0 w-full md:[grid-area:main]",t),children:e})}const Tc=Object.assign(function({children:t,className:r}){return u.jsx("div",{className:z("mx-auto grid w-full max-w-6xl grid-cols-1 gap-x-8 gap-y-8 md:grid-cols-[minmax(0,1fr)_20rem] md:[grid-template-areas:'header_header'_'intro_sidebar'_'main_main']",r),children:t})},{Header:kc,Intro:Cc,Sidebar:Pc,Content:Sc});exports.COLORS=Te;exports.Callout=Ul;exports.DISPLAY_REGION_ASPECT=Wl;exports.DifficultyBadge=Po;exports.GuideLayout=Tc;exports.GuideStep=$c;exports.GuideStepList=Ec;exports.MediaFigure=To;exports.ToolList=nc;exports.calloutTypeColor=vn;exports.calloutTypeHex=gn;exports.calloutTypeLabel=ut;exports.displayRegionHeight=So;exports.hexToRgba=Ke;exports.markerTextColor=hn;
28
+ */var pi;function Xf(){return pi||(pi=1,process.env.NODE_ENV!=="production"&&(function(){function t(p,g){return p===g&&(p!==0||1/p===1/g)||p!==p&&g!==g}function e(p,g){d||o.startTransition===void 0||(d=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var y=g();if(!f){var v=g();i(y,v)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}v=l({inst:{value:y,getSnapshot:g}});var E=v[0].inst,$=v[1];return c(function(){E.value=y,E.getSnapshot=g,r(E)&&$({inst:E})},[p,y,g]),s(function(){return r(E)&&$({inst:E}),p(function(){r(E)&&$({inst:E})})},[p]),u(y),y}function r(p){var g=p.getSnapshot;p=p.value;try{var y=g();return!i(p,y)}catch{return!0}}function n(p,g){return g()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=a,i=typeof Object.is=="function"?Object.is:t,l=o.useState,s=o.useEffect,c=o.useLayoutEffect,u=o.useDebugValue,d=!1,f=!1,m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:e;on.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:m,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),on}var hi;function Zf(){return hi||(hi=1,process.env.NODE_ENV==="production"?or.exports=Yf():or.exports=Xf()),or.exports}var Jf=Zf();const Rs=a.createContext(!1),Ot=a.createContext(null);function Qf(t){if(a.useContext(Ot))return t.content;let{collection:r,document:n}=np(t.createCollection);return a.createElement(a.Fragment,null,a.createElement(ud,null,a.createElement(Ot.Provider,{value:n},t.content)),a.createElement(ep,{render:t.children,collection:r}))}function ep({collection:t,render:e}){return e(t)}function tp(t,e,r){let n=dt(),o=a.useRef(n);o.current=n;let i=a.useCallback(()=>o.current?r():e(),[e,r]);return Jf.useSyncExternalStore(t,i)}const rp=typeof a.useSyncExternalStore=="function"?a.useSyncExternalStore:tp;function np(t){let[e]=a.useState(()=>new Gf((t==null?void 0:t())||new Uf)),r=a.useCallback(l=>e.subscribe(l),[e]),n=a.useCallback(()=>{let l=e.getCollection();return e.isSSR&&e.resetAfterSSR(),l},[e]),o=a.useCallback(()=>(e.isSSR=!0,e.getCollection()),[e]);return{collection:rp(r,n,o),document:e}}const Mn=a.createContext(null);function op(t){var r;return r=class extends bt{},r.type=t,r}function Ns(t,e,r,n,o,i){typeof t=="string"&&(t=op(t));let l=a.useCallback(c=>{c==null||c.setProps(e,r,t,n,i)},[e,r,n,i,t]),s=a.useContext(Mn);if(s){let c=s.ownerDocument.nodesByProps.get(e);return c||(c=s.ownerDocument.createElement(t.type),c.setProps(e,r,t,n,i),s.appendChild(c),s.ownerDocument.updateCollection(),s.ownerDocument.nodesByProps.set(e,c)),o?a.createElement(Mn.Provider,{value:c},o):null}return a.createElement(t.type,{ref:l},o)}function Ds(t,e){let r=({node:o})=>e(o.props,o.props.ref,o),n=a.forwardRef((o,i)=>{let l=a.useContext($n);if(!a.useContext(Rs)){if(e.length>=3)throw new Error(e.name+" cannot be rendered outside a collection.");return e(o,i)}return Ns(t,o,i,"children"in o?o.children:null,null,c=>a.createElement($n.Provider,{value:l},a.createElement(r,{node:c})))});return n.displayName=e.name,n}function Ls(t,e,r=Is){let n=({node:i})=>e(i.props,i.props.ref,i),o=a.forwardRef((i,l)=>{let s=r(i);return Ns(t,i,l,null,s,c=>a.createElement(n,{node:c}))??a.createElement(a.Fragment,null)});return o.displayName=e.name,o}function Is(t){return Ms({...t,addIdAndValue:!0})}const bi=a.createContext(null);function ip(t){let e=a.useContext(bi),r=((e==null?void 0:e.dependencies)||[]).concat(t.dependencies),n=t.idScope??(e==null?void 0:e.idScope),o=Is({...t,idScope:n,dependencies:r});return a.useContext(Ot)&&(o=a.createElement(lp,null,o)),e=a.useMemo(()=>({dependencies:r,idScope:n}),[n,...r]),a.createElement(bi.Provider,{value:e},o)}function lp({children:t}){let e=a.useContext(Ot),r=a.useMemo(()=>a.createElement(Ot.Provider,{value:null},a.createElement(Rs.Provider,{value:!0},t)),[t]);return dt()?a.createElement(Mn.Provider,{value:e},r):jt.createPortal(r,e)}const sp=a.createContext(null),ap={CollectionRoot({collection:t,renderDropIndicator:e}){return mi(t,null,e)},CollectionBranch({collection:t,parent:e,renderDropIndicator:r}){return mi(t,e,r)}};function mi(t,e,r){return Ms({items:e?t.getChildren(e.key):t,dependencies:[r],children(n){if(n.type==="content")return a.createElement(a.Fragment,null);let o=n.render(n);return!r||n.type!=="item"?o:a.createElement(a.Fragment,null,r({type:"item",key:n.key,dropPosition:"before"}),o,cp(t,n,r))}})}function cp(t,e,r){let n=e.key,o=t.getKeyAfter(n),i=o!=null?t.getItem(o):null;for(;i!=null&&i.type!=="item";)o=t.getKeyAfter(i.key),i=o!=null?t.getItem(o):null;let l=e.nextKey!=null?t.getItem(e.nextKey):null;for(;l!=null&&l.type!=="item";)l=l.nextKey!=null?t.getItem(l.nextKey):null;let s=[];if(l==null){let c=e;for(;(c==null?void 0:c.type)==="item"&&(!i||c.parentKey!==i.parentKey&&i.level<c.level);){let u=r({type:"item",key:c.key,dropPosition:"after"});a.isValidElement(u)&&s.push(a.cloneElement(u,{key:`${c.key}-after`})),c=c.parentKey!=null?t.getItem(c.parentKey):null}}return s}const Ar=a.createContext(ap);function up(t){return a.useMemo(()=>t!=null?new Set([t]):null,[t])}function Ks(t){let e=fp(Z(t));e!==t&&(e&&dp(e,t),t&&As(t,e))}function dp(t,e){t.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}function As(t,e){t.dispatchEvent(new FocusEvent("focus",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:e}))}function fp(t){let e=ne(t),r=e==null?void 0:e.getAttribute("aria-activedescendant");return r&&t.getElementById(r)||e}const gi=a.createContext(null),pp=a.createContext(null),hp=a.createContext({}),bp=a.createContext({}),mp=a.createContext(null);function gp(t){let e=a.useRef({});return a.createElement(mp.Provider,{value:e},t.children)}const yp=a.createContext({isSelected:!1});function vp(t){let e=ue(t,{labelable:!0}),r;return t.orientation==="vertical"&&(r="vertical"),t.elementType!=="hr"?{separatorProps:{...e,role:"separator","aria-orientation":r}}:{separatorProps:e}}const Jn=a.createContext({}),so=class so extends bt{filter(e,r){let n=r.getItem(this.prevKey);if(n&&n.type!=="separator"){let o=this.clone();return r.addDescendants(o,e),o}return null}};so.type="separator";let Rn=so;const $p=Ds(Rn,function(e,r){[e,r]=Oe(e,r,Jn);let{elementType:n,orientation:o,style:i,className:l,slot:s,...c}=e,u=n||"hr";u==="hr"&&o==="vertical"&&(u="div");let d=Ce[u],{separatorProps:f}=vp({...c,elementType:n,orientation:o}),m=ue(e,{global:!0});return a.createElement(d,{render:e.render,...X(m,f),style:i,className:l??"react-aria-Separator",ref:r,slot:s||void 0})}),Fs=a.createContext({});var Os={};Os={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var js={};js={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var Bs={};Bs={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var _s={};_s={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var Vs={};Vs={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var Hs={};Hs={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var zs={};zs={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var Ws={};Ws={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var Us={};Us={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var Gs={};Gs={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var qs={};qs={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var Ys={};Ys={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var Xs={};Xs={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var Zs={};Zs={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var Js={};Js={longPressMessage:"Premi a lungo o premi Alt + Freccia giù per aprire il menu"};var Qs={};Qs={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var ea={};ea={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var ta={};ta={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var ra={};ra={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var na={};na={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var oa={};oa={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var ia={};ia={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var la={};la={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var sa={};sa={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var aa={};aa={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var ca={};ca={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var ua={};ua={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var da={};da={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var fa={};fa={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var pa={};pa={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var ha={};ha={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var ba={};ba={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var ma={};ma={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var ga={};ga={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var ya={};ya={"ar-AE":Os,"bg-BG":js,"cs-CZ":Bs,"da-DK":_s,"de-DE":Vs,"el-GR":Hs,"en-US":zs,"es-ES":Ws,"et-EE":Us,"fi-FI":Gs,"fr-FR":qs,"he-IL":Ys,"hr-HR":Xs,"hu-HU":Zs,"it-IT":Js,"ja-JP":Qs,"ko-KR":ea,"lt-LT":ta,"lv-LV":ra,"nb-NO":na,"nl-NL":oa,"pl-PL":ia,"pt-BR":la,"pt-PT":sa,"ro-RO":aa,"ru-RU":ca,"sk-SK":ua,"sl-SI":da,"sr-SP":fa,"sv-SE":pa,"tr-TR":ha,"uk-UA":ba,"zh-CN":ma,"zh-TW":ga};const xp=500;function va(t){let{isDisabled:e,onLongPressStart:r,onLongPressEnd:n,onLongPress:o,threshold:i=xp,accessibilityDescription:l}=t;const s=a.useRef(void 0);let{addGlobalListener:c,removeGlobalListener:u}=Rr(),{pressProps:d}=Ze({isDisabled:e,onPressStart(m){if(m.continuePropagation(),(m.pointerType==="mouse"||m.pointerType==="touch")&&(r&&r({...m,type:"longpressstart"}),s.current=setTimeout(()=>{m.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),Z(m.target).activeElement!==m.target&&de(m.target),o&&o({...m,type:"longpress"}),s.current=void 0},i),m.pointerType==="touch")){let p=y=>{y.preventDefault()},g=fe(m.target);c(m.target,"contextmenu",p,{once:!0}),c(g,"pointerup",()=>{setTimeout(()=>{u(m.target,"contextmenu",p)},30)},{once:!0})}},onPressEnd(m){s.current&&clearTimeout(s.current),n&&(m.pointerType==="mouse"||m.pointerType==="touch")&&n({...m,type:"longpressend"})}}),f=Hc(o&&!e?l:void 0);return{longPressProps:X(d,f)}}function wp(t,e,r){let{type:n}=t,{isOpen:o}=e;a.useEffect(()=>{r&&r.current&&Ol.set(r.current,e.close)});let i;n==="menu"?i=!0:n==="listbox"&&(i="listbox");let l=ge();return{triggerProps:{"aria-haspopup":i,"aria-expanded":o,"aria-controls":o?l:void 0,onPress:e.toggle},overlayProps:{id:l}}}function Ep(t){return t&&t.__esModule?t.default:t}function Sp(t,e,r){let{type:n="menu",isDisabled:o,trigger:i="press"}=t,l=ge(),{triggerProps:s,overlayProps:c}=wp({type:n},e,r),u=p=>{if(!o&&!(i==="longPress"&&!p.altKey)&&r&&r.current)switch(p.key){case"Enter":case" ":if(i==="longPress"||p.isDefaultPrevented())return;case"ArrowDown":"continuePropagation"in p||p.stopPropagation(),p.preventDefault(),e.toggle("first");break;case"ArrowUp":"continuePropagation"in p||p.stopPropagation(),p.preventDefault(),e.toggle("last");break;default:"continuePropagation"in p&&p.continuePropagation()}},d=Es(Ep(ya),"@react-aria/menu"),{longPressProps:f}=va({isDisabled:o||i!=="longPress",accessibilityDescription:d.format("longPressMessage"),onLongPressStart(){e.close()},onLongPress(){e.open("first")}}),m={preventFocusOnPress:!0,onPressStart(p){p.pointerType!=="touch"&&p.pointerType!=="keyboard"&&!o&&(de(p.target),e.open(p.pointerType==="virtual"?"first":null))},onPress(p){p.pointerType==="touch"&&!o&&(de(p.target),e.toggle())}};return delete s.onPress,{menuTriggerProps:{...s,...i==="press"?m:f,id:l,onKeyDown:u},menuProps:{...c,"aria-labelledby":l,autoFocus:e.focusStrategy||!0,onClose:e.close}}}const $a=new WeakMap;function Nn(t){return sc()?t.altKey:t.ctrlKey}function dr(t,e){var o,i;let r=`[data-key="${CSS.escape(String(e))}"]`,n=(o=t.current)==null?void 0:o.dataset.collection;return n&&(r=`[data-collection="${CSS.escape(n)}"]${r}`),(i=t.current)==null?void 0:i.querySelector(r)}const xa=new WeakMap;function Cp(t){let e=ge();return xa.set(t,e),e}function Pp(t){return xa.get(t)}const kp=1e3;function Tp(t){let{keyboardDelegate:e,selectionManager:r,onTypeSelect:n}=t,o=a.useRef({search:"",timeout:void 0}).current,i=l=>{let s=Mp(l.key);if(!(!s||l.ctrlKey||l.metaKey||!H(l.currentTarget,A(l))||o.search.length===0&&s===" ")){if(s===" "&&o.search.trim().length>0&&(l.preventDefault(),"continuePropagation"in l||l.stopPropagation()),o.search+=s,e.getKeyForSearch!=null){let c=e.getKeyForSearch(o.search,r.focusedKey);c==null&&(c=e.getKeyForSearch(o.search)),c!=null&&(r.setFocusedKey(c),n&&n(c))}clearTimeout(o.timeout),o.timeout=setTimeout(()=>{o.search=""},kp)}};return{typeSelectProps:{onKeyDownCapture:e.getKeyForSearch?i:void 0}}}function Mp(t){return t.length===1||!/^[A-Z]/i.test(t)?t:""}function Rp(t){let{selectionManager:e,keyboardDelegate:r,ref:n,autoFocus:o=!1,shouldFocusWrap:i=!1,disallowEmptySelection:l=!1,disallowSelectAll:s=!1,escapeKeyBehavior:c="clearSelection",selectOnFocus:u=e.selectionBehavior==="replace",disallowTypeAhead:d=!1,shouldUseVirtualFocus:f,allowsTabNavigation:m=!1,scrollRef:p=n,linkBehavior:g="action"}=t,{direction:y}=Je(),v=_t(),E=h=>{var N,C,M,x,S,D,W,U,G,te,se,Y,pe,Te;if(h.altKey&&h.key==="Tab"&&h.preventDefault(),!n.current||!H(n.current,A(h)))return;const w=(_,ye)=>{if(_!=null){if(e.isLink(_)&&g==="selection"&&u&&!Nn(h)){jt.flushSync(()=>{e.setFocusedKey(_,ye)});let he=dr(n,_),We=e.getItemProps(_);he&&v.open(he,h,We.href,We.routerOptions);return}if(e.setFocusedKey(_,ye),e.isLink(_)&&g==="override")return;h.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(_):u&&!Nn(h)&&e.replaceSelection(_)}};switch(h.key){case"ArrowDown":if(r.getKeyBelow){let _=e.focusedKey!=null?(N=r.getKeyBelow)==null?void 0:N.call(r,e.focusedKey):(C=r.getFirstKey)==null?void 0:C.call(r);_==null&&i&&(_=(M=r.getFirstKey)==null?void 0:M.call(r,e.focusedKey)),_!=null&&(h.preventDefault(),w(_))}break;case"ArrowUp":if(r.getKeyAbove){let _=e.focusedKey!=null?(x=r.getKeyAbove)==null?void 0:x.call(r,e.focusedKey):(S=r.getLastKey)==null?void 0:S.call(r);_==null&&i&&(_=(D=r.getLastKey)==null?void 0:D.call(r,e.focusedKey)),_!=null&&(h.preventDefault(),w(_))}break;case"ArrowLeft":if(r.getKeyLeftOf){let _=e.focusedKey!=null?(W=r.getKeyLeftOf)==null?void 0:W.call(r,e.focusedKey):(U=r.getFirstKey)==null?void 0:U.call(r);_==null&&i&&(_=y==="rtl"?(G=r.getFirstKey)==null?void 0:G.call(r,e.focusedKey):(te=r.getLastKey)==null?void 0:te.call(r,e.focusedKey)),_!=null&&(h.preventDefault(),w(_,y==="rtl"?"first":"last"))}break;case"ArrowRight":if(r.getKeyRightOf){let _=e.focusedKey!=null?(se=r.getKeyRightOf)==null?void 0:se.call(r,e.focusedKey):(Y=r.getFirstKey)==null?void 0:Y.call(r);_==null&&i&&(_=y==="rtl"?(pe=r.getLastKey)==null?void 0:pe.call(r,e.focusedKey):(Te=r.getFirstKey)==null?void 0:Te.call(r,e.focusedKey)),_!=null&&(h.preventDefault(),w(_,y==="rtl"?"last":"first"))}break;case"Home":if(r.getFirstKey){if(e.focusedKey===null&&h.shiftKey)return;h.preventDefault();let _=r.getFirstKey(e.focusedKey,tt(h));e.setFocusedKey(_),_!=null&&(tt(h)&&h.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(_):u&&e.replaceSelection(_))}break;case"End":if(r.getLastKey){if(e.focusedKey===null&&h.shiftKey)return;h.preventDefault();let _=r.getLastKey(e.focusedKey,tt(h));e.setFocusedKey(_),_!=null&&(tt(h)&&h.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(_):u&&e.replaceSelection(_))}break;case"PageDown":if(r.getKeyPageBelow&&e.focusedKey!=null){let _=r.getKeyPageBelow(e.focusedKey);_!=null&&(h.preventDefault(),w(_))}break;case"PageUp":if(r.getKeyPageAbove&&e.focusedKey!=null){let _=r.getKeyPageAbove(e.focusedKey);_!=null&&(h.preventDefault(),w(_))}break;case"a":tt(h)&&e.selectionMode==="multiple"&&s!==!0&&(h.preventDefault(),e.selectAll());break;case"Escape":c==="clearSelection"&&!l&&e.selectedKeys.size!==0&&(h.stopPropagation(),h.preventDefault(),e.clearSelection());break;case"Tab":if(!m){if(h.shiftKey)n.current.focus();else{let _=Le(n.current,{tabbable:!0}),ye,he;do he=_.lastChild(),he&&(ye=he);while(he);let We=ne();ye&&(!Nt(ye)||We&&!el(We))&&de(ye)}break}}},$=a.useRef({top:0,left:0});Et(p,"scroll",()=>{var h,w;$.current={top:((h=p.current)==null?void 0:h.scrollTop)??0,left:((w=p.current)==null?void 0:w.scrollLeft)??0}});let P=h=>{var w,N;if(e.isFocused){H(h.currentTarget,A(h))||e.setFocused(!1);return}if(H(h.currentTarget,A(h))){if(e.setFocused(!0),e.focusedKey==null){let C=x=>{x!=null&&(e.setFocusedKey(x),u&&!e.isSelected(x)&&e.replaceSelection(x))},M=h.relatedTarget;M&&h.currentTarget.compareDocumentPosition(M)&Node.DOCUMENT_POSITION_FOLLOWING?C(e.lastSelectedKey??((w=r.getLastKey)==null?void 0:w.call(r))):C(e.firstSelectedKey??((N=r.getFirstKey)==null?void 0:N.call(r)))}else p.current&&(p.current.scrollTop=$.current.top,p.current.scrollLeft=$.current.left);if(e.focusedKey!=null&&p.current){let C=dr(n,e.focusedKey);C instanceof HTMLElement&&(!Nt(C)&&!f&&de(C),Kt()==="keyboard"&&wo(C,{containingElement:n.current}))}}},k=h=>{H(h.currentTarget,h.relatedTarget)||e.setFocused(!1)},L=a.useRef(!1);Et(n,ic,f?h=>{let{detail:w}=h;h.stopPropagation(),e.setFocused(!0),(w==null?void 0:w.focusStrategy)==="first"&&(L.current=!0)}:void 0),xo(()=>{var h;if(L.current){let w=((h=r.getFirstKey)==null?void 0:h.call(r))??null;if(w==null){let N=ne();Ks(n.current),As(N,null),e.collection.size>0&&(L.current=!1)}else e.setFocusedKey(w),L.current=!1}},[e.collection]),xo(()=>{e.collection.size>0&&(L.current=!1)},[e.focusedKey]),Et(n,oc,f?h=>{var w;h.stopPropagation(),e.setFocused(!1),(w=h.detail)!=null&&w.clearFocusKey&&e.setFocusedKey(null)}:void 0);const j=a.useRef(o),T=a.useRef(!1);a.useEffect(()=>{var h,w;if(j.current){let N=null;o==="first"&&(N=((h=r.getFirstKey)==null?void 0:h.call(r))??null),o==="last"&&(N=((w=r.getLastKey)==null?void 0:w.call(r))??null);let C=e.selectedKeys;if(C.size){for(let M of C)if(e.canSelectItem(M)){N=M;break}}e.setFocused(!0),e.setFocusedKey(N),N==null&&!f&&n.current&&ct(n.current),e.collection.size>0&&(j.current=!1,T.current=!0)}});let R=a.useRef(e.focusedKey),I=a.useRef(null);a.useEffect(()=>{if(e.isFocused&&e.focusedKey!=null&&(e.focusedKey!==R.current||T.current)&&p.current&&n.current){let h=Kt(),w=dr(n,e.focusedKey);if(!(w instanceof HTMLElement))return;(h==="keyboard"||T.current)&&(I.current&&cancelAnimationFrame(I.current),I.current=requestAnimationFrame(()=>{p.current&&(ar(p.current,w),h!=="virtual"&&wo(w,{containingElement:n.current}))}))}!f&&e.isFocused&&e.focusedKey==null&&R.current!=null&&n.current&&ct(n.current),R.current=e.focusedKey,T.current=!1}),a.useEffect(()=>()=>{I.current&&cancelAnimationFrame(I.current)},[]),Et(n,"react-aria-focus-scope-restore",h=>{h.preventDefault(),e.setFocused(!0)});let K={onKeyDown:E,onFocus:P,onBlur:k,onMouseDown(h){p.current===A(h)&&h.preventDefault()}},{typeSelectProps:V}=Tp({keyboardDelegate:r,selectionManager:e});d||(K=X(V,K));let z;f||(z=e.focusedKey==null?0:-1);let B=Cp(e.collection);return{collectionProps:X(K,{tabIndex:z,"data-collection":B})}}class yi{constructor(e){this.ref=e}getItemRect(e){let r=this.ref.current;if(!r)return null;let n=e!=null?dr(this.ref,e):null;if(!n)return null;let o=r.getBoundingClientRect(),i=n.getBoundingClientRect();return{x:i.left-o.left-r.clientLeft+r.scrollLeft,y:i.top-o.top-r.clientTop+r.scrollTop,width:i.width,height:i.height}}getContentSize(){let e=this.ref.current;return{width:(e==null?void 0:e.scrollWidth)??0,height:(e==null?void 0:e.scrollHeight)??0}}getVisibleRect(){let e=this.ref.current;return{x:(e==null?void 0:e.scrollLeft)??0,y:(e==null?void 0:e.scrollTop)??0,width:(e==null?void 0:e.clientWidth)??0,height:(e==null?void 0:e.clientHeight)??0}}}class Np{constructor(...e){if(e.length===1){let r=e[0];this.collection=r.collection,this.ref=r.ref,this.collator=r.collator,this.disabledKeys=r.disabledKeys||new Set,this.disabledBehavior=r.disabledBehavior||"all",this.orientation=r.orientation||"vertical",this.direction=r.direction,this.layout=r.layout||"stack",this.layoutDelegate=r.layoutDelegate||new yi(r.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 yi(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}isDisabled(e){var r,n;return this.disabledBehavior==="all"&&(((r=e.props)==null?void 0:r.isDisabled)||this.disabledKeys.has(e.key))&&((n=e.props)==null?void 0:n.disabledBehavior)!=="selection"}findNextNonDisabled(e,r,n=!1){let o=e;for(;o!=null;){let i=this.collection.getItem(o);if((i==null?void 0:i.type)==="item"&&(n||!this.isDisabled(i)))return o;o=r(o)}return null}getNextKey(e,r){let n=e;return n=this.collection.getKeyAfter(n),this.findNextNonDisabled(n,o=>this.collection.getKeyAfter(o),r==null?void 0:r.includeDisabled)}getPreviousKey(e,r){let n=e;return n=this.collection.getKeyBefore(n),this.findNextNonDisabled(n,o=>this.collection.getKeyBefore(o),r==null?void 0:r.includeDisabled)}findKey(e,r,n){let o=e,i=this.layoutDelegate.getItemRect(o);if(!i||o==null)return null;let l=i;do{if(o=r(o),o==null)break;i=this.layoutDelegate.getItemRect(o)}while(i&&n(l,i)&&o!=null);return o}isSameRow(e,r){return e.y===r.y||e.x!==r.x}isSameColumn(e,r){return e.x===r.x||e.y!==r.y}getKeyBelow(e,r){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,n=>this.getNextKey(n,r),this.isSameRow):this.getNextKey(e,r)}getKeyAbove(e,r){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,n=>this.getPreviousKey(n,r),this.isSameRow):this.getPreviousKey(e,r)}getNextColumn(e,r,n){return r?this.getPreviousKey(e,n):this.getNextKey(e,n)}getKeyRightOf(e,r){let n=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[n]?(e=this.layoutDelegate[n](e),this.findNextNonDisabled(e,o=>this.layoutDelegate[n](o),r==null?void 0:r.includeDisabled)):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="rtl",r):this.findKey(e,o=>this.getNextColumn(o,this.direction==="rtl",r),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="rtl",r):null}getKeyLeftOf(e,r){let n=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[n]?(e=this.layoutDelegate[n](e),this.findNextNonDisabled(e,o=>this.layoutDelegate[n](o),r==null?void 0:r.includeDisabled)):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="ltr",r):this.findKey(e,o=>this.getNextColumn(o,this.direction==="ltr",r),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="ltr",r):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,r=>this.collection.getKeyAfter(r))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,r=>this.collection.getKeyBefore(r))}getKeyPageAbove(e){let r=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;if(r&&!at(r))return this.getFirstKey();let o=e;if(this.orientation==="horizontal"){let i=Math.max(0,n.x+n.width-this.layoutDelegate.getVisibleRect().width);for(;n&&n.x>i&&o!=null;)o=this.getKeyAbove(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}else{let i=Math.max(0,n.y+n.height-this.layoutDelegate.getVisibleRect().height);for(;n&&n.y>i&&o!=null;)o=this.getKeyAbove(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}return o??this.getFirstKey()}getKeyPageBelow(e){let r=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;if(r&&!at(r))return this.getLastKey();let o=e;if(this.orientation==="horizontal"){let i=Math.min(this.layoutDelegate.getContentSize().width,n.x-n.width+this.layoutDelegate.getVisibleRect().width);for(;n&&n.x<i&&o!=null;)o=this.getKeyBelow(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}else{let i=Math.min(this.layoutDelegate.getContentSize().height,n.y-n.height+this.layoutDelegate.getVisibleRect().height);for(;n&&n.y<i&&o!=null;)o=this.getKeyBelow(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}return o??this.getLastKey()}getKeyForSearch(e,r){if(!this.collator)return null;let n=this.collection,o=r||this.getFirstKey();for(;o!=null;){let i=n.getItem(o);if(!i)return null;let l=i.textValue.slice(0,e.length);if(i.textValue&&this.collator.compare(l,e)===0)return o;o=this.getNextKey(o)}return null}}let ln=new Map;function Dp(t){let{locale:e}=Je(),r=e+(t?Object.entries(t).sort((o,i)=>o[0]<i[0]?-1:1).join():"");if(ln.has(r))return ln.get(r);let n=new Intl.Collator(e,t);return ln.set(r,n),n}function Lp(t){let{selectionManager:e,collection:r,disabledKeys:n,ref:o,keyboardDelegate:i,layoutDelegate:l,orientation:s}=t,c=Dp({usage:"search",sensitivity:"base"}),u=e.disabledBehavior,d=a.useMemo(()=>i||new Np({collection:r,disabledKeys:n,disabledBehavior:u,ref:o,collator:c,layoutDelegate:l,orientation:s}),[i,l,r,n,o,c,u,s]),{collectionProps:f}=Rp({...t,ref:o,selectionManager:e,keyboardDelegate:d});return{listProps:f}}function Ip(t,e,r){let{shouldFocusWrap:n=!0,onKeyDown:o,onKeyUp:i,...l}=t;!t["aria-label"]&&!t["aria-labelledby"]&&process.env.NODE_ENV!=="production"&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let s=ue(t,{labelable:!0}),{listProps:c}=Lp({...l,ref:r,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,shouldFocusWrap:n,linkBehavior:"override"});return $a.set(e,{onClose:t.onClose,onAction:t.onAction,shouldUseVirtualFocus:t.shouldUseVirtualFocus}),{menuProps:X(s,{onKeyDown:o,onKeyUp:i},{role:"menu",...c,onKeyDown:u=>{var d;(u.key!=="Escape"||t.shouldUseVirtualFocus)&&((d=c.onKeyDown)==null||d.call(c,u))}})}}function Kp(t){let{id:e,selectionManager:r,key:n,ref:o,shouldSelectOnPressUp:i,shouldUseVirtualFocus:l,focus:s,isDisabled:c,onAction:u,allowsDifferentPressOrigin:d,linkBehavior:f="action"}=t,m=_t();e=ge(e);let p=S=>{if(S.pointerType==="keyboard"&&Nn(S))r.toggleSelection(n);else{if(r.selectionMode==="none")return;if(r.isLink(n)){if(f==="selection"&&o.current){let D=r.getItemProps(n);m.open(o.current,S,D.href,D.routerOptions),r.setSelectedKeys(r.selectedKeys);return}else if(f==="override"||f==="none")return}r.selectionMode==="single"?r.isSelected(n)&&!r.disallowEmptySelection?r.toggleSelection(n):r.replaceSelection(n):S&&S.shiftKey?r.extendSelection(n):r.selectionBehavior==="toggle"||S&&(tt(S)||S.pointerType==="touch"||S.pointerType==="virtual")?r.toggleSelection(n):r.replaceSelection(n)}};a.useEffect(()=>{n===r.focusedKey&&r.isFocused&&(l?Ks(o.current):s?s():ne()!==o.current&&o.current&&ct(o.current))},[o,n,r.focusedKey,r.childFocusStrategy,r.isFocused,l]),c=c||r.isDisabled(n);let g={};!l&&!c?g={tabIndex:n===r.focusedKey?0:-1,onFocus(S){A(S)===o.current&&r.setFocusedKey(n)}}:c&&(g.onMouseDown=S=>{S.preventDefault()}),a.useEffect(()=>{c&&r.focusedKey===n&&r.setFocusedKey(null)},[r,c,n]);let y=r.isLink(n)&&f==="override",v=u&&t.UNSTABLE_itemBehavior==="action",E=r.isLink(n)&&f!=="selection"&&f!=="none",$=!c&&r.canSelectItem(n)&&!y&&!v,P=(u||E)&&!c,k=P&&(r.selectionBehavior==="replace"?!$:!$||r.isEmpty),L=P&&$&&r.selectionBehavior==="replace",j=k||L,T=a.useRef(null),R=j&&$,I=a.useRef(!1),K=a.useRef(!1),V=r.getItemProps(n),z=S=>{var D;u&&(u(),(D=o.current)==null||D.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))),E&&o.current&&m.open(o.current,S,V.href,V.routerOptions)},B={ref:o};if(i?(B.onPressStart=S=>{T.current=S.pointerType,I.current=R,S.pointerType==="keyboard"&&(!j||$i(S.key))&&p(S)},d?(B.onPressUp=k?void 0:S=>{S.pointerType==="mouse"&&$&&p(S)},B.onPress=k?z:S=>{S.pointerType!=="keyboard"&&S.pointerType!=="mouse"&&$&&p(S)}):B.onPress=S=>{if(k||L&&S.pointerType!=="mouse"){if(S.pointerType==="keyboard"&&!vi(S.key))return;z(S)}else S.pointerType!=="keyboard"&&$&&p(S)}):(B.onPressStart=S=>{T.current=S.pointerType,I.current=R,K.current=k,$&&(S.pointerType==="mouse"&&!k||S.pointerType==="keyboard"&&(!P||$i(S.key)))&&p(S)},B.onPress=S=>{(S.pointerType==="touch"||S.pointerType==="pen"||S.pointerType==="virtual"||S.pointerType==="keyboard"&&j&&vi(S.key)||S.pointerType==="mouse"&&K.current)&&(j?z(S):$&&p(S))}),g["data-collection"]=Pp(r.collection),g["data-key"]=n,B.preventFocusOnPress=l,l&&(B=X(B,{onPressStart(S){S.pointerType!=="touch"&&(r.setFocused(!0),r.setFocusedKey(n))},onPress(S){S.pointerType==="touch"&&(r.setFocused(!0),r.setFocusedKey(n))}})),V)for(let S of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])V[S]&&(B[S]=Vt(B[S],V[S]));let{pressProps:h,isPressed:w}=Ze(B),N=L?S=>{T.current==="mouse"&&(S.stopPropagation(),S.preventDefault(),z(S))}:void 0,{longPressProps:C}=va({isDisabled:!R,onLongPress(S){S.pointerType==="touch"&&(p(S),r.setSelectionBehavior("toggle"))}}),M=S=>{T.current==="touch"&&I.current&&S.preventDefault()},x=f!=="none"&&r.isLink(n)?S=>{Ie.isOpening||S.preventDefault()}:void 0;return{itemProps:X(g,$||k||l&&!c?h:{},R?C:{},{onDoubleClick:N,onDragStartCapture:M,onClick:x,id:e},l?{onMouseDown:S=>S.preventDefault()}:void 0),isPressed:w,isSelected:r.isSelected(n),isFocused:r.isFocused&&r.focusedKey===n,isDisabled:c,allowsSelection:$,hasAction:j}}function vi(t){return t==="Enter"}function $i(t){return t===" "}function Ap(t,e){return typeof e.getChildren=="function"?e.getChildren(t.key):t.childNodes}const xi=new WeakMap;function Fp(t){let e=xi.get(t);if(e!=null)return e;let r=0,n=o=>{for(let i of o)i.type==="section"?n(Ap(i,t)):i.type==="item"&&r++};return n(t),xi.set(t,r),r}function Op(t,e,r){let{id:n,key:o,closeOnSelect:i,shouldCloseOnSelect:l,isVirtualized:s,"aria-haspopup":c,onPressStart:u,onPressUp:d,onPress:f,onPressChange:m,onPressEnd:p,onClick:g,onHoverStart:y,onHoverChange:v,onHoverEnd:E,onKeyDown:$,onKeyUp:P,onFocus:k,onFocusChange:L,onBlur:j,selectionManager:T=e.selectionManager}=t,R=!!c,I=R&&t["aria-expanded"]==="true",K=t.isDisabled??T.isDisabled(o),V=t.isSelected??T.isSelected(o),z=$a.get(e),B=e.collection.getItem(o),h=t.onClose||z.onClose,w=_t(),N=()=>{var Q;if(!R&&((Q=B==null?void 0:B.props)!=null&&Q.onAction?B.props.onAction():t.onAction&&t.onAction(o),z.onAction)){let gt=z.onAction;gt(o)}},C="menuitem";R||(T.selectionMode==="single"?C="menuitemradio":T.selectionMode==="multiple"&&(C="menuitemcheckbox"));let M=zr(),x=zr(),S=zr(),D={id:n,"aria-disabled":K||void 0,role:C,"aria-label":t["aria-label"],"aria-labelledby":M,"aria-describedby":[t["aria-describedby"],x,S].filter(Boolean).join(" ")||void 0,"aria-controls":t["aria-controls"],"aria-haspopup":c,"aria-expanded":t["aria-expanded"]};if(T.selectionMode!=="none"&&!R&&(D["aria-checked"]=V),s){let Q=Number(B==null?void 0:B.index);D["aria-posinset"]=Number.isNaN(Q)?void 0:Q+1,D["aria-setsize"]=Fp(e.collection)}let W=a.useRef(!1),U=Q=>{m==null||m(Q),W.current=Q},G=a.useRef(null),te=Q=>{Q.pointerType!=="keyboard"&&(G.current={pointerType:Q.pointerType}),Q.pointerType==="mouse"&&(W.current||Q.target.click()),d==null||d(Q)},se=Q=>{var uo,fo;g==null||g(Q),N(),Wi(Q,w,B.props.href,B==null?void 0:B.props.routerOptions);let gt=((uo=G.current)==null?void 0:uo.pointerType)==="keyboard"?((fo=G.current)==null?void 0:fo.key)==="Enter"||T.selectionMode==="none"||T.isLink(o):T.selectionMode!=="multiple"||T.isLink(o);gt=l??i??gt,h&&!R&&gt&&h(),G.current=null},{itemProps:Y,isFocused:pe}=Kp({id:n,selectionManager:T,key:o,ref:r,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none",shouldUseVirtualFocus:z.shouldUseVirtualFocus}),{pressProps:Te,isPressed:_}=Ze({onPressStart:u,onPress:f,onPressUp:te,onPressChange:U,onPressEnd:p,isDisabled:K}),{hoverProps:ye}=Ut({isDisabled:K,onHoverStart(Q){!It()&&!(I&&c)&&(T.setFocused(!0),T.setFocusedKey(o)),y==null||y(Q)},onHoverChange:v,onHoverEnd:E}),{keyboardProps:he}=Il({onKeyDown:Q=>{if(Q.repeat){Q.continuePropagation();return}switch(Q.key){case" ":G.current={pointerType:"keyboard",key:" "},A(Q).click(),vn("keyboard");break;case"Enter":G.current={pointerType:"keyboard",key:"Enter"},A(Q).tagName!=="A"&&A(Q).click(),vn("keyboard");break;default:R||Q.continuePropagation(),$==null||$(Q);break}},onKeyUp:P}),{focusableProps:We}=Dr({onBlur:j,onFocus:k,onFocusChange:L},r),co=ue(B==null?void 0:B.props);delete co.id;let Xa=zi(B==null?void 0:B.props);return{menuItemProps:{...D,...X(co,Xa,R?{onFocus:Y.onFocus,"data-collection":Y["data-collection"],"data-key":Y["data-key"]}:Y,Te,ye,he,We,z.shouldUseVirtualFocus||R?{onMouseDown:Q=>Q.preventDefault()}:void 0,K?void 0:{onClick:se}),tabIndex:Y.tabIndex!=null&&I&&!z.shouldUseVirtualFocus?-1:Y.tabIndex},labelProps:{id:M},descriptionProps:{id:x},keyboardShortcutProps:{id:S},isFocused:pe,isFocusVisible:pe&&T.isFocused&&It()&&!I,isSelected:V,isPressed:_,isDisabled:K}}function jp(t){let{heading:e,"aria-label":r}=t,n=ge();return{itemProps:{role:"presentation"},headingProps:e?{id:n,role:"presentation"}:{},groupProps:{role:"group","aria-label":r,"aria-labelledby":e?n:void 0}}}const ir=2,Bp=50,_p=1e3,wi=Math.PI/12;function Vp(t){let{menuRef:e,submenuRef:r,isOpen:n,isDisabled:o}=t,i=a.useRef(void 0),l=a.useRef(void 0),s=a.useRef(0),c=a.useRef(void 0),u=a.useRef(void 0),d=a.useRef(void 0),f=a.useRef(2),[m,p]=a.useState(!1);hr({ref:n?r:void 0,onResize:()=>{r.current&&(l.current=r.current.getBoundingClientRect(),d.current=void 0)}});let y=()=>{p(!1),f.current=ir,i.current=void 0},v=Rd(),E=xe($=>{m&&$.preventDefault()});a.useEffect(()=>{m&&e.current?e.current.style.pointerEvents="none":e.current.style.pointerEvents=""},[e,m]),J(()=>{let $=r.current,P=e.current;if(o||!$||!n||v!=="pointer"||!P){y();return}l.current=$.getBoundingClientRect();let k=L=>{if(L.pointerType==="touch"||L.pointerType==="pen")return;let j=Date.now();if(j-s.current<Bp)return;clearTimeout(c.current),clearTimeout(u.current);let{clientX:T,clientY:R}=L;if(!i.current){i.current={x:T,y:R};return}if(!l.current)return;if(d.current||(d.current=T>l.current.right?"left":"right"),T<P.getBoundingClientRect().left||T>P.getBoundingClientRect().right||R<P.getBoundingClientRect().top||R>P.getBoundingClientRect().bottom){y();return}let I=i.current.x,K=i.current.y,V=d.current==="right"?l.current.left-I:I-l.current.right,z=Math.atan2(K-l.current.top,V)+wi,B=Math.atan2(K-l.current.bottom,V)-wi,h=Math.atan2(K-R,d.current==="left"?-(T-I):T-I),w=h<z&&h>B;f.current=w?Math.min(f.current+1,ir):Math.max(f.current-1,0),f.current>=ir?p(!0):p(!1),s.current=j,i.current={x:T,y:R},w&&(c.current=setTimeout(()=>{y(),u.current=setTimeout(()=>{let N=document.elementFromPoint(T,R);N&&H(P,N)&&N.dispatchEvent(new PointerEvent("pointerover",{bubbles:!0,cancelable:!0}))},100)},_p))};return window.addEventListener("pointermove",k),process.env.NODE_ENV!=="test"&&window.addEventListener("pointerdown",E,!0),()=>{window.removeEventListener("pointermove",k),process.env.NODE_ENV!=="test"&&window.removeEventListener("pointerdown",E,!0),clearTimeout(c.current),clearTimeout(u.current),f.current=ir}},[o,n,e,v,p,r])}function Hp(t,e,r){let{parentMenuRef:n,submenuRef:o,type:i="menu",isDisabled:l,delay:s=200,shouldUseVirtualFocus:c}=t,u=ge(),d=ge(),{direction:f}=Je(),m=a.useRef(void 0),p=a.useCallback(()=>{m.current&&(clearTimeout(m.current),m.current=void 0)},[m]),g=a.useCallback(T=>{p(),e.open(T)},[e,p]),y=a.useCallback(()=>{p(),e.close()},[e,p]);J(()=>()=>{p()},[p]);let v=T=>{if(Nt(T.currentTarget))switch(T.key){case"ArrowLeft":f==="ltr"&&H(T.currentTarget,A(T))&&(T.preventDefault(),T.stopPropagation(),y(),!c&&r.current&&de(r.current));break;case"ArrowRight":f==="rtl"&&H(T.currentTarget,A(T))&&(T.preventDefault(),T.stopPropagation(),y(),!c&&r.current&&de(r.current));break;case"Escape":H(o.current,A(T))&&(T.stopPropagation(),y(),!c&&r.current&&de(r.current));break}},E={id:d,"aria-labelledby":u,submenuLevel:e.submenuLevel,...i==="menu"&&{onClose:e.closeAll,autoFocus:e.focusStrategy??void 0,onKeyDown:v}},$=T=>{switch(T.key){case"ArrowRight":l||(f==="ltr"?(T.preventDefault(),e.isOpen||g("first"),i==="menu"&&(o!=null&&o.current)&&ne()===(r==null?void 0:r.current)&&de(o.current)):e.isOpen?y():T.continuePropagation());break;case"ArrowLeft":l||(f==="rtl"?(T.preventDefault(),e.isOpen||g("first"),i==="menu"&&(o!=null&&o.current)&&ne()===(r==null?void 0:r.current)&&de(o.current)):e.isOpen?y():T.continuePropagation());break;default:T.continuePropagation();break}},P=T=>{!l&&(T.pointerType==="virtual"||T.pointerType==="keyboard")&&g("first")},k=T=>{!l&&(T.pointerType==="touch"||T.pointerType==="mouse")&&g()},L=T=>{l||(T&&!e.isOpen?m.current||(m.current=setTimeout(()=>{g()},s)):T||p())};Et(n,"focusin",T=>{e.isOpen&&H(n.current,A(T))&&A(T)!==r.current&&y()});let j=T=>T!==r.current;return Vp({menuRef:n,submenuRef:o,isOpen:e.isOpen,isDisabled:l}),{submenuTriggerProps:{id:u,"aria-controls":e.isOpen?d:void 0,"aria-haspopup":l?void 0:i,"aria-expanded":e.isOpen?"true":"false",onPressStart:P,onPress:k,onHoverChange:L,onKeyDown:$,isOpen:e.isOpen},submenuProps:E,popoverProps:{isNonModal:!0,shouldCloseOnInteractOutside:j}}}function wa(t){let e=Cs(t),[r,n]=a.useState(null),[o,i]=a.useState([]),l=()=>{i([]),e.close()};return{focusStrategy:r,...e,open(u=null){n(u),e.open()},toggle(u=null){n(u),e.toggle()},close(){l()},expandedKeysStack:o,openSubmenu:(u,d)=>{i(f=>d>f.length?f:[...f.slice(0,d),u])},closeSubmenu:(u,d)=>{i(f=>f[d]===u?f.slice(0,d):f)}}}function zp(t,e){let{triggerKey:r}=t,{expandedKeysStack:n,openSubmenu:o,closeSubmenu:i,close:l}=e,[s]=a.useState(n==null?void 0:n.length),c=a.useMemo(()=>n[s]===r,[n,r,s]),[u,d]=a.useState(null),f=a.useCallback(g=>{d(g??null),o(r,s)},[o,s,r]),m=a.useCallback(()=>{d(null),i(r,s)},[i,s,r]),p=a.useCallback(g=>{d(g??null),c?m():f(g)},[m,f,c]);return a.useMemo(()=>({focusStrategy:u,isOpen:c,open:f,close:m,closeAll:l,submenuLevel:s,setOpen:()=>{},toggle:p}),[c,f,m,l,u,p,s])}function Wp(t,e){return typeof e.getChildren=="function"?e.getChildren(t.key):t.childNodes}function Up(t){return Gp(t)}function Gp(t,e){for(let r of t)return r}function sn(t,e,r){if(e.parentKey===r.parentKey)return e.index-r.index;let n=[...Ei(t,e),e],o=[...Ei(t,r),r],i=n.slice(0,o.length).findIndex((l,s)=>l!==o[s]);return i!==-1?(e=n[i],r=o[i],e.index-r.index):n.findIndex(l=>l===r)>=0?1:(o.findIndex(l=>l===e)>=0,-1)}function Ei(t,e){let r=[],n=e;for(;(n==null?void 0:n.parentKey)!=null;)n=t.getItem(n.parentKey),n&&r.unshift(n);return r}class Se extends Set{constructor(e,r,n){super(e),e instanceof Se?(this.anchorKey=r??e.anchorKey,this.currentKey=n??e.currentKey):(this.anchorKey=r??null,this.currentKey=n??null)}}class Fr{constructor(e,r,n){this.collection=e,this.state=r,this.allowsCellSelection=(n==null?void 0:n.allowsCellSelection)??!1,this._isSelectAll=null,this.layoutDelegate=(n==null?void 0:n.layoutDelegate)||null,this.fullCollection=(n==null?void 0:n.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,r){(e==null||this.collection.getItem(e))&&this.state.setFocusedKey(e,r)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if(this.state.selectionMode==="none")return!1;let r=this.getKey(e);return r==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(r):this.state.selectedKeys.has(r)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let e=this.getSelectAllKeys(),r=this.state.selectedKeys;return this._isSelectAll=e.every(n=>r.has(n)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let r of this.state.selectedKeys){let n=this.collection.getItem(r);(!e||n&&sn(this.collection,n,e)<0)&&(e=n)}return(e==null?void 0:e.key)??null}get lastSelectedKey(){let e=null;for(let r of this.state.selectedKeys){let n=this.collection.getItem(r);(!e||n&&sn(this.collection,n,e)>0)&&(e=n)}return(e==null?void 0:e.key)??null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(e);return}let r=this.getKey(e);if(r==null)return;let n;if(this.state.selectedKeys==="all")n=new Se([r],r,r);else{let o=this.state.selectedKeys,i=o.anchorKey??r;n=new Se(o,i,r);for(let l of this.getKeyRange(i,o.currentKey??r))n.delete(l);for(let l of this.getKeyRange(r,i))this.canSelectItem(l)&&n.add(l)}this.state.setSelectedKeys(n)}getKeyRange(e,r){let n=this.collection.getItem(e),o=this.collection.getItem(r);return n&&o?sn(this.collection,n,o)<=0?this.getKeyRangeInternal(e,r):this.getKeyRangeInternal(r,e):[]}getKeyRangeInternal(e,r){var i;if((i=this.layoutDelegate)!=null&&i.getKeyRange)return this.layoutDelegate.getKeyRange(e,r);let n=[],o=e;for(;o!=null;){let l=this.collection.getItem(o);if(l&&(l.type==="item"||l.type==="cell"&&this.allowsCellSelection)&&n.push(o),o===r)return n;o=this.collection.getKeyAfter(o)}return[]}getKey(e){let r=this.collection.getItem(e);if(!r||r.type==="cell"&&this.allowsCellSelection)return e;for(;r&&r.type!=="item"&&r.parentKey!=null;)r=this.collection.getItem(r.parentKey);return!r||r.type!=="item"?null:r.key}toggleSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(e)){this.replaceSelection(e);return}let r=this.getKey(e);if(r==null)return;let n=new Se(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);n.has(r)?n.delete(r):this.canSelectItem(r)&&(n.add(r),n.anchorKey=r,n.currentKey=r),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(e){if(this.selectionMode==="none")return;let r=this.getKey(e);if(r==null)return;let n=this.canSelectItem(r)?new Se([r],r,r):new Se;this.state.setSelectedKeys(n)}setSelectedKeys(e){if(this.selectionMode==="none")return;let r=new Se;for(let n of e){let o=this.getKey(n);if(o!=null&&(r.add(o),this.selectionMode==="single"))break}this.state.setSelectedKeys(r)}getSelectAllKeys(){let e=this.fullCollection??this.collection,r=[],n=o=>{var i;for(;o!=null;){if(this.canSelectItemIn(o,e)){let l=e.getItem(o);(l==null?void 0:l.type)==="item"&&r.push(o),l!=null&&l.hasChildNodes&&(this.allowsCellSelection||l.type!=="item")&&n(((i=Up(Wp(l,e)))==null?void 0:i.key)??null)}o=e.getKeyAfter(o)}};return n(e.getFirstKey()),r}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new Se)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,r){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior==="toggle"||r&&(r.pointerType==="touch"||r.pointerType==="virtual")?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let r=this.selectedKeys;if(e.size!==r.size)return!1;for(let n of e)if(!r.has(n))return!1;for(let n of r)if(!e.has(n))return!1;return!0}canSelectItem(e){return this.canSelectItemIn(e,this.collection)}canSelectItemIn(e,r){var o;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(e))return!1;let n=r.getItem(e);return!(!n||(o=n==null?void 0:n.props)!=null&&o.isDisabled||n.type==="cell"&&!this.allowsCellSelection)}isDisabled(e){var n,o;let r=this.collection.getItem(e);return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(e)||!!((n=r==null?void 0:r.props)!=null&&n.isDisabled))&&((o=r==null?void 0:r.props)==null?void 0:o.disabledBehavior)!=="selection"}isLink(e){var r,n;return!!((n=(r=this.collection.getItem(e))==null?void 0:r.props)!=null&&n.href)}getItemProps(e){var r;return(r=this.collection.getItem(e))==null?void 0:r.props}withCollection(e){return new Fr(e,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0,fullCollection:this.fullCollection??this.collection})}}class qp{constructor(e,{expandedKeys:r}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e,r=r||new Set;let n=l=>{if(this.keyMap.set(l.key,l),l.childNodes&&(l.type==="section"||r.has(l.key)))for(let s of l.childNodes)n(s)};for(let l of e)n(l);let o=null,i=0;for(let[l,s]of this.keyMap)o?(o.nextKey=l,s.prevKey=o.key):(this.firstKey=l,s.prevKey=void 0),s.type==="item"&&(s.index=i++),o=s,o.nextKey=void 0;this.lastKey=(o==null?void 0:o.key)??null}*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let r=this.keyMap.get(e);return r?r.prevKey??null:null}getKeyAfter(e){let r=this.keyMap.get(e);return r?r.nextKey??null:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)??null}at(e){const r=[...this.getKeys()];return this.getItem(r[e])}}class Yp{build(e,r){return this.context=r,Si(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:r,items:n}=e;if(a.isValidElement(r)&&r.type===a.Fragment)yield*this.iterateCollection({children:r.props.children,items:n});else if(typeof r=="function"){if(!n)throw new Error("props.children was a function but props.items is missing");let o=0;for(let i of n)yield*this.getFullNode({value:i,index:o},{renderer:r}),o++}else{let o=[];a.Children.forEach(r,l=>{l&&o.push(l)});let i=0;for(let l of o){let s=this.getFullNode({element:l,index:i},{});for(let c of s)i++,yield c}}}getKey(e,r,n,o){if(e.key!=null)return e.key;if(r.type==="cell"&&r.key!=null)return`${o}${r.key}`;let i=r.value;if(i!=null){let l=i.key??i.id;if(l==null)throw new Error("No key found for item");return l}return o?`${o}.${r.index}`:`$.${r.index}`}getChildState(e,r){return{renderer:r.renderer||e.renderer}}*getFullNode(e,r,n,o){if(a.isValidElement(e.element)&&e.element.type===a.Fragment){let c=[];a.Children.forEach(e.element.props.children,d=>{c.push(d)});let u=e.index??0;for(const d of c)yield*this.getFullNode({element:d,index:u++},r,n,o);return}let i=e.element;if(!i&&e.value&&r&&r.renderer){let c=this.cache.get(e.value);if(c&&(!c.shouldInvalidate||!c.shouldInvalidate(this.context))){c.index=e.index,c.parentKey=o?o.key:null,yield c;return}i=r.renderer(e.value)}if(a.isValidElement(i)){let c=i.type;if(typeof c!="function"&&typeof c.getCollectionNode!="function"){let m=i.type;throw new Error(`Unknown element <${m}> in collection.`)}let u=c.getCollectionNode(i.props,this.context),d=e.index??0,f=u.next();for(;!f.done&&f.value;){let m=f.value;e.index=d;let p=m.key??null;p==null&&(p=m.element?null:this.getKey(i,e,r,n));let y=[...this.getFullNode({...m,key:p,index:d,wrapper:Xp(e.wrapper,m.wrapper)},this.getChildState(r,m),n?`${n}${i.key}`:i.key,o)];for(let v of y){if(v.value=m.value??e.value??null,v.value&&this.cache.set(v.value,v),e.type&&v.type!==e.type)throw new Error(`Unsupported type <${an(v.type)}> in <${an((o==null?void 0:o.type)??"unknown parent type")}>. Only <${an(e.type)}> is supported.`);d++,yield v}f=u.next(y)}return}if(e.key==null||e.type==null)return;let l=this,s={type:e.type,props:e.props,key:e.key,parentKey:o?o.key:null,value:e.value??null,level:((o==null?void 0:o.level)??0)+((o==null?void 0:o.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:Si(function*(){if(!e.hasChildNodes||!e.childNodes)return;let c=0;for(let u of e.childNodes()){u.key!=null&&(u.key=`${s.key}${u.key}`);let d=l.getFullNode({...u,index:c},l.getChildState(r,u),s.key,s);for(let f of d)c++,yield f}})};yield s}constructor(){this.cache=new WeakMap}}function Si(t){let e=[],r=null;return{*[Symbol.iterator](){for(let n of e)yield n;r||(r=t());for(let n of r)e.push(n),yield n}}}function Xp(t,e){if(t&&e)return r=>t(e(r));if(t)return t;if(e)return e}function an(t){return t[0].toUpperCase()+t.slice(1)}function Zp(t,e,r){let n=a.useMemo(()=>new Yp,[]),{children:o,items:i,collection:l}=t;return a.useMemo(()=>{if(l)return l;let c=n.build({children:o,items:i},r);return e(c)},[n,o,i,l,r,e])}function Jp(t,e){if(t.size!==e.size)return!1;for(let r of t)if(!e.has(r))return!1;return!0}function Ea(t){let{selectionMode:e="none",disallowEmptySelection:r=!1,allowDuplicateSelectionEvents:n,selectionBehavior:o="toggle",disabledBehavior:i="all"}=t,l=a.useRef(!1),[,s]=a.useState(!1),c=a.useRef(null),u=a.useRef(null),[,d]=a.useState(null),f=a.useMemo(()=>Ci(t.selectedKeys),[t.selectedKeys]),m=a.useMemo(()=>Ci(t.defaultSelectedKeys,new Se),[t.defaultSelectedKeys]),[p,g]=Lr(f,m,t.onSelectionChange),y=a.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),[v,E]=a.useState(o);o==="replace"&&v==="toggle"&&typeof p=="object"&&p.size===0&&E("replace");let $=a.useRef(o);return a.useEffect(()=>{o!==$.current&&(E(o),$.current=o)},[o]),{selectionMode:e,disallowEmptySelection:r,selectionBehavior:v,setSelectionBehavior:E,get isFocused(){return l.current},setFocused(P){l.current=P,s(P)},get focusedKey(){return c.current},get childFocusStrategy(){return u.current},setFocusedKey(P,k="first"){c.current=P,u.current=k,d(P)},selectedKeys:p,setSelectedKeys(P){(n||!Jp(P,p))&&g(P)},disabledKeys:y,disabledBehavior:i}}function Ci(t,e){return t?t==="all"?"all":new Se(t):e}function Qp(t){let{onExpandedChange:e}=t,[r,n]=Lr(t.expandedKeys?new Set(t.expandedKeys):void 0,t.defaultExpandedKeys?new Set(t.defaultExpandedKeys):new Set,e),o=Ea(t),i=a.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),l=Zp(t,a.useCallback(c=>new qp(c,{expandedKeys:r}),[r]),null);return a.useEffect(()=>{o.focusedKey!=null&&!l.getItem(o.focusedKey)&&o.setFocusedKey(null)},[l,o.focusedKey]),{collection:l,expandedKeys:r,disabledKeys:i,toggleKey:c=>{n(eh(r,c))},setExpandedKeys:n,selectionManager:new Fr(l,o)}}function eh(t,e){let r=new Set(t);return r.has(e)?r.delete(e):r.add(e),r}const Qn=a.createContext(null),Or=a.createContext(null),Cr=a.createContext(null),Pr=a.createContext(null);function th(t){let e=wa(t),r=a.useRef(null),{menuTriggerProps:n,menuProps:o}=Sp({...t,type:"menu"},e,r),i=a.useRef(null);return xl()?null:a.createElement(ht,{values:[[Qn,{...o,ref:i}],[eo,e],[Cr,e],[Zn,{trigger:"MenuTrigger",triggerRef:r,scrollRef:i,placement:"bottom start","aria-labelledby":o["aria-labelledby"]}]]},a.createElement(jf,{...n,ref:r,isPressed:e.isOpen},t.children))}const Sa=a.createContext(null),ao=class ao extends bt{filter(e,r,n){let o=e.getItem(this.firstChildKey);if(o&&n(o.textValue,this)){let i=this.clone();return r.addDescendants(i,e),i}return null}};ao.type="submenutrigger";let Dn=ao;const rh=Ls(Dn,(t,e,r)=>{let{CollectionBranch:n}=a.useContext(Ar),o=a.useContext(Or),i=a.useContext(Cr),l=zp({triggerKey:r.key},i),s=a.useRef(null),c=zt(e),{parentMenuRef:u,shouldUseVirtualFocus:d}=a.useContext(Sa),{submenuTriggerProps:f,submenuProps:m,popoverProps:p}=Hp({parentMenuRef:u,submenuRef:s,delay:t.delay,shouldUseVirtualFocus:d},l,c);return a.createElement(ht,{values:[[ut,{...f,onAction:void 0,ref:c}],[Qn,{ref:s,...m}],[eo,l],[Zn,{trigger:"SubmenuTrigger",triggerRef:c,placement:"end top","aria-labelledby":m["aria-labelledby"],...p}]]},a.createElement(n,{collection:o.collection,parent:r}),t.children[1])},t=>t.children[0]),nh=a.forwardRef(function(e,r){return[e,r]=Oe(e,r,Qn),a.createElement(Qf,{content:a.createElement(ip,e)},n=>a.createElement(oh,{props:e,collection:n,menuRef:r}))});function oh({props:t,collection:e,menuRef:r}){[t,r]=Oe(t,r,gi);let{filter:n,...o}=t,i=a.useMemo(()=>n?e.filter(n):e,[e,n]),l=Qp({...t,collection:i,children:void 0}),s=a.useContext(Cr),{isVirtualized:c,CollectionRoot:u}=a.useContext(Ar),{menuProps:d}=Ip({...t,isVirtualized:c,onClose:t.onClose||(s==null?void 0:s.close)},l,r),f=Fe({...t,children:void 0,defaultClassName:"react-aria-Menu",values:{isEmpty:l.collection.size===0}}),m=null;l.collection.size===0&&t.renderEmptyState&&(m=a.createElement("div",{role:"menuitem",style:{display:"contents"}},t.renderEmptyState()));let p=ue(t,{global:!0});return a.createElement(jl,null,a.createElement(Ce.div,{...X(p,f,d),ref:r,slot:t.slot||void 0,"data-empty":l.collection.size===0||void 0,onScroll:t.onScroll},a.createElement(ht,{values:[[Or,l],[Jn,{elementType:"div"}],[sp,{name:"MenuSection",render:Ca}],[Sa,{parentMenuRef:r,shouldUseVirtualFocus:o==null?void 0:o.shouldUseVirtualFocus}],[ut,{shouldCloseOnSelect:t.shouldCloseOnSelect}],[gi,null],[pp,null],[Pr,l.selectionManager],[Cr,s??wa({})]]},a.createElement(gp,null,a.createElement(u,{collection:l.collection,persistedKeys:up(l.selectionManager.focusedKey),scrollRef:r}))),m))}class ih extends Fr{constructor(e,r){super(e.collection,r),this.parent=e}get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(e,r){return this.parent.setFocusedKey(e,r)}setFocused(e){this.parent.setFocused(e)}get childFocusStrategy(){return this.parent.childFocusStrategy}}function Ca(t,e,r,n="react-aria-MenuSection"){var v,E,$;let o=a.useContext(Or),{CollectionBranch:i}=a.useContext(Ar),[l,s]=$l(),{headingProps:c,groupProps:u}=jp({heading:s,"aria-label":r.props["aria-label"]??void 0}),d=Fe({...t,id:void 0,children:void 0,defaultClassName:n,className:(v=r.props)==null?void 0:v.className,style:(E=r.props)==null?void 0:E.style,values:void 0}),f=a.useContext(Pr),m=Ea(t),p=t.selectionMode!=null?new ih(f,m):f,g=($=Wt(ut))==null?void 0:$.shouldCloseOnSelect,y=ue(t,{global:!0});return delete y.id,a.createElement(Ce.section,{...X(y,d,u),ref:e},a.createElement(ht,{values:[[hp,{...c,ref:l}],[Pr,p],[ut,{shouldCloseOnSelect:t.shouldCloseOnSelect??g}]]},a.createElement(i,{collection:o.collection,parent:r})))}const lh=Ls(Tn,Ca),ut=a.createContext(null),sh=Ds(kn,function(e,r,n){var P;[e,r]=Oe(e,r,ut);let o=(P=Wt(ut))==null?void 0:P.id,i=a.useContext(Or),l=zt(r),s=a.useContext(Pr),{isVirtualized:c}=a.useContext(Ar),{menuItemProps:u,labelProps:d,descriptionProps:f,keyboardShortcutProps:m,...p}=Op({...e,id:o,key:n.key,selectionManager:s,isVirtualized:c},i,l),{hoverProps:g,isHovered:y}=Ut({isDisabled:p.isDisabled}),v=Fe({...e,id:void 0,children:n.rendered,defaultClassName:"react-aria-MenuItem",values:{...p,isHovered:y,isFocusVisible:p.isFocusVisible,selectionMode:s.selectionMode,selectionBehavior:s.selectionBehavior,hasSubmenu:!!e["aria-haspopup"],isOpen:e["aria-expanded"]==="true"}}),E=e.href?Ce.a:Ce.div,$=ue(e,{global:!0});return delete $.id,delete $.onClick,a.createElement(E,{...X($,v,u,g),ref:l,"data-disabled":p.isDisabled||void 0,"data-hovered":y||void 0,"data-focused":p.isFocused||void 0,"data-focus-visible":p.isFocusVisible||void 0,"data-pressed":p.isPressed||void 0,"data-selected":p.isSelected||void 0,"data-selection-mode":s.selectionMode==="none"?void 0:s.selectionMode,"data-has-submenu":!!e["aria-haspopup"]||void 0,"data-open":e["aria-expanded"]==="true"||void 0},a.createElement(ht,{values:[[Fs,{slots:{[vl]:d,label:d,description:f}}],[bp,m],[yp,{isSelected:p.isSelected}]]},v.children))}),eo=a.createContext(null),ah=a.createContext(null),ch=a.createContext(null);function uh(t,e,r){let{validationBehavior:n,focus:o}=t;J(()=>{if(n==="native"&&(r!=null&&r.current)&&!r.current.disabled){let u=e.realtimeValidation.isInvalid?e.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";r.current.setCustomValidity(u),r.current.hasAttribute("title")||(r.current.title=""),e.realtimeValidation.isInvalid||e.updateValidation(fh(r.current))}});let i=a.useRef(!1),l=xe(()=>{i.current||e.resetValidation()}),s=xe(u=>{var f,m;e.displayValidation.isInvalid||e.commitValidation();let d=(f=r==null?void 0:r.current)==null?void 0:f.form;!u.defaultPrevented&&r&&d&&ph(d)===r.current&&(o?o():(m=r.current)==null||m.focus(),vn("keyboard")),u.preventDefault()}),c=xe(()=>{e.commitValidation()});a.useEffect(()=>{let u=r==null?void 0:r.current;if(!u)return;let d=u.form,f=d==null?void 0:d.reset;return d&&(d.reset=()=>{i.current=!window.event||window.event.type==="message"&&A(window.event)instanceof MessagePort,f==null||f.call(d),i.current=!1}),u.addEventListener("invalid",s),u.addEventListener("change",c),d==null||d.addEventListener("reset",l),()=>{u.removeEventListener("invalid",s),u.removeEventListener("change",c),d==null||d.removeEventListener("reset",l),d&&(d.reset=f)}},[r,n])}function dh(t){let e=t.validity;return{badInput:e.badInput,customError:e.customError,patternMismatch:e.patternMismatch,rangeOverflow:e.rangeOverflow,rangeUnderflow:e.rangeUnderflow,stepMismatch:e.stepMismatch,tooLong:e.tooLong,tooShort:e.tooShort,typeMismatch:e.typeMismatch,valueMissing:e.valueMissing,valid:e.valid}}function fh(t){return{isInvalid:!t.validity.valid,validationDetails:dh(t),validationErrors:t.validationMessage?[t.validationMessage]:[]}}function ph(t){var e;for(let r=0;r<t.elements.length;r++){let n=t.elements[r];if(((e=n.validity)==null?void 0:e.valid)===!1)return n}return null}function hh(t,e){let{elementType:r="a",onPress:n,onPressStart:o,onPressEnd:i,onClick:l,isDisabled:s,...c}=t,u={};r!=="a"&&(u={role:"link",tabIndex:s?void 0:0});let{focusableProps:d}=Dr(t,e),{pressProps:f,isPressed:m}=Ze({onPress:n,onPressStart:o,onPressEnd:i,onClick:l,isDisabled:s,ref:e}),p=ue(c,{labelable:!0}),g=X(d,f),y=_t(),v=zi(t);return{isPressed:m,linkProps:X(p,v,{...g,...u,"aria-disabled":s||void 0,"aria-current":t["aria-current"],onClick:E=>{var $;($=f.onClick)==null||$.call(f,E),Wi(E,y,t.href,t.routerOptions)}})}}const bh=a.createContext(null),mh=a.forwardRef(function(e,r){[e,r]=Oe(e,r,bh);let n=e.href&&!e.isDisabled?"a":"span",{linkProps:o,isPressed:i}=hh({...e,elementType:n},r),l=Ce[n],{hoverProps:s,isHovered:c}=Ut(e),{focusProps:u,isFocused:d,isFocusVisible:f}=qn(),m=Fe({...e,defaultClassName:"react-aria-Link",values:{isCurrent:!!e["aria-current"],isDisabled:e.isDisabled||!1,isPressed:i,isHovered:c,isFocused:d,isFocusVisible:f}}),p=ue(e,{global:!0});return delete p.onClick,a.createElement(l,{ref:r,slot:e.slot||void 0,...X(p,m,o,s,u),"data-focused":d||void 0,"data-hovered":c||void 0,"data-pressed":i||void 0,"data-focus-visible":f||void 0,"data-current":!!e["aria-current"]||void 0,"data-disabled":e.isDisabled||void 0},m.children)}),Pa=a.createContext({}),Pi=({children:t,className:e,...r})=>{const n=a.useMemo(()=>rd(),[]);return b.jsx(Pa,{value:{slots:n},children:b.jsx(mh,{...r,className:je(e,n==null?void 0:n.base()),children:o=>b.jsx(b.Fragment,{children:typeof t=="function"?t(o):t})})})},gh=({children:t,className:e,...r})=>{const{slots:n}=a.useContext(Pa);return b.jsx(ie.span,{className:ce(n==null?void 0:n.icon,e),"data-default-icon":Gd(!t),"data-slot":"link-icon",...r,children:t??b.jsx(Yd,{"data-slot":"link-default-icon"})})},to=Object.assign(Pi,{Root:Pi,Icon:gh});function yh(t={}){let{isReadOnly:e}=t,[r,n]=Lr(t.isSelected,t.defaultSelected||!1,t.onChange),[o]=a.useState(r);function i(s){e||n(s)}function l(){e||n(!r)}return{isSelected:r,defaultSelected:t.defaultSelected??o,setSelected:i,toggle:l}}const vh=a.createContext({}),$h="__button_group_child",ki=({children:t,className:e,fullWidth:r,isDisabled:n,isIconOnly:o,size:i,slot:l,style:s,variant:c,[$h]:u,...d})=>{const f=a.useContext(vh),m=u===!0,p=i??(m?f==null?void 0:f.size:void 0),g=c??(m?f==null?void 0:f.variant:void 0),y=n??(m?f==null?void 0:f.isDisabled:void 0),v=r??(m?f==null?void 0:f.fullWidth:void 0),E=ze({fullWidth:v,isIconOnly:o,size:p,variant:g});return b.jsx(Al,{className:je(e,E),"data-slot":"button",isDisabled:y,slot:l,style:s,...d,children:$=>typeof t=="function"?t($):t})},xh=Object.assign(ki,{Root:ki}),mt=a.createContext({}),Ti=({children:t,className:e,variant:r="default",...n})=>{const o=a.useMemo(()=>Ju({variant:r}),[r]),i=b.jsx(ie.div,{className:o.base({className:e}),"data-slot":"card",...n,children:t});return b.jsx(mt,{value:{slots:o},children:r==="transparent"?i:b.jsx(Yn,{value:{variant:r},children:i})})},wh=({className:t,...e})=>{const{slots:r}=a.useContext(mt);return b.jsx(ie.div,{className:ce(r==null?void 0:r.header,t),"data-slot":"card-header",...e})},Eh=({children:t,className:e,...r})=>{const{slots:n}=a.useContext(mt);return b.jsx(ie.h3,{className:ce(n==null?void 0:n.title,e),"data-slot":"card-title",...r,children:t})},Sh=({children:t,className:e,...r})=>{const{slots:n}=a.useContext(mt);return b.jsx(ie.p,{className:ce(n==null?void 0:n.description,e),"data-slot":"card-description",...r,children:t})},Ch=({className:t,...e})=>{const{slots:r}=a.useContext(mt);return b.jsx(ie.div,{className:ce(r==null?void 0:r.content,t),"data-slot":"card-content",...e})},Ph=({className:t,...e})=>{const{slots:r}=a.useContext(mt);return b.jsx(ie.div,{className:ce(r==null?void 0:r.footer,t),"data-slot":"card-footer",...e})},kt=Object.assign(Ti,{Root:Ti,Header:wh,Title:Eh,Description:Sh,Content:Ch,Footer:Ph}),kh=new WeakMap;function Th(t=!0){let[e,r]=a.useState(t),n=a.useRef(!1),o=a.useCallback(i=>{n.current=!0,r(!!i)},[]);return J(()=>{n.current||r(!1)},[]),[o,e]}function Mi(t=!0){let e=ge(),[r,n]=Th(t);return{id:n?e:void 0,ref:r}}const ka={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},Ta={...ka,customError:!0,valid:!1},rt={isInvalid:!1,validationDetails:ka,validationErrors:[]},Mh=a.createContext({}),kr="__reactAriaFormValidationState";function Ma(t){if(t[kr]){let{realtimeValidation:e,displayValidation:r,updateValidation:n,resetValidation:o,commitValidation:i}=t[kr];return{realtimeValidation:e,displayValidation:r,updateValidation:n,resetValidation:o,commitValidation:i}}return Rh(t)}function Rh(t){let{isInvalid:e,validationState:r,name:n,value:o,builtinValidation:i,validate:l,validationBehavior:s="aria"}=t;r&&(e||(e=r==="invalid"));let c=e!==void 0?{isInvalid:e,validationErrors:[],validationDetails:Ta}:null,u=a.useMemo(()=>{if(!l||o==null)return null;let K=Nh(l,o);return Ri(K)},[l,o]);i!=null&&i.validationDetails.valid&&(i=void 0);let d=a.useContext(Mh),f=a.useMemo(()=>n?Array.isArray(n)?n.flatMap(K=>Ln(d[K])):Ln(d[n]):[],[d,n]),[m,p]=a.useState(d),[g,y]=a.useState(!1);d!==m&&(p(d),y(!1));let v=a.useMemo(()=>Ri(g?[]:f),[g,f]),E=a.useRef(rt),[$,P]=a.useState(rt),k=a.useRef(rt),L=()=>{if(!j)return;T(!1);let K=u||i||E.current;cn(K,k.current)||(k.current=K,P(K))},[j,T]=a.useState(!1);return a.useEffect(L),{realtimeValidation:c||v||u||i||rt,displayValidation:s==="native"?c||v||$:c||v||u||i||$,updateValidation(K){s==="aria"&&!cn($,K)?P(K):E.current=K},resetValidation(){let K=rt;cn(K,k.current)||(k.current=K,P(K)),s==="native"&&T(!1),y(!0)},commitValidation(){s==="native"&&T(!0),y(!0)}}}function Ln(t){return t?Array.isArray(t)?t:[t]:[]}function Nh(t,e){if(typeof t=="function"){let r=t(e);if(r&&typeof r!="boolean")return Ln(r)}return[]}function Ri(t){return t.length?{isInvalid:!0,validationErrors:t,validationDetails:Ta}:null}function cn(t,e){return t===e?!0:!!t&&!!e&&t.isInvalid===e.isInvalid&&t.validationErrors.length===e.validationErrors.length&&t.validationErrors.every((r,n)=>r===e.validationErrors[n])&&Object.entries(t.validationDetails).every(([r,n])=>e.validationDetails[r]===n)}function Dh(t,e,r){let{isDisabled:n=!1,isReadOnly:o=!1,value:i,name:l,form:s,children:c,isRequired:u,validationBehavior:d="aria","aria-label":f,"aria-labelledby":m,"aria-describedby":p,onPressStart:g,onPressEnd:y,onPressChange:v,onPress:E,onPressUp:$,onClick:P}=t,k=Ma({...t,value:e.isSelected}),{isInvalid:L,validationErrors:j,validationDetails:T}=k.displayValidation;uh(t,k,r);let R=D=>{D.stopPropagation(),e.setSelected(A(D).checked)},I=c!=null,K=f!=null||m!=null;!I&&!K&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:V,isPressed:z}=Ze({onPressStart:g,onPressEnd:y,onPressChange:v,onPress:E,onPressUp:$,onClick:P,isDisabled:n}),[B,h]=a.useState(!1),{pressProps:w}=Ze({onPressStart(D){if(D.pointerType==="keyboard"||D.pointerType==="virtual"){D.continuePropagation();return}g==null||g(D),v==null||v(!0),h(!0)},onPressEnd(D){if(D.pointerType==="keyboard"||D.pointerType==="virtual"){D.continuePropagation();return}y==null||y(D),v==null||v(!1),h(!1)},onPressUp(D){if(D.pointerType==="keyboard"||D.pointerType==="virtual"){D.continuePropagation();return}$==null||$(D)},onClick:P,onPress(D){var G;if(D.pointerType==="keyboard"||D.pointerType==="virtual"){D.continuePropagation();return}E==null||E(D),e.toggle(),(G=r.current)==null||G.focus();let{[kr]:W}=t,{commitValidation:U}=W||k;U()},isDisabled:n||o}),{focusableProps:N}=Dr(t,r),C=X(V,N),M=ue(t,{labelable:!0});Wc(r,e.defaultSelected,e.setSelected);let x=Mi(),S=Mi();return{labelProps:X(w,{onClick:D=>D.preventDefault()}),inputProps:X(M,{checked:e.isSelected,"aria-required":u&&d==="aria"||void 0,required:u&&d==="native","aria-invalid":L||t.validationState==="invalid"||void 0,"aria-errormessage":t["aria-errormessage"],"aria-controls":t["aria-controls"],"aria-readonly":o||void 0,"aria-describedby":[x.id,S.id,p].filter(Boolean).join(" ")||void 0,onChange:R,disabled:n,...i==null?{}:{value:i},name:l,form:s,type:"checkbox",...C}),descriptionProps:x,errorMessageProps:S,isSelected:e.isSelected,isPressed:z||B,isDisabled:n,isReadOnly:o,isInvalid:L||t.validationState==="invalid",validationErrors:j,validationDetails:T}}function Ra(t,e,r){let{labelProps:n,inputProps:o,descriptionProps:i,errorMessageProps:l,isSelected:s,isPressed:c,isDisabled:u,isReadOnly:d,isInvalid:f,validationErrors:m,validationDetails:p}=Dh(t,e,r),{isIndeterminate:g}=t;return a.useEffect(()=>{r.current&&(r.current.indeterminate=!!g)}),{labelProps:X(n,a.useMemo(()=>({onMouseDown:y=>y.preventDefault()}),[])),inputProps:o,descriptionProps:i,errorMessageProps:l,isSelected:s,isPressed:c,isDisabled:u,isReadOnly:d,isInvalid:f,validationErrors:m,validationDetails:p}}const Lh=typeof document<"u"?a.useInsertionEffect??a.useLayoutEffect:()=>{};function Ih(t,e,r){let[n,o]=a.useState(t||e),i=a.useRef(n),l=a.useRef(t!==void 0),s=t!==void 0;a.useEffect(()=>{let f=l.current;f!==s&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${f?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),l.current=s},[s]);let c=s?t:n;Lh(()=>{i.current=c});let[,u]=a.useReducer(()=>({}),{}),d=a.useCallback((f,...m)=>{let p=typeof f=="function"?f(i.current):f;Object.is(i.current,p)||(i.current=p,o(p),u(),r==null||r(p,...m))},[r]);return[c,d]}function Kh(t={}){let{isReadOnly:e}=t,[r,n]=Ih(t.isSelected,t.defaultSelected||!1,t.onChange),[o]=a.useState(r);function i(s){e||n(s)}function l(){e||n(!r)}return{isSelected:r,defaultSelected:t.defaultSelected??o,setSelected:i,toggle:l}}function Ah(t,e,r){const n=Kh({isReadOnly:t.isReadOnly||e.isReadOnly,isSelected:e.isSelected(t.value),defaultSelected:e.defaultValue.includes(t.value),onChange(y){y?e.addValue(t.value):e.removeValue(t.value),t.onChange&&t.onChange(y)}});let{name:o,form:i,descriptionId:l,errorMessageId:s,validationBehavior:c}=kh.get(e);c=t.validationBehavior??c;let{realtimeValidation:u}=Ma({...t,value:n.isSelected,name:void 0,validationBehavior:"aria"}),d=a.useRef(rt),f=()=>{e.setInvalid(t.value,u.isInvalid?u:d.current)};a.useEffect(f);let m=e.realtimeValidation.isInvalid?e.realtimeValidation:u,p=c==="native"?e.displayValidation:m,g=Ra({...t,isReadOnly:t.isReadOnly||e.isReadOnly,isDisabled:t.isDisabled||e.isDisabled,name:t.name||o,form:t.form||i,isRequired:t.isRequired??e.isRequired,validationBehavior:c,[kr]:{realtimeValidation:m,displayValidation:p,resetValidation:e.resetValidation,commitValidation:e.commitValidation,updateValidation(y){d.current=y,f()}}},n,r);return{...g,inputProps:{...g.inputProps,"aria-describedby":[g.inputProps["aria-describedby"],e.isInvalid?s:null,l].filter(Boolean).join(" ")||void 0}}}const Fh=a.createContext(null),Na=a.createContext(null),Da=a.createContext(null),Oh=a.forwardRef(function(e,r){let{inputRef:n=null,...o}=e;[e,r]=Oe(o,r,Fh);let i=a.useContext(Na),[l,s]=jh(e,n),{descriptionProps:c,errorMessageProps:u,isSelected:d,isDisabled:f,isReadOnly:m,isInvalid:p,validationDetails:g,validationErrors:y}=l,v=Fe({...e,defaultClassName:"react-aria-CheckboxField",values:{isSelected:d,isIndeterminate:e.isIndeterminate||!1,isDisabled:f,isReadOnly:m,isInvalid:p,isRequired:e.isRequired||!1}}),E=ue(e,{global:!0});return delete E.id,delete E.onClick,a.createElement(Ce.div,{...X(E,v),ref:r,slot:e.slot||void 0,"data-selected":d||void 0,"data-indeterminate":e.isIndeterminate||void 0,"data-disabled":f||void 0,"data-readonly":m||void 0,"data-invalid":p||void 0,"data-required":e.isRequired||void 0},a.createElement(ht,{values:[[Da,{...l,inputRef:s,defaultClassName:"react-aria-CheckboxButton",isIndeterminate:e.isIndeterminate,isRequired:e.isRequired}],[Fs,{slots:{description:c,errorMessage:u}}],[ah,i?null:{isInvalid:p,validationDetails:g,validationErrors:y}]]},v.children))});function jh(t,e){let{validationBehavior:r}=Wt(ch)||{},n=t.validationBehavior??r??"native",o=a.useContext(Na),i=zt(a.useMemo(()=>Ht(e,t.inputRef!==void 0?t.inputRef:null),[e,t.inputRef])),l={...ad(t),children:typeof t.children=="function"?!0:t.children,value:t.value,validationBehavior:n};return[o?Ah(l,o,i):Ra(l,yh(t),i),i]}const Bh=a.forwardRef(function(e,r){let{labelProps:n,inputProps:o,isSelected:i,isDisabled:l,isReadOnly:s,isPressed:c,isInvalid:u,inputRef:d,defaultClassName:f,isIndeterminate:m,isRequired:p}=a.useContext(Da),{isFocused:g,isFocusVisible:y,focusProps:v}=qn(),E=l||s,{hoverProps:$,isHovered:P}=Ut({...e,isDisabled:E}),k=Fe({...e,defaultClassName:f,values:{isSelected:i,isIndeterminate:m||!1,isPressed:c,isHovered:P,isFocused:g,isFocusVisible:y,isDisabled:l,isReadOnly:s,isInvalid:u,isRequired:p||!1}}),L=ue(e,{global:!0});return delete L.id,delete L.onClick,a.createElement(Ce.label,{...X(L,n,$,k),ref:r,slot:e.slot||void 0,"data-selected":i||void 0,"data-indeterminate":m||void 0,"data-pressed":c||void 0,"data-hovered":P||void 0,"data-focused":g||void 0,"data-focus-visible":y||void 0,"data-disabled":l||void 0,"data-readonly":s||void 0,"data-invalid":u||void 0,"data-required":p||void 0},a.createElement(Ss,{elementType:"span"},a.createElement("input",{...X(o,v),ref:d})),k.children)}),_h=a.createContext({}),jr=a.createContext({}),In=({children:t,className:e,variant:r,...n})=>{const o=a.useContext(_h),i=r??o.variant,l=a.useMemo(()=>Qu({variant:i}),[i]);return b.jsx(Oh,{"data-slot":"checkbox",...n,className:je(e,l.base()),children:s=>b.jsx(jr,{value:{slots:l,state:s},children:typeof t=="function"?t(s):t})})};In.displayName="HeroUI.Checkbox";const La=({children:t,className:e,...r})=>{const{slots:n}=a.useContext(jr);return b.jsx(Bh,{"data-slot":"checkbox-content",...r,className:je(e,n==null?void 0:n.content()),children:t})};La.displayName="HeroUI.Checkbox.Content";const Ia=({children:t,className:e,...r})=>{const{slots:n}=a.useContext(jr);return b.jsx(ie.span,{className:ce(n==null?void 0:n.control,e),"data-slot":"checkbox-control",...r,children:t})};Ia.displayName="HeroUI.Checkbox.Control";const Ka=({children:t,className:e,...r})=>{const{slots:n,state:o}=a.useContext(jr),i=o==null?void 0:o.isSelected,l=o==null?void 0:o.isIndeterminate,s=typeof t=="function"?t(o??{}):t||(l?b.jsx("svg",{"aria-hidden":"true","data-slot":"checkbox-default-indicator--indeterminate",fill:"none",role:"presentation",stroke:"currentColor",strokeLinecap:"round",strokeWidth:3,viewBox:"0 0 24 24",children:b.jsx("line",{x1:"21",x2:"3",y1:"12",y2:"12"})}):b.jsx("svg",{"aria-hidden":"true","data-slot":"checkbox-default-indicator--checkmark",fill:"none",role:"presentation",stroke:"currentColor",strokeDasharray:22,strokeDashoffset:i?44:66,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 17 18",children:b.jsx("polyline",{points:"1 9 7 14 15 4"})}));return b.jsx(ie.span,{"aria-hidden":"true",className:ce(n==null?void 0:n.indicator,e),"data-slot":"checkbox-indicator",...r,children:s})};Ka.displayName="HeroUI.Checkbox.Indicator";const lr=Object.assign(In,{Root:In,Content:La,Control:Ia,Indicator:Ka}),Aa=a.createContext({}),Ni=({children:t,className:e,color:r,size:n,variant:o,...i})=>{const l=a.useMemo(()=>ed({color:r,size:n,variant:o}),[r,n,o]),s=a.useMemo(()=>typeof t=="string"||typeof t=="number"?b.jsx(Fa,{children:t}):t,[t]);return b.jsx(Aa,{value:{slots:l},children:b.jsx(ie.span,{...i,className:ce(l.base,e),"data-slot":"chip",children:s})})},Fa=({children:t,className:e,...r})=>{const{slots:n}=a.useContext(Aa);return b.jsx(ie.span,{className:ce(n==null?void 0:n.label,e),"data-slot":"chip-label",...r,children:t})},Tr=Object.assign(Ni,{Root:Ni,Label:Fa}),Br=a.createContext({}),Kn=({children:t,className:e,color:r,size:n,...o})=>{const i=a.useMemo(()=>nd({color:r,size:n}),[r,n]);return b.jsx(Cd,{"data-slot":"progress-bar",...o,className:je(e,i.base()),children:l=>b.jsx(Br,{value:{slots:i,state:l},children:typeof t=="function"?t(l):t})})};Kn.displayName="HeroUI.ProgressBar";const Oa=({children:t,className:e,...r})=>{const{slots:n,state:o}=a.useContext(Br);return b.jsx(ie.span,{className:ce(n==null?void 0:n.output,e),"data-slot":"progress-bar-output",...r,children:t??(o==null?void 0:o.valueText)})};Oa.displayName="HeroUI.ProgressBar.Output";const ja=({children:t,className:e,...r})=>{const{slots:n}=a.useContext(Br);return b.jsx(ie.div,{className:ce(n==null?void 0:n.track,e),"data-slot":"progress-bar-track",...r,children:t})};ja.displayName="HeroUI.ProgressBar.Track";const Ba=({className:t,style:e,...r})=>{const{slots:n,state:o}=a.useContext(Br);return b.jsx(ie.div,{className:ce(n==null?void 0:n.fill,t),"data-slot":"progress-bar-fill",style:{...e,width:o!=null&&o.isIndeterminate?void 0:`${(o==null?void 0:o.percentage)??0}%`},...r})};Ba.displayName="HeroUI.ProgressBar.Fill";const sr=Object.assign(Kn,{Root:Kn,Output:Oa,Track:ja,Fill:Ba}),Di=({className:t,orientation:e,variant:r,...n})=>{const o=Wt(Jn),i=e??(o==null?void 0:o.orientation)??"horizontal";return b.jsx($p,{"data-orientation":i,"data-slot":"separator",orientation:i,className:ld({orientation:i,variant:r,className:t}),...n})},Vh=Object.assign(Di,{Root:Di}),Gt=a.createContext({}),Li=({children:t,className:e,status:r,...n})=>{const o=a.useMemo(()=>Zu({status:r}),[r]);return b.jsx(Gt,{value:{slots:o,status:r},children:b.jsx(Yn,{value:{variant:"default"},children:b.jsx(ie.div,{className:o==null?void 0:o.base({className:e}),"data-slot":"alert-root",...n,children:t})})})},Hh=({children:t,className:e,...r})=>{const{slots:n,status:o}=a.useContext(Gt),i=()=>{switch(o){case"accent":return b.jsx(zo,{"data-slot":"alert-default-icon"});case"success":return b.jsx(Jd,{"data-slot":"alert-default-icon"});case"warning":return b.jsx(Xd,{"data-slot":"alert-default-icon"});case"danger":return b.jsx(Zd,{"data-slot":"alert-default-icon"});default:return b.jsx(zo,{"data-slot":"alert-default-icon"})}};return b.jsx(ie.div,{className:ce(n==null?void 0:n.indicator,e),"data-slot":"alert-indicator",...r,children:t??i()})},zh=({children:t,className:e,...r})=>{const{slots:n}=a.useContext(Gt);return b.jsx(ie.div,{className:ce(n==null?void 0:n.content,e),"data-slot":"alert-content",...r,children:t})},Wh=({children:t,className:e,...r})=>{const{slots:n}=a.useContext(Gt);return b.jsx(ie.p,{className:ce(n==null?void 0:n.title,e),"data-slot":"alert-title",...r,children:t})},Uh=({children:t,className:e,...r})=>{const{slots:n}=a.useContext(Gt);return b.jsx(ie.span,{className:ce(n==null?void 0:n.description,e),"data-slot":"alert-description",...r,children:t})},$t=Object.assign(Li,{Root:Li,Indicator:Hh,Content:zh,Title:Wh,Description:Uh}),ro=a.createContext({}),Gh=({children:t,className:e,variant:r,...n})=>{const o=a.useMemo(()=>od({variant:r}),[r]);return b.jsx(sh,{className:je(e,o.item()),"data-slot":"menu-item",...n,children:i=>b.jsx(ro,{value:{slots:o,state:i},children:typeof t=="function"?t(i):t})})},qh=({children:t,className:e,type:r="checkmark",...n})=>{const{slots:o,state:i}=a.useContext(ro),l=i==null?void 0:i.isSelected,s=typeof t=="function"?t(i??{}):t||(r==="dot"?b.jsx("svg",{"aria-hidden":"true","data-slot":"menu-item-indicator--dot",fill:"currentColor",fillRule:"evenodd",role:"presentation",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",children:b.jsx("path",{clipRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14",fillRule:"evenodd"})}):b.jsx("svg",{"aria-hidden":"true","data-slot":"menu-item-indicator--checkmark",fill:"none",role:"presentation",stroke:"currentColor",strokeDasharray:22,strokeDashoffset:l?44:66,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 17 18",children:b.jsx("polyline",{points:"1 9 7 14 15 4"})}));return b.jsx(ie.span,{"aria-hidden":"true",className:ce(o==null?void 0:o.indicator,e),"data-slot":"menu-item-indicator","data-type":r,"data-visible":l||void 0,...n,children:s})},Yh=({children:t,className:e,...r})=>{const{slots:n,state:o}=a.useContext(ro);if(!(o==null?void 0:o.hasSubmenu))return null;const s=t??b.jsx(qd,{});return b.jsx(ie.span,{"aria-hidden":"true",className:ce(n==null?void 0:n.submenuIndicator,e),"data-slot":"submenu-indicator",...r,children:s})},Xh=({children:t,className:e,...r})=>{const n=a.useMemo(()=>id({class:typeof e=="string"?e:void 0}),[e]);return b.jsx(lh,{className:n,...r,children:t})},_r=a.createContext({}),Ii=({children:t,...e})=>{const r=a.useMemo(()=>td(),[]);return b.jsx(_r,{value:{slots:r},children:b.jsx(th,{...e,children:t})})},Zh=({children:t,className:e,...r})=>{const{slots:n}=a.useContext(_r);return b.jsx(Al,{className:je(e,n==null?void 0:n.trigger()),"data-slot":"dropdown-trigger",...r,children:o=>b.jsx(b.Fragment,{children:typeof t=="function"?t(o):t})})},Jh=({children:t,className:e,placement:r,...n})=>{const{slots:o}=a.useContext(_r);return b.jsx(Yn,{value:{variant:"default"},children:b.jsx(zf,{...n,className:je(e,o==null?void 0:o.popover()),"data-slot":"dropdown-popover",placement:r,children:t})})};function Qh({className:t,...e}){const{slots:r}=a.useContext(_r);return b.jsx(nh,{className:je(t,r==null?void 0:r.menu()),"data-selection-mode":e.selectionMode,"data-slot":"dropdown-menu",...e})}const eb=t=>b.jsx(Gh,{...t}),tb=t=>b.jsx(Yh,{...t}),rb=({children:t,...e})=>b.jsx(rh,{"data-slot":"dropdown-submenu-trigger",...e,children:t}),nb=t=>b.jsx(qh,{...t}),ob=t=>b.jsx(Xh,{...t}),xt=Object.assign(Ii,{Root:Ii,Trigger:Zh,Popover:Jh,Menu:Qh,Section:ob,Item:eb,ItemIndicator:nb,SubmenuIndicator:tb,SubmenuTrigger:rb}),ib={easy:"GREEN",moderate:"ORANGE",difficult:"RED"},lb={easy:"Easy",moderate:"Moderate",difficult:"Difficult"};function sb(){return b.jsxs("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"size-[1em]",children:[b.jsx("path",{d:"M12 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"}),b.jsx("path",{d:"m13.4 10.6 3.6-3.6"}),b.jsx("path",{d:"M3.3 16a9 9 0 1 1 17.4 0"})]})}function _a({difficulty:t,label:e,showIcon:r=!0,size:n="md",className:o}){const i=st[ib[t]];return b.jsxs(Tr,{variant:"soft",size:n,className:ee(o),style:{backgroundColor:Rt(i,.15),color:i},children:[r&&b.jsx(sb,{}),b.jsx(Tr.Label,{children:e??lb[t]})]})}const Ki=b.jsx("path",{d:"M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0ZM12 9v4M12 17h.01"}),Ai=b.jsxs(b.Fragment,{children:[b.jsx("circle",{cx:"12",cy:"12",r:"9"}),b.jsx("path",{d:"M12 16v-4M12 8h.01"})]}),ab=b.jsxs(b.Fragment,{children:[b.jsx("circle",{cx:"12",cy:"12",r:"9"}),b.jsx("path",{d:"m8.5 12 2.5 2.5 4.5-5"})]}),cb={note:Ai,info:Ai,tip:ab,caution:Ki,danger:Ki};function ub({type:t}){return b.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"size-5",children:cb[t]})}function db({type:t="caution",title:e,icon:r,children:n,className:o}){const i=e===void 0?fr[t]:e,l=Bi(t);return b.jsxs($t,{className:ee("border",o),style:{backgroundColor:Rt(l,.1),borderColor:l},children:[b.jsx($t.Indicator,{style:{color:l},children:r??b.jsx(ub,{type:t})}),b.jsxs($t.Content,{children:[i!=null&&b.jsx($t.Title,{children:i}),b.jsx($t.Description,{children:n})]})]})}const fb=4/3;function Va(t){return Math.round(t*3/4)}function pb(t,e,r){const{x:n,y:o,width:i}=t;if(i<=0||n<0||o<0)return!1;const l=Va(i);return n+i<=e&&o+l<=r}function hb(t,e,r,n,o){if(n<=0||o<=0||e<=0||r<=0||!pb(t,e,r))return null;const i=n/t.width;return{position:"absolute",width:i*e,height:i*r,left:-t.x*i,top:-t.y*i,maxWidth:"none"}}function bb({src:t}){const e=a.useRef(null);return a.useEffect(()=>{const r=e.current;if(!r)return;let n=!1,o=null,i=null;return import("online-3d-viewer").then(l=>{if(n)return;const s=new l.EmbeddedViewer(r,{projectionMode:l.ProjectionMode.Orthographic,backgroundColor:new l.RGBAColor(219,234,254,255),defaultColor:new l.RGBColor(30,64,175),onModelLoaded:()=>{const c=s.GetViewer();c.SetNavigationMode(l.NavigationMode.FreeOrbit),c.SetUpVector(l.Direction.Z,!1);const u=c.GetBoundingSphere(()=>!0);c.FitSphereToWindow(u,!1)}});i=s,s.LoadModelFromUrlList([t]),typeof ResizeObserver<"u"&&(o=new ResizeObserver(()=>{s.Resize()}),o.observe(r))}),()=>{n=!0,o==null||o.disconnect(),i==null||i.Destroy()}},[t]),b.jsx("div",{ref:e,className:"absolute inset-0 [&_canvas]:size-full!","aria-label":"Interactive 3D model",role:"img"})}function mb({src:t,type:e,displayRegion:r}){const n=a.useRef(null),[o,i]=a.useState(null),[l,s]=a.useState(null),c=a.useCallback(()=>{const g=n.current;if(!g)return;const{width:y,height:v}=g.getBoundingClientRect();y>0&&v>0&&s({width:y,height:v})},[]);a.useEffect(()=>{if(!r)return;c();const g=n.current;if(!g)return;const y=new ResizeObserver(c);return y.observe(g),()=>y.disconnect()},[r,c]);const u=r&&o&&l&&hb(r,o.width,o.height,l.width,l.height),d=!!u,f="size-full object-cover object-center",m=g=>{const y=g.currentTarget;y.naturalWidth>0&&y.naturalHeight>0&&i({width:y.naturalWidth,height:y.naturalHeight})},p=g=>{const y=g.currentTarget;y.videoWidth>0&&y.videoHeight>0&&i({width:y.videoWidth,height:y.videoHeight})};return e==="model"?b.jsx(bb,{src:t}):b.jsx("div",{ref:n,className:"absolute inset-0",children:e==="video"?b.jsx("video",{src:t,controls:!0,className:d?"absolute max-w-none":f,style:d&&u?u:void 0,onLoadedMetadata:r?p:void 0}):b.jsx("img",{src:t,className:d?"absolute max-w-none":f,style:d&&u?u:void 0,onLoad:r?m:void 0})})}function gb(t){return t.type==="circle"}function yb(t){return t.type==="rectangle"}function vb(t,e){const r=t.id??e,n=t.color??"GREY",o=st[n];if(gb(t))return b.jsx("div",{role:"img","aria-label":t.title,className:"pointer-events-none absolute rounded-full border-2",style:{left:`${t.x}%`,top:`${t.y}%`,width:`${t.radius*2}%`,aspectRatio:"1",transform:"translate(-50%, -50%)",borderColor:o,backgroundColor:Rt(o,.1)}},r);if(yb(t)){const i=Math.min(t.x1,t.x2),l=Math.min(t.y1,t.y2),s=Math.abs(t.x2-t.x1),c=Math.abs(t.y2-t.y1);return b.jsx("div",{role:"img","aria-label":t.title,className:"pointer-events-none absolute border-2",style:{left:`${i}%`,top:`${l}%`,width:`${s}%`,height:`${c}%`,borderColor:o,backgroundColor:Rt(o,.1)}},r)}return b.jsx("span",{role:"img","aria-label":t.title,style:{left:`${t.x}%`,top:`${t.y}%`,backgroundColor:o,color:Oi(o)},className:"absolute flex min-h-6 min-w-6 -translate-x-1/2 -translate-y-1/2 items-center justify-center rounded-full px-1.5 text-xs font-semibold shadow ring-2 ring-background",children:t.label},r)}function Ha({src:t,type:e="image",annotations:r=[],displayRegion:n,className:o}){return b.jsx("figure",{className:ee("flex flex-col gap-2",o),children:b.jsxs("div",{className:"relative aspect-[4/3] overflow-hidden rounded-lg border border-default bg-default-soft",children:[b.jsx(mb,{src:t,type:e,displayRegion:n}),r.map(vb)]})})}function $b({name:t,thumbnail:e,href:r,quantity:n,price:o,children:i,className:l}){return b.jsxs("li",{className:ee("flex items-center gap-3 py-3 first:pt-0 last:pb-0",l),children:[e&&b.jsx("img",{src:e,alt:"",className:"size-12 shrink-0 rounded-md border border-default object-cover"}),b.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[r?b.jsx(to,{href:r,className:"font-medium",children:t}):b.jsx("span",{className:"font-medium",children:t}),i!=null&&b.jsx("span",{className:"text-sm text-default-500",children:i})]}),n!=null&&b.jsxs("span",{className:"shrink-0 text-sm text-default-500",children:["×",n]}),o!=null&&b.jsx("span",{className:"shrink-0 text-sm font-medium",children:o})]})}function xb({title:t="What you need",children:e,className:r}){return b.jsxs(kt,{className:ee("w-full",r),children:[t!=null&&b.jsx(kt.Header,{children:b.jsx(kt.Title,{children:t})}),b.jsx(kt.Content,{children:b.jsx("ul",{className:"flex flex-col divide-y divide-default",children:e})})]})}const wb=Object.assign(xb,{Item:$b});function za(t){return null}function Eb(t){return a.isValidElement(t)&&t.type===za}function Wa(){return b.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round",className:"mr-1 size-4 shrink-0",children:b.jsx("path",{d:"m6 9 6 6 6-6"})})}function Fi(){return b.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"size-4",children:b.jsx("path",{d:"M10 13a5 5 0 0 0 7.07 0l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71M14 11a5 5 0 0 0-7.07 0l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"})})}function Sb(){return b.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"size-4",children:b.jsx("path",{d:"M12 19V5M5 12l7-7 7 7"})})}function Cb(){return b.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round",className:"size-3.5",children:b.jsx("path",{d:"M18 6 6 18M6 6l12 12"})})}function Pb(){return b.jsxs("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",className:"size-4",children:[b.jsx("circle",{cx:"9",cy:"6",r:"1.4"}),b.jsx("circle",{cx:"15",cy:"6",r:"1.4"}),b.jsx("circle",{cx:"9",cy:"12",r:"1.4"}),b.jsx("circle",{cx:"15",cy:"12",r:"1.4"}),b.jsx("circle",{cx:"9",cy:"18",r:"1.4"}),b.jsx("circle",{cx:"15",cy:"18",r:"1.4"})]})}function An(t){const{href:e,download:r,external:n}=t.props;return{href:e,download:r,...n?{target:"_blank",rel:"noreferrer noopener"}:{}}}function kb(t,e,r,n){return ee(ze({variant:t,size:e,fullWidth:!0}),"!min-h-0 !justify-center !rounded-none",r&&"!rounded-b-3xl",n&&"border-b border-separator","hover:!bg-[var(--button-bg-hover)] data-[hovered=true]:!bg-[var(--button-bg-hover)]")}function Fn(){return b.jsx("span",{"aria-hidden":"true",className:zn({orientation:"horizontal"}).separator()})}function Tb({variant:t="primary",size:e="md",icon:r,menuLabel:n="More download options",editing:o,children:i,className:l}){const s=a.Children.toArray(i).filter(Eb);if(o)return b.jsx(Rb,{items:s,variant:t,size:e,icon:r,menuLabel:n,editing:o,className:l});if(s.length===0)return null;const[c,...u]=s;if(u.length===0){const d=ze({variant:"secondary",size:e});return b.jsxs(to,{...An(c),className:ee(d,l),children:[r,c.props.children]})}return b.jsx(Mb,{items:s,variant:t,size:e,icon:r,menuLabel:n,className:l})}function Mb({items:t,variant:e,size:r,icon:n,menuLabel:o,className:i}){const l=a.useRef(null),[s,c]=a.useState(),[u]=t,d=ze({variant:e,size:r});return a.useLayoutEffect(()=>{const f=l.current;if(!f)return;const m=()=>c(f.offsetWidth);m();const p=new ResizeObserver(m);return p.observe(f),()=>p.disconnect()},[t,e,r]),b.jsxs("div",{ref:l,className:ee(zn({orientation:"horizontal"}).base(),i),children:[b.jsxs(to,{...An(u),className:d,children:[n,u.props.children]}),b.jsxs(xt,{children:[b.jsxs(xt.Trigger,{"aria-label":o,className:ee(ze({variant:e,size:r,isIconOnly:!0}),"!inline-flex items-center justify-center"),children:[b.jsx(Fn,{}),b.jsx(Wa,{})]}),b.jsx(xt.Popover,{placement:"bottom",offset:0,triggerRef:l,className:"!max-w-none !p-0",style:s?{minWidth:s}:void 0,children:b.jsx(xt.Menu,{className:"!gap-0 !p-0",children:t.map((f,m)=>b.jsxs(xt.Item,{...An(f),className:kb("secondary",r,m===t.length-1,m<t.length-1),children:[m===0?n:null,f.props.children]},m))})})]})]})}function Rb({items:t,variant:e,size:r,icon:n,menuLabel:o,editing:i,className:l}){const[s,c]=a.useState(!1),[u,d]=a.useState(null),[f,m]=a.useState(null),{onAddItem:p,onRemoveItem:g,onReorderItem:y,onSelectItem:v}=i,E=t[0],$=t.slice(1),P=ze({variant:e,size:r}),k=y!=null,L=()=>{d(null),m(null)},j=T=>{u!=null&&u!==T&&(y==null||y(u,T)),L()};return b.jsxs("div",{className:ee("relative inline-flex flex-col items-start",l),children:[b.jsxs("div",{className:zn({orientation:"horizontal"}).base(),children:[b.jsxs("span",{className:ee(P,"cursor-text"),children:[n,E?E.props.children:b.jsx("span",{className:"opacity-60",children:"Add a link"})]}),E&&v&&b.jsxs("button",{type:"button",onClick:()=>v(0),"aria-label":"Edit primary link",className:ze({variant:e,size:r,isIconOnly:!0}),children:[b.jsx(Fn,{}),b.jsx(Fi,{})]}),b.jsxs("button",{type:"button",onClick:()=>c(T=>!T),"aria-label":o,"aria-expanded":s,className:ze({variant:e,size:r,isIconOnly:!0}),children:[!(E&&v)&&b.jsx(Fn,{}),b.jsx(Wa,{})]})]}),s&&b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"fixed inset-0 z-40",onClick:()=>c(!1),"aria-hidden":"true"}),b.jsxs("div",{className:"absolute left-0 top-full z-50 mt-2 w-64 rounded-lg border border-default-200 bg-background p-2 shadow-lg",children:[$.length>0?b.jsx("ul",{className:"flex flex-col gap-0.5",children:$.map((T,R)=>{const I=R+1;return b.jsxs("li",{draggable:k||void 0,onDragStart:k?()=>d(I):void 0,onDragOver:k?K=>{K.preventDefault(),m(I)}:void 0,onDrop:k?K=>{K.preventDefault(),j(I)}:void 0,onDragEnd:k?L:void 0,className:ee("flex items-center gap-1.5 rounded-md px-1.5 py-1 transition",k&&"cursor-grab",u===I&&"opacity-40",f===I&&u!==I&&"ring-2 ring-accent"),children:[k&&b.jsx("span",{className:"shrink-0 text-default-400",children:b.jsx(Pb,{})}),b.jsx("span",{className:"min-w-0 flex-1 text-sm",children:T.props.children}),y&&b.jsx("button",{type:"button",onClick:()=>y(I,0),"aria-label":"Make default download",className:"shrink-0 rounded p-0.5 text-default-500 transition hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent",children:b.jsx(Sb,{})}),v&&b.jsx("button",{type:"button",onClick:()=>v(I),"aria-label":"Edit link",className:"shrink-0 rounded p-0.5 text-default-500 transition hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent",children:b.jsx(Fi,{})}),g&&b.jsx("button",{type:"button",onClick:()=>g(I),"aria-label":"Remove option",className:"shrink-0 rounded p-0.5 text-default-500 transition hover:text-danger focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent",children:b.jsx(Cb,{})})]},I)})}):b.jsx("p",{className:"px-1.5 py-1 text-sm text-default-500",children:"No other options yet."}),p&&b.jsx("button",{type:"button",onClick:p,className:"mt-1 w-full rounded-md px-1.5 py-1 text-left text-sm font-medium text-accent transition hover:bg-default-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent",children:"+ Add option"})]})]})]})}const Nb=Object.assign(Tb,{Item:za});function Db(t,e,r){const[n,o]=a.useState(e),i=t!==void 0,l=i?t:n,s=a.useCallback(c=>{i||o(c),r==null||r(c)},[i,r]);return[l,s]}const Ua=3,Lb="#3ABF84",Ib="#34B07A",Kb="#0B7A47",Ab={caution:fr.caution,reminder:"Reminder",note:fr.note};function Fb(){return b.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"size-5 shrink-0 text-danger",children:b.jsx("path",{d:"M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0ZM12 9v4M12 17h.01"})})}function Ob(){return b.jsxs("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"size-5 shrink-0 text-default-500",children:[b.jsx("circle",{cx:"12",cy:"12",r:"9"}),b.jsx("path",{d:"M12 16v-4M12 8h.01"})]})}function jb(){return b.jsx("span",{"aria-hidden":"true",className:"mt-0.5 flex size-6 shrink-0 items-center justify-center rounded bg-default-100",children:b.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:"size-3.5 text-default-500",children:b.jsx("path",{d:"M16 12V4h1V3H7v1h1v8l-2 2v1h5.2c-.2.6-.3 1.2-.3 1.8 0 2.2 1.8 4 4 4s4-1.8 4-4c0-.6-.1-1.2-.3-1.8H18v-1l-2-2z"})})})}function Bb(){return b.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"size-7",children:b.jsx("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4M17 8l-5-5-5 5M12 3v12"})})}function _b(){return b.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round",className:"size-3",children:b.jsx("path",{d:"M18 6 6 18M6 6l12 12"})})}function Vb(t){return a.isValidElement(t)&&t.type===Ha}function Hb(t){return a.isValidElement(t)&&t.type===Ya}function zb(t){return a.isValidElement(t)?a.Children.toArray(t.props.children).filter(Hb).length:0}function Wb(t,e=!1){let r=null,n=null;for(const i of a.Children.toArray(t))a.isValidElement(i)&&(i.type===Ga&&(r=i.props.children),i.type===qa&&(n=i));const o=a.Children.toArray(r).filter(Vb);return zb(n),{figures:o.slice(0,Ua),bullets:n}}function Ga(t){return null}function qa({children:t,className:e}){return b.jsx("ul",{className:ee("flex flex-col gap-2",e),children:t})}function Ya({variant:t="dot",color:e="GREY",label:r,hideLabel:n=!1,onMarkerPress:o,markerAriaLabel:i,children:l,className:s}){if(t==="dot")return b.jsxs("li",{className:ee("flex gap-2.5",s),children:[o?b.jsx("button",{type:"button",onClick:o,"aria-label":i??"Change bullet style",className:"mt-1.5 size-2 shrink-0 cursor-pointer rounded-full outline-none transition hover:ring-2 hover:ring-accent focus-visible:ring-2 focus-visible:ring-accent",style:{backgroundColor:st[e]}}):b.jsx("span",{"aria-hidden":"true",className:"mt-1.5 size-2 shrink-0 rounded-full",style:{backgroundColor:st[e]}}),b.jsx("span",{className:"flex-1",children:l})]});if(t==="button")return b.jsxs("li",{className:ee("flex items-center gap-2.5",s),children:[o&&b.jsx("button",{type:"button",onClick:o,"aria-label":i??"Change bullet style",className:"size-2 shrink-0 cursor-pointer rounded-full bg-default-300 outline-none transition hover:ring-2 hover:ring-accent focus-visible:ring-2 focus-visible:ring-accent"}),b.jsx("div",{className:"min-w-0 flex-1",children:l})]});const c=r??Ab[t],u=t==="caution"?b.jsx(Fb,{}):t==="reminder"?b.jsx(jb,{}):b.jsx(Ob,{});return b.jsxs("li",{className:ee("flex gap-2.5",t==="caution"&&"text-danger",s),children:[o?b.jsx("button",{type:"button",onClick:o,"aria-label":i??"Change bullet style",className:"shrink-0 cursor-pointer rounded outline-none transition hover:opacity-70 focus-visible:ring-2 focus-visible:ring-accent",children:u}):u,b.jsxs("span",{className:"flex-1",children:[!n&&b.jsxs(b.Fragment,{children:[b.jsxs("span",{className:"font-semibold",children:[c,":"]})," "]}),l]})]})}function Ub(){return b.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round",className:"size-4",children:b.jsx("path",{d:"m5 12 5 5 9-11"})})}function Gb({figures:t,bullets:e,mediaEditing:r}){const n=r!=null,[o,i]=a.useState(0),[l,s]=a.useState(null),[c,u]=a.useState(null),d=(r==null?void 0:r.activeIndex)??o,f=t[d]??t[0],m=$=>{var P;i($),(P=r==null?void 0:r.onSelectImage)==null||P.call(r,$)},p=n&&(r==null?void 0:r.onReorderImage)!=null&&t.length>1,g=()=>{s(null),u(null)},y=$=>{var P;l!=null&&l!==$&&((P=r==null?void 0:r.onReorderImage)==null||P.call(r,l,$)),g()},v=n&&((r==null?void 0:r.canAddImage)??!0)&&t.length>=1&&t.length<Ua,E=n?t.length>=1:t.length>1;return b.jsxs("div",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2",children:[b.jsx("div",{className:"min-w-0",children:f?n?b.jsxs("div",{className:"group relative",children:[a.cloneElement(f,{className:ee("w-full",f.props.className)}),b.jsx("button",{type:"button",onClick:()=>{var $;return($=r==null?void 0:r.onReplaceImage)==null?void 0:$.call(r,d)},className:"absolute inset-0 flex items-center justify-center rounded-lg text-sm font-semibold text-background opacity-0 transition hover:bg-foreground/40 hover:opacity-100 focus-visible:bg-foreground/40 focus-visible:opacity-100 focus-visible:outline-none",children:"Replace image"})]}):a.cloneElement(f,{className:ee("w-full",f.props.className)}):n&&b.jsxs("button",{type:"button",onClick:()=>{var $;return($=r==null?void 0:r.onAddImage)==null?void 0:$.call(r)},className:"flex aspect-[4/3] w-full flex-col items-center justify-center gap-2 rounded-lg border-2 border-dashed border-default bg-default-soft text-default-500 transition hover:border-accent hover:text-accent focus-visible:border-accent focus-visible:text-accent focus-visible:outline-none",children:[b.jsx(Bb,{}),b.jsx("span",{className:"text-sm font-medium",children:"Add image"})]})}),b.jsxs("div",{className:"flex min-w-0 flex-col gap-4",children:[(E||v)&&b.jsxs("div",{className:"flex flex-wrap gap-2",role:"group","aria-label":"Step images",children:[t.map(($,P)=>n?b.jsxs("div",{className:ee("relative rounded-md transition-shadow",p&&"cursor-grab",l===P&&"opacity-40",c===P&&l!==P&&"ring-2 ring-accent ring-offset-2 ring-offset-background"),draggable:p||void 0,onDragStart:p?k=>{k.dataTransfer.effectAllowed="move",s(P)}:void 0,onDragOver:p?k=>{k.preventDefault(),k.dataTransfer.dropEffect="move",u(P)}:void 0,onDrop:p?k=>{k.preventDefault(),y(P)}:void 0,onDragEnd:p?g:void 0,children:[b.jsx("button",{type:"button",className:ee("block overflow-hidden rounded-md border-2 transition-[box-shadow,opacity,border-color]",P===d?"border-accent shadow-md":"border-default opacity-80 hover:opacity-100"),onClick:()=>m(P),"aria-label":`Image ${P+1}`,"aria-pressed":P===d,children:b.jsx("img",{src:$.props.src,alt:"",draggable:!1,className:"size-16 object-cover sm:size-20"})}),b.jsx("button",{type:"button",onClick:()=>{var k;return(k=r==null?void 0:r.onRemoveImage)==null?void 0:k.call(r,P)},"aria-label":`Remove image ${P+1}`,className:"absolute -right-1.5 -top-1.5 flex size-5 items-center justify-center rounded-full bg-foreground text-background shadow transition hover:bg-danger focus-visible:bg-danger focus-visible:outline-none",children:b.jsx(_b,{})})]},$.key??$.props.src??P):b.jsx("button",{type:"button",className:ee("overflow-hidden rounded-md border-2 transition-[box-shadow,opacity,border-color]",P===d?"border-accent shadow-md":"border-default opacity-80 hover:opacity-100"),onMouseEnter:()=>m(P),onFocus:()=>m(P),"aria-label":`Image ${P+1}`,"aria-pressed":P===d,children:b.jsx("img",{src:$.props.src,alt:"",className:"size-16 object-cover sm:size-20"})},$.key??$.props.src??P)),v&&b.jsx("button",{type:"button",onClick:()=>{var $;return($=r==null?void 0:r.onAddImage)==null?void 0:$.call(r)},"aria-label":"Add image",className:"flex size-16 items-center justify-center rounded-md border-2 border-dashed border-default text-default-500 transition hover:border-accent hover:text-accent focus-visible:border-accent focus-visible:text-accent focus-visible:outline-none sm:size-20",children:b.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"size-6",children:b.jsx("path",{d:"M12 5v14M5 12h14"})})})]}),e]})]})}function qb({number:t,title:e,isCompleted:r,defaultCompleted:n=!1,onCompletedChange:o,completable:i=!0,mediaEditing:l,children:s,className:c}){const[u,d]=Db(r,n,o),f=a.useId(),{figures:m,bullets:p}=Wb(s,l!=null);return b.jsxs("section",{"aria-labelledby":e!=null?f:void 0,"data-completed":u||void 0,className:ee("flex flex-col gap-4 transition-opacity",u&&"opacity-60",c),children:[b.jsxs("header",{className:"flex flex-col gap-3 sm:flex-row sm:items-center",children:[b.jsxs("div",{className:"flex min-w-0 items-center gap-3 sm:flex-1",children:[t!=null&&b.jsx("span",{className:ee("flex size-8 shrink-0 items-center justify-center rounded-md text-sm font-bold tabular-nums",u?"bg-success text-success-foreground":"bg-foreground text-background"),children:u?b.jsx(Ub,{}):t}),e!=null&&b.jsx("h3",{id:f,className:"min-w-0 flex-1 text-lg font-semibold leading-tight",children:e})]}),i&&b.jsx(xh,{variant:u?"primary":"secondary",size:"lg",onPress:()=>d(!u),"aria-pressed":u,className:ee("ml-auto shrink-0",u&&"guide-step-complete-button"),style:u?{"--guide-step-complete-bg":Lb,"--guide-step-complete-bg-hover":Ib,"--guide-step-complete-checkbox":Kb}:void 0,children:b.jsx(lr,{isSelected:u,isReadOnly:!0,"aria-hidden":!0,className:"pointer-events-none gap-2 text-inherit",children:b.jsxs(lr.Content,{className:"flex items-center gap-2 whitespace-nowrap",children:[b.jsx(lr.Control,{children:b.jsx(lr.Indicator,{})}),"Mark complete"]})})})]}),b.jsx(Gb,{figures:m,bullets:p,mediaEditing:l})]})}const Yb=Object.assign(qb,{Media:Ga,Bullets:qa,Bullet:Ya});function Xb(t){return a.isValidElement(t)}function Zb({children:t,showProgress:e=!0,onProgressChange:r,className:n}){const o=a.Children.toArray(t).filter(Xb),i=o.length,[l,s]=a.useState(()=>Object.fromEntries(o.map((u,d)=>[u.props.number??d+1,!!(u.props.defaultCompleted??u.props.isCompleted)]))),c=Object.values(l).filter(Boolean).length;return a.useEffect(()=>{r==null||r({completed:c,total:i})},[c,i,r]),b.jsxs("div",{className:ee("flex flex-col gap-8",n),children:[e&&i>0&&b.jsx("div",{className:"sticky top-2 mx-2 z-10",children:b.jsx(kt,{className:"w-full px-6 py-4",children:b.jsxs(sr,{value:c,maxValue:i,"aria-label":"Guide progress",className:"flex flex-col gap-1.5",children:[b.jsxs("div",{className:"flex items-center justify-between text-sm text-default-500",children:[b.jsx("span",{children:"Guide Progress"}),b.jsxs(sr.Output,{children:[c," / ",i," steps"]})]}),b.jsx(sr.Track,{className:"h-2 overflow-hidden rounded-full bg-default-soft",children:b.jsx(sr.Fill,{className:"h-full rounded-full bg-success transition-[width]"})})]})})}),b.jsx("ol",{className:"flex flex-col",children:o.map((u,d)=>{const f=u.props.number??d+1;return b.jsxs("li",{children:[a.cloneElement(u,{number:f,isCompleted:l[f]??!1,onCompletedChange:m=>{var p,g;s(y=>({...y,[f]:m})),(g=(p=u.props).onCompletedChange)==null||g.call(p,m)}}),d<o.length-1&&b.jsx(Vh,{className:"my-8"})]},u.key??f)})})]})}function Jb({title:t,difficulty:e,timeEstimate:r,meta:n,className:o}){const i=e!=null||r!=null;return b.jsxs("header",{className:ee("flex flex-col gap-4 border-b border-default pb-6 md:[grid-area:header]",o),children:[b.jsxs("div",{className:"flex flex-col gap-1.5",children:[b.jsx("h1",{className:"text-3xl font-bold tracking-tight",children:t}),n!=null&&b.jsx("div",{className:"text-sm text-default-500",children:n})]}),i&&b.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e!=null&&b.jsx(_a,{difficulty:e}),r!=null&&b.jsx(Tr,{variant:"soft",color:"default",children:b.jsx(Tr.Label,{children:r})})]})]})}function Qb({children:t,className:e}){return b.jsx("div",{className:ee("min-w-0 md:[grid-area:intro]",e),children:b.jsx("div",{className:"max-w-prose text-default-700",children:t})})}function em({children:t,className:e}){return b.jsx("aside",{className:ee("min-w-0 md:[grid-area:sidebar]",e),children:b.jsx("div",{className:"flex flex-col gap-4",children:t})})}function tm({children:t,className:e}){return b.jsx("main",{className:ee("min-w-0 w-full md:[grid-area:main]",e),children:t})}const rm=Object.assign(function({children:e,className:r}){return b.jsx("div",{className:ee("mx-auto grid w-full max-w-6xl grid-cols-1 gap-x-8 gap-y-8 md:grid-cols-[minmax(0,1fr)_20rem] md:[grid-template-areas:'header_header'_'intro_sidebar'_'main_main']",r),children:e})},{Header:Jb,Intro:Qb,Sidebar:em,Content:tm});exports.COLORS=st;exports.Callout=db;exports.DISPLAY_REGION_ASPECT=fb;exports.DifficultyBadge=_a;exports.GuideLayout=rm;exports.GuideStep=Yb;exports.GuideStepList=Zb;exports.LinkButton=Nb;exports.MediaFigure=Ha;exports.ToolList=wb;exports.calloutTypeColor=ji;exports.calloutTypeHex=Bi;exports.calloutTypeLabel=fr;exports.displayRegionHeight=Va;exports.hexToRgba=Rt;exports.markerTextColor=Oi;
24
29
  //# sourceMappingURL=diy-guides-ui.cjs.map