cekat-ui 1.3.16 → 1.3.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +306 -7
- package/dist/index.d.ts +306 -7
- package/dist/index.mjs +22090 -15241
- package/dist/index.umd.js +16 -16
- package/dist/style.css +236 -6
- package/package.json +2 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
(function(R,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],s):(R=typeof globalThis<"u"?globalThis:R||self,s(R.CekatUI={},R.React$1,R.$3wX5A$reactdom))})(this,(function(R,s,Et){"use strict";function Cg(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const h=Cg(s);var Eg={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};const Ae=(t,e,n,r)=>{const i=s.forwardRef(({color:o="currentColor",size:l=24,stroke:a=2,title:u,className:d,children:c,...f},p)=>s.createElement("svg",{ref:p,...Eg[t],width:l,height:l,className:["tabler-icon",`tabler-icon-${e}`,d].join(" "),strokeWidth:a,stroke:o,...f},[u&&s.createElement("title",{key:"svg-title"},u),...r.map(([m,b])=>s.createElement(m,b)),...Array.isArray(c)?c:[c]]));return i.displayName=`${n}`,i};const vr=Ae("outline","alert-circle","AlertCircle",[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 8v4",key:"svg-1"}],["path",{d:"M12 16h.01",key:"svg-2"}]]);const wg=Ae("outline","alert-triangle","AlertTriangle",[["path",{d:"M12 9v4",key:"svg-0"}],["path",{d:"M10.363 3.591l-8.106 13.534a1.914 1.914 0 0 0 1.636 2.871h16.214a1.914 1.914 0 0 0 1.636 -2.87l-8.106 -13.536a1.914 1.914 0 0 0 -3.274 0",key:"svg-1"}],["path",{d:"M12 16h.01",key:"svg-2"}]]);const Sg=Ae("outline","arrow-down","ArrowDown",[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M18 13l-6 6",key:"svg-1"}],["path",{d:"M6 13l6 6",key:"svg-2"}]]);const Pg=Ae("outline","arrow-up","ArrowUp",[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M18 11l-6 -6",key:"svg-1"}],["path",{d:"M6 11l6 -6",key:"svg-2"}]]);const kg=Ae("outline","arrows-sort","ArrowsSort",[["path",{d:"M3 9l4 -4l4 4m-4 -4v14",key:"svg-0"}],["path",{d:"M21 15l-4 4l-4 -4m4 4v-14",key:"svg-1"}]]);const xr=Ae("outline","check","Check",[["path",{d:"M5 12l5 5l10 -10",key:"svg-0"}]]);const Cr=Ae("outline","chevron-down","ChevronDown",[["path",{d:"M6 9l6 6l6 -6",key:"svg-0"}]]);const Dg=Ae("outline","chevron-right","ChevronRight",[["path",{d:"M9 6l6 6l-6 6",key:"svg-0"}]]);const Fi=Ae("outline","circle-check","CircleCheck",[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-0"}],["path",{d:"M9 12l2 2l4 -4",key:"svg-1"}]]);const Ng=Ae("outline","cloud-upload","CloudUpload",[["path",{d:"M7 18a4.6 4.4 0 0 1 0 -9a5 4.5 0 0 1 11 2h1a3.5 3.5 0 0 1 0 7h-1",key:"svg-0"}],["path",{d:"M9 15l3 -3l3 3",key:"svg-1"}],["path",{d:"M12 12l0 9",key:"svg-2"}]]);const En=Ae("outline","info-circle","InfoCircle",[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 9h.01",key:"svg-1"}],["path",{d:"M11 12h1v4h1",key:"svg-2"}]]);const Sa=Ae("outline","loader-2","Loader2",[["path",{d:"M12 3a9 9 0 1 0 9 9",key:"svg-0"}]]);const Tg=Ae("outline","search","Search",[["path",{d:"M3 10a7 7 0 1 0 14 0a7 7 0 1 0 -14 0",key:"svg-0"}],["path",{d:"M21 21l-6 -6",key:"svg-1"}]]);const Ag=Ae("outline","slash","Slash",[["path",{d:"M17 5l-10 14",key:"svg-0"}]]);const wn=Ae("outline","x","X",[["path",{d:"M18 6l-12 12",key:"svg-0"}],["path",{d:"M6 6l12 12",key:"svg-1"}]]);function Ue(...t){return(...e)=>{for(let n of t)typeof n=="function"&&n(...e)}}const de=typeof document<"u"?s.useLayoutEffect:()=>{},Er={prefix:String(Math.round(Math.random()*1e10)),current:0},Pa=s.createContext(Er),Ig=s.createContext(!1);let Bg=!!(typeof window<"u"&&window.document&&window.document.createElement),Mi=new WeakMap;function Fg(t=!1){let e=s.useContext(Pa),n=s.useRef(null);if(n.current===null&&!t){let r=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;if(r){let i=Mi.get(r);i==null?Mi.set(r,{id:e.current,state:r.memoizedState}):r.memoizedState!==i.state&&(e.current=i.id,Mi.delete(r))}n.current=++e.current}return n.current}function Mg(t){let e=s.useContext(Pa);e===Er&&!Bg&&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 n=Fg(!!t),r=e===Er&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${e.prefix}`;return t||`${r}-${n}`}function Kg(t){let e=s.useId(),[n]=s.useState(wt()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Er.prefix}`;return t||`${r}-${e}`}const Lg=typeof s.useId=="function"?Kg:Mg;function Og(){return!1}function zg(){return!0}function _g(t){return()=>{}}function wt(){return typeof s.useSyncExternalStore=="function"?s.useSyncExternalStore(_g,Og,zg):s.useContext(Ig)}function Vg(t){let[e,n]=s.useState(t),r=s.useRef(e),i=s.useRef(null),o=s.useRef(()=>{if(!i.current)return;let a=i.current.next();if(a.done){i.current=null;return}r.current===a.value?o.current():n(a.value)});de(()=>{r.current=e,i.current&&o.current()});let l=s.useCallback(a=>{i.current=a(r.current),o.current()},[o]);return[e,l]}let Hg=!!(typeof window<"u"&&window.document&&window.document.createElement),Zt=new Map,Jt;typeof FinalizationRegistry<"u"&&(Jt=new FinalizationRegistry(t=>{Zt.delete(t)}));let Ki=new WeakMap;function xe(t){let[e,n]=s.useState(t),r=s.useRef(null),i=Lg(e),o=s.useRef(null),l=Ki.get(o);if(Jt&&l!==i&&(l!=null&&Jt.unregister(o),Jt.register(o,i,o),Ki.set(o,i)),Hg){const a=Zt.get(i);a&&!a.includes(r)?a.push(r):Zt.set(i,[r])}return de(()=>{let a=i;return()=>{Jt&&(Jt.unregister(o),Ki.delete(o)),Zt.delete(a)}},[i]),s.useEffect(()=>{let a=r.current;return a&&n(a),()=>{a&&(r.current=null)}}),i}function jg(t,e){if(t===e)return t;let n=Zt.get(t);if(n)return n.forEach(i=>i.current=e),e;let r=Zt.get(e);return r?(r.forEach(i=>i.current=t),t):e}function dt(t=[]){let e=xe(),[n,r]=Vg(e),i=s.useCallback(()=>{r(function*(){yield e,yield document.getElementById(e)?e:void 0})},[e,r]);return de(i,[e,i,...t]),n}function Sn(...t){return t.length===1&&t[0]?t[0]:e=>{let n=!1;const r=t.map(i=>{const o=ka(i,e);return n||=typeof o=="function",o});if(n)return()=>{r.forEach((i,o)=>{typeof i=="function"?i():ka(t[o],null)})}}}function ka(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function Da(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=Da(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function q(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=Da(t))&&(r&&(r+=" "),r+=e);return r}function G(...t){let e={...t[0]};for(let n=1;n<t.length;n++){let r=t[n];for(let i in r){let o=e[i],l=r[i];typeof o=="function"&&typeof l=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?e[i]=Ue(o,l):(i==="className"||i==="UNSAFE_className")&&typeof o=="string"&&typeof l=="string"?e[i]=q(o,l):i==="id"&&o&&l?e.id=jg(o,l):i==="ref"&&o&&l?e.ref=Sn(o,l):e[i]=l!==void 0?l:o}}return e}function ke(t){const e=s.useRef(null),n=s.useRef(void 0),r=s.useCallback(i=>{if(typeof t=="function"){const o=t,l=o(i);return()=>{typeof l=="function"?l():o(null)}}else if(t)return t.current=i,()=>{t.current=null}},[t]);return s.useMemo(()=>({get current(){return e.current},set current(i){e.current=i,n.current&&(n.current(),n.current=void 0),i!=null&&(n.current=r(i))}}),[r])}const ct=Symbol("default");function De({values:t,children:e}){for(let[n,r]of t)e=s.createElement(n.Provider,{value:r},e);return e}function se(t){let{className:e,style:n,children:r,defaultClassName:i,defaultChildren:o,defaultStyle:l,values:a,render:u}=t;return s.useMemo(()=>{let d,c,f;return typeof e=="function"?d=e({...a,defaultClassName:i}):d=e,typeof n=="function"?c=n({...a,defaultStyle:l||{}}):c=n,typeof r=="function"?f=r({...a,defaultChildren:o}):r==null?f=o:f=r,{className:d??i,style:c||l?{...l,...c}:void 0,children:f??o,"data-rac":"",render:u?p=>u(p,a):void 0}},[e,n,r,i,o,l,a,u])}function Li(t,e){return n=>e(typeof t=="function"?t(n):t,n)}function ft(t,e){let n=s.useContext(t);if(e===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let r=e||ct;if(!n.slots[r]){let i=new Intl.ListFormat().format(Object.keys(n.slots).map(l=>`"${l}"`)),o=e?`Invalid slot "${e}".`:"A slot prop is required.";throw new Error(`${o} Valid slot names are ${i}.`)}return n.slots[r]}return n}function be(t,e,n){let r=ft(n,t.slot)||{},{ref:i,...o}=r,l=ke(s.useMemo(()=>Sn(e,i),[e,i])),a=G(o,t);return"style"in o&&o.style&&"style"in t&&t.style&&(typeof o.style=="function"||typeof t.style=="function"?a.style=u=>{let d=typeof o.style=="function"?o.style(u):o.style,c={...u.defaultStyle,...d},f=typeof t.style=="function"?t.style({...u,defaultStyle:c}):t.style;return{...c,...f}}:a.style={...o.style,...t.style}),[a,l]}function Qt(t=!0){let[e,n]=s.useState(t),r=s.useRef(!1),i=s.useCallback(o=>{r.current=!0,n(!!o)},[]);return de(()=>{r.current||n(!1)},[]),[i,e]}function Oi(t){const e=/^(data-.*)$/;let n={};for(const r in t)e.test(r)||(n[r]=t[r]);return n}function Rg(t,e,n){let{render:r,...i}=e,o=s.useRef(null),l=s.useMemo(()=>Sn(n,o),[n,o]);de(()=>{process.env.NODE_ENV!=="production"&&r&&(o.current?o.current.localName!==t&&console.warn(`Unexpected DOM element returned by custom \`render\` function. Expected <${t}>, got <${o.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,r]);let a={...i,ref:l};return r?r(a,void 0):s.createElement(t,a)}const Na={},ee=new Proxy({},{get(t,e){if(typeof e!="string")return;let n=Na[e];return n||(n=s.forwardRef(Rg.bind(null,e)),Na[e]=n),n}}),Wg="react-aria-clear-focus",Ug="react-aria-focus",le=t=>Gg(t)?t.document:Yg(t)?t:t?.ownerDocument??(typeof document<"u"?document:void 0),$e=t=>le(t)?.defaultView??(typeof window<"u"?window:void 0);function Ta(t){return t!==null&&typeof t=="object"&&"nodeType"in t&&typeof t.nodeType=="number"}function Gg(t){return typeof t=="object"&&t!=null&&"window"in t&&t.window===t}function Yg(t){return Ta(t)&&t.nodeType===9}function zi(t){return Ta(t)&&t.nodeType===11&&"host"in t}function Xg(t,e,n,r){if(n==null||t==null)return()=>{};let i=Array.isArray(t)?t:[t];for(let o of i)o.addEventListener(e,n,r);return()=>{for(let o of i)o.removeEventListener(e,n,r)}}let qg=!1;function nt(){return qg}function te(t,e){if(!nt())return e&&t?t.contains(e):!1;if(!t||!e)return!1;let n=e;for(;n!==null;){if(n===t)return!0;typeof n.assignedElements!="function"&&n.assignedSlot?.parentNode?n=n.assignedSlot.parentNode:zi(n)?n=n.host:n=n.parentNode}return!1}const pe=(t=document)=>{if(!nt())return t.activeElement;let e=t.activeElement;for(;e&&"shadowRoot"in e&&e.shadowRoot?.activeElement;)e=e.shadowRoot.activeElement;return e};function _(t){if(nt()&&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 Zg(t,e){if(e===null)return[];e=e??$e(t);let n=[e];if(!nt()||!t||t===e)return n;let r="getRootNode"in e?e.getRootNode():null,i=t.getRootNode()??null;for(;zi(i)&&i!==r;)n.push(i),i=i.host.getRootNode();return n}function Mt(t){if(!t)return!1;let e=t.getRootNode(),n=$e(t);if(!(e instanceof n.Document||e instanceof n.ShadowRoot))return!1;let r=e.activeElement;return r!=null&&t.contains(r)}function Aa(t){let e=Qg(le(t));e!==t&&(e&&Jg(e,t),t&&_i(t,e))}function Jg(t,e){t.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}function _i(t,e){t.dispatchEvent(new FocusEvent("focus",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:e}))}function Qg(t){let e=pe(t),n=e?.getAttribute("aria-activedescendant");return n&&t.getElementById(n)||e}function Ge(t){if(e3())t.focus({preventScroll:!0});else{let e=t3(t);t.focus(),n3(e)}}let wr=null;function e3(){if(wr==null){wr=!1;try{document.createElement("div").focus({get preventScroll(){return wr=!0,!0}})}catch{}}return wr}function t3(t){let e=t.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;e instanceof HTMLElement&&e!==r;)(e.offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth)&&n.push({element:e,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),e=e.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function n3(t){for(let{element:e,scrollTop:n,scrollLeft:r}of t)e.scrollTop=n,e.scrollLeft=r}const r3=typeof Element<"u"&&"checkVisibility"in Element.prototype;function i3(t){const e=$e(t);if(!(t instanceof e.HTMLElement)&&!(t instanceof e.SVGElement))return!1;let{display:n,visibility:r}=t.style,i=n!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:o}=$e(t);let{display:l,visibility:a}=o(t);i=l!=="none"&&a!=="hidden"&&a!=="collapse"}return i}function o3(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 Vi(t,e){return r3?t.checkVisibility({visibilityProperty:!0})&&!t.closest("[data-react-aria-prevent-focus]"):t.nodeName!=="#comment"&&i3(t)&&o3(t,e)&&(!t.parentElement||Vi(t.parentElement,t))}const Hi=["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"],l3=Hi.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Hi.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const a3=Hi.join(':not([hidden]):not([tabindex="-1"]),');function Ia(t,e){return t.matches(l3)&&!Ba(t)&&(e?.skipVisibilityCheck||Vi(t))}function ji(t){return t.matches(a3)&&Vi(t)&&!Ba(t)}function Ba(t){let e=t;for(;e!=null;){if(e instanceof $e(e).HTMLElement&&e.inert)return!0;e=e.parentElement}return!1}function Ri(t){let e=t;return e.nativeEvent=t,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function Fa(t,e){Object.defineProperty(t,"target",{value:e}),Object.defineProperty(t,"currentTarget",{value:e})}function Ma(t){let e=s.useRef({isFocused:!1,observer:null});return de(()=>{const n=e.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]),s.useCallback(n=>{let r=_(n);if(r instanceof HTMLButtonElement||r instanceof HTMLInputElement||r instanceof HTMLTextAreaElement||r instanceof HTMLSelectElement){e.current.isFocused=!0;let i=r,o=l=>{if(e.current.isFocused=!1,i.disabled){let a=Ri(l);t?.(a)}e.current.observer&&(e.current.observer.disconnect(),e.current.observer=null)};i.addEventListener("focusout",o,{once:!0}),e.current.observer=new MutationObserver(()=>{if(e.current.isFocused&&i.disabled){e.current.observer?.disconnect();let l=i===pe()?null:pe();i.dispatchEvent(new FocusEvent("blur",{relatedTarget:l})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:l}))}}),e.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[t])}let Sr=!1;function Ka(t){for(;t&&!Ia(t,{skipVisibilityCheck:!0});)t=t.parentElement;let e=$e(t),n=e.document.activeElement;if(!n||n===t)return;Sr=!0;let r=!1,i=c=>{(_(c)===n||r)&&c.stopImmediatePropagation()},o=c=>{(_(c)===n||r)&&(c.stopImmediatePropagation(),!t&&!r&&(r=!0,Ge(n),u()))},l=c=>{(_(c)===t||r)&&c.stopImmediatePropagation()},a=c=>{(_(c)===t||r)&&(c.stopImmediatePropagation(),r||(r=!0,Ge(n),u()))};e.addEventListener("blur",i,!0),e.addEventListener("focusout",o,!0),e.addEventListener("focusin",a,!0),e.addEventListener("focus",l,!0);let u=()=>{cancelAnimationFrame(d),e.removeEventListener("blur",i,!0),e.removeEventListener("focusout",o,!0),e.removeEventListener("focusin",a,!0),e.removeEventListener("focus",l,!0),Sr=!1,r=!1},d=requestAnimationFrame(u);return u}function Pr(t){if(typeof window>"u"||window.navigator==null)return!1;let e=window.navigator.userAgentData?.brands;return Array.isArray(e)&&e.some(n=>t.test(n.brand))||t.test(window.navigator.userAgent)}function Wi(t){return typeof window<"u"&&window.navigator!=null?t.test(window.navigator.userAgentData?.platform||window.navigator.platform):!1}function rt(t){if(process.env.NODE_ENV==="test")return t;let e=null;return()=>(e==null&&(e=t()),e)}const _e=rt(function(){return Wi(/^Mac/i)}),s3=rt(function(){return Wi(/^iPhone/i)}),La=rt(function(){return Wi(/^iPad/i)||_e()&&navigator.maxTouchPoints>1}),pt=rt(function(){return s3()||La()}),kr=rt(function(){return _e()||pt()}),it=rt(function(){return Pr(/AppleWebKit/i)&&(pt()||!Ui())});rt(function(){return it()&&!Ui()&&!Oa()});const Ui=rt(function(){return Pr(/Chrome|CriOS|CrMo/i)}),en=rt(function(){return Pr(/Android/i)}),Oa=rt(function(){return Pr(/(Firefox|FxiOS)/i)});function Gi(t){return t.pointerType===""&&t.isTrusted?!0:en()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function u3(t){return!en()&&t.width===0&&t.height===0||en()&&t.width===1&&t.height===1&&t.pressure===0&&t.detail===0&&t.pointerType==="mouse"}const d3=s.createContext({isNative:!0,open:p3,useHref:t=>t});function Kt(){return s.useContext(d3)}function c3(t,e){let n=t.getAttribute("target");return(!n||n==="_self")&&t.origin===location.origin&&!t.hasAttribute("download")&&!e.metaKey&&!e.ctrlKey&&!e.altKey&&!e.shiftKey}function ht(t,e,n=!0){let{metaKey:r,ctrlKey:i,altKey:o,shiftKey:l}=e;!it()&&Oa()&&window.event?.type?.startsWith("key")&&t.target==="_blank"&&(_e()?r=!0:i=!0);let a=it()&&_e()&&!La()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:r,ctrlKey:i,altKey:o,shiftKey:l}):new MouseEvent("click",{metaKey:r,ctrlKey:i,altKey:o,shiftKey:l,detail:1,bubbles:!0,cancelable:!0});ht.isOpening=n,Ge(t),t.dispatchEvent(a),ht.isOpening=!1}ht.isOpening=!1;function f3(t,e){if(t instanceof HTMLAnchorElement)e(t);else if(t.hasAttribute("data-href")){let n=document.createElement("a");n.href=t.getAttribute("data-href"),t.hasAttribute("data-target")&&(n.target=t.getAttribute("data-target")),t.hasAttribute("data-rel")&&(n.rel=t.getAttribute("data-rel")),t.hasAttribute("data-download")&&(n.download=t.getAttribute("data-download")),t.hasAttribute("data-ping")&&(n.ping=t.getAttribute("data-ping")),t.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=t.getAttribute("data-referrer-policy")),t.appendChild(n),e(n),t.removeChild(n)}}function p3(t,e){f3(t,n=>ht(n,e))}function h3(t){const n=Kt().useHref(t.href??"");return{"data-href":t.href?n:void 0,"data-target":t.target,"data-rel":t.rel,"data-download":t.download,"data-ping":t.ping,"data-referrer-policy":t.referrerPolicy}}function Dr(t){const n=Kt().useHref(t?.href??"");let r={};if(t)for(let i of["href","target","rel","download","ping","referrerPolicy"])i in t&&t[i]!==void 0&&(r[i]=i==="href"?n:t[i]);return r}function za(t,e,n,r){!e.isNative&&t.currentTarget instanceof HTMLAnchorElement&&t.currentTarget.href&&!t.isDefaultPrevented()&&c3(t.currentTarget,t)&&n&&(t.preventDefault(),e.open(t.currentTarget,t,n,r))}let mt=null;const Pn=new Set;let kn=new Map,Lt=!1,Yi=!1;const m3={Tab:!0,Escape:!0};function Nr(t,e){for(let n of Pn)n(t,e)}function b3(t){return!(t.metaKey||!_e()&&t.altKey||t.ctrlKey||t.key==="Control"||t.key==="Shift"||t.key==="Meta")}function Tr(t){Lt=!0,!ht.isOpening&&b3(t)&&(mt="keyboard",Nr("keyboard",t))}function Ve(t){mt="pointer","pointerType"in t&&t.pointerType,(t.type==="mousedown"||t.type==="pointerdown")&&(Lt=!0,Nr("pointer",t))}function _a(t){!ht.isOpening&&Gi(t)&&(Lt=!0,mt="virtual")}function Va(t){let e=$e(_(t)),n=le(_(t));_(t)===e||_(t)===n||Sr||!t.isTrusted||(!Lt&&!Yi&&(mt="virtual",Nr("virtual",t)),Lt=!1,Yi=!1)}function Ha(){Sr||(Lt=!1,Yi=!0)}function Ar(t){if(typeof window>"u"||typeof document>"u")return;const e=$e(t),n=le(t);if(kn.get(e))return;let r=e.HTMLElement.prototype.focus;Reflect.defineProperty(e.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:function(){Lt=!0,r.apply(this,arguments)}}),n.addEventListener("keydown",Tr,!0),n.addEventListener("keyup",Tr,!0),n.addEventListener("click",_a,!0),e.addEventListener("focus",Va,!0),e.addEventListener("blur",Ha,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Ve,!0),n.addEventListener("pointermove",Ve,!0),n.addEventListener("pointerup",Ve,!0)):process.env.NODE_ENV==="test"&&(n.addEventListener("mousedown",Ve,!0),n.addEventListener("mousemove",Ve,!0),n.addEventListener("mouseup",Ve,!0)),e.addEventListener("beforeunload",()=>{ja(t)},{once:!0}),kn.set(e,{focus:r})}const ja=(t,e)=>{const n=$e(t),r=le(t);e&&r.removeEventListener("DOMContentLoaded",e),kn.has(n)&&(Reflect.defineProperty(n.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:kn.get(n).focus}),r.removeEventListener("keydown",Tr,!0),r.removeEventListener("keyup",Tr,!0),r.removeEventListener("click",_a,!0),n.removeEventListener("focus",Va,!0),n.removeEventListener("blur",Ha,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Ve,!0),r.removeEventListener("pointermove",Ve,!0),r.removeEventListener("pointerup",Ve,!0)):process.env.NODE_ENV==="test"&&(r.removeEventListener("mousedown",Ve,!0),r.removeEventListener("mousemove",Ve,!0),r.removeEventListener("mouseup",Ve,!0)),kn.delete(n))};function g3(t){const e=le(t);let n;return e.readyState!=="loading"?Ar(t):(n=()=>{Ar(t)},e.addEventListener("DOMContentLoaded",n)),()=>ja(t,n)}typeof document<"u"&&g3();function St(){return mt!=="pointer"}function Dn(){return mt}function tn(t){mt=t,Nr(t,null)}function Ra(){Ar();let[t,e]=s.useState(mt);return s.useEffect(()=>{let n=()=>{e(mt)};return Pn.add(n),()=>{Pn.delete(n)}},[]),wt()?null:t}const y3=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function $3(t,e,n){let r=n?_(n):void 0,i=le(r),o=$e(r);const l=typeof o<"u"?o.HTMLInputElement:HTMLInputElement,a=typeof o<"u"?o.HTMLTextAreaElement:HTMLTextAreaElement,u=typeof o<"u"?o.HTMLElement:HTMLElement,d=typeof o<"u"?o.KeyboardEvent:KeyboardEvent;let c=pe(i);return t=t||c instanceof l&&!y3.has(c.type)||c instanceof a||c instanceof u&&c.isContentEditable,!(t&&e==="keyboard"&&n instanceof d&&!m3[n.key])}function v3(t,e,n){Ar(),s.useEffect(()=>{if(n?.enabled===!1)return;let r=(i,o)=>{$3(!!n?.isTextInput,i,o)&&t(St())};return Pn.add(r),()=>{Pn.delete(r)}},e)}function Nn(t){return _e()?t.metaKey:t.ctrlKey}const x3=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Tn(t){return t instanceof HTMLInputElement&&!x3.has(t.type)||t instanceof HTMLTextAreaElement||t instanceof HTMLElement&&t.isContentEditable}const C3=s.useInsertionEffect??de;function Ne(t){const e=s.useRef(null);return C3(()=>{e.current=t},[t]),s.useCallback((...n)=>{const r=e.current;return r?.(...n)},[])}function An(t,e,n,r){let i=Ne(n),o=n==null;s.useEffect(()=>{if(o||!t.current)return;let l=t.current;return l.addEventListener(e,i,r),()=>{l.removeEventListener(e,i,r)}},[t,e,r,o])}function nn(t,e){let{id:n,"aria-label":r,"aria-labelledby":i}=t;return n=xe(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&e&&(r=e),{id:n,"aria-label":r,"aria-labelledby":i}}const E3=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),w3=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function S3(t){if(Intl.Locale){let n=new Intl.Locale(t).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return E3.has(n.script)}let e=t.split("-")[0];return w3.has(e)}const Wa=Symbol.for("react-aria.i18n.locale");function Ua(){let t=typeof window<"u"&&window[Wa]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([t])}catch{t="en-US"}return{locale:t,direction:S3(t)?"rtl":"ltr"}}let Xi=Ua(),In=new Set;function Ga(){Xi=Ua();for(let t of In)t(Xi)}function P3(){let t=wt(),[e,n]=s.useState(Xi);return s.useEffect(()=>(In.size===0&&window.addEventListener("languagechange",Ga),In.add(n),()=>{In.delete(n),In.size===0&&window.removeEventListener("languagechange",Ga)}),[]),t?{locale:typeof window<"u"&&window[Wa]||"en-US",direction:"ltr"}:e}const k3=s.createContext(null);function Te(){let t=P3();return s.useContext(k3)||t}const D3=Symbol.for("react-aria.i18n.locale"),N3=Symbol.for("react-aria.i18n.strings");let Ir;class Br{constructor(e,n="en-US"){this.strings=Object.fromEntries(Object.entries(e).filter(([,r])=>r)),this.defaultLocale=n}getStringForLocale(e,n){let i=this.getStringsForLocale(n)[e];if(!i)throw new Error(`Could not find intl message ${e} in ${n} locale`);return i}getStringsForLocale(e){let n=this.strings[e];return n||(n=T3(e,this.strings,this.defaultLocale),this.strings[e]=n),n}static getGlobalDictionaryForPackage(e){if(typeof window>"u")return null;let n=window[D3];if(Ir===void 0){let i=window[N3];if(!i)return null;Ir={};for(let o in i)Ir[o]=new Br({[n]:i[o]},n)}let r=Ir?.[e];if(!r)throw new Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}}function T3(t,e,n="en-US"){if(e[t])return e[t];let r=A3(t),i=I3(t);if(i&&e[`${r}-${i}`])return e[`${r}-${i}`];if(e[r])return e[r];for(let o in e)if(o.startsWith(r+"-"))return e[o];return e[n]}function A3(t){return Intl.Locale?new Intl.Locale(t).language:t.split("-")[0]}function I3(t){if(Intl.Locale)return new Intl.Locale(t).script}const Ya=new Map,Xa=new Map;class B3{constructor(e,n){this.locale=e,this.strings=n}format(e,n){let r=this.strings.getStringForLocale(e,this.locale);return typeof r=="function"?r(n,this):r}plural(e,n,r="cardinal"){let i=n["="+e];if(i)return typeof i=="function"?i():i;let o=this.locale+":"+r,l=Ya.get(o);l||(l=new Intl.PluralRules(this.locale,{type:r}),Ya.set(o,l));let a=l.select(e);return i=n[a]||n.other,typeof i=="function"?i():i}number(e){let n=Xa.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),Xa.set(this.locale,n)),n.format(e)}select(e,n){let r=e[n]||e.other;return typeof r=="function"?r():r}}const qa=new WeakMap;function F3(t){let e=qa.get(t);return e||(e=new Br(t),qa.set(t,e)),e}function M3(t,e){return e&&Br.getGlobalDictionaryForPackage(e)||F3(t)}function Ie(t,e){let{locale:n}=Te(),r=M3(t,e);return s.useMemo(()=>new B3(n,r),[n,r])}const K3=typeof document<"u"?s.useInsertionEffect??s.useLayoutEffect:()=>{};function Ye(t,e,n){let[r,i]=s.useState(t||e),o=s.useRef(r),l=s.useRef(t!==void 0),a=t!==void 0;s.useEffect(()=>{let f=l.current;f!==a&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${f?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}.`),l.current=a},[a]);let u=a?t:r;K3(()=>{o.current=u});let[,d]=s.useReducer(()=>({}),{}),c=s.useCallback((f,...p)=>{let m=typeof f=="function"?f(o.current):f;Object.is(o.current,m)||(o.current=m,i(m),d(),n?.(m,...p))},[n]);return[u,c]}const Bn=s.createContext(null),Fn=s.createContext(null);class He{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,n,r){let i=this.clone();return n.addDescendants(i,e),i}}class Fr extends He{filter(e,n,r){let[i,o]=Qa(e,n,this.firstChildKey,r),l=this.clone();return l.firstChildKey=i,l.lastChildKey=o,l}}const ca=class ca extends He{};ca.type="header";let qi=ca;const fa=class fa extends He{};fa.type="loader";let Mr=fa;const pa=class pa extends Fr{filter(e,n,r){if(r(this.textValue,this)){let i=this.clone();return n.addDescendants(i,e),i}return null}};pa.type="item";let Kr=pa;const ha=class ha extends Fr{filter(e,n,r){let i=super.filter(e,n,r);if(i&&i.lastChildKey!==null){let o=e.getItem(i.lastChildKey);if(o&&o.type!=="header")return i}return null}};ha.type="section";let Za=ha;class Ja{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 n=this.keyMap;return{*[Symbol.iterator](){let r=n.get(e),i=r?.firstChildKey!=null?n.get(r.firstChildKey):null;for(;i;)yield i,i=i.nextKey!=null?n.get(i.nextKey):void 0}}}getKeyBefore(e){let n=this.keyMap.get(e);if(!n)return null;if(n.prevKey!=null){for(n=this.keyMap.get(n.prevKey);n&&n.type!=="item"&&n.lastChildKey!=null;)n=this.keyMap.get(n.lastChildKey);return n?.key??null}return n.parentKey}getKeyAfter(e){let n=this.keyMap.get(e);if(!n)return null;if(n.type!=="item"&&n.firstChildKey!=null)return n.firstChildKey;for(;n;){if(n.nextKey!=null)return n.nextKey;if(n.parentKey!=null)n=this.keyMap.get(n.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;e?.lastChildKey!=null;)e=this.keyMap.get(e.lastChildKey);return e?.key??null}getItem(e){return this.keyMap.get(e)??null}at(){throw new Error("Not implemented")}clone(){let e=this.constructor,n=new e;return n.keyMap=new Map(this.keyMap),n.firstKey=this.firstKey,n.lastKey=this.lastKey,n.itemCount=this.itemCount,n}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,n){this.addNode(e);let r=n.getChildren(e.key);for(let i of r)this.addDescendants(i,n)}removeNode(e){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");let n=this.keyMap.get(e);n!=null&&n.type==="item"&&this.itemCount--,this.keyMap.delete(e)}commit(e,n,r=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=e,this.lastKey=n,this.frozen=!r}filter(e){let n=new this.constructor,[r,i]=Qa(this,n,this.firstKey,e);return n?.commit(r,i),n}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}}function Qa(t,e,n,r){if(n==null)return[null,null];let i=null,o=null,l=t.getItem(n);for(;l!=null;){let a=l.filter(t,e,r);a!=null&&(a.nextKey=null,o&&(a.prevKey=o.key,o.nextKey=a.key),i==null&&(i=a),e.addNode(a),o=a),l=l.nextKey!=null?t.getItem(l.nextKey):null}if(o&&o.type==="separator"){let a=o.prevKey;e.removeNode(o.key),a!=null?(o=e.getItem(a),o.nextKey=null):o=null}return[i?.key??null,o?.key??null]}class es{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(){return this.parentNode?.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,n){if(n==null)return this.appendChild(e);e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=n,e.previousSibling=n.previousSibling,e.index=n.index-1,this.firstChild===n?this.firstChild=e:n.previousSibling&&(n.previousSibling.nextSibling=e),n.previousSibling=e,e.parentNode=n.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 rn extends es{constructor(e,n){super(n),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(){return this.parentNode instanceof rn?this.parentNode.level+(this.parentNode.node?.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(){let e=this.nextVisibleSibling,n=this.getMutableNode();if(n!=null&&(n.index=this.index,n.level=this.level,n.parentKey=this.parentNode instanceof rn?this.parentNode.node?.key??null:null,n.prevKey=this.previousVisibleSibling?.node?.key??null,n.nextKey=e?.node?.key??null,n.hasChildNodes=!!this.firstChild,n.firstChildKey=this.firstVisibleChild?.node?.key??null,n.lastChildKey=this.lastVisibleChild?.node?.key??null,(n.colSpan!=null||n.colIndex!=null)&&e)){let r=(n.colIndex??n.index)+(n.colSpan??1);if(e.node!=null&&r!==e.node.colIndex){let i=e.getMutableNode();i.colIndex=r}}}setProps(e,n,r,i,o){let l,{value:a,textValue:u,id:d,...c}=e;if(this.node==null?(l=new r(d??`react-aria-${++this.ownerDocument.nodeId}`),this.node=l):l=this.getMutableNode(),c.ref=n,l.props=c,l.rendered=i,l.render=o,l.value=a,e["aria-label"]&&(l["aria-label"]=e["aria-label"]),l.textValue=u||(typeof c.children=="string"?c.children:"")||e["aria-label"]||"",d!=null&&d!==l.key)throw new Error("Cannot change the id of an item");c.colSpan!=null&&(l.colSpan=c.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let e=this;return{get display(){return e.isHidden?"none":""},set display(n){let r=n==="none";if(e.isHidden!==r){(e.parentNode?.firstVisibleChild===e||e.parentNode?.lastVisibleChild===e)&&e.ownerDocument.markDirty(e.parentNode);let i=e.previousVisibleSibling,o=e.nextVisibleSibling;i&&e.ownerDocument.markDirty(i),o&&e.ownerDocument.markDirty(o),e.isHidden=r,e.ownerDocument.markDirty(e)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}}class L3 extends es{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 rn(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 n=this.getMutableCollection();if(!n.getItem(e.node.key))for(let r of e)this.addNode(r);n.addNode(e.node)}removeNode(e){for(let n of e)this.removeNode(n);e.node&&this.getMutableCollection().removeNode(e.node.key)}getCollection(){return this.inSubscription?this.collection:(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let e of this.dirtyNodes)e instanceof rn&&(!e.isConnected||e.isHidden)?this.removeNode(e):e.updateChildIndices();for(let e of this.dirtyNodes)e instanceof rn?(e.isConnected&&!e.isHidden&&(e.updateNode(),this.addNode(e)),e.node&&this.dirtyNodes.delete(e),e.isMutated=!1):this.dirtyNodes.delete(e);this.nextCollection&&(this.nextCollection.commit(this.firstVisibleChild?.node?.key??null,this.lastVisibleChild?.node?.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.queuedRender&&e(),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}}function Zi(t){let{children:e,items:n,idScope:r,addIdAndValue:i,dependencies:o=[]}=t,l=s.useMemo(()=>process.env.NODE_ENV!=="production"&&typeof e=="function"?e.toString():void 0,[e]),a=s.useMemo(()=>new WeakMap,[...o,l]);return s.useMemo(()=>{if(n&&typeof e=="function"){let u=[];for(let d of n){let c=O3(d)?d:null,f=c?a.get(c):null;if(!f){f=e(d);let p=f.props.id??d?.key??d?.id;r!=null&&f.props.id==null&&p!=null&&(p=r+":"+p);let m=p??u.length;f=s.cloneElement(f,i?{key:m,id:p,value:d}:{key:m}),c&&a.set(c,f)}u.push(f)}return u}else if(typeof e!="function")return e},[e,n,a,r,i])}function O3(t){switch(typeof t){case"object":return t!=null;case"function":case"symbol":return!0;default:return!1}}let Pt=new Map,Ji=new Set;function ts(){if(typeof window>"u")return;function t(r){return"propertyName"in r}let e=r=>{let i=_(r);if(!t(r)||!i)return;let o=Pt.get(i);o||(o=new Set,Pt.set(i,o),i.addEventListener("transitioncancel",n,{once:!0})),o.add(r.propertyName)},n=r=>{let i=_(r);if(!t(r)||!i)return;let o=Pt.get(i);if(o&&(o.delete(r.propertyName),o.size===0&&(i.removeEventListener("transitioncancel",n),Pt.delete(i)),Pt.size===0)){for(let l of Ji)l();Ji.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?ts():document.addEventListener("DOMContentLoaded",ts));function z3(){for(const[t]of Pt)"isConnected"in t&&!t.isConnected&&Pt.delete(t)}function ns(t){requestAnimationFrame(()=>{z3(),Pt.size===0?t():Ji.add(t)})}function Se(t){if(!t.isConnected)return;const e=le(t);if(Dn()==="virtual"){let n=pe(e);ns(()=>{const r=pe(e);(r===n||r===e.body)&&t.isConnected&&Ge(t)})}else Ge(t)}function Qi(t){let{isDisabled:e,onFocus:n,onBlur:r,onFocusChange:i}=t;const o=s.useCallback(u=>{if(_(u)===u.currentTarget)return r&&r(u),i&&i(!1),!0},[r,i]),l=Ma(o),a=s.useCallback(u=>{let d=_(u);const c=le(d),f=c?pe(c):pe();d===u.currentTarget&&d===f&&(n&&n(u),i&&i(!0),l(u))},[i,n,l]);return{focusProps:{onFocus:!e&&(n||i||r)?a:void 0,onBlur:!e&&(r||i)?o:void 0}}}function Lr(t){if(t)return e=>{let n=!0,r={...e,preventDefault(){e.preventDefault()},isDefaultPrevented(){return e.isDefaultPrevented()},stopPropagation(){n&&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."):n=!0},continuePropagation(){n=!1,typeof e.continuePropagation=="function"&&e.continuePropagation()},isPropagationStopped(){return n}};t(r),n&&!(typeof e.isPropagationStopped=="function"&&e.isPropagationStopped())&&e.stopPropagation()}}const _3=new Set(["shift","alt","control","meta","mod"]),V3=["Alt","Control","Meta","Shift"];function H3(t){let e=new Set;return t.alt&&e.add("Alt"),t.shift&&e.add("Shift"),t.ctrl&&e.add("Control"),t.meta&&e.add("Meta"),t.mod&&e.add(_e()?"Meta":"Control"),e}function j3(t){let e=new Set;return t.altKey&&e.add("Alt"),t.ctrlKey&&e.add("Control"),t.metaKey&&e.add("Meta"),t.shiftKey&&e.add("Shift"),e}function rs(t){return V3.filter(e=>t.has(e))}function R3(t){let e=t.split("+").reduce((n,r)=>{let i=r.toLowerCase();return _3.has(i)?i==="shift"?n.shift=!0:i==="alt"?n.alt=!0:i==="control"?n.ctrl=!0:i==="meta"?n.meta=!0:i==="mod"&&(n.mod=!0):n.key=r,n},{shift:!1,alt:!1,ctrl:!1,meta:!1,mod:!1,key:""});if(e.key==="")throw new Error(`Invalid keyboard shortcut: "${t}". Must include exactly one non-modifier key (e.g. "a", "Enter", "ArrowDown"). Combine any of Shift, Alt, Ctrl, Meta, and Mod.`);return e}function is(t){return t.toLowerCase()}const W3={space:" ",esc:"escape",del:"delete",ins:"insert",left:"arrowleft",right:"arrowright",up:"arrowup",down:"arrowdown",pageup:"pageup",pagedown:"pagedown"};function U3(t){let e=is(t),n=W3[e];return n??e}function G3(t){let e=rs(H3(t)),n=U3(t.key);return e.length>0?`${e.join("+")}+${n}`:n}function Y3(t){let e=rs(j3(t)),n=is(t.key);return(e.length>0?`${e.join("+")}+`:"")+n}function X3(t){let e=new Map;for(let[n,r]of Object.entries(t)){let i=R3(n);e.set(G3(i),r)}return n=>{let r=Y3(n),i=e.get(r),o=i?.(n);o===void 0&&i!==void 0?o={shouldContinuePropagation:!1,shouldPreventDefault:!0}:typeof o=="boolean"&&(o={shouldContinuePropagation:!o,shouldPreventDefault:o}),o?.shouldPreventDefault&&n.preventDefault(),(!i||o?.shouldContinuePropagation)&&n.continuePropagation()}}function je(t){let{shortcuts:e,allowRepeats:n=!1,allowComposing:r=!1}=t,i,o;if(e){let l=X3(e),a=Lr(d=>{if(!te(d.currentTarget,_(d))){d.continuePropagation();return}if(d.nativeEvent?.repeat&&!n||d.nativeEvent?.isComposing&&!r){d.continuePropagation();return}l(d)}),u=Lr(d=>{if(!te(d.currentTarget,_(d))){d.continuePropagation();return}if(d.nativeEvent?.repeat&&!n||d.nativeEvent?.isComposing&&!r){d.continuePropagation();return}d.continuePropagation()});i=t.onKeyDown?Ue(t.onKeyDown,a):a,o=t.onKeyUp?Ue(t.onKeyUp,u):u}else i=Lr(t.onKeyDown),o=Lr(t.onKeyUp);return{keyboardProps:t.isDisabled?{}:{onKeyDown:i,onKeyUp:o}}}function eo(t,e){de(()=>{if(t&&t.ref&&e)return t.ref.current=e.current,()=>{t.ref&&(t.ref.current=null)}})}let Or=s.createContext(null);function q3(t){let e=s.useContext(Or)||{};eo(e,t);let{ref:n,...r}=e;return r}function on(t,e){let{focusProps:n}=Qi(t),{keyboardProps:r}=je(t),i=G(n,r),o=q3(e),l=t.isDisabled?{}:o,a=s.useRef(t.autoFocus);s.useEffect(()=>{a.current&&e.current&&Se(e.current),a.current=!1},[e]);let u=t.excludeFromTabOrder?-1:0;return t.isDisabled&&(u=void 0),{focusableProps:G({...i,tabIndex:u},l)}}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 zr=s.createContext(!1);function Z3(t){if(s.useContext(zr))return s.createElement(s.Fragment,null,t.children);let n=s.createElement(zr.Provider,{value:!0},t.children);return s.createElement("template",null,n)}function ln(t){let e=(n,r)=>s.useContext(zr)?null:t(n,r);return e.displayName=t.displayName||t.name,s.forwardRef(e)}function os(){return s.useContext(zr)}var _r={exports:{}},to={};var ls;function J3(){if(ls)return to;ls=1;var t=s;function e(f,p){return f===p&&(f!==0||1/f===1/p)||f!==f&&p!==p}var n=typeof Object.is=="function"?Object.is:e,r=t.useState,i=t.useEffect,o=t.useLayoutEffect,l=t.useDebugValue;function a(f,p){var m=p(),b=r({inst:{value:m,getSnapshot:p}}),g=b[0].inst,y=b[1];return o(function(){g.value=m,g.getSnapshot=p,u(g)&&y({inst:g})},[f,m,p]),i(function(){return u(g)&&y({inst:g}),f(function(){u(g)&&y({inst:g})})},[f]),l(m),m}function u(f){var p=f.getSnapshot;f=f.value;try{var m=p();return!n(f,m)}catch{return!0}}function d(f,p){return p()}var c=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:a;return to.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:c,to}var no={};var as;function Q3(){return as||(as=1,process.env.NODE_ENV!=="production"&&(function(){function t(m,b){return m===b&&(m!==0||1/m===1/b)||m!==m&&b!==b}function e(m,b){c||i.startTransition===void 0||(c=!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 g=b();if(!f){var y=b();o(g,y)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}y=l({inst:{value:g,getSnapshot:b}});var $=y[0].inst,x=y[1];return u(function(){$.value=g,$.getSnapshot=b,n($)&&x({inst:$})},[m,g,b]),a(function(){return n($)&&x({inst:$}),m(function(){n($)&&x({inst:$})})},[m]),d(g),g}function n(m){var b=m.getSnapshot;m=m.value;try{var g=b();return!o(m,g)}catch{return!0}}function r(m,b){return b()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=s,o=typeof Object.is=="function"?Object.is:t,l=i.useState,a=i.useEffect,u=i.useLayoutEffect,d=i.useDebugValue,c=!1,f=!1,p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:e;no.useSyncExternalStore=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:p,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),no}var ss;function e4(){return ss||(ss=1,process.env.NODE_ENV==="production"?_r.exports=J3():_r.exports=Q3()),_r.exports}var t4=e4();const us=s.createContext(!1),Mn=s.createContext(null);function Ot(t){if(s.useContext(Mn))return t.content;let{collection:n,document:r}=o4(t.createCollection);return s.createElement(s.Fragment,null,s.createElement(Z3,null,s.createElement(Mn.Provider,{value:r},t.content)),s.createElement(n4,{render:t.children,collection:n}))}function n4({collection:t,render:e}){return e(t)}function r4(t,e,n){let r=wt(),i=s.useRef(r);i.current=r;let o=s.useCallback(()=>i.current?n():e(),[e,n]);return t4.useSyncExternalStore(t,o)}const i4=typeof s.useSyncExternalStore=="function"?s.useSyncExternalStore:r4;function o4(t){let[e]=s.useState(()=>new L3(t?.()||new Ja)),n=s.useCallback(l=>e.subscribe(l),[e]),r=s.useCallback(()=>{let l=e.getCollection();return e.isSSR&&e.resetAfterSSR(),l},[e]),i=s.useCallback(()=>(e.isSSR=!0,e.getCollection()),[e]);return{collection:i4(n,r,i),document:e}}const ro=s.createContext(null);function l4(t){var n;return n=class extends He{},n.type=t,n}function ds(t,e,n,r,i,o){typeof t=="string"&&(t=l4(t));let l=s.useCallback(u=>{u?.setProps(e,n,t,r,o)},[e,n,r,o,t]),a=s.useContext(ro);if(a){let u=a.ownerDocument.nodesByProps.get(e);return u||(u=a.ownerDocument.createElement(t.type),u.setProps(e,n,t,r,o),a.appendChild(u),a.ownerDocument.updateCollection(),a.ownerDocument.nodesByProps.set(e,u)),i?s.createElement(ro.Provider,{value:u},i):null}return s.createElement(t.type,{ref:l},i)}function ot(t,e){let n=({node:i})=>e(i.props,i.props.ref,i),r=s.forwardRef((i,o)=>{let l=s.useContext(Or);if(!s.useContext(us)){if(e.length>=3)throw new Error(e.name+" cannot be rendered outside a collection.");return e(i,o)}return ds(t,i,o,"children"in i?i.children:null,null,u=>s.createElement(Or.Provider,{value:l},s.createElement(n,{node:u})))});return r.displayName=e.name,r}function Vr(t,e,n=cs){let r=({node:o})=>e(o.props,o.props.ref,o),i=s.forwardRef((o,l)=>{let a=n(o);return ds(t,o,l,null,a,u=>s.createElement(r,{node:u}))??s.createElement(s.Fragment,null)});return i.displayName=e.name,i}function cs(t){return Zi({...t,addIdAndValue:!0})}const fs=s.createContext(null);function zt(t){let e=s.useContext(fs),n=(e?.dependencies||[]).concat(t.dependencies),r=t.idScope??e?.idScope,i=cs({...t,idScope:r,dependencies:n});return s.useContext(Mn)&&(i=s.createElement(a4,null,i)),e=s.useMemo(()=>({dependencies:n,idScope:r}),[r,...n]),s.createElement(fs.Provider,{value:e},i)}function a4({children:t}){let e=s.useContext(Mn),n=s.useMemo(()=>s.createElement(Mn.Provider,{value:null},s.createElement(us.Provider,{value:!0},t)),[t]);return wt()?s.createElement(ro.Provider,{value:e},n):Et.createPortal(n,e)}const ps=s.createContext(null),io={CollectionRoot({collection:t,renderDropIndicator:e}){return hs(t,null,e)},CollectionBranch({collection:t,parent:e,renderDropIndicator:n}){return hs(t,e,n)}};function hs(t,e,n){return Zi({items:e?t.getChildren(e.key):t,dependencies:[n],children(r){if(r.type==="content")return s.createElement(s.Fragment,null);let i=r.render(r);return!n||r.type!=="item"?i:s.createElement(s.Fragment,null,n({type:"item",key:r.key,dropPosition:"before"}),i,s4(t,r,n))}})}function s4(t,e,n){let r=e.key,i=t.getKeyAfter(r),o=i!=null?t.getItem(i):null;for(;o!=null&&o.type!=="item";)i=t.getKeyAfter(o.key),o=i!=null?t.getItem(i):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 a=[];if(l==null){let u=e;for(;u?.type==="item"&&(!o||u.parentKey!==o.parentKey&&o.level<u.level);){let d=n({type:"item",key:u.key,dropPosition:"after"});s.isValidElement(d)&&a.push(s.cloneElement(d,{key:`${u.key}-after`})),u=u.parentKey!=null?t.getItem(u.parentKey):null}}return a}const me=s.createContext(io);function ms(t){return s.useMemo(()=>t!=null?new Set([t]):null,[t])}const u4=new Set(["id"]),d4=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),c4=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),f4=new Set(["dir","lang","hidden","inert","translate"]),bs=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"]),p4=/^(data-.*)$/;function re(t,e={}){let{labelable:n,isLink:r,global:i,events:o=i,propNames:l}=e,a={};for(const u in t)Object.prototype.hasOwnProperty.call(t,u)&&(u4.has(u)||n&&d4.has(u)||r&&c4.has(u)||i&&f4.has(u)||o&&(bs.has(u)||u.endsWith("Capture")&&bs.has(u.slice(0,-7)))||l?.has(u)||p4.test(u))&&(a[u]=t[u]);return a}let an="default",oo="",Hr=new WeakMap;function lo(t){if(pt()&&it()){if(an==="default"){const e=le(t);oo=e.documentElement.style.webkitUserSelect,e.documentElement.style.webkitUserSelect="none"}an="disabled"}else if(t instanceof HTMLElement||t instanceof SVGElement){let e="userSelect"in t.style?"userSelect":"webkitUserSelect";Hr.set(t,t.style[e]),t.style[e]="none"}}function jr(t){if(pt()&&it()){if(an!=="disabled")return;an="restoring",setTimeout(()=>{ns(()=>{if(an==="restoring"){const e=le(t);e.documentElement.style.webkitUserSelect==="none"&&(e.documentElement.style.webkitUserSelect=oo||""),oo="",an="default"}})},300)}else if((t instanceof HTMLElement||t instanceof SVGElement)&&t&&Hr.has(t)){let e=Hr.get(t),n="userSelect"in t.style?"userSelect":"webkitUserSelect";t.style[n]==="none"&&(t.style[n]=e),t.getAttribute("style")===""&&t.removeAttribute("style"),Hr.delete(t)}}function gs(t){return t?.defaultView?.__webpack_nonce__||globalThis.__webpack_nonce__||void 0}let ao=new WeakMap;function ys(t){let e=t??(typeof document<"u"?document:void 0);if(!e)return gs(e);if(ao.has(e))return ao.get(e);let n=e.querySelector('meta[property="csp-nonce"]'),r=n&&n instanceof $e(n).HTMLMetaElement&&(n.nonce||n.content)||gs(e)||void 0;return r!==void 0&&ao.set(e,r),r}const Kn=s.createContext({register:()=>{}});Kn.displayName="PressResponderContext";function Ln(){let t=s.useRef(new Map),e=s.useCallback((i,o,l,a)=>{let u=a?.once?(...d)=>{t.current.delete(l),l(...d)}:l;t.current.set(l,{type:o,eventTarget:i,fn:u,options:a}),i.addEventListener(o,u,a)},[]),n=s.useCallback((i,o,l,a)=>{let u=t.current.get(l)?.fn||l;i.removeEventListener(o,u,a),t.current.delete(l)},[]),r=s.useCallback(()=>{t.current.forEach((i,o)=>{n(i.eventTarget,i.type,o,i.options)})},[n]);return s.useEffect(()=>r,[r]),{addGlobalListener:e,removeGlobalListener:n,removeAllGlobalListeners:r}}function h4(t){let e=s.useContext(Kn);if(e){let{register:n,ref:r,...i}=e;t=G(i,t),n()}return eo(e,t.ref),t}class Rr{#e;constructor(e,n,r,i){this.#e=!0;const l=(i?.target??r.currentTarget)?.getBoundingClientRect();let a,u=0,d,c=null;r.clientX!=null&&r.clientY!=null&&(d=r.clientX,c=r.clientY),l&&(d!=null&&c!=null?(a=d-l.left,u=c-l.top):(a=l.width/2,u=l.height/2)),this.type=e,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=a,this.y=u,this.key=r.key}continuePropagation(){this.#e=!1}get shouldStopPropagation(){return this.#e}}const $s=Symbol("linkClicked"),vs="react-aria-pressable-style",xs="data-react-aria-pressable";function _t(t){let{onPress:e,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:o,onClick:l,isDisabled:a,isPressed:u,preventFocusOnPress:d,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:f,ref:p,...m}=h4(t),[b,g]=s.useState(!1),y=s.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:$,removeAllGlobalListeners:x}=Ln(),v=s.useCallback((E,A)=>{let Y=y.current;if(a||Y.didFirePressStart)return!1;let M=!0;if(Y.isTriggeringEvent=!0,r){let X=new Rr("pressstart",A,E);r(X),M=X.shouldStopPropagation}return n&&n(!0),Y.isTriggeringEvent=!1,Y.didFirePressStart=!0,g(!0),M},[a,r,n]),C=s.useCallback((E,A,Y=!0)=>{let M=y.current;if(!M.didFirePressStart)return!1;M.didFirePressStart=!1,M.isTriggeringEvent=!0;let X=!0;if(i){let S=new Rr("pressend",A,E);i(S),X=S.shouldStopPropagation}if(n&&n(!1),g(!1),e&&Y&&!a){let S=new Rr("press",A,E);e(S),X&&=S.shouldStopPropagation}return M.isTriggeringEvent=!1,X},[a,i,n,e]),k=Ne(C),P=s.useCallback((E,A)=>{let Y=y.current;if(a)return!1;if(o){Y.isTriggeringEvent=!0;let M=new Rr("pressup",A,E);return o(M),Y.isTriggeringEvent=!1,M.shouldStopPropagation}return!0},[a,o]),N=Ne(P),w=s.useCallback(E=>{let A=y.current;if(A.isPressed&&A.target){A.didFirePressStart&&A.pointerType!=null&&C(Vt(A.target,E),A.pointerType,!1),A.isPressed=!1,A.isOverTarget=!1,A.activePointerId=null,A.pointerType=null,x(),f||jr(A.target);for(let Y of A.disposables)Y();A.disposables=[]}},[f,x,C]),D=Ne(w);s.useEffect(()=>{a&&y.current.isPressed&&D({currentTarget:y.current.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})},[a]);let I=s.useCallback(E=>{c&&w(E)},[c,w]),L=s.useCallback(E=>{a||l?.(E)},[a,l]),z=s.useCallback((E,A)=>{if(!a&&l){let Y=new MouseEvent("click",E);Fa(Y,A),l(Ri(Y))}},[a,l]),j=s.useMemo(()=>{let E=y.current,A={onKeyDown(M){if(uo(M.nativeEvent,M.currentTarget)&&te(M.currentTarget,_(M))){ws(_(M),M.key)&&M.preventDefault();let X=!0;!E.isPressed&&!M.repeat&&(E.target=M.currentTarget,E.isPressed=!0,E.pointerType="keyboard",X=v(M,"keyboard"));let S=M.currentTarget,B=U=>{uo(U,S)&&!U.repeat&&te(S,_(U))&&E.target&&N(Vt(E.target,U),"keyboard")};$(le(M.currentTarget),"keyup",Ue(B,Y),!0),X&&M.stopPropagation(),M.metaKey&&_e()&&E.metaKeyEvents?.set(M.key,M.nativeEvent)}else M.key==="Meta"&&(E.metaKeyEvents=new Map)},onClick(M){if(!(M&&!te(M.currentTarget,_(M)))&&M&&M.button===0&&!E.isTriggeringEvent&&!ht.isOpening){let X=!0;if(a&&M.preventDefault(),!E.ignoreEmulatedMouseEvents&&!E.isPressed&&(E.pointerType==="virtual"||Gi(M.nativeEvent))){let S=v(M,"virtual"),B=N(M,"virtual"),U=k(M,"virtual");L(M),X=S&&B&&U}else if(E.isPressed&&E.pointerType!=="keyboard"){let S=E.pointerType||M.nativeEvent.pointerType||"virtual",B=N(Vt(M.currentTarget,M),S),U=k(Vt(M.currentTarget,M),S,!0);X=B&&U,E.isOverTarget=!1,L(M),D(M)}E.ignoreEmulatedMouseEvents=!1,X&&M.stopPropagation()}}},Y=M=>{if(E.isPressed&&E.target&&uo(M,E.target)){ws(_(M),M.key)&&M.preventDefault();let X=_(M),S=te(E.target,X);k(Vt(E.target,M),"keyboard",S),S&&z(M,E.target),x(),M.key!=="Enter"&&so(E.target)&&te(E.target,X)&&!M[$s]&&(M[$s]=!0,ht(E.target,M,!1)),E.isPressed=!1,E.metaKeyEvents?.delete(M.key)}else if(M.key==="Meta"&&E.metaKeyEvents?.size){let X=E.metaKeyEvents;E.metaKeyEvents=void 0;for(let S of X.values())E.target?.dispatchEvent(new KeyboardEvent("keyup",S))}};if(typeof PointerEvent<"u"){A.onPointerDown=S=>{if(S.button!==0||!te(S.currentTarget,_(S)))return;if(u3(S.nativeEvent)){E.pointerType="virtual";return}E.pointerType=S.pointerType;let B=!0;if(!E.isPressed){E.isPressed=!0,E.isOverTarget=!0,E.activePointerId=S.pointerId,E.target=S.currentTarget,f||lo(E.target),B=v(S,E.pointerType);let U=_(S);"releasePointerCapture"in U&&("hasPointerCapture"in U?U.hasPointerCapture(S.pointerId)&&U.releasePointerCapture(S.pointerId):U.releasePointerCapture(S.pointerId)),$(le(S.currentTarget),"pointerup",M,!1),$(le(S.currentTarget),"pointercancel",X,!1)}B&&S.stopPropagation()},A.onMouseDown=S=>{if(te(S.currentTarget,_(S))&&S.button===0){if(d){let B=Ka(S.target);B&&E.disposables.push(B)}S.stopPropagation()}},A.onPointerUp=S=>{!te(S.currentTarget,_(S))||E.pointerType==="virtual"||S.button===0&&!E.isPressed&&N(S,E.pointerType||S.pointerType)},A.onPointerEnter=S=>{S.pointerId===E.activePointerId&&E.target&&!E.isOverTarget&&E.pointerType!=null&&(E.isOverTarget=!0,v(Vt(E.target,S),E.pointerType))},A.onPointerLeave=S=>{S.pointerId===E.activePointerId&&E.target&&E.isOverTarget&&E.pointerType!=null&&(E.isOverTarget=!1,k(Vt(E.target,S),E.pointerType,!1),I(S))};let M=S=>{if(S.pointerId===E.activePointerId&&E.isPressed&&S.button===0&&E.target){if(te(E.target,_(S))&&E.pointerType!=null){let B=!1,U=setTimeout(()=>{E.isPressed&&E.target instanceof HTMLElement&&(B?D(S):(Ge(E.target),E.target.click()))},80);$(S.currentTarget,"click",()=>B=!0,!0),E.disposables.push(()=>clearTimeout(U))}else D(S);E.isOverTarget=!1}},X=S=>{D(S)};A.onDragStart=S=>{te(S.currentTarget,_(S))&&D(S)}}else if(process.env.NODE_ENV==="test"){A.onMouseDown=S=>{if(S.button!==0||!te(S.currentTarget,_(S)))return;if(E.ignoreEmulatedMouseEvents){S.stopPropagation();return}if(E.isPressed=!0,E.isOverTarget=!0,E.target=S.currentTarget,E.pointerType=Gi(S.nativeEvent)?"virtual":"mouse",Et.flushSync(()=>v(S,E.pointerType))&&S.stopPropagation(),d){let U=Ka(S.target);U&&E.disposables.push(U)}$(le(S.currentTarget),"mouseup",M,!1)},A.onMouseEnter=S=>{if(!te(S.currentTarget,_(S)))return;let B=!0;E.isPressed&&!E.ignoreEmulatedMouseEvents&&E.pointerType!=null&&(E.isOverTarget=!0,B=v(S,E.pointerType)),B&&S.stopPropagation()},A.onMouseLeave=S=>{if(!te(S.currentTarget,_(S)))return;let B=!0;E.isPressed&&!E.ignoreEmulatedMouseEvents&&E.pointerType!=null&&(E.isOverTarget=!1,B=k(S,E.pointerType,!1),I(S)),B&&S.stopPropagation()},A.onMouseUp=S=>{te(S.currentTarget,_(S))&&!E.ignoreEmulatedMouseEvents&&S.button===0&&!E.isPressed&&N(S,E.pointerType||"mouse")};let M=S=>{if(S.button===0){if(E.ignoreEmulatedMouseEvents){E.ignoreEmulatedMouseEvents=!1;return}E.target&&te(E.target,_(S))&&E.pointerType!=null||D(S),E.isOverTarget=!1}};A.onTouchStart=S=>{if(!te(S.currentTarget,_(S)))return;let B=m4(S.nativeEvent);if(!B)return;E.activePointerId=B.identifier,E.ignoreEmulatedMouseEvents=!0,E.isOverTarget=!0,E.isPressed=!0,E.target=S.currentTarget,E.pointerType="touch",f||lo(E.target),v(kt(E.target,S),E.pointerType)&&S.stopPropagation(),$($e(S.currentTarget),"scroll",X,!0)},A.onTouchMove=S=>{if(!te(S.currentTarget,_(S)))return;if(!E.isPressed){S.stopPropagation();return}let B=Cs(S.nativeEvent,E.activePointerId),U=!0;B&&Es(B,S.currentTarget)?!E.isOverTarget&&E.pointerType!=null&&(E.isOverTarget=!0,U=v(kt(E.target,S),E.pointerType)):E.isOverTarget&&E.pointerType!=null&&(E.isOverTarget=!1,U=k(kt(E.target,S),E.pointerType,!1),I(kt(E.target,S))),U&&S.stopPropagation()},A.onTouchEnd=S=>{if(!te(S.currentTarget,_(S)))return;if(!E.isPressed){S.stopPropagation();return}let B=Cs(S.nativeEvent,E.activePointerId),U=!0;B&&Es(B,S.currentTarget)&&E.pointerType!=null?(N(kt(E.target,S),E.pointerType),U=k(kt(E.target,S),E.pointerType),z(S.nativeEvent,E.target)):E.isOverTarget&&E.pointerType!=null&&(U=k(kt(E.target,S),E.pointerType,!1)),U&&S.stopPropagation(),E.isPressed=!1,E.activePointerId=null,E.isOverTarget=!1,E.ignoreEmulatedMouseEvents=!0,E.target&&!f&&jr(E.target),x()},A.onTouchCancel=S=>{te(S.currentTarget,_(S))&&(S.stopPropagation(),E.isPressed&&D(kt(E.target,S)))};let X=S=>{E.isPressed&&te(_(S),E.target)&&D({currentTarget:E.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};A.onDragStart=S=>{te(S.currentTarget,_(S))&&D(S)}}return A},[$,a,d,x,f,I,v,L,z]);return s.useEffect(()=>{if(!p||process.env.NODE_ENV==="test")return;const E=le(p.current);if(!E||!E.head||E.getElementById(vs))return;const A=E.createElement("style");A.id=vs;let Y=ys(E);Y&&(A.nonce=Y),A.textContent=`
|
|
1
|
+
(function(U,u){typeof exports=="object"&&typeof module<"u"?u(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],u):(U=typeof globalThis<"u"?globalThis:U||self,u(U.CekatUI={},U.React$1,U.$3wX5A$reactdom))})(this,(function(U,u,jt){"use strict";function P$(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const b=P$(u);var k$={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};const _e=(e,t,n,r)=>{const i=u.forwardRef(({color:a="currentColor",size:l=24,stroke:o=2,title:s,className:d,children:c,...f},m)=>u.createElement("svg",{ref:m,...k$[e],width:l,height:l,className:["tabler-icon",`tabler-icon-${t}`,d].join(" "),strokeWidth:o,stroke:a,...f},[s&&u.createElement("title",{key:"svg-title"},s),...r.map(([h,p])=>u.createElement(h,p)),...Array.isArray(c)?c:[c]]));return i.displayName=`${n}`,i};const $i=_e("outline","alert-circle","AlertCircle",[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 8v4",key:"svg-1"}],["path",{d:"M12 16h.01",key:"svg-2"}]]);const B$=_e("outline","alert-triangle","AlertTriangle",[["path",{d:"M12 9v4",key:"svg-0"}],["path",{d:"M10.363 3.591l-8.106 13.534a1.914 1.914 0 0 0 1.636 2.871h16.214a1.914 1.914 0 0 0 1.636 -2.87l-8.106 -13.536a1.914 1.914 0 0 0 -3.274 0",key:"svg-1"}],["path",{d:"M12 16h.01",key:"svg-2"}]]);const N$=_e("outline","arrow-down","ArrowDown",[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M18 13l-6 6",key:"svg-1"}],["path",{d:"M6 13l6 6",key:"svg-2"}]]);const A$=_e("outline","arrow-up","ArrowUp",[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M18 11l-6 -6",key:"svg-1"}],["path",{d:"M6 11l6 -6",key:"svg-2"}]]);const F$=_e("outline","arrows-sort","ArrowsSort",[["path",{d:"M3 9l4 -4l4 4m-4 -4v14",key:"svg-0"}],["path",{d:"M21 15l-4 4l-4 -4m4 4v-14",key:"svg-1"}]]);const vi=_e("outline","check","Check",[["path",{d:"M5 12l5 5l10 -10",key:"svg-0"}]]);const xi=_e("outline","chevron-down","ChevronDown",[["path",{d:"M6 9l6 6l6 -6",key:"svg-0"}]]);const T$=_e("outline","chevron-left","ChevronLeft",[["path",{d:"M15 6l-6 6l6 6",key:"svg-0"}]]);const Ns=_e("outline","chevron-right","ChevronRight",[["path",{d:"M9 6l6 6l-6 6",key:"svg-0"}]]);const nl=_e("outline","circle-check","CircleCheck",[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-0"}],["path",{d:"M9 12l2 2l4 -4",key:"svg-1"}]]);const I$=_e("outline","cloud-upload","CloudUpload",[["path",{d:"M7 18a4.6 4.4 0 0 1 0 -9a5 4.5 0 0 1 11 2h1a3.5 3.5 0 0 1 0 7h-1",key:"svg-0"}],["path",{d:"M9 15l3 -3l3 3",key:"svg-1"}],["path",{d:"M12 12l0 9",key:"svg-2"}]]);const dr=_e("outline","info-circle","InfoCircle",[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 9h.01",key:"svg-1"}],["path",{d:"M11 12h1v4h1",key:"svg-2"}]]);const As=_e("outline","loader-2","Loader2",[["path",{d:"M12 3a9 9 0 1 0 9 9",key:"svg-0"}]]);const Fs=_e("outline","search","Search",[["path",{d:"M3 10a7 7 0 1 0 14 0a7 7 0 1 0 -14 0",key:"svg-0"}],["path",{d:"M21 21l-6 -6",key:"svg-1"}]]);const M$=_e("outline","slash","Slash",[["path",{d:"M17 5l-10 14",key:"svg-0"}]]);const cr=_e("outline","x","X",[["path",{d:"M18 6l-12 12",key:"svg-0"}],["path",{d:"M6 6l12 12",key:"svg-1"}]]);function at(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const fe=typeof document<"u"?u.useLayoutEffect:()=>{},Ci={prefix:String(Math.round(Math.random()*1e10)),current:0},Ts=u.createContext(Ci),K$=u.createContext(!1);let L$=!!(typeof window<"u"&&window.document&&window.document.createElement),rl=new WeakMap;function O$(e=!1){let t=u.useContext(Ts),n=u.useRef(null);if(n.current===null&&!e){let r=u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;if(r){let i=rl.get(r);i==null?rl.set(r,{id:t.current,state:r.memoizedState}):r.memoizedState!==i.state&&(t.current=i.id,rl.delete(r))}n.current=++t.current}return n.current}function z$(e){let t=u.useContext(Ts);t===Ci&&!L$&&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 n=O$(!!e),r=t===Ci&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function V$(e){let t=u.useId(),[n]=u.useState(Ht()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Ci.prefix}`;return e||`${r}-${t}`}const _$=typeof u.useId=="function"?V$:z$;function R$(){return!1}function j$(){return!0}function H$(e){return()=>{}}function Ht(){return typeof u.useSyncExternalStore=="function"?u.useSyncExternalStore(H$,R$,j$):u.useContext(K$)}function U$(e){let[t,n]=u.useState(e),r=u.useRef(t),i=u.useRef(null),a=u.useRef(()=>{if(!i.current)return;let o=i.current.next();if(o.done){i.current=null;return}r.current===o.value?a.current():n(o.value)});fe(()=>{r.current=t,i.current&&a.current()});let l=u.useCallback(o=>{i.current=o(r.current),a.current()},[a]);return[t,l]}let W$=!!(typeof window<"u"&&window.document&&window.document.createElement),Tn=new Map,In;typeof FinalizationRegistry<"u"&&(In=new FinalizationRegistry(e=>{Tn.delete(e)}));let il=new WeakMap;function Ee(e){let[t,n]=u.useState(e),r=u.useRef(null),i=_$(t),a=u.useRef(null),l=il.get(a);if(In&&l!==i&&(l!=null&&In.unregister(a),In.register(a,i,a),il.set(a,i)),W$){const o=Tn.get(i);o&&!o.includes(r)?o.push(r):Tn.set(i,[r])}return fe(()=>{let o=i;return()=>{In&&(In.unregister(a),il.delete(a)),Tn.delete(o)}},[i]),u.useEffect(()=>{let o=r.current;return o&&n(o),()=>{o&&(r.current=null)}}),i}function G$(e,t){if(e===t)return e;let n=Tn.get(e);if(n)return n.forEach(i=>i.current=t),t;let r=Tn.get(t);return r?(r.forEach(i=>i.current=e),e):t}function mt(e=[]){let t=Ee(),[n,r]=U$(t),i=u.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return fe(i,[t,i,...e]),n}function fr(...e){return e.length===1&&e[0]?e[0]:t=>{let n=!1;const r=e.map(i=>{const a=Is(i,t);return n||=typeof a=="function",a});if(n)return()=>{r.forEach((i,a)=>{typeof i=="function"?i():Is(e[a],null)})}}}function Is(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ms(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Ms(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ee(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Ms(e))&&(r&&(r+=" "),r+=t);return r}function q(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let i in r){let a=t[i],l=r[i];typeof a=="function"&&typeof l=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=at(a,l):(i==="className"||i==="UNSAFE_className")&&typeof a=="string"&&typeof l=="string"?t[i]=ee(a,l):i==="id"&&a&&l?t.id=G$(a,l):i==="ref"&&a&&l?t.ref=fr(a,l):t[i]=l!==void 0?l:a}}return t}function Te(e){const t=u.useRef(null),n=u.useRef(void 0),r=u.useCallback(i=>{if(typeof e=="function"){const a=e,l=a(i);return()=>{typeof l=="function"?l():a(null)}}else if(e)return e.current=i,()=>{e.current=null}},[e]);return u.useMemo(()=>({get current(){return t.current},set current(i){t.current=i,n.current&&(n.current(),n.current=void 0),i!=null&&(n.current=r(i))}}),[r])}const Nt=Symbol("default");function Pe({values:e,children:t}){for(let[n,r]of e)t=u.createElement(n.Provider,{value:r},t);return t}function ue(e){let{className:t,style:n,children:r,defaultClassName:i,defaultChildren:a,defaultStyle:l,values:o,render:s}=e;return u.useMemo(()=>{let d,c,f;return typeof t=="function"?d=t({...o,defaultClassName:i}):d=t,typeof n=="function"?c=n({...o,defaultStyle:l||{}}):c=n,typeof r=="function"?f=r({...o,defaultChildren:a}):r==null?f=a:f=r,{className:d??i,style:c||l?{...l,...c}:void 0,children:f??a,"data-rac":"",render:s?m=>s(m,o):void 0}},[t,n,r,i,a,l,o,s])}function al(e,t){return n=>t(typeof e=="function"?e(n):e,n)}function qe(e,t){let n=u.useContext(e);if(t===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let r=t||Nt;if(!n.slots[r]){let i=new Intl.ListFormat().format(Object.keys(n.slots).map(l=>`"${l}"`)),a=t?`Invalid slot "${t}".`:"A slot prop is required.";throw new Error(`${a} Valid slot names are ${i}.`)}return n.slots[r]}return n}function pe(e,t,n){let r=qe(n,e.slot)||{},{ref:i,...a}=r,l=Te(u.useMemo(()=>fr(t,i),[t,i])),o=q(a,e);return"style"in a&&a.style&&"style"in e&&e.style&&(typeof a.style=="function"||typeof e.style=="function"?o.style=s=>{let d=typeof a.style=="function"?a.style(s):a.style,c={...s.defaultStyle,...d},f=typeof e.style=="function"?e.style({...s,defaultStyle:c}):e.style;return{...c,...f}}:o.style={...a.style,...e.style}),[o,l]}function un(e=!0){let[t,n]=u.useState(e),r=u.useRef(!1),i=u.useCallback(a=>{r.current=!0,n(!!a)},[]);return fe(()=>{r.current||n(!1)},[]),[i,t]}function mr(e){const t=/^(data-.*)$/;let n={};for(const r in e)t.test(r)||(n[r]=e[r]);return n}function Z$(e,t,n){let{render:r,...i}=t,a=u.useRef(null),l=u.useMemo(()=>fr(n,a),[n,a]);fe(()=>{process.env.NODE_ENV!=="production"&&r&&(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,r]);let o={...i,ref:l};return r?r(o,void 0):u.createElement(e,o)}const Ks={},re=new Proxy({},{get(e,t){if(typeof t!="string")return;let n=Ks[t];return n||(n=u.forwardRef(Z$.bind(null,t)),Ks[t]=n),n}}),Y$="react-aria-clear-focus",q$="react-aria-focus",se=e=>X$(e)?e.document:J$(e)?e:e?.ownerDocument??(typeof document<"u"?document:void 0),xe=e=>se(e)?.defaultView??(typeof window<"u"?window:void 0);function Ls(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function X$(e){return typeof e=="object"&&e!=null&&"window"in e&&e.window===e}function J$(e){return Ls(e)&&e.nodeType===9}function ll(e){return Ls(e)&&e.nodeType===11&&"host"in e}function Q$(e,t,n,r){if(n==null||e==null)return()=>{};let i=Array.isArray(e)?e:[e];for(let a of i)a.addEventListener(t,n,r);return()=>{for(let a of i)a.removeEventListener(t,n,r)}}let e5=!1;function ht(){return e5}function ae(e,t){if(!ht())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;typeof n.assignedElements!="function"&&n.assignedSlot?.parentNode?n=n.assignedSlot.parentNode:ll(n)?n=n.host:n=n.parentNode}return!1}const ce=(e=document)=>{if(!ht())return e.activeElement;let t=e.activeElement;for(;t&&"shadowRoot"in t&&t.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t};function W(e){if(ht()&&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 t5(e,t){if(t===null)return[];t=t??xe(e);let n=[t];if(!ht()||!e||e===t)return n;let r="getRootNode"in t?t.getRootNode():null,i=e.getRootNode()??null;for(;ll(i)&&i!==r;)n.push(i),i=i.host.getRootNode();return n}function Ut(e){if(!e)return!1;let t=e.getRootNode(),n=xe(e);if(!(t instanceof n.Document||t instanceof n.ShadowRoot))return!1;let r=t.activeElement;return r!=null&&e.contains(r)}function Os(e){let t=r5(se(e));t!==e&&(t&&n5(t,e),e&&ol(e,t))}function n5(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function ol(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function r5(e){let t=ce(e),n=t?.getAttribute("aria-activedescendant");return n&&e.getElementById(n)||t}function Xe(e){if(i5())e.focus({preventScroll:!0});else{let t=a5(e);e.focus(),l5(t)}}let Di=null;function i5(){if(Di==null){Di=!1;try{document.createElement("div").focus({get preventScroll(){return Di=!0,!0}})}catch{}}return Di}function a5(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function l5(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}const o5=typeof Element<"u"&&"checkVisibility"in Element.prototype;function u5(e){const t=xe(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i=n!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:a}=xe(e);let{display:l,visibility:o}=a(e);i=l!=="none"&&o!=="hidden"&&o!=="collapse"}return i}function s5(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 ul(e,t){return o5?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&u5(e)&&s5(e,t)&&(!e.parentElement||ul(e.parentElement,e))}const sl=["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"],d5=sl.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";sl.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const c5=sl.join(':not([hidden]):not([tabindex="-1"]),');function zs(e,t){return e.matches(d5)&&!Vs(e)&&(t?.skipVisibilityCheck||ul(e))}function dl(e){return e.matches(c5)&&ul(e)&&!Vs(e)}function Vs(e){let t=e;for(;t!=null;){if(t instanceof xe(t).HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function cl(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function _s(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function Rs(e){let t=u.useRef({isFocused:!1,observer:null});return fe(()=>{const n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]),u.useCallback(n=>{let r=W(n);if(r instanceof HTMLButtonElement||r instanceof HTMLInputElement||r instanceof HTMLTextAreaElement||r instanceof HTMLSelectElement){t.current.isFocused=!0;let i=r,a=l=>{if(t.current.isFocused=!1,i.disabled){let o=cl(l);e?.(o)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",a,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){t.current.observer?.disconnect();let l=i===ce()?null:ce();i.dispatchEvent(new FocusEvent("blur",{relatedTarget:l})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:l}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[e])}let Ei=!1;function js(e){for(;e&&!zs(e,{skipVisibilityCheck:!0});)e=e.parentElement;let t=xe(e),n=t.document.activeElement;if(!n||n===e)return;Ei=!0;let r=!1,i=c=>{(W(c)===n||r)&&c.stopImmediatePropagation()},a=c=>{(W(c)===n||r)&&(c.stopImmediatePropagation(),!e&&!r&&(r=!0,Xe(n),s()))},l=c=>{(W(c)===e||r)&&c.stopImmediatePropagation()},o=c=>{(W(c)===e||r)&&(c.stopImmediatePropagation(),r||(r=!0,Xe(n),s()))};t.addEventListener("blur",i,!0),t.addEventListener("focusout",a,!0),t.addEventListener("focusin",o,!0),t.addEventListener("focus",l,!0);let s=()=>{cancelAnimationFrame(d),t.removeEventListener("blur",i,!0),t.removeEventListener("focusout",a,!0),t.removeEventListener("focusin",o,!0),t.removeEventListener("focus",l,!0),Ei=!1,r=!1},d=requestAnimationFrame(s);return s}function wi(e){if(typeof window>"u"||window.navigator==null)return!1;let t=window.navigator.userAgentData?.brands;return Array.isArray(t)&&t.some(n=>e.test(n.brand))||e.test(window.navigator.userAgent)}function fl(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.userAgentData?.platform||window.navigator.platform):!1}function pt(e){if(process.env.NODE_ENV==="test")return e;let t=null;return()=>(t==null&&(t=e()),t)}const Je=pt(function(){return fl(/^Mac/i)}),f5=pt(function(){return fl(/^iPhone/i)}),Hs=pt(function(){return fl(/^iPad/i)||Je()&&navigator.maxTouchPoints>1}),bt=pt(function(){return f5()||Hs()}),Si=pt(function(){return Je()||bt()}),gt=pt(function(){return wi(/AppleWebKit/i)&&(bt()||!ml())});pt(function(){return gt()&&!ml()&&!Us()});const ml=pt(function(){return wi(/Chrome|CriOS|CrMo/i)}),Mn=pt(function(){return wi(/Android/i)}),Us=pt(function(){return wi(/(Firefox|FxiOS)/i)});function hl(e){return e.pointerType===""&&e.isTrusted?!0:Mn()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function m5(e){return!Mn()&&e.width===0&&e.height===0||Mn()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}const h5=u.createContext({isNative:!0,open:g5,useHref:e=>e});function sn(){return u.useContext(h5)}function p5(e,t){let n=e.getAttribute("target");return(!n||n==="_self")&&e.origin===location.origin&&!e.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function At(e,t,n=!0){let{metaKey:r,ctrlKey:i,altKey:a,shiftKey:l}=t;!gt()&&Us()&&window.event?.type?.startsWith("key")&&e.target==="_blank"&&(Je()?r=!0:i=!0);let o=gt()&&Je()&&!Hs()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:r,ctrlKey:i,altKey:a,shiftKey:l}):new MouseEvent("click",{metaKey:r,ctrlKey:i,altKey:a,shiftKey:l,detail:1,bubbles:!0,cancelable:!0});At.isOpening=n,Xe(e),e.dispatchEvent(o),At.isOpening=!1}At.isOpening=!1;function b5(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function g5(e,t){b5(e,n=>At(n,t))}function y5(e){const n=sn().useHref(e.href??"");return{"data-href":e.href?n:void 0,"data-target":e.target,"data-rel":e.rel,"data-download":e.download,"data-ping":e.ping,"data-referrer-policy":e.referrerPolicy}}function Pi(e){const n=sn().useHref(e?.href??"");let r={};if(e)for(let i of["href","target","rel","download","ping","referrerPolicy"])i in e&&e[i]!==void 0&&(r[i]=i==="href"?n:e[i]);return r}function Ws(e,t,n,r){!t.isNative&&e.currentTarget instanceof HTMLAnchorElement&&e.currentTarget.href&&!e.isDefaultPrevented()&&p5(e.currentTarget,e)&&n&&(e.preventDefault(),t.open(e.currentTarget,e,n,r))}let Ft=null;const hr=new Set;let pr=new Map,dn=!1,pl=!1;const $5={Tab:!0,Escape:!0};function ki(e,t){for(let n of hr)n(e,t)}function v5(e){return!(e.metaKey||!Je()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Bi(e){dn=!0,!At.isOpening&&v5(e)&&(Ft="keyboard",ki("keyboard",e))}function Qe(e){Ft="pointer","pointerType"in e&&e.pointerType,(e.type==="mousedown"||e.type==="pointerdown")&&(dn=!0,ki("pointer",e))}function Gs(e){!At.isOpening&&hl(e)&&(dn=!0,Ft="virtual")}function Zs(e){let t=xe(W(e)),n=se(W(e));W(e)===t||W(e)===n||Ei||!e.isTrusted||(!dn&&!pl&&(Ft="virtual",ki("virtual",e)),dn=!1,pl=!1)}function Ys(){Ei||(dn=!1,pl=!0)}function Ni(e){if(typeof window>"u"||typeof document>"u")return;const t=xe(e),n=se(e);if(pr.get(t))return;let r=t.HTMLElement.prototype.focus;Reflect.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:function(){dn=!0,r.apply(this,arguments)}}),n.addEventListener("keydown",Bi,!0),n.addEventListener("keyup",Bi,!0),n.addEventListener("click",Gs,!0),t.addEventListener("focus",Zs,!0),t.addEventListener("blur",Ys,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Qe,!0),n.addEventListener("pointermove",Qe,!0),n.addEventListener("pointerup",Qe,!0)):process.env.NODE_ENV==="test"&&(n.addEventListener("mousedown",Qe,!0),n.addEventListener("mousemove",Qe,!0),n.addEventListener("mouseup",Qe,!0)),t.addEventListener("beforeunload",()=>{qs(e)},{once:!0}),pr.set(t,{focus:r})}const qs=(e,t)=>{const n=xe(e),r=se(e);t&&r.removeEventListener("DOMContentLoaded",t),pr.has(n)&&(Reflect.defineProperty(n.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:pr.get(n).focus}),r.removeEventListener("keydown",Bi,!0),r.removeEventListener("keyup",Bi,!0),r.removeEventListener("click",Gs,!0),n.removeEventListener("focus",Zs,!0),n.removeEventListener("blur",Ys,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Qe,!0),r.removeEventListener("pointermove",Qe,!0),r.removeEventListener("pointerup",Qe,!0)):process.env.NODE_ENV==="test"&&(r.removeEventListener("mousedown",Qe,!0),r.removeEventListener("mousemove",Qe,!0),r.removeEventListener("mouseup",Qe,!0)),pr.delete(n))};function x5(e){const t=se(e);let n;return t.readyState!=="loading"?Ni(e):(n=()=>{Ni(e)},t.addEventListener("DOMContentLoaded",n)),()=>qs(e,n)}typeof document<"u"&&x5();function Wt(){return Ft!=="pointer"}function Kn(){return Ft}function Ln(e){Ft=e,ki(e,null)}function Xs(){Ni();let[e,t]=u.useState(Ft);return u.useEffect(()=>{let n=()=>{t(Ft)};return hr.add(n),()=>{hr.delete(n)}},[]),Ht()?null:e}const C5=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function D5(e,t,n){let r=n?W(n):void 0,i=se(r),a=xe(r);const l=typeof a<"u"?a.HTMLInputElement:HTMLInputElement,o=typeof a<"u"?a.HTMLTextAreaElement:HTMLTextAreaElement,s=typeof a<"u"?a.HTMLElement:HTMLElement,d=typeof a<"u"?a.KeyboardEvent:KeyboardEvent;let c=ce(i);return e=e||c instanceof l&&!C5.has(c.type)||c instanceof o||c instanceof s&&c.isContentEditable,!(e&&t==="keyboard"&&n instanceof d&&!$5[n.key])}function E5(e,t,n){Ni(),u.useEffect(()=>{if(n?.enabled===!1)return;let r=(i,a)=>{D5(!!n?.isTextInput,i,a)&&e(Wt())};return hr.add(r),()=>{hr.delete(r)}},t)}function br(e){return Je()?e.metaKey:e.ctrlKey}const w5=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function gr(e){return e instanceof HTMLInputElement&&!w5.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}const S5=u.useInsertionEffect??fe;function De(e){const t=u.useRef(null);return S5(()=>{t.current=e},[e]),u.useCallback((...n)=>{const r=t.current;return r?.(...n)},[])}function lt(e,t,n,r){let i=De(n),a=n==null;u.useEffect(()=>{if(a||!e.current)return;let l=e.current;return l.addEventListener(t,i,r),()=>{l.removeEventListener(t,i,r)}},[e,t,r,a])}function Tt(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=Ee(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":i}}const P5=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),k5=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function B5(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return P5.has(n.script)}let t=e.split("-")[0];return k5.has(t)}const Js=Symbol.for("react-aria.i18n.locale");function Qs(){let e=typeof window<"u"&&window[Js]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:B5(e)?"rtl":"ltr"}}let bl=Qs(),yr=new Set;function ed(){bl=Qs();for(let e of yr)e(bl)}function N5(){let e=Ht(),[t,n]=u.useState(bl);return u.useEffect(()=>(yr.size===0&&window.addEventListener("languagechange",ed),yr.add(n),()=>{yr.delete(n),yr.size===0&&window.removeEventListener("languagechange",ed)}),[]),e?{locale:typeof window<"u"&&window[Js]||"en-US",direction:"ltr"}:t}const A5=u.createContext(null);function be(){let e=N5();return u.useContext(A5)||e}const F5=Symbol.for("react-aria.i18n.locale"),T5=Symbol.for("react-aria.i18n.strings");let Ai;class cn{constructor(t,n="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,r])=>r)),this.defaultLocale=n}getStringForLocale(t,n){let i=this.getStringsForLocale(n)[t];if(!i)throw new Error(`Could not find intl message ${t} in ${n} locale`);return i}getStringsForLocale(t){let n=this.strings[t];return n||(n=I5(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[F5];if(Ai===void 0){let i=window[T5];if(!i)return null;Ai={};for(let a in i)Ai[a]=new cn({[n]:i[a]},n)}let r=Ai?.[t];if(!r)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}}function I5(e,t,n="en-US"){if(t[e])return t[e];let r=M5(e),i=K5(e);if(i&&t[`${r}-${i}`])return t[`${r}-${i}`];if(t[r])return t[r];for(let a in t)if(a.startsWith(r+"-"))return t[a];return t[n]}function M5(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}function K5(e){if(Intl.Locale)return new Intl.Locale(e).script}const td=new Map,nd=new Map;class rd{constructor(t,n){this.locale=t,this.strings=n}format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let i=n["="+t];if(i)return typeof i=="function"?i():i;let a=this.locale+":"+r,l=td.get(a);l||(l=new Intl.PluralRules(this.locale,{type:r}),td.set(a,l));let o=l.select(t);return i=n[o]||n.other,typeof i=="function"?i():i}number(t){let n=nd.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),nd.set(this.locale,n)),n.format(t)}select(t,n){let r=t[n]||t.other;return typeof r=="function"?r():r}}const id=new WeakMap;function L5(e){let t=id.get(e);return t||(t=new cn(e),id.set(e,t)),t}function ad(e,t){return t&&cn.getGlobalDictionaryForPackage(t)||L5(e)}function ke(e,t){let{locale:n}=be(),r=ad(e,t);return u.useMemo(()=>new rd(n,r),[n,r])}const O5=typeof document<"u"?u.useInsertionEffect??u.useLayoutEffect:()=>{};function He(e,t,n){let[r,i]=u.useState(e||t),a=u.useRef(r),l=u.useRef(e!==void 0),o=e!==void 0;u.useEffect(()=>{let f=l.current;f!==o&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${f?"controlled":"uncontrolled"} to ${o?"controlled":"uncontrolled"}.`),l.current=o},[o]);let s=o?e:r;O5(()=>{a.current=s});let[,d]=u.useReducer(()=>({}),{}),c=u.useCallback((f,...m)=>{let h=typeof f=="function"?f(a.current):f;Object.is(a.current,h)||(a.current=h,i(h),d(),n?.(h,...m))},[n]);return[s,c]}const $r=u.createContext(null),vr=u.createContext(null);class et{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,n,r){let i=this.clone();return n.addDescendants(i,t),i}}class Fi extends et{filter(t,n,r){let[i,a]=ud(t,n,this.firstChildKey,r),l=this.clone();return l.firstChildKey=i,l.lastChildKey=a,l}}const bs=class bs extends et{};bs.type="header";let gl=bs;const gs=class gs extends et{};gs.type="loader";let Ti=gs;const ys=class ys extends Fi{filter(t,n,r){if(r(this.textValue,this)){let i=this.clone();return n.addDescendants(i,t),i}return null}};ys.type="item";let Ii=ys;const $s=class $s extends Fi{filter(t,n,r){let i=super.filter(t,n,r);if(i&&i.lastChildKey!==null){let a=t.getItem(i.lastChildKey);if(a&&a.type!=="header")return i}return null}};$s.type="section";let ld=$s;class od{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let t=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;t;)yield t,t=t.nextKey!=null?this.keyMap.get(t.nextKey):void 0}getChildren(t){let n=this.keyMap;return{*[Symbol.iterator](){let r=n.get(t),i=r?.firstChildKey!=null?n.get(r.firstChildKey):null;for(;i;)yield i,i=i.nextKey!=null?n.get(i.nextKey):void 0}}}getKeyBefore(t){let n=this.keyMap.get(t);if(!n)return null;if(n.prevKey!=null){for(n=this.keyMap.get(n.prevKey);n&&n.type!=="item"&&n.lastChildKey!=null;)n=this.keyMap.get(n.lastChildKey);return n?.key??null}return n.parentKey}getKeyAfter(t){let n=this.keyMap.get(t);if(!n)return null;if(n.type!=="item"&&n.firstChildKey!=null)return n.firstChildKey;for(;n;){if(n.nextKey!=null)return n.nextKey;if(n.parentKey!=null)n=this.keyMap.get(n.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let t=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;t?.lastChildKey!=null;)t=this.keyMap.get(t.lastChildKey);return t?.key??null}getItem(t){return this.keyMap.get(t)??null}at(){throw new Error("Not implemented")}clone(){let t=this.constructor,n=new t;return n.keyMap=new Map(this.keyMap),n.firstKey=this.firstKey,n.lastKey=this.lastKey,n.itemCount=this.itemCount,n}addNode(t){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");t.type==="item"&&this.keyMap.get(t.key)==null&&this.itemCount++,this.keyMap.set(t.key,t)}addDescendants(t,n){this.addNode(t);let r=n.getChildren(t.key);for(let i of r)this.addDescendants(i,n)}removeNode(t){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");let n=this.keyMap.get(t);n!=null&&n.type==="item"&&this.itemCount--,this.keyMap.delete(t)}commit(t,n,r=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=t,this.lastKey=n,this.frozen=!r}filter(t){let n=new this.constructor,[r,i]=ud(this,n,this.firstKey,t);return n?.commit(r,i),n}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}}function ud(e,t,n,r){if(n==null)return[null,null];let i=null,a=null,l=e.getItem(n);for(;l!=null;){let o=l.filter(e,t,r);o!=null&&(o.nextKey=null,a&&(o.prevKey=a.key,a.nextKey=o.key),i==null&&(i=o),t.addNode(o),a=o),l=l.nextKey!=null?e.getItem(l.nextKey):null}if(a&&a.type==="separator"){let o=a.prevKey;t.removeNode(a.key),o!=null?(a=t.getItem(o),a.nextKey=null):a=null}return[i?.key??null,a?.key??null]}class sd{constructor(t){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=t}*[Symbol.iterator](){let t=this.firstChild;for(;t;)yield t,t=t.nextSibling}get firstChild(){return this._firstChild}set firstChild(t){this._firstChild=t,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(t){this._lastChild=t,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(t){this._previousSibling=t,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(t){this._nextSibling=t,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(t){this._parentNode=t,this.ownerDocument.markDirty(this)}get isConnected(){return this.parentNode?.isConnected||!1}invalidateChildIndices(t){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||t.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=t,this.ownerDocument.markDirty(this))}updateChildIndices(){let t=this._minInvalidChildIndex;for(;t;)t.index=t.previousSibling?t.previousSibling.index+1:0,t=t.nextSibling;this._minInvalidChildIndex=null}appendChild(t){t.parentNode&&t.parentNode.removeChild(t),this.firstChild==null&&(this.firstChild=t),this.lastChild?(this.lastChild.nextSibling=t,t.index=this.lastChild.index+1,t.previousSibling=this.lastChild):(t.previousSibling=null,t.index=0),t.parentNode=this,t.nextSibling=null,this.lastChild=t,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(t,n){if(n==null)return this.appendChild(t);t.parentNode&&t.parentNode.removeChild(t),t.nextSibling=n,t.previousSibling=n.previousSibling,t.index=n.index-1,this.firstChild===n?this.firstChild=t:n.previousSibling&&(n.previousSibling.nextSibling=t),n.previousSibling=t,t.parentNode=n.parentNode,this.invalidateChildIndices(t),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(t){t.parentNode===this&&(this._minInvalidChildIndex===t&&(this._minInvalidChildIndex=null),t.nextSibling&&(this.invalidateChildIndices(t.nextSibling),t.nextSibling.previousSibling=t.previousSibling),t.previousSibling&&(t.previousSibling.nextSibling=t.nextSibling),this.firstChild===t&&(this.firstChild=t.nextSibling),this.lastChild===t&&(this.lastChild=t.previousSibling),t.parentNode=null,t.nextSibling=null,t.previousSibling=null,t.index=0,this.ownerDocument.markDirty(t),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let t=this.previousSibling;for(;t&&t.isHidden;)t=t.previousSibling;return t}get nextVisibleSibling(){let t=this.nextSibling;for(;t&&t.isHidden;)t=t.nextSibling;return t}get firstVisibleChild(){let t=this.firstChild;for(;t&&t.isHidden;)t=t.nextSibling;return t}get lastVisibleChild(){let t=this.lastChild;for(;t&&t.isHidden;)t=t.previousSibling;return t}}class On extends sd{constructor(t,n){super(n),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof On?this.parentNode.level+(this.parentNode.node?.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(){let t=this.nextVisibleSibling,n=this.getMutableNode();if(n!=null&&(n.index=this.index,n.level=this.level,n.parentKey=this.parentNode instanceof On?this.parentNode.node?.key??null:null,n.prevKey=this.previousVisibleSibling?.node?.key??null,n.nextKey=t?.node?.key??null,n.hasChildNodes=!!this.firstChild,n.firstChildKey=this.firstVisibleChild?.node?.key??null,n.lastChildKey=this.lastVisibleChild?.node?.key??null,(n.colSpan!=null||n.colIndex!=null)&&t)){let r=(n.colIndex??n.index)+(n.colSpan??1);if(t.node!=null&&r!==t.node.colIndex){let i=t.getMutableNode();i.colIndex=r}}}setProps(t,n,r,i,a){let l,{value:o,textValue:s,id:d,...c}=t;if(this.node==null?(l=new r(d??`react-aria-${++this.ownerDocument.nodeId}`),this.node=l):l=this.getMutableNode(),c.ref=n,l.props=c,l.rendered=i,l.render=a,l.value=o,t["aria-label"]&&(l["aria-label"]=t["aria-label"]),l.textValue=s||(typeof c.children=="string"?c.children:"")||t["aria-label"]||"",d!=null&&d!==l.key)throw new Error("Cannot change the id of an item");c.colSpan!=null&&(l.colSpan=c.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let t=this;return{get display(){return t.isHidden?"none":""},set display(n){let r=n==="none";if(t.isHidden!==r){(t.parentNode?.firstVisibleChild===t||t.parentNode?.lastVisibleChild===t)&&t.ownerDocument.markDirty(t.parentNode);let i=t.previousVisibleSibling,a=t.nextVisibleSibling;i&&t.ownerDocument.markDirty(i),a&&t.ownerDocument.markDirty(a),t.isHidden=r,t.ownerDocument.markDirty(t)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}}class z5 extends sd{constructor(t){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=t,this.nextCollection=t}get isConnected(){return!0}createElement(t){return new On(t,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(t){this.dirtyNodes.add(t)}addNode(t){if(t.isHidden||t.node==null)return;let n=this.getMutableCollection();if(!n.getItem(t.node.key))for(let r of t)this.addNode(r);n.addNode(t.node)}removeNode(t){for(let n of t)this.removeNode(n);t.node&&this.getMutableCollection().removeNode(t.node.key)}getCollection(){return this.inSubscription?this.collection:(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let t of this.dirtyNodes)t instanceof On&&(!t.isConnected||t.isHidden)?this.removeNode(t):t.updateChildIndices();for(let t of this.dirtyNodes)t instanceof On?(t.isConnected&&!t.isHidden&&(t.updateNode(),this.addNode(t)),t.node&&this.dirtyNodes.delete(t),t.isMutated=!1):this.dirtyNodes.delete(t);this.nextCollection&&(this.nextCollection.commit(this.firstVisibleChild?.node?.key??null,this.lastVisibleChild?.node?.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 t of this.subscriptions)t();this.inSubscription=!1}}subscribe(t){return this.subscriptions.add(t),this.queuedRender&&t(),()=>this.subscriptions.delete(t)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}}function yl(e){let{children:t,items:n,idScope:r,addIdAndValue:i,dependencies:a=[]}=e,l=u.useMemo(()=>process.env.NODE_ENV!=="production"&&typeof t=="function"?t.toString():void 0,[t]),o=u.useMemo(()=>new WeakMap,[...a,l]);return u.useMemo(()=>{if(n&&typeof t=="function"){let s=[];for(let d of n){let c=V5(d)?d:null,f=c?o.get(c):null;if(!f){f=t(d);let m=f.props.id??d?.key??d?.id;r!=null&&f.props.id==null&&m!=null&&(m=r+":"+m);let h=m??s.length;f=u.cloneElement(f,i?{key:h,id:m,value:d}:{key:h}),c&&o.set(c,f)}s.push(f)}return s}else if(typeof t!="function")return t},[t,n,o,r,i])}function V5(e){switch(typeof e){case"object":return e!=null;case"function":case"symbol":return!0;default:return!1}}let Gt=new Map,$l=new Set;function dd(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{let i=W(r);if(!e(r)||!i)return;let a=Gt.get(i);a||(a=new Set,Gt.set(i,a),i.addEventListener("transitioncancel",n,{once:!0})),a.add(r.propertyName)},n=r=>{let i=W(r);if(!e(r)||!i)return;let a=Gt.get(i);if(a&&(a.delete(r.propertyName),a.size===0&&(i.removeEventListener("transitioncancel",n),Gt.delete(i)),Gt.size===0)){for(let l of $l)l();$l.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?dd():document.addEventListener("DOMContentLoaded",dd));function _5(){for(const[e]of Gt)"isConnected"in e&&!e.isConnected&&Gt.delete(e)}function cd(e){requestAnimationFrame(()=>{_5(),Gt.size===0?e():$l.add(e)})}function Ie(e){if(!e.isConnected)return;const t=se(e);if(Kn()==="virtual"){let n=ce(t);cd(()=>{const r=ce(t);(r===n||r===t.body)&&e.isConnected&&Xe(e)})}else Xe(e)}function vl(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const a=u.useCallback(s=>{if(W(s)===s.currentTarget)return r&&r(s),i&&i(!1),!0},[r,i]),l=Rs(a),o=u.useCallback(s=>{let d=W(s);const c=se(d),f=c?ce(c):ce();d===s.currentTarget&&d===f&&(n&&n(s),i&&i(!0),l(s))},[i,n,l]);return{focusProps:{onFocus:!t&&(n||i||r)?o:void 0,onBlur:!t&&(r||i)?a:void 0}}}function Mi(e){if(e)return t=>{let n=!0,r={...t,preventDefault(){t.preventDefault()},isDefaultPrevented(){return t.isDefaultPrevented()},stopPropagation(){n&&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."):n=!0},continuePropagation(){n=!1,typeof t.continuePropagation=="function"&&t.continuePropagation()},isPropagationStopped(){return n}};e(r),n&&!(typeof t.isPropagationStopped=="function"&&t.isPropagationStopped())&&t.stopPropagation()}}const R5=new Set(["shift","alt","control","meta","mod"]),j5=["Alt","Control","Meta","Shift"];function H5(e){let t=new Set;return e.alt&&t.add("Alt"),e.shift&&t.add("Shift"),e.ctrl&&t.add("Control"),e.meta&&t.add("Meta"),e.mod&&t.add(Je()?"Meta":"Control"),t}function U5(e){let t=new Set;return e.altKey&&t.add("Alt"),e.ctrlKey&&t.add("Control"),e.metaKey&&t.add("Meta"),e.shiftKey&&t.add("Shift"),t}function fd(e){return j5.filter(t=>e.has(t))}function W5(e){let t=e.split("+").reduce((n,r)=>{let i=r.toLowerCase();return R5.has(i)?i==="shift"?n.shift=!0:i==="alt"?n.alt=!0:i==="control"?n.ctrl=!0:i==="meta"?n.meta=!0:i==="mod"&&(n.mod=!0):n.key=r,n},{shift:!1,alt:!1,ctrl:!1,meta:!1,mod:!1,key:""});if(t.key==="")throw new Error(`Invalid keyboard shortcut: "${e}". Must include exactly one non-modifier key (e.g. "a", "Enter", "ArrowDown"). Combine any of Shift, Alt, Ctrl, Meta, and Mod.`);return t}function md(e){return e.toLowerCase()}const G5={space:" ",esc:"escape",del:"delete",ins:"insert",left:"arrowleft",right:"arrowright",up:"arrowup",down:"arrowdown",pageup:"pageup",pagedown:"pagedown"};function Z5(e){let t=md(e),n=G5[t];return n??t}function Y5(e){let t=fd(H5(e)),n=Z5(e.key);return t.length>0?`${t.join("+")}+${n}`:n}function q5(e){let t=fd(U5(e)),n=md(e.key);return(t.length>0?`${t.join("+")}+`:"")+n}function X5(e){let t=new Map;for(let[n,r]of Object.entries(e)){let i=W5(n);t.set(Y5(i),r)}return n=>{let r=q5(n),i=t.get(r),a=i?.(n);a===void 0&&i!==void 0?a={shouldContinuePropagation:!1,shouldPreventDefault:!0}:typeof a=="boolean"&&(a={shouldContinuePropagation:!a,shouldPreventDefault:a}),a?.shouldPreventDefault&&n.preventDefault(),(!i||a?.shouldContinuePropagation)&&n.continuePropagation()}}function Le(e){let{shortcuts:t,allowRepeats:n=!1,allowComposing:r=!1}=e,i,a;if(t){let l=X5(t),o=Mi(d=>{if(!ae(d.currentTarget,W(d))){d.continuePropagation();return}if(d.nativeEvent?.repeat&&!n||d.nativeEvent?.isComposing&&!r){d.continuePropagation();return}l(d)}),s=Mi(d=>{if(!ae(d.currentTarget,W(d))){d.continuePropagation();return}if(d.nativeEvent?.repeat&&!n||d.nativeEvent?.isComposing&&!r){d.continuePropagation();return}d.continuePropagation()});i=e.onKeyDown?at(e.onKeyDown,o):o,a=e.onKeyUp?at(e.onKeyUp,s):s}else i=Mi(e.onKeyDown),a=Mi(e.onKeyUp);return{keyboardProps:e.isDisabled?{}:{onKeyDown:i,onKeyUp:a}}}function xl(e,t){fe(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}let Ki=u.createContext(null);function J5(e){let t=u.useContext(Ki)||{};xl(t,e);let{ref:n,...r}=t;return r}function zn(e,t){let{focusProps:n}=vl(e),{keyboardProps:r}=Le(e),i=q(n,r),a=J5(t),l=e.isDisabled?{}:a,o=u.useRef(e.autoFocus);u.useEffect(()=>{o.current&&t.current&&Ie(t.current),o.current=!1},[t]);let s=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(s=void 0),{focusableProps:q({...i,tabIndex:s},l)}}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 Li=u.createContext(!1);function Q5(e){if(u.useContext(Li))return u.createElement(u.Fragment,null,e.children);let n=u.createElement(Li.Provider,{value:!0},e.children);return u.createElement("template",null,n)}function Vn(e){let t=(n,r)=>u.useContext(Li)?null:e(n,r);return t.displayName=e.displayName||e.name,u.forwardRef(t)}function hd(){return u.useContext(Li)}var Oi={exports:{}},Cl={};var pd;function ev(){if(pd)return Cl;pd=1;var e=u;function t(f,m){return f===m&&(f!==0||1/f===1/m)||f!==f&&m!==m}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,i=e.useEffect,a=e.useLayoutEffect,l=e.useDebugValue;function o(f,m){var h=m(),p=r({inst:{value:h,getSnapshot:m}}),g=p[0].inst,y=p[1];return a(function(){g.value=h,g.getSnapshot=m,s(g)&&y({inst:g})},[f,h,m]),i(function(){return s(g)&&y({inst:g}),f(function(){s(g)&&y({inst:g})})},[f]),l(h),h}function s(f){var m=f.getSnapshot;f=f.value;try{var h=m();return!n(f,h)}catch{return!0}}function d(f,m){return m()}var c=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:o;return Cl.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:c,Cl}var Dl={};var bd;function tv(){return bd||(bd=1,process.env.NODE_ENV!=="production"&&(function(){function e(h,p){return h===p&&(h!==0||1/h===1/p)||h!==h&&p!==p}function t(h,p){c||i.startTransition===void 0||(c=!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 g=p();if(!f){var y=p();a(g,y)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}y=l({inst:{value:g,getSnapshot:p}});var $=y[0].inst,x=y[1];return s(function(){$.value=g,$.getSnapshot=p,n($)&&x({inst:$})},[h,g,p]),o(function(){return n($)&&x({inst:$}),h(function(){n($)&&x({inst:$})})},[h]),d(g),g}function n(h){var p=h.getSnapshot;h=h.value;try{var g=p();return!a(h,g)}catch{return!0}}function r(h,p){return p()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=u,a=typeof Object.is=="function"?Object.is:e,l=i.useState,o=i.useEffect,s=i.useLayoutEffect,d=i.useDebugValue,c=!1,f=!1,m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;Dl.useSyncExternalStore=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:m,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Dl}var gd;function nv(){return gd||(gd=1,process.env.NODE_ENV==="production"?Oi.exports=ev():Oi.exports=tv()),Oi.exports}var rv=nv();const yd=u.createContext(!1),xr=u.createContext(null);function fn(e){if(u.useContext(xr))return e.content;let{collection:n,document:r}=ov(e.createCollection);return u.createElement(u.Fragment,null,u.createElement(Q5,null,u.createElement(xr.Provider,{value:r},e.content)),u.createElement(iv,{render:e.children,collection:n}))}function iv({collection:e,render:t}){return t(e)}function av(e,t,n){let r=Ht(),i=u.useRef(r);i.current=r;let a=u.useCallback(()=>i.current?n():t(),[t,n]);return rv.useSyncExternalStore(e,a)}const lv=typeof u.useSyncExternalStore=="function"?u.useSyncExternalStore:av;function ov(e){let[t]=u.useState(()=>new z5(e?.()||new od)),n=u.useCallback(l=>t.subscribe(l),[t]),r=u.useCallback(()=>{let l=t.getCollection();return t.isSSR&&t.resetAfterSSR(),l},[t]),i=u.useCallback(()=>(t.isSSR=!0,t.getCollection()),[t]);return{collection:lv(n,r,i),document:t}}const El=u.createContext(null);function uv(e){var n;return n=class extends et{},n.type=e,n}function $d(e,t,n,r,i,a){typeof e=="string"&&(e=uv(e));let l=u.useCallback(s=>{s?.setProps(t,n,e,r,a)},[t,n,r,a,e]),o=u.useContext(El);if(o){let s=o.ownerDocument.nodesByProps.get(t);return s||(s=o.ownerDocument.createElement(e.type),s.setProps(t,n,e,r,a),o.appendChild(s),o.ownerDocument.updateCollection(),o.ownerDocument.nodesByProps.set(t,s)),i?u.createElement(El.Provider,{value:s},i):null}return u.createElement(e.type,{ref:l},i)}function yt(e,t){let n=({node:i})=>t(i.props,i.props.ref,i),r=u.forwardRef((i,a)=>{let l=u.useContext(Ki);if(!u.useContext(yd)){if(t.length>=3)throw new Error(t.name+" cannot be rendered outside a collection.");return t(i,a)}return $d(e,i,a,"children"in i?i.children:null,null,s=>u.createElement(Ki.Provider,{value:l},u.createElement(n,{node:s})))});return r.displayName=t.name,r}function zi(e,t,n=vd){let r=({node:a})=>t(a.props,a.props.ref,a),i=u.forwardRef((a,l)=>{let o=n(a);return $d(e,a,l,null,o,s=>u.createElement(r,{node:s}))??u.createElement(u.Fragment,null)});return i.displayName=t.name,i}function vd(e){return yl({...e,addIdAndValue:!0})}const xd=u.createContext(null);function mn(e){let t=u.useContext(xd),n=(t?.dependencies||[]).concat(e.dependencies),r=e.idScope??t?.idScope,i=vd({...e,idScope:r,dependencies:n});return u.useContext(xr)&&(i=u.createElement(sv,null,i)),t=u.useMemo(()=>({dependencies:n,idScope:r}),[r,...n]),u.createElement(xd.Provider,{value:t},i)}function sv({children:e}){let t=u.useContext(xr),n=u.useMemo(()=>u.createElement(xr.Provider,{value:null},u.createElement(yd.Provider,{value:!0},e)),[e]);return Ht()?u.createElement(El.Provider,{value:t},n):jt.createPortal(n,t)}const Cd=u.createContext(null),wl={CollectionRoot({collection:e,renderDropIndicator:t}){return Dd(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return Dd(e,t,n)}};function Dd(e,t,n){return yl({items:t?e.getChildren(t.key):e,dependencies:[n],children(r){if(r.type==="content")return u.createElement(u.Fragment,null);let i=r.render(r);return!n||r.type!=="item"?i:u.createElement(u.Fragment,null,n({type:"item",key:r.key,dropPosition:"before"}),i,dv(e,r,n))}})}function dv(e,t,n){let r=t.key,i=e.getKeyAfter(r),a=i!=null?e.getItem(i):null;for(;a!=null&&a.type!=="item";)i=e.getKeyAfter(a.key),a=i!=null?e.getItem(i):null;let l=t.nextKey!=null?e.getItem(t.nextKey):null;for(;l!=null&&l.type!=="item";)l=l.nextKey!=null?e.getItem(l.nextKey):null;let o=[];if(l==null){let s=t;for(;s?.type==="item"&&(!a||s.parentKey!==a.parentKey&&a.level<s.level);){let d=n({type:"item",key:s.key,dropPosition:"after"});u.isValidElement(d)&&o.push(u.cloneElement(d,{key:`${s.key}-after`})),s=s.parentKey!=null?e.getItem(s.parentKey):null}}return o}const ge=u.createContext(wl);function Ed(e){return u.useMemo(()=>e!=null?new Set([e]):null,[e])}const cv=new Set(["id"]),fv=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),mv=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),hv=new Set(["dir","lang","hidden","inert","translate"]),wd=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"]),pv=/^(data-.*)$/;function ie(e,t={}){let{labelable:n,isLink:r,global:i,events:a=i,propNames:l}=t,o={};for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(cv.has(s)||n&&fv.has(s)||r&&mv.has(s)||i&&hv.has(s)||a&&(wd.has(s)||s.endsWith("Capture")&&wd.has(s.slice(0,-7)))||l?.has(s)||pv.test(s))&&(o[s]=e[s]);return o}let _n="default",Sl="",Vi=new WeakMap;function Pl(e){if(bt()&>()){if(_n==="default"){const t=se(e);Sl=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}_n="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";Vi.set(e,e.style[t]),e.style[t]="none"}}function _i(e){if(bt()&>()){if(_n!=="disabled")return;_n="restoring",setTimeout(()=>{cd(()=>{if(_n==="restoring"){const t=se(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Sl||""),Sl="",_n="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Vi.has(e)){let t=Vi.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[n]==="none"&&(e.style[n]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Vi.delete(e)}}function Sd(e){return e?.defaultView?.__webpack_nonce__||globalThis.__webpack_nonce__||void 0}let kl=new WeakMap;function Pd(e){let t=e??(typeof document<"u"?document:void 0);if(!t)return Sd(t);if(kl.has(t))return kl.get(t);let n=t.querySelector('meta[property="csp-nonce"]'),r=n&&n instanceof xe(n).HTMLMetaElement&&(n.nonce||n.content)||Sd(t)||void 0;return r!==void 0&&kl.set(t,r),r}const Cr=u.createContext({register:()=>{}});Cr.displayName="PressResponderContext";function Rn(){let e=u.useRef(new Map),t=u.useCallback((i,a,l,o)=>{let s=o?.once?(...d)=>{e.current.delete(l),l(...d)}:l;e.current.set(l,{type:a,eventTarget:i,fn:s,options:o}),i.addEventListener(a,s,o)},[]),n=u.useCallback((i,a,l,o)=>{let s=e.current.get(l)?.fn||l;i.removeEventListener(a,s,o),e.current.delete(l)},[]),r=u.useCallback(()=>{e.current.forEach((i,a)=>{n(i.eventTarget,i.type,a,i.options)})},[n]);return u.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function bv(e){let t=u.useContext(Cr);if(t){let{register:n,ref:r,...i}=t;e=q(i,e),n()}return xl(t,e.ref),e}class Ri{#e;constructor(t,n,r,i){this.#e=!0;const l=(i?.target??r.currentTarget)?.getBoundingClientRect();let o,s=0,d,c=null;r.clientX!=null&&r.clientY!=null&&(d=r.clientX,c=r.clientY),l&&(d!=null&&c!=null?(o=d-l.left,s=c-l.top):(o=l.width/2,s=l.height/2)),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=o,this.y=s,this.key=r.key}continuePropagation(){this.#e=!1}get shouldStopPropagation(){return this.#e}}const kd=Symbol("linkClicked"),Bd="react-aria-pressable-style",Nd="data-react-aria-pressable";function It(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:a,onClick:l,isDisabled:o,isPressed:s,preventFocusOnPress:d,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:f,ref:m,...h}=bv(e),[p,g]=u.useState(!1),y=u.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:$,removeAllGlobalListeners:x}=Rn(),v=u.useCallback((D,M)=>{let G=y.current;if(o||G.didFirePressStart)return!1;let O=!0;if(G.isTriggeringEvent=!0,r){let Y=new Ri("pressstart",M,D);r(Y),O=Y.shouldStopPropagation}return n&&n(!0),G.isTriggeringEvent=!1,G.didFirePressStart=!0,g(!0),O},[o,r,n]),C=u.useCallback((D,M,G=!0)=>{let O=y.current;if(!O.didFirePressStart)return!1;O.didFirePressStart=!1,O.isTriggeringEvent=!0;let Y=!0;if(i){let P=new Ri("pressend",M,D);i(P),Y=P.shouldStopPropagation}if(n&&n(!1),g(!1),t&&G&&!o){let P=new Ri("press",M,D);t(P),Y&&=P.shouldStopPropagation}return O.isTriggeringEvent=!1,Y},[o,i,n,t]),w=De(C),S=u.useCallback((D,M)=>{let G=y.current;if(o)return!1;if(a){G.isTriggeringEvent=!0;let O=new Ri("pressup",M,D);return a(O),G.isTriggeringEvent=!1,O.shouldStopPropagation}return!0},[o,a]),B=De(S),E=u.useCallback(D=>{let M=y.current;if(M.isPressed&&M.target){M.didFirePressStart&&M.pointerType!=null&&C(hn(M.target,D),M.pointerType,!1),M.isPressed=!1,M.isOverTarget=!1,M.activePointerId=null,M.pointerType=null,x(),f||_i(M.target);for(let G of M.disposables)G();M.disposables=[]}},[f,x,C]),k=De(E);u.useEffect(()=>{o&&y.current.isPressed&&k({currentTarget:y.current.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})},[o]);let K=u.useCallback(D=>{c&&E(D)},[c,E]),T=u.useCallback(D=>{o||l?.(D)},[o,l]),I=u.useCallback((D,M)=>{if(!o&&l){let G=new MouseEvent("click",D);_s(G,M),l(cl(G))}},[o,l]),R=u.useMemo(()=>{let D=y.current,M={onKeyDown(O){if(Nl(O.nativeEvent,O.currentTarget)&&ae(O.currentTarget,W(O))){Td(W(O),O.key)&&O.preventDefault();let Y=!0;!D.isPressed&&!O.repeat&&(D.target=O.currentTarget,D.isPressed=!0,D.pointerType="keyboard",Y=v(O,"keyboard"));let P=O.currentTarget,N=_=>{Nl(_,P)&&!_.repeat&&ae(P,W(_))&&D.target&&B(hn(D.target,_),"keyboard")};$(se(O.currentTarget),"keyup",at(N,G),!0),Y&&O.stopPropagation(),O.metaKey&&Je()&&D.metaKeyEvents?.set(O.key,O.nativeEvent)}else O.key==="Meta"&&(D.metaKeyEvents=new Map)},onClick(O){if(!(O&&!ae(O.currentTarget,W(O)))&&O&&O.button===0&&!D.isTriggeringEvent&&!At.isOpening){let Y=!0;if(o&&O.preventDefault(),!D.ignoreEmulatedMouseEvents&&!D.isPressed&&(D.pointerType==="virtual"||hl(O.nativeEvent))){let P=v(O,"virtual"),N=B(O,"virtual"),_=w(O,"virtual");T(O),Y=P&&N&&_}else if(D.isPressed&&D.pointerType!=="keyboard"){let P=D.pointerType||O.nativeEvent.pointerType||"virtual",N=B(hn(O.currentTarget,O),P),_=w(hn(O.currentTarget,O),P,!0);Y=N&&_,D.isOverTarget=!1,T(O),k(O)}D.ignoreEmulatedMouseEvents=!1,Y&&O.stopPropagation()}}},G=O=>{if(D.isPressed&&D.target&&Nl(O,D.target)){Td(W(O),O.key)&&O.preventDefault();let Y=W(O),P=ae(D.target,Y);w(hn(D.target,O),"keyboard",P),P&&I(O,D.target),x(),O.key!=="Enter"&&Bl(D.target)&&ae(D.target,Y)&&!O[kd]&&(O[kd]=!0,At(D.target,O,!1)),D.isPressed=!1,D.metaKeyEvents?.delete(O.key)}else if(O.key==="Meta"&&D.metaKeyEvents?.size){let Y=D.metaKeyEvents;D.metaKeyEvents=void 0;for(let P of Y.values())D.target?.dispatchEvent(new KeyboardEvent("keyup",P))}};if(typeof PointerEvent<"u"){M.onPointerDown=P=>{if(P.button!==0||!ae(P.currentTarget,W(P)))return;if(m5(P.nativeEvent)){D.pointerType="virtual";return}D.pointerType=P.pointerType;let N=!0;if(!D.isPressed){D.isPressed=!0,D.isOverTarget=!0,D.activePointerId=P.pointerId,D.target=P.currentTarget,f||Pl(D.target),N=v(P,D.pointerType);let _=W(P);"releasePointerCapture"in _&&("hasPointerCapture"in _?_.hasPointerCapture(P.pointerId)&&_.releasePointerCapture(P.pointerId):_.releasePointerCapture(P.pointerId)),$(se(P.currentTarget),"pointerup",O,!1),$(se(P.currentTarget),"pointercancel",Y,!1)}N&&P.stopPropagation()},M.onMouseDown=P=>{if(ae(P.currentTarget,W(P))&&P.button===0){if(d){let N=js(P.target);N&&D.disposables.push(N)}P.stopPropagation()}},M.onPointerUp=P=>{!ae(P.currentTarget,W(P))||D.pointerType==="virtual"||P.button===0&&!D.isPressed&&B(P,D.pointerType||P.pointerType)},M.onPointerEnter=P=>{P.pointerId===D.activePointerId&&D.target&&!D.isOverTarget&&D.pointerType!=null&&(D.isOverTarget=!0,v(hn(D.target,P),D.pointerType))},M.onPointerLeave=P=>{P.pointerId===D.activePointerId&&D.target&&D.isOverTarget&&D.pointerType!=null&&(D.isOverTarget=!1,w(hn(D.target,P),D.pointerType,!1),K(P))};let O=P=>{if(P.pointerId===D.activePointerId&&D.isPressed&&P.button===0&&D.target){if(ae(D.target,W(P))&&D.pointerType!=null){let N=!1,_=setTimeout(()=>{D.isPressed&&D.target instanceof HTMLElement&&(N?k(P):(Xe(D.target),D.target.click()))},80);$(P.currentTarget,"click",()=>N=!0,!0),D.disposables.push(()=>clearTimeout(_))}else k(P);D.isOverTarget=!1}},Y=P=>{k(P)};M.onDragStart=P=>{ae(P.currentTarget,W(P))&&k(P)}}else if(process.env.NODE_ENV==="test"){M.onMouseDown=P=>{if(P.button!==0||!ae(P.currentTarget,W(P)))return;if(D.ignoreEmulatedMouseEvents){P.stopPropagation();return}if(D.isPressed=!0,D.isOverTarget=!0,D.target=P.currentTarget,D.pointerType=hl(P.nativeEvent)?"virtual":"mouse",jt.flushSync(()=>v(P,D.pointerType))&&P.stopPropagation(),d){let _=js(P.target);_&&D.disposables.push(_)}$(se(P.currentTarget),"mouseup",O,!1)},M.onMouseEnter=P=>{if(!ae(P.currentTarget,W(P)))return;let N=!0;D.isPressed&&!D.ignoreEmulatedMouseEvents&&D.pointerType!=null&&(D.isOverTarget=!0,N=v(P,D.pointerType)),N&&P.stopPropagation()},M.onMouseLeave=P=>{if(!ae(P.currentTarget,W(P)))return;let N=!0;D.isPressed&&!D.ignoreEmulatedMouseEvents&&D.pointerType!=null&&(D.isOverTarget=!1,N=w(P,D.pointerType,!1),K(P)),N&&P.stopPropagation()},M.onMouseUp=P=>{ae(P.currentTarget,W(P))&&!D.ignoreEmulatedMouseEvents&&P.button===0&&!D.isPressed&&B(P,D.pointerType||"mouse")};let O=P=>{if(P.button===0){if(D.ignoreEmulatedMouseEvents){D.ignoreEmulatedMouseEvents=!1;return}D.target&&ae(D.target,W(P))&&D.pointerType!=null||k(P),D.isOverTarget=!1}};M.onTouchStart=P=>{if(!ae(P.currentTarget,W(P)))return;let N=gv(P.nativeEvent);if(!N)return;D.activePointerId=N.identifier,D.ignoreEmulatedMouseEvents=!0,D.isOverTarget=!0,D.isPressed=!0,D.target=P.currentTarget,D.pointerType="touch",f||Pl(D.target),v(Zt(D.target,P),D.pointerType)&&P.stopPropagation(),$(xe(P.currentTarget),"scroll",Y,!0)},M.onTouchMove=P=>{if(!ae(P.currentTarget,W(P)))return;if(!D.isPressed){P.stopPropagation();return}let N=Ad(P.nativeEvent,D.activePointerId),_=!0;N&&Fd(N,P.currentTarget)?!D.isOverTarget&&D.pointerType!=null&&(D.isOverTarget=!0,_=v(Zt(D.target,P),D.pointerType)):D.isOverTarget&&D.pointerType!=null&&(D.isOverTarget=!1,_=w(Zt(D.target,P),D.pointerType,!1),K(Zt(D.target,P))),_&&P.stopPropagation()},M.onTouchEnd=P=>{if(!ae(P.currentTarget,W(P)))return;if(!D.isPressed){P.stopPropagation();return}let N=Ad(P.nativeEvent,D.activePointerId),_=!0;N&&Fd(N,P.currentTarget)&&D.pointerType!=null?(B(Zt(D.target,P),D.pointerType),_=w(Zt(D.target,P),D.pointerType),I(P.nativeEvent,D.target)):D.isOverTarget&&D.pointerType!=null&&(_=w(Zt(D.target,P),D.pointerType,!1)),_&&P.stopPropagation(),D.isPressed=!1,D.activePointerId=null,D.isOverTarget=!1,D.ignoreEmulatedMouseEvents=!0,D.target&&!f&&_i(D.target),x()},M.onTouchCancel=P=>{ae(P.currentTarget,W(P))&&(P.stopPropagation(),D.isPressed&&k(Zt(D.target,P)))};let Y=P=>{D.isPressed&&ae(W(P),D.target)&&k({currentTarget:D.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};M.onDragStart=P=>{ae(P.currentTarget,W(P))&&k(P)}}return M},[$,o,d,x,f,K,v,T,I]);return u.useEffect(()=>{if(!m||process.env.NODE_ENV==="test")return;const D=se(m.current);if(!D||!D.head||D.getElementById(Bd))return;const M=D.createElement("style");M.id=Bd;let G=Pd(D);G&&(M.nonce=G),M.textContent=`
|
|
2
2
|
@layer {
|
|
3
|
-
[${
|
|
3
|
+
[${Nd}] {
|
|
4
4
|
touch-action: pan-x pan-y pinch-zoom;
|
|
5
5
|
}
|
|
6
6
|
}
|
|
7
|
-
`.trim(),E.head.prepend(A)},[p]),s.useEffect(()=>{let E=y.current;return()=>{f||jr(E.target??void 0);for(let A of E.disposables)A();E.disposables=[]}},[f]),{isPressed:u||b,pressProps:G(m,j,{[xs]:!0})}}function so(t){return t.tagName==="A"&&t.hasAttribute("href")}function uo(t,e){const{key:n,code:r}=t,i=e,o=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof $e(i).HTMLInputElement&&!Ss(i,n)||i instanceof $e(i).HTMLTextAreaElement||i.isContentEditable)&&!((o==="link"||!o&&so(i))&&n!=="Enter")}function m4(t){const{targetTouches:e}=t;return e.length>0?e[0]:null}function Cs(t,e){const n=t.changedTouches;for(let r=0;r<n.length;r++){const i=n[r];if(i.identifier===e)return i}return null}function kt(t,e){let n=0,r=0;return e.targetTouches&&e.targetTouches.length===1&&(n=e.targetTouches[0].clientX,r=e.targetTouches[0].clientY),{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,clientX:n,clientY:r}}function Vt(t,e){let n=e.clientX,r=e.clientY;return{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,clientX:n,clientY:r,key:e.key}}function b4(t){let e=0,n=0;return t.width!==void 0?e=t.width/2:t.radiusX!==void 0&&(e=t.radiusX),t.height!==void 0?n=t.height/2:t.radiusY!==void 0&&(n=t.radiusY),{top:t.clientY-n,right:t.clientX+e,bottom:t.clientY+n,left:t.clientX-e}}function g4(t,e){return!(t.left>e.right||e.left>t.right||t.top>e.bottom||e.top>t.bottom)}function Es(t,e){let n=e.getBoundingClientRect(),r=b4(t);return g4(n,r)}function y4(t){return t instanceof HTMLInputElement?!1:t instanceof HTMLButtonElement?t.type!=="submit"&&t.type!=="reset":!so(t)}function ws(t,e){return _e()&&e==="Enter"?!1:t instanceof HTMLInputElement?e==="Enter"&&(t.type==="checkbox"||t.type==="radio")?!1:!Ss(t,e):y4(t)}const $4=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Ss(t,e){return t.type==="checkbox"||t.type==="radio"?e===" ":$4.has(t.type)}function v4(t,e){let{elementType:n="a",onPress:r,onPressStart:i,onPressEnd:o,onPressChange:l,onClick:a,isDisabled:u,...d}=t,c={};n!=="a"&&(c={role:"link",tabIndex:u?void 0:0});let{focusableProps:f}=on(t,e),{pressProps:p,isPressed:m}=_t({onPress:r,onPressStart:i,onPressEnd:o,onPressChange:l,onClick:a,isDisabled:u,ref:e}),b=re(d,{labelable:!0}),g=G(f,p),y=Kt(),$=Dr(t);return{isPressed:m,linkProps:G(b,$,{...g,...c,"aria-disabled":u||void 0,"aria-current":t["aria-current"],onClick:x=>{p.onClick?.(x),za(x,y,t.href,t.routerOptions)}})}}function On(t){let{isDisabled:e,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=t,o=s.useRef({isFocusWithin:!1}),{addGlobalListener:l,removeAllGlobalListeners:a}=Ln(),u=s.useCallback(f=>{te(f.currentTarget,_(f))&&o.current.isFocusWithin&&!te(f.currentTarget,f.relatedTarget)&&(o.current.isFocusWithin=!1,a(),n&&n(f),i&&i(!1))},[n,i,o,a]),d=Ma(u),c=s.useCallback(f=>{if(!te(f.currentTarget,_(f)))return;let p=_(f);const m=le(p),b=pe(m);if(!o.current.isFocusWithin&&b===p){r&&r(f),i&&i(!0),o.current.isFocusWithin=!0,d(f);let g=f.currentTarget;l(m,"focus",y=>{let $=_(y);if(o.current.isFocusWithin&&!te(g,$)){let x=new m.defaultView.FocusEvent("blur",{relatedTarget:$});Fa(x,g);let v=Ri(x);u(v)}},{capture:!0})}},[r,i,d,l,u]);return e?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:u}}}function Be(t={}){let{autoFocus:e=!1,isTextInput:n,within:r}=t,i=s.useRef({isFocused:!1,isFocusVisible:e||St()}),[o,l]=s.useState(!1),[a,u]=s.useState(()=>i.current.isFocused&&i.current.isFocusVisible),d=s.useCallback(()=>u(i.current.isFocused&&i.current.isFocusVisible),[]),c=s.useCallback(m=>{i.current.isFocused=m,i.current.isFocusVisible=St(),l(m),d()},[d]);v3(m=>{i.current.isFocusVisible=m,d()},[n,o],{enabled:o,isTextInput:n});let{focusProps:f}=Qi({isDisabled:r,onFocusChange:c}),{focusWithinProps:p}=On({isDisabled:!r,onFocusWithinChange:c});return{isFocused:o,isFocusVisible:a,focusProps:r?p:f}}let Wr=!1,Ur=0;function co(){Wr=!0,setTimeout(()=>{Wr=!1},500)}function Ps(t){t.pointerType==="touch"&&co()}function x4(){let t=le(null);if(!(typeof t>"u"))return Ur===0&&(typeof PointerEvent<"u"?t.addEventListener("pointerup",Ps):process.env.NODE_ENV==="test"&&t.addEventListener("touchend",co)),Ur++,()=>{Ur--,!(Ur>0)&&(typeof PointerEvent<"u"?t.removeEventListener("pointerup",Ps):process.env.NODE_ENV==="test"&&t.removeEventListener("touchend",co))}}function Fe(t){let{onHoverStart:e,onHoverChange:n,onHoverEnd:r,isDisabled:i}=t,[o,l]=s.useState(!1),a=s.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;s.useEffect(x4,[]);let{addGlobalListener:u,removeAllGlobalListeners:d}=Ln(),{hoverProps:c,triggerHoverEnd:f}=s.useMemo(()=>{let p=(g,y)=>{if(a.pointerType=y,i||y==="touch"||a.isHovered||!te(g.currentTarget,_(g)))return;a.isHovered=!0;let $=g.currentTarget;a.target=$,u(le(_(g)),"pointerover",x=>{a.isHovered&&a.target&&!te(a.target,_(x))&&m(x,x.pointerType)},{capture:!0}),e&&e({type:"hoverstart",target:$,pointerType:y}),n&&n(!0),l(!0)},m=(g,y)=>{let $=a.target;a.pointerType="",a.target=null,!(y==="touch"||!a.isHovered||!$)&&(a.isHovered=!1,d(),r&&r({type:"hoverend",target:$,pointerType:y}),n&&n(!1),l(!1))},b={};return typeof PointerEvent<"u"?(b.onPointerEnter=g=>{Wr&&g.pointerType==="mouse"||p(g,g.pointerType)},b.onPointerLeave=g=>{!i&&te(g.currentTarget,_(g))&&m(g,g.pointerType)}):process.env.NODE_ENV==="test"&&(b.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},b.onMouseEnter=g=>{!a.ignoreEmulatedMouseEvents&&!Wr&&p(g,"mouse"),a.ignoreEmulatedMouseEvents=!1},b.onMouseLeave=g=>{!i&&te(g.currentTarget,_(g))&&m(g,"mouse")}),{hoverProps:b,triggerHoverEnd:m}},[e,n,r,i,a,u,d]);return s.useEffect(()=>{i&&f({currentTarget:a.target},a.pointerType)},[i]),{hoverProps:c,isHovered:o}}const ks=s.createContext(null),C4=s.forwardRef(function(e,n){[e,n]=be(e,n,ks);let r=e.href&&!e.isDisabled?"a":"span",{linkProps:i,isPressed:o}=v4({...e,elementType:r},n),l=ee[r],{hoverProps:a,isHovered:u}=Fe(e),{focusProps:d,isFocused:c,isFocusVisible:f}=Be(),p=se({...e,defaultClassName:"react-aria-Link",values:{isCurrent:!!e["aria-current"],isDisabled:e.isDisabled||!1,isPressed:o,isHovered:u,isFocused:c,isFocusVisible:f}}),m=re(e,{global:!0});return delete m.onClick,s.createElement(l,{ref:n,slot:e.slot||void 0,...G(m,p,i,a,d),"data-focused":c||void 0,"data-hovered":u||void 0,"data-pressed":o||void 0,"data-focus-visible":f||void 0,"data-current":!!e["aria-current"]||void 0,"data-disabled":e.isDisabled||void 0},p.children)});var Ds={};Ds={breadcrumbs:"عناصر الواجهة"};var Ns={};Ns={breadcrumbs:"Трохи хляб"};var Ts={};Ts={breadcrumbs:"Popis cesty"};var As={};As={breadcrumbs:"Brødkrummer"};var Is={};Is={breadcrumbs:"Breadcrumbs"};var Bs={};Bs={breadcrumbs:"Πλοηγήσεις breadcrumb"};var Fs={};Fs={breadcrumbs:"Breadcrumbs"};var Ms={};Ms={breadcrumbs:"Migas de pan"};var Ks={};Ks={breadcrumbs:"Lingiread"};var Ls={};Ls={breadcrumbs:"Navigointilinkit"};var Os={};Os={breadcrumbs:"Chemin de navigation"};var zs={};zs={breadcrumbs:"שבילי ניווט"};var _s={};_s={breadcrumbs:"Navigacijski putovi"};var Vs={};Vs={breadcrumbs:"Morzsamenü"};var Hs={};Hs={breadcrumbs:"Breadcrumb"};var js={};js={breadcrumbs:"パンくずリスト"};var Rs={};Rs={breadcrumbs:"탐색 표시"};var Ws={};Ws={breadcrumbs:"Naršymo kelias"};var Us={};Us={breadcrumbs:"Atpakaļceļi"};var Gs={};Gs={breadcrumbs:"Navigasjonsstier"};var Ys={};Ys={breadcrumbs:"Broodkruimels"};var Xs={};Xs={breadcrumbs:"Struktura nawigacyjna"};var qs={};qs={breadcrumbs:"Caminho detalhado"};var Zs={};Zs={breadcrumbs:"Categorias"};var Js={};Js={breadcrumbs:"Miez de pâine"};var Qs={};Qs={breadcrumbs:"Навигация"};var eu={};eu={breadcrumbs:"Navigačné prvky Breadcrumbs"};var tu={};tu={breadcrumbs:"Drobtine"};var nu={};nu={breadcrumbs:"Putanje navigacije"};var ru={};ru={breadcrumbs:"Sökvägar"};var iu={};iu={breadcrumbs:"İçerik haritaları"};var ou={};ou={breadcrumbs:"Навігаційна стежка"};var lu={};lu={breadcrumbs:"导航栏"};var au={};au={breadcrumbs:"導覽列"};var su={};su={"ar-AE":Ds,"bg-BG":Ns,"cs-CZ":Ts,"da-DK":As,"de-DE":Is,"el-GR":Bs,"en-US":Fs,"es-ES":Ms,"et-EE":Ks,"fi-FI":Ls,"fr-FR":Os,"he-IL":zs,"hr-HR":_s,"hu-HU":Vs,"it-IT":Hs,"ja-JP":js,"ko-KR":Rs,"lt-LT":Ws,"lv-LV":Us,"nb-NO":Gs,"nl-NL":Ys,"pl-PL":Xs,"pt-BR":qs,"pt-PT":Zs,"ro-RO":Js,"ru-RU":Qs,"sk-SK":eu,"sl-SI":tu,"sr-SP":nu,"sv-SE":ru,"tr-TR":iu,"uk-UA":ou,"zh-CN":lu,"zh-TW":au};function E4(t){return t&&t.__esModule?t.default:t}function w4(t){let{"aria-label":e,...n}=t,r=Ie(E4(su),"@react-aria/breadcrumbs");return{navProps:{...re(n,{labelable:!0}),"aria-label":e||r.format("breadcrumbs")}}}const fo=s.createContext(null),S4=s.forwardRef(function(e,n){[e,n]=be(e,n,fo);let{CollectionRoot:r}=s.useContext(me),{navProps:i}=w4(e),o=re(e,{global:!0,labelable:!0});return s.createElement(Ot,{content:s.createElement(zt,e)},l=>s.createElement(ee.ol,{render:e.render,ref:n,...G(o,i),slot:e.slot||void 0,style:e.style,className:e.className??"react-aria-Breadcrumbs"},s.createElement(fo.Provider,{value:e},s.createElement(r,{collection:l}))))}),ma=class ma extends He{};ma.type="item";let po=ma;const P4=ot(po,function(e,n,r){let i=r.nextKey==null,{isDisabled:o,onAction:l}=ft(fo),a={"aria-current":i?"page":null,isDisabled:o||i,onPress:()=>l?.(r.key)},u=se({...r.props,children:r.rendered,values:{isDisabled:o||i,isCurrent:i},defaultClassName:"react-aria-Breadcrumb"}),d=re(e,{global:!0,labelable:!0});return delete d.id,s.createElement(ee.li,{...d,...u,ref:n,"data-disabled":o||i||void 0,"data-current":i||void 0},s.createElement(ks.Provider,{value:a},u.children))}),sn=s.createContext({});function ho(t){let{id:e,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:o="label"}=t;e=xe(e);let l=xe(),a={};n?(r=r?`${l} ${r}`:l,a={id:l,htmlFor:o==="label"?e:void 0}):!r&&!i&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let u=nn({id:e,"aria-label":i,"aria-labelledby":r});return{labelProps:a,fieldProps:u}}let mo=new Map,bo=!1;try{bo=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 uu={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class k4{constructor(e,n={}){this.numberFormatter=D4(e,n),this.options=n}format(e){let n="";if(!bo&&this.options.signDisplay!=null?n=N4(this.numberFormatter,this.options.signDisplay,e):n=this.numberFormatter.format(e),this.options.style==="unit"&&!Gr){let{unit:r,unitDisplay:i="short",locale:o}=this.resolvedOptions();if(!r)return n;let l=uu[r]?.[i];n+=l[o]||l.default}return n}formatToParts(e){return this.numberFormatter.formatToParts(e)}formatRange(e,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(e,n);if(n<e)throw new RangeError("End date must be >= start date");return`${this.format(e)} – ${this.format(n)}`}formatRangeToParts(e,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(e,n);if(n<e)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(e),i=this.numberFormatter.formatToParts(n);return[...r.map(o=>({...o,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(o=>({...o,source:"endRange"}))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return!bo&&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 D4(t,e={}){let{numberingSystem:n}=e;if(n&&t.includes("-nu-")&&(t.includes("-u-")||(t+="-u-"),t+=`-nu-${n}`),e.style==="unit"&&!Gr){let{unit:o,unitDisplay:l="short"}=e;if(!o)throw new Error('unit option must be provided with style: "unit"');if(!uu[o]?.[l])throw new Error(`Unsupported unit ${o} with unitDisplay = ${l}`);e={...e,style:"decimal"}}let r=t+(e?Object.entries(e).sort((o,l)=>o[0]<l[0]?-1:1).join():"");if(mo.has(r))return mo.get(r);let i=new Intl.NumberFormat(t,e);return mo.set(r,i),i}function N4(t,e,n){if(e==="auto")return t.format(n);if(e==="never")return t.format(Math.abs(n));{let r=!1;if(e==="always"?r=n>0||Object.is(n,0):e==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let i=t.format(-n),o=t.format(n),l=i.replace(o,"").replace(/\u200e|\u061C/,"");return[...l].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),i.replace(o,"!!!").replace(l,"+").replace("!!!",o)}else return t.format(n)}}function T4(t={}){let{locale:e}=Te();return s.useMemo(()=>new k4(e,t),[e,t])}function zn(t,e=-1/0,n=1/0){return Math.min(Math.max(t,e),n)}function A4(t){let{value:e=0,minValue:n=0,maxValue:r=100,valueLabel:i,isIndeterminate:o,formatOptions:l={style:"percent"}}=t,a=re(t,{labelable:!0}),{labelProps:u,fieldProps:d}=ho({...t,labelElementType:"span"});e=zn(e,n,r);let c=r-n,f=c===0?0:(e-n)/c,p=T4(l);if(!o&&!i){let m=l.style==="percent"?f:e;i=p.format(m)}return{progressBarProps:G(a,{...d,"aria-valuenow":o?void 0:e,"aria-valuemin":n,"aria-valuemax":r,"aria-valuetext":o?void 0:i,role:"progressbar"}),labelProps:u}}const du=s.createContext(null),I4=s.forwardRef(function(e,n){[e,n]=be(e,n,du);let{value:r=0,minValue:i=0,maxValue:o=100,isIndeterminate:l=!1}=e;r=zn(r,i,o);let[a,u]=Qt(!e["aria-label"]&&!e["aria-labelledby"]),{progressBarProps:d,labelProps:c}=A4({...e,label:u}),f=o-i,p;l||(f===0?p=0:p=(r-i)/f*100);let m=se({...e,defaultClassName:"react-aria-ProgressBar",values:{percentage:p,valueText:d["aria-valuetext"],isIndeterminate:l}}),b=re(e,{global:!0});return s.createElement(ee.div,{...G(b,m,d),ref:n,slot:e.slot||void 0},s.createElement(sn.Provider,{value:{...c,ref:a,elementType:"span"}},m.children))}),cu=7e3;let un=null;function Ht(t,e="assertive",n=cu){un?un.announce(t,e,n):(un=new B4,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?un.announce(t,e,n):setTimeout(()=>{un?.isAttached()&&un?.announce(t,e,n)},100))}class B4{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(){return this.node?.isConnected}createLog(e){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",e),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,n="assertive",r=cu){if(!this.node)return;let i=document.createElement("div");typeof e=="object"?(i.setAttribute("role","img"),i.setAttribute("aria-labelledby",e["aria-labelledby"])):i.textContent=e,n==="assertive"?this.assertiveLog?.appendChild(i):this.politeLog?.appendChild(i),e!==""&&setTimeout(()=>{i.remove()},r)}clear(e){this.node&&((!e||e==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!e||e==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}}function F4(t,e){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:o,onPressEnd:l,onPressUp:a,onPressChange:u,preventFocusOnPress:d,allowFocusWhenDisabled:c,onClick:f,href:p,target:m,rel:b,type:g="button"}=t,y;n==="button"?y={type:g,disabled:r,form:t.form,formAction:t.formAction,formEncType:t.formEncType,formMethod:t.formMethod,formNoValidate:t.formNoValidate,formTarget:t.formTarget,name:t.name,value:t.value}:y={role:"button",href:n==="a"&&!r?p:void 0,target:n==="a"?m:void 0,type:n==="input"?g:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?b:void 0};let{pressProps:$,isPressed:x}=_t({onPressStart:o,onPressEnd:l,onPressChange:u,onPress:i,onPressUp:a,onClick:f,isDisabled:r,preventFocusOnPress:d,ref:e}),{focusableProps:v}=on(t,e);c&&(v.tabIndex=r?-1:v.tabIndex);let C=G(v,$,re(t,{labelable:!0}));return{isPressed:x,buttonProps:G(y,C,{"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"]})}}const Dt=s.createContext({}),dn=ln(function(e,n){[e,n]=be(e,n,Dt);let r=e,{isPending:i}=r,{buttonProps:o,isPressed:l}=F4(e,n);o=K4(o,i);let{focusProps:a,isFocused:u,isFocusVisible:d}=Be(e),{hoverProps:c,isHovered:f}=Fe({...e,isDisabled:e.isDisabled||i}),p={isHovered:f,isPressed:(r.isPressed||l)&&!i,isFocused:u,isFocusVisible:d,isDisabled:e.isDisabled||!1,isPending:i??!1},m=se({...e,values:p,defaultClassName:"react-aria-Button"}),b=xe(o.id),g=xe(),y=o["aria-labelledby"];i&&(y?y=`${y} ${g}`:o["aria-label"]&&(y=`${b} ${g}`));let $=s.useRef(i);s.useEffect(()=>{let v={"aria-labelledby":y||b};(!$.current&&u&&i||$.current&&u&&!i)&&Ht(v,"assertive"),$.current=i},[i,u,y,b]);let x=re(e,{global:!0});return delete x.onClick,s.createElement(ee.button,{...G(x,m,o,a,c),type:o.type==="submit"&&i?"button":o.type,id:b,ref:n,"aria-labelledby":y,slot:e.slot||void 0,"aria-disabled":i?"true":o["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":p.isPressed||void 0,"data-hovered":f||void 0,"data-focused":u||void 0,"data-pending":i||void 0,"data-focus-visible":d||void 0},s.createElement(du.Provider,{value:{id:g}},m.children))}),M4=/Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;function K4(t,e){if(e){for(const n in t)n.startsWith("on")&&!M4.test(n)&&(t[n]=void 0);t.href=void 0,t.target=void 0}return t}const fu=s.createContext({}),L4=s.forwardRef(function(e,n){[e,n]=be(e,n,fu);let{children:r,level:i=3,className:o,...l}=e,a=ee[`h${i}`];return s.createElement(a,{...l,ref:n,className:o??"react-aria-Heading"},r)}),bt=s.createContext({});function go(t,e){const n=s.useRef(!0),r=s.useRef(null);let i=Ne(t);s.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),s.useEffect(()=>{let o=r.current;n.current?n.current=!1:(!o||e.some((l,a)=>!Object.is(l,o[a])))&&i(),r.current=e},e)}function Nt(t,e){if(!t)return!1;let n=window.getComputedStyle(t),r=document.scrollingElement||document.documentElement,i=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return t===r&&n.overflow!=="hidden"&&(i=!0),i&&e&&(i=t.scrollHeight!==t.clientHeight||t.scrollWidth!==t.clientWidth),i}function gt(t,e){let n=t;for(Nt(n,e)&&(n=n.parentElement);n&&!Nt(n,e);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function yo(t,e){let n=[],r=document.scrollingElement||document.documentElement;for(;t&&(Nt(t,e)&&n.push(t),t!==r);)t=t.parentElement;return n}function Yr(t,e,n={}){let{block:r="nearest",inline:i="nearest"}=n;if(t===e)return;let o=t.scrollTop,l=t.scrollLeft,a=e.getBoundingClientRect(),u=t.getBoundingClientRect(),d=window.getComputedStyle(e),c=window.getComputedStyle(t),f=document.scrollingElement||document.documentElement,p=t===f,m=t===f?0:u.top,b=t===f?t.clientHeight:u.bottom,g=t===f?0:u.left,y=t===f?t.clientWidth:u.right,$=parseFloat(d.scrollMarginTop)||0,x=parseFloat(d.scrollMarginBottom)||0,v=parseFloat(d.scrollMarginLeft)||0,C=parseFloat(d.scrollMarginRight)||0,k=parseFloat(c.scrollPaddingTop)||0,P=parseFloat(c.scrollPaddingBottom)||0,N=parseFloat(c.scrollPaddingLeft)||0,w=parseFloat(c.scrollPaddingRight)||0,D=parseFloat(c.borderTopWidth)||0,I=parseFloat(c.borderBottomWidth)||0,L=parseFloat(c.borderLeftWidth)||0,z=parseFloat(c.borderRightWidth)||0,j=a.top-$,E=a.bottom+x,A=a.left-v,Y=a.right+C,M=t===f?0:L+z,X=t===f?0:D+I,S=t===f?0:t.offsetWidth-t.clientWidth-M,B=t===f?0:t.offsetHeight-t.clientHeight-X,U=m+(p?0:D)+k,oe=b-(p?0:I)-P-B,W=g+(p?0:L)+N,ne=y-(p?0:z)-w;pt()&&it()||c.direction==="ltr"?ne-=S:c.direction==="rtl"&&(W+=S);let T=j<U||E>oe,O=A<W||Y>ne;if(T&&r==="start")o+=j-U;else if(T&&r==="center")o+=(j+E)/2-(U+oe)/2;else if(T&&r==="end")o+=E-oe;else if(T&&r==="nearest"){let J=j-U,ce=E-oe;o+=Math.abs(J)<=Math.abs(ce)?J:ce}if(O&&i==="start")l+=A-W;else if(O&&i==="center")l+=(A+Y)/2-(W+ne)/2;else if(O&&i==="end")l+=Y-ne;else if(O&&i==="nearest"){let J=A-W,ce=Y-ne;l+=Math.abs(J)<=Math.abs(ce)?J:ce}if(process.env.NODE_ENV==="test"){t.scrollLeft=l,t.scrollTop=o;return}t.scrollTo({left:l,top:o})}function Tt(t,e={}){let{containingElement:n}=e;if(t&&t.isConnected){let r=document.scrollingElement||document.documentElement;if(window.getComputedStyle(r).overflow==="hidden"){let{left:o,top:l}=t.getBoundingClientRect(),a=yo(t,!0);for(let c of a)Yr(c,t);let{left:u,top:d}=t.getBoundingClientRect();if(Math.abs(o-u)>1||Math.abs(l-d)>1){a=n?yo(n,!0):[];for(let c of a)Yr(c,n,{block:"center",inline:"center"});for(let c of yo(t,!0))Yr(c,t)}}else{let{left:o,top:l}=t.getBoundingClientRect();t?.scrollIntoView?.({block:"nearest"});let{left:a,top:u}=t.getBoundingClientRect();(Math.abs(o-a)>1||Math.abs(l-u)>1)&&(n?.scrollIntoView?.({block:"center",inline:"center"}),t.scrollIntoView?.({block:"nearest"}))}}}let O4=0;const $o=new Map;function _n(t){let[e,n]=s.useState();return de(()=>{if(!t)return;let r=$o.get(t);if(r)n(r.element.id);else{let i=`react-aria-description-${O4++}`;n(i);let o=document.createElement("div");o.id=i,o.style.display="none",o.textContent=t,document.body.appendChild(o),r={refCount:0,element:o},$o.set(t,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),$o.delete(t))}},[t]),{"aria-describedby":t?e:void 0}}const pu={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 cn(t={}){let{style:e,isFocusable:n}=t,[r,i]=s.useState(!1),{focusWithinProps:o}=On({isDisabled:!n,onFocusWithinChange:a=>i(a)}),l=s.useMemo(()=>r?e:e?{...pu,...e}:pu,[r]);return{visuallyHiddenProps:{...o,style:l}}}function z4(t){let{children:e,elementType:n="div",isFocusable:r,style:i,...o}=t,{visuallyHiddenProps:l}=cn(t);return s.createElement(n,G(o,l),e)}const vo=s.createContext(null),hu={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},mu={...hu,customError:!0,valid:!1},Vn={isInvalid:!1,validationDetails:hu,validationErrors:[]},_4=s.createContext({}),xo="__reactAriaFormValidationState";function Co(t){if(t[xo]){let{realtimeValidation:e,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}=t[xo];return{realtimeValidation:e,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}}return V4(t)}function V4(t){let{isInvalid:e,validationState:n,name:r,value:i,builtinValidation:o,validate:l,validationBehavior:a="aria"}=t;n&&(e||=n==="invalid");let u=e!==void 0?{isInvalid:e,validationErrors:[],validationDetails:mu}:null,d=s.useMemo(()=>{if(!l||i==null)return null;let I=H4(l,i);return bu(I)},[l,i]);o?.validationDetails.valid&&(o=void 0);let c=s.useContext(_4),f=s.useMemo(()=>r?Array.isArray(r)?r.flatMap(I=>Eo(c[I])):Eo(c[r]):[],[c,r]),[p,m]=s.useState(c),[b,g]=s.useState(!1);c!==p&&(m(c),g(!1));let y=s.useMemo(()=>bu(b?[]:f),[b,f]),$=s.useRef(Vn),[x,v]=s.useState(Vn),C=s.useRef(Vn),k=()=>{if(!P)return;N(!1);let I=d||o||$.current;wo(I,C.current)||(C.current=I,v(I))},[P,N]=s.useState(!1);return s.useEffect(k),{realtimeValidation:u||y||d||o||Vn,displayValidation:a==="native"?u||y||x:u||y||d||o||x,updateValidation(I){a==="aria"&&!wo(x,I)?v(I):$.current=I},resetValidation(){let I=Vn;wo(I,C.current)||(C.current=I,v(I)),a==="native"&&N(!1),g(!0)},commitValidation(){a==="native"&&N(!0),g(!0)}}}function Eo(t){return t?Array.isArray(t)?t:[t]:[]}function H4(t,e){if(typeof t=="function"){let n=t(e);if(n&&typeof n!="boolean")return Eo(n)}return[]}function bu(t){return t.length?{isInvalid:!0,validationErrors:t,validationDetails:mu}:null}function wo(t,e){return t===e?!0:!!t&&!!e&&t.isInvalid===e.isInvalid&&t.validationErrors.length===e.validationErrors.length&&t.validationErrors.every((n,r)=>n===e.validationErrors[r])&&Object.entries(t.validationDetails).every(([n,r])=>e.validationDetails[n]===r)}const So=s.createContext(null);function gu(t){let{description:e,errorMessage:n,isInvalid:r,validationState:i}=t,{labelProps:o,fieldProps:l}=ho(t),a=dt([!!e,!!n,r,i]),u=dt([!!e,!!n,r,i]);return l=G(l,{"aria-describedby":[a,u,t["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:o,fieldProps:l,descriptionProps:{id:a},errorMessageProps:{id:u}}}function Po(t,e,n){let r=Ne(i=>{n&&!i.defaultPrevented&&n(e)});s.useEffect(()=>{let i=t?.current?.form;return i?.addEventListener("reset",r),()=>{i?.removeEventListener("reset",r)}},[t])}function yu(t,e,n){let{validationBehavior:r,focus:i}=t;de(()=>{if(r==="native"&&n?.current&&"setCustomValidity"in n.current&&!n.current.disabled){let d=e.realtimeValidation.isInvalid?e.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(d),n.current.hasAttribute("title")||(n.current.title=""),e.realtimeValidation.isInvalid||e.updateValidation(R4(n.current))}});let o=s.useRef(!1),l=Ne(()=>{o.current||e.resetValidation()}),a=Ne(d=>{e.displayValidation.isInvalid||e.commitValidation();let c=n?.current?.form;!d.defaultPrevented&&n&&c&&W4(c)===n.current&&(i?i():n.current?.focus(),tn("keyboard")),d.preventDefault()}),u=Ne(()=>{e.commitValidation()});s.useEffect(()=>{let d=n?.current;if(!d)return;let c=d.form,f=c?.reset;return c&&(c.reset=()=>{o.current=!window.event||window.event.type==="message"&&_(window.event)instanceof MessagePort,f?.call(c),o.current=!1}),d.addEventListener("invalid",a),d.addEventListener("change",u),c?.addEventListener("reset",l),()=>{d.removeEventListener("invalid",a),d.removeEventListener("change",u),c?.removeEventListener("reset",l),c&&(c.reset=f)}},[n,r])}function j4(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 R4(t){return{isInvalid:!t.validity.valid,validationDetails:j4(t),validationErrors:t.validationMessage?[t.validationMessage]:[]}}function W4(t){for(let e=0;e<t.elements.length;e++){let n=t.elements[e];if(n.validity?.valid===!1)return n}return null}const $u=s.createContext(null),vu=s.createContext(null);function U4(t){let{onMoveStart:e,onMove:n,onMoveEnd:r}=t,i=s.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:o,removeGlobalListener:l}=Ln(),a=s.useCallback((p,m,b,g)=>{b===0&&g===0||(i.current.didMove||(i.current.didMove=!0,e?.({type:"movestart",pointerType:m,shiftKey:p.shiftKey,metaKey:p.metaKey,ctrlKey:p.ctrlKey,altKey:p.altKey})),n?.({type:"move",pointerType:m,deltaX:b,deltaY:g,shiftKey:p.shiftKey,metaKey:p.metaKey,ctrlKey:p.ctrlKey,altKey:p.altKey}))},[e,n,i]),u=Ne(a),d=s.useCallback((p,m)=>{jr(),i.current.didMove&&r?.({type:"moveend",pointerType:m,shiftKey:p.shiftKey,metaKey:p.metaKey,ctrlKey:p.ctrlKey,altKey:p.altKey})},[r,i]),c=Ne(d);return{moveProps:s.useMemo(()=>{let p={},m=()=>{lo(),i.current.didMove=!1};if(typeof PointerEvent>"u"&&process.env.NODE_ENV==="test"){let g=v=>{v.button===0&&(u(v,"mouse",v.pageX-(i.current.lastPosition?.pageX??0),v.pageY-(i.current.lastPosition?.pageY??0)),i.current.lastPosition={pageX:v.pageX,pageY:v.pageY})},y=v=>{if(v.button===0){c(v,"mouse");let C=$e(_(v));l(C,"mousemove",g,!1),l(C,"mouseup",y,!1)}};p.onMouseDown=v=>{if(v.button===0){m(),v.stopPropagation(),v.preventDefault(),i.current.lastPosition={pageX:v.pageX,pageY:v.pageY};let C=$e(_(v));o(C,"mousemove",g,!1),o(C,"mouseup",y,!1)}};let $=v=>{let C=[...v.changedTouches].findIndex(({identifier:k})=>k===i.current.id);if(C>=0){let{pageX:k,pageY:P}=v.changedTouches[C];u(v,"touch",k-(i.current.lastPosition?.pageX??0),P-(i.current.lastPosition?.pageY??0)),i.current.lastPosition={pageX:k,pageY:P}}},x=v=>{if([...v.changedTouches].findIndex(({identifier:k})=>k===i.current.id)>=0){c(v,"touch"),i.current.id=null;let k=$e(_(v));l(k,"touchmove",$),l(k,"touchend",x),l(k,"touchcancel",x)}};p.onTouchStart=v=>{if(v.changedTouches.length===0||i.current.id!=null)return;let{pageX:C,pageY:k,identifier:P}=v.changedTouches[0];m(),v.stopPropagation(),v.preventDefault(),i.current.lastPosition={pageX:C,pageY:k},i.current.id=P;let N=$e(_(v));o(N,"touchmove",$,!1),o(N,"touchend",x,!1),o(N,"touchcancel",x,!1)}}else{let g=$=>{if($.pointerId===i.current.id){let x=$.pointerType||"mouse";u($,x,$.pageX-(i.current.lastPosition?.pageX??0),$.pageY-(i.current.lastPosition?.pageY??0)),i.current.lastPosition={pageX:$.pageX,pageY:$.pageY}}},y=$=>{if($.pointerId===i.current.id){let x=$.pointerType||"mouse";c($,x),i.current.id=null;let v=$e(_($));l(v,"pointermove",g,!1),l(v,"pointerup",y,!1),l(v,"pointercancel",y,!1)}};p.onPointerDown=$=>{if($.button===0&&i.current.id==null){m(),$.stopPropagation(),$.preventDefault(),i.current.lastPosition={pageX:$.pageX,pageY:$.pageY},i.current.id=$.pointerId;let x=$e(_($));o(x,"pointermove",g,!1),o(x,"pointerup",y,!1),o(x,"pointercancel",y,!1)}}}let b=(g,y,$)=>{m(),u(g,"keyboard",y,$),c(g,"keyboard")};return p.onKeyDown=g=>{switch(g.key){case"Left":case"ArrowLeft":g.preventDefault(),g.stopPropagation(),b(g,-1,0);break;case"Right":case"ArrowRight":g.preventDefault(),g.stopPropagation(),b(g,1,0);break;case"Up":case"ArrowUp":g.preventDefault(),g.stopPropagation(),b(g,0,-1);break;case"Down":case"ArrowDown":g.preventDefault(),g.stopPropagation(),b(g,0,1);break}},p},[o,l,i])}}const Xr=s.createContext({}),ko=s.forwardRef(function(e,n){[e,n]=be(e,n,Xr);let{isDisabled:r,isInvalid:i,isReadOnly:o,onHoverStart:l,onHoverChange:a,onHoverEnd:u,...d}=e;r??=!!e["aria-disabled"]&&e["aria-disabled"]!=="false",i??=!!e["aria-invalid"]&&e["aria-invalid"]!=="false";let{hoverProps:c,isHovered:f}=Fe({onHoverStart:l,onHoverChange:a,onHoverEnd:u,isDisabled:r}),{isFocused:p,isFocusVisible:m,focusProps:b}=Be({within:!0}),g=se({...e,values:{isHovered:f,isFocusWithin:p,isFocusVisible:m,isDisabled:r,isInvalid:i},defaultClassName:"react-aria-Group"});return s.createElement(ee.div,{...G(d,b,c),...g,ref:n,role:e.role??"group",slot:e.slot??void 0,"data-focus-within":p||void 0,"data-hovered":f||void 0,"data-focus-visible":m||void 0,"data-disabled":r||void 0,"data-invalid":i||void 0,"data-readonly":o||void 0},g.children)}),qr=s.createContext({});let G4=t=>{let{onHoverStart:e,onHoverChange:n,onHoverEnd:r,...i}=t;return i};const Do=ln(function(e,n){[e,n]=be(e,n,qr);let{hoverProps:r,isHovered:i}=Fe({...e,isDisabled:e.disabled}),{isFocused:o,isFocusVisible:l,focusProps:a}=Be({isTextInput:!0,autoFocus:e.autoFocus}),u=!!e["aria-invalid"]&&e["aria-invalid"]!=="false",d=se({...e,values:{isHovered:i,isFocused:o,isFocusVisible:l,isDisabled:e.disabled||!1,isInvalid:u},defaultClassName:"react-aria-Input"});return s.createElement(ee.input,{...G(G4(e),a,r),...d,ref:n,"data-focused":o||void 0,"data-disabled":e.disabled||void 0,"data-hovered":i||void 0,"data-focus-visible":l||void 0,"data-invalid":u||void 0})});function xu(t,e){let{inputElementType:n="input",isDisabled:r=!1,isRequired:i=!1,isReadOnly:o=!1,type:l="text",validationBehavior:a="aria"}=t,[u,d]=Ye(t.value,t.defaultValue||"",t.onChange),{focusableProps:c}=on(t,e),f=Co({...t,value:u}),{isInvalid:p,validationErrors:m,validationDetails:b}=f.displayValidation,{labelProps:g,fieldProps:y,descriptionProps:$,errorMessageProps:x}=gu({...t,isInvalid:p,errorMessage:t.errorMessage||m}),v=re(t,{labelable:!0});const C={type:l,pattern:t.pattern};let[k]=s.useState(u);return Po(e,t.defaultValue??k,d),yu(t,f,e),{labelProps:g,inputProps:G(v,n==="input"?C:void 0,{disabled:r,readOnly:o,required:i&&a==="native","aria-required":i&&a==="aria"||void 0,"aria-invalid":p||void 0,"aria-errormessage":t["aria-errormessage"],"aria-activedescendant":t["aria-activedescendant"],"aria-autocomplete":t["aria-autocomplete"],"aria-haspopup":t["aria-haspopup"],"aria-controls":t["aria-controls"],value:u,onChange:P=>d(_(P).value),autoComplete:t.autoComplete,autoCapitalize:t.autoCapitalize,maxLength:t.maxLength,minLength:t.minLength,name:t.name,form:t.form,placeholder:t.placeholder,inputMode:t.inputMode,autoCorrect:t.autoCorrect,spellCheck:t.spellCheck,[parseInt(s.version,10)>=17?"enterKeyHint":"enterkeyhint"]:t.enterKeyHint,onCopy:t.onCopy,onCut:t.onCut,onPaste:t.onPaste,onCompositionEnd:t.onCompositionEnd,onCompositionStart:t.onCompositionStart,onCompositionUpdate:t.onCompositionUpdate,onSelect:t.onSelect,onBeforeInput:t.onBeforeInput,onInput:t.onInput,...c,...y}),descriptionProps:$,errorMessageProps:x,isInvalid:p,validationErrors:m,validationDetails:b}}var Cu={};Cu={colorSwatchPicker:"تغييرات الألوان",dropzoneLabel:"DropZone",selectPlaceholder:"حدد عنصرًا",tableResizer:"أداة تغيير الحجم"};var Eu={};Eu={colorSwatchPicker:"Цветови мостри",dropzoneLabel:"DropZone",selectPlaceholder:"Изберете предмет",tableResizer:"Преоразмерител"};var wu={};wu={colorSwatchPicker:"Vzorky barev",dropzoneLabel:"Místo pro přetažení",selectPlaceholder:"Vyberte položku",tableResizer:"Změna velikosti"};var Su={};Su={colorSwatchPicker:"Farveprøver",dropzoneLabel:"DropZone",selectPlaceholder:"Vælg et element",tableResizer:"Størrelsesændring"};var Pu={};Pu={colorSwatchPicker:"Farbfelder",dropzoneLabel:"Ablegebereich",selectPlaceholder:"Element wählen",tableResizer:"Größenanpassung"};var ku={};ku={colorSwatchPicker:"Χρωματικά δείγματα",dropzoneLabel:"DropZone",selectPlaceholder:"Επιλέξτε ένα αντικείμενο",tableResizer:"Αλλαγή μεγέθους"};var Du={};Du={selectPlaceholder:"Select an item",tableResizer:"Resizer",dropzoneLabel:"DropZone",colorSwatchPicker:"Color swatches"};var Nu={};Nu={colorSwatchPicker:"Muestras de colores",dropzoneLabel:"DropZone",selectPlaceholder:"Seleccionar un artículo",tableResizer:"Cambiador de tamaño"};var Tu={};Tu={colorSwatchPicker:"Värvinäidised",dropzoneLabel:"DropZone",selectPlaceholder:"Valige üksus",tableResizer:"Suuruse muutja"};var Au={};Au={colorSwatchPicker:"Värimallit",dropzoneLabel:"DropZone",selectPlaceholder:"Valitse kohde",tableResizer:"Koon muuttaja"};var Iu={};Iu={colorSwatchPicker:"Échantillons de couleurs",dropzoneLabel:"DropZone",selectPlaceholder:"Sélectionner un élément",tableResizer:"Redimensionneur"};var Bu={};Bu={colorSwatchPicker:"דוגמיות צבע",dropzoneLabel:"DropZone",selectPlaceholder:"בחר פריט",tableResizer:"שינוי גודל"};var Fu={};Fu={colorSwatchPicker:"Uzorci boja",dropzoneLabel:"Zona spuštanja",selectPlaceholder:"Odaberite stavku",tableResizer:"Promjena veličine"};var Mu={};Mu={colorSwatchPicker:"Színtárak",dropzoneLabel:"DropZone",selectPlaceholder:"Válasszon ki egy elemet",tableResizer:"Átméretező"};var Ku={};Ku={colorSwatchPicker:"Campioni di colore",dropzoneLabel:"Zona di rilascio",selectPlaceholder:"Seleziona un elemento",tableResizer:"Ridimensionamento"};var Lu={};Lu={colorSwatchPicker:"カラースウォッチ",dropzoneLabel:"ドロップゾーン",selectPlaceholder:"項目を選択",tableResizer:"サイズ変更ツール"};var Ou={};Ou={colorSwatchPicker:"색상 견본",dropzoneLabel:"드롭 영역",selectPlaceholder:"항목 선택",tableResizer:"크기 조정기"};var zu={};zu={colorSwatchPicker:"Spalvų pavyzdžiai",dropzoneLabel:"„DropZone“",selectPlaceholder:"Pasirinkite elementą",tableResizer:"Dydžio keitiklis"};var _u={};_u={colorSwatchPicker:"Krāsu paraugi",dropzoneLabel:"DropZone",selectPlaceholder:"Izvēlēties vienumu",tableResizer:"Izmēra mainītājs"};var Vu={};Vu={colorSwatchPicker:"Fargekart",dropzoneLabel:"Droppsone",selectPlaceholder:"Velg et element",tableResizer:"Størrelsesendrer"};var Hu={};Hu={colorSwatchPicker:"kleurstalen",dropzoneLabel:"DropZone",selectPlaceholder:"Selecteer een item",tableResizer:"Resizer"};var ju={};ju={colorSwatchPicker:"Próbki kolorów",dropzoneLabel:"Strefa upuszczania",selectPlaceholder:"Wybierz element",tableResizer:"Zmiana rozmiaru"};var Ru={};Ru={colorSwatchPicker:"Amostras de cores",dropzoneLabel:"DropZone",selectPlaceholder:"Selecione um item",tableResizer:"Redimensionador"};var Wu={};Wu={colorSwatchPicker:"Amostras de cores",dropzoneLabel:"DropZone",selectPlaceholder:"Selecione um item",tableResizer:"Redimensionador"};var Uu={};Uu={colorSwatchPicker:"Specimene de culoare",dropzoneLabel:"Zonă de plasare",selectPlaceholder:"Selectați un element",tableResizer:"Instrument de redimensionare"};var Gu={};Gu={colorSwatchPicker:"Цветовые образцы",dropzoneLabel:"DropZone",selectPlaceholder:"Выберите элемент",tableResizer:"Средство изменения размера"};var Yu={};Yu={colorSwatchPicker:"Vzorkovníky farieb",dropzoneLabel:"DropZone",selectPlaceholder:"Vyberte položku",tableResizer:"Nástroj na zmenu veľkosti"};var Xu={};Xu={colorSwatchPicker:"Barvne palete",dropzoneLabel:"DropZone",selectPlaceholder:"Izberite element",tableResizer:"Spreminjanje velikosti"};var qu={};qu={colorSwatchPicker:"Uzorci boje",dropzoneLabel:"DropZone",selectPlaceholder:"Izaberite stavku",tableResizer:"Promena veličine"};var Zu={};Zu={colorSwatchPicker:"Färgrutor",dropzoneLabel:"DropZone",selectPlaceholder:"Välj en artikel",tableResizer:"Storleksändrare"};var Ju={};Ju={colorSwatchPicker:"Renk örnekleri",dropzoneLabel:"Bırakma Bölgesi",selectPlaceholder:"Bir öğe seçin",tableResizer:"Yeniden boyutlandırıcı"};var Qu={};Qu={colorSwatchPicker:"Зразки кольорів",dropzoneLabel:"DropZone",selectPlaceholder:"Виберіть елемент",tableResizer:"Засіб змінення розміру"};var ed={};ed={colorSwatchPicker:"颜色色板",dropzoneLabel:"放置区域",selectPlaceholder:"选择一个项目",tableResizer:"尺寸调整器"};var td={};td={colorSwatchPicker:"色票",dropzoneLabel:"放置區",selectPlaceholder:"選取項目",tableResizer:"大小調整器"};var No={};No={"ar-AE":Cu,"bg-BG":Eu,"cs-CZ":wu,"da-DK":Su,"de-DE":Pu,"el-GR":ku,"en-US":Du,"es-ES":Nu,"et-EE":Tu,"fi-FI":Au,"fr-FR":Iu,"he-IL":Bu,"hr-HR":Fu,"hu-HU":Mu,"it-IT":Ku,"ja-JP":Lu,"ko-KR":Ou,"lt-LT":zu,"lv-LV":_u,"nb-NO":Vu,"nl-NL":Hu,"pl-PL":ju,"pt-BR":Ru,"pt-PT":Wu,"ro-RO":Uu,"ru-RU":Gu,"sk-SK":Yu,"sl-SI":Xu,"sr-SP":qu,"sv-SE":Zu,"tr-TR":Ju,"uk-UA":Qu,"zh-CN":ed,"zh-TW":td};const Xe=s.createContext({}),To=s.createContext(null),Y4=s.forwardRef(function(e,n){let{render:r}=s.useContext(To);return s.createElement(s.Fragment,null,r(e,n))});function Zr(t,e){let n=t?.renderDropIndicator,r=t?.isVirtualDragging?.(),i=s.useCallback(o=>{if(r||e?.isDropTarget(o))return n?n(o):s.createElement(Y4,{target:o})},[e?.target,r,n]);return t?.useDropIndicator?i:void 0}function nd(t,e,n){let r=t.focusedKey,i=null;if(e?.isVirtualDragging?.()&&n?.target?.type==="item"&&(i=n.target.key,n.target.dropPosition==="after")){let o=n.collection.getKeyAfter(i),l=null;if(o!=null){let a=n.collection.getItem(i)?.level??0;for(;o!=null;){let u=n.collection.getItem(o);if(!u)break;if(u.type!=="item"){o=n.collection.getKeyAfter(o);continue}if((u.level??0)<=a)break;l=o,o=n.collection.getKeyAfter(o)}}i=o??l??i}return s.useMemo(()=>new Set([r,i].filter(o=>o!=null)),[r,i])}const Ao=s.createContext({}),X4=ot(qi,function(e,n){return[e,n]=be(e,n,Ao),s.createElement(ee.header,{className:"react-aria-Header",...e,ref:n},e.children)}),rd=s.createContext(null);function Jr(t){let e=s.useRef({});return s.createElement(rd.Provider,{value:e},t.children)}const q4=s.forwardRef(function(e,n){let{name:r,isVisible:i=!0,children:o,className:l,style:a,render:u,...d}=e,[c,f]=s.useState(i?"visible":"hidden"),p=s.useContext(rd);if(!p)throw new Error("<SharedElement> must be rendered inside a <SharedElementTransition>");i&&c==="hidden"&&f("visible"),n=ke(n),de(()=>{let b=n.current,g=p.current,y=g[r],$=null;if(b&&i&&y){f("visible");let x=b.getAnimations(),v=y.style.map(([C,k])=>{let P=b.style[C];if(C==="translate"){let N=y.rect,w=b.getBoundingClientRect(),D=N.left-w?.left,I=N.top-w?.top;b.style.translate=`${D}px ${I}px`}else b.style[C]=k;return[C,P]});for(let C of b.getAnimations())x.includes(C)||C.cancel();$=requestAnimationFrame(()=>{$=null;for(let[C,k]of v)b.style[C]=k}),delete g[r]}else b&&i&&!y?(queueMicrotask(()=>Et.flushSync(()=>f("entering"))),$=requestAnimationFrame(()=>{$=null,f("visible")})):b&&!i&&queueMicrotask(()=>{g[r]?(delete g[r],Et.flushSync(()=>f("exiting")),Promise.all(b.getAnimations().map(x=>x.finished)).then(()=>f("hidden")).catch(()=>{})):f("hidden")});return()=>{if($!=null&&cancelAnimationFrame($),b&&b.isConnected&&!b.hasAttribute("data-exiting")){let x=window.getComputedStyle(b);if(x.transitionProperty!=="none"){let v=x.transitionProperty.split(/\s*,\s*/);g[r]={rect:b.getBoundingClientRect(),style:v.map(C=>[C,x[C]])}}}}},[n,p,r,i]);let m=se({children:o,className:l,style:a,render:u,values:{isEntering:c==="entering",isExiting:c==="exiting"}});return c==="hidden"?null:s.createElement(ee.div,{...d,...m,ref:n,"data-entering":c==="entering"||void 0,"data-exiting":c==="exiting"||void 0})}),Hn=s.createContext({isSelected:!1}),Z4=s.forwardRef(function(e,n){[e,n]=be(e,n,Hn);let{isSelected:r,...i}=e;return s.createElement(q4,{...i,ref:n,className:e.className||"react-aria-SelectionIndicator",name:"SelectionIndicator",isVisible:r})});function J4(t){let e=re(t,{labelable:!0}),n;return t.orientation==="vertical"&&(n="vertical"),t.elementType!=="hr"?{separatorProps:{...e,role:"separator","aria-orientation":n}}:{separatorProps:e}}const Io=s.createContext({}),ba=class ba extends He{filter(e,n){let r=n.getItem(this.prevKey);if(r&&r.type!=="separator"){let i=this.clone();return n.addDescendants(i,e),i}return null}};ba.type="separator";let Bo=ba;const id=ot(Bo,function(e,n){[e,n]=be(e,n,Io);let{elementType:r,orientation:i,style:o,className:l,slot:a,...u}=e,d=r||"hr";d==="hr"&&i==="vertical"&&(d="div");let c=ee[d],{separatorProps:f}=J4({...u,elementType:r,orientation:i}),p=re(e,{global:!0});return s.createElement(c,{render:e.render,...G(p,f),style:o,className:l??"react-aria-Separator",ref:n,slot:a||void 0})}),Qr=new WeakMap;function Q4(t){return typeof t=="string"?t.replace(/\s*/g,""):""+t}function od(t,e){let n=Qr.get(t);if(!n)throw new Error("Unknown list");return`${n.id}-option-${Q4(e)}`}class e2{constructor(e,n,r,i){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=l=>{if(l.nodeType===Node.ELEMENT_NODE){const a=l.shadowRoot;if(a){const u=this._doc.createTreeWalker(a,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(u),NodeFilter.FILTER_ACCEPT}else{if(typeof this.filter=="function")return this.filter(l);if(this.filter?.acceptNode)return this.filter.acceptNode(l);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=e,this.root=n,this.filter=i??null,this.whatToShow=r??NodeFilter.SHOW_ALL,this._currentNode=n,this._walkerStack.unshift(e.createTreeWalker(n,r,this._acceptNode));const o=n.shadowRoot;if(o){const l=this._doc.createTreeWalker(o,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(l)}}get currentNode(){return this._currentNode}set currentNode(e){if(!te(this.root,e))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const n=[];let r=e,i=e;for(this._currentNode=e;r&&r!==this.root;)if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const l=r,a=this._doc.createTreeWalker(l,this.whatToShow,{acceptNode:this._acceptNode});n.push(a),a.currentNode=i,this._currentSetFor.add(a),r=i=l.host}else r=r.parentNode;const o=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});n.push(o),o.currentNode=i,this._currentSetFor.add(o),this._walkerStack=n}get doc(){return this._doc}firstChild(){let e=this.currentNode,n=this.nextNode();return te(e,n)?(n&&(this.currentNode=n),n):(this.currentNode=e,null)}lastChild(){let n=this._walkerStack[0].lastChild();return n&&(this.currentNode=n),n}nextNode(){const e=this._walkerStack[0].nextNode();if(e){if(e.shadowRoot){let r;if(typeof this.filter=="function"?r=this.filter(e):this.filter?.acceptNode&&(r=this.filter.acceptNode(e)),r===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(){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 r=this.previousNode();return r&&(this.currentNode=r),r}else return null;return null}const n=e.previousNode();if(n){if(n.shadowRoot){let i;if(typeof this.filter=="function"?i=this.filter(n):this.filter?.acceptNode&&(i=this.filter.acceptNode(n)),i===NodeFilter.FILTER_ACCEPT)return n&&(this.currentNode=n),n;let o=this.lastChild();return o&&(this.currentNode=o),o}return n&&(this.currentNode=n),n}else if(this._walkerStack.length>1){this._walkerStack.shift();let r=this.previousNode();return r&&(this.currentNode=r),r}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}}function ld(t,e,n,r){return nt()?new e2(t,e,n,r):t.createTreeWalker(e,n,r)}const ad=s.createContext(null),Fo="react-aria-focus-scope-restore";let ge=null;function ei(t){let{children:e,contain:n,restoreFocus:r,autoFocus:i}=t,o=s.useRef(null),l=s.useRef(null),a=s.useRef([]),{parentNode:u}=s.useContext(ad)||{},d=s.useMemo(()=>new Lo({scopeRef:a}),[a]);de(()=>{let p=u||Ce.root;if(Ce.getTreeNode(p.scopeRef)&&ge&&!ti(ge,p.scopeRef)){let m=Ce.getTreeNode(ge);m&&(p=m)}p.addChild(d),Ce.addNode(d)},[d,u]),de(()=>{let p=Ce.getTreeNode(a);p&&(p.contain=!!n)},[n]),de(()=>{let p=o.current?.nextSibling,m=[],b=g=>g.stopPropagation();for(;p&&p!==l.current;)m.push(p),p.addEventListener(Fo,b),p=p.nextSibling;return a.current=m,()=>{for(let g of m)g.removeEventListener(Fo,b)}},[e]),a2(a,r,n),i2(a,n),s2(a,r,n),l2(a,i),s.useEffect(()=>{const p=pe(le(a.current?a.current[0]:void 0));let m=null;if(Re(p,a.current)){for(let b of Ce.traverse())b.scopeRef&&Re(p,b.scopeRef.current)&&(m=b);m===Ce.getTreeNode(a)&&(ge=m.scopeRef)}},[a]),de(()=>()=>{let p=Ce.getTreeNode(a)?.parent?.scopeRef??null;(a===ge||ti(a,ge))&&(!p||Ce.getTreeNode(p))&&(ge=p),Ce.removeTreeNode(a)},[a]);let c=s.useMemo(()=>t2(a),[]),f=s.useMemo(()=>({focusManager:c,parentNode:d}),[d,c]);return s.createElement(ad.Provider,{value:f},s.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:o}),e,s.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:l}))}function t2(t){return{focusNext(e={}){let n=t.current,{from:r,tabbable:i,wrap:o,accept:l}=e,a=r||pe(le(n[0]??void 0)),u=n[0].previousElementSibling,d=jt(n),c=ze(d,{tabbable:i,accept:l},n);c.currentNode=Re(a,n)?a:u;let f=c.nextNode();return!f&&o&&(c.currentNode=u,f=c.nextNode()),f&&qe(f,!0),f},focusPrevious(e={}){let n=t.current,{from:r,tabbable:i,wrap:o,accept:l}=e,a=r||pe(le(n[0]??void 0)),u=n[n.length-1].nextElementSibling,d=jt(n),c=ze(d,{tabbable:i,accept:l},n);c.currentNode=Re(a,n)?a:u;let f=c.previousNode();return!f&&o&&(c.currentNode=u,f=c.previousNode()),f&&qe(f,!0),f},focusFirst(e={}){let n=t.current,{tabbable:r,accept:i}=e,o=jt(n),l=ze(o,{tabbable:r,accept:i},n);l.currentNode=n[0].previousElementSibling;let a=l.nextNode();return a&&qe(a,!0),a},focusLast(e={}){let n=t.current,{tabbable:r,accept:i}=e,o=jt(n),l=ze(o,{tabbable:r,accept:i},n);l.currentNode=n[n.length-1].nextElementSibling;let a=l.previousNode();return a&&qe(a,!0),a}}}function jt(t){return t[0].parentElement}function jn(t){let e=Ce.getTreeNode(ge);for(;e&&e.scopeRef!==t;){if(e.contain)return!1;e=e.parent}return!0}function n2(t){if(!t.form)return Array.from(le(t).querySelectorAll(`input[type="radio"][name="${CSS.escape(t.name)}"]`)).filter(r=>!r.form);const e=t.form.elements.namedItem(t.name);let n=$e(t);return e instanceof n.RadioNodeList?Array.from(e).filter(r=>r instanceof n.HTMLInputElement):e instanceof n.HTMLInputElement?[e]:[]}function r2(t){if(t.checked)return!0;const e=n2(t);return e.length>0&&!e.some(n=>n.checked)}function i2(t,e){let n=s.useRef(void 0),r=s.useRef(void 0);de(()=>{let i=t.current;if(!e){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const o=le(i?i[0]:void 0);let l=d=>{if(d.key!=="Tab"||d.altKey||d.ctrlKey||d.metaKey||!jn(t)||d.isComposing)return;let c=pe(o),f=t.current;if(!f||!Re(c,f))return;let p=jt(f),m=ze(p,{tabbable:!0},f);if(!c)return;m.currentNode=c;let b=d.shiftKey?m.previousNode():m.nextNode();b||(m.currentNode=d.shiftKey?f[f.length-1].nextElementSibling:f[0].previousElementSibling,b=d.shiftKey?m.previousNode():m.nextNode()),d.preventDefault(),b&&(qe(b,!0),b instanceof $e(b).HTMLInputElement&&b.select())},a=d=>{(!ge||ti(ge,t))&&Re(_(d),t.current)?(ge=t,n.current=_(d)):jn(t)&&!At(_(d),t)?n.current?qe(n.current):ge&&ge.current&&Mo(ge.current):jn(t)&&(n.current=_(d))},u=d=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let c=Dn(),f=(c==="virtual"||c===null)&&en()&&Ui(),p=pe(o);if(!f&&p&&jn(t)&&!At(p,t)){ge=t;let m=_(d);m&&m.isConnected?(n.current=m,qe(n.current)):ge.current&&Mo(ge.current)}})};return o.addEventListener("keydown",l,!1),o.addEventListener("focusin",a,!1),i?.forEach(d=>d.addEventListener("focusin",a,!1)),i?.forEach(d=>d.addEventListener("focusout",u,!1)),()=>{o.removeEventListener("keydown",l,!1),o.removeEventListener("focusin",a,!1),i?.forEach(d=>d.removeEventListener("focusin",a,!1)),i?.forEach(d=>d.removeEventListener("focusout",u,!1))}},[t,e]),de(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function sd(t){return At(t)}function Re(t,e){return!t||!e?!1:e.some(n=>te(n,t))}function At(t,e=null){if(t instanceof Element&&t.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of Ce.traverse(Ce.getTreeNode(e)))if(n&&Re(t,n.current))return!0;return!1}function o2(t){return At(t,ge)}function ti(t,e){let n=Ce.getTreeNode(e)?.parent;for(;n;){if(n.scopeRef===t)return!0;n=n.parent}return!1}function qe(t,e=!1){if(t!=null&&!e)try{Se(t)}catch{}else if(t!=null)try{t.focus()}catch{}}function ud(t,e=!0){let n=t[0].previousElementSibling,r=jt(t),i=ze(r,{tabbable:e},t);i.currentNode=n;let o=i.nextNode();return e&&!o&&(r=jt(t),i=ze(r,{tabbable:!1},t),i.currentNode=n,o=i.nextNode()),o}function Mo(t,e=!0){qe(ud(t,e))}function l2(t,e){const n=s.useRef(e);s.useEffect(()=>{if(n.current){ge=t;const r=le(t.current?t.current[0]:void 0);!Re(pe(r),ge.current)&&t.current&&Mo(t.current)}n.current=!1},[t])}function a2(t,e,n){de(()=>{if(e||n)return;let r=t.current;const i=le(r?r[0]:void 0);let o=l=>{let a=_(l);Re(a,t.current)?ge=t:sd(a)||(ge=null)};return i.addEventListener("focusin",o,!1),r?.forEach(l=>l.addEventListener("focusin",o,!1)),()=>{i.removeEventListener("focusin",o,!1),r?.forEach(l=>l.removeEventListener("focusin",o,!1))}},[t,e,n])}function dd(t){let e=Ce.getTreeNode(ge);for(;e&&e.scopeRef!==t;){if(e.nodeToRestore)return!1;e=e.parent}return e?.scopeRef===t}function s2(t,e,n){const r=s.useRef(typeof document<"u"?pe(le(t.current?t.current[0]:void 0)):null);de(()=>{let i=t.current;const o=le(i?i[0]:void 0);if(!e||n)return;let l=()=>{(!ge||ti(ge,t))&&Re(pe(o),t.current)&&(ge=t)};return o.addEventListener("focusin",l,!1),i?.forEach(a=>a.addEventListener("focusin",l,!1)),()=>{o.removeEventListener("focusin",l,!1),i?.forEach(a=>a.removeEventListener("focusin",l,!1))}},[t,n]),de(()=>{const i=le(t.current?t.current[0]:void 0);if(!e)return;let o=l=>{if(l.key!=="Tab"||l.altKey||l.ctrlKey||l.metaKey||!jn(t)||l.isComposing)return;let a=i.activeElement;if(!At(a,t)||!dd(t))return;let u=Ce.getTreeNode(t);if(!u)return;let d=u.nodeToRestore,c=ze(i.body,{tabbable:!0});c.currentNode=a;let f=l.shiftKey?c.previousNode():c.nextNode();if((!d||!d.isConnected||d===i.body)&&(d=void 0,u.nodeToRestore=void 0),(!f||!At(f,t))&&d){c.currentNode=d;do f=l.shiftKey?c.previousNode():c.nextNode();while(At(f,t));l.preventDefault(),l.stopPropagation(),f?qe(f,!0):sd(d)?qe(d,!0):a.blur()}};return n||i.addEventListener("keydown",o,!0),()=>{n||i.removeEventListener("keydown",o,!0)}},[t,e,n]),de(()=>{const i=le(t.current?t.current[0]:void 0);if(!e)return;let o=Ce.getTreeNode(t);if(o)return o.nodeToRestore=r.current??void 0,()=>{let l=Ce.getTreeNode(t);if(!l)return;let a=l.nodeToRestore,u=pe(i);if(e&&a&&(u&&At(u,t)||u===i.body&&dd(t))){let d=Ce.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let c=d.getTreeNode(t);for(;c;){if(c.nodeToRestore&&c.nodeToRestore.isConnected){cd(c.nodeToRestore);return}c=c.parent}for(c=d.getTreeNode(t);c;){if(c.scopeRef&&c.scopeRef.current&&Ce.getTreeNode(c.scopeRef)){let f=ud(c.scopeRef.current,!0);cd(f);return}c=c.parent}}})}}},[t,e])}function cd(t){t.dispatchEvent(new CustomEvent(Fo,{bubbles:!0,cancelable:!0}))&&qe(t)}function ze(t,e,n){let r=e?.tabbable?ji:Ia,i=t?.nodeType===Node.ELEMENT_NODE?t:null,o=le(i),l=ld(o,t||o,NodeFilter.SHOW_ELEMENT,{acceptNode(a){return te(e?.from,a)||e?.tabbable&&a.tagName==="INPUT"&&a.getAttribute("type")==="radio"&&(!r2(a)||l.currentNode.tagName==="INPUT"&&l.currentNode.type==="radio"&&l.currentNode.name===a.name)?NodeFilter.FILTER_REJECT:r(a)&&(!n||Re(a,n))&&(!e?.accept||e.accept(a))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return e?.from&&(l.currentNode=e.from),l}class Ko{constructor(){this.fastMap=new Map,this.root=new Lo({scopeRef:null}),this.fastMap.set(null,this.root)}get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,n,r){let i=this.fastMap.get(n??null);if(!i)return;let o=new Lo({scopeRef:e});i.addChild(o),o.parent=i,this.fastMap.set(e,o),r&&(o.nodeToRestore=r)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(e===null)return;let n=this.fastMap.get(e);if(!n)return;let r=n.parent;for(let o of this.traverse())o!==n&&n.nodeToRestore&&o.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&Re(o.nodeToRestore,n.scopeRef.current)&&(o.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(o=>r&&r.addChild(o))),this.fastMap.delete(n.scopeRef)}*traverse(e=this.root){if(e.scopeRef!=null&&(yield e),e.children.size>0)for(let n of e.children)yield*this.traverse(n)}clone(){let e=new Ko;for(let n of this.traverse())e.addTreeNode(n.scopeRef,n.parent?.scopeRef??null,n.nodeToRestore);return e}}class Lo{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 Ce=new Ko;function Oo(t){return kr()?t.altKey:t.ctrlKey}function Rt(t,e){let n=`[data-key="${CSS.escape(String(e))}"]`,r=t.current?.dataset.collection;return r&&(n=`[data-collection="${CSS.escape(r)}"]${n}`),t.current?.querySelector(n)}const fd=new WeakMap;function u2(t){let e=xe();return fd.set(t,e),e}function d2(t){return fd.get(t)}const pd=1e3;function hd(t){let{keyboardDelegate:e,selectionManager:n,onTypeSelect:r}=t,i=s.useRef({search:"",timeout:void 0}),o=a=>{if(i.current.search.length>0&&a.key===" "){if(a.preventDefault(),(!("continuePropagation"in a)||"continuePropagation"in a&&!a.isPropagationStopped())&&a.stopPropagation(),i.current.search+=" ",e.getKeyForSearch!=null){let u=e.getKeyForSearch(i.current.search,n.focusedKey);u==null&&(u=e.getKeyForSearch(i.current.search)),u!=null&&(n.setFocusedKey(u),r&&r(u))}clearTimeout(i.current.timeout),i.current.timeout=setTimeout(()=>{i.current.search=""},pd)}},l=a=>{let u=c2(a.key);if(!(!u||a.ctrlKey||a.metaKey||a.altKey||!te(a.currentTarget,_(a))||i.current.search.length===0&&u===" ")){if(i.current.search+=u,e.getKeyForSearch!=null){let d=e.getKeyForSearch(i.current.search,n.focusedKey);if(d==null&&(d=e.getKeyForSearch(i.current.search)),d!=null)n.setFocusedKey(d),r&&r(d),a.preventDefault(),"continuePropagation"in a||a.stopPropagation();else{i.current.search="",clearTimeout(i.current.timeout),i.current.timeout=void 0;return}}clearTimeout(i.current.timeout),i.current.timeout=setTimeout(()=>{i.current.search=""},pd)}};return s.useEffect(()=>{let a=i.current.timeout;return()=>{clearTimeout(a)}},[i]),{typeSelectProps:{onKeyDownCapture:e.getKeyForSearch?o:void 0,onKeyDown:e.getKeyForSearch?l:void 0}}}function c2(t){return t.length===1||!/^[A-Z]/i.test(t)?t:""}function md(t,e){const n=s.useRef(!0),r=s.useRef(null);de(()=>(n.current=!0,()=>{n.current=!1}),[]),de(()=>{n.current?n.current=!1:(!r.current||e.some((i,o)=>!Object.is(i,r[o])))&&t(),r.current=e},e)}function ni(t){let{selectionManager:e,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:o=!1,disallowEmptySelection:l=!1,disallowSelectAll:a=!1,escapeKeyBehavior:u="clearSelection",selectOnFocus:d=e.selectionBehavior==="replace",disallowTypeAhead:c=!1,shouldUseVirtualFocus:f,allowsTabNavigation:p=!1,scrollRef:m=r,linkBehavior:b="action",UNSTABLE_focusOnEntry:g}=t,{direction:y}=Te(),$=Kt();const x=(F,K,ue)=>{if(K!=null){if(e.isLink(K)&&b==="selection"&&d&&!Oo(F)){Et.flushSync(()=>{e.setFocusedKey(K,ue)});let fe=Rt(r,K),ut=e.getItemProps(K);if(fe){$.open(fe,F,ut.href,ut.routerOptions);return}return!1}if(e.setFocusedKey(K,ue),e.isLink(K)&&b==="override")return!1;if(F.shiftKey&&e.selectionMode==="multiple"){e.extendSelection(K);return}else if(d&&!Oo(F)){e.replaceSelection(K);return}}return!1};let v=F=>{if(n.getKeyBelow){let K=e.focusedKey!=null?n.getKeyBelow?.(e.focusedKey):n.getFirstKey?.();if(K==null&&o&&(K=n.getFirstKey?.(e.focusedKey)),K!=null){x(F,K);return}}return!1},C=F=>{if(n.getKeyAbove){let K=e.focusedKey!=null?n.getKeyAbove?.(e.focusedKey):n.getLastKey?.();if(K==null&&o&&(K=n.getLastKey?.(e.focusedKey)),K!=null){x(F,K);return}}return!1},k=F=>{if(n.getFirstKey){if(e.focusedKey===null&&F.shiftKey)return!1;let K=n.getFirstKey(e.focusedKey,Nn(F));if(e.setFocusedKey(K),K!=null){if(Nn(F)&&F.shiftKey&&e.selectionMode==="multiple"){e.extendSelection(K);return}else if(d){e.replaceSelection(K);return}}}return!1},P=F=>{if(n.getKeyLeftOf){let K=e.focusedKey!=null?n.getKeyLeftOf?.(e.focusedKey):n.getFirstKey?.();if(K==null&&o&&(K=y==="rtl"?n.getFirstKey?.(e.focusedKey):n.getLastKey?.(e.focusedKey)),K!=null){x(F,K,y==="rtl"?"first":"last");return}}return!1},N=F=>{if(n.getKeyRightOf){let K=e.focusedKey!=null?n.getKeyRightOf?.(e.focusedKey):n.getFirstKey?.();if(K==null&&o&&(K=y==="rtl"?n.getLastKey?.(e.focusedKey):n.getFirstKey?.(e.focusedKey)),K!=null){x(F,K,y==="rtl"?"last":"first");return}}return!1},w=F=>{if(n.getLastKey){if(e.focusedKey===null&&F.shiftKey)return!1;let K=n.getLastKey(e.focusedKey,Nn(F));if(e.setFocusedKey(K),K!=null){if(Nn(F)&&F.shiftKey&&e.selectionMode==="multiple"){e.extendSelection(K);return}else if(d){e.replaceSelection(K);return}}}return!1},D=F=>{if(n.getKeyPageBelow&&e.focusedKey!=null){let K=n.getKeyPageBelow(e.focusedKey);if(K!=null)return x(F,K)}return!1},I=F=>{if(n.getKeyPageAbove&&e.focusedKey!=null){let K=n.getKeyPageAbove(e.focusedKey);if(K!=null)return x(F,K)}return!1},L=()=>{if(e.selectionMode==="multiple"&&a!==!0){e.selectAll();return}return!1},z=()=>{if(u==="clearSelection"&&!l&&e.selectedKeys.size!==0){e.clearSelection();return}return!1},j=()=>{if(!p&&r.current){let F=ze(r.current,{tabbable:!0}),K,ue;do ue=F.lastChild(),ue&&(K=ue);while(ue);let fe=pe();K&&(!Mt(K)||fe&&!ji(fe))&&Ge(K)}return{shouldContinuePropagation:!0,shouldPreventDefault:!1}},E=()=>(!p&&r.current&&r.current.focus(),{shouldContinuePropagation:!0,shouldPreventDefault:!1}),A=(F,K)=>({[_e()?F+"+Shift+Alt":F+"+Shift+Control"]:K,[F+"+Shift"]:K,[_e()?F+"+Alt":F+"+Control"]:K,[F]:K}),{keyboardProps:Y}=je({shortcuts:{...A("ArrowDown",v),...A("ArrowUp",C),...A("ArrowLeft",P),...A("ArrowRight",N),...A("PageDown",D),...A("PageUp",I)},allowRepeats:!0}),{keyboardProps:M}=je({shortcuts:{...A("Home",k),...A("End",w),"Mod+A":L,Escape:z,Tab:j,"Tab+Shift":E}}),X=s.useRef({top:0,left:0});An(m,"scroll",()=>{X.current={top:m.current?.scrollTop??0,left:m.current?.scrollLeft??0}});let S=F=>{if(e.isFocused){te(F.currentTarget,_(F))||e.setFocused(!1);return}if(!te(F.currentTarget,_(F)))return;let K=Dn();e.setFocused(!0);let ue=fe=>{fe!=null&&(e.setFocusedKey(fe),d&&!e.isSelected(fe)&&e.replaceSelection(fe))};if(g&&(K==="keyboard"||K==="virtual"))ue(g==="first"?n.getFirstKey?.():n.getLastKey?.());else if(e.focusedKey==null){let fe=F.relatedTarget;fe&&F.currentTarget.compareDocumentPosition(fe)&Node.DOCUMENT_POSITION_FOLLOWING?ue(e.lastSelectedKey??n.getLastKey?.()):ue(e.firstSelectedKey??n.getFirstKey?.())}else m.current&&(m.current.scrollTop=X.current.top,m.current.scrollLeft=X.current.left);if(e.focusedKey!=null&&m.current){let fe=Rt(r,e.focusedKey);fe instanceof HTMLElement&&(!Mt(fe)&&!f&&Ge(fe),(K==="keyboard"||g&&K==="virtual")&&Tt(fe,{containingElement:r.current}))}},B=F=>{te(F.currentTarget,F.relatedTarget)||e.setFocused(!1)},U=s.useRef(!1);An(r,Ug,f?F=>{let{detail:K}=F;F.stopPropagation(),e.setFocused(!0),K?.focusStrategy==="first"&&(U.current=!0)}:void 0);let oe=n.getFirstKey?.()??null;md(()=>{if(U.current)if(oe==null){let F=pe();Aa(r.current),_i(F,null),e.collection.size>0&&(U.current=!1)}else e.setFocusedKey(oe),U.current=!1},[oe,e.collection.size]),md(()=>{e.collection.size>0&&(U.current=!1)},[e.focusedKey]),An(r,Wg,f?F=>{F.stopPropagation(),e.setFocused(!1),F.detail?.clearFocusKey&&e.setFocusedKey(null)}:void 0);const W=s.useRef(i),ne=s.useRef(!1);s.useEffect(()=>{if(W.current){let F=null;i==="first"&&(F=n.getFirstKey?.()??null),i==="last"&&(F=n.getLastKey?.()??null);let K=e.selectedKeys;if(K.size){for(let ue of K)if(e.canSelectItem(ue)){F=ue;break}}e.setFocused(!0),e.setFocusedKey(F),F==null&&!f&&r.current&&Se(r.current),e.collection.size>0&&(W.current=!1,ne.current=!0)}});let T=s.useRef(e.focusedKey),O=s.useRef(null);s.useEffect(()=>{if(e.isFocused&&e.focusedKey!=null&&(e.focusedKey!==T.current||ne.current)&&m.current&&r.current){let F=Dn(),K=Rt(r,e.focusedKey);if(!(K instanceof HTMLElement))return;(F==="keyboard"||ne.current)&&(O.current&&cancelAnimationFrame(O.current),O.current=requestAnimationFrame(()=>{m.current&&(Yr(m.current,K),F!=="virtual"&&Tt(K,{containingElement:r.current}))}))}!f&&e.isFocused&&e.focusedKey==null&&T.current!=null&&r.current&&Se(r.current),T.current=e.focusedKey,ne.current=!1}),s.useEffect(()=>()=>{O.current&&cancelAnimationFrame(O.current)},[]),An(r,"react-aria-focus-scope-restore",F=>{F.preventDefault(),e.setFocused(!0)});let J={...G(M,Y),onFocus:S,onBlur:B,onMouseDown(F){m.current===_(F)&&F.preventDefault()}},{typeSelectProps:ce}=hd({keyboardDelegate:n,selectionManager:e});c||(J=G(ce,J));let he;f||(he=e.focusedKey==null?0:-1);let tt=u2(e.collection);return{collectionProps:G(J,{tabIndex:he,"data-collection":tt})}}class zo{constructor(e){this.ref=e}getItemRect(e){let n=this.ref.current;if(!n)return null;let r=e!=null?Rt(this.ref,e):null;if(!r)return null;let i=n.getBoundingClientRect(),o=r.getBoundingClientRect();return{x:o.left-i.left-n.clientLeft+n.scrollLeft,y:o.top-i.top-n.clientTop+n.scrollTop,width:o.width,height:o.height}}getContentSize(){let e=this.ref.current;return{width:e?.scrollWidth??0,height:e?.scrollHeight??0}}getVisibleRect(){let e=this.ref.current;return{x:e?.scrollLeft??0,y:e?.scrollTop??0,width:e?.clientWidth??0,height:e?.clientHeight??0}}}class Rn{constructor(...e){if(e.length===1){let n=e[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.disabledBehavior=n.disabledBehavior||"all",this.orientation=n.orientation||"vertical",this.direction=n.direction,this.layout=n.layout||"stack",this.layoutDelegate=n.layoutDelegate||new zo(n.ref)}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new zo(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}isDisabled(e){return this.disabledBehavior==="all"&&(e.props?.isDisabled||this.disabledKeys.has(e.key))&&e.props?.disabledBehavior!=="selection"}findNextNonDisabled(e,n,r=!1){let i=e;for(;i!=null;){let o=this.collection.getItem(i);if(o?.type==="item"&&(r||!this.isDisabled(o)))return i;i=n(i)}return null}getNextKey(e,n){let r=e;return r=this.collection.getKeyAfter(r),this.findNextNonDisabled(r,i=>this.collection.getKeyAfter(i),n?.includeDisabled)}getPreviousKey(e,n){let r=e;return r=this.collection.getKeyBefore(r),this.findNextNonDisabled(r,i=>this.collection.getKeyBefore(i),n?.includeDisabled)}findKey(e,n,r){let i=e,o=this.layoutDelegate.getItemRect(i);if(!o||i==null)return null;let l=o;do{if(i=n(i),i==null)break;o=this.layoutDelegate.getItemRect(i)}while(o&&r(l,o)&&i!=null);return i}isSameRow(e,n){return e.y===n.y||e.x!==n.x}isSameColumn(e,n){return e.x===n.x||e.y!==n.y}isReversed(e){let n=this.getNextKey(e),r=Rt(this.ref,e);if(n!=null){let o=Rt(this.ref,n);return!r||!o?!1:r.getBoundingClientRect().top>o.getBoundingClientRect().top}let i=this.getPreviousKey(e);if(i!=null){let o=Rt(this.ref,i);return!r||!o?!1:o.getBoundingClientRect().top>r.getBoundingClientRect().top}return!1}getKeyBelow(e,n){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,r=>this.getNextKey(r,n),this.isSameRow):this.orientation==="vertical"?this.isReversed(e)?this.getPreviousKey(e,n):this.getNextKey(e,n):this.getNextKey(e,n)}getKeyAbove(e,n){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,r=>this.getPreviousKey(r,n),this.isSameRow):this.orientation==="vertical"?this.isReversed(e)?this.getNextKey(e,n):this.getPreviousKey(e,n):this.getPreviousKey(e,n)}getNextColumn(e,n,r){return n?this.getPreviousKey(e,r):this.getNextKey(e,r)}getKeyRightOf(e,n){let r=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[r]?(e=this.layoutDelegate[r](e),this.findNextNonDisabled(e,i=>this.layoutDelegate[r](i),n?.includeDisabled)):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="rtl",n):this.findKey(e,i=>this.getNextColumn(i,this.direction==="rtl",n),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="rtl",n):null}getKeyLeftOf(e,n){let r=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[r]?(e=this.layoutDelegate[r](e),this.findNextNonDisabled(e,i=>this.layoutDelegate[r](i),n?.includeDisabled)):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="ltr",n):this.findKey(e,i=>this.getNextColumn(i,this.direction==="ltr",n),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="ltr",n):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,n=>this.collection.getKeyAfter(n))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,n=>this.collection.getKeyBefore(n))}getKeyPageAbove(e){let n=this.ref.current,r=this.layoutDelegate.getItemRect(e);if(!r)return null;let i=this.isReversed(e);if(n&&!Nt(n))return this.getFirstKey();let o=e;if(this.orientation==="horizontal"){let l=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>l&&o!=null;)o=this.getKeyAbove(o),r=o==null?null:this.layoutDelegate.getItemRect(o)}else{let l=this.layoutDelegate.getVisibleRect(),a=i?r.y-l.height:Math.max(0,r.y+r.height-l.height);for(;r&&r.y>a&&o!=null;)o=this.getKeyAbove(o),r=o==null?null:this.layoutDelegate.getItemRect(o)}return o??(i?this.getLastKey():this.getFirstKey())}getKeyPageBelow(e){let n=this.ref.current,r=this.layoutDelegate.getItemRect(e);if(!r)return null;let i=this.isReversed(e);if(n&&!Nt(n))return this.getLastKey();let o=e;if(this.orientation==="horizontal"){let l=Math.min(this.layoutDelegate.getContentSize().width,r.x-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<l&&o!=null;)o=this.getKeyBelow(o),r=o==null?null:this.layoutDelegate.getItemRect(o)}else{let l=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<l&&o!=null;)o=this.getKeyBelow(o),r=o==null?null:this.layoutDelegate.getItemRect(o)}return o??(i?this.getFirstKey():this.getLastKey())}getKeyForSearch(e,n){if(!this.collator)return null;let r=this.collection,i=n||this.getFirstKey();for(;i!=null;){let o=r.getItem(i);if(!o)return null;let l=o.textValue.slice(0,e.length);if(o.textValue&&this.collator.compare(l,e)===0)return i;i=this.getNextKey(i)}return null}}let _o=new Map;function fn(t){let{locale:e}=Te(),n=e+(t?Object.entries(t).sort((i,o)=>i[0]<o[0]?-1:1).join():"");if(_o.has(n))return _o.get(n);let r=new Intl.Collator(e,t);return _o.set(n,r),r}function bd(t){let{selectionManager:e,collection:n,disabledKeys:r,ref:i,keyboardDelegate:o,layoutDelegate:l,orientation:a}=t,u=fn({usage:"search",sensitivity:"base"}),d=e.disabledBehavior,c=s.useMemo(()=>o||new Rn({collection:n,disabledKeys:r,disabledBehavior:d,ref:i,collator:u,layoutDelegate:l,orientation:a}),[o,l,n,r,i,u,d,a]),{collectionProps:f}=ni({...t,ref:i,selectionManager:e,keyboardDelegate:c});return{listProps:f}}function f2(t,e,n){let r=re(t,{labelable:!0}),i=t.selectionBehavior||"toggle",o=t.orientation||"vertical",l=t.linkBehavior||(i==="replace"?"action":"override");i==="toggle"&&l==="action"&&(l="override");let{listProps:a}=bd({...t,ref:n,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,linkBehavior:l}),{focusWithinProps:u}=On({onFocusWithin:t.onFocus,onBlurWithin:t.onBlur,onFocusWithinChange:t.onFocusChange}),d=xe(t.id);Qr.set(e,{id:d,shouldUseVirtualFocus:t.shouldUseVirtualFocus,shouldSelectOnPressUp:t.shouldSelectOnPressUp,shouldFocusOnHover:t.shouldFocusOnHover,isVirtualized:t.isVirtualized,onAction:t.onAction,linkBehavior:l,UNSTABLE_itemBehavior:t.UNSTABLE_itemBehavior});let{labelProps:c,fieldProps:f}=ho({...t,id:d,labelElementType:"span"});return{labelProps:c,listBoxProps:G(r,u,e.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox","aria-orientation":o,...G(f,a)})}}const p2=500;function Vo(t){let{isDisabled:e,pointerType:n,onLongPressStart:r,onLongPressEnd:i,onLongPress:o,threshold:l=p2,accessibilityDescription:a}=t;const u=s.useRef(void 0);let{addGlobalListener:d,removeAllGlobalListeners:c}=Ln(),f=b=>n?b.pointerType===n:b.pointerType==="mouse"||b.pointerType==="touch",{pressProps:p}=_t({isDisabled:e,onPressStart(b){if(b.continuePropagation(),f(b)){r&&r({...b,type:"longpressstart"}),u.current=setTimeout(()=>{b.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),d(b.target,"click",y=>y.preventDefault(),{once:!0}),le(b.target).activeElement!==b.target&&Ge(b.target),o&&o({...b,type:"longpress"}),u.current=void 0},l),b.pointerType==="touch"&&d(b.target,"contextmenu",y=>y.preventDefault(),{once:!0});let g=$e(b.target);d(g,"pointerup",()=>{setTimeout(()=>{c()},100)},{once:!0})}},onPressEnd(b){u.current&&clearTimeout(u.current),i&&f(b)&&i({...b,type:"longpressend"})}}),m=_n(o&&!e?a:void 0);return{longPressProps:G(p,m)}}function Wn(t){let{id:e,selectionManager:n,key:r,ref:i,shouldSelectOnPressUp:o,shouldUseVirtualFocus:l,focus:a,isDisabled:u,onAction:d,allowsDifferentPressOrigin:c,linkBehavior:f="action"}=t,p=Kt();e=xe(e);let m=T=>{if(T.pointerType==="keyboard"&&Oo(T))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(f==="selection"&&i.current){let O=n.getItemProps(r);p.open(i.current,T,O.href,O.routerOptions),n.setSelectedKeys(n.selectedKeys);return}else if(f==="override"||f==="none")return}n.selectionMode==="single"?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):T&&T.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||T&&(Nn(T)||T.pointerType==="touch"||T.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};s.useEffect(()=>{r===n.focusedKey&&n.isFocused&&(l?Aa(i.current):a?a():pe()!==i.current&&i.current&&Se(i.current))},[i,r,n.focusedKey,n.childFocusStrategy,n.isFocused,l]),u=u||n.isDisabled(r);let b={};!l&&!u?b={tabIndex:r===n.focusedKey?0:-1,onFocus(T){_(T)===i.current&&n.setFocusedKey(r)}}:u&&(b.onMouseDown=T=>{T.preventDefault()}),s.useEffect(()=>{u&&n.focusedKey===r&&n.setFocusedKey(null)},[n,u,r]);let g=n.isLink(r)&&f==="override",y=d&&t.UNSTABLE_itemBehavior==="action",$=n.isLink(r)&&f!=="selection"&&f!=="none",x=!u&&n.canSelectItem(r)&&!g&&!y,v=(d||$)&&!u,C=v&&(n.selectionBehavior==="replace"?!x:!x||n.isEmpty),k=v&&x&&n.selectionBehavior==="replace",P=C||k,N=s.useRef(null),w=P&&x,D=s.useRef(!1),I=s.useRef(!1),L=n.getItemProps(r),z=T=>{d&&(d(),i.current?.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))),$&&i.current&&p.open(i.current,T,L.href,L.routerOptions)},j={ref:i};o?(j.onPressStart=T=>{N.current=T.pointerType,D.current=w,T.pointerType==="keyboard"&&(!P||yd(T.key))&&m(T)},c?(j.onPressUp=C?void 0:T=>{T.pointerType==="mouse"&&x&&m(T)},j.onPress=C?z:T=>{T.pointerType!=="keyboard"&&T.pointerType!=="mouse"&&x&&m(T)}):j.onPress=T=>{if(C||k&&T.pointerType!=="mouse"){if(T.pointerType==="keyboard"&&!gd(T.key))return;z(T)}else T.pointerType!=="keyboard"&&x&&m(T)}):(j.onPressStart=T=>{N.current=T.pointerType,D.current=w,I.current=C,x&&(T.pointerType==="mouse"&&!C||T.pointerType==="keyboard"&&(!v||yd(T.key)))&&m(T)},j.onPress=T=>{(T.pointerType==="touch"||T.pointerType==="pen"||T.pointerType==="virtual"||T.pointerType==="keyboard"&&P&&gd(T.key)||T.pointerType==="mouse"&&I.current)&&(P?z(T):x&&m(T))});let E=d2(n.collection);if(b["data-collection"]=E,b["data-key"]=r,j.preventFocusOnPress=l,l&&(j=G(j,{onPressStart(T){T.pointerType!=="touch"&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(T){T.pointerType==="touch"&&(n.setFocused(!0),n.setFocusedKey(r))}})),L)for(let T of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])L[T]&&(j[T]=Ue(j[T],L[T]));let{pressProps:A,isPressed:Y}=_t(j),M=k?T=>{N.current==="mouse"&&(T.stopPropagation(),T.preventDefault(),z(T))}:void 0,{longPressProps:X}=Vo({isDisabled:!w,onLongPress(T){T.pointerType==="touch"&&(m(T),n.setSelectionBehavior("toggle"))}}),S=T=>{N.current==="touch"&&D.current&&T.preventDefault()},B=f!=="none"&&n.isLink(r)?T=>{ht.isOpening||T.preventDefault()}:void 0,U=G(b,x||C||l&&!u?A:{},w?X:{},{onDoubleClick:M,onDragStartCapture:S,onClick:B,id:e},l?{onMouseDown:T=>T.preventDefault()}:void 0),oe=T=>{let O=T;for(;O&&O!==i.current;){let J=O.getAttribute("data-collection");if(J!=null)return J!==E;O=O.parentElement}return ji(T)},W=U.onPointerDown;U.onPointerDown=T=>{let O=_(T);if(O&&O!==i.current&&oe(O)){T.stopPropagation();return}W?.(T)};let ne=U.onMouseDown;return U.onMouseDown=T=>{let O=_(T);if(O&&O!==i.current&&oe(O)){T.stopPropagation();return}ne?.(T)},{itemProps:U,isPressed:Y,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:u,allowsSelection:x,hasAction:P}}function gd(t){return t==="Enter"}function yd(t){return t===" "}function Ee(t,e){return typeof e.getChildren=="function"?e.getChildren(t.key):t.childNodes}function yt(t){return Un(t,0)}function Un(t,e){if(e<0)return;let n=0;for(let r of t){if(n===e)return r;n++}}function pn(t){let e;for(let n of t)e=n;return e}function Ho(t,e,n){if(e.parentKey===n.parentKey)return e.index-n.index;let r=[...$d(t,e),e],i=[...$d(t,n),n],o=r.slice(0,i.length).findIndex((l,a)=>l!==i[a]);return o!==-1?(e=r[o],n=i[o],e.index-n.index):r.findIndex(l=>l===n)>=0?1:(i.findIndex(l=>l===e)>=0,-1)}function $d(t,e){let n=[],r=e;for(;r?.parentKey!=null;)r=t.getItem(r.parentKey),r&&n.unshift(r);return n}const vd=new WeakMap;function jo(t){let e=vd.get(t);if(e!=null)return e;let n=0,r=i=>{for(let o of i)o.type==="section"?r(Ee(o,t)):o.type==="item"&&n++};return r(t),vd.set(t,n),n}function h2(t,e,n){let{key:r}=t,i=Qr.get(e),o=t.isDisabled??e.selectionManager.isDisabled(r),l=t.isSelected??e.selectionManager.isSelected(r),a=t.shouldSelectOnPressUp??i?.shouldSelectOnPressUp,u=t.shouldFocusOnHover??i?.shouldFocusOnHover,d=t.shouldUseVirtualFocus??i?.shouldUseVirtualFocus,c=t.isVirtualized??i?.isVirtualized,f=dt(),p=dt(),m={role:"option","aria-disabled":o||void 0,"aria-selected":e.selectionManager.selectionMode!=="none"?l:void 0,"aria-label":t["aria-label"],"aria-labelledby":f,"aria-describedby":p},b=e.collection.getItem(r);if(c){let D=Number(b?.index);m["aria-posinset"]=Number.isNaN(D)?void 0:D+1,m["aria-setsize"]=jo(e.collection)}let g=i?.onAction?()=>i?.onAction?.(r):void 0,y=od(e,r),{itemProps:$,isPressed:x,isFocused:v,hasAction:C,allowsSelection:k}=Wn({selectionManager:e.selectionManager,key:r,ref:n,shouldSelectOnPressUp:a,allowsDifferentPressOrigin:a&&u,isVirtualized:c,shouldUseVirtualFocus:d,isDisabled:o,onAction:g||b?.props?.onAction?Ue(b?.props?.onAction,g):void 0,linkBehavior:i?.linkBehavior,UNSTABLE_itemBehavior:i?.UNSTABLE_itemBehavior,id:y}),{hoverProps:P}=Fe({isDisabled:o||!u,onHoverStart(){St()||(e.selectionManager.setFocused(!0),e.selectionManager.setFocusedKey(r))}}),N=re(b?.props);delete N.id;let w=Dr(b?.props);return{optionProps:{...m,...G(N,$,P,w),id:y},labelProps:{id:f},descriptionProps:{id:p},isFocused:v,isFocusVisible:v&&e.selectionManager.isFocused&&St(),isSelected:l,isDisabled:o,isPressed:x,allowsSelection:k,hasAction:C}}function m2(t){let{heading:e,"aria-label":n}=t,r=xe();return{itemProps:{role:"presentation"},headingProps:e?{id:r,role:"presentation",onMouseDown:i=>{i.preventDefault()}}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":e?r:void 0}}}function xd(t){const e=s.version.split(".");return parseInt(e[0],10)>=19?t:t?"true":void 0}class Ro{constructor(e){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let n=l=>{if(this.keyMap.set(l.key,l),l.childNodes&&l.type==="section")for(let a of l.childNodes)n(a)};for(let l of e)n(l);let r=null,i=0,o=0;for(let[l,a]of this.keyMap)r?(r.nextKey=l,a.prevKey=r.key):(this.firstKey=l,a.prevKey=void 0),a.type==="item"&&(a.index=i++),(a.type==="section"||a.type==="item")&&o++,r=a,r.nextKey=void 0;this._size=o,this.lastKey=r?.key??null}*[Symbol.iterator](){yield*this.iterable}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let n=this.keyMap.get(e);return n?n.prevKey??null:null}getKeyAfter(e){let n=this.keyMap.get(e);return n?n.nextKey??null:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)??null}at(e){const n=[...this.getKeys()];return this.getItem(n[e])}getChildren(e){return this.keyMap.get(e)?.childNodes||[]}}class Ze extends Set{constructor(e,n,r){super(e),e instanceof Ze?(this.anchorKey=n??e.anchorKey,this.currentKey=r??e.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function b2(t,e){if(t.size!==e.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function Gn(t){let{selectionMode:e="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:o="all"}=t,l=s.useRef(!1),[,a]=s.useState(!1),u=s.useRef(null),d=s.useRef(null),[,c]=s.useState(null),f=s.useMemo(()=>Cd(t.selectedKeys),[t.selectedKeys]),p=s.useMemo(()=>Cd(t.defaultSelectedKeys,new Ze),[t.defaultSelectedKeys]),[m,b]=Ye(f,p,t.onSelectionChange),g=s.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),[y,$]=s.useState(i);i==="replace"&&y==="toggle"&&typeof m=="object"&&m.size===0&&$("replace");let x=s.useRef(i);return s.useEffect(()=>{i!==x.current&&($(i),x.current=i)},[i]),{selectionMode:e,disallowEmptySelection:n,selectionBehavior:y,setSelectionBehavior:$,get isFocused(){return l.current},setFocused(v){l.current=v,a(v)},get focusedKey(){return u.current},get childFocusStrategy(){return d.current},setFocusedKey(v,C="first"){u.current=v,d.current=C,c(v)},selectedKeys:m,setSelectedKeys(v){(r||!b2(v,m))&&b(v)},disabledKeys:g,disabledBehavior:o}}function Cd(t,e){return t?t==="all"?"all":new Ze(t):e}class hn{constructor(e,n,r){this.collection=e,this.state=n,this.allowsCellSelection=r?.allowsCellSelection??!1,this._isSelectAll=null,this.layoutDelegate=r?.layoutDelegate||null,this.fullCollection=r?.fullCollection||null}get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,n){(e==null||this.collection.getItem(e))&&this.state.setFocusedKey(e,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if(this.state.selectionMode==="none")return!1;let n=this.getKey(e);return n==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(n):this.state.selectedKeys.has(n)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let e=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=e.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let n of this.state.selectedKeys){let r=this.collection.getItem(n);(!e||r&&Ho(this.collection,r,e)<0)&&(e=r)}return e?.key??null}get lastSelectedKey(){let e=null;for(let n of this.state.selectedKeys){let r=this.collection.getItem(n);(!e||r&&Ho(this.collection,r,e)>0)&&(e=r)}return e?.key??null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(e);return}let n=this.getKey(e);if(n==null)return;let r;if(this.state.selectedKeys==="all")r=new Ze([n],n,n);else{let i=this.state.selectedKeys,o=i.anchorKey??n;r=new Ze(i,o,n);for(let l of this.getKeyRange(o,i.currentKey??n))r.delete(l);for(let l of this.getKeyRange(n,o))this.canSelectItem(l)&&r.add(l)}this.state.setSelectedKeys(r)}getKeyRange(e,n){let r=this.collection.getItem(e),i=this.collection.getItem(n);return r&&i?Ho(this.collection,r,i)<=0?this.getKeyRangeInternal(e,n):this.getKeyRangeInternal(n,e):[]}getKeyRangeInternal(e,n){if(this.layoutDelegate?.getKeyRange)return this.layoutDelegate.getKeyRange(e,n);let r=[],i=e;for(;i!=null;){let o=this.collection.getItem(i);if(o&&(o.type==="item"||o.type==="cell"&&this.allowsCellSelection)&&r.push(i),i===n)return r;i=this.collection.getKeyAfter(i)}return[]}getKey(e){let n=this.collection.getItem(e);if(!n||n.type==="cell"&&this.allowsCellSelection)return e;for(;n&&n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(e)){this.replaceSelection(e);return}let n=this.getKey(e);if(n==null)return;let r=new Ze(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(n)?r.delete(n):this.canSelectItem(n)&&(r.add(n),r.anchorKey=n,r.currentKey=n),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(e){if(this.selectionMode==="none")return;let n=this.getKey(e);if(n==null)return;let r=this.canSelectItem(n)?new Ze([n],n,n):new Ze;this.state.setSelectedKeys(r)}setSelectedKeys(e){if(this.selectionMode==="none")return;let n=new Ze;for(let r of e){let i=this.getKey(r);if(i!=null&&(n.add(i),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let e=this.fullCollection??this.collection,n=[],r=i=>{for(;i!=null;){if(this.canSelectItemIn(i,e)){let o=e.getItem(i);o?.type==="item"&&n.push(i),o?.hasChildNodes&&(this.allowsCellSelection||o.type!=="item")&&r(yt(Ee(o,e))?.key??null)}i=e.getKeyAfter(i)}};return r(e.getFirstKey()),n}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 Ze)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(e.size!==n.size)return!1;for(let r of e)if(!n.has(r))return!1;for(let r of n)if(!e.has(r))return!1;return!0}canSelectItem(e){return this.canSelectItemIn(e,this.collection)}canSelectItemIn(e,n){if(this.state.selectionMode==="none"||this.state.disabledKeys.has(e))return!1;let r=n.getItem(e);return!(!r||r?.props?.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(e){let n=this.collection.getItem(e);return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(e)||!!n?.props?.isDisabled)&&n?.props?.disabledBehavior!=="selection"}isLink(e){return!!this.collection.getItem(e)?.props?.href}getItemProps(e){return this.collection.getItem(e)?.props}withCollection(e){return new hn(e,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0,fullCollection:this.fullCollection??this.collection})}}class g2{build(e,n){return this.context=n,Ed(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:n,items:r}=e;if(s.isValidElement(n)&&n.type===s.Fragment)yield*this.iterateCollection({children:n.props.children,items:r});else if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let i=0;for(let o of r)yield*this.getFullNode({value:o,index:i},{renderer:n}),i++}else{let i=[];s.Children.forEach(n,l=>{l&&i.push(l)});let o=0;for(let l of i){let a=this.getFullNode({element:l,index:o},{});for(let u of a)o++,yield u}}}getKey(e,n,r,i){if(e.key!=null)return e.key;if(n.type==="cell"&&n.key!=null)return`${i}${n.key}`;let o=n.value;if(o!=null){let l=o.key??o.id;if(l==null)throw new Error("No key found for item");return l}return i?`${i}.${n.index}`:`$.${n.index}`}getChildState(e,n){return{renderer:n.renderer||e.renderer}}*getFullNode(e,n,r,i){if(s.isValidElement(e.element)&&e.element.type===s.Fragment){let u=[];s.Children.forEach(e.element.props.children,c=>{u.push(c)});let d=e.index??0;for(const c of u)yield*this.getFullNode({element:c,index:d++},n,r,i);return}let o=e.element;if(!o&&e.value&&n&&n.renderer){let u=this.cache.get(e.value);if(u&&(!u.shouldInvalidate||!u.shouldInvalidate(this.context))){u.index=e.index,u.parentKey=i?i.key:null,yield u;return}o=n.renderer(e.value)}if(s.isValidElement(o)){let u=o.type;if(typeof u!="function"&&typeof u.getCollectionNode!="function"){let p=o.type;throw new Error(`Unknown element <${p}> in collection.`)}let d=u.getCollectionNode(o.props,this.context),c=e.index??0,f=d.next();for(;!f.done&&f.value;){let p=f.value;e.index=c;let m=p.key??null;m==null&&(m=p.element?null:this.getKey(o,e,n,r));let g=[...this.getFullNode({...p,key:m,index:c,wrapper:y2(e.wrapper,p.wrapper)},this.getChildState(n,p),r?`${r}${o.key}`:o.key,i)];for(let y of g){if(y.value=p.value??e.value??null,y.value&&this.cache.set(y.value,y),e.type&&y.type!==e.type)throw new Error(`Unsupported type <${Wo(y.type)}> in <${Wo(i?.type??"unknown parent type")}>. Only <${Wo(e.type)}> is supported.`);c++,yield y}f=d.next(g)}return}if(e.key==null||e.type==null)return;let l=this,a={type:e.type,props:e.props,key:e.key,parentKey:i?i.key:null,value:e.value??null,level:(i?.level??0)+(i?.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:Ed(function*(){if(!e.hasChildNodes||!e.childNodes)return;let u=0;for(let d of e.childNodes()){d.key!=null&&(d.key=`${a.key}${d.key}`);let c=l.getFullNode({...d,index:u},l.getChildState(n,d),a.key,a);for(let f of c)u++,yield f}})};yield a}constructor(){this.cache=new WeakMap}}function Ed(t){let e=[],n=null;return{*[Symbol.iterator](){for(let r of e)yield r;n||(n=t());for(let r of n)e.push(r),yield r}}}function y2(t,e){if(t&&e)return n=>t(e(n));if(t)return t;if(e)return e}function Wo(t){return t[0].toUpperCase()+t.slice(1)}function Uo(t,e,n){let r=s.useMemo(()=>new g2,[]),{children:i,items:o,collection:l}=t;return s.useMemo(()=>{if(l)return l;let u=r.build({children:i,items:o},n);return e(u)},[r,i,o,l,n,e])}function ri(t){let{filter:e,layoutDelegate:n}=t,r=Gn(t),i=s.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),o=s.useCallback(d=>e?new Ro(e(d)):new Ro(d),[e]),l=s.useMemo(()=>({suppressTextValueWarning:t.suppressTextValueWarning}),[t.suppressTextValueWarning]),a=Uo(t,o,l),u=s.useMemo(()=>new hn(a,r,{layoutDelegate:n}),[a,r,n]);return wd(a,u),{collection:a,disabledKeys:i,selectionManager:u}}function $2(t,e){let n=s.useMemo(()=>e?t.collection.filter(e):t.collection,[t.collection,e]),r=t.selectionManager.withCollection(n);return wd(n,r),{collection:n,selectionManager:r,disabledKeys:t.disabledKeys}}function wd(t,e){const n=s.useRef(null);s.useEffect(()=>{if(e.focusedKey!=null&&!t.getItem(e.focusedKey)&&n.current){let r=n.current.getKeyAfter(e.focusedKey),i=null;for(;r!=null;){let o=t.getItem(r);if(o&&o.type==="item"&&!e.isDisabled(r)){i=r;break}r=n.current.getKeyAfter(r)}if(i==null)for(r=n.current.getKeyBefore(e.focusedKey);r!=null;){let o=t.getItem(r);if(o&&o.type==="item"&&!e.isDisabled(r)){i=r;break}r=n.current.getKeyBefore(r)}e.setFocusedKey(i)}n.current=t},[t,e])}function Sd(t,e){let{collection:n,onLoadMore:r,scrollOffset:i=1,direction:o="end"}=t,l=s.useRef(null),a=Ne(u=>{for(let d of u)d.isIntersecting&&r&&r()});de(()=>{if(e.current){const u=100*i,d=o==="start"?`${u}% 0px 0px 0px`:`0px ${u}% ${u}% ${u}%`;l.current=new IntersectionObserver(a,{root:gt(e?.current),rootMargin:d}),l.current.observe(e.current)}return()=>{l.current&&l.current.disconnect()}},[n,e,i,o])}const Yn=s.createContext(null),Wt=s.createContext(null),v2=s.forwardRef(function(e,n){[e,n]=be(e,n,Yn);let r=s.useContext(Wt);return r?s.createElement(Pd,{state:r,props:e,listBoxRef:n}):s.createElement(Ot,{content:s.createElement(zt,e)},i=>s.createElement(x2,{props:e,listBoxRef:n,collection:i}))});function x2({props:t,listBoxRef:e,collection:n}){t={...t,collection:n,children:null,items:null};let{layoutDelegate:r}=s.useContext(me),i=ri({...t,layoutDelegate:r});return s.createElement(Pd,{state:i,props:t,listBoxRef:e})}function Pd({state:t,props:e,listBoxRef:n}){[e,n]=be(e,n,Bn);let{dragAndDropHooks:r,layout:i="stack",orientation:o="vertical",filter:l}=e,a=$2(t,l),{collection:u,selectionManager:d}=a,c=!!r?.useDraggableCollectionState,f=!!r?.useDroppableCollectionState,{direction:p}=Te(),{disabledBehavior:m,disabledKeys:b}=d,g=fn({usage:"search",sensitivity:"base"}),{isVirtualized:y,layoutDelegate:$,dropTargetDelegate:x,CollectionRoot:v}=s.useContext(me),C=s.useMemo(()=>e.keyboardDelegate||new Rn({collection:u,collator:g,ref:n,disabledKeys:b,disabledBehavior:m,layout:i,orientation:o,direction:p,layoutDelegate:$}),[u,g,n,m,b,o,p,e.keyboardDelegate,i,$]),{listBoxProps:k}=f2({...e,shouldSelectOnPressUp:c||e.shouldSelectOnPressUp,keyboardDelegate:C,isVirtualized:y},a,n),P=s.useRef(c),N=s.useRef(f);s.useEffect(()=>{process.env.NODE_ENV!=="production"&&(P.current!==c&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),N.current!==f&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."))},[c,f]);let w,D,I,L=!1,z=null,j=s.useRef(null);if(c&&r){w=r.useDraggableCollectionState({collection:u,selectionManager:d,preview:r.renderDragPreview?j:void 0}),r.useDraggableCollection({},w,n);let oe=r.DragPreview;z=r.renderDragPreview?s.createElement(oe,{ref:j},r.renderDragPreview):null}if(f&&r){D=r.useDroppableCollectionState({collection:u,selectionManager:d});let oe=r.dropTargetDelegate||x||new r.ListDropTargetDelegate(u,n,{orientation:o,layout:i,direction:p});I=r.useDroppableCollection({keyboardDelegate:C,dropTargetDelegate:oe},D,n),L=D.isDropTarget({type:"root"})}let{focusProps:E,isFocused:A,isFocusVisible:Y}=Be(),M=a.collection.size===0,X={isDropTarget:L,isEmpty:M,isFocused:A,isFocusVisible:Y,layout:e.layout||"stack",orientation:o,state:a},S=se({...e,children:void 0,defaultClassName:"react-aria-ListBox",values:X}),B=null;M&&e.renderEmptyState&&(B=s.createElement("div",{role:"option",style:{display:"contents"}},e.renderEmptyState(X)));let U=re(e,{global:!0});return s.createElement(ei,null,s.createElement(ee.div,{...G(U,S,k,E,I?.collectionProps),ref:n,slot:e.slot||void 0,onScroll:e.onScroll,"data-drop-target":L||void 0,"data-empty":M||void 0,"data-focused":A||void 0,"data-focus-visible":Y||void 0,"data-layout":e.layout||"stack","data-orientation":o},s.createElement(De,{values:[[Yn,e],[Wt,a],[Xe,{dragAndDropHooks:r,dragState:w,dropState:D}],[Io,{elementType:"div"}],[To,{render:w2}],[ps,{name:"ListBoxSection",render:C2}]]},s.createElement(Jr,null,s.createElement(v,{collection:u,scrollRef:n,persistedKeys:nd(d,r,D),renderDropIndicator:Zr(r,D)}))),B,z))}function C2(t,e,n,r="react-aria-ListBoxSection"){let i=s.useContext(Wt),{dragAndDropHooks:o,dropState:l}=s.useContext(Xe),{CollectionBranch:a}=s.useContext(me),[u,d]=Qt(),{headingProps:c,groupProps:f}=m2({heading:d,"aria-label":t["aria-label"]??void 0}),p=se({...t,id:void 0,children:void 0,defaultClassName:r,values:void 0}),m=re(t,{global:!0});return delete m.id,s.createElement(ee.section,{...G(m,p,f),ref:e},s.createElement(Ao.Provider,{value:{...c,ref:u}},s.createElement(a,{collection:i.collection,parent:n,renderDropIndicator:Zr(o,l)})))}const E2=ot(Kr,function(e,n,r){let i=ke(n),o=s.useContext(Wt),{dragAndDropHooks:l,dragState:a,dropState:u}=s.useContext(Xe),d=a&&!(a.isDisabled||a.selectionManager.isDisabled(r.key)),{optionProps:c,labelProps:f,descriptionProps:p,...m}=h2({key:r.key,"aria-label":e?.["aria-label"]},o,i),{hoverProps:b,isHovered:g}=Fe({isDisabled:!m.allowsSelection&&!m.hasAction&&!d,onHoverStart:r.props.onHoverStart,onHoverChange:r.props.onHoverChange,onHoverEnd:r.props.onHoverEnd}),{keyboardProps:y}=je(e),{focusProps:$}=Qi(e),x=null;a&&l&&(x=l.useDraggableItem({key:r.key,hasAction:m.hasAction},a));let v=null;u&&l&&(v=l.useDroppableItem({target:{type:"item",key:r.key,dropPosition:"on"}},u,i));let C=a&&a.isDragging(r.key),k=se({...e,id:void 0,children:e.children,defaultClassName:"react-aria-ListBoxItem",values:{...m,isHovered:g,selectionMode:o.selectionManager.selectionMode,selectionBehavior:o.selectionManager.selectionBehavior,allowsDragging:!!a,isDragging:C,isDropTarget:v?.isDropTarget}});s.useEffect(()=>{!r.textValue&&process.env.NODE_ENV!=="production"&&console.warn("A `textValue` prop is required for <ListBoxItem> elements with non-plain text children in order to support accessibility features such as type to select.")},[r.textValue]);let P=e.href?ee.a:ee.div,N=re(e,{global:!0});return delete N.id,delete N.onClick,e.href&&c.tabIndex==null&&(c.tabIndex=-1),s.createElement(P,{...G(N,k,c,b,y,$,x?.dragProps,v?.dropProps),ref:i,"data-allows-dragging":!!a||void 0,"data-selected":m.isSelected||void 0,"data-disabled":m.isDisabled||void 0,"data-hovered":g||void 0,"data-focused":m.isFocused||void 0,"data-focus-visible":m.isFocusVisible||void 0,"data-pressed":m.isPressed||void 0,"data-dragging":C||void 0,"data-drop-target":v?.isDropTarget||void 0,"data-selection-mode":o.selectionManager.selectionMode==="none"?void 0:o.selectionManager.selectionMode},s.createElement(De,{values:[[bt,{slots:{[ct]:f,label:f,description:p}}],[Hn,{isSelected:m.isSelected}]]},k.children))});function w2(t,e){e=ke(e);let{dragAndDropHooks:n,dropState:r}=s.useContext(Xe),{dropIndicatorProps:i,isHidden:o,isDropTarget:l}=n.useDropIndicator(t,r,e);return o?null:s.createElement(P2,{...t,dropIndicatorProps:i,isDropTarget:l,ref:e})}function S2(t,e){let{dropIndicatorProps:n,isDropTarget:r,...i}=t,o=se({...i,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:r}});return s.createElement(s.Fragment,null,s.createElement(ee.div,{...n,...o,role:"option",ref:e,"data-drop-target":r||void 0}))}const P2=s.forwardRef(S2);ot(Mr,function(e,n,r){let i=s.useContext(Wt),{isLoading:o,onLoadMore:l,scrollOffset:a,...u}=e,d=s.useRef(null),c=s.useMemo(()=>({onLoadMore:l,collection:i?.collection,sentinelRef:d,scrollOffset:a}),[l,a,i?.collection]);Sd(c,d);let f=se({...u,id:void 0,children:r.rendered,defaultClassName:"react-aria-ListBoxLoadingIndicator",values:void 0}),p={tabIndex:-1};return s.createElement(s.Fragment,null,s.createElement("div",{style:{position:"relative",width:0,height:0},inert:xd(!0)},s.createElement("div",{"data-testid":"loadMoreSentinel",ref:d,style:{position:"absolute",height:1,width:1}})),o&&f.children&&s.createElement(s.Fragment,null,s.createElement(ee.div,{...G(re(e,{global:!0}),p),...f,role:"option",ref:n},f.children)))});const kd=s.createContext({placement:"bottom"}),k2=s.forwardRef(function(e,n){[e,n]=be(e,n,kd);let r=e.placement,i={position:"absolute",transform:r==="top"||r==="bottom"?"translateX(-50%)":"translateY(-50%)"};r!=null&&(i[r]="100%");let o=se({...e,defaultClassName:"react-aria-OverlayArrow",values:{placement:r}});o.style&&Object.keys(o.style).forEach(a=>o.style[a]===void 0&&delete o.style[a]);let l=re(e);return s.createElement(ee.div,{...l,...o,style:{...i,...o.style},ref:n,"data-placement":r})}),D2=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype;function Dd(t){return t.dataset.liveAnnouncer==="true"||t.dataset.reactAriaTopLayer!==void 0}let Xn=new WeakMap,Ke=[];function Go(t,e){let n=$e(t?.[0]),r=e instanceof n.Element?{root:e}:e,i=r?.root??document.body,o=r?.shouldUseInert&&D2,l=new Set(t),a=new Set,u=y=>o&&y instanceof n.HTMLElement?y.inert:y.getAttribute("aria-hidden")==="true",d=(y,$)=>{o&&y instanceof n.HTMLElement?y.inert=$:$?y.setAttribute("aria-hidden","true"):(y.removeAttribute("aria-hidden"),y instanceof n.HTMLElement&&(y.inert=!1))},c=new Set;if(nt()){let y=i.getRootNode();for(let $ of t){let x=$.getRootNode();for(;zi(x)&&x!==y;)c.add(x),x=x.host.getRootNode()}}let f=y=>{for(let C of y.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))l.add(C);let $=C=>{if(a.has(C)||l.has(C)||C.parentElement&&a.has(C.parentElement)&&C.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let k of l)if(te(C,k))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},x=ld(le(y),y,NodeFilter.SHOW_ELEMENT,{acceptNode:$}),v=$(y);if(v===NodeFilter.FILTER_ACCEPT&&p(y),v!==NodeFilter.FILTER_REJECT){let C=x.nextNode();for(;C!=null;)p(C),C=x.nextNode()}},p=y=>{let $=Xn.get(y)??0;u(y)&&$===0||($===0&&d(y,!0),a.add(y),Xn.set(y,$+1))};Ke.length&&Ke[Ke.length-1].disconnect(),f(i);let m=new MutationObserver(y=>{for(let $ of y)if($.type==="childList"){if($.target.isConnected&&![...l,...a].some(x=>te(x,$.target)))for(let x of $.addedNodes)(x instanceof HTMLElement||x instanceof SVGElement)&&Dd(x)?l.add(x):x instanceof Element&&f(x);if(nt()){for(let x of c)if(!x.isConnected){m.disconnect();break}}}});m.observe(i,{childList:!0,subtree:!0});let b=new Set;if(nt())for(let y of c){let $=new MutationObserver(x=>{for(let v of x)if(v.type==="childList"){if(v.target.isConnected&&![...l,...a].some(C=>te(C,v.target)))for(let C of v.addedNodes)(C instanceof HTMLElement||C instanceof SVGElement)&&Dd(C)?l.add(C):C instanceof Element&&f(C);if(nt()){for(let C of c)if(!C.isConnected){m.disconnect();break}}}});$.observe(y,{childList:!0,subtree:!0}),b.add($)}let g={visibleNodes:l,hiddenNodes:a,observe(){m.observe(i,{childList:!0,subtree:!0})},disconnect(){m.disconnect()}};return Ke.push(g),()=>{if(m.disconnect(),nt())for(let y of b)y.disconnect();for(let y of a){let $=Xn.get(y);$!=null&&($===1?(d(y,!1),Xn.delete(y)):Xn.set(y,$-1))}g===Ke[Ke.length-1]?(Ke.pop(),Ke.length&&Ke[Ke.length-1].observe()):Ke.splice(Ke.indexOf(g),1)}}function N2(t){let e=Ke[Ke.length-1];if(e&&!e.visibleNodes.has(t))return e.visibleNodes.add(t),()=>{e.visibleNodes.delete(t)}}const We={top:"top",bottom:"top",left:"left",right:"left"},ii={top:"bottom",bottom:"top",left:"right",right:"left"},T2={top:"left",left:"top"},Yo={top:"height",left:"width"},Nd={width:"totalWidth",height:"totalHeight"},oi={};let A2=()=>typeof document<"u"?window.visualViewport:null;function Td(t,e){let n=0,r=0,i=0,o=0,l=0,a=0,u={},d=(e?.scale??1)>1;if(t.tagName==="BODY"||t.tagName==="HTML"){let c=document.documentElement;i=c.clientWidth,o=c.clientHeight,n=e?.width??i,r=e?.height??o,u.top=c.scrollTop||t.scrollTop,u.left=c.scrollLeft||t.scrollLeft,e&&(l=e.offsetTop,a=e.offsetLeft)}else({width:n,height:r,top:l,left:a}=qn(t,!1)),u.top=t.scrollTop,u.left=t.scrollLeft,i=n,o=r;return it()&&(t.tagName==="BODY"||t.tagName==="HTML")&&d&&(u.top=0,u.left=0,l=e?.pageTop??0,a=e?.pageLeft??0),{width:n,height:r,totalWidth:i,totalHeight:o,scroll:u,top:l,left:a}}function I2(t){return{top:t.scrollTop,left:t.scrollLeft,width:t.scrollWidth,height:t.scrollHeight}}function Ad(t,e,n,r,i,o,l){let a=i.scroll[t]??0,u=r[Yo[t]],d=l[t]+r.scroll[We[t]]+o,c=l[t]+r.scroll[We[t]]+u-o,f=e-a+r.scroll[We[t]]+l[t]-r[We[t]],p=e-a+n+r.scroll[We[t]]+l[t]-r[We[t]];return f<d?d-f:p>c?Math.max(c-p,d-f):0}function B2(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 Id(t){if(oi[t])return oi[t];let[e,n]=t.split(" "),r=We[e]||"right",i=T2[r];We[n]||(n="center");let o=Yo[r],l=Yo[i];return oi[t]={placement:e,crossPlacement:n,axis:r,crossAxis:i,size:o,crossSize:l},oi[t]}function Xo(t,e,n,r,i,o,l,a,u,d,c){let{placement:f,crossPlacement:p,axis:m,crossAxis:b,size:g,crossSize:y}=r,$={};$[b]=t[b]??0,p==="center"?$[b]+=((t[y]??0)-(n[y]??0))/2:p!==b&&($[b]+=(t[y]??0)-(n[y]??0)),$[b]+=o;const x=t[b]-n[y]+u+d,v=t[b]+t[y]-u-d;if($[b]=zn($[b],x,v),f===m){let C=a?c[g]:c[Nd[g]];$[ii[m]]=Math.floor(C-t[m]+i)}else $[m]=Math.floor(t[m]+t[g]+i);return $}function F2(t,e,n,r,i,o,l,a,u,d,c){let f=(t.top!=null?t.top:u[Nd.height]-(t.bottom??0)-l)-(u.scroll.top??0),p=d?n.top:0,m={top:Math.max(e.top+p,(c?.offsetTop??e.top)+p),bottom:Math.min(e.top+e.height+p,(c?.offsetTop??0)+(c?.height??0))};return a!=="top"?Math.max(0,m.bottom-f-((i.top??0)+(i.bottom??0)+o)):Math.max(0,f+l-m.top-((i.top??0)+(i.bottom??0)+o))}function Bd(t,e,n,r,i,o,l,a){let{placement:u,axis:d,size:c}=o;return u===d?Math.max(0,n[d]-(l.scroll[d]??0)-(t[d]+(a?e[d]:0))-(r[d]??0)-r[ii[d]]-i):Math.max(0,t[c]+t[d]+(a?e[d]:0)-n[d]-n[c]+(l.scroll[d]??0)-(r[d]??0)-r[ii[d]]-i)}function M2(t,e,n,r,i,o,l,a,u,d,c,f,p,m,b,g,y,$){let x=Id(t),{size:v,crossAxis:C,crossSize:k,placement:P,crossPlacement:N}=x,w=Xo(e,a,n,x,c,f,d,p,b,g,u),D=c,I=Bd(a,d,e,i,o+c,x,u,y);if(l&&n[v]>I){let T=Id(`${ii[P]} ${N}`),O=Xo(e,a,n,T,c,f,d,p,b,g,u);Bd(a,d,e,i,o+c,T,u,y)>I&&(x=T,w=O,D=c)}let L="bottom";x.axis==="top"?x.placement==="top"?L="top":x.placement==="bottom"&&(L="bottom"):x.crossAxis==="top"&&(x.crossPlacement==="top"?L="bottom":x.crossPlacement==="bottom"&&(L="top"));let z=Ad(C,w[C],n[k],a,u,o,d);w[C]+=z;let j=F2(w,a,d,p,i,o,n.height,L,u,y,$);m&&m<j&&(j=m),n.height=Math.min(n.height,j),w=Xo(e,a,n,x,D,f,d,p,b,g,u),z=Ad(C,w[C],n[k],a,u,o,d),w[C]+=z;let E={},A=e[C]-w[C]-i[We[C]],Y=A+.5*e[k];const M=b/2+g,X=We[C]==="left"?(i.left??0)+(i.right??0):(i.top??0)+(i.bottom??0),S=n[k]-X-b/2-g,B=e[C]+b/2-(w[C]+i[We[C]]),U=e[C]+e[k]-b/2-(w[C]+i[We[C]]),oe=zn(Y,B,U);E[C]=zn(oe,M,S),{placement:P,crossPlacement:N}=x,b?A=E[C]:N==="right"?A+=e[k]:N==="center"&&(A+=e[k]/2);let W=P==="left"||P==="top"?n[v]:0,ne={x:P==="top"||P==="bottom"?A:W,y:P==="left"||P==="right"?A:W};return{position:w,maxHeight:j,arrowOffsetLeft:E.left,arrowOffsetTop:E.top,placement:P,triggerAnchorPoint:ne}}function K2(t){let{placement:e,targetNode:n,overlayNode:r,scrollNode:i,padding:o,shouldFlip:l,boundaryElement:a,offset:u,crossOffset:d,maxHeight:c,arrowSize:f=0,arrowBoundaryOffset:p=0,targetRect:m}=t,b=A2(),g=r instanceof HTMLElement?L2(r):document.documentElement,y=g===document.documentElement;const $=window.getComputedStyle(g).position;let x=!!$&&$!=="static",v=y?qn(n,!1,m):Fd(n,g,!1,m);if(!y){let{marginTop:L,marginLeft:z}=window.getComputedStyle(n);v.top+=parseInt(L,10)||0,v.left+=parseInt(z,10)||0}let C=qn(r,!0),k=B2(r);C.width+=(k.left??0)+(k.right??0),C.height+=(k.top??0)+(k.bottom??0);let P=I2(i),N=Td(a,b),w=Td(g,b),D;if((a.tagName==="BODY"||a.tagName==="HTML")&&!y){let L=li(g,!1);D={top:-(L.top-N.top),left:-(L.left-N.left),width:0,height:0}}else(a.tagName==="BODY"||a.tagName==="HTML")&&y?D={top:0,left:0,width:0,height:0}:D=Fd(a,g,!1);let I=te(a,g);return M2(e,v,C,P,k,o,l,N,w,D,u,d,x,c,f,p,I,b)}function li(t,e){let{top:n,left:r,width:i,height:o}=t.getBoundingClientRect();return e&&t instanceof t.ownerDocument.defaultView.HTMLElement&&(i=t.offsetWidth,o=t.offsetHeight),{top:n,left:r,width:i,height:o}}function qn(t,e,n){let{top:r,left:i,width:o,height:l}=n||li(t,e),{scrollTop:a,scrollLeft:u,clientTop:d,clientLeft:c}=document.documentElement;return{top:r+a-d,left:i+u-c,width:o,height:l}}function Fd(t,e,n,r){let i=window.getComputedStyle(t),o;if(i.position==="fixed")o=r||li(t,n);else{o=qn(t,n,r);let l=qn(e,n),a=window.getComputedStyle(e);l.top+=(parseInt(a.borderTopWidth,10)||0)-e.scrollTop,l.left+=(parseInt(a.borderLeftWidth,10)||0)-e.scrollLeft,o.top-=l.top,o.left-=l.left}return o.top-=parseInt(i.marginTop,10)||0,o.left-=parseInt(i.marginLeft,10)||0,o}function L2(t){let e=t.offsetParent;if(e&&e===document.body&&window.getComputedStyle(e).position==="static"&&!Md(e)&&(e=document.documentElement),e==null)for(e=t.parentElement;e&&!Md(e);)e=e.parentElement;return e||document.documentElement}function Md(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 Kd=new WeakMap;function O2(t){let{triggerRef:e,isOpen:n,onClose:r}=t;s.useEffect(()=>{if(!n||r===null)return;let i=o=>{let l=_(o);if(!e.current||l instanceof Node&&!te(l,e.current)||l instanceof HTMLInputElement||l instanceof HTMLTextAreaElement)return;let a=r||Kd.get(e.current);a&&a()};return Xg(Zg(e.current),"scroll",i,!0)},[n,r,e])}function z2(){return typeof window.ResizeObserver<"u"}function Zn(t){const{ref:e,box:n,onResize:r}=t;let i=Ne(r);s.useEffect(()=>{let o=e?.current;if(o)if(z2()){const l=new window.ResizeObserver(a=>{a.length&&i()});return l.observe(o,{box:n}),()=>{o&&l.unobserve(o)}}else return window.addEventListener("resize",i,!1),()=>{window.removeEventListener("resize",i,!1)}},[e,n])}let Ut=typeof document<"u"?window.visualViewport:null;function _2(t){let{direction:e}=Te(),{arrowSize:n,targetRef:r,overlayRef:i,arrowRef:o,scrollRef:l=i,placement:a="bottom",containerPadding:u=12,shouldFlip:d=!0,boundaryElement:c=typeof document<"u"?document.body:null,offset:f=0,crossOffset:p=0,shouldUpdatePosition:m=!0,isOpen:b=!0,onClose:g,maxHeight:y,arrowBoundaryOffset:$=0,getTargetRect:x}=t,[v,C]=s.useState(null),k=[m,a,i.current,r.current,o?.current,l.current,u,d,c,f,p,b,e,y,$,n],P=s.useRef(Ut?.scale);s.useEffect(()=>{b&&(P.current=Ut?.scale)},[b]);let N=s.useCallback(()=>{if(m===!1||!b||!i.current||!r.current||!c||Ut?.scale!==P.current)return;let I=null;if(l.current&&Mt(l.current)){let E=pe()?.getBoundingClientRect(),A=l.current.getBoundingClientRect();I={type:"top",offset:(E?.top??0)-A.top},I.offset>A.height/2&&(I.type="bottom",I.offset=(E?.bottom??0)-A.bottom)}let L=i.current;!y&&i.current&&(L.style.top="0px",L.style.bottom="",L.style.maxHeight=(window.visualViewport?.height??window.innerHeight)+"px");let z=K2({placement:H2(a,e),overlayNode:i.current,targetNode:r.current,scrollNode:l.current||i.current,padding:u,shouldFlip:d,boundaryElement:c,offset:f,crossOffset:p,maxHeight:y,arrowSize:n??(o?.current?li(o.current,!0).width:0),arrowBoundaryOffset:$,targetRect:x?.(r.current)});if(!z.position)return;L.style.top="",L.style.bottom="",L.style.left="",L.style.right="",Object.keys(z.position).forEach(E=>L.style[E]=z.position[E]+"px"),L.style.maxHeight=z.maxHeight!=null?z.maxHeight+"px":"";let j=pe();if(I&&j&&l.current){let E=j.getBoundingClientRect(),A=l.current.getBoundingClientRect(),Y=E[I.type]-A[I.type];l.current.scrollTop+=Y-I.offset}C(z)},k);de(N,k),V2(N),Zn({ref:i,onResize:N}),Zn({ref:r,onResize:N});let w=s.useRef(!1);de(()=>{let I,L=()=>{w.current=!0,clearTimeout(I),I=setTimeout(()=>{w.current=!1},500),N()},z=()=>{w.current&&L()};return Ut?.addEventListener("resize",L),Ut?.addEventListener("scroll",z),()=>{Ut?.removeEventListener("resize",L),Ut?.removeEventListener("scroll",z)}},[N]);let D=s.useCallback(()=>{w.current||g?.()},[g,w]);return O2({triggerRef:r,isOpen:b,onClose:g&&D}),{overlayProps:{style:{position:v?"absolute":"fixed",top:v?void 0:0,left:v?void 0:0,zIndex:1e5,...v?.position,maxHeight:v?.maxHeight??"100vh"}},placement:v?.placement??null,triggerAnchorPoint:v?.triggerAnchorPoint??null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:v?.arrowOffsetLeft,top:v?.arrowOffsetTop}},updatePosition:N}}function V2(t){de(()=>(window.addEventListener("resize",t,!1),()=>{window.removeEventListener("resize",t,!1)}),[t])}function H2(t,e){return e==="rtl"?t.replace("start","right").replace("end","left"):t.replace("start","left").replace("end","right")}function j2(t){let{ref:e,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=t,o=s.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),l=Ne(u=>{n&&ai(u,e)&&(i&&i(u),o.current.isPointerDown=!0)}),a=Ne(u=>{n&&n(u)});s.useEffect(()=>{let u=o.current;if(r)return;const d=e.current,c=le(d);if(typeof PointerEvent<"u"){let f=p=>{u.isPointerDown&&ai(p,e)&&a(p),u.isPointerDown=!1};return c.addEventListener("pointerdown",l,!0),c.addEventListener("click",f,!0),()=>{c.removeEventListener("pointerdown",l,!0),c.removeEventListener("click",f,!0)}}else if(process.env.NODE_ENV==="test"){let f=m=>{u.ignoreEmulatedMouseEvents?u.ignoreEmulatedMouseEvents=!1:u.isPointerDown&&ai(m,e)&&a(m),u.isPointerDown=!1},p=m=>{u.ignoreEmulatedMouseEvents=!0,u.isPointerDown&&ai(m,e)&&a(m),u.isPointerDown=!1};return c.addEventListener("mousedown",l,!0),c.addEventListener("mouseup",f,!0),c.addEventListener("touchstart",l,!0),c.addEventListener("touchend",p,!0),()=>{c.removeEventListener("mousedown",l,!0),c.removeEventListener("mouseup",f,!0),c.removeEventListener("touchstart",l,!0),c.removeEventListener("touchend",p,!0)}}},[e,r])}function ai(t,e){if(t.button>0)return!1;let n=_(t);if(n){const r=n.ownerDocument;if(!r||!te(r.documentElement,n)||n.closest("[data-react-aria-top-layer]"))return!1}return e.current?!t.composedPath().includes(e.current):!1}const lt=[];function Ld(t,e){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:o=!1,isKeyboardDismissDisabled:l=!1,shouldCloseOnInteractOutside:a}=t,u=s.useRef(void 0);s.useEffect(()=>{if(i&&!lt.includes(e))return lt.push(e),()=>{let b=lt.indexOf(e);b>=0&<.splice(b,1)}},[i,e]);let d=()=>{lt[lt.length-1]===e&&n&&n()},c=b=>{const g=lt[lt.length-1];u.current=g,(!a||a(_(b)))&&g===e&&b.stopPropagation()},f=b=>{(!a||a(_(b)))&&(lt[lt.length-1]===e&&b.stopPropagation(),u.current===e&&d()),u.current=void 0},{keyboardProps:p}=je({shortcuts:{Escape:()=>{if(!l){d();return}return!1}}});j2({ref:e,onInteractOutside:o&&i?f:void 0,onInteractOutsideStart:c});let{focusWithinProps:m}=On({isDisabled:!r,onBlurWithin:b=>{!b.relatedTarget||o2(b.relatedTarget)||(!a||a(b.relatedTarget))&&n?.()}});return{overlayProps:{...p,...m},underlayProps:{}}}const Jn=typeof document<"u"&&window.visualViewport;let si=0,qo;function Od(t={}){let{isDisabled:e}=t;de(()=>{if(!e)return si++,si===1&&(pt()&&it()?qo=W2():qo=R2()),()=>{si--,si===0&&qo()}},[e])}function R2(){let t=window.innerWidth-document.documentElement.clientWidth;return Ue(t>0&&("scrollbarGutter"in document.documentElement.style?ui(document.documentElement,"scrollbarGutter","stable"):ui(document.documentElement,"paddingRight",`${t}px`)),ui(document.documentElement,"overflow","hidden"))}function W2(){let t=ui(document.documentElement,"overflow","hidden"),e,n=!1,r=c=>{let f=_(c);e=Nt(f)?f:gt(f,!0),n=!1;let p=f.ownerDocument.defaultView.getSelection();p&&!p.isCollapsed&&p.containsNode(f,!0)&&(n=!0),c.composedPath().some(m=>m instanceof HTMLInputElement&&m.type==="range")&&(n=!0),"selectionStart"in f&&"selectionEnd"in f&&f.selectionStart<f.selectionEnd&&f.ownerDocument.activeElement===f&&(n=!0)},i=document.createElement("style"),o=ys();o&&(i.nonce=o),i.textContent=`
|
|
7
|
+
`.trim(),D.head.prepend(M)},[m]),u.useEffect(()=>{let D=y.current;return()=>{f||_i(D.target??void 0);for(let M of D.disposables)M();D.disposables=[]}},[f]),{isPressed:s||p,pressProps:q(h,R,{[Nd]:!0})}}function Bl(e){return e.tagName==="A"&&e.hasAttribute("href")}function Nl(e,t){const{key:n,code:r}=e,i=t,a=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof xe(i).HTMLInputElement&&!Id(i,n)||i instanceof xe(i).HTMLTextAreaElement||i.isContentEditable)&&!((a==="link"||!a&&Bl(i))&&n!=="Enter")}function gv(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function Ad(e,t){const n=e.changedTouches;for(let r=0;r<n.length;r++){const i=n[r];if(i.identifier===t)return i}return null}function Zt(e,t){let n=0,r=0;return t.targetTouches&&t.targetTouches.length===1&&(n=t.targetTouches[0].clientX,r=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function hn(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r,key:t.key}}function yv(e){let t=0,n=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?n=e.height/2:e.radiusY!==void 0&&(n=e.radiusY),{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function $v(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function Fd(e,t){let n=t.getBoundingClientRect(),r=yv(e);return $v(n,r)}function vv(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Bl(e)}function Td(e,t){return Je()&&t==="Enter"?!1:e instanceof HTMLInputElement?t==="Enter"&&(e.type==="checkbox"||e.type==="radio")?!1:!Id(e,t):vv(e)}const xv=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Id(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":xv.has(e.type)}function Cv(e,t){let{elementType:n="a",onPress:r,onPressStart:i,onPressEnd:a,onPressChange:l,onClick:o,isDisabled:s,...d}=e,c={};n!=="a"&&(c={role:"link",tabIndex:s?void 0:0});let{focusableProps:f}=zn(e,t),{pressProps:m,isPressed:h}=It({onPress:r,onPressStart:i,onPressEnd:a,onPressChange:l,onClick:o,isDisabled:s,ref:t}),p=ie(d,{labelable:!0}),g=q(f,m),y=sn(),$=Pi(e);return{isPressed:h,linkProps:q(p,$,{...g,...c,"aria-disabled":s||void 0,"aria-current":e["aria-current"],onClick:x=>{m.onClick?.(x),Ws(x,y,e.href,e.routerOptions)}})}}function jn(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,a=u.useRef({isFocusWithin:!1}),{addGlobalListener:l,removeAllGlobalListeners:o}=Rn(),s=u.useCallback(f=>{ae(f.currentTarget,W(f))&&a.current.isFocusWithin&&!ae(f.currentTarget,f.relatedTarget)&&(a.current.isFocusWithin=!1,o(),n&&n(f),i&&i(!1))},[n,i,a,o]),d=Rs(s),c=u.useCallback(f=>{if(!ae(f.currentTarget,W(f)))return;let m=W(f);const h=se(m),p=ce(h);if(!a.current.isFocusWithin&&p===m){r&&r(f),i&&i(!0),a.current.isFocusWithin=!0,d(f);let g=f.currentTarget;l(h,"focus",y=>{let $=W(y);if(a.current.isFocusWithin&&!ae(g,$)){let x=new h.defaultView.FocusEvent("blur",{relatedTarget:$});_s(x,g);let v=cl(x);s(v)}},{capture:!0})}},[r,i,d,l,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:s}}}function Oe(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=u.useRef({isFocused:!1,isFocusVisible:t||Wt()}),[a,l]=u.useState(!1),[o,s]=u.useState(()=>i.current.isFocused&&i.current.isFocusVisible),d=u.useCallback(()=>s(i.current.isFocused&&i.current.isFocusVisible),[]),c=u.useCallback(h=>{i.current.isFocused=h,i.current.isFocusVisible=Wt(),l(h),d()},[d]);E5(h=>{i.current.isFocusVisible=h,d()},[n,a],{enabled:a,isTextInput:n});let{focusProps:f}=vl({isDisabled:r,onFocusChange:c}),{focusWithinProps:m}=jn({isDisabled:!r,onFocusWithinChange:c});return{isFocused:a,isFocusVisible:o,focusProps:r?m:f}}let ji=!1,Hi=0;function Al(){ji=!0,setTimeout(()=>{ji=!1},500)}function Md(e){e.pointerType==="touch"&&Al()}function Dv(){let e=se(null);if(!(typeof e>"u"))return Hi===0&&(typeof PointerEvent<"u"?e.addEventListener("pointerup",Md):process.env.NODE_ENV==="test"&&e.addEventListener("touchend",Al)),Hi++,()=>{Hi--,!(Hi>0)&&(typeof PointerEvent<"u"?e.removeEventListener("pointerup",Md):process.env.NODE_ENV==="test"&&e.removeEventListener("touchend",Al))}}function ze(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[a,l]=u.useState(!1),o=u.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;u.useEffect(Dv,[]);let{addGlobalListener:s,removeAllGlobalListeners:d}=Rn(),{hoverProps:c,triggerHoverEnd:f}=u.useMemo(()=>{let m=(g,y)=>{if(o.pointerType=y,i||y==="touch"||o.isHovered||!ae(g.currentTarget,W(g)))return;o.isHovered=!0;let $=g.currentTarget;o.target=$,s(se(W(g)),"pointerover",x=>{o.isHovered&&o.target&&!ae(o.target,W(x))&&h(x,x.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:$,pointerType:y}),n&&n(!0),l(!0)},h=(g,y)=>{let $=o.target;o.pointerType="",o.target=null,!(y==="touch"||!o.isHovered||!$)&&(o.isHovered=!1,d(),r&&r({type:"hoverend",target:$,pointerType:y}),n&&n(!1),l(!1))},p={};return typeof PointerEvent<"u"?(p.onPointerEnter=g=>{ji&&g.pointerType==="mouse"||m(g,g.pointerType)},p.onPointerLeave=g=>{!i&&ae(g.currentTarget,W(g))&&h(g,g.pointerType)}):process.env.NODE_ENV==="test"&&(p.onTouchStart=()=>{o.ignoreEmulatedMouseEvents=!0},p.onMouseEnter=g=>{!o.ignoreEmulatedMouseEvents&&!ji&&m(g,"mouse"),o.ignoreEmulatedMouseEvents=!1},p.onMouseLeave=g=>{!i&&ae(g.currentTarget,W(g))&&h(g,"mouse")}),{hoverProps:p,triggerHoverEnd:h}},[t,n,r,i,o,s,d]);return u.useEffect(()=>{i&&f({currentTarget:o.target},o.pointerType)},[i]),{hoverProps:c,isHovered:a}}const Kd=u.createContext(null),Ev=u.forwardRef(function(t,n){[t,n]=pe(t,n,Kd);let r=t.href&&!t.isDisabled?"a":"span",{linkProps:i,isPressed:a}=Cv({...t,elementType:r},n),l=re[r],{hoverProps:o,isHovered:s}=ze(t),{focusProps:d,isFocused:c,isFocusVisible:f}=Oe(),m=ue({...t,defaultClassName:"react-aria-Link",values:{isCurrent:!!t["aria-current"],isDisabled:t.isDisabled||!1,isPressed:a,isHovered:s,isFocused:c,isFocusVisible:f}}),h=ie(t,{global:!0});return delete h.onClick,u.createElement(l,{ref:n,slot:t.slot||void 0,...q(h,m,i,o,d),"data-focused":c||void 0,"data-hovered":s||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},m.children)});var Ld={};Ld={breadcrumbs:"عناصر الواجهة"};var Od={};Od={breadcrumbs:"Трохи хляб"};var zd={};zd={breadcrumbs:"Popis cesty"};var Vd={};Vd={breadcrumbs:"Brødkrummer"};var _d={};_d={breadcrumbs:"Breadcrumbs"};var Rd={};Rd={breadcrumbs:"Πλοηγήσεις breadcrumb"};var jd={};jd={breadcrumbs:"Breadcrumbs"};var Hd={};Hd={breadcrumbs:"Migas de pan"};var Ud={};Ud={breadcrumbs:"Lingiread"};var Wd={};Wd={breadcrumbs:"Navigointilinkit"};var Gd={};Gd={breadcrumbs:"Chemin de navigation"};var Zd={};Zd={breadcrumbs:"שבילי ניווט"};var Yd={};Yd={breadcrumbs:"Navigacijski putovi"};var qd={};qd={breadcrumbs:"Morzsamenü"};var Xd={};Xd={breadcrumbs:"Breadcrumb"};var Jd={};Jd={breadcrumbs:"パンくずリスト"};var Qd={};Qd={breadcrumbs:"탐색 표시"};var ec={};ec={breadcrumbs:"Naršymo kelias"};var tc={};tc={breadcrumbs:"Atpakaļceļi"};var nc={};nc={breadcrumbs:"Navigasjonsstier"};var rc={};rc={breadcrumbs:"Broodkruimels"};var ic={};ic={breadcrumbs:"Struktura nawigacyjna"};var ac={};ac={breadcrumbs:"Caminho detalhado"};var lc={};lc={breadcrumbs:"Categorias"};var oc={};oc={breadcrumbs:"Miez de pâine"};var uc={};uc={breadcrumbs:"Навигация"};var sc={};sc={breadcrumbs:"Navigačné prvky Breadcrumbs"};var dc={};dc={breadcrumbs:"Drobtine"};var cc={};cc={breadcrumbs:"Putanje navigacije"};var fc={};fc={breadcrumbs:"Sökvägar"};var mc={};mc={breadcrumbs:"İçerik haritaları"};var hc={};hc={breadcrumbs:"Навігаційна стежка"};var pc={};pc={breadcrumbs:"导航栏"};var bc={};bc={breadcrumbs:"導覽列"};var gc={};gc={"ar-AE":Ld,"bg-BG":Od,"cs-CZ":zd,"da-DK":Vd,"de-DE":_d,"el-GR":Rd,"en-US":jd,"es-ES":Hd,"et-EE":Ud,"fi-FI":Wd,"fr-FR":Gd,"he-IL":Zd,"hr-HR":Yd,"hu-HU":qd,"it-IT":Xd,"ja-JP":Jd,"ko-KR":Qd,"lt-LT":ec,"lv-LV":tc,"nb-NO":nc,"nl-NL":rc,"pl-PL":ic,"pt-BR":ac,"pt-PT":lc,"ro-RO":oc,"ru-RU":uc,"sk-SK":sc,"sl-SI":dc,"sr-SP":cc,"sv-SE":fc,"tr-TR":mc,"uk-UA":hc,"zh-CN":pc,"zh-TW":bc};function wv(e){return e&&e.__esModule?e.default:e}function Sv(e){let{"aria-label":t,...n}=e,r=ke(wv(gc),"@react-aria/breadcrumbs");return{navProps:{...ie(n,{labelable:!0}),"aria-label":t||r.format("breadcrumbs")}}}const Fl=u.createContext(null),Pv=u.forwardRef(function(t,n){[t,n]=pe(t,n,Fl);let{CollectionRoot:r}=u.useContext(ge),{navProps:i}=Sv(t),a=ie(t,{global:!0,labelable:!0});return u.createElement(fn,{content:u.createElement(mn,t)},l=>u.createElement(re.ol,{render:t.render,ref:n,...q(a,i),slot:t.slot||void 0,style:t.style,className:t.className??"react-aria-Breadcrumbs"},u.createElement(Fl.Provider,{value:t},u.createElement(r,{collection:l}))))}),vs=class vs extends et{};vs.type="item";let Tl=vs;const kv=yt(Tl,function(t,n,r){let i=r.nextKey==null,{isDisabled:a,onAction:l}=qe(Fl),o={"aria-current":i?"page":null,isDisabled:a||i,onPress:()=>l?.(r.key)},s=ue({...r.props,children:r.rendered,values:{isDisabled:a||i,isCurrent:i},defaultClassName:"react-aria-Breadcrumb"}),d=ie(t,{global:!0,labelable:!0});return delete d.id,u.createElement(re.li,{...d,...s,ref:n,"data-disabled":a||i||void 0,"data-current":i||void 0},u.createElement(Kd.Provider,{value:o},s.children))}),pn=u.createContext({});function Il(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:a="label"}=e;t=Ee(t);let l=Ee(),o={};n?(r=r?`${l} ${r}`:l,o={id:l,htmlFor:a==="label"?t:void 0}):!r&&!i&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let s=Tt({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:o,fieldProps:s}}let Ml=new Map,Kl=!1;try{Kl=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let Ui=!1;try{Ui=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const yc={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class Wi{constructor(t,n={}){this.numberFormatter=Bv(t,n),this.options=n}format(t){let n="";if(!Kl&&this.options.signDisplay!=null?n=Nv(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!Ui){let{unit:r,unitDisplay:i="short",locale:a}=this.resolvedOptions();if(!r)return n;let l=yc[r]?.[i];n+=l[a]||l.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),i=this.numberFormatter.formatToParts(n);return[...r.map(a=>({...a,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(a=>({...a,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!Kl&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!Ui&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}}function Bv(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!Ui){let{unit:a,unitDisplay:l="short"}=t;if(!a)throw new Error('unit option must be provided with style: "unit"');if(!yc[a]?.[l])throw new Error(`Unsupported unit ${a} with unitDisplay = ${l}`);t={...t,style:"decimal"}}let r=e+(t?Object.entries(t).sort((a,l)=>a[0]<l[0]?-1:1).join():"");if(Ml.has(r))return Ml.get(r);let i=new Intl.NumberFormat(e,t);return Ml.set(r,i),i}function Nv(e,t,n){if(t==="auto")return e.format(n);if(t==="never")return e.format(Math.abs(n));{let r=!1;if(t==="always"?r=n>0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let i=e.format(-n),a=e.format(n),l=i.replace(a,"").replace(/\u200e|\u061C/,"");return[...l].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),i.replace(a,"!!!").replace(l,"+").replace("!!!",a)}else return e.format(n)}}const Av=new RegExp("^.*\\(.*\\).*$"),Fv=["latn","arab","hanidec","deva","beng","fullwide"];class $c{constructor(t,n={}){this.locale=t,this.options=n}parse(t){return Ll(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return Ll(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return Ll(this.locale,this.options,t).options.numberingSystem}}const vc=new Map;function Ll(e,t,n){let r=xc(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let i of Fv)if(i!==r.options.numberingSystem){let a=xc(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,t);if(a.isValidPartialNumber(n))return a}}return r}function xc(e,t){let n=e+(t?Object.entries(t).sort((i,a)=>i[0]<a[0]?-1:1).join():""),r=vc.get(n);return r||(r=new Tv(e,t),vc.set(n,r)),r}class Tv{constructor(t,n={}){this.locale=t,n.roundingIncrement!==1&&n.roundingIncrement!=null&&(n.maximumFractionDigits==null&&n.minimumFractionDigits==null?(n.maximumFractionDigits=0,n.minimumFractionDigits=0):n.maximumFractionDigits==null?n.maximumFractionDigits=n.minimumFractionDigits:n.minimumFractionDigits==null&&(n.minimumFractionDigits=n.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(t,n),this.options=this.formatter.resolvedOptions(),this.symbols=Iv(t,this.formatter,this.options,n),this.options.style==="percent"&&((this.options.minimumFractionDigits??0)>18||(this.options.maximumFractionDigits??0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}parse(t){let n=this.formatter.resolvedOptions().useGrouping,r=this.sanitize(t);if(!n&&this.symbols.group&&r.includes(this.symbols.group))return NaN;if(this.symbols.group&&(r=r.replaceAll(this.symbols.group,"")),this.symbols.decimal&&(r=r.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(r=r.replace(this.symbols.minusSign,"-")),r=r.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let a=r.indexOf("-");r=r.replace("-",""),r=r.replace("+","");let l=r.indexOf(".");l===-1&&(l=r.length),r=r.replace(".",""),l-2===0?r=`0.${r}`:l-2===-1?r=`0.0${r}`:l-2===-2?r="0.00":r=`${r.slice(0,l-2)}.${r.slice(l-2)}`,a>-1&&(r=`-${r}`)}let i=r?+r:NaN;if(isNaN(i))return NaN;if(this.options.style==="percent"){let a={...this.options,style:"decimal",minimumFractionDigits:Math.min((this.options.minimumFractionDigits??0)+2,20),maximumFractionDigits:Math.min((this.options.maximumFractionDigits??0)+2,20)};return new $c(this.locale,a).parse(new Wi(this.locale,a).format(i))}return this.options.currencySign==="accounting"&&Av.test(t)&&(i=-1*i),i}sanitize(t){let n=this.formatter.resolvedOptions().useGrouping;return this.symbols.noNumeralUnits.length>0&&this.symbols.noNumeralUnits.find(r=>r.unit===t)?this.symbols.noNumeralUnits.find(r=>r.unit===t).value.toString():(t=t.replace(this.symbols.literals,""),this.symbols.minusSign&&(t=t.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(t=Yt(t,",",this.symbols.decimal),t=Yt(t,"،",this.symbols.decimal)),this.symbols.group&&n&&(t=Yt(t,".",this.symbols.group))),this.symbols.group==="’"&&t.includes("'")&&n&&(t=Yt(t,"'",this.symbols.group)),this.symbols.group==="'"&&t.includes("’")&&n&&(t=Yt(t,"’",this.symbols.group)),this.options.locale==="fr-FR"&&this.symbols.group&&n&&(t=Yt(t," ",this.symbols.group),t=Yt(t,/\u00A0/g,this.symbols.group)),t)}isValidPartialNumber(t,n=-1/0,r=1/0){let i=this.formatter.resolvedOptions().useGrouping;return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&n<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&r>0&&(t=t.slice(this.symbols.plusSign.length)),this.symbols.decimal&&t.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&i&&(t=Yt(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}}const Cc=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),Dc=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function Iv(e,t,n,r){let i=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand",useGrouping:!0}),a=i.formatToParts(-10000.111),l=i.formatToParts(10000.111),o=Dc.map(S=>i.formatToParts(S)),s=o.map((S,B)=>{let E=S.find(k=>k.type==="unit");return E&&!S.some(k=>k.type==="integer"||k.type==="fraction")?{unit:E.value,value:Dc[B]}:null}).filter(S=>!!S),d=a.find(S=>S.type==="minusSign")?.value??"-",c=l.find(S=>S.type==="plusSign")?.value;!c&&(r?.signDisplay==="exceptZero"||r?.signDisplay==="always")&&(c="+");let m=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(S=>S.type==="decimal")?.value,h=a.find(S=>S.type==="group")?.value,p=a.filter(S=>!Cc.has(S.type)).map(S=>Ec(S.value)),g=o.flatMap(S=>S.filter(B=>!Cc.has(B.type)).map(B=>Ec(B.value))),y=[...new Set([...p,...g])].sort((S,B)=>B.length-S.length),$=y.length===0?new RegExp("\\p{White_Space}|\\p{Cf}","gu"):new RegExp(`${y.join("|")}|\\p{White_Space}|\\p{Cf}`,"gu"),x=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),v=new Map(x.map((S,B)=>[S,B])),C=new RegExp(`[${x.join("")}]`,"g");return{minusSign:d,plusSign:c,decimal:m,group:h,literals:$,numeral:C,numerals:x,index:S=>String(v.get(S)),noNumeralUnits:s}}function Yt(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function Ec(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Mv(e={}){let{locale:t}=be();return u.useMemo(()=>new Wi(t,e),[t,e])}function Dr(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function Kv(e){let{value:t=0,minValue:n=0,maxValue:r=100,valueLabel:i,isIndeterminate:a,formatOptions:l={style:"percent"}}=e,o=ie(e,{labelable:!0}),{labelProps:s,fieldProps:d}=Il({...e,labelElementType:"span"});t=Dr(t,n,r);let c=r-n,f=c===0?0:(t-n)/c,m=Mv(l);if(!a&&!i){let h=l.style==="percent"?f:t;i=m.format(h)}return{progressBarProps:q(o,{...d,"aria-valuenow":a?void 0:t,"aria-valuemin":n,"aria-valuemax":r,"aria-valuetext":a?void 0:i,role:"progressbar"}),labelProps:s}}const wc=u.createContext(null),Lv=u.forwardRef(function(t,n){[t,n]=pe(t,n,wc);let{value:r=0,minValue:i=0,maxValue:a=100,isIndeterminate:l=!1}=t;r=Dr(r,i,a);let[o,s]=un(!t["aria-label"]&&!t["aria-labelledby"]),{progressBarProps:d,labelProps:c}=Kv({...t,label:s}),f=a-i,m;l||(f===0?m=0:m=(r-i)/f*100);let h=ue({...t,defaultClassName:"react-aria-ProgressBar",values:{percentage:m,valueText:d["aria-valuetext"],isIndeterminate:l}}),p=ie(t,{global:!0});return u.createElement(re.div,{...q(p,h,d),ref:n,slot:t.slot||void 0},u.createElement(pn.Provider,{value:{...c,ref:o,elementType:"span"}},h.children))}),Sc=7e3;let qt=null;function $t(e,t="assertive",n=Sc){qt?qt.announce(e,t,n):(qt=new zv,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?qt.announce(e,t,n):setTimeout(()=>{qt?.isAttached()&&qt?.announce(e,t,n)},100))}function Ov(e){qt&&qt.clear(e)}class zv{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(){return this.node?.isConnected}createLog(t){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",t),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,n="assertive",r=Sc){if(!this.node)return;let i=document.createElement("div");typeof t=="object"?(i.setAttribute("role","img"),i.setAttribute("aria-labelledby",t["aria-labelledby"])):i.textContent=t,n==="assertive"?this.assertiveLog?.appendChild(i):this.politeLog?.appendChild(i),t!==""&&setTimeout(()=>{i.remove()},r)}clear(t){this.node&&((!t||t==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}}function Vv(e,t){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:a,onPressEnd:l,onPressUp:o,onPressChange:s,preventFocusOnPress:d,allowFocusWhenDisabled:c,onClick:f,href:m,target:h,rel:p,type:g="button"}=e,y;n==="button"?y={type:g,disabled:r,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:y={role:"button",href:n==="a"&&!r?m:void 0,target:n==="a"?h:void 0,type:n==="input"?g:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?p:void 0};let{pressProps:$,isPressed:x}=It({onPressStart:a,onPressEnd:l,onPressChange:s,onPress:i,onPressUp:o,onClick:f,isDisabled:r,preventFocusOnPress:d,ref:t}),{focusableProps:v}=zn(e,t);c&&(v.tabIndex=r?-1:v.tabIndex);let C=q(v,$,ie(e,{labelable:!0}));return{isPressed:x,buttonProps:q(y,C,{"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"]})}}const vt=u.createContext({}),Xt=Vn(function(t,n){[t,n]=pe(t,n,vt);let r=t,{isPending:i}=r,{buttonProps:a,isPressed:l}=Vv(t,n);a=Rv(a,i);let{focusProps:o,isFocused:s,isFocusVisible:d}=Oe(t),{hoverProps:c,isHovered:f}=ze({...t,isDisabled:t.isDisabled||i}),m={isHovered:f,isPressed:(r.isPressed||l)&&!i,isFocused:s,isFocusVisible:d,isDisabled:t.isDisabled||!1,isPending:i??!1},h=ue({...t,values:m,defaultClassName:"react-aria-Button"}),p=Ee(a.id),g=Ee(),y=a["aria-labelledby"];i&&(y?y=`${y} ${g}`:a["aria-label"]&&(y=`${p} ${g}`));let $=u.useRef(i);u.useEffect(()=>{let v={"aria-labelledby":y||p};(!$.current&&s&&i||$.current&&s&&!i)&&$t(v,"assertive"),$.current=i},[i,s,y,p]);let x=ie(t,{global:!0});return delete x.onClick,u.createElement(re.button,{...q(x,h,a,o,c),type:a.type==="submit"&&i?"button":a.type,id:p,ref:n,"aria-labelledby":y,slot:t.slot||void 0,"aria-disabled":i?"true":a["aria-disabled"],"data-disabled":t.isDisabled||void 0,"data-pressed":m.isPressed||void 0,"data-hovered":f||void 0,"data-focused":s||void 0,"data-pending":i||void 0,"data-focus-visible":d||void 0},u.createElement(wc.Provider,{value:{id:g}},h.children))}),_v=/Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;function Rv(e,t){if(t){for(const n in e)n.startsWith("on")&&!_v.test(n)&&(e[n]=void 0);e.href=void 0,e.target=void 0}return e}const Gi=u.createContext({}),Pc=u.forwardRef(function(t,n){[t,n]=pe(t,n,Gi);let{children:r,level:i=3,className:a,...l}=t,o=re[`h${i}`];return u.createElement(o,{...l,ref:n,className:a??"react-aria-Heading"},r)}),tt=u.createContext({});var kc={};kc={dateRange:e=>`${e.startDate} إلى ${e.endDate}`,dateSelected:e=>`${e.date} المحدد`,finishRangeSelectionPrompt:"انقر لإنهاء عملية تحديد نطاق التاريخ",maximumDate:"آخر تاريخ متاح",minimumDate:"أول تاريخ متاح",next:"التالي",previous:"السابق",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.dateRange}`,startRangeSelectionPrompt:"انقر لبدء عملية تحديد نطاق التاريخ",todayDate:e=>`اليوم، ${e.date}`,todayDateSelected:e=>`اليوم، ${e.date} محدد`};var Bc={};Bc={dateRange:e=>`${e.startDate} до ${e.endDate}`,dateSelected:e=>`Избрано е ${e.date}`,finishRangeSelectionPrompt:"Натиснете, за да довършите избора на времеви интервал",maximumDate:"Последна налична дата",minimumDate:"Първа налична дата",next:"Напред",previous:"Назад",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натиснете, за да пристъпите към избора на времеви интервал",todayDate:e=>`Днес, ${e.date}`,todayDateSelected:e=>`Днес, ${e.date} са избрани`};var Nc={};Nc={dateRange:e=>`${e.startDate} až ${e.endDate}`,dateSelected:e=>`Vybráno ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výběr rozsahu dat",maximumDate:"Poslední dostupné datum",minimumDate:"První dostupné datum",next:"Další",previous:"Předchozí",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím zahájíte výběr rozsahu dat",todayDate:e=>`Dnes, ${e.date}`,todayDateSelected:e=>`Dnes, vybráno ${e.date}`};var Ac={};Ac={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klik for at fuldføre valg af datoområde",maximumDate:"Sidste ledige dato",minimumDate:"Første ledige dato",next:"Næste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.dateRange}`,startRangeSelectionPrompt:"Klik for at starte valg af datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var Fc={};Fc={dateRange:e=>`${e.startDate} bis ${e.endDate}`,dateSelected:e=>`${e.date} ausgewählt`,finishRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beenden",maximumDate:"Letztes verfügbares Datum",minimumDate:"Erstes verfügbares Datum",next:"Weiter",previous:"Zurück",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.dateRange}`,startRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beginnen",todayDate:e=>`Heute, ${e.date}`,todayDateSelected:e=>`Heute, ${e.date} ausgewählt`};var Tc={};Tc={dateRange:e=>`${e.startDate} έως ${e.endDate}`,dateSelected:e=>`Επιλέχθηκε ${e.date}`,finishRangeSelectionPrompt:"Κάντε κλικ για να ολοκληρώσετε την επιλογή εύρους ημερομηνιών",maximumDate:"Τελευταία διαθέσιμη ημερομηνία",minimumDate:"Πρώτη διαθέσιμη ημερομηνία",next:"Επόμενο",previous:"Προηγούμενο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.dateRange}`,startRangeSelectionPrompt:"Κάντε κλικ για να ξεκινήσετε την επιλογή εύρους ημερομηνιών",todayDate:e=>`Σήμερα, ${e.date}`,todayDateSelected:e=>`Σήμερα, επιλέχτηκε ${e.date}`};var Ic={};Ic={previous:"Previous",next:"Next",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.dateRange}`,todayDate:e=>`Today, ${e.date}`,todayDateSelected:e=>`Today, ${e.date} selected`,dateSelected:e=>`${e.date} selected`,startRangeSelectionPrompt:"Click to start selecting date range",finishRangeSelectionPrompt:"Click to finish selecting date range",minimumDate:"First available date",maximumDate:"Last available date",dateRange:e=>`${e.startDate} to ${e.endDate}`};var Mc={};Mc={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} seleccionado`,finishRangeSelectionPrompt:"Haga clic para terminar de seleccionar rango de fechas",maximumDate:"Última fecha disponible",minimumDate:"Primera fecha disponible",next:"Siguiente",previous:"Anterior",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo seleccionado: ${e.dateRange}`,startRangeSelectionPrompt:"Haga clic para comenzar a seleccionar un rango de fechas",todayDate:e=>`Hoy, ${e.date}`,todayDateSelected:e=>`Hoy, ${e.date} seleccionado`};var Kc={};Kc={dateRange:e=>`${e.startDate} kuni ${e.endDate}`,dateSelected:e=>`${e.date} valitud`,finishRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimise lõpetamiseks",maximumDate:"Viimane saadaolev kuupäev",minimumDate:"Esimene saadaolev kuupäev",next:"Järgmine",previous:"Eelmine",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.dateRange}`,startRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimiseks",todayDate:e=>`Täna, ${e.date}`,todayDateSelected:e=>`Täna, ${e.date} valitud`};var Lc={};Lc={dateRange:e=>`${e.startDate} – ${e.endDate}`,dateSelected:e=>`${e.date} valittu`,finishRangeSelectionPrompt:"Lopeta päivämääräalueen valinta napsauttamalla tätä.",maximumDate:"Viimeinen varattavissa oleva päivämäärä",minimumDate:"Ensimmäinen varattavissa oleva päivämäärä",next:"Seuraava",previous:"Edellinen",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.dateRange}`,startRangeSelectionPrompt:"Aloita päivämääräalueen valinta napsauttamalla tätä.",todayDate:e=>`Tänään, ${e.date}`,todayDateSelected:e=>`Tänään, ${e.date} valittu`};var Oc={};Oc={dateRange:e=>`${e.startDate} à ${e.endDate}`,dateSelected:e=>`${e.date} sélectionné`,finishRangeSelectionPrompt:"Cliquer pour finir de sélectionner la plage de dates",maximumDate:"Dernière date disponible",minimumDate:"Première date disponible",next:"Suivant",previous:"Précédent",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.dateRange}`,startRangeSelectionPrompt:"Cliquer pour commencer à sélectionner la plage de dates",todayDate:e=>`Aujourd'hui, ${e.date}`,todayDateSelected:e=>`Aujourd’hui, ${e.date} sélectionné`};var zc={};zc={dateRange:e=>`${e.startDate} עד ${e.endDate}`,dateSelected:e=>`${e.date} נבחר`,finishRangeSelectionPrompt:"חץ כדי לסיים את בחירת טווח התאריכים",maximumDate:"תאריך פנוי אחרון",minimumDate:"תאריך פנוי ראשון",next:"הבא",previous:"הקודם",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.dateRange}`,startRangeSelectionPrompt:"לחץ כדי להתחיל בבחירת טווח התאריכים",todayDate:e=>`היום, ${e.date}`,todayDateSelected:e=>`היום, ${e.date} נבחר`};var Vc={};Vc={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} odabran`,finishRangeSelectionPrompt:"Kliknite da dovršite raspon odabranih datuma",maximumDate:"Posljednji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sljedeći",previous:"Prethodni",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete raspon odabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, odabran ${e.date}`};var _c={};_c={dateRange:e=>`${e.startDate}–${e.endDate}`,dateSelected:e=>`${e.date} kiválasztva`,finishRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének befejezéséhez",maximumDate:"Utolsó elérhető dátum",minimumDate:"Az első elérhető dátum",next:"Következő",previous:"Előző",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.dateRange}`,startRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének indításához",todayDate:e=>`Ma, ${e.date}`,todayDateSelected:e=>`Ma, ${e.date} kijelölve`};var Rc={};Rc={dateRange:e=>`Da ${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selezionata`,finishRangeSelectionPrompt:"Fai clic per completare la selezione dell’intervallo di date",maximumDate:"Ultima data disponibile",minimumDate:"Prima data disponibile",next:"Successivo",previous:"Precedente",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: ${e.dateRange}`,startRangeSelectionPrompt:"Fai clic per selezionare l’intervallo di date",todayDate:e=>`Oggi, ${e.date}`,todayDateSelected:e=>`Oggi, ${e.date} selezionata`};var jc={};jc={dateRange:e=>`${e.startDate} から ${e.endDate}`,dateSelected:e=>`${e.date} を選択`,finishRangeSelectionPrompt:"クリックして日付範囲の選択を終了",maximumDate:"最終利用可能日",minimumDate:"最初の利用可能日",next:"次へ",previous:"前へ",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.dateRange}`,startRangeSelectionPrompt:"クリックして日付範囲の選択を開始",todayDate:e=>`本日、${e.date}`,todayDateSelected:e=>`本日、${e.date} を選択`};var Hc={};Hc={dateRange:e=>`${e.startDate} ~ ${e.endDate}`,dateSelected:e=>`${e.date} 선택됨`,finishRangeSelectionPrompt:"날짜 범위 선택을 완료하려면 클릭하십시오.",maximumDate:"마지막으로 사용 가능한 일자",minimumDate:"처음으로 사용 가능한 일자",next:"다음",previous:"이전",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.dateRange}`,startRangeSelectionPrompt:"날짜 범위 선택을 시작하려면 클릭하십시오.",todayDate:e=>`오늘, ${e.date}`,todayDateSelected:e=>`오늘, ${e.date} 선택됨`};var Uc={};Uc={dateRange:e=>`Nuo ${e.startDate} iki ${e.endDate}`,dateSelected:e=>`Pasirinkta ${e.date}`,finishRangeSelectionPrompt:"Spustelėkite, kad baigtumėte pasirinkti datų intervalą",maximumDate:"Paskutinė galima data",minimumDate:"Pirmoji galima data",next:"Paskesnis",previous:"Ankstesnis",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: ${e.dateRange}`,startRangeSelectionPrompt:"Spustelėkite, kad pradėtumėte pasirinkti datų intervalą",todayDate:e=>`Šiandien, ${e.date}`,todayDateSelected:e=>`Šiandien, pasirinkta ${e.date}`};var Wc={};Wc={dateRange:e=>`No ${e.startDate} līdz ${e.endDate}`,dateSelected:e=>`Atlasīts: ${e.date}`,finishRangeSelectionPrompt:"Noklikšķiniet, lai pabeigtu datumu diapazona atlasi",maximumDate:"Pēdējais pieejamais datums",minimumDate:"Pirmais pieejamais datums",next:"Tālāk",previous:"Atpakaļ",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: ${e.dateRange}`,startRangeSelectionPrompt:"Noklikšķiniet, lai sāktu datumu diapazona atlasi",todayDate:e=>`Šodien, ${e.date}`,todayDateSelected:e=>`Atlasīta šodiena, ${e.date}`};var Gc={};Gc={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klikk for å fullføre valg av datoområde",maximumDate:"Siste tilgjengelige dato",minimumDate:"Første tilgjengelige dato",next:"Neste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.dateRange}`,startRangeSelectionPrompt:"Klikk for å starte valg av datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var Zc={};Zc={dateRange:e=>`${e.startDate} tot ${e.endDate}`,dateSelected:e=>`${e.date} geselecteerd`,finishRangeSelectionPrompt:"Klik om de selectie van het datumbereik te voltooien",maximumDate:"Laatste beschikbare datum",minimumDate:"Eerste beschikbare datum",next:"Volgende",previous:"Vorige",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.dateRange}`,startRangeSelectionPrompt:"Klik om het datumbereik te selecteren",todayDate:e=>`Vandaag, ${e.date}`,todayDateSelected:e=>`Vandaag, ${e.date} geselecteerd`};var Yc={};Yc={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`Wybrano ${e.date}`,finishRangeSelectionPrompt:"Kliknij, aby zakończyć wybór zakresu dat",maximumDate:"Ostatnia dostępna data",minimumDate:"Pierwsza dostępna data",next:"Dalej",previous:"Wstecz",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknij, aby rozpocząć wybór zakresu dat",todayDate:e=>`Dzisiaj, ${e.date}`,todayDateSelected:e=>`Dzisiaj wybrano ${e.date}`};var qc={};qc={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para concluir a seleção do intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para iniciar a seleção do intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var Xc={};Xc={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para terminar de selecionar o intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para começar a selecionar o intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var Jc={};Jc={dateRange:e=>`De la ${e.startDate} până la ${e.endDate}`,dateSelected:e=>`${e.date} selectată`,finishRangeSelectionPrompt:"Apăsaţi pentru a finaliza selecţia razei pentru dată",maximumDate:"Ultima dată disponibilă",minimumDate:"Prima dată disponibilă",next:"Următorul",previous:"Înainte",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: ${e.dateRange}`,startRangeSelectionPrompt:"Apăsaţi pentru a începe selecţia razei pentru dată",todayDate:e=>`Astăzi, ${e.date}`,todayDateSelected:e=>`Azi, ${e.date} selectată`};var Qc={};Qc={dateRange:e=>`С ${e.startDate} по ${e.endDate}`,dateSelected:e=>`Выбрано ${e.date}`,finishRangeSelectionPrompt:"Щелкните, чтобы завершить выбор диапазона дат",maximumDate:"Последняя доступная дата",minimumDate:"Первая доступная дата",next:"Далее",previous:"Назад",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Щелкните, чтобы начать выбор диапазона дат",todayDate:e=>`Сегодня, ${e.date}`,todayDateSelected:e=>`Сегодня, выбрано ${e.date}`};var ef={};ef={dateRange:e=>`Od ${e.startDate} do ${e.endDate}`,dateSelected:e=>`Vybratý dátum ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výber rozsahu dátumov",maximumDate:"Posledný dostupný dátum",minimumDate:"Prvý dostupný dátum",next:"Nasledujúce",previous:"Predchádzajúce",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím spustíte výber rozsahu dátumov",todayDate:e=>`Dnes ${e.date}`,todayDateSelected:e=>`Vybratý dnešný dátum ${e.date}`};var tf={};tf={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izbrano`,finishRangeSelectionPrompt:"Kliknite za dokončanje izbire datumskega obsega",maximumDate:"Zadnji razpoložljivi datum",minimumDate:"Prvi razpoložljivi datum",next:"Naprej",previous:"Nazaj",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite za začetek izbire datumskega obsega",todayDate:e=>`Danes, ${e.date}`,todayDateSelected:e=>`Danes, ${e.date} izbrano`};var nf={};nf={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izabran`,finishRangeSelectionPrompt:"Kliknite da dovršite opseg izabranih datuma",maximumDate:"Zadnji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sledeći",previous:"Prethodni",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani period: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete opseg izabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, izabran ${e.date}`};var rf={};rf={dateRange:e=>`${e.startDate} till ${e.endDate}`,dateSelected:e=>`${e.date} har valts`,finishRangeSelectionPrompt:"Klicka för att avsluta val av datumintervall",maximumDate:"Sista tillgängliga datum",minimumDate:"Första tillgängliga datum",next:"Nästa",previous:"Föregående",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.dateRange}`,startRangeSelectionPrompt:"Klicka för att välja datumintervall",todayDate:e=>`Idag, ${e.date}`,todayDateSelected:e=>`Idag, ${e.date} har valts`};var af={};af={dateRange:e=>`${e.startDate} - ${e.endDate}`,dateSelected:e=>`${e.date} seçildi`,finishRangeSelectionPrompt:"Tarih aralığı seçimini tamamlamak için tıklayın",maximumDate:"Son müsait tarih",minimumDate:"İlk müsait tarih",next:"Sonraki",previous:"Önceki",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.dateRange}`,startRangeSelectionPrompt:"Tarih aralığı seçimini başlatmak için tıklayın",todayDate:e=>`Bugün, ${e.date}`,todayDateSelected:e=>`Bugün, ${e.date} seçildi`};var lf={};lf={dateRange:e=>`${e.startDate} — ${e.endDate}`,dateSelected:e=>`Вибрано ${e.date}`,finishRangeSelectionPrompt:"Натисніть, щоб завершити вибір діапазону дат",maximumDate:"Остання доступна дата",minimumDate:"Перша доступна дата",next:"Наступний",previous:"Попередній",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натисніть, щоб почати вибір діапазону дат",todayDate:e=>`Сьогодні, ${e.date}`,todayDateSelected:e=>`Сьогодні, вибрано ${e.date}`};var of={};of={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已选择 ${e.date}`,finishRangeSelectionPrompt:"单击以完成选择日期范围",maximumDate:"最后一个可用日期",minimumDate:"第一个可用日期",next:"下一页",previous:"上一页",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.dateRange}`,startRangeSelectionPrompt:"单击以开始选择日期范围",todayDate:e=>`今天,即 ${e.date}`,todayDateSelected:e=>`已选择今天,即 ${e.date}`};var uf={};uf={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已選取 ${e.date}`,finishRangeSelectionPrompt:"按一下以完成選取日期範圍",maximumDate:"最後一個可用日期",minimumDate:"第一個可用日期",next:"下一頁",previous:"上一頁",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.dateRange}`,startRangeSelectionPrompt:"按一下以開始選取日期範圍",todayDate:e=>`今天,${e.date}`,todayDateSelected:e=>`已選取今天,${e.date}`};var Er={};Er={"ar-AE":kc,"bg-BG":Bc,"cs-CZ":Nc,"da-DK":Ac,"de-DE":Fc,"el-GR":Tc,"en-US":Ic,"es-ES":Mc,"et-EE":Kc,"fi-FI":Lc,"fr-FR":Oc,"he-IL":zc,"hr-HR":Vc,"hu-HU":_c,"it-IT":Rc,"ja-JP":jc,"ko-KR":Hc,"lt-LT":Uc,"lv-LV":Wc,"nb-NO":Gc,"nl-NL":Zc,"pl-PL":Yc,"pt-BR":qc,"pt-PT":Xc,"ro-RO":Jc,"ru-RU":Qc,"sk-SK":ef,"sl-SI":tf,"sr-SP":nf,"sv-SE":rf,"tr-TR":af,"uk-UA":lf,"zh-CN":of,"zh-TW":uf};function sf(e,t){let n=u.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function Hn(e,t){return e-t*Math.floor(e/t)}const df=1721426;function bn(e,t,n,r){t=wr(e,t);let i=t-1,a=-2;return n<=2?a=0:Jt(t)&&(a=-1),df-1+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*n-362)/12+a+r)}function Jt(e){return e%4===0&&(e%100!==0||e%400===0)}function wr(e,t){return e==="BC"?1-t:t}function Zi(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const jv={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class Re{fromJulianDay(t){let n=t,r=n-df,i=Math.floor(r/146097),a=Hn(r,146097),l=Math.floor(a/36524),o=Hn(a,36524),s=Math.floor(o/1461),d=Hn(o,1461),c=Math.floor(d/365),f=i*400+l*100+s*4+c+(l!==4&&c!==4?1:0),[m,h]=Zi(f),p=n-bn(m,h,1,1),g=2;n<bn(m,h,3,1)?g=0:Jt(h)&&(g=1);let y=Math.floor(((p+g)*12+373)/367),$=n-bn(m,h,y,1)+1;return new we(m,h,y,$)}toJulianDay(t){return bn(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return jv[Jt(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return Jt(t.year)?366:365}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 31}getYearsInEra(t){return 9999}getEras(){return["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year)}constructor(){this.identifier="gregory"}}const Hv={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function Ce(e,t){return t=ye(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function Uv(e,t){return t=ye(t,e.calendar),e=gn(e),t=gn(t),e.era===t.era&&e.year===t.year&&e.month===t.month}function Wv(e,t){return t=ye(t,e.calendar),e=_l(e),t=_l(t),e.era===t.era&&e.year===t.year}function Gv(e,t){return Yi(e.calendar,t.calendar)&&Ce(e,t)}function Yi(e,t){return e.isEqual?.(t)??t.isEqual?.(e)??e.identifier===t.identifier}function cf(e,t){return Ce(e,zl(t))}const Zv={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function Ol(e,t,n){let r=e.calendar.toJulianDay(e),i=n?Zv[n]:Qv(t),a=Math.ceil(r+1-i)%7;return a<0&&(a+=7),a}function ff(e){return Kt(Date.now(),e)}function zl(e){return Ve(ff(e))}function mf(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function Yv(e,t){return hf(e)-hf(t)}function hf(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let Vl=null,qv=!1;function qi(){return Vl==null&&(Vl=new Intl.DateTimeFormat().resolvedOptions().timeZone),Vl}function pf(){return qv}function gn(e){return e.subtract({days:e.day-1})}function Xi(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function _l(e){return gn(e.subtract({months:e.month-1}))}function Sr(e,t,n){let r=Ol(e,t,n);return e.subtract({days:r})}function Xv(e,t,n){return Sr(e,t,n).add({days:6})}const bf=new Map,Rl=new Map;function Jv(e){if(Intl.Locale){let n=bf.get(e);return n||(n=new Intl.Locale(e).maximize().region,n&&bf.set(e,n)),n}let t=e.split("-")[1];return t==="u"?void 0:t}function Qv(e){let t=Rl.get(e);if(!t){if(Intl.Locale){let r=new Intl.Locale(e);if("getWeekInfo"in r&&(t=r.getWeekInfo(),t))return Rl.set(e,t),t.firstDay}let n=Jv(e);if(e.includes("-fw-")){let r=e.split("-fw-")[1].split("-")[0];r==="mon"?t={firstDay:1}:r==="tue"?t={firstDay:2}:r==="wed"?t={firstDay:3}:r==="thu"?t={firstDay:4}:r==="fri"?t={firstDay:5}:r==="sat"?t={firstDay:6}:t={firstDay:0}}else e.includes("-ca-iso8601")?t={firstDay:1}:t={firstDay:n&&Hv[n]||0};Rl.set(e,t)}return t.firstDay}function e6(e,t,n){let r=e.calendar.getDaysInMonth(e);return Math.ceil((Ol(gn(e),t,n)+r)/7)}function jl(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function Hl(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function Un(e){e=ye(e,new Re);let t=wr(e.era,e.year);return gf(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function gf(e,t,n,r,i,a,l){let o=new Date;return o.setUTCHours(r,i,a,l),o.setUTCFullYear(e,t-1,n),o.getTime()}function Ul(e,t){if(t==="UTC")return 0;if(e>0&&t===qi()&&!pf())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:i,hour:a,minute:l,second:o}=$f(e,t);return gf(n,r,i,a,l,o,0)-Math.floor(e/1e3)*1e3}const yf=new Map;function $f(e,t){let n=yf.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),yf.set(t,n));let r=n.formatToParts(new Date(e)),i={};for(let a of r)a.type!=="literal"&&(i[a.type]=a.value);return{year:i.era==="BC"||i.era==="B"?-i.year+1:+i.year,month:+i.month,day:+i.day,hour:i.hour==="24"?0:+i.hour,minute:+i.minute,second:+i.second}}const vf=864e5;function t6(e,t,n,r){return(n===r?[n]:[n,r]).filter(a=>n6(e,t,a))}function n6(e,t,n){let r=$f(n,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}function Mt(e,t,n="compatible"){let r=Qt(e);if(t==="UTC")return Un(r);if(t===qi()&&n==="compatible"&&!pf()){r=ye(r,new Re);let s=new Date,d=wr(r.era,r.year);return s.setFullYear(d,r.month-1,r.day),s.setHours(r.hour,r.minute,r.second,r.millisecond),s.getTime()}let i=Un(r),a=Ul(i-vf,t),l=Ul(i+vf,t),o=t6(r,t,i-a,i-l);if(o.length===1)return o[0];if(o.length>1)switch(n){case"compatible":case"earlier":return o[0];case"later":return o[o.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(i-a,i-l);case"compatible":case"later":return Math.max(i-a,i-l);case"reject":throw new RangeError("No such absolute time found")}}function xf(e,t,n="compatible"){return new Date(Mt(e,t,n))}function Kt(e,t){let n=Ul(e,t),r=new Date(e+n),i=r.getUTCFullYear(),a=r.getUTCMonth()+1,l=r.getUTCDate(),o=r.getUTCHours(),s=r.getUTCMinutes(),d=r.getUTCSeconds(),c=r.getUTCMilliseconds();return new Br(i<1?"BC":"AD",i<1?-i+1:i,a,l,t,n,o,s,d,c)}function Ve(e){return new we(e.calendar,e.era,e.year,e.month,e.day)}function Qt(e,t){let n=0,r=0,i=0,a=0;if("timeZone"in e)({hour:n,minute:r,second:i,millisecond:a}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:i,millisecond:a}=t),new kr(e.calendar,e.era,e.year,e.month,e.day,n,r,i,a)}function ye(e,t){if(Yi(e.calendar,t))return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,yn(r),r}function r6(e,t,n){if(e instanceof Br)return e.timeZone===t?e:Cf(e,t);let r=Mt(e,t,n);return Kt(r,t)}function i6(e){let t=Un(e)-e.offset;return new Date(t)}function Cf(e,t){let n=Un(e)-e.offset;return ye(Kt(n,t),e.calendar)}function a6(e){return Cf(e,qi())}const Pr=36e5;function Ji(e,t){let n=e.copy(),r="hour"in n?s6(n,t):0;Wl(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,Gl(n),Df(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,l6(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let i=n.calendar.getYearsInEra(n);if(n.year>i){let l=n.calendar.isInverseEra?.(n);n.year=i,n.month=l?1:n.calendar.getMonthsInYear(n),n.day=l?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let a=n.calendar.getMonthsInYear(n);return n.month>a&&(n.month=a,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function Wl(e,t){e.calendar.isInverseEra?.(e)&&(t=-t),e.year+=t}function Gl(e){for(;e.month<1;)Wl(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,Wl(e,1)}function l6(e){for(;e.day<1;)e.month--,Gl(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,Gl(e)}function Df(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function yn(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),Df(e)}function Ef(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function wf(e,t){return Ji(e,Ef(t))}function Zl(e,t){let n=e.copy();return t.era!=null&&(n.era=t.era),t.year!=null&&(n.year=t.year),t.month!=null&&(n.month=t.month),t.day!=null&&(n.day=t.day),yn(n),n}function Qi(e,t){let n=e.copy();return t.hour!=null&&(n.hour=t.hour),t.minute!=null&&(n.minute=t.minute),t.second!=null&&(n.second=t.second),t.millisecond!=null&&(n.millisecond=t.millisecond),u6(n),n}function o6(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=ea(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=ea(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=ea(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=ea(e.hour,24),t}function u6(e){e.millisecond=Math.max(0,Math.min(e.millisecond,999)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function ea(e,t){let n=e%t;return n<0&&(n+=t),n}function s6(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,o6(e)}function Yl(e,t,n,r){let i=e.copy();switch(t){case"era":{let a=e.calendar.getEras(),l=a.indexOf(e.era);if(l<0)throw new Error("Invalid era: "+e.era);l=Lt(l,n,0,a.length-1,r?.round),i.era=a[l],yn(i);break}case"year":i.calendar.isInverseEra?.(i)&&(n=-n),i.year=Lt(e.year,n,-1/0,9999,r?.round),i.year===-1/0&&(i.year=1),i.calendar.balanceYearMonth&&i.calendar.balanceYearMonth(i,e);break;case"month":i.month=Lt(e.month,n,1,e.calendar.getMonthsInYear(e),r?.round);break;case"day":i.day=Lt(e.day,n,1,e.calendar.getDaysInMonth(e),r?.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(i),yn(i),i}function Sf(e,t,n,r){let i=e.copy();switch(t){case"hour":{let a=e.hour,l=0,o=23;if(r?.hourCycle===12){let s=a>=12;l=s?12:0,o=s?23:11}i.hour=Lt(a,n,l,o,r?.round);break}case"minute":i.minute=Lt(e.minute,n,0,59,r?.round);break;case"second":i.second=Lt(e.second,n,0,59,r?.round);break;case"millisecond":i.millisecond=Lt(e.millisecond,n,0,999,r?.round);break;default:throw new Error("Unsupported field "+t)}return i}function Lt(e,t,n,r,i=!1){if(i){e+=Math.sign(t),e<n&&(e=r);let a=Math.abs(t);t>0?e=Math.ceil(e/a)*a:e=Math.floor(e/a)*a,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function Pf(e,t){let n;if(t.years!=null&&t.years!==0||t.months!=null&&t.months!==0||t.weeks!=null&&t.weeks!==0||t.days!=null&&t.days!==0){let i=Ji(Qt(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=Mt(i,e.timeZone)}else n=Un(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let r=Kt(n,e.timeZone);return ye(r,e.calendar)}function d6(e,t){return Pf(e,Ef(t))}function c6(e,t,n,r){switch(t){case"hour":{let i=0,a=23;if(r?.hourCycle===12){let p=e.hour>=12;i=p?12:0,a=p?23:11}let l=Qt(e),o=ye(Qi(l,{hour:i}),new Re),s=[Mt(o,e.timeZone,"earlier"),Mt(o,e.timeZone,"later")].filter(p=>Kt(p,e.timeZone).day===o.day)[0],d=ye(Qi(l,{hour:a}),new Re),c=[Mt(d,e.timeZone,"earlier"),Mt(d,e.timeZone,"later")].filter(p=>Kt(p,e.timeZone).day===d.day).pop(),f=Un(e)-e.offset,m=Math.floor(f/Pr),h=f%Pr;return f=Lt(m,n,Math.floor(s/Pr),Math.floor(c/Pr),r?.round)*Pr+h,ye(Kt(f,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return Sf(e,t,n,r);case"era":case"year":case"month":case"day":{let i=Yl(Qt(e),t,n,r),a=Mt(i,e.timeZone);return ye(Kt(a,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function f6(e,t,n){let r=Qt(e),i=Qi(Zl(r,t),t);if(i.compare(r)===0)return e;let a=Mt(i,e.timeZone,n);return ye(Kt(a,e.timeZone),e.calendar)}const m6=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,h6=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/,kf=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/;function p6(e){let t=e.match(m6);if(!t)throw kf.test(e)?new Error(`Invalid ISO 8601 date string: ${e}. Use parseAbsolute() instead.`):new Error("Invalid ISO 8601 date string: "+e);let n=new we(xt(t[1],0,9999),xt(t[2],1,12),1);return n.day=xt(t[3],1,n.calendar.getDaysInMonth(n)),n}function b6(e){let t=e.match(h6);if(!t)throw kf.test(e)?new Error(`Invalid ISO 8601 date time string: ${e}. Use parseAbsolute() instead.`):new Error("Invalid ISO 8601 date time string: "+e);let n=xt(t[1],-9999,9999),r=n<1?"BC":"AD",i=new kr(r,n<1?-n+1:n,xt(t[2],1,12),1,t[4]?xt(t[4],0,23):0,t[5]?xt(t[5],0,59):0,t[6]?xt(t[6],0,59):0,t[7]?xt(t[7],0,1/0)*1e3:0);return i.day=xt(t[3],0,i.calendar.getDaysInMonth(i)),i}function xt(e,t,n){let r=Number(e);if(r<t||r>n)throw new RangeError(`Value out of range: ${t} <= ${r} <= ${n}`);return r}function g6(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function Bf(e){let t=ye(e,new Re),n;return t.era==="BC"?n=t.year===1?"0000":"-"+String(Math.abs(1-t.year)).padStart(6,"00"):n=String(t.year).padStart(4,"0"),`${n}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function Nf(e){return`${Bf(e)}T${g6(e)}`}function y6(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let n=Math.floor(e/36e5),r=Math.floor(e%36e5/6e4),i=Math.floor(e%36e5%6e4/1e3),a=`${t}${String(n).padStart(2,"0")}:${String(r).padStart(2,"0")}`;return i!==0&&(a+=`:${String(i).padStart(2,"0")}`),a}function $6(e){return`${Nf(e)}${y6(e.offset)}[${e.timeZone}]`}function ql(e){let t=typeof e[0]=="object"?e.shift():new Re,n;if(typeof e[0]=="string")n=e.shift();else{let l=t.getEras();n=l[l.length-1]}let r=e.shift(),i=e.shift(),a=e.shift();return[t,n,r,i,a]}class we{#e;constructor(...t){let[n,r,i,a,l]=ql(t);this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=l,yn(this)}copy(){return this.era?new we(this.calendar,this.era,this.year,this.month,this.day):new we(this.calendar,this.year,this.month,this.day)}add(t){return Ji(this,t)}subtract(t){return wf(this,t)}set(t){return Zl(this,t)}cycle(t,n,r){return Yl(this,t,n,r)}toDate(t){return xf(this,t)}toString(){return Bf(this)}compare(t){return mf(this,t)}}class kr{#e;constructor(...t){let[n,r,i,a,l]=ql(t);this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=l,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,yn(this)}copy(){return this.era?new kr(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new kr(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return Ji(this,t)}subtract(t){return wf(this,t)}set(t){return Zl(Qi(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return Yl(this,t,n,r);default:return Sf(this,t,n,r)}}toDate(t,n){return xf(this,t,n)}toString(){return Nf(this)}compare(t){let n=mf(this,t);return n===0?Yv(this,Qt(t)):n}}class Br{#e;constructor(...t){let[n,r,i,a,l]=ql(t),o=t.shift(),s=t.shift();this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=l,this.timeZone=o,this.offset=s,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,yn(this)}copy(){return this.era?new Br(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new Br(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return Pf(this,t)}subtract(t){return d6(this,t)}set(t,n){return f6(this,t,n)}cycle(t,n,r){return c6(this,t,n,r)}toDate(){return i6(this)}toString(){return $6(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-r6(t,this.timeZone).toDate().getTime()}}const Wn=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],v6=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],ta=[1867,1911,1925,1988,2018],en=["meiji","taisho","showa","heisei","reiwa"];function Af(e){const t=Wn.findIndex(([n,r,i])=>e.year<n||e.year===n&&e.month<r||e.year===n&&e.month===r&&e.day<i);return t===-1?Wn.length-1:t===0?0:t-1}function Xl(e){let t=ta[en.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new we(e.year+t,e.month,e.day)}class x6 extends Re{fromJulianDay(t){let n=super.fromJulianDay(t),r=Af(n);return new we(this,en[r],n.year-ta[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(Xl(t))}balanceDate(t){let n=Xl(t),r=Af(n);en[r]!==t.era&&(t.era=en[r],t.year=n.year-ta[r]),this.constrainDate(t)}constrainDate(t){let n=en.indexOf(t.era),r=v6[n];if(r!=null){let[i,a,l]=r,o=i-ta[n];t.year=Math.max(1,Math.min(o,t.year)),t.year===o&&(t.month=Math.min(a,t.month),t.month===a&&(t.day=Math.min(l,t.day)))}if(t.year===1&&n>=0){let[,i,a]=Wn[n];t.month=Math.max(i,t.month),t.month===i&&(t.day=Math.max(a,t.day))}}getEras(){return en}getYearsInEra(t){let n=en.indexOf(t.era),r=Wn[n],i=Wn[n+1];if(i==null)return 9999-r[0]+1;let a=i[0]-r[0];return(t.month<i[1]||t.month===i[1]&&t.day<i[2])&&a++,a}getDaysInMonth(t){return super.getDaysInMonth(Xl(t))}getMinimumMonthInYear(t){let n=Ff(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=Ff(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function Ff(e){if(e.year===1){let t=en.indexOf(e.era);return Wn[t]}}const Tf=-543;class C6 extends Re{fromJulianDay(t){let n=super.fromJulianDay(t),r=wr(n.era,n.year);return new we(this,r-Tf,n.month,n.day)}toJulianDay(t){return super.toJulianDay(If(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(If(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function If(e){let[t,n]=Zi(e.year+Tf);return new we(t,n,e.month,e.day)}const na=1911;function Mf(e){return e.era==="minguo"?e.year+na:1-e.year+na}function Kf(e){let t=e-na;return t>0?["minguo",t]:["before_minguo",1-t]}class D6 extends Re{fromJulianDay(t){let n=super.fromJulianDay(t),r=wr(n.era,n.year),[i,a]=Kf(r);return new we(this,i,a,n.month,n.day)}toJulianDay(t){return super.toJulianDay(Lf(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=Kf(Mf(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(Lf(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-na}constructor(...t){super(...t),this.identifier="roc"}}function Lf(e){let[t,n]=Zi(Mf(e));return new we(t,n,e.month,e.day)}const Of=1948320,zf=[0,31,62,93,124,155,186,216,246,276,306,336];class E6{fromJulianDay(t){let n=t-Of,r=1+Math.floor((33*n+3)/12053),i=365*(r-1)+Math.floor((8*r+21)/33),a=n-i,l=a<216?Math.floor(a/31):Math.floor((a-6)/30),o=a-zf[l]+1;return new we(this,r,l+1,o)}toJulianDay(t){let n=Of-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return n+=zf[t.month-1],n+=t.day,n}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||Hn(25*t.year+11,33)<8?30:29}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 31}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const Jl=78,Vf=80;class w6 extends Re{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-Jl,i=t-bn(n.era,n.year,1,1),a;i<Vf?(r--,a=Jt(n.year-1)?31:30,i+=a+155+90+10):(a=Jt(n.year)?31:30,i-=Vf);let l,o;if(i<a)l=1,o=i+1;else{let s=i-a;s<155?(l=Math.floor(s/31)+2,o=s%31+1):(s-=155,l=Math.floor(s/30)+7,o=s%30+1)}return new we(this,r,l,o)}toJulianDay(t){let n=t.year+Jl,[r,i]=Zi(n),a,l;return Jt(i)?(a=31,l=bn(r,i,3,21)):(a=30,l=bn(r,i,3,22)),t.month===1?l+t.day-1:(l+=a+Math.min(t.month-2,5)*31,t.month>=8&&(l+=(t.month-7)*30),l+=t.day-1,l)}getDaysInMonth(t){return t.month===1&&Jt(t.year+Jl)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const ra=1948440,_f=1948439,nt=1300,Gn=1600,S6=460322;function ia(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function Rf(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),i=Math.min(12,Math.ceil((n-(29+ia(t,r,1,1)))/29.5)+1),a=n-ia(t,r,i,1)+1;return new we(e,r,i,a)}function jf(e){return(14+11*e)%30<11}class Ql{fromJulianDay(t){return Rf(this,ra,t)}toJulianDay(t){return ia(ra,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&jf(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return jf(t.year)?355:354}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 30}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class P6 extends Ql{fromJulianDay(t){return Rf(this,_f,t)}toJulianDay(t){return ia(_f,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const k6="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let eo,Zn;function aa(e){return S6+Zn[e-nt]}function Nr(e,t){let n=e-nt,r=1<<11-(t-1);return(eo[n]&r)===0?29:30}function Hf(e,t){let n=aa(e);for(let r=1;r<t;r++)n+=Nr(e,r);return n}function Uf(e){return Zn[e+1-nt]-Zn[e-nt]}class B6 extends Ql{constructor(){if(super(),this.identifier="islamic-umalqura",eo||(eo=new Uint16Array(Uint8Array.from(atob(k6),t=>t.charCodeAt(0)).buffer)),!Zn){Zn=new Uint32Array(Gn-nt+1);let t=0;for(let n=nt;n<=Gn;n++){Zn[n-nt]=t;for(let r=1;r<=12;r++)t+=Nr(n,r)}}}fromJulianDay(t){let n=t-ra,r=aa(nt),i=aa(Gn);if(n<r||n>i)return super.fromJulianDay(t);{let a=nt-1,l=1,o=1;for(;o>0;){a++,o=n-aa(a)+1;let s=Uf(a);if(o===s){l=12;break}else if(o<s){let d=Nr(a,l);for(l=1;o>d;)o-=d,l++,d=Nr(a,l);break}}return new we(this,a,l,n-Hf(a,l)+1)}}toJulianDay(t){return t.year<nt||t.year>Gn?super.toJulianDay(t):ra+Hf(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<nt||t.year>Gn?super.getDaysInMonth(t):Nr(t.year,t.month)}getDaysInYear(t){return t.year<nt||t.year>Gn?super.getDaysInYear(t):Uf(t.year)}}const Wf=347997,Gf=1080,Zf=24*Gf,N6=29,A6=12*Gf+793,F6=N6*Zf+A6;function $n(e){return Hn(e*7+1,19)<7}function la(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return Hn(3*(r+1),7)<3&&(r+=1),r}function T6(e){let t=la(e-1),n=la(e);return la(e+1)-n===356?2:n-t===382?1:0}function Ar(e){return la(e)+T6(e)}function Yf(e){return Ar(e+1)-Ar(e)}function I6(e){let t=Yf(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function oa(e,t){if(t>=6&&!$n(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=I6(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?$n(e)?30:0:30}class M6{fromJulianDay(t){let n=t-Wf,r=n*Zf/F6,i=Math.floor((19*r+234)/235)+1,a=Ar(i),l=Math.floor(n-a);for(;l<1;)i--,a=Ar(i),l=Math.floor(n-a);let o=1,s=0;for(;s<l;)s+=oa(i,o),o++;o--,s-=oa(i,o);let d=l-s;return new we(this,i,o,d)}toJulianDay(t){let n=Ar(t.year);for(let r=1;r<t.month;r++)n+=oa(t.year,r);return n+t.day+Wf}getDaysInMonth(t){return oa(t.year,t.month)}getMonthsInYear(t){return $n(t.year)?13:12}getDaysInYear(t){return Yf(t.year)}getMaximumMonthsInYear(){return 13}getMaximumDaysInMonth(){return 30}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&($n(n.year)&&!$n(t.year)&&n.month>6?t.month--:!$n(n.year)&&$n(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const to=1723856,qf=1824665,no=5500;function ua(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function ro(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-ua(e,n,1,1))/30),i=t+1-ua(e,n,r,1);return[n,r,i]}function Xf(e){return Math.floor(e%4/3)}function Jf(e,t){return t%13!==0?30:Xf(e)+5}class io{fromJulianDay(t){let[n,r,i]=ro(to,t),a="AM";return n<=0&&(a="AA",n+=no),new we(this,a,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=no),ua(to,n,t.month,t.day)}getDaysInMonth(t){return Jf(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+Xf(t.year)}getMaximumMonthsInYear(){return 13}getMaximumDaysInMonth(){return 30}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class K6 extends io{fromJulianDay(t){let[n,r,i]=ro(to,t);return n+=no,new we(this,"AA",n,r,i)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class L6 extends io{fromJulianDay(t){let[n,r,i]=ro(qf,t),a="CE";return n<=0&&(a="BCE",n=1-n),new we(this,a,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),ua(qf,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),Jf(n,t.month)}isInverseEra(t){return t.era==="BCE"}balanceDate(t){t.year<=0&&(t.era=t.era==="BCE"?"CE":"BCE",t.year=1-t.year)}getEras(){return["BCE","CE"]}getYearsInEra(t){return t.era==="BCE"?9999:9715}constructor(...t){super(...t),this.identifier="coptic"}}function sa(e){switch(e){case"buddhist":return new C6;case"ethiopic":return new io;case"ethioaa":return new K6;case"coptic":return new L6;case"hebrew":return new M6;case"indian":return new w6;case"islamic-civil":return new Ql;case"islamic-tbla":return new P6;case"islamic-umalqura":return new B6;case"japanese":return new x6;case"persian":return new E6;case"roc":return new D6;default:return new Re}}let ao=new Map;class vn{constructor(t,n={}){this.formatter=Qf(t,n),this.options=n}format(t){return this.formatter.format(t)}formatToParts(t){return this.formatter.formatToParts(t)}formatRange(t,n){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.formatter.format(t)} – ${this.formatter.format(n)}`}formatRangeToParts(t,n){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.formatter.formatToParts(t),i=this.formatter.formatToParts(n);return[...r.map(a=>({...a,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(a=>({...a,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return V6()&&(this.resolvedHourCycle||(this.resolvedHourCycle=_6(t.locale,this.options)),t.hourCycle=this.resolvedHourCycle,t.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),t.calendar==="ethiopic-amete-alem"&&(t.calendar="ethioaa"),t}}const O6={true:{ja:"h11"},false:{}};function Qf(e,t={}){if(typeof t.hour12=="boolean"&&z6()){t={...t};let i=O6[String(t.hour12)][e.split("-")[0]],a=t.hour12?"h12":"h23";t.hourCycle=i??a,delete t.hour12}let n=e+(t?Object.entries(t).sort((i,a)=>i[0]<a[0]?-1:1).join():"");if(ao.has(n))return ao.get(n);let r=new Intl.DateTimeFormat(e,t);return ao.set(n,r),r}let lo=null;function z6(){return lo==null&&(lo=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),lo}let oo=null;function V6(){return oo==null&&(oo=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),oo}function _6(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),e+=(e.includes("-u-")?"":"-u")+"-nu-latn";let n=Qf(e,{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(a=>a.type==="hour").value,10),i=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(a=>a.type==="hour").value,10);if(r===0&&i===23)return"h23";if(r===24&&i===23)return"h24";if(r===0&&i===11)return"h11";if(r===12&&i===11)return"h12";throw new Error("Unexpected hour cycle result")}function Ye(e){e=sf(e??{},R6);let{locale:t}=be();return u.useMemo(()=>new vn(t,e),[t,e])}function R6(e,t){if(e===t)return!0;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i of n)if(t[i]!==e[i])return!1;return!0}function e0(e){return e&&e.__esModule?e.default:e}const uo=new WeakMap;function Fr(e){return e?.calendar.identifier==="gregory"&&e.era==="BC"?"short":void 0}function j6(e){let t=ke(e0(Er),"@react-aria/calendar"),n,r;"highlightedRange"in e?{start:n,end:r}=e.highlightedRange||{}:(n=Array.isArray(e.value)?e.value[0]:e.value??void 0,r=Array.isArray(e.value)?e.value.at(-1):e.value??void 0);let i=Ye({weekday:"long",month:"long",year:"numeric",day:"numeric",era:Fr(n)||Fr(r),timeZone:e.timeZone}),{locale:a}=be(),l=u.useMemo(()=>new Intl.ListFormat(a),[a]),o="anchorDate"in e?e.anchorDate:null;return u.useMemo(()=>{if(!o&&n&&r){if(Ce(n,r)){let s=i.format(n.toDate(e.timeZone));return t.format("selectedDateDescription",{date:s})}else if("highlightedRange"in e){let s=co(i,t,n,r,e.timeZone);return t.format("selectedRangeDescription",{dateRange:s})}else if(Array.isArray(e.value)){let s=e.value.map(c=>i.format(c.toDate(e.timeZone))),d=l.format(s);return t.format("selectedDateDescription",{date:d})}}return""},[n,r,o,e,t,i,l])}function so(e,t,n,r){let i=ke(e0(Er),"@react-aria/calendar"),a=Fr(e)||Fr(t),l=Ye({month:"long",year:"numeric",era:a,calendar:e.calendar.identifier,timeZone:n}),o=Ye({month:"long",year:"numeric",day:"numeric",era:a,calendar:e.calendar.identifier,timeZone:n});return u.useMemo(()=>{if(Ce(e,gn(e))){let s=e,d=t;if(e.calendar.getFormattableMonth&&(s=e.calendar.getFormattableMonth(e)),t.calendar.getFormattableMonth&&(d=t.calendar.getFormattableMonth(t)),Ce(t,Xi(e)))return l.format(s.toDate(n));if(Ce(t,Xi(t)))return r?co(l,i,s,d,n):l.formatRange(s.toDate(n),d.toDate(n))}return r?co(o,i,e,t,n):o.formatRange(e.toDate(n),t.toDate(n))},[e,t,l,o,i,n,r])}function co(e,t,n,r,i){let a=e.formatRangeToParts(n.toDate(i),r.toDate(i)),l=-1;for(let d=0;d<a.length;d++){let c=a[d];if(c.source==="shared"&&c.type==="literal")l=d;else if(c.source==="endRange")break}let o="",s="";for(let d=0;d<a.length;d++)d<l?o+=a[d].value:d>l&&(s+=a[d].value);return t.format("dateRange",{startDate:o,endDate:s})}function Tr(e,t){const n=u.useRef(!0),r=u.useRef(null);let i=De(e);u.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),u.useEffect(()=>{let a=r.current;n.current?n.current=!1:(!a||t.some((l,o)=>!Object.is(l,a[o])))&&i(),r.current=t},t)}function H6(e){return e&&e.__esModule?e.default:e}function t0(e,t){let n=ke(H6(Er),"@react-aria/calendar"),r=ie(e),i=so(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),a=so(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);Tr(()=>{t.isFocused||$t(a)},[a]);let l=j6(t);Tr(()=>{l&&$t(l,"polite",4e3)},[l]);let o=mt([!!e.errorMessage,e.isInvalid,e.validationState]);uo.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:o,selectedDateDescription:l});let[s,d]=u.useState(!1),c=e.isDisabled||t.isNextVisibleRangeInvalid();c&&s&&(d(!1),t.setFocused(!0));let[f,m]=u.useState(!1),h=e.isDisabled||t.isPreviousVisibleRangeInvalid();h&&f&&(m(!1),t.setFocused(!0));let p=Tt({id:e.id,"aria-label":[e["aria-label"],a].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]});return{calendarProps:q(r,p,{role:"application","aria-details":e["aria-details"]||void 0,"aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>t.focusNextPage(),"aria-label":n.format("next"),isDisabled:c,onFocusChange:d},prevButtonProps:{onPress:()=>t.focusPreviousPage(),"aria-label":n.format("previous"),isDisabled:h,onFocusChange:m},errorMessageProps:{id:o},title:i}}function U6(e,t){return t0(e,t)}function W6(e,t){let{startDate:n=t.visibleRange.start,endDate:r=t.visibleRange.end,firstDayOfWeek:i}=e,{direction:a}=be(),{keyboardProps:l}=Le({shortcuts:{End:()=>{t.focusSectionEnd()},Home:()=>{t.focusSectionStart()},Escape:()=>("setAnchorDate"in t&&t.setAnchorDate(null),!1)}}),{keyboardProps:o}=Le({shortcuts:{Enter:()=>{t.selectFocusedDate()}," ":()=>{t.selectFocusedDate()},PageUp:()=>{t.focusPreviousSection()},"Shift+PageUp":()=>{t.focusPreviousSection(!0)},PageDown:()=>{t.focusNextSection()},"Shift+PageDown":()=>{t.focusNextSection(!0)},ArrowLeft:()=>{a==="rtl"?t.focusNextDay():t.focusPreviousDay()},ArrowUp:()=>{t.focusPreviousRow()},ArrowRight:()=>{a==="rtl"?t.focusPreviousDay():t.focusNextDay()},ArrowDown:()=>{t.focusNextRow()}},allowRepeats:!0}),s=so(n,r,t.timeZone,!0),{ariaLabel:d,ariaLabelledBy:c}=uo.get(t),f=Tt({"aria-label":[d,s].filter(Boolean).join(", "),"aria-labelledby":c}),m=Ye({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:h}=be(),p=u.useMemo(()=>{let y=t.visibleDuration.days&&t.visibleDuration.days<7,$=y?n:Sr(zl(t.timeZone),h,i),x=y?t.visibleDuration.days:7;return[...new Array(x).keys()].map(v=>{let w=$.add({days:v}).toDate(t.timeZone);return m.format(w)})},[h,t.timeZone,m,i,n,t.visibleDuration.days]),g=t.getWeeksInMonth(n);return{gridProps:q(f,{role:"grid","aria-readonly":t.isReadOnly||void 0,"aria-disabled":t.isDisabled||void 0,"aria-multiselectable":"highlightedRange"in t||t.selectionMode==="multiple"||void 0,onFocus:()=>t.setFocused(!0),onBlur:()=>t.setFocused(!1)},l,o),headerProps:{"aria-hidden":!0},weekDays:p,weeksInMonth:g}}function tn(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=document.scrollingElement||document.documentElement,i=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return e===r&&n.overflow!=="hidden"&&(i=!0),i&&t&&(i=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),i}function ot(e,t){let n=e;for(tn(n,t)&&(n=n.parentElement);n&&!tn(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function fo(e,t){let n=[],r=document.scrollingElement||document.documentElement;for(;e&&(tn(e,t)&&n.push(e),e!==r);)e=e.parentElement;return n}function da(e,t,n={}){let{block:r="nearest",inline:i="nearest"}=n;if(e===t)return;let a=e.scrollTop,l=e.scrollLeft,o=t.getBoundingClientRect(),s=e.getBoundingClientRect(),d=window.getComputedStyle(t),c=window.getComputedStyle(e),f=document.scrollingElement||document.documentElement,m=e===f,h=e===f?0:s.top,p=e===f?e.clientHeight:s.bottom,g=e===f?0:s.left,y=e===f?e.clientWidth:s.right,$=parseFloat(d.scrollMarginTop)||0,x=parseFloat(d.scrollMarginBottom)||0,v=parseFloat(d.scrollMarginLeft)||0,C=parseFloat(d.scrollMarginRight)||0,w=parseFloat(c.scrollPaddingTop)||0,S=parseFloat(c.scrollPaddingBottom)||0,B=parseFloat(c.scrollPaddingLeft)||0,E=parseFloat(c.scrollPaddingRight)||0,k=parseFloat(c.borderTopWidth)||0,K=parseFloat(c.borderBottomWidth)||0,T=parseFloat(c.borderLeftWidth)||0,I=parseFloat(c.borderRightWidth)||0,R=o.top-$,D=o.bottom+x,M=o.left-v,G=o.right+C,O=e===f?0:T+I,Y=e===f?0:k+K,P=e===f?0:e.offsetWidth-e.clientWidth-O,N=e===f?0:e.offsetHeight-e.clientHeight-Y,_=h+(m?0:k)+w,Q=p-(m?0:K)-S-N,X=g+(m?0:T)+B,A=y-(m?0:I)-E;bt()&>()||c.direction==="ltr"?A-=P:c.direction==="rtl"&&(X+=P);let F=R<_||D>Q,z=M<X||G>A;if(F&&r==="start")a+=R-_;else if(F&&r==="center")a+=(R+D)/2-(_+Q)/2;else if(F&&r==="end")a+=D-Q;else if(F&&r==="nearest"){let L=R-_,J=D-Q;a+=Math.abs(L)<=Math.abs(J)?L:J}if(z&&i==="start")l+=M-X;else if(z&&i==="center")l+=(M+G)/2-(X+A)/2;else if(z&&i==="end")l+=G-A;else if(z&&i==="nearest"){let L=M-X,J=G-A;l+=Math.abs(L)<=Math.abs(J)?L:J}if(process.env.NODE_ENV==="test"){e.scrollLeft=l,e.scrollTop=a;return}e.scrollTo({left:l,top:a})}function Ct(e,t={}){let{containingElement:n}=t;if(e&&e.isConnected){let r=document.scrollingElement||document.documentElement;if(window.getComputedStyle(r).overflow==="hidden"){let{left:a,top:l}=e.getBoundingClientRect(),o=fo(e,!0);for(let c of o)da(c,e);let{left:s,top:d}=e.getBoundingClientRect();if(Math.abs(a-s)>1||Math.abs(l-d)>1){o=n?fo(n,!0):[];for(let c of o)da(c,n,{block:"center",inline:"center"});for(let c of fo(e,!0))da(c,e)}}else{let{left:a,top:l}=e.getBoundingClientRect();e?.scrollIntoView?.({block:"nearest"});let{left:o,top:s}=e.getBoundingClientRect();(Math.abs(a-o)>1||Math.abs(l-s)>1)&&(n?.scrollIntoView?.({block:"center",inline:"center"}),e.scrollIntoView?.({block:"nearest"}))}}}let G6=0;const mo=new Map;function xn(e){let[t,n]=u.useState();return fe(()=>{if(!e)return;let r=mo.get(e);if(r)n(r.element.id);else{let i=`react-aria-description-${G6++}`;n(i);let a=document.createElement("div");a.id=i,a.style.display="none",a.textContent=e,document.body.appendChild(a),r={refCount:0,element:a},mo.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),mo.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function Z6(e){return e&&e.__esModule?e.default:e}function Y6(e,t,n){let{date:r,isDisabled:i}=e,{errorMessageId:a,selectedDateDescription:l}=uo.get(t),o=ke(Z6(Er),"@react-aria/calendar"),s=Ye({weekday:"long",day:"numeric",month:"long",year:"numeric",era:Fr(r),timeZone:t.timeZone}),d=t.isCellFocused(r)&&!e.isOutsideMonth;i=i||t.isCellDisabled(r)||!!e.isOutsideMonth;let c=t.isCellUnavailable(r),f=!i&&!c,m=t.isSelected(r)&&f,h=!1;t.isValueInvalid&&("highlightedRange"in t?h=!t.anchorDate&&t.highlightedRange!=null&&r.compare(t.highlightedRange.start)>=0&&r.compare(t.highlightedRange.end)<=0:Array.isArray(t.value)?h=t.value.some(T=>Ce(T,r)):t.value&&(h=Ce(t.value,r))),h&&!i&&(m=!0),r=sf(r,Gv);let p=u.useMemo(()=>r.toDate(t.timeZone),[r,t.timeZone]),g=cf(r,t.timeZone),y=u.useMemo(()=>{let T="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&(Ce(r,t.value.start)||Ce(r,t.value.end))&&(T=l+", "),T+=s.format(p),g?T=o.format(m?"todayDateSelected":"todayDate",{date:T}):m&&(T=o.format("dateSelected",{date:T})),t.minValue&&Ce(r,t.minValue)?T+=", "+o.format("minimumDate"):t.maxValue&&Ce(r,t.maxValue)&&(T+=", "+o.format("maximumDate")),T},[s,p,o,m,g,r,t,l]),$="";"anchorDate"in t&&d&&!t.isReadOnly&&f&&(t.anchorDate?$=o.format("finishRangeSelectionPrompt"):$=o.format("startRangeSelectionPrompt"));let x=xn($),v=u.useRef(!1),C=u.useRef(!1),w=u.useRef(void 0),{pressProps:S,isPressed:B}=It({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:!0,isDisabled:!f||t.isReadOnly,onPressStart(T){if(t.isReadOnly){t.setFocusedDate(r),t.setFocused(!0);return}if("highlightedRange"in t&&!t.anchorDate&&(T.pointerType==="mouse"||T.pointerType==="touch")){if(t.highlightedRange&&!h){if(Ce(r,t.highlightedRange.start)){t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(r),t.setFocused(!0),t.setDragging(!0),C.current=!0;return}else if(Ce(r,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(r),t.setFocused(!0),t.setDragging(!0),C.current=!0;return}}let I=()=>{t.setDragging(!0),w.current=void 0,t.selectDate(r),t.setFocusedDate(r),t.setFocused(!0),v.current=!0};T.pointerType==="touch"?w.current=setTimeout(I,200):I()}},onPressEnd(){C.current=!1,v.current=!1,clearTimeout(w.current),w.current=void 0},onPress(){!("anchorDate"in t)&&!t.isReadOnly&&(t.selectDate(r),t.setFocusedDate(r),t.setFocused(!0))},onPressUp(T){t.isReadOnly||("anchorDate"in t&&w.current&&(t.selectDate(r),t.setFocusedDate(r),t.setFocused(!0)),"anchorDate"in t&&(C.current?t.setAnchorDate(r):t.anchorDate&&!v.current?(t.selectDate(r),t.setFocusedDate(r),t.setFocused(!0)):T.pointerType==="keyboard"&&!t.anchorDate?(t.selectDate(r),t.focusNearestAvailableDate(r)):T.pointerType==="virtual"&&(t.selectDate(r),t.setFocusedDate(r),t.setFocused(!0))))}}),E;i||(E=Ce(r,t.focusedDate)?0:-1),u.useEffect(()=>{d&&n.current&&(Xe(n.current),Kn()!=="pointer"&&ce()===n.current&&Ct(n.current,{containingElement:ot(n.current)}))},[d,n]);let k=Ye({day:"numeric",timeZone:t.timeZone,calendar:r.calendar.identifier}),K=u.useMemo(()=>k.formatToParts(p).find(T=>T.type==="day").value,[k,p]);return{cellProps:{role:"gridcell","aria-disabled":!f||void 0,"aria-selected":m||void 0,"aria-invalid":h||void 0},buttonProps:q(S,{onFocus(){i||(t.setFocusedDate(r),t.setFocused(!0))},tabIndex:E,role:"button","aria-disabled":!f||void 0,"aria-label":y,"aria-invalid":h||void 0,"aria-describedby":[h?a:void 0,x["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(T){"highlightDate"in t&&(T.pointerType!=="touch"||t.isDragging)&&f&&t.highlightDate(r)},onPointerDown(T){let I=W(T);I instanceof HTMLElement&&"releasePointerCapture"in I&&("hasPointerCapture"in I?I.hasPointerCapture(T.pointerId)&&I.releasePointerCapture(T.pointerId):I.releasePointerCapture(T.pointerId))},onContextMenu(T){T.preventDefault()}}),isPressed:B,isFocused:d,isSelected:m,isDisabled:i,isUnavailable:c,isOutsideVisibleRange:r.compare(t.visibleRange.start)<0||r.compare(t.visibleRange.end)>0,isInvalid:h,formattedDate:K}}function q6(e,t){let n=Ye({month:e.format||"short",calendar:t.focusedDate.calendar.identifier,timeZone:t.timeZone}),r=[],i=t.focusedDate.calendar.getMonthsInYear(t.focusedDate);for(let o=1;o<=i;o++){let s=t.focusedDate.set({month:o}),d=s.calendar.getFormattableMonth?s.calendar.getFormattableMonth(s):s;r.push({id:o,date:s,formatted:n.format(d.toDate(t.timeZone))})}let{locale:a}=be();return{"aria-label":u.useMemo(()=>new Intl.DisplayNames(a,{type:"dateTimeField"}).of("month"),[a]),value:t.focusedDate.month,onChange:o=>{o!=null&&t.setFocusedDate(r[Number(o)-1].date)},items:r}}function X6(e,t){let n=Ye({year:e.format?.year||"numeric",era:e.format?.era||(t.focusedDate.calendar.identifier==="gregory"&&t.focusedDate.era==="BC"?"short":void 0),calendar:t.focusedDate.calendar.identifier,timeZone:t.timeZone}),r=e.visibleYears||20,i=t.focusedDate.subtract({years:Math.floor(r/2)}),a=t.focusedDate.add({years:Math.ceil(r/2)-1});t.maxValue&&a.compare(t.maxValue)>0&&(a=Ve(t.maxValue),i=a.subtract({years:r-1})),t.minValue&&i.compare(t.minValue)<0&&(i=Ve(t.minValue),a=i.add({years:r-1}),t.maxValue&&a.compare(t.maxValue)>0&&(a=Ve(t.maxValue)));let l=[],o=i,s=0;for(;o.compare(a)<=0;)Wv(o,t.focusedDate)&&(s=l.length),l.push({id:l.length,date:o,formatted:n.format(o.toDate(t.timeZone))}),o=o.add({years:1});let{locale:d}=be();return{"aria-label":u.useMemo(()=>new Intl.DisplayNames(d,{type:"dateTimeField"}).of("year"),[d]),value:s,onChange:f=>{f!=null&&t.setFocusedDate(l[f].date)},items:l}}function J6(e,t){let n=u.useMemo(()=>{let a=t.visibleRange.start;return e.offset&&(a=a.add(e.offset)),a},[t.visibleRange.start,e.offset]),r=t.visibleDuration.days||t.visibleDuration.weeks,i=Ye({day:e.format?.day||(r?"numeric":void 0),month:e.format?.month||"long",year:e.format?.year||"numeric",era:e.format?.era||n&&n.calendar.identifier==="gregory"&&n.era==="BC"?"short":void 0,calendar:t.visibleRange?.start.calendar.identifier,timeZone:t.timeZone});return u.useMemo(()=>{if(r)return i.formatRange(n.toDate(t.timeZone),t.visibleRange.end.toDate(t.timeZone));let a=n.calendar.getFormattableMonth?n.calendar.getFormattableMonth(n):n;return i.format(a.toDate(t.timeZone))},[i,r,n,t.timeZone,t.visibleRange.end])}function Q6(e,t,n){let{commitBehavior:r="select",...i}=e,a=t0(i,t),l=u.useRef(!1),o=u.useRef(typeof window<"u"?window:null);lt(o,"pointerdown",c=>{l.current=c.width===0&&c.height===0});const s={clear:()=>t.clearSelection(),reset:()=>t.setAnchorDate(null),select:()=>t.commitSelection()};return lt(o,"pointerup",c=>{if(l.current){l.current=!1;return}if(t.setDragging(!1),!t.anchorDate)return;let f=c.target;n.current&&Ut(n.current)&&(!ae(n.current,f)||!f.closest('button, [role="button"]'))&&s[r]()}),a.calendarProps.onBlur=c=>{n.current&&(!c.relatedTarget||!ae(n.current,c.relatedTarget))&&t.anchorDate&&s[r]()},lt(n,"touchmove",c=>{t.isDragging&&c.preventDefault()},{passive:!1,capture:!0}),a}function nn(e,t,n){return t!=null&&e.compare(t)<0||n!=null&&e.compare(n)>0}function ho(e,t,n,r,i){let a={};for(let o in t)a[o]=Math.floor(t[o]/2),a[o]>0&&t[o]%2===0&&a[o]--;let l=Cn(e,t,n).subtract(a);return Ir(e,l,t,n,r,i)}function Cn(e,t,n,r,i){let a=e;return t.years?a=_l(e):t.months?a=gn(e):(t.weeks||t.days&&t.days>7)&&(a=Sr(e,n)),Ir(e,a,t,n,r,i)}function po(e,t,n,r,i){let a={...t};a.days?a.days--:a.weeks?a.weeks--:a.months?a.months--:a.years&&a.years--;let l=Cn(e,t,n).subtract(a);return Ir(e,l,t,n,r,i)}function Ir(e,t,n,r,i,a){if(i&&e.compare(i)>=0){let l=Hl(t,Cn(Ve(i),n,r));l&&(t=l)}if(a&&e.compare(a)<=0){let l=jl(t,po(Ve(a),n,r));l&&(t=l)}return t}function Dt(e,t,n){if(t){let r=Hl(e,Ve(t));r&&(e=r)}if(n){let r=jl(e,Ve(n));r&&(e=r)}return e}function n0(e,t,n){if(!n)return e;for(;e.compare(t)>=0&&n(e);)e=e.subtract({days:1});return e.compare(t)>=0?e:null}function ex(e,t){return e===t?!0:e.days===t.days&&e.weeks===t.weeks&&e.months===t.months&&e.years===t.years}function r0(e){let t=u.useMemo(()=>new vn(e.locale),[e.locale]),n=u.useMemo(()=>t.resolvedOptions(),[t]),{locale:r,createCalendar:i,visibleDuration:a={months:1},minValue:l,maxValue:o,selectionAlignment:s,isDateUnavailable:d,pageBehavior:c="visible",selectionMode:f="single",firstDayOfWeek:m,weeksInMonth:h}=e,p=u.useMemo(()=>i(n.calendar),[i,n.calendar]),[g,y]=He(e.value,e.defaultValue??null,e.onChange),$=u.useMemo(()=>Array.isArray(g)?g.map(A=>ye(Ve(A),p)):g?ye(Ve(g),p):null,[g,p]),x=u.useMemo(()=>{let A=Array.isArray(g)?g[0]:g;return A&&"timeZone"in A?A.timeZone:n.timeZone},[g,n.timeZone]),v=u.useMemo(()=>e.focusedValue?Dt(ye(Ve(e.focusedValue),p),l,o):void 0,[e.focusedValue,p,l,o]),C=u.useMemo(()=>e.defaultFocusedValue?Dt(ye(Ve(e.defaultFocusedValue),p),l,o):Dt($?Array.isArray($)?$[0]:$:ye(zl(x),p),l,o),[e.defaultFocusedValue,$,x,p,l,o]),[w,S]=He(v,C,e.onFocusChange),B=()=>{switch(s){case"start":return Cn(w,a,r,l,o);case"end":return po(w,a,r,l,o);default:return ho(w,a,r,l,o)}},[E,k]=u.useState(B),[K,T]=u.useState(e.autoFocus||!1),[I,R]=u.useState(a);ex(a,I)||(R(a),k(B()));let D=u.useMemo(()=>{let A={...a};return A.days?A.days--:A.days=-1,E.add(A)},[E,a]),[M,G]=u.useState(p);if(!Yi(p,M)){let A=ye(w,p);k(ho(A,a,r,l,o)),S(A),G(p)}nn(w,l,o)?S(Dt(w,l,o)):w.compare(E)<0?k(po(w,a,r,l,o)):w.compare(D)>0&&k(Cn(w,a,r,l,o));function O(A){A=Dt(A,l,o),S(A)}function Y(A){let F=Dt(A,l,o),z=n0(F,E,d);if(!z)return null;let L=Array.isArray(g)?g[0]:g,J=ye(z,L?.calendar||new Re);return L&&"hour"in L?L.set(J):J}function P(A){if(!e.isDisabled&&!e.isReadOnly){if(A===null){y(f==="multiple"?[]:null);return}if(Array.isArray(A))y(A.map(Y).filter(Boolean));else{let F=Y(A);F&&y(F)}}}let N=u.useMemo(()=>$?Array.isArray($)?$.some(A=>d?.(A)||nn(A,l,o)):d?.($)||nn($,l,o):!1,[$,d,l,o]),_=e.isInvalid||e.validationState==="invalid"||N,Q=_?"invalid":null,X=u.useMemo(()=>c==="visible"?a:bo(a),[c,a]);return{isDisabled:e.isDisabled??!1,isReadOnly:e.isReadOnly??!1,value:$,setValue:P,selectionMode:f,visibleDuration:a,visibleRange:{start:E,end:D},minValue:l,maxValue:o,focusedDate:w,timeZone:x,validationState:Q,isValueInvalid:_,setFocusedDate(A){O(A)},focusNextDay(){O(w.add({days:1}))},focusPreviousDay(){O(w.subtract({days:1}))},focusNextRow(){a.days?this.focusNextPage():(a.weeks||a.months||a.years)&&O(w.add({weeks:1}))},focusPreviousRow(){a.days?this.focusPreviousPage():(a.weeks||a.months||a.years)&&O(w.subtract({weeks:1}))},focusNextPage(){let A=E.add(X);S(Dt(w.add(X),l,o)),k(Cn(Ir(w,A,X,r,l,o),X,r))},focusPreviousPage(){let A=E.subtract(X);S(Dt(w.subtract(X),l,o)),k(Cn(Ir(w,A,X,r,l,o),X,r))},focusSectionStart(){a.days?O(E):a.weeks?O(Sr(w,r)):(a.months||a.years)&&O(gn(w))},focusSectionEnd(){a.days?O(D):a.weeks?O(Xv(w,r)):(a.months||a.years)&&O(Xi(w))},focusNextSection(A){if(!A&&!a.days){O(w.add(bo(a)));return}a.days?this.focusNextPage():a.weeks?O(w.add({months:1})):(a.months||a.years)&&O(w.add({years:1}))},focusPreviousSection(A){if(!A&&!a.days){O(w.subtract(bo(a)));return}a.days?this.focusPreviousPage():a.weeks?O(w.subtract({months:1})):(a.months||a.years)&&O(w.subtract({years:1}))},selectFocusedDate(){d&&d(w)||this.selectDate(w)},selectDate(A){if(!(e.isDisabled||e.isReadOnly))if(f==="multiple"&&A!=null){let F=Y(A);if(!F)return;let z=[];Array.isArray(g)?z=g:g!=null&&(z=[g]);let L=z.findIndex(le=>Ce(le,F)),J=L>=0?z.slice(0,L).concat(z.slice(L+1)):[...z,F];y(J)}else P(A)},isFocused:K,setFocused:T,isInvalid(A){return nn(A,l,o)},isSelected(A){return!$||this.isCellDisabled(A)||this.isCellUnavailable(A)?!1:Array.isArray($)?$.some(F=>Ce(F,A)):Ce(A,$)},isCellFocused(A){return K&&w&&Ce(A,w)},isCellDisabled(A){return e.isDisabled||A.compare(E)<0||A.compare(D)>0||this.isInvalid(A)},isCellUnavailable(A){return e.isDateUnavailable?e.isDateUnavailable(A):!1},isPreviousVisibleRangeInvalid(){let A=E.subtract({days:1});return Ce(A,E)||this.isInvalid(A)},isNextVisibleRangeInvalid(){let A=D.add({days:1});return Ce(A,D)||this.isInvalid(A)},getDatesInWeek(A,F=E){let z=F.add({weeks:A}),L=[],J=a.days&&a.days<7?a.days:7;if(J===7){z=Sr(z,r,m);let le=Ol(z,r,m);for(let Ke=0;Ke<le;Ke++)L.push(null)}for(;L.length<J;){L.push(z);let le=z.add({days:1});if(Ce(z,le))break;z=le}for(;L.length<J;)L.push(null);return L},getWeeksInMonth(A=E){let F=h||e6(A,r,m);return(a.weeks||a.days)&&(F=a.weeks??0,a.days&&(F+=Math.ceil(a.days/7))),F}}}function bo(e){let t={...e};for(let n in e)t[n]=1;return t}function tx(e){let{value:t,defaultValue:n,onChange:r,createCalendar:i,locale:a,visibleDuration:l={months:1},minValue:o,maxValue:s,...d}=e,[c,f]=He(t,n||null,r),[m,h]=u.useState(null),p="center";if(c&&c.start&&c.end){let R=ho(Ve(c.start),l,a,o,s).add(l).subtract({days:1});c.end.compare(R)>0&&(p="start")}let g=u.useMemo(()=>{let I=e.isDateUnavailable;if(I)return R=>I(R,m)},[e.isDateUnavailable,m]),y=u.useCallback(I=>{if(I&&g&&!e.allowsNonContiguousRanges){const R=a0(I,g,l,-1),D=a0(I,g,l,1);return{start:R,end:D}}else return null},[g,l,e.allowsNonContiguousRanges]),$=u.useMemo(()=>y(m),[y,m]),x=u.useMemo(()=>Hl(o,$?.start),[o,$]),v=u.useMemo(()=>jl(s,$?.end),[s,$]),C=r0({...d,value:c&&c.start,createCalendar:i,locale:a,visibleDuration:l,minValue:x,maxValue:v,selectionAlignment:e.selectionAlignment||p,isDateUnavailable:g}),w=m?go(m,C.focusedDate):c&&go(c.start,c.end),S=I=>{if(e.isReadOnly)return;const R=Dt(I,x,v),D=n0(R,C.visibleRange.start,g);if(D)if(!m)h(D);else{let M=go(m,D);M&&f({start:i0(M.start,c?.start),end:i0(M.end,c?.end)}),h(null)}},[B,E]=u.useState(!1),k=u.useMemo(()=>!c||m?!1:g&&(g(c.start)||g(c.end))?!0:nn(c.start,o,s)||nn(c.end,o,s),[g,c,m,o,s]),K=e.isInvalid||e.validationState==="invalid"||k;return{...C,value:c,setValue:f,anchorDate:m,setAnchorDate:h,highlightedRange:w,validationState:K?"invalid":null,isValueInvalid:K,selectFocusedDate(){C.isCellUnavailable(C.focusedDate)||S(C.focusedDate)},commitSelection(){S(C.focusedDate)},selectDate:S,highlightDate(I){m&&C.setFocusedDate(I)},isSelected(I){return!!(w&&I.compare(w.start)>=0&&I.compare(w.end)<=0&&!C.isCellDisabled(I)&&!C.isCellUnavailable(I))},isInvalid(I){return C.isInvalid(I)||nn(I,$?.start,$?.end)},isDragging:B,setDragging:E,clearSelection(){h(null),f(null)},focusNearestAvailableDate(I){let R=y(I),D=G=>this.isInvalid(G)||nn(G,R?.start,R?.end),M=I.add({days:1});D(M)&&(M=I.subtract({days:1})),D(M)||(this.setFocusedDate(M),this.setFocused(!0))}}}function go(e,t){return!e||!t?null:(t.compare(e)<0&&([e,t]=[t,e]),{start:Ve(e),end:Ve(t)})}function i0(e,t){return e=ye(e,t?.calendar||new Re),t&&"hour"in t?t.set(e):e}function a0(e,t,n,r){let i=e.add({days:r}),a=e.subtract(n),l=e.add(n);for(;(r<0?i.compare(a)>=0:i.compare(l)<=0)&&!t(i);)i=i.add({days:r});if(t(i))return i.add({days:-r})}const l0={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 Dn(e={}){let{style:t,isFocusable:n}=e,[r,i]=u.useState(!1),{focusWithinProps:a}=jn({isDisabled:!n,onFocusWithinChange:o=>i(o)}),l=u.useMemo(()=>r?t:t?{...l0,...t}:l0,[r]);return{visuallyHiddenProps:{...a,style:l}}}function Mr(e){let{children:t,elementType:n="div",isFocusable:r,style:i,...a}=e,{visuallyHiddenProps:l}=Dn(e);return u.createElement(n,q(a,l),t)}const yo=u.createContext(null),$o=u.createContext(null),Yn=u.createContext(null),qn=u.createContext(null),nx=u.forwardRef(function(t,n){[t,n]=pe(t,n,yo);let{locale:r}=be(),i=r0({...t,locale:r,createCalendar:t.createCalendar||sa}),{calendarProps:a,prevButtonProps:l,nextButtonProps:o,errorMessageProps:s,title:d}=U6(t,i),c=ue({...t,values:{state:i,isDisabled:t.isDisabled||!1,isInvalid:i.isValueInvalid},defaultClassName:"react-aria-Calendar"}),f=ie(t,{global:!0});return u.createElement(re.div,{...q(f,c,a),ref:n,slot:t.slot||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":i.isValueInvalid||void 0},u.createElement(Pe,{values:[[vt,{slots:{previous:l,next:o}}],[Gi,{"aria-hidden":!0,level:2,children:d}],[Yn,i],[yo,t],[tt,{slots:{errorMessage:s}}]]},u.createElement(Mr,null,u.createElement("h2",null,a["aria-label"])),c.children,u.createElement(Mr,null,u.createElement("button",{"aria-label":o["aria-label"],disabled:o.isDisabled,onClick:()=>i.focusNextPage(),tabIndex:-1}))))}),rx=u.forwardRef(function(t,n){[t,n]=pe(t,n,$o);let{locale:r}=be(),i=tx({...t,locale:r,createCalendar:t.createCalendar||sa}),{calendarProps:a,prevButtonProps:l,nextButtonProps:o,errorMessageProps:s,title:d}=Q6(t,i,n),c=ue({...t,values:{state:i,isDisabled:t.isDisabled||!1,isInvalid:i.isValueInvalid},defaultClassName:"react-aria-RangeCalendar"}),f=ie(t,{global:!0});return u.createElement(re.div,{...q(c,f,a),ref:n,slot:t.slot||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":i.isValueInvalid||void 0},u.createElement(Pe,{values:[[vt,{slots:{previous:l,next:o}}],[Gi,{"aria-hidden":!0,level:2,children:d}],[qn,i],[$o,t],[tt,{slots:{errorMessage:s}}]]},u.createElement(Mr,null,u.createElement("h2",null,a["aria-label"])),c.children,u.createElement(Mr,null,u.createElement("button",{"aria-label":o["aria-label"],disabled:o.isDisabled,onClick:()=>i.focusNextPage(),tabIndex:-1}))))}),ca=u.createContext(null),ix=u.forwardRef(function(t,n){let r=u.useContext(Yn),i=u.useContext(qn),a=qe(yo),l=qe($o),o=r??i,s=o.visibleRange.start;t.offset&&(s=s.add(t.offset));let d=a?.firstDayOfWeek??l?.firstDayOfWeek,{gridProps:c,headerProps:f,weekDays:m,weeksInMonth:h}=W6({startDate:s,endDate:Xi(s),weekdayStyle:t.weekdayStyle,firstDayOfWeek:d},o),p=ie(t,{global:!0});return u.createElement(ca.Provider,{value:{headerProps:f,weekDays:m,startDate:s,weeksInMonth:h}},u.createElement(re.table,{render:t.render,...q(p,c),ref:n,style:t.style,cellPadding:0,className:t.className??"react-aria-CalendarGrid"},typeof t.children!="function"?t.children:u.createElement(u.Fragment,null,u.createElement(o0,null,g=>u.createElement(u0,null,g)),u.createElement(s0,null,t.children))))});function ax(e,t){let{children:n,style:r,className:i}=e,{headerProps:a,weekDays:l}=u.useContext(ca),o=ie(e,{global:!0});return u.createElement(re.thead,{render:e.render,...q(o,a),ref:t,style:r,className:i??"react-aria-CalendarGridHeader"},u.createElement("tr",null,l.map((s,d)=>u.cloneElement(n(s),{key:d}))))}const o0=u.forwardRef(ax);function lx(e,t){let{children:n,style:r,className:i}=e,a=ie(e,{global:!0});return u.createElement(re.th,{render:e.render,...a,ref:t,style:r,className:i||"react-aria-CalendarHeaderCell"},n)}const u0=u.forwardRef(lx);function ox(e,t){let{children:n,style:r,className:i}=e,a=u.useContext(Yn),l=u.useContext(qn),o=a??l,{startDate:s,weeksInMonth:d}=u.useContext(ca),c=ie(e,{global:!0});return u.createElement(re.tbody,{render:e.render,...c,ref:t,style:r,className:i??"react-aria-CalendarGridBody"},[...new Array(d).keys()].map(f=>u.createElement("tr",{key:f},o.getDatesInWeek(f,s).map((m,h)=>m?u.cloneElement(n(m),{key:h}):u.createElement("td",{key:h})))))}const s0=u.forwardRef(ox),ux=u.forwardRef(function({date:t,...n},r){let i=u.useContext(Yn),a=u.useContext(qn),l=i??a,{startDate:o}=u.useContext(ca)??{startDate:l.visibleRange.start},s=l.visibleDuration.days||l.visibleDuration.weeks?!1:!Uv(o,t),d=cf(t,l.timeZone),c=u.useRef(null),{cellProps:f,buttonProps:m,...h}=Y6({date:t,isOutsideMonth:s},l,c),{hoverProps:p,isHovered:g}=ze({...n,isDisabled:h.isDisabled||h.isUnavailable}),{focusProps:y,isFocusVisible:$}=Oe();$&&=h.isFocused;let x=!1,v=!1;"highlightedRange"in l&&l.highlightedRange&&(x=Ce(t,l.highlightedRange.start),v=Ce(t,l.highlightedRange.end));let C=ue({...n,defaultChildren:h.formattedDate,defaultClassName:"react-aria-CalendarCell",values:{date:t,isHovered:g,isOutsideMonth:s,isFocusVisible:$,isSelectionStart:x,isSelectionEnd:v,isToday:d,...h}}),w={"data-focused":h.isFocused||void 0,"data-hovered":g||void 0,"data-pressed":h.isPressed||void 0,"data-unavailable":h.isUnavailable||void 0,"data-disabled":h.isDisabled||void 0,"data-focus-visible":$||void 0,"data-outside-visible-range":h.isOutsideVisibleRange||void 0,"data-outside-month":s||void 0,"data-selected":h.isSelected||void 0,"data-selection-start":x||void 0,"data-selection-end":v||void 0,"data-invalid":h.isInvalid||void 0,"data-today":d||void 0},S=ie(n,{global:!0});return u.createElement("td",{...f,ref:r},u.createElement(re.div,{...q(S,m,y,p,w,C),ref:c}))}),sx=u.forwardRef(function(t,n){let{offset:r,format:i,className:a="react-aria-CalendarHeading",...l}=t,o=u.useContext(Yn),s=u.useContext(qn),c=J6({offset:r,format:i},o||s);return u.createElement(Pc,{...l,className:a,ref:n},c)}),fa=u.createContext(null),d0={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},c0={...d0,customError:!0,valid:!1},Kr={isInvalid:!1,validationDetails:d0,validationErrors:[]},dx=u.createContext({}),vo="__reactAriaFormValidationState";function ma(e){if(e[vo]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}=e[vo];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}}return cx(e)}function cx(e){let{isInvalid:t,validationState:n,name:r,value:i,builtinValidation:a,validate:l,validationBehavior:o="aria"}=e;n&&(t||=n==="invalid");let s=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:c0}:null,d=u.useMemo(()=>{if(!l||i==null)return null;let K=fx(l,i);return f0(K)},[l,i]);a?.validationDetails.valid&&(a=void 0);let c=u.useContext(dx),f=u.useMemo(()=>r?Array.isArray(r)?r.flatMap(K=>xo(c[K])):xo(c[r]):[],[c,r]),[m,h]=u.useState(c),[p,g]=u.useState(!1);c!==m&&(h(c),g(!1));let y=u.useMemo(()=>f0(p?[]:f),[p,f]),$=u.useRef(Kr),[x,v]=u.useState(Kr),C=u.useRef(Kr),w=()=>{if(!S)return;B(!1);let K=d||a||$.current;Co(K,C.current)||(C.current=K,v(K))},[S,B]=u.useState(!1);return u.useEffect(w),{realtimeValidation:s||y||d||a||Kr,displayValidation:o==="native"?s||y||x:s||y||d||a||x,updateValidation(K){o==="aria"&&!Co(x,K)?v(K):$.current=K},resetValidation(){let K=Kr;Co(K,C.current)||(C.current=K,v(K)),o==="native"&&B(!1),g(!0)},commitValidation(){o==="native"&&B(!0),g(!0)}}}function xo(e){return e?Array.isArray(e)?e:[e]:[]}function fx(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return xo(n)}return[]}function f0(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:c0}:null}function Co(e,t){return e===t?!0:!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,r)=>n===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([n,r])=>t.validationDetails[n]===r)}const ha=u.createContext(null);function Do(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:a,fieldProps:l}=Il(e),o=mt([!!t,!!n,r,i]),s=mt([!!t,!!n,r,i]);return l=q(l,{"aria-describedby":[o,s,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:a,fieldProps:l,descriptionProps:{id:o},errorMessageProps:{id:s}}}function pa(e,t,n){let r=De(i=>{n&&!i.defaultPrevented&&n(t)});u.useEffect(()=>{let i=e?.current?.form;return i?.addEventListener("reset",r),()=>{i?.removeEventListener("reset",r)}},[e])}function Eo(e,t,n){let{validationBehavior:r,focus:i}=e;fe(()=>{if(r==="native"&&n?.current&&"setCustomValidity"in n.current&&!n.current.disabled){let d=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(d),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(hx(n.current))}});let a=u.useRef(!1),l=De(()=>{a.current||t.resetValidation()}),o=De(d=>{t.displayValidation.isInvalid||t.commitValidation();let c=n?.current?.form;!d.defaultPrevented&&n&&c&&px(c)===n.current&&(i?i():n.current?.focus(),Ln("keyboard")),d.preventDefault()}),s=De(()=>{t.commitValidation()});u.useEffect(()=>{let d=n?.current;if(!d)return;let c=d.form,f=c?.reset;return c&&(c.reset=()=>{a.current=!window.event||window.event.type==="message"&&W(window.event)instanceof MessagePort,f?.call(c),a.current=!1}),d.addEventListener("invalid",o),d.addEventListener("change",s),c?.addEventListener("reset",l),()=>{d.removeEventListener("invalid",o),d.removeEventListener("change",s),c?.removeEventListener("reset",l),c&&(c.reset=f)}},[n,r])}function mx(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 hx(e){return{isInvalid:!e.validity.valid,validationDetails:mx(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function px(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(n.validity?.valid===!1)return n}return null}const m0=u.createContext(null),h0=u.createContext(null);function bx(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e,i=u.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:a,removeGlobalListener:l}=Rn(),o=u.useCallback((m,h,p,g)=>{p===0&&g===0||(i.current.didMove||(i.current.didMove=!0,t?.({type:"movestart",pointerType:h,shiftKey:m.shiftKey,metaKey:m.metaKey,ctrlKey:m.ctrlKey,altKey:m.altKey})),n?.({type:"move",pointerType:h,deltaX:p,deltaY:g,shiftKey:m.shiftKey,metaKey:m.metaKey,ctrlKey:m.ctrlKey,altKey:m.altKey}))},[t,n,i]),s=De(o),d=u.useCallback((m,h)=>{_i(),i.current.didMove&&r?.({type:"moveend",pointerType:h,shiftKey:m.shiftKey,metaKey:m.metaKey,ctrlKey:m.ctrlKey,altKey:m.altKey})},[r,i]),c=De(d);return{moveProps:u.useMemo(()=>{let m={},h=()=>{Pl(),i.current.didMove=!1};if(typeof PointerEvent>"u"&&process.env.NODE_ENV==="test"){let g=v=>{v.button===0&&(s(v,"mouse",v.pageX-(i.current.lastPosition?.pageX??0),v.pageY-(i.current.lastPosition?.pageY??0)),i.current.lastPosition={pageX:v.pageX,pageY:v.pageY})},y=v=>{if(v.button===0){c(v,"mouse");let C=xe(W(v));l(C,"mousemove",g,!1),l(C,"mouseup",y,!1)}};m.onMouseDown=v=>{if(v.button===0){h(),v.stopPropagation(),v.preventDefault(),i.current.lastPosition={pageX:v.pageX,pageY:v.pageY};let C=xe(W(v));a(C,"mousemove",g,!1),a(C,"mouseup",y,!1)}};let $=v=>{let C=[...v.changedTouches].findIndex(({identifier:w})=>w===i.current.id);if(C>=0){let{pageX:w,pageY:S}=v.changedTouches[C];s(v,"touch",w-(i.current.lastPosition?.pageX??0),S-(i.current.lastPosition?.pageY??0)),i.current.lastPosition={pageX:w,pageY:S}}},x=v=>{if([...v.changedTouches].findIndex(({identifier:w})=>w===i.current.id)>=0){c(v,"touch"),i.current.id=null;let w=xe(W(v));l(w,"touchmove",$),l(w,"touchend",x),l(w,"touchcancel",x)}};m.onTouchStart=v=>{if(v.changedTouches.length===0||i.current.id!=null)return;let{pageX:C,pageY:w,identifier:S}=v.changedTouches[0];h(),v.stopPropagation(),v.preventDefault(),i.current.lastPosition={pageX:C,pageY:w},i.current.id=S;let B=xe(W(v));a(B,"touchmove",$,!1),a(B,"touchend",x,!1),a(B,"touchcancel",x,!1)}}else{let g=$=>{if($.pointerId===i.current.id){let x=$.pointerType||"mouse";s($,x,$.pageX-(i.current.lastPosition?.pageX??0),$.pageY-(i.current.lastPosition?.pageY??0)),i.current.lastPosition={pageX:$.pageX,pageY:$.pageY}}},y=$=>{if($.pointerId===i.current.id){let x=$.pointerType||"mouse";c($,x),i.current.id=null;let v=xe(W($));l(v,"pointermove",g,!1),l(v,"pointerup",y,!1),l(v,"pointercancel",y,!1)}};m.onPointerDown=$=>{if($.button===0&&i.current.id==null){h(),$.stopPropagation(),$.preventDefault(),i.current.lastPosition={pageX:$.pageX,pageY:$.pageY},i.current.id=$.pointerId;let x=xe(W($));a(x,"pointermove",g,!1),a(x,"pointerup",y,!1),a(x,"pointercancel",y,!1)}}}let p=(g,y,$)=>{h(),s(g,"keyboard",y,$),c(g,"keyboard")};return m.onKeyDown=g=>{switch(g.key){case"Left":case"ArrowLeft":g.preventDefault(),g.stopPropagation(),p(g,-1,0);break;case"Right":case"ArrowRight":g.preventDefault(),g.stopPropagation(),p(g,1,0);break;case"Up":case"ArrowUp":g.preventDefault(),g.stopPropagation(),p(g,0,-1);break;case"Down":case"ArrowDown":g.preventDefault(),g.stopPropagation(),p(g,0,1);break}},m},[a,l,i])}}const Xn=u.createContext({}),Lr=u.forwardRef(function(t,n){[t,n]=pe(t,n,Xn);let{isDisabled:r,isInvalid:i,isReadOnly:a,onHoverStart:l,onHoverChange:o,onHoverEnd:s,...d}=t;r??=!!t["aria-disabled"]&&t["aria-disabled"]!=="false",i??=!!t["aria-invalid"]&&t["aria-invalid"]!=="false";let{hoverProps:c,isHovered:f}=ze({onHoverStart:l,onHoverChange:o,onHoverEnd:s,isDisabled:r}),{isFocused:m,isFocusVisible:h,focusProps:p}=Oe({within:!0}),g=ue({...t,values:{isHovered:f,isFocusWithin:m,isFocusVisible:h,isDisabled:r,isInvalid:i},defaultClassName:"react-aria-Group"});return u.createElement(re.div,{...q(d,p,c),...g,ref:n,role:t.role??"group",slot:t.slot??void 0,"data-focus-within":m||void 0,"data-hovered":f||void 0,"data-focus-visible":h||void 0,"data-disabled":r||void 0,"data-invalid":i||void 0,"data-readonly":a||void 0},g.children)}),Jn=u.createContext({});let gx=e=>{let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,...i}=e;return i};const Or=Vn(function(t,n){[t,n]=pe(t,n,Jn);let{hoverProps:r,isHovered:i}=ze({...t,isDisabled:t.disabled}),{isFocused:a,isFocusVisible:l,focusProps:o}=Oe({isTextInput:!0,autoFocus:t.autoFocus}),s=!!t["aria-invalid"]&&t["aria-invalid"]!=="false",d=ue({...t,values:{isHovered:i,isFocused:a,isFocusVisible:l,isDisabled:t.disabled||!1,isInvalid:s},defaultClassName:"react-aria-Input"});return u.createElement(re.input,{...q(gx(t),o,r),...d,ref:n,"data-focused":a||void 0,"data-disabled":t.disabled||void 0,"data-hovered":i||void 0,"data-focus-visible":l||void 0,"data-invalid":s||void 0})});function p0(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:i=!1,isReadOnly:a=!1,type:l="text",validationBehavior:o="aria"}=e,[s,d]=He(e.value,e.defaultValue||"",e.onChange),{focusableProps:c}=zn(e,t),f=ma({...e,value:s}),{isInvalid:m,validationErrors:h,validationDetails:p}=f.displayValidation,{labelProps:g,fieldProps:y,descriptionProps:$,errorMessageProps:x}=Do({...e,isInvalid:m,errorMessage:e.errorMessage||h}),v=ie(e,{labelable:!0});const C={type:l,pattern:e.pattern};let[w]=u.useState(s);return pa(t,e.defaultValue??w,d),Eo(e,f,t),{labelProps:g,inputProps:q(v,n==="input"?C:void 0,{disabled:r,readOnly:a,required:i&&o==="native","aria-required":i&&o==="aria"||void 0,"aria-invalid":m||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],value:s,onChange:S=>d(W(S).value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,form:e.form,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,[parseInt(u.version,10)>=17?"enterKeyHint":"enterkeyhint"]:e.enterKeyHint,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...c,...y}),descriptionProps:$,errorMessageProps:x,isInvalid:m,validationErrors:h,validationDetails:p}}var b0={};b0={Empty:"فارغ"};var g0={};g0={Empty:"Изпразни"};var y0={};y0={Empty:"Prázdné"};var $0={};$0={Empty:"Tom"};var v0={};v0={Empty:"Leer"};var x0={};x0={Empty:"Άδειο"};var C0={};C0={Empty:"Empty"};var D0={};D0={Empty:"Vacío"};var E0={};E0={Empty:"Tühjenda"};var w0={};w0={Empty:"Tyhjä"};var S0={};S0={Empty:"Vide"};var P0={};P0={Empty:"ריק"};var k0={};k0={Empty:"Prazno"};var B0={};B0={Empty:"Üres"};var N0={};N0={Empty:"Vuoto"};var A0={};A0={Empty:"空"};var F0={};F0={Empty:"비어 있음"};var T0={};T0={Empty:"Tuščias"};var I0={};I0={Empty:"Tukšs"};var M0={};M0={Empty:"Tom"};var K0={};K0={Empty:"Leeg"};var L0={};L0={Empty:"Pusty"};var O0={};O0={Empty:"Vazio"};var z0={};z0={Empty:"Vazio"};var V0={};V0={Empty:"Gol"};var _0={};_0={Empty:"Не заполнено"};var R0={};R0={Empty:"Prázdne"};var j0={};j0={Empty:"Prazen"};var H0={};H0={Empty:"Prazno"};var U0={};U0={Empty:"Tomt"};var W0={};W0={Empty:"Boş"};var G0={};G0={Empty:"Пусто"};var Z0={};Z0={Empty:"空"};var Y0={};Y0={Empty:"空白"};var q0={};q0={"ar-AE":b0,"bg-BG":g0,"cs-CZ":y0,"da-DK":$0,"de-DE":v0,"el-GR":x0,"en-US":C0,"es-ES":D0,"et-EE":E0,"fi-FI":w0,"fr-FR":S0,"he-IL":P0,"hr-HR":k0,"hu-HU":B0,"it-IT":N0,"ja-JP":A0,"ko-KR":F0,"lt-LT":T0,"lv-LV":I0,"nb-NO":M0,"nl-NL":K0,"pl-PL":L0,"pt-BR":O0,"pt-PT":z0,"ro-RO":V0,"ru-RU":_0,"sk-SK":R0,"sl-SI":j0,"sr-SP":H0,"sv-SE":U0,"tr-TR":W0,"uk-UA":G0,"zh-CN":Z0,"zh-TW":Y0};function yx(e){return e&&e.__esModule?e.default:e}const X0=()=>{};function $x(e){const t=u.useRef(void 0);let{value:n,textValue:r,minValue:i,maxValue:a,isDisabled:l,isReadOnly:o,isRequired:s,onIncrement:d,onIncrementPage:c,onDecrement:f,onDecrementPage:m,onDecrementToMin:h,onIncrementToMax:p}=e;const g=ke(yx(q0),"@react-aria/spinbutton");let y=u.useRef(!1);const $=u.useCallback(()=>{clearTimeout(t.current),y.current=!1},[]),x=De(()=>{$()});u.useEffect(()=>()=>x(),[]);let{keyboardProps:v}=Le({isDisabled:l||o,shortcuts:{PageUp:()=>{if(c){c();return}if(d){d();return}return!1},ArrowUp:()=>{if(d){d();return}return!1},PageDown:()=>{if(m){m();return}if(f){f();return}return!1},ArrowDown:()=>{if(f){f();return}return!1},Home:()=>{if(h){h();return}return!1},End:()=>{if(p){p();return}return!1}},allowRepeats:!0}),C=u.useRef(!1),w=()=>{C.current=!0},S=()=>{C.current=!1},B=r===""?g.format("Empty"):(r||`${n}`).replace("-","−");u.useEffect(()=>{C.current&&(Ov("assertive"),$t(B,"assertive"))},[B]);let E=u.useCallback(()=>{$()},[$]);const k=De(d??X0),K=De(f??X0),T=De(()=>{(a===void 0||isNaN(a)||n===void 0||isNaN(n)||n<a)&&(k(),I(60))}),I=De(X=>{x(),y.current=!0,t.current=window.setTimeout(T,X)}),R=De(()=>{(i===void 0||isNaN(i)||n===void 0||isNaN(n)||n>i)&&(K(),D(60))}),D=De(X=>{x(),y.current=!0,t.current=window.setTimeout(R,X)});let M=X=>{X.preventDefault()},{addGlobalListener:G,removeAllGlobalListeners:O}=Rn(),Y=u.useRef(!1),[P,N]=u.useState(null);u.useEffect(()=>{P==="touch"?I(600):P?I(400):P||x()},[P]);let[_,Q]=u.useState(null);return u.useEffect(()=>{_==="touch"?D(600):_?D(400):_||x()},[_]),{spinButtonProps:{role:"spinbutton","aria-valuenow":n!==void 0&&!isNaN(n)?n:void 0,"aria-valuetext":B,"aria-valuemin":i,"aria-valuemax":a,"aria-disabled":l||void 0,"aria-readonly":o||void 0,"aria-required":s||void 0,...v,onFocus:w,onBlur:S},incrementButtonProps:{onPressStart:X=>{$(),X.pointerType!=="touch"?(d?.(),N("mouse")):(G(window,"pointercancel",E,{capture:!0}),Y.current=!1,N("touch")),G(window,"contextmenu",M)},onPressUp:X=>{$(),X.pointerType==="touch"&&(Y.current=!0),O(),N(null)},onPressEnd:X=>{$(),X.pointerType==="touch"&&!y.current&&Y.current&&d?.(),Y.current=!1,N(null)},onFocus:w,onBlur:S},decrementButtonProps:{onPressStart:X=>{$(),X.pointerType!=="touch"?(f?.(),Q("mouse")):(G(window,"pointercancel",E,{capture:!0}),Y.current=!1,Q("touch"))},onPressUp:X=>{$(),X.pointerType==="touch"&&(Y.current=!0),O(),Q(null)},onPressEnd:X=>{$(),X.pointerType==="touch"&&!y.current&&Y.current&&f?.(),Y.current=!1,Q(null)},onFocus:w,onBlur:S}}}var J0={};J0={colorSwatchPicker:"تغييرات الألوان",dropzoneLabel:"DropZone",selectPlaceholder:"حدد عنصرًا",tableResizer:"أداة تغيير الحجم"};var Q0={};Q0={colorSwatchPicker:"Цветови мостри",dropzoneLabel:"DropZone",selectPlaceholder:"Изберете предмет",tableResizer:"Преоразмерител"};var em={};em={colorSwatchPicker:"Vzorky barev",dropzoneLabel:"Místo pro přetažení",selectPlaceholder:"Vyberte položku",tableResizer:"Změna velikosti"};var tm={};tm={colorSwatchPicker:"Farveprøver",dropzoneLabel:"DropZone",selectPlaceholder:"Vælg et element",tableResizer:"Størrelsesændring"};var nm={};nm={colorSwatchPicker:"Farbfelder",dropzoneLabel:"Ablegebereich",selectPlaceholder:"Element wählen",tableResizer:"Größenanpassung"};var rm={};rm={colorSwatchPicker:"Χρωματικά δείγματα",dropzoneLabel:"DropZone",selectPlaceholder:"Επιλέξτε ένα αντικείμενο",tableResizer:"Αλλαγή μεγέθους"};var im={};im={selectPlaceholder:"Select an item",tableResizer:"Resizer",dropzoneLabel:"DropZone",colorSwatchPicker:"Color swatches"};var am={};am={colorSwatchPicker:"Muestras de colores",dropzoneLabel:"DropZone",selectPlaceholder:"Seleccionar un artículo",tableResizer:"Cambiador de tamaño"};var lm={};lm={colorSwatchPicker:"Värvinäidised",dropzoneLabel:"DropZone",selectPlaceholder:"Valige üksus",tableResizer:"Suuruse muutja"};var om={};om={colorSwatchPicker:"Värimallit",dropzoneLabel:"DropZone",selectPlaceholder:"Valitse kohde",tableResizer:"Koon muuttaja"};var um={};um={colorSwatchPicker:"Échantillons de couleurs",dropzoneLabel:"DropZone",selectPlaceholder:"Sélectionner un élément",tableResizer:"Redimensionneur"};var sm={};sm={colorSwatchPicker:"דוגמיות צבע",dropzoneLabel:"DropZone",selectPlaceholder:"בחר פריט",tableResizer:"שינוי גודל"};var dm={};dm={colorSwatchPicker:"Uzorci boja",dropzoneLabel:"Zona spuštanja",selectPlaceholder:"Odaberite stavku",tableResizer:"Promjena veličine"};var cm={};cm={colorSwatchPicker:"Színtárak",dropzoneLabel:"DropZone",selectPlaceholder:"Válasszon ki egy elemet",tableResizer:"Átméretező"};var fm={};fm={colorSwatchPicker:"Campioni di colore",dropzoneLabel:"Zona di rilascio",selectPlaceholder:"Seleziona un elemento",tableResizer:"Ridimensionamento"};var mm={};mm={colorSwatchPicker:"カラースウォッチ",dropzoneLabel:"ドロップゾーン",selectPlaceholder:"項目を選択",tableResizer:"サイズ変更ツール"};var hm={};hm={colorSwatchPicker:"색상 견본",dropzoneLabel:"드롭 영역",selectPlaceholder:"항목 선택",tableResizer:"크기 조정기"};var pm={};pm={colorSwatchPicker:"Spalvų pavyzdžiai",dropzoneLabel:"„DropZone“",selectPlaceholder:"Pasirinkite elementą",tableResizer:"Dydžio keitiklis"};var bm={};bm={colorSwatchPicker:"Krāsu paraugi",dropzoneLabel:"DropZone",selectPlaceholder:"Izvēlēties vienumu",tableResizer:"Izmēra mainītājs"};var gm={};gm={colorSwatchPicker:"Fargekart",dropzoneLabel:"Droppsone",selectPlaceholder:"Velg et element",tableResizer:"Størrelsesendrer"};var ym={};ym={colorSwatchPicker:"kleurstalen",dropzoneLabel:"DropZone",selectPlaceholder:"Selecteer een item",tableResizer:"Resizer"};var $m={};$m={colorSwatchPicker:"Próbki kolorów",dropzoneLabel:"Strefa upuszczania",selectPlaceholder:"Wybierz element",tableResizer:"Zmiana rozmiaru"};var vm={};vm={colorSwatchPicker:"Amostras de cores",dropzoneLabel:"DropZone",selectPlaceholder:"Selecione um item",tableResizer:"Redimensionador"};var xm={};xm={colorSwatchPicker:"Amostras de cores",dropzoneLabel:"DropZone",selectPlaceholder:"Selecione um item",tableResizer:"Redimensionador"};var Cm={};Cm={colorSwatchPicker:"Specimene de culoare",dropzoneLabel:"Zonă de plasare",selectPlaceholder:"Selectați un element",tableResizer:"Instrument de redimensionare"};var Dm={};Dm={colorSwatchPicker:"Цветовые образцы",dropzoneLabel:"DropZone",selectPlaceholder:"Выберите элемент",tableResizer:"Средство изменения размера"};var Em={};Em={colorSwatchPicker:"Vzorkovníky farieb",dropzoneLabel:"DropZone",selectPlaceholder:"Vyberte položku",tableResizer:"Nástroj na zmenu veľkosti"};var wm={};wm={colorSwatchPicker:"Barvne palete",dropzoneLabel:"DropZone",selectPlaceholder:"Izberite element",tableResizer:"Spreminjanje velikosti"};var Sm={};Sm={colorSwatchPicker:"Uzorci boje",dropzoneLabel:"DropZone",selectPlaceholder:"Izaberite stavku",tableResizer:"Promena veličine"};var Pm={};Pm={colorSwatchPicker:"Färgrutor",dropzoneLabel:"DropZone",selectPlaceholder:"Välj en artikel",tableResizer:"Storleksändrare"};var km={};km={colorSwatchPicker:"Renk örnekleri",dropzoneLabel:"Bırakma Bölgesi",selectPlaceholder:"Bir öğe seçin",tableResizer:"Yeniden boyutlandırıcı"};var Bm={};Bm={colorSwatchPicker:"Зразки кольорів",dropzoneLabel:"DropZone",selectPlaceholder:"Виберіть елемент",tableResizer:"Засіб змінення розміру"};var Nm={};Nm={colorSwatchPicker:"颜色色板",dropzoneLabel:"放置区域",selectPlaceholder:"选择一个项目",tableResizer:"尺寸调整器"};var Am={};Am={colorSwatchPicker:"色票",dropzoneLabel:"放置區",selectPlaceholder:"選取項目",tableResizer:"大小調整器"};var wo={};wo={"ar-AE":J0,"bg-BG":Q0,"cs-CZ":em,"da-DK":tm,"de-DE":nm,"el-GR":rm,"en-US":im,"es-ES":am,"et-EE":lm,"fi-FI":om,"fr-FR":um,"he-IL":sm,"hr-HR":dm,"hu-HU":cm,"it-IT":fm,"ja-JP":mm,"ko-KR":hm,"lt-LT":pm,"lv-LV":bm,"nb-NO":gm,"nl-NL":ym,"pl-PL":$m,"pt-BR":vm,"pt-PT":xm,"ro-RO":Cm,"ru-RU":Dm,"sk-SK":Em,"sl-SI":wm,"sr-SP":Sm,"sv-SE":Pm,"tr-TR":km,"uk-UA":Bm,"zh-CN":Nm,"zh-TW":Am};const ut=u.createContext({}),So=u.createContext(null),vx=u.forwardRef(function(t,n){let{render:r}=u.useContext(So);return u.createElement(u.Fragment,null,r(t,n))});function ba(e,t){let n=e?.renderDropIndicator,r=e?.isVirtualDragging?.(),i=u.useCallback(a=>{if(r||t?.isDropTarget(a))return n?n(a):u.createElement(vx,{target:a})},[t?.target,r,n]);return e?.useDropIndicator?i:void 0}function Fm(e,t,n){let r=e.focusedKey,i=null;if(t?.isVirtualDragging?.()&&n?.target?.type==="item"&&(i=n.target.key,n.target.dropPosition==="after")){let a=n.collection.getKeyAfter(i),l=null;if(a!=null){let o=n.collection.getItem(i)?.level??0;for(;a!=null;){let s=n.collection.getItem(a);if(!s)break;if(s.type!=="item"){a=n.collection.getKeyAfter(a);continue}if((s.level??0)<=o)break;l=a,a=n.collection.getKeyAfter(a)}}i=a??l??i}return u.useMemo(()=>new Set([r,i].filter(a=>a!=null)),[r,i])}const Po=u.createContext({}),xx=yt(gl,function(t,n){return[t,n]=pe(t,n,Po),u.createElement(re.header,{className:"react-aria-Header",...t,ref:n},t.children)}),Tm=u.createContext(null);function ga(e){let t=u.useRef({});return u.createElement(Tm.Provider,{value:t},e.children)}const Cx=u.forwardRef(function(t,n){let{name:r,isVisible:i=!0,children:a,className:l,style:o,render:s,...d}=t,[c,f]=u.useState(i?"visible":"hidden"),m=u.useContext(Tm);if(!m)throw new Error("<SharedElement> must be rendered inside a <SharedElementTransition>");i&&c==="hidden"&&f("visible"),n=Te(n),fe(()=>{let p=n.current,g=m.current,y=g[r],$=null;if(p&&i&&y){f("visible");let x=p.getAnimations(),v=y.style.map(([C,w])=>{let S=p.style[C];if(C==="translate"){let B=y.rect,E=p.getBoundingClientRect(),k=B.left-E?.left,K=B.top-E?.top;p.style.translate=`${k}px ${K}px`}else p.style[C]=w;return[C,S]});for(let C of p.getAnimations())x.includes(C)||C.cancel();$=requestAnimationFrame(()=>{$=null;for(let[C,w]of v)p.style[C]=w}),delete g[r]}else p&&i&&!y?(queueMicrotask(()=>jt.flushSync(()=>f("entering"))),$=requestAnimationFrame(()=>{$=null,f("visible")})):p&&!i&&queueMicrotask(()=>{g[r]?(delete g[r],jt.flushSync(()=>f("exiting")),Promise.all(p.getAnimations().map(x=>x.finished)).then(()=>f("hidden")).catch(()=>{})):f("hidden")});return()=>{if($!=null&&cancelAnimationFrame($),p&&p.isConnected&&!p.hasAttribute("data-exiting")){let x=window.getComputedStyle(p);if(x.transitionProperty!=="none"){let v=x.transitionProperty.split(/\s*,\s*/);g[r]={rect:p.getBoundingClientRect(),style:v.map(C=>[C,x[C]])}}}}},[n,m,r,i]);let h=ue({children:a,className:l,style:o,render:s,values:{isEntering:c==="entering",isExiting:c==="exiting"}});return c==="hidden"?null:u.createElement(re.div,{...d,...h,ref:n,"data-entering":c==="entering"||void 0,"data-exiting":c==="exiting"||void 0})}),zr=u.createContext({isSelected:!1}),Dx=u.forwardRef(function(t,n){[t,n]=pe(t,n,zr);let{isSelected:r,...i}=t;return u.createElement(Cx,{...i,ref:n,className:t.className||"react-aria-SelectionIndicator",name:"SelectionIndicator",isVisible:r})});function Ex(e){let t=ie(e,{labelable:!0}),n;return e.orientation==="vertical"&&(n="vertical"),e.elementType!=="hr"?{separatorProps:{...t,role:"separator","aria-orientation":n}}:{separatorProps:t}}const ko=u.createContext({}),xs=class xs extends et{filter(t,n){let r=n.getItem(this.prevKey);if(r&&r.type!=="separator"){let i=this.clone();return n.addDescendants(i,t),i}return null}};xs.type="separator";let Bo=xs;const Im=yt(Bo,function(t,n){[t,n]=pe(t,n,ko);let{elementType:r,orientation:i,style:a,className:l,slot:o,...s}=t,d=r||"hr";d==="hr"&&i==="vertical"&&(d="div");let c=re[d],{separatorProps:f}=Ex({...s,elementType:r,orientation:i}),m=ie(t,{global:!0});return u.createElement(c,{render:t.render,...q(m,f),style:a,className:l??"react-aria-Separator",ref:n,slot:o||void 0})}),ya=new WeakMap;function wx(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function Mm(e,t){let n=ya.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${wx(t)}`}class Sx{constructor(t,n,r,i){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=l=>{if(l.nodeType===Node.ELEMENT_NODE){const o=l.shadowRoot;if(o){const s=this._doc.createTreeWalker(o,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(s),NodeFilter.FILTER_ACCEPT}else{if(typeof this.filter=="function")return this.filter(l);if(this.filter?.acceptNode)return this.filter.acceptNode(l);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=t,this.root=n,this.filter=i??null,this.whatToShow=r??NodeFilter.SHOW_ALL,this._currentNode=n,this._walkerStack.unshift(t.createTreeWalker(n,r,this._acceptNode));const a=n.shadowRoot;if(a){const l=this._doc.createTreeWalker(a,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(l)}}get currentNode(){return this._currentNode}set currentNode(t){if(!ae(this.root,t))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const n=[];let r=t,i=t;for(this._currentNode=t;r&&r!==this.root;)if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const l=r,o=this._doc.createTreeWalker(l,this.whatToShow,{acceptNode:this._acceptNode});n.push(o),o.currentNode=i,this._currentSetFor.add(o),r=i=l.host}else r=r.parentNode;const a=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});n.push(a),a.currentNode=i,this._currentSetFor.add(a),this._walkerStack=n}get doc(){return this._doc}firstChild(){let t=this.currentNode,n=this.nextNode();return ae(t,n)?(n&&(this.currentNode=n),n):(this.currentNode=t,null)}lastChild(){let n=this._walkerStack[0].lastChild();return n&&(this.currentNode=n),n}nextNode(){const t=this._walkerStack[0].nextNode();if(t){if(t.shadowRoot){let r;if(typeof this.filter=="function"?r=this.filter(t):this.filter?.acceptNode&&(r=this.filter.acceptNode(t)),r===NodeFilter.FILTER_ACCEPT)return this.currentNode=t,t;let i=this.nextNode();return i&&(this.currentNode=i),i}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let n=this.nextNode();return n&&(this.currentNode=n),n}else return null}previousNode(){const t=this._walkerStack[0];if(t.currentNode===t.root){if(this._currentSetFor.has(t))if(this._currentSetFor.delete(t),this._walkerStack.length>1){this._walkerStack.shift();let r=this.previousNode();return r&&(this.currentNode=r),r}else return null;return null}const n=t.previousNode();if(n){if(n.shadowRoot){let i;if(typeof this.filter=="function"?i=this.filter(n):this.filter?.acceptNode&&(i=this.filter.acceptNode(n)),i===NodeFilter.FILTER_ACCEPT)return n&&(this.currentNode=n),n;let a=this.lastChild();return a&&(this.currentNode=a),a}return n&&(this.currentNode=n),n}else if(this._walkerStack.length>1){this._walkerStack.shift();let r=this.previousNode();return r&&(this.currentNode=r),r}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}}function Km(e,t,n,r){return ht()?new Sx(e,t,n,r):e.createTreeWalker(t,n,r)}const Lm=u.createContext(null),No="react-aria-focus-scope-restore";let $e=null;function $a(e){let{children:t,contain:n,restoreFocus:r,autoFocus:i}=e,a=u.useRef(null),l=u.useRef(null),o=u.useRef([]),{parentNode:s}=u.useContext(Lm)||{},d=u.useMemo(()=>new Io({scopeRef:o}),[o]);fe(()=>{let m=s||Be.root;if(Be.getTreeNode(m.scopeRef)&&$e&&!va($e,m.scopeRef)){let h=Be.getTreeNode($e);h&&(m=h)}m.addChild(d),Be.addNode(d)},[d,s]),fe(()=>{let m=Be.getTreeNode(o);m&&(m.contain=!!n)},[n]),fe(()=>{let m=a.current?.nextSibling,h=[],p=g=>g.stopPropagation();for(;m&&m!==l.current;)h.push(m),m.addEventListener(No,p),m=m.nextSibling;return o.current=h,()=>{for(let g of h)g.removeEventListener(No,p)}},[t]),Tx(o,r,n),Nx(o,n),Ix(o,r,n),Fx(o,i),u.useEffect(()=>{const m=ce(se(o.current?o.current[0]:void 0));let h=null;if(rt(m,o.current)){for(let p of Be.traverse())p.scopeRef&&rt(m,p.scopeRef.current)&&(h=p);h===Be.getTreeNode(o)&&($e=h.scopeRef)}},[o]),fe(()=>()=>{let m=Be.getTreeNode(o)?.parent?.scopeRef??null;(o===$e||va(o,$e))&&(!m||Be.getTreeNode(m))&&($e=m),Be.removeTreeNode(o)},[o]);let c=u.useMemo(()=>Px(o),[]),f=u.useMemo(()=>({focusManager:c,parentNode:d}),[d,c]);return u.createElement(Lm.Provider,{value:f},u.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:a}),t,u.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:l}))}function Px(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:l}=t,o=r||ce(se(n[0]??void 0)),s=n[0].previousElementSibling,d=En(n),c=Ae(d,{tabbable:i,accept:l},n);c.currentNode=rt(o,n)?o:s;let f=c.nextNode();return!f&&a&&(c.currentNode=s,f=c.nextNode()),f&&je(f,!0),f},focusPrevious(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:l}=t,o=r||ce(se(n[0]??void 0)),s=n[n.length-1].nextElementSibling,d=En(n),c=Ae(d,{tabbable:i,accept:l},n);c.currentNode=rt(o,n)?o:s;let f=c.previousNode();return!f&&a&&(c.currentNode=s,f=c.previousNode()),f&&je(f,!0),f},focusFirst(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=En(n),l=Ae(a,{tabbable:r,accept:i},n);l.currentNode=n[0].previousElementSibling;let o=l.nextNode();return o&&je(o,!0),o},focusLast(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=En(n),l=Ae(a,{tabbable:r,accept:i},n);l.currentNode=n[n.length-1].nextElementSibling;let o=l.previousNode();return o&&je(o,!0),o}}}function En(e){return e[0].parentElement}function Vr(e){let t=Be.getTreeNode($e);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function kx(e){if(!e.form)return Array.from(se(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter(r=>!r.form);const t=e.form.elements.namedItem(e.name);let n=xe(e);return t instanceof n.RadioNodeList?Array.from(t).filter(r=>r instanceof n.HTMLInputElement):t instanceof n.HTMLInputElement?[t]:[]}function Bx(e){if(e.checked)return!0;const t=kx(e);return t.length>0&&!t.some(n=>n.checked)}function Nx(e,t){let n=u.useRef(void 0),r=u.useRef(void 0);fe(()=>{let i=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const a=se(i?i[0]:void 0);let l=d=>{if(d.key!=="Tab"||d.altKey||d.ctrlKey||d.metaKey||!Vr(e)||d.isComposing)return;let c=ce(a),f=e.current;if(!f||!rt(c,f))return;let m=En(f),h=Ae(m,{tabbable:!0},f);if(!c)return;h.currentNode=c;let p=d.shiftKey?h.previousNode():h.nextNode();p||(h.currentNode=d.shiftKey?f[f.length-1].nextElementSibling:f[0].previousElementSibling,p=d.shiftKey?h.previousNode():h.nextNode()),d.preventDefault(),p&&(je(p,!0),p instanceof xe(p).HTMLInputElement&&p.select())},o=d=>{(!$e||va($e,e))&&rt(W(d),e.current)?($e=e,n.current=W(d)):Vr(e)&&!rn(W(d),e)?n.current?je(n.current):$e&&$e.current&&Ao($e.current):Vr(e)&&(n.current=W(d))},s=d=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let c=Kn(),f=(c==="virtual"||c===null)&&Mn()&&ml(),m=ce(a);if(!f&&m&&Vr(e)&&!rn(m,e)){$e=e;let h=W(d);h&&h.isConnected?(n.current=h,je(n.current)):$e.current&&Ao($e.current)}})};return a.addEventListener("keydown",l,!1),a.addEventListener("focusin",o,!1),i?.forEach(d=>d.addEventListener("focusin",o,!1)),i?.forEach(d=>d.addEventListener("focusout",s,!1)),()=>{a.removeEventListener("keydown",l,!1),a.removeEventListener("focusin",o,!1),i?.forEach(d=>d.removeEventListener("focusin",o,!1)),i?.forEach(d=>d.removeEventListener("focusout",s,!1))}},[e,t]),fe(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function Om(e){return rn(e)}function rt(e,t){return!e||!t?!1:t.some(n=>ae(n,e))}function rn(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of Be.traverse(Be.getTreeNode(t)))if(n&&rt(e,n.current))return!0;return!1}function Ax(e){return rn(e,$e)}function va(e,t){let n=Be.getTreeNode(t)?.parent;for(;n;){if(n.scopeRef===e)return!0;n=n.parent}return!1}function je(e,t=!1){if(e!=null&&!t)try{Ie(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function zm(e,t=!0){let n=e[0].previousElementSibling,r=En(e),i=Ae(r,{tabbable:t},e);i.currentNode=n;let a=i.nextNode();return t&&!a&&(r=En(e),i=Ae(r,{tabbable:!1},e),i.currentNode=n,a=i.nextNode()),a}function Ao(e,t=!0){je(zm(e,t))}function Fx(e,t){const n=u.useRef(t);u.useEffect(()=>{if(n.current){$e=e;const r=se(e.current?e.current[0]:void 0);!rt(ce(r),$e.current)&&e.current&&Ao(e.current)}n.current=!1},[e])}function Tx(e,t,n){fe(()=>{if(t||n)return;let r=e.current;const i=se(r?r[0]:void 0);let a=l=>{let o=W(l);rt(o,e.current)?$e=e:Om(o)||($e=null)};return i.addEventListener("focusin",a,!1),r?.forEach(l=>l.addEventListener("focusin",a,!1)),()=>{i.removeEventListener("focusin",a,!1),r?.forEach(l=>l.removeEventListener("focusin",a,!1))}},[e,t,n])}function Vm(e){let t=Be.getTreeNode($e);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return t?.scopeRef===e}function Ix(e,t,n){const r=u.useRef(typeof document<"u"?ce(se(e.current?e.current[0]:void 0)):null);fe(()=>{let i=e.current;const a=se(i?i[0]:void 0);if(!t||n)return;let l=()=>{(!$e||va($e,e))&&rt(ce(a),e.current)&&($e=e)};return a.addEventListener("focusin",l,!1),i?.forEach(o=>o.addEventListener("focusin",l,!1)),()=>{a.removeEventListener("focusin",l,!1),i?.forEach(o=>o.removeEventListener("focusin",l,!1))}},[e,n]),fe(()=>{const i=se(e.current?e.current[0]:void 0);if(!t)return;let a=l=>{if(l.key!=="Tab"||l.altKey||l.ctrlKey||l.metaKey||!Vr(e)||l.isComposing)return;let o=i.activeElement;if(!rn(o,e)||!Vm(e))return;let s=Be.getTreeNode(e);if(!s)return;let d=s.nodeToRestore,c=Ae(i.body,{tabbable:!0});c.currentNode=o;let f=l.shiftKey?c.previousNode():c.nextNode();if((!d||!d.isConnected||d===i.body)&&(d=void 0,s.nodeToRestore=void 0),(!f||!rn(f,e))&&d){c.currentNode=d;do f=l.shiftKey?c.previousNode():c.nextNode();while(rn(f,e));l.preventDefault(),l.stopPropagation(),f?je(f,!0):Om(d)?je(d,!0):o.blur()}};return n||i.addEventListener("keydown",a,!0),()=>{n||i.removeEventListener("keydown",a,!0)}},[e,t,n]),fe(()=>{const i=se(e.current?e.current[0]:void 0);if(!t)return;let a=Be.getTreeNode(e);if(a)return a.nodeToRestore=r.current??void 0,()=>{let l=Be.getTreeNode(e);if(!l)return;let o=l.nodeToRestore,s=ce(i);if(t&&o&&(s&&rn(s,e)||s===i.body&&Vm(e))){let d=Be.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let c=d.getTreeNode(e);for(;c;){if(c.nodeToRestore&&c.nodeToRestore.isConnected){_m(c.nodeToRestore);return}c=c.parent}for(c=d.getTreeNode(e);c;){if(c.scopeRef&&c.scopeRef.current&&Be.getTreeNode(c.scopeRef)){let f=zm(c.scopeRef.current,!0);_m(f);return}c=c.parent}}})}}},[e,t])}function _m(e){e.dispatchEvent(new CustomEvent(No,{bubbles:!0,cancelable:!0}))&&je(e)}function Ae(e,t,n){let r=t?.tabbable?dl:zs,i=e?.nodeType===Node.ELEMENT_NODE?e:null,a=se(i),l=Km(a,e||a,NodeFilter.SHOW_ELEMENT,{acceptNode(o){return ae(t?.from,o)||t?.tabbable&&o.tagName==="INPUT"&&o.getAttribute("type")==="radio"&&(!Bx(o)||l.currentNode.tagName==="INPUT"&&l.currentNode.type==="radio"&&l.currentNode.name===o.name)?NodeFilter.FILTER_REJECT:r(o)&&(!n||rt(o,n))&&(!t?.accept||t.accept(o))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(l.currentNode=t.from),l}function Rm(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:i,tabbable:a=t.tabbable,wrap:l=t.wrap,accept:o=t.accept}=n,s=i||ce(se(r)),d=Ae(r,{tabbable:a,accept:o});ae(r,s)&&(d.currentNode=s);let c=d.nextNode();return!c&&l&&(d.currentNode=r,c=d.nextNode()),c&&je(c,!0),c},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:i,tabbable:a=t.tabbable,wrap:l=t.wrap,accept:o=t.accept}=n,s=i||ce(se(r)),d=Ae(r,{tabbable:a,accept:o});if(ae(r,s))d.currentNode=s;else{let f=Fo(d);return f&&je(f,!0),f??null}let c=d.previousNode();if(!c&&l){d.currentNode=r;let f=Fo(d);if(!f)return null;c=f}return c&&je(c,!0),c??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=n,o=Ae(r,{tabbable:i,accept:a}).nextNode();return o&&je(o,!0),o},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=n,l=Ae(r,{tabbable:i,accept:a}),o=Fo(l);return o&&je(o,!0),o??null}}}function Fo(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class To{constructor(){this.fastMap=new Map,this.root=new Io({scopeRef:null}),this.fastMap.set(null,this.root)}get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let i=this.fastMap.get(n??null);if(!i)return;let a=new Io({scopeRef:t});i.addChild(a),a.parent=i,this.fastMap.set(t,a),r&&(a.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let a of this.traverse())a!==n&&n.nodeToRestore&&a.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&rt(a.nodeToRestore,n.scopeRef.current)&&(a.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(a=>r&&r.addChild(a))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){let t=new To;for(let n of this.traverse())t.addTreeNode(n.scopeRef,n.parent?.scopeRef??null,n.nodeToRestore);return t}}class Io{constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}}let Be=new To;function Mo(e){return Si()?e.altKey:e.ctrlKey}function wn(e,t){let n=`[data-key="${CSS.escape(String(t))}"]`,r=e.current?.dataset.collection;return r&&(n=`[data-collection="${CSS.escape(r)}"]${n}`),e.current?.querySelector(n)}const jm=new WeakMap;function Mx(e){let t=Ee();return jm.set(e,t),t}function Kx(e){return jm.get(e)}const Hm=1e3;function Um(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=u.useRef({search:"",timeout:void 0}),a=o=>{if(i.current.search.length>0&&o.key===" "){if(o.preventDefault(),(!("continuePropagation"in o)||"continuePropagation"in o&&!o.isPropagationStopped())&&o.stopPropagation(),i.current.search+=" ",t.getKeyForSearch!=null){let s=t.getKeyForSearch(i.current.search,n.focusedKey);s==null&&(s=t.getKeyForSearch(i.current.search)),s!=null&&(n.setFocusedKey(s),r&&r(s))}clearTimeout(i.current.timeout),i.current.timeout=setTimeout(()=>{i.current.search=""},Hm)}},l=o=>{let s=Lx(o.key);if(!(!s||o.ctrlKey||o.metaKey||o.altKey||!ae(o.currentTarget,W(o))||i.current.search.length===0&&s===" ")){if(i.current.search+=s,t.getKeyForSearch!=null){let d=t.getKeyForSearch(i.current.search,n.focusedKey);if(d==null&&(d=t.getKeyForSearch(i.current.search)),d!=null)n.setFocusedKey(d),r&&r(d),o.preventDefault(),"continuePropagation"in o||o.stopPropagation();else{i.current.search="",clearTimeout(i.current.timeout),i.current.timeout=void 0;return}}clearTimeout(i.current.timeout),i.current.timeout=setTimeout(()=>{i.current.search=""},Hm)}};return u.useEffect(()=>{let o=i.current.timeout;return()=>{clearTimeout(o)}},[i]),{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?a:void 0,onKeyDown:t.getKeyForSearch?l:void 0}}}function Lx(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function Wm(e,t){const n=u.useRef(!0),r=u.useRef(null);fe(()=>(n.current=!0,()=>{n.current=!1}),[]),fe(()=>{n.current?n.current=!1:(!r.current||t.some((i,a)=>!Object.is(i,r[a])))&&e(),r.current=t},t)}function xa(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:a=!1,disallowEmptySelection:l=!1,disallowSelectAll:o=!1,escapeKeyBehavior:s="clearSelection",selectOnFocus:d=t.selectionBehavior==="replace",disallowTypeAhead:c=!1,shouldUseVirtualFocus:f,allowsTabNavigation:m=!1,scrollRef:h=r,linkBehavior:p="action",UNSTABLE_focusOnEntry:g}=e,{direction:y}=be(),$=sn();const x=(V,j,me)=>{if(j!=null){if(t.isLink(j)&&p==="selection"&&d&&!Mo(V)){jt.flushSync(()=>{t.setFocusedKey(j,me)});let he=wn(r,j),Bt=t.getItemProps(j);if(he){$.open(he,V,Bt.href,Bt.routerOptions);return}return!1}if(t.setFocusedKey(j,me),t.isLink(j)&&p==="override")return!1;if(V.shiftKey&&t.selectionMode==="multiple"){t.extendSelection(j);return}else if(d&&!Mo(V)){t.replaceSelection(j);return}}return!1};let v=V=>{if(n.getKeyBelow){let j=t.focusedKey!=null?n.getKeyBelow?.(t.focusedKey):n.getFirstKey?.();if(j==null&&a&&(j=n.getFirstKey?.(t.focusedKey)),j!=null){x(V,j);return}}return!1},C=V=>{if(n.getKeyAbove){let j=t.focusedKey!=null?n.getKeyAbove?.(t.focusedKey):n.getLastKey?.();if(j==null&&a&&(j=n.getLastKey?.(t.focusedKey)),j!=null){x(V,j);return}}return!1},w=V=>{if(n.getFirstKey){if(t.focusedKey===null&&V.shiftKey)return!1;let j=n.getFirstKey(t.focusedKey,br(V));if(t.setFocusedKey(j),j!=null){if(br(V)&&V.shiftKey&&t.selectionMode==="multiple"){t.extendSelection(j);return}else if(d){t.replaceSelection(j);return}}}return!1},S=V=>{if(n.getKeyLeftOf){let j=t.focusedKey!=null?n.getKeyLeftOf?.(t.focusedKey):n.getFirstKey?.();if(j==null&&a&&(j=y==="rtl"?n.getFirstKey?.(t.focusedKey):n.getLastKey?.(t.focusedKey)),j!=null){x(V,j,y==="rtl"?"first":"last");return}}return!1},B=V=>{if(n.getKeyRightOf){let j=t.focusedKey!=null?n.getKeyRightOf?.(t.focusedKey):n.getFirstKey?.();if(j==null&&a&&(j=y==="rtl"?n.getLastKey?.(t.focusedKey):n.getFirstKey?.(t.focusedKey)),j!=null){x(V,j,y==="rtl"?"last":"first");return}}return!1},E=V=>{if(n.getLastKey){if(t.focusedKey===null&&V.shiftKey)return!1;let j=n.getLastKey(t.focusedKey,br(V));if(t.setFocusedKey(j),j!=null){if(br(V)&&V.shiftKey&&t.selectionMode==="multiple"){t.extendSelection(j);return}else if(d){t.replaceSelection(j);return}}}return!1},k=V=>{if(n.getKeyPageBelow&&t.focusedKey!=null){let j=n.getKeyPageBelow(t.focusedKey);if(j!=null)return x(V,j)}return!1},K=V=>{if(n.getKeyPageAbove&&t.focusedKey!=null){let j=n.getKeyPageAbove(t.focusedKey);if(j!=null)return x(V,j)}return!1},T=()=>{if(t.selectionMode==="multiple"&&o!==!0){t.selectAll();return}return!1},I=()=>{if(s==="clearSelection"&&!l&&t.selectedKeys.size!==0){t.clearSelection();return}return!1},R=()=>{if(!m&&r.current){let V=Ae(r.current,{tabbable:!0}),j,me;do me=V.lastChild(),me&&(j=me);while(me);let he=ce();j&&(!Ut(j)||he&&!dl(he))&&Xe(j)}return{shouldContinuePropagation:!0,shouldPreventDefault:!1}},D=()=>(!m&&r.current&&r.current.focus(),{shouldContinuePropagation:!0,shouldPreventDefault:!1}),M=(V,j)=>({[Je()?V+"+Shift+Alt":V+"+Shift+Control"]:j,[V+"+Shift"]:j,[Je()?V+"+Alt":V+"+Control"]:j,[V]:j}),{keyboardProps:G}=Le({shortcuts:{...M("ArrowDown",v),...M("ArrowUp",C),...M("ArrowLeft",S),...M("ArrowRight",B),...M("PageDown",k),...M("PageUp",K)},allowRepeats:!0}),{keyboardProps:O}=Le({shortcuts:{...M("Home",w),...M("End",E),"Mod+A":T,Escape:I,Tab:R,"Tab+Shift":D}}),Y=u.useRef({top:0,left:0});lt(h,"scroll",()=>{Y.current={top:h.current?.scrollTop??0,left:h.current?.scrollLeft??0}});let P=V=>{if(t.isFocused){ae(V.currentTarget,W(V))||t.setFocused(!1);return}if(!ae(V.currentTarget,W(V)))return;let j=Kn();t.setFocused(!0);let me=he=>{he!=null&&(t.setFocusedKey(he),d&&!t.isSelected(he)&&t.replaceSelection(he))};if(g&&(j==="keyboard"||j==="virtual"))me(g==="first"?n.getFirstKey?.():n.getLastKey?.());else if(t.focusedKey==null){let he=V.relatedTarget;he&&V.currentTarget.compareDocumentPosition(he)&Node.DOCUMENT_POSITION_FOLLOWING?me(t.lastSelectedKey??n.getLastKey?.()):me(t.firstSelectedKey??n.getFirstKey?.())}else h.current&&(h.current.scrollTop=Y.current.top,h.current.scrollLeft=Y.current.left);if(t.focusedKey!=null&&h.current){let he=wn(r,t.focusedKey);he instanceof HTMLElement&&(!Ut(he)&&!f&&Xe(he),(j==="keyboard"||g&&j==="virtual")&&Ct(he,{containingElement:r.current}))}},N=V=>{ae(V.currentTarget,V.relatedTarget)||t.setFocused(!1)},_=u.useRef(!1);lt(r,q$,f?V=>{let{detail:j}=V;V.stopPropagation(),t.setFocused(!0),j?.focusStrategy==="first"&&(_.current=!0)}:void 0);let Q=n.getFirstKey?.()??null;Wm(()=>{if(_.current)if(Q==null){let V=ce();Os(r.current),ol(V,null),t.collection.size>0&&(_.current=!1)}else t.setFocusedKey(Q),_.current=!1},[Q,t.collection.size]),Wm(()=>{t.collection.size>0&&(_.current=!1)},[t.focusedKey]),lt(r,Y$,f?V=>{V.stopPropagation(),t.setFocused(!1),V.detail?.clearFocusKey&&t.setFocusedKey(null)}:void 0);const X=u.useRef(i),A=u.useRef(!1);u.useEffect(()=>{if(X.current){let V=null;i==="first"&&(V=n.getFirstKey?.()??null),i==="last"&&(V=n.getLastKey?.()??null);let j=t.selectedKeys;if(j.size){for(let me of j)if(t.canSelectItem(me)){V=me;break}}t.setFocused(!0),t.setFocusedKey(V),V==null&&!f&&r.current&&Ie(r.current),t.collection.size>0&&(X.current=!1,A.current=!0)}});let F=u.useRef(t.focusedKey),z=u.useRef(null);u.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==F.current||A.current)&&h.current&&r.current){let V=Kn(),j=wn(r,t.focusedKey);if(!(j instanceof HTMLElement))return;(V==="keyboard"||A.current)&&(z.current&&cancelAnimationFrame(z.current),z.current=requestAnimationFrame(()=>{h.current&&(da(h.current,j),V!=="virtual"&&Ct(j,{containingElement:r.current}))}))}!f&&t.isFocused&&t.focusedKey==null&&F.current!=null&&r.current&&Ie(r.current),F.current=t.focusedKey,A.current=!1}),u.useEffect(()=>()=>{z.current&&cancelAnimationFrame(z.current)},[]),lt(r,"react-aria-focus-scope-restore",V=>{V.preventDefault(),t.setFocused(!0)});let L={...q(O,G),onFocus:P,onBlur:N,onMouseDown(V){h.current===W(V)&&V.preventDefault()}},{typeSelectProps:J}=Um({keyboardDelegate:n,selectionManager:t});c||(L=q(J,L));let le;f||(le=t.focusedKey==null?0:-1);let Ke=Mx(t.collection);return{collectionProps:q(L,{tabIndex:le,"data-collection":Ke})}}class Ko{constructor(t){this.ref=t}getItemRect(t){let n=this.ref.current;if(!n)return null;let r=t!=null?wn(this.ref,t):null;if(!r)return null;let i=n.getBoundingClientRect(),a=r.getBoundingClientRect();return{x:a.left-i.left-n.clientLeft+n.scrollLeft,y:a.top-i.top-n.clientTop+n.scrollTop,width:a.width,height:a.height}}getContentSize(){let t=this.ref.current;return{width:t?.scrollWidth??0,height:t?.scrollHeight??0}}getVisibleRect(){let t=this.ref.current;return{x:t?.scrollLeft??0,y:t?.scrollTop??0,width:t?.clientWidth??0,height:t?.clientHeight??0}}}class _r{constructor(...t){if(t.length===1){let n=t[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.disabledBehavior=n.disabledBehavior||"all",this.orientation=n.orientation||"vertical",this.direction=n.direction,this.layout=n.layout||"stack",this.layoutDelegate=n.layoutDelegate||new Ko(n.ref)}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new Ko(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}isDisabled(t){return this.disabledBehavior==="all"&&(t.props?.isDisabled||this.disabledKeys.has(t.key))&&t.props?.disabledBehavior!=="selection"}findNextNonDisabled(t,n,r=!1){let i=t;for(;i!=null;){let a=this.collection.getItem(i);if(a?.type==="item"&&(r||!this.isDisabled(a)))return i;i=n(i)}return null}getNextKey(t,n){let r=t;return r=this.collection.getKeyAfter(r),this.findNextNonDisabled(r,i=>this.collection.getKeyAfter(i),n?.includeDisabled)}getPreviousKey(t,n){let r=t;return r=this.collection.getKeyBefore(r),this.findNextNonDisabled(r,i=>this.collection.getKeyBefore(i),n?.includeDisabled)}findKey(t,n,r){let i=t,a=this.layoutDelegate.getItemRect(i);if(!a||i==null)return null;let l=a;do{if(i=n(i),i==null)break;a=this.layoutDelegate.getItemRect(i)}while(a&&r(l,a)&&i!=null);return i}isSameRow(t,n){return t.y===n.y||t.x!==n.x}isSameColumn(t,n){return t.x===n.x||t.y!==n.y}isReversed(t){let n=this.getNextKey(t),r=wn(this.ref,t);if(n!=null){let a=wn(this.ref,n);return!r||!a?!1:r.getBoundingClientRect().top>a.getBoundingClientRect().top}let i=this.getPreviousKey(t);if(i!=null){let a=wn(this.ref,i);return!r||!a?!1:a.getBoundingClientRect().top>r.getBoundingClientRect().top}return!1}getKeyBelow(t,n){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,r=>this.getNextKey(r,n),this.isSameRow):this.orientation==="vertical"?this.isReversed(t)?this.getPreviousKey(t,n):this.getNextKey(t,n):this.getNextKey(t,n)}getKeyAbove(t,n){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,r=>this.getPreviousKey(r,n),this.isSameRow):this.orientation==="vertical"?this.isReversed(t)?this.getNextKey(t,n):this.getPreviousKey(t,n):this.getPreviousKey(t,n)}getNextColumn(t,n,r){return n?this.getPreviousKey(t,r):this.getNextKey(t,r)}getKeyRightOf(t,n){let r=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[r]?(t=this.layoutDelegate[r](t),this.findNextNonDisabled(t,i=>this.layoutDelegate[r](i),n?.includeDisabled)):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl",n):this.findKey(t,i=>this.getNextColumn(i,this.direction==="rtl",n),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl",n):null}getKeyLeftOf(t,n){let r=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[r]?(t=this.layoutDelegate[r](t),this.findNextNonDisabled(t,i=>this.layoutDelegate[r](i),n?.includeDisabled)):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr",n):this.findKey(t,i=>this.getNextColumn(i,this.direction==="ltr",n),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr",n):null}getFirstKey(){let t=this.collection.getFirstKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyAfter(n))}getLastKey(){let t=this.collection.getLastKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyBefore(n))}getKeyPageAbove(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;let i=this.isReversed(t);if(n&&!tn(n))return this.getFirstKey();let a=t;if(this.orientation==="horizontal"){let l=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>l&&a!=null;)a=this.getKeyAbove(a),r=a==null?null:this.layoutDelegate.getItemRect(a)}else{let l=this.layoutDelegate.getVisibleRect(),o=i?r.y-l.height:Math.max(0,r.y+r.height-l.height);for(;r&&r.y>o&&a!=null;)a=this.getKeyAbove(a),r=a==null?null:this.layoutDelegate.getItemRect(a)}return a??(i?this.getLastKey():this.getFirstKey())}getKeyPageBelow(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;let i=this.isReversed(t);if(n&&!tn(n))return this.getLastKey();let a=t;if(this.orientation==="horizontal"){let l=Math.min(this.layoutDelegate.getContentSize().width,r.x-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<l&&a!=null;)a=this.getKeyBelow(a),r=a==null?null:this.layoutDelegate.getItemRect(a)}else{let l=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<l&&a!=null;)a=this.getKeyBelow(a),r=a==null?null:this.layoutDelegate.getItemRect(a)}return a??(i?this.getFirstKey():this.getLastKey())}getKeyForSearch(t,n){if(!this.collator)return null;let r=this.collection,i=n||this.getFirstKey();for(;i!=null;){let a=r.getItem(i);if(!a)return null;let l=a.textValue.slice(0,t.length);if(a.textValue&&this.collator.compare(l,t)===0)return i;i=this.getNextKey(i)}return null}}let Lo=new Map;function Qn(e){let{locale:t}=be(),n=t+(e?Object.entries(e).sort((i,a)=>i[0]<a[0]?-1:1).join():"");if(Lo.has(n))return Lo.get(n);let r=new Intl.Collator(t,e);return Lo.set(n,r),r}function Gm(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:i,keyboardDelegate:a,layoutDelegate:l,orientation:o}=e,s=Qn({usage:"search",sensitivity:"base"}),d=t.disabledBehavior,c=u.useMemo(()=>a||new _r({collection:n,disabledKeys:r,disabledBehavior:d,ref:i,collator:s,layoutDelegate:l,orientation:o}),[a,l,n,r,i,s,d,o]),{collectionProps:f}=xa({...e,ref:i,selectionManager:t,keyboardDelegate:c});return{listProps:f}}function Ox(e,t,n){let r=ie(e,{labelable:!0}),i=e.selectionBehavior||"toggle",a=e.orientation||"vertical",l=e.linkBehavior||(i==="replace"?"action":"override");i==="toggle"&&l==="action"&&(l="override");let{listProps:o}=Gm({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:l}),{focusWithinProps:s}=jn({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),d=Ee(e.id);ya.set(t,{id:d,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:l,UNSTABLE_itemBehavior:e.UNSTABLE_itemBehavior});let{labelProps:c,fieldProps:f}=Il({...e,id:d,labelElementType:"span"});return{labelProps:c,listBoxProps:q(r,s,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox","aria-orientation":a,...q(f,o)})}}const zx=500;function Oo(e){let{isDisabled:t,pointerType:n,onLongPressStart:r,onLongPressEnd:i,onLongPress:a,threshold:l=zx,accessibilityDescription:o}=e;const s=u.useRef(void 0);let{addGlobalListener:d,removeAllGlobalListeners:c}=Rn(),f=p=>n?p.pointerType===n:p.pointerType==="mouse"||p.pointerType==="touch",{pressProps:m}=It({isDisabled:t,onPressStart(p){if(p.continuePropagation(),f(p)){r&&r({...p,type:"longpressstart"}),s.current=setTimeout(()=>{p.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),d(p.target,"click",y=>y.preventDefault(),{once:!0}),se(p.target).activeElement!==p.target&&Xe(p.target),a&&a({...p,type:"longpress"}),s.current=void 0},l),p.pointerType==="touch"&&d(p.target,"contextmenu",y=>y.preventDefault(),{once:!0});let g=xe(p.target);d(g,"pointerup",()=>{setTimeout(()=>{c()},100)},{once:!0})}},onPressEnd(p){s.current&&clearTimeout(s.current),i&&f(p)&&i({...p,type:"longpressend"})}}),h=xn(a&&!t?o:void 0);return{longPressProps:q(m,h)}}function Rr(e){let{id:t,selectionManager:n,key:r,ref:i,shouldSelectOnPressUp:a,shouldUseVirtualFocus:l,focus:o,isDisabled:s,onAction:d,allowsDifferentPressOrigin:c,linkBehavior:f="action"}=e,m=sn();t=Ee(t);let h=F=>{if(F.pointerType==="keyboard"&&Mo(F))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(f==="selection"&&i.current){let z=n.getItemProps(r);m.open(i.current,F,z.href,z.routerOptions),n.setSelectedKeys(n.selectedKeys);return}else if(f==="override"||f==="none")return}n.selectionMode==="single"?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):F&&F.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||F&&(br(F)||F.pointerType==="touch"||F.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};u.useEffect(()=>{r===n.focusedKey&&n.isFocused&&(l?Os(i.current):o?o():ce()!==i.current&&i.current&&Ie(i.current))},[i,r,n.focusedKey,n.childFocusStrategy,n.isFocused,l]),s=s||n.isDisabled(r);let p={};!l&&!s?p={tabIndex:r===n.focusedKey?0:-1,onFocus(F){W(F)===i.current&&n.setFocusedKey(r)}}:s&&(p.onMouseDown=F=>{F.preventDefault()}),u.useEffect(()=>{s&&n.focusedKey===r&&n.setFocusedKey(null)},[n,s,r]);let g=n.isLink(r)&&f==="override",y=d&&e.UNSTABLE_itemBehavior==="action",$=n.isLink(r)&&f!=="selection"&&f!=="none",x=!s&&n.canSelectItem(r)&&!g&&!y,v=(d||$)&&!s,C=v&&(n.selectionBehavior==="replace"?!x:!x||n.isEmpty),w=v&&x&&n.selectionBehavior==="replace",S=C||w,B=u.useRef(null),E=S&&x,k=u.useRef(!1),K=u.useRef(!1),T=n.getItemProps(r),I=F=>{d&&(d(),i.current?.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))),$&&i.current&&m.open(i.current,F,T.href,T.routerOptions)},R={ref:i};a?(R.onPressStart=F=>{B.current=F.pointerType,k.current=E,F.pointerType==="keyboard"&&(!S||Ym(F.key))&&h(F)},c?(R.onPressUp=C?void 0:F=>{F.pointerType==="mouse"&&x&&h(F)},R.onPress=C?I:F=>{F.pointerType!=="keyboard"&&F.pointerType!=="mouse"&&x&&h(F)}):R.onPress=F=>{if(C||w&&F.pointerType!=="mouse"){if(F.pointerType==="keyboard"&&!Zm(F.key))return;I(F)}else F.pointerType!=="keyboard"&&x&&h(F)}):(R.onPressStart=F=>{B.current=F.pointerType,k.current=E,K.current=C,x&&(F.pointerType==="mouse"&&!C||F.pointerType==="keyboard"&&(!v||Ym(F.key)))&&h(F)},R.onPress=F=>{(F.pointerType==="touch"||F.pointerType==="pen"||F.pointerType==="virtual"||F.pointerType==="keyboard"&&S&&Zm(F.key)||F.pointerType==="mouse"&&K.current)&&(S?I(F):x&&h(F))});let D=Kx(n.collection);if(p["data-collection"]=D,p["data-key"]=r,R.preventFocusOnPress=l,l&&(R=q(R,{onPressStart(F){F.pointerType!=="touch"&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(F){F.pointerType==="touch"&&(n.setFocused(!0),n.setFocusedKey(r))}})),T)for(let F of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])T[F]&&(R[F]=at(R[F],T[F]));let{pressProps:M,isPressed:G}=It(R),O=w?F=>{B.current==="mouse"&&(F.stopPropagation(),F.preventDefault(),I(F))}:void 0,{longPressProps:Y}=Oo({isDisabled:!E,onLongPress(F){F.pointerType==="touch"&&(h(F),n.setSelectionBehavior("toggle"))}}),P=F=>{B.current==="touch"&&k.current&&F.preventDefault()},N=f!=="none"&&n.isLink(r)?F=>{At.isOpening||F.preventDefault()}:void 0,_=q(p,x||C||l&&!s?M:{},E?Y:{},{onDoubleClick:O,onDragStartCapture:P,onClick:N,id:t},l?{onMouseDown:F=>F.preventDefault()}:void 0),Q=F=>{let z=F;for(;z&&z!==i.current;){let L=z.getAttribute("data-collection");if(L!=null)return L!==D;z=z.parentElement}return dl(F)},X=_.onPointerDown;_.onPointerDown=F=>{let z=W(F);if(z&&z!==i.current&&Q(z)){F.stopPropagation();return}X?.(F)};let A=_.onMouseDown;return _.onMouseDown=F=>{let z=W(F);if(z&&z!==i.current&&Q(z)){F.stopPropagation();return}A?.(F)},{itemProps:_,isPressed:G,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:s,allowsSelection:x,hasAction:S}}function Zm(e){return e==="Enter"}function Ym(e){return e===" "}function Ne(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function Ot(e){return jr(e,0)}function jr(e,t){if(t<0)return;let n=0;for(let r of e){if(n===t)return r;n++}}function er(e){let t;for(let n of e)t=n;return t}function zo(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...qm(e,t),t],i=[...qm(e,n),n],a=r.slice(0,i.length).findIndex((l,o)=>l!==i[o]);return a!==-1?(t=r[a],n=i[a],t.index-n.index):r.findIndex(l=>l===n)>=0?1:(i.findIndex(l=>l===t)>=0,-1)}function qm(e,t){let n=[],r=t;for(;r?.parentKey!=null;)r=e.getItem(r.parentKey),r&&n.unshift(r);return n}const Xm=new WeakMap;function Vo(e){let t=Xm.get(e);if(t!=null)return t;let n=0,r=i=>{for(let a of i)a.type==="section"?r(Ne(a,e)):a.type==="item"&&n++};return r(e),Xm.set(e,n),n}function Vx(e,t,n){let{key:r}=e,i=ya.get(t),a=e.isDisabled??t.selectionManager.isDisabled(r),l=e.isSelected??t.selectionManager.isSelected(r),o=e.shouldSelectOnPressUp??i?.shouldSelectOnPressUp,s=e.shouldFocusOnHover??i?.shouldFocusOnHover,d=e.shouldUseVirtualFocus??i?.shouldUseVirtualFocus,c=e.isVirtualized??i?.isVirtualized,f=mt(),m=mt(),h={role:"option","aria-disabled":a||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?l:void 0,"aria-label":e["aria-label"],"aria-labelledby":f,"aria-describedby":m},p=t.collection.getItem(r);if(c){let k=Number(p?.index);h["aria-posinset"]=Number.isNaN(k)?void 0:k+1,h["aria-setsize"]=Vo(t.collection)}let g=i?.onAction?()=>i?.onAction?.(r):void 0,y=Mm(t,r),{itemProps:$,isPressed:x,isFocused:v,hasAction:C,allowsSelection:w}=Rr({selectionManager:t.selectionManager,key:r,ref:n,shouldSelectOnPressUp:o,allowsDifferentPressOrigin:o&&s,isVirtualized:c,shouldUseVirtualFocus:d,isDisabled:a,onAction:g||p?.props?.onAction?at(p?.props?.onAction,g):void 0,linkBehavior:i?.linkBehavior,UNSTABLE_itemBehavior:i?.UNSTABLE_itemBehavior,id:y}),{hoverProps:S}=ze({isDisabled:a||!s,onHoverStart(){Wt()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(r))}}),B=ie(p?.props);delete B.id;let E=Pi(p?.props);return{optionProps:{...h,...q(B,$,S,E),id:y},labelProps:{id:f},descriptionProps:{id:m},isFocused:v,isFocusVisible:v&&t.selectionManager.isFocused&&Wt(),isSelected:l,isDisabled:a,isPressed:x,allowsSelection:w,hasAction:C}}function _x(e){let{heading:t,"aria-label":n}=e,r=Ee();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation",onMouseDown:i=>{i.preventDefault()}}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}function Jm(e){const t=u.version.split(".");return parseInt(t[0],10)>=19?e:e?"true":void 0}class _o{constructor(t){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t;let n=l=>{if(this.keyMap.set(l.key,l),l.childNodes&&l.type==="section")for(let o of l.childNodes)n(o)};for(let l of t)n(l);let r=null,i=0,a=0;for(let[l,o]of this.keyMap)r?(r.nextKey=l,o.prevKey=r.key):(this.firstKey=l,o.prevKey=void 0),o.type==="item"&&(o.index=i++),(o.type==="section"||o.type==="item")&&a++,r=o,r.nextKey=void 0;this._size=a,this.lastKey=r?.key??null}*[Symbol.iterator](){yield*this.iterable}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);return n?n.prevKey??null:null}getKeyAfter(t){let n=this.keyMap.get(t);return n?n.nextKey??null:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)??null}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}getChildren(t){return this.keyMap.get(t)?.childNodes||[]}}class st extends Set{constructor(t,n,r){super(t),t instanceof st?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function Rx(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function Hr(e){let{selectionMode:t="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:a="all"}=e,l=u.useRef(!1),[,o]=u.useState(!1),s=u.useRef(null),d=u.useRef(null),[,c]=u.useState(null),f=u.useMemo(()=>Qm(e.selectedKeys),[e.selectedKeys]),m=u.useMemo(()=>Qm(e.defaultSelectedKeys,new st),[e.defaultSelectedKeys]),[h,p]=He(f,m,e.onSelectionChange),g=u.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[y,$]=u.useState(i);i==="replace"&&y==="toggle"&&typeof h=="object"&&h.size===0&&$("replace");let x=u.useRef(i);return u.useEffect(()=>{i!==x.current&&($(i),x.current=i)},[i]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:y,setSelectionBehavior:$,get isFocused(){return l.current},setFocused(v){l.current=v,o(v)},get focusedKey(){return s.current},get childFocusStrategy(){return d.current},setFocusedKey(v,C="first"){s.current=v,d.current=C,c(v)},selectedKeys:h,setSelectedKeys(v){(r||!Rx(v,h))&&p(v)},disabledKeys:g,disabledBehavior:a}}function Qm(e,t){return e?e==="all"?"all":new st(e):t}class tr{constructor(t,n,r){this.collection=t,this.state=n,this.allowsCellSelection=r?.allowsCellSelection??!1,this._isSelectAll=null,this.layoutDelegate=r?.layoutDelegate||null,this.fullCollection=r?.fullCollection||null}get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,n){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){if(this.state.selectionMode==="none")return!1;let n=this.getKey(t);return n==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(n):this.state.selectedKeys.has(n)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=t.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let r=this.collection.getItem(n);(!t||r&&zo(this.collection,r,t)<0)&&(t=r)}return t?.key??null}get lastSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let r=this.collection.getItem(n);(!t||r&&zo(this.collection,r,t)>0)&&(t=r)}return t?.key??null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r;if(this.state.selectedKeys==="all")r=new st([n],n,n);else{let i=this.state.selectedKeys,a=i.anchorKey??n;r=new st(i,a,n);for(let l of this.getKeyRange(a,i.currentKey??n))r.delete(l);for(let l of this.getKeyRange(n,a))this.canSelectItem(l)&&r.add(l)}this.state.setSelectedKeys(r)}getKeyRange(t,n){let r=this.collection.getItem(t),i=this.collection.getItem(n);return r&&i?zo(this.collection,r,i)<=0?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){if(this.layoutDelegate?.getKeyRange)return this.layoutDelegate.getKeyRange(t,n);let r=[],i=t;for(;i!=null;){let a=this.collection.getItem(i);if(a&&(a.type==="item"||a.type==="cell"&&this.allowsCellSelection)&&r.push(i),i===n)return r;i=this.collection.getKeyAfter(i)}return[]}getKey(t){let n=this.collection.getItem(t);if(!n||n.type==="cell"&&this.allowsCellSelection)return t;for(;n&&n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r=new st(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(n)?r.delete(n):this.canSelectItem(n)&&(r.add(n),r.anchorKey=n,r.currentKey=n),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(t){if(this.selectionMode==="none")return;let n=this.getKey(t);if(n==null)return;let r=this.canSelectItem(n)?new st([n],n,n):new st;this.state.setSelectedKeys(r)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new st;for(let r of t){let i=this.getKey(r);if(i!=null&&(n.add(i),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let t=this.fullCollection??this.collection,n=[],r=i=>{for(;i!=null;){if(this.canSelectItemIn(i,t)){let a=t.getItem(i);a?.type==="item"&&n.push(i),a?.hasChildNodes&&(this.allowsCellSelection||a.type!=="item")&&r(Ot(Ne(a,t))?.key??null)}i=t.getKeyAfter(i)}};return r(t.getFirstKey()),n}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new st)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(t.size!==n.size)return!1;for(let r of t)if(!n.has(r))return!1;for(let r of n)if(!t.has(r))return!1;return!0}canSelectItem(t){return this.canSelectItemIn(t,this.collection)}canSelectItemIn(t,n){if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let r=n.getItem(t);return!(!r||r?.props?.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){let n=this.collection.getItem(t);return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!n?.props?.isDisabled)&&n?.props?.disabledBehavior!=="selection"}isLink(t){return!!this.collection.getItem(t)?.props?.href}getItemProps(t){return this.collection.getItem(t)?.props}withCollection(t){return new tr(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0,fullCollection:this.fullCollection??this.collection})}}class jx{build(t,n){return this.context=n,e4(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(u.isValidElement(n)&&n.type===u.Fragment)yield*this.iterateCollection({children:n.props.children,items:r});else if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let i=0;for(let a of r)yield*this.getFullNode({value:a,index:i},{renderer:n}),i++}else{let i=[];u.Children.forEach(n,l=>{l&&i.push(l)});let a=0;for(let l of i){let o=this.getFullNode({element:l,index:a},{});for(let s of o)a++,yield s}}}getKey(t,n,r,i){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${i}${n.key}`;let a=n.value;if(a!=null){let l=a.key??a.id;if(l==null)throw new Error("No key found for item");return l}return i?`${i}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,r,i){if(u.isValidElement(t.element)&&t.element.type===u.Fragment){let s=[];u.Children.forEach(t.element.props.children,c=>{s.push(c)});let d=t.index??0;for(const c of s)yield*this.getFullNode({element:c,index:d++},n,r,i);return}let a=t.element;if(!a&&t.value&&n&&n.renderer){let s=this.cache.get(t.value);if(s&&(!s.shouldInvalidate||!s.shouldInvalidate(this.context))){s.index=t.index,s.parentKey=i?i.key:null,yield s;return}a=n.renderer(t.value)}if(u.isValidElement(a)){let s=a.type;if(typeof s!="function"&&typeof s.getCollectionNode!="function"){let m=a.type;throw new Error(`Unknown element <${m}> in collection.`)}let d=s.getCollectionNode(a.props,this.context),c=t.index??0,f=d.next();for(;!f.done&&f.value;){let m=f.value;t.index=c;let h=m.key??null;h==null&&(h=m.element?null:this.getKey(a,t,n,r));let g=[...this.getFullNode({...m,key:h,index:c,wrapper:Hx(t.wrapper,m.wrapper)},this.getChildState(n,m),r?`${r}${a.key}`:a.key,i)];for(let y of g){if(y.value=m.value??t.value??null,y.value&&this.cache.set(y.value,y),t.type&&y.type!==t.type)throw new Error(`Unsupported type <${Ro(y.type)}> in <${Ro(i?.type??"unknown parent type")}>. Only <${Ro(t.type)}> is supported.`);c++,yield y}f=d.next(g)}return}if(t.key==null||t.type==null)return;let l=this,o={type:t.type,props:t.props,key:t.key,parentKey:i?i.key:null,value:t.value??null,level:(i?.level??0)+(i?.type==="item"?1:0),index:t.index,rendered:t.rendered,textValue:t.textValue??"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:e4(function*(){if(!t.hasChildNodes||!t.childNodes)return;let s=0;for(let d of t.childNodes()){d.key!=null&&(d.key=`${o.key}${d.key}`);let c=l.getFullNode({...d,index:s},l.getChildState(n,d),o.key,o);for(let f of c)s++,yield f}})};yield o}constructor(){this.cache=new WeakMap}}function e4(e){let t=[],n=null;return{*[Symbol.iterator](){for(let r of t)yield r;n||(n=e());for(let r of n)t.push(r),yield r}}}function Hx(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function Ro(e){return e[0].toUpperCase()+e.slice(1)}function jo(e,t,n){let r=u.useMemo(()=>new jx,[]),{children:i,items:a,collection:l}=e;return u.useMemo(()=>{if(l)return l;let s=r.build({children:i,items:a},n);return t(s)},[r,i,a,l,n,t])}function Ca(e){let{filter:t,layoutDelegate:n}=e,r=Hr(e),i=u.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=u.useCallback(d=>t?new _o(t(d)):new _o(d),[t]),l=u.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),o=jo(e,a,l),s=u.useMemo(()=>new tr(o,r,{layoutDelegate:n}),[o,r,n]);return t4(o,s),{collection:o,disabledKeys:i,selectionManager:s}}function Ux(e,t){let n=u.useMemo(()=>t?e.collection.filter(t):e.collection,[e.collection,t]),r=e.selectionManager.withCollection(n);return t4(n,r),{collection:n,selectionManager:r,disabledKeys:e.disabledKeys}}function t4(e,t){const n=u.useRef(null);u.useEffect(()=>{if(t.focusedKey!=null&&!e.getItem(t.focusedKey)&&n.current){let r=n.current.getKeyAfter(t.focusedKey),i=null;for(;r!=null;){let a=e.getItem(r);if(a&&a.type==="item"&&!t.isDisabled(r)){i=r;break}r=n.current.getKeyAfter(r)}if(i==null)for(r=n.current.getKeyBefore(t.focusedKey);r!=null;){let a=e.getItem(r);if(a&&a.type==="item"&&!t.isDisabled(r)){i=r;break}r=n.current.getKeyBefore(r)}t.setFocusedKey(i)}n.current=e},[e,t])}function n4(e,t){let{collection:n,onLoadMore:r,scrollOffset:i=1,direction:a="end"}=e,l=u.useRef(null),o=De(s=>{for(let d of s)d.isIntersecting&&r&&r()});fe(()=>{if(t.current){const s=100*i,d=a==="start"?`${s}% 0px 0px 0px`:`0px ${s}% ${s}% ${s}%`;l.current=new IntersectionObserver(o,{root:ot(t?.current),rootMargin:d}),l.current.observe(t.current)}return()=>{l.current&&l.current.disconnect()}},[n,t,i,a])}const Ur=u.createContext(null),Sn=u.createContext(null),Wx=u.forwardRef(function(t,n){[t,n]=pe(t,n,Ur);let r=u.useContext(Sn);return r?u.createElement(r4,{state:r,props:t,listBoxRef:n}):u.createElement(fn,{content:u.createElement(mn,t)},i=>u.createElement(Gx,{props:t,listBoxRef:n,collection:i}))});function Gx({props:e,listBoxRef:t,collection:n}){e={...e,collection:n,children:null,items:null};let{layoutDelegate:r}=u.useContext(ge),i=Ca({...e,layoutDelegate:r});return u.createElement(r4,{state:i,props:e,listBoxRef:t})}function r4({state:e,props:t,listBoxRef:n}){[t,n]=pe(t,n,$r);let{dragAndDropHooks:r,layout:i="stack",orientation:a="vertical",filter:l}=t,o=Ux(e,l),{collection:s,selectionManager:d}=o,c=!!r?.useDraggableCollectionState,f=!!r?.useDroppableCollectionState,{direction:m}=be(),{disabledBehavior:h,disabledKeys:p}=d,g=Qn({usage:"search",sensitivity:"base"}),{isVirtualized:y,layoutDelegate:$,dropTargetDelegate:x,CollectionRoot:v}=u.useContext(ge),C=u.useMemo(()=>t.keyboardDelegate||new _r({collection:s,collator:g,ref:n,disabledKeys:p,disabledBehavior:h,layout:i,orientation:a,direction:m,layoutDelegate:$}),[s,g,n,h,p,a,m,t.keyboardDelegate,i,$]),{listBoxProps:w}=Ox({...t,shouldSelectOnPressUp:c||t.shouldSelectOnPressUp,keyboardDelegate:C,isVirtualized:y},o,n),S=u.useRef(c),B=u.useRef(f);u.useEffect(()=>{process.env.NODE_ENV!=="production"&&(S.current!==c&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),B.current!==f&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."))},[c,f]);let E,k,K,T=!1,I=null,R=u.useRef(null);if(c&&r){E=r.useDraggableCollectionState({collection:s,selectionManager:d,preview:r.renderDragPreview?R:void 0}),r.useDraggableCollection({},E,n);let Q=r.DragPreview;I=r.renderDragPreview?u.createElement(Q,{ref:R},r.renderDragPreview):null}if(f&&r){k=r.useDroppableCollectionState({collection:s,selectionManager:d});let Q=r.dropTargetDelegate||x||new r.ListDropTargetDelegate(s,n,{orientation:a,layout:i,direction:m});K=r.useDroppableCollection({keyboardDelegate:C,dropTargetDelegate:Q},k,n),T=k.isDropTarget({type:"root"})}let{focusProps:D,isFocused:M,isFocusVisible:G}=Oe(),O=o.collection.size===0,Y={isDropTarget:T,isEmpty:O,isFocused:M,isFocusVisible:G,layout:t.layout||"stack",orientation:a,state:o},P=ue({...t,children:void 0,defaultClassName:"react-aria-ListBox",values:Y}),N=null;O&&t.renderEmptyState&&(N=u.createElement("div",{role:"option",style:{display:"contents"}},t.renderEmptyState(Y)));let _=ie(t,{global:!0});return u.createElement($a,null,u.createElement(re.div,{...q(_,P,w,D,K?.collectionProps),ref:n,slot:t.slot||void 0,onScroll:t.onScroll,"data-drop-target":T||void 0,"data-empty":O||void 0,"data-focused":M||void 0,"data-focus-visible":G||void 0,"data-layout":t.layout||"stack","data-orientation":a},u.createElement(Pe,{values:[[Ur,t],[Sn,o],[ut,{dragAndDropHooks:r,dragState:E,dropState:k}],[ko,{elementType:"div"}],[So,{render:qx}],[Cd,{name:"ListBoxSection",render:Zx}]]},u.createElement(ga,null,u.createElement(v,{collection:s,scrollRef:n,persistedKeys:Fm(d,r,k),renderDropIndicator:ba(r,k)}))),N,I))}function Zx(e,t,n,r="react-aria-ListBoxSection"){let i=u.useContext(Sn),{dragAndDropHooks:a,dropState:l}=u.useContext(ut),{CollectionBranch:o}=u.useContext(ge),[s,d]=un(),{headingProps:c,groupProps:f}=_x({heading:d,"aria-label":e["aria-label"]??void 0}),m=ue({...e,id:void 0,children:void 0,defaultClassName:r,values:void 0}),h=ie(e,{global:!0});return delete h.id,u.createElement(re.section,{...q(h,m,f),ref:t},u.createElement(Po.Provider,{value:{...c,ref:s}},u.createElement(o,{collection:i.collection,parent:n,renderDropIndicator:ba(a,l)})))}const Yx=yt(Ii,function(t,n,r){let i=Te(n),a=u.useContext(Sn),{dragAndDropHooks:l,dragState:o,dropState:s}=u.useContext(ut),d=o&&!(o.isDisabled||o.selectionManager.isDisabled(r.key)),{optionProps:c,labelProps:f,descriptionProps:m,...h}=Vx({key:r.key,"aria-label":t?.["aria-label"]},a,i),{hoverProps:p,isHovered:g}=ze({isDisabled:!h.allowsSelection&&!h.hasAction&&!d,onHoverStart:r.props.onHoverStart,onHoverChange:r.props.onHoverChange,onHoverEnd:r.props.onHoverEnd}),{keyboardProps:y}=Le(t),{focusProps:$}=vl(t),x=null;o&&l&&(x=l.useDraggableItem({key:r.key,hasAction:h.hasAction},o));let v=null;s&&l&&(v=l.useDroppableItem({target:{type:"item",key:r.key,dropPosition:"on"}},s,i));let C=o&&o.isDragging(r.key),w=ue({...t,id:void 0,children:t.children,defaultClassName:"react-aria-ListBoxItem",values:{...h,isHovered:g,selectionMode:a.selectionManager.selectionMode,selectionBehavior:a.selectionManager.selectionBehavior,allowsDragging:!!o,isDragging:C,isDropTarget:v?.isDropTarget}});u.useEffect(()=>{!r.textValue&&process.env.NODE_ENV!=="production"&&console.warn("A `textValue` prop is required for <ListBoxItem> elements with non-plain text children in order to support accessibility features such as type to select.")},[r.textValue]);let S=t.href?re.a:re.div,B=ie(t,{global:!0});return delete B.id,delete B.onClick,t.href&&c.tabIndex==null&&(c.tabIndex=-1),u.createElement(S,{...q(B,w,c,p,y,$,x?.dragProps,v?.dropProps),ref:i,"data-allows-dragging":!!o||void 0,"data-selected":h.isSelected||void 0,"data-disabled":h.isDisabled||void 0,"data-hovered":g||void 0,"data-focused":h.isFocused||void 0,"data-focus-visible":h.isFocusVisible||void 0,"data-pressed":h.isPressed||void 0,"data-dragging":C||void 0,"data-drop-target":v?.isDropTarget||void 0,"data-selection-mode":a.selectionManager.selectionMode==="none"?void 0:a.selectionManager.selectionMode},u.createElement(Pe,{values:[[tt,{slots:{[Nt]:f,label:f,description:m}}],[zr,{isSelected:h.isSelected}]]},w.children))});function qx(e,t){t=Te(t);let{dragAndDropHooks:n,dropState:r}=u.useContext(ut),{dropIndicatorProps:i,isHidden:a,isDropTarget:l}=n.useDropIndicator(e,r,t);return a?null:u.createElement(Jx,{...e,dropIndicatorProps:i,isDropTarget:l,ref:t})}function Xx(e,t){let{dropIndicatorProps:n,isDropTarget:r,...i}=e,a=ue({...i,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:r}});return u.createElement(u.Fragment,null,u.createElement(re.div,{...n,...a,role:"option",ref:t,"data-drop-target":r||void 0}))}const Jx=u.forwardRef(Xx);yt(Ti,function(t,n,r){let i=u.useContext(Sn),{isLoading:a,onLoadMore:l,scrollOffset:o,...s}=t,d=u.useRef(null),c=u.useMemo(()=>({onLoadMore:l,collection:i?.collection,sentinelRef:d,scrollOffset:o}),[l,o,i?.collection]);n4(c,d);let f=ue({...s,id:void 0,children:r.rendered,defaultClassName:"react-aria-ListBoxLoadingIndicator",values:void 0}),m={tabIndex:-1};return u.createElement(u.Fragment,null,u.createElement("div",{style:{position:"relative",width:0,height:0},inert:Jm(!0)},u.createElement("div",{"data-testid":"loadMoreSentinel",ref:d,style:{position:"absolute",height:1,width:1}})),a&&f.children&&u.createElement(u.Fragment,null,u.createElement(re.div,{...q(ie(t,{global:!0}),m),...f,role:"option",ref:n},f.children)))});const i4=u.createContext({placement:"bottom"}),Qx=u.forwardRef(function(t,n){[t,n]=pe(t,n,i4);let r=t.placement,i={position:"absolute",transform:r==="top"||r==="bottom"?"translateX(-50%)":"translateY(-50%)"};r!=null&&(i[r]="100%");let a=ue({...t,defaultClassName:"react-aria-OverlayArrow",values:{placement:r}});a.style&&Object.keys(a.style).forEach(o=>a.style[o]===void 0&&delete a.style[o]);let l=ie(t);return u.createElement(re.div,{...l,...a,style:{...i,...a.style},ref:n,"data-placement":r})}),e9=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype;function a4(e){return e.dataset.liveAnnouncer==="true"||e.dataset.reactAriaTopLayer!==void 0}let Wr=new WeakMap,We=[];function Ho(e,t){let n=xe(e?.[0]),r=t instanceof n.Element?{root:t}:t,i=r?.root??document.body,a=r?.shouldUseInert&&e9,l=new Set(e),o=new Set,s=y=>a&&y instanceof n.HTMLElement?y.inert:y.getAttribute("aria-hidden")==="true",d=(y,$)=>{a&&y instanceof n.HTMLElement?y.inert=$:$?y.setAttribute("aria-hidden","true"):(y.removeAttribute("aria-hidden"),y instanceof n.HTMLElement&&(y.inert=!1))},c=new Set;if(ht()){let y=i.getRootNode();for(let $ of e){let x=$.getRootNode();for(;ll(x)&&x!==y;)c.add(x),x=x.host.getRootNode()}}let f=y=>{for(let C of y.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))l.add(C);let $=C=>{if(o.has(C)||l.has(C)||C.parentElement&&o.has(C.parentElement)&&C.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let w of l)if(ae(C,w))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},x=Km(se(y),y,NodeFilter.SHOW_ELEMENT,{acceptNode:$}),v=$(y);if(v===NodeFilter.FILTER_ACCEPT&&m(y),v!==NodeFilter.FILTER_REJECT){let C=x.nextNode();for(;C!=null;)m(C),C=x.nextNode()}},m=y=>{let $=Wr.get(y)??0;s(y)&&$===0||($===0&&d(y,!0),o.add(y),Wr.set(y,$+1))};We.length&&We[We.length-1].disconnect(),f(i);let h=new MutationObserver(y=>{for(let $ of y)if($.type==="childList"){if($.target.isConnected&&![...l,...o].some(x=>ae(x,$.target)))for(let x of $.addedNodes)(x instanceof HTMLElement||x instanceof SVGElement)&&a4(x)?l.add(x):x instanceof Element&&f(x);if(ht()){for(let x of c)if(!x.isConnected){h.disconnect();break}}}});h.observe(i,{childList:!0,subtree:!0});let p=new Set;if(ht())for(let y of c){let $=new MutationObserver(x=>{for(let v of x)if(v.type==="childList"){if(v.target.isConnected&&![...l,...o].some(C=>ae(C,v.target)))for(let C of v.addedNodes)(C instanceof HTMLElement||C instanceof SVGElement)&&a4(C)?l.add(C):C instanceof Element&&f(C);if(ht()){for(let C of c)if(!C.isConnected){h.disconnect();break}}}});$.observe(y,{childList:!0,subtree:!0}),p.add($)}let g={visibleNodes:l,hiddenNodes:o,observe(){h.observe(i,{childList:!0,subtree:!0})},disconnect(){h.disconnect()}};return We.push(g),()=>{if(h.disconnect(),ht())for(let y of p)y.disconnect();for(let y of o){let $=Wr.get(y);$!=null&&($===1?(d(y,!1),Wr.delete(y)):Wr.set(y,$-1))}g===We[We.length-1]?(We.pop(),We.length&&We[We.length-1].observe()):We.splice(We.indexOf(g),1)}}function t9(e){let t=We[We.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}const it={top:"top",bottom:"top",left:"left",right:"left"},Da={top:"bottom",bottom:"top",left:"right",right:"left"},n9={top:"left",left:"top"},Uo={top:"height",left:"width"},l4={width:"totalWidth",height:"totalHeight"},Ea={};let r9=()=>typeof document<"u"?window.visualViewport:null;function o4(e,t){let n=0,r=0,i=0,a=0,l=0,o=0,s={},d=(t?.scale??1)>1;if(e.tagName==="BODY"||e.tagName==="HTML"){let c=document.documentElement;i=c.clientWidth,a=c.clientHeight,n=t?.width??i,r=t?.height??a,s.top=c.scrollTop||e.scrollTop,s.left=c.scrollLeft||e.scrollLeft,t&&(l=t.offsetTop,o=t.offsetLeft)}else({width:n,height:r,top:l,left:o}=Gr(e,!1)),s.top=e.scrollTop,s.left=e.scrollLeft,i=n,a=r;return gt()&&(e.tagName==="BODY"||e.tagName==="HTML")&&d&&(s.top=0,s.left=0,l=t?.pageTop??0,o=t?.pageLeft??0),{width:n,height:r,totalWidth:i,totalHeight:a,scroll:s,top:l,left:o}}function i9(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function u4(e,t,n,r,i,a,l){let o=i.scroll[e]??0,s=r[Uo[e]],d=l[e]+r.scroll[it[e]]+a,c=l[e]+r.scroll[it[e]]+s-a,f=t-o+r.scroll[it[e]]+l[e]-r[it[e]],m=t-o+n+r.scroll[it[e]]+l[e]-r[it[e]];return f<d?d-f:m>c?Math.max(c-m,d-f):0}function a9(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function s4(e){if(Ea[e])return Ea[e];let[t,n]=e.split(" "),r=it[t]||"right",i=n9[r];it[n]||(n="center");let a=Uo[r],l=Uo[i];return Ea[e]={placement:t,crossPlacement:n,axis:r,crossAxis:i,size:a,crossSize:l},Ea[e]}function Wo(e,t,n,r,i,a,l,o,s,d,c){let{placement:f,crossPlacement:m,axis:h,crossAxis:p,size:g,crossSize:y}=r,$={};$[p]=e[p]??0,m==="center"?$[p]+=((e[y]??0)-(n[y]??0))/2:m!==p&&($[p]+=(e[y]??0)-(n[y]??0)),$[p]+=a;const x=e[p]-n[y]+s+d,v=e[p]+e[y]-s-d;if($[p]=Dr($[p],x,v),f===h){let C=o?c[g]:c[l4[g]];$[Da[h]]=Math.floor(C-e[h]+i)}else $[h]=Math.floor(e[h]+e[g]+i);return $}function l9(e,t,n,r,i,a,l,o,s,d,c){let f=(e.top!=null?e.top:s[l4.height]-(e.bottom??0)-l)-(s.scroll.top??0),m=d?n.top:0,h={top:Math.max(t.top+m,(c?.offsetTop??t.top)+m),bottom:Math.min(t.top+t.height+m,(c?.offsetTop??0)+(c?.height??0))};return o!=="top"?Math.max(0,h.bottom-f-((i.top??0)+(i.bottom??0)+a)):Math.max(0,f+l-h.top-((i.top??0)+(i.bottom??0)+a))}function d4(e,t,n,r,i,a,l,o){let{placement:s,axis:d,size:c}=a;return s===d?Math.max(0,n[d]-(l.scroll[d]??0)-(e[d]+(o?t[d]:0))-(r[d]??0)-r[Da[d]]-i):Math.max(0,e[c]+e[d]+(o?t[d]:0)-n[d]-n[c]+(l.scroll[d]??0)-(r[d]??0)-r[Da[d]]-i)}function o9(e,t,n,r,i,a,l,o,s,d,c,f,m,h,p,g,y,$){let x=s4(e),{size:v,crossAxis:C,crossSize:w,placement:S,crossPlacement:B}=x,E=Wo(t,o,n,x,c,f,d,m,p,g,s),k=c,K=d4(o,d,t,i,a+c,x,s,y);if(l&&n[v]>K){let F=s4(`${Da[S]} ${B}`),z=Wo(t,o,n,F,c,f,d,m,p,g,s);d4(o,d,t,i,a+c,F,s,y)>K&&(x=F,E=z,k=c)}let T="bottom";x.axis==="top"?x.placement==="top"?T="top":x.placement==="bottom"&&(T="bottom"):x.crossAxis==="top"&&(x.crossPlacement==="top"?T="bottom":x.crossPlacement==="bottom"&&(T="top"));let I=u4(C,E[C],n[w],o,s,a,d);E[C]+=I;let R=l9(E,o,d,m,i,a,n.height,T,s,y,$);h&&h<R&&(R=h),n.height=Math.min(n.height,R),E=Wo(t,o,n,x,k,f,d,m,p,g,s),I=u4(C,E[C],n[w],o,s,a,d),E[C]+=I;let D={},M=t[C]-E[C]-i[it[C]],G=M+.5*t[w];const O=p/2+g,Y=it[C]==="left"?(i.left??0)+(i.right??0):(i.top??0)+(i.bottom??0),P=n[w]-Y-p/2-g,N=t[C]+p/2-(E[C]+i[it[C]]),_=t[C]+t[w]-p/2-(E[C]+i[it[C]]),Q=Dr(G,N,_);D[C]=Dr(Q,O,P),{placement:S,crossPlacement:B}=x,p?M=D[C]:B==="right"?M+=t[w]:B==="center"&&(M+=t[w]/2);let X=S==="left"||S==="top"?n[v]:0,A={x:S==="top"||S==="bottom"?M:X,y:S==="left"||S==="right"?M:X};return{position:E,maxHeight:R,arrowOffsetLeft:D.left,arrowOffsetTop:D.top,placement:S,triggerAnchorPoint:A}}function u9(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:i,padding:a,shouldFlip:l,boundaryElement:o,offset:s,crossOffset:d,maxHeight:c,arrowSize:f=0,arrowBoundaryOffset:m=0,targetRect:h}=e,p=r9(),g=r instanceof HTMLElement?s9(r):document.documentElement,y=g===document.documentElement;const $=window.getComputedStyle(g).position;let x=!!$&&$!=="static",v=y?Gr(n,!1,h):c4(n,g,!1,h);if(!y){let{marginTop:T,marginLeft:I}=window.getComputedStyle(n);v.top+=parseInt(T,10)||0,v.left+=parseInt(I,10)||0}let C=Gr(r,!0),w=a9(r);C.width+=(w.left??0)+(w.right??0),C.height+=(w.top??0)+(w.bottom??0);let S=i9(i),B=o4(o,p),E=o4(g,p),k;if((o.tagName==="BODY"||o.tagName==="HTML")&&!y){let T=wa(g,!1);k={top:-(T.top-B.top),left:-(T.left-B.left),width:0,height:0}}else(o.tagName==="BODY"||o.tagName==="HTML")&&y?k={top:0,left:0,width:0,height:0}:k=c4(o,g,!1);let K=ae(o,g);return o9(t,v,C,S,w,a,l,B,E,k,s,d,x,c,f,m,K,p)}function wa(e,t){let{top:n,left:r,width:i,height:a}=e.getBoundingClientRect();return t&&e instanceof e.ownerDocument.defaultView.HTMLElement&&(i=e.offsetWidth,a=e.offsetHeight),{top:n,left:r,width:i,height:a}}function Gr(e,t,n){let{top:r,left:i,width:a,height:l}=n||wa(e,t),{scrollTop:o,scrollLeft:s,clientTop:d,clientLeft:c}=document.documentElement;return{top:r+o-d,left:i+s-c,width:a,height:l}}function c4(e,t,n,r){let i=window.getComputedStyle(e),a;if(i.position==="fixed")a=r||wa(e,n);else{a=Gr(e,n,r);let l=Gr(t,n),o=window.getComputedStyle(t);l.top+=(parseInt(o.borderTopWidth,10)||0)-t.scrollTop,l.left+=(parseInt(o.borderLeftWidth,10)||0)-t.scrollLeft,a.top-=l.top,a.left-=l.left}return a.top-=parseInt(i.marginTop,10)||0,a.left-=parseInt(i.marginLeft,10)||0,a}function s9(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!f4(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!f4(t);)t=t.parentElement;return t||document.documentElement}function f4(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}const m4=new WeakMap;function d9(e){let{triggerRef:t,isOpen:n,onClose:r}=e;u.useEffect(()=>{if(!n||r===null)return;let i=a=>{let l=W(a);if(!t.current||l instanceof Node&&!ae(l,t.current)||l instanceof HTMLInputElement||l instanceof HTMLTextAreaElement)return;let o=r||m4.get(t.current);o&&o()};return Q$(t5(t.current),"scroll",i,!0)},[n,r,t])}function c9(){return typeof window.ResizeObserver<"u"}function Zr(e){const{ref:t,box:n,onResize:r}=e;let i=De(r);u.useEffect(()=>{let a=t?.current;if(a)if(c9()){const l=new window.ResizeObserver(o=>{o.length&&i()});return l.observe(a,{box:n}),()=>{a&&l.unobserve(a)}}else return window.addEventListener("resize",i,!1),()=>{window.removeEventListener("resize",i,!1)}},[t,n])}let Pn=typeof document<"u"?window.visualViewport:null;function f9(e){let{direction:t}=be(),{arrowSize:n,targetRef:r,overlayRef:i,arrowRef:a,scrollRef:l=i,placement:o="bottom",containerPadding:s=12,shouldFlip:d=!0,boundaryElement:c=typeof document<"u"?document.body:null,offset:f=0,crossOffset:m=0,shouldUpdatePosition:h=!0,isOpen:p=!0,onClose:g,maxHeight:y,arrowBoundaryOffset:$=0,getTargetRect:x}=e,[v,C]=u.useState(null),w=[h,o,i.current,r.current,a?.current,l.current,s,d,c,f,m,p,t,y,$,n],S=u.useRef(Pn?.scale);u.useEffect(()=>{p&&(S.current=Pn?.scale)},[p]);let B=u.useCallback(()=>{if(h===!1||!p||!i.current||!r.current||!c||Pn?.scale!==S.current)return;let K=null;if(l.current&&Ut(l.current)){let D=ce()?.getBoundingClientRect(),M=l.current.getBoundingClientRect();K={type:"top",offset:(D?.top??0)-M.top},K.offset>M.height/2&&(K.type="bottom",K.offset=(D?.bottom??0)-M.bottom)}let T=i.current;!y&&i.current&&(T.style.top="0px",T.style.bottom="",T.style.maxHeight=(window.visualViewport?.height??window.innerHeight)+"px");let I=u9({placement:h9(o,t),overlayNode:i.current,targetNode:r.current,scrollNode:l.current||i.current,padding:s,shouldFlip:d,boundaryElement:c,offset:f,crossOffset:m,maxHeight:y,arrowSize:n??(a?.current?wa(a.current,!0).width:0),arrowBoundaryOffset:$,targetRect:x?.(r.current)});if(!I.position)return;T.style.top="",T.style.bottom="",T.style.left="",T.style.right="",Object.keys(I.position).forEach(D=>T.style[D]=I.position[D]+"px"),T.style.maxHeight=I.maxHeight!=null?I.maxHeight+"px":"";let R=ce();if(K&&R&&l.current){let D=R.getBoundingClientRect(),M=l.current.getBoundingClientRect(),G=D[K.type]-M[K.type];l.current.scrollTop+=G-K.offset}C(I)},w);fe(B,w),m9(B),Zr({ref:i,onResize:B}),Zr({ref:r,onResize:B});let E=u.useRef(!1);fe(()=>{let K,T=()=>{E.current=!0,clearTimeout(K),K=setTimeout(()=>{E.current=!1},500),B()},I=()=>{E.current&&T()};return Pn?.addEventListener("resize",T),Pn?.addEventListener("scroll",I),()=>{Pn?.removeEventListener("resize",T),Pn?.removeEventListener("scroll",I)}},[B]);let k=u.useCallback(()=>{E.current||g?.()},[g,E]);return d9({triggerRef:r,isOpen:p,onClose:g&&k}),{overlayProps:{style:{position:v?"absolute":"fixed",top:v?void 0:0,left:v?void 0:0,zIndex:1e5,...v?.position,maxHeight:v?.maxHeight??"100vh"}},placement:v?.placement??null,triggerAnchorPoint:v?.triggerAnchorPoint??null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:v?.arrowOffsetLeft,top:v?.arrowOffsetTop}},updatePosition:B}}function m9(e){fe(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function h9(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}function p9(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=e,a=u.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),l=De(s=>{n&&Sa(s,t)&&(i&&i(s),a.current.isPointerDown=!0)}),o=De(s=>{n&&n(s)});u.useEffect(()=>{let s=a.current;if(r)return;const d=t.current,c=se(d);if(typeof PointerEvent<"u"){let f=m=>{s.isPointerDown&&Sa(m,t)&&o(m),s.isPointerDown=!1};return c.addEventListener("pointerdown",l,!0),c.addEventListener("click",f,!0),()=>{c.removeEventListener("pointerdown",l,!0),c.removeEventListener("click",f,!0)}}else if(process.env.NODE_ENV==="test"){let f=h=>{s.ignoreEmulatedMouseEvents?s.ignoreEmulatedMouseEvents=!1:s.isPointerDown&&Sa(h,t)&&o(h),s.isPointerDown=!1},m=h=>{s.ignoreEmulatedMouseEvents=!0,s.isPointerDown&&Sa(h,t)&&o(h),s.isPointerDown=!1};return c.addEventListener("mousedown",l,!0),c.addEventListener("mouseup",f,!0),c.addEventListener("touchstart",l,!0),c.addEventListener("touchend",m,!0),()=>{c.removeEventListener("mousedown",l,!0),c.removeEventListener("mouseup",f,!0),c.removeEventListener("touchstart",l,!0),c.removeEventListener("touchend",m,!0)}}},[t,r])}function Sa(e,t){if(e.button>0)return!1;let n=W(e);if(n){const r=n.ownerDocument;if(!r||!ae(r.documentElement,n)||n.closest("[data-react-aria-top-layer]"))return!1}return t.current?!e.composedPath().includes(t.current):!1}const Et=[];function h4(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:a=!1,isKeyboardDismissDisabled:l=!1,shouldCloseOnInteractOutside:o}=e,s=u.useRef(void 0);u.useEffect(()=>{if(i&&!Et.includes(t))return Et.push(t),()=>{let p=Et.indexOf(t);p>=0&&Et.splice(p,1)}},[i,t]);let d=()=>{Et[Et.length-1]===t&&n&&n()},c=p=>{const g=Et[Et.length-1];s.current=g,(!o||o(W(p)))&&g===t&&p.stopPropagation()},f=p=>{(!o||o(W(p)))&&(Et[Et.length-1]===t&&p.stopPropagation(),s.current===t&&d()),s.current=void 0},{keyboardProps:m}=Le({shortcuts:{Escape:()=>{if(!l){d();return}return!1}}});p9({ref:t,onInteractOutside:a&&i?f:void 0,onInteractOutsideStart:c});let{focusWithinProps:h}=jn({isDisabled:!r,onBlurWithin:p=>{!p.relatedTarget||Ax(p.relatedTarget)||(!o||o(p.relatedTarget))&&n?.()}});return{overlayProps:{...m,...h},underlayProps:{}}}const Yr=typeof document<"u"&&window.visualViewport;let Pa=0,Go;function p4(e={}){let{isDisabled:t}=e;fe(()=>{if(!t)return Pa++,Pa===1&&(bt()&>()?Go=g9():Go=b9()),()=>{Pa--,Pa===0&&Go()}},[t])}function b9(){let e=window.innerWidth-document.documentElement.clientWidth;return at(e>0&&("scrollbarGutter"in document.documentElement.style?ka(document.documentElement,"scrollbarGutter","stable"):ka(document.documentElement,"paddingRight",`${e}px`)),ka(document.documentElement,"overflow","hidden"))}function g9(){let e=ka(document.documentElement,"overflow","hidden"),t,n=!1,r=c=>{let f=W(c);t=tn(f)?f:ot(f,!0),n=!1;let m=f.ownerDocument.defaultView.getSelection();m&&!m.isCollapsed&&m.containsNode(f,!0)&&(n=!0),c.composedPath().some(h=>h instanceof HTMLInputElement&&h.type==="range")&&(n=!0),"selectionStart"in f&&"selectionEnd"in f&&f.selectionStart<f.selectionEnd&&f.ownerDocument.activeElement===f&&(n=!0)},i=document.createElement("style"),a=Pd();a&&(i.nonce=a),i.textContent=`
|
|
8
8
|
@layer {
|
|
9
9
|
* {
|
|
10
10
|
overscroll-behavior: contain;
|
|
11
11
|
}
|
|
12
|
-
}`.trim(),document.head.prepend(i);let l=c=>{if(!(c.touches.length===2||n)){if(!e||e===document.documentElement||e===document.body){c.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&c.preventDefault()}},a=c=>{let f=_(c),p=c.relatedTarget;p&&Tn(p)?(p.focus({preventScroll:!0}),zd(p,Tn(f))):p||f.parentElement?.closest("[tabindex]")?.focus({preventScroll:!0})},u=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(c){let f=pe(),p=f!=null&&Tn(f);u.call(this,{...c,preventScroll:!0}),(!c||!c.preventScroll)&&zd(this,p)};let d=Ue(Zo(document,"touchstart",r,{passive:!1,capture:!0}),Zo(document,"touchmove",l,{passive:!1,capture:!0}),Zo(document,"blur",a,!0));return()=>{t(),d(),i.remove(),HTMLElement.prototype.focus=u}}function ui(t,e,n){let r=t.style[e];return t.style[e]=n,()=>{t.style[e]=r}}function Zo(t,e,n,r){return t.addEventListener(e,n,r),()=>{t.removeEventListener(e,n,r)}}function zd(t,e){e||!Jn?_d(t):Jn.addEventListener("resize",()=>_d(t),{once:!0})}function _d(t){let e=document.scrollingElement||document.documentElement,n=t;for(;n&&n!==e;){let r=gt(n);if(r!==document.documentElement&&r!==document.body&&r!==n){let i=r.getBoundingClientRect(),o=n.getBoundingClientRect();if(o.top<i.top||o.bottom>i.top+n.clientHeight){let l=i.bottom;Jn&&(l=Math.min(l,Jn.offsetTop+Jn.height));let a=o.top-i.top-((l-i.top)/2-o.height/2);r.scrollTo({top:Math.max(0,Math.min(r.scrollHeight-r.clientHeight,r.scrollTop+a)),behavior:"smooth"})}}n=r.parentElement}}function U2(t,e){let{triggerRef:n,popoverRef:r,groupRef:i,isNonModal:o,isKeyboardDismissDisabled:l,shouldCloseOnInteractOutside:a,...u}=t,d=u.trigger==="SubmenuTrigger",{overlayProps:c,underlayProps:f}=Ld({isOpen:e.isOpen,onClose:e.close,shouldCloseOnBlur:!0,isDismissable:!o||d,isKeyboardDismissDisabled:l,shouldCloseOnInteractOutside:a},i??r),{overlayProps:p,arrowProps:m,placement:b,triggerAnchorPoint:g}=_2({...u,targetRef:n,overlayRef:r,isOpen:e.isOpen,onClose:o&&!d?e.close:null,getTargetRect:u.getTargetRect??(e.point?()=>new DOMRect(e.point.x,e.point.y,0,0):void 0)});Od({isDisabled:o||!e.isOpen}),s.useEffect(()=>{if(e.isOpen&&r.current)return o?N2(i?.current??r.current):Go([i?.current??r.current],{shouldUseInert:!0})},[o,e.isOpen,r,i]);let{focusWithinProps:y}=On(t);return{popoverProps:G(c,p,y),arrowProps:m,underlayProps:f,placement:b,triggerAnchorPoint:g}}var Vd={};Vd={dismiss:"تجاهل"};var Hd={};Hd={dismiss:"Отхвърляне"};var jd={};jd={dismiss:"Odstranit"};var Rd={};Rd={dismiss:"Luk"};var Wd={};Wd={dismiss:"Schließen"};var Ud={};Ud={dismiss:"Απόρριψη"};var Gd={};Gd={dismiss:"Dismiss"};var Yd={};Yd={dismiss:"Descartar"};var Xd={};Xd={dismiss:"Lõpeta"};var qd={};qd={dismiss:"Hylkää"};var Zd={};Zd={dismiss:"Rejeter"};var Jd={};Jd={dismiss:"התעלם"};var Qd={};Qd={dismiss:"Odbaci"};var ec={};ec={dismiss:"Elutasítás"};var tc={};tc={dismiss:"Ignora"};var nc={};nc={dismiss:"閉じる"};var rc={};rc={dismiss:"무시"};var ic={};ic={dismiss:"Atmesti"};var oc={};oc={dismiss:"Nerādīt"};var lc={};lc={dismiss:"Lukk"};var ac={};ac={dismiss:"Negeren"};var sc={};sc={dismiss:"Zignoruj"};var uc={};uc={dismiss:"Descartar"};var dc={};dc={dismiss:"Dispensar"};var cc={};cc={dismiss:"Revocare"};var fc={};fc={dismiss:"Пропустить"};var pc={};pc={dismiss:"Zrušiť"};var hc={};hc={dismiss:"Opusti"};var mc={};mc={dismiss:"Odbaci"};var bc={};bc={dismiss:"Avvisa"};var gc={};gc={dismiss:"Kapat"};var yc={};yc={dismiss:"Скасувати"};var $c={};$c={dismiss:"取消"};var vc={};vc={dismiss:"關閉"};var xc={};xc={"ar-AE":Vd,"bg-BG":Hd,"cs-CZ":jd,"da-DK":Rd,"de-DE":Wd,"el-GR":Ud,"en-US":Gd,"es-ES":Yd,"et-EE":Xd,"fi-FI":qd,"fr-FR":Zd,"he-IL":Jd,"hr-HR":Qd,"hu-HU":ec,"it-IT":tc,"ja-JP":nc,"ko-KR":rc,"lt-LT":ic,"lv-LV":oc,"nb-NO":lc,"nl-NL":ac,"pl-PL":sc,"pt-BR":uc,"pt-PT":dc,"ro-RO":cc,"ru-RU":fc,"sk-SK":pc,"sl-SI":hc,"sr-SP":mc,"sv-SE":bc,"tr-TR":gc,"uk-UA":yc,"zh-CN":$c,"zh-TW":vc};function G2(t){return t&&t.__esModule?t.default:t}function Jo(t){let{onDismiss:e,...n}=t,r=Ie(G2(xc),"@react-aria/overlays"),i=nn(n,r.format("dismiss")),o=()=>{e&&e()};return s.createElement(z4,null,s.createElement("button",{...i,tabIndex:-1,onClick:o,style:{width:1,height:1}}))}const Cc=s.forwardRef(({children:t,...e},n)=>{let r=s.useRef(!1),i=s.useContext(Kn),o=G(i||{},{...e,register(){r.current=!0,i&&i.register()}});return o.ref=ke(n||i?.ref),eo(i,o.ref),s.useEffect(()=>{r.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."),r.current=!0)},[]),s.createElement(Kn.Provider,{value:o},t)});function Y2({children:t}){let e=s.useMemo(()=>({register:()=>{}}),[]);return s.createElement(Kn.Provider,{value:e},t)}const X2=s.createContext({});function q2(){return s.useContext(X2)??{}}const Ec=s.createContext(null);function Qo(t){let e=wt(),{portalContainer:n=e?null:document.body,isExiting:r}=t,[i,o]=s.useState(!1),l=s.useMemo(()=>({contain:i,setContain:o}),[i,o]),{getContainer:a}=q2();if(!t.portalContainer&&a&&(n=a()),!n)return null;let u=t.children;return t.disableFocusManagement||(u=s.createElement(ei,{restoreFocus:!0,contain:(t.shouldContainFocus||i)&&!r},u)),u=s.createElement(Ec.Provider,{value:l},s.createElement(Y2,null,s.createElement(Or.Provider,{value:null},u))),Et.createPortal(u,n)}function wc(){let e=s.useContext(Ec)?.setContain;de(()=>{e?.(!0)},[e])}function Qn(t){let[e,n]=Ye(t.isOpen,t.defaultOpen||!1,t.onOpenChange),[r,i]=s.useState(null);const o=s.useCallback(()=>{n(!0)},[n]),l=s.useCallback(()=>{n(!1)},[n]),a=s.useCallback(()=>{n(!e)},[n,e]);return{isOpen:e,setOpen:n,open:o,close:l,toggle:a,point:r,setPoint:i}}function el(t,e=!0){let[n,r]=s.useState(!0),i=n&&e;return de(()=>{if(i&&t.current&&"getAnimations"in t.current)for(let o of t.current.getAnimations())o instanceof CSSTransition&&o.cancel()},[t,i]),Sc(t,i,s.useCallback(()=>r(!1),[])),i}function tl(t,e){let[n,r]=s.useState(e?"open":"closed");switch(n){case"open":e||r("exiting");break;case"closed":case"exiting":e&&r("open");break}let i=n==="exiting";return Sc(t,i,s.useCallback(()=>{r(o=>o==="exiting"?"closed":o)},[])),i}function Sc(t,e,n){de(()=>{if(e&&t.current){if(!("getAnimations"in t.current)){n();return}let r=t.current.getAnimations();if(r.length===0){n();return}let i=!1;return Promise.allSettled(r.map(o=>o.finished)).then(()=>{i||Et.flushSync(()=>{n()})}),()=>{i=!0}}},[t,e,n])}const er=s.createContext(null),Pc=s.createContext(null),kc=s.forwardRef(function(e,n){[e,n]=be(e,n,er);let r=s.useContext($t),i=Qn(e),o=e.isOpen!=null||e.defaultOpen!=null||!r?i:r,l=tl(n,o.isOpen),a=e.isExiting||!e.shouldSkipAnimation&&l||!1,u=os(),{direction:d}=Te();if(u){let c=e.children;return typeof c=="function"&&(c=c({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),s.createElement(s.Fragment,null,c)}return o&&!o.isOpen&&!a?null:s.createElement(Z2,{...e,triggerRef:e.triggerRef,state:o,popoverRef:n,isExiting:a,dir:d})});function Z2({state:t,isExiting:e,UNSTABLE_portalContainer:n,clearContexts:r,...i}){let o=s.useRef(null),l=s.useRef(null),a=s.useContext(Pc),u=a&&i.trigger==="SubmenuTrigger",{popoverProps:d,underlayProps:c,arrowProps:f,placement:p,triggerAnchorPoint:m}=U2({...i,offset:i.offset??8,arrowRef:o,groupRef:u?a:l},t),b=i.popoverRef,g=el(b,!!p),y=i.isEntering||!i.shouldSkipAnimation&&g||!1,$=se({...i,defaultClassName:"react-aria-Popover",values:{trigger:i.trigger||null,placement:p,isEntering:y,isExiting:e}}),x=!i.isNonModal||i.trigger==="SubmenuTrigger"||i.trigger==="PreviewTrigger",[v,C]=s.useState(i.trigger==="PreviewTrigger");de(()=>{b.current&&C(x&&!b.current.querySelector("[role=dialog]"))},[b,x]),s.useEffect(()=>{v&&i.trigger!=="PreviewTrigger"&&(i.trigger!=="SubmenuTrigger"||Dn()!=="pointer")&&b.current&&!Mt(b.current)&&Se(b.current)},[v,b,i.trigger]);let k=s.useMemo(()=>{let L=$.children;if(r)for(let z of r)L=s.createElement(z.Provider,{value:null},L);return L},[$.children,r]),[P,N]=s.useState(null),w=s.useCallback(()=>{i.triggerRef.current&&N(i.triggerRef.current.getBoundingClientRect().width+"px")},[i.triggerRef]);de(w,[w]),Zn({ref:$.style?.["--trigger-width"]?void 0:i.triggerRef,onResize:w});let D={...d.style,"--trigger-anchor-point":m?`${m.x}px ${m.y}px`:void 0,...$.style,"--trigger-width":$.style?.["--trigger-width"]||P},I=s.createElement(ee.div,{...G(re(i,{global:!0}),d),...$,id:v?i.id:void 0,role:v?"dialog":void 0,tabIndex:v?-1:void 0,"aria-label":i["aria-label"],"aria-labelledby":i["aria-labelledby"],ref:b,slot:i.slot||void 0,style:D,dir:i.dir,"data-trigger":i.trigger,"data-placement":p,"data-entering":y||void 0,"data-exiting":e||void 0},!i.isNonModal&&s.createElement(Jo,{onDismiss:t.close}),s.createElement(kd.Provider,{value:{...f,placement:p,ref:o}},k),s.createElement(Jo,{onDismiss:t.close}));return u?s.createElement(Qo,{...i,shouldContainFocus:v&&i.trigger!=="PreviewTrigger",isExiting:e,portalContainer:n??a?.current??void 0},I):s.createElement(Qo,{...i,shouldContainFocus:v&&i.trigger!=="PreviewTrigger",isExiting:e,portalContainer:n},!i.isNonModal&&t.isOpen&&s.createElement("div",{"data-testid":"underlay",...c,style:{position:"fixed",inset:0}}),s.createElement("div",{ref:l,style:{display:"contents"}},s.createElement(Pc.Provider,{value:l},I)))}const J2=s.createContext({});var Dc={};Dc={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var Nc={};Nc={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var Tc={};Tc={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var Ac={};Ac={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var Ic={};Ic={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var Bc={};Bc={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var Fc={};Fc={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var Mc={};Mc={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var Kc={};Kc={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var Lc={};Lc={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var Oc={};Oc={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var zc={};zc={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var _c={};_c={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var Vc={};Vc={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var Hc={};Hc={longPressMessage:"Premi a lungo o premi Alt + Freccia giù per aprire il menu"};var jc={};jc={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var Rc={};Rc={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var Wc={};Wc={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var Uc={};Uc={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var Gc={};Gc={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var Yc={};Yc={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var Xc={};Xc={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var qc={};qc={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var Zc={};Zc={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var Jc={};Jc={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var Qc={};Qc={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var ef={};ef={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var tf={};tf={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var nf={};nf={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var rf={};rf={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var of={};of={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var lf={};lf={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var af={};af={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var sf={};sf={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var uf={};uf={"ar-AE":Dc,"bg-BG":Nc,"cs-CZ":Tc,"da-DK":Ac,"de-DE":Ic,"el-GR":Bc,"en-US":Fc,"es-ES":Mc,"et-EE":Kc,"fi-FI":Lc,"fr-FR":Oc,"he-IL":zc,"hr-HR":_c,"hu-HU":Vc,"it-IT":Hc,"ja-JP":jc,"ko-KR":Rc,"lt-LT":Wc,"lv-LV":Uc,"nb-NO":Gc,"nl-NL":Yc,"pl-PL":Xc,"pt-BR":qc,"pt-PT":Zc,"ro-RO":Jc,"ru-RU":Qc,"sk-SK":ef,"sl-SI":tf,"sr-SP":nf,"sv-SE":rf,"tr-TR":of,"uk-UA":lf,"zh-CN":af,"zh-TW":sf};function Q2(t){let{onContextMenu:e}=t,n=s.useRef(!1),{longPressProps:r}=Vo({onLongPressStart(){n.current=!1},onLongPress(i){n.current?n.current=!1:e?.({target:i.target,x:i.x,y:i.y})}});return e?{contextMenuProps:G(pt()?r:{},{onContextMenu(i){i.stopPropagation(),i.preventDefault(),n.current=!0;let o=i.currentTarget.getBoundingClientRect();e({target:i.currentTarget,x:i.clientX-o.x,y:i.clientY-o.y})},onKeyDown(i){if(_e()&&i.ctrlKey&&i.key==="Enter"){n.current=!1;let o=i.currentTarget;i.stopPropagation(),setTimeout(()=>{if(n.current)n.current=!1;else{let l=o.getBoundingClientRect();e({target:o,x:l.width/2,y:l.height/2})}},10)}}})}:{contextMenuProps:{}}}function df(t,e,n){let{type:r}=t,{isOpen:i}=e;s.useEffect(()=>{n&&n.current&&Kd.set(n.current,e.close)});let o;r==="menu"?o=!0:r==="listbox"&&(o="listbox");let l=xe();return{triggerProps:{"aria-haspopup":o,"aria-expanded":i,"aria-controls":i?l:void 0,onPress:e.toggle},overlayProps:{id:l}}}function e1(t){return t&&t.__esModule?t.default:t}function nl(t,e,n){let{type:r="menu",isDisabled:i,trigger:o="press"}=t,l=xe(),{triggerProps:a,overlayProps:u}=df({type:r},e,n),d=(y,$,x="first")=>{if(!y||$.isDefaultPrevented())return!1;e.toggle(x)},{keyboardProps:c}=je({isDisabled:i,shortcuts:{Enter:y=>d(o!=="longPress",y,"first")," ":y=>d(o!=="longPress",y,"first"),ArrowDown:y=>d(o!=="longPress",y,"first"),ArrowUp:y=>d(o!=="longPress",y,"last"),"Alt+Enter":y=>d(o==="longPress",y,"first"),"Alt+ ":y=>d(o==="longPress",y,"first"),"Alt+ArrowDown":y=>d(!0,y,"first"),"Alt+ArrowUp":y=>d(!0,y,"last")}}),f=Ie(e1(uf),"@react-aria/menu"),{longPressProps:p}=Vo({isDisabled:i||o!=="longPress",accessibilityDescription:f.format("longPressMessage"),onLongPressStart(){e.close()},onLongPress(){e.open("first")}}),m={preventFocusOnPress:!0,onPressStart(y){y.pointerType!=="touch"&&y.pointerType!=="keyboard"&&!i&&(Ge(y.target),e.open(y.pointerType==="virtual"?"first":null))},onPress(y){y.pointerType==="touch"&&!i&&(Ge(y.target),e.toggle())}};delete a.onPress;let{contextMenuProps:b}=Q2({onContextMenu(y){let $=y.target.getBoundingClientRect();e.setPoint({x:$.x+y.x,y:$.y+y.y}),e.open()}});s.useEffect(()=>{if(e.isOpen&&o==="contextMenu"){let y=$=>{($.button===2||$.button===0&&$.ctrlKey===!0)&&_($)===document.body&&e.close()};return document.addEventListener("mousedown",y),()=>document.removeEventListener("mousedown",y)}},[e,o]);let g;if(o==="press")g={...m,...c};else if(o==="longPress")g={...p,...c};else if(o==="contextMenu"){g=b;let{"aria-haspopup":y,"aria-expanded":$,"aria-controls":x,...v}=a;a=v}return{menuTriggerProps:{...a,...g,id:l},menuProps:{...u,"aria-labelledby":l,autoFocus:e.focusStrategy||!0,onClose:e.close}}}const cf=new WeakMap;function t1(t,e,n){let{shouldFocusWrap:r=!0,onKeyDown:i,onKeyUp:o,...l}=t;!t["aria-label"]&&!t["aria-labelledby"]&&process.env.NODE_ENV!=="production"&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let a=re(t,{labelable:!0}),{listProps:u}=bd({...l,ref:n,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,shouldFocusWrap:r,linkBehavior:"override"});return cf.set(e,{onClose:t.onClose,onAction:t.onAction,shouldUseVirtualFocus:t.shouldUseVirtualFocus}),{menuProps:G(a,{onKeyDown:i,onKeyUp:o},{role:"menu",...u,onKeyDown:d=>{(d.key!=="Escape"||t.shouldUseVirtualFocus)&&u.onKeyDown?.(d)}})}}function n1(t,e,n){let{id:r,key:i,closeOnSelect:o,shouldCloseOnSelect:l,isVirtualized:a,"aria-haspopup":u,onPressStart:d,onPressUp:c,onPress:f,onPressChange:p,onPressEnd:m,onClick:b,onHoverStart:g,onHoverChange:y,onHoverEnd:$,onKeyDown:x,onKeyUp:v,onFocus:C,onFocusChange:k,onBlur:P,selectionManager:N=e.selectionManager}=t,w=!!u,D=w&&t["aria-expanded"]==="true",I=t.isDisabled??N.isDisabled(i),L=t.isSelected??N.isSelected(i),z=cf.get(e),j=e.collection.getItem(i),E=t.onClose||z.onClose,A=Kt(),Y=()=>{if(!w&&(j?.props?.onAction?j.props.onAction():t.onAction&&t.onAction(i),z.onAction)){let ye=z.onAction;ye(i,j?.value)}},M="menuitem";w||(N.selectionMode==="single"?M="menuitemradio":N.selectionMode==="multiple"&&(M="menuitemcheckbox"));let X=dt(),S=dt(),B=dt(),U={id:r,"aria-disabled":I||void 0,role:M,"aria-label":t["aria-label"],"aria-labelledby":X,"aria-describedby":[t["aria-describedby"],S,B].filter(Boolean).join(" ")||void 0,"aria-controls":t["aria-controls"],"aria-haspopup":u,"aria-expanded":t["aria-expanded"]};if(N.selectionMode!=="none"&&!w&&(U["aria-checked"]=L),a){let ye=Number(j?.index);U["aria-posinset"]=Number.isNaN(ye)?void 0:ye+1,U["aria-setsize"]=jo(e.collection)}let oe=s.useRef(!1),W=ye=>{p?.(ye),oe.current=ye},ne=s.useRef(null),T=ye=>{ye.pointerType!=="keyboard"&&(ne.current={pointerType:ye.pointerType}),ye.pointerType==="mouse"&&(oe.current||ye.target.click()),c?.(ye)},O=ye=>{b?.(ye),Y(),za(ye,A,j.props.href,j?.props.routerOptions);let Ft=ne.current?.pointerType==="keyboard"?ne.current?.key==="Enter"||N.selectionMode==="none"||N.isLink(i):N.selectionMode!=="multiple"||N.isLink(i);Ft=l??o??Ft,E&&!w&&Ft&&E(),ne.current=null},{itemProps:J,isFocused:ce}=Wn({id:r,selectionManager:N,key:i,ref:n,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none",shouldUseVirtualFocus:z.shouldUseVirtualFocus}),{pressProps:he,isPressed:tt}=_t({onPressStart:d,onPress:f,onPressUp:T,onPressChange:W,onPressEnd:m,isDisabled:I}),{hoverProps:F}=Fe({isDisabled:I,onHoverStart(ye){!St()&&!(D&&u)&&(N.setFocused(!0),N.setFocusedKey(i)),g?.(ye)},onHoverChange:y,onHoverEnd:$}),{keyboardProps:K}=je({shortcuts:{" ":ye=>{ne.current={pointerType:"keyboard",key:" "},_(ye).click(),tn("keyboard")},Enter:ye=>{ne.current={pointerType:"keyboard",key:"Enter"};let Ft=_(ye);if(Ft.tagName!=="A"){Ft.click(),tn("keyboard");return}return tn("keyboard"),{shouldPreventDefault:!1,shouldContinuePropagation:!1}}},onKeyDown:x,onKeyUp:v}),{focusableProps:ue}=on({onBlur:P,onFocus:C,onFocusChange:k},n),fe=re(j?.props);delete fe.id;let ut=Dr(j?.props);return{menuItemProps:{...U,...G(fe,ut,w?{onFocus:J.onFocus,"data-collection":J["data-collection"],"data-key":J["data-key"]}:J,he,F,K,ue,z.shouldUseVirtualFocus||w?{onMouseDown:ye=>ye.preventDefault()}:void 0,I?void 0:{onClick:O}),tabIndex:J.tabIndex!=null&&D&&!z.shouldUseVirtualFocus?-1:J.tabIndex},labelProps:{id:X},descriptionProps:{id:S},keyboardShortcutProps:{id:B},isFocused:ce,isFocusVisible:ce&&N.isFocused&&St()&&!D,isSelected:L,isPressed:tt,isDisabled:I}}function r1(t){let{heading:e,"aria-label":n}=t,r=xe();return{itemProps:{role:"presentation"},headingProps:e?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":e?r:void 0}}}function rl(t){let e=Qn(t),[n,r]=s.useState(null),[i,o]=s.useState([]),l=()=>{o([]),e.close()};return{focusStrategy:n,...e,open(d=null){r(d),e.open()},toggle(d=null){r(d),e.toggle()},close(){l()},expandedKeysStack:i,openSubmenu:(d,c)=>{o(f=>c>f.length?f:[...f.slice(0,c),d])},closeSubmenu:(d,c)=>{o(f=>f[c]===d?f.slice(0,c):f)}}}class i1{constructor(e,{expandedKeys:n}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e,n=n||new Set;let r=l=>{if(this.keyMap.set(l.key,l),l.childNodes&&(l.type==="section"||n.has(l.key)))for(let a of l.childNodes)r(a)};for(let l of e)r(l);let i=null,o=0;for(let[l,a]of this.keyMap)i?(i.nextKey=l,a.prevKey=i.key):(this.firstKey=l,a.prevKey=void 0),a.type==="item"&&(a.index=o++),i=a,i.nextKey=void 0;this.lastKey=i?.key??null}*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let n=this.keyMap.get(e);return n?n.prevKey??null:null}getKeyAfter(e){let n=this.keyMap.get(e);return n?n.nextKey??null:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)??null}at(e){const n=[...this.getKeys()];return this.getItem(n[e])}}function o1(t){let{onExpandedChange:e}=t,[n,r]=Ye(t.expandedKeys?new Set(t.expandedKeys):void 0,t.defaultExpandedKeys?new Set(t.defaultExpandedKeys):new Set,e),i=Gn(t),o=s.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),l=Uo(t,s.useCallback(u=>new i1(u,{expandedKeys:n}),[n]),null);return s.useEffect(()=>{i.focusedKey!=null&&!l.getItem(i.focusedKey)&&i.setFocusedKey(null)},[l,i.focusedKey]),{collection:l,expandedKeys:n,disabledKeys:o,toggleKey:u=>{r(l1(n,u))},setExpandedKeys:r,selectionManager:new hn(l,i)}}function l1(t,e){let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n}const ff=s.createContext(null),il=s.createContext(null),di=s.createContext(null),ci=s.createContext(null);function fi(t){let e=rl(t),n=s.useRef(null),{menuTriggerProps:r,menuProps:i}=nl({...t,type:"menu"},e,n),o=s.useRef(null);return os()?null:s.createElement(De,{values:[[ff,{...i,ref:o}],[$t,e],[di,e],[er,{trigger:"MenuTrigger",triggerRef:n,scrollRef:o,placement:"bottom start","aria-labelledby":i["aria-labelledby"],offset:t.trigger==="contextMenu"?0:void 0}]]},s.createElement(Cc,{...r,ref:n,isPressed:e.isOpen},t.children))}const a1=s.createContext(null),ga=class ga extends He{filter(e,n,r){let i=e.getItem(this.firstChildKey);if(i&&r(i.textValue,this)){let o=this.clone();return n.addDescendants(o,e),o}return null}};ga.type="submenutrigger";let pf=ga;const hf=s.forwardRef(function(e,n){return[e,n]=be(e,n,ff),s.createElement(Ot,{content:s.createElement(zt,e)},r=>s.createElement(s1,{props:e,collection:r,menuRef:n}))});function s1({props:t,collection:e,menuRef:n}){[t,n]=be(t,n,Bn);let{filter:r,...i}=t,o=s.useMemo(()=>r?e.filter(r):e,[e,r]),l=o1({...t,collection:o,children:void 0}),a=s.useContext(di),{isVirtualized:u,CollectionRoot:d}=s.useContext(me),{menuProps:c}=t1({...t,isVirtualized:u,onClose:t.onClose||a?.close},l,n),f=se({...t,children:void 0,defaultClassName:"react-aria-Menu",values:{isEmpty:l.collection.size===0}}),p=null;l.collection.size===0&&t.renderEmptyState&&(p=s.createElement("div",{role:"menuitem",style:{display:"contents"}},t.renderEmptyState()));let m=re(t,{global:!0});return s.createElement(ei,null,s.createElement(ee.div,{...G(m,f,c),ref:n,slot:t.slot||void 0,"data-empty":l.collection.size===0||void 0,onScroll:t.onScroll},s.createElement(De,{values:[[il,l],[Io,{elementType:"div"}],[ps,{name:"MenuSection",render:d1}],[a1,{parentMenuRef:n,shouldUseVirtualFocus:i?.shouldUseVirtualFocus}],[tr,{shouldCloseOnSelect:t.shouldCloseOnSelect}],[Bn,null],[Fn,null],[ci,l.selectionManager],[di,a??rl({})]]},s.createElement(Jr,null,s.createElement(d,{collection:l.collection,persistedKeys:ms(l.selectionManager.focusedKey),scrollRef:n}))),p))}class u1 extends hn{constructor(e,n){super(e.collection,n),this.parent=e}get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(e,n){return this.parent.setFocusedKey(e,n)}setFocused(e){this.parent.setFocused(e)}get childFocusStrategy(){return this.parent.childFocusStrategy}}function d1(t,e,n,r="react-aria-MenuSection"){let i=s.useContext(il),{CollectionBranch:o}=s.useContext(me),[l,a]=Qt(),{headingProps:u,groupProps:d}=r1({heading:a,"aria-label":n.props["aria-label"]??void 0}),c=se({...t,id:void 0,children:void 0,defaultClassName:r,className:n.props?.className,style:n.props?.style,values:void 0}),f=s.useContext(ci),p=Gn(t),m=t.selectionMode!=null?new u1(f,p):f,b=ft(tr)?.shouldCloseOnSelect,g=re(t,{global:!0});return delete g.id,s.createElement(ee.section,{...G(g,c,d),ref:e},s.createElement(De,{values:[[Ao,{...u,ref:l}],[ci,m],[tr,{shouldCloseOnSelect:t.shouldCloseOnSelect??b}]]},s.createElement(o,{collection:i.collection,parent:n})))}const tr=s.createContext(null),mf=ot(Kr,function(e,n,r){[e,n]=be(e,n,tr);let i=ft(tr)?.id,o=s.useContext(il),l=ke(n),a=s.useContext(ci),{isVirtualized:u}=s.useContext(me),{menuItemProps:d,labelProps:c,descriptionProps:f,keyboardShortcutProps:p,...m}=n1({...e,id:i,key:r.key,selectionManager:a,isVirtualized:u},o,l),{hoverProps:b,isHovered:g}=Fe({isDisabled:m.isDisabled}),y=se({...e,id:void 0,children:r.rendered,defaultClassName:"react-aria-MenuItem",values:{...m,isHovered:g,isFocusVisible:m.isFocusVisible,selectionMode:a.selectionMode,selectionBehavior:a.selectionBehavior,hasSubmenu:!!e["aria-haspopup"],isOpen:e["aria-expanded"]==="true"}}),$=e.href?ee.a:ee.div,x=re(e,{global:!0});return delete x.id,delete x.onClick,s.createElement($,{...G(x,y,d,b),ref:l,"data-disabled":m.isDisabled||void 0,"data-hovered":g||void 0,"data-focused":m.isFocused||void 0,"data-focus-visible":m.isFocusVisible||void 0,"data-pressed":m.isPressed||void 0,"data-selected":m.isSelected||void 0,"data-selection-mode":a.selectionMode==="none"?void 0:a.selectionMode,"data-has-submenu":!!e["aria-haspopup"]||void 0,"data-open":e["aria-expanded"]==="true"||void 0},s.createElement(De,{values:[[bt,{slots:{[ct]:c,label:c,description:f}}],[J2,p],[Hn,{isSelected:m.isSelected}]]},y.children))});function c1(t,e){let{role:n="dialog"}=t,r=dt();r=t["aria-label"]?void 0:r;let i=dt();i=n==="alertdialog"&&!t["aria-describedby"]?i:void 0;let o=s.useRef(!1);s.useEffect(()=>{if(e.current&&!Mt(e.current)){Se(e.current);let u=setTimeout(()=>{(pe()===e.current||pe()===document.body)&&(o.current=!0,e.current&&(e.current.blur(),Se(e.current)),o.current=!1)},500);return()=>{clearTimeout(u)}}},[e]),wc();let l=s.useRef(!1);s.useEffect(()=>{if(process.env.NODE_ENV!=="production"&&!l.current&&e.current){let u=e.current,d=u.hasAttribute("aria-label"),c=u.hasAttribute("aria-labelledby");!d&&!c&&(console.warn("A dialog must have a title for accessibility. Either provide an aria-label or aria-labelledby prop, or render a heading element inside the dialog."),l.current=!0)}});let a=t["aria-describedby"]??i;return{dialogProps:{...re(t,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":t["aria-labelledby"]??r,"aria-describedby":a,onBlur:u=>{o.current&&u.stopPropagation()}},titleProps:{id:r},contentProps:{id:i}}}const bf=s.createContext(null),$t=s.createContext(null);function f1(t){let e=rl(t),n=s.useRef(null),{triggerProps:r,overlayProps:i}=df({type:"dialog"},e,n);return r.id=xe(),i["aria-labelledby"]=r.id,s.createElement(De,{values:[[$t,e],[di,e],[bf,i],[er,{trigger:"DialogTrigger",triggerRef:n,id:i.id,"aria-labelledby":i["aria-labelledby"]}]]},s.createElement(Cc,{...r,ref:n,isPressed:e.isOpen},t.children))}const gf=s.forwardRef(function(e,n){let r=e["aria-labelledby"];[e,n]=be(e,n,bf);let{dialogProps:i,titleProps:o,contentProps:l}=c1({...e,"aria-labelledby":r},n),a=s.useContext($t);!i["aria-label"]&&!i["aria-labelledby"]&&(e["aria-labelledby"]?i["aria-labelledby"]=e["aria-labelledby"]:process.env.NODE_ENV!=="production"&&console.warn('If a Dialog does not contain a <Heading slot="title">, it must have an aria-label or aria-labelledby attribute for accessibility.'));let u=se({defaultClassName:"react-aria-Dialog",className:e.className,style:e.style,children:e.children,values:{close:a?.close||(()=>{})}}),d=re(e,{global:!0});return s.createElement(ee.section,{...G(d,u,i),render:e.render,ref:n,slot:e.slot||void 0},s.createElement(De,{values:[[fu,{slots:{[ct]:{},title:{...o,level:2}}}],[bt,{slots:{[ct]:{},description:l}}],[Dt,{slots:{[ct]:{},close:{onPress:()=>a?.close()}}}]]},u.children))});var yf={};yf={buttonLabel:"عرض المقترحات",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} خيار`,other:()=>`${e.number(t.optionCount)} خيارات`})} متاحة.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`المجموعة المدخلة ${t.groupTitle}, مع ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} خيار`,other:()=>`${e.number(t.groupCount)} خيارات`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", محدد",other:""},t.isSelected)}`,listboxLabel:"مقترحات",selectedAnnouncement:t=>`${t.optionText}، محدد`};var $f={};$f={buttonLabel:"Покажи предложения",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} опция`,other:()=>`${e.number(t.optionCount)} опции`})} на разположение.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Въведена група ${t.groupTitle}, с ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} опция`,other:()=>`${e.number(t.groupCount)} опции`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", избрани",other:""},t.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:t=>`${t.optionText}, избрани`};var vf={};vf={buttonLabel:"Zobrazit doporučení",countAnnouncement:(t,e)=>`K dispozici ${e.plural(t.optionCount,{one:()=>`je ${e.number(t.optionCount)} možnost`,other:()=>`jsou/je ${e.number(t.optionCount)} možnosti/-í`})}.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Zadaná skupina „${t.groupTitle}“ ${e.plural(t.groupCount,{one:()=>`s ${e.number(t.groupCount)} možností`,other:()=>`se ${e.number(t.groupCount)} možnostmi`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:" (vybráno)",other:""},t.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:t=>`${t.optionText}, vybráno`};var xf={};xf={buttonLabel:"Vis forslag",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} mulighed tilgængelig`,other:()=>`${e.number(t.optionCount)} muligheder tilgængelige`})}.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Angivet gruppe ${t.groupTitle}, med ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} mulighed`,other:()=>`${e.number(t.groupCount)} muligheder`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", valgt",other:""},t.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:t=>`${t.optionText}, valgt`};var Cf={};Cf={buttonLabel:"Empfehlungen anzeigen",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} Option`,other:()=>`${e.number(t.optionCount)} Optionen`})} verfügbar.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Eingetretene Gruppe ${t.groupTitle}, mit ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} Option`,other:()=>`${e.number(t.groupCount)} Optionen`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", ausgewählt",other:""},t.isSelected)}`,listboxLabel:"Empfehlungen",selectedAnnouncement:t=>`${t.optionText}, ausgewählt`};var Ef={};Ef={buttonLabel:"Προβολή προτάσεων",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} επιλογή`,other:()=>`${e.number(t.optionCount)} επιλογές `})} διαθέσιμες.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Εισαγμένη ομάδα ${t.groupTitle}, με ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} επιλογή`,other:()=>`${e.number(t.groupCount)} επιλογές`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", επιλεγμένο",other:""},t.isSelected)}`,listboxLabel:"Προτάσεις",selectedAnnouncement:t=>`${t.optionText}, επιλέχθηκε`};var wf={};wf={focusAnnouncement:(t,e)=>`${e.select({true:()=>`Entered group ${t.groupTitle}, with ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} option`,other:()=>`${e.number(t.groupCount)} options`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", selected",other:""},t.isSelected)}`,countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} option`,other:()=>`${e.number(t.optionCount)} options`})} available.`,selectedAnnouncement:t=>`${t.optionText}, selected`,buttonLabel:"Show suggestions",listboxLabel:"Suggestions"};var Sf={};Sf={buttonLabel:"Mostrar sugerencias",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} opción`,other:()=>`${e.number(t.optionCount)} opciones`})} disponible(s).`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Se ha unido al grupo ${t.groupTitle}, con ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} opción`,other:()=>`${e.number(t.groupCount)} opciones`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", seleccionado",other:""},t.isSelected)}`,listboxLabel:"Sugerencias",selectedAnnouncement:t=>`${t.optionText}, seleccionado`};var Pf={};Pf={buttonLabel:"Kuva soovitused",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} valik`,other:()=>`${e.number(t.optionCount)} valikud`})} saadaval.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Sisestatud rühm ${t.groupTitle}, valikuga ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} valik`,other:()=>`${e.number(t.groupCount)} valikud`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", valitud",other:""},t.isSelected)}`,listboxLabel:"Soovitused",selectedAnnouncement:t=>`${t.optionText}, valitud`};var kf={};kf={buttonLabel:"Näytä ehdotukset",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} vaihtoehto`,other:()=>`${e.number(t.optionCount)} vaihtoehtoa`})} saatavilla.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Siirtyi ryhmään ${t.groupTitle}, jossa ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} vaihtoehto`,other:()=>`${e.number(t.groupCount)} vaihtoehtoa`})}.`,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", valittu",other:""},t.isSelected)}`,listboxLabel:"Ehdotukset",selectedAnnouncement:t=>`${t.optionText}, valittu`};var Df={};Df={buttonLabel:"Afficher les suggestions",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} option`,other:()=>`${e.number(t.optionCount)} options`})} disponible(s).`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Groupe ${t.groupTitle} rejoint, avec ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} option`,other:()=>`${e.number(t.groupCount)} options`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", sélectionné(s)",other:""},t.isSelected)}`,listboxLabel:"Suggestions",selectedAnnouncement:t=>`${t.optionText}, sélectionné`};var Nf={};Nf={buttonLabel:"הצג הצעות",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`אפשרות ${e.number(t.optionCount)}`,other:()=>`${e.number(t.optionCount)} אפשרויות`})} במצב זמין.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`נכנס לקבוצה ${t.groupTitle}, עם ${e.plural(t.groupCount,{one:()=>`אפשרות ${e.number(t.groupCount)}`,other:()=>`${e.number(t.groupCount)} אפשרויות`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", נבחר",other:""},t.isSelected)}`,listboxLabel:"הצעות",selectedAnnouncement:t=>`${t.optionText}, נבחר`};var Tf={};Tf={buttonLabel:"Prikaži prijedloge",countAnnouncement:(t,e)=>`Dostupno još: ${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} opcija`,other:()=>`${e.number(t.optionCount)} opcije/a`})}.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Unesena skupina ${t.groupTitle}, s ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} opcijom`,other:()=>`${e.number(t.groupCount)} opcije/a`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", odabranih",other:""},t.isSelected)}`,listboxLabel:"Prijedlozi",selectedAnnouncement:t=>`${t.optionText}, odabrano`};var Af={};Af={buttonLabel:"Javaslatok megjelenítése",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} lehetőség`,other:()=>`${e.number(t.optionCount)} lehetőség`})} áll rendelkezésre.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Belépett a(z) ${t.groupTitle} csoportba, amely ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} lehetőséget`,other:()=>`${e.number(t.groupCount)} lehetőséget`})} tartalmaz. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", kijelölve",other:""},t.isSelected)}`,listboxLabel:"Javaslatok",selectedAnnouncement:t=>`${t.optionText}, kijelölve`};var If={};If={buttonLabel:"Mostra suggerimenti",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} opzione disponibile`,other:()=>`${e.number(t.optionCount)} opzioni disponibili`})}.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Ingresso nel gruppo ${t.groupTitle}, con ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} opzione`,other:()=>`${e.number(t.groupCount)} opzioni`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", selezionato",other:""},t.isSelected)}`,listboxLabel:"Suggerimenti",selectedAnnouncement:t=>`${t.optionText}, selezionato`};var Bf={};Bf={buttonLabel:"候補を表示",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} 個のオプション`,other:()=>`${e.number(t.optionCount)} 個のオプション`})}を利用できます。`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`入力されたグループ ${t.groupTitle}、${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} 個のオプション`,other:()=>`${e.number(t.groupCount)} 個のオプション`})}を含む。`,other:""},t.isGroupChange)}${t.optionText}${e.select({true:"、選択済み",other:""},t.isSelected)}`,listboxLabel:"候補",selectedAnnouncement:t=>`${t.optionText}、選択済み`};var Ff={};Ff={buttonLabel:"제안 사항 표시",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)}개 옵션`,other:()=>`${e.number(t.optionCount)}개 옵션`})}을 사용할 수 있습니다.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`입력한 그룹 ${t.groupTitle}, ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)}개 옵션`,other:()=>`${e.number(t.groupCount)}개 옵션`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", 선택됨",other:""},t.isSelected)}`,listboxLabel:"제안",selectedAnnouncement:t=>`${t.optionText}, 선택됨`};var Mf={};Mf={buttonLabel:"Rodyti pasiūlymus",countAnnouncement:(t,e)=>`Yra ${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} parinktis`,other:()=>`${e.number(t.optionCount)} parinktys (-ių)`})}.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Įvesta grupė ${t.groupTitle}, su ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} parinktimi`,other:()=>`${e.number(t.groupCount)} parinktimis (-ių)`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", pasirinkta",other:""},t.isSelected)}`,listboxLabel:"Pasiūlymai",selectedAnnouncement:t=>`${t.optionText}, pasirinkta`};var Kf={};Kf={buttonLabel:"Rādīt ieteikumus",countAnnouncement:(t,e)=>`Pieejamo opciju skaits: ${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} opcija`,other:()=>`${e.number(t.optionCount)} opcijas`})}.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Ievadīta grupa ${t.groupTitle}, ar ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} opciju`,other:()=>`${e.number(t.groupCount)} opcijām`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", atlasīta",other:""},t.isSelected)}`,listboxLabel:"Ieteikumi",selectedAnnouncement:t=>`${t.optionText}, atlasīta`};var Lf={};Lf={buttonLabel:"Vis forslag",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} alternativ`,other:()=>`${e.number(t.optionCount)} alternativer`})} finnes.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Angitt gruppe ${t.groupTitle}, med ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} alternativ`,other:()=>`${e.number(t.groupCount)} alternativer`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", valgt",other:""},t.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:t=>`${t.optionText}, valgt`};var Of={};Of={buttonLabel:"Suggesties weergeven",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} optie`,other:()=>`${e.number(t.optionCount)} opties`})} beschikbaar.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Groep ${t.groupTitle} ingevoerd met ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} optie`,other:()=>`${e.number(t.groupCount)} opties`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", geselecteerd",other:""},t.isSelected)}`,listboxLabel:"Suggesties",selectedAnnouncement:t=>`${t.optionText}, geselecteerd`};var zf={};zf={buttonLabel:"Wyświetlaj sugestie",countAnnouncement:(t,e)=>`dostępna/dostępne(-nych) ${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} opcja`,other:()=>`${e.number(t.optionCount)} opcje(-i)`})}.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Dołączono do grupy ${t.groupTitle}, z ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} opcją`,other:()=>`${e.number(t.groupCount)} opcjami`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", wybrano",other:""},t.isSelected)}`,listboxLabel:"Sugestie",selectedAnnouncement:t=>`${t.optionText}, wybrano`};var _f={};_f={buttonLabel:"Mostrar sugestões",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} opção`,other:()=>`${e.number(t.optionCount)} opções`})} disponível.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Grupo inserido ${t.groupTitle}, com ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} opção`,other:()=>`${e.number(t.groupCount)} opções`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", selecionado",other:""},t.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:t=>`${t.optionText}, selecionado`};var Vf={};Vf={buttonLabel:"Apresentar sugestões",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} opção`,other:()=>`${e.number(t.optionCount)} opções`})} disponível.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Grupo introduzido ${t.groupTitle}, com ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} opção`,other:()=>`${e.number(t.groupCount)} opções`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", selecionado",other:""},t.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:t=>`${t.optionText}, selecionado`};var Hf={};Hf={buttonLabel:"Afișare sugestii",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} opțiune`,other:()=>`${e.number(t.optionCount)} opțiuni`})} disponibile.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Grup ${t.groupTitle} introdus, cu ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} opțiune`,other:()=>`${e.number(t.groupCount)} opțiuni`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", selectat",other:""},t.isSelected)}`,listboxLabel:"Sugestii",selectedAnnouncement:t=>`${t.optionText}, selectat`};var jf={};jf={buttonLabel:"Показать предложения",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} параметр`,other:()=>`${e.number(t.optionCount)} параметров`})} доступно.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Введенная группа ${t.groupTitle}, с ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} параметром`,other:()=>`${e.number(t.groupCount)} параметрами`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", выбранными",other:""},t.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:t=>`${t.optionText}, выбрано`};var Rf={};Rf={buttonLabel:"Zobraziť návrhy",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} možnosť`,other:()=>`${e.number(t.optionCount)} možnosti/-í`})} k dispozícii.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Zadaná skupina ${t.groupTitle}, s ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} možnosťou`,other:()=>`${e.number(t.groupCount)} možnosťami`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", vybraté",other:""},t.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:t=>`${t.optionText}, vybraté`};var Wf={};Wf={buttonLabel:"Prikaži predloge",countAnnouncement:(t,e)=>`Na voljo je ${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} opcija`,other:()=>`${e.number(t.optionCount)} opcije`})}.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Vnesena skupina ${t.groupTitle}, z ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} opcija`,other:()=>`${e.number(t.groupCount)} opcije`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", izbrano",other:""},t.isSelected)}`,listboxLabel:"Predlogi",selectedAnnouncement:t=>`${t.optionText}, izbrano`};var Uf={};Uf={buttonLabel:"Prikaži predloge",countAnnouncement:(t,e)=>`Dostupno još: ${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} opcija`,other:()=>`${e.number(t.optionCount)} opcije/a`})}.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Unesena grupa ${t.groupTitle}, s ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} opcijom`,other:()=>`${e.number(t.groupCount)} optione/a`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", izabranih",other:""},t.isSelected)}`,listboxLabel:"Predlozi",selectedAnnouncement:t=>`${t.optionText}, izabrano`};var Gf={};Gf={buttonLabel:"Visa förslag",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} alternativ`,other:()=>`${e.number(t.optionCount)} alternativ`})} tillgängliga.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Ingick i gruppen ${t.groupTitle} med ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} alternativ`,other:()=>`${e.number(t.groupCount)} alternativ`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", valda",other:""},t.isSelected)}`,listboxLabel:"Förslag",selectedAnnouncement:t=>`${t.optionText}, valda`};var Yf={};Yf={buttonLabel:"Önerileri göster",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} seçenek`,other:()=>`${e.number(t.optionCount)} seçenekler`})} kullanılabilir.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Girilen grup ${t.groupTitle}, ile ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} seçenek`,other:()=>`${e.number(t.groupCount)} seçenekler`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", seçildi",other:""},t.isSelected)}`,listboxLabel:"Öneriler",selectedAnnouncement:t=>`${t.optionText}, seçildi`};var Xf={};Xf={buttonLabel:"Показати пропозиції",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} параметр`,other:()=>`${e.number(t.optionCount)} параметри(-ів)`})} доступно.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Введена група ${t.groupTitle}, з ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} параметр`,other:()=>`${e.number(t.groupCount)} параметри(-ів)`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", вибрано",other:""},t.isSelected)}`,listboxLabel:"Пропозиції",selectedAnnouncement:t=>`${t.optionText}, вибрано`};var qf={};qf={buttonLabel:"显示建议",countAnnouncement:(t,e)=>`有 ${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} 个选项`,other:()=>`${e.number(t.optionCount)} 个选项`})}可用。`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`进入了 ${t.groupTitle} 组,其中有 ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} 个选项`,other:()=>`${e.number(t.groupCount)} 个选项`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", 已选择",other:""},t.isSelected)}`,listboxLabel:"建议",selectedAnnouncement:t=>`${t.optionText}, 已选择`};var Zf={};Zf={buttonLabel:"顯示建議",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} 選項`,other:()=>`${e.number(t.optionCount)} 選項`})} 可用。`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`輸入的群組 ${t.groupTitle}, 有 ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} 選項`,other:()=>`${e.number(t.groupCount)} 選項`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", 已選取",other:""},t.isSelected)}`,listboxLabel:"建議",selectedAnnouncement:t=>`${t.optionText}, 已選取`};var Jf={};Jf={"ar-AE":yf,"bg-BG":$f,"cs-CZ":vf,"da-DK":xf,"de-DE":Cf,"el-GR":Ef,"en-US":wf,"es-ES":Sf,"et-EE":Pf,"fi-FI":kf,"fr-FR":Df,"he-IL":Nf,"hr-HR":Tf,"hu-HU":Af,"it-IT":If,"ja-JP":Bf,"ko-KR":Ff,"lt-LT":Mf,"lv-LV":Kf,"nb-NO":Lf,"nl-NL":Of,"pl-PL":zf,"pt-BR":_f,"pt-PT":Vf,"ro-RO":Hf,"ru-RU":jf,"sk-SK":Rf,"sl-SI":Wf,"sr-SP":Uf,"sv-SE":Gf,"tr-TR":Yf,"uk-UA":Xf,"zh-CN":qf,"zh-TW":Zf};function p1(t){return t&&t.__esModule?t.default:t}function h1(t,e){let{buttonRef:n,popoverRef:r,inputRef:i,listBoxRef:o,keyboardDelegate:l,layoutDelegate:a,shouldFocusWrap:u,isReadOnly:d,isDisabled:c}=t,f=s.useRef(null);n=n??f;let p=Ie(p1(Jf),"@react-aria/combobox"),{menuTriggerProps:m,menuProps:b}=nl({type:"listbox",isDisabled:c||d},e,n);Qr.set(e,{id:b.id});let{collection:g}=e,{disabledKeys:y}=e.selectionManager,$=s.useMemo(()=>l||new Rn({collection:g,disabledKeys:y,ref:o,layoutDelegate:a}),[l,a,g,y,o]),{collectionProps:x}=ni({selectionManager:e.selectionManager,keyboardDelegate:$,disallowTypeAhead:!0,disallowEmptySelection:!0,shouldFocusWrap:u,ref:i,isVirtualized:!0}),v=Kt(),{keyboardProps:C}=je({shortcuts:{Enter:F=>{let K=e.isOpen;if(e.isOpen&&o.current&&e.selectionManager.focusedKey!=null){let ue=e.collection.getItem(e.selectionManager.focusedKey);if(ue?.props.href){let fe=o.current.querySelector(`[data-key="${CSS.escape(e.selectionManager.focusedKey.toString())}"]`);return fe instanceof HTMLAnchorElement&&v.open(fe,F,ue.props.href,ue.props.routerOptions),e.close(),{shouldPreventDefault:K}}else if(ue?.props.onAction)return ue.props.onAction(),e.close(),{shouldPreventDefault:K}}return e.commit(),{shouldPreventDefault:K}},Tab:()=>{if(e.isOpen&&o.current&&e.selectionManager.focusedKey!=null){let F=e.collection.getItem(e.selectionManager.focusedKey);if(F?.props.href)return e.close(),{shouldPreventDefault:!1};if(F?.props.onAction)return F.props.onAction(),e.close(),{shouldPreventDefault:!1,shouldContinuePropagation:!0}}return e.isOpen&&e.commit(),{shouldPreventDefault:!1,shouldContinuePropagation:!0}},Escape:()=>{let F=!1;return(!e.selectionManager.isEmpty||e.inputValue===""||t.allowsCustomValue)&&(F=!0),e.revert(),{shouldContinuePropagation:F}}}}),{keyboardProps:k}=je({shortcuts:{ArrowDown:()=>(e.open("first","manual"),{shouldPreventDefault:!1}),ArrowUp:()=>(e.open("last","manual"),{shouldPreventDefault:!1}),ArrowLeft:()=>(e.selectionManager.setFocusedKey(null),{shouldPreventDefault:!1}),ArrowRight:()=>(e.selectionManager.setFocusedKey(null),{shouldPreventDefault:!1})},allowRepeats:!0}),P=F=>{let K=n?.current&&n.current===F.relatedTarget,ue=te(r.current,F.relatedTarget);K||ue||(t.onBlur&&t.onBlur(F),e.setFocused(!1))},N=F=>{e.isFocused||(t.onFocus&&t.onFocus(F),e.setFocused(!0))},w=m1([e.selectionManager.selectedKeys,e.selectionManager.selectionMode]),{isInvalid:D,validationErrors:I,validationDetails:L}=e.displayValidation,{labelProps:z,inputProps:j,descriptionProps:E,errorMessageProps:A}=xu({...t,isRequired:t.selectionMode==="multiple"?t.isRequired&&e.selectionManager.isEmpty:t.isRequired,onChange:e.setInputValue,onKeyDown:d?t.onKeyDown:Ue(e.isOpen&&x.onKeyDown,C.onKeyDown,k.onKeyDown,t.onKeyDown),onBlur:P,value:e.inputValue,defaultValue:e.defaultInputValue,onFocus:N,autoComplete:"off",validate:void 0,[xo]:e,"aria-describedby":[w,t["aria-describedby"]].filter(Boolean).join(" ")||void 0},i);Po(i,e.defaultValue,e.setValue);let Y=F=>{F.pointerType==="touch"&&(i.current?.focus(),e.toggle(null,"manual"))},M=F=>{F.pointerType!=="touch"&&(i.current?.focus(),e.toggle(F.pointerType==="keyboard"||F.pointerType==="virtual"?"first":null,"manual"))},X=nn({id:m.id,"aria-label":p.format("buttonLabel"),"aria-labelledby":t["aria-labelledby"]||z.id}),S=nn({id:b.id,"aria-label":p.format("listboxLabel"),"aria-labelledby":t["aria-labelledby"]||z.id}),B=s.useRef(0),U=F=>{if(c||d)return;if(F.timeStamp-B.current<500){F.preventDefault(),i.current?.focus();return}let K=_(F).getBoundingClientRect(),ue=F.changedTouches[0],fe=Math.ceil(K.left+.5*K.width),ut=Math.ceil(K.top+.5*K.height);ue.clientX===fe&&ue.clientY===ut&&(F.preventDefault(),i.current?.focus(),e.toggle(null,"manual"),B.current=F.timeStamp)},oe=e.selectionManager.focusedKey!=null&&e.isOpen?e.collection.getItem(e.selectionManager.focusedKey):void 0,W=oe?.parentKey??null,ne=e.selectionManager.focusedKey??null,T=s.useRef(W),O=s.useRef(ne);s.useEffect(()=>{if(kr()&&oe!=null&&ne!=null&&ne!==O.current){let F=e.selectionManager.isSelected(ne),K=W!=null?e.collection.getItem(W):null,ue=K?.["aria-label"]||(typeof K?.rendered=="string"?K.rendered:"")||"",fe=p.format("focusAnnouncement",{isGroupChange:(K&&W!==T.current)??!1,groupTitle:ue,groupCount:K?[...Ee(K,e.collection)].length:0,optionText:oe["aria-label"]||oe.textValue||"",isSelected:F});Ht(fe)}T.current=W,O.current=ne});let J=jo(e.collection),ce=s.useRef(J),he=s.useRef(e.isOpen);s.useEffect(()=>{let F=e.isOpen!==he.current&&(e.selectionManager.focusedKey==null||kr());if(e.isOpen&&(F||J!==ce.current)){let K=p.format("countAnnouncement",{optionCount:J});Ht(K)}ce.current=J,he.current=e.isOpen});let tt=s.useRef(e.selectedKey);return s.useEffect(()=>{if(kr()&&e.isFocused&&e.selectedItem&&e.selectedKey!==tt.current){let F=e.selectedItem["aria-label"]||e.selectedItem.textValue||"",K=p.format("selectedAnnouncement",{optionText:F});Ht(K)}tt.current=e.selectedKey}),s.useEffect(()=>{if(e.isOpen)return Go([i.current,r.current].filter(F=>F!=null))},[e.isOpen,i,r]),go(()=>{!oe&&i.current&&pe(le(i.current))===i.current&&_i(i.current,null)},[oe]),An(o,"react-aria-item-action",e.isOpen?()=>{e.close()}:void 0),{labelProps:{...z,onClick:"htmlFor"in z&&z.htmlFor||t.isDisabled?void 0:()=>{i.current?.focus(),tn("keyboard")}},buttonProps:{...m,...X,excludeFromTabOrder:!0,preventFocusOnPress:!0,onPress:Y,onPressStart:M,isDisabled:c||d},inputProps:G(j,{role:"combobox","aria-expanded":m["aria-expanded"],"aria-controls":e.isOpen?b.id:void 0,"aria-autocomplete":"list","aria-activedescendant":oe?od(e,oe.key):void 0,onTouchEnd:U,autoCorrect:"off",spellCheck:"false"}),listBoxProps:G(b,S,{onAction:void 0,autoFocus:e.focusStrategy||!0,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,linkBehavior:"selection",UNSTABLE_itemBehavior:"action"}),valueProps:{id:w},descriptionProps:E,errorMessageProps:A,isInvalid:D,validationErrors:I,validationDetails:L}}function m1(t=[]){let e=xe(),[n,r]=s.useState(!0),[i,o]=s.useState(t);return i.some((l,a)=>!Object.is(l,t[a]))&&(r(!0),o(t)),s.useEffect(()=>{n&&!document.getElementById(e)&&r(!1)},[e,n,i]),n?e:void 0}function b1(t){let{defaultFilter:e,menuTrigger:n="input",allowsEmptyCollection:r=!1,allowsCustomValue:i,shouldCloseOnBlur:o=!0,selectionMode:l="single"}=t,[a,u]=s.useState(!1),[d,c]=s.useState(!1),[f,p]=s.useState(null),m=s.useMemo(()=>t.defaultValue!==void 0?t.defaultValue:l==="single"?t.defaultSelectedKey??null:[],[t.defaultValue,t.defaultSelectedKey,l]),b=s.useMemo(()=>t.value!==void 0?t.value:l==="single"?t.selectedKey:void 0,[t.value,t.selectedKey,l]),[g,y]=Ye(b,m,t.onChange),$=l==="single"&&Array.isArray(g)?g[0]:g,x=ie=>{if(l==="single"){let ve=Array.isArray(ie)?ie[0]??null:ie;y(ve),ve!==$&&t.onSelectionChange?.(ve)}else{let ve=[];Array.isArray(ie)?ve=ie:ie!=null&&(ve=[ie]),y(ve)}},{collection:v,selectionManager:C,disabledKeys:k}=ri({...t,items:t.items??t.defaultItems,selectionMode:l,disallowEmptySelection:l==="single",allowDuplicateSelectionEvents:!0,selectedKeys:s.useMemo(()=>y1($),[$]),onSelectionChange:ie=>{if(ie!=="all")if(l==="single"){let ve=ie.values().next().value??null;ve===$?(t.onSelectionChange?.(ve),O(),W()):x(ve)}else x([...ie])}}),P=l==="single"?C.firstSelectedKey:null,N=s.useMemo(()=>[...C.selectedKeys].map(ie=>v.getItem(ie)).filter(ie=>ie!=null),[C.selectedKeys,v]),[w,D]=Ye(t.inputValue,e0(t.defaultInputValue,P,v)||"",t.onInputChange),[I]=s.useState($),[L]=s.useState(w),z=v,j=s.useMemo(()=>t.items!=null||!e?v:g1(v,w,e),[v,w,e,t.items]),[E,A]=s.useState(j),Y=s.useRef("focus"),X=Qn({...t,onOpenChange:ie=>{t.onOpenChange&&t.onOpenChange(ie,ie?Y.current:void 0),C.setFocused(ie),ie||C.setFocusedKey(null)},isOpen:void 0,defaultOpen:void 0}),S=(ie=null,ve)=>{let $r=ve==="manual"||ve==="focus"&&n==="focus";(r||j.size>0||$r&&z.size>0||t.items)&&($r&&!X.isOpen&&t.items===void 0&&u(!0),Y.current=ve,p(ie),X.open())},B=(ie=null,ve)=>{let $r=ve==="manual"||ve==="focus"&&n==="focus";!(r||j.size>0||$r&&z.size>0||t.items)&&!X.isOpen||($r&&!X.isOpen&&t.items===void 0&&u(!0),X.isOpen||(Y.current=ve),oe(ie))},U=s.useCallback(()=>{A(a?z:j)},[a,z,j]),oe=s.useCallback((ie=null)=>{X.isOpen&&U(),p(ie),X.toggle()},[X,U]),W=s.useCallback(()=>{X.isOpen&&(U(),X.close())},[X,U]),[ne,T]=s.useState(w),O=()=>{let ie=P!=null?v.getItem(P)?.textValue??"":"";T(ie),D(ie)},J=s.useRef($),ce=s.useRef(P!=null?v.getItem(P)?.textValue??"":"");s.useEffect(()=>{d&&(j.size>0||r)&&!X.isOpen&&w!==ne&&n!=="manual"&&S(null,"input"),!a&&!r&&X.isOpen&&j.size===0&&W(),$!=null&&$!==J.current&&l==="single"&&W(),w!==ne&&(C.setFocusedKey(null),u(!1),l==="single"&&w===""&&(t.inputValue===void 0||b===void 0)&&x(null)),$!==J.current&&(t.inputValue===void 0||b===void 0)?O():ne!==w&&T(w);let ie=P!=null?v.getItem(P)?.textValue??"":"";!d&&P!=null&&t.inputValue===void 0&&P===J.current&&ce.current!==ie&&(T(ie),D(ie)),J.current=$,ce.current=ie});let he=Co({...t,value:s.useMemo(()=>Array.isArray($)&&$.length===0?null:{inputValue:w,value:$,selectedKey:P},[w,P,$])}),tt=()=>{i&&P==null?F():K()},F=()=>{if(l==="multiple"){T(w),W();return}let ie=null;J.current=ie,x(ie),W()},K=(ie=!1)=>{if(b!==void 0&&t.inputValue!==void 0){let ve=P!=null?v.getItem(P)?.textValue??"":"";(ie||l==="multiple"||w!==ve)&&(t.onSelectionChange?.(P),t.onChange?.($)),T(ve),W()}else O(),W()};const ue=()=>{if(i){const ie=P!=null?v.getItem(P)?.textValue??"":"";w===ie?K():F()}else K()};let fe=()=>{X.isOpen&&C.focusedKey!=null?C.isSelected(C.focusedKey)&&l==="single"?K(!0):C.select(C.focusedKey):ue()},ut=s.useRef([w,$]),ye=ie=>{ie?(ut.current=[w,$],n==="focus"&&!t.isReadOnly&&S(null,"focus")):(o&&ue(),(w!==ut.current[0]||$!==ut.current[1])&&he.commitValidation()),c(ie)},Ft=s.useMemo(()=>X.isOpen?a?z:j:E,[X.isOpen,z,j,a,E]),xg=t.defaultSelectedKey??(l==="single"?I:null);return{...he,...X,focusStrategy:f,toggle:B,open:S,close:ue,selectionManager:C,value:$,defaultValue:m??I,setValue:x,selectedKey:P,selectedItems:N,defaultSelectedKey:xg,setSelectedKey:x,disabledKeys:k,isFocused:d,setFocused:ye,selectedItem:N[0]??null,collection:Ft,inputValue:w,defaultInputValue:e0(t.defaultInputValue,xg,v)??L,setInputValue:D,commit:fe,revert:tt}}function g1(t,e,n){return new Ro(Qf(t,t,e,n))}function Qf(t,e,n,r){let i=[];for(let o of e)if(o.type==="section"&&o.hasChildNodes){let l=Qf(t,Ee(o,t),n,r);[...l].some(a=>a.type==="item")&&i.push({...o,childNodes:l})}else o.type==="item"&&r(o.textValue,n)?i.push({...o}):o.type!=="item"&&i.push({...o});return i}function e0(t,e,n){return t==null&&e!=null?n.getItem(e)?.textValue??"":t}function y1(t){if(t!==void 0)return t===null?[]:Array.isArray(t)?t:[t]}function $1(t){let e=fn({usage:"search",...t}),n=s.useCallback((o,l)=>l.length===0?!0:(o=o.normalize("NFC"),l=l.normalize("NFC"),e.compare(o.slice(0,l.length),l)===0),[e]),r=s.useCallback((o,l)=>l.length===0?!0:(o=o.normalize("NFC"),l=l.normalize("NFC"),e.compare(o.slice(-l.length),l)===0),[e]),i=s.useCallback((o,l)=>{if(l.length===0)return!0;o=o.normalize("NFC"),l=l.normalize("NFC");let a=0,u=l.length;for(;a+u<=o.length;a++){let d=o.slice(a,a+u);if(e.compare(l,d)===0)return!0}return!1},[e]);return s.useMemo(()=>({startsWith:n,endsWith:r,contains:i}),[n,r,i])}function v1(t={}){let{locale:e}=Te();return s.useMemo(()=>new Intl.ListFormat(e,t),[e,t])}const x1=s.createContext(null),ol=s.createContext(null),C1=ln(function(e,n){[e,n]=be(e,n,x1);let{children:r,isDisabled:i=!1,isInvalid:o=!1,isRequired:l=!1,isReadOnly:a=!1}=e,u=s.useMemo(()=>s.createElement(Yn.Provider,{value:{items:e.items??e.defaultItems}},typeof r=="function"?r({isOpen:!1,isDisabled:i,isInvalid:o,isRequired:l,defaultChildren:null,isReadOnly:a}):r),[r,i,o,l,a,e.items,e.defaultItems]);return s.createElement(Ot,{content:u},d=>s.createElement(w1,{props:e,collection:d,comboBoxRef:n}))}),E1=[sn,Dt,qr,Fn,Xr,bt];function w1({props:t,collection:e,comboBoxRef:n}){let{name:r,formValue:i="key",allowsCustomValue:o}=t;o&&(i="text");let{validationBehavior:l}=ft(So)||{},a=t.validationBehavior??l??"native",{contains:u}=$1({sensitivity:"base"}),d=b1({...t,defaultFilter:t.defaultFilter||u,items:t.items,children:void 0,collection:e,validationBehavior:a}),c=s.useRef(null),f=s.useRef(null),p=s.useRef(null),m=s.useRef(null),b=s.useRef(null),[g,y]=Qt(!t["aria-label"]&&!t["aria-labelledby"]),[$,x]=s.useState("label"),{buttonProps:v,inputProps:C,listBoxProps:k,labelProps:P,descriptionProps:N,errorMessageProps:w,valueProps:D,...I}=h1({...Oi(t),label:y,inputRef:f,buttonRef:c,listBoxRef:m,popoverRef:b,name:i==="text"?r:void 0,validationBehavior:a,labelElementType:$},d),[L,z]=s.useState(null),j=s.useCallback(()=>{if(f.current&&!p.current){let S=c.current?.getBoundingClientRect(),B=f.current.getBoundingClientRect(),U=S?Math.min(S.left,B.left):B.left,oe=S?Math.max(S.right,B.right):B.right;z(oe-U+"px")}},[c,f,z]);Zn({ref:f,onResize:j});let E=s.useMemo(()=>({get current(){return p.current||f.current}}),[p,f]),A=s.useMemo(()=>({isOpen:d.isOpen,isDisabled:t.isDisabled||!1,isInvalid:I.isInvalid||!1,isRequired:t.isRequired||!1,isReadOnly:t.isReadOnly||!1}),[d.isOpen,t.isDisabled,I.isInvalid,t.isRequired,t.isReadOnly]),Y=se({...t,values:A,defaultClassName:"react-aria-ComboBox"}),M=re(t,{global:!0});delete M.id;let X=[];if(r&&i==="key"){let S=Array.isArray(d.value)?d.value:[d.value];S.length===0&&(S=[null]),X=S.map((B,U)=>s.createElement("input",{key:U,type:"hidden",name:r,form:t.form,value:B??""}))}return s.createElement(De,{values:[[ol,d],[sn,{...P,elementType:$,ref:g}],[Dt,{...v,ref:c,isPressed:d.isOpen}],[qr,{...C,ref:f}],[Fn,{...C,ref:s.useCallback(S=>{f.current=S,S&&x(S.tagName.toLowerCase()==="input"?"label":"span")},[]),value:d.inputValue,onChange:S=>d.setInputValue(S)}],[$t,d],[er,{ref:b,triggerRef:E,scrollRef:m,placement:"bottom start",isNonModal:!0,trigger:"ComboBox",style:{"--trigger-width":L},clearContexts:E1}],[Yn,{...k,ref:m}],[Wt,d],[bt,{slots:{description:N,errorMessage:w}}],[Xr,{ref:p,isInvalid:I.isInvalid,isDisabled:t.isDisabled||!1}],[vo,I],[S1,D]]},s.createElement(ee.div,{...M,...Y,ref:n,slot:t.slot||void 0,"data-focused":d.isFocused||void 0,"data-open":d.isOpen||void 0,"data-disabled":t.isDisabled||void 0,"data-readonly":t.isReadOnly||void 0,"data-invalid":I.isInvalid||void 0,"data-required":t.isRequired||void 0},Y.children,X))}const S1=s.createContext(null);var t0={};t0={deselectedItem:t=>`${t.item} غير المحدد`,longPressToSelect:"اضغط مطولًا للدخول إلى وضع التحديد.",select:"تحديد",selectedAll:"جميع العناصر المحددة.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"لم يتم تحديد عناصر",one:()=>`${e.number(t.count)} عنصر محدد`,other:()=>`${e.number(t.count)} عنصر محدد`})}.`,selectedItem:t=>`${t.item} المحدد`};var n0={};n0={deselectedItem:t=>`${t.item} не е избран.`,longPressToSelect:"Натиснете и задръжте за да влезете в избирателен режим.",select:"Изберете",selectedAll:"Всички елементи са избрани.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Няма избрани елементи",one:()=>`${e.number(t.count)} избран елемент`,other:()=>`${e.number(t.count)} избрани елементи`})}.`,selectedItem:t=>`${t.item} избран.`};var r0={};r0={deselectedItem:t=>`Položka ${t.item} není vybrána.`,longPressToSelect:"Dlouhým stisknutím přejdete do režimu výběru.",select:"Vybrat",selectedAll:"Vybrány všechny položky.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nevybrány žádné položky",one:()=>`Vybrána ${e.number(t.count)} položka`,other:()=>`Vybráno ${e.number(t.count)} položek`})}.`,selectedItem:t=>`Vybrána položka ${t.item}.`};var i0={};i0={deselectedItem:t=>`${t.item} ikke valgt.`,longPressToSelect:"Lav et langt tryk for at aktivere valgtilstand.",select:"Vælg",selectedAll:"Alle elementer valgt.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Ingen elementer valgt",one:()=>`${e.number(t.count)} element valgt`,other:()=>`${e.number(t.count)} elementer valgt`})}.`,selectedItem:t=>`${t.item} valgt.`};var o0={};o0={deselectedItem:t=>`${t.item} nicht ausgewählt.`,longPressToSelect:"Gedrückt halten, um Auswahlmodus zu öffnen.",select:"Auswählen",selectedAll:"Alle Elemente ausgewählt.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Keine Elemente ausgewählt",one:()=>`${e.number(t.count)} Element ausgewählt`,other:()=>`${e.number(t.count)} Elemente ausgewählt`})}.`,selectedItem:t=>`${t.item} ausgewählt.`};var l0={};l0={deselectedItem:t=>`Δεν επιλέχθηκε το στοιχείο ${t.item}.`,longPressToSelect:"Πατήστε παρατεταμένα για να μπείτε σε λειτουργία επιλογής.",select:"Επιλογή",selectedAll:"Επιλέχθηκαν όλα τα στοιχεία.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Δεν επιλέχθηκαν στοιχεία",one:()=>`Επιλέχθηκε ${e.number(t.count)} στοιχείο`,other:()=>`Επιλέχθηκαν ${e.number(t.count)} στοιχεία`})}.`,selectedItem:t=>`Επιλέχθηκε το στοιχείο ${t.item}.`};var a0={};a0={deselectedItem:t=>`${t.item} not selected.`,select:"Select",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"No items selected",one:()=>`${e.number(t.count)} item selected`,other:()=>`${e.number(t.count)} items selected`})}.`,selectedAll:"All items selected.",selectedItem:t=>`${t.item} selected.`,longPressToSelect:"Long press to enter selection mode."};var s0={};s0={deselectedItem:t=>`${t.item} no seleccionado.`,longPressToSelect:"Mantenga pulsado para abrir el modo de selección.",select:"Seleccionar",selectedAll:"Todos los elementos seleccionados.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Ningún elemento seleccionado",one:()=>`${e.number(t.count)} elemento seleccionado`,other:()=>`${e.number(t.count)} elementos seleccionados`})}.`,selectedItem:t=>`${t.item} seleccionado.`};var u0={};u0={deselectedItem:t=>`${t.item} pole valitud.`,longPressToSelect:"Valikurežiimi sisenemiseks vajutage pikalt.",select:"Vali",selectedAll:"Kõik üksused valitud.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Üksusi pole valitud",one:()=>`${e.number(t.count)} üksus valitud`,other:()=>`${e.number(t.count)} üksust valitud`})}.`,selectedItem:t=>`${t.item} valitud.`};var d0={};d0={deselectedItem:t=>`Kohdetta ${t.item} ei valittu.`,longPressToSelect:"Siirry valintatilaan painamalla pitkään.",select:"Valitse",selectedAll:"Kaikki kohteet valittu.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Ei yhtään kohdetta valittu",one:()=>`${e.number(t.count)} kohde valittu`,other:()=>`${e.number(t.count)} kohdetta valittu`})}.`,selectedItem:t=>`${t.item} valittu.`};var c0={};c0={deselectedItem:t=>`${t.item} non sélectionné.`,longPressToSelect:"Appuyez de manière prolongée pour passer en mode de sélection.",select:"Sélectionner",selectedAll:"Tous les éléments sélectionnés.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Aucun élément sélectionné",one:()=>`${e.number(t.count)} élément sélectionné`,other:()=>`${e.number(t.count)} éléments sélectionnés`})}.`,selectedItem:t=>`${t.item} sélectionné.`};var f0={};f0={deselectedItem:t=>`${t.item} לא נבחר.`,longPressToSelect:"הקשה ארוכה לכניסה למצב בחירה.",select:"בחר",selectedAll:"כל הפריטים נבחרו.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"לא נבחרו פריטים",one:()=>`פריט ${e.number(t.count)} נבחר`,other:()=>`${e.number(t.count)} פריטים נבחרו`})}.`,selectedItem:t=>`${t.item} נבחר.`};var p0={};p0={deselectedItem:t=>`Stavka ${t.item} nije odabrana.`,longPressToSelect:"Dugo pritisnite za ulazak u način odabira.",select:"Odaberite",selectedAll:"Odabrane su sve stavke.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nije odabrana nijedna stavka",one:()=>`Odabrana je ${e.number(t.count)} stavka`,other:()=>`Odabrano je ${e.number(t.count)} stavki`})}.`,selectedItem:t=>`Stavka ${t.item} je odabrana.`};var h0={};h0={deselectedItem:t=>`${t.item} nincs kijelölve.`,longPressToSelect:"Nyomja hosszan a kijelöléshez.",select:"Kijelölés",selectedAll:"Az összes elem kijelölve.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Egy elem sincs kijelölve",one:()=>`${e.number(t.count)} elem kijelölve`,other:()=>`${e.number(t.count)} elem kijelölve`})}.`,selectedItem:t=>`${t.item} kijelölve.`};var m0={};m0={deselectedItem:t=>`${t.item} non selezionato.`,longPressToSelect:"Premi a lungo per passare alla modalità di selezione.",select:"Seleziona",selectedAll:"Tutti gli elementi selezionati.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nessun elemento selezionato",one:()=>`${e.number(t.count)} elemento selezionato`,other:()=>`${e.number(t.count)} elementi selezionati`})}.`,selectedItem:t=>`${t.item} selezionato.`};var b0={};b0={deselectedItem:t=>`${t.item} が選択されていません。`,longPressToSelect:"長押しして選択モードを開きます。",select:"選択",selectedAll:"すべての項目を選択しました。",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"項目が選択されていません",one:()=>`${e.number(t.count)} 項目を選択しました`,other:()=>`${e.number(t.count)} 項目を選択しました`})}。`,selectedItem:t=>`${t.item} を選択しました。`};var g0={};g0={deselectedItem:t=>`${t.item}이(가) 선택되지 않았습니다.`,longPressToSelect:"선택 모드로 들어가려면 길게 누르십시오.",select:"선택",selectedAll:"모든 항목이 선택되었습니다.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"선택된 항목이 없습니다",one:()=>`${e.number(t.count)}개 항목이 선택되었습니다`,other:()=>`${e.number(t.count)}개 항목이 선택되었습니다`})}.`,selectedItem:t=>`${t.item}이(가) 선택되었습니다.`};var y0={};y0={deselectedItem:t=>`${t.item} nepasirinkta.`,longPressToSelect:"Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.",select:"Pasirinkti",selectedAll:"Pasirinkti visi elementai.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nepasirinktas nė vienas elementas",one:()=>`Pasirinktas ${e.number(t.count)} elementas`,other:()=>`Pasirinkta elementų: ${e.number(t.count)}`})}.`,selectedItem:t=>`Pasirinkta: ${t.item}.`};var $0={};$0={deselectedItem:t=>`Vienums ${t.item} nav atlasīts.`,longPressToSelect:"Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.",select:"Atlasīt",selectedAll:"Atlasīti visi vienumi.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nav atlasīts neviens vienums",one:()=>`Atlasīto vienumu skaits: ${e.number(t.count)}`,other:()=>`Atlasīto vienumu skaits: ${e.number(t.count)}`})}.`,selectedItem:t=>`Atlasīts vienums ${t.item}.`};var v0={};v0={deselectedItem:t=>`${t.item} er ikke valgt.`,longPressToSelect:"Bruk et langt trykk for å gå inn i valgmodus.",select:"Velg",selectedAll:"Alle elementer er valgt.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Ingen elementer er valgt",one:()=>`${e.number(t.count)} element er valgt`,other:()=>`${e.number(t.count)} elementer er valgt`})}.`,selectedItem:t=>`${t.item} er valgt.`};var x0={};x0={deselectedItem:t=>`${t.item} niet geselecteerd.`,longPressToSelect:"Druk lang om de selectiemodus te openen.",select:"Selecteren",selectedAll:"Alle items geselecteerd.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Geen items geselecteerd",one:()=>`${e.number(t.count)} item geselecteerd`,other:()=>`${e.number(t.count)} items geselecteerd`})}.`,selectedItem:t=>`${t.item} geselecteerd.`};var C0={};C0={deselectedItem:t=>`Nie zaznaczono ${t.item}.`,longPressToSelect:"Naciśnij i przytrzymaj, aby wejść do trybu wyboru.",select:"Zaznacz",selectedAll:"Wszystkie zaznaczone elementy.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nie zaznaczono żadnych elementów",one:()=>`${e.number(t.count)} zaznaczony element`,other:()=>`${e.number(t.count)} zaznaczonych elementów`})}.`,selectedItem:t=>`Zaznaczono ${t.item}.`};var E0={};E0={deselectedItem:t=>`${t.item} não selecionado.`,longPressToSelect:"Mantenha pressionado para entrar no modo de seleção.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nenhum item selecionado",one:()=>`${e.number(t.count)} item selecionado`,other:()=>`${e.number(t.count)} itens selecionados`})}.`,selectedItem:t=>`${t.item} selecionado.`};var w0={};w0={deselectedItem:t=>`${t.item} não selecionado.`,longPressToSelect:"Prima continuamente para entrar no modo de seleção.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nenhum item selecionado",one:()=>`${e.number(t.count)} item selecionado`,other:()=>`${e.number(t.count)} itens selecionados`})}.`,selectedItem:t=>`${t.item} selecionado.`};var S0={};S0={deselectedItem:t=>`${t.item} neselectat.`,longPressToSelect:"Apăsați lung pentru a intra în modul de selectare.",select:"Selectare",selectedAll:"Toate elementele selectate.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Niciun element selectat",one:()=>`${e.number(t.count)} element selectat`,other:()=>`${e.number(t.count)} elemente selectate`})}.`,selectedItem:t=>`${t.item} selectat.`};var P0={};P0={deselectedItem:t=>`${t.item} не выбрано.`,longPressToSelect:"Нажмите и удерживайте для входа в режим выбора.",select:"Выбрать",selectedAll:"Выбраны все элементы.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Нет выбранных элементов",one:()=>`${e.number(t.count)} элемент выбран`,other:()=>`${e.number(t.count)} элементов выбрано`})}.`,selectedItem:t=>`${t.item} выбрано.`};var k0={};k0={deselectedItem:t=>`Nevybraté položky: ${t.item}.`,longPressToSelect:"Dlhším stlačením prejdite do režimu výberu.",select:"Vybrať",selectedAll:"Všetky vybraté položky.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Žiadne vybraté položky",one:()=>`${e.number(t.count)} vybratá položka`,other:()=>`Počet vybratých položiek:${e.number(t.count)}`})}.`,selectedItem:t=>`Vybraté položky: ${t.item}.`};var D0={};D0={deselectedItem:t=>`Element ${t.item} ni izbran.`,longPressToSelect:"Za izbirni način pritisnite in dlje časa držite.",select:"Izberite",selectedAll:"Vsi elementi so izbrani.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Noben element ni izbran",one:()=>`${e.number(t.count)} element je izbran`,other:()=>`${e.number(t.count)} elementov je izbranih`})}.`,selectedItem:t=>`Element ${t.item} je izbran.`};var N0={};N0={deselectedItem:t=>`${t.item} nije izabrano.`,longPressToSelect:"Dugo pritisnite za ulazak u režim biranja.",select:"Izaberite",selectedAll:"Izabrane su sve stavke.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nije izabrana nijedna stavka",one:()=>`Izabrana je ${e.number(t.count)} stavka`,other:()=>`Izabrano je ${e.number(t.count)} stavki`})}.`,selectedItem:t=>`${t.item} je izabrano.`};var T0={};T0={deselectedItem:t=>`${t.item} ej markerat.`,longPressToSelect:"Tryck länge när du vill öppna väljarläge.",select:"Markera",selectedAll:"Alla markerade objekt.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Inga markerade objekt",one:()=>`${e.number(t.count)} markerat objekt`,other:()=>`${e.number(t.count)} markerade objekt`})}.`,selectedItem:t=>`${t.item} markerat.`};var A0={};A0={deselectedItem:t=>`${t.item} seçilmedi.`,longPressToSelect:"Seçim moduna girmek için uzun basın.",select:"Seç",selectedAll:"Tüm ögeler seçildi.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Hiçbir öge seçilmedi",one:()=>`${e.number(t.count)} öge seçildi`,other:()=>`${e.number(t.count)} öge seçildi`})}.`,selectedItem:t=>`${t.item} seçildi.`};var I0={};I0={deselectedItem:t=>`${t.item} не вибрано.`,longPressToSelect:"Виконайте довге натиснення, щоб перейти в режим вибору.",select:"Вибрати",selectedAll:"Усі елементи вибрано.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Жодних елементів не вибрано",one:()=>`${e.number(t.count)} елемент вибрано`,other:()=>`Вибрано елементів: ${e.number(t.count)}`})}.`,selectedItem:t=>`${t.item} вибрано.`};var B0={};B0={deselectedItem:t=>`未选择 ${t.item}。`,longPressToSelect:"长按以进入选择模式。",select:"选择",selectedAll:"已选择所有项目。",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"未选择项目",one:()=>`已选择 ${e.number(t.count)} 个项目`,other:()=>`已选择 ${e.number(t.count)} 个项目`})}。`,selectedItem:t=>`已选择 ${t.item}。`};var F0={};F0={deselectedItem:t=>`未選取「${t.item}」。`,longPressToSelect:"長按以進入選擇模式。",select:"選取",selectedAll:"已選取所有項目。",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"未選取任何項目",one:()=>`已選取 ${e.number(t.count)} 個項目`,other:()=>`已選取 ${e.number(t.count)} 個項目`})}。`,selectedItem:t=>`已選取「${t.item}」。`};var pi={};pi={"ar-AE":t0,"bg-BG":n0,"cs-CZ":r0,"da-DK":i0,"de-DE":o0,"el-GR":l0,"en-US":a0,"es-ES":s0,"et-EE":u0,"fi-FI":d0,"fr-FR":c0,"he-IL":f0,"hr-HR":p0,"hu-HU":h0,"it-IT":m0,"ja-JP":b0,"ko-KR":g0,"lt-LT":y0,"lv-LV":$0,"nb-NO":v0,"nl-NL":x0,"pl-PL":C0,"pt-BR":E0,"pt-PT":w0,"ro-RO":S0,"ru-RU":P0,"sk-SK":k0,"sl-SI":D0,"sr-SP":N0,"sv-SE":T0,"tr-TR":A0,"uk-UA":I0,"zh-CN":B0,"zh-TW":F0};function P1(t){return t&&t.__esModule?t.default:t}function k1(t,e){let{getRowText:n=a=>e.collection.getTextValue?.(a)??e.collection.getItem(a)?.textValue}=t,r=Ie(P1(pi),"@react-aria/grid"),i=e.selectionManager.rawSelection,o=s.useRef(i),l=s.useCallback(()=>{if(!e.selectionManager.isFocused||i===o.current){o.current=i;return}let a=M0(i,o.current),u=M0(o.current,i),d=e.selectionManager.selectionBehavior==="replace",c=[];if(e.selectionManager.selectedKeys.size===1&&d){let f=e.selectionManager.selectedKeys.keys().next().value;if(f!=null&&e.collection.getItem(f)){let p=n(f);p&&c.push(r.format("selectedItem",{item:p}))}}else if(a.size===1&&u.size===0){let f=a.keys().next().value;if(f!=null){let p=n(f);p&&c.push(r.format("selectedItem",{item:p}))}}else if(u.size===1&&a.size===0){let f=u.keys().next().value;if(f!=null&&e.collection.getItem(f)){let p=n(f);p&&c.push(r.format("deselectedItem",{item:p}))}}e.selectionManager.selectionMode==="multiple"&&(c.length===0||i==="all"||i.size>1||o.current==="all"||o.current?.size>1)&&c.push(i==="all"?r.format("selectedAll"):r.format("selectedCount",{count:i.size})),c.length>0&&Ht(c.join(" ")),o.current=i},[i,e.selectionManager.selectedKeys,e.selectionManager.isFocused,e.selectionManager.selectionBehavior,e.selectionManager.selectionMode,e.collection,n,r]);go(()=>{if(e.selectionManager.isFocused)l();else{let a=requestAnimationFrame(l);return()=>cancelAnimationFrame(a)}},[i,e.selectionManager.isFocused])}function M0(t,e){let n=new Set;if(t==="all"||e==="all")return n;for(let r of t.keys())e.has(r)||n.add(r);return n}function D1(t,e){let n=e?.isDisabled,[r,i]=s.useState(!1);return de(()=>{if(t?.current&&!n){let o=()=>{if(t.current){let a=ze(t.current,{tabbable:!0});i(!!a.nextNode())}};o();let l=new MutationObserver(o);return l.observe(t.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{l.disconnect()}}}),n?!1:r}function N1(t){return t&&t.__esModule?t.default:t}function T1(t){let e=Ie(N1(pi),"@react-aria/grid"),n=Ra(),r=(n==="pointer"||n==="virtual"||n==null)&&typeof window<"u"&&"ontouchstart"in window,i=s.useMemo(()=>{let l=t.selectionManager.selectionMode,a=t.selectionManager.selectionBehavior,u;return r&&(u=e.format("longPressToSelect")),a==="replace"&&l!=="none"&&t.hasItemActions?u:void 0},[t.selectionManager.selectionMode,t.selectionManager.selectionBehavior,t.hasItemActions,e,r]);return _n(i)}function A1(t){return t&&t.__esModule?t.default:t}function I1(t,e){let{key:n}=t,r=e.selectionManager,i=xe(),o=!e.selectionManager.canSelectItem(n),l=e.selectionManager.isSelected(n),a=()=>r.toggleSelection(n);const u=Ie(A1(pi),"@react-aria/grid");return{checkboxProps:{id:i,"aria-label":u.format("select"),isSelected:l,isDisabled:o,onChange:a}}}function B1(t,e,n){let{overlayProps:r,underlayProps:i}=Ld({...t,isOpen:e.isOpen,onClose:e.close},n);return Od({isDisabled:!e.isOpen}),wc(),s.useEffect(()=>{if(e.isOpen&&n.current)return Go([n.current],{shouldUseInert:!0})},[e.isOpen,n]),{modalProps:G(r),underlayProps:i}}let Le=typeof document<"u"&&window.visualViewport;function F1(){let t=wt(),[e,n]=s.useState(()=>t?{width:0,height:0}:ll());return s.useEffect(()=>{let r=a=>{n(u=>a.width===u.width&&a.height===u.height?u:a)},i=()=>{Le&&Le.scale>1||r(ll())},o,l=a=>{Le&&Le.scale>1||Tn(_(a))&&(o=requestAnimationFrame(()=>{let u=pe();(!u||!Tn(u))&&r({width:document.documentElement.clientWidth,height:document.documentElement.clientHeight})}))};return r(ll()),pt()&&it()&&window.addEventListener("blur",l,!0),Le?Le.addEventListener("resize",i):window.addEventListener("resize",i),()=>{cancelAnimationFrame(o),pt()&&it()&&window.removeEventListener("blur",l,!0),Le?Le.removeEventListener("resize",i):window.removeEventListener("resize",i)}},[]),e}function ll(){return{width:Le?Math.min(Le.width*Le.scale,document.documentElement.clientWidth):document.documentElement.clientWidth,height:Le?Le.height*Le.scale:document.documentElement.clientHeight}}const M1=s.createContext(null),al=s.createContext(null),K1=s.forwardRef(function(e,n){if(s.useContext(al)){if(process.env.NODE_ENV!=="production"&&(e.onOpenChange||e.defaultOpen!==void 0||e.isOpen!==void 0)){const g=new Set(["isDismissable","isKeyboardDismissDisabled","isOpen","defaultOpen","onOpenChange","isEntering","isExiting","UNSTABLE_portalContainer","shouldCloseOnInteractOutside"]),y=Object.keys(e).filter($=>g.has($));console.warn(`This modal is already wrapped in a ModalOverlay, props [${y.join(", ")}] should be placed on the ModalOverlay instead.`)}return s.createElement(L0,{...e,modalRef:n},e.children)}let{isDismissable:i,isKeyboardDismissDisabled:o,isOpen:l,defaultOpen:a,onOpenChange:u,children:d,isEntering:c,isExiting:f,UNSTABLE_portalContainer:p,shouldCloseOnInteractOutside:m,...b}=e;return s.createElement(K0,{isDismissable:i,isKeyboardDismissDisabled:o,isOpen:l,defaultOpen:a,onOpenChange:u,isEntering:c,isExiting:f,UNSTABLE_portalContainer:p,shouldCloseOnInteractOutside:m},s.createElement(L0,{...b,modalRef:n},d))});function L1(t,e){[t,e]=be(t,e,M1);let n=s.useContext($t),r=Qn(t),i=t.isOpen!=null||t.defaultOpen!=null||!n?r:n;i===n&&process.env.NODE_ENV!=="production"&&(t.onOpenChange||t.defaultOpen!==void 0||t.isOpen!==void 0)&&console.warn("This modals state is controlled by a trigger, place onOpenChange on the trigger instead.");let o=ke(e),l=s.useRef(null),a=tl(o,i.isOpen),u=tl(l,i.isOpen),d=a||u||t.isExiting||!1,c=wt();return!i.isOpen&&!d||c?null:s.createElement(O1,{...t,state:i,isExiting:d,overlayRef:o,modalRef:l})}const K0=s.forwardRef(L1);function O1({UNSTABLE_portalContainer:t,...e}){let n=e.modalRef,{state:r}=e,{modalProps:i,underlayProps:o}=B1(e,r,n),l=el(e.overlayRef)||e.isEntering||!1,a=se({...e,defaultClassName:"react-aria-ModalOverlay",values:{isEntering:l,isExiting:e.isExiting,state:r}}),u=F1(),d,c;if(typeof document<"u"){let p=Nt(document.body)?document.body:document.scrollingElement||document.documentElement,m=p.getBoundingClientRect().width%1,b=p.getBoundingClientRect().height%1;d=p.scrollWidth-m,c=p.scrollHeight-b}let f={...a.style,"--visual-viewport-width":u.width+"px","--visual-viewport-height":u.height+"px","--page-width":d!==void 0?d+"px":void 0,"--page-height":c!==void 0?c+"px":void 0};return s.createElement(Qo,{isExiting:e.isExiting,portalContainer:t},s.createElement(ee.div,{...G(re(e,{global:!0}),o),...a,style:f,ref:e.overlayRef,"data-entering":l||void 0,"data-exiting":e.isExiting||void 0},s.createElement(De,{values:[[al,{modalProps:i,modalRef:n,isExiting:e.isExiting,isDismissable:e.isDismissable}],[$t,r]]},a.children)))}function L0(t){let{modalProps:e,modalRef:n,isExiting:r,isDismissable:i}=s.useContext(al),o=s.useContext($t),l=s.useMemo(()=>Sn(t.modalRef,n),[t.modalRef,n]),a=ke(l),u=el(a),d=se({...t,defaultClassName:"react-aria-Modal",values:{isEntering:u,isExiting:r,state:o}});return s.createElement(ee.div,{...G(re(t,{global:!0}),e),...d,ref:a,"data-entering":u||void 0,"data-exiting":r||void 0},i&&s.createElement(Jo,{onDismiss:o.close}),d.children)}var O0={};O0={"Clear search":"مسح البحث"};var z0={};z0={"Clear search":"Изчистване на търсене"};var _0={};_0={"Clear search":"Vymazat hledání"};var V0={};V0={"Clear search":"Ryd søgning"};var H0={};H0={"Clear search":"Suche zurücksetzen"};var j0={};j0={"Clear search":"Απαλοιφή αναζήτησης"};var R0={};R0={"Clear search":"Clear search"};var W0={};W0={"Clear search":"Borrar búsqueda"};var U0={};U0={"Clear search":"Tühjenda otsing"};var G0={};G0={"Clear search":"Tyhjennä haku"};var Y0={};Y0={"Clear search":"Effacer la recherche"};var X0={};X0={"Clear search":"נקה חיפוש"};var q0={};q0={"Clear search":"Obriši pretragu"};var Z0={};Z0={"Clear search":"Keresés törlése"};var J0={};J0={"Clear search":"Cancella ricerca"};var Q0={};Q0={"Clear search":"検索をクリア"};var ep={};ep={"Clear search":"검색 지우기"};var tp={};tp={"Clear search":"Išvalyti iešką"};var np={};np={"Clear search":"Notīrīt meklēšanu"};var rp={};rp={"Clear search":"Tøm søk"};var ip={};ip={"Clear search":"Zoekactie wissen"};var op={};op={"Clear search":"Wyczyść zawartość wyszukiwania"};var lp={};lp={"Clear search":"Limpar pesquisa"};var ap={};ap={"Clear search":"Limpar pesquisa"};var sp={};sp={"Clear search":"Ştergeţi căutarea"};var up={};up={"Clear search":"Очистить поиск"};var dp={};dp={"Clear search":"Vymazať vyhľadávanie"};var cp={};cp={"Clear search":"Počisti iskanje"};var fp={};fp={"Clear search":"Obriši pretragu"};var pp={};pp={"Clear search":"Rensa sökning"};var hp={};hp={"Clear search":"Aramayı temizle"};var mp={};mp={"Clear search":"Очистити пошук"};var bp={};bp={"Clear search":"清除搜索"};var gp={};gp={"Clear search":"清除搜尋條件"};var yp={};yp={"ar-AE":O0,"bg-BG":z0,"cs-CZ":_0,"da-DK":V0,"de-DE":H0,"el-GR":j0,"en-US":R0,"es-ES":W0,"et-EE":U0,"fi-FI":G0,"fr-FR":Y0,"he-IL":X0,"hr-HR":q0,"hu-HU":Z0,"it-IT":J0,"ja-JP":Q0,"ko-KR":ep,"lt-LT":tp,"lv-LV":np,"nb-NO":rp,"nl-NL":ip,"pl-PL":op,"pt-BR":lp,"pt-PT":ap,"ro-RO":sp,"ru-RU":up,"sk-SK":dp,"sl-SI":cp,"sr-SP":fp,"sv-SE":pp,"tr-TR":hp,"uk-UA":mp,"zh-CN":bp,"zh-TW":gp};function z1(t){return t&&t.__esModule?t.default:t}function _1(t,e,n){let r=Ie(z1(yp),"@react-aria/searchfield"),{isDisabled:i,isReadOnly:o,onSubmit:l,onClear:a,type:u="search"}=t,{keyboardProps:d}=je({isDisabled:i||o,shortcuts:{Enter:()=>{if(l){l(e.value);return}return!1},Escape:()=>{if(e.value===""&&(!n.current||n.current.value===""))return!1;e.setValue(""),a?.()}}}),c=()=>{e.setValue(""),a&&a()},f=()=>{n.current?.focus()},{labelProps:p,inputProps:m,descriptionProps:b,errorMessageProps:g,...y}=xu({...t,value:e.value,onChange:e.setValue,onKeyDown:t.onKeyDown,onKeyUp:t.onKeyUp,type:u},n);return{labelProps:p,inputProps:G(d,{...m,defaultValue:void 0}),clearButtonProps:{"aria-label":r.format("Clear search"),excludeFromTabOrder:!0,preventFocusOnPress:!0,isDisabled:i||o,onPress:c,onPressStart:f},descriptionProps:b,errorMessageProps:g,...y}}function V1(t){let[e,n]=Ye($p(t.value),$p(t.defaultValue)||"",t.onChange);return{value:e,setValue:n}}function $p(t){if(t!=null)return t.toString()}const H1=s.createContext(null),j1=ln(function(e,n){[e,n]=be(e,n,H1);let{validationBehavior:r}=ft(So)||{},i=e.validationBehavior??r??"native",o=s.useRef(null);[e,o]=be(e,o,Fn);let[l,a]=Qt(!e["aria-label"]&&!e["aria-labelledby"]),u=V1({...e,validationBehavior:i}),{labelProps:d,inputProps:c,clearButtonProps:f,descriptionProps:p,errorMessageProps:m,...b}=_1({...Oi(e),label:a,validationBehavior:i},u,o),g=se({...e,values:{isEmpty:u.value==="",isDisabled:e.isDisabled||!1,isInvalid:b.isInvalid||!1,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1,state:u},defaultClassName:"react-aria-SearchField"}),y=re(e,{global:!0});return delete y.id,s.createElement(ee.div,{...y,...g,ref:n,slot:e.slot||void 0,"data-empty":u.value===""||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":b.isInvalid||void 0,"data-readonly":e.isReadOnly||void 0,"data-required":e.isRequired||void 0},s.createElement(De,{values:[[sn,{...d,ref:l}],[qr,{...c,ref:o}],[Dt,f],[bt,{slots:{description:p,errorMessage:m}}],[Xr,{isInvalid:b.isInvalid,isDisabled:e.isDisabled||!1}],[vo,b]]},g.children))}),sl=new WeakMap;function R1(t,e,n){let{keyboardDelegate:r,isDisabled:i,isRequired:o,name:l,form:a,validationBehavior:u="aria"}=t,d=fn({usage:"search",sensitivity:"base"}),c=s.useMemo(()=>r||new Rn(e.collection,e.disabledKeys,n,d),[r,e.collection,e.disabledKeys,d,n]),{menuTriggerProps:f,menuProps:p}=nl({isDisabled:i,type:"listbox"},e,n),{keyboardProps:m}=je({shortcuts:{ArrowLeft:()=>{if(e.selectionManager.selectionMode==="multiple")return!1;let D=e.selectedKey!=null?c.getKeyAbove?.(e.selectedKey):c.getFirstKey?.();D!=null&&e.setSelectedKey(D)},ArrowRight:()=>{if(e.selectionManager.selectionMode==="multiple")return!1;let D=e.selectedKey!=null?c.getKeyBelow?.(e.selectedKey):c.getFirstKey?.();D!=null&&e.setSelectedKey(D)}},allowRepeats:!0,onKeyDown:t.onKeyDown,onKeyUp:t.onKeyUp}),{typeSelectProps:b}=hd({keyboardDelegate:c,selectionManager:e.selectionManager,onTypeSelect(D){e.setSelectedKey(D)}}),{isInvalid:g,validationErrors:y,validationDetails:$}=e.displayValidation,{labelProps:x,fieldProps:v,descriptionProps:C,errorMessageProps:k}=gu({...t,labelElementType:"span",isInvalid:g,errorMessage:t.errorMessage||y});e.selectionManager.selectionMode==="multiple"&&(b={});let P=re(t,{labelable:!0}),N=G(b,f,v),w=xe();return sl.set(e,{isDisabled:i,isRequired:o,name:l,form:a,validationBehavior:u}),{labelProps:{...x,onClick:()=>{t.isDisabled||(n.current?.focus(),tn("keyboard"))}},triggerProps:G(P,{...N,isDisabled:i,onKeyDown:Ue(N.onKeyDown,m.onKeyDown),onKeyUp:m.onKeyUp,"aria-labelledby":[w,N["aria-labelledby"],N["aria-label"]&&!N["aria-labelledby"]?N.id:null].filter(Boolean).join(" "),onFocus(D){e.isFocused||(t.onFocus&&t.onFocus(D),t.onFocusChange&&t.onFocusChange(!0),e.setFocused(!0))},onBlur(D){e.isOpen||(t.onBlur&&t.onBlur(D),t.onFocusChange&&t.onFocusChange(!1),e.setFocused(!1))}}),valueProps:{id:w},menuProps:{...p,onAction:void 0,autoFocus:e.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,linkBehavior:"selection",onBlur:D=>{te(D.currentTarget,D.relatedTarget)||(t.onBlur&&t.onBlur(D),t.onFocusChange&&t.onFocusChange(!1),e.setFocused(!1))},"aria-labelledby":[v["aria-labelledby"],N["aria-label"]&&!v["aria-labelledby"]?N.id:null].filter(Boolean).join(" ")},descriptionProps:C,errorMessageProps:k,isInvalid:g,validationErrors:y,validationDetails:$,hiddenSelectProps:{isDisabled:i,name:l,label:t.label,state:e,triggerRef:n,form:a}}}function W1(t,e,n){let r=sl.get(e)||{},{autoComplete:i,name:o=r.name,form:l=r.form,isDisabled:a=r.isDisabled}=t,{validationBehavior:u,isRequired:d}=r,{visuallyHiddenProps:c}=cn({style:{position:"fixed",top:0,left:0}});Po(t.selectRef,e.defaultValue,e.setValue),yu({validationBehavior:u,focus:()=>n.current?.focus()},e,t.selectRef);let f=e.setValue,p=s.useCallback(m=>{let b=_(m);b.multiple?f(Array.from(b.selectedOptions,g=>g.value)):f(m.currentTarget.value)},[f]);return{containerProps:{...c,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{style:{display:"none"}},selectProps:{tabIndex:-1,autoComplete:i,disabled:a,multiple:e.selectionManager.selectionMode==="multiple",required:u==="native"&&d,name:o,form:l,value:e.value??"",onChange:p,onInput:p}}}function U1(t){let{state:e,triggerRef:n,label:r,name:i,form:o,isDisabled:l}=t,a=s.useRef(null),u=s.useRef(null),{containerProps:d,selectProps:c}=W1({...t,selectRef:e.collection.size<=300?a:u},e,n),f=Array.isArray(e.value)?e.value:[e.value];if(e.collection.size<=300)return s.createElement("div",{...d,"data-testid":"hidden-select-container"},s.createElement("label",null,r,s.createElement("select",{...c,ref:a},s.createElement("option",{value:"",label:" "}," "),[...e.collection.getKeys()].map(p=>{let m=e.collection.getItem(p);if(m&&m.type==="item")return s.createElement("option",{key:m.key,value:m.key},m.textValue)}),e.collection.size===0&&i&&f.map((p,m)=>s.createElement("option",{key:m,value:p??""})))));if(i){let p=sl.get(e)||{},{validationBehavior:m}=p;f.length===0&&(f=[null]);let b=f.map((g,y)=>{let $={type:"hidden",autoComplete:c.autoComplete,name:i,form:o,disabled:l,value:g??""};return m==="native"?s.createElement("input",{key:y,...$,ref:y===0?u:null,style:{display:"none"},type:"text",required:y===0?c.required:!1,onChange:()=>{}}):s.createElement("input",{key:y,...$,ref:y===0?u:null})});return s.createElement(s.Fragment,null,b)}return null}function G1(t){let{selectionMode:e="single",shouldCloseOnSelect:n=e==="single"}=t,r=Qn(t),[i,o]=s.useState(null),l=s.useMemo(()=>t.defaultValue!==void 0?t.defaultValue:e==="single"?t.defaultSelectedKey??null:[],[t.defaultValue,t.defaultSelectedKey,e]),a=s.useMemo(()=>t.value!==void 0?t.value:e==="single"?t.selectedKey:void 0,[t.value,t.selectedKey,e]),[u,d]=Ye(a,l,t.onChange),c=e==="single"&&Array.isArray(u)?u[0]:u,f=v=>{if(e==="single"){let C=Array.isArray(v)?v[0]??null:v;d(C),C!==c&&t.onSelectionChange?.(C)}else{let C=[];Array.isArray(v)?C=v:v!=null&&(C=[v]),d(C)}},p=ri({...t,selectionMode:e,disallowEmptySelection:e==="single",allowDuplicateSelectionEvents:!0,selectedKeys:s.useMemo(()=>Y1(c),[c]),onSelectionChange:v=>{if(v!=="all"){if(e==="single"){let C=v.values().next().value??null;f(C)}else f([...v]);n&&r.close(),g.commitValidation()}}}),m=p.selectionManager.firstSelectedKey,b=s.useMemo(()=>[...p.selectionManager.selectedKeys].map(v=>p.collection.getItem(v)).filter(v=>v!=null),[p.selectionManager.selectedKeys,p.collection]),g=Co({...t,value:Array.isArray(c)&&c.length===0?null:c}),[y,$]=s.useState(!1),[x]=s.useState(c);return{...g,...p,...r,value:c,defaultValue:l??x,setValue:f,selectedKey:m,setSelectedKey:f,selectedItem:b[0]??null,selectedItems:b,defaultSelectedKey:t.defaultSelectedKey??(t.selectionMode==="single"?x:null),focusStrategy:i,open(v=null){(p.collection.size!==0||t.allowsEmptyCollection)&&(o(v),r.open())},toggle(v=null){(p.collection.size!==0||t.allowsEmptyCollection)&&(o(v),r.toggle())},isFocused:y,setFocused:$}}function Y1(t){if(t!==void 0)return t===null?[]:Array.isArray(t)?t:[t]}function X1(t){return t&&t.__esModule?t.default:t}const ul=s.createContext(null),vp=s.createContext(null),q1=ln(function(e,n){[e,n]=be(e,n,ul);let{children:r,isDisabled:i=!1,isInvalid:o=!1,isRequired:l=!1}=e,a=s.useMemo(()=>typeof r=="function"?r({isOpen:!1,isDisabled:i,isInvalid:o,isRequired:l,isFocused:!1,isFocusVisible:!1,defaultChildren:null}):r,[r,i,o,l]);return s.createElement(Ot,{content:a},u=>s.createElement(J1,{props:e,collection:u,selectRef:n}))}),Z1=[sn,Dt,bt];function J1({props:t,selectRef:e,collection:n}){let{validationBehavior:r}=ft(So)||{},i=t.validationBehavior??r??"native",o=G1({...t,collection:n,children:void 0,validationBehavior:i}),{isFocusVisible:l,focusProps:a}=Be({within:!0}),u=s.useRef(null),[d,c]=Qt(!t["aria-label"]&&!t["aria-labelledby"]),{labelProps:f,triggerProps:p,valueProps:m,menuProps:b,descriptionProps:g,errorMessageProps:y,hiddenSelectProps:$,...x}=R1({...Oi(t),label:c,validationBehavior:i},o,u),v=s.useMemo(()=>({isOpen:o.isOpen,isFocused:o.isFocused,isFocusVisible:l,isDisabled:t.isDisabled||!1,isInvalid:x.isInvalid||!1,isRequired:t.isRequired||!1}),[o.isOpen,o.isFocused,l,t.isDisabled,x.isInvalid,t.isRequired]),C=se({...t,values:v,defaultClassName:"react-aria-Select"}),k=re(t,{global:!0});delete k.id;let P=s.useRef(null);return s.createElement(De,{values:[[ul,t],[vp,o],[xp,m],[sn,{...f,ref:d,elementType:"span"}],[Dt,{...p,ref:u,isPressed:o.isOpen,autoFocus:t.autoFocus}],[$t,o],[er,{trigger:"Select",triggerRef:u,scrollRef:P,placement:"bottom start","aria-labelledby":b["aria-labelledby"],clearContexts:Z1}],[Yn,{...b,ref:P}],[Wt,o],[bt,{slots:{description:g,errorMessage:y}}],[vo,x]]},s.createElement(ee.div,{...G(k,C,a),ref:e,slot:t.slot||void 0,"data-focused":o.isFocused||void 0,"data-focus-visible":l||void 0,"data-open":o.isOpen||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":x.isInvalid||void 0,"data-required":t.isRequired||void 0},C.children,s.createElement(U1,{...$,autoComplete:t.autoComplete})))}const xp=s.createContext(null),Q1=ln(function(e,n){[e,n]=be(e,n,xp);let r=s.useContext(vp),{placeholder:i}=ft(ul),o=r.selectedItems.map(b=>{let g=b.props?.children;return typeof g=="function"&&(g=g({isHovered:!1,isPressed:!1,isSelected:!1,isFocused:!1,isFocusVisible:!1,isDisabled:!1,selectionMode:"single",selectionBehavior:"toggle"})),g}),l=v1(),a=s.useMemo(()=>r.selectedItems.map(b=>b?.textValue),[r.selectedItems]),u=r.selectionManager.selectionMode,d=s.useMemo(()=>u==="single"?a[0]??"":l.format(a),[u,l,a]),c=s.useMemo(()=>{if(u==="single")return o[0];let b=l.formatToParts(a);if(b.length===0)return null;let g=0;return b.map(y=>y.type==="element"?s.createElement(s.Fragment,{key:g},o[g++]):y.value)},[u,l,a,o]),f=Ie(X1(No),"react-aria-components"),p=se({...e,defaultChildren:c??i??f.format("selectPlaceholder"),defaultClassName:"react-aria-SelectValue",values:{selectedItem:r.selectedItems[0]?.value??null,selectedItems:s.useMemo(()=>r.selectedItems.map(b=>b.value??null),[r.selectedItems]),selectedText:d,isPlaceholder:r.selectedItems.length===0,state:r}}),m=re(e,{global:!0});return s.createElement(ee.span,{ref:n,...m,...p,"data-placeholder":r.selectedItems.length===0||void 0},s.createElement(bt.Provider,{value:void 0},p.children))}),Cp=10,Ep=5;class ey{setup(e,n,r){this.delegate=e,this.state=n,this.direction=r}getDropTargetFromPoint(e,n,r){let i=this.delegate.getDropTargetFromPoint(e,n,r);return!i||i.type==="root"?i:this.resolveDropTarget(i,e,n,r)}resolveDropTarget(e,n,r,i){let o=this.pointerTracking,l=r-o.lastY,a=n-o.lastX,u=o.yDirection,d=o.xDirection;if(Math.abs(l)>Ep&&(u=l>0?"down":"up",o.yDirection=u,o.lastY=r),Math.abs(a)>Cp&&(d=a>0?"right":"left",o.xDirection=d,o.lastX=n),e.dropPosition==="before"){let p=this.state.collection.getKeyBefore(e.key);for(;p!=null;){let m=this.state.collection.getItem(p);if(m?.type==="item")break;p=m?.parentKey??null}if(p!=null){let m={type:"item",key:p,dropPosition:"after"};i(m)&&(e=m)}}let c=this.getPotentialTargets(e,i);if(c.length===0)return{type:"root"};let f;return c.length>1?f=this.selectTarget(c,e,n,r,u,d):(f=c[0],o.boundaryContext=null),f}getPotentialTargets(e,n){if(e.dropPosition==="on")return[e];let r=e,i=this.state.collection,o=i.getItem(r.key);for(;o&&o?.type!=="item"&&o.nextKey!=null;)r.key=o.nextKey,o=i.getItem(o.nextKey);let l=[r];if(o&&o.hasChildNodes&&this.state.expandedKeys.has(o.key)&&i.getChildren&&r.dropPosition==="after"){let d=o.firstChildKey!=null?i.getItem(o.firstChildKey):null;for(;d&&d.type!=="item";)d=d.nextKey!=null?i.getItem(d.nextKey):null;if(d?.type==="item"){const c={type:"item",key:d.key,dropPosition:"before"};return n(c)?[c]:[]}}if(o?.nextKey!=null)return[e];let a=o?.parentKey,u=[];for(;a!=null;){let d=i.getItem(a),c=d?.nextKey!=null?i.getItem(d.nextKey):null;if(!c||c.parentKey!==a){let p={type:"item",key:a,dropPosition:"after"};if(n(p)&&u.push(p),c)break}a=d?.parentKey}if(u.length>0&&l.push(...u),l.length===1){let d=i.getKeyAfter(r.key),c=d!=null?i.getItem(d):null;if(d!=null&&c&&o&&c.level!=null&&o.level!=null&&c.level>o.level){let f={type:"item",key:d,dropPosition:"before"};if(n(f))return[f]}}return l.filter(n)}selectTarget(e,n,r,i,o,l){if(e.length<2)return e[0];let a=this.pointerTracking,d=this.state.collection.getItem(n.key)?.parentKey;if(d==null)return e[0];if(!a.boundaryContext||a.boundaryContext.parentKey!==d){let b=a.yDirection==="up"?e.length-1:0;a.boundaryContext={parentKey:d,preferredTargetIndex:b,lastSwitchY:i,lastSwitchX:r}}let c=a.boundaryContext,f=Math.abs(r-c.lastSwitchX);if(Math.abs(i-c.lastSwitchY)>Ep&&o){let b=c.preferredTargetIndex||0;o==="down"&&b===0?c.preferredTargetIndex=e.length-1:o==="up"&&b===e.length-1&&(c.preferredTargetIndex=0),a.xDirection=null}if(f>Cp&&l){let b=c.preferredTargetIndex||0;l==="left"?this.direction==="ltr"?b<e.length-1&&(c.preferredTargetIndex=b+1,c.lastSwitchX=r):b>0&&(c.preferredTargetIndex=b-1,c.lastSwitchX=r):l==="right"&&(this.direction==="ltr"?b>0&&(c.preferredTargetIndex=b-1,c.lastSwitchX=r):b<e.length-1&&(c.preferredTargetIndex=b+1,c.lastSwitchX=r)),a.yDirection=null}let m=Math.max(0,Math.min(c.preferredTargetIndex||0,e.length-1));return e[m]}constructor(){this.delegate=null,this.state=null,this.direction="ltr",this.pointerTracking={lastY:0,lastX:0,yDirection:null,xDirection:null,boundaryContext:null}}}class ty{constructor(e){this.keyMap=new Map,this.keyMap=new Map,this.columnCount=e?.columnCount,this.rows=[];let n=o=>{let l=this.keyMap.get(o.key);e.visitNode&&(o=e.visitNode(o)),this.keyMap.set(o.key,o);let a=new Set,u=null,d=!1;if(o.type==="item"){for(let c of o.childNodes)if(c.props?.colSpan!==void 0){d=!0;break}}for(let c of o.childNodes)c.type==="cell"&&d&&(c.colspan=c.props?.colSpan,c.colSpan=c.props?.colSpan,c.colIndex=u?(u.colIndex??u.index)+(u.colSpan??1):c.index),c.type==="cell"&&c.parentKey==null&&(c.parentKey=o.key),a.add(c.key),u?(u.nextKey=c.key,c.prevKey=u.key):c.prevKey=null,n(c),u=c;if(u&&(u.nextKey=null),l)for(let c of l.childNodes)a.has(c.key)||r(c)},r=o=>{this.keyMap.delete(o.key);for(let l of o.childNodes)this.keyMap.get(l.key)===l&&r(l)},i=null;for(let[o,l]of e.items.entries()){let a={...l,level:l.level??0,key:l.key??"row-"+o,type:l.type??"row",value:l.value??null,hasChildNodes:!0,childNodes:[...l.childNodes],rendered:l.rendered,textValue:l.textValue??"",index:l.index??o};i?(i.nextKey=a.key,a.prevKey=i.key):a.prevKey=null,this.rows.push(a),n(a),i=a}i&&(i.nextKey=null)}*[Symbol.iterator](){yield*[...this.rows]}get size(){return[...this.rows].length}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let n=this.keyMap.get(e);return n?n.prevKey??null:null}getKeyAfter(e){let n=this.keyMap.get(e);return n?n.nextKey??null:null}getFirstKey(){return[...this.rows][0]?.key}getLastKey(){let e=[...this.rows];return e[e.length-1]?.key}getItem(e){return this.keyMap.get(e)??null}at(e){const n=[...this.getKeys()];return this.getItem(n[e])}getChildren(e){return this.keyMap.get(e)?.childNodes||[]}}const wp="row-header-column-"+Math.random().toString(36).slice(2);let dl="row-header-column-"+Math.random().toString(36).slice(2);for(;wp===dl;)dl="row-header-column-"+Math.random().toString(36).slice(2);function Sp(t,e){if(e.length===0)return[];let n=[],r=new Map;for(let u of e){let d=u.parentKey,c=[u];for(;d!=null;){let f=t.get(d);if(!f)break;if(r.has(f)){f.colSpan??=0,f.colSpan++,f.colspan=f.colSpan;let{column:p,index:m}=r.get(f);if(m>c.length)break;for(let b=m;b<c.length;b++)p.splice(b,0,null);for(let b=c.length;b<p.length;b++)p[b]&&r.has(p[b])&&(r.get(p[b]).index=b)}else f.colSpan=1,f.colspan=1,c.push(f),r.set(f,{column:c,index:c.length-1});d=f.parentKey}n.push(c),u.index=n.length-1}let i=Math.max(...n.map(u=>u.length)),o=Array(i).fill(0).map(()=>[]),l=0;for(let u of n){let d=i-1;for(let c of u){if(c){let f=o[d],p=f.reduce((m,b)=>m+(b.colSpan??1),0);if(p<l){let m={type:"placeholder",key:"placeholder-"+c.key,colspan:l-p,colSpan:l-p,index:p,value:null,rendered:null,level:d,hasChildNodes:!1,childNodes:[],textValue:""};f.length>0&&(f[f.length-1].nextKey=m.key,m.prevKey=f[f.length-1].key),f.push(m)}f.length>0&&(f[f.length-1].nextKey=c.key,c.prevKey=f[f.length-1].key),c.level=d,c.colIndex=l,f.push(c)}d--}l++}let a=0;for(let u of o){let d=u.reduce((c,f)=>c+(f.colSpan??1),0);if(d<e.length){let c={type:"placeholder",key:"placeholder-"+u[u.length-1].key,colSpan:e.length-d,colspan:e.length-d,index:d,value:null,rendered:null,level:a,hasChildNodes:!1,childNodes:[],textValue:"",prevKey:u[u.length-1].key};u.push(c)}a++}return o.map((u,d)=>({type:"headerrow",key:"headerrow-"+d,index:d,value:null,rendered:null,level:0,hasChildNodes:!0,childNodes:u,textValue:""}))}class ny extends ty{constructor(e,n,r){let i=new Set,o=null,l=[];if(r?.showSelectionCheckboxes){let f={type:"column",key:wp,value:null,textValue:"",level:0,index:r?.showDragButtons?1:0,hasChildNodes:!1,rendered:null,childNodes:[],props:{isSelectionCell:!0}};l.unshift(f)}if(r?.showDragButtons){let f={type:"column",key:dl,value:null,textValue:"",level:0,index:0,hasChildNodes:!1,rendered:null,childNodes:[],props:{isDragButtonCell:!0}};l.unshift(f)}let a=[],u=new Map,d=f=>{switch(f.type){case"body":o=f;break;case"column":u.set(f.key,f),f.hasChildNodes||(l.push(f),f.props.isRowHeader&&i.add(f.key));break;case"item":a.push(f);return}for(let p of f.childNodes)d(p)};for(let f of e)d(f);let c=Sp(u,l);if(c.forEach((f,p)=>a.splice(p,0,f)),super({columnCount:l.length,items:a,visitNode:f=>(f.column=l[f.index],f)}),this._size=0,this.columns=l,this.rowHeaderColumnKeys=i,this.body=o,this.headerRows=c,this._size=[...o.childNodes].length,this.rowHeaderColumnKeys.size===0){let f=this.columns.find(p=>!p.props?.isDragButtonCell&&!p.props?.isSelectionCell);f&&this.rowHeaderColumnKeys.add(f.key)}}*[Symbol.iterator](){yield*this.body.childNodes}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){return this.keyMap.get(e)?.prevKey??null}getKeyAfter(e){return this.keyMap.get(e)?.nextKey??null}getFirstKey(){return yt(this.body.childNodes)?.key??null}getLastKey(){return pn(this.body.childNodes)?.key??null}getItem(e){return e===this.body.key?this.body:this.keyMap.get(e)??null}at(e){const n=[...this.getKeys()];return this.getItem(n[e])}getChildren(e){if(e===this.body.key)return this.body.childNodes;let n=this.getItem(e);return n?.type==="item"?[...n.childNodes].filter(r=>r.type==="cell"):super.getChildren(e)}getTextValue(e){let n=this.getItem(e);if(!n)return"";if(n.textValue)return n.textValue;let r=this.rowHeaderColumnKeys;if(r){let i=[];for(let o of n.childNodes){let l=this.columns[o.index];if(r.has(l.key)&&o.textValue&&i.push(o.textValue),i.length===r.size)break}return i.join(" ")}return""}}function ry(t){return t!=null&&(!isNaN(t)||String(t).match(/^(\d+)(?=%$)/)!==null)}function iy(t){if(!t||typeof t=="number")return 1;let e=t.match(/^(.+)(?=fr$)/);return e?parseFloat(e[0]):(process.env.NODE_ENV!=="production"&&console.warn(`width: ${t} is not a supported format, width should be a number (ex. 150), percentage (ex. '50%') or fr unit (ex. '2fr')`,"defaulting to '1fr'"),1)}function cl(t,e){if(typeof t=="string"){let n=t.match(/^(\d+)(?=%$)/);if(!n)throw new Error("Only percentages or numbers are supported for static column widths");return e*(parseFloat(n[0])/100)}return t}function Pp(t,e){return t!=null?cl(t,e):Number.MAX_SAFE_INTEGER}function kp(t,e){return t!=null?cl(t,e):0}function oy(t,e,n,r,i){let o=t,l=Math.floor(t),a=t-l>0;t=l;let u=!1,d=e.map((f,p)=>{let m=n.get(f.key)!=null?n.get(f.key)??"1fr":f.width??f.defaultWidth??r?.(p)??"1fr",b=!1,g=0,y=0,$=0;ry(m)?(g=cl(m,t),b=!0):(y=iy(m),y<=0&&(b=!0));let x=kp(f.minWidth??i?.(p)??0,t),v=Pp(f.maxWidth,t),C=Math.max(x,Math.min(g,v));return b?$=C:g>C&&(b=!0,$=C),b||(u=!0),{frozen:b,baseSize:g,hypotheticalMainSize:C,min:x,max:v,flex:y,targetMainSize:$,violation:0}});for(;u;){let f=0,p=0;d.forEach(g=>{g.frozen?f+=g.targetMainSize:(f+=g.baseSize,p+=g.flex)});let m=t-f;m>0&&d.forEach(g=>{if(!g.frozen){let y=g.flex/p;g.targetMainSize=g.baseSize+y*m}});let b=0;d.forEach(g=>{if(g.violation=0,!g.frozen){let{min:y,max:$,targetMainSize:x}=g;g.targetMainSize=Math.max(y,Math.min(x,$)),g.violation=g.targetMainSize-x,b+=g.violation}}),u=!1,d.forEach(g=>{b===0||Math.sign(b)===Math.sign(g.violation)?g.frozen=!0:g.frozen||(u=!0)})}let c=ly(d);if(a&&c.length>0){let f=o.toString().split(".")[1],p=c[c.length-1].toString();c[c.length-1]=+(p+"."+f)}return c}function ly(t){let e=0,n=0,r=[];return t.forEach(function(i){let o=i.targetMainSize,l=Math.round(o+e)-n;e+=o,n+=l,r.push(l)}),r}class ay{constructor(e){this.columnWidths=new Map,this.columnMinWidths=new Map,this.columnMaxWidths=new Map,this.getDefaultWidth=e?.getDefaultWidth??(()=>"1fr"),this.getDefaultMinWidth=e?.getDefaultMinWidth??(()=>75)}splitColumnsIntoControlledAndUncontrolled(e){return e.reduce((n,r)=>(r.props.width!=null?n[0].set(r.key,r):n[1].set(r.key,r),n),[new Map,new Map])}recombineColumns(e,n,r,i){return new Map(e.map(o=>r.has(o.key)?[o.key,n.get(o.key)]:[o.key,i.get(o.key).props.width]))}getInitialUncontrolledWidths(e){return new Map(Array.from(e).map(([n,r])=>[n,r.props.defaultWidth??this.getDefaultWidth?.(r)??"1fr"]))}getColumnWidth(e){return this.columnWidths.get(e)??0}getColumnMinWidth(e){return this.columnMinWidths.get(e)??0}getColumnMaxWidth(e){return this.columnMaxWidths.get(e)??0}resizeColumnWidth(e,n,r,i){let o=this.columnWidths,l=!0,a=new Map;return i=Math.max(this.getColumnMinWidth(r),Math.min(this.getColumnMaxWidth(r),Math.floor(i))),e.columns.forEach(u=>{u.key===r?(a.set(u.key,i),l=!1):l?a.set(u.key,o.get(u.key)??0):a.set(u.key,u.props.width??n.get(u.key))}),a}buildColumnWidths(e,n,r){return this.columnWidths=new Map,this.columnMinWidths=new Map,this.columnMaxWidths=new Map,oy(e,n.columns.map(o=>({...o.props,key:o.key})),r,o=>this.getDefaultWidth(n.columns[o]),o=>this.getDefaultMinWidth(n.columns[o])).forEach((o,l)=>{let a=n.columns[l].key,u=n.columns[l];this.columnWidths.set(a,o),this.columnMinWidths.set(a,kp(u.props.minWidth??this.getDefaultMinWidth(u),e)),this.columnMaxWidths.set(a,Pp(u.props.maxWidth,e))}),this.columnWidths}}function sy(t,e){let{getDefaultWidth:n,getDefaultMinWidth:r,tableWidth:i=0}=t,[o,l]=s.useState(null),a=s.useMemo(()=>new ay({getDefaultWidth:n,getDefaultMinWidth:r}),[n,r]),[u,d]=s.useMemo(()=>a.splitColumnsIntoControlledAndUncontrolled(e.collection.columns),[e.collection.columns,a]),[c,f]=s.useState(()=>a.getInitialUncontrolledWidths(d)),[p,m]=s.useState(e.collection.columns);if(e.collection.columns!==p){if(e.collection.columns.length!==p.length||e.collection.columns.some((v,C)=>v.key!==p[C].key)){let v=a.getInitialUncontrolledWidths(d);f(v)}m(e.collection.columns)}let b=s.useMemo(()=>a.recombineColumns(e.collection.columns,c,d,u),[e.collection.columns,c,d,u,a]),g=s.useCallback(v=>{l(v)},[l]),y=s.useCallback((v,C)=>{let k=a.resizeColumnWidth(e.collection,c,v,C),P=new Map(Array.from(d).map(([N])=>[N,k.get(N)]));return P.set(v,C),f(P),k},[d,f,a,e.collection,c]),$=s.useCallback(()=>{l(null)},[l]),x=s.useMemo(()=>a.buildColumnWidths(i,e.collection,b),[i,e.collection,b,a]);return s.useMemo(()=>({resizingColumn:o,updateResizedColumns:y,startResize:g,endResize:$,getColumnWidth:v=>a.getColumnWidth(v),getColumnMinWidth:v=>a.getColumnMinWidth(v),getColumnMaxWidth:v=>a.getColumnMaxWidth(v),tableState:e,columnWidths:x}),[a,x,o,y,g,$,e])}function uy(t){let{collection:e,focusMode:n}=t,r=t.UNSAFE_selectionState||Gn(t),i=s.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),o=r.setFocusedKey;r.setFocusedKey=(u,d)=>{if(n==="cell"&&u!=null){let c=e.getItem(u);if(c?.type==="item"){let f=Ee(c,e);d==="last"?u=pn(f)?.key??null:u=yt(f)?.key??null}}o(u,d)};let l=s.useMemo(()=>new hn(e,r),[e,r]);const a=s.useRef(null);return s.useEffect(()=>{if(r.focusedKey!=null&&a.current&&!e.getItem(r.focusedKey)){const u=a.current.getItem(r.focusedKey),d=u?.parentKey!=null&&(u.type==="cell"||u.type==="rowheader"||u.type==="column")?a.current.getItem(u.parentKey):u;if(!d){r.setFocusedKey(null);return}const c=a.current.rows,f=e.rows,p=c.length-f.length;let m=Math.min(p>1?Math.max(d.index-p+1,0):d.index,f.length-1),b=null;for(let g=Math.max(0,m);g<f.length;g++)if(!l.isDisabled(f[g].key)&&f[g].type!=="headerrow"){b=f[g];break}if(b===null){for(let g=m-1;g>=0;g--)if(!l.isDisabled(f[g].key)&&f[g].type!=="headerrow"){b=f[g];break}}if(b){const g=b.hasChildNodes?[...Ee(b,e)]:[],y=b.hasChildNodes&&d!==u&&u&&u.index<g.length?g[u.index].key:b.key;r.setFocusedKey(y)}else r.setFocusedKey(null)}a.current=e},[e,l,r,r.focusedKey]),{collection:e,disabledKeys:i,isKeyboardNavigationDisabled:!1,selectionManager:l}}const dy={ascending:"descending",descending:"ascending"};function cy(t){let[e,n]=s.useState(!1),{selectionMode:r="none",showSelectionCheckboxes:i,showDragButtons:o,treeColumn:l=null}=t,a=s.useMemo(()=>({showSelectionCheckboxes:i&&r!=="none",showDragButtons:o,selectionMode:r,columns:[]}),[t.children,i,r,o]),u=Uo(t,s.useCallback(m=>new ny(m,null,a),[a]),a),{disabledKeys:d,selectionManager:c}=uy({...t,collection:u,disabledBehavior:t.disabledBehavior||"selection"}),[f,p]=Ye(t.expandedKeys?new Set(t.expandedKeys):void 0,t.defaultExpandedKeys?new Set(t.defaultExpandedKeys):new Set,t.onExpandedChange);return{collection:u,disabledKeys:d,selectionManager:c,showSelectionCheckboxes:t.showSelectionCheckboxes||!1,sortDescriptor:t.sortDescriptor??null,isKeyboardNavigationDisabled:u.size===0||e,setKeyboardNavigationDisabled:n,sort(m,b){t.onSortChange?.({column:m,direction:b??(t.sortDescriptor?.column===m?dy[t.sortDescriptor.direction]:"ascending")})},expandedKeys:f,toggleKey(m){p(b=>{let g=new Set(b);return g.has(m)?g.delete(m):g.add(m),g})},treeColumn:l}}function fy(t,e){let n=s.useMemo(()=>e?t.collection.filter(e):t.collection,[t.collection,e]),r=t.selectionManager.withCollection(n);return{...t,collection:n,selectionManager:r}}class Dp{constructor(e){if(this.collection=e.collection,this.disabledKeys=e.disabledKeys,this.disabledBehavior=e.disabledBehavior||"all",this.direction=e.direction,this.collator=e.collator,!e.layout&&!e.ref)throw new Error("Either a layout or a ref must be specified.");this.layoutDelegate=e.layoutDelegate||(e.layout?new py(e.layout):new zo(e.ref)),this.focusMode=e.focusMode??"row"}isCell(e){return e.type==="cell"}isRow(e){return e.type==="row"||e.type==="item"}isDisabled(e){return this.disabledBehavior==="all"&&(e.props?.isDisabled||this.disabledKeys.has(e.key))&&e.props?.disabledBehavior!=="selection"}findPreviousKey(e,n,r=!1){let i=e!=null?this.collection.getKeyBefore(e):this.collection.getLastKey();for(;i!=null;){let o=this.collection.getItem(i);if(!o)return null;if((r||!this.isDisabled(o))&&(!n||n(o)))return i;i=this.collection.getKeyBefore(i)}return null}findNextKey(e,n,r=!1){let i=e!=null?this.collection.getKeyAfter(e):this.collection.getFirstKey();for(;i!=null;){let o=this.collection.getItem(i);if(!o)return null;if((r||!this.isDisabled(o))&&(!n||n(o)))return i;if(i=this.collection.getKeyAfter(i),i==null)return null}return null}getKeyForItemInRowByIndex(e,n=0){if(n<0)return null;let r=this.collection.getItem(e);if(!r)return null;let i=0;for(let o of Ee(r,this.collection)){if(o.colSpan&&o.colSpan+i>n||(o.colSpan&&(i=i+o.colSpan-1),i===n))return o.key??null;i++}return null}getKeyBelow(e,n){let r=e,i=this.collection.getItem(r);if(!i||(this.isCell(i)&&(r=i.parentKey??null),r==null))return null;if(r=this.findNextKey(r,o=>o.type==="item",n?.includeDisabled),r!=null){if(this.isCell(i)){let o=i.colIndex?i.colIndex:i.index;return this.getKeyForItemInRowByIndex(r,o)}if(this.focusMode==="row")return r}return null}getKeyAbove(e,n){let r=e,i=this.collection.getItem(r);if(!i||(this.isCell(i)&&(r=i.parentKey??null),r==null))return null;if(r=this.findPreviousKey(r,o=>o.type==="item",n?.includeDisabled),r!=null){if(this.isCell(i)){let o=i.colIndex?i.colIndex:i.index;return this.getKeyForItemInRowByIndex(r,o)}if(this.focusMode==="row")return r}return null}getKeyRightOf(e){let n=this.collection.getItem(e);if(!n)return null;if(this.isRow(n)){let r=Ee(n,this.collection);return(this.direction==="rtl"?pn(r)?.key:yt(r)?.key)??null}if(this.isCell(n)&&n.parentKey!=null){let r=this.collection.getItem(n.parentKey);if(!r)return null;let i=Ee(r,this.collection),o=(this.direction==="rtl"?Un(i,n.index-1):Un(i,n.index+1))??null;return o?o.key??null:this.focusMode==="row"?n.parentKey??null:(this.direction==="rtl"?this.getFirstKey(e):this.getLastKey(e))??null}return null}getKeyLeftOf(e){let n=this.collection.getItem(e);if(!n)return null;if(this.isRow(n)){let r=Ee(n,this.collection);return(this.direction==="rtl"?yt(r)?.key:pn(r)?.key)??null}if(this.isCell(n)&&n.parentKey!=null){let r=this.collection.getItem(n.parentKey);if(!r)return null;let i=Ee(r,this.collection),o=(this.direction==="rtl"?Un(i,n.index+1):Un(i,n.index-1))??null;return o?o.key??null:this.focusMode==="row"?n.parentKey??null:(this.direction==="rtl"?this.getLastKey(e):this.getFirstKey(e))??null}return null}getFirstKey(e,n){let r=e??null,i;if(r!=null){if(i=this.collection.getItem(r),!i)return null;if(this.isCell(i)&&!n&&i.parentKey!=null){let o=this.collection.getItem(i.parentKey);return o?yt(Ee(o,this.collection))?.key??null:null}}if(r=this.findNextKey(void 0,o=>o.type==="item"),r!=null&&(i&&this.isCell(i)&&n||this.focusMode==="cell")){let o=this.collection.getItem(r);if(!o)return null;r=yt(Ee(o,this.collection))?.key??null}return r}getLastKey(e,n){let r=e??null,i;if(r!=null){if(i=this.collection.getItem(r),!i)return null;if(this.isCell(i)&&!n&&i.parentKey!=null){let o=this.collection.getItem(i.parentKey);if(!o)return null;let l=Ee(o,this.collection);return pn(l)?.key??null}}if(r=this.findPreviousKey(void 0,o=>o.type==="item"),r!=null&&(i&&this.isCell(i)&&n||this.focusMode==="cell")){let o=this.collection.getItem(r);if(!o)return null;let l=Ee(o,this.collection);r=pn(l)?.key??null}return r}getKeyPageAbove(e){let n=e,r=this.layoutDelegate.getItemRect(n);if(!r)return null;let i=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>i&&n!=null&&(n=this.getKeyAbove(n)??null,n!=null);)r=this.layoutDelegate.getItemRect(n);return n}getKeyPageBelow(e){let n=e,r=this.layoutDelegate.getItemRect(n);if(!r)return null;let i=this.layoutDelegate.getVisibleRect().height,o=Math.min(this.layoutDelegate.getContentSize().height,r.y+i);for(;r&&r.y+r.height<o;){let l=this.getKeyBelow(n);if(l==null)break;r=this.layoutDelegate.getItemRect(l),n=l}return n}getKeyForSearch(e,n){let r=n??null;if(!this.collator)return null;let i=this.collection;if(r=n??this.getFirstKey(),r==null)return null;let o=i.getItem(r);if(!o)return null;o.type==="cell"&&(r=o.parentKey??null);let l=!1;for(;r!=null;){let a=i.getItem(r);if(!a)return null;if(a.textValue){let u=a.textValue.slice(0,e.length);if(this.collator.compare(u,e)===0)return this.isRow(a)&&this.focusMode==="cell"?yt(Ee(a,this.collection))?.key??null:a.key}r=this.findNextKey(r,u=>u.type==="item"),r==null&&!l&&(r=this.getFirstKey(),l=!0)}return null}}class py{constructor(e){this.layout=e}getContentSize(){return this.layout.getContentSize()}getItemRect(e){return this.layout.getLayoutInfo(e)?.rect||null}getVisibleRect(){return this.layout.virtualizer.visibleRect}}const fl=new WeakMap;function hy(t,e,n){let{isVirtualized:r,disallowTypeAhead:i,keyboardDelegate:o,focusMode:l,scrollRef:a,getRowText:u,onRowAction:d,onCellAction:c,escapeKeyBehavior:f="clearSelection",shouldSelectOnPressUp:p,keyboardNavigationBehavior:m="arrow"}=t,{selectionManager:b}=e;!t["aria-label"]&&!t["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let g=fn({usage:"search",sensitivity:"base"}),{direction:y}=Te(),$=e.selectionManager.disabledBehavior,x=s.useMemo(()=>o||new Dp({collection:e.collection,disabledKeys:e.disabledKeys,disabledBehavior:$,ref:n,direction:y,collator:g,focusMode:l}),[o,e.collection,e.disabledKeys,$,n,y,g,l]),{collectionProps:v}=ni({ref:n,selectionManager:b,keyboardDelegate:x,isVirtualized:r,scrollRef:a,disallowTypeAhead:i,escapeKeyBehavior:f}),C=xe(t.id);fl.set(e,{keyboardDelegate:x,actions:{onRowAction:d,onCellAction:c},shouldSelectOnPressUp:p,keyboardNavigationBehavior:m});let k=T1({selectionManager:b,hasItemActions:!!(d||c)}),P=re(t,{labelable:!0}),N=s.useCallback(L=>{if(b.isFocused){te(L.currentTarget,_(L))||b.setFocused(!1);return}te(L.currentTarget,_(L))&&b.setFocused(!0)},[b]),w=s.useMemo(()=>({onBlur:v.onBlur,onFocus:N}),[N,v.onBlur]),D=D1(n,{isDisabled:e.collection.size!==0}),I=G(P,{role:"grid",id:C,"aria-multiselectable":b.selectionMode==="multiple"?"true":void 0},e.isKeyboardNavigationDisabled?w:v,e.collection.size===0&&{tabIndex:D?-1:0}||void 0,k);return r&&(I["aria-rowcount"]=e.collection.size,I["aria-colcount"]=e.collection.columnCount),k1({getRowText:u},e),{gridProps:I}}const pl=new WeakMap;function hl(t){return typeof t=="string"?t.replace(/\s*/g,""):""+t}function Np(t,e){let n=pl.get(t);if(!n)throw new Error("Unknown grid");return`${n}-${hl(e)}`}function Tp(t,e,n){let r=pl.get(t);if(!r)throw new Error("Unknown grid");return`${r}-${hl(e)}-${hl(n)}`}function ml(t,e){return[...t.collection.rowHeaderColumnKeys].map(n=>Tp(t,e,n)).join(" ")}var Ap={};Ap={ascending:"تصاعدي",ascendingSort:t=>`ترتيب حسب العمود ${t.columnName} بترتيب تصاعدي`,collapse:"طي",columnSize:t=>`${t.value} بالبكسل`,descending:"تنازلي",descendingSort:t=>`ترتيب حسب العمود ${t.columnName} بترتيب تنازلي`,expand:"تمديد",resizerDescription:"اضغط على مفتاح Enter لبدء تغيير الحجم",select:"تحديد",selectAll:"تحديد الكل",sortable:"عمود قابل للترتيب"};var Ip={};Ip={ascending:"възходящ",ascendingSort:t=>`сортирано по колона ${t.columnName} във възходящ ред`,collapse:"Свиване",columnSize:t=>`${t.value} пиксела`,descending:"низходящ",descendingSort:t=>`сортирано по колона ${t.columnName} в низходящ ред`,expand:"Разширяване",resizerDescription:"Натиснете „Enter“, за да започнете да преоразмерявате",select:"Изберете",selectAll:"Изберете всичко",sortable:"сортираща колона"};var Bp={};Bp={ascending:"vzestupně",ascendingSort:t=>`řazeno vzestupně podle sloupce ${t.columnName}`,collapse:"Sbalit",columnSize:t=>`${t.value} pixelů`,descending:"sestupně",descendingSort:t=>`řazeno sestupně podle sloupce ${t.columnName}`,expand:"Roztáhnout",resizerDescription:"Stisknutím klávesy Enter začnete měnit velikost",select:"Vybrat",selectAll:"Vybrat vše",sortable:"sloupec s možností řazení"};var Fp={};Fp={ascending:"stigende",ascendingSort:t=>`sorteret efter kolonne ${t.columnName} i stigende rækkefølge`,collapse:"Skjul",columnSize:t=>`${t.value} pixels`,descending:"faldende",descendingSort:t=>`sorteret efter kolonne ${t.columnName} i faldende rækkefølge`,expand:"Udvid",resizerDescription:"Tryk på Enter for at ændre størrelse",select:"Vælg",selectAll:"Vælg alle",sortable:"sorterbar kolonne"};var Mp={};Mp={ascending:"aufsteigend",ascendingSort:t=>`sortiert nach Spalte ${t.columnName} in aufsteigender Reihenfolge`,collapse:"Reduzieren",columnSize:t=>`${t.value} Pixel`,descending:"absteigend",descendingSort:t=>`sortiert nach Spalte ${t.columnName} in absteigender Reihenfolge`,expand:"Erweitern",resizerDescription:"Eingabetaste zum Starten der Größenänderung drücken",select:"Auswählen",selectAll:"Alles auswählen",sortable:"sortierbare Spalte"};var Kp={};Kp={ascending:"αύξουσα",ascendingSort:t=>`διαλογή ανά στήλη ${t.columnName} σε αύξουσα σειρά`,collapse:"Σύμπτυξη",columnSize:t=>`${t.value} pixel`,descending:"φθίνουσα",descendingSort:t=>`διαλογή ανά στήλη ${t.columnName} σε φθίνουσα σειρά`,expand:"Ανάπτυξη",resizerDescription:"Πατήστε Enter για έναρξη της αλλαγής μεγέθους",select:"Επιλογή",selectAll:"Επιλογή όλων",sortable:"Στήλη διαλογής"};var Lp={};Lp={select:"Select",selectAll:"Select All",sortable:"sortable column",ascending:"ascending",descending:"descending",ascendingSort:t=>`sorted by column ${t.columnName} in ascending order`,descendingSort:t=>`sorted by column ${t.columnName} in descending order`,columnSize:t=>`${t.value} pixels`,resizerDescription:"Press Enter to start resizing",expand:"Expand",collapse:"Collapse"};var Op={};Op={ascending:"ascendente",ascendingSort:t=>`ordenado por columna ${t.columnName} en sentido ascendente`,collapse:"Contraer",columnSize:t=>`${t.value} píxeles`,descending:"descendente",descendingSort:t=>`ordenado por columna ${t.columnName} en orden descendente`,expand:"Ampliar",resizerDescription:"Pulse Intro para empezar a redimensionar",select:"Seleccionar",selectAll:"Seleccionar todos",sortable:"columna ordenable"};var zp={};zp={ascending:"tõusev järjestus",ascendingSort:t=>`sorditud veeru järgi ${t.columnName} tõusvas järjestuses`,collapse:"Ahenda",columnSize:t=>`${t.value} pikslit`,descending:"laskuv järjestus",descendingSort:t=>`sorditud veeru järgi ${t.columnName} laskuvas järjestuses`,expand:"Laienda",resizerDescription:"Suuruse muutmise alustamiseks vajutage klahvi Enter",select:"Vali",selectAll:"Vali kõik",sortable:"sorditav veerg"};var _p={};_p={ascending:"nouseva",ascendingSort:t=>`lajiteltu sarakkeen ${t.columnName} mukaan nousevassa järjestyksessä`,collapse:"Pienennä",columnSize:t=>`${t.value} pikseliä`,descending:"laskeva",descendingSort:t=>`lajiteltu sarakkeen ${t.columnName} mukaan laskevassa järjestyksessä`,expand:"Laajenna",resizerDescription:"Aloita koon muutos painamalla Enter-näppäintä",select:"Valitse",selectAll:"Valitse kaikki",sortable:"lajiteltava sarake"};var Vp={};Vp={ascending:"croissant",ascendingSort:t=>`trié en fonction de la colonne ${t.columnName} par ordre croissant`,collapse:"Réduire",columnSize:t=>`${t.value} pixels`,descending:"décroissant",descendingSort:t=>`trié en fonction de la colonne ${t.columnName} par ordre décroissant`,expand:"Développer",resizerDescription:"Appuyez sur Entrée pour commencer le redimensionnement.",select:"Sélectionner",selectAll:"Sélectionner tout",sortable:"colonne triable"};var Hp={};Hp={ascending:"עולה",ascendingSort:t=>`מוין לפי עמודה ${t.columnName} בסדר עולה`,collapse:"כווץ",columnSize:t=>`${t.value} פיקסלים`,descending:"יורד",descendingSort:t=>`מוין לפי עמודה ${t.columnName} בסדר יורד`,expand:"הרחב",resizerDescription:"הקש Enter כדי לשנות את הגודל",select:"בחר",selectAll:"בחר הכול",sortable:"עמודה שניתן למיין"};var jp={};jp={ascending:"rastući",ascendingSort:t=>`razvrstano po stupcima ${t.columnName} rastućem redoslijedom`,collapse:"Sažmi",columnSize:t=>`${t.value} piksela`,descending:"padajući",descendingSort:t=>`razvrstano po stupcima ${t.columnName} padajućim redoslijedom`,expand:"Proširi",resizerDescription:"Pritisnite Enter da biste započeli promenu veličine",select:"Odaberite",selectAll:"Odaberite sve",sortable:"stupac koji se može razvrstati"};var Rp={};Rp={ascending:"növekvő",ascendingSort:t=>`rendezve a(z) ${t.columnName} oszlop szerint, növekvő sorrendben`,collapse:"Összecsukás",columnSize:t=>`${t.value} képpont`,descending:"csökkenő",descendingSort:t=>`rendezve a(z) ${t.columnName} oszlop szerint, csökkenő sorrendben`,expand:"Kibontás",resizerDescription:"Nyomja le az Enter billentyűt az átméretezés megkezdéséhez",select:"Kijelölés",selectAll:"Összes kijelölése",sortable:"rendezendő oszlop"};var Wp={};Wp={ascending:"crescente",ascendingSort:t=>`in ordine crescente in base alla colonna ${t.columnName}`,collapse:"Comprimi",columnSize:t=>`${t.value} pixel`,descending:"decrescente",descendingSort:t=>`in ordine decrescente in base alla colonna ${t.columnName}`,expand:"Espandi",resizerDescription:"Premi Invio per iniziare a ridimensionare",select:"Seleziona",selectAll:"Seleziona tutto",sortable:"colonna ordinabile"};var Up={};Up={ascending:"昇順",ascendingSort:t=>`列 ${t.columnName} を昇順で並べ替え`,collapse:"折りたたむ",columnSize:t=>`${t.value} ピクセル`,descending:"降順",descendingSort:t=>`列 ${t.columnName} を降順で並べ替え`,expand:"展開",resizerDescription:"Enter キーを押してサイズ変更を開始",select:"選択",selectAll:"すべて選択",sortable:"並べ替え可能な列"};var Gp={};Gp={ascending:"오름차순",ascendingSort:t=>`${t.columnName} 열을 기준으로 오름차순으로 정렬됨`,collapse:"접기",columnSize:t=>`${t.value} 픽셀`,descending:"내림차순",descendingSort:t=>`${t.columnName} 열을 기준으로 내림차순으로 정렬됨`,expand:"펼치기",resizerDescription:"크기 조정을 시작하려면 Enter를 누르세요.",select:"선택",selectAll:"모두 선택",sortable:"정렬 가능한 열"};var Yp={};Yp={ascending:"didėjančia tvarka",ascendingSort:t=>`surikiuota pagal stulpelį ${t.columnName} didėjančia tvarka`,collapse:"Sutraukti",columnSize:t=>`${t.value} piks.`,descending:"mažėjančia tvarka",descendingSort:t=>`surikiuota pagal stulpelį ${t.columnName} mažėjančia tvarka`,expand:"Išskleisti",resizerDescription:"Paspauskite „Enter“, kad pradėtumėte keisti dydį",select:"Pasirinkti",selectAll:"Pasirinkti viską",sortable:"rikiuojamas stulpelis"};var Xp={};Xp={ascending:"augošā secībā",ascendingSort:t=>`kārtots pēc kolonnas ${t.columnName} augošā secībā`,collapse:"Sakļaut",columnSize:t=>`${t.value} pikseļi`,descending:"dilstošā secībā",descendingSort:t=>`kārtots pēc kolonnas ${t.columnName} dilstošā secībā`,expand:"Izvērst",resizerDescription:"Nospiediet Enter, lai sāktu izmēru mainīšanu",select:"Atlasīt",selectAll:"Atlasīt visu",sortable:"kārtojamā kolonna"};var qp={};qp={ascending:"stigende",ascendingSort:t=>`sortert etter kolonne ${t.columnName} i stigende rekkefølge`,collapse:"Skjul",columnSize:t=>`${t.value} piksler`,descending:"synkende",descendingSort:t=>`sortert etter kolonne ${t.columnName} i synkende rekkefølge`,expand:"Utvid",resizerDescription:"Trykk på Enter for å starte størrelsesendring",select:"Velg",selectAll:"Velg alle",sortable:"kolonne som kan sorteres"};var Zp={};Zp={ascending:"oplopend",ascendingSort:t=>`gesorteerd in oplopende volgorde in kolom ${t.columnName}`,collapse:"Samenvouwen",columnSize:t=>`${t.value} pixels`,descending:"aflopend",descendingSort:t=>`gesorteerd in aflopende volgorde in kolom ${t.columnName}`,expand:"Uitvouwen",resizerDescription:"Druk op Enter om het formaat te wijzigen",select:"Selecteren",selectAll:"Alles selecteren",sortable:"sorteerbare kolom"};var Jp={};Jp={ascending:"rosnąco",ascendingSort:t=>`posortowano według kolumny ${t.columnName} w porządku rosnącym`,collapse:"Zwiń",columnSize:t=>`Liczba pikseli: ${t.value}`,descending:"malejąco",descendingSort:t=>`posortowano według kolumny ${t.columnName} w porządku malejącym`,expand:"Rozwiń",resizerDescription:"Naciśnij Enter, aby rozpocząć zmienianie rozmiaru",select:"Zaznacz",selectAll:"Zaznacz wszystko",sortable:"kolumna z możliwością sortowania"};var Qp={};Qp={ascending:"crescente",ascendingSort:t=>`classificado pela coluna ${t.columnName} em ordem crescente`,collapse:"Recolher",columnSize:t=>`${t.value} pixels`,descending:"decrescente",descendingSort:t=>`classificado pela coluna ${t.columnName} em ordem decrescente`,expand:"Expandir",resizerDescription:"Pressione Enter para começar a redimensionar",select:"Selecionar",selectAll:"Selecionar tudo",sortable:"coluna classificável"};var eh={};eh={ascending:"ascendente",ascendingSort:t=>`Ordenar por coluna ${t.columnName} em ordem ascendente`,collapse:"Colapsar",columnSize:t=>`${t.value} pixels`,descending:"descendente",descendingSort:t=>`Ordenar por coluna ${t.columnName} em ordem descendente`,expand:"Expandir",resizerDescription:"Prima Enter para iniciar o redimensionamento",select:"Selecionar",selectAll:"Selecionar tudo",sortable:"Coluna ordenável"};var th={};th={ascending:"crescătoare",ascendingSort:t=>`sortate după coloana ${t.columnName} în ordine crescătoare`,collapse:"Restrângeți",columnSize:t=>`${t.value} pixeli`,descending:"descrescătoare",descendingSort:t=>`sortate după coloana ${t.columnName} în ordine descrescătoare`,expand:"Extindeți",resizerDescription:"Apăsați pe Enter pentru a începe redimensionarea",select:"Selectare",selectAll:"Selectare totală",sortable:"coloană sortabilă"};var nh={};nh={ascending:"возрастание",ascendingSort:t=>`сортировать столбец ${t.columnName} в порядке возрастания`,collapse:"Свернуть",columnSize:t=>`${t.value} пикс.`,descending:"убывание",descendingSort:t=>`сортировать столбец ${t.columnName} в порядке убывания`,expand:"Развернуть",resizerDescription:"Нажмите клавишу Enter для начала изменения размеров",select:"Выбрать",selectAll:"Выбрать все",sortable:"сортируемый столбец"};var rh={};rh={ascending:"vzostupne",ascendingSort:t=>`zoradené zostupne podľa stĺpca ${t.columnName}`,collapse:"Zbaliť",columnSize:t=>`Počet pixelov: ${t.value}`,descending:"zostupne",descendingSort:t=>`zoradené zostupne podľa stĺpca ${t.columnName}`,expand:"Rozbaliť",resizerDescription:"Stlačením klávesu Enter začnete zmenu veľkosti",select:"Vybrať",selectAll:"Vybrať všetko",sortable:"zoraditeľný stĺpec"};var ih={};ih={ascending:"naraščajoče",ascendingSort:t=>`razvrščeno po stolpcu ${t.columnName} v naraščajočem vrstnem redu`,collapse:"Strni",columnSize:t=>`${t.value} slikovnih pik`,descending:"padajoče",descendingSort:t=>`razvrščeno po stolpcu ${t.columnName} v padajočem vrstnem redu`,expand:"Razširi",resizerDescription:"Pritisnite tipko Enter da začnete spreminjati velikost",select:"Izberite",selectAll:"Izberite vse",sortable:"razvrstljivi stolpec"};var oh={};oh={ascending:"rastući",ascendingSort:t=>`sortirano po kolonama ${t.columnName} rastućim redosledom`,collapse:"Skupi",columnSize:t=>`${t.value} piksela`,descending:"padajući",descendingSort:t=>`sortirano po kolonama ${t.columnName} padajućim redosledom`,expand:"Proširi",resizerDescription:"Pritisnite Enter da biste započeli promenu veličine",select:"Izaberite",selectAll:"Izaberite sve",sortable:"kolona koja se može sortirati"};var lh={};lh={ascending:"stigande",ascendingSort:t=>`sorterat på kolumn ${t.columnName} i stigande ordning`,collapse:"Dölj",columnSize:t=>`${t.value} pixlar`,descending:"fallande",descendingSort:t=>`sorterat på kolumn ${t.columnName} i fallande ordning`,expand:"Expandera",resizerDescription:"Tryck på Retur för att börja ändra storlek",select:"Markera",selectAll:"Markera allt",sortable:"sorterbar kolumn"};var ah={};ah={ascending:"artan sırada",ascendingSort:t=>`${t.columnName} sütuna göre artan düzende sırala`,collapse:"Daralt",columnSize:t=>`${t.value} piksel`,descending:"azalan sırada",descendingSort:t=>`${t.columnName} sütuna göre azalan düzende sırala`,expand:"Genişlet",resizerDescription:"Yeniden boyutlandırmak için Enter'a basın",select:"Seç",selectAll:"Tümünü Seç",sortable:"Sıralanabilir sütun"};var sh={};sh={ascending:"висхідний",ascendingSort:t=>`відсортовано за стовпцем ${t.columnName} у висхідному порядку`,collapse:"Згорнути",columnSize:t=>`${t.value} пікс.`,descending:"низхідний",descendingSort:t=>`відсортовано за стовпцем ${t.columnName} у низхідному порядку`,expand:"Розгорнути",resizerDescription:"Натисніть Enter, щоб почати зміну розміру",select:"Вибрати",selectAll:"Вибрати все",sortable:"сортувальний стовпець"};var uh={};uh={ascending:"升序",ascendingSort:t=>`按列 ${t.columnName} 升序排序`,collapse:"折叠",columnSize:t=>`${t.value} 像素`,descending:"降序",descendingSort:t=>`按列 ${t.columnName} 降序排序`,expand:"扩展",resizerDescription:"按 Enter 开始调整大小。",select:"选择",selectAll:"全选",sortable:"可排序的列"};var dh={};dh={ascending:"遞增",ascendingSort:t=>`已依據「${t.columnName}」欄遞增排序`,collapse:"收合",columnSize:t=>`${t.value} 像素`,descending:"遞減",descendingSort:t=>`已依據「${t.columnName}」欄遞減排序`,expand:"展開",resizerDescription:"按 Enter 鍵以開始調整大小",select:"選取",selectAll:"全選",sortable:"可排序的欄"};var mn={};mn={"ar-AE":Ap,"bg-BG":Ip,"cs-CZ":Bp,"da-DK":Fp,"de-DE":Mp,"el-GR":Kp,"en-US":Lp,"es-ES":Op,"et-EE":zp,"fi-FI":_p,"fr-FR":Vp,"he-IL":Hp,"hr-HR":jp,"hu-HU":Rp,"it-IT":Wp,"ja-JP":Up,"ko-KR":Gp,"lt-LT":Yp,"lv-LV":Xp,"nb-NO":qp,"nl-NL":Zp,"pl-PL":Jp,"pt-BR":Qp,"pt-PT":eh,"ro-RO":th,"ru-RU":nh,"sk-SK":rh,"sl-SI":ih,"sr-SP":oh,"sv-SE":lh,"tr-TR":ah,"uk-UA":sh,"zh-CN":uh,"zh-TW":dh};class my extends Dp{isCell(e){return e.type==="cell"||e.type==="rowheader"||e.type==="column"}getKeyBelow(e,n){let r=this.collection.getItem(e);if(!r)return null;if(r.type==="column"){let i=yt(Ee(r,this.collection));if(i)return i.key;let o=this.getFirstKey();return o==null||!this.collection.getItem(o)?null:super.getKeyForItemInRowByIndex(o,r.index)}return super.getKeyBelow(e,n)}getKeyAbove(e,n){let r=this.collection.getItem(e);if(!r)return null;if(r.type==="column"){let l=r.parentKey!=null?this.collection.getItem(r.parentKey):null;return l&&l.type==="column"?l.key:null}let i=super.getKeyAbove(e,n),o=i!=null?this.collection.getItem(i):null;return o&&o.type!=="headerrow"?i:this.isCell(r)?this.collection.columns[r.index].key:this.collection.columns[0].key}findNextColumnKey(e){let n=this.findNextKey(e.key,i=>i.type==="column");if(n!=null)return n;let r=this.collection.headerRows[e.level];for(let i of Ee(r,this.collection))if(i.type==="column")return i.key;return null}findPreviousColumnKey(e){let n=this.findPreviousKey(e.key,o=>o.type==="column");if(n!=null)return n;let r=this.collection.headerRows[e.level],i=[...Ee(r,this.collection)];for(let o=i.length-1;o>=0;o--){let l=i[o];if(l.type==="column")return l.key}return null}getKeyRightOf(e){let n=this.collection.getItem(e);return n?n.type==="column"?this.direction==="rtl"?this.findPreviousColumnKey(n):this.findNextColumnKey(n):super.getKeyRightOf(e):null}getKeyLeftOf(e){let n=this.collection.getItem(e);return n?n.type==="column"?this.direction==="rtl"?this.findNextColumnKey(n):this.findPreviousColumnKey(n):super.getKeyLeftOf(e):null}getKeyForSearch(e,n){if(!this.collator)return null;let r=this.collection,i=n??this.getFirstKey();if(i==null)return null;let o=r.getItem(i);o?.type==="cell"&&(i=o.parentKey??null);let l=!1;for(;i!=null;){let a=r.getItem(i);if(!a)return null;if(a.textValue){let u=a.textValue.slice(0,e.length);if(this.collator.compare(u,e)===0)return a.key}for(let u of Ee(a,this.collection)){let d=r.columns[u.index];if(r.rowHeaderColumnKeys.has(d.key)&&u.textValue){let c=u.textValue.slice(0,e.length);if(this.collator.compare(c,e)===0)return(n!=null?r.getItem(n):o)?.type==="cell"?u.key:a.key}}i=this.getKeyBelow(i),i==null&&!l&&(i=this.getFirstKey(),l=!0)}return null}}function by(t){return t&&t.__esModule?t.default:t}function gy(t,e,n){let{keyboardDelegate:r,isVirtualized:i,layoutDelegate:o,layout:l}=t,a=fn({usage:"search",sensitivity:"base"}),{direction:u}=Te(),d=e.selectionManager.disabledBehavior,c=s.useMemo(()=>r||new my({collection:e.collection,disabledKeys:e.disabledKeys,disabledBehavior:d,ref:n,direction:u,collator:a,layoutDelegate:o,layout:l}),[r,e.collection,e.disabledKeys,d,n,u,a,o,l]),f=xe(t.id);pl.set(e,f);let{gridProps:p}=hy({...t,id:f,keyboardDelegate:c},e,n);i&&(p["aria-rowcount"]=e.collection.size+e.collection.headerRows.length),e.treeColumn!=null&&(p.role="treegrid");let{column:m,direction:b}=e.sortDescriptor||{},g=Ie(by(mn),"@react-aria/table"),y=s.useMemo(()=>{let x=e.collection.columns.find(v=>v.key===m)?.textValue??"";return b&&m?g.format(`${b}Sort`,{columnName:x}):void 0},[b,m,e.collection.columns]),$=_n(y);return go(()=>{y&&Ht(y,"assertive",500)},[y]),{gridProps:G(p,$,{"aria-describedby":[$["aria-describedby"],p["aria-describedby"]].filter(Boolean).join(" ")})}}function ch(t,e,n){let{node:r,isVirtualized:i,focusMode:o,allowsArrowNavigation:l,shouldSelectOnPressUp:a,onAction:u}=t,{direction:d}=Te(),{keyboardDelegate:c,actions:{onCellAction:f},keyboardNavigationBehavior:p}=fl.get(e),m=o??(p==="tab"?"cell":"child"),b=s.useRef(null),g=()=>{if(n.current){let P=ze(n.current);if(m==="child"){if(Mt(n.current)&&n.current!==pe(le(n.current)))return;let N=e.selectionManager.childFocusStrategy==="last"?bl(P):P.firstChild();if(N){Se(N);return}}(b.current!=null&&r.key!==b.current||!Mt(n.current))&&Se(n.current)}},{itemProps:y,isPressed:$}=Wn({selectionManager:e.selectionManager,key:r.key,ref:n,isVirtualized:i,focus:g,shouldSelectOnPressUp:a,onAction:f?()=>f(r.key):u,isDisabled:e.collection.size===0}),x=P=>{let N=pe(le(n.current));if(!te(P.currentTarget,_(P))||e.isKeyboardNavigationDisabled||!n.current||!N)return;let w=ze(n.current);switch(w.currentNode=N,P.key){case"ArrowLeft":{let D=d==="rtl"?w.nextNode():w.previousNode();if(m==="child"&&D===n.current&&(D=null),P.preventDefault(),P.stopPropagation(),D)Se(D),Tt(D,{containingElement:gt(n.current)});else{if(c.getKeyLeftOf?.(r.key)!==r.key){n.current.parentElement?.dispatchEvent(new KeyboardEvent(P.nativeEvent.type,P.nativeEvent));break}m==="cell"&&d==="rtl"?(Se(n.current),Tt(n.current,{containingElement:gt(n.current)})):(w.currentNode=n.current,D=d==="rtl"?w.firstChild():bl(w),D&&(Se(D),Tt(D,{containingElement:gt(n.current)})))}break}case"ArrowRight":{let D=d==="rtl"?w.previousNode():w.nextNode();if(m==="child"&&D===n.current&&(D=null),P.preventDefault(),P.stopPropagation(),D)Se(D),Tt(D,{containingElement:gt(n.current)});else{if(c.getKeyRightOf?.(r.key)!==r.key){n.current.parentElement?.dispatchEvent(new KeyboardEvent(P.nativeEvent.type,P.nativeEvent));break}m==="cell"&&d==="ltr"?(Se(n.current),Tt(n.current,{containingElement:gt(n.current)})):(w.currentNode=n.current,D=d==="rtl"?bl(w):w.firstChild(),D&&(Se(D),Tt(D,{containingElement:gt(n.current)})))}break}case"ArrowUp":case"ArrowDown":!P.altKey&&te(n.current,_(P))&&(P.stopPropagation(),P.preventDefault(),n.current.parentElement?.dispatchEvent(new KeyboardEvent(P.nativeEvent.type,P.nativeEvent)));break}},v=P=>{let N=pe(le(n.current));if(!(!te(P.currentTarget,_(P))||e.isKeyboardNavigationDisabled||!n.current||!N)){if(p==="tab"&&_(P)!==n.current&&P.key!=="Tab"){P.stopPropagation();return}switch(P.key){case"Tab":if(p==="tab"){let w=ze(n.current,{tabbable:!0});w.currentNode=N,(P.shiftKey?w.previousNode():w.nextNode())&&P.stopPropagation()}}}},C=P=>{if(b.current=r.key,_(P)!==n.current){St()||e.selectionManager.setFocusedKey(r.key);return}m==="child"&&P.relatedTarget&&te(n.current,P.relatedTarget)||requestAnimationFrame(()=>{m==="child"&&pe(le(n.current))===n.current&&g()})},k=G(y,{role:"gridcell",onKeyDownCapture:p!=="tab"||l?x:void 0,onKeyDown:p==="tab"?v:void 0,"aria-colspan":r.colSpan,"aria-colindex":r.colIndex!=null?r.colIndex+1:void 0,colSpan:i?void 0:r.colSpan,onFocus:C,...m==="child"&&p==="tab"?{tabIndex:-1}:{}});return i&&(k["aria-colindex"]=(r.colIndex??r.index)+1),a&&k.tabIndex!=null&&k.onPointerDown==null&&(k.onPointerDown=P=>{let N=P.currentTarget,w=N.getAttribute("tabindex");N.removeAttribute("tabindex"),requestAnimationFrame(()=>{w!=null&&N.setAttribute("tabindex",w)})}),{gridCellProps:k,isPressed:$}}function bl(t){let e=null,n=null;do n=t.lastChild(),n&&(e=n);while(n);return e}function yy(t){return t&&t.__esModule?t.default:t}function $y(t,e,n){let{node:r}=t,i=r.props.allowsSorting,{gridCellProps:o}=ch({focusMode:"child",...t},e,n),l=r.props.isSelectionCell&&e.selectionManager.selectionMode==="single",{pressProps:a,isPressed:u}=_t({isDisabled:!i||l,onPress(){e.sort(r.key)},ref:n}),{focusableProps:d}=on({},n),c,f=e.sortDescriptor?.column===r.key,p=e.sortDescriptor?.direction;r.props.allowsSorting&&!en()&&(c=f?p:"none");let m=Ie(yy(mn),"@react-aria/table"),b;i&&(b=`${m.format("sortable")}`,f&&p&&en()&&(b=`${b}, ${m.format(p)}`));let g=_n(b),y=e.collection.size===0;return s.useEffect(()=>{y&&e.selectionManager.focusedKey===r.key&&e.selectionManager.setFocusedKey(null)},[y,e.selectionManager,r.key]),{columnHeaderProps:{...G(d,o,a,g,y?{tabIndex:-1}:null),role:"columnheader",id:Np(e,r.key),"aria-colspan":r.colSpan&&r.colSpan>1?r.colSpan:void 0,"aria-sort":c},isPressed:u}}function vy(t,e,n){let{node:r,isVirtualized:i,shouldSelectOnPressUp:o,onAction:l}=t,{actions:a,shouldSelectOnPressUp:u}=fl.get(e),d=a.onRowAction?()=>a.onRowAction?.(r.key):l,{itemProps:c,...f}=Wn({selectionManager:e.selectionManager,key:r.key,ref:n,isVirtualized:i,shouldSelectOnPressUp:u||o,onAction:d||r?.props?.onAction?Ue(r?.props?.onAction,d):void 0,isDisabled:e.collection.size===0}),p=e.selectionManager.isSelected(r.key),m={role:"row","aria-selected":e.selectionManager.selectionMode!=="none"?p:void 0,"aria-disabled":f.isDisabled||void 0,...c};return i&&(m["aria-rowindex"]=r.index+1),{rowProps:m,...f}}function xy(t){return t&&t.__esModule?t.default:t}const fh={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function Cy(t,e,n){let{node:r,isVirtualized:i}=t,{rowProps:o,...l}=vy(t,e,n),{direction:a}=Te();i&&e.treeColumn==null?o["aria-rowindex"]=r.index+1+e.collection.headerRows.length:delete o["aria-rowindex"];let u=e.treeColumn!=null&&(e.expandedKeys==="all"||e.expandedKeys.has(r.key)),d=Ie(xy(mn),"@react-aria/table"),c=nn({"aria-label":u?d.format("collapse"):d.format("expand"),"aria-labelledby":ml(e,r.key)}),f={},p={};if(e.treeColumn!=null){let g=e.collection.getItem(r.key);if(g!=null){let y=ph(e.collection,r),$=g.props?.hasChildRows||g.props?.UNSTABLE_childItems||y?.type!=="cell",x=e.collection.getItem(r.parentKey),v=x.type==="tablebody"||x.type==="body",C=ph(e.collection,x);for(;C&&C.type!=="item"&&C.prevKey!=null;)C=e.collection.getItem(C.prevKey);f={onKeyDown:k=>{k.key===fh.expand[a]&&e.selectionManager.focusedKey===g.key&&$&&e.expandedKeys!=="all"&&!e.expandedKeys.has(g.key)?(e.toggleKey(g.key),k.stopPropagation()):k.key===fh.collapse[a]&&e.selectionManager.focusedKey===g.key&&(e.expandedKeys!=="all"?$&&e.expandedKeys.has(g.key)?(e.toggleKey(g.key),k.stopPropagation()):!e.expandedKeys.has(g.key)&&g.parentKey!=null&&g.level>0&&(e.selectionManager.setFocusedKey(g.parentKey),k.stopPropagation()):e.expandedKeys==="all"&&(e.toggleKey(g.key),k.stopPropagation()))},"aria-expanded":$?e.expandedKeys==="all"||e.expandedKeys.has(r.key):void 0,"aria-level":g.level+1,"aria-posinset":g.index-(v?0:e.collection.columnCount)+1,"aria-setsize":C.index-(v?0:e.collection.columnCount)+1},p={isDisabled:l.isDisabled,onPress:()=>{l.isDisabled||(e.toggleKey(r.key),e.selectionManager.setFocused(!0),e.selectionManager.setFocusedKey(r.key))},excludeFromTabOrder:!0,preventFocusOnPress:!0,"data-react-aria-prevent-focus":!0,...c}}}let m=h3(r.props),b=l.hasAction?m:{};return{rowProps:{...G(o,f,b),"aria-labelledby":ml(e,r.key)},expandButtonProps:p,...l}}function ph(t,e){return"lastChildKey"in e?e.lastChildKey!=null?t.getItem(e.lastChildKey):null:Array.from(e.childNodes).findLast(n=>n.parentKey===e.key)}function Ey(t,e,n){let{node:r,isVirtualized:i}=t,o={role:"row"};return i&&e.treeColumn==null&&(o["aria-rowindex"]=r.index+1),{rowProps:o}}function wy(t,e,n){let{gridCellProps:r,isPressed:i}=ch(t,e,n),o=t.node.column?.key;return o!=null&&e.collection.rowHeaderColumnKeys.has(o)&&(r.role="rowheader",r.id=Tp(e,t.node.parentKey,o)),{gridCellProps:r,isPressed:i}}function Sy(t){return t&&t.__esModule?t.default:t}function Py(t,e){let{key:n}=t;const{checkboxProps:r}=I1(t,e);return{checkboxProps:{...r,"aria-labelledby":`${r.id} ${ml(e,n)}`}}}function ky(t){let{isEmpty:e,isSelectAll:n,selectionMode:r}=t.selectionManager;return{checkboxProps:{"aria-label":Ie(Sy(mn),"@react-aria/table").format(r==="single"?"select":"selectAll"),isSelected:n,isDisabled:r!=="multiple"||t.collection.size===0||t.collection.rows.length===1&&t.collection.rows[0].type==="loader",isIndeterminate:!e&&!n,onChange:()=>t.selectionManager.toggleSelectAll()}}}function Dy(t){return t&&t.__esModule?t.default:t}function Ny(t,e,n){let{column:r,triggerRef:i,isDisabled:o,onResizeStart:l,onResize:a,onResizeEnd:u,"aria-label":d}=t;const c=Ie(Dy(mn),"@react-aria/table");let f=xe(),p=e.resizingColumn===r.key,m=s.useRef(p),b=s.useRef(null),g=s.useRef(!1),y=e.tableState.isKeyboardNavigationDisabled,[$,x]=s.useState(!1),{direction:v}=Te(),C=s.useCallback(O=>{m.current||(b.current=e.updateResizedColumns(O.key,e.getColumnWidth(O.key)),e.startResize(O.key),e.tableState.setKeyboardNavigationDisabled(!0),l?.(b.current)),m.current=!0},[e,l]),k=s.useCallback((O,J)=>{let ce=e.updateResizedColumns(O.key,J);a?.(ce),b.current=ce},[e,a]),P=s.useCallback(O=>{m.current&&(b.current==null&&(b.current=e.updateResizedColumns(O.key,e.getColumnWidth(O.key))),e.endResize(),e.tableState.setKeyboardNavigationDisabled(!1),u?.(b.current),m.current=!1,i?.current&&!g.current&&Se(i.current)),b.current=null},[e,i,u]),N=()=>{if(y){P(r);return}return!1},{keyboardProps:w}=je({shortcuts:{Escape:()=>N(),Enter:()=>{y?P(r):C(r)}," ":()=>N(),Tab:()=>N()}});const D=s.useRef(0),{moveProps:I}=U4({onMoveStart(O){D.current=e.getColumnWidth(r.key),O.pointerType==="mouse"&&x(!0),C(r)},onMove(O){let{deltaX:J,deltaY:ce,pointerType:he}=O;v==="rtl"&&(J*=-1),he==="keyboard"&&(ce!==0&&J===0&&(J=ce*-1),J*=10),J!==0&&(D.current+=J,k(r,D.current))},onMoveEnd(O){let{pointerType:J}=O;D.current=0,x(!1),(J==="mouse"||J==="touch"&&g.current)&&P(r)}});let L=s.useCallback(O=>{y&&I.onKeyDown?.(O)},[y,I]),z=Math.floor(e.getColumnMinWidth(r.key)),j=Math.floor(e.getColumnMaxWidth(r.key));j===1/0&&(j=Number.MAX_SAFE_INTEGER);let E=Math.floor(e.getColumnWidth(r.key)),A=Ra();A==="virtual"&&typeof window<"u"&&"ontouchstart"in window&&(A="touch");let Y=i?.current==null&&(A==="keyboard"||A==="virtual")&&!p?c.format("resizerDescription"):void 0,M=_n(Y),X={"aria-label":d,"aria-orientation":"horizontal","aria-labelledby":`${f} ${Np(e.tableState,r.key)}`,"aria-valuetext":c.format("columnSize",{value:E}),type:"range",min:z,max:j,value:E,...M};const S=s.useCallback(()=>{n.current&&Se(n.current)},[n]);let B=e.resizingColumn,U=s.useRef(null),oe=Ne(C);s.useEffect(()=>{if(U.current!==B&&B!=null&&B===r.key){g.current=pe()===n.current,oe(r);let O=setTimeout(()=>S(),0),J=setTimeout(S,400);return()=>{clearTimeout(O),clearTimeout(J)}}U.current=B},[B,r,S,n]);let W=O=>{let J=e.getColumnWidth(r.key),ce=parseFloat(_(O).value);ce>J?ce=J+10:ce=J-10,k(r,ce)},{pressProps:ne}=_t({preventFocusOnPress:!0,onPressStart:O=>{if(!(O.ctrlKey||O.altKey||O.metaKey||O.shiftKey||O.pointerType==="keyboard")){if(O.pointerType==="virtual"&&e.resizingColumn!=null){P(r);return}S(),O.pointerType!=="virtual"&&C(r)}},onPress:O=>{(O.pointerType==="touch"&&g.current||O.pointerType==="mouse")&&e.resizingColumn!=null&&P(r)}}),{visuallyHiddenProps:T}=cn();return{resizerProps:G(w,{...I,onKeyDown:L},ne,{style:{touchAction:"none"}}),inputProps:G(T,{id:f,onBlur:()=>{P(r)},onChange:W,disabled:o},X),isResizing:p,isMouseResizing:$}}function Ty(){return{rowGroupProps:{role:"rowgroup"}}}function gl(){return Ty()}function Ay(t){return t&&t.__esModule?t.default:t}class Iy extends Ja{withExpandedKeys(e){let n=this.clone();return n.expandedKeys=e,n.frozen=this.frozen,n.rows=Array.from(n.getRows()),n}addNode(e){super.addNode(e),this.columnsDirty||=e.type==="column",e.type==="tableheader"&&(this.head=e)}getRows(){let e=[];for(let n of this)(n.type==="tablebody"||n.type==="tablefooter")&&e.push(...this.getChildren(n.key));return e}get body(){for(let e of this)if(e.type==="tablebody")return e;return new mi(-2)}commit(e,n,r=!1){this.updateColumns(r),this.firstKey=e,this.lastKey=n,this.rows=[];for(let i of this.getRows()){let o=i.lastChildKey;if(o!=null){let l=this.getItem(o);for(;l&&l.type!=="cell";)l=l.prevKey!=null?this.getItem(l.prevKey):null;if(l){let a=(l.colIndex??l.index)+(l.colSpan??1);if(a!==this.columns.length&&!r)throw new Error(`Cell count must match column count. Found ${a} cells and ${this.columns.length} columns.`)}}this.rows.push(i)}super.commit(e,n,r)}updateColumns(e){if(!this.columnsDirty)return;this.rowHeaderColumnKeys=new Set,this.columns=[];let n=new Map,r=i=>{i.type==="column"&&(n.set(i.key,i),i.hasChildNodes||(i.index=this.columns.length,this.columns.push(i),i.props.isRowHeader&&this.rowHeaderColumnKeys.add(i.key)));for(let o of this.getChildren(i.key))r(o)};for(let i of this.getChildren(this.head.key))r(i);if(this.headerRows=Sp(n,this.columns),this.columnsDirty=!1,this.rowHeaderColumnKeys.size===0&&this.columns.length>0&&!e)throw new Error("A table must have at least one Column with the isRowHeader prop set to true")}get columnCount(){return this.columns.length}*[Symbol.iterator](){let e=this.firstKey;for(;e!=null;){let n=this.getItem(e);n&&(yield n),e=n?.nextKey??null}}getFirstKey(){for(let e of this)if(e.type==="tablebody")return e.firstChildKey??null;return null}getLastKey(){let e=this.lastKey;if(e==null)return null;let n=this.getItem(e);for(;n?.lastChildKey!=null&&(n.type!=="item"||this.expandedKeys.has(n.key));)n=this.getItem(n.lastChildKey);return n?.key}getKeyAfter(e){let n=this.getItem(e);if(n?.type==="column")return n.nextKey??null;if(!n)return null;if(n.type==="item"&&n.firstChildKey!=null&&this.expandedKeys.has(n.key)){let r=this.getItem(n.firstChildKey);for(;r;){if(r.type==="item")return r.key;r=r.nextKey!=null?this.getItem(r.nextKey):null}}return super.getKeyAfter(e)}getKeyBefore(e){let n=this.getItem(e);if(n?.type==="column")return n.prevKey??null;if(!n)return null;let r=null;if(n.prevKey!=null){for(n=this.getItem(n.prevKey);n&&(n.type!=="item"||this.expandedKeys.has(n.key))&&n.lastChildKey!=null;)n=this.getItem(n.lastChildKey);r=n?.key??null}return r==null&&(r=n.parentKey),r!=null&&this.getItem(r)?.type==="tableheader"?null:r}getChildren(e){let n=this.getItem(e);if(!n){for(let i of this.headerRows)if(i.key===e)return i.childNodes}let r=this;return n?.type==="tablebody"||n?.type==="tablefooter"?{*[Symbol.iterator](){let i=n.firstChildKey,o=i!=null?r.getItem(i):null;for(;o;){yield o;let l=r.getKeyAfter(o.key);if(o=l!=null?r.getItem(l):null,o&&o.parentKey===n.parentKey)break}}}:{*[Symbol.iterator](){let i=r.getItem(e),o=i?.firstChildKey!=null?r.getItem(i.firstChildKey):null;for(;o&&(yield o,o=o.nextKey!=null?r.getItem(o.nextKey):null,!(i?.type==="item"&&o?.type!=="cell")););}}}clone(){let e=super.clone();return e.headerRows=this.headerRows,e.columns=this.columns,e.rows=this.rows,e.rowHeaderColumnKeys=this.rowHeaderColumnKeys,e.head=this.head,e}getTextValue(e){let n=this.getItem(e);if(!n)return"";if(n.textValue)return n.textValue;let r=this.rowHeaderColumnKeys,i=[];for(let o of this.getChildren(e)){let l=this.columns[o.index];if(r.has(l.key)&&o.textValue&&i.push(o.textValue),i.length===r.size)break}return i.join(" ")}constructor(...e){super(...e),this.headerRows=[],this.columns=[],this.rows=[],this.rowHeaderColumnKeys=new Set,this.head=new hi(-1),this.columnsDirty=!0,this.expandedKeys=new Set}}const yl=s.createContext(null),By=s.forwardRef(function(e,n){let r=ke(n),i=s.useRef(null),o=s.useRef(null),[l,a]=s.useState(0);de(()=>{let d=i.current;for(;d&&d!==r.current&&!Nt(d);)d=d.parentElement;o.current=d},[r]),Zn({ref:o,box:"border-box",onResize(){a(o.current?.clientWidth??0)}}),de(()=>{a(o.current?.clientWidth??0)},[]);let u=s.useMemo(()=>({tableRef:i,scrollRef:o,tableWidth:l,useTableColumnResizeState:sy,onResizeStart:e.onResizeStart,onResize:e.onResize,onResizeEnd:e.onResizeEnd}),[i,l,e.onResizeStart,e.onResize,e.onResizeEnd]);return s.createElement(ee.div,{render:e.render,...re(e,{global:!0}),ref:r,className:e.className||"react-aria-ResizableTableContainer",style:e.style,onScroll:e.onScroll},s.createElement(yl.Provider,{value:u},e.children))}),Fy=s.createContext(null),Je=s.createContext(null),$l=s.createContext(null),My=s.forwardRef(function(e,n){[e,n]=be(e,n,Fy);let r=Gn(e),{selectionBehavior:i,selectionMode:o,disallowEmptySelection:l}=r,a=!!e.dragAndDropHooks?.useDraggableCollectionState,u=s.useMemo(()=>({selectionBehavior:o==="none"?null:i,selectionMode:o,disallowEmptySelection:l,allowsDragging:a}),[i,o,l,a]),d=s.createElement(Oy.Provider,{value:u},s.createElement(zt,e));return s.createElement(Ot,{content:d,createCollection:()=>new Iy},c=>s.createElement(Ly,{props:e,forwardedRef:n,selectionState:r,collection:c}))});let Ky=s.forwardRef(function(e,n){let{isVirtualized:r}=s.useContext(me);return r?s.createElement(ee.div,{...e,ref:n}):s.createElement(ee.table,{...e,ref:n})});const hh={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function Ly({props:t,forwardedRef:e,selectionState:n,collection:r}){[t,e]=be(t,e,Bn);let{shouldUseVirtualFocus:i,disallowTypeAhead:o,filter:l,...a}=t,u=s.useContext(yl);e=ke(s.useMemo(()=>Sn(e,u?.tableRef),[e,u?.tableRef]));let[d,c]=Ye(t.expandedKeys?new Set(t.expandedKeys):void 0,t.defaultExpandedKeys?new Set(t.defaultExpandedKeys):new Set,t.onExpandedChange);r=s.useMemo(()=>r.withExpandedKeys(d),[r,d]);let f=cy({...a,collection:r,children:void 0,UNSAFE_selectionState:n,expandedKeys:d,onExpandedChange:c}),p=fy(f,l),{isVirtualized:m,layoutDelegate:b,dropTargetDelegate:g,CollectionRoot:y}=s.useContext(me),{dragAndDropHooks:$}=t,{gridProps:x}=gy({...a,layoutDelegate:b,isVirtualized:m},p,e),v=p.selectionManager,C=!!$?.useDraggableCollectionState,k=!!$?.useDroppableCollectionState,P=s.useRef(C),N=s.useRef(k);s.useEffect(()=>{process.env.NODE_ENV!=="production"&&(P.current!==C&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),N.current!==k&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."))},[C,k]);let w,D,I,L=!1,z=null,j=s.useRef(null),{direction:E}=Te(),[A]=s.useState(()=>new ey);if(C&&$){w=$.useDraggableCollectionState({collection:p.collection,selectionManager:v,preview:$.renderDragPreview?j:void 0}),$.useDraggableCollection({},w,e);let ne=$.DragPreview;z=$.renderDragPreview?s.createElement(ne,{ref:j},$.renderDragPreview):null}if(k&&$){D=$.useDroppableCollectionState({collection:p.collection,selectionManager:v});let ne=new Rn({collection:p.collection,disabledKeys:v.disabledKeys,disabledBehavior:v.disabledBehavior,ref:e,layoutDelegate:b}),T=$.dropTargetDelegate||g||new $.ListDropTargetDelegate(r.rows,e);A.setup(T,f,E),I=$.useDroppableCollection({keyboardDelegate:ne,dropTargetDelegate:A,onDropActivate:O=>{if(O.target.type==="item"){let J=O.target.key,ce=f.collection.getItem(J),he=d.has(J);ce&&ce.hasChildNodes&&(!he||$?.isVirtualDragging?.())&&f.toggleKey(J)}},onKeyDown:O=>{let J=D?.target;if(J&&J.type==="item"&&J.dropPosition==="on"){let ce=f.collection.getItem(J.key);(O.key===hh.expand[E]&&ce?.hasChildNodes&&!f.expandedKeys.has(J.key)||O.key===hh.collapse[E]&&ce?.hasChildNodes&&f.expandedKeys.has(J.key))&&f.toggleKey(J.key)}}},D,e),L=D.isDropTarget({type:"root"})}let{focusProps:Y,isFocused:M,isFocusVisible:X}=Be(),S=se({...t,children:void 0,defaultClassName:"react-aria-Table",values:{isDropTarget:L,isFocused:M,isFocusVisible:X,state:p}}),B=!!(C&&!w?.isDisabled),U=S.style,oe=null;u&&(oe=u.useTableColumnResizeState({tableWidth:u.tableWidth},p),m||(U={...U,tableLayout:"fixed",width:"min-content"}));let W=re(t,{global:!0});return s.createElement(De,{values:[[Je,p],[$l,oe],[Xe,{dragAndDropHooks:$,dragState:w,dropState:D}],[To,{render:Jy}],[Bn,null],[Fn,null]]},s.createElement(ei,null,s.createElement(Ky,{...G(W,S,x,Y,I?.collectionProps),style:U,ref:e,slot:t.slot||void 0,onScroll:t.onScroll,"data-allows-dragging":B||void 0,"data-drop-target":L||void 0,"data-focused":M||void 0,"data-focus-visible":X||void 0},s.createElement(Jr,null,s.createElement(y,{collection:p.collection,scrollRef:u?.scrollRef??e,persistedKeys:nd(v,$,D)})))),z)}const Oy=s.createContext(null),ya=class ya extends He{};ya.type="tableheader";let hi=ya,zy=s.forwardRef(function(e,n){let{isVirtualized:r}=s.useContext(me);return r?s.createElement(ee.div,{...e,ref:n}):s.createElement(ee.thead,{...e,ref:n})});const _y=Vr(hi,(t,e)=>{let n=s.useContext(Je).collection,r=Zi({items:n.headerRows,children:s.useCallback(u=>{if(u.type==="headerrow")return s.createElement(Hy,{item:u});throw new Error("Unsupported node type in TableHeader: "+u.type)},[])}),{rowGroupProps:i}=gl(),{hoverProps:o,isHovered:l}=Fe({onHoverStart:t.onHoverStart,onHoverChange:t.onHoverChange,onHoverEnd:t.onHoverEnd}),a=se({...t,children:void 0,defaultClassName:"react-aria-TableHeader",values:{isHovered:l}});return s.createElement(zy,{...G(re(t,{global:!0}),i,o),...a,ref:e,"data-hovered":l||void 0},r)},t=>s.createElement(zt,{dependencies:t.dependencies,items:t.columns},t.children));let Vy=s.forwardRef(function(e,n){let{isVirtualized:r}=s.useContext(me);return r?s.createElement("div",{...e,ref:n}):s.createElement("tr",{...e,ref:n})});function Hy({item:t}){let e=s.useRef(null),n=s.useContext(Je),{isVirtualized:r,CollectionBranch:i}=s.useContext(me),{rowProps:o}=Ey({node:t,isVirtualized:r},n,e),{checkboxProps:l}=ky(n);return s.createElement(Vy,{...o,ref:e},s.createElement(De,{values:[[$u,{slots:{selection:l}}],[vu,{slots:{selection:l}}]]},s.createElement(i,{collection:n.collection,parent:t})))}const $a=class $a extends He{};$a.type="column";let vl=$a,jy=s.forwardRef(function(e,n){let{isVirtualized:r}=s.useContext(me);return r?s.createElement(ee.div,{...e,ref:n}):s.createElement(ee.th,{...e,ref:n})});const Ry=ot(vl,(t,e,n)=>{let r=ke(e),i=s.useContext(Je),{isVirtualized:o}=s.useContext(me),{columnHeaderProps:l,isPressed:a}=$y({node:n,isVirtualized:o,focusMode:t.focusMode,allowsArrowNavigation:t.allowsArrowNavigation},i,r),{isFocused:u,isFocusVisible:d,focusProps:c}=Be(),f=s.useContext($l),p=!1;if(f)p=f.resizingColumn===n.key;else if(process.env.NODE_ENV!=="production")for(let x in["width","defaultWidth","minWidth","maxWidth"])x in n.props&&console.warn(`The ${x} prop on a <Column> only applies when a <Table> is wrapped in a <ResizableTableContainer>. If you aren't using column resizing, you can set the width of a column with CSS.`);let{hoverProps:m,isHovered:b}=Fe({isDisabled:!t.allowsSorting}),g=se({...t,id:void 0,children:n.rendered,defaultClassName:"react-aria-Column",values:{isHovered:b,isPressed:a,isFocused:u,isFocusVisible:d,allowsSorting:n.props.allowsSorting,sortDirection:i.sortDescriptor?.column===n.key?i.sortDescriptor.direction:void 0,isResizing:p,startResize:()=>{if(f)f.startResize(n.key),i.setKeyboardNavigationDisabled(!0);else throw new Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing")},sort:x=>{i.sort(n.key,x)}}}),y=g.style;f&&(y={...y,width:f.getColumnWidth(n.key)});let $=re(t,{global:!0});return delete $.id,s.createElement(jy,{...G($,l,c,m),...g,style:y,ref:r,"data-hovered":b||void 0,"data-pressed":a||void 0,"data-focused":u||void 0,"data-focus-visible":d||void 0,"data-resizing":p||void 0,"data-allows-sorting":n.props.allowsSorting||void 0,"data-sort-direction":i.sortDescriptor?.column===n.key?i.sortDescriptor.direction:void 0},s.createElement(De,{values:[[mh,{column:n,triggerRef:r}],[me,io]]},g.children))}),mh=s.createContext(null),Wy=s.forwardRef(function(e,n){let r=s.useContext($l);if(!r)throw new Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing");let i=Ie(Ay(No),"react-aria-components"),{onResizeStart:o,onResize:l,onResizeEnd:a}=s.useContext(yl),{column:u,triggerRef:d}=s.useContext(mh),c=s.useRef(null),{resizerProps:f,inputProps:p,isResizing:m,isMouseResizing:b}=Ny({column:u,"aria-label":e["aria-label"]||i.format("tableResizer"),onResizeStart:o,onResize:l,onResizeEnd:a,triggerRef:d},r,c),{focusProps:g,isFocused:y,isFocusVisible:$}=Be(),{hoverProps:x,isHovered:v}=Fe(e),C=r.getColumnMinWidth(u.key)>=r.getColumnWidth(u.key),k=r.getColumnMaxWidth(u.key)<=r.getColumnWidth(u.key),{direction:P}=Te(),N="both";C?N=P==="rtl"?"right":"left":k?N=P==="rtl"?"left":"right":N="both";let w=ke(n),[D,I]=s.useState("");s.useEffect(()=>{if(!w.current)return;let j=window.getComputedStyle(w.current);I(j.cursor)},[w,N]);let L=se({...e,defaultClassName:"react-aria-ColumnResizer",values:{isFocused:y,isFocusVisible:$,isResizing:m,isHovered:v,resizableDirection:N}}),z=re(e,{global:!0});return s.createElement(ee.div,{ref:w,role:"presentation",...G(z,L,f,x),"data-hovered":v||void 0,"data-focused":y||void 0,"data-focus-visible":$||void 0,"data-resizing":m||void 0,"data-resizable-direction":N},L.children,s.createElement("input",{ref:c,...G(p,g)}),m&&b&&Et.createPortal(s.createElement("div",{style:{position:"fixed",top:0,left:0,bottom:0,right:0,cursor:D},"data-testid":"cursor-overlay"}),document.body))}),va=class va extends Fr{};va.type="tablebody";let mi=va,Uy=s.forwardRef(function(e,n){let{isVirtualized:r}=s.useContext(me);return r?s.createElement(ee.div,{...e,ref:n}):s.createElement(ee.tbody,{...e,ref:n})});const Gy=Vr(mi,(t,e,n)=>{let r=s.useContext(Je),{isVirtualized:i}=s.useContext(me),o=r.collection,{CollectionBranch:l}=s.useContext(me),{dragAndDropHooks:a,dropState:u}=s.useContext(Xe),d=!!a?.useDroppableCollectionState&&!u?.isDisabled,c=d&&!!u&&(u.isDropTarget({type:"root"})??!1),f=o.size===0,p={isDropTarget:c,isEmpty:f},m=se({...t,id:void 0,children:void 0,defaultClassName:"react-aria-TableBody",values:p}),b,g=o.columnCount;if(f&&t.renderEmptyState&&r){let x={},v={},C={};i?(v["aria-colspan"]=g,C={display:"contents"}):v.colSpan=g,b=s.createElement(bn,{role:"row",...x,style:C},s.createElement(gn,{role:"rowheader",...v,style:C},t.renderEmptyState(p)))}let{rowGroupProps:y}=gl(),$=re(t,{global:!0});return s.createElement(Uy,{...G($,m,y),ref:e,"data-empty":f||void 0},d&&s.createElement(r$,null),s.createElement(l,{collection:o,parent:n,renderDropIndicator:Zr(a,u)}),b)}),xa=class xa extends Fr{};xa.type="tablefooter";let xl=xa,Yy=s.forwardRef(function(e,n){let{isVirtualized:r}=s.useContext(me);return r?s.createElement(ee.div,{...e,ref:n}):s.createElement(ee.tfoot,{...e,ref:n})});const Xy=Vr(xl,(t,e,n)=>{let i=s.useContext(Je).collection,{CollectionBranch:o}=s.useContext(me),{dragAndDropHooks:l,dropState:a}=s.useContext(Xe),{rowGroupProps:u}=gl(),d=re(t,{global:!0}),c=se({style:t.style,className:t.className,defaultClassName:"react-aria-TableFooter",values:{}});return s.createElement(Yy,{...G(d,c,u),ref:e},s.createElement(o,{collection:i,parent:n,renderDropIndicator:Zr(l,a)}))}),bh=s.createContext({isFocusVisibleWithinRow:!1}),Ca=class Ca extends He{filter(e,n,r){let i=e.getChildren(this.key);for(let o of i)if(r(o.textValue,o)){let l=this.clone();return n.addDescendants(l,e),l}return null}};Ca.type="item";let Cl=Ca,bn=s.forwardRef(function(e,n){let{isVirtualized:r}=s.useContext(me);return r?s.createElement(ee.div,{...e,ref:n}):s.createElement(ee.tr,{...e,ref:n})});const qy=Vr(Cl,(t,e,n)=>{let r=ke(e),i=s.useContext(Je),{dragAndDropHooks:o,dragState:l,dropState:a}=s.useContext(Xe),{isVirtualized:u,CollectionBranch:d}=s.useContext(me),c=l&&!(l.isDisabled||l.selectionManager.isDisabled(n.key)),{rowProps:f,expandButtonProps:p,...m}=Cy({node:n,shouldSelectOnPressUp:!!l,isVirtualized:u},i,r),{isFocused:b,isFocusVisible:g,focusProps:y}=Be(),{isFocusVisible:$,focusProps:x}=Be({within:!0}),{hoverProps:v,isHovered:C}=Fe({isDisabled:!m.allowsSelection&&!m.hasAction&&!c,onHoverStart:t.onHoverStart,onHoverChange:t.onHoverChange,onHoverEnd:t.onHoverEnd}),{checkboxProps:k}=Py({key:n.key},i),P;l&&o&&(P=o.useDraggableItem({key:n.key,hasDragButton:!0},l));let N,w=s.useRef(null),{visuallyHiddenProps:D}=cn();a&&o&&(N=o.useDropIndicator({target:{type:"item",key:n.key,dropPosition:"on"}},a,w));let I=s.useRef(null);s.useEffect(()=>{l&&!I.current&&process.env.NODE_ENV!=="production"&&console.warn('Draggable items in a Table must contain a <Button slot="drag"> element so that keyboard and screen reader users can drag them.')},[]);let L=l&&l.isDragging(n.key),{children:z,...j}=t,E=t.hasChildItems||i.collection.getItem(n.lastChildKey)?.type!=="cell",A=E&&i.expandedKeys.has(n.key),Y=se({...j,id:void 0,defaultClassName:"react-aria-Row",defaultStyle:{"--table-row-level":n.level+1},values:{...m,state:i,isHovered:C,isFocused:b,isFocusVisible:g,selectionMode:i.selectionManager.selectionMode,selectionBehavior:i.selectionManager.selectionBehavior,isDragging:L,isDropTarget:N?.isDropTarget,isFocusVisibleWithin:$,id:n.key,hasChildItems:E,isExpanded:A,level:n.level+1}}),M=re(t,{global:!0});return delete M.id,delete M.onClick,s.createElement(s.Fragment,null,N&&!N.isHidden&&s.createElement(bn,{role:"row",style:{height:0}},s.createElement(gn,{role:"gridcell",colSpan:i.collection.columnCount,style:{padding:0}},s.createElement("div",{role:"button",...D,...N.dropIndicatorProps,ref:w}))),s.createElement(bn,{...G(M,Y,f,y,v,P?.dragProps,x),ref:r,"data-disabled":m.isDisabled||void 0,"data-selected":m.isSelected||void 0,"data-hovered":C||void 0,"data-focused":m.isFocused||void 0,"data-focus-visible":g||void 0,"data-pressed":m.isPressed||void 0,"data-dragging":L||void 0,"data-drop-target":N?.isDropTarget||void 0,"data-selection-mode":i.selectionManager.selectionMode==="none"?void 0:i.selectionManager.selectionMode,"data-focus-visible-within":$||void 0,"data-expanded":A||void 0,"data-has-child-items":E||void 0,"data-level":n.level+1},s.createElement(De,{values:[[$u,{slots:{[ct]:{},selection:k}}],[vu,{slots:{[ct]:{},selection:k}}],[Dt,{slots:{[ct]:{},chevron:p,drag:{...P?.dragButtonProps,ref:I,style:{pointerEvents:"none"}}}}],[Hn,{isSelected:m.isSelected}],[bh,{isFocusVisibleWithinRow:$}]]},s.createElement(d,{collection:i.collection,parent:n}))))},t=>{if(t.id==null&&typeof t.children=="function")throw new Error("No id detected for the Row element. The Row element requires a id to be provided to it when the cells are rendered dynamically.");let e=[t.value].concat(t.dependencies);return s.createElement(zt,{dependencies:e,items:t.columns,idScope:t.id},t.children)}),Ea=class Ea extends He{};Ea.type="cell";let El=Ea,gn=s.forwardRef(function(e,n){let{isVirtualized:r}=s.useContext(me);return r?s.createElement(ee.div,{...e,ref:n}):s.createElement(ee.td,{...e,ref:n})});const Zy=ot(El,(t,e,n)=>{let r=ke(e),i=s.useContext(Je),{dragState:o}=s.useContext(Xe),{isVirtualized:l}=s.useContext(me);n.column=i.collection.columns[n.index];let{gridCellProps:a,isPressed:u}=wy({node:n,shouldSelectOnPressUp:!!o,isVirtualized:l,focusMode:t.focusMode,allowsArrowNavigation:t.allowsArrowNavigation},i,r),{isFocused:d,isFocusVisible:c,focusProps:f}=Be(),{hoverProps:p,isHovered:m}=Fe({}),{isFocusVisibleWithinRow:b}=s.useContext(bh),g=n.parentKey!=null?i.selectionManager.isSelected(n.parentKey):!1,y=n.colIndex||n.index,$=i.collection.getItem(n.parentKey),x=$.props.hasChildItems||i.collection.getItem($.lastChildKey)?.type!=="cell",v=x&&i.expandedKeys.has(n.parentKey),C=i.selectionManager.isDisabled(n.parentKey),k=se({...t,id:void 0,defaultClassName:"react-aria-Cell",values:{isFocused:d,isFocusVisible:c,isFocusVisibleWithinRow:b,isPressed:u,isHovered:m,isSelected:g,id:n.key,columnIndex:y,hasChildItems:x,isExpanded:v,isDisabled:C,level:$.level+1,isTreeColumn:n.column.key===i.treeColumn}}),P=re(t,{global:!0});return delete P.id,s.createElement(gn,{...G(P,k,a,f,p),ref:r,"data-focused":d||void 0,"data-focus-visible":c||void 0,"data-focus-visible-within-row":b||void 0,"data-pressed":u||void 0,"data-selected":g||void 0,"data-column-index":y,"data-expanded":v||void 0,"data-has-child-items":x||void 0,"data-level":$.level+1,"data-tree-column":n.column.key===i.treeColumn||void 0,"data-disabled":C||void 0},s.createElement(me.Provider,{value:io},k.children))});function Jy(t,e){e=ke(e);let{dragAndDropHooks:n,dropState:r}=s.useContext(Xe),i=s.useRef(null),{dropIndicatorProps:o,isHidden:l,isDropTarget:a}=n.useDropIndicator(t,r,i);if(l)return null;let u=r&&t.target.type==="item"?(r.collection.getItem(t.target.key)?.level||0)+1:1;return s.createElement(n$,{...t,dropIndicatorProps:o,isDropTarget:a,buttonRef:i,level:u,ref:e})}let Qy=s.forwardRef(function(e,n){let{isVirtualized:r}=s.useContext(me);return r?s.createElement(ee.div,{...e,ref:n}):s.createElement(ee.tr,{...e,ref:n})}),e$=s.forwardRef(function(e,n){let{isVirtualized:r}=s.useContext(me);return r?s.createElement(ee.div,{...e,ref:n}):s.createElement(ee.td,{...e,ref:n})});function t$(t,e){let{dropIndicatorProps:n,isDropTarget:r,buttonRef:i,level:o,...l}=t,a=s.useContext(Je),{visuallyHiddenProps:u}=cn(),d=se({...l,defaultClassName:"react-aria-DropIndicator",defaultStyle:{"--table-row-level":o+1},values:{isDropTarget:r}});return s.createElement(Qy,{...re(t,{global:!0}),...d,role:"row",ref:e,"data-drop-target":r||void 0,"aria-level":o},s.createElement(e$,{role:"gridcell",colSpan:a.collection.columnCount,style:{padding:0}},s.createElement("div",{...u,role:"button",...n,ref:i}),d.children))}const n$=s.forwardRef(t$);function r$(){let t=s.useContext(Je),{dragAndDropHooks:e,dropState:n}=s.useContext(Xe),r=s.useRef(null),{dropIndicatorProps:i}=e.useDropIndicator({target:{type:"root"}},n,r),o=n.isDropTarget({type:"root"}),{visuallyHiddenProps:l}=cn();return!o&&i["aria-hidden"]?null:s.createElement(bn,{role:"row","aria-hidden":i["aria-hidden"],style:{height:0}},s.createElement(gn,{role:"gridcell",colSpan:t.collection.columnCount,style:{padding:0}},s.createElement("div",{role:"button",...l,...i,ref:r})))}const i$=ot(Mr,function(e,n,r){let i=s.useContext(Je),{isVirtualized:o}=s.useContext(me),{isLoading:l,onLoadMore:a,scrollOffset:u,...d}=e,c=i.collection.columns.length,f=s.useRef(null),p=s.useMemo(()=>({onLoadMore:a,collection:i?.collection,sentinelRef:f,scrollOffset:u}),[a,u,i?.collection]);Sd(p,f);let m=se({...d,id:void 0,children:r.rendered,defaultClassName:"react-aria-TableLoadingIndicator",defaultStyle:{"--table-row-level":r.level+1},values:void 0}),b={},g={},y={};return o?(g["aria-colspan"]=c,y={display:"contents"}):g.colSpan=c,s.createElement(s.Fragment,null,s.createElement(bn,{style:{height:0},inert:xd(!0)},s.createElement(gn,{style:{padding:0,border:0}},s.createElement("div",{"data-testid":"loadMoreSentinel",ref:f,style:{position:"relative",height:1,width:1}}))),l&&m.children&&s.createElement(bn,{...G(re(e,{global:!0}),b),...m,role:"row",ref:n,"aria-level":r.level+1,"data-level":r.level+1},s.createElement(gn,{role:"rowheader",...g,style:y},m.children)))}),gh=new WeakMap;function yh(t,e,n){if(!t)return"";typeof e=="string"&&(e=e.replace(/\s+/g,""));let r=gh.get(t);return process.env.NODE_ENV!=="production"&&!r&&console.error("There is no tab id, please check if you have rendered the tab panel before the tab list."),`${r}-${n}-${e}`}function o$(t,e,n){let{key:r,isDisabled:i,shouldSelectOnPressUp:o}=t,{selectionManager:l,selectedKey:a}=e,u=r===a,d=i||e.isDisabled||e.selectionManager.isDisabled(r),c=e.collection.getItem(r),{itemProps:f,isPressed:p}=Wn({selectionManager:l,key:r,ref:n,isDisabled:d,shouldSelectOnPressUp:o??c?.props.href!=null,linkBehavior:"selection"}),m=yh(e,r,"tab"),b=yh(e,r,"tabpanel"),{tabIndex:g}=f,y=re(c?.props,{labelable:!0});delete y.id;let $=Dr(c?.props),{focusableProps:x}=on({...c?.props,isDisabled:d},n);return{tabProps:G(y,x,$,f,{id:m,"aria-selected":u,"aria-disabled":d||void 0,"aria-controls":u?b:void 0,tabIndex:d?void 0:g,role:"tab"}),isSelected:u,isDisabled:d,isPressed:p}}class l${constructor(e,n,r,i=new Set){this.collection=e,this.flipDirection=n==="rtl"&&r==="horizontal",this.disabledKeys=i,this.tabDirection=r==="horizontal"}getKeyLeftOf(e){return this.flipDirection?this.getNextKey(e):this.getPreviousKey(e)}getKeyRightOf(e){return this.flipDirection?this.getPreviousKey(e):this.getNextKey(e)}isDisabled(e){return this.disabledKeys.has(e)||!!this.collection.getItem(e)?.props?.isDisabled}getFirstKey(){let e=this.collection.getFirstKey();return e!=null&&this.isDisabled(e)&&(e=this.getNextKey(e)),e}getLastKey(){let e=this.collection.getLastKey();return e!=null&&this.isDisabled(e)&&(e=this.getPreviousKey(e)),e}getKeyAbove(e){return this.tabDirection?null:this.getPreviousKey(e)}getKeyBelow(e){return this.tabDirection?null:this.getNextKey(e)}getNextKey(e){let n=e;do n=this.collection.getKeyAfter(n),n==null&&(n=this.collection.getFirstKey());while(n!=null&&this.isDisabled(n)&&n!==e);return n}getPreviousKey(e){let n=e;do n=this.collection.getKeyBefore(n),n==null&&(n=this.collection.getLastKey());while(n!=null&&this.isDisabled(n)&&n!==e);return n}}function a$(t,e,n){let{orientation:r="horizontal",keyboardActivation:i="automatic"}=t,{collection:o,selectionManager:l,disabledKeys:a}=e,{direction:u}=Te(),d=s.useMemo(()=>new l$(o,u,r,a),[o,a,r,u]),{collectionProps:c}=ni({ref:n,selectionManager:l,keyboardDelegate:d,selectOnFocus:i==="automatic",disallowEmptySelection:!0,scrollRef:n,linkBehavior:"selection"}),f=xe();gh.set(e,f);let p=nn({...t,id:f});return{tabListProps:{...G(c,p),role:"tablist","aria-orientation":r,tabIndex:void 0}}}function s$(t){let[e,n]=Ye(t.selectedKey,t.defaultSelectedKey??null,t.onSelectionChange),r=s.useMemo(()=>e!=null?[e]:[],[e]),{collection:i,disabledKeys:o,selectionManager:l}=ri({...t,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:r,onSelectionChange:u=>{if(u==="all")return;let d=u.values().next().value??null;d===e&&t.onSelectionChange&&t.onSelectionChange(d),n(d)}}),a=e!=null?i.getItem(e):null;return{collection:i,disabledKeys:o,selectionManager:l,selectedKey:e,setSelectedKey:n,selectedItem:a}}function u$(t){let e=s$({...t,onSelectionChange:t.onSelectionChange?l=>{l!=null&&t.onSelectionChange?.(l)}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:t.defaultSelectedKey??$h(t.collection,t.disabledKeys?new Set(t.disabledKeys):new Set)??void 0}),{selectionManager:n,collection:r,selectedKey:i}=e,o=s.useRef(i);return s.useEffect(()=>{let l=i;t.selectedKey==null&&(n.isEmpty||l==null||!r.getItem(l))&&(l=$h(r,e.disabledKeys),l!=null&&n.setSelectedKeys([l])),(l!=null&&n.focusedKey==null||!n.isFocused&&l!==o.current)&&n.setFocusedKey(l),o.current=l}),{...e,isDisabled:t.isDisabled||!1}}function $h(t,e){let n=null;if(t){for(n=t.getFirstKey();n!=null&&(e.has(n)||t.getItem(n)?.props?.isDisabled)&&n!==t.getLastKey();)n=t.getKeyAfter(n);n!=null&&(e.has(n)||t.getItem(n)?.props?.isDisabled)&&n===t.getLastKey()&&(n=t.getFirstKey())}return n}const wl=s.createContext(null),bi=s.createContext(null),vh=s.forwardRef(function(e,n){[e,n]=be(e,n,wl);let{children:r,orientation:i="horizontal"}=e;return r=s.useMemo(()=>typeof r=="function"?r({orientation:i,defaultChildren:null}):r,[r,i]),s.createElement(Ot,{content:r},o=>s.createElement(d$,{props:e,collection:o,tabsRef:n}))});function d$({props:t,tabsRef:e,collection:n}){let{orientation:r="horizontal"}=t,i=u$({...t,collection:n,children:void 0}),{focusProps:o,isFocused:l,isFocusVisible:a}=Be({within:!0}),u=s.useMemo(()=>({orientation:r,isFocusWithin:l,isFocusVisible:a}),[r,l,a]),d=se({...t,defaultClassName:"react-aria-Tabs",values:u}),c=re(t,{global:!0});return s.createElement(ee.div,{...G(c,d,o),ref:e,slot:t.slot||void 0,"data-focused":l||void 0,"data-orientation":r,"data-focus-visible":a||void 0,"data-disabled":i.isDisabled||void 0},s.createElement(De,{values:[[wl,t],[bi,i]]},d.children))}const xh=s.forwardRef(function(e,n){return s.useContext(bi)?s.createElement(c$,{props:e,forwardedRef:n}):s.createElement(zt,e)});function c$({props:t,forwardedRef:e}){let n=s.useContext(bi),{CollectionRoot:r}=s.useContext(me),{orientation:i="horizontal",keyboardActivation:o="automatic"}=ft(wl),l=ke(e),{tabListProps:a}=a$({...t,orientation:i,keyboardActivation:o},n,l),u=se({...t,children:null,defaultClassName:"react-aria-TabList",values:{orientation:i,state:n}}),d=re(t,{global:!0});return delete d.id,s.createElement(ee.div,{...G(d,u,a),ref:l,"data-orientation":i||void 0},s.createElement(Jr,null,s.createElement(r,{collection:n.collection,persistedKeys:ms(n.selectionManager.focusedKey)})))}const wa=class wa extends He{};wa.type="item";let Sl=wa;const Ch=ot(Sl,(t,e,n)=>{let r=s.useContext(bi),i=ke(e),{tabProps:o,isSelected:l,isDisabled:a,isPressed:u}=o$({key:n.key,...t},r,i),{focusProps:d,isFocused:c,isFocusVisible:f}=Be(),{hoverProps:p,isHovered:m}=Fe({isDisabled:a,onHoverStart:t.onHoverStart,onHoverEnd:t.onHoverEnd,onHoverChange:t.onHoverChange}),b=se({...t,id:void 0,children:n.rendered,defaultClassName:"react-aria-Tab",values:{isSelected:l,isDisabled:a,isFocused:c,isFocusVisible:f,isPressed:u,isHovered:m}}),g=n.props.href?ee.a:ee.div,y=re(t,{global:!0});return delete y.id,delete y.onClick,s.createElement(g,{...G(y,b,o,d,p),ref:i,"data-selected":l||void 0,"data-disabled":a||void 0,"data-focused":c||void 0,"data-focus-visible":f||void 0,"data-pressed":u||void 0,"data-hovered":m||void 0},s.createElement(Hn.Provider,{value:{isSelected:l}},b.children))}),f$=s.createContext({});let p$=t=>{let{onHoverStart:e,onHoverChange:n,onHoverEnd:r,...i}=t;return i};const h$=s.forwardRef(function(e,n){[e,n]=be(e,n,f$);let{hoverProps:r,isHovered:i}=Fe(e),{isFocused:o,isFocusVisible:l,focusProps:a}=Be({isTextInput:!0,autoFocus:e.autoFocus}),u=!!e["aria-invalid"]&&e["aria-invalid"]!=="false",d=se({...e,values:{isHovered:i,isFocused:o,isFocusVisible:l,isDisabled:e.disabled||!1,isInvalid:u},defaultClassName:"react-aria-TextArea"});return s.createElement(ee.textarea,{...G(p$(e),a,r),...d,ref:n,"data-focused":o||void 0,"data-disabled":e.disabled||void 0,"data-hovered":i||void 0,"data-focus-visible":l||void 0,"data-invalid":u||void 0})}),m$=(t,e)=>{const n=new Array(t.length+e.length);for(let r=0;r<t.length;r++)n[r]=t[r];for(let r=0;r<e.length;r++)n[t.length+r]=e[r];return n},b$=(t,e)=>({classGroupId:t,validator:e}),Eh=(t=new Map,e=null,n)=>({nextPart:t,validators:e,classGroupId:n}),gi="-",wh=[],g$="arbitrary..",y$=t=>{const e=v$(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=t;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return $$(l);const a=l.split(gi),u=a[0]===""&&a.length>1?1:0;return Sh(a,u,e)},getConflictingClassGroupIds:(l,a)=>{if(a){const u=r[l],d=n[l];return u?d?m$(d,u):u:d||wh}return n[l]||wh}}},Sh=(t,e,n)=>{if(t.length-e===0)return n.classGroupId;const i=t[e],o=n.nextPart.get(i);if(o){const d=Sh(t,e+1,o);if(d)return d}const l=n.validators;if(l===null)return;const a=e===0?t.join(gi):t.slice(e).join(gi),u=l.length;for(let d=0;d<u;d++){const c=l[d];if(c.validator(a))return c.classGroupId}},$$=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const e=t.slice(1,-1),n=e.indexOf(":"),r=e.slice(0,n);return r?g$+r:void 0})(),v$=t=>{const{theme:e,classGroups:n}=t;return x$(n,e)},x$=(t,e)=>{const n=Eh();for(const r in t){const i=t[r];Pl(i,n,r,e)}return n},Pl=(t,e,n,r)=>{const i=t.length;for(let o=0;o<i;o++){const l=t[o];C$(l,e,n,r)}},C$=(t,e,n,r)=>{if(typeof t=="string"){E$(t,e,n);return}if(typeof t=="function"){w$(t,e,n,r);return}S$(t,e,n,r)},E$=(t,e,n)=>{const r=t===""?e:Ph(e,t);r.classGroupId=n},w$=(t,e,n,r)=>{if(P$(t)){Pl(t(r),e,n,r);return}e.validators===null&&(e.validators=[]),e.validators.push(b$(n,t))},S$=(t,e,n,r)=>{const i=Object.entries(t),o=i.length;for(let l=0;l<o;l++){const[a,u]=i[l];Pl(u,Ph(e,a),n,r)}},Ph=(t,e)=>{let n=t;const r=e.split(gi),i=r.length;for(let o=0;o<i;o++){const l=r[o];let a=n.nextPart.get(l);a||(a=Eh(),n.nextPart.set(l,a)),n=a}return n},P$=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,k$=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=Object.create(null),r=Object.create(null);const i=(o,l)=>{n[o]=l,e++,e>t&&(e=0,r=n,n=Object.create(null))};return{get(o){let l=n[o];if(l!==void 0)return l;if((l=r[o])!==void 0)return i(o,l),l},set(o,l){o in n?n[o]=l:i(o,l)}}},kl="!",kh=":",D$=[],Dh=(t,e,n,r,i)=>({modifiers:t,hasImportantModifier:e,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),N$=t=>{const{prefix:e,experimentalParseClassName:n}=t;let r=i=>{const o=[];let l=0,a=0,u=0,d;const c=i.length;for(let g=0;g<c;g++){const y=i[g];if(l===0&&a===0){if(y===kh){o.push(i.slice(u,g)),u=g+1;continue}if(y==="/"){d=g;continue}}y==="["?l++:y==="]"?l--:y==="("?a++:y===")"&&a--}const f=o.length===0?i:i.slice(u);let p=f,m=!1;f.endsWith(kl)?(p=f.slice(0,-1),m=!0):f.startsWith(kl)&&(p=f.slice(1),m=!0);const b=d&&d>u?d-u:void 0;return Dh(o,m,p,b)};if(e){const i=e+kh,o=r;r=l=>l.startsWith(i)?o(l.slice(i.length)):Dh(D$,!1,l,void 0,!0)}if(n){const i=r;r=o=>n({className:o,parseClassName:i})}return r},T$=t=>{const e=new Map;return t.orderSensitiveModifiers.forEach((n,r)=>{e.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let o=0;o<n.length;o++){const l=n[o],a=l[0]==="[",u=e.has(l);a||u?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(l)):i.push(l)}return i.length>0&&(i.sort(),r.push(...i)),r}},A$=t=>({cache:k$(t.cacheSize),parseClassName:N$(t),sortModifiers:T$(t),postfixLookupClassGroupIds:I$(t),...y$(t)}),I$=t=>{const e=Object.create(null),n=t.postfixLookupClassGroups;if(n)for(let r=0;r<n.length;r++)e[n[r]]=!0;return e},B$=/\s+/,F$=(t,e)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:o,postfixLookupClassGroupIds:l}=e,a=[],u=t.trim().split(B$);let d="";for(let c=u.length-1;c>=0;c-=1){const f=u[c],{isExternal:p,modifiers:m,hasImportantModifier:b,baseClassName:g,maybePostfixModifierPosition:y}=n(f);if(p){d=f+(d.length>0?" "+d:d);continue}let $=!!y,x;if($){const N=g.substring(0,y);x=r(N);const w=x&&l[x]?r(g):void 0;w&&w!==x&&(x=w,$=!1)}else x=r(g);if(!x){if(!$){d=f+(d.length>0?" "+d:d);continue}if(x=r(g),!x){d=f+(d.length>0?" "+d:d);continue}$=!1}const v=m.length===0?"":m.length===1?m[0]:o(m).join(":"),C=b?v+kl:v,k=C+x;if(a.indexOf(k)>-1)continue;a.push(k);const P=i(x,$);for(let N=0;N<P.length;++N){const w=P[N];a.push(C+w)}d=f+(d.length>0?" "+d:d)}return d},M$=(...t)=>{let e=0,n,r,i="";for(;e<t.length;)(n=t[e++])&&(r=Nh(n))&&(i&&(i+=" "),i+=r);return i},Nh=t=>{if(typeof t=="string")return t;let e,n="";for(let r=0;r<t.length;r++)t[r]&&(e=Nh(t[r]))&&(n&&(n+=" "),n+=e);return n},Th=(t,...e)=>{let n,r,i,o;const l=u=>{const d=e.reduce((c,f)=>f(c),t());return n=A$(d),r=n.cache.get,i=n.cache.set,o=a,a(u)},a=u=>{const d=r(u);if(d)return d;const c=F$(u,n);return i(u,c),c};return o=l,(...u)=>o(M$(...u))},K$=[],we=t=>{const e=n=>n[t]||K$;return e.isThemeGetter=!0,e},Ah=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ih=/^\((?:(\w[\w-]*):)?(.+)\)$/i,L$=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,O$=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,z$=/\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$/,_$=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,V$=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,H$=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,It=t=>L$.test(t),ae=t=>!!t&&!Number.isNaN(Number(t)),at=t=>!!t&&Number.isInteger(Number(t)),Dl=t=>t.endsWith("%")&&ae(t.slice(0,-1)),vt=t=>O$.test(t),Bh=()=>!0,j$=t=>z$.test(t)&&!_$.test(t),Nl=()=>!1,R$=t=>V$.test(t),W$=t=>H$.test(t),U$=t=>!Z(t)&&!Q(t),G$=t=>t.startsWith("@container")&&(t[10]==="/"&&t[11]!==void 0||t[11]==="s"&&t[16]!==void 0&&t.startsWith("-size/",10)||t[11]==="n"&&t[18]!==void 0&&t.startsWith("-normal/",10)),Y$=t=>Bt(t,zh,Nl),Z=t=>Ah.test(t),Gt=t=>Bt(t,_h,j$),Fh=t=>Bt(t,nv,ae),X$=t=>Bt(t,Hh,Bh),q$=t=>Bt(t,Vh,Nl),Mh=t=>Bt(t,Lh,Nl),Z$=t=>Bt(t,Oh,W$),yi=t=>Bt(t,jh,R$),Q=t=>Ih.test(t),nr=t=>Yt(t,_h),J$=t=>Yt(t,Vh),Kh=t=>Yt(t,Lh),Q$=t=>Yt(t,zh),ev=t=>Yt(t,Oh),$i=t=>Yt(t,jh,!0),tv=t=>Yt(t,Hh,!0),Bt=(t,e,n)=>{const r=Ah.exec(t);return r?r[1]?e(r[1]):n(r[2]):!1},Yt=(t,e,n=!1)=>{const r=Ih.exec(t);return r?r[1]?e(r[1]):n:!1},Lh=t=>t==="position"||t==="percentage",Oh=t=>t==="image"||t==="url",zh=t=>t==="length"||t==="size"||t==="bg-size",_h=t=>t==="length",nv=t=>t==="number",Vh=t=>t==="family-name",Hh=t=>t==="number"||t==="weight",jh=t=>t==="shadow",Rh=()=>{const t=we("color"),e=we("font"),n=we("text"),r=we("font-weight"),i=we("tracking"),o=we("leading"),l=we("breakpoint"),a=we("container"),u=we("spacing"),d=we("radius"),c=we("shadow"),f=we("inset-shadow"),p=we("text-shadow"),m=we("drop-shadow"),b=we("blur"),g=we("perspective"),y=we("aspect"),$=we("ease"),x=we("animate"),v=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],k=()=>[...C(),Q,Z],P=()=>["auto","hidden","clip","visible","scroll"],N=()=>["auto","contain","none"],w=()=>[Q,Z,u],D=()=>[It,"full","auto",...w()],I=()=>[at,"none","subgrid",Q,Z],L=()=>["auto",{span:["full",at,Q,Z]},at,Q,Z],z=()=>[at,"auto",Q,Z],j=()=>["auto","min","max","fr",Q,Z],E=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],A=()=>["start","end","center","stretch","center-safe","end-safe"],Y=()=>["auto",...w()],M=()=>[It,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...w()],X=()=>[It,"screen","full","dvw","lvw","svw","min","max","fit",...w()],S=()=>[It,"screen","full","lh","dvh","lvh","svh","min","max","fit",...w()],B=()=>[t,Q,Z],U=()=>[...C(),Kh,Mh,{position:[Q,Z]}],oe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],W=()=>["auto","cover","contain",Q$,Y$,{size:[Q,Z]}],ne=()=>[Dl,nr,Gt],T=()=>["","none","full",d,Q,Z],O=()=>["",ae,nr,Gt],J=()=>["solid","dashed","dotted","double"],ce=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],he=()=>[ae,Dl,Kh,Mh],tt=()=>["","none",b,Q,Z],F=()=>["none",ae,Q,Z],K=()=>["none",ae,Q,Z],ue=()=>[ae,Q,Z],fe=()=>[It,"full",...w()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[vt],breakpoint:[vt],color:[Bh],container:[vt],"drop-shadow":[vt],ease:["in","out","in-out"],font:[U$],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[vt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[vt],shadow:[vt],spacing:["px",ae],text:[vt],"text-shadow":[vt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",It,Z,Q,y]}],container:["container"],"container-type":[{"@container":["","normal","size",Q,Z]}],"container-named":[G$],columns:[{columns:[ae,Z,Q,a]}],"break-after":[{"break-after":v()}],"break-before":[{"break-before":v()}],"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:k()}],overflow:[{overflow:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:D()}],"inset-x":[{"inset-x":D()}],"inset-y":[{"inset-y":D()}],start:[{"inset-s":D(),start:D()}],end:[{"inset-e":D(),end:D()}],"inset-bs":[{"inset-bs":D()}],"inset-be":[{"inset-be":D()}],top:[{top:D()}],right:[{right:D()}],bottom:[{bottom:D()}],left:[{left:D()}],visibility:["visible","invisible","collapse"],z:[{z:[at,"auto",Q,Z]}],basis:[{basis:[It,"full","auto",a,...w()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ae,It,"auto","initial","none",Z]}],grow:[{grow:["",ae,Q,Z]}],shrink:[{shrink:["",ae,Q,Z]}],order:[{order:[at,"first","last","none",Q,Z]}],"grid-cols":[{"grid-cols":I()}],"col-start-end":[{col:L()}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":I()}],"row-start-end":[{row:L()}],"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":j()}],"auto-rows":[{"auto-rows":j()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...E(),"normal"]}],"justify-items":[{"justify-items":[...A(),"normal"]}],"justify-self":[{"justify-self":["auto",...A()]}],"align-content":[{content:["normal",...E()]}],"align-items":[{items:[...A(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...A(),{baseline:["","last"]}]}],"place-content":[{"place-content":E()}],"place-items":[{"place-items":[...A(),"baseline"]}],"place-self":[{"place-self":["auto",...A()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:Y()}],mx:[{mx:Y()}],my:[{my:Y()}],ms:[{ms:Y()}],me:[{me:Y()}],mbs:[{mbs:Y()}],mbe:[{mbe:Y()}],mt:[{mt:Y()}],mr:[{mr:Y()}],mb:[{mb:Y()}],ml:[{ml:Y()}],"space-x":[{"space-x":w()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":w()}],"space-y-reverse":["space-y-reverse"],size:[{size:M()}],"inline-size":[{inline:["auto",...X()]}],"min-inline-size":[{"min-inline":["auto",...X()]}],"max-inline-size":[{"max-inline":["none",...X()]}],"block-size":[{block:["auto",...S()]}],"min-block-size":[{"min-block":["auto",...S()]}],"max-block-size":[{"max-block":["none",...S()]}],w:[{w:[a,"screen",...M()]}],"min-w":[{"min-w":[a,"screen","none",...M()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[l]},...M()]}],h:[{h:["screen","lh",...M()]}],"min-h":[{"min-h":["screen","lh","none",...M()]}],"max-h":[{"max-h":["screen","lh",...M()]}],"font-size":[{text:["base",n,nr,Gt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,tv,X$]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Dl,Z]}],"font-family":[{font:[J$,q$,e]}],"font-features":[{"font-features":[Z]}],"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:[i,Q,Z]}],"line-clamp":[{"line-clamp":[ae,"none",Q,Fh]}],leading:[{leading:[o,...w()]}],"list-image":[{"list-image":["none",Q,Z]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Q,Z]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:B()}],"text-color":[{text:B()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...J(),"wavy"]}],"text-decoration-thickness":[{decoration:[ae,"from-font","auto",Q,Gt]}],"text-decoration-color":[{decoration:B()}],"underline-offset":[{"underline-offset":[ae,"auto",Q,Z]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"tab-size":[{tab:[at,Q,Z]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Q,Z]}],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",Q,Z]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:U()}],"bg-repeat":[{bg:oe()}],"bg-size":[{bg:W()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},at,Q,Z],radial:["",Q,Z],conic:[at,Q,Z]},ev,Z$]}],"bg-color":[{bg:B()}],"gradient-from-pos":[{from:ne()}],"gradient-via-pos":[{via:ne()}],"gradient-to-pos":[{to:ne()}],"gradient-from":[{from:B()}],"gradient-via":[{via:B()}],"gradient-to":[{to:B()}],rounded:[{rounded:T()}],"rounded-s":[{"rounded-s":T()}],"rounded-e":[{"rounded-e":T()}],"rounded-t":[{"rounded-t":T()}],"rounded-r":[{"rounded-r":T()}],"rounded-b":[{"rounded-b":T()}],"rounded-l":[{"rounded-l":T()}],"rounded-ss":[{"rounded-ss":T()}],"rounded-se":[{"rounded-se":T()}],"rounded-ee":[{"rounded-ee":T()}],"rounded-es":[{"rounded-es":T()}],"rounded-tl":[{"rounded-tl":T()}],"rounded-tr":[{"rounded-tr":T()}],"rounded-br":[{"rounded-br":T()}],"rounded-bl":[{"rounded-bl":T()}],"border-w":[{border:O()}],"border-w-x":[{"border-x":O()}],"border-w-y":[{"border-y":O()}],"border-w-s":[{"border-s":O()}],"border-w-e":[{"border-e":O()}],"border-w-bs":[{"border-bs":O()}],"border-w-be":[{"border-be":O()}],"border-w-t":[{"border-t":O()}],"border-w-r":[{"border-r":O()}],"border-w-b":[{"border-b":O()}],"border-w-l":[{"border-l":O()}],"divide-x":[{"divide-x":O()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":O()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...J(),"hidden","none"]}],"divide-style":[{divide:[...J(),"hidden","none"]}],"border-color":[{border:B()}],"border-color-x":[{"border-x":B()}],"border-color-y":[{"border-y":B()}],"border-color-s":[{"border-s":B()}],"border-color-e":[{"border-e":B()}],"border-color-bs":[{"border-bs":B()}],"border-color-be":[{"border-be":B()}],"border-color-t":[{"border-t":B()}],"border-color-r":[{"border-r":B()}],"border-color-b":[{"border-b":B()}],"border-color-l":[{"border-l":B()}],"divide-color":[{divide:B()}],"outline-style":[{outline:[...J(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ae,Q,Z]}],"outline-w":[{outline:["",ae,nr,Gt]}],"outline-color":[{outline:B()}],shadow:[{shadow:["","none",c,$i,yi]}],"shadow-color":[{shadow:B()}],"inset-shadow":[{"inset-shadow":["none",f,$i,yi]}],"inset-shadow-color":[{"inset-shadow":B()}],"ring-w":[{ring:O()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:B()}],"ring-offset-w":[{"ring-offset":[ae,Gt]}],"ring-offset-color":[{"ring-offset":B()}],"inset-ring-w":[{"inset-ring":O()}],"inset-ring-color":[{"inset-ring":B()}],"text-shadow":[{"text-shadow":["none",p,$i,yi]}],"text-shadow-color":[{"text-shadow":B()}],opacity:[{opacity:[ae,Q,Z]}],"mix-blend":[{"mix-blend":[...ce(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ce()}],"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":[ae]}],"mask-image-linear-from-pos":[{"mask-linear-from":he()}],"mask-image-linear-to-pos":[{"mask-linear-to":he()}],"mask-image-linear-from-color":[{"mask-linear-from":B()}],"mask-image-linear-to-color":[{"mask-linear-to":B()}],"mask-image-t-from-pos":[{"mask-t-from":he()}],"mask-image-t-to-pos":[{"mask-t-to":he()}],"mask-image-t-from-color":[{"mask-t-from":B()}],"mask-image-t-to-color":[{"mask-t-to":B()}],"mask-image-r-from-pos":[{"mask-r-from":he()}],"mask-image-r-to-pos":[{"mask-r-to":he()}],"mask-image-r-from-color":[{"mask-r-from":B()}],"mask-image-r-to-color":[{"mask-r-to":B()}],"mask-image-b-from-pos":[{"mask-b-from":he()}],"mask-image-b-to-pos":[{"mask-b-to":he()}],"mask-image-b-from-color":[{"mask-b-from":B()}],"mask-image-b-to-color":[{"mask-b-to":B()}],"mask-image-l-from-pos":[{"mask-l-from":he()}],"mask-image-l-to-pos":[{"mask-l-to":he()}],"mask-image-l-from-color":[{"mask-l-from":B()}],"mask-image-l-to-color":[{"mask-l-to":B()}],"mask-image-x-from-pos":[{"mask-x-from":he()}],"mask-image-x-to-pos":[{"mask-x-to":he()}],"mask-image-x-from-color":[{"mask-x-from":B()}],"mask-image-x-to-color":[{"mask-x-to":B()}],"mask-image-y-from-pos":[{"mask-y-from":he()}],"mask-image-y-to-pos":[{"mask-y-to":he()}],"mask-image-y-from-color":[{"mask-y-from":B()}],"mask-image-y-to-color":[{"mask-y-to":B()}],"mask-image-radial":[{"mask-radial":[Q,Z]}],"mask-image-radial-from-pos":[{"mask-radial-from":he()}],"mask-image-radial-to-pos":[{"mask-radial-to":he()}],"mask-image-radial-from-color":[{"mask-radial-from":B()}],"mask-image-radial-to-color":[{"mask-radial-to":B()}],"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":C()}],"mask-image-conic-pos":[{"mask-conic":[ae]}],"mask-image-conic-from-pos":[{"mask-conic-from":he()}],"mask-image-conic-to-pos":[{"mask-conic-to":he()}],"mask-image-conic-from-color":[{"mask-conic-from":B()}],"mask-image-conic-to-color":[{"mask-conic-to":B()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:U()}],"mask-repeat":[{mask:oe()}],"mask-size":[{mask:W()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Q,Z]}],filter:[{filter:["","none",Q,Z]}],blur:[{blur:tt()}],brightness:[{brightness:[ae,Q,Z]}],contrast:[{contrast:[ae,Q,Z]}],"drop-shadow":[{"drop-shadow":["","none",m,$i,yi]}],"drop-shadow-color":[{"drop-shadow":B()}],grayscale:[{grayscale:["",ae,Q,Z]}],"hue-rotate":[{"hue-rotate":[ae,Q,Z]}],invert:[{invert:["",ae,Q,Z]}],saturate:[{saturate:[ae,Q,Z]}],sepia:[{sepia:["",ae,Q,Z]}],"backdrop-filter":[{"backdrop-filter":["","none",Q,Z]}],"backdrop-blur":[{"backdrop-blur":tt()}],"backdrop-brightness":[{"backdrop-brightness":[ae,Q,Z]}],"backdrop-contrast":[{"backdrop-contrast":[ae,Q,Z]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ae,Q,Z]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ae,Q,Z]}],"backdrop-invert":[{"backdrop-invert":["",ae,Q,Z]}],"backdrop-opacity":[{"backdrop-opacity":[ae,Q,Z]}],"backdrop-saturate":[{"backdrop-saturate":[ae,Q,Z]}],"backdrop-sepia":[{"backdrop-sepia":["",ae,Q,Z]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Q,Z]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ae,"initial",Q,Z]}],ease:[{ease:["linear","initial",$,Q,Z]}],delay:[{delay:[ae,Q,Z]}],animate:[{animate:["none",x,Q,Z]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,Q,Z]}],"perspective-origin":[{"perspective-origin":k()}],rotate:[{rotate:F()}],"rotate-x":[{"rotate-x":F()}],"rotate-y":[{"rotate-y":F()}],"rotate-z":[{"rotate-z":F()}],scale:[{scale:K()}],"scale-x":[{"scale-x":K()}],"scale-y":[{"scale-y":K()}],"scale-z":[{"scale-z":K()}],"scale-3d":["scale-3d"],skew:[{skew:ue()}],"skew-x":[{"skew-x":ue()}],"skew-y":[{"skew-y":ue()}],transform:[{transform:[Q,Z,"","none","gpu","cpu"]}],"transform-origin":[{origin:k()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:fe()}],"translate-x":[{"translate-x":fe()}],"translate-y":[{"translate-y":fe()}],"translate-z":[{"translate-z":fe()}],"translate-none":["translate-none"],zoom:[{zoom:[at,Q,Z]}],accent:[{accent:B()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:B()}],"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",Q,Z]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":B()}],"scrollbar-track-color":[{"scrollbar-track":B()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"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",Q,Z]}],fill:[{fill:["none",...B()]}],"stroke-w":[{stroke:[ae,nr,Gt,Fh]}],stroke:[{stroke:["none",...B()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","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-bs","border-w-be","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-bs","border-color-be","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-mbs","scroll-mbe","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-pbs","scroll-pbe","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"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},rv=(t,{cacheSize:e,prefix:n,experimentalParseClassName:r,extend:i={},override:o={}})=>(yn(t,"cacheSize",e),yn(t,"prefix",n),yn(t,"experimentalParseClassName",r),vi(t.theme,o.theme),vi(t.classGroups,o.classGroups),vi(t.conflictingClassGroups,o.conflictingClassGroups),vi(t.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),yn(t,"postfixLookupClassGroups",o.postfixLookupClassGroups),yn(t,"orderSensitiveModifiers",o.orderSensitiveModifiers),xi(t.theme,i.theme),xi(t.classGroups,i.classGroups),xi(t.conflictingClassGroups,i.conflictingClassGroups),xi(t.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),Tl(t,i,"postfixLookupClassGroups"),Tl(t,i,"orderSensitiveModifiers"),t),yn=(t,e,n)=>{n!==void 0&&(t[e]=n)},vi=(t,e)=>{if(e)for(const n in e)yn(t,n,e[n])},xi=(t,e)=>{if(e)for(const n in e)Tl(t,e,n)},Tl=(t,e,n)=>{const r=e[n];r!==void 0&&(t[n]=t[n]?t[n].concat(r):r)},iv=((t,...e)=>typeof t=="function"?Th(Rh,t,...e):Th(()=>rv(Rh(),t),...e))({extend:{theme:{text:["h1","h2","h3","h4","h5","h6","body-lg","body-sm","caption-lg","caption-sm"]}}});function V(...t){return iv(q(t))}const Wh=s.createContext({size:"md"}),ov=()=>s.useContext(Wh),Uh=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,Gh=q,H=(t,e)=>n=>{var r;if(e?.variants==null)return Gh(t,n?.class,n?.className);const{variants:i,defaultVariants:o}=e,l=Object.keys(i).map(d=>{const c=n?.[d],f=o?.[d];if(c===null)return null;const p=Uh(c)||Uh(f);return i[d][p]}),a=n&&Object.entries(n).reduce((d,c)=>{let[f,p]=c;return p===void 0||(d[f]=p),d},{}),u=e==null||(r=e.compoundVariants)===null||r===void 0?void 0:r.reduce((d,c)=>{let{class:f,className:p,...m}=c;return Object.entries(m).every(b=>{let[g,y]=b;return Array.isArray(y)?y.includes({...o,...a}[g]):{...o,...a}[g]===y})?[...d,f,p]:d},[]);return Gh(t,l,u,n?.class,n?.className)},lv={xs:18,sm:20,md:20,lg:24,xl:28,"2xl":28},av=H("inline-flex shrink-0 items-center justify-center [&_svg]:size-full",{variants:{size:{xs:"size-[18px]",sm:"size-[20px]",md:"size-[20px]",lg:"size-[24px]",xl:"size-[28px]","2xl":"size-[28px]"}},defaultVariants:{size:"md"}}),sv=H(["relative inline-flex items-center justify-center font-bold","transition-[color,background-color,border-color,box-shadow,filter,transform] duration-150","focus-visible:outline-none","[-webkit-tap-highlight-color:transparent]","disabled:cursor-not-allowed data-[disabled]:cursor-not-allowed data-[pending]:cursor-wait","data-[pressed]:brightness-[0.96]"],{variants:{size:{xs:"py-1 px-2 gap-1 rounded-md text-caption-sm",sm:"h-[36px] px-4 gap-1 rounded-lg text-caption-sm",md:"h-[44px] px-4 gap-2 rounded-lg text-sm",lg:"h-[52px] px-5 gap-2 rounded-[10px] text-body-sm",xl:"h-[60px] px-6 gap-2 rounded-[10px] text-body-lg","2xl":"h-[68px] px-6 gap-2 rounded-[10px] text-body-lg"},tone:{primary:"",destructive:""},iconOnly:{true:"!p-0",false:""},variant:{solid:["text-white","disabled:bg-light-100 disabled:text-light-400","data-[pending]:!bg-light-100 data-[pending]:!text-light-400"],outline:["bg-white border","disabled:bg-white disabled:text-light-400 disabled:border-light-200","data-[pending]:!bg-white data-[pending]:!text-light-400 data-[pending]:!border-light-200"],ghost:["bg-transparent","disabled:text-light-400","data-[pending]:!bg-transparent data-[pending]:!text-light-400"],"outline-primary":["bg-white border border-primary-500 text-primary-500","hover:bg-primary-100 hover:border-primary-300 hover:text-primary-800","focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white","disabled:bg-white disabled:text-light-400 disabled:border-light-200","data-[pending]:!bg-white data-[pending]:!text-light-400 data-[pending]:!border-light-200"],"ghost-primary":["bg-transparent text-primary-500","hover:bg-primary-50 hover:text-primary-800","focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white","disabled:text-light-400","data-[pending]:!bg-transparent data-[pending]:!text-light-400"],plain:["bg-transparent h-auto rounded-none p-0 gap-1","disabled:text-light-400 data-[pending]:!text-light-400"],"plain-black":["bg-transparent h-auto rounded-none p-0 gap-1","disabled:text-light-400 data-[pending]:!text-light-400"]}},compoundVariants:[{tone:"primary",variant:"solid",class:["bg-primary-500","hover:bg-primary-800","focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"].join(" ")},{tone:"primary",variant:"outline",class:["border-light-200 text-light-900","hover:bg-light-50","focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"].join(" ")},{tone:"primary",variant:"ghost",class:["text-light-800","hover:bg-light-50 hover:text-light-900","focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"].join(" ")},{tone:"primary",variant:"plain",class:["text-primary-500","hover:text-primary-800 hover:bg-transparent","focus-visible:rounded focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"].join(" ")},{tone:"primary",variant:"plain-black",class:["text-light-800","hover:text-light-900 hover:bg-transparent","focus-visible:rounded focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"].join(" ")},{tone:"destructive",variant:"solid",class:["bg-error-500 text-white","hover:bg-error-800","focus-visible:ring-2 focus-visible:ring-error-300 focus-visible:ring-offset-2 focus-visible:ring-offset-white","disabled:bg-light-100 data-[pending]:!bg-light-100"].join(" ")},{tone:"destructive",variant:"outline",class:["border-error-500 text-error-500","hover:border-error-300 hover:bg-error-100 hover:text-error-800","focus-visible:ring-2 focus-visible:ring-error-300 focus-visible:ring-offset-2 focus-visible:ring-offset-white"].join(" ")},{tone:"destructive",variant:"ghost",class:["text-error-500","hover:bg-error-50 hover:text-error-800","focus-visible:ring-2 focus-visible:ring-error-300 focus-visible:ring-offset-2 focus-visible:ring-offset-white","disabled:bg-white disabled:text-light-400","data-[pending]:!bg-white data-[pending]:!text-light-400"].join(" ")},{tone:"destructive",variant:"plain",class:["text-error-500","hover:text-error-800 hover:bg-transparent","focus-visible:rounded focus-visible:ring-2 focus-visible:ring-error-300 focus-visible:ring-offset-2 focus-visible:ring-offset-white"].join(" ")},{size:"xs",iconOnly:!0,class:"!w-[26px] !h-[26px]"},{size:"sm",iconOnly:!0,class:"!w-[36px] !h-[36px]"},{size:"md",iconOnly:!0,class:"!w-[44px] !h-[44px]"},{size:"lg",iconOnly:!0,class:"!w-[52px] !h-[52px]"},{size:"xl",iconOnly:!0,class:"!w-[60px] !h-[60px]"},{size:"2xl",iconOnly:!0,class:"!w-[68px] !h-[68px]"}],defaultVariants:{size:"md",tone:"primary",variant:"solid",iconOnly:!1}}),uv={xs:12,sm:14,md:16,lg:18,xl:20,"2xl":22},Yh=s.forwardRef(({children:t,className:e,tone:n,variant:r,size:i="md",iconOnly:o,isDisabled:l,disabled:a,isPending:u,title:d,value:c,...f},p)=>{const m=s.useCallback(g=>{g&&(d===void 0?g.removeAttribute("title"):g.title=d,c===void 0?g.removeAttribute("value"):g.value=String(c)),typeof p=="function"?p(g):p&&(p.current=g)},[p,d,c]),b=f;return s.createElement(Wh.Provider,{value:{size:i}},s.createElement(dn,{...b,ref:m,isDisabled:l||a,isPending:u,className:Li(e,g=>V(sv({tone:n,variant:r,size:i,iconOnly:o}),g))},Li(t,(g,{isPending:y})=>s.createElement(s.Fragment,null,y?s.createElement("span",{className:"flex shrink-0 items-center","aria-hidden":!0},s.createElement(Sa,{size:uv[i],className:"animate-spin"})):null,y&&o?null:g))))});Yh.displayName="Button";const dv=({children:t})=>{const{size:e}=ov();return s.createElement("span",{className:av({size:e})},t)},cv=({children:t})=>s.createElement("span",{className:"whitespace-nowrap"},t),Oe=Yh;Oe.Icon=dv,Oe.Text=cv;const Xh=H(["inline-flex items-center justify-center","border transition-colors duration-150","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"],{variants:{size:{sm:"h-4 w-4 rounded-[4px]",md:"h-5 w-5 rounded-[6px]",lg:"h-5 w-5 rounded-[6px]"},checked:{true:"",false:""},disabled:{true:"cursor-not-allowed",false:"cursor-pointer"}},compoundVariants:[{checked:!1,disabled:!1,className:"bg-white border-light-200 hover:border-light-400"},{checked:!0,disabled:!1,className:"bg-primary-500 border-primary-500 text-white hover:bg-primary-800 hover:border-primary-800"},{disabled:!0,className:"bg-light-100 border-light-200 text-white"}],defaultVariants:{size:"md",checked:!1,disabled:!1}}),fv={sm:{width:12,height:9},md:{width:14,height:10},lg:{width:14,height:10}},qh=h.forwardRef(({id:t,checked:e,indeterminate:n=!1,disabled:r,size:i="md",onCheckedChange:o,className:l},a)=>{const u=()=>{r||o?.(!e)},d=fv[i],c=r?"text-white/80":"text-current";return h.createElement("button",{id:t,ref:a,type:"button",role:"checkbox","aria-checked":n?"mixed":e,disabled:r,onClick:u,className:q(Xh({size:i,checked:e,disabled:r}),l)},e&&!n&&h.createElement("svg",{width:d.width,height:d.height,viewBox:"0 0 14 10",fill:"none",className:c},h.createElement("path",{d:"M1 5L5 9L13 1",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),n&&h.createElement("span",{className:q(c,"bg-current rounded-sm",i==="sm"&&"h-0.5 w-3",(i==="md"||i==="lg")&&"h-0.5 w-4")}))});qh.displayName="Checkbox";const Zh=h.createContext(null),pv=({value:t,defaultValue:e,onValueChange:n,children:r,className:i})=>{const[o,l]=h.useState(e),a=t??o,u=d=>{l(d),n?.(d)};return h.createElement(Zh.Provider,{value:{value:a,onValueChange:u}},h.createElement("div",{role:"radiogroup",className:i},r))},hv=()=>{const t=h.useContext(Zh);if(!t)throw new Error("RadioGroupItem must be used within RadioGroup");return t},mv=H(["relative inline-flex items-center justify-center","border rounded-full transition-colors duration-150","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"],{variants:{size:{sm:"h-4 w-4",md:"h-5 w-5",lg:"h-5 w-5"},checked:{true:"",false:""},disabled:{true:"cursor-not-allowed",false:"cursor-pointer"}},compoundVariants:[{checked:!1,disabled:!1,className:"border-light-200 bg-white hover:border-light-400"},{checked:!0,disabled:!1,className:"border-primary-500 bg-primary-500 hover:bg-primary-800 hover:border-primary-800"},{disabled:!0,className:"border-light-200 bg-light-100"}],defaultVariants:{size:"md",checked:!1,disabled:!1}}),bv=H(["rounded-full bg-white transition-all"],{variants:{size:{sm:"h-1.5 w-1.5",md:"h-2 w-2",lg:"h-2 w-2"},checked:{true:"scale-100",false:"scale-0"}},defaultVariants:{size:"md",checked:!1}}),Jh=h.forwardRef(({id:t,value:e,disabled:n,size:r="md",className:i},o)=>{const{value:l,onValueChange:a}=hv(),u=l===e;return h.createElement("button",{ref:o,id:t,type:"button",role:"radio","aria-checked":u,disabled:n,onClick:()=>{n||a?.(e)},className:q(mv({size:r,checked:u,disabled:n}),i)},h.createElement("span",{className:bv({size:r,checked:u})}))});Jh.displayName="RadioGroupItem";const gv=H(["inline-flex items-center shrink-0 rounded-full p-[2px]","transition-colors duration-200","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-offset-white"],{variants:{size:{sm:"h-5 w-9",md:"h-6 w-11",lg:"h-6 w-11"},checked:{true:"justify-end",false:"justify-start"},disabled:{true:"cursor-not-allowed",false:"cursor-pointer"},variant:{default:"",success:""}},compoundVariants:[{checked:!1,disabled:!1,className:"bg-light-200"},{checked:!0,disabled:!1,variant:"default",className:"bg-primary-500 hover:bg-primary-800"},{checked:!0,disabled:!1,variant:"success",className:"bg-success-500 hover:bg-success-800"},{disabled:!0,className:"bg-light-100"},{variant:"default",className:"focus-visible:ring-primary-400"},{variant:"success",className:"focus-visible:ring-success-500"}],defaultVariants:{size:"md",checked:!1,disabled:!1,variant:"default"}}),yv=H("rounded-full shrink-0 shadow-[0_1px_3px_0_rgba(16,24,40,0.10),0_1px_2px_0_rgba(16,24,40,0.06)]",{variants:{size:{sm:"h-4 w-4",md:"h-5 w-5",lg:"h-5 w-5"},disabled:{true:"bg-light-50",false:"bg-white"}},defaultVariants:{size:"md",disabled:!1}}),Qh=h.forwardRef(({checked:t=!1,size:e="md",variant:n="default",disabled:r,onCheckedChange:i,className:o},l)=>h.createElement("button",{ref:l,type:"button",role:"switch","aria-checked":t,disabled:r,onClick:()=>{r||i?.(!t)},className:q(gv({size:e,checked:t,disabled:r,variant:n}),o)},h.createElement("span",{className:yv({size:e,disabled:r})})));Qh.displayName="Toggle";const $v=1e3,vv=900,xv=H(["flex flex-col overflow-hidden","rounded-lg border border-light-200 bg-white shadow-lg","outline-none"]);function Cv(t){h.useEffect(()=>{let e=0;const n=r=>{!t.current||e||r.target instanceof Node&&t.current.contains(r.target)||(e=requestAnimationFrame(()=>{e=0,window.dispatchEvent(new Event("resize"))}))};return document.addEventListener("scroll",n,!0),()=>{document.removeEventListener("scroll",n,!0),e&&cancelAnimationFrame(e)}},[t])}function Ev(t){const e=()=>{t.hasAttribute("role")&&t.removeAttribute("role")};e();const n=new MutationObserver(e);return n.observe(t,{attributes:!0,attributeFilter:["role"]}),()=>n.disconnect()}const $n=h.forwardRef(({className:t,style:e,matchTriggerWidth:n=!1,children:r,...i},o)=>{const l=h.useRef(null),a=h.useRef(null),u=h.useCallback(d=>{l.current=d,typeof o=="function"?o(d):o&&(o.current=d),a.current?.(),a.current=d?Ev(d):null},[o]);return Cv(l),h.createElement(kc,{ref:u,...i,style:{zIndex:$v,...n?{width:"var(--trigger-width)"}:void 0,...e},className:V(xv(),t)},r)});$n.displayName="Popover";const wv=H(["relative rounded-lg text-caption-sm font-semibold text-white","bg-primary-900","shadow-lg","pointer-events-none","select-none"],{variants:{side:{top:"",bottom:"",left:"",right:""},hasSupportingText:{true:"p-3",false:"px-3 py-2"}},defaultVariants:{side:"top",hasSupportingText:!1}}),Sv="mt-1 font-medium text-light-100",Pv="overflow-visible border-0 bg-transparent shadow-none pointer-events-none",kv="block text-primary-900",Dv=12,Nv={top:"M0 0H16L8 6Z",bottom:"M0 6H16L8 0Z",left:"M0 0V16L6 8Z",right:"M6 0V16L0 8Z"};function Tv({placement:t}){const e=t==="left"||t==="right";return h.createElement("svg",{"aria-hidden":"true",width:e?6:16,height:e?16:6,viewBox:e?"0 0 6 16":"0 0 16 6",className:kv,shapeRendering:"geometricPrecision"},h.createElement("path",{d:Nv[t],fill:"currentColor"}))}const Ci=({content:t,supportingText:e,side:n="top",open:r,defaultOpen:i=!1,disabled:o=!1,delay:l=100,className:a,children:u})=>{const[d,c]=h.useState(i),f=r??d,p=h.useRef(null),m=h.useRef(null),b=()=>{o||(m.current&&clearTimeout(m.current),l>0?m.current=window.setTimeout(()=>c(!0),l):c(!0))},g=()=>{o||(m.current&&(clearTimeout(m.current),m.current=null),c(!0))},y=()=>{m.current&&clearTimeout(m.current),l>0?m.current=window.setTimeout(()=>c(!1),l):c(!1)},$=()=>{m.current&&(clearTimeout(m.current),m.current=null),c(!1)};return h.createElement(h.Fragment,null,h.createElement("span",{ref:p,className:"inline-flex",onMouseEnter:b,onMouseLeave:y,onFocus:g,onBlur:$,tabIndex:0},u),h.createElement($n,{isNonModal:!0,triggerRef:p,isOpen:f,onOpenChange:c,placement:n,offset:Dv,className:Pv},({placement:x})=>h.createElement(h.Fragment,null,h.createElement("div",{role:"tooltip",className:q(wv({side:n,hasSupportingText:!!e}),a)},t,e&&h.createElement("p",{className:Sv},e)),h.createElement(k2,{className:"react-aria-OverlayArrow data-[placement=bottom]:!bottom-[calc(100%-1px)]"},h.createElement(Tv,{placement:x==null||x==="center"?n:x})))))};Ci.displayName="Tooltip";const Av="text-light-800",Iv="hover:text-light-900",Bv="border-light-200",Fv="group-hover:border-light-500",Mv={brand:{bg:"bg-primary-50",border:"border-primary-300",hoverBg:"hover:bg-primary-100",hoverBorder:"hover:border-primary-500"},gray:{bg:"bg-white",border:"border-light-200",hoverBg:"hover:bg-light-100",hoverBorder:"hover:border-light-500"},error:{bg:"bg-error-50",border:"border-error-200",hoverBg:"hover:bg-error-100",hoverBorder:"hover:border-error-500"},warning:{bg:"bg-warning-50",border:"border-warning-200",hoverBg:"hover:bg-warning-100",hoverBorder:"hover:border-warning-500"},success:{bg:"bg-success-50",border:"border-success-200",hoverBg:"hover:bg-success-100",hoverBorder:"hover:border-success-500"},"blue-gray":{bg:"bg-blue-gray-50",border:"border-blue-gray-200",hoverBg:"hover:bg-blue-gray-100",hoverBorder:"hover:border-blue-gray-500"},"blue-light":{bg:"bg-blue-light-50",border:"border-blue-light-200",hoverBg:"hover:bg-blue-light-100",hoverBorder:"hover:border-blue-light-500"},indigo:{bg:"bg-indigo-50",border:"border-indigo-200",hoverBg:"hover:bg-indigo-100",hoverBorder:"hover:border-indigo-500"},purple:{bg:"bg-purple-50",border:"border-purple-200",hoverBg:"hover:bg-purple-100",hoverBorder:"hover:border-purple-500"},blue:{bg:"bg-blue-50",border:"border-blue-200",hoverBg:"hover:bg-blue-100",hoverBorder:"hover:border-blue-500"},pink:{bg:"bg-pink-50",border:"border-pink-200",hoverBg:"hover:bg-pink-100",hoverBorder:"hover:border-pink-500"},orange:{bg:"bg-orange-50",border:"border-orange-200",hoverBg:"hover:bg-orange-100",hoverBorder:"hover:border-orange-500"}},Kv=H(["inline-flex items-center gap-1 border","font-medium transition-colors duration-150","select-none"],{variants:{size:{sm:"text-caption-sm py-[3px]",md:"text-caption-lg py-[2px]",lg:"text-caption-lg py-1"},shape:{rounded:"rounded-md",pill:"rounded-full"},hasLeading:{true:"",false:""},hasTrailing:{true:"",false:""},interactive:{true:"group cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white",false:""},disabled:{true:"cursor-not-allowed opacity-60",false:""}},compoundVariants:[{size:"sm",hasLeading:!1,className:"pl-2"},{size:"sm",hasLeading:!0,className:"pl-1"},{size:"sm",hasTrailing:!1,className:"pr-2"},{size:"sm",hasTrailing:!0,className:"pr-1"},{size:"md",hasLeading:!1,className:"pl-[9px]"},{size:"md",hasLeading:!0,className:"pl-1"},{size:"md",hasTrailing:!1,className:"pr-[9px]"},{size:"md",hasTrailing:!0,className:"pr-1"},{size:"lg",hasLeading:!1,className:"pl-2.5"},{size:"lg",hasLeading:!0,className:"pl-1.5"},{size:"lg",hasTrailing:!1,className:"pr-2.5"},{size:"lg",hasTrailing:!0,className:"pr-1.5"}],defaultVariants:{size:"sm",shape:"rounded",hasLeading:!1,hasTrailing:!1,interactive:!1,disabled:!1}}),Lv=H(["shrink-0 rounded border bg-white transition-colors duration-150"],{variants:{size:{sm:"size-[14px]",md:"size-[16px]",lg:"size-[18px]"},checked:{true:"bg-primary-500 border-primary-500",false:""}},defaultVariants:{size:"sm",checked:!1}}),Ov="shrink-0 rounded-[3px] bg-light-100 px-1 text-light-800",zv=H(["shrink-0 inline-flex items-center justify-center rounded-[3px]","hover:bg-black/5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400"],{variants:{size:{sm:"size-[14px]",md:"size-[16px]",lg:"size-[20px]"}},defaultVariants:{size:"sm"}}),em=/^#([0-9a-f]{6})$/i,tm=t=>em.test(t.trim()),nm=(t,e)=>{const n=em.exec(t.trim());if(!n)return;const r=parseInt(n[1],16),i=r>>16&255,o=r>>8&255,l=r&255;return`rgba(${i}, ${o}, ${l}, ${e})`},Al=({children:t,size:e="sm",shape:n="rounded",icon:r,checked:i,onCheckedChange:o,onClose:l,count:a,disabled:u=!1,className:d,color:c="gray",customColor:f})=>{const p=o!==void 0,m=i!==void 0||!!r,b=!!l||a!==void 0,g=p&&!u,y=Mv[c],$=!!(f&&tm(f)),x=$?{borderColor:f,backgroundColor:nm(f,.12)}:void 0,v=()=>{u||o?.(!i)},C=k=>{!p||u||(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),v())};return h.createElement("div",{role:p?"checkbox":void 0,"aria-checked":p?!!i:void 0,"aria-disabled":u||void 0,tabIndex:p&&!u?0:void 0,onClick:p?v:void 0,onKeyDown:C,style:x,className:q(Kv({size:e,shape:n,hasLeading:m,hasTrailing:b,interactive:g,disabled:u}),!$&&y.bg,!$&&y.border,Av,g&&!$&&y.hoverBg,g&&!$&&y.hoverBorder,g&&Iv,d)},i!==void 0&&h.createElement("span",{className:q(Lv({checked:i,size:e}),!i&&Bv,g&&!i&&Fv)},i&&h.createElement("svg",{viewBox:"0 0 14 10",fill:"none",className:"size-full text-white"},h.createElement("path",{d:"M1 5L5 9L13 1",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),r,h.createElement("span",{className:"whitespace-nowrap"},t),a!==void 0&&h.createElement("span",{className:Ov},a),l&&h.createElement("button",{type:"button","aria-label":"Remove",disabled:u,onClick:k=>{k.stopPropagation(),l()},className:zv({size:e})},h.createElement("svg",{viewBox:"0 0 10 10",fill:"none",className:e==="sm"?"size-2":e==="md"?"size-2.5":"size-3"},h.createElement("path",{d:"M1 1L9 9M9 1L1 9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}))))};Al.displayName="Tag";const _v={brand:{solidBg:"bg-primary-50",solidBorder:"border-primary-300",solidText:"text-primary-500",outlineBorder:"border-primary-500",outlineText:"text-primary-700",hoverSolidBg:"hover:bg-primary-100",hoverSolidBorder:"hover:border-primary-500",hoverSolidText:"hover:text-primary-800",hoverOutlineBg:"hover:bg-primary-50",hoverOutlineBorder:"hover:border-primary-300",hoverOutlineText:"hover:text-primary-800",checkboxHoverBorder:"group-hover:border-primary-500"},gray:{solidBg:"bg-light-50",solidBorder:"border-light-200",solidText:"text-light-700",outlineBorder:"border-light-600",outlineText:"text-light-700",hoverSolidBg:"hover:bg-light-100",hoverSolidBorder:"hover:border-light-500",hoverSolidText:"hover:text-light-900",hoverOutlineBg:"hover:bg-light-50",hoverOutlineBorder:"hover:border-light-300",hoverOutlineText:"hover:text-light-900",checkboxHoverBorder:"group-hover:border-light-500"},error:{solidBg:"bg-error-50",solidBorder:"border-error-200",solidText:"text-error-700",outlineBorder:"border-error-600",outlineText:"text-error-700",hoverSolidBg:"hover:bg-error-100",hoverSolidBorder:"hover:border-error-500",hoverSolidText:"hover:text-error-800",hoverOutlineBg:"hover:bg-error-50",hoverOutlineBorder:"hover:border-error-300",hoverOutlineText:"hover:text-error-800",checkboxHoverBorder:"group-hover:border-error-500"},warning:{solidBg:"bg-warning-50",solidBorder:"border-warning-200",solidText:"text-warning-700",outlineBorder:"border-warning-600",outlineText:"text-warning-700",hoverSolidBg:"hover:bg-warning-100",hoverSolidBorder:"hover:border-warning-500",hoverSolidText:"hover:text-warning-800",hoverOutlineBg:"hover:bg-warning-50",hoverOutlineBorder:"hover:border-warning-300",hoverOutlineText:"hover:text-warning-800",checkboxHoverBorder:"group-hover:border-warning-500"},success:{solidBg:"bg-success-50",solidBorder:"border-success-200",solidText:"text-success-700",outlineBorder:"border-success-600",outlineText:"text-success-700",hoverSolidBg:"hover:bg-success-100",hoverSolidBorder:"hover:border-success-500",hoverSolidText:"hover:text-success-800",hoverOutlineBg:"hover:bg-success-50",hoverOutlineBorder:"hover:border-success-300",hoverOutlineText:"hover:text-success-800",checkboxHoverBorder:"group-hover:border-success-500"},"blue-gray":{solidBg:"bg-blue-gray-50",solidBorder:"border-blue-gray-200",solidText:"text-blue-gray-700",outlineBorder:"border-blue-gray-600",outlineText:"text-blue-gray-700",hoverSolidBg:"hover:bg-blue-gray-100",hoverSolidBorder:"hover:border-blue-gray-500",hoverSolidText:"hover:text-blue-gray-800",hoverOutlineBg:"hover:bg-blue-gray-50",hoverOutlineBorder:"hover:border-blue-gray-300",hoverOutlineText:"hover:text-blue-gray-800",checkboxHoverBorder:"group-hover:border-blue-gray-500"},"blue-light":{solidBg:"bg-blue-light-50",solidBorder:"border-blue-light-200",solidText:"text-blue-light-700",outlineBorder:"border-blue-light-600",outlineText:"text-blue-light-700",hoverSolidBg:"hover:bg-blue-light-100",hoverSolidBorder:"hover:border-blue-light-500",hoverSolidText:"hover:text-blue-light-800",hoverOutlineBg:"hover:bg-blue-light-50",hoverOutlineBorder:"hover:border-blue-light-300",hoverOutlineText:"hover:text-blue-light-800",checkboxHoverBorder:"group-hover:border-blue-light-500"},indigo:{solidBg:"bg-indigo-50",solidBorder:"border-indigo-200",solidText:"text-indigo-700",outlineBorder:"border-indigo-600",outlineText:"text-indigo-700",hoverSolidBg:"hover:bg-indigo-100",hoverSolidBorder:"hover:border-indigo-500",hoverSolidText:"hover:text-indigo-800",hoverOutlineBg:"hover:bg-indigo-50",hoverOutlineBorder:"hover:border-indigo-300",hoverOutlineText:"hover:text-indigo-800",checkboxHoverBorder:"group-hover:border-indigo-500"},purple:{solidBg:"bg-purple-50",solidBorder:"border-purple-200",solidText:"text-purple-700",outlineBorder:"border-purple-600",outlineText:"text-purple-700",hoverSolidBg:"hover:bg-purple-100",hoverSolidBorder:"hover:border-purple-500",hoverSolidText:"hover:text-purple-800",hoverOutlineBg:"hover:bg-purple-50",hoverOutlineBorder:"hover:border-purple-300",hoverOutlineText:"hover:text-purple-800",checkboxHoverBorder:"group-hover:border-purple-500"},blue:{solidBg:"bg-blue-50",solidBorder:"border-blue-200",solidText:"text-blue-700",outlineBorder:"border-blue-600",outlineText:"text-blue-700",hoverSolidBg:"hover:bg-blue-100",hoverSolidBorder:"hover:border-blue-500",hoverSolidText:"hover:text-blue-800",hoverOutlineBg:"hover:bg-blue-50",hoverOutlineBorder:"hover:border-blue-300",hoverOutlineText:"hover:text-blue-800",checkboxHoverBorder:"group-hover:border-blue-500"},pink:{solidBg:"bg-pink-50",solidBorder:"border-pink-200",solidText:"text-pink-700",outlineBorder:"border-pink-600",outlineText:"text-pink-700",hoverSolidBg:"hover:bg-pink-100",hoverSolidBorder:"hover:border-pink-500",hoverSolidText:"hover:text-pink-800",hoverOutlineBg:"hover:bg-pink-50",hoverOutlineBorder:"hover:border-pink-300",hoverOutlineText:"hover:text-pink-800",checkboxHoverBorder:"group-hover:border-pink-500"},orange:{solidBg:"bg-orange-50",solidBorder:"border-orange-200",solidText:"text-orange-700",outlineBorder:"border-orange-600",outlineText:"text-orange-700",hoverSolidBg:"hover:bg-orange-100",hoverSolidBorder:"hover:border-orange-500",hoverSolidText:"hover:text-orange-800",hoverOutlineBg:"hover:bg-orange-50",hoverOutlineBorder:"hover:border-orange-300",hoverOutlineText:"hover:text-orange-800",checkboxHoverBorder:"group-hover:border-orange-500"}},Vv=H(["inline-flex items-center gap-1 border font-medium","transition-colors duration-150"],{variants:{size:{sm:"text-caption-sm py-0.5",md:"text-caption-lg py-0.5",lg:"text-caption-lg py-1"},shape:{pill:"rounded-full",badge:""},modern:{true:"rounded-md shadow-xs",false:""},hasLeading:{true:"",false:""},hasTrailing:{true:"",false:""},iconOnly:{true:"p-[5px]",false:""},interactive:{true:"group cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white",false:""},disabled:{true:"cursor-not-allowed opacity-60",false:""}},compoundVariants:[{shape:"badge",size:"sm",modern:!1,className:"rounded-md"},{shape:"badge",size:"md",modern:!1,className:"rounded-md"},{shape:"badge",size:"lg",modern:!1,className:"rounded-lg"},{size:"sm",shape:"pill",iconOnly:!1,hasLeading:!1,className:"pl-2"},{size:"sm",shape:"badge",iconOnly:!1,hasLeading:!1,className:"pl-1.5"},{size:"sm",iconOnly:!1,hasLeading:!0,className:"pl-1"},{size:"sm",iconOnly:!1,hasTrailing:!1,className:"pr-2"},{size:"sm",iconOnly:!1,hasTrailing:!0,className:"pr-1"},{size:"md",iconOnly:!1,hasLeading:!1,className:"pl-2.5"},{size:"md",iconOnly:!1,hasLeading:!0,className:"pl-1"},{size:"md",iconOnly:!1,hasTrailing:!1,className:"pr-2.5"},{size:"md",iconOnly:!1,hasTrailing:!0,className:"pr-1"},{size:"lg",shape:"pill",iconOnly:!1,hasLeading:!1,className:"pl-3"},{size:"lg",shape:"badge",iconOnly:!1,hasLeading:!1,className:"pl-2.5"},{size:"lg",iconOnly:!1,hasLeading:!0,className:"pl-1.5"},{size:"lg",shape:"pill",iconOnly:!1,hasTrailing:!1,className:"pr-3"},{size:"lg",shape:"badge",iconOnly:!1,hasTrailing:!1,className:"pr-2.5"},{size:"lg",iconOnly:!1,hasTrailing:!0,className:"pr-1.5"}],defaultVariants:{size:"sm",shape:"pill",modern:!1,hasLeading:!1,hasTrailing:!1,iconOnly:!1,interactive:!1,disabled:!1}}),Hv=H(["shrink-0 rounded border bg-white transition-colors duration-150"],{variants:{size:{sm:"size-[14px]",md:"size-[16px]",lg:"size-[18px]"}},defaultVariants:{size:"sm"}}),jv=H(["shrink-0 inline-flex items-center justify-center rounded","hover:bg-black/5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400"],{variants:{size:{sm:"size-[16px]",md:"size-[16px]",lg:"size-[16px]"}},defaultVariants:{size:"sm"}}),rm=({children:t,size:e="sm",shape:n="pill",variant:r="solid",color:i="brand",customColor:o,modern:l=!1,icon:a,trailingIcon:u,checked:d,onCheckedChange:c,onClose:f,iconOnly:p=!1,disabled:m=!1,className:b})=>{const g=c!==void 0,y=d!==void 0||!!a,$=!!f||!!u,x=g&&!m,v=_v[i],C=!!(o&&tm(o)),k=C?{borderColor:o,color:o,backgroundColor:r==="outline"?"transparent":nm(o,.1)}:void 0,P=()=>{m||c?.(!d)},N=w=>{!g||m||(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),P())};return h.createElement("div",{role:g?"checkbox":void 0,"aria-checked":g?!!d:void 0,"aria-disabled":m||void 0,tabIndex:g&&!m?0:void 0,onClick:g?P:void 0,onKeyDown:N,style:k,className:q(Vv({size:e,shape:n,modern:l,hasLeading:y,hasTrailing:$,iconOnly:p,interactive:x,disabled:m}),!C&&(r==="outline"?q("bg-transparent",v.outlineBorder,v.outlineText):q(v.solidBg,v.solidBorder,v.solidText)),x&&!C&&(r==="outline"?q(v.hoverOutlineBg,v.hoverOutlineBorder,v.hoverOutlineText):q(v.hoverSolidBg,v.hoverSolidBorder,v.hoverSolidText)),b)},d!==void 0&&h.createElement("span",{className:q(Hv({size:e}),d?"bg-primary-500 border-primary-500":!C&&v.solidBorder,x&&!d&&!C&&v.checkboxHoverBorder),style:!d&&C?{borderColor:o}:void 0},d&&h.createElement("svg",{viewBox:"0 0 14 10",fill:"none",className:"size-full text-white"},h.createElement("path",{d:"M1 5L5 9L13 1",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),a,!p&&h.createElement("span",{className:"whitespace-nowrap"},t),u,f&&h.createElement("button",{type:"button","aria-label":"Remove",disabled:m,onClick:w=>{w.stopPropagation(),f()},className:jv({size:e})},h.createElement("svg",{viewBox:"0 0 10 10",fill:"none",className:e==="sm"?"size-2":"size-2.5"},h.createElement("path",{d:"M1 1L9 9M9 1L1 9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}))))};rm.displayName="Badge";const Rv={brand:{bg50:"bg-primary-50",hoverBg100:"hover:bg-primary-100",border200:"border-primary-200",border500:"border-primary-500",text500:"text-primary-500"},gray:{bg50:"bg-light-50",hoverBg100:"hover:bg-light-100",border200:"border-light-200",border500:"border-light-500",text500:"text-light-500"},error:{bg50:"bg-error-50",hoverBg100:"hover:bg-error-100",border200:"border-error-200",border500:"border-error-500",text500:"text-error-500"},warning:{bg50:"bg-warning-50",hoverBg100:"hover:bg-warning-100",border200:"border-warning-200",border500:"border-warning-500",text500:"text-warning-500"},success:{bg50:"bg-success-50",hoverBg100:"hover:bg-success-100",border200:"border-success-200",border500:"border-success-500",text500:"text-success-500"}},Wv={md:{outerPad:{leading:"pl-1 pr-2.5 py-1",trailing:"pl-3 pr-1 py-1"},gap:"gap-2",chipPad:"px-2 py-0.5",text:"text-caption-lg"},lg:{outerPad:{leading:"pl-1.5 pr-3 py-1.5",trailing:"pl-3 pr-1.5 py-1.5"},gap:"gap-2",chipPad:"px-2.5 py-[3px]",text:"text-body-sm"}},im=({badgeLabel:t,children:e,size:n="md",theme:r="light",color:i="brand",badgePosition:o="leading",icon:l,onClick:a,className:u})=>{const d=Rv[i],c=Wv[n],f=r==="modern",p=r==="outline",m=q("inline-flex items-center border transition-colors duration-150",c.gap,c.outerPad[o],f?"rounded-lg bg-light-50 border-light-200 shadow-xs":p?q("rounded-full bg-white border-[1.5px]",d.border500):q("rounded-full",d.bg50,d.border200,d.hoverBg100),a&&"cursor-pointer",u),b=q("inline-flex shrink-0 items-center gap-1 border font-medium whitespace-nowrap",c.chipPad,c.text,f?"rounded-md bg-white border-light-200 text-light-800":p?q("rounded-full bg-white border-[1.5px]",d.border500,d.text500):q("rounded-full bg-white",d.border200,d.text500)),g=q("inline-flex items-center gap-1 font-medium",c.text,f?"text-light-800":d.text500),y=h.createElement("span",{className:b},f&&h.createElement("span",{className:"size-2 shrink-0 rounded-full bg-light-400"}),t);return h.createElement("div",{role:a?"button":void 0,tabIndex:a?0:void 0,onClick:a,className:m},o==="leading"&&y,h.createElement("span",{className:g},e,l),o==="trailing"&&y)};im.displayName="BadgeGroup";const Uv=({size:t})=>{const e=t*.09,n=(t-e)/2,r=2*Math.PI*n;return h.createElement("svg",{width:t,height:t,viewBox:`0 0 ${t} ${t}`,fill:"none",className:"animate-spin"},h.createElement("circle",{cx:t/2,cy:t/2,r:n,strokeWidth:e,className:"stroke-light-100"}),h.createElement("circle",{cx:t/2,cy:t/2,r:n,strokeWidth:e,strokeLinecap:"round",strokeDasharray:`${r*.25} ${r}`,className:"stroke-primary-600"}))},Gv=({size:t})=>{const e=h.useId(),n=t*.125,r=(t-n)/2,i=2*Math.PI*r;return h.createElement("svg",{width:t,height:t,viewBox:`0 0 ${t} ${t}`,fill:"none",className:"animate-spin text-primary-600"},h.createElement("defs",null,h.createElement("linearGradient",{id:e,x1:"100%",y1:"0%",x2:"0%",y2:"100%"},h.createElement("stop",{offset:"0%",stopColor:"currentColor",stopOpacity:"1"}),h.createElement("stop",{offset:"100%",stopColor:"currentColor",stopOpacity:"0"}))),h.createElement("circle",{cx:t/2,cy:t/2,r,strokeWidth:n,className:"stroke-light-100"}),h.createElement("circle",{cx:t/2,cy:t/2,r,strokeWidth:n,strokeLinecap:"round",stroke:`url(#${e})`,strokeDasharray:`${i*.75} ${i}`}))},Yv=({size:t})=>{const n=Math.max(t*.1,3),r=(t-n)/2;return h.createElement("div",{className:"relative animate-spin",style:{width:t,height:t}},Array.from({length:12}).map((i,o)=>{const l=30*o,a=.15+.85*o/11;return h.createElement("span",{key:o,className:"absolute rounded-full bg-primary-600 top-1/2 left-1/2",style:{width:n,height:n,opacity:a,marginTop:-n/2,marginLeft:-n/2,transform:`rotate(${l}deg) translate(${r}px) rotate(${-l}deg)`}})}))},Xv={sm:{box:32,gapClass:"gap-4",textClass:"text-caption-lg"},md:{box:48,gapClass:"gap-4",textClass:"text-caption-lg"},lg:{box:56,gapClass:"gap-4",textClass:"text-body-lg"},xl:{box:64,gapClass:"gap-5",textClass:"text-body-lg"}},om=({size:t="sm",style:e="line-simple",supportingText:n=!0,label:r="Loading...",className:i})=>{const{box:o,gapClass:l,textClass:a}=Xv[t],u=typeof r=="string"?r:"Loading";return h.createElement("div",{"aria-live":"polite","aria-atomic":"true"},h.createElement(I4,{isIndeterminate:!0,"aria-label":u,className:V("inline-flex flex-col items-center",l,i)},e==="line-simple"&&h.createElement(Uv,{size:o}),e==="line-spinner"&&h.createElement(Gv,{size:o}),e==="dot-circle"&&h.createElement(Yv,{size:o}),n&&h.createElement("p",{className:V("font-nunito font-medium text-light-700 whitespace-nowrap",a)},r)))};om.displayName="Loading";const lm=({className:t,style:e})=>h.createElement("svg",{viewBox:"0 0 24 24",fill:"none",className:t,style:e},h.createElement("path",{d:"M12 12a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9Z",stroke:"currentColor",strokeWidth:"1.75"}),h.createElement("path",{d:"M3.75 20.25a8.25 8.25 0 0 1 16.5 0",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round"})),am=({className:t})=>h.createElement("svg",{viewBox:"0 0 20 20",fill:"none",className:t},h.createElement("circle",{cx:"10",cy:"10",r:"9",className:"fill-primary-500 stroke-white",strokeWidth:"1.5"}),h.createElement("path",{d:"M6 10.2 8.6 12.8 14 7",stroke:"white",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"})),qv={xs:{box:24,borderWidth:"0.5px",statusSize:6,badgeSize:10,textClass:"text-caption-sm"},sm:{box:32,borderWidth:"0.5px",statusSize:8,badgeSize:12,textClass:"text-caption-lg"},md:{box:40,borderWidth:"0.75px",statusSize:10,badgeSize:14,textClass:"text-body-sm"},lg:{box:48,borderWidth:"0.75px",statusSize:12,badgeSize:16,textClass:"text-body-lg"},xl:{box:56,borderWidth:"0.75px",statusSize:14,badgeSize:18,textClass:"text-h6"},"2xl":{box:64,borderWidth:"0.75px",statusSize:16,badgeSize:20,textClass:"text-h5 leading-7"}},Zv="#17B26A",Ei={brand:{bg:"bg-primary-500",text:"text-white",iconText:"text-white"},gray:{bg:"bg-light-50",text:"text-light-500",iconText:"text-light-300"},error:{bg:"bg-error-500",text:"text-white",iconText:"text-white"},warning:{bg:"bg-warning-500",text:"text-white",iconText:"text-white"},success:{bg:"bg-success-500",text:"text-white",iconText:"text-white"}},wi=({src:t,alt:e,initials:n,size:r="md",color:i="gray",status:o="none",statusIcon:l,contrastBorder:a=!0,className:u})=>{const{box:d,borderWidth:c,statusSize:f,badgeSize:p,textClass:m}=qv[r],b=t?"image":n!==void 0?"initials":"placeholder";return h.createElement("div",{className:q("relative inline-block shrink-0 rounded-full",u),style:{width:d,height:d}},b==="image"&&h.createElement("img",{src:t,alt:e??"",className:"absolute inset-0 size-full rounded-full object-cover"}),b==="placeholder"&&h.createElement("div",{className:q("absolute inset-0 flex items-center justify-center rounded-full",Ei[i].bg)},h.createElement(lm,{className:Ei[i].iconText,style:{width:d*.55,height:d*.55}})),b==="initials"&&h.createElement("div",{className:q("absolute inset-0 flex items-center justify-center rounded-full font-semibold",Ei[i].bg,Ei[i].text,m)},n),a&&h.createElement("div",{className:"pointer-events-none absolute inset-0 rounded-full border-black/[0.08]",style:{borderWidth:c,borderStyle:"solid"}}),o==="online"&&h.createElement("span",{className:"absolute bottom-0 right-0 rounded-full border-[1.5px] border-white",style:{width:f,height:f,backgroundColor:Zv}}),o==="company"&&h.createElement("div",{className:"absolute bottom-0 right-0 flex items-center justify-center overflow-hidden rounded-full border-[1.5px] border-white bg-white",style:{width:p,height:p}},l),o==="verified"&&h.createElement("div",{className:"absolute bottom-0 right-0",style:{width:p,height:p}},h.createElement(am,{className:"size-full"})))};wi.displayName="Avatar";const sm=[{bg:"bg-primary-100",text:"text-primary-600"},{bg:"bg-secondary-100",text:"text-secondary-600"},{bg:"bg-purple-100",text:"text-purple-600"},{bg:"bg-pink-100",text:"text-pink-600"},{bg:"bg-orange-100",text:"text-orange-600"},{bg:"bg-teal-100",text:"text-teal-600"},{bg:"bg-indigo-100",text:"text-indigo-600"},{bg:"bg-rose-100",text:"text-rose-600"}],Jv=t=>{let e=0;for(let r=0;r<t.length;r+=1)e=e*31+t.charCodeAt(r)|0;const n=Math.abs(e)%sm.length;return sm[n]},Qv={xs:{box:24,overlap:-4,contrastBorderWidth:"0.5px",plusIconSize:16,textClass:"text-caption-sm"},sm:{box:32,overlap:-8,contrastBorderWidth:"0.5px",plusIconSize:16,textClass:"text-caption-lg"},md:{box:40,overlap:-12,contrastBorderWidth:"0.75px",plusIconSize:20,textClass:"text-body-sm"}},um=({avatars:t,max:e,size:n="xs",onAdd:r,className:i})=>{const{box:o,overlap:l,contrastBorderWidth:a,textClass:u}=Qv[n],d=e?t.slice(0,e):t,c=e&&t.length>e?t.length-e:0;return h.createElement("div",{className:q("inline-flex items-start gap-2",i)},h.createElement("div",{className:"flex items-start"},d.map((f,p)=>{const m=p<d.length-1||c>0;return h.createElement(Ci,{key:p,content:f.label,disabled:!f.label,side:"top"},h.createElement("div",{className:"relative shrink-0 overflow-hidden rounded-full border-[1.5px] border-white",style:{width:o,height:o,marginRight:m?l:0}},f.src?h.createElement("img",{src:f.src,alt:f.alt??"",className:"size-full object-cover"}):(()=>{const{text:b,bg:g}=Jv(String(f.label??f.alt??f.initials??p));return h.createElement("div",{className:q("flex size-full items-center justify-center font-semibold",f.initialsBgColor??g,f.initialsTextColor??b,u)},f.initials)})(),h.createElement("div",{className:q("pointer-events-none absolute inset-0 rounded-full",f.borderColor??"border-black/[0.08]"),style:{borderWidth:a,borderStyle:"solid"}})))}),c>0&&h.createElement(Ci,{content:t.slice(e).map((f,p)=>h.createElement("div",{key:p},f.label)),disabled:!t.slice(e).some(f=>f.label),side:"top"},h.createElement("div",{className:"relative flex shrink-0 items-center justify-center rounded-full border-2 border-white bg-light-100",style:{width:o,height:o}},h.createElement("span",{className:q("font-semibold text-light-600",u)},"+",c)))),r&&h.createElement("button",{type:"button",onClick:r,"aria-label":"Add",className:"flex shrink-0 items-center justify-center rounded-full border border-dashed border-light-300 bg-white text-light-500 hover:bg-light-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2",style:{width:o,height:o}},h.createElement("svg",{width:o*.4,height:o*.4,viewBox:"0 0 20 20",fill:"none"},h.createElement("path",{d:"M10 4v12M4 10h12",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round"}))))};um.displayName="AvatarGroup";const e5={xs:{nameClass:"text-caption-sm",subtitleClass:"text-caption-sm"},sm:{nameClass:"text-caption-lg",subtitleClass:"text-caption-sm"},md:{nameClass:"text-caption-lg",subtitleClass:"text-caption-lg"},lg:{nameClass:"text-body-sm",subtitleClass:"text-body-sm"},xl:{nameClass:"text-body-lg",subtitleClass:"text-body-sm"}},dm=({name:t,subtitle:e,src:n,initials:r,size:i="xs",status:o="none",statusIcon:l,className:a})=>{const{nameClass:u,subtitleClass:d}=e5[i];return h.createElement("div",{className:q("inline-flex items-center gap-2",a)},h.createElement(wi,{src:n,initials:r,size:i,status:o,statusIcon:l}),h.createElement("div",{className:"flex flex-col items-start whitespace-nowrap"},h.createElement("span",{className:q("font-bold text-light-800",u)},t),e&&h.createElement("span",{className:q("font-normal text-light-700",d)},e)))};dm.displayName="AvatarLabelGroup";const t5={sm:{box:72,ringWidth:3,shadowClass:"shadow-md",iconSize:36,textClass:"text-h4",verifiedSize:20,verifiedOffset:0},md:{box:96,ringWidth:4,shadowClass:"shadow-lg",iconSize:48,textClass:"text-h3",verifiedSize:24,verifiedOffset:0},lg:{box:160,ringWidth:4,shadowClass:"shadow-lg",iconSize:80,textClass:"text-h1",verifiedSize:32,verifiedOffset:4}},cm=({src:t,alt:e,initials:n,size:r="sm",verified:i=!0,contrastBorder:o=!0,className:l})=>{const{box:a,ringWidth:u,shadowClass:d,iconSize:c,textClass:f,verifiedSize:p,verifiedOffset:m}=t5[r],b=t?"image":n!==void 0?"initials":"placeholder";return h.createElement("div",{className:q("relative rounded-full",l),style:{width:a,height:a}},h.createElement("div",{className:q("absolute inset-0 overflow-hidden rounded-full border-white",d,b!=="image"&&"bg-light-100"),style:{borderWidth:u,borderStyle:"solid"}},b==="image"&&h.createElement("img",{src:t,alt:e??"",className:"absolute inset-0 size-full rounded-full object-cover"}),o&&h.createElement("div",{className:"pointer-events-none absolute inset-0 rounded-full border border-black/[0.08]"}),b==="placeholder"&&h.createElement("div",{className:"absolute inset-0 flex items-center justify-center"},h.createElement(lm,{className:"text-light-300",style:{width:c,height:c}})),b==="initials"&&h.createElement("div",{className:q("absolute inset-0 flex items-center justify-center font-semibold text-light-500",f)},n)),i&&h.createElement("div",{className:"absolute",style:{width:p,height:p,bottom:m,right:m}},h.createElement(am,{className:"size-full"})))};cm.displayName="AvatarProfilePhoto";const n5={"button-gray":{sm:"h-9 px-3 py-2 text-sm gap-2",md:"h-11 px-3 py-2 text-base gap-2"},"button-white":{sm:"h-9 px-3 py-2 text-sm gap-2",md:"h-11 px-3 py-2 text-base gap-2"},"button-primary":{sm:"h-9 px-3 py-2 text-sm gap-2",md:"h-11 px-3 py-2 text-base gap-2"},underline:{sm:"h-8 px-1 pb-3 text-sm gap-2",md:"h-9 px-1 pb-3 text-base gap-2"},"underline-filled":{sm:"h-11 p-3 text-sm gap-2",md:"h-12 p-3 text-base gap-2"},line:{sm:"h-9 px-3 py-2 text-sm gap-2",md:"h-11 px-3.5 py-2.5 text-base gap-2"}},r5={"button-gray":"rounded-md","button-white":"rounded-md","button-primary":"rounded-md",underline:"rounded-none","underline-filled":"rounded-none",line:"rounded-none"},i5={"button-gray":{active:"bg-light-50 text-light-700",inactive:"bg-transparent text-light-500",hoverInactive:"hover:bg-light-50 hover:text-light-700",hasFocusRing:!0},"button-white":{active:"bg-white text-light-700 shadow-sm",inactive:"bg-transparent text-light-500",hoverInactive:"hover:bg-white hover:text-light-700 hover:shadow-sm",hasFocusRing:!0},"button-primary":{active:"bg-primary-50 text-primary-700",inactive:"bg-transparent text-light-500",hoverInactive:"hover:bg-primary-50 hover:text-primary-700",hasFocusRing:!0},underline:{active:"border-b-2 border-primary-500 text-primary-700",inactive:"border-b-2 border-transparent text-light-500",hoverInactive:"hover:border-primary-500 hover:text-primary-700",hasFocusRing:!1},"underline-filled":{active:"bg-primary-50 border-b-2 border-primary-500 text-primary-700",inactive:"bg-transparent border-b-2 border-transparent text-light-500",hoverInactive:"hover:bg-primary-50 hover:border-primary-500 hover:text-primary-700",hasFocusRing:!1},line:{active:"bg-transparent border-l-2 border-primary-500 text-primary-700",inactive:"bg-transparent border-l-2 border-transparent text-light-500",hoverInactive:"hover:border-primary-500 hover:text-primary-700",hasFocusRing:!0}},o5="inline-flex items-center justify-center rounded-full border border-light-200 bg-light-50 px-2 py-0.5 text-caption-sm font-medium text-light-700",l5={"button-gray":{gapClass:"gap-1",hasHairline:!1},"button-white":{gapClass:"gap-1",hasHairline:!1},"button-primary":{gapClass:"gap-1",hasHairline:!1},underline:{gapClass:"gap-3",hasHairline:!0},"underline-filled":{gapClass:"gap-3",hasHairline:!0},line:{gapClass:"gap-1",hasHairline:!1}},fm=({children:t,variant:e="button-primary",size:n="sm",fullWidth:r=!1,count:i,iconLeft:o,iconRight:l,disabled:a=!1,onClick:u,className:d,id:c,active:f})=>{const p=i5[e];return h.createElement(Ch,{id:c,isDisabled:a,onPress:()=>u?.(),className:({isSelected:m})=>V("inline-flex items-center justify-center font-semibold transition-colors duration-150",n5[e][n],r5[e],m?p.active:p.inactive,!m&&!a&&p.hoverInactive,p.hasFocusRing&&"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white",r&&"w-full",a?"cursor-not-allowed opacity-60":"cursor-pointer",d)},o&&h.createElement("span",{className:"shrink-0"},o),h.createElement("span",{className:"whitespace-nowrap"},t),i!==void 0&&h.createElement("span",{className:o5},i),l&&h.createElement("span",{className:"shrink-0"},l))};fm.displayName="Tab";const pm=({children:t,variant:e="button-primary",orientation:n="horizontal",boxed:r=!1,"aria-label":i="Tabs",keyboardActivation:o,disabledKeys:l,className:a})=>{const{gapClass:u,hasHairline:d}=l5[e],c=h.Children.toArray(t),f=c.map((g,y)=>String(y)),p=c.findIndex(g=>g.props.active),m=f[p>=0?p:0],b=g=>{const y=f.indexOf(String(g));y>=0&&c[y].props.onClick?.()};return h.createElement(vh,{orientation:n,keyboardActivation:o,disabledKeys:l,selectedKey:c.length?m:void 0,onSelectionChange:b},h.createElement(xh,{"aria-label":i,className:V("inline-flex",n==="vertical"?"flex-col items-stretch":"flex-row items-center",u,r&&"rounded-lg border border-light-200 bg-light-50 p-1",d&&n==="horizontal"&&!r&&"border-b border-light-200",a)},c.map((g,y)=>h.cloneElement(g,{key:f[y],id:f[y]}))))};pm.displayName="TabList";const hm=9,st=1,a5=30;function mm(t){const e=hm,n=st-t,r=n?`calc(100% - ${n}px)`:"100%",i=`calc(100% - ${e+1}px)`,o=`calc(100% - ${e}px)`;return`shape(${[`from ${-t}px 100%`,...n?[`vline to ${r}`]:[],`curve to ${e}px ${i} with ${e}px ${r}`,`vline to ${e-t}px`,`curve to ${2*e-t}px 0 with ${e}px 0`,`hline to calc(100% - ${2*e-t}px)`,`curve to ${o} ${e-t}px with ${o} 0`,`vline to ${i}`,`curve to ${t?`calc(100% + ${t}px)`:"100%"} ${r} with ${o} ${r}`,...n?["vline to 100%"]:[]].join(", ")})`}const bm=mm(0),gm=mm(st),ym={default:{box:"h-12 shrink-0",padX:a5},"max-width":{box:"h-9 min-w-px flex-1",padX:hm}},s5={clipPath:bm,paddingInline:`${st}px`},u5={paddingInline:`${st}px`},$m=h.forwardRef(({type:t="default",disabled:e=!1,unstyled:n=!1,iconLeft:r,trailing:i,tooltip:o,children:l,className:a,style:u,contentClassName:d,contentStyle:c,onClick:f,id:p,active:m,...b},g)=>{const{box:y,padX:$}=ym[t];return h.createElement(Ch,{ref:g,id:p,isDisabled:e,onPress:()=>f?.(void 0),...b,className:({isSelected:x})=>V("group relative flex transition-colors duration-150 focus-visible:outline-none",!n&&"rounded-t-lg pt-px",!n&&y,e&&"cursor-not-allowed opacity-60",!e&&!x&&"cursor-pointer",!n&&x&&"-mb-px bg-light-200 focus-visible:bg-primary-400",x&&"cursor-default",a),style:({isSelected:x})=>n?u:{...x?s5:u5,...u}},({isSelected:x})=>{const v=!e&&!x,C=x?{clipPath:gm,paddingInline:`${$-st}px`}:{paddingInline:`${$-st}px`};return h.createElement("span",{title:o,className:V("flex h-full w-full items-center justify-center gap-1 whitespace-nowrap text-caption-sm",!n&&"rounded-t-lg",!n&&(x?"bg-white font-bold text-light-800":"font-medium leading-4 text-light-600"),!n&&v&&"group-hover:bg-light-100 group-hover:text-light-800",!n&&v&&"group-focus-visible:rounded-b-lg group-focus-visible:ring-2 group-focus-visible:ring-primary-400 group-focus-visible:ring-offset-2",d),style:n?c:{...C,...c}},r&&h.createElement("span",{className:"shrink-0"},r),h.createElement("span",{className:"overflow-hidden text-ellipsis"},l),i)})});$m.displayName="TabBrowser";const d5=48,vm=({children:t,separators:e=!1,trailingSlot:n,overflow:r=!1,overflowLabel:i,className:o})=>{const l=h.Children.toArray(t),a=h.useMemo(()=>l.map((w,D)=>String(D)),[l.length]),u=l.findIndex(w=>w.props.active),d=h.useRef(null),c=h.useRef(null),f=h.useRef(new Map),p=h.useRef(new Map),[m,b]=h.useState(l.length),g=a.join("|");h.useLayoutEffect(()=>{r&&(p.current.clear(),b(l.length))},[r,g]);const y=h.useCallback(()=>{const w=d.current;if(!w||l.length===0||(p.current.size<l.length&&a.forEach(j=>{const E=f.current.get(j);E&&p.current.set(j,E.getBoundingClientRect().width)}),p.current.size<l.length))return;const D=w.clientWidth,I=c.current?.getBoundingClientRect().width||d5;let L=0,z=0;for(;z<a.length;z++){const j=p.current.get(a[z])??0,E=z<a.length-1?I:0;if(L+j+E>D&&z>0)break;L+=j}b(j=>j===z?j:z)},[l.length,a]),$=m===l.length;h.useLayoutEffect(()=>{r&&y()},[r,y,$]),h.useEffect(()=>{if(!r)return;const w=d.current;if(!w||typeof ResizeObserver>"u")return;const D=new ResizeObserver(()=>y());return D.observe(w),()=>D.disconnect()},[r,y]);const x=r&&m<l.length?Math.max(m,1):l.length,v=r?u>=0&&u>=x?[...Array(x-1).keys(),u]:[...Array(x).keys()]:a.map((w,D)=>D),C=new Set(v),k=a.map((w,D)=>D).filter(w=>!C.has(w)),P=u>=0?a[u]:v.length?a[v[0]]:void 0,N=w=>{const D=a.indexOf(String(w));D>=0&&l[D].props.onClick?.(void 0)};return h.createElement(vh,{selectedKey:l.length?P:void 0,onSelectionChange:N,className:V("flex items-end",r&&"min-w-0 flex-1",o)},(()=>{const w=h.createElement(xh,{"aria-label":"Tabs",className:V("flex min-w-0 items-end",r?"shrink-0":"flex-1")},v.map((D,I)=>{const L=l[D],z=I===v.length-1&&k.length===0,j=v[I+1],E=L.props.active||l[j]?.props.active;return h.cloneElement(L,{key:a[D],id:a[D],ref:r?A=>{A?f.current.set(a[D],A):f.current.delete(a[D])}:void 0,className:V(L.props.className,e&&!z&&!E&&"after:absolute after:-right-px after:bottom-3 after:h-5 after:w-px after:bg-light-200 after:content-['']")})}));return r?h.createElement("div",{ref:d,className:"flex min-w-0 flex-1 items-end overflow-hidden"},w,k.length>0&&h.createElement(fi,null,h.createElement(dn,{ref:c,className:"mb-3 flex h-7 shrink-0 items-center self-end rounded-md px-2 text-caption-sm font-semibold text-light-600 hover:bg-light-100 hover:text-light-800 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400"},i?i(k.length):`+${k.length}`),h.createElement(kc,{placement:"bottom end",className:"flex flex-col overflow-hidden rounded-lg border border-light-200 bg-white p-1 shadow-lg"},h.createElement(hf,{className:"flex max-h-[320px] min-h-0 min-w-[160px] flex-1 flex-col gap-0.5 overflow-y-auto outline-none [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",onAction:D=>{const I=a.indexOf(String(D));I>=0&&l[I].props.onClick?.(void 0)}},k.map(D=>{const I=l[D],L=I.props.children;return h.createElement(mf,{key:a[D],id:a[D],isDisabled:I.props.disabled,textValue:typeof L=="string"?L:void 0,className:"flex h-9 shrink-0 cursor-pointer items-center gap-2 truncate rounded-md px-2 text-caption-sm text-light-800 outline-none data-[disabled]:cursor-not-allowed data-[disabled]:opacity-60 data-[focused]:bg-light-50 data-[focused]:text-light-900"},I.props.iconLeft&&h.createElement("span",{className:"shrink-0"},I.props.iconLeft),h.createElement("span",{className:"truncate"},L),I.props.trailing&&h.createElement("span",{className:"ml-auto shrink-0"},I.props.trailing))}))))):w})(),n)};vm.displayName="TabBrowserBar";const c5={clipPath:bm,paddingInline:`${st}px`},f5={paddingInline:`${st}px`},xm=h.forwardRef(({type:t="default",disabled:e=!1,unstyled:n=!1,active:r=!1,iconLeft:i,trailing:o,tooltip:l,children:a,className:u,style:d,contentClassName:c,contentStyle:f,...p},m)=>{const{box:b,padX:g}=ym[t],y=!e&&!r,$=r?{clipPath:gm,paddingInline:`${g-st}px`}:{paddingInline:`${g-st}px`};return h.createElement("div",{ref:m,role:"tab","aria-disabled":e,"aria-selected":r,...p,className:V("group relative flex transition-colors duration-150 focus-visible:outline-none",!n&&"rounded-t-lg pt-px",!n&&b,e&&"cursor-not-allowed opacity-60",!e&&!r&&"cursor-pointer",!n&&r&&"-mb-px bg-light-200 focus-visible:bg-primary-400",r&&"cursor-default",u),style:n?d:{...r?c5:f5,...d}},h.createElement("span",{title:l,className:V("flex h-full w-full items-center justify-center gap-1 whitespace-nowrap text-caption-sm",!n&&"rounded-t-lg",!n&&(r?"bg-white font-bold text-light-800":"font-medium leading-4 text-light-600"),!n&&y&&"group-hover:bg-light-100 group-hover:text-light-800",!n&&y&&"group-focus-visible:rounded-b-lg group-focus-visible:ring-2 group-focus-visible:ring-primary-400 group-focus-visible:ring-offset-2",c),style:n?f:{...$,...f}},i&&h.createElement("span",{className:"shrink-0"},i),h.createElement("span",{className:"overflow-hidden text-ellipsis"},a),o))});xm.displayName="TabBrowserPreview";const p5=H("flex flex-col gap-1 w-full",{variants:{size:{xs:"text-caption-sm",sm:"text-caption-lg",md:"text-sm"}},defaultVariants:{size:"md"}}),h5=H("flex items-center gap-1 font-bold text-sm",{variants:{error:{true:"",false:"text-light-800"}},defaultVariants:{error:!1}}),m5=H(["flex items-center w-full border","bg-white transition-[border-color,border-width]"],{variants:{size:{xs:"h-7 px-2 gap-1 rounded text-caption-sm",sm:"h-9 px-3 gap-2 rounded-lg",md:"h-11 px-3 gap-2 rounded-lg"},error:{true:["border-error-200","focus-within:border-2 focus-within:border-error-500"],false:["border-light-200","focus-within:border-2 focus-within:border-primary-500"]},disabled:{true:"bg-light-100 text-light-400 cursor-not-allowed",false:""}},defaultVariants:{size:"md",error:!1,disabled:!1}}),b5=H(["flex-1 bg-transparent outline-none text-light-900","placeholder:text-light-500","disabled:text-light-400 disabled:cursor-not-allowed"],{variants:{size:{xs:"text-caption-sm",sm:"text-caption-lg",md:"text-body-sm"},error:{true:"",false:"text-light-900"}},defaultVariants:{size:"md",error:!1}}),g5=H("text-caption-lg",{variants:{error:{true:"text-error-500",false:"text-light-700"}}}),y5=H("flex items-stretch w-full bg-white border overflow-hidden transition-[border-color,border-width]",{variants:{size:{xs:"rounded",sm:"rounded-lg",md:"rounded-lg"},error:{true:["border-error-200","focus-within:border-2 focus-within:border-error-500"],false:["border-light-200","focus-within:border-2 focus-within:border-primary-500"]},disabled:{true:"bg-light-100",false:""}},defaultVariants:{size:"md",error:!1,disabled:!1}}),$5=H("flex flex-1 items-center min-w-0",{variants:{size:{xs:"gap-1 px-2 py-1",sm:"gap-2 px-3 py-2",md:"gap-2 px-3 py-2"},disabled:{true:"text-light-400 cursor-not-allowed",false:""}},defaultVariants:{size:"md",disabled:!1}}),v5=H("flex items-center text-light-700 whitespace-nowrap border-r border-light-200",{variants:{size:{xs:"px-2 text-caption-sm",sm:"px-3 text-caption-lg",md:"px-3 text-body-sm"}},defaultVariants:{size:"md"}}),Cm=H(["flex items-center gap-1 shrink-0 bg-transparent p-0 text-light-800 cursor-pointer","hover:bg-transparent hover:text-light-900","disabled:cursor-not-allowed disabled:text-light-400"],{variants:{size:{xs:"text-caption-sm",sm:"text-caption-lg",md:"text-body-sm"}},defaultVariants:{size:"md"}}),x5=H("flex shrink-0 items-center justify-center gap-1 w-[92px] border-l border-light-200 bg-white font-semibold text-light-800 hover:bg-light-50 disabled:cursor-not-allowed disabled:text-light-400",{variants:{size:{xs:"text-caption-sm",sm:"text-caption-lg",md:"text-body-sm"}},defaultVariants:{size:"md"}}),Em=({className:t})=>s.createElement("svg",{viewBox:"0 0 20 20",fill:"none",className:t},s.createElement("path",{d:"M5 7.5L10 12.5L15 7.5",stroke:"currentColor",strokeWidth:"1.67",strokeLinecap:"round",strokeLinejoin:"round"})),C5={xs:"h-7",sm:"h-[30px]",md:"h-[34px]"},E5=({size:t,error:e,disabled:n})=>q("flex items-center w-full gap-2 rounded-lg border bg-white px-2 transition-[border-color,border-width]",C5[t],e?"border-error-200 focus-within:border-2 focus-within:border-error-500":"border-light-200 focus-within:border-2 focus-within:border-primary-500",n&&"bg-light-100 text-light-400 cursor-not-allowed"),w5=({error:t})=>q("flex items-center gap-1 text-caption-sm font-semibold",t?"":"text-light-800"),S5="flex flex-col w-full max-w-[320px]",wm=s.forwardRef(function({label:e,required:n,hint:r,rightIcon:i,size:o="md",error:l=!1,disabled:a=!1,compact:u=!1,hideCalendarIcon:d=!1,type:c,prefix:f,suffix:p,leadingAddon:m,leadingDropdown:b,trailingDropdown:g,trailingButton:y,maxLength:$,value:x,className:v,wrapperClassName:C,...k},P){const N=!!(m||y),w=s.createElement(s.Fragment,null,b&&s.createElement("button",{type:"button",onClick:b.onClick,disabled:b.disabled||a,className:Cm({size:o})},s.createElement("span",null,b.value),s.createElement(Em,{className:"size-5 text-light-500"})),f&&s.createElement("div",{className:"flex items-center"},f),s.createElement("input",{...k,ref:P,type:c,disabled:a,maxLength:$,value:x,className:q(b5({size:o,error:l}),"h-full",d&&"[&::-webkit-calendar-picker-indicator]:hidden [&::-webkit-clear-button]:hidden",c==="date"&&"[&::-webkit-datetime-edit]:p-0 [&::-webkit-datetime-edit-fields-wrapper]:p-0",v)}),(i||p)&&s.createElement("div",{className:"flex h-full items-center gap-2"},i&&s.createElement("div",{className:"flex h-full items-center pb-0.5 text-light-400 hover:text-light-600"},i),p&&s.createElement("div",{className:"flex h-full items-center gap-1 leading-none text-light-700"},p)),g&&s.createElement("button",{type:"button",onClick:g.onClick,disabled:g.disabled||a,className:Cm({size:o})},s.createElement("span",null,g.value),s.createElement(Em,{className:"size-5 text-light-500"})));return s.createElement("div",{className:q(u?S5:p5({size:o}),C)},e&&s.createElement("label",{className:u?w5({error:l}):h5({error:l})},e,n&&s.createElement("span",{className:"text-error-400"},"*")),N?s.createElement("div",{className:y5({size:o,error:l,disabled:a})},m&&s.createElement("div",{className:v5({size:o})},m),s.createElement("div",{className:$5({size:o,disabled:a})},w),y&&s.createElement("button",{type:"button",onClick:y.onClick,disabled:y.disabled||a,className:x5({size:o})},y.icon,s.createElement("span",null,y.label))):s.createElement("div",{className:u?E5({size:o,error:l,disabled:a}):m5({size:o,error:l,disabled:a})},w),$&&typeof x=="string"&&s.createElement("div",{className:"text-right text-xs text-light-400"},x.length,"/",$),r&&s.createElement("p",{className:g5({error:l})},r))});function P5({children:t}){return React.createElement("div",{className:"flex items-center text-light-500"},t)}function k5({children:t}){return React.createElement("div",{className:"flex items-center text-light-500"},t)}const D5=H("flex flex-col gap-1 w-full",{variants:{size:{xs:"text-caption-sm",sm:"text-caption-lg",md:"text-sm"}},defaultVariants:{size:"md"}}),N5=H("flex items-center gap-1 font-bold text-sm",{variants:{error:{true:"",false:"text-light-800"}},defaultVariants:{error:!1}}),Il={xs:"h-7",sm:"h-[30px]",md:"h-[34px]"},T5=H(["flex items-center w-full gap-2 border bg-white","transition-[border-color,border-width]","data-[invalid]:border-error-200 data-[focus-within]:data-[invalid]:border-2 data-[focus-within]:data-[invalid]:border-error-500","data-[disabled]:cursor-not-allowed data-[disabled]:bg-light-100 data-[disabled]:text-light-400"],{variants:{size:{xs:"h-7 px-2 rounded text-caption-sm",sm:"h-9 px-3 rounded-lg",md:"h-11 px-3 rounded-lg"},compact:{true:"rounded-lg px-2",false:""},error:{true:"",false:"border-light-200 data-[focus-within]:border-2 data-[focus-within]:border-primary-500"}},compoundVariants:[{compact:!0,size:"xs",class:Il.xs},{compact:!0,size:"sm",class:Il.sm},{compact:!0,size:"md",class:Il.md}],defaultVariants:{size:"md",compact:!1,error:!1}}),A5=H(["flex-1 min-w-0 bg-transparent outline-none text-light-900","placeholder:text-light-500","disabled:text-light-400 disabled:cursor-not-allowed"],{variants:{size:{xs:"text-caption-sm",sm:"text-caption-lg",md:"text-body-sm"}},defaultVariants:{size:"md"}}),Sm="flex items-center shrink-0",I5=H("text-caption-lg",{variants:{error:{true:"text-error-500",false:"text-light-700"}},defaultVariants:{error:!1}}),rr=h.forwardRef(function({label:e,required:n,hint:r,size:i="md",error:o=!1,disabled:l=!1,compact:a=!1,leftSlot:u,rightSlot:d,className:c,wrapperClassName:f,...p},m){return h.createElement("div",{className:V(D5({size:i}),f)},e&&h.createElement("label",{className:N5({error:o})},e,n&&h.createElement("span",{className:"text-error-400"},"*")),h.createElement(ko,{isDisabled:l,isInvalid:o,className:T5({size:i,compact:a,error:o})},u&&h.createElement("div",{className:Sm},u),h.createElement(Do,{...p,ref:m,disabled:l,required:n,className:V(A5({size:i}),c)}),d&&h.createElement("div",{className:Sm},d)),r&&h.createElement("p",{className:I5({error:o})},r))});rr.displayName="BaseInput";const B5={xs:12,sm:16,md:20,lg:24,xl:32},Xt=({icon:t,size:e="md",strokeWidth:n=2,label:r,className:i,...o})=>h.createElement(t,{size:B5[e],stroke:n,className:q("shrink-0",i),"aria-hidden":r?void 0:!0,role:r?"img":void 0,"aria-label":r,...o});Xt.displayName="Icon";const Pm=V("flex max-h-60 w-full flex-col overflow-y-auto py-1 outline-none","[scrollbar-width:thin] [scrollbar-color:theme(colors.light.300)_theme(colors.light.50)]","[&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-track]:bg-light-50","[&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-light-300"),km=V("flex size-4 shrink-0 items-center justify-center text-light-500"),Dm=V("ml-auto shrink-0 font-normal text-caption-sm text-light-500"),Nm=V("my-1 h-px w-full shrink-0 bg-light-200"),F5=V("flex w-full flex-col items-start border-b border-light-200 px-4 py-3"),Bl=V("group flex h-12 w-full items-center px-2 py-0.5 outline-none","cursor-pointer data-[disabled]:cursor-not-allowed"),M5=H(["flex h-11 min-w-0 flex-1 items-center gap-2 overflow-hidden rounded-md","py-2.5 pl-1 pr-2.5 text-left font-nunito text-body-sm font-medium","[&_[data-slot=supporting-text]]:font-normal"],{variants:{active:{true:"bg-light-50 text-light-800",false:"text-light-900"},focusVisible:{true:"shadow-focus",false:""},nativeInteraction:{true:"group-hover:bg-light-50 group-active:bg-light-50",false:""},disabled:{true:"text-light-400 [&_[data-slot=supporting-text]]:text-light-400",false:"[&_[data-slot=supporting-text]]:text-light-700"}},defaultVariants:{active:!1,focusVisible:!1,nativeInteraction:!1,disabled:!1}}),K5="flex shrink-0 items-center justify-center",L5="flex min-w-0 flex-1 items-center gap-2 overflow-hidden whitespace-nowrap",O5="ml-auto flex shrink-0 items-center justify-center",Tm=t=>t!=null&&t!==!1;function Fl({state:t,leadingSlot:e,hasCustomLeadingSlot:n=!1,children:r,trailingSlot:i,nativeInteraction:o=!1}){const l=n?e:t.selectionMode==="multiple"?h.createElement("span",{"aria-hidden":"true","data-slot":"selection-indicator","data-selected":String(t.isSelected),className:`${Xh({size:"sm",checked:t.isSelected,disabled:t.isDisabled})} pointer-events-none shrink-0`},t.isSelected&&h.createElement(xr,{size:12,strokeWidth:2.5})):null;return h.createElement("span",{"data-slot":"collection-item-content",className:V(M5({active:t.isHovered||t.isPressed||t.isSelected||t.isFocusVisible,focusVisible:t.isFocusVisible,nativeInteraction:o&&!t.isDisabled,disabled:t.isDisabled}))},Tm(l)&&h.createElement("span",{"data-slot":"leading",className:K5},l),h.createElement("span",{"data-slot":"main",className:L5},r),Tm(i)&&h.createElement("span",{"data-slot":"trailing",className:O5},i))}const vn=(t,e)=>typeof t=="function"?t(e):t,Am=t=>({isHovered:t.isHovered,isPressed:t.isPressed,isSelected:t.isSelected,isFocused:t.isFocused,isFocusVisible:t.isFocusVisible,isDisabled:t.isDisabled,selectionMode:t.selectionMode,selectionBehavior:t.selectionBehavior});function z5({className:t,style:e,leadingSlot:n,children:r,trailingSlot:i,...o},l){const a=o.textValue??(typeof r=="string"?r:void 0);return h.createElement(E2,{ref:l,...o,textValue:a,style:e,className:V(Bl,t)},u=>h.createElement(Fl,{state:Am(u),leadingSlot:vn(n,u),hasCustomLeadingSlot:n!==void 0,trailingSlot:vn(i,u)},vn(r,u)))}const Im=h.forwardRef(z5);function _5({className:t,style:e,leadingSlot:n,children:r,trailingSlot:i,...o},l){const a=o.textValue??(typeof r=="string"?r:void 0);return h.createElement(mf,{ref:l,...o,textValue:a,style:e,className:V(Bl,t)},u=>h.createElement(Fl,{state:Am(u),leadingSlot:vn(n,u),hasCustomLeadingSlot:n!==void 0,trailingSlot:vn(i,u)},vn(r,u)))}const Bm=h.forwardRef(_5),Ml=h.createContext(null);function V5({className:t,style:e,...n},r){return h.createElement(Ml.Provider,{value:"menu"},h.createElement(hf,{ref:r,...n,style:e,className:V(Pm,t)}))}const Kl=h.forwardRef(V5);function H5({className:t,style:e,content:n="none",icon:r,shortcut:i,children:o,...l},a){const u=n==="icon"?r:n==="selection"?d=>h.createElement("span",{className:km},d.isSelected&&h.createElement(Xt,{icon:xr,size:"sm","aria-hidden":"true"})):void 0;return h.createElement(Bm,{ref:a,...l,style:e,className:t,leadingSlot:u,trailingSlot:i?h.createElement("span",{className:Dm},i):void 0},o)}const Ll=h.forwardRef(H5),j5=({className:t})=>h.createElement(id,{className:V(Nm,t)}),R5=({children:t,className:e})=>h.createElement(X4,{className:V(F5,e)},t),W5=H(["flex items-center gap-1 shrink-0 border-r border-light-200 bg-transparent","text-light-800 cursor-pointer","hover:text-light-900","disabled:cursor-not-allowed disabled:text-light-400"],{variants:{size:{xs:"pr-2 text-caption-sm",sm:"pr-2 text-caption-lg",md:"pr-2 text-body-sm"}},defaultVariants:{size:"md"}}),U5="w-72",G5="border-b border-light-200 p-2";function Y5({size:t,disabled:e,countries:n,selected:r,onSelect:i}){const[o,l]=h.useState(""),a=o?n.filter(u=>u.name.toLowerCase().includes(o.toLowerCase())||u.dial_code.includes(o)||u.code.toLowerCase()===o.toLowerCase()):n;return h.createElement(fi,{onOpenChange:u=>{u||l("")}},h.createElement(dn,{isDisabled:e,"aria-label":`Country: ${r.name} (${r.dial_code})`,className:W5({size:t})},h.createElement("span",null,r.code),h.createElement(Cr,{size:14,"aria-hidden":"true"})),h.createElement($n,{placement:"bottom start"},h.createElement("div",{className:G5},h.createElement("input",{autoFocus:!0,value:o,onChange:u=>l(u.target.value),placeholder:"Search country...",className:"w-full bg-transparent text-sm text-light-900 outline-none placeholder:text-light-500"})),h.createElement(Kl,{"aria-label":"Country",className:V(U5,"max-h-60 overflow-y-auto"),items:a,onAction:u=>{const d=a.find(c=>c.code===u);d&&i(d)}},u=>h.createElement(Ll,{id:u.code,textValue:`${u.name} ${u.dial_code}`},h.createElement("span",{className:"flex min-w-0 flex-1 items-center gap-2"},h.createElement("span",{className:"min-w-0 flex-1 truncate"},u.name),h.createElement("span",{className:"shrink-0 text-light-500"},u.dial_code))))))}const Fm={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[2-467])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:48|5[0-3579]|[6-9])|7(?:20|32|8)|[89]","(?:31|4)6|51|6(?:485|5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:241|349)0\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|[34]\\d\\d)|91(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79]))))\\d{3}|(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8])|8(?:55|6[0-8]|[78]\\d|9[02-9]))\\d{6}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|2[23]"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","[024-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[024-7]"]]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","(?:01\\d|8)\\d{7}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["0"]]]],BL:["590","00","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["(?:59(?:0(?:2[7-9]|3[3-7]|5[12]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","(?:[2-7]\\d\\d|8001)\\d{5}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[23]|4[46]|50"]],["(\\d{8})","$1",["[5-7]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","[1-467]\\d{9,10}|55[0-46-9]\\d{8}|[34]\\d{7}|55\\d{7,8}|(?:5[0-46-9]|[89]\\d)\\d{7,9}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37|86)","300|4(?:0(?:0|20)|370|864)"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],BT:["975","00","[178]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-6]|7[246]|8[2-4]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|[78]"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","[2-9]\\d{9}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|5[07]|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|3[23]|44|66|77|88)|6(?:22|33))[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["5"],"0$1"]],"0"],CF:["236","00","8776\\d{4}|(?:[27]\\d|61)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-8]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["60|809"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9(?:10|[2-9])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-8]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]","(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["46"]],["(\\d{3})(\\d{7})","$1 $2",["6|90"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|9[14]"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["[56]"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9,10,11,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[03568]","15(?:[0568]|3[13])"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,0,[["528[89]\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|3[01]|5[0-5]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","(?:400|[5-9]\\d\\d)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[4-9]"]]]],ET:["251","00","(?:11|[2-57-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-57-9]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d{5})","$1",["20[2-59]"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["(?:[1-3]0|[68])0|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[14]|2[09]|50|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"],["(\\d)(\\d{4,9})","$1 $2",["(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,"0|180020",0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-5])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|5[01]))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","(?:694\\d|7093)\\d{5}|(?:59|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]|80[6-9]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0|180020","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","[235]\\d{8}|800\\d{5,6}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2358]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[48]\\d{8}|[2-9]\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|4(?:[0-35]|4[16-9])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[48]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|80[6-9]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["(?:59(?:0(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","[2-69]\\d{8}|80\\d{5,7}|[1-79]\\d{7}|6\\d{6}",[7,8,9],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6|7[245]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-57]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","[2-589]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13,14,15,16,17],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1(?:05|[2-9]))","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0|180020","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31)|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:3171|5[15][2-6]|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|8(?:16|2[014]|3[126]|6[136]|7[78]|83)(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|3[129]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7(?:[23569]|8[0-57-9])|8[1-6])|7(?:1(?:[013-8]|9[6-9])|3(?:17|2[0-49]|9[2-57])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|8(?:28[235-7]|3))|73179|807(?:1|9[1-3])|(?:1552|6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578])\\d|7(?:[23569]\\d|8[0-57-9])|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|3(?:2[0-49]|9[2-57])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["16|[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["18[06]","18[06]0"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,11}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11,12],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]|43"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[03]"]]],0,0,0,0,0,0,[["0(?:669[0-79]\\d{1,6}|831\\d{2,8})|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[2356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"],["3[2-9]\\d{7,8}|(?:31|43)\\d{8}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],["3[2-8]\\d{9,10}",[11,12]],0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0|180020","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|427|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[47]"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[25-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["3|4(?:2[09]|7[01])|6[1-9]","3|4(?:2(?:0|9[02-69])|7(?:0[019]|1))|6[1-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[25-9]"],"0$1"]],"0",0,"(000[2569]\\d{4,6})$|(?:(?:003768)0?)|0","$1"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[36]0|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","8\\d{13}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["3"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-6]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:[2457]\\d|33|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["4[67]|[56]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(0-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"0 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(0-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(0-$1)",1]],"0",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["20"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["20"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|78|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2679]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{4})(\\d{5})","$1-$2",["892"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8(?:0[0-7]|9)"],"0$1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[5-8]"],"0$1"]],"0",0,0,0,0,"[5-8]"],MC:["377","00","(?:[3489]|[67]\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[67]"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["(?:59(?:0(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|452|678|86","[12]|452|6788|86"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["11|2[16]"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670"],MQ:["596","00","7091\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|8(?:0[6-9]|[36])"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-37-9]"],"0$1"]],"0"],MX:["52","0[09]","[2-9]\\d{9}",[10],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"]]],0,0,0,0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[0467]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","(?:20|9\\d)\\d{8}|[78]\\d{9,13}",[10,11,12,13,14],[["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["20[129]"],"0$1"],["(\\d{4})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:222|444|(?:55|8\\d)\\d|666|777|999)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[24-9]"]]]],NU:["683","00","(?:[4-7]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["30|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","30|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","[78]\\d{8}|[2-9]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","[36-8]\\d{5,8}|4\\d{6,8}|59\\d{6}|9\\d{5,10}|(?:2\\d|5[0-8])\\d{6,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["3[289]|4[246-8]|61|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[136]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]]],RE:["262","00","709\\d{6}|(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"],"0$1"]],"0",0,0,0,0,0,[["2631[0-6]\\d{4}|26(?:2\\d|30|88)\\d{5}"],["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[0-3]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))\\d{4}"],["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,"[3489]",0,"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0"],SA:["966","00","(?:[15]\\d|800|92)\\d{7}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","[6-9]\\d{6}|[1-6]\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","(?:[2489]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10,12],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-9]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[013]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|9[2-9]"]],["(\\d)(\\d{7})","$1 $2",["[267]|904"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[346-9]"]]],"0"],SR:["597","00","(?:[2-5]|[6-9]\\d)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-9]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[25-7]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[25-7]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721"],SY:["963","00","[1-359]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-4]|5[1-3]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[59]"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649"],TD:["235","00|16","(?:22|[3689]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[236-9]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","(?:[0-57-9]\\d|66)\\d{7}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[02-479]|[34]7"]],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3(?:[1245]|3[12])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["\\d"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","[1-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["[67]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["826"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["83"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["82"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[25]0|37|49|8[09]"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-478])|7[1-9]","[23568]|4(?:0[2-48]|[1-478])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024","20240"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["20[0-35-7]|4(?:6[45]|[7-9])|[7-9]","20(?:[0135-7]|2[5-9])|4(?:6[45]|[7-9])|[7-9]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[2-4]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["(?:472[2-47-9]|983[2-57-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[02469]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-3]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-2478]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|2\\d{3,4}|(?:[49]\\d|80)\\d{5}",[4,5,6,7,8,9,10,11,12,13],[["(\\d{4,5})","$1",["21"]],["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","00","(?:20|33|[5-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"]]]],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11,12],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{6,7}|7\\d{6}",[7,8,9,10],[["(\\d{4})(\\d{4,6})","$1 $2",["1(?:2[02]|[89])"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[26]|6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[47-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}",[8,9,10,11,12],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2|39"],"0$1"],["(\\d{2})(\\d{7,10})","$1 $2",["3"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","(?:639\\d|7093)\\d{5}|(?:26|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["26(?:89\\d|9(?:0[0-467]|15|5[0-4]|6\\d|[78]0))\\d{4}"],["(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"],["80\\d{7}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|[579]\\d|63)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[579]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[235-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"],0,0,0,0,0,0,["2\\d{8}",[9]]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|5[12]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|5(?:0\\d{3}|2[0-2]))\\d{7}",[7,8,9,10,12]],0,0,0,["348[57]\\d{7}",[11]],0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};function Ol(t,e){var n=Array.prototype.slice.call(e);return n.push(Fm),t.apply(this,n)}function Mm(t,e){t=t.split("-"),e=e.split("-");for(var n=t[0].split("."),r=e[0].split("."),i=0;i<3;i++){var o=Number(n[i]),l=Number(r[i]);if(o>l)return 1;if(l>o)return-1;if(!isNaN(o)&&isNaN(l))return 1;if(isNaN(o)&&!isNaN(l))return-1}return t[1]&&e[1]?t[1]>e[1]?1:t[1]<e[1]?-1:0:!t[1]&&e[1]?1:t[1]&&!e[1]?-1:0}var X5={}.constructor;function qt(t){return t!=null&&t.constructor===X5}var q5=/^\d+$/;function Z5(t){return q5.test(t)}function xn(t){"@babel/helpers - typeof";return xn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xn(t)}function Si(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function J5(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Q5(r.key),r)}}function Pi(t,e,n){return e&&J5(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Q5(t){var e=ex(t,"string");return xn(e)=="symbol"?e:e+""}function ex(t,e){if(xn(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(xn(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var tx="1.2.0",nx="1.7.35",Km=" ext. ",Pe=(function(){function t(e){Si(this,t),zm(e),this.metadata=e,_m.call(this,e)}return Pi(t,[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter(function(n){return n!=="001"})}},{key:"getCountryMetadata",value:function(n){return this.metadata.countries[n]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(n){return this.getCountryMetadata(n)!==void 0}},{key:"hasCallingCode",value:function(n){if(this.getCountryCodesForCallingCode(n))return!0;if(this.nonGeographic()){if(this.nonGeographic()[n])return!0}else{var r=this.countryCallingCodes()[n];if(r&&r.length===1&&r[0]==="001")return!0}}},{key:"isNonGeographicCallingCode",value:function(n){return this.nonGeographic()?!!this.nonGeographic()[n]:!this.getCountryCodesForCallingCode(n)}},{key:"country",value:function(n){return this.selectNumberingPlan(n)}},{key:"selectNumberingPlan",value:function(n,r){var i,o;if(n&&(Z5(n)?o=n:i=n),r&&(o=r),i&&i!=="001"){var l=this.getCountryMetadata(i);if(!l)throw new Error("Unknown country: ".concat(i));this.numberingPlan=new Lm(l,this)}else if(o){if(!this.hasCallingCode(o))throw new Error("Unknown calling code: ".concat(o));this.numberingPlan=new Lm(this.getNumberingPlanMetadata(o),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(n){var r=this.countryCallingCodes()[n];if(r)return r.length===1&&r[0].length===3?void 0:r}},{key:"getCountryCodeForCallingCode",value:function(n){var r=this.getCountryCodesForCallingCode(n);if(r)return r[0]}},{key:"getNumberingPlanMetadata",value:function(n){var r=this.getCountryCodeForCallingCode(n);if(r)return this.getCountryMetadata(r);if(this.nonGeographic()){var i=this.nonGeographic()[n];if(i)return i}else{var o=this.countryCallingCodes()[n];if(o&&o.length===1&&o[0]==="001")return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(n){return this.numberingPlan.type(n)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(n){return this.selectNumberingPlan(n)}},{key:"hasSelectedNumberingPlan",value:function(){return this.numberingPlan!==void 0}}])})(),Lm=(function(){function t(e,n){Si(this,t),this.globalMetadataObject=n,this.metadata=e,_m.call(this,n.metadata)}return Pi(t,[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"_getDefaultCountryMetadataForThisCallingCode",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this._getDefaultCountryMetadataForThisCallingCode()}},{key:"IDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[1]}},{key:"defaultIDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[12]}},{key:"nationalNumberPattern",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:"possibleLengths",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:"_getFormats",value:function(n){return n[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var n=this,r=this._getFormats(this.metadata)||this._getFormats(this._getDefaultCountryMetadataForThisCallingCode())||[];return r.map(function(i){return new rx(i,n)})}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(n){return n[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this._getDefaultCountryMetadataForThisCallingCode())}},{key:"_nationalPrefixForParsing",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:"nationalPrefixForParsing",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:"_getNationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this._getDefaultCountryMetadataForThisCallingCode())}},{key:"leadingDigits",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return this.types()&&this.types().length===0?!1:!!this.types()}},{key:"type",value:function(n){if(this.hasTypes()&&Om(this.types(),n))return new ox(Om(this.types(),n),this)}},{key:"ext",value:function(){return this.v1||this.v2?Km:this.metadata[13]||Km}}])})(),rx=(function(){function t(e,n){Si(this,t),this._format=e,this.metadata=n}return Pi(t,[{key:"pattern",value:function(){return this._format[0]}},{key:"format",value:function(){return this._format[1]}},{key:"leadingDigitsPatterns",value:function(){return this._format[2]||[]}},{key:"nationalPrefixFormattingRule",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"nationalPrefixIsMandatoryWhenFormattingInNationalFormat",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"usesNationalPrefix",value:function(){return!!(this.nationalPrefixFormattingRule()&&!ix.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}])})(),ix=/^\(?\$1\)?$/,ox=(function(){function t(e,n){Si(this,t),this.type=e,this.metadata=n}return Pi(t,[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.type[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}])})();function Om(t,e){switch(e){case"FIXED_LINE":return t[0];case"MOBILE":return t[1];case"TOLL_FREE":return t[2];case"PREMIUM_RATE":return t[3];case"PERSONAL_NUMBER":return t[4];case"VOICEMAIL":return t[5];case"UAN":return t[6];case"PAGER":return t[7];case"VOIP":return t[8];case"SHARED_COST":return t[9]}}function zm(t){if(!t)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!qt(t)||!qt(t.countries))throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(qt(t)?"an object of shape: { "+Object.keys(t).join(", ")+" }":"a "+lx(t)+": "+t,"."))}var lx=function(e){return xn(e)};function zl(t,e){var n=new Pe(e);if(n.hasCountry(t))return n.selectNumberingPlan(t).countryCallingCode();throw new Error("Unknown country: ".concat(t))}function ax(t,e){return e.countries.hasOwnProperty(t)}function _m(t){var e=t.version;typeof e=="number"?(this.v1=e===1,this.v2=e===2,this.v3=e===3,this.v4=e===4):e?Mm(e,tx)===-1?this.v2=!0:Mm(e,nx)===-1?this.v3=!0:this.v4=!0:this.v1=!0}function ir(t,e,n){return sx(t,void 0,e,n)}function sx(t,e,n,r){n&&(r=new Pe(r.metadata),r.selectNumberingPlan(n));var i=r.type(e),o=i&&i.possibleLengths()||r.possibleLengths();if(!o)return"IS_POSSIBLE";var l=t.length,a=o[0];return a===l?"IS_POSSIBLE":a>l?"TOO_SHORT":o[o.length-1]<l?"TOO_LONG":o.indexOf(l,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}function ux(t,e,n){e===void 0&&(e={});var r=new Pe(n);if(e.v2){if(!t.countryCallingCode)throw new Error("Invalid phone number object passed");r.selectNumberingPlan(t.country||t.countryCallingCode)}else{if(!t.phone)return!1;if(t.country){if(!r.hasCountry(t.country))throw new Error("Unknown country: ".concat(t.country));r.selectNumberingPlan(t.country)}else{if(!t.countryCallingCode)throw new Error("Invalid phone number object passed");r.selectNumberingPlan(t.countryCallingCode)}}if(r.possibleLengths())return Vm(t.phone||t.nationalNumber,r);if(t.countryCallingCode&&r.isNonGeographicCallingCode(t.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}function Vm(t,e){return ir(t,void 0,e)==="IS_POSSIBLE"}function xt(t,e){return t=t||"",new RegExp("^(?:"+e+")$").test(t)}function dx(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=cx(t))||e){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
13
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
14
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Nx(t,e){if(t){if(typeof t=="string")return Rm(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Rm(t,e):void 0}}function Rm(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Wm(t,e,n){for(var r=new Pe(n),i=Dx(e),o;!(o=i()).done;){var l=o.value;if(r.selectNumberingPlan(l),r.leadingDigits()){if(t&&t.search(r.leadingDigits())===0)return l}else if(_l({phone:t,country:l},void 0,r.metadata))return l}}function Rl(t,e){var n=e.nationalNumber,r=e.metadata,i=r.getCountryCodesForCallingCode(t);if(i)return i.length===1?i[0]:Wm(n,i,r.metadata)}function Wl(t,e,n){var r=jl(t,n),i=r.carrierCode,o=r.nationalNumber;if(o!==t){if(!Tx(t,o,n))return{nationalNumber:t};if(n.numberingPlan.possibleLengths()&&(e||(e=Rl(n.numberingPlan.callingCode(),{nationalNumber:o,metadata:n})),!Ax(o,e,n)))return{nationalNumber:t}}return{nationalNumber:o,carrierCode:i}}function Tx(t,e,n){return!(xt(t,n.nationalNumberPattern())&&!xt(e,n.nationalNumberPattern()))}function Ax(t,e,n){switch(ir(t,e,n)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}function Um(t,e,n,r,i){if(!(e||n||r))return{number:t};var o=e||n?zl(e||n,i):r;if(t.indexOf(o)===0){var l=new Pe(i);l.selectNumberingPlan(e||n||r);var a=t.slice(o.length),u=Wl(a,void 0,l),d=u.nationalNumber,c=Wl(t,void 0,l),f=c.nationalNumber;if(!xt(f,l.nationalNumberPattern())&&xt(d,l.nationalNumberPattern())||ir(f,void 0,l)==="TOO_LONG")return{countryCallingCode:o,number:a}}return{number:t}}function Ul(t,e,n,r,i){if(!t)return{};var o;if(t[0]!=="+"){var l=jm(t,e||n,r,i);if(l&&l!==t)o=!0,t="+"+l;else{if(e||n||r){var a=Um(t,e,n,r,i),u=a.countryCallingCode,d=a.number;if(u)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:u,number:d}}return{number:t}}}if(t[1]==="0")return{};for(var c=new Pe(i),f=2;f-1<=vx&&f<=t.length;){var p=t.slice(1,f);if(c.hasCallingCode(p))return c.selectNumberingPlan(p),{countryCallingCodeSource:o?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:p,number:t.slice(f)};f++}return{}}function Gm(t){return t.replace(new RegExp("[".concat(Qe,"]+"),"g")," ").trim()}var Ym=/(\$\d)/;function Xm(t,e,n){var r=n.useInternationalFormat,i=n.withNationalPrefix;n.carrierCode,n.metadata;var o=t.replace(new RegExp(e.pattern()),r?e.internationalFormat():i&&e.nationalPrefixFormattingRule()?e.format().replace(Ym,e.nationalPrefixFormattingRule()):e.format());return r?Gm(o):o}var Ix=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function Bx(t,e,n){var r=new Pe(n);if(r.selectNumberingPlan(t||e),r.defaultIDDPrefix())return r.defaultIDDPrefix();if(Ix.test(r.IDDPrefix()))return r.IDDPrefix()}var Fx=";ext=",Cn=function(e){return"([".concat(Me,"]{1,").concat(e,"})")};function qm(t){var e="20",n="15",r="9",i="6",o="[ \\t,]*",l="[:\\..]?[ \\t,-]*",a="#?",u="(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)",d="(?:[xx##~~]|int|int)",c="[- ]+",f="[ \\t]*",p="(?:,{2}|;)",m=Fx+Cn(e),b=o+u+l+Cn(e)+a,g=o+d+l+Cn(r)+a,y=c+Cn(i)+"#",$=f+p+l+Cn(n)+a,x=f+"(?:,)+"+l+Cn(r)+a;return m+"|"+b+"|"+g+"|"+y+"|"+$+"|"+x}var Mx="["+Me+"]{"+Hl+"}",Kx="["+ki+"]{0,1}(?:["+Qe+"]*["+Me+"]){3,}["+Qe+Me+"]*",Lx=new RegExp("^["+ki+"]{0,1}(?:["+Qe+"]*["+Me+"]){1,2}$","i"),Ox=Kx+"(?:"+qm()+")?",zx=new RegExp("^"+Mx+"$|^"+Ox+"$","i");function _x(t){return t.length>=Hl&&zx.test(t)}function Vx(t){return Lx.test(t)}function Hx(t){var e=t.number,n=t.ext;if(!e)return"";if(e[0]!=="+")throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(e).concat(n?";ext="+n:"")}var Zm={formatExtension:function(e,n,r){return"".concat(e).concat(r.ext()).concat(n)}};function jx(t,e,n,r){n?n=Ux({},Zm,n):n=Zm;var i=new Pe(r);if(t.country&&t.country!=="001"){if(!i.hasCountry(t.country))throw new Error("Unknown country: ".concat(t.country));i.selectNumberingPlan(t.country)}else if(t.countryCallingCode)i.selectNumberingPlan(t.countryCallingCode);else return t.phone||"";var o=i.countryCallingCode(),l=n.v2?t.nationalNumber:t.phone,a;switch(e){case"NATIONAL":return l?(a=Di(l,t.carrierCode,"NATIONAL",i,n),Gl(a,t.ext,i,n.formatExtension)):"";case"INTERNATIONAL":return l?(a=Di(l,null,"INTERNATIONAL",i,n),a="+".concat(o," ").concat(a),Gl(a,t.ext,i,n.formatExtension)):"+".concat(o);case"E.164":return"+".concat(o).concat(l);case"RFC3966":return Hx({number:"+".concat(o).concat(l),ext:t.ext});case"IDD":if(!n.fromCountry)return;var u=Wx(l,t.carrierCode,o,n.fromCountry,i);return u?Gl(u,t.ext,i,n.formatExtension):void 0;default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(e,'"'))}}function Di(t,e,n,r,i){var o=Rx(r.formats(),t);return o?Xm(t,o,{useInternationalFormat:n==="INTERNATIONAL",withNationalPrefix:!(o.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&i&&i.nationalPrefix===!1),carrierCode:e,metadata:r}):t}function Rx(t,e){return Gx(t,function(n){if(n.leadingDigitsPatterns().length>0){var r=n.leadingDigitsPatterns()[n.leadingDigitsPatterns().length-1];if(e.search(r)!==0)return!1}return xt(e,n.pattern())})}function Gl(t,e,n,r){return e?r(t,e,n):t}function Wx(t,e,n,r,i){var o=zl(r,i.metadata);if(o===n){var l=Di(t,e,"NATIONAL",i);return n==="1"?n+" "+l:l}var a=Bx(r,void 0,i.metadata);if(a)return"".concat(a," ").concat(n," ").concat(Di(t,null,"INTERNATIONAL",i))}function Ux(){for(var t=1,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];for(;t<n.length;){if(n[t])for(var i in n[t])n[0][i]=n[t][i];t++}return n[0]}function Gx(t,e){for(var n=0;n<t.length;){if(e(t[n]))return t[n];n++}}function or(t){"@babel/helpers - typeof";return or=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},or(t)}function Jm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Qm(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Jm(Object(n),!0).forEach(function(r){Yx(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Jm(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Yx(t,e,n){return(e=eb(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Xx(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function qx(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,eb(r.key),r)}}function Zx(t,e,n){return e&&qx(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function eb(t){var e=Jx(t,"string");return or(e)=="symbol"?e:e+""}function Jx(t,e){if(or(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(or(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var tb=(function(){function t(e,n,r){if(Xx(this,t),!e)throw new TypeError("First argument is required");if(typeof e!="string")throw new TypeError("First argument must be a string");if(e[0]==="+"&&!n)throw new TypeError("`metadata` argument not passed");if(qt(n)&&qt(n.countries)){r=n;var i=e;if(!Qx.test(i))throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');var o=Ul(i,void 0,void 0,void 0,r),l=o.countryCallingCode,a=o.number;if(n=a,e=l,!n)throw new Error("Invalid `number` argument passed: too short")}if(!n)throw new TypeError("`nationalNumber` argument is required");if(typeof n!="string")throw new TypeError("`nationalNumber` argument must be a string");zm(r);var u=bx(e,r),d=u.country,c=u.callingCode;this.country=d,this.countryCallingCode=c,this.nationalNumber=n,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return r}}return Zx(t,[{key:"setExt",value:function(n){this.ext=n}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:gx(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return ux(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return px(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){var n=new Pe(this.getMetadata());return n.isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(n){return this.number===n.number&&this.ext===n.ext}},{key:"getType",value:function(){return _l(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(n,r){return jx(this,n,r?Qm(Qm({},r),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:"formatNational",value:function(n){return this.format("NATIONAL",n)}},{key:"formatInternational",value:function(n){return this.format("INTERNATIONAL",n)}},{key:"getURI",value:function(n){return this.format("RFC3966",n)}}])})(),Qx=/^\+\d+$/;function Yl(t){"@babel/helpers - typeof";return Yl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yl(t)}function e6(t,e,n){return Object.defineProperty(t,"prototype",{writable:!1}),t}function t6(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n6(t,e,n){return e=ar(e),r6(t,ql()?Reflect.construct(e,n||[],ar(t).constructor):e.apply(t,n))}function r6(t,e){if(e&&(Yl(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return i6(t)}function i6(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function o6(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&lr(t,e)}function Xl(t){var e=typeof Map=="function"?new Map:void 0;return Xl=function(r){if(r===null||!a6(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(e!==void 0){if(e.has(r))return e.get(r);e.set(r,i)}function i(){return l6(r,arguments,ar(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),lr(i,r)},Xl(t)}function l6(t,e,n){if(ql())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var i=new(t.bind.apply(t,r));return n&&lr(i,n.prototype),i}function ql(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ql=function(){return!!t})()}function a6(t){try{return Function.toString.call(t).indexOf("[native code]")!==-1}catch{return typeof t=="function"}}function lr(t,e){return lr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},lr(t,e)}function ar(t){return ar=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ar(t)}var Ct=(function(t){function e(n){var r;return t6(this,e),r=n6(this,e,[n]),Object.setPrototypeOf(r,e.prototype),r.name=r.constructor.name,r}return o6(e,t),e6(e)})(Xl(Error)),nb=new RegExp("(?:"+qm()+")$","i");function s6(t){var e=t.search(nb);if(e<0)return{};for(var n=t.slice(0,e),r=t.match(nb),i=1;i<r.length;){if(r[i])return{number:n,ext:r[i]};i++}}function u6(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=d6(t))||e){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
15
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
16
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
17
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
18
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
19
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
20
|
-
`.concat(JSON.stringify(
|
|
21
|
-
`.concat(JSON.stringify(
|
|
22
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
23
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
24
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function u8(t,e){if(t){if(typeof t=="string")return Pb(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pb(t,e):void 0}}function Pb(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function d8(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,o,l,a=[],u=!0,d=!1;try{if(o=(n=n.call(t)).next,e!==0)for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==e);u=!0);}catch(c){d=!0,i=c}finally{try{if(!u&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw i}}return a}}function c8(t){if(Array.isArray(t))return t}function f8(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p8(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,m8(r.key),r)}}function h8(t,e,n){return e&&p8(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function m8(t){var e=b8(t,"string");return br(e)=="symbol"?e:e+""}function b8(t,e){if(br(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(br(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var kb=(function(){function t(e,n){f8(this,t),this.metadata=new Pe(n);var r=this.getCountryAndCallingCode(e),i=a8(r,2),o=i[0],l=i[1];this.defaultCountry=o,this.defaultCallingCode=l,this.reset()}return h8(t,[{key:"getCountryAndCallingCode",value:function(n){var r,i;return n&&(qt(n)?(r=n.defaultCountry,i=n.defaultCallingCode):r=n),r&&!this.metadata.hasCountry(r)&&(r=void 0),[r,i]}},{key:"input",value:function(n){var r=this.parser.input(n,this.state),i=r.digits,o=r.justLeadingPlus;if(o)this.formattedOutput="+";else if(i){this.determineTheCountryIfNeeded(),this.state.nationalSignificantNumber&&this.formatter.narrowDownMatchingFormats(this.state);var l;if(this.metadata.hasSelectedNumberingPlan()&&(l=this.formatter.format(i,this.state)),l===void 0&&this.parser.reExtractNationalSignificantNumber(this.state)){this.determineTheCountryIfNeeded();var a=this.state.getNationalDigits();a&&(l=this.formatter.format(a,this.state))}this.formattedOutput=l?this.getFullNumber(l):this.getNonFormattedNumber()}return this.formattedOutput}},{key:"reset",value:function(){var n=this;return this.state=new o9({onCountryChange:function(i){n.country=i},onCallingCodeChange:function(i,o){n.metadata.selectNumberingPlan(o||i),n.formatter.reset(n.metadata.numberingPlan,n.state),n.parser.reset(n.metadata.numberingPlan)}}),this.formatter=new H9({state:this.state,metadata:this.metadata}),this.parser=new r8({defaultCountry:this.defaultCountry,defaultCallingCode:this.defaultCallingCode,metadata:this.metadata,state:this.state,onNationalSignificantNumberChange:function(){n.determineTheCountryIfNeeded(),n.formatter.reset(n.metadata.numberingPlan,n.state)}}),this.state.reset({country:this.defaultCountry,callingCode:this.defaultCallingCode}),this.formattedOutput="",this}},{key:"isInternational",value:function(){return this.state.international}},{key:"getCallingCode",value:function(){if(this.isInternational())return this.state.callingCode}},{key:"getCountryCallingCode",value:function(){return this.getCallingCode()}},{key:"getCountry",value:function(){var n=this.state.digits;if(n)return this._getCountry()}},{key:"_getCountry",value:function(){var n=this.state.country;return n}},{key:"determineTheCountryIfNeeded",value:function(){(!this.state.country||this.isCountryCallingCodeAmbiguous())&&this.determineTheCountry()}},{key:"getFullNumber",value:function(n){var r=this;if(this.isInternational()){var i=function(a){return r.formatter.getInternationalPrefixBeforeCountryCallingCode(r.state,{spacing:!!a})+a},o=this.state.callingCode;return i(o?n?"".concat(o," ").concat(n):o:"".concat(this.state.getDigitsWithoutInternationalPrefix()))}return n}},{key:"getNonFormattedNationalNumberWithPrefix",value:function(){var n=this.state,r=n.nationalSignificantNumber,i=n.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix,o=n.nationalPrefix,l=r,a=i||o;return a&&(l=a+l),l}},{key:"getNonFormattedNumber",value:function(){var n=this.state.nationalSignificantNumberIsModified;return this.getFullNumber(n?this.state.getNationalDigits():this.getNonFormattedNationalNumberWithPrefix())}},{key:"getNonFormattedTemplate",value:function(){var n=this.getNonFormattedNumber();if(n)return n.replace(/[\+\d]/g,et)}},{key:"isCountryCallingCodeAmbiguous",value:function(){var n=this.state.callingCode,r=this.metadata.getCountryCodesForCallingCode(n);return r&&r.length>1}},{key:"determineTheCountry",value:function(){var n=Rl(this.isInternational()?this.state.callingCode:this.defaultCallingCode,{nationalNumber:this.state.nationalSignificantNumber,metadata:this.metadata});n!==this.state.country&&(this.state.setCountry(n),n&&this.metadata.selectNumberingPlan(n))}},{key:"getNumberValue",value:function(){var n=this.state,r=n.digits,i=n.callingCode,o=n.country,l=n.nationalSignificantNumber;if(r){if(this.isInternational())return i?"+"+i+l:"+"+r;if(o||i){var a=o?this.metadata.countryCallingCode():i;return"+"+a+l}}}},{key:"getNumber",value:function(){var n=this.state,r=n.nationalSignificantNumber,i=n.carrierCode,o=n.callingCode;if(r){var l=this._getCountry();if(!(!l&&!o)){if(l&&l===this.defaultCountry){var a=this.metadata.numberingPlan.callingCode(),u=g8(a,r,this.metadata);u&&(l=u)}var d=new tb(l||o,r,this.metadata.metadata);return i&&(d.carrierCode=i),d}}}},{key:"isPossible",value:function(){var n=this.getNumber();return n?n.isPossible():!1}},{key:"isValid",value:function(){var n=this.getNumber();return n?n.isValid():!1}},{key:"validateLength",value:function(){var n=this.state,r=n.digits,i=n.nationalSignificantNumber;if(!r)return"NOT_A_NUMBER";if(!this.metadata.numberingPlan)return"INVALID_COUNTRY";if(!i)return"TOO_SHORT";var o=ir(i,void 0,this.metadata);if(o!=="IS_POSSIBLE")return o}},{key:"getNationalNumber",value:function(){return this.state.nationalSignificantNumber}},{key:"getChars",value:function(){return(this.state.international?"+":"")+this.state.digits}},{key:"getTemplate",value:function(){return this.formatter.getTemplate(this.state)||this.getNonFormattedTemplate()||""}}])})();function g8(t,e,n){var r=n.getCountryCodesForCallingCode(t);if(r.length>1)return Wm(e,r,n.metadata)}function y8(t){return new Pe(t).getCountries()}function Db(){return Ol(Q6,arguments)}function Ai(t){return kb.call(this,t,Fm)}Ai.prototype=Object.create(kb.prototype,{}),Ai.prototype.constructor=Ai;function $8(){return Ol(y8,arguments)}function v8(){return Ol(zl,arguments)}function x8(t){return t.toUpperCase().replace(/./g,e=>String.fromCodePoint(127397+e.charCodeAt(0)))}let Ii=null;function Nb(){if(Ii)return Ii;const t=typeof Intl<"u"&&"DisplayNames"in Intl?new Intl.DisplayNames(["en"],{type:"region"}):null;return Ii=$8().map(e=>({code:e,dial_code:`+${v8(e)}`,name:t?.of(e)??e,flag:x8(e)})).sort((e,n)=>e.name.localeCompare(n.name)),Ii}function Tb(t,e,n){let r=t.replace(/\D/g,"");const i=n.replace(/\D/g,"");r.startsWith(i)&&(r=r.slice(i.length)),r=r.replace(/^0+/,"");const o=15-i.length;if(r=r.slice(0,o),!r)return n;const a=new Ai(e).input(r);return`${n} ${a}`}function Ab(t,e){return t?Db(t,e)?.isValid()??!1:!1}function Ib(t,e){const n=Db(t,e);return n?.isValid()?n.number:void 0}function C8({size:t="md",label:e,required:n,hint:r,error:i,disabled:o=!1,placeholder:l,value:a="",defaultCountry:u="ID",countries:d,onChange:c,className:f,wrapperClassName:p}){const m=d??Nb(),[b,g]=h.useState(()=>m.find(C=>C.code===u)??m[0]),y=C=>{const k=Ab(C,b.code),P=k?Ib(C,b.code):void 0;c?.(C,k,P)},$=C=>{const k=Tb(C.target.value,b.code,b.dial_code);y(k)},x=()=>{a||c?.(b.dial_code,!1,void 0)},v=C=>{const k=Tb(a,C.code,C.dial_code);g(C);const P=Ab(k,C.code),N=P?Ib(k,C.code):void 0;c?.(k,P,N)};return h.createElement(rr,{size:t,label:e,required:n,hint:r,error:i,disabled:o,placeholder:l??"Enter phone number",inputMode:"numeric",value:a,onChange:$,onFocus:x,className:f,wrapperClassName:p,leftSlot:h.createElement(Y5,{size:t,disabled:o,countries:m,selected:b,onSelect:v})})}const E8=H(["flex items-center gap-1 shrink-0 border-l border-light-200 bg-transparent","text-light-800 cursor-pointer","hover:text-light-900","disabled:cursor-not-allowed disabled:text-light-400"],{variants:{size:{xs:"pl-2 text-caption-sm",sm:"pl-2 text-caption-lg",md:"pl-2 text-body-sm"}},defaultVariants:{size:"md"}}),w8="w-64",S8="select-none text-light-700";function P8({size:t,disabled:e,currencies:n,selected:r,onSelect:i}){return h.createElement(fi,null,h.createElement(dn,{isDisabled:e,"aria-label":`Currency: ${r.label} (${r.code})`,className:E8({size:t})},h.createElement("span",null,r.code),h.createElement(Cr,{size:14,"aria-hidden":"true"})),h.createElement($n,{placement:"bottom end"},h.createElement(Kl,{"aria-label":"Currency",className:V(w8,"max-h-60 overflow-y-auto"),items:n,onAction:o=>{const l=n.find(a=>a.code===o);l&&i(l)}},o=>h.createElement(Ll,{id:o.code,textValue:`${o.label} ${o.code}`},h.createElement("span",{className:"flex min-w-0 flex-1 items-center gap-2"},h.createElement("span",{className:"min-w-0 flex-1 truncate"},o.label),h.createElement("span",{className:"shrink-0 text-light-500"},o.code))))))}function ra(t){const e=new Intl.NumberFormat(t).formatToParts(123456789e-2),n=e.find(i=>i.type==="group")?.value??",",r=e.find(i=>i.type==="decimal")?.value??".";return{group:n,decimal:r}}function Bb(t,e){return t?t.replace(/\B(?=(\d{3})+(?!\d))/g,e):""}function k8(t,e){const{group:n,decimal:r}=ra(e);let i=t.split("").filter(d=>/\d/.test(d)||d===r).join("");const o=i.indexOf(r);if(o!==-1){const d=i.slice(0,o).split(r).join(""),c=i.slice(o+1).split(r).join("").slice(0,2);i=`${d}${r}${c}`}const[l,a]=i.split(r),u=Bb(l??"",n);return a!==void 0?`${u}${r}${a}`:u}function D8(t,e){const{group:n,decimal:r}=ra(e),i=t.split(n).join("").split(r).join("."),o=Number.parseFloat(i);return Number.isNaN(o)?0:o}function ia(t,e){if(t===void 0||Number.isNaN(t))return"";const{group:n,decimal:r}=ra(e),[i,o]=t.toString().split("."),l=Bb(i??"0",n);return o?`${l}${r}${o}`:l}function N8({size:t="md",label:e,required:n,hint:r,error:i,disabled:o=!1,placeholder:l,value:a,currency:u,currencies:d,onCurrencyChange:c,onChange:f,className:p,wrapperClassName:m}){const b=d.find(C=>C.code===u)??d[0],[g,y]=h.useState(()=>ia(a,b?.locale)),$=h.useRef(!1);h.useEffect(()=>{if($.current){$.current=!1;return}y(ia(a,b?.locale))},[a,b?.locale]);const x=C=>{$.current=!0;const k=k8(C.target.value,b?.locale);y(k),f?.(D8(k,b?.locale))},v=C=>{c?.(C.code),$.current=!0,y(ia(a,C.locale))};return h.createElement(rr,{size:t,label:e,required:n,hint:r,error:i,disabled:o,placeholder:l??"0.00",inputMode:"decimal",value:g,onChange:x,className:p,wrapperClassName:m,leftSlot:b?h.createElement("span",{className:S8},b.symbol):void 0,rightSlot:b?h.createElement(P8,{size:t,disabled:o,currencies:d,selected:b,onSelect:v}):void 0})}function T8({size:t="md",label:e,required:n,hint:r,disabled:i,error:o,className:l,wrapperClassName:a,value:u,maxLength:d,placeholder:c,onChange:f}){const p=u.length>d,m=o||p;return s.createElement(wm,{size:t,label:e,required:n,disabled:i,error:m,value:u,placeholder:c,onChange:f,className:l,wrapperClassName:a,hint:r,suffix:s.createElement("span",{className:q("text-caption-lg",p?"text-error-600":"text-light-400")},u.length,"/",d)})}const Fb=[{brand:"visa",pattern:/^4/,length:[13,16,19]},{brand:"mastercard",pattern:/^(5[1-5]|2[2-7])/,length:[16]},{brand:"amex",pattern:/^3[47]/,length:[15]},{brand:"discover",pattern:/^6(?:011|5)/,length:[16]},{brand:"jcb",pattern:/^35/,length:[16]},{brand:"diners",pattern:/^3(?:0[0-5]|[68])/,length:[14]},{brand:"unionpay",pattern:/^62/,length:[16,19]}];function A8(t){return Fb.find(({pattern:n})=>n.test(t))?.brand??null}function I8(t){if(!t)return!1;let e=0,n=!1;for(let r=t.length-1;r>=0;r--){let i=Number.parseInt(t[r]??"0",10);n&&(i*=2,i>9&&(i-=9)),e+=i,n=!n}return e%10===0}function B8(t,e){if(!e||!t)return!1;const n=Fb.find(r=>r.brand===e);return!n||!n.length.includes(t.length)?!1:I8(t)}function F8(t,e){return e==="amex"?[t.slice(0,4),t.slice(4,10),t.slice(10,15)].filter(Boolean).join(" "):t.replace(/(.{4})/g,"$1 ").trim()}const M8=19;function K8(t){const e=t.replace(/\D/g,"").slice(0,M8),n=A8(e),r=F8(e,n),i=B8(e,n);return{formatted:r,brand:n,isValid:i}}function L8({size:t="md",label:e="Card number",required:n,hint:r,error:i,disabled:o=!1,placeholder:l="Card number",value:a="",leftSlot:u,onChange:d,className:c,wrapperClassName:f}){const p=m=>{const{formatted:b,brand:g,isValid:y}=K8(m.target.value);d?.(b,g,y)};return h.createElement(rr,{size:t,label:e,required:n,hint:r,error:i,disabled:o,placeholder:l,value:a,onChange:p,inputMode:"numeric",autoComplete:"cc-number",className:c,wrapperClassName:f,leftSlot:u})}const oa=wm;oa.Prefix=P5,oa.Suffix=k5;const O8="flex flex-col gap-1 w-full",z8=H("flex items-center gap-1 font-bold text-sm",{variants:{error:{true:"",false:"text-light-800"}},defaultVariants:{error:!1}}),_8=H(["flex w-full items-start gap-2 border rounded-lg p-3 bg-white","transition-[border-color,border-width]","data-[invalid]:border-error-200 data-[focus-within]:data-[invalid]:border-2 data-[focus-within]:data-[invalid]:border-error-500","data-[disabled]:cursor-not-allowed data-[disabled]:bg-light-100"],{variants:{error:{true:"",false:"border-light-200 data-[focus-within]:border-2 data-[focus-within]:border-primary-500"}},defaultVariants:{error:!1}}),V8=H(["flex-1 min-h-[132px] bg-transparent outline-none text-caption-lg text-light-900","placeholder:text-light-500","disabled:text-light-400 disabled:cursor-not-allowed disabled:resize-none"],{variants:{resizable:{true:"resize-y",false:"resize-none"}},defaultVariants:{resizable:!0}}),H8=H("text-caption-lg",{variants:{error:{true:"text-error-500",false:"text-light-700"}},defaultVariants:{error:!1}}),j8=({error:t})=>q("flex w-full items-start gap-2 rounded-lg border bg-white p-2 transition-[border-color,border-width]",t?"data-[invalid]:border-error-200 data-[focus-within]:data-[invalid]:border-2 data-[focus-within]:data-[invalid]:border-error-500":"border-light-200 data-[focus-within]:border-2 data-[focus-within]:border-primary-500","data-[disabled]:bg-light-100 data-[disabled]:cursor-not-allowed"),R8=({error:t})=>q("flex items-center gap-1 text-caption-sm font-semibold",t?"":"text-light-800"),W8=t=>q("flex-1 min-h-[64px] bg-transparent outline-none text-sm text-light-900","placeholder:text-light-500",t?"resize-y":"resize-none"),U8="flex flex-col w-full max-w-[320px]",Mb=h.forwardRef(({label:t,required:e,hint:n,helpIcon:r,error:i=!1,disabled:o=!1,resizable:l=!0,compact:a=!1,rows:u,style:d,className:c,wrapperClassName:f,...p},m)=>{const b=u?{minHeight:`${u*20}px`}:void 0;return h.createElement("div",{className:q(a?U8:O8,f)},t&&h.createElement("label",{className:a?R8({error:i}):z8({error:i})},t,e&&h.createElement("span",{className:"text-error-400"},"*"),r),h.createElement(ko,{isDisabled:o,isInvalid:i,className:a?j8({error:i}):_8({error:i})},h.createElement(h$,{ref:m,disabled:o,rows:u,style:{...b,...d},className:q(a?W8(l&&!o):V8({resizable:l&&!o}),c),...p})),n&&h.createElement("p",{className:H8({error:i})},n))});Mb.displayName="Textarea";const G8=H("flex w-[320px] flex-col gap-1"),Y8=H("flex items-center gap-1 font-bold text-sm",{variants:{error:{true:"",false:"text-light-800"}}}),X8=H("flex items-stretch rounded-lg border bg-white transition-colors",{variants:{error:{true:"",false:"border-light-200"},disabled:{true:"bg-light-100",false:""}}}),q8=H("flex items-center px-3 text-sm text-light-500 rounded-l-lg select-none",{variants:{size:{sm:"h-9",md:"h-11"},disabled:{true:"bg-light-100",false:"bg-white"}}}),Z8="w-px bg-light-200",J8=H(["flex flex-1 items-center gap-2 px-3 rounded-r-lg","transition-shadow","focus-within:ring-2 focus-within:ring-offset-0"],{variants:{size:{sm:"h-9",md:"h-11"},error:{true:"border border-error-200 focus-within:ring-error-500",false:"focus-within:ring-primary-500"},disabled:{true:"cursor-not-allowed",false:""}}}),Q8=H("flex-1 bg-transparent outline-none text-light-900 placeholder:text-light-500",{variants:{disabled:{true:"text-light-400 cursor-not-allowed",false:""}}}),e7=H("text-caption-lg",{variants:{error:{true:"text-error-600",false:"text-light-700"}}});function t7({size:t="md",label:e,required:n,hint:r,error:i=!1,disabled:o=!1,placeholder:l="www.cekat.ai",value:a,rightIcon:u,onChange:d,className:c,wrapperClassName:f}){return s.createElement("div",{className:q(G8(),f)},e&&s.createElement("label",{className:Y8({error:i})},e,n&&s.createElement("span",{className:"text-error-400"},"*")),s.createElement("div",{className:X8({error:i,disabled:o})},s.createElement("div",{className:q8({size:t})},"http://"),s.createElement("div",{className:Z8}),s.createElement("div",{className:J8({size:t,error:i,disabled:o})},s.createElement("input",{value:a,onChange:d,placeholder:l,disabled:o,className:q(Q8({disabled:o}),c)}),u&&s.createElement("div",{className:"flex items-center text-light-400"},u))),r&&s.createElement("p",{className:e7({error:i})},r))}const n7=H("flex w-[320px] flex-col gap-1"),r7=H("flex items-center gap-1 font-bold text-sm",{variants:{error:{true:"text-error-600",false:"text-light-800"}}}),i7=H("flex items-stretch rounded-lg border border-light-200 bg-white transition-colors",{variants:{disabled:{true:"bg-light-100",false:""}}}),o7=H(["flex flex-1 items-center gap-2 px-3 rounded-l-lg","transition-shadow","focus-within:ring-2 focus-within:ring-offset-0"],{variants:{size:{sm:"h-9",md:"h-11"},error:{true:"border border-error-200 focus-within:ring-error-500",false:"focus-within:ring-primary-500"},disabled:{true:"cursor-not-allowed",false:""}}}),l7=H("w-px transition-colors",{variants:{error:{true:"focus:bg-error-200 group-focus-within:bg-error-500",false:"focus:bg-light-200 group-focus-within:bg-primary-500"}}}),a7=H("flex items-center gap-1 px-3 text-sm text-light-700 rounded-r-lg select-none",{variants:{size:{sm:"h-9",md:"h-11"},disabled:{true:"bg-white",false:"bg-white"}}}),s7=H("flex-1 bg-transparent outline-none text-light-900 placeholder:text-light-500",{variants:{disabled:{true:"text-light-400 cursor-not-allowed",false:""}}}),u7=H("text-caption-lg",{variants:{error:{true:"text-error-600",false:"text-light-700"}}});function d7({size:t="md",label:e,required:n,hint:r,error:i=!1,disabled:o=!1,placeholder:l="www.cekat.ai",value:a,rightIcon:u,suffix:d,onChange:c,className:f,wrapperClassName:p}){return s.createElement("div",{className:q(n7(),p)},e&&s.createElement("label",{className:r7({error:i})},e,n&&s.createElement("span",{className:"text-error-400"},"*")),s.createElement("div",{className:i7({disabled:o})},s.createElement("div",{className:o7({size:t,error:i,disabled:o})},s.createElement("input",{value:a,onChange:c,placeholder:l,disabled:o,className:q(s7({disabled:o}),f)}),u&&s.createElement("div",{className:"text-light-400"},u)),s.createElement("div",{className:l7({error:i})}),s.createElement("div",{className:a7({size:t,disabled:o})},d)),r&&s.createElement("p",{className:u7({error:i})},r))}const c7=H("flex w-full flex-col gap-1"),f7=H("flex items-center gap-1 text-sm font-bold text-light-800"),Kb=H(["flex w-full items-center border bg-white text-left","transition-[border-color,border-width]"],{variants:{size:{xs:"h-7 gap-1 rounded px-2 text-caption-sm",sm:"h-9 gap-2 rounded-lg px-3 text-caption-lg",md:"h-11 gap-2 rounded-lg px-3 text-body-sm"},open:{true:"border-2 border-primary-500",false:"border-light-200 focus-within:border-2 focus-within:border-primary-500"},disabled:{true:"cursor-not-allowed bg-light-100",false:"cursor-pointer"}},defaultVariants:{size:"md",open:!1,disabled:!1}}),p7=H(["absolute left-0 top-full z-10 mt-2 w-full overflow-y-auto","rounded-lg border border-light-200 bg-white py-1","shadow-[0_12px_16px_-4px_rgba(16,24,40,0.08),0_4px_6px_-2px_rgba(16,24,40,0.03)]"],{variants:{size:{xs:"max-h-52",sm:"max-h-64",md:"max-h-80"}},defaultVariants:{size:"md"}}),h7=H("text-caption-lg text-light-700"),m7=({className:t})=>h.createElement("svg",{viewBox:"0 0 20 20",fill:"none",className:t},h.createElement("path",{d:"M5 7.5L10 12.5L15 7.5",stroke:"currentColor",strokeWidth:"1.67",strokeLinecap:"round",strokeLinejoin:"round"})),b7=({className:t})=>h.createElement("svg",{viewBox:"0 0 20 20",fill:"none",className:t},h.createElement("path",{d:"M17.5 17.5L14.1 14.1M16 9.25C16 12.98 12.98 16 9.25 16C5.52 16 2.5 12.98 2.5 9.25C2.5 5.52 5.52 2.5 9.25 2.5C12.98 2.5 16 5.52 16 9.25Z",stroke:"currentColor",strokeWidth:"1.67",strokeLinecap:"round",strokeLinejoin:"round"})),la={xs:"size-4",sm:"size-5",md:"size-6"},Lb={xs:"size-4",sm:"size-5",md:"size-5"},g7={xs:"text-caption-sm",sm:"text-caption-lg",md:"text-body-sm"},y7={xs:"h-7",sm:"h-[30px]",md:"h-[34px]"},Ob=({size:t,open:e,disabled:n})=>q("flex w-full items-center gap-2 rounded-lg border bg-white px-2 text-left transition-[border-color,border-width]",g7[t],y7[t],e?"border-2 border-primary-500":"border-light-200 focus-within:border-2 focus-within:border-primary-500",n?"cursor-not-allowed bg-light-100":"cursor-pointer"),$7=()=>"flex items-center gap-1 text-caption-sm font-semibold text-light-800",v7="flex w-full max-w-[320px] flex-col";function x7({size:t="md",type:e="default",label:n,required:r,helpIcon:i,hint:o,placeholder:l="Select option",disabled:a=!1,compact:u=!1,leadingIcon:d,options:c,value:f=null,onChange:p,values:m=[],onValuesChange:b,hideTagsOnFocus:g=!1,className:y,wrapperClassName:$}){const[x,v]=h.useState(!1),[C,k]=h.useState(""),P=h.useRef(null),N=h.useRef(null),w=e==="tags",D=e==="search"||w,I=c.find(W=>W.id===f)??null,L=c.filter(W=>m.includes(W.id)),z=w&&(!g||!x),j=w&&g&&!x&&L.length>0,E=C?c.filter(W=>`${W.label} ${W.supportingText??""}`.toLowerCase().includes(C.toLowerCase())):c,A=()=>{v(!1),k("")};h.useEffect(()=>{if(!x)return;const W=ne=>{P.current?.contains(ne.target)||A()};return document.addEventListener("mousedown",W),()=>document.removeEventListener("mousedown",W)},[x]),h.useEffect(()=>{x&&D&&N.current?.focus()},[x,D]);const Y=()=>{a||(x?A():v(!0))},M=W=>{W.disabled||(w?(b?.(m.includes(W.id)?m.filter(ne=>ne!==W.id):[...m,W.id]),k(""),N.current?.focus()):(p?.(W),A()))},X=W=>{if(W.key==="Enter"){W.preventDefault();const ne=E.find(T=>!T.disabled);x&&ne&&M(ne)}else W.key==="Backspace"&&w&&!C&&m.length?b?.(m.slice(0,-1)):x||v(!0)},S=W=>W.avatar?h.createElement("img",{src:W.avatar,alt:"",className:q(la[t],"shrink-0 rounded-full object-cover")}):W.icon?h.createElement("span",{className:q(la[t],"flex shrink-0 items-center justify-center",a?"text-light-400":"text-light-500")},W.icon):W.dot?h.createElement("span",{className:"size-2 shrink-0 rounded-full",style:{backgroundColor:a?"#d0d5dd":W.dot}}):null,B=I?S(I):d?h.createElement("span",{className:q(la[t],"flex shrink-0 items-center justify-center",a?"text-light-400":"text-light-500")},d):null,U=I?h.createElement("span",{className:"flex min-w-0 items-center gap-2 whitespace-nowrap"},h.createElement("span",{className:q("truncate font-medium",a?"text-light-400":"text-light-800")},I.label),I.supportingText&&h.createElement("span",{className:a?"text-light-400":"text-light-700"},I.supportingText)):h.createElement("span",{className:a?"text-light-400":"text-light-500"},l),oe=x&&h.createElement("div",{role:"listbox",className:p7({size:t})},E.length===0&&h.createElement("div",{className:"flex h-12 items-center px-4 text-light-500"},"No options found"),E.map(W=>{const ne=w?m.includes(W.id):W.id===f,T={isHovered:!1,isPressed:!1,isSelected:ne,isFocusVisible:!1,isDisabled:!!W.disabled,selectionMode:w?"multiple":"single"};return h.createElement("button",{key:W.id,type:"button",role:"option","aria-selected":ne,disabled:W.disabled,onClick:()=>M(W),className:q(Bl,W.disabled&&"cursor-not-allowed")},h.createElement(Fl,{state:T,nativeInteraction:!0},h.createElement(h.Fragment,null,S(W),h.createElement("span",{className:"truncate"},W.label),W.supportingText&&h.createElement("span",{"data-slot":"supporting-text"},W.supportingText))))}));return h.createElement("div",{ref:P,className:q(u?v7:c7(),$)},n&&h.createElement("label",{className:u?$7():f7()},n,r&&h.createElement("span",{className:"text-error-400"},"*"),i),h.createElement("div",{className:"relative",onKeyDown:W=>{W.key==="Escape"&&A()}},e==="default"?h.createElement("button",{type:"button","aria-haspopup":"listbox","aria-expanded":x,disabled:a,onClick:Y,className:q(u?Ob({size:t,open:x,disabled:a}):Kb({size:t,open:x,disabled:a}),y)},B,h.createElement("span",{className:"flex min-w-0 flex-1 items-center"},U),h.createElement(m7,{className:q(Lb[t],"shrink-0 text-light-500")})):h.createElement("div",{role:"combobox","aria-haspopup":"listbox","aria-expanded":x,onClick:Y,className:q(u?Ob({size:t,open:x,disabled:a}):Kb({size:t,open:x,disabled:a}),y)},h.createElement(b7,{className:q(Lb[t],"shrink-0",a?"text-light-400":"text-light-500")}),z&&L.length>0&&h.createElement("div",{className:"flex shrink items-center gap-1 overflow-x-auto whitespace-nowrap [scrollbar-width:none] [&::-webkit-scrollbar]:hidden"},L.map(W=>h.createElement(Al,{key:W.id,size:"sm",disabled:a,icon:W.avatar?h.createElement("img",{src:W.avatar,alt:"",className:"size-4 shrink-0 rounded-full object-cover"}):void 0,onClose:()=>M(W)},W.label))),!w&&!x&&I?h.createElement("span",{className:"flex min-w-0 flex-1 items-center"},U):j?null:h.createElement("input",{ref:N,value:C,disabled:a,placeholder:l,onChange:W=>{k(W.target.value),x||v(!0)},onKeyDown:X,className:"min-w-8 flex-1 bg-transparent text-light-900 outline-none placeholder:text-light-500 disabled:cursor-not-allowed disabled:placeholder:text-light-400"})),oe),o&&h.createElement("p",{className:h7()},o))}function C7({id:t,value:e,textValue:n,"aria-label":r,isDisabled:i,onAction:o,className:l,style:a,leadingSlot:u,children:d,trailingSlot:c},f){const p=h.useContext(Ml),m={id:t,value:e,textValue:n,"aria-label":r,isDisabled:i,onAction:o,className:l,style:a,leadingSlot:u,children:d,trailingSlot:c};if(p==="menu")return h.createElement(Bm,{ref:f,...m});if(p==="listbox")return h.createElement(Im,{ref:f,...m});throw new Error("CollectionItem must be rendered inside a supported collection parent.")}const E7=h.forwardRef(C7),zb=H("relative",{variants:{layout:{floating:["flex w-full flex-col gap-4 p-4","rounded-xl border shadow-xs","sm:flex-row sm:items-start"],"full-width":"w-full border-b"}},defaultVariants:{layout:"floating"}}),w7={default:{surface:"bg-light-50",border:"border-light-300",iconSurface:"border border-light-200 bg-white shadow-xs",iconSurfaceOnLight:"border border-light-200 bg-white shadow-xs",iconText:"text-light-800"},brand:{surface:"bg-primary-50",border:"border-primary-300",iconSurface:"bg-primary-100",iconSurfaceOnLight:"bg-white",iconText:"text-primary-500"},gray:{surface:"bg-light-50",border:"border-light-300",iconSurface:"bg-light-100",iconSurfaceOnLight:"bg-white",iconText:"text-light-800"},error:{surface:"bg-error-50",border:"border-error-300",iconSurface:"bg-error-50",iconSurfaceOnLight:"bg-white",iconText:"text-error-500"},warning:{surface:"bg-warning-50",border:"border-warning-300",iconSurface:"bg-warning-100",iconSurfaceOnLight:"bg-white",iconText:"text-warning-500"},success:{surface:"bg-success-50",border:"border-success-300",iconSurface:"bg-success-50",iconSurfaceOnLight:"bg-white",iconText:"text-success-500"}},S7="bg-white border-light-200",P7="relative mx-auto flex w-full max-w-[1280px] flex-col gap-4 px-4 py-4 sm:flex-row sm:items-center sm:gap-3 sm:px-8 sm:py-3",k7=H("flex shrink-0 items-center justify-center",{variants:{layout:{floating:"","full-width":"hidden sm:flex"},shape:{square:"",circle:""},variant:{featured:"",plain:""}},compoundVariants:[{variant:"featured",layout:"floating",class:"size-8"},{variant:"featured",layout:"full-width",class:"size-10"},{variant:"featured",shape:"circle",class:"rounded-full"},{variant:"featured",shape:"square",layout:"floating",class:"rounded-md"},{variant:"featured",shape:"square",layout:"full-width",class:"rounded-lg"}],defaultVariants:{layout:"floating",shape:"square",variant:"featured"}}),_b=H("flex min-w-0 flex-1",{variants:{layout:{floating:"flex-col gap-3","full-width":"items-center gap-4"}},defaultVariants:{layout:"floating"}}),D7=H("flex min-w-0",{variants:{layout:{floating:"flex-col gap-1","full-width":"flex-col gap-0.5 sm:flex-row sm:flex-wrap sm:gap-x-1.5"},closable:{true:"",false:""}},compoundVariants:[{layout:"floating",closable:!0,class:"pr-8"},{layout:"full-width",closable:!0,class:"pr-8 sm:pr-0"}],defaultVariants:{layout:"floating",closable:!1}}),N7="text-caption-lg font-bold text-light-800",T7="text-caption-lg text-light-600",A7=H("flex gap-3",{variants:{layout:{floating:"flex-wrap items-center","full-width":""},actionVariant:{link:"flex-wrap items-center",button:""}},compoundVariants:[{layout:"full-width",actionVariant:"button",class:"flex-col-reverse sm:flex-row sm:items-center"}],defaultVariants:{layout:"floating",actionVariant:"link"}}),I7=H(["inline-flex items-center justify-center gap-1 bg-transparent p-0","text-caption-lg font-bold transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2"],{variants:{emphasis:{primary:"text-primary-500 hover:text-primary-800",secondary:"text-light-800 hover:text-light-900"}},defaultVariants:{emphasis:"secondary"}}),B7=H(["flex size-9 shrink-0 items-center justify-center rounded-lg","bg-transparent text-light-500 transition-colors","hover:bg-light-50 hover:text-light-700","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2"],{variants:{layout:{floating:"absolute right-[7px] top-[7px]","full-width":"absolute right-2 top-2 sm:static"}},defaultVariants:{layout:"floating"}}),F7={default:En,brand:En,gray:En,error:vr,warning:vr,success:Fi},Vb=({title:t,description:e,color:n="default",layout:r="floating",background:i="white",icon:o,iconVariant:l="featured",showIcon:a=!0,primaryAction:u,secondaryAction:d,actionVariant:c,actions:f,onClose:p,closeLabel:m="Close",className:b,...g})=>{const y=F7[n],$=r==="floating"?16:20,x=c??(r==="floating"?"link":"button"),v=w7[n],C=i==="light",k=C?q(v.surface,v.border):S7,P=(z,j)=>z?x==="link"?s.createElement("button",{type:"button",onClick:z.onClick,className:I7({emphasis:j})},z.label):s.createElement(Oe,{size:"sm",variant:j==="primary"?"solid":"outline",onPress:z.onClick,className:r==="full-width"?"w-full sm:w-auto":void 0},z.label):null,w=!!(f||u||d)?s.createElement("div",{className:A7({layout:r,actionVariant:x})},f??s.createElement(s.Fragment,null,P(d,"secondary"),P(u,"primary"))):null,D=a&&(o||y)?s.createElement("div",{className:q(k7({layout:r,variant:l,shape:n==="default"?"square":"circle"}),v.iconText,l==="featured"&&(C?v.iconSurfaceOnLight:v.iconSurface))},o??s.createElement(y,{size:$,stroke:2})):null,I=p?s.createElement("button",{type:"button","aria-label":m,onClick:p,className:B7({layout:r})},s.createElement(wn,{size:16,stroke:2})):null,L=s.createElement("div",{className:D7({layout:r,closable:!!p})},s.createElement("p",{className:N7},t),e&&s.createElement("p",{className:T7},e));return r==="full-width"?s.createElement("div",{role:"alert",className:q(zb({layout:r}),k,b),...g},s.createElement("div",{className:P7},s.createElement("div",{className:_b({layout:r})},D,L),(w||I)&&s.createElement("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:gap-2"},w,I))):s.createElement("div",{role:"alert",className:q(zb({layout:r}),k,b),...g},D,s.createElement("div",{className:_b({layout:r})},L,w),I)};Vb.displayName="Alert";const M7={success:{container:"bg-success-100",badge:"bg-success-900",iconColor:"text-success-100",text:"text-success-900",defaultTitle:"Success!"},error:{container:"bg-error-100",badge:"bg-error-800",iconColor:"text-error-100",text:"text-error-800",defaultTitle:"Error!"},warning:{container:"bg-warning-100",badge:"bg-warning-800",iconColor:"text-warning-100",text:"text-warning-800",defaultTitle:"Warning!"},info:{container:"bg-info-100",badge:"bg-info-900",iconColor:"text-info-100",text:"text-info-900",defaultTitle:"Info"}},K7=H("relative flex w-full max-w-[400px] items-center gap-2 rounded-md px-2 py-3 shadow-[0px_4px_4px_0px_rgba(0,0,0,0.04)]"),L7="mt-0.5 flex size-6 shrink-0 items-center justify-center rounded-full",O7="flex-1 break-words font-nunito text-sm leading-5",z7=H(["absolute -left-4 -top-3 flex size-6 shrink-0 items-center justify-center rounded-full","shadow-[0px_4px_4px_0px_rgba(0,0,0,0.04)]","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2"],{variants:{variant:{success:"bg-success-100 text-success-900",error:"bg-error-100 text-error-800",warning:"bg-warning-100 text-warning-800",info:"bg-info-100 text-info-900"}}}),_7={success:Fi,error:wn,warning:wg,info:En},Hb=({variant:t,message:e,title:n,onClose:r,closeLabel:i="Close",className:o})=>{const l=M7[t],a=_7[t];return h.createElement("div",{role:"status",className:V(K7(),l.container,o)},h.createElement("div",{className:V(L7,l.badge)},h.createElement(a,{size:16,stroke:3,className:l.iconColor})),h.createElement("p",{className:V(O7,l.text)},h.createElement("span",{className:"font-bold"},n??l.defaultTitle),h.createElement("span",{className:"ml-1 font-normal"},e)),r&&h.createElement("button",{type:"button","aria-label":i,onClick:r,className:z7({variant:t})},h.createElement(wn,{size:14,stroke:2.5})))};Hb.displayName="Toast";const aa=H(["relative flex w-full max-w-[504px] items-start gap-4 rounded-xl border border-light-200","bg-white p-4 shadow-lg"],{variants:{type:{image:"flex-col gap-4 p-0 sm:flex-row"}}}),V7={"primary-icon":{shape:"rounded-full",bg:"bg-primary-100",iconText:"text-primary-500"},"gray-icon":{shape:"rounded-lg border border-light-200 shadow-xs",bg:"bg-white",iconText:"text-light-700"},progress:{shape:"rounded-lg border border-light-200 shadow-xs",bg:"bg-white",iconText:"text-light-700"},success:{shape:"rounded-full",bg:"bg-success-50",iconText:"text-success-500"},warning:{shape:"rounded-full",bg:"bg-warning-100",iconText:"text-warning-500"},error:{shape:"rounded-full",bg:"bg-error-50",iconText:"text-error-500"},avatar:null,image:null,"no-icon":null},jb="font-nunito font-bold text-caption-lg text-light-800",Rb="font-nunito font-normal text-caption-lg text-light-600",H7="flex flex-wrap items-center gap-3",j7=H(["inline-flex items-center justify-center gap-1 bg-transparent p-0","text-caption-lg font-semibold transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2"],{variants:{emphasis:{primary:"text-primary-500 hover:text-primary-800",secondary:"text-light-800 hover:text-light-900"}},defaultVariants:{emphasis:"secondary"}}),R7="absolute right-[7px] top-[7px] flex size-9 shrink-0 items-center justify-center rounded-lg bg-transparent text-light-500 transition-colors hover:bg-light-50 hover:text-light-700 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2",W7="h-2 w-full rounded-full bg-light-200",U7="h-2 rounded-full bg-primary-500",G7="font-nunito text-caption-lg font-medium text-light-600",Y7="h-[122px] w-full shrink-0 overflow-hidden rounded-md bg-light-50 sm:h-auto sm:w-20 sm:self-stretch sm:rounded-none sm:rounded-l-xl",X7="flex flex-1 flex-col gap-3 p-4 sm:py-4 sm:pl-5 sm:pr-4",q7={"primary-icon":En,progress:Ng,success:Fi,warning:vr,error:vr},Wb=({action:t,emphasis:e})=>h.createElement("button",{type:"button",onClick:t.onClick,className:j7({emphasis:e})},t.label),Ub=({type:t,title:e,supportingText:n,primaryAction:r,secondaryAction:i,onClose:o,closeLabel:l="Close",icon:a,avatarSrc:u,avatarAlt:d,timestamp:c,imageSrc:f,imageAlt:p,progressValue:m,progressLabel:b,className:g})=>{const y=V7[t],$=q7[t],v=!!(r||i)?h.createElement("div",{className:H7},i&&h.createElement(Wb,{action:i,emphasis:"secondary"}),r&&h.createElement(Wb,{action:r,emphasis:"primary"})):null,C=o?h.createElement("button",{type:"button","aria-label":l,onClick:o,className:R7},h.createElement(Xt,{icon:wn,size:"sm",strokeWidth:2})):null,k=h.createElement("div",{className:"flex flex-col gap-1"},h.createElement("p",{className:jb},e),n&&h.createElement("p",{className:Rb},n)),P=t==="progress"?h.createElement("div",{className:"flex flex-col items-end gap-2"},h.createElement("div",{className:W7},h.createElement("div",{className:U7,style:{width:`${Math.min(100,Math.max(0,m??0))}%`}})),b&&h.createElement("p",{className:G7},b)):null,N=t==="avatar"?h.createElement(wi,{src:u,alt:d,size:"md",status:"online"}):y?h.createElement("div",{className:V("flex size-8 shrink-0 items-center justify-center",y.shape,y.bg)},a??($&&h.createElement(Xt,{icon:$,size:"sm",strokeWidth:2,className:y.iconText}))):null;return t==="image"?h.createElement("div",{role:"status",className:V(aa({type:t}),g)},h.createElement("div",{className:Y7},f&&h.createElement("img",{src:f,alt:p??"",className:"size-full object-cover"})),h.createElement("div",{className:X7},k,v),C):t==="avatar"?h.createElement("div",{role:"status",className:V(aa(),g)},N,h.createElement("div",{className:"flex min-w-0 flex-1 flex-col gap-3"},h.createElement("div",{className:"flex flex-col gap-1"},h.createElement("div",{className:"flex flex-wrap items-center gap-2"},h.createElement("p",{className:jb},e),c&&h.createElement("span",{className:"font-nunito text-caption-lg text-light-500"},c)),n&&h.createElement("p",{className:Rb},n)),v),C):h.createElement("div",{role:"status",className:V(aa(),g)},N,h.createElement("div",{className:"flex min-w-0 flex-1 flex-col gap-3"},k,P,v),C)};Ub.displayName="NotificationToast";const Z7=V("relative overflow-auto rounded-lg border border-light-200 bg-white"),J7=V("w-full border-collapse text-left"),Q7=V("sticky top-0 z-10 bg-light-100"),eC=V("data-[empty]:h-full"),tC=V("border-t border-light-200 bg-light-100 [&_tr]:!bg-light-100"),nC=V("relative min-h-[36px] whitespace-nowrap px-5 py-2 align-middle","border-b border-r border-light-200 last:border-r-0","has-[[data-resizable-direction]]:border-r-0","font-nunito text-caption-lg leading-caption-lg text-light-800","select-none","data-[hovered]:bg-light-200","data-[focus-visible]:outline data-[focus-visible]:outline-2","data-[focus-visible]:outline-primary-500 data-[focus-visible]:-outline-offset-2"),rC={start:"text-left",center:"text-center",end:"text-right"},iC=V("sticky z-30 bg-light-100 data-[hovered]:bg-light-200"),Gb={left:"border-r-0 shadow-[inset_-1px_0_0_0_#D0D5DD]",right:"border-l-0 shadow-[inset_1px_0_0_0_#D0D5DD]"},oC=V("sticky z-20 bg-white","data-[hovered]:bg-light-100","group-data-[selected]/row:bg-primary-100","group-data-[selected]/row:data-[hovered]:bg-primary-200"),lC=V("flex min-w-0 items-center justify-between gap-3 self-stretch"),Yb={inactive:"text-light-500",active:"text-light-800"},aC=V("group/row","bg-white data-[hovered]:bg-light-100","data-[selected]:bg-primary-100","data-[selected]:data-[hovered]:bg-primary-200","data-[disabled]:bg-white data-[disabled]:text-light-500","data-[focus-visible]:outline data-[focus-visible]:outline-2","data-[focus-visible]:outline-primary-500","data-[focus-visible]:-outline-offset-2"),sC=V("group/cell relative min-h-[42px] min-w-0 px-5 py-2 align-middle","border-b border-r border-light-200 last:border-r-0","font-nunito text-caption-lg leading-caption-lg text-light-800","data-[disabled]:text-light-500","data-[focus-visible]:outline data-[focus-visible]:outline-2","data-[focus-visible]:outline-primary-500","data-[focus-visible]:-outline-offset-2"),uC=V("flex min-h-[26px] min-w-0 items-center gap-3 self-stretch"),dC=V("group-first/cell:group-data-[selected]/row:shadow-[inset_2px_0_0_0_#1352BF]"),cC="block truncate",fC=V("absolute right-[-3px] top-0 h-full w-2 shrink-0 cursor-col-resize touch-none","data-[resizable-direction=left]:cursor-w-resize","data-[resizable-direction=right]:cursor-e-resize","after:absolute after:right-1/2 after:top-0 after:h-full after:w-px after:translate-x-1/2 after:bg-light-300","after:transition-[width,background-color] after:duration-100 after:ease-out","data-[hovered]:after:w-0.5 data-[hovered]:after:bg-light-500","data-[resizing]:after:w-0.5 data-[resizing]:after:bg-primary-500","data-[focus-visible]:outline data-[focus-visible]:outline-2","data-[focus-visible]:outline-primary-500 data-[focus-visible]:-outline-offset-2"),pC=V("w-full border-t border-light-200 py-3 text-center"),gr={container:V("flex flex-col items-center gap-3 px-6 py-10 text-center"),iconWrap:V("flex h-14 w-14 items-center justify-center rounded-full bg-light-100 text-light-500 [&>svg]:h-6 [&>svg]:w-6"),title:V("font-nunito text-body-sm font-semibold text-light-800"),description:V("max-w-sm font-nunito text-caption-lg text-light-600"),actions:V("mt-2 flex items-center gap-2")};function Xb({sticky:t,stickyOffset:e=0},n){return t?{...n,[t]:e}:n}const qb=s.forwardRef(({className:t,...e},n)=>h.createElement(By,{ref:n,...e,className:V(Z7,t)}));qb.displayName="TableContainer";const Zb=s.forwardRef(({className:t,...e},n)=>h.createElement(My,{ref:n,...e,className:V(J7,t)}));Zb.displayName="Table";const hC=s.forwardRef(({className:t,...e},n)=>h.createElement(_y,{ref:n,...e,className:V(Q7,t)})),mC=s.forwardRef(({className:t,...e},n)=>h.createElement(Gy,{ref:n,...e,className:V(eC,t)})),bC=s.forwardRef(({className:t,...e},n)=>h.createElement(Xy,{ref:n,...e,className:V(tC,t)})),gC={onPointerDown:t=>t.stopPropagation(),onMouseDown:t=>t.stopPropagation(),onClick:t=>t.stopPropagation(),onKeyDown:t=>t.stopPropagation()},Jb=s.forwardRef(({className:t,align:e="start",children:n,allowsSorting:r,actions:i,sticky:o,stickyOffset:l,style:a,...u},d)=>h.createElement(Ry,{ref:d,allowsSorting:r,...u,style:Xb({sticky:o,stickyOffset:l},a),className:V(nC,rC[e],o&&iC,o&&Gb[o],t)},c=>{const{allowsSorting:f,sortDirection:p}=c;let m=typeof n=="function"?n(c):n;h.isValidElement(m)&&m.type===h.Fragment&&(m=m.props.children);const b=h.Children.toArray(m),g=b.filter($=>h.isValidElement($)&&$.type===Bi),y=b.filter($=>!(h.isValidElement($)&&$.type===Bi));return h.createElement("div",{className:lC},h.createElement("span",{className:"min-w-0 truncate"},y),f&&h.createElement("span",{className:V("shrink-0",p?Yb.active:Yb.inactive)},p==="ascending"&&h.createElement(Pg,{size:14,"aria-hidden":"true"}),p==="descending"&&h.createElement(Sg,{size:14,"aria-hidden":"true"}),!p&&h.createElement(kg,{size:14,"aria-hidden":"true"})),i&&h.createElement("span",{className:"shrink-0",...gC},i),g)}));Jb.displayName="Column";const yC=s.forwardRef(({className:t,...e},n)=>h.createElement(qy,{ref:n,...e,className:V(aC,t)})),Qb=s.forwardRef(({className:t,children:e,sticky:n,stickyOffset:r,style:i,...o},l)=>h.createElement(Zy,{ref:l,...o,style:Xb({sticky:n,stickyOffset:r},i),className:V(sC,dC,n&&oC,n&&Gb[n],t)},a=>h.createElement("div",{className:uC},typeof e=="function"?e(a):e)));Qb.displayName="Cell";const Bi=s.forwardRef(({className:t,...e},n)=>h.createElement(Wy,{ref:n,...e,className:V(fC,t)}));Bi.displayName="ColumnResizer";const eg=s.forwardRef(({className:t,children:e,isLoading:n,...r},i)=>h.createElement(i$,{ref:i,isLoading:n,...r,className:V(pC,t)},e??(n&&h.createElement(Sa,{size:18,className:"inline-block animate-spin text-light-500","aria-label":"Loading more"}))));eg.displayName="TableLoadMoreItem";const tg=h.forwardRef(({icon:t,title:e,description:n,actions:r,className:i},o)=>h.createElement("div",{ref:o,className:V(gr.container,i)},t&&h.createElement("div",{className:gr.iconWrap},t),h.createElement("p",{className:gr.title},e),n&&h.createElement("p",{className:gr.description},n),r&&h.createElement("div",{className:gr.actions},r)));tg.displayName="EmptyState";const $C=H(["fixed inset-0 flex items-center justify-center","bg-black/40 p-4"]),vC=H(["relative flex max-h-full items-stretch overflow-hidden","rounded-xl border border-light-200 bg-white","shadow-[0px_2px_4px_-1px_rgba(16,24,40,0.08),0px_8px_24px_-4px_rgba(16,24,40,0.14)]","outline-none"]),xC=H(["flex min-w-0 shrink-0 flex-col self-stretch overflow-hidden outline-none"],{variants:{size:{sm:"w-[500px]",md:"w-[640px]",lg:"w-[800px]"}},defaultVariants:{size:"sm"}}),CC=H(["absolute right-[7px] top-[7px] z-10"]),EC=H(["flex w-full shrink-0 items-center gap-3 px-6 py-4"]),wC=H(["min-h-0 w-full flex-1 overflow-y-auto"]),SC=H(["flex shrink-0 items-center justify-center self-stretch overflow-hidden py-2 pr-2"]),PC=H(["flex h-full w-[240px] items-center justify-center overflow-hidden","rounded-lg border border-light-200 bg-primary-50"]),kC=H(["flex w-full shrink-0 items-center gap-3 px-6 py-4"],{variants:{layout:{"horizontal-fill":"[&>*]:flex-1",horizontal:"justify-end","vertical-fill":"flex-col items-stretch","right-aligned":"","right-aligned-checkbox":"","wizard-navigation":"","single-cta":""}},defaultVariants:{layout:"horizontal-fill"}}),ng=h.forwardRef(({className:t,style:e,size:n="sm",showCloseButton:r=!0,isDismissable:i=!0,imagePanel:o,children:l,"aria-label":a,"aria-labelledby":u,...d},c)=>h.createElement(K0,{...d,isDismissable:i,className:$C(),style:{zIndex:vv}},h.createElement(K1,{ref:c,className:vC()},h.createElement(gf,{"aria-label":a,"aria-labelledby":u,style:e,className:V(xC({size:n}),t)},f=>h.createElement(h.Fragment,null,r&&h.createElement(Oe,{type:"button",size:"sm",variant:"ghost",iconOnly:!0,onPress:f.close,"aria-label":"Close",className:CC()},h.createElement(Oe.Icon,null,h.createElement(wn,{size:16}))),typeof l=="function"?l(f):l)),o)));ng.displayName="Modal";const DC=({title:t,subtitle:e,icon:n,className:r})=>h.createElement("div",{className:V(EC(),r)},n&&h.createElement("span",{className:"flex size-6 shrink-0 items-center justify-center","aria-hidden":"true"},n),h.createElement("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5"},h.createElement(L4,{slot:"title",className:"text-[18px] font-bold leading-5 text-light-800"},t),e&&h.createElement("p",{className:"text-caption-sm text-light-500"},e))),NC=({children:t,className:e})=>h.createElement("div",{className:V(wC(),e)},t),TC=({children:t,className:e})=>h.createElement("div",{className:SC()},h.createElement("div",{className:V(PC(),e)},t)),rg=h.createElement("div",{className:"h-px min-w-px flex-1","aria-hidden":"true"}),AC=({layout:t="horizontal-fill",destructive:e=!1,isPending:n=!1,cancelLabel:r,onCancel:i,confirmLabel:o,onConfirm:l,isConfirmDisabled:a=!1,backLabel:u="Back",onBack:d,checkbox:c,className:f})=>{const p=h.createElement(Oe,{type:"button",size:"sm",tone:e?"destructive":"primary",isDisabled:a||n,isPending:n,onPress:l},h.createElement(Oe.Text,null,o)),m=r&&h.createElement(Oe,{type:"button",size:"sm",variant:"outline",isDisabled:n,onPress:i},h.createElement(Oe.Text,null,r)),b=r&&h.createElement(Oe,{type:"button",size:"sm",variant:"plain",isDisabled:n,onPress:i},h.createElement(Oe.Text,null,r)),g=h.createElement(Oe,{type:"button",size:"sm",variant:"outline",isDisabled:n,onPress:d},h.createElement(Oe.Text,null,u));let y;switch(t){case"single-cta":y=h.createElement("div",{className:"w-full"},p);break;case"vertical-fill":y=h.createElement(h.Fragment,null,h.createElement("div",{className:"w-full"},p),r&&h.createElement("div",{className:"flex w-full items-center justify-center"},b));break;case"right-aligned":y=h.createElement(h.Fragment,null,b,rg,p);break;case"right-aligned-checkbox":y=h.createElement(h.Fragment,null,c&&h.createElement("div",{className:"flex min-w-0 flex-1 items-start"},c),h.createElement("div",{className:"flex shrink-0 items-center gap-3"},m,p));break;case"wizard-navigation":y=h.createElement(h.Fragment,null,b,rg,h.createElement("div",{className:"flex shrink-0 items-center gap-3"},g,p));break;default:y=h.createElement(h.Fragment,null,m,p);break}return h.createElement("div",{className:V(kC({layout:t}),f)},y)},yr=ng;yr.Header=DC,yr.Body=NC,yr.ImagePanel=TC,yr.Footer=AC;function IC({className:t,style:e,...n},r){return h.createElement(Ml.Provider,{value:"listbox"},h.createElement(v2,{ref:r,...n,style:e,className:V(Pm,t)}))}const ig=h.forwardRef(IC);function BC({className:t,style:e,content:n="none",icon:r,shortcut:i,children:o,...l},a){const u=n==="icon"?r:n==="selection"?d=>h.createElement("span",{className:km},d.isSelected&&h.createElement(xr,{size:16,"aria-hidden":"true"})):void 0;return h.createElement(Im,{ref:a,...l,style:e,className:t,leadingSlot:u,trailingSlot:i?h.createElement("span",{className:Dm},i):void 0},o)}const sa=h.forwardRef(BC),FC=({className:t})=>h.createElement(id,{className:V(Nm,t)}),MC=H(["flex w-full items-center justify-between gap-2 border bg-white text-left","text-light-900 outline-none cursor-pointer","transition-[border-color,box-shadow]","border-light-200 group-data-[open]:border-primary-500","group-data-[focus-visible]:shadow-focus","group-data-[invalid]:border-error-200 group-data-[invalid]:group-data-[open]:border-error-500 group-data-[invalid]:group-data-[focus-visible]:border-error-500","group-data-[disabled]:cursor-not-allowed group-data-[disabled]:bg-light-100 group-data-[disabled]:text-light-400"],{variants:{size:{xs:"h-7 rounded px-3 text-caption-sm",sm:"h-9 rounded-lg px-3 text-caption-lg",md:"h-11 rounded-lg px-3 text-body-sm"}},defaultVariants:{size:"md"}}),KC="flex size-4 shrink-0 items-center justify-center text-light-500",LC={xs:18,sm:20,md:24},OC=H("min-w-0 flex-1 truncate",{variants:{placeholder:{true:"text-light-400",false:"font-medium text-light-800"}},defaultVariants:{placeholder:!1}}),zC=H("shrink-0 text-light-500 transition-transform",{variants:{open:{true:"rotate-180",false:""}},defaultVariants:{open:!1}});function _C({className:t,style:e,children:n,...r},i){return h.createElement(q1,{ref:i,...r,style:e,className:V("group",t)},n)}const VC=h.forwardRef(_C),og=h.forwardRef(({className:t,style:e,size:n="md",icon:r,children:i,...o},l)=>h.createElement(dn,{ref:l,...o,style:e,className:V(MC({size:n}),t)},a=>h.createElement(h.Fragment,null,r&&h.createElement("span",{className:KC},r),typeof i=="function"?i(a):i,h.createElement(Cr,{size:LC[n],"aria-hidden":"true",className:zC({open:a.isPressed})}))));og.displayName="SelectTrigger";function HC({className:t,style:e,...n},r){return h.createElement(Q1,{ref:r,...n,style:e,className:i=>V(OC({placeholder:i.isPlaceholder}),t)})}const jC=h.forwardRef(HC);function RC({className:t,...e}){return h.createElement(sa,{...e,content:"selection",className:t})}const WC=H(["flex w-full flex-nowrap items-center gap-2 border bg-white text-left","border-light-200 text-light-900","transition-[border-color,box-shadow]","group-data-[open]:border-primary-500","group-data-[focus-visible]:shadow-focus","group-data-[invalid]:border-error-200 group-data-[invalid]:group-data-[open]:border-error-500 group-data-[invalid]:group-data-[focus-visible]:border-error-500","group-data-[disabled]:cursor-not-allowed group-data-[disabled]:bg-light-100 group-data-[disabled]:text-light-400"],{variants:{size:{xs:"h-7 rounded px-3 text-caption-sm",sm:"h-9 rounded-lg px-3 text-caption-lg",md:"h-11 rounded-lg px-3 text-body-sm"}},defaultVariants:{size:"md"}}),UC=H("flex shrink-0 items-center justify-center text-light-500",{variants:{size:{xs:"size-5",sm:"size-6",md:"size-7"}},defaultVariants:{size:"md"}}),GC="flex min-w-0 flex-nowrap items-center gap-1.5 overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",YC="min-w-[4rem] flex-1 bg-transparent font-medium text-light-800 outline-none placeholder:font-normal placeholder:text-light-400 disabled:cursor-not-allowed";function XC({className:t,style:e,children:n,...r},i){return h.createElement(C1,{ref:i,...r,style:e,className:V("group",t)},n)}const qC=h.forwardRef(XC),lg=h.forwardRef(({className:t,size:e="md",icon:n,children:r,onClick:i,...o},l)=>{const a=h.useCallback(u=>{i?.(u),u.target.closest("button, input")||u.currentTarget.querySelector("input")?.focus()},[i]);return h.createElement(ko,{ref:l,...o,onClick:a,className:V(WC({size:e}),t)},n&&h.createElement("span",{className:UC({size:e})},n),r)});lg.displayName="ComboBoxTrigger";const ag=h.forwardRef(({className:t,style:e,onKeyDown:n,...r},i)=>{const o=h.useContext(ol),l=h.useCallback(a=>{if(n?.(a),a.key==="Backspace"&&!a.defaultPrevented&&a.currentTarget.value===""&&o?.selectionManager.selectionMode==="multiple"){const u=o.selectedItems[o.selectedItems.length-1];u&&o.selectionManager.toggleSelection(u.key)}},[n,o]);return h.createElement(Do,{ref:i,...r,style:e,onKeyDown:l,className:V(YC,t)})});ag.displayName="ComboBoxInput";const ZC=({children:t})=>{const e=h.useContext(ol);return e?h.createElement("div",{className:GC},e.selectedItems.map(n=>n?h.createElement(h.Fragment,{key:n.key},t({key:n.key,textValue:n.textValue??String(n.key),onRemove:()=>e.selectionManager.toggleSelection(n.key)})):null)):null};function JC({className:t,...e}){return h.createElement(sa,{...e,content:"selection",className:t})}const sg=h.createContext(null);function ug(){const t=h.useContext(sg);if(!t)throw new Error("MultiSelect components must be rendered inside MultiSelect.");return t}function QC({"aria-label":t,items:e,children:n,selectedKeys:r,defaultSelectedKeys:i,onSelectionChange:o,disabledKeys:l,getTextValue:a,filter:u,searchValue:d,defaultSearchValue:c="",onSearchChange:f,isDisabled:p=!1,className:m}){const b=h.useMemo(()=>Array.from(e),[e]),g=r!==void 0,[y,$]=h.useState(()=>new Set(i)),x=h.useMemo(()=>g?new Set(r):y,[r,g,y]),v=d!==void 0,[C,k]=h.useState(c),P=v?d:C,[N,w]=h.useState(!1),D=h.useCallback(A=>{v||k(A),f?.(A)},[v,f]),I=h.useCallback(A=>{w(A),!A&&!v&&k("")},[v]),L=h.useCallback(A=>{if(A==="all")return;const Y=new Set(A);g||$(Y),o?.(Y)},[g,o]),z=h.useMemo(()=>{const A=P.trim().toLocaleLowerCase();return A?b.filter(Y=>u?u(Y,P):a(Y).toLocaleLowerCase().includes(A)):b},[u,a,b,P]),j=h.useMemo(()=>new Set(l),[l]),E={label:t,items:b,filteredItems:z,selectedKeys:x,disabledKeys:j,onSelectionChange:L,query:P,setQuery:D,isOpen:N,setOpen:I,isDisabled:p};return h.createElement(sg.Provider,{value:E},h.createElement("div",{className:V("w-full",m)},h.createElement(f1,{isOpen:N,onOpenChange:I},n)))}const eE=H(["flex w-full items-center justify-between gap-2 border bg-white text-left","font-medium text-light-800 outline-none transition-[border-color,box-shadow]","hover:border-light-300 focus-visible:shadow-focus","disabled:cursor-not-allowed disabled:bg-light-100 disabled:text-light-400"],{variants:{size:{xs:"h-7 rounded px-3 text-caption-sm",sm:"h-9 rounded-lg px-3 text-caption-lg",md:"h-11 rounded-lg px-3 text-body-sm"},open:{true:"border-primary-500",false:"border-light-200"}},defaultVariants:{size:"md",open:!1}}),tE="overflow-hidden rounded-lg border border-light-200 bg-white shadow-lg outline-none",nE="outline-none",rE="p-2 pb-1",iE="flex h-9 items-center gap-2 rounded-lg border border-light-200 px-3 focus-within:border-primary-500 focus-within:shadow-focus",oE="min-w-0 flex-1 bg-transparent text-caption-lg text-light-800 outline-none placeholder:text-light-400",lE={xs:18,sm:20,md:20},dg=h.forwardRef(({children:t,size:e="md",className:n,style:r,...i},o)=>{const{isOpen:l,isDisabled:a}=ug();return h.createElement(dn,{ref:o,isDisabled:a,style:r,className:V(eE({size:e,open:l}),n),...i},h.createElement("span",{className:"min-w-0 flex-1 truncate"},t),h.createElement(Cr,{size:lE[e],"aria-hidden":"true",className:V("shrink-0 text-light-500 transition-transform",l&&"rotate-180")}))});dg.displayName="MultiSelectTrigger";function aE({children:t,searchPlaceholder:e="Search...",emptyState:n="No options found",className:r}){const{label:i,filteredItems:o,selectedKeys:l,disabledKeys:a,onSelectionChange:u,query:d,setQuery:c,setOpen:f}=ug(),p=h.useRef(null),m=b=>{if(b.key!=="ArrowDown")return;const g=p.current?.querySelector('[role="option"]:not([data-disabled])');g&&(b.preventDefault(),g.focus())};return h.createElement($n,{matchTriggerWidth:!0,placement:"bottom start",className:V(tE,r)},h.createElement(gf,{"aria-label":i,className:nE},h.createElement("div",{onKeyDownCapture:b=>{const g=b.target;if(b.key.toLowerCase()==="a"&&(b.ctrlKey||b.metaKey)&&!!g.closest('[role="listbox"]')){b.preventDefault(),b.stopPropagation();return}b.key==="Escape"&&(b.preventDefault(),b.stopPropagation(),f(!1))}},h.createElement("div",{className:rE},h.createElement(j1,{"aria-label":`Search ${i.toLocaleLowerCase()}`,value:d,onChange:c},h.createElement("div",{className:iE},h.createElement(Tg,{size:18,"aria-hidden":"true",className:"shrink-0 text-light-500"}),h.createElement(Do,{autoFocus:!0,placeholder:e,className:oE,onKeyDown:m})))),h.createElement(ig,{ref:p,"aria-label":`${i} options`,items:o,selectionMode:"multiple",selectedKeys:l,disabledKeys:a,onSelectionChange:u,escapeKeyBehavior:"none",renderEmptyState:()=>n},t))))}const sE=H(["relative inline-flex w-fit items-center font-semibold","transition-[color,background-color] duration-150","focus-visible:outline-none","[-webkit-tap-highlight-color:transparent]","data-[disabled]:pointer-events-none data-[disabled]:cursor-not-allowed data-[disabled]:text-light-400"],{variants:{size:{xs:"gap-1 text-caption-sm",sm:"gap-1 text-caption-lg",md:"gap-1.5 text-body-sm"},variant:{text:["bg-transparent text-light-600","data-[hovered]:text-light-900","data-[current]:text-light-800","focus-visible:rounded focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"],ghost:["bg-transparent text-light-500 rounded-md","data-[hovered]:bg-light-50 data-[hovered]:text-light-700","data-[current]:bg-light-50 data-[current]:text-light-800","focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"],"ghost-primary":["bg-transparent text-primary-500 rounded-md","data-[hovered]:bg-primary-100 data-[hovered]:text-primary-800","data-[current]:bg-primary-100 data-[current]:text-primary-800","focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"]},underline:{none:"",hover:"data-[hovered]:underline underline-offset-2",always:"underline underline-offset-2"}},compoundVariants:[{variant:"ghost",size:"xs",class:"px-1.5 py-0.5"},{variant:"ghost",size:"sm",class:"px-2 py-1"},{variant:"ghost",size:"md",class:"px-2.5 py-1.5"},{variant:"ghost-primary",size:"xs",class:"px-1.5 py-0.5"},{variant:"ghost-primary",size:"sm",class:"px-2 py-1"},{variant:"ghost-primary",size:"md",class:"px-2.5 py-1.5"}],defaultVariants:{size:"sm",variant:"text",underline:"none"}}),ua=h.forwardRef(({children:t,className:e,variant:n="text",size:r="sm",underline:i="none",...o},l)=>h.createElement(C4,{...o,ref:l,className:Li(e,a=>V(sE({variant:n,size:r,underline:i}),a))},t));ua.displayName="Link";const cg=h.createContext({separator:"chevron",variant:"text",size:"sm"}),fg=()=>h.useContext(cg),uE="flex flex-wrap items-center",dE="inline-flex items-center gap-1.5",cE=H("shrink-0 text-light-400",{variants:{type:{chevron:"size-4",slash:"size-3.5"}},defaultVariants:{type:"chevron"}}),fE="inline-flex size-5 shrink-0 items-center justify-center [&_svg]:size-full",pg=({"aria-label":t="Breadcrumb",separator:e="chevron",variant:n="text",size:r="sm",isDisabled:i,className:o,children:l})=>{const a=h.useMemo(()=>({separator:e,variant:n,size:r}),[e,n,r]);return h.createElement("nav",{"aria-label":t},h.createElement(cg.Provider,{value:a},h.createElement(S4,{isDisabled:i,className:V(uE,o)},l)))};pg.displayName="Breadcrumbs";const da=({type:t="chevron",className:e})=>{const n=t==="slash"?Ag:Dg;return h.createElement("span",{"aria-hidden":"true",className:V(cE({type:t}),e)},h.createElement(n,{className:"size-full",stroke:2}))};da.displayName="BreadcrumbSeparator";const hg=({className:t,children:e})=>{const{separator:n}=fg();return h.createElement(P4,{className:V(dE,t)},({isCurrent:r})=>h.createElement(h.Fragment,null,e,!r&&h.createElement(da,{type:n})))};hg.displayName="Breadcrumb";const mg=({variant:t,size:e,icon:n,children:r,...i})=>{const o=fg();return h.createElement(ua,{variant:t??o.variant,size:e??o.size,...i},n&&h.createElement("span",{className:fE,"aria-hidden":"true"},n),r)};mg.displayName="BreadcrumbLink";const pE={xs:24,sm:32,md:40,lg:48,xl:56},hE={xs:12,sm:16,md:20,lg:24,xl:28},bg={brand:{light:"bg-primary-100",dark:"bg-primary-500",glass:"bg-primary-100/60 backdrop-blur-sm"},gray:{light:"bg-light-100",dark:"bg-light-600",modern:"bg-white border border-light-200 shadow-xs"},error:{light:"bg-error-50",dark:"bg-error-500"},warning:{light:"bg-warning-100",dark:"bg-warning-600"},success:{light:"bg-success-50",dark:"bg-success-500"}},gg={brand:{light:"text-primary-500",dark:"text-white",glass:"text-primary-700"},gray:{light:"text-light-700",dark:"text-white",modern:"text-light-700"},error:{light:"text-error-500",dark:"text-white"},warning:{light:"text-warning-600",dark:"text-white"},success:{light:"text-success-500",dark:"text-white"}};function mE(t,e){return bg[t][e]??bg[t].light??""}function bE(t,e){return gg[t][e]??gg[t].light??""}const gE=H("relative inline-flex shrink-0 items-center justify-center",{variants:{type:{light:"rounded-full",dark:"rounded-lg",modern:"rounded-lg",glass:"rounded-full"}},defaultVariants:{type:"light"}}),yg=({icon:t,size:e="md",color:n="brand",type:r="light",className:i})=>{const o=pE[e],l=hE[e];return h.createElement("div",{"aria-hidden":!0,className:q(gE({type:r}),mE(n,r),i),style:{width:o,height:o}},h.createElement(Xt,{icon:t,strokeWidth:2,className:bE(n,r),style:{width:l,height:l}}))};yg.displayName="FeaturedIcon";const yE={xs:20,sm:24,md:28,lg:32},$E={xs:9,sm:11,md:12,lg:14},vE={primary:{default:"bg-primary-100",line:"bg-transparent border border-primary-300",filled:"bg-primary-500"},gray:{default:"bg-light-100",line:"bg-transparent border border-light-300",filled:"bg-light-600"},success:{default:"bg-success-50",line:"bg-transparent border border-success-300",filled:"bg-success-500"}},xE={primary:{default:"text-primary-500",line:"text-primary-500",filled:"text-white"},gray:{default:"text-light-700",line:"text-light-700",filled:"text-white"},success:{default:"text-success-500",line:"text-success-500",filled:"text-white"}};function CE(t,e){return vE[t][e]}function EE(t,e){return xE[t][e]}const wE=H("relative inline-flex shrink-0 items-center justify-center rounded-full"),$g=({size:t="sm",color:e="primary",type:n="default",className:r})=>{const i=yE[t],o=$E[t];return h.createElement("div",{"aria-hidden":!0,className:q(wE(),CE(e,n),r),style:{width:i,height:i}},h.createElement(Xt,{icon:xr,strokeWidth:2.5,className:EE(e,n),style:{width:o,height:o}}))};$g.displayName="CheckIcon";const SE={sm:8,md:10,lg:12},PE={sm:6,md:8,lg:10},kE=H("relative shrink-0 rounded-full bg-current",{variants:{outline:{true:"ring-2 ring-white",false:""}},defaultVariants:{outline:!1}}),vg=({size:t="sm",outline:e=!1,className:n})=>{const r=SE[t],i=PE[t];return h.createElement("span",{"aria-hidden":!0,className:"relative inline-flex shrink-0 items-center justify-center",style:{width:r,height:r}},h.createElement("span",{className:q(kE({outline:e}),n),style:{width:i,height:i}}))};vg.displayName="Dot",R.Alert=Vb,R.Avatar=wi,R.AvatarGroup=um,R.AvatarLabelGroup=dm,R.AvatarProfilePhoto=cm,R.Badge=rm,R.BadgeGroup=im,R.BaseInput=rr,R.Breadcrumb=hg,R.BreadcrumbLink=mg,R.BreadcrumbSeparator=da,R.Breadcrumbs=pg,R.Button=Oe,R.Cell=Qb,R.CheckIcon=$g,R.Checkbox=qh,R.CollectionItem=E7,R.Column=Jb,R.ColumnResizer=Bi,R.ComboBox=qC,R.ComboBoxInput=ag,R.ComboBoxItem=JC,R.ComboBoxTags=ZC,R.ComboBoxTrigger=lg,R.Dot=vg,R.EmptyState=tg,R.FeaturedIcon=yg,R.Icon=Xt,R.Input=oa,R.InputCardNumber=L8,R.InputCounter=T8,R.InputDropdown=x7,R.InputPhone=C8,R.InputPrice=N8,R.Link=ua,R.ListBox=ig,R.ListBoxItem=sa,R.ListBoxSeparator=FC,R.Loading=om,R.Menu=Kl,R.MenuHeader=R5,R.MenuItem=Ll,R.MenuSeparator=j5,R.MenuTrigger=fi,R.Modal=yr,R.MultiSelect=QC,R.MultiSelectPopover=aE,R.MultiSelectTrigger=dg,R.NotificationToast=Ub,R.Popover=$n,R.RadioGroup=pv,R.RadioGroupItem=Jh,R.Row=yC,R.Select=VC,R.SelectItem=RC,R.SelectTrigger=og,R.SelectValue=jC,R.SelectionIndicator=Z4,R.Tab=fm,R.TabBrowser=$m,R.TabBrowserBar=vm,R.TabBrowserPreview=xm,R.TabList=pm,R.Table=Zb,R.TableBody=mC,R.TableContainer=qb,R.TableFooter=bC,R.TableHeader=hC,R.TableLoadMoreItem=eg,R.Tag=Al,R.Textarea=Mb,R.Toast=Hb,R.Toggle=Qh,R.Tooltip=Ci,R.WebsiteCopyInput=d7,R.WebsiteInput=t7,R.buttonIconSizePx=lv,R.cellTruncate=cC,R.getDefaultCountryOptions=Nb,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})}));
|
|
12
|
+
}`.trim(),document.head.prepend(i);let l=c=>{if(!(c.touches.length===2||n)){if(!t||t===document.documentElement||t===document.body){c.preventDefault();return}t.scrollHeight===t.clientHeight&&t.scrollWidth===t.clientWidth&&c.preventDefault()}},o=c=>{let f=W(c),m=c.relatedTarget;m&&gr(m)?(m.focus({preventScroll:!0}),b4(m,gr(f))):m||f.parentElement?.closest("[tabindex]")?.focus({preventScroll:!0})},s=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(c){let f=ce(),m=f!=null&&gr(f);s.call(this,{...c,preventScroll:!0}),(!c||!c.preventScroll)&&b4(this,m)};let d=at(Zo(document,"touchstart",r,{passive:!1,capture:!0}),Zo(document,"touchmove",l,{passive:!1,capture:!0}),Zo(document,"blur",o,!0));return()=>{e(),d(),i.remove(),HTMLElement.prototype.focus=s}}function ka(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Zo(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function b4(e,t){t||!Yr?g4(e):Yr.addEventListener("resize",()=>g4(e),{once:!0})}function g4(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let r=ot(n);if(r!==document.documentElement&&r!==document.body&&r!==n){let i=r.getBoundingClientRect(),a=n.getBoundingClientRect();if(a.top<i.top||a.bottom>i.top+n.clientHeight){let l=i.bottom;Yr&&(l=Math.min(l,Yr.offsetTop+Yr.height));let o=a.top-i.top-((l-i.top)/2-a.height/2);r.scrollTo({top:Math.max(0,Math.min(r.scrollHeight-r.clientHeight,r.scrollTop+o)),behavior:"smooth"})}}n=r.parentElement}}function y9(e,t){let{triggerRef:n,popoverRef:r,groupRef:i,isNonModal:a,isKeyboardDismissDisabled:l,shouldCloseOnInteractOutside:o,...s}=e,d=s.trigger==="SubmenuTrigger",{overlayProps:c,underlayProps:f}=h4({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!a||d,isKeyboardDismissDisabled:l,shouldCloseOnInteractOutside:o},i??r),{overlayProps:m,arrowProps:h,placement:p,triggerAnchorPoint:g}=f9({...s,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:a&&!d?t.close:null,getTargetRect:s.getTargetRect??(t.point?()=>new DOMRect(t.point.x,t.point.y,0,0):void 0)});p4({isDisabled:a||!t.isOpen}),u.useEffect(()=>{if(t.isOpen&&r.current)return a?t9(i?.current??r.current):Ho([i?.current??r.current],{shouldUseInert:!0})},[a,t.isOpen,r,i]);let{focusWithinProps:y}=jn(e);return{popoverProps:q(c,m,y),arrowProps:h,underlayProps:f,placement:p,triggerAnchorPoint:g}}var y4={};y4={dismiss:"تجاهل"};var $4={};$4={dismiss:"Отхвърляне"};var v4={};v4={dismiss:"Odstranit"};var x4={};x4={dismiss:"Luk"};var C4={};C4={dismiss:"Schließen"};var D4={};D4={dismiss:"Απόρριψη"};var E4={};E4={dismiss:"Dismiss"};var w4={};w4={dismiss:"Descartar"};var S4={};S4={dismiss:"Lõpeta"};var P4={};P4={dismiss:"Hylkää"};var k4={};k4={dismiss:"Rejeter"};var B4={};B4={dismiss:"התעלם"};var N4={};N4={dismiss:"Odbaci"};var A4={};A4={dismiss:"Elutasítás"};var F4={};F4={dismiss:"Ignora"};var T4={};T4={dismiss:"閉じる"};var I4={};I4={dismiss:"무시"};var M4={};M4={dismiss:"Atmesti"};var K4={};K4={dismiss:"Nerādīt"};var L4={};L4={dismiss:"Lukk"};var O4={};O4={dismiss:"Negeren"};var z4={};z4={dismiss:"Zignoruj"};var V4={};V4={dismiss:"Descartar"};var _4={};_4={dismiss:"Dispensar"};var R4={};R4={dismiss:"Revocare"};var j4={};j4={dismiss:"Пропустить"};var H4={};H4={dismiss:"Zrušiť"};var U4={};U4={dismiss:"Opusti"};var W4={};W4={dismiss:"Odbaci"};var G4={};G4={dismiss:"Avvisa"};var Z4={};Z4={dismiss:"Kapat"};var Y4={};Y4={dismiss:"Скасувати"};var q4={};q4={dismiss:"取消"};var X4={};X4={dismiss:"關閉"};var J4={};J4={"ar-AE":y4,"bg-BG":$4,"cs-CZ":v4,"da-DK":x4,"de-DE":C4,"el-GR":D4,"en-US":E4,"es-ES":w4,"et-EE":S4,"fi-FI":P4,"fr-FR":k4,"he-IL":B4,"hr-HR":N4,"hu-HU":A4,"it-IT":F4,"ja-JP":T4,"ko-KR":I4,"lt-LT":M4,"lv-LV":K4,"nb-NO":L4,"nl-NL":O4,"pl-PL":z4,"pt-BR":V4,"pt-PT":_4,"ro-RO":R4,"ru-RU":j4,"sk-SK":H4,"sl-SI":U4,"sr-SP":W4,"sv-SE":G4,"tr-TR":Z4,"uk-UA":Y4,"zh-CN":q4,"zh-TW":X4};function $9(e){return e&&e.__esModule?e.default:e}function Yo(e){let{onDismiss:t,...n}=e,r=ke($9(J4),"@react-aria/overlays"),i=Tt(n,r.format("dismiss")),a=()=>{t&&t()};return u.createElement(Mr,null,u.createElement("button",{...i,tabIndex:-1,onClick:a,style:{width:1,height:1}}))}const Q4=u.forwardRef(({children:e,...t},n)=>{let r=u.useRef(!1),i=u.useContext(Cr),a=q(i||{},{...t,register(){r.current=!0,i&&i.register()}});return a.ref=Te(n||i?.ref),xl(i,a.ref),u.useEffect(()=>{r.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."),r.current=!0)},[]),u.createElement(Cr.Provider,{value:a},e)});function v9({children:e}){let t=u.useMemo(()=>({register:()=>{}}),[]);return u.createElement(Cr.Provider,{value:t},e)}const x9=u.createContext({});function C9(){return u.useContext(x9)??{}}const e3=u.createContext(null);function qo(e){let t=Ht(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[i,a]=u.useState(!1),l=u.useMemo(()=>({contain:i,setContain:a}),[i,a]),{getContainer:o}=C9();if(!e.portalContainer&&o&&(n=o()),!n)return null;let s=e.children;return e.disableFocusManagement||(s=u.createElement($a,{restoreFocus:!0,contain:(e.shouldContainFocus||i)&&!r},s)),s=u.createElement(e3.Provider,{value:l},u.createElement(v9,null,u.createElement(Ki.Provider,{value:null},s))),jt.createPortal(s,n)}function t3(){let t=u.useContext(e3)?.setContain;fe(()=>{t?.(!0)},[t])}function qr(e){let[t,n]=He(e.isOpen,e.defaultOpen||!1,e.onOpenChange),[r,i]=u.useState(null);const a=u.useCallback(()=>{n(!0)},[n]),l=u.useCallback(()=>{n(!1)},[n]),o=u.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:a,close:l,toggle:o,point:r,setPoint:i}}function Xo(e,t=!0){let[n,r]=u.useState(!0),i=n&&t;return fe(()=>{if(i&&e.current&&"getAnimations"in e.current)for(let a of e.current.getAnimations())a instanceof CSSTransition&&a.cancel()},[e,i]),n3(e,i,u.useCallback(()=>r(!1),[])),i}function Jo(e,t){let[n,r]=u.useState(t?"open":"closed");switch(n){case"open":t||r("exiting");break;case"closed":case"exiting":t&&r("open");break}let i=n==="exiting";return n3(e,i,u.useCallback(()=>{r(a=>a==="exiting"?"closed":a)},[])),i}function n3(e,t,n){fe(()=>{if(t&&e.current){if(!("getAnimations"in e.current)){n();return}let r=e.current.getAnimations();if(r.length===0){n();return}let i=!1;return Promise.allSettled(r.map(a=>a.finished)).then(()=>{i||jt.flushSync(()=>{n()})}),()=>{i=!0}}},[e,t,n])}const Xr=u.createContext(null),r3=u.createContext(null),i3=u.forwardRef(function(t,n){[t,n]=pe(t,n,Xr);let r=u.useContext(zt),i=qr(t),a=t.isOpen!=null||t.defaultOpen!=null||!r?i:r,l=Jo(n,a.isOpen),o=t.isExiting||!t.shouldSkipAnimation&&l||!1,s=hd(),{direction:d}=be();if(s){let c=t.children;return typeof c=="function"&&(c=c({trigger:t.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),u.createElement(u.Fragment,null,c)}return a&&!a.isOpen&&!o?null:u.createElement(D9,{...t,triggerRef:t.triggerRef,state:a,popoverRef:n,isExiting:o,dir:d})});function D9({state:e,isExiting:t,UNSTABLE_portalContainer:n,clearContexts:r,...i}){let a=u.useRef(null),l=u.useRef(null),o=u.useContext(r3),s=o&&i.trigger==="SubmenuTrigger",{popoverProps:d,underlayProps:c,arrowProps:f,placement:m,triggerAnchorPoint:h}=y9({...i,offset:i.offset??8,arrowRef:a,groupRef:s?o:l},e),p=i.popoverRef,g=Xo(p,!!m),y=i.isEntering||!i.shouldSkipAnimation&&g||!1,$=ue({...i,defaultClassName:"react-aria-Popover",values:{trigger:i.trigger||null,placement:m,isEntering:y,isExiting:t}}),x=!i.isNonModal||i.trigger==="SubmenuTrigger"||i.trigger==="PreviewTrigger",[v,C]=u.useState(i.trigger==="PreviewTrigger");fe(()=>{p.current&&C(x&&!p.current.querySelector("[role=dialog]"))},[p,x]),u.useEffect(()=>{v&&i.trigger!=="PreviewTrigger"&&(i.trigger!=="SubmenuTrigger"||Kn()!=="pointer")&&p.current&&!Ut(p.current)&&Ie(p.current)},[v,p,i.trigger]);let w=u.useMemo(()=>{let T=$.children;if(r)for(let I of r)T=u.createElement(I.Provider,{value:null},T);return T},[$.children,r]),[S,B]=u.useState(null),E=u.useCallback(()=>{i.triggerRef.current&&B(i.triggerRef.current.getBoundingClientRect().width+"px")},[i.triggerRef]);fe(E,[E]),Zr({ref:$.style?.["--trigger-width"]?void 0:i.triggerRef,onResize:E});let k={...d.style,"--trigger-anchor-point":h?`${h.x}px ${h.y}px`:void 0,...$.style,"--trigger-width":$.style?.["--trigger-width"]||S},K=u.createElement(re.div,{...q(ie(i,{global:!0}),d),...$,id:v?i.id:void 0,role:v?"dialog":void 0,tabIndex:v?-1:void 0,"aria-label":i["aria-label"],"aria-labelledby":i["aria-labelledby"],ref:p,slot:i.slot||void 0,style:k,dir:i.dir,"data-trigger":i.trigger,"data-placement":m,"data-entering":y||void 0,"data-exiting":t||void 0},!i.isNonModal&&u.createElement(Yo,{onDismiss:e.close}),u.createElement(i4.Provider,{value:{...f,placement:m,ref:a}},w),u.createElement(Yo,{onDismiss:e.close}));return s?u.createElement(qo,{...i,shouldContainFocus:v&&i.trigger!=="PreviewTrigger",isExiting:t,portalContainer:n??o?.current??void 0},K):u.createElement(qo,{...i,shouldContainFocus:v&&i.trigger!=="PreviewTrigger",isExiting:t,portalContainer:n},!i.isNonModal&&e.isOpen&&u.createElement("div",{"data-testid":"underlay",...c,style:{position:"fixed",inset:0}}),u.createElement("div",{ref:l,style:{display:"contents"}},u.createElement(r3.Provider,{value:l},K)))}const E9=u.createContext({});var a3={};a3={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var l3={};l3={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var o3={};o3={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var u3={};u3={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var s3={};s3={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var d3={};d3={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var c3={};c3={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var f3={};f3={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var m3={};m3={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var h3={};h3={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var p3={};p3={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var b3={};b3={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var g3={};g3={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var y3={};y3={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var $3={};$3={longPressMessage:"Premi a lungo o premi Alt + Freccia giù per aprire il menu"};var v3={};v3={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var x3={};x3={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var C3={};C3={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var D3={};D3={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var E3={};E3={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var w3={};w3={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var S3={};S3={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var P3={};P3={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var k3={};k3={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var B3={};B3={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var N3={};N3={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var A3={};A3={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var F3={};F3={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var T3={};T3={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var I3={};I3={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var M3={};M3={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var K3={};K3={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var L3={};L3={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var O3={};O3={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var z3={};z3={"ar-AE":a3,"bg-BG":l3,"cs-CZ":o3,"da-DK":u3,"de-DE":s3,"el-GR":d3,"en-US":c3,"es-ES":f3,"et-EE":m3,"fi-FI":h3,"fr-FR":p3,"he-IL":b3,"hr-HR":g3,"hu-HU":y3,"it-IT":$3,"ja-JP":v3,"ko-KR":x3,"lt-LT":C3,"lv-LV":D3,"nb-NO":E3,"nl-NL":w3,"pl-PL":S3,"pt-BR":P3,"pt-PT":k3,"ro-RO":B3,"ru-RU":N3,"sk-SK":A3,"sl-SI":F3,"sr-SP":T3,"sv-SE":I3,"tr-TR":M3,"uk-UA":K3,"zh-CN":L3,"zh-TW":O3};function w9(e){let{onContextMenu:t}=e,n=u.useRef(!1),{longPressProps:r}=Oo({onLongPressStart(){n.current=!1},onLongPress(i){n.current?n.current=!1:t?.({target:i.target,x:i.x,y:i.y})}});return t?{contextMenuProps:q(bt()?r:{},{onContextMenu(i){i.stopPropagation(),i.preventDefault(),n.current=!0;let a=i.currentTarget.getBoundingClientRect();t({target:i.currentTarget,x:i.clientX-a.x,y:i.clientY-a.y})},onKeyDown(i){if(Je()&&i.ctrlKey&&i.key==="Enter"){n.current=!1;let a=i.currentTarget;i.stopPropagation(),setTimeout(()=>{if(n.current)n.current=!1;else{let l=a.getBoundingClientRect();t({target:a,x:l.width/2,y:l.height/2})}},10)}}})}:{contextMenuProps:{}}}function V3(e,t,n){let{type:r}=e,{isOpen:i}=t;u.useEffect(()=>{n&&n.current&&m4.set(n.current,t.close)});let a;r==="menu"?a=!0:r==="listbox"&&(a="listbox");let l=Ee();return{triggerProps:{"aria-haspopup":a,"aria-expanded":i,"aria-controls":i?l:void 0,onPress:t.toggle},overlayProps:{id:l}}}function S9(e){return e&&e.__esModule?e.default:e}function Qo(e,t,n){let{type:r="menu",isDisabled:i,trigger:a="press"}=e,l=Ee(),{triggerProps:o,overlayProps:s}=V3({type:r},t,n),d=(y,$,x="first")=>{if(!y||$.isDefaultPrevented())return!1;t.toggle(x)},{keyboardProps:c}=Le({isDisabled:i,shortcuts:{Enter:y=>d(a!=="longPress",y,"first")," ":y=>d(a!=="longPress",y,"first"),ArrowDown:y=>d(a!=="longPress",y,"first"),ArrowUp:y=>d(a!=="longPress",y,"last"),"Alt+Enter":y=>d(a==="longPress",y,"first"),"Alt+ ":y=>d(a==="longPress",y,"first"),"Alt+ArrowDown":y=>d(!0,y,"first"),"Alt+ArrowUp":y=>d(!0,y,"last")}}),f=ke(S9(z3),"@react-aria/menu"),{longPressProps:m}=Oo({isDisabled:i||a!=="longPress",accessibilityDescription:f.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),h={preventFocusOnPress:!0,onPressStart(y){y.pointerType!=="touch"&&y.pointerType!=="keyboard"&&!i&&(Xe(y.target),t.open(y.pointerType==="virtual"?"first":null))},onPress(y){y.pointerType==="touch"&&!i&&(Xe(y.target),t.toggle())}};delete o.onPress;let{contextMenuProps:p}=w9({onContextMenu(y){let $=y.target.getBoundingClientRect();t.setPoint({x:$.x+y.x,y:$.y+y.y}),t.open()}});u.useEffect(()=>{if(t.isOpen&&a==="contextMenu"){let y=$=>{($.button===2||$.button===0&&$.ctrlKey===!0)&&W($)===document.body&&t.close()};return document.addEventListener("mousedown",y),()=>document.removeEventListener("mousedown",y)}},[t,a]);let g;if(a==="press")g={...h,...c};else if(a==="longPress")g={...m,...c};else if(a==="contextMenu"){g=p;let{"aria-haspopup":y,"aria-expanded":$,"aria-controls":x,...v}=o;o=v}return{menuTriggerProps:{...o,...g,id:l},menuProps:{...s,"aria-labelledby":l,autoFocus:t.focusStrategy||!0,onClose:t.close}}}const _3=new WeakMap;function P9(e,t,n){let{shouldFocusWrap:r=!0,onKeyDown:i,onKeyUp:a,...l}=e;!e["aria-label"]&&!e["aria-labelledby"]&&process.env.NODE_ENV!=="production"&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let o=ie(e,{labelable:!0}),{listProps:s}=Gm({...l,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:r,linkBehavior:"override"});return _3.set(t,{onClose:e.onClose,onAction:e.onAction,shouldUseVirtualFocus:e.shouldUseVirtualFocus}),{menuProps:q(o,{onKeyDown:i,onKeyUp:a},{role:"menu",...s,onKeyDown:d=>{(d.key!=="Escape"||e.shouldUseVirtualFocus)&&s.onKeyDown?.(d)}})}}function k9(e,t,n){let{id:r,key:i,closeOnSelect:a,shouldCloseOnSelect:l,isVirtualized:o,"aria-haspopup":s,onPressStart:d,onPressUp:c,onPress:f,onPressChange:m,onPressEnd:h,onClick:p,onHoverStart:g,onHoverChange:y,onHoverEnd:$,onKeyDown:x,onKeyUp:v,onFocus:C,onFocusChange:w,onBlur:S,selectionManager:B=t.selectionManager}=e,E=!!s,k=E&&e["aria-expanded"]==="true",K=e.isDisabled??B.isDisabled(i),T=e.isSelected??B.isSelected(i),I=_3.get(t),R=t.collection.getItem(i),D=e.onClose||I.onClose,M=sn(),G=()=>{if(!E&&(R?.props?.onAction?R.props.onAction():e.onAction&&e.onAction(i),I.onAction)){let ve=I.onAction;ve(i,R?.value)}},O="menuitem";E||(B.selectionMode==="single"?O="menuitemradio":B.selectionMode==="multiple"&&(O="menuitemcheckbox"));let Y=mt(),P=mt(),N=mt(),_={id:r,"aria-disabled":K||void 0,role:O,"aria-label":e["aria-label"],"aria-labelledby":Y,"aria-describedby":[e["aria-describedby"],P,N].filter(Boolean).join(" ")||void 0,"aria-controls":e["aria-controls"],"aria-haspopup":s,"aria-expanded":e["aria-expanded"]};if(B.selectionMode!=="none"&&!E&&(_["aria-checked"]=T),o){let ve=Number(R?.index);_["aria-posinset"]=Number.isNaN(ve)?void 0:ve+1,_["aria-setsize"]=Vo(t.collection)}let Q=u.useRef(!1),X=ve=>{m?.(ve),Q.current=ve},A=u.useRef(null),F=ve=>{ve.pointerType!=="keyboard"&&(A.current={pointerType:ve.pointerType}),ve.pointerType==="mouse"&&(Q.current||ve.target.click()),c?.(ve)},z=ve=>{p?.(ve),G(),Ws(ve,M,R.props.href,R?.props.routerOptions);let on=A.current?.pointerType==="keyboard"?A.current?.key==="Enter"||B.selectionMode==="none"||B.isLink(i):B.selectionMode!=="multiple"||B.isLink(i);on=l??a??on,D&&!E&&on&&D(),A.current=null},{itemProps:L,isFocused:J}=Rr({id:r,selectionManager:B,key:i,ref:n,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none",shouldUseVirtualFocus:I.shouldUseVirtualFocus}),{pressProps:le,isPressed:Ke}=It({onPressStart:d,onPress:f,onPressUp:F,onPressChange:X,onPressEnd:h,isDisabled:K}),{hoverProps:V}=ze({isDisabled:K,onHoverStart(ve){!Wt()&&!(k&&s)&&(B.setFocused(!0),B.setFocusedKey(i)),g?.(ve)},onHoverChange:y,onHoverEnd:$}),{keyboardProps:j}=Le({shortcuts:{" ":ve=>{A.current={pointerType:"keyboard",key:" "},W(ve).click(),Ln("keyboard")},Enter:ve=>{A.current={pointerType:"keyboard",key:"Enter"};let on=W(ve);if(on.tagName!=="A"){on.click(),Ln("keyboard");return}return Ln("keyboard"),{shouldPreventDefault:!1,shouldContinuePropagation:!1}}},onKeyDown:x,onKeyUp:v}),{focusableProps:me}=zn({onBlur:S,onFocus:C,onFocusChange:w},n),he=ie(R?.props);delete he.id;let Bt=Pi(R?.props);return{menuItemProps:{..._,...q(he,Bt,E?{onFocus:L.onFocus,"data-collection":L["data-collection"],"data-key":L["data-key"]}:L,le,V,j,me,I.shouldUseVirtualFocus||E?{onMouseDown:ve=>ve.preventDefault()}:void 0,K?void 0:{onClick:z}),tabIndex:L.tabIndex!=null&&k&&!I.shouldUseVirtualFocus?-1:L.tabIndex},labelProps:{id:Y},descriptionProps:{id:P},keyboardShortcutProps:{id:N},isFocused:J,isFocusVisible:J&&B.isFocused&&Wt()&&!k,isSelected:T,isPressed:Ke,isDisabled:K}}function B9(e){let{heading:t,"aria-label":n}=e,r=Ee();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}function eu(e){let t=qr(e),[n,r]=u.useState(null),[i,a]=u.useState([]),l=()=>{a([]),t.close()};return{focusStrategy:n,...t,open(d=null){r(d),t.open()},toggle(d=null){r(d),t.toggle()},close(){l()},expandedKeysStack:i,openSubmenu:(d,c)=>{a(f=>c>f.length?f:[...f.slice(0,c),d])},closeSubmenu:(d,c)=>{a(f=>f[c]===d?f.slice(0,c):f)}}}class N9{constructor(t,{expandedKeys:n}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t,n=n||new Set;let r=l=>{if(this.keyMap.set(l.key,l),l.childNodes&&(l.type==="section"||n.has(l.key)))for(let o of l.childNodes)r(o)};for(let l of t)r(l);let i=null,a=0;for(let[l,o]of this.keyMap)i?(i.nextKey=l,o.prevKey=i.key):(this.firstKey=l,o.prevKey=void 0),o.type==="item"&&(o.index=a++),i=o,i.nextKey=void 0;this.lastKey=i?.key??null}*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);return n?n.prevKey??null:null}getKeyAfter(t){let n=this.keyMap.get(t);return n?n.nextKey??null:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)??null}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}}function A9(e){let{onExpandedChange:t}=e,[n,r]=He(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),i=Hr(e),a=u.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),l=jo(e,u.useCallback(s=>new N9(s,{expandedKeys:n}),[n]),null);return u.useEffect(()=>{i.focusedKey!=null&&!l.getItem(i.focusedKey)&&i.setFocusedKey(null)},[l,i.focusedKey]),{collection:l,expandedKeys:n,disabledKeys:a,toggleKey:s=>{r(F9(n,s))},setExpandedKeys:r,selectionManager:new tr(l,i)}}function F9(e,t){let n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n}const R3=u.createContext(null),tu=u.createContext(null),Ba=u.createContext(null),Na=u.createContext(null);function Aa(e){let t=eu(e),n=u.useRef(null),{menuTriggerProps:r,menuProps:i}=Qo({...e,type:"menu"},t,n),a=u.useRef(null);return hd()?null:u.createElement(Pe,{values:[[R3,{...i,ref:a}],[zt,t],[Ba,t],[Xr,{trigger:"MenuTrigger",triggerRef:n,scrollRef:a,placement:"bottom start","aria-labelledby":i["aria-labelledby"],offset:e.trigger==="contextMenu"?0:void 0}]]},u.createElement(Q4,{...r,ref:n,isPressed:t.isOpen},e.children))}const T9=u.createContext(null),Cs=class Cs extends et{filter(t,n,r){let i=t.getItem(this.firstChildKey);if(i&&r(i.textValue,this)){let a=this.clone();return n.addDescendants(a,t),a}return null}};Cs.type="submenutrigger";let j3=Cs;const H3=u.forwardRef(function(t,n){return[t,n]=pe(t,n,R3),u.createElement(fn,{content:u.createElement(mn,t)},r=>u.createElement(I9,{props:t,collection:r,menuRef:n}))});function I9({props:e,collection:t,menuRef:n}){[e,n]=pe(e,n,$r);let{filter:r,...i}=e,a=u.useMemo(()=>r?t.filter(r):t,[t,r]),l=A9({...e,collection:a,children:void 0}),o=u.useContext(Ba),{isVirtualized:s,CollectionRoot:d}=u.useContext(ge),{menuProps:c}=P9({...e,isVirtualized:s,onClose:e.onClose||o?.close},l,n),f=ue({...e,children:void 0,defaultClassName:"react-aria-Menu",values:{isEmpty:l.collection.size===0}}),m=null;l.collection.size===0&&e.renderEmptyState&&(m=u.createElement("div",{role:"menuitem",style:{display:"contents"}},e.renderEmptyState()));let h=ie(e,{global:!0});return u.createElement($a,null,u.createElement(re.div,{...q(h,f,c),ref:n,slot:e.slot||void 0,"data-empty":l.collection.size===0||void 0,onScroll:e.onScroll},u.createElement(Pe,{values:[[tu,l],[ko,{elementType:"div"}],[Cd,{name:"MenuSection",render:K9}],[T9,{parentMenuRef:n,shouldUseVirtualFocus:i?.shouldUseVirtualFocus}],[Jr,{shouldCloseOnSelect:e.shouldCloseOnSelect}],[$r,null],[vr,null],[Na,l.selectionManager],[Ba,o??eu({})]]},u.createElement(ga,null,u.createElement(d,{collection:l.collection,persistedKeys:Ed(l.selectionManager.focusedKey),scrollRef:n}))),m))}class M9 extends tr{constructor(t,n){super(t.collection,n),this.parent=t}get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(t,n){return this.parent.setFocusedKey(t,n)}setFocused(t){this.parent.setFocused(t)}get childFocusStrategy(){return this.parent.childFocusStrategy}}function K9(e,t,n,r="react-aria-MenuSection"){let i=u.useContext(tu),{CollectionBranch:a}=u.useContext(ge),[l,o]=un(),{headingProps:s,groupProps:d}=B9({heading:o,"aria-label":n.props["aria-label"]??void 0}),c=ue({...e,id:void 0,children:void 0,defaultClassName:r,className:n.props?.className,style:n.props?.style,values:void 0}),f=u.useContext(Na),m=Hr(e),h=e.selectionMode!=null?new M9(f,m):f,p=qe(Jr)?.shouldCloseOnSelect,g=ie(e,{global:!0});return delete g.id,u.createElement(re.section,{...q(g,c,d),ref:t},u.createElement(Pe,{values:[[Po,{...s,ref:l}],[Na,h],[Jr,{shouldCloseOnSelect:e.shouldCloseOnSelect??p}]]},u.createElement(a,{collection:i.collection,parent:n})))}const Jr=u.createContext(null),U3=yt(Ii,function(t,n,r){[t,n]=pe(t,n,Jr);let i=qe(Jr)?.id,a=u.useContext(tu),l=Te(n),o=u.useContext(Na),{isVirtualized:s}=u.useContext(ge),{menuItemProps:d,labelProps:c,descriptionProps:f,keyboardShortcutProps:m,...h}=k9({...t,id:i,key:r.key,selectionManager:o,isVirtualized:s},a,l),{hoverProps:p,isHovered:g}=ze({isDisabled:h.isDisabled}),y=ue({...t,id:void 0,children:r.rendered,defaultClassName:"react-aria-MenuItem",values:{...h,isHovered:g,isFocusVisible:h.isFocusVisible,selectionMode:o.selectionMode,selectionBehavior:o.selectionBehavior,hasSubmenu:!!t["aria-haspopup"],isOpen:t["aria-expanded"]==="true"}}),$=t.href?re.a:re.div,x=ie(t,{global:!0});return delete x.id,delete x.onClick,u.createElement($,{...q(x,y,d,p),ref:l,"data-disabled":h.isDisabled||void 0,"data-hovered":g||void 0,"data-focused":h.isFocused||void 0,"data-focus-visible":h.isFocusVisible||void 0,"data-pressed":h.isPressed||void 0,"data-selected":h.isSelected||void 0,"data-selection-mode":o.selectionMode==="none"?void 0:o.selectionMode,"data-has-submenu":!!t["aria-haspopup"]||void 0,"data-open":t["aria-expanded"]==="true"||void 0},u.createElement(Pe,{values:[[tt,{slots:{[Nt]:c,label:c,description:f}}],[E9,m],[zr,{isSelected:h.isSelected}]]},y.children))});function L9(e,t){let{role:n="dialog"}=e,r=mt();r=e["aria-label"]?void 0:r;let i=mt();i=n==="alertdialog"&&!e["aria-describedby"]?i:void 0;let a=u.useRef(!1);u.useEffect(()=>{if(t.current&&!Ut(t.current)){Ie(t.current);let s=setTimeout(()=>{(ce()===t.current||ce()===document.body)&&(a.current=!0,t.current&&(t.current.blur(),Ie(t.current)),a.current=!1)},500);return()=>{clearTimeout(s)}}},[t]),t3();let l=u.useRef(!1);u.useEffect(()=>{if(process.env.NODE_ENV!=="production"&&!l.current&&t.current){let s=t.current,d=s.hasAttribute("aria-label"),c=s.hasAttribute("aria-labelledby");!d&&!c&&(console.warn("A dialog must have a title for accessibility. Either provide an aria-label or aria-labelledby prop, or render a heading element inside the dialog."),l.current=!0)}});let o=e["aria-describedby"]??i;return{dialogProps:{...ie(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]??r,"aria-describedby":o,onBlur:s=>{a.current&&s.stopPropagation()}},titleProps:{id:r},contentProps:{id:i}}}const W3=u.createContext(null),zt=u.createContext(null);function O9(e){let t=eu(e),n=u.useRef(null),{triggerProps:r,overlayProps:i}=V3({type:"dialog"},t,n);return r.id=Ee(),i["aria-labelledby"]=r.id,u.createElement(Pe,{values:[[zt,t],[Ba,t],[W3,i],[Xr,{trigger:"DialogTrigger",triggerRef:n,id:i.id,"aria-labelledby":i["aria-labelledby"]}]]},u.createElement(Q4,{...r,ref:n,isPressed:t.isOpen},e.children))}const G3=u.forwardRef(function(t,n){let r=t["aria-labelledby"];[t,n]=pe(t,n,W3);let{dialogProps:i,titleProps:a,contentProps:l}=L9({...t,"aria-labelledby":r},n),o=u.useContext(zt);!i["aria-label"]&&!i["aria-labelledby"]&&(t["aria-labelledby"]?i["aria-labelledby"]=t["aria-labelledby"]:process.env.NODE_ENV!=="production"&&console.warn('If a Dialog does not contain a <Heading slot="title">, it must have an aria-label or aria-labelledby attribute for accessibility.'));let s=ue({defaultClassName:"react-aria-Dialog",className:t.className,style:t.style,children:t.children,values:{close:o?.close||(()=>{})}}),d=ie(t,{global:!0});return u.createElement(re.section,{...q(d,s,i),render:t.render,ref:n,slot:t.slot||void 0},u.createElement(Pe,{values:[[Gi,{slots:{[Nt]:{},title:{...a,level:2}}}],[tt,{slots:{[Nt]:{},description:l}}],[vt,{slots:{[Nt]:{},close:{onPress:()=>o?.close()}}}]]},s.children))});var Z3={};Z3={buttonLabel:"عرض المقترحات",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} خيار`,other:()=>`${t.number(e.optionCount)} خيارات`})} متاحة.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`المجموعة المدخلة ${e.groupTitle}, مع ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} خيار`,other:()=>`${t.number(e.groupCount)} خيارات`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", محدد",other:""},e.isSelected)}`,listboxLabel:"مقترحات",selectedAnnouncement:e=>`${e.optionText}، محدد`};var Y3={};Y3={buttonLabel:"Покажи предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} опция`,other:()=>`${t.number(e.optionCount)} опции`})} на разположение.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Въведена група ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} опция`,other:()=>`${t.number(e.groupCount)} опции`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", избрани",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, избрани`};var q3={};q3={buttonLabel:"Zobrazit doporučení",countAnnouncement:(e,t)=>`K dispozici ${t.plural(e.optionCount,{one:()=>`je ${t.number(e.optionCount)} možnost`,other:()=>`jsou/je ${t.number(e.optionCount)} možnosti/-í`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina „${e.groupTitle}“ ${t.plural(e.groupCount,{one:()=>`s ${t.number(e.groupCount)} možností`,other:()=>`se ${t.number(e.groupCount)} možnostmi`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:" (vybráno)",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybráno`};var X3={};X3={buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} mulighed tilgængelig`,other:()=>`${t.number(e.optionCount)} muligheder tilgængelige`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angivet gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} mulighed`,other:()=>`${t.number(e.groupCount)} muligheder`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`};var J3={};J3={buttonLabel:"Empfehlungen anzeigen",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} Option`,other:()=>`${t.number(e.optionCount)} Optionen`})} verfügbar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Eingetretene Gruppe ${e.groupTitle}, mit ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} Option`,other:()=>`${t.number(e.groupCount)} Optionen`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", ausgewählt",other:""},e.isSelected)}`,listboxLabel:"Empfehlungen",selectedAnnouncement:e=>`${e.optionText}, ausgewählt`};var Q3={};Q3={buttonLabel:"Προβολή προτάσεων",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} επιλογή`,other:()=>`${t.number(e.optionCount)} επιλογές `})} διαθέσιμες.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Εισαγμένη ομάδα ${e.groupTitle}, με ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} επιλογή`,other:()=>`${t.number(e.groupCount)} επιλογές`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", επιλεγμένο",other:""},e.isSelected)}`,listboxLabel:"Προτάσεις",selectedAnnouncement:e=>`${e.optionText}, επιλέχθηκε`};var eh={};eh={focusAnnouncement:(e,t)=>`${t.select({true:()=>`Entered group ${e.groupTitle}, with ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selected",other:""},e.isSelected)}`,countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} available.`,selectedAnnouncement:e=>`${e.optionText}, selected`,buttonLabel:"Show suggestions",listboxLabel:"Suggestions"};var th={};th={buttonLabel:"Mostrar sugerencias",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opción`,other:()=>`${t.number(e.optionCount)} opciones`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Se ha unido al grupo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opción`,other:()=>`${t.number(e.groupCount)} opciones`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seleccionado",other:""},e.isSelected)}`,listboxLabel:"Sugerencias",selectedAnnouncement:e=>`${e.optionText}, seleccionado`};var nh={};nh={buttonLabel:"Kuva soovitused",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} valik`,other:()=>`${t.number(e.optionCount)} valikud`})} saadaval.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Sisestatud rühm ${e.groupTitle}, valikuga ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} valik`,other:()=>`${t.number(e.groupCount)} valikud`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valitud",other:""},e.isSelected)}`,listboxLabel:"Soovitused",selectedAnnouncement:e=>`${e.optionText}, valitud`};var rh={};rh={buttonLabel:"Näytä ehdotukset",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} vaihtoehto`,other:()=>`${t.number(e.optionCount)} vaihtoehtoa`})} saatavilla.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Siirtyi ryhmään ${e.groupTitle}, jossa ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} vaihtoehto`,other:()=>`${t.number(e.groupCount)} vaihtoehtoa`})}.`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valittu",other:""},e.isSelected)}`,listboxLabel:"Ehdotukset",selectedAnnouncement:e=>`${e.optionText}, valittu`};var ih={};ih={buttonLabel:"Afficher les suggestions",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groupe ${e.groupTitle} rejoint, avec ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", sélectionné(s)",other:""},e.isSelected)}`,listboxLabel:"Suggestions",selectedAnnouncement:e=>`${e.optionText}, sélectionné`};var ah={};ah={buttonLabel:"הצג הצעות",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`אפשרות ${t.number(e.optionCount)}`,other:()=>`${t.number(e.optionCount)} אפשרויות`})} במצב זמין.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`נכנס לקבוצה ${e.groupTitle}, עם ${t.plural(e.groupCount,{one:()=>`אפשרות ${t.number(e.groupCount)}`,other:()=>`${t.number(e.groupCount)} אפשרויות`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", נבחר",other:""},e.isSelected)}`,listboxLabel:"הצעות",selectedAnnouncement:e=>`${e.optionText}, נבחר`};var lh={};lh={buttonLabel:"Prikaži prijedloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} opcije/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", odabranih",other:""},e.isSelected)}`,listboxLabel:"Prijedlozi",selectedAnnouncement:e=>`${e.optionText}, odabrano`};var oh={};oh={buttonLabel:"Javaslatok megjelenítése",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} lehetőség`,other:()=>`${t.number(e.optionCount)} lehetőség`})} áll rendelkezésre.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Belépett a(z) ${e.groupTitle} csoportba, amely ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} lehetőséget`,other:()=>`${t.number(e.groupCount)} lehetőséget`})} tartalmaz. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", kijelölve",other:""},e.isSelected)}`,listboxLabel:"Javaslatok",selectedAnnouncement:e=>`${e.optionText}, kijelölve`};var uh={};uh={buttonLabel:"Mostra suggerimenti",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opzione disponibile`,other:()=>`${t.number(e.optionCount)} opzioni disponibili`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingresso nel gruppo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opzione`,other:()=>`${t.number(e.groupCount)} opzioni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selezionato",other:""},e.isSelected)}`,listboxLabel:"Suggerimenti",selectedAnnouncement:e=>`${e.optionText}, selezionato`};var sh={};sh={buttonLabel:"候補を表示",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 個のオプション`,other:()=>`${t.number(e.optionCount)} 個のオプション`})}を利用できます。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`入力されたグループ ${e.groupTitle}、${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 個のオプション`,other:()=>`${t.number(e.groupCount)} 個のオプション`})}を含む。`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:"、選択済み",other:""},e.isSelected)}`,listboxLabel:"候補",selectedAnnouncement:e=>`${e.optionText}、選択済み`};var dh={};dh={buttonLabel:"제안 사항 표시",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)}개 옵션`,other:()=>`${t.number(e.optionCount)}개 옵션`})}을 사용할 수 있습니다.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`입력한 그룹 ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)}개 옵션`,other:()=>`${t.number(e.groupCount)}개 옵션`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 선택됨",other:""},e.isSelected)}`,listboxLabel:"제안",selectedAnnouncement:e=>`${e.optionText}, 선택됨`};var ch={};ch={buttonLabel:"Rodyti pasiūlymus",countAnnouncement:(e,t)=>`Yra ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} parinktis`,other:()=>`${t.number(e.optionCount)} parinktys (-ių)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Įvesta grupė ${e.groupTitle}, su ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} parinktimi`,other:()=>`${t.number(e.groupCount)} parinktimis (-ių)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", pasirinkta",other:""},e.isSelected)}`,listboxLabel:"Pasiūlymai",selectedAnnouncement:e=>`${e.optionText}, pasirinkta`};var fh={};fh={buttonLabel:"Rādīt ieteikumus",countAnnouncement:(e,t)=>`Pieejamo opciju skaits: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcijas`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ievadīta grupa ${e.groupTitle}, ar ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opciju`,other:()=>`${t.number(e.groupCount)} opcijām`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", atlasīta",other:""},e.isSelected)}`,listboxLabel:"Ieteikumi",selectedAnnouncement:e=>`${e.optionText}, atlasīta`};var mh={};mh={buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativer`})} finnes.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angitt gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativer`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`};var hh={};hh={buttonLabel:"Suggesties weergeven",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} optie`,other:()=>`${t.number(e.optionCount)} opties`})} beschikbaar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groep ${e.groupTitle} ingevoerd met ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} optie`,other:()=>`${t.number(e.groupCount)} opties`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", geselecteerd",other:""},e.isSelected)}`,listboxLabel:"Suggesties",selectedAnnouncement:e=>`${e.optionText}, geselecteerd`};var ph={};ph={buttonLabel:"Wyświetlaj sugestie",countAnnouncement:(e,t)=>`dostępna/dostępne(-nych) ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcja`,other:()=>`${t.number(e.optionCount)} opcje(-i)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Dołączono do grupy ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcją`,other:()=>`${t.number(e.groupCount)} opcjami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", wybrano",other:""},e.isSelected)}`,listboxLabel:"Sugestie",selectedAnnouncement:e=>`${e.optionText}, wybrano`};var bh={};bh={buttonLabel:"Mostrar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo inserido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`};var gh={};gh={buttonLabel:"Apresentar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo introduzido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`};var yh={};yh={buttonLabel:"Afișare sugestii",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opțiune`,other:()=>`${t.number(e.optionCount)} opțiuni`})} disponibile.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grup ${e.groupTitle} introdus, cu ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opțiune`,other:()=>`${t.number(e.groupCount)} opțiuni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selectat",other:""},e.isSelected)}`,listboxLabel:"Sugestii",selectedAnnouncement:e=>`${e.optionText}, selectat`};var $h={};$h={buttonLabel:"Показать предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметров`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введенная группа ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметром`,other:()=>`${t.number(e.groupCount)} параметрами`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", выбранными",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, выбрано`};var vh={};vh={buttonLabel:"Zobraziť návrhy",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} možnosť`,other:()=>`${t.number(e.optionCount)} možnosti/-í`})} k dispozícii.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} možnosťou`,other:()=>`${t.number(e.groupCount)} možnosťami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", vybraté",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybraté`};var xh={};xh={buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Na voljo je ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Vnesena skupina ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcija`,other:()=>`${t.number(e.groupCount)} opcije`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izbrano",other:""},e.isSelected)}`,listboxLabel:"Predlogi",selectedAnnouncement:e=>`${e.optionText}, izbrano`};var Ch={};Ch={buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena grupa ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} optione/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izabranih",other:""},e.isSelected)}`,listboxLabel:"Predlozi",selectedAnnouncement:e=>`${e.optionText}, izabrano`};var Dh={};Dh={buttonLabel:"Visa förslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativ`})} tillgängliga.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingick i gruppen ${e.groupTitle} med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativ`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valda",other:""},e.isSelected)}`,listboxLabel:"Förslag",selectedAnnouncement:e=>`${e.optionText}, valda`};var Eh={};Eh={buttonLabel:"Önerileri göster",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} seçenek`,other:()=>`${t.number(e.optionCount)} seçenekler`})} kullanılabilir.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Girilen grup ${e.groupTitle}, ile ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} seçenek`,other:()=>`${t.number(e.groupCount)} seçenekler`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seçildi",other:""},e.isSelected)}`,listboxLabel:"Öneriler",selectedAnnouncement:e=>`${e.optionText}, seçildi`};var wh={};wh={buttonLabel:"Показати пропозиції",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметри(-ів)`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введена група ${e.groupTitle}, з ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметр`,other:()=>`${t.number(e.groupCount)} параметри(-ів)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", вибрано",other:""},e.isSelected)}`,listboxLabel:"Пропозиції",selectedAnnouncement:e=>`${e.optionText}, вибрано`};var Sh={};Sh={buttonLabel:"显示建议",countAnnouncement:(e,t)=>`有 ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 个选项`,other:()=>`${t.number(e.optionCount)} 个选项`})}可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`进入了 ${e.groupTitle} 组,其中有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 个选项`,other:()=>`${t.number(e.groupCount)} 个选项`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已选择",other:""},e.isSelected)}`,listboxLabel:"建议",selectedAnnouncement:e=>`${e.optionText}, 已选择`};var Ph={};Ph={buttonLabel:"顯示建議",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 選項`,other:()=>`${t.number(e.optionCount)} 選項`})} 可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`輸入的群組 ${e.groupTitle}, 有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 選項`,other:()=>`${t.number(e.groupCount)} 選項`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已選取",other:""},e.isSelected)}`,listboxLabel:"建議",selectedAnnouncement:e=>`${e.optionText}, 已選取`};var kh={};kh={"ar-AE":Z3,"bg-BG":Y3,"cs-CZ":q3,"da-DK":X3,"de-DE":J3,"el-GR":Q3,"en-US":eh,"es-ES":th,"et-EE":nh,"fi-FI":rh,"fr-FR":ih,"he-IL":ah,"hr-HR":lh,"hu-HU":oh,"it-IT":uh,"ja-JP":sh,"ko-KR":dh,"lt-LT":ch,"lv-LV":fh,"nb-NO":mh,"nl-NL":hh,"pl-PL":ph,"pt-BR":bh,"pt-PT":gh,"ro-RO":yh,"ru-RU":$h,"sk-SK":vh,"sl-SI":xh,"sr-SP":Ch,"sv-SE":Dh,"tr-TR":Eh,"uk-UA":wh,"zh-CN":Sh,"zh-TW":Ph};function z9(e){return e&&e.__esModule?e.default:e}function V9(e,t){let{buttonRef:n,popoverRef:r,inputRef:i,listBoxRef:a,keyboardDelegate:l,layoutDelegate:o,shouldFocusWrap:s,isReadOnly:d,isDisabled:c}=e,f=u.useRef(null);n=n??f;let m=ke(z9(kh),"@react-aria/combobox"),{menuTriggerProps:h,menuProps:p}=Qo({type:"listbox",isDisabled:c||d},t,n);ya.set(t,{id:p.id});let{collection:g}=t,{disabledKeys:y}=t.selectionManager,$=u.useMemo(()=>l||new _r({collection:g,disabledKeys:y,ref:a,layoutDelegate:o}),[l,o,g,y,a]),{collectionProps:x}=xa({selectionManager:t.selectionManager,keyboardDelegate:$,disallowTypeAhead:!0,disallowEmptySelection:!0,shouldFocusWrap:s,ref:i,isVirtualized:!0}),v=sn(),{keyboardProps:C}=Le({shortcuts:{Enter:V=>{let j=t.isOpen;if(t.isOpen&&a.current&&t.selectionManager.focusedKey!=null){let me=t.collection.getItem(t.selectionManager.focusedKey);if(me?.props.href){let he=a.current.querySelector(`[data-key="${CSS.escape(t.selectionManager.focusedKey.toString())}"]`);return he instanceof HTMLAnchorElement&&v.open(he,V,me.props.href,me.props.routerOptions),t.close(),{shouldPreventDefault:j}}else if(me?.props.onAction)return me.props.onAction(),t.close(),{shouldPreventDefault:j}}return t.commit(),{shouldPreventDefault:j}},Tab:()=>{if(t.isOpen&&a.current&&t.selectionManager.focusedKey!=null){let V=t.collection.getItem(t.selectionManager.focusedKey);if(V?.props.href)return t.close(),{shouldPreventDefault:!1};if(V?.props.onAction)return V.props.onAction(),t.close(),{shouldPreventDefault:!1,shouldContinuePropagation:!0}}return t.isOpen&&t.commit(),{shouldPreventDefault:!1,shouldContinuePropagation:!0}},Escape:()=>{let V=!1;return(!t.selectionManager.isEmpty||t.inputValue===""||e.allowsCustomValue)&&(V=!0),t.revert(),{shouldContinuePropagation:V}}}}),{keyboardProps:w}=Le({shortcuts:{ArrowDown:()=>(t.open("first","manual"),{shouldPreventDefault:!1}),ArrowUp:()=>(t.open("last","manual"),{shouldPreventDefault:!1}),ArrowLeft:()=>(t.selectionManager.setFocusedKey(null),{shouldPreventDefault:!1}),ArrowRight:()=>(t.selectionManager.setFocusedKey(null),{shouldPreventDefault:!1})},allowRepeats:!0}),S=V=>{let j=n?.current&&n.current===V.relatedTarget,me=ae(r.current,V.relatedTarget);j||me||(e.onBlur&&e.onBlur(V),t.setFocused(!1))},B=V=>{t.isFocused||(e.onFocus&&e.onFocus(V),t.setFocused(!0))},E=_9([t.selectionManager.selectedKeys,t.selectionManager.selectionMode]),{isInvalid:k,validationErrors:K,validationDetails:T}=t.displayValidation,{labelProps:I,inputProps:R,descriptionProps:D,errorMessageProps:M}=p0({...e,isRequired:e.selectionMode==="multiple"?e.isRequired&&t.selectionManager.isEmpty:e.isRequired,onChange:t.setInputValue,onKeyDown:d?e.onKeyDown:at(t.isOpen&&x.onKeyDown,C.onKeyDown,w.onKeyDown,e.onKeyDown),onBlur:S,value:t.inputValue,defaultValue:t.defaultInputValue,onFocus:B,autoComplete:"off",validate:void 0,[vo]:t,"aria-describedby":[E,e["aria-describedby"]].filter(Boolean).join(" ")||void 0},i);pa(i,t.defaultValue,t.setValue);let G=V=>{V.pointerType==="touch"&&(i.current?.focus(),t.toggle(null,"manual"))},O=V=>{V.pointerType!=="touch"&&(i.current?.focus(),t.toggle(V.pointerType==="keyboard"||V.pointerType==="virtual"?"first":null,"manual"))},Y=Tt({id:h.id,"aria-label":m.format("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||I.id}),P=Tt({id:p.id,"aria-label":m.format("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||I.id}),N=u.useRef(0),_=V=>{if(c||d)return;if(V.timeStamp-N.current<500){V.preventDefault(),i.current?.focus();return}let j=W(V).getBoundingClientRect(),me=V.changedTouches[0],he=Math.ceil(j.left+.5*j.width),Bt=Math.ceil(j.top+.5*j.height);me.clientX===he&&me.clientY===Bt&&(V.preventDefault(),i.current?.focus(),t.toggle(null,"manual"),N.current=V.timeStamp)},Q=t.selectionManager.focusedKey!=null&&t.isOpen?t.collection.getItem(t.selectionManager.focusedKey):void 0,X=Q?.parentKey??null,A=t.selectionManager.focusedKey??null,F=u.useRef(X),z=u.useRef(A);u.useEffect(()=>{if(Si()&&Q!=null&&A!=null&&A!==z.current){let V=t.selectionManager.isSelected(A),j=X!=null?t.collection.getItem(X):null,me=j?.["aria-label"]||(typeof j?.rendered=="string"?j.rendered:"")||"",he=m.format("focusAnnouncement",{isGroupChange:(j&&X!==F.current)??!1,groupTitle:me,groupCount:j?[...Ne(j,t.collection)].length:0,optionText:Q["aria-label"]||Q.textValue||"",isSelected:V});$t(he)}F.current=X,z.current=A});let L=Vo(t.collection),J=u.useRef(L),le=u.useRef(t.isOpen);u.useEffect(()=>{let V=t.isOpen!==le.current&&(t.selectionManager.focusedKey==null||Si());if(t.isOpen&&(V||L!==J.current)){let j=m.format("countAnnouncement",{optionCount:L});$t(j)}J.current=L,le.current=t.isOpen});let Ke=u.useRef(t.selectedKey);return u.useEffect(()=>{if(Si()&&t.isFocused&&t.selectedItem&&t.selectedKey!==Ke.current){let V=t.selectedItem["aria-label"]||t.selectedItem.textValue||"",j=m.format("selectedAnnouncement",{optionText:V});$t(j)}Ke.current=t.selectedKey}),u.useEffect(()=>{if(t.isOpen)return Ho([i.current,r.current].filter(V=>V!=null))},[t.isOpen,i,r]),Tr(()=>{!Q&&i.current&&ce(se(i.current))===i.current&&ol(i.current,null)},[Q]),lt(a,"react-aria-item-action",t.isOpen?()=>{t.close()}:void 0),{labelProps:{...I,onClick:"htmlFor"in I&&I.htmlFor||e.isDisabled?void 0:()=>{i.current?.focus(),Ln("keyboard")}},buttonProps:{...h,...Y,excludeFromTabOrder:!0,preventFocusOnPress:!0,onPress:G,onPressStart:O,isDisabled:c||d},inputProps:q(R,{role:"combobox","aria-expanded":h["aria-expanded"],"aria-controls":t.isOpen?p.id:void 0,"aria-autocomplete":"list","aria-activedescendant":Q?Mm(t,Q.key):void 0,onTouchEnd:_,autoCorrect:"off",spellCheck:"false"}),listBoxProps:q(p,P,{onAction:void 0,autoFocus:t.focusStrategy||!0,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,linkBehavior:"selection",UNSTABLE_itemBehavior:"action"}),valueProps:{id:E},descriptionProps:D,errorMessageProps:M,isInvalid:k,validationErrors:K,validationDetails:T}}function _9(e=[]){let t=Ee(),[n,r]=u.useState(!0),[i,a]=u.useState(e);return i.some((l,o)=>!Object.is(l,e[o]))&&(r(!0),a(e)),u.useEffect(()=>{n&&!document.getElementById(t)&&r(!1)},[t,n,i]),n?t:void 0}function R9(e){let{defaultFilter:t,menuTrigger:n="input",allowsEmptyCollection:r=!1,allowsCustomValue:i,shouldCloseOnBlur:a=!0,selectionMode:l="single"}=e,[o,s]=u.useState(!1),[d,c]=u.useState(!1),[f,m]=u.useState(null),h=u.useMemo(()=>e.defaultValue!==void 0?e.defaultValue:l==="single"?e.defaultSelectedKey??null:[],[e.defaultValue,e.defaultSelectedKey,l]),p=u.useMemo(()=>e.value!==void 0?e.value:l==="single"?e.selectedKey:void 0,[e.value,e.selectedKey,l]),[g,y]=He(p,h,e.onChange),$=l==="single"&&Array.isArray(g)?g[0]:g,x=oe=>{if(l==="single"){let Se=Array.isArray(oe)?oe[0]??null:oe;y(Se),Se!==$&&e.onSelectionChange?.(Se)}else{let Se=[];Array.isArray(oe)?Se=oe:oe!=null&&(Se=[oe]),y(Se)}},{collection:v,selectionManager:C,disabledKeys:w}=Ca({...e,items:e.items??e.defaultItems,selectionMode:l,disallowEmptySelection:l==="single",allowDuplicateSelectionEvents:!0,selectedKeys:u.useMemo(()=>H9($),[$]),onSelectionChange:oe=>{if(oe!=="all")if(l==="single"){let Se=oe.values().next().value??null;Se===$?(e.onSelectionChange?.(Se),z(),X()):x(Se)}else x([...oe])}}),S=l==="single"?C.firstSelectedKey:null,B=u.useMemo(()=>[...C.selectedKeys].map(oe=>v.getItem(oe)).filter(oe=>oe!=null),[C.selectedKeys,v]),[E,k]=He(e.inputValue,Nh(e.defaultInputValue,S,v)||"",e.onInputChange),[K]=u.useState($),[T]=u.useState(E),I=v,R=u.useMemo(()=>e.items!=null||!t?v:j9(v,E,t),[v,E,t,e.items]),[D,M]=u.useState(R),G=u.useRef("focus"),Y=qr({...e,onOpenChange:oe=>{e.onOpenChange&&e.onOpenChange(oe,oe?G.current:void 0),C.setFocused(oe),oe||C.setFocusedKey(null)},isOpen:void 0,defaultOpen:void 0}),P=(oe=null,Se)=>{let yi=Se==="manual"||Se==="focus"&&n==="focus";(r||R.size>0||yi&&I.size>0||e.items)&&(yi&&!Y.isOpen&&e.items===void 0&&s(!0),G.current=Se,m(oe),Y.open())},N=(oe=null,Se)=>{let yi=Se==="manual"||Se==="focus"&&n==="focus";!(r||R.size>0||yi&&I.size>0||e.items)&&!Y.isOpen||(yi&&!Y.isOpen&&e.items===void 0&&s(!0),Y.isOpen||(G.current=Se),Q(oe))},_=u.useCallback(()=>{M(o?I:R)},[o,I,R]),Q=u.useCallback((oe=null)=>{Y.isOpen&&_(),m(oe),Y.toggle()},[Y,_]),X=u.useCallback(()=>{Y.isOpen&&(_(),Y.close())},[Y,_]),[A,F]=u.useState(E),z=()=>{let oe=S!=null?v.getItem(S)?.textValue??"":"";F(oe),k(oe)},L=u.useRef($),J=u.useRef(S!=null?v.getItem(S)?.textValue??"":"");u.useEffect(()=>{d&&(R.size>0||r)&&!Y.isOpen&&E!==A&&n!=="manual"&&P(null,"input"),!o&&!r&&Y.isOpen&&R.size===0&&X(),$!=null&&$!==L.current&&l==="single"&&X(),E!==A&&(C.setFocusedKey(null),s(!1),l==="single"&&E===""&&(e.inputValue===void 0||p===void 0)&&x(null)),$!==L.current&&(e.inputValue===void 0||p===void 0)?z():A!==E&&F(E);let oe=S!=null?v.getItem(S)?.textValue??"":"";!d&&S!=null&&e.inputValue===void 0&&S===L.current&&J.current!==oe&&(F(oe),k(oe)),L.current=$,J.current=oe});let le=ma({...e,value:u.useMemo(()=>Array.isArray($)&&$.length===0?null:{inputValue:E,value:$,selectedKey:S},[E,S,$])}),Ke=()=>{i&&S==null?V():j()},V=()=>{if(l==="multiple"){F(E),X();return}let oe=null;L.current=oe,x(oe),X()},j=(oe=!1)=>{if(p!==void 0&&e.inputValue!==void 0){let Se=S!=null?v.getItem(S)?.textValue??"":"";(oe||l==="multiple"||E!==Se)&&(e.onSelectionChange?.(S),e.onChange?.($)),F(Se),X()}else z(),X()};const me=()=>{if(i){const oe=S!=null?v.getItem(S)?.textValue??"":"";E===oe?j():V()}else j()};let he=()=>{Y.isOpen&&C.focusedKey!=null?C.isSelected(C.focusedKey)&&l==="single"?j(!0):C.select(C.focusedKey):me()},Bt=u.useRef([E,$]),ve=oe=>{oe?(Bt.current=[E,$],n==="focus"&&!e.isReadOnly&&P(null,"focus")):(a&&me(),(E!==Bt.current[0]||$!==Bt.current[1])&&le.commitValidation()),c(oe)},on=u.useMemo(()=>Y.isOpen?o?I:R:D,[Y.isOpen,I,R,o,D]),S$=e.defaultSelectedKey??(l==="single"?K:null);return{...le,...Y,focusStrategy:f,toggle:N,open:P,close:me,selectionManager:C,value:$,defaultValue:h??K,setValue:x,selectedKey:S,selectedItems:B,defaultSelectedKey:S$,setSelectedKey:x,disabledKeys:w,isFocused:d,setFocused:ve,selectedItem:B[0]??null,collection:on,inputValue:E,defaultInputValue:Nh(e.defaultInputValue,S$,v)??T,setInputValue:k,commit:he,revert:Ke}}function j9(e,t,n){return new _o(Bh(e,e,t,n))}function Bh(e,t,n,r){let i=[];for(let a of t)if(a.type==="section"&&a.hasChildNodes){let l=Bh(e,Ne(a,e),n,r);[...l].some(o=>o.type==="item")&&i.push({...a,childNodes:l})}else a.type==="item"&&r(a.textValue,n)?i.push({...a}):a.type!=="item"&&i.push({...a});return i}function Nh(e,t,n){return e==null&&t!=null?n.getItem(t)?.textValue??"":e}function H9(e){if(e!==void 0)return e===null?[]:Array.isArray(e)?e:[e]}function Ah(e){let t=Qn({usage:"search",...e}),n=u.useCallback((a,l)=>l.length===0?!0:(a=a.normalize("NFC"),l=l.normalize("NFC"),t.compare(a.slice(0,l.length),l)===0),[t]),r=u.useCallback((a,l)=>l.length===0?!0:(a=a.normalize("NFC"),l=l.normalize("NFC"),t.compare(a.slice(-l.length),l)===0),[t]),i=u.useCallback((a,l)=>{if(l.length===0)return!0;a=a.normalize("NFC"),l=l.normalize("NFC");let o=0,s=l.length;for(;o+s<=a.length;o++){let d=a.slice(o,o+s);if(t.compare(l,d)===0)return!0}return!1},[t]);return u.useMemo(()=>({startsWith:n,endsWith:r,contains:i}),[n,r,i])}function U9(e={}){let{locale:t}=be();return u.useMemo(()=>new Intl.ListFormat(t,e),[t,e])}const W9=u.createContext(null),nu=u.createContext(null),G9=Vn(function(t,n){[t,n]=pe(t,n,W9);let{children:r,isDisabled:i=!1,isInvalid:a=!1,isRequired:l=!1,isReadOnly:o=!1}=t,s=u.useMemo(()=>u.createElement(Ur.Provider,{value:{items:t.items??t.defaultItems}},typeof r=="function"?r({isOpen:!1,isDisabled:i,isInvalid:a,isRequired:l,defaultChildren:null,isReadOnly:o}):r),[r,i,a,l,o,t.items,t.defaultItems]);return u.createElement(fn,{content:s},d=>u.createElement(Y9,{props:t,collection:d,comboBoxRef:n}))}),Z9=[pn,vt,Jn,vr,Xn,tt];function Y9({props:e,collection:t,comboBoxRef:n}){let{name:r,formValue:i="key",allowsCustomValue:a}=e;a&&(i="text");let{validationBehavior:l}=qe(ha)||{},o=e.validationBehavior??l??"native",{contains:s}=Ah({sensitivity:"base"}),d=R9({...e,defaultFilter:e.defaultFilter||s,items:e.items,children:void 0,collection:t,validationBehavior:o}),c=u.useRef(null),f=u.useRef(null),m=u.useRef(null),h=u.useRef(null),p=u.useRef(null),[g,y]=un(!e["aria-label"]&&!e["aria-labelledby"]),[$,x]=u.useState("label"),{buttonProps:v,inputProps:C,listBoxProps:w,labelProps:S,descriptionProps:B,errorMessageProps:E,valueProps:k,...K}=V9({...mr(e),label:y,inputRef:f,buttonRef:c,listBoxRef:h,popoverRef:p,name:i==="text"?r:void 0,validationBehavior:o,labelElementType:$},d),[T,I]=u.useState(null),R=u.useCallback(()=>{if(f.current&&!m.current){let P=c.current?.getBoundingClientRect(),N=f.current.getBoundingClientRect(),_=P?Math.min(P.left,N.left):N.left,Q=P?Math.max(P.right,N.right):N.right;I(Q-_+"px")}},[c,f,I]);Zr({ref:f,onResize:R});let D=u.useMemo(()=>({get current(){return m.current||f.current}}),[m,f]),M=u.useMemo(()=>({isOpen:d.isOpen,isDisabled:e.isDisabled||!1,isInvalid:K.isInvalid||!1,isRequired:e.isRequired||!1,isReadOnly:e.isReadOnly||!1}),[d.isOpen,e.isDisabled,K.isInvalid,e.isRequired,e.isReadOnly]),G=ue({...e,values:M,defaultClassName:"react-aria-ComboBox"}),O=ie(e,{global:!0});delete O.id;let Y=[];if(r&&i==="key"){let P=Array.isArray(d.value)?d.value:[d.value];P.length===0&&(P=[null]),Y=P.map((N,_)=>u.createElement("input",{key:_,type:"hidden",name:r,form:e.form,value:N??""}))}return u.createElement(Pe,{values:[[nu,d],[pn,{...S,elementType:$,ref:g}],[vt,{...v,ref:c,isPressed:d.isOpen}],[Jn,{...C,ref:f}],[vr,{...C,ref:u.useCallback(P=>{f.current=P,P&&x(P.tagName.toLowerCase()==="input"?"label":"span")},[]),value:d.inputValue,onChange:P=>d.setInputValue(P)}],[zt,d],[Xr,{ref:p,triggerRef:D,scrollRef:h,placement:"bottom start",isNonModal:!0,trigger:"ComboBox",style:{"--trigger-width":T},clearContexts:Z9}],[Ur,{...w,ref:h}],[Sn,d],[tt,{slots:{description:B,errorMessage:E}}],[Xn,{ref:m,isInvalid:K.isInvalid,isDisabled:e.isDisabled||!1}],[fa,K],[q9,k]]},u.createElement(re.div,{...O,...G,ref:n,slot:e.slot||void 0,"data-focused":d.isFocused||void 0,"data-open":d.isOpen||void 0,"data-disabled":e.isDisabled||void 0,"data-readonly":e.isReadOnly||void 0,"data-invalid":K.isInvalid||void 0,"data-required":e.isRequired||void 0},G.children,Y))}const q9=u.createContext(null),X9=["day","month","year"],J9={hour:1,minute:2,second:3};function Q9(e,t){let{autoComplete:n,isDisabled:r,name:i}=e,{visuallyHiddenProps:a}=Dn({style:{position:"fixed",top:0,left:0}}),l=60;t.granularity==="second"?l=1:t.granularity==="hour"&&(l=3600);let o="";t.value&&(t.granularity==="day"?o=Ve(t.value).toString():o=Qt("timeZone"in t.value?a6(t.value):t.value).toString());let s=t.granularity==="day"?"date":"datetime-local",d=["hour","minute","second"],c=0;return d.includes(t.granularity)&&(c=J9[t.granularity],d=d.slice(0,c)),{containerProps:{...a,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{tabIndex:-1,autoComplete:n,disabled:r,type:s,form:"",name:i,step:l,value:o,onChange:f=>{let m=W(f).value.toString();if(m)try{let h=b6(m);if(t.granularity==="day"&&(h=p6(m)),"setSegment"in t)for(let p in h)X9.includes(p)&&t.setSegment(p,h[p]),d.includes(p)&&t.setSegment(p,h[p]);t.setValue(h)}catch{}}}}}function e8(e){let{state:t}=e,{containerProps:n,inputProps:r}=Q9({...e},t);return u.createElement("div",{...n,"data-testid":"hidden-dateinput-container"},u.createElement("input",r))}var Fh={};Fh={calendar:"التقويم",day:"يوم",dayPeriod:"ص/م",endDate:"تاريخ الانتهاء",era:"العصر",hour:"الساعات",minute:"الدقائق",month:"الشهر",second:"الثواني",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.startDate} إلى ${e.endDate}`,selectedTimeDescription:e=>`الوقت المحدد: ${e.time}`,startDate:"تاريخ البدء",timeZoneName:"التوقيت",weekday:"اليوم",year:"السنة"};var Th={};Th={calendar:"Календар",day:"ден",dayPeriod:"пр.об./сл.об.",endDate:"Крайна дата",era:"ера",hour:"час",minute:"минута",month:"месец",second:"секунда",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.startDate} до ${e.endDate}`,selectedTimeDescription:e=>`Избрано време: ${e.time}`,startDate:"Начална дата",timeZoneName:"часова зона",weekday:"ден от седмицата",year:"година"};var Ih={};Ih={calendar:"Kalendář",day:"den",dayPeriod:"část dne",endDate:"Konečné datum",era:"letopočet",hour:"hodina",minute:"minuta",month:"měsíc",second:"sekunda",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.startDate} až ${e.endDate}`,selectedTimeDescription:e=>`Vybraný čas: ${e.time}`,startDate:"Počáteční datum",timeZoneName:"časové pásmo",weekday:"den v týdnu",year:"rok"};var Mh={};Mh={calendar:"Kalender",day:"dag",dayPeriod:"AM/PM",endDate:"Slutdato",era:"æra",hour:"time",minute:"minut",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tidspunkt: ${e.time}`,startDate:"Startdato",timeZoneName:"tidszone",weekday:"ugedag",year:"år"};var Kh={};Kh={calendar:"Kalender",day:"Tag",dayPeriod:"Tageshälfte",endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.startDate} bis ${e.endDate}`,selectedTimeDescription:e=>`Ausgewählte Zeit: ${e.time}`,startDate:"Startdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"};var Lh={};Lh={calendar:"Ημερολόγιο",day:"ημέρα",dayPeriod:"π.μ./μ.μ.",endDate:"Ημερομηνία λήξης",era:"περίοδος",hour:"ώρα",minute:"λεπτό",month:"μήνας",second:"δευτερόλεπτο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.startDate} έως ${e.endDate}`,selectedTimeDescription:e=>`Επιλεγμένη ώρα: ${e.time}`,startDate:"Ημερομηνία έναρξης",timeZoneName:"ζώνη ώρας",weekday:"καθημερινή",year:"έτος"};var Oh={};Oh={era:"era",year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",dayPeriod:"AM/PM",calendar:"Calendar",startDate:"Start Date",endDate:"End Date",weekday:"day of the week",timeZoneName:"time zone",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.startDate} to ${e.endDate}`,selectedTimeDescription:e=>`Selected Time: ${e.time}`};var zh={};zh={calendar:"Calendario",day:"día",dayPeriod:"a. m./p. m.",endDate:"Fecha final",era:"era",hour:"hora",minute:"minuto",month:"mes",second:"segundo",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Rango seleccionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora seleccionada: ${e.time}`,startDate:"Fecha de inicio",timeZoneName:"zona horaria",weekday:"día de la semana",year:"año"};var Vh={};Vh={calendar:"Kalender",day:"päev",dayPeriod:"enne/pärast lõunat",endDate:"Lõppkuupäev",era:"ajastu",hour:"tund",minute:"minut",month:"kuu",second:"sekund",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.startDate} kuni ${e.endDate}`,selectedTimeDescription:e=>`Valitud aeg: ${e.time}`,startDate:"Alguskuupäev",timeZoneName:"ajavöönd",weekday:"nädalapäev",year:"aasta"};var _h={};_h={calendar:"Kalenteri",day:"päivä",dayPeriod:"vuorokaudenaika",endDate:"Päättymispäivä",era:"aikakausi",hour:"tunti",minute:"minuutti",month:"kuukausi",second:"sekunti",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.startDate} – ${e.endDate}`,selectedTimeDescription:e=>`Valittu aika: ${e.time}`,startDate:"Alkamispäivä",timeZoneName:"aikavyöhyke",weekday:"viikonpäivä",year:"vuosi"};var Rh={};Rh={calendar:"Calendrier",day:"jour",dayPeriod:"cadran",endDate:"Date de fin",era:"ère",hour:"heure",minute:"minute",month:"mois",second:"seconde",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.startDate} au ${e.endDate}`,selectedTimeDescription:e=>`Heure choisie : ${e.time}`,startDate:"Date de début",timeZoneName:"fuseau horaire",weekday:"jour de la semaine",year:"année"};var jh={};jh={calendar:"לוח שנה",day:"יום",dayPeriod:"לפנה״צ/אחה״צ",endDate:"תאריך סיום",era:"תקופה",hour:"שעה",minute:"דקה",month:"חודש",second:"שנייה",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.startDate} עד ${e.endDate}`,selectedTimeDescription:e=>`זמן נבחר: ${e.time}`,startDate:"תאריך התחלה",timeZoneName:"אזור זמן",weekday:"יום בשבוע",year:"שנה"};var Hh={};Hh={calendar:"Kalendar",day:"dan",dayPeriod:"AM/PM",endDate:"Datum završetka",era:"era",hour:"sat",minute:"minuta",month:"mjesec",second:"sekunda",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Odabrano vrijeme: ${e.time}`,startDate:"Datum početka",timeZoneName:"vremenska zona",weekday:"dan u tjednu",year:"godina"};var Uh={};Uh={calendar:"Naptár",day:"nap",dayPeriod:"napszak",endDate:"Befejező dátum",era:"éra",hour:"óra",minute:"perc",month:"hónap",second:"másodperc",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.startDate}–${e.endDate}`,selectedTimeDescription:e=>`Kijelölt idő: ${e.time}`,startDate:"Kezdő dátum",timeZoneName:"időzóna",weekday:"hét napja",year:"év"};var Wh={};Wh={calendar:"Calendario",day:"giorno",dayPeriod:"AM/PM",endDate:"Data finale",era:"era",hour:"ora",minute:"minuto",month:"mese",second:"secondo",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: da ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Ora selezionata: ${e.time}`,startDate:"Data iniziale",timeZoneName:"fuso orario",weekday:"giorno della settimana",year:"anno"};var Gh={};Gh={calendar:"カレンダー",day:"日",dayPeriod:"午前/午後",endDate:"終了日",era:"時代",hour:"時",minute:"分",month:"月",second:"秒",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.startDate} から ${e.endDate}`,selectedTimeDescription:e=>`選択した時間 : ${e.time}`,startDate:"開始日",timeZoneName:"タイムゾーン",weekday:"曜日",year:"年"};var Zh={};Zh={calendar:"달력",day:"일",dayPeriod:"오전/오후",endDate:"종료일",era:"연호",hour:"시",minute:"분",month:"월",second:"초",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.startDate} ~ ${e.endDate}`,selectedTimeDescription:e=>`선택 시간: ${e.time}`,startDate:"시작일",timeZoneName:"시간대",weekday:"요일",year:"년"};var Yh={};Yh={calendar:"Kalendorius",day:"diena",dayPeriod:"iki pietų / po pietų",endDate:"Pabaigos data",era:"era",hour:"valanda",minute:"minutė",month:"mėnuo",second:"sekundė",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: nuo ${e.startDate} iki ${e.endDate}`,selectedTimeDescription:e=>`Pasirinktas laikas: ${e.time}`,startDate:"Pradžios data",timeZoneName:"laiko juosta",weekday:"savaitės diena",year:"metai"};var qh={};qh={calendar:"Kalendārs",day:"diena",dayPeriod:"priekšpusdienā/pēcpusdienā",endDate:"Beigu datums",era:"ēra",hour:"stundas",minute:"minūtes",month:"mēnesis",second:"sekundes",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: no ${e.startDate} līdz ${e.endDate}`,selectedTimeDescription:e=>`Atlasītais laiks: ${e.time}`,startDate:"Sākuma datums",timeZoneName:"laika josla",weekday:"nedēļas diena",year:"gads"};var Xh={};Xh={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Sluttdato",era:"tidsalder",hour:"time",minute:"minutt",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tid: ${e.time}`,startDate:"Startdato",timeZoneName:"tidssone",weekday:"ukedag",year:"år"};var Jh={};Jh={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Einddatum",era:"tijdperk",hour:"uur",minute:"minuut",month:"maand",second:"seconde",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.startDate} tot ${e.endDate}`,selectedTimeDescription:e=>`Geselecteerde tijd: ${e.time}`,startDate:"Startdatum",timeZoneName:"tijdzone",weekday:"dag van de week",year:"jaar"};var Qh={};Qh={calendar:"Kalendarz",day:"dzień",dayPeriod:"rano / po południu / wieczorem",endDate:"Data końcowa",era:"era",hour:"godzina",minute:"minuta",month:"miesiąc",second:"sekunda",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Wybrany czas: ${e.time}`,startDate:"Data początkowa",timeZoneName:"strefa czasowa",weekday:"dzień tygodnia",year:"rok"};var ep={};ep={calendar:"Calendário",day:"dia",dayPeriod:"AM/PM",endDate:"Data final",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data inicial",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var tp={};tp={calendar:"Calendário",day:"dia",dayPeriod:"am/pm",endDate:"Data de Término",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data de Início",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var np={};np={calendar:"Calendar",day:"zi",dayPeriod:"a.m/p.m.",endDate:"Dată final",era:"eră",hour:"oră",minute:"minut",month:"lună",second:"secundă",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: de la ${e.startDate} până la ${e.endDate}`,selectedTimeDescription:e=>`Ora selectată: ${e.time}`,startDate:"Dată început",timeZoneName:"fus orar",weekday:"ziua din săptămână",year:"an"};var rp={};rp={calendar:"Календарь",day:"день",dayPeriod:"AM/PM",endDate:"Дата окончания",era:"эра",hour:"час",minute:"минута",month:"месяц",second:"секунда",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: с ${e.startDate} по ${e.endDate}`,selectedTimeDescription:e=>`Выбранное время: ${e.time}`,startDate:"Дата начала",timeZoneName:"часовой пояс",weekday:"день недели",year:"год"};var ip={};ip={calendar:"Kalendár",day:"deň",dayPeriod:"AM/PM",endDate:"Dátum ukončenia",era:"letopočet",hour:"hodina",minute:"minúta",month:"mesiac",second:"sekunda",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Vybratý čas: ${e.time}`,startDate:"Dátum začatia",timeZoneName:"časové pásmo",weekday:"deň týždňa",year:"rok"};var ap={};ap={calendar:"Koledar",day:"dan",dayPeriod:"dop/pop",endDate:"Datum konca",era:"doba",hour:"ura",minute:"minuta",month:"mesec",second:"sekunda",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izbrani čas: ${e.time}`,startDate:"Datum začetka",timeZoneName:"časovni pas",weekday:"dan v tednu",year:"leto"};var lp={};lp={calendar:"Kalendar",day:"дан",dayPeriod:"пре подне/по подне",endDate:"Datum završetka",era:"ера",hour:"сат",minute:"минут",month:"месец",second:"секунд",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani opseg: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izabrano vreme: ${e.time}`,startDate:"Datum početka",timeZoneName:"временска зона",weekday:"дан у недељи",year:"година"};var op={};op={calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:"månad",second:"sekund",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.startDate} till ${e.endDate}`,selectedTimeDescription:e=>`Vald tid: ${e.time}`,startDate:"Startdatum",timeZoneName:"tidszon",weekday:"veckodag",year:"år"};var up={};up={calendar:"Takvim",day:"gün",dayPeriod:"ÖÖ/ÖS",endDate:"Bitiş Tarihi",era:"çağ",hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.startDate} - ${e.endDate}`,selectedTimeDescription:e=>`Seçilen Zaman: ${e.time}`,startDate:"Başlangıç Tarihi",timeZoneName:"saat dilimi",weekday:"haftanın günü",year:"yıl"};var sp={};sp={calendar:"Календар",day:"день",dayPeriod:"дп/пп",endDate:"Дата завершення",era:"ера",hour:"година",minute:"хвилина",month:"місяць",second:"секунда",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.startDate} — ${e.endDate}`,selectedTimeDescription:e=>`Вибраний час: ${e.time}`,startDate:"Дата початку",timeZoneName:"часовий пояс",weekday:"день тижня",year:"рік"};var dp={};dp={calendar:"日历",day:"日",dayPeriod:"上午/下午",endDate:"结束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`选定的时间:${e.time}`,startDate:"开始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var cp={};cp={calendar:"日曆",day:"日",dayPeriod:"上午/下午",endDate:"結束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`選定的時間:${e.time}`,startDate:"開始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var ru={};ru={"ar-AE":Fh,"bg-BG":Th,"cs-CZ":Ih,"da-DK":Mh,"de-DE":Kh,"el-GR":Lh,"en-US":Oh,"es-ES":zh,"et-EE":Vh,"fi-FI":_h,"fr-FR":Rh,"he-IL":jh,"hr-HR":Hh,"hu-HU":Uh,"it-IT":Wh,"ja-JP":Gh,"ko-KR":Zh,"lt-LT":Yh,"lv-LV":qh,"nb-NO":Xh,"nl-NL":Jh,"pl-PL":Qh,"pt-BR":ep,"pt-PT":tp,"ro-RO":np,"ru-RU":rp,"sk-SK":ip,"sl-SI":ap,"sr-SP":lp,"sv-SE":op,"tr-TR":up,"uk-UA":sp,"zh-CN":dp,"zh-TW":cp};function t8(e,t,n){let{direction:r}=be(),i=u.useMemo(()=>Rm(t),[t]),{keyboardProps:a}=Le({shortcuts:{"Alt+ArrowDown":()=>{if("setOpen"in e){e.setOpen(!0);return}return!1},"Alt+ArrowUp":()=>{if("setOpen"in e){e.setOpen(!0);return}return!1},ArrowLeft:s=>{if(n)return!1;if(r==="rtl"){if(t.current){let d=W(s),c=fp(t.current,d.getBoundingClientRect().left,-1);if(c){c.focus();return}}}else{i.focusPrevious();return}return!1},ArrowRight:s=>{if(n)return!1;if(r==="rtl"){if(t.current){let d=W(s),c=fp(t.current,d.getBoundingClientRect().left,1);if(c){c.focus();return}}}else{i.focusNext();return}return!1}},allowRepeats:!0}),l=()=>{if(!t.current)return;let s=window.event?W(window.event):null,d=Ae(t.current,{tabbable:!0});if(s&&(d.currentNode=s,s=d.previousNode()),!s){let c;do c=d.lastChild(),c&&(s=c);while(c)}for(;s?.hasAttribute("data-placeholder");){let c=d.previousNode();if(c&&c.hasAttribute("data-placeholder"))s=c;else break}s&&s.focus()},{pressProps:o}=It({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(s){s.pointerType==="mouse"&&l()},onPress(s){(s.pointerType==="touch"||s.pointerType==="pen")&&l()}});return q(o,a)}function fp(e,t,n){let r=Ae(e,{tabbable:!0}),i=r.nextNode(),a=null,l=1/0;for(;i;){let s=i.getBoundingClientRect().left-t,d=Math.abs(s);Math.sign(s)===n&&d<l&&(a=i,l=d),i=r.nextNode()}return a}function n8(e){return e&&e.__esModule?e.default:e}const mp=new WeakMap,iu="__reactAriaDateFieldRole",r8="__reactAriaDateFieldFocusManager";function hp(e,t,n){let{isInvalid:r,validationErrors:i,validationDetails:a}=t.displayValidation,{labelProps:l,fieldProps:o,descriptionProps:s,errorMessageProps:d}=Do({...e,labelElementType:"span",isInvalid:r,errorMessage:e.errorMessage||i}),c=u.useRef(null),{focusWithinProps:f}=jn({...e,onFocusWithin(k){c.current=t.value,e.onFocus?.(k)},onBlurWithin:k=>{t.confirmPlaceholder(),t.value!==c.current&&t.commitValidation(),e.onBlur?.(k)},onFocusWithinChange:e.onFocusChange}),m=ke(n8(ru),"@react-aria/datepicker"),h=t.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",p=t.maxGranularity==="hour"?"time":"date",g=t.value?m.format(h,{[p]:t.formatValue({month:"long"})}):"",y=xn(g),$=e[iu]==="presentation"?o["aria-describedby"]:[y["aria-describedby"],o["aria-describedby"]].filter(Boolean).join(" ")||void 0,x=e[r8],v=u.useMemo(()=>x||Rm(n),[x,n]),C=t8(t,n,e[iu]==="presentation");mp.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[l.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:$,focusManager:v});let w=u.useRef(e.autoFocus),S;e[iu]==="presentation"?S={role:"presentation"}:S=q(o,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":$}),u.useEffect(()=>{w.current&&v.focusFirst(),w.current=!1},[v]),pa(e.inputRef,t.defaultValue,t.setValue),Eo({...e,focus(){v.focusFirst()}},t,e.inputRef);let B={type:"hidden",name:e.name,form:e.form,value:t.value?.toString()||"",disabled:e.isDisabled};e.validationBehavior==="native"&&(B.type="text",B.hidden=!0,B.required=e.isRequired,B.onChange=()=>{});let E=ie(e);return{labelProps:{...l,onClick:()=>{v.focusFirst()}},fieldProps:q(E,S,C,f,{onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp,style:{unicodeBidi:"isolate"}}),inputProps:B,descriptionProps:s,errorMessageProps:d,isInvalid:r,validationErrors:i,validationDetails:a}}function i8(e){return e&&e.__esModule?e.default:e}function a8(){let{locale:e}=be(),t=ad(i8(ru),"@react-aria/datepicker");return u.useMemo(()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch{return new l8(e,t)}},[e,t])}class l8{constructor(t,n){this.locale=t,this.dictionary=n}of(t){return this.dictionary.getStringForLocale(t,this.locale)}}function o8(e,t,n){let r=u.useRef(""),{locale:i,direction:a}=be(),l=a8(),{ariaLabel:o,ariaLabelledBy:s,ariaDescribedBy:d,focusManager:c}=mp.get(t),f=e.isPlaceholder?"":e.text,m=u.useMemo(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),h=Ye({month:"long",timeZone:m.timeZone}),p=Ye({hour:"numeric",hour12:m.hour12,timeZone:m.timeZone});if(e.type==="month"&&!e.isPlaceholder){let N=h.format(t.dateValue);f=N!==f?`${f} – ${N}`:N}else e.type==="hour"&&!e.isPlaceholder&&(f=p.format(t.dateValue));let{spinButtonProps:g}=$x({value:e.value??void 0,textValue:f,minValue:e.minValue,maxValue:e.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly||!e.isEditable,isRequired:t.isRequired,onIncrement:()=>{r.current="",t.increment(e.type)},onDecrement:()=>{r.current="",t.decrement(e.type)},onIncrementPage:()=>{r.current="",t.incrementPage(e.type)},onDecrementPage:()=>{r.current="",t.decrementPage(e.type)},onIncrementToMax:()=>{r.current="",t.incrementToMax(e.type)},onDecrementToMin:()=>{r.current="",t.decrementToMin(e.type)}}),y=u.useMemo(()=>new $c(i,{maximumFractionDigits:0}),[i]),$=()=>{if(e.text===e.placeholder&&c.focusPrevious(),y.isValidPartialNumber(e.text)&&!t.isReadOnly&&!e.isPlaceholder){let N=e.text.slice(0,-1),_=y.parse(N);N=_===0?"":N,N.length===0||_===0?t.clearSegment(e.type):t.setSegment(e.type,_),r.current=N}else(e.type==="dayPeriod"||e.type==="era")&&t.clearSegment(e.type)},{keyboardProps:x}=Le({shortcuts:{Backspace:()=>{$()},Delete:()=>{$()},"Mod+a":()=>{}},allowRepeats:!0}),{startsWith:v}=Ah({sensitivity:"base"}),C=Ye({hour:"numeric",hour12:!0}),w=u.useMemo(()=>{let N=new Date;return N.setHours(0),C.formatToParts(N).find(_=>_.type==="dayPeriod").value},[C]),S=u.useMemo(()=>{let N=new Date;return N.setHours(12),C.formatToParts(N).find(_=>_.type==="dayPeriod").value},[C]),B=Ye({year:"numeric",era:"narrow",timeZone:"UTC"}),E=u.useMemo(()=>{if(e.type!=="era")return[];let N=ye(new we(1,1,1),t.calendar),_=t.calendar.getEras().map(X=>{let A=N.set({year:1,month:1,day:1,era:X}).toDate("UTC"),z=B.formatToParts(A).find(L=>L.type==="era").value;return{era:X,formatted:z}}),Q=u8(_.map(X=>X.formatted));if(Q)for(let X of _)X.formatted=X.formatted.slice(Q);return _},[B,t.calendar,e.type]),k=N=>{if(t.isDisabled||t.isReadOnly)return;let _=r.current+N;switch(e.type){case"dayPeriod":if(v(w,N))t.setSegment("dayPeriod",0);else if(v(S,N))t.setSegment("dayPeriod",1);else break;c.focusNext();break;case"era":{let Q=E.find(X=>v(X.formatted,N));Q&&(t.setSegment("era",Q.era),c.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!y.isValidPartialNumber(_))return;let Q=y.parse(_),X=Q;if(e.maxValue!==void 0&&Q>e.maxValue&&(X=y.parse(N)),isNaN(Q))return;t.setSegment(e.type,X),e.maxValue!==void 0&&(+(Q+"0")>e.maxValue||_.length>=String(e.maxValue).length)?(r.current="",c.focusNext()):r.current=_;break}}},K=()=>{r.current="",n.current&&Ct(n.current,{containingElement:ot(n.current)}),window.getSelection()?.collapse(n.current)},T=u.useRef(typeof document<"u"?document:null);lt(T,"selectionchange",()=>{let N=window.getSelection();N?.anchorNode&&ae(n.current,N?.anchorNode)&&ce()===n.current&&N.collapse(n.current)});let I=u.useRef("");lt(n,"beforeinput",N=>{if(n.current)switch(N.preventDefault(),N.inputType){case"deleteContentBackward":case"deleteContentForward":y.isValidPartialNumber(e.text)&&!t.isReadOnly&&$();break;case"insertCompositionText":I.current=n.current.textContent,n.current.textContent=n.current.textContent;break;default:N.data!=null&&k(N.data);break}}),lt(n,"input",N=>{let{inputType:_,data:Q}=N;_==="insertCompositionText"&&(n.current&&(n.current.textContent=I.current),Q!=null&&(v(w,Q)||v(S,Q))&&k(Q))}),fe(()=>{let N=n.current;return()=>{ce()===N&&(c.focusPrevious()||c.focusNext())}},[n,c]);let R=bt()||e.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},D=u.useMemo(()=>t.segments.find(N=>N.isEditable),[t.segments]);e!==D&&!t.isInvalid&&(d=void 0);let M=Ee(),G=!t.isDisabled&&!t.isReadOnly&&e.isEditable,O=e.type==="literal"?"":l.of(e.type),Y=Tt({"aria-label":`${O}${o?`, ${o}`:""}${s?", ":""}`,"aria-labelledby":s});if(e.type==="literal")return{segmentProps:{"aria-hidden":!0}};let P={caretColor:"transparent"};if(a==="rtl"){P.unicodeBidi="embed";let N=m[e.type];(N==="numeric"||N==="2-digit")&&(P.direction="ltr")}return{segmentProps:q(g,Y,{id:M,...R,...x,"aria-invalid":t.isInvalid?"true":void 0,"aria-describedby":d,"aria-readonly":t.isReadOnly||!e.isEditable?"true":void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:G,suppressContentEditableWarning:G,spellCheck:G?"false":void 0,autoCorrect:G?"off":void 0,[parseInt(u.version,10)>=17?"enterKeyHint":"enterkeyhint"]:G?"next":void 0,inputMode:t.isDisabled||e.type==="dayPeriod"||e.type==="era"||!G?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onFocus:K,style:P,onPointerDown(N){N.stopPropagation()},onMouseDown(N){N.stopPropagation()}})}}function u8(e){e.sort();let t=e[0],n=e[e.length-1];for(let r=0;r<t.length;r++)if(t[r]!==n[r])return r;return 0}var pp={};pp={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var bp={};bp={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var gp={};gp={rangeOverflow:e=>`Hodnota musí být ${e.maxValue} nebo dřívější.`,rangeReversed:"Datum zahájení musí předcházet datu ukončení.",rangeUnderflow:e=>`Hodnota musí být ${e.minValue} nebo pozdější.`,unavailableDate:"Vybrané datum není k dispozici."};var yp={};yp={rangeOverflow:e=>`Værdien skal være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal være før slutdatoen.",rangeUnderflow:e=>`Værdien skal være ${e.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilgængelig."};var $p={};$p={rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder früher sein.`,rangeReversed:"Das Startdatum muss vor dem Enddatum liegen.",rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder später sein.`,unavailableDate:"Das ausgewählte Datum ist nicht verfügbar."};var vp={};vp={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var xp={};xp={rangeUnderflow:e=>`Value must be ${e.minValue} or later.`,rangeOverflow:e=>`Value must be ${e.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."};var Cp={};Cp={rangeOverflow:e=>`El valor debe ser ${e.maxValue} o anterior.`,rangeReversed:"La fecha de inicio debe ser anterior a la fecha de finalización.",rangeUnderflow:e=>`El valor debe ser ${e.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."};var Dp={};Dp={rangeOverflow:e=>`Väärtus peab olema ${e.maxValue} või varasem.`,rangeReversed:"Alguskuupäev peab olema enne lõppkuupäeva.",rangeUnderflow:e=>`Väärtus peab olema ${e.minValue} või hilisem.`,unavailableDate:"Valitud kuupäev pole saadaval."};var Ep={};Ep={rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sitä aikaisempi.`,rangeReversed:"Aloituspäivän on oltava ennen lopetuspäivää.",rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sitä myöhäisempi.`,unavailableDate:"Valittu päivämäärä ei ole käytettävissä."};var wp={};wp={rangeOverflow:e=>`La valeur doit être ${e.maxValue} ou antérieure.`,rangeReversed:"La date de début doit être antérieure à la date de fin.",rangeUnderflow:e=>`La valeur doit être ${e.minValue} ou ultérieure.`,unavailableDate:"La date sélectionnée n’est pas disponible."};var Sp={};Sp={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var Pp={};Pp={rangeOverflow:e=>`Vrijednost mora biti ${e.maxValue} ili ranije.`,rangeReversed:"Datum početka mora biti prije datuma završetka.",rangeUnderflow:e=>`Vrijednost mora biti ${e.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."};var kp={};kp={rangeOverflow:e=>`Az értéknek ${e.maxValue} vagy korábbinak kell lennie.`,rangeReversed:"A kezdő dátumnak a befejező dátumnál korábbinak kell lennie.",rangeUnderflow:e=>`Az értéknek ${e.minValue} vagy későbbinek kell lennie.`,unavailableDate:"A kiválasztott dátum nem érhető el."};var Bp={};Bp={rangeOverflow:e=>`Il valore deve essere ${e.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:e=>`Il valore deve essere ${e.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."};var Np={};Np={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var Ap={};Ap={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이후여야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var Fp={};Fp={rangeOverflow:e=>`Reikšmė turi būti ${e.maxValue} arba ankstesnė.`,rangeReversed:"Pradžios data turi būti ankstesnė nei pabaigos data.",rangeUnderflow:e=>`Reikšmė turi būti ${e.minValue} arba naujesnė.`,unavailableDate:"Pasirinkta data nepasiekiama."};var Tp={};Tp={rangeOverflow:e=>`Vērtībai ir jābūt ${e.maxValue} vai agrākai.`,rangeReversed:"Sākuma datumam ir jābūt pirms beigu datuma.",rangeUnderflow:e=>`Vērtībai ir jābūt ${e.minValue} vai vēlākai.`,unavailableDate:"Atlasītais datums nav pieejams."};var Ip={};Ip={rangeOverflow:e=>`Verdien må være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen må være før sluttdatoen.",rangeUnderflow:e=>`Verdien må være ${e.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."};var Mp={};Mp={rangeOverflow:e=>`Waarde moet ${e.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:e=>`Waarde moet ${e.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."};var Kp={};Kp={rangeOverflow:e=>`Wartość musi mieć wartość ${e.maxValue} lub wcześniejszą.`,rangeReversed:"Data rozpoczęcia musi być wcześniejsza niż data zakończenia.",rangeUnderflow:e=>`Wartość musi mieć wartość ${e.minValue} lub późniejszą.`,unavailableDate:"Wybrana data jest niedostępna."};var Lp={};Lp={rangeOverflow:e=>`O valor deve ser ${e.maxValue} ou anterior.`,rangeReversed:"A data inicial deve ser anterior à data final.",rangeUnderflow:e=>`O valor deve ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var Op={};Op={rangeOverflow:e=>`O valor tem de ser ${e.maxValue} ou anterior.`,rangeReversed:"A data de início deve ser anterior à data de fim.",rangeUnderflow:e=>`O valor tem de ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var zp={};zp={rangeOverflow:e=>`Valoarea trebuie să fie ${e.maxValue} sau anterioară.`,rangeReversed:"Data de început trebuie să fie anterioară datei de sfârșit.",rangeUnderflow:e=>`Valoarea trebuie să fie ${e.minValue} sau ulterioară.`,unavailableDate:"Data selectată nu este disponibilă."};var Vp={};Vp={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var _p={};_p={rangeOverflow:e=>`Hodnota musí byť ${e.maxValue} alebo skoršia.`,rangeReversed:"Dátum začiatku musí byť skorší ako dátum konca.",rangeUnderflow:e=>`Hodnota musí byť ${e.minValue} alebo neskoršia.`,unavailableDate:"Vybratý dátum je nedostupný."};var Rp={};Rp={rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starejša.`,rangeReversed:"Začetni datum mora biti pred končnim datumom.",rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novejša.`,unavailableDate:"Izbrani datum ni na voljo."};var jp={};jp={rangeOverflow:e=>`Vrednost mora da bude ${e.maxValue} ili starija.`,rangeReversed:"Datum početka mora biti pre datuma završetka.",rangeUnderflow:e=>`Vrednost mora da bude ${e.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."};var Hp={};Hp={rangeOverflow:e=>`Värdet måste vara ${e.maxValue} eller tidigare.`,rangeReversed:"Startdatumet måste vara före slutdatumet.",rangeUnderflow:e=>`Värdet måste vara ${e.minValue} eller senare.`,unavailableDate:"Det valda datumet är inte tillgängligt."};var Up={};Up={rangeOverflow:e=>`Değer, ${e.maxValue} veya öncesi olmalıdır.`,rangeReversed:"Başlangıç tarihi bitiş tarihinden önce olmalıdır.",rangeUnderflow:e=>`Değer, ${e.minValue} veya sonrası olmalıdır.`,unavailableDate:"Seçilen tarih kullanılamıyor."};var Wp={};Wp={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var Gp={};Gp={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var Zp={};Zp={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};var Yp={};Yp={"ar-AE":pp,"bg-BG":bp,"cs-CZ":gp,"da-DK":yp,"de-DE":$p,"el-GR":vp,"en-US":xp,"es-ES":Cp,"et-EE":Dp,"fi-FI":Ep,"fr-FR":wp,"he-IL":Sp,"hr-HR":Pp,"hu-HU":kp,"it-IT":Bp,"ja-JP":Np,"ko-KR":Ap,"lt-LT":Fp,"lv-LV":Tp,"nb-NO":Ip,"nl-NL":Mp,"pl-PL":Kp,"pt-BR":Lp,"pt-PT":Op,"ro-RO":zp,"ru-RU":Vp,"sk-SK":_p,"sl-SI":Rp,"sr-SP":jp,"sv-SE":Hp,"tr-TR":Up,"uk-UA":Wp,"zh-CN":Gp,"zh-TW":Zp};function s8(e){return e&&e.__esModule?e.default:e}const d8=new cn(s8(Yp));function c8(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return e}function f8(e,t,n,r,i){let a=e!=null&&n!=null&&e.compare(n)>0,l=e!=null&&t!=null&&e.compare(t)<0,o=e!=null&&r?.(e)||!1,s=a||l||o,d=[];if(s){let c=c8(),f=cn.getGlobalDictionaryForPackage("@react-stately/datepicker")||d8,m=new rd(c,f),h=new vn(c,Fa({},i)),p=h.resolvedOptions().timeZone;l&&t!=null&&d.push(m.format("rangeUnderflow",{minValue:h.format(t.toDate(p))})),a&&n!=null&&d.push(m.format("rangeOverflow",{maxValue:h.format(n.toDate(p))})),o&&d.push(m.format("unavailableDate"))}return{isInvalid:s,validationErrors:d,validationDetails:{badInput:o,customError:!1,patternMismatch:!1,rangeOverflow:a,rangeUnderflow:l,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!s}}}const m8={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},h8={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function Fa(e,t){e={...t.shouldForceLeadingZeros?h8:m8,...e};let r=t.granularity||"minute",i=Object.keys(e),a=i.indexOf(t.maxGranularity??"year");a<0&&(a=0);let l=i.indexOf(r);if(l<0&&(l=2),a>l)throw new Error("maxGranularity must be greater than granularity");let o=i.slice(a,l+1).reduce((d,c)=>(d[c]=e[c],d),{});return t.hourCycle!=null&&(o.hour12=t.hourCycle===12),o.timeZone=t.timeZone||"UTC",(r==="hour"||r==="minute"||r==="second")&&t.timeZone&&!t.hideTimeZone&&(o.timeZoneName="short"),t.showEra&&a===0&&(o.era="short"),o}function qp(e,t){if(e===null)return null;if(e)return ye(e,t)}function p8(e,t,n,r){if(e)return qp(e,n);let i=ye(ff(r??qi()).set({hour:0,minute:0,second:0,millisecond:0}),n);return t==="year"||t==="month"||t==="day"?Ve(i):r?i:Qt(i)}function b8(e,t){let n=e&&"timeZone"in e?e.timeZone:void 0,r=e&&"minute"in e?"minute":"day";if(e&&t&&!(t in e))throw new Error("Invalid granularity "+t+" for value "+e.toString());let[i,a]=u.useState([r,n]);e&&(i[0]!==r||i[1]!==n)&&a([r,n]),t||(t=e?r:i[0]);let l=e?n:i[1];return[t,l]}const g8=new cn({ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"ዓዓዓዓ",month:"ሚሜ",day:"ቀቀ"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"سنة",month:"شهر",day:"يوم"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"гггг",month:"мм",day:"дд"},bg:{year:"гггг",month:"мм",day:"дд"},bn:{year:"yyyy",month:"মিমি",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"ساڵ",month:"مانگ",day:"ڕۆژ"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"åååå",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"źź"},el:{year:"εεεε",month:"μμ",day:"ηη"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"سال",month:"ماه",day:"روز"},ff:{year:"hhhh",month:"ll",day:"ññ"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"שנה",month:"חודש",day:"יום"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"éééé",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},is:{year:"áááá",month:"mm",day:"dd"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:"年",month:"月",day:"日"},ka:{year:"წწწწ",month:"თთ",day:"რრ"},kk:{year:"жжжж",month:"аа",day:"кк"},kn:{year:"ವವವವ",month:"ಮಿಮೀ",day:"ದಿದಿ"},ko:{year:"연도",month:"월",day:"일"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"ປປປປ",month:"ດດ",day:"ວວ"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"വർഷം",month:"മാസം",day:"തീയതി"},ms:{year:"tttt",month:"mm",day:"hh"},nb:{year:"åååå",month:"mm",day:"dd"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"åååå",month:"mm",day:"dd"},no:{year:"åååå",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"гггг",month:"мм",day:"дд"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"гггг",month:"мм",day:"дд"},"sr-Latn":{year:"gggg",month:"mm",day:"dd"},sv:{year:"åååå",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"сссс",month:"мм",day:"рр"},th:{year:"ปปปป",month:"ดด",day:"วว"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"рррр",month:"мм",day:"дд"},"zh-CN":{year:"年",month:"月",day:"日"},"zh-TW":{year:"年",month:"月",day:"日"}},"en");function y8(e,t,n){return e==="era"||e==="dayPeriod"?t:e==="year"||e==="month"||e==="day"?g8.getStringForLocale(e,n):"––"}class wt{constructor(t,n,r){if(this.era=r?.era??null,this.calendar=t,this.year=r?.year??null,this.month=r?.month??null,this.day=r?.day??null,this.hour=r?.hour??null,this.hourCycle=n,this.dayPeriod=null,this.minute=r?.minute??null,this.second=r?.second??null,this.millisecond=r?.millisecond??null,this.offset="offset"in(r??{})?r.offset:null,this.hour!=null){let[i,a]=nr(this.hour,n);this.dayPeriod=i,this.hour=a}}copy(){let t=new wt(this.calendar,this.hourCycle);return t.era=this.era,t.year=this.year,t.month=this.month,t.day=this.day,t.hour=this.hour,t.dayPeriod=this.dayPeriod,t.minute=this.minute,t.second=this.second,t.millisecond=this.millisecond,t.offset=this.offset,t}isComplete(t){return t.every(n=>this[n]!=null)}validate(t,n){return n.every(r=>{if((r==="hour"||r==="dayPeriod")&&"hour"in t){let[i,a]=nr(t.hour,this.hourCycle);return this.dayPeriod===i&&this.hour===a}return this[r]===t[r]})}isCleared(t){return t.every(n=>this[n]===null)}set(t,n,r){let i=this.copy();return i[t]=n,t==="hour"&&i.dayPeriod==null&&"hour"in r&&(i.dayPeriod=nr(r.hour,this.hourCycle)[0]),t==="year"&&i.era==null&&(i.era=r.era),t!=="second"&&t!=="literal"&&t!=="timeZoneName"&&(i.offset=null),i}clear(t){let n=this.copy();return n[t]=null,t==="year"&&(n.era=null),n.offset=null,n}cycle(t,n,r,i){let a=this.copy();if(a[t]==null&&t!=="dayPeriod"&&t!=="era"){if(t==="hour"&&"hour"in r){let[l,o]=nr(r.hour,this.hourCycle);a.dayPeriod=l,a.hour=o}else a[t]=r[t];return t==="year"&&a.era==null&&(a.era=r.era),a}switch(t){case"era":{let l=this.calendar.getEras(),o=l.indexOf(a.era);o=kn(o,n,0,l.length-1),a.era=l[o];break}case"year":{let l=new we(this.calendar,this.era??r.era,this.year??r.year,this.month??1,this.day??1);l=l.cycle(t,n,{round:t==="year"}),a.era=l.era,a.year=l.year;break}case"month":a.month=kn(a.month??1,n,1,this.calendar.getMaximumMonthsInYear());break;case"day":a.day=kn(a.day??1,n,1,this.calendar.getMaximumDaysInMonth());break;case"hour":{let l=i.some(o=>["year","month","day"].includes(o));if("timeZone"in r&&(!l||a.year!=null&&a.month!=null&&a.day!=null)){let o=this.toValue(r);o=o.cycle("hour",n,{hourCycle:this.hourCycle==="h12"?12:24,round:!1});let[s,d]=nr(o.hour,this.hourCycle);a.hour=d,a.dayPeriod=s,a.offset=o.offset}else{let o=a.hour??0,s=this.getSegmentLimits("hour");a.hour=kn(o,n,s.minValue,s.maxValue),a.dayPeriod==null&&"hour"in r&&(a.dayPeriod=nr(r.hour,this.hourCycle)[0])}break}case"dayPeriod":a.dayPeriod=kn(a.dayPeriod??0,n,0,1);break;case"minute":a.minute=kn(a.minute??0,n,0,59,!0);break;case"second":a.second=kn(a.second??0,n,0,59,!0);break}return a}toValue(t){if("hour"in t){let n=this.hour;n!=null?n=$8(n,this.dayPeriod??0,this.hourCycle):(this.hourCycle==="h12"||this.hourCycle==="h11")&&(n=this.dayPeriod===1?12:0);let r=t.set({era:this.era??t.era,year:this.year??t.year,month:this.month??t.month,day:this.day??t.day,hour:n??t.hour,minute:this.minute??t.minute,second:this.second??t.second,millisecond:this.millisecond??t.millisecond});return"offset"in r&&this.offset!=null&&r.offset!==this.offset&&(r=r.add({milliseconds:r.offset-this.offset})),r}else return t.set({era:this.era??t.era,year:this.year??t.year,month:this.month??t.month,day:this.day??t.day})}getSegmentLimits(t){switch(t){case"era":{let n=this.calendar.getEras();return{value:this.era!=null?n.indexOf(this.era):n.length-1,minValue:0,maxValue:n.length-1}}case"year":return{value:this.year,minValue:1,maxValue:9999};case"month":return{value:this.month,minValue:1,maxValue:this.calendar.getMaximumMonthsInYear()};case"day":return{value:this.day,minValue:1,maxValue:this.calendar.getMaximumDaysInMonth()};case"dayPeriod":return{value:this.dayPeriod,minValue:0,maxValue:1};case"hour":{let n=0,r=23;return this.hourCycle==="h12"?(n=1,r=12):this.hourCycle==="h11"&&(n=0,r=11),{value:this.hour,minValue:n,maxValue:r}}case"minute":return{value:this.minute,minValue:0,maxValue:59};case"second":return{value:this.second,minValue:0,maxValue:59}}}}function kn(e,t,n,r,i=!1){if(i){e+=Math.sign(t),e<n&&(e=r);let a=Math.abs(t);t>0?e=Math.ceil(e/a)*a:e=Math.floor(e/a)*a,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function nr(e,t){let n=e>=12?1:0;switch(t){case"h11":e>=12&&(e-=12);break;case"h12":e===0?e=12:e>12&&(e-=12);break;case"h23":n=null;break;case"h24":e+=1,n=null}return[n,e]}function $8(e,t,n){switch(n){case"h11":t===1&&(e+=12);break;case"h12":e===12&&(e=0),t===1&&(e+=12);break;case"h24":e-=1;break}return e}const au={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},Xp={year:5,month:2,day:7,hour:2,minute:15,second:15},v8={dayperiod:"dayPeriod",relatedYear:"year",yearName:"literal",unknown:"literal"};function Jp(e){let{locale:t,createCalendar:n,hideTimeZone:r,isDisabled:i=!1,isReadOnly:a=!1,isRequired:l=!1,minValue:o,maxValue:s,isDateUnavailable:d}=e,c=e.value||e.defaultValue||e.placeholderValue||null,[f,m]=b8(c,e.granularity),h=m||"UTC";if(c&&!(f in c))throw new Error("Invalid granularity "+f+" for value "+c.toString());let[p,g]=u.useMemo(()=>{let J=new vn(t,{dateStyle:"short",timeStyle:"short",hour12:e.hourCycle!=null?e.hourCycle===12:void 0}).resolvedOptions();return[n(J.calendar),J.hourCycle]},[t,e.hourCycle,n]),[y,$]=He(e.value,e.defaultValue??null,e.onChange),[x]=u.useState(y),v=u.useMemo(()=>qp(y,p)??null,[y,p]),[C,w]=u.useState(()=>new wt(p,g,v)),S=p.identifier==="gregory"&&C.era==="BC",B=u.useMemo(()=>({granularity:f,maxGranularity:e.maxGranularity??"year",timeZone:m,hideTimeZone:r,hourCycle:e.hourCycle,showEra:S,shouldForceLeadingZeros:e.shouldForceLeadingZeros}),[e.maxGranularity,f,e.hourCycle,e.shouldForceLeadingZeros,m,r,S]),E=u.useMemo(()=>Fa({},B),[B]),k=u.useMemo(()=>new vn(t,E),[t,E]),K=u.useMemo(()=>k.resolvedOptions(),[k]),T=u.useMemo(()=>p8(e.placeholderValue,f,p,m),[e.placeholderValue,f,p,m]),I=u.useMemo(()=>{let L=g==="h11"||g==="h12",J=["era","year","month","day","hour",...L?["dayPeriod"]:[],"minute","second"],le=J.indexOf(e.maxGranularity||"era"),Ke=J.indexOf(f==="hour"&&L?"dayPeriod":f);return J.slice(le,Ke+1)},[e.maxGranularity,f,g]),[R,D]=u.useState(v),[M,G]=u.useState(p),[O,Y]=u.useState(g);(v!==R||g!==O||!Yi(p,M))&&(C=new wt(p,g,v),D(v),G(p),Y(g),w(C));let P=L=>{if(!(e.isDisabled||e.isReadOnly))if(L==null||L instanceof wt&&L.isCleared(I))w(new wt(p,g,v)),$(null);else if(!(L instanceof wt))L=ye(L,c?.calendar||new Re),w(new wt(p,g,v)),$(L);else{if(L.isComplete(I)){let J=L.toValue(v??T);if(L.validate(J,I)){let le=ye(J,c?.calendar||new Re);if(!y||le.compare(y)!==0){w(new wt(p,g,v)),$(le);return}}}w(L)}},N=u.useMemo(()=>C.toValue(v??T).toDate(h),[C,h,v,T]),_=u.useMemo(()=>x8(N,C,k,K,p,t,f),[N,k,K,C,p,t,f]),Q=(L,J)=>{P(C.cycle(L,J,T,I))},X=u.useMemo(()=>f8(y,o,s,d,B),[y,o,s,d,B]),A=ma({...e,value:y,builtinValidation:X}),F=A.displayValidation.isInvalid,z=e.validationState||(F?"invalid":null);return{...A,value:v,defaultValue:e.defaultValue??x,dateValue:N,calendar:p,setValue:P,segments:_,dateFormatter:k,validationState:z,isInvalid:F,granularity:f,maxGranularity:e.maxGranularity??"year",isDisabled:i,isReadOnly:a,isRequired:l,increment(L){Q(L,1)},decrement(L){Q(L,-1)},incrementPage(L){Q(L,Xp[L]||1)},decrementPage(L){Q(L,-(Xp[L]||1))},incrementToMax(L){let J=L==="hour"&&g==="h12"?11:C.getSegmentLimits(L).maxValue;P(C.set(L,J,T))},decrementToMin(L){let J=L==="hour"&&g==="h12"?12:C.getSegmentLimits(L).minValue;P(C.set(L,J,T))},setSegment(L,J){P(C.set(L,J,T))},confirmPlaceholder(){if(!(e.isDisabled||e.isReadOnly)&&C.isComplete(I)){let L=C.toValue(v??T),J=ye(L,c?.calendar||new Re);(!y||J.compare(y)!==0)&&$(J),w(new wt(p,g,v))}},clearSegment(L){let J=C;L!=="timeZoneName"&&L!=="literal"&&(J=C.clear(L)),P(J)},formatValue(L){if(!v)return"";let J=Fa(L,B);return new vn(t,J).format(N)},getDateFormatter(L,J){let le={...B,...J},Ke=Fa({},le);return new vn(L,Ke)}}}function x8(e,t,n,r,i,a,l){let o=["hour","minute","second"],s=n.formatToParts(e),d=new Wi(a,{useGrouping:!1}),c=new Wi(a,{useGrouping:!1,minimumIntegerDigits:2});for(let m of s)if(m.type==="year"||m.type==="month"||m.type==="day"||m.type==="hour"){let h=t[m.type]??0;r[m.type]==="2-digit"?m.value=c.format(h):m.value=d.format(h)}let f=[];for(let m of s){let h=v8[m.type]||m.type,p=au[h];h==="era"&&i.getEras().length===1&&(p=!1);let g=au[h]&&t[m.type]==null,y=au[h]?y8(h,m.value,a):null,$={type:h,text:g?y:m.value,...t.getSegmentLimits(h),isPlaceholder:g,placeholder:y,isEditable:p};h==="hour"?(f.push({type:"literal",text:"",isPlaceholder:!1,placeholder:"",isEditable:!1}),f.push($),h===l&&f.push({type:"literal",text:"",isPlaceholder:!1,placeholder:"",isEditable:!1})):o.includes(h)&&h===l?(f.push($),f.push({type:"literal",text:"",isPlaceholder:!1,placeholder:"",isEditable:!1})):f.push($)}return f}const Qp=u.createContext(null),Qr=u.createContext(null),lu=u.createContext(null),C8=u.forwardRef(function(t,n){[t,n]=pe(t,n,Qp);let{validationBehavior:r}=qe(ha)||{},i=t.validationBehavior??r??"native",{locale:a}=be(),l=Jp({...t,locale:a,createCalendar:sa,validationBehavior:i}),o=u.useRef(null),[s,d]=un(!t["aria-label"]&&!t["aria-labelledby"]),c=u.useRef(null),{labelProps:f,fieldProps:m,inputProps:h,descriptionProps:p,errorMessageProps:g,...y}=hp({...mr(t),label:d,inputRef:c,validationBehavior:i},l,o),$=ue({...mr(t),values:{state:l,isInvalid:l.isInvalid,isDisabled:l.isDisabled,isReadOnly:l.isReadOnly,isRequired:t.isRequired||!1},defaultClassName:"react-aria-DateField"}),x=ie(t,{global:!0});return delete x.id,u.createElement(Pe,{values:[[Qr,l],[Xn,{...m,ref:o,isInvalid:l.isInvalid,isDisabled:l.isDisabled}],[Jn,{...h,ref:c}],[pn,{...f,ref:s,elementType:"span"}],[tt,{slots:{description:p,errorMessage:g}}],[fa,y]]},u.createElement(re.div,{...x,...$,ref:n,slot:t.slot||void 0,"data-invalid":l.isInvalid||void 0,"data-disabled":l.isDisabled||void 0,"data-readonly":l.isReadOnly||void 0,"data-required":t.isRequired||void 0}),u.createElement(e8,{autoComplete:t.autoComplete,name:t.name,isDisabled:t.isDisabled,state:l}))}),D8=u.forwardRef(function(t,n){let r=u.useContext(Qr),i=u.useContext(lu);return r||i?u.createElement(eb,{...t,ref:n}):u.createElement(E8,{...t,ref:n})}),E8=u.forwardRef((e,t)=>{let[n,r]=pe({slot:e.slot},t,Qp),{locale:i}=be(),a=Jp({...n,locale:i,createCalendar:sa}),l=u.useRef(null),{fieldProps:o,inputProps:s}=hp({...n,inputRef:l},a,r);return u.createElement(Pe,{values:[[Qr,a],[Jn,{...s,ref:l}],[Xn,{...o,ref:r,isInvalid:a.isInvalid,isDisabled:a.isDisabled}]]},u.createElement(eb,e))}),eb=u.forwardRef((e,t)=>{let{className:n,children:r}=e,i=u.useContext(Qr),a=u.useContext(lu),l=i??a;return u.createElement(u.Fragment,null,u.createElement(Lr,{...e,ref:t,slot:e.slot||void 0,className:n??"react-aria-DateInput",isReadOnly:l.isReadOnly,isInvalid:l.isInvalid,isDisabled:l.isDisabled},l.segments.map((o,s)=>u.cloneElement(r(o),{key:s}))),u.createElement(Or,{className:""}))}),w8=u.forwardRef(function({segment:t,...n},r){let i=u.useContext(Qr),a=u.useContext(lu),l=i??a,o=Te(r),{segmentProps:s}=o8(t,l,o),{focusProps:d,isFocused:c,isFocusVisible:f}=Oe(),{hoverProps:m,isHovered:h}=ze({...n,isDisabled:l.isDisabled||t.type==="literal"}),p=ue({...n,values:{...t,isReadOnly:l.isReadOnly,isInvalid:l.isInvalid,isDisabled:l.isDisabled,isHovered:h,isFocused:c,isFocusVisible:f},defaultChildren:t.text,defaultClassName:"react-aria-DateSegment"});return u.createElement(re.span,{...q(ie(n,{global:!0}),s,d,m),...p,style:s.style,ref:o,"data-placeholder":t.isPlaceholder||void 0,"data-invalid":l.isInvalid||void 0,"data-readonly":l.isReadOnly||void 0,"data-disabled":l.isDisabled||void 0,"data-type":t.type,"data-hovered":h||void 0,"data-focused":c||void 0,"data-focus-visible":f||void 0})});var tb={};tb={deselectedItem:e=>`${e.item} غير المحدد`,longPressToSelect:"اضغط مطولًا للدخول إلى وضع التحديد.",select:"تحديد",selectedAll:"جميع العناصر المحددة.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"لم يتم تحديد عناصر",one:()=>`${t.number(e.count)} عنصر محدد`,other:()=>`${t.number(e.count)} عنصر محدد`})}.`,selectedItem:e=>`${e.item} المحدد`};var nb={};nb={deselectedItem:e=>`${e.item} не е избран.`,longPressToSelect:"Натиснете и задръжте за да влезете в избирателен режим.",select:"Изберете",selectedAll:"Всички елементи са избрани.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Няма избрани елементи",one:()=>`${t.number(e.count)} избран елемент`,other:()=>`${t.number(e.count)} избрани елементи`})}.`,selectedItem:e=>`${e.item} избран.`};var rb={};rb={deselectedItem:e=>`Položka ${e.item} není vybrána.`,longPressToSelect:"Dlouhým stisknutím přejdete do režimu výběru.",select:"Vybrat",selectedAll:"Vybrány všechny položky.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nevybrány žádné položky",one:()=>`Vybrána ${t.number(e.count)} položka`,other:()=>`Vybráno ${t.number(e.count)} položek`})}.`,selectedItem:e=>`Vybrána položka ${e.item}.`};var ib={};ib={deselectedItem:e=>`${e.item} ikke valgt.`,longPressToSelect:"Lav et langt tryk for at aktivere valgtilstand.",select:"Vælg",selectedAll:"Alle elementer valgt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ingen elementer valgt",one:()=>`${t.number(e.count)} element valgt`,other:()=>`${t.number(e.count)} elementer valgt`})}.`,selectedItem:e=>`${e.item} valgt.`};var ab={};ab={deselectedItem:e=>`${e.item} nicht ausgewählt.`,longPressToSelect:"Gedrückt halten, um Auswahlmodus zu öffnen.",select:"Auswählen",selectedAll:"Alle Elemente ausgewählt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Keine Elemente ausgewählt",one:()=>`${t.number(e.count)} Element ausgewählt`,other:()=>`${t.number(e.count)} Elemente ausgewählt`})}.`,selectedItem:e=>`${e.item} ausgewählt.`};var lb={};lb={deselectedItem:e=>`Δεν επιλέχθηκε το στοιχείο ${e.item}.`,longPressToSelect:"Πατήστε παρατεταμένα για να μπείτε σε λειτουργία επιλογής.",select:"Επιλογή",selectedAll:"Επιλέχθηκαν όλα τα στοιχεία.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Δεν επιλέχθηκαν στοιχεία",one:()=>`Επιλέχθηκε ${t.number(e.count)} στοιχείο`,other:()=>`Επιλέχθηκαν ${t.number(e.count)} στοιχεία`})}.`,selectedItem:e=>`Επιλέχθηκε το στοιχείο ${e.item}.`};var ob={};ob={deselectedItem:e=>`${e.item} not selected.`,select:"Select",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"No items selected",one:()=>`${t.number(e.count)} item selected`,other:()=>`${t.number(e.count)} items selected`})}.`,selectedAll:"All items selected.",selectedItem:e=>`${e.item} selected.`,longPressToSelect:"Long press to enter selection mode."};var ub={};ub={deselectedItem:e=>`${e.item} no seleccionado.`,longPressToSelect:"Mantenga pulsado para abrir el modo de selección.",select:"Seleccionar",selectedAll:"Todos los elementos seleccionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ningún elemento seleccionado",one:()=>`${t.number(e.count)} elemento seleccionado`,other:()=>`${t.number(e.count)} elementos seleccionados`})}.`,selectedItem:e=>`${e.item} seleccionado.`};var sb={};sb={deselectedItem:e=>`${e.item} pole valitud.`,longPressToSelect:"Valikurežiimi sisenemiseks vajutage pikalt.",select:"Vali",selectedAll:"Kõik üksused valitud.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Üksusi pole valitud",one:()=>`${t.number(e.count)} üksus valitud`,other:()=>`${t.number(e.count)} üksust valitud`})}.`,selectedItem:e=>`${e.item} valitud.`};var db={};db={deselectedItem:e=>`Kohdetta ${e.item} ei valittu.`,longPressToSelect:"Siirry valintatilaan painamalla pitkään.",select:"Valitse",selectedAll:"Kaikki kohteet valittu.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ei yhtään kohdetta valittu",one:()=>`${t.number(e.count)} kohde valittu`,other:()=>`${t.number(e.count)} kohdetta valittu`})}.`,selectedItem:e=>`${e.item} valittu.`};var cb={};cb={deselectedItem:e=>`${e.item} non sélectionné.`,longPressToSelect:"Appuyez de manière prolongée pour passer en mode de sélection.",select:"Sélectionner",selectedAll:"Tous les éléments sélectionnés.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Aucun élément sélectionné",one:()=>`${t.number(e.count)} élément sélectionné`,other:()=>`${t.number(e.count)} éléments sélectionnés`})}.`,selectedItem:e=>`${e.item} sélectionné.`};var fb={};fb={deselectedItem:e=>`${e.item} לא נבחר.`,longPressToSelect:"הקשה ארוכה לכניסה למצב בחירה.",select:"בחר",selectedAll:"כל הפריטים נבחרו.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"לא נבחרו פריטים",one:()=>`פריט ${t.number(e.count)} נבחר`,other:()=>`${t.number(e.count)} פריטים נבחרו`})}.`,selectedItem:e=>`${e.item} נבחר.`};var mb={};mb={deselectedItem:e=>`Stavka ${e.item} nije odabrana.`,longPressToSelect:"Dugo pritisnite za ulazak u način odabira.",select:"Odaberite",selectedAll:"Odabrane su sve stavke.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nije odabrana nijedna stavka",one:()=>`Odabrana je ${t.number(e.count)} stavka`,other:()=>`Odabrano je ${t.number(e.count)} stavki`})}.`,selectedItem:e=>`Stavka ${e.item} je odabrana.`};var hb={};hb={deselectedItem:e=>`${e.item} nincs kijelölve.`,longPressToSelect:"Nyomja hosszan a kijelöléshez.",select:"Kijelölés",selectedAll:"Az összes elem kijelölve.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Egy elem sincs kijelölve",one:()=>`${t.number(e.count)} elem kijelölve`,other:()=>`${t.number(e.count)} elem kijelölve`})}.`,selectedItem:e=>`${e.item} kijelölve.`};var pb={};pb={deselectedItem:e=>`${e.item} non selezionato.`,longPressToSelect:"Premi a lungo per passare alla modalità di selezione.",select:"Seleziona",selectedAll:"Tutti gli elementi selezionati.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nessun elemento selezionato",one:()=>`${t.number(e.count)} elemento selezionato`,other:()=>`${t.number(e.count)} elementi selezionati`})}.`,selectedItem:e=>`${e.item} selezionato.`};var bb={};bb={deselectedItem:e=>`${e.item} が選択されていません。`,longPressToSelect:"長押しして選択モードを開きます。",select:"選択",selectedAll:"すべての項目を選択しました。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"項目が選択されていません",one:()=>`${t.number(e.count)} 項目を選択しました`,other:()=>`${t.number(e.count)} 項目を選択しました`})}。`,selectedItem:e=>`${e.item} を選択しました。`};var gb={};gb={deselectedItem:e=>`${e.item}이(가) 선택되지 않았습니다.`,longPressToSelect:"선택 모드로 들어가려면 길게 누르십시오.",select:"선택",selectedAll:"모든 항목이 선택되었습니다.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"선택된 항목이 없습니다",one:()=>`${t.number(e.count)}개 항목이 선택되었습니다`,other:()=>`${t.number(e.count)}개 항목이 선택되었습니다`})}.`,selectedItem:e=>`${e.item}이(가) 선택되었습니다.`};var yb={};yb={deselectedItem:e=>`${e.item} nepasirinkta.`,longPressToSelect:"Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.",select:"Pasirinkti",selectedAll:"Pasirinkti visi elementai.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nepasirinktas nė vienas elementas",one:()=>`Pasirinktas ${t.number(e.count)} elementas`,other:()=>`Pasirinkta elementų: ${t.number(e.count)}`})}.`,selectedItem:e=>`Pasirinkta: ${e.item}.`};var $b={};$b={deselectedItem:e=>`Vienums ${e.item} nav atlasīts.`,longPressToSelect:"Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.",select:"Atlasīt",selectedAll:"Atlasīti visi vienumi.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nav atlasīts neviens vienums",one:()=>`Atlasīto vienumu skaits: ${t.number(e.count)}`,other:()=>`Atlasīto vienumu skaits: ${t.number(e.count)}`})}.`,selectedItem:e=>`Atlasīts vienums ${e.item}.`};var vb={};vb={deselectedItem:e=>`${e.item} er ikke valgt.`,longPressToSelect:"Bruk et langt trykk for å gå inn i valgmodus.",select:"Velg",selectedAll:"Alle elementer er valgt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ingen elementer er valgt",one:()=>`${t.number(e.count)} element er valgt`,other:()=>`${t.number(e.count)} elementer er valgt`})}.`,selectedItem:e=>`${e.item} er valgt.`};var xb={};xb={deselectedItem:e=>`${e.item} niet geselecteerd.`,longPressToSelect:"Druk lang om de selectiemodus te openen.",select:"Selecteren",selectedAll:"Alle items geselecteerd.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Geen items geselecteerd",one:()=>`${t.number(e.count)} item geselecteerd`,other:()=>`${t.number(e.count)} items geselecteerd`})}.`,selectedItem:e=>`${e.item} geselecteerd.`};var Cb={};Cb={deselectedItem:e=>`Nie zaznaczono ${e.item}.`,longPressToSelect:"Naciśnij i przytrzymaj, aby wejść do trybu wyboru.",select:"Zaznacz",selectedAll:"Wszystkie zaznaczone elementy.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nie zaznaczono żadnych elementów",one:()=>`${t.number(e.count)} zaznaczony element`,other:()=>`${t.number(e.count)} zaznaczonych elementów`})}.`,selectedItem:e=>`Zaznaczono ${e.item}.`};var Db={};Db={deselectedItem:e=>`${e.item} não selecionado.`,longPressToSelect:"Mantenha pressionado para entrar no modo de seleção.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nenhum item selecionado",one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}.`,selectedItem:e=>`${e.item} selecionado.`};var Eb={};Eb={deselectedItem:e=>`${e.item} não selecionado.`,longPressToSelect:"Prima continuamente para entrar no modo de seleção.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nenhum item selecionado",one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}.`,selectedItem:e=>`${e.item} selecionado.`};var wb={};wb={deselectedItem:e=>`${e.item} neselectat.`,longPressToSelect:"Apăsați lung pentru a intra în modul de selectare.",select:"Selectare",selectedAll:"Toate elementele selectate.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Niciun element selectat",one:()=>`${t.number(e.count)} element selectat`,other:()=>`${t.number(e.count)} elemente selectate`})}.`,selectedItem:e=>`${e.item} selectat.`};var Sb={};Sb={deselectedItem:e=>`${e.item} не выбрано.`,longPressToSelect:"Нажмите и удерживайте для входа в режим выбора.",select:"Выбрать",selectedAll:"Выбраны все элементы.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Нет выбранных элементов",one:()=>`${t.number(e.count)} элемент выбран`,other:()=>`${t.number(e.count)} элементов выбрано`})}.`,selectedItem:e=>`${e.item} выбрано.`};var Pb={};Pb={deselectedItem:e=>`Nevybraté položky: ${e.item}.`,longPressToSelect:"Dlhším stlačením prejdite do režimu výberu.",select:"Vybrať",selectedAll:"Všetky vybraté položky.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Žiadne vybraté položky",one:()=>`${t.number(e.count)} vybratá položka`,other:()=>`Počet vybratých položiek:${t.number(e.count)}`})}.`,selectedItem:e=>`Vybraté položky: ${e.item}.`};var kb={};kb={deselectedItem:e=>`Element ${e.item} ni izbran.`,longPressToSelect:"Za izbirni način pritisnite in dlje časa držite.",select:"Izberite",selectedAll:"Vsi elementi so izbrani.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Noben element ni izbran",one:()=>`${t.number(e.count)} element je izbran`,other:()=>`${t.number(e.count)} elementov je izbranih`})}.`,selectedItem:e=>`Element ${e.item} je izbran.`};var Bb={};Bb={deselectedItem:e=>`${e.item} nije izabrano.`,longPressToSelect:"Dugo pritisnite za ulazak u režim biranja.",select:"Izaberite",selectedAll:"Izabrane su sve stavke.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nije izabrana nijedna stavka",one:()=>`Izabrana je ${t.number(e.count)} stavka`,other:()=>`Izabrano je ${t.number(e.count)} stavki`})}.`,selectedItem:e=>`${e.item} je izabrano.`};var Nb={};Nb={deselectedItem:e=>`${e.item} ej markerat.`,longPressToSelect:"Tryck länge när du vill öppna väljarläge.",select:"Markera",selectedAll:"Alla markerade objekt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Inga markerade objekt",one:()=>`${t.number(e.count)} markerat objekt`,other:()=>`${t.number(e.count)} markerade objekt`})}.`,selectedItem:e=>`${e.item} markerat.`};var Ab={};Ab={deselectedItem:e=>`${e.item} seçilmedi.`,longPressToSelect:"Seçim moduna girmek için uzun basın.",select:"Seç",selectedAll:"Tüm ögeler seçildi.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Hiçbir öge seçilmedi",one:()=>`${t.number(e.count)} öge seçildi`,other:()=>`${t.number(e.count)} öge seçildi`})}.`,selectedItem:e=>`${e.item} seçildi.`};var Fb={};Fb={deselectedItem:e=>`${e.item} не вибрано.`,longPressToSelect:"Виконайте довге натиснення, щоб перейти в режим вибору.",select:"Вибрати",selectedAll:"Усі елементи вибрано.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Жодних елементів не вибрано",one:()=>`${t.number(e.count)} елемент вибрано`,other:()=>`Вибрано елементів: ${t.number(e.count)}`})}.`,selectedItem:e=>`${e.item} вибрано.`};var Tb={};Tb={deselectedItem:e=>`未选择 ${e.item}。`,longPressToSelect:"长按以进入选择模式。",select:"选择",selectedAll:"已选择所有项目。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"未选择项目",one:()=>`已选择 ${t.number(e.count)} 个项目`,other:()=>`已选择 ${t.number(e.count)} 个项目`})}。`,selectedItem:e=>`已选择 ${e.item}。`};var Ib={};Ib={deselectedItem:e=>`未選取「${e.item}」。`,longPressToSelect:"長按以進入選擇模式。",select:"選取",selectedAll:"已選取所有項目。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"未選取任何項目",one:()=>`已選取 ${t.number(e.count)} 個項目`,other:()=>`已選取 ${t.number(e.count)} 個項目`})}。`,selectedItem:e=>`已選取「${e.item}」。`};var Ta={};Ta={"ar-AE":tb,"bg-BG":nb,"cs-CZ":rb,"da-DK":ib,"de-DE":ab,"el-GR":lb,"en-US":ob,"es-ES":ub,"et-EE":sb,"fi-FI":db,"fr-FR":cb,"he-IL":fb,"hr-HR":mb,"hu-HU":hb,"it-IT":pb,"ja-JP":bb,"ko-KR":gb,"lt-LT":yb,"lv-LV":$b,"nb-NO":vb,"nl-NL":xb,"pl-PL":Cb,"pt-BR":Db,"pt-PT":Eb,"ro-RO":wb,"ru-RU":Sb,"sk-SK":Pb,"sl-SI":kb,"sr-SP":Bb,"sv-SE":Nb,"tr-TR":Ab,"uk-UA":Fb,"zh-CN":Tb,"zh-TW":Ib};function S8(e){return e&&e.__esModule?e.default:e}function P8(e,t){let{getRowText:n=o=>t.collection.getTextValue?.(o)??t.collection.getItem(o)?.textValue}=e,r=ke(S8(Ta),"@react-aria/grid"),i=t.selectionManager.rawSelection,a=u.useRef(i),l=u.useCallback(()=>{if(!t.selectionManager.isFocused||i===a.current){a.current=i;return}let o=Mb(i,a.current),s=Mb(a.current,i),d=t.selectionManager.selectionBehavior==="replace",c=[];if(t.selectionManager.selectedKeys.size===1&&d){let f=t.selectionManager.selectedKeys.keys().next().value;if(f!=null&&t.collection.getItem(f)){let m=n(f);m&&c.push(r.format("selectedItem",{item:m}))}}else if(o.size===1&&s.size===0){let f=o.keys().next().value;if(f!=null){let m=n(f);m&&c.push(r.format("selectedItem",{item:m}))}}else if(s.size===1&&o.size===0){let f=s.keys().next().value;if(f!=null&&t.collection.getItem(f)){let m=n(f);m&&c.push(r.format("deselectedItem",{item:m}))}}t.selectionManager.selectionMode==="multiple"&&(c.length===0||i==="all"||i.size>1||a.current==="all"||a.current?.size>1)&&c.push(i==="all"?r.format("selectedAll"):r.format("selectedCount",{count:i.size})),c.length>0&&$t(c.join(" ")),a.current=i},[i,t.selectionManager.selectedKeys,t.selectionManager.isFocused,t.selectionManager.selectionBehavior,t.selectionManager.selectionMode,t.collection,n,r]);Tr(()=>{if(t.selectionManager.isFocused)l();else{let o=requestAnimationFrame(l);return()=>cancelAnimationFrame(o)}},[i,t.selectionManager.isFocused])}function Mb(e,t){let n=new Set;if(e==="all"||t==="all")return n;for(let r of e.keys())t.has(r)||n.add(r);return n}function k8(e,t){let n=t?.isDisabled,[r,i]=u.useState(!1);return fe(()=>{if(e?.current&&!n){let a=()=>{if(e.current){let o=Ae(e.current,{tabbable:!0});i(!!o.nextNode())}};a();let l=new MutationObserver(a);return l.observe(e.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{l.disconnect()}}}),n?!1:r}function B8(e){return e&&e.__esModule?e.default:e}function N8(e){let t=ke(B8(Ta),"@react-aria/grid"),n=Xs(),r=(n==="pointer"||n==="virtual"||n==null)&&typeof window<"u"&&"ontouchstart"in window,i=u.useMemo(()=>{let l=e.selectionManager.selectionMode,o=e.selectionManager.selectionBehavior,s;return r&&(s=t.format("longPressToSelect")),o==="replace"&&l!=="none"&&e.hasItemActions?s:void 0},[e.selectionManager.selectionMode,e.selectionManager.selectionBehavior,e.hasItemActions,t,r]);return xn(i)}function A8(e){return e&&e.__esModule?e.default:e}function F8(e,t){let{key:n}=e,r=t.selectionManager,i=Ee(),a=!t.selectionManager.canSelectItem(n),l=t.selectionManager.isSelected(n),o=()=>r.toggleSelection(n);const s=ke(A8(Ta),"@react-aria/grid");return{checkboxProps:{id:i,"aria-label":s.format("select"),isSelected:l,isDisabled:a,onChange:o}}}function T8(e,t,n){let{overlayProps:r,underlayProps:i}=h4({...e,isOpen:t.isOpen,onClose:t.close},n);return p4({isDisabled:!t.isOpen}),t3(),u.useEffect(()=>{if(t.isOpen&&n.current)return Ho([n.current],{shouldUseInert:!0})},[t.isOpen,n]),{modalProps:q(r),underlayProps:i}}let Ge=typeof document<"u"&&window.visualViewport;function I8(){let e=Ht(),[t,n]=u.useState(()=>e?{width:0,height:0}:ou());return u.useEffect(()=>{let r=o=>{n(s=>o.width===s.width&&o.height===s.height?s:o)},i=()=>{Ge&&Ge.scale>1||r(ou())},a,l=o=>{Ge&&Ge.scale>1||gr(W(o))&&(a=requestAnimationFrame(()=>{let s=ce();(!s||!gr(s))&&r({width:document.documentElement.clientWidth,height:document.documentElement.clientHeight})}))};return r(ou()),bt()&>()&&window.addEventListener("blur",l,!0),Ge?Ge.addEventListener("resize",i):window.addEventListener("resize",i),()=>{cancelAnimationFrame(a),bt()&>()&&window.removeEventListener("blur",l,!0),Ge?Ge.removeEventListener("resize",i):window.removeEventListener("resize",i)}},[]),t}function ou(){return{width:Ge?Math.min(Ge.width*Ge.scale,document.documentElement.clientWidth):document.documentElement.clientWidth,height:Ge?Ge.height*Ge.scale:document.documentElement.clientHeight}}const M8=u.createContext(null),uu=u.createContext(null),K8=u.forwardRef(function(t,n){if(u.useContext(uu)){if(process.env.NODE_ENV!=="production"&&(t.onOpenChange||t.defaultOpen!==void 0||t.isOpen!==void 0)){const g=new Set(["isDismissable","isKeyboardDismissDisabled","isOpen","defaultOpen","onOpenChange","isEntering","isExiting","UNSTABLE_portalContainer","shouldCloseOnInteractOutside"]),y=Object.keys(t).filter($=>g.has($));console.warn(`This modal is already wrapped in a ModalOverlay, props [${y.join(", ")}] should be placed on the ModalOverlay instead.`)}return u.createElement(Lb,{...t,modalRef:n},t.children)}let{isDismissable:i,isKeyboardDismissDisabled:a,isOpen:l,defaultOpen:o,onOpenChange:s,children:d,isEntering:c,isExiting:f,UNSTABLE_portalContainer:m,shouldCloseOnInteractOutside:h,...p}=t;return u.createElement(Kb,{isDismissable:i,isKeyboardDismissDisabled:a,isOpen:l,defaultOpen:o,onOpenChange:s,isEntering:c,isExiting:f,UNSTABLE_portalContainer:m,shouldCloseOnInteractOutside:h},u.createElement(Lb,{...p,modalRef:n},d))});function L8(e,t){[e,t]=pe(e,t,M8);let n=u.useContext(zt),r=qr(e),i=e.isOpen!=null||e.defaultOpen!=null||!n?r:n;i===n&&process.env.NODE_ENV!=="production"&&(e.onOpenChange||e.defaultOpen!==void 0||e.isOpen!==void 0)&&console.warn("This modals state is controlled by a trigger, place onOpenChange on the trigger instead.");let a=Te(t),l=u.useRef(null),o=Jo(a,i.isOpen),s=Jo(l,i.isOpen),d=o||s||e.isExiting||!1,c=Ht();return!i.isOpen&&!d||c?null:u.createElement(O8,{...e,state:i,isExiting:d,overlayRef:a,modalRef:l})}const Kb=u.forwardRef(L8);function O8({UNSTABLE_portalContainer:e,...t}){let n=t.modalRef,{state:r}=t,{modalProps:i,underlayProps:a}=T8(t,r,n),l=Xo(t.overlayRef)||t.isEntering||!1,o=ue({...t,defaultClassName:"react-aria-ModalOverlay",values:{isEntering:l,isExiting:t.isExiting,state:r}}),s=I8(),d,c;if(typeof document<"u"){let m=tn(document.body)?document.body:document.scrollingElement||document.documentElement,h=m.getBoundingClientRect().width%1,p=m.getBoundingClientRect().height%1;d=m.scrollWidth-h,c=m.scrollHeight-p}let f={...o.style,"--visual-viewport-width":s.width+"px","--visual-viewport-height":s.height+"px","--page-width":d!==void 0?d+"px":void 0,"--page-height":c!==void 0?c+"px":void 0};return u.createElement(qo,{isExiting:t.isExiting,portalContainer:e},u.createElement(re.div,{...q(ie(t,{global:!0}),a),...o,style:f,ref:t.overlayRef,"data-entering":l||void 0,"data-exiting":t.isExiting||void 0},u.createElement(Pe,{values:[[uu,{modalProps:i,modalRef:n,isExiting:t.isExiting,isDismissable:t.isDismissable}],[zt,r]]},o.children)))}function Lb(e){let{modalProps:t,modalRef:n,isExiting:r,isDismissable:i}=u.useContext(uu),a=u.useContext(zt),l=u.useMemo(()=>fr(e.modalRef,n),[e.modalRef,n]),o=Te(l),s=Xo(o),d=ue({...e,defaultClassName:"react-aria-Modal",values:{isEntering:s,isExiting:r,state:a}});return u.createElement(re.div,{...q(ie(e,{global:!0}),t),...d,ref:o,"data-entering":s||void 0,"data-exiting":r||void 0},i&&u.createElement(Yo,{onDismiss:a.close}),d.children)}var Ob={};Ob={"Clear search":"مسح البحث"};var zb={};zb={"Clear search":"Изчистване на търсене"};var Vb={};Vb={"Clear search":"Vymazat hledání"};var _b={};_b={"Clear search":"Ryd søgning"};var Rb={};Rb={"Clear search":"Suche zurücksetzen"};var jb={};jb={"Clear search":"Απαλοιφή αναζήτησης"};var Hb={};Hb={"Clear search":"Clear search"};var Ub={};Ub={"Clear search":"Borrar búsqueda"};var Wb={};Wb={"Clear search":"Tühjenda otsing"};var Gb={};Gb={"Clear search":"Tyhjennä haku"};var Zb={};Zb={"Clear search":"Effacer la recherche"};var Yb={};Yb={"Clear search":"נקה חיפוש"};var qb={};qb={"Clear search":"Obriši pretragu"};var Xb={};Xb={"Clear search":"Keresés törlése"};var Jb={};Jb={"Clear search":"Cancella ricerca"};var Qb={};Qb={"Clear search":"検索をクリア"};var eg={};eg={"Clear search":"검색 지우기"};var tg={};tg={"Clear search":"Išvalyti iešką"};var ng={};ng={"Clear search":"Notīrīt meklēšanu"};var rg={};rg={"Clear search":"Tøm søk"};var ig={};ig={"Clear search":"Zoekactie wissen"};var ag={};ag={"Clear search":"Wyczyść zawartość wyszukiwania"};var lg={};lg={"Clear search":"Limpar pesquisa"};var og={};og={"Clear search":"Limpar pesquisa"};var ug={};ug={"Clear search":"Ştergeţi căutarea"};var sg={};sg={"Clear search":"Очистить поиск"};var dg={};dg={"Clear search":"Vymazať vyhľadávanie"};var cg={};cg={"Clear search":"Počisti iskanje"};var fg={};fg={"Clear search":"Obriši pretragu"};var mg={};mg={"Clear search":"Rensa sökning"};var hg={};hg={"Clear search":"Aramayı temizle"};var pg={};pg={"Clear search":"Очистити пошук"};var bg={};bg={"Clear search":"清除搜索"};var gg={};gg={"Clear search":"清除搜尋條件"};var yg={};yg={"ar-AE":Ob,"bg-BG":zb,"cs-CZ":Vb,"da-DK":_b,"de-DE":Rb,"el-GR":jb,"en-US":Hb,"es-ES":Ub,"et-EE":Wb,"fi-FI":Gb,"fr-FR":Zb,"he-IL":Yb,"hr-HR":qb,"hu-HU":Xb,"it-IT":Jb,"ja-JP":Qb,"ko-KR":eg,"lt-LT":tg,"lv-LV":ng,"nb-NO":rg,"nl-NL":ig,"pl-PL":ag,"pt-BR":lg,"pt-PT":og,"ro-RO":ug,"ru-RU":sg,"sk-SK":dg,"sl-SI":cg,"sr-SP":fg,"sv-SE":mg,"tr-TR":hg,"uk-UA":pg,"zh-CN":bg,"zh-TW":gg};function z8(e){return e&&e.__esModule?e.default:e}function V8(e,t,n){let r=ke(z8(yg),"@react-aria/searchfield"),{isDisabled:i,isReadOnly:a,onSubmit:l,onClear:o,type:s="search"}=e,{keyboardProps:d}=Le({isDisabled:i||a,shortcuts:{Enter:()=>{if(l){l(t.value);return}return!1},Escape:()=>{if(t.value===""&&(!n.current||n.current.value===""))return!1;t.setValue(""),o?.()}}}),c=()=>{t.setValue(""),o&&o()},f=()=>{n.current?.focus()},{labelProps:m,inputProps:h,descriptionProps:p,errorMessageProps:g,...y}=p0({...e,value:t.value,onChange:t.setValue,onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp,type:s},n);return{labelProps:m,inputProps:q(d,{...h,defaultValue:void 0}),clearButtonProps:{"aria-label":r.format("Clear search"),excludeFromTabOrder:!0,preventFocusOnPress:!0,isDisabled:i||a,onPress:c,onPressStart:f},descriptionProps:p,errorMessageProps:g,...y}}function _8(e){let[t,n]=He($g(e.value),$g(e.defaultValue)||"",e.onChange);return{value:t,setValue:n}}function $g(e){if(e!=null)return e.toString()}const R8=u.createContext(null),vg=Vn(function(t,n){[t,n]=pe(t,n,R8);let{validationBehavior:r}=qe(ha)||{},i=t.validationBehavior??r??"native",a=u.useRef(null);[t,a]=pe(t,a,vr);let[l,o]=un(!t["aria-label"]&&!t["aria-labelledby"]),s=_8({...t,validationBehavior:i}),{labelProps:d,inputProps:c,clearButtonProps:f,descriptionProps:m,errorMessageProps:h,...p}=V8({...mr(t),label:o,validationBehavior:i},s,a),g=ue({...t,values:{isEmpty:s.value==="",isDisabled:t.isDisabled||!1,isInvalid:p.isInvalid||!1,isReadOnly:t.isReadOnly||!1,isRequired:t.isRequired||!1,state:s},defaultClassName:"react-aria-SearchField"}),y=ie(t,{global:!0});return delete y.id,u.createElement(re.div,{...y,...g,ref:n,slot:t.slot||void 0,"data-empty":s.value===""||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":p.isInvalid||void 0,"data-readonly":t.isReadOnly||void 0,"data-required":t.isRequired||void 0},u.createElement(Pe,{values:[[pn,{...d,ref:l}],[Jn,{...c,ref:a}],[vt,f],[tt,{slots:{description:m,errorMessage:h}}],[Xn,{isInvalid:p.isInvalid,isDisabled:t.isDisabled||!1}],[fa,p]]},g.children))}),su=new WeakMap;function j8(e,t,n){let{keyboardDelegate:r,isDisabled:i,isRequired:a,name:l,form:o,validationBehavior:s="aria"}=e,d=Qn({usage:"search",sensitivity:"base"}),c=u.useMemo(()=>r||new _r(t.collection,t.disabledKeys,n,d),[r,t.collection,t.disabledKeys,d,n]),{menuTriggerProps:f,menuProps:m}=Qo({isDisabled:i,type:"listbox"},t,n),{keyboardProps:h}=Le({shortcuts:{ArrowLeft:()=>{if(t.selectionManager.selectionMode==="multiple")return!1;let k=t.selectedKey!=null?c.getKeyAbove?.(t.selectedKey):c.getFirstKey?.();k!=null&&t.setSelectedKey(k)},ArrowRight:()=>{if(t.selectionManager.selectionMode==="multiple")return!1;let k=t.selectedKey!=null?c.getKeyBelow?.(t.selectedKey):c.getFirstKey?.();k!=null&&t.setSelectedKey(k)}},allowRepeats:!0,onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp}),{typeSelectProps:p}=Um({keyboardDelegate:c,selectionManager:t.selectionManager,onTypeSelect(k){t.setSelectedKey(k)}}),{isInvalid:g,validationErrors:y,validationDetails:$}=t.displayValidation,{labelProps:x,fieldProps:v,descriptionProps:C,errorMessageProps:w}=Do({...e,labelElementType:"span",isInvalid:g,errorMessage:e.errorMessage||y});t.selectionManager.selectionMode==="multiple"&&(p={});let S=ie(e,{labelable:!0}),B=q(p,f,v),E=Ee();return su.set(t,{isDisabled:i,isRequired:a,name:l,form:o,validationBehavior:s}),{labelProps:{...x,onClick:()=>{e.isDisabled||(n.current?.focus(),Ln("keyboard"))}},triggerProps:q(S,{...B,isDisabled:i,onKeyDown:at(B.onKeyDown,h.onKeyDown),onKeyUp:h.onKeyUp,"aria-labelledby":[E,B["aria-labelledby"],B["aria-label"]&&!B["aria-labelledby"]?B.id:null].filter(Boolean).join(" "),onFocus(k){t.isFocused||(e.onFocus&&e.onFocus(k),e.onFocusChange&&e.onFocusChange(!0),t.setFocused(!0))},onBlur(k){t.isOpen||(e.onBlur&&e.onBlur(k),e.onFocusChange&&e.onFocusChange(!1),t.setFocused(!1))}}),valueProps:{id:E},menuProps:{...m,onAction:void 0,autoFocus:t.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,linkBehavior:"selection",onBlur:k=>{ae(k.currentTarget,k.relatedTarget)||(e.onBlur&&e.onBlur(k),e.onFocusChange&&e.onFocusChange(!1),t.setFocused(!1))},"aria-labelledby":[v["aria-labelledby"],B["aria-label"]&&!v["aria-labelledby"]?B.id:null].filter(Boolean).join(" ")},descriptionProps:C,errorMessageProps:w,isInvalid:g,validationErrors:y,validationDetails:$,hiddenSelectProps:{isDisabled:i,name:l,label:e.label,state:t,triggerRef:n,form:o}}}function H8(e,t,n){let r=su.get(t)||{},{autoComplete:i,name:a=r.name,form:l=r.form,isDisabled:o=r.isDisabled}=e,{validationBehavior:s,isRequired:d}=r,{visuallyHiddenProps:c}=Dn({style:{position:"fixed",top:0,left:0}});pa(e.selectRef,t.defaultValue,t.setValue),Eo({validationBehavior:s,focus:()=>n.current?.focus()},t,e.selectRef);let f=t.setValue,m=u.useCallback(h=>{let p=W(h);p.multiple?f(Array.from(p.selectedOptions,g=>g.value)):f(h.currentTarget.value)},[f]);return{containerProps:{...c,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{style:{display:"none"}},selectProps:{tabIndex:-1,autoComplete:i,disabled:o,multiple:t.selectionManager.selectionMode==="multiple",required:s==="native"&&d,name:a,form:l,value:t.value??"",onChange:m,onInput:m}}}function U8(e){let{state:t,triggerRef:n,label:r,name:i,form:a,isDisabled:l}=e,o=u.useRef(null),s=u.useRef(null),{containerProps:d,selectProps:c}=H8({...e,selectRef:t.collection.size<=300?o:s},t,n),f=Array.isArray(t.value)?t.value:[t.value];if(t.collection.size<=300)return u.createElement("div",{...d,"data-testid":"hidden-select-container"},u.createElement("label",null,r,u.createElement("select",{...c,ref:o},u.createElement("option",{value:"",label:" "}," "),[...t.collection.getKeys()].map(m=>{let h=t.collection.getItem(m);if(h&&h.type==="item")return u.createElement("option",{key:h.key,value:h.key},h.textValue)}),t.collection.size===0&&i&&f.map((m,h)=>u.createElement("option",{key:h,value:m??""})))));if(i){let m=su.get(t)||{},{validationBehavior:h}=m;f.length===0&&(f=[null]);let p=f.map((g,y)=>{let $={type:"hidden",autoComplete:c.autoComplete,name:i,form:a,disabled:l,value:g??""};return h==="native"?u.createElement("input",{key:y,...$,ref:y===0?s:null,style:{display:"none"},type:"text",required:y===0?c.required:!1,onChange:()=>{}}):u.createElement("input",{key:y,...$,ref:y===0?s:null})});return u.createElement(u.Fragment,null,p)}return null}function W8(e){let{selectionMode:t="single",shouldCloseOnSelect:n=t==="single"}=e,r=qr(e),[i,a]=u.useState(null),l=u.useMemo(()=>e.defaultValue!==void 0?e.defaultValue:t==="single"?e.defaultSelectedKey??null:[],[e.defaultValue,e.defaultSelectedKey,t]),o=u.useMemo(()=>e.value!==void 0?e.value:t==="single"?e.selectedKey:void 0,[e.value,e.selectedKey,t]),[s,d]=He(o,l,e.onChange),c=t==="single"&&Array.isArray(s)?s[0]:s,f=v=>{if(t==="single"){let C=Array.isArray(v)?v[0]??null:v;d(C),C!==c&&e.onSelectionChange?.(C)}else{let C=[];Array.isArray(v)?C=v:v!=null&&(C=[v]),d(C)}},m=Ca({...e,selectionMode:t,disallowEmptySelection:t==="single",allowDuplicateSelectionEvents:!0,selectedKeys:u.useMemo(()=>G8(c),[c]),onSelectionChange:v=>{if(v!=="all"){if(t==="single"){let C=v.values().next().value??null;f(C)}else f([...v]);n&&r.close(),g.commitValidation()}}}),h=m.selectionManager.firstSelectedKey,p=u.useMemo(()=>[...m.selectionManager.selectedKeys].map(v=>m.collection.getItem(v)).filter(v=>v!=null),[m.selectionManager.selectedKeys,m.collection]),g=ma({...e,value:Array.isArray(c)&&c.length===0?null:c}),[y,$]=u.useState(!1),[x]=u.useState(c);return{...g,...m,...r,value:c,defaultValue:l??x,setValue:f,selectedKey:h,setSelectedKey:f,selectedItem:p[0]??null,selectedItems:p,defaultSelectedKey:e.defaultSelectedKey??(e.selectionMode==="single"?x:null),focusStrategy:i,open(v=null){(m.collection.size!==0||e.allowsEmptyCollection)&&(a(v),r.open())},toggle(v=null){(m.collection.size!==0||e.allowsEmptyCollection)&&(a(v),r.toggle())},isFocused:y,setFocused:$}}function G8(e){if(e!==void 0)return e===null?[]:Array.isArray(e)?e:[e]}function Z8(e){return e&&e.__esModule?e.default:e}const du=u.createContext(null),cu=u.createContext(null),Y8=Vn(function(t,n){[t,n]=pe(t,n,du);let{children:r,isDisabled:i=!1,isInvalid:a=!1,isRequired:l=!1}=t,o=u.useMemo(()=>typeof r=="function"?r({isOpen:!1,isDisabled:i,isInvalid:a,isRequired:l,isFocused:!1,isFocusVisible:!1,defaultChildren:null}):r,[r,i,a,l]);return u.createElement(fn,{content:o},s=>u.createElement(X8,{props:t,collection:s,selectRef:n}))}),q8=[pn,vt,tt];function X8({props:e,selectRef:t,collection:n}){let{validationBehavior:r}=qe(ha)||{},i=e.validationBehavior??r??"native",a=W8({...e,collection:n,children:void 0,validationBehavior:i}),{isFocusVisible:l,focusProps:o}=Oe({within:!0}),s=u.useRef(null),[d,c]=un(!e["aria-label"]&&!e["aria-labelledby"]),{labelProps:f,triggerProps:m,valueProps:h,menuProps:p,descriptionProps:g,errorMessageProps:y,hiddenSelectProps:$,...x}=j8({...mr(e),label:c,validationBehavior:i},a,s),v=u.useMemo(()=>({isOpen:a.isOpen,isFocused:a.isFocused,isFocusVisible:l,isDisabled:e.isDisabled||!1,isInvalid:x.isInvalid||!1,isRequired:e.isRequired||!1}),[a.isOpen,a.isFocused,l,e.isDisabled,x.isInvalid,e.isRequired]),C=ue({...e,values:v,defaultClassName:"react-aria-Select"}),w=ie(e,{global:!0});delete w.id;let S=u.useRef(null);return u.createElement(Pe,{values:[[du,e],[cu,a],[xg,h],[pn,{...f,ref:d,elementType:"span"}],[vt,{...m,ref:s,isPressed:a.isOpen,autoFocus:e.autoFocus}],[zt,a],[Xr,{trigger:"Select",triggerRef:s,scrollRef:S,placement:"bottom start","aria-labelledby":p["aria-labelledby"],clearContexts:q8}],[Ur,{...p,ref:S}],[Sn,a],[tt,{slots:{description:g,errorMessage:y}}],[fa,x]]},u.createElement(re.div,{...q(w,C,o),ref:t,slot:e.slot||void 0,"data-focused":a.isFocused||void 0,"data-focus-visible":l||void 0,"data-open":a.isOpen||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":x.isInvalid||void 0,"data-required":e.isRequired||void 0},C.children,u.createElement(U8,{...$,autoComplete:e.autoComplete})))}const xg=u.createContext(null),J8=Vn(function(t,n){[t,n]=pe(t,n,xg);let r=u.useContext(cu),{placeholder:i}=qe(du),a=r.selectedItems.map(p=>{let g=p.props?.children;return typeof g=="function"&&(g=g({isHovered:!1,isPressed:!1,isSelected:!1,isFocused:!1,isFocusVisible:!1,isDisabled:!1,selectionMode:"single",selectionBehavior:"toggle"})),g}),l=U9(),o=u.useMemo(()=>r.selectedItems.map(p=>p?.textValue),[r.selectedItems]),s=r.selectionManager.selectionMode,d=u.useMemo(()=>s==="single"?o[0]??"":l.format(o),[s,l,o]),c=u.useMemo(()=>{if(s==="single")return a[0];let p=l.formatToParts(o);if(p.length===0)return null;let g=0;return p.map(y=>y.type==="element"?u.createElement(u.Fragment,{key:g},a[g++]):y.value)},[s,l,o,a]),f=ke(Z8(wo),"react-aria-components"),m=ue({...t,defaultChildren:c??i??f.format("selectPlaceholder"),defaultClassName:"react-aria-SelectValue",values:{selectedItem:r.selectedItems[0]?.value??null,selectedItems:u.useMemo(()=>r.selectedItems.map(p=>p.value??null),[r.selectedItems]),selectedText:d,isPlaceholder:r.selectedItems.length===0,state:r}}),h=ie(t,{global:!0});return u.createElement(re.span,{ref:n,...h,...m,"data-placeholder":r.selectedItems.length===0||void 0},u.createElement(tt.Provider,{value:void 0},m.children))}),Cg=10,Dg=5;class Q8{setup(t,n,r){this.delegate=t,this.state=n,this.direction=r}getDropTargetFromPoint(t,n,r){let i=this.delegate.getDropTargetFromPoint(t,n,r);return!i||i.type==="root"?i:this.resolveDropTarget(i,t,n,r)}resolveDropTarget(t,n,r,i){let a=this.pointerTracking,l=r-a.lastY,o=n-a.lastX,s=a.yDirection,d=a.xDirection;if(Math.abs(l)>Dg&&(s=l>0?"down":"up",a.yDirection=s,a.lastY=r),Math.abs(o)>Cg&&(d=o>0?"right":"left",a.xDirection=d,a.lastX=n),t.dropPosition==="before"){let m=this.state.collection.getKeyBefore(t.key);for(;m!=null;){let h=this.state.collection.getItem(m);if(h?.type==="item")break;m=h?.parentKey??null}if(m!=null){let h={type:"item",key:m,dropPosition:"after"};i(h)&&(t=h)}}let c=this.getPotentialTargets(t,i);if(c.length===0)return{type:"root"};let f;return c.length>1?f=this.selectTarget(c,t,n,r,s,d):(f=c[0],a.boundaryContext=null),f}getPotentialTargets(t,n){if(t.dropPosition==="on")return[t];let r=t,i=this.state.collection,a=i.getItem(r.key);for(;a&&a?.type!=="item"&&a.nextKey!=null;)r.key=a.nextKey,a=i.getItem(a.nextKey);let l=[r];if(a&&a.hasChildNodes&&this.state.expandedKeys.has(a.key)&&i.getChildren&&r.dropPosition==="after"){let d=a.firstChildKey!=null?i.getItem(a.firstChildKey):null;for(;d&&d.type!=="item";)d=d.nextKey!=null?i.getItem(d.nextKey):null;if(d?.type==="item"){const c={type:"item",key:d.key,dropPosition:"before"};return n(c)?[c]:[]}}if(a?.nextKey!=null)return[t];let o=a?.parentKey,s=[];for(;o!=null;){let d=i.getItem(o),c=d?.nextKey!=null?i.getItem(d.nextKey):null;if(!c||c.parentKey!==o){let m={type:"item",key:o,dropPosition:"after"};if(n(m)&&s.push(m),c)break}o=d?.parentKey}if(s.length>0&&l.push(...s),l.length===1){let d=i.getKeyAfter(r.key),c=d!=null?i.getItem(d):null;if(d!=null&&c&&a&&c.level!=null&&a.level!=null&&c.level>a.level){let f={type:"item",key:d,dropPosition:"before"};if(n(f))return[f]}}return l.filter(n)}selectTarget(t,n,r,i,a,l){if(t.length<2)return t[0];let o=this.pointerTracking,d=this.state.collection.getItem(n.key)?.parentKey;if(d==null)return t[0];if(!o.boundaryContext||o.boundaryContext.parentKey!==d){let p=o.yDirection==="up"?t.length-1:0;o.boundaryContext={parentKey:d,preferredTargetIndex:p,lastSwitchY:i,lastSwitchX:r}}let c=o.boundaryContext,f=Math.abs(r-c.lastSwitchX);if(Math.abs(i-c.lastSwitchY)>Dg&&a){let p=c.preferredTargetIndex||0;a==="down"&&p===0?c.preferredTargetIndex=t.length-1:a==="up"&&p===t.length-1&&(c.preferredTargetIndex=0),o.xDirection=null}if(f>Cg&&l){let p=c.preferredTargetIndex||0;l==="left"?this.direction==="ltr"?p<t.length-1&&(c.preferredTargetIndex=p+1,c.lastSwitchX=r):p>0&&(c.preferredTargetIndex=p-1,c.lastSwitchX=r):l==="right"&&(this.direction==="ltr"?p>0&&(c.preferredTargetIndex=p-1,c.lastSwitchX=r):p<t.length-1&&(c.preferredTargetIndex=p+1,c.lastSwitchX=r)),o.yDirection=null}let h=Math.max(0,Math.min(c.preferredTargetIndex||0,t.length-1));return t[h]}constructor(){this.delegate=null,this.state=null,this.direction="ltr",this.pointerTracking={lastY:0,lastX:0,yDirection:null,xDirection:null,boundaryContext:null}}}class e7{constructor(t){this.keyMap=new Map,this.keyMap=new Map,this.columnCount=t?.columnCount,this.rows=[];let n=a=>{let l=this.keyMap.get(a.key);t.visitNode&&(a=t.visitNode(a)),this.keyMap.set(a.key,a);let o=new Set,s=null,d=!1;if(a.type==="item"){for(let c of a.childNodes)if(c.props?.colSpan!==void 0){d=!0;break}}for(let c of a.childNodes)c.type==="cell"&&d&&(c.colspan=c.props?.colSpan,c.colSpan=c.props?.colSpan,c.colIndex=s?(s.colIndex??s.index)+(s.colSpan??1):c.index),c.type==="cell"&&c.parentKey==null&&(c.parentKey=a.key),o.add(c.key),s?(s.nextKey=c.key,c.prevKey=s.key):c.prevKey=null,n(c),s=c;if(s&&(s.nextKey=null),l)for(let c of l.childNodes)o.has(c.key)||r(c)},r=a=>{this.keyMap.delete(a.key);for(let l of a.childNodes)this.keyMap.get(l.key)===l&&r(l)},i=null;for(let[a,l]of t.items.entries()){let o={...l,level:l.level??0,key:l.key??"row-"+a,type:l.type??"row",value:l.value??null,hasChildNodes:!0,childNodes:[...l.childNodes],rendered:l.rendered,textValue:l.textValue??"",index:l.index??a};i?(i.nextKey=o.key,o.prevKey=i.key):o.prevKey=null,this.rows.push(o),n(o),i=o}i&&(i.nextKey=null)}*[Symbol.iterator](){yield*[...this.rows]}get size(){return[...this.rows].length}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);return n?n.prevKey??null:null}getKeyAfter(t){let n=this.keyMap.get(t);return n?n.nextKey??null:null}getFirstKey(){return[...this.rows][0]?.key}getLastKey(){let t=[...this.rows];return t[t.length-1]?.key}getItem(t){return this.keyMap.get(t)??null}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}getChildren(t){return this.keyMap.get(t)?.childNodes||[]}}const Eg="row-header-column-"+Math.random().toString(36).slice(2);let fu="row-header-column-"+Math.random().toString(36).slice(2);for(;Eg===fu;)fu="row-header-column-"+Math.random().toString(36).slice(2);function wg(e,t){if(t.length===0)return[];let n=[],r=new Map;for(let s of t){let d=s.parentKey,c=[s];for(;d!=null;){let f=e.get(d);if(!f)break;if(r.has(f)){f.colSpan??=0,f.colSpan++,f.colspan=f.colSpan;let{column:m,index:h}=r.get(f);if(h>c.length)break;for(let p=h;p<c.length;p++)m.splice(p,0,null);for(let p=c.length;p<m.length;p++)m[p]&&r.has(m[p])&&(r.get(m[p]).index=p)}else f.colSpan=1,f.colspan=1,c.push(f),r.set(f,{column:c,index:c.length-1});d=f.parentKey}n.push(c),s.index=n.length-1}let i=Math.max(...n.map(s=>s.length)),a=Array(i).fill(0).map(()=>[]),l=0;for(let s of n){let d=i-1;for(let c of s){if(c){let f=a[d],m=f.reduce((h,p)=>h+(p.colSpan??1),0);if(m<l){let h={type:"placeholder",key:"placeholder-"+c.key,colspan:l-m,colSpan:l-m,index:m,value:null,rendered:null,level:d,hasChildNodes:!1,childNodes:[],textValue:""};f.length>0&&(f[f.length-1].nextKey=h.key,h.prevKey=f[f.length-1].key),f.push(h)}f.length>0&&(f[f.length-1].nextKey=c.key,c.prevKey=f[f.length-1].key),c.level=d,c.colIndex=l,f.push(c)}d--}l++}let o=0;for(let s of a){let d=s.reduce((c,f)=>c+(f.colSpan??1),0);if(d<t.length){let c={type:"placeholder",key:"placeholder-"+s[s.length-1].key,colSpan:t.length-d,colspan:t.length-d,index:d,value:null,rendered:null,level:o,hasChildNodes:!1,childNodes:[],textValue:"",prevKey:s[s.length-1].key};s.push(c)}o++}return a.map((s,d)=>({type:"headerrow",key:"headerrow-"+d,index:d,value:null,rendered:null,level:0,hasChildNodes:!0,childNodes:s,textValue:""}))}class t7 extends e7{constructor(t,n,r){let i=new Set,a=null,l=[];if(r?.showSelectionCheckboxes){let f={type:"column",key:Eg,value:null,textValue:"",level:0,index:r?.showDragButtons?1:0,hasChildNodes:!1,rendered:null,childNodes:[],props:{isSelectionCell:!0}};l.unshift(f)}if(r?.showDragButtons){let f={type:"column",key:fu,value:null,textValue:"",level:0,index:0,hasChildNodes:!1,rendered:null,childNodes:[],props:{isDragButtonCell:!0}};l.unshift(f)}let o=[],s=new Map,d=f=>{switch(f.type){case"body":a=f;break;case"column":s.set(f.key,f),f.hasChildNodes||(l.push(f),f.props.isRowHeader&&i.add(f.key));break;case"item":o.push(f);return}for(let m of f.childNodes)d(m)};for(let f of t)d(f);let c=wg(s,l);if(c.forEach((f,m)=>o.splice(m,0,f)),super({columnCount:l.length,items:o,visitNode:f=>(f.column=l[f.index],f)}),this._size=0,this.columns=l,this.rowHeaderColumnKeys=i,this.body=a,this.headerRows=c,this._size=[...a.childNodes].length,this.rowHeaderColumnKeys.size===0){let f=this.columns.find(m=>!m.props?.isDragButtonCell&&!m.props?.isSelectionCell);f&&this.rowHeaderColumnKeys.add(f.key)}}*[Symbol.iterator](){yield*this.body.childNodes}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){return this.keyMap.get(t)?.prevKey??null}getKeyAfter(t){return this.keyMap.get(t)?.nextKey??null}getFirstKey(){return Ot(this.body.childNodes)?.key??null}getLastKey(){return er(this.body.childNodes)?.key??null}getItem(t){return t===this.body.key?this.body:this.keyMap.get(t)??null}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}getChildren(t){if(t===this.body.key)return this.body.childNodes;let n=this.getItem(t);return n?.type==="item"?[...n.childNodes].filter(r=>r.type==="cell"):super.getChildren(t)}getTextValue(t){let n=this.getItem(t);if(!n)return"";if(n.textValue)return n.textValue;let r=this.rowHeaderColumnKeys;if(r){let i=[];for(let a of n.childNodes){let l=this.columns[a.index];if(r.has(l.key)&&a.textValue&&i.push(a.textValue),i.length===r.size)break}return i.join(" ")}return""}}function n7(e){return e!=null&&(!isNaN(e)||String(e).match(/^(\d+)(?=%$)/)!==null)}function r7(e){if(!e||typeof e=="number")return 1;let t=e.match(/^(.+)(?=fr$)/);return t?parseFloat(t[0]):(process.env.NODE_ENV!=="production"&&console.warn(`width: ${e} is not a supported format, width should be a number (ex. 150), percentage (ex. '50%') or fr unit (ex. '2fr')`,"defaulting to '1fr'"),1)}function mu(e,t){if(typeof e=="string"){let n=e.match(/^(\d+)(?=%$)/);if(!n)throw new Error("Only percentages or numbers are supported for static column widths");return t*(parseFloat(n[0])/100)}return e}function Sg(e,t){return e!=null?mu(e,t):Number.MAX_SAFE_INTEGER}function Pg(e,t){return e!=null?mu(e,t):0}function i7(e,t,n,r,i){let a=e,l=Math.floor(e),o=e-l>0;e=l;let s=!1,d=t.map((f,m)=>{let h=n.get(f.key)!=null?n.get(f.key)??"1fr":f.width??f.defaultWidth??r?.(m)??"1fr",p=!1,g=0,y=0,$=0;n7(h)?(g=mu(h,e),p=!0):(y=r7(h),y<=0&&(p=!0));let x=Pg(f.minWidth??i?.(m)??0,e),v=Sg(f.maxWidth,e),C=Math.max(x,Math.min(g,v));return p?$=C:g>C&&(p=!0,$=C),p||(s=!0),{frozen:p,baseSize:g,hypotheticalMainSize:C,min:x,max:v,flex:y,targetMainSize:$,violation:0}});for(;s;){let f=0,m=0;d.forEach(g=>{g.frozen?f+=g.targetMainSize:(f+=g.baseSize,m+=g.flex)});let h=e-f;h>0&&d.forEach(g=>{if(!g.frozen){let y=g.flex/m;g.targetMainSize=g.baseSize+y*h}});let p=0;d.forEach(g=>{if(g.violation=0,!g.frozen){let{min:y,max:$,targetMainSize:x}=g;g.targetMainSize=Math.max(y,Math.min(x,$)),g.violation=g.targetMainSize-x,p+=g.violation}}),s=!1,d.forEach(g=>{p===0||Math.sign(p)===Math.sign(g.violation)?g.frozen=!0:g.frozen||(s=!0)})}let c=a7(d);if(o&&c.length>0){let f=a.toString().split(".")[1],m=c[c.length-1].toString();c[c.length-1]=+(m+"."+f)}return c}function a7(e){let t=0,n=0,r=[];return e.forEach(function(i){let a=i.targetMainSize,l=Math.round(a+t)-n;t+=a,n+=l,r.push(l)}),r}class l7{constructor(t){this.columnWidths=new Map,this.columnMinWidths=new Map,this.columnMaxWidths=new Map,this.getDefaultWidth=t?.getDefaultWidth??(()=>"1fr"),this.getDefaultMinWidth=t?.getDefaultMinWidth??(()=>75)}splitColumnsIntoControlledAndUncontrolled(t){return t.reduce((n,r)=>(r.props.width!=null?n[0].set(r.key,r):n[1].set(r.key,r),n),[new Map,new Map])}recombineColumns(t,n,r,i){return new Map(t.map(a=>r.has(a.key)?[a.key,n.get(a.key)]:[a.key,i.get(a.key).props.width]))}getInitialUncontrolledWidths(t){return new Map(Array.from(t).map(([n,r])=>[n,r.props.defaultWidth??this.getDefaultWidth?.(r)??"1fr"]))}getColumnWidth(t){return this.columnWidths.get(t)??0}getColumnMinWidth(t){return this.columnMinWidths.get(t)??0}getColumnMaxWidth(t){return this.columnMaxWidths.get(t)??0}resizeColumnWidth(t,n,r,i){let a=this.columnWidths,l=!0,o=new Map;return i=Math.max(this.getColumnMinWidth(r),Math.min(this.getColumnMaxWidth(r),Math.floor(i))),t.columns.forEach(s=>{s.key===r?(o.set(s.key,i),l=!1):l?o.set(s.key,a.get(s.key)??0):o.set(s.key,s.props.width??n.get(s.key))}),o}buildColumnWidths(t,n,r){return this.columnWidths=new Map,this.columnMinWidths=new Map,this.columnMaxWidths=new Map,i7(t,n.columns.map(a=>({...a.props,key:a.key})),r,a=>this.getDefaultWidth(n.columns[a]),a=>this.getDefaultMinWidth(n.columns[a])).forEach((a,l)=>{let o=n.columns[l].key,s=n.columns[l];this.columnWidths.set(o,a),this.columnMinWidths.set(o,Pg(s.props.minWidth??this.getDefaultMinWidth(s),t)),this.columnMaxWidths.set(o,Sg(s.props.maxWidth,t))}),this.columnWidths}}function o7(e,t){let{getDefaultWidth:n,getDefaultMinWidth:r,tableWidth:i=0}=e,[a,l]=u.useState(null),o=u.useMemo(()=>new l7({getDefaultWidth:n,getDefaultMinWidth:r}),[n,r]),[s,d]=u.useMemo(()=>o.splitColumnsIntoControlledAndUncontrolled(t.collection.columns),[t.collection.columns,o]),[c,f]=u.useState(()=>o.getInitialUncontrolledWidths(d)),[m,h]=u.useState(t.collection.columns);if(t.collection.columns!==m){if(t.collection.columns.length!==m.length||t.collection.columns.some((v,C)=>v.key!==m[C].key)){let v=o.getInitialUncontrolledWidths(d);f(v)}h(t.collection.columns)}let p=u.useMemo(()=>o.recombineColumns(t.collection.columns,c,d,s),[t.collection.columns,c,d,s,o]),g=u.useCallback(v=>{l(v)},[l]),y=u.useCallback((v,C)=>{let w=o.resizeColumnWidth(t.collection,c,v,C),S=new Map(Array.from(d).map(([B])=>[B,w.get(B)]));return S.set(v,C),f(S),w},[d,f,o,t.collection,c]),$=u.useCallback(()=>{l(null)},[l]),x=u.useMemo(()=>o.buildColumnWidths(i,t.collection,p),[i,t.collection,p,o]);return u.useMemo(()=>({resizingColumn:a,updateResizedColumns:y,startResize:g,endResize:$,getColumnWidth:v=>o.getColumnWidth(v),getColumnMinWidth:v=>o.getColumnMinWidth(v),getColumnMaxWidth:v=>o.getColumnMaxWidth(v),tableState:t,columnWidths:x}),[o,x,a,y,g,$,t])}function u7(e){let{collection:t,focusMode:n}=e,r=e.UNSAFE_selectionState||Hr(e),i=u.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=r.setFocusedKey;r.setFocusedKey=(s,d)=>{if(n==="cell"&&s!=null){let c=t.getItem(s);if(c?.type==="item"){let f=Ne(c,t);d==="last"?s=er(f)?.key??null:s=Ot(f)?.key??null}}a(s,d)};let l=u.useMemo(()=>new tr(t,r),[t,r]);const o=u.useRef(null);return u.useEffect(()=>{if(r.focusedKey!=null&&o.current&&!t.getItem(r.focusedKey)){const s=o.current.getItem(r.focusedKey),d=s?.parentKey!=null&&(s.type==="cell"||s.type==="rowheader"||s.type==="column")?o.current.getItem(s.parentKey):s;if(!d){r.setFocusedKey(null);return}const c=o.current.rows,f=t.rows,m=c.length-f.length;let h=Math.min(m>1?Math.max(d.index-m+1,0):d.index,f.length-1),p=null;for(let g=Math.max(0,h);g<f.length;g++)if(!l.isDisabled(f[g].key)&&f[g].type!=="headerrow"){p=f[g];break}if(p===null){for(let g=h-1;g>=0;g--)if(!l.isDisabled(f[g].key)&&f[g].type!=="headerrow"){p=f[g];break}}if(p){const g=p.hasChildNodes?[...Ne(p,t)]:[],y=p.hasChildNodes&&d!==s&&s&&s.index<g.length?g[s.index].key:p.key;r.setFocusedKey(y)}else r.setFocusedKey(null)}o.current=t},[t,l,r,r.focusedKey]),{collection:t,disabledKeys:i,isKeyboardNavigationDisabled:!1,selectionManager:l}}const s7={ascending:"descending",descending:"ascending"};function d7(e){let[t,n]=u.useState(!1),{selectionMode:r="none",showSelectionCheckboxes:i,showDragButtons:a,treeColumn:l=null}=e,o=u.useMemo(()=>({showSelectionCheckboxes:i&&r!=="none",showDragButtons:a,selectionMode:r,columns:[]}),[e.children,i,r,a]),s=jo(e,u.useCallback(h=>new t7(h,null,o),[o]),o),{disabledKeys:d,selectionManager:c}=u7({...e,collection:s,disabledBehavior:e.disabledBehavior||"selection"}),[f,m]=He(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,e.onExpandedChange);return{collection:s,disabledKeys:d,selectionManager:c,showSelectionCheckboxes:e.showSelectionCheckboxes||!1,sortDescriptor:e.sortDescriptor??null,isKeyboardNavigationDisabled:s.size===0||t,setKeyboardNavigationDisabled:n,sort(h,p){e.onSortChange?.({column:h,direction:p??(e.sortDescriptor?.column===h?s7[e.sortDescriptor.direction]:"ascending")})},expandedKeys:f,toggleKey(h){m(p=>{let g=new Set(p);return g.has(h)?g.delete(h):g.add(h),g})},treeColumn:l}}function c7(e,t){let n=u.useMemo(()=>t?e.collection.filter(t):e.collection,[e.collection,t]),r=e.selectionManager.withCollection(n);return{...e,collection:n,selectionManager:r}}class kg{constructor(t){if(this.collection=t.collection,this.disabledKeys=t.disabledKeys,this.disabledBehavior=t.disabledBehavior||"all",this.direction=t.direction,this.collator=t.collator,!t.layout&&!t.ref)throw new Error("Either a layout or a ref must be specified.");this.layoutDelegate=t.layoutDelegate||(t.layout?new f7(t.layout):new Ko(t.ref)),this.focusMode=t.focusMode??"row"}isCell(t){return t.type==="cell"}isRow(t){return t.type==="row"||t.type==="item"}isDisabled(t){return this.disabledBehavior==="all"&&(t.props?.isDisabled||this.disabledKeys.has(t.key))&&t.props?.disabledBehavior!=="selection"}findPreviousKey(t,n,r=!1){let i=t!=null?this.collection.getKeyBefore(t):this.collection.getLastKey();for(;i!=null;){let a=this.collection.getItem(i);if(!a)return null;if((r||!this.isDisabled(a))&&(!n||n(a)))return i;i=this.collection.getKeyBefore(i)}return null}findNextKey(t,n,r=!1){let i=t!=null?this.collection.getKeyAfter(t):this.collection.getFirstKey();for(;i!=null;){let a=this.collection.getItem(i);if(!a)return null;if((r||!this.isDisabled(a))&&(!n||n(a)))return i;if(i=this.collection.getKeyAfter(i),i==null)return null}return null}getKeyForItemInRowByIndex(t,n=0){if(n<0)return null;let r=this.collection.getItem(t);if(!r)return null;let i=0;for(let a of Ne(r,this.collection)){if(a.colSpan&&a.colSpan+i>n||(a.colSpan&&(i=i+a.colSpan-1),i===n))return a.key??null;i++}return null}getKeyBelow(t,n){let r=t,i=this.collection.getItem(r);if(!i||(this.isCell(i)&&(r=i.parentKey??null),r==null))return null;if(r=this.findNextKey(r,a=>a.type==="item",n?.includeDisabled),r!=null){if(this.isCell(i)){let a=i.colIndex?i.colIndex:i.index;return this.getKeyForItemInRowByIndex(r,a)}if(this.focusMode==="row")return r}return null}getKeyAbove(t,n){let r=t,i=this.collection.getItem(r);if(!i||(this.isCell(i)&&(r=i.parentKey??null),r==null))return null;if(r=this.findPreviousKey(r,a=>a.type==="item",n?.includeDisabled),r!=null){if(this.isCell(i)){let a=i.colIndex?i.colIndex:i.index;return this.getKeyForItemInRowByIndex(r,a)}if(this.focusMode==="row")return r}return null}getKeyRightOf(t){let n=this.collection.getItem(t);if(!n)return null;if(this.isRow(n)){let r=Ne(n,this.collection);return(this.direction==="rtl"?er(r)?.key:Ot(r)?.key)??null}if(this.isCell(n)&&n.parentKey!=null){let r=this.collection.getItem(n.parentKey);if(!r)return null;let i=Ne(r,this.collection),a=(this.direction==="rtl"?jr(i,n.index-1):jr(i,n.index+1))??null;return a?a.key??null:this.focusMode==="row"?n.parentKey??null:(this.direction==="rtl"?this.getFirstKey(t):this.getLastKey(t))??null}return null}getKeyLeftOf(t){let n=this.collection.getItem(t);if(!n)return null;if(this.isRow(n)){let r=Ne(n,this.collection);return(this.direction==="rtl"?Ot(r)?.key:er(r)?.key)??null}if(this.isCell(n)&&n.parentKey!=null){let r=this.collection.getItem(n.parentKey);if(!r)return null;let i=Ne(r,this.collection),a=(this.direction==="rtl"?jr(i,n.index+1):jr(i,n.index-1))??null;return a?a.key??null:this.focusMode==="row"?n.parentKey??null:(this.direction==="rtl"?this.getLastKey(t):this.getFirstKey(t))??null}return null}getFirstKey(t,n){let r=t??null,i;if(r!=null){if(i=this.collection.getItem(r),!i)return null;if(this.isCell(i)&&!n&&i.parentKey!=null){let a=this.collection.getItem(i.parentKey);return a?Ot(Ne(a,this.collection))?.key??null:null}}if(r=this.findNextKey(void 0,a=>a.type==="item"),r!=null&&(i&&this.isCell(i)&&n||this.focusMode==="cell")){let a=this.collection.getItem(r);if(!a)return null;r=Ot(Ne(a,this.collection))?.key??null}return r}getLastKey(t,n){let r=t??null,i;if(r!=null){if(i=this.collection.getItem(r),!i)return null;if(this.isCell(i)&&!n&&i.parentKey!=null){let a=this.collection.getItem(i.parentKey);if(!a)return null;let l=Ne(a,this.collection);return er(l)?.key??null}}if(r=this.findPreviousKey(void 0,a=>a.type==="item"),r!=null&&(i&&this.isCell(i)&&n||this.focusMode==="cell")){let a=this.collection.getItem(r);if(!a)return null;let l=Ne(a,this.collection);r=er(l)?.key??null}return r}getKeyPageAbove(t){let n=t,r=this.layoutDelegate.getItemRect(n);if(!r)return null;let i=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>i&&n!=null&&(n=this.getKeyAbove(n)??null,n!=null);)r=this.layoutDelegate.getItemRect(n);return n}getKeyPageBelow(t){let n=t,r=this.layoutDelegate.getItemRect(n);if(!r)return null;let i=this.layoutDelegate.getVisibleRect().height,a=Math.min(this.layoutDelegate.getContentSize().height,r.y+i);for(;r&&r.y+r.height<a;){let l=this.getKeyBelow(n);if(l==null)break;r=this.layoutDelegate.getItemRect(l),n=l}return n}getKeyForSearch(t,n){let r=n??null;if(!this.collator)return null;let i=this.collection;if(r=n??this.getFirstKey(),r==null)return null;let a=i.getItem(r);if(!a)return null;a.type==="cell"&&(r=a.parentKey??null);let l=!1;for(;r!=null;){let o=i.getItem(r);if(!o)return null;if(o.textValue){let s=o.textValue.slice(0,t.length);if(this.collator.compare(s,t)===0)return this.isRow(o)&&this.focusMode==="cell"?Ot(Ne(o,this.collection))?.key??null:o.key}r=this.findNextKey(r,s=>s.type==="item"),r==null&&!l&&(r=this.getFirstKey(),l=!0)}return null}}class f7{constructor(t){this.layout=t}getContentSize(){return this.layout.getContentSize()}getItemRect(t){return this.layout.getLayoutInfo(t)?.rect||null}getVisibleRect(){return this.layout.virtualizer.visibleRect}}const hu=new WeakMap;function m7(e,t,n){let{isVirtualized:r,disallowTypeAhead:i,keyboardDelegate:a,focusMode:l,scrollRef:o,getRowText:s,onRowAction:d,onCellAction:c,escapeKeyBehavior:f="clearSelection",shouldSelectOnPressUp:m,keyboardNavigationBehavior:h="arrow"}=e,{selectionManager:p}=t;!e["aria-label"]&&!e["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let g=Qn({usage:"search",sensitivity:"base"}),{direction:y}=be(),$=t.selectionManager.disabledBehavior,x=u.useMemo(()=>a||new kg({collection:t.collection,disabledKeys:t.disabledKeys,disabledBehavior:$,ref:n,direction:y,collator:g,focusMode:l}),[a,t.collection,t.disabledKeys,$,n,y,g,l]),{collectionProps:v}=xa({ref:n,selectionManager:p,keyboardDelegate:x,isVirtualized:r,scrollRef:o,disallowTypeAhead:i,escapeKeyBehavior:f}),C=Ee(e.id);hu.set(t,{keyboardDelegate:x,actions:{onRowAction:d,onCellAction:c},shouldSelectOnPressUp:m,keyboardNavigationBehavior:h});let w=N8({selectionManager:p,hasItemActions:!!(d||c)}),S=ie(e,{labelable:!0}),B=u.useCallback(T=>{if(p.isFocused){ae(T.currentTarget,W(T))||p.setFocused(!1);return}ae(T.currentTarget,W(T))&&p.setFocused(!0)},[p]),E=u.useMemo(()=>({onBlur:v.onBlur,onFocus:B}),[B,v.onBlur]),k=k8(n,{isDisabled:t.collection.size!==0}),K=q(S,{role:"grid",id:C,"aria-multiselectable":p.selectionMode==="multiple"?"true":void 0},t.isKeyboardNavigationDisabled?E:v,t.collection.size===0&&{tabIndex:k?-1:0}||void 0,w);return r&&(K["aria-rowcount"]=t.collection.size,K["aria-colcount"]=t.collection.columnCount),P8({getRowText:s},t),{gridProps:K}}const pu=new WeakMap;function bu(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function Bg(e,t){let n=pu.get(e);if(!n)throw new Error("Unknown grid");return`${n}-${bu(t)}`}function Ng(e,t,n){let r=pu.get(e);if(!r)throw new Error("Unknown grid");return`${r}-${bu(t)}-${bu(n)}`}function gu(e,t){return[...e.collection.rowHeaderColumnKeys].map(n=>Ng(e,t,n)).join(" ")}var Ag={};Ag={ascending:"تصاعدي",ascendingSort:e=>`ترتيب حسب العمود ${e.columnName} بترتيب تصاعدي`,collapse:"طي",columnSize:e=>`${e.value} بالبكسل`,descending:"تنازلي",descendingSort:e=>`ترتيب حسب العمود ${e.columnName} بترتيب تنازلي`,expand:"تمديد",resizerDescription:"اضغط على مفتاح Enter لبدء تغيير الحجم",select:"تحديد",selectAll:"تحديد الكل",sortable:"عمود قابل للترتيب"};var Fg={};Fg={ascending:"възходящ",ascendingSort:e=>`сортирано по колона ${e.columnName} във възходящ ред`,collapse:"Свиване",columnSize:e=>`${e.value} пиксела`,descending:"низходящ",descendingSort:e=>`сортирано по колона ${e.columnName} в низходящ ред`,expand:"Разширяване",resizerDescription:"Натиснете „Enter“, за да започнете да преоразмерявате",select:"Изберете",selectAll:"Изберете всичко",sortable:"сортираща колона"};var Tg={};Tg={ascending:"vzestupně",ascendingSort:e=>`řazeno vzestupně podle sloupce ${e.columnName}`,collapse:"Sbalit",columnSize:e=>`${e.value} pixelů`,descending:"sestupně",descendingSort:e=>`řazeno sestupně podle sloupce ${e.columnName}`,expand:"Roztáhnout",resizerDescription:"Stisknutím klávesy Enter začnete měnit velikost",select:"Vybrat",selectAll:"Vybrat vše",sortable:"sloupec s možností řazení"};var Ig={};Ig={ascending:"stigende",ascendingSort:e=>`sorteret efter kolonne ${e.columnName} i stigende rækkefølge`,collapse:"Skjul",columnSize:e=>`${e.value} pixels`,descending:"faldende",descendingSort:e=>`sorteret efter kolonne ${e.columnName} i faldende rækkefølge`,expand:"Udvid",resizerDescription:"Tryk på Enter for at ændre størrelse",select:"Vælg",selectAll:"Vælg alle",sortable:"sorterbar kolonne"};var Mg={};Mg={ascending:"aufsteigend",ascendingSort:e=>`sortiert nach Spalte ${e.columnName} in aufsteigender Reihenfolge`,collapse:"Reduzieren",columnSize:e=>`${e.value} Pixel`,descending:"absteigend",descendingSort:e=>`sortiert nach Spalte ${e.columnName} in absteigender Reihenfolge`,expand:"Erweitern",resizerDescription:"Eingabetaste zum Starten der Größenänderung drücken",select:"Auswählen",selectAll:"Alles auswählen",sortable:"sortierbare Spalte"};var Kg={};Kg={ascending:"αύξουσα",ascendingSort:e=>`διαλογή ανά στήλη ${e.columnName} σε αύξουσα σειρά`,collapse:"Σύμπτυξη",columnSize:e=>`${e.value} pixel`,descending:"φθίνουσα",descendingSort:e=>`διαλογή ανά στήλη ${e.columnName} σε φθίνουσα σειρά`,expand:"Ανάπτυξη",resizerDescription:"Πατήστε Enter για έναρξη της αλλαγής μεγέθους",select:"Επιλογή",selectAll:"Επιλογή όλων",sortable:"Στήλη διαλογής"};var Lg={};Lg={select:"Select",selectAll:"Select All",sortable:"sortable column",ascending:"ascending",descending:"descending",ascendingSort:e=>`sorted by column ${e.columnName} in ascending order`,descendingSort:e=>`sorted by column ${e.columnName} in descending order`,columnSize:e=>`${e.value} pixels`,resizerDescription:"Press Enter to start resizing",expand:"Expand",collapse:"Collapse"};var Og={};Og={ascending:"ascendente",ascendingSort:e=>`ordenado por columna ${e.columnName} en sentido ascendente`,collapse:"Contraer",columnSize:e=>`${e.value} píxeles`,descending:"descendente",descendingSort:e=>`ordenado por columna ${e.columnName} en orden descendente`,expand:"Ampliar",resizerDescription:"Pulse Intro para empezar a redimensionar",select:"Seleccionar",selectAll:"Seleccionar todos",sortable:"columna ordenable"};var zg={};zg={ascending:"tõusev järjestus",ascendingSort:e=>`sorditud veeru järgi ${e.columnName} tõusvas järjestuses`,collapse:"Ahenda",columnSize:e=>`${e.value} pikslit`,descending:"laskuv järjestus",descendingSort:e=>`sorditud veeru järgi ${e.columnName} laskuvas järjestuses`,expand:"Laienda",resizerDescription:"Suuruse muutmise alustamiseks vajutage klahvi Enter",select:"Vali",selectAll:"Vali kõik",sortable:"sorditav veerg"};var Vg={};Vg={ascending:"nouseva",ascendingSort:e=>`lajiteltu sarakkeen ${e.columnName} mukaan nousevassa järjestyksessä`,collapse:"Pienennä",columnSize:e=>`${e.value} pikseliä`,descending:"laskeva",descendingSort:e=>`lajiteltu sarakkeen ${e.columnName} mukaan laskevassa järjestyksessä`,expand:"Laajenna",resizerDescription:"Aloita koon muutos painamalla Enter-näppäintä",select:"Valitse",selectAll:"Valitse kaikki",sortable:"lajiteltava sarake"};var _g={};_g={ascending:"croissant",ascendingSort:e=>`trié en fonction de la colonne ${e.columnName} par ordre croissant`,collapse:"Réduire",columnSize:e=>`${e.value} pixels`,descending:"décroissant",descendingSort:e=>`trié en fonction de la colonne ${e.columnName} par ordre décroissant`,expand:"Développer",resizerDescription:"Appuyez sur Entrée pour commencer le redimensionnement.",select:"Sélectionner",selectAll:"Sélectionner tout",sortable:"colonne triable"};var Rg={};Rg={ascending:"עולה",ascendingSort:e=>`מוין לפי עמודה ${e.columnName} בסדר עולה`,collapse:"כווץ",columnSize:e=>`${e.value} פיקסלים`,descending:"יורד",descendingSort:e=>`מוין לפי עמודה ${e.columnName} בסדר יורד`,expand:"הרחב",resizerDescription:"הקש Enter כדי לשנות את הגודל",select:"בחר",selectAll:"בחר הכול",sortable:"עמודה שניתן למיין"};var jg={};jg={ascending:"rastući",ascendingSort:e=>`razvrstano po stupcima ${e.columnName} rastućem redoslijedom`,collapse:"Sažmi",columnSize:e=>`${e.value} piksela`,descending:"padajući",descendingSort:e=>`razvrstano po stupcima ${e.columnName} padajućim redoslijedom`,expand:"Proširi",resizerDescription:"Pritisnite Enter da biste započeli promenu veličine",select:"Odaberite",selectAll:"Odaberite sve",sortable:"stupac koji se može razvrstati"};var Hg={};Hg={ascending:"növekvő",ascendingSort:e=>`rendezve a(z) ${e.columnName} oszlop szerint, növekvő sorrendben`,collapse:"Összecsukás",columnSize:e=>`${e.value} képpont`,descending:"csökkenő",descendingSort:e=>`rendezve a(z) ${e.columnName} oszlop szerint, csökkenő sorrendben`,expand:"Kibontás",resizerDescription:"Nyomja le az Enter billentyűt az átméretezés megkezdéséhez",select:"Kijelölés",selectAll:"Összes kijelölése",sortable:"rendezendő oszlop"};var Ug={};Ug={ascending:"crescente",ascendingSort:e=>`in ordine crescente in base alla colonna ${e.columnName}`,collapse:"Comprimi",columnSize:e=>`${e.value} pixel`,descending:"decrescente",descendingSort:e=>`in ordine decrescente in base alla colonna ${e.columnName}`,expand:"Espandi",resizerDescription:"Premi Invio per iniziare a ridimensionare",select:"Seleziona",selectAll:"Seleziona tutto",sortable:"colonna ordinabile"};var Wg={};Wg={ascending:"昇順",ascendingSort:e=>`列 ${e.columnName} を昇順で並べ替え`,collapse:"折りたたむ",columnSize:e=>`${e.value} ピクセル`,descending:"降順",descendingSort:e=>`列 ${e.columnName} を降順で並べ替え`,expand:"展開",resizerDescription:"Enter キーを押してサイズ変更を開始",select:"選択",selectAll:"すべて選択",sortable:"並べ替え可能な列"};var Gg={};Gg={ascending:"오름차순",ascendingSort:e=>`${e.columnName} 열을 기준으로 오름차순으로 정렬됨`,collapse:"접기",columnSize:e=>`${e.value} 픽셀`,descending:"내림차순",descendingSort:e=>`${e.columnName} 열을 기준으로 내림차순으로 정렬됨`,expand:"펼치기",resizerDescription:"크기 조정을 시작하려면 Enter를 누르세요.",select:"선택",selectAll:"모두 선택",sortable:"정렬 가능한 열"};var Zg={};Zg={ascending:"didėjančia tvarka",ascendingSort:e=>`surikiuota pagal stulpelį ${e.columnName} didėjančia tvarka`,collapse:"Sutraukti",columnSize:e=>`${e.value} piks.`,descending:"mažėjančia tvarka",descendingSort:e=>`surikiuota pagal stulpelį ${e.columnName} mažėjančia tvarka`,expand:"Išskleisti",resizerDescription:"Paspauskite „Enter“, kad pradėtumėte keisti dydį",select:"Pasirinkti",selectAll:"Pasirinkti viską",sortable:"rikiuojamas stulpelis"};var Yg={};Yg={ascending:"augošā secībā",ascendingSort:e=>`kārtots pēc kolonnas ${e.columnName} augošā secībā`,collapse:"Sakļaut",columnSize:e=>`${e.value} pikseļi`,descending:"dilstošā secībā",descendingSort:e=>`kārtots pēc kolonnas ${e.columnName} dilstošā secībā`,expand:"Izvērst",resizerDescription:"Nospiediet Enter, lai sāktu izmēru mainīšanu",select:"Atlasīt",selectAll:"Atlasīt visu",sortable:"kārtojamā kolonna"};var qg={};qg={ascending:"stigende",ascendingSort:e=>`sortert etter kolonne ${e.columnName} i stigende rekkefølge`,collapse:"Skjul",columnSize:e=>`${e.value} piksler`,descending:"synkende",descendingSort:e=>`sortert etter kolonne ${e.columnName} i synkende rekkefølge`,expand:"Utvid",resizerDescription:"Trykk på Enter for å starte størrelsesendring",select:"Velg",selectAll:"Velg alle",sortable:"kolonne som kan sorteres"};var Xg={};Xg={ascending:"oplopend",ascendingSort:e=>`gesorteerd in oplopende volgorde in kolom ${e.columnName}`,collapse:"Samenvouwen",columnSize:e=>`${e.value} pixels`,descending:"aflopend",descendingSort:e=>`gesorteerd in aflopende volgorde in kolom ${e.columnName}`,expand:"Uitvouwen",resizerDescription:"Druk op Enter om het formaat te wijzigen",select:"Selecteren",selectAll:"Alles selecteren",sortable:"sorteerbare kolom"};var Jg={};Jg={ascending:"rosnąco",ascendingSort:e=>`posortowano według kolumny ${e.columnName} w porządku rosnącym`,collapse:"Zwiń",columnSize:e=>`Liczba pikseli: ${e.value}`,descending:"malejąco",descendingSort:e=>`posortowano według kolumny ${e.columnName} w porządku malejącym`,expand:"Rozwiń",resizerDescription:"Naciśnij Enter, aby rozpocząć zmienianie rozmiaru",select:"Zaznacz",selectAll:"Zaznacz wszystko",sortable:"kolumna z możliwością sortowania"};var Qg={};Qg={ascending:"crescente",ascendingSort:e=>`classificado pela coluna ${e.columnName} em ordem crescente`,collapse:"Recolher",columnSize:e=>`${e.value} pixels`,descending:"decrescente",descendingSort:e=>`classificado pela coluna ${e.columnName} em ordem decrescente`,expand:"Expandir",resizerDescription:"Pressione Enter para começar a redimensionar",select:"Selecionar",selectAll:"Selecionar tudo",sortable:"coluna classificável"};var e2={};e2={ascending:"ascendente",ascendingSort:e=>`Ordenar por coluna ${e.columnName} em ordem ascendente`,collapse:"Colapsar",columnSize:e=>`${e.value} pixels`,descending:"descendente",descendingSort:e=>`Ordenar por coluna ${e.columnName} em ordem descendente`,expand:"Expandir",resizerDescription:"Prima Enter para iniciar o redimensionamento",select:"Selecionar",selectAll:"Selecionar tudo",sortable:"Coluna ordenável"};var t2={};t2={ascending:"crescătoare",ascendingSort:e=>`sortate după coloana ${e.columnName} în ordine crescătoare`,collapse:"Restrângeți",columnSize:e=>`${e.value} pixeli`,descending:"descrescătoare",descendingSort:e=>`sortate după coloana ${e.columnName} în ordine descrescătoare`,expand:"Extindeți",resizerDescription:"Apăsați pe Enter pentru a începe redimensionarea",select:"Selectare",selectAll:"Selectare totală",sortable:"coloană sortabilă"};var n2={};n2={ascending:"возрастание",ascendingSort:e=>`сортировать столбец ${e.columnName} в порядке возрастания`,collapse:"Свернуть",columnSize:e=>`${e.value} пикс.`,descending:"убывание",descendingSort:e=>`сортировать столбец ${e.columnName} в порядке убывания`,expand:"Развернуть",resizerDescription:"Нажмите клавишу Enter для начала изменения размеров",select:"Выбрать",selectAll:"Выбрать все",sortable:"сортируемый столбец"};var r2={};r2={ascending:"vzostupne",ascendingSort:e=>`zoradené zostupne podľa stĺpca ${e.columnName}`,collapse:"Zbaliť",columnSize:e=>`Počet pixelov: ${e.value}`,descending:"zostupne",descendingSort:e=>`zoradené zostupne podľa stĺpca ${e.columnName}`,expand:"Rozbaliť",resizerDescription:"Stlačením klávesu Enter začnete zmenu veľkosti",select:"Vybrať",selectAll:"Vybrať všetko",sortable:"zoraditeľný stĺpec"};var i2={};i2={ascending:"naraščajoče",ascendingSort:e=>`razvrščeno po stolpcu ${e.columnName} v naraščajočem vrstnem redu`,collapse:"Strni",columnSize:e=>`${e.value} slikovnih pik`,descending:"padajoče",descendingSort:e=>`razvrščeno po stolpcu ${e.columnName} v padajočem vrstnem redu`,expand:"Razširi",resizerDescription:"Pritisnite tipko Enter da začnete spreminjati velikost",select:"Izberite",selectAll:"Izberite vse",sortable:"razvrstljivi stolpec"};var a2={};a2={ascending:"rastući",ascendingSort:e=>`sortirano po kolonama ${e.columnName} rastućim redosledom`,collapse:"Skupi",columnSize:e=>`${e.value} piksela`,descending:"padajući",descendingSort:e=>`sortirano po kolonama ${e.columnName} padajućim redosledom`,expand:"Proširi",resizerDescription:"Pritisnite Enter da biste započeli promenu veličine",select:"Izaberite",selectAll:"Izaberite sve",sortable:"kolona koja se može sortirati"};var l2={};l2={ascending:"stigande",ascendingSort:e=>`sorterat på kolumn ${e.columnName} i stigande ordning`,collapse:"Dölj",columnSize:e=>`${e.value} pixlar`,descending:"fallande",descendingSort:e=>`sorterat på kolumn ${e.columnName} i fallande ordning`,expand:"Expandera",resizerDescription:"Tryck på Retur för att börja ändra storlek",select:"Markera",selectAll:"Markera allt",sortable:"sorterbar kolumn"};var o2={};o2={ascending:"artan sırada",ascendingSort:e=>`${e.columnName} sütuna göre artan düzende sırala`,collapse:"Daralt",columnSize:e=>`${e.value} piksel`,descending:"azalan sırada",descendingSort:e=>`${e.columnName} sütuna göre azalan düzende sırala`,expand:"Genişlet",resizerDescription:"Yeniden boyutlandırmak için Enter'a basın",select:"Seç",selectAll:"Tümünü Seç",sortable:"Sıralanabilir sütun"};var u2={};u2={ascending:"висхідний",ascendingSort:e=>`відсортовано за стовпцем ${e.columnName} у висхідному порядку`,collapse:"Згорнути",columnSize:e=>`${e.value} пікс.`,descending:"низхідний",descendingSort:e=>`відсортовано за стовпцем ${e.columnName} у низхідному порядку`,expand:"Розгорнути",resizerDescription:"Натисніть Enter, щоб почати зміну розміру",select:"Вибрати",selectAll:"Вибрати все",sortable:"сортувальний стовпець"};var s2={};s2={ascending:"升序",ascendingSort:e=>`按列 ${e.columnName} 升序排序`,collapse:"折叠",columnSize:e=>`${e.value} 像素`,descending:"降序",descendingSort:e=>`按列 ${e.columnName} 降序排序`,expand:"扩展",resizerDescription:"按 Enter 开始调整大小。",select:"选择",selectAll:"全选",sortable:"可排序的列"};var d2={};d2={ascending:"遞增",ascendingSort:e=>`已依據「${e.columnName}」欄遞增排序`,collapse:"收合",columnSize:e=>`${e.value} 像素`,descending:"遞減",descendingSort:e=>`已依據「${e.columnName}」欄遞減排序`,expand:"展開",resizerDescription:"按 Enter 鍵以開始調整大小",select:"選取",selectAll:"全選",sortable:"可排序的欄"};var rr={};rr={"ar-AE":Ag,"bg-BG":Fg,"cs-CZ":Tg,"da-DK":Ig,"de-DE":Mg,"el-GR":Kg,"en-US":Lg,"es-ES":Og,"et-EE":zg,"fi-FI":Vg,"fr-FR":_g,"he-IL":Rg,"hr-HR":jg,"hu-HU":Hg,"it-IT":Ug,"ja-JP":Wg,"ko-KR":Gg,"lt-LT":Zg,"lv-LV":Yg,"nb-NO":qg,"nl-NL":Xg,"pl-PL":Jg,"pt-BR":Qg,"pt-PT":e2,"ro-RO":t2,"ru-RU":n2,"sk-SK":r2,"sl-SI":i2,"sr-SP":a2,"sv-SE":l2,"tr-TR":o2,"uk-UA":u2,"zh-CN":s2,"zh-TW":d2};class h7 extends kg{isCell(t){return t.type==="cell"||t.type==="rowheader"||t.type==="column"}getKeyBelow(t,n){let r=this.collection.getItem(t);if(!r)return null;if(r.type==="column"){let i=Ot(Ne(r,this.collection));if(i)return i.key;let a=this.getFirstKey();return a==null||!this.collection.getItem(a)?null:super.getKeyForItemInRowByIndex(a,r.index)}return super.getKeyBelow(t,n)}getKeyAbove(t,n){let r=this.collection.getItem(t);if(!r)return null;if(r.type==="column"){let l=r.parentKey!=null?this.collection.getItem(r.parentKey):null;return l&&l.type==="column"?l.key:null}let i=super.getKeyAbove(t,n),a=i!=null?this.collection.getItem(i):null;return a&&a.type!=="headerrow"?i:this.isCell(r)?this.collection.columns[r.index].key:this.collection.columns[0].key}findNextColumnKey(t){let n=this.findNextKey(t.key,i=>i.type==="column");if(n!=null)return n;let r=this.collection.headerRows[t.level];for(let i of Ne(r,this.collection))if(i.type==="column")return i.key;return null}findPreviousColumnKey(t){let n=this.findPreviousKey(t.key,a=>a.type==="column");if(n!=null)return n;let r=this.collection.headerRows[t.level],i=[...Ne(r,this.collection)];for(let a=i.length-1;a>=0;a--){let l=i[a];if(l.type==="column")return l.key}return null}getKeyRightOf(t){let n=this.collection.getItem(t);return n?n.type==="column"?this.direction==="rtl"?this.findPreviousColumnKey(n):this.findNextColumnKey(n):super.getKeyRightOf(t):null}getKeyLeftOf(t){let n=this.collection.getItem(t);return n?n.type==="column"?this.direction==="rtl"?this.findNextColumnKey(n):this.findPreviousColumnKey(n):super.getKeyLeftOf(t):null}getKeyForSearch(t,n){if(!this.collator)return null;let r=this.collection,i=n??this.getFirstKey();if(i==null)return null;let a=r.getItem(i);a?.type==="cell"&&(i=a.parentKey??null);let l=!1;for(;i!=null;){let o=r.getItem(i);if(!o)return null;if(o.textValue){let s=o.textValue.slice(0,t.length);if(this.collator.compare(s,t)===0)return o.key}for(let s of Ne(o,this.collection)){let d=r.columns[s.index];if(r.rowHeaderColumnKeys.has(d.key)&&s.textValue){let c=s.textValue.slice(0,t.length);if(this.collator.compare(c,t)===0)return(n!=null?r.getItem(n):a)?.type==="cell"?s.key:o.key}}i=this.getKeyBelow(i),i==null&&!l&&(i=this.getFirstKey(),l=!0)}return null}}function p7(e){return e&&e.__esModule?e.default:e}function b7(e,t,n){let{keyboardDelegate:r,isVirtualized:i,layoutDelegate:a,layout:l}=e,o=Qn({usage:"search",sensitivity:"base"}),{direction:s}=be(),d=t.selectionManager.disabledBehavior,c=u.useMemo(()=>r||new h7({collection:t.collection,disabledKeys:t.disabledKeys,disabledBehavior:d,ref:n,direction:s,collator:o,layoutDelegate:a,layout:l}),[r,t.collection,t.disabledKeys,d,n,s,o,a,l]),f=Ee(e.id);pu.set(t,f);let{gridProps:m}=m7({...e,id:f,keyboardDelegate:c},t,n);i&&(m["aria-rowcount"]=t.collection.size+t.collection.headerRows.length),t.treeColumn!=null&&(m.role="treegrid");let{column:h,direction:p}=t.sortDescriptor||{},g=ke(p7(rr),"@react-aria/table"),y=u.useMemo(()=>{let x=t.collection.columns.find(v=>v.key===h)?.textValue??"";return p&&h?g.format(`${p}Sort`,{columnName:x}):void 0},[p,h,t.collection.columns]),$=xn(y);return Tr(()=>{y&&$t(y,"assertive",500)},[y]),{gridProps:q(m,$,{"aria-describedby":[$["aria-describedby"],m["aria-describedby"]].filter(Boolean).join(" ")})}}function c2(e,t,n){let{node:r,isVirtualized:i,focusMode:a,allowsArrowNavigation:l,shouldSelectOnPressUp:o,onAction:s}=e,{direction:d}=be(),{keyboardDelegate:c,actions:{onCellAction:f},keyboardNavigationBehavior:m}=hu.get(t),h=a??(m==="tab"?"cell":"child"),p=u.useRef(null),g=()=>{if(n.current){let S=Ae(n.current);if(h==="child"){if(Ut(n.current)&&n.current!==ce(se(n.current)))return;let B=t.selectionManager.childFocusStrategy==="last"?yu(S):S.firstChild();if(B){Ie(B);return}}(p.current!=null&&r.key!==p.current||!Ut(n.current))&&Ie(n.current)}},{itemProps:y,isPressed:$}=Rr({selectionManager:t.selectionManager,key:r.key,ref:n,isVirtualized:i,focus:g,shouldSelectOnPressUp:o,onAction:f?()=>f(r.key):s,isDisabled:t.collection.size===0}),x=S=>{let B=ce(se(n.current));if(!ae(S.currentTarget,W(S))||t.isKeyboardNavigationDisabled||!n.current||!B)return;let E=Ae(n.current);switch(E.currentNode=B,S.key){case"ArrowLeft":{let k=d==="rtl"?E.nextNode():E.previousNode();if(h==="child"&&k===n.current&&(k=null),S.preventDefault(),S.stopPropagation(),k)Ie(k),Ct(k,{containingElement:ot(n.current)});else{if(c.getKeyLeftOf?.(r.key)!==r.key){n.current.parentElement?.dispatchEvent(new KeyboardEvent(S.nativeEvent.type,S.nativeEvent));break}h==="cell"&&d==="rtl"?(Ie(n.current),Ct(n.current,{containingElement:ot(n.current)})):(E.currentNode=n.current,k=d==="rtl"?E.firstChild():yu(E),k&&(Ie(k),Ct(k,{containingElement:ot(n.current)})))}break}case"ArrowRight":{let k=d==="rtl"?E.previousNode():E.nextNode();if(h==="child"&&k===n.current&&(k=null),S.preventDefault(),S.stopPropagation(),k)Ie(k),Ct(k,{containingElement:ot(n.current)});else{if(c.getKeyRightOf?.(r.key)!==r.key){n.current.parentElement?.dispatchEvent(new KeyboardEvent(S.nativeEvent.type,S.nativeEvent));break}h==="cell"&&d==="ltr"?(Ie(n.current),Ct(n.current,{containingElement:ot(n.current)})):(E.currentNode=n.current,k=d==="rtl"?yu(E):E.firstChild(),k&&(Ie(k),Ct(k,{containingElement:ot(n.current)})))}break}case"ArrowUp":case"ArrowDown":!S.altKey&&ae(n.current,W(S))&&(S.stopPropagation(),S.preventDefault(),n.current.parentElement?.dispatchEvent(new KeyboardEvent(S.nativeEvent.type,S.nativeEvent)));break}},v=S=>{let B=ce(se(n.current));if(!(!ae(S.currentTarget,W(S))||t.isKeyboardNavigationDisabled||!n.current||!B)){if(m==="tab"&&W(S)!==n.current&&S.key!=="Tab"){S.stopPropagation();return}switch(S.key){case"Tab":if(m==="tab"){let E=Ae(n.current,{tabbable:!0});E.currentNode=B,(S.shiftKey?E.previousNode():E.nextNode())&&S.stopPropagation()}}}},C=S=>{if(p.current=r.key,W(S)!==n.current){Wt()||t.selectionManager.setFocusedKey(r.key);return}h==="child"&&S.relatedTarget&&ae(n.current,S.relatedTarget)||requestAnimationFrame(()=>{h==="child"&&ce(se(n.current))===n.current&&g()})},w=q(y,{role:"gridcell",onKeyDownCapture:m!=="tab"||l?x:void 0,onKeyDown:m==="tab"?v:void 0,"aria-colspan":r.colSpan,"aria-colindex":r.colIndex!=null?r.colIndex+1:void 0,colSpan:i?void 0:r.colSpan,onFocus:C,...h==="child"&&m==="tab"?{tabIndex:-1}:{}});return i&&(w["aria-colindex"]=(r.colIndex??r.index)+1),o&&w.tabIndex!=null&&w.onPointerDown==null&&(w.onPointerDown=S=>{let B=S.currentTarget,E=B.getAttribute("tabindex");B.removeAttribute("tabindex"),requestAnimationFrame(()=>{E!=null&&B.setAttribute("tabindex",E)})}),{gridCellProps:w,isPressed:$}}function yu(e){let t=null,n=null;do n=e.lastChild(),n&&(t=n);while(n);return t}function g7(e){return e&&e.__esModule?e.default:e}function y7(e,t,n){let{node:r}=e,i=r.props.allowsSorting,{gridCellProps:a}=c2({focusMode:"child",...e},t,n),l=r.props.isSelectionCell&&t.selectionManager.selectionMode==="single",{pressProps:o,isPressed:s}=It({isDisabled:!i||l,onPress(){t.sort(r.key)},ref:n}),{focusableProps:d}=zn({},n),c,f=t.sortDescriptor?.column===r.key,m=t.sortDescriptor?.direction;r.props.allowsSorting&&!Mn()&&(c=f?m:"none");let h=ke(g7(rr),"@react-aria/table"),p;i&&(p=`${h.format("sortable")}`,f&&m&&Mn()&&(p=`${p}, ${h.format(m)}`));let g=xn(p),y=t.collection.size===0;return u.useEffect(()=>{y&&t.selectionManager.focusedKey===r.key&&t.selectionManager.setFocusedKey(null)},[y,t.selectionManager,r.key]),{columnHeaderProps:{...q(d,a,o,g,y?{tabIndex:-1}:null),role:"columnheader",id:Bg(t,r.key),"aria-colspan":r.colSpan&&r.colSpan>1?r.colSpan:void 0,"aria-sort":c},isPressed:s}}function $7(e,t,n){let{node:r,isVirtualized:i,shouldSelectOnPressUp:a,onAction:l}=e,{actions:o,shouldSelectOnPressUp:s}=hu.get(t),d=o.onRowAction?()=>o.onRowAction?.(r.key):l,{itemProps:c,...f}=Rr({selectionManager:t.selectionManager,key:r.key,ref:n,isVirtualized:i,shouldSelectOnPressUp:s||a,onAction:d||r?.props?.onAction?at(r?.props?.onAction,d):void 0,isDisabled:t.collection.size===0}),m=t.selectionManager.isSelected(r.key),h={role:"row","aria-selected":t.selectionManager.selectionMode!=="none"?m:void 0,"aria-disabled":f.isDisabled||void 0,...c};return i&&(h["aria-rowindex"]=r.index+1),{rowProps:h,...f}}function v7(e){return e&&e.__esModule?e.default:e}const f2={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function x7(e,t,n){let{node:r,isVirtualized:i}=e,{rowProps:a,...l}=$7(e,t,n),{direction:o}=be();i&&t.treeColumn==null?a["aria-rowindex"]=r.index+1+t.collection.headerRows.length:delete a["aria-rowindex"];let s=t.treeColumn!=null&&(t.expandedKeys==="all"||t.expandedKeys.has(r.key)),d=ke(v7(rr),"@react-aria/table"),c=Tt({"aria-label":s?d.format("collapse"):d.format("expand"),"aria-labelledby":gu(t,r.key)}),f={},m={};if(t.treeColumn!=null){let g=t.collection.getItem(r.key);if(g!=null){let y=m2(t.collection,r),$=g.props?.hasChildRows||g.props?.UNSTABLE_childItems||y?.type!=="cell",x=t.collection.getItem(r.parentKey),v=x.type==="tablebody"||x.type==="body",C=m2(t.collection,x);for(;C&&C.type!=="item"&&C.prevKey!=null;)C=t.collection.getItem(C.prevKey);f={onKeyDown:w=>{w.key===f2.expand[o]&&t.selectionManager.focusedKey===g.key&&$&&t.expandedKeys!=="all"&&!t.expandedKeys.has(g.key)?(t.toggleKey(g.key),w.stopPropagation()):w.key===f2.collapse[o]&&t.selectionManager.focusedKey===g.key&&(t.expandedKeys!=="all"?$&&t.expandedKeys.has(g.key)?(t.toggleKey(g.key),w.stopPropagation()):!t.expandedKeys.has(g.key)&&g.parentKey!=null&&g.level>0&&(t.selectionManager.setFocusedKey(g.parentKey),w.stopPropagation()):t.expandedKeys==="all"&&(t.toggleKey(g.key),w.stopPropagation()))},"aria-expanded":$?t.expandedKeys==="all"||t.expandedKeys.has(r.key):void 0,"aria-level":g.level+1,"aria-posinset":g.index-(v?0:t.collection.columnCount)+1,"aria-setsize":C.index-(v?0:t.collection.columnCount)+1},m={isDisabled:l.isDisabled,onPress:()=>{l.isDisabled||(t.toggleKey(r.key),t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(r.key))},excludeFromTabOrder:!0,preventFocusOnPress:!0,"data-react-aria-prevent-focus":!0,...c}}}let h=y5(r.props),p=l.hasAction?h:{};return{rowProps:{...q(a,f,p),"aria-labelledby":gu(t,r.key)},expandButtonProps:m,...l}}function m2(e,t){return"lastChildKey"in t?t.lastChildKey!=null?e.getItem(t.lastChildKey):null:Array.from(t.childNodes).findLast(n=>n.parentKey===t.key)}function C7(e,t,n){let{node:r,isVirtualized:i}=e,a={role:"row"};return i&&t.treeColumn==null&&(a["aria-rowindex"]=r.index+1),{rowProps:a}}function D7(e,t,n){let{gridCellProps:r,isPressed:i}=c2(e,t,n),a=e.node.column?.key;return a!=null&&t.collection.rowHeaderColumnKeys.has(a)&&(r.role="rowheader",r.id=Ng(t,e.node.parentKey,a)),{gridCellProps:r,isPressed:i}}function E7(e){return e&&e.__esModule?e.default:e}function w7(e,t){let{key:n}=e;const{checkboxProps:r}=F8(e,t);return{checkboxProps:{...r,"aria-labelledby":`${r.id} ${gu(t,n)}`}}}function S7(e){let{isEmpty:t,isSelectAll:n,selectionMode:r}=e.selectionManager;return{checkboxProps:{"aria-label":ke(E7(rr),"@react-aria/table").format(r==="single"?"select":"selectAll"),isSelected:n,isDisabled:r!=="multiple"||e.collection.size===0||e.collection.rows.length===1&&e.collection.rows[0].type==="loader",isIndeterminate:!t&&!n,onChange:()=>e.selectionManager.toggleSelectAll()}}}function P7(e){return e&&e.__esModule?e.default:e}function k7(e,t,n){let{column:r,triggerRef:i,isDisabled:a,onResizeStart:l,onResize:o,onResizeEnd:s,"aria-label":d}=e;const c=ke(P7(rr),"@react-aria/table");let f=Ee(),m=t.resizingColumn===r.key,h=u.useRef(m),p=u.useRef(null),g=u.useRef(!1),y=t.tableState.isKeyboardNavigationDisabled,[$,x]=u.useState(!1),{direction:v}=be(),C=u.useCallback(z=>{h.current||(p.current=t.updateResizedColumns(z.key,t.getColumnWidth(z.key)),t.startResize(z.key),t.tableState.setKeyboardNavigationDisabled(!0),l?.(p.current)),h.current=!0},[t,l]),w=u.useCallback((z,L)=>{let J=t.updateResizedColumns(z.key,L);o?.(J),p.current=J},[t,o]),S=u.useCallback(z=>{h.current&&(p.current==null&&(p.current=t.updateResizedColumns(z.key,t.getColumnWidth(z.key))),t.endResize(),t.tableState.setKeyboardNavigationDisabled(!1),s?.(p.current),h.current=!1,i?.current&&!g.current&&Ie(i.current)),p.current=null},[t,i,s]),B=()=>{if(y){S(r);return}return!1},{keyboardProps:E}=Le({shortcuts:{Escape:()=>B(),Enter:()=>{y?S(r):C(r)}," ":()=>B(),Tab:()=>B()}});const k=u.useRef(0),{moveProps:K}=bx({onMoveStart(z){k.current=t.getColumnWidth(r.key),z.pointerType==="mouse"&&x(!0),C(r)},onMove(z){let{deltaX:L,deltaY:J,pointerType:le}=z;v==="rtl"&&(L*=-1),le==="keyboard"&&(J!==0&&L===0&&(L=J*-1),L*=10),L!==0&&(k.current+=L,w(r,k.current))},onMoveEnd(z){let{pointerType:L}=z;k.current=0,x(!1),(L==="mouse"||L==="touch"&&g.current)&&S(r)}});let T=u.useCallback(z=>{y&&K.onKeyDown?.(z)},[y,K]),I=Math.floor(t.getColumnMinWidth(r.key)),R=Math.floor(t.getColumnMaxWidth(r.key));R===1/0&&(R=Number.MAX_SAFE_INTEGER);let D=Math.floor(t.getColumnWidth(r.key)),M=Xs();M==="virtual"&&typeof window<"u"&&"ontouchstart"in window&&(M="touch");let G=i?.current==null&&(M==="keyboard"||M==="virtual")&&!m?c.format("resizerDescription"):void 0,O=xn(G),Y={"aria-label":d,"aria-orientation":"horizontal","aria-labelledby":`${f} ${Bg(t.tableState,r.key)}`,"aria-valuetext":c.format("columnSize",{value:D}),type:"range",min:I,max:R,value:D,...O};const P=u.useCallback(()=>{n.current&&Ie(n.current)},[n]);let N=t.resizingColumn,_=u.useRef(null),Q=De(C);u.useEffect(()=>{if(_.current!==N&&N!=null&&N===r.key){g.current=ce()===n.current,Q(r);let z=setTimeout(()=>P(),0),L=setTimeout(P,400);return()=>{clearTimeout(z),clearTimeout(L)}}_.current=N},[N,r,P,n]);let X=z=>{let L=t.getColumnWidth(r.key),J=parseFloat(W(z).value);J>L?J=L+10:J=L-10,w(r,J)},{pressProps:A}=It({preventFocusOnPress:!0,onPressStart:z=>{if(!(z.ctrlKey||z.altKey||z.metaKey||z.shiftKey||z.pointerType==="keyboard")){if(z.pointerType==="virtual"&&t.resizingColumn!=null){S(r);return}P(),z.pointerType!=="virtual"&&C(r)}},onPress:z=>{(z.pointerType==="touch"&&g.current||z.pointerType==="mouse")&&t.resizingColumn!=null&&S(r)}}),{visuallyHiddenProps:F}=Dn();return{resizerProps:q(E,{...K,onKeyDown:T},A,{style:{touchAction:"none"}}),inputProps:q(F,{id:f,onBlur:()=>{S(r)},onChange:X,disabled:a},Y),isResizing:m,isMouseResizing:$}}function B7(){return{rowGroupProps:{role:"rowgroup"}}}function $u(){return B7()}function N7(e){return e&&e.__esModule?e.default:e}class A7 extends od{withExpandedKeys(t){let n=this.clone();return n.expandedKeys=t,n.frozen=this.frozen,n.rows=Array.from(n.getRows()),n}addNode(t){super.addNode(t),this.columnsDirty||=t.type==="column",t.type==="tableheader"&&(this.head=t)}getRows(){let t=[];for(let n of this)(n.type==="tablebody"||n.type==="tablefooter")&&t.push(...this.getChildren(n.key));return t}get body(){for(let t of this)if(t.type==="tablebody")return t;return new Ma(-2)}commit(t,n,r=!1){this.updateColumns(r),this.firstKey=t,this.lastKey=n,this.rows=[];for(let i of this.getRows()){let a=i.lastChildKey;if(a!=null){let l=this.getItem(a);for(;l&&l.type!=="cell";)l=l.prevKey!=null?this.getItem(l.prevKey):null;if(l){let o=(l.colIndex??l.index)+(l.colSpan??1);if(o!==this.columns.length&&!r)throw new Error(`Cell count must match column count. Found ${o} cells and ${this.columns.length} columns.`)}}this.rows.push(i)}super.commit(t,n,r)}updateColumns(t){if(!this.columnsDirty)return;this.rowHeaderColumnKeys=new Set,this.columns=[];let n=new Map,r=i=>{i.type==="column"&&(n.set(i.key,i),i.hasChildNodes||(i.index=this.columns.length,this.columns.push(i),i.props.isRowHeader&&this.rowHeaderColumnKeys.add(i.key)));for(let a of this.getChildren(i.key))r(a)};for(let i of this.getChildren(this.head.key))r(i);if(this.headerRows=wg(n,this.columns),this.columnsDirty=!1,this.rowHeaderColumnKeys.size===0&&this.columns.length>0&&!t)throw new Error("A table must have at least one Column with the isRowHeader prop set to true")}get columnCount(){return this.columns.length}*[Symbol.iterator](){let t=this.firstKey;for(;t!=null;){let n=this.getItem(t);n&&(yield n),t=n?.nextKey??null}}getFirstKey(){for(let t of this)if(t.type==="tablebody")return t.firstChildKey??null;return null}getLastKey(){let t=this.lastKey;if(t==null)return null;let n=this.getItem(t);for(;n?.lastChildKey!=null&&(n.type!=="item"||this.expandedKeys.has(n.key));)n=this.getItem(n.lastChildKey);return n?.key}getKeyAfter(t){let n=this.getItem(t);if(n?.type==="column")return n.nextKey??null;if(!n)return null;if(n.type==="item"&&n.firstChildKey!=null&&this.expandedKeys.has(n.key)){let r=this.getItem(n.firstChildKey);for(;r;){if(r.type==="item")return r.key;r=r.nextKey!=null?this.getItem(r.nextKey):null}}return super.getKeyAfter(t)}getKeyBefore(t){let n=this.getItem(t);if(n?.type==="column")return n.prevKey??null;if(!n)return null;let r=null;if(n.prevKey!=null){for(n=this.getItem(n.prevKey);n&&(n.type!=="item"||this.expandedKeys.has(n.key))&&n.lastChildKey!=null;)n=this.getItem(n.lastChildKey);r=n?.key??null}return r==null&&(r=n.parentKey),r!=null&&this.getItem(r)?.type==="tableheader"?null:r}getChildren(t){let n=this.getItem(t);if(!n){for(let i of this.headerRows)if(i.key===t)return i.childNodes}let r=this;return n?.type==="tablebody"||n?.type==="tablefooter"?{*[Symbol.iterator](){let i=n.firstChildKey,a=i!=null?r.getItem(i):null;for(;a;){yield a;let l=r.getKeyAfter(a.key);if(a=l!=null?r.getItem(l):null,a&&a.parentKey===n.parentKey)break}}}:{*[Symbol.iterator](){let i=r.getItem(t),a=i?.firstChildKey!=null?r.getItem(i.firstChildKey):null;for(;a&&(yield a,a=a.nextKey!=null?r.getItem(a.nextKey):null,!(i?.type==="item"&&a?.type!=="cell")););}}}clone(){let t=super.clone();return t.headerRows=this.headerRows,t.columns=this.columns,t.rows=this.rows,t.rowHeaderColumnKeys=this.rowHeaderColumnKeys,t.head=this.head,t}getTextValue(t){let n=this.getItem(t);if(!n)return"";if(n.textValue)return n.textValue;let r=this.rowHeaderColumnKeys,i=[];for(let a of this.getChildren(t)){let l=this.columns[a.index];if(r.has(l.key)&&a.textValue&&i.push(a.textValue),i.length===r.size)break}return i.join(" ")}constructor(...t){super(...t),this.headerRows=[],this.columns=[],this.rows=[],this.rowHeaderColumnKeys=new Set,this.head=new Ia(-1),this.columnsDirty=!0,this.expandedKeys=new Set}}const vu=u.createContext(null),F7=u.forwardRef(function(t,n){let r=Te(n),i=u.useRef(null),a=u.useRef(null),[l,o]=u.useState(0);fe(()=>{let d=i.current;for(;d&&d!==r.current&&!tn(d);)d=d.parentElement;a.current=d},[r]),Zr({ref:a,box:"border-box",onResize(){o(a.current?.clientWidth??0)}}),fe(()=>{o(a.current?.clientWidth??0)},[]);let s=u.useMemo(()=>({tableRef:i,scrollRef:a,tableWidth:l,useTableColumnResizeState:o7,onResizeStart:t.onResizeStart,onResize:t.onResize,onResizeEnd:t.onResizeEnd}),[i,l,t.onResizeStart,t.onResize,t.onResizeEnd]);return u.createElement(re.div,{render:t.render,...ie(t,{global:!0}),ref:r,className:t.className||"react-aria-ResizableTableContainer",style:t.style,onScroll:t.onScroll},u.createElement(vu.Provider,{value:s},t.children))}),T7=u.createContext(null),dt=u.createContext(null),xu=u.createContext(null),I7=u.forwardRef(function(t,n){[t,n]=pe(t,n,T7);let r=Hr(t),{selectionBehavior:i,selectionMode:a,disallowEmptySelection:l}=r,o=!!t.dragAndDropHooks?.useDraggableCollectionState,s=u.useMemo(()=>({selectionBehavior:a==="none"?null:i,selectionMode:a,disallowEmptySelection:l,allowsDragging:o}),[i,a,l,o]),d=u.createElement(L7.Provider,{value:s},u.createElement(mn,t));return u.createElement(fn,{content:d,createCollection:()=>new A7},c=>u.createElement(K7,{props:t,forwardedRef:n,selectionState:r,collection:c}))});let M7=u.forwardRef(function(t,n){let{isVirtualized:r}=u.useContext(ge);return r?u.createElement(re.div,{...t,ref:n}):u.createElement(re.table,{...t,ref:n})});const h2={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function K7({props:e,forwardedRef:t,selectionState:n,collection:r}){[e,t]=pe(e,t,$r);let{shouldUseVirtualFocus:i,disallowTypeAhead:a,filter:l,...o}=e,s=u.useContext(vu);t=Te(u.useMemo(()=>fr(t,s?.tableRef),[t,s?.tableRef]));let[d,c]=He(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,e.onExpandedChange);r=u.useMemo(()=>r.withExpandedKeys(d),[r,d]);let f=d7({...o,collection:r,children:void 0,UNSAFE_selectionState:n,expandedKeys:d,onExpandedChange:c}),m=c7(f,l),{isVirtualized:h,layoutDelegate:p,dropTargetDelegate:g,CollectionRoot:y}=u.useContext(ge),{dragAndDropHooks:$}=e,{gridProps:x}=b7({...o,layoutDelegate:p,isVirtualized:h},m,t),v=m.selectionManager,C=!!$?.useDraggableCollectionState,w=!!$?.useDroppableCollectionState,S=u.useRef(C),B=u.useRef(w);u.useEffect(()=>{process.env.NODE_ENV!=="production"&&(S.current!==C&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),B.current!==w&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."))},[C,w]);let E,k,K,T=!1,I=null,R=u.useRef(null),{direction:D}=be(),[M]=u.useState(()=>new Q8);if(C&&$){E=$.useDraggableCollectionState({collection:m.collection,selectionManager:v,preview:$.renderDragPreview?R:void 0}),$.useDraggableCollection({},E,t);let A=$.DragPreview;I=$.renderDragPreview?u.createElement(A,{ref:R},$.renderDragPreview):null}if(w&&$){k=$.useDroppableCollectionState({collection:m.collection,selectionManager:v});let A=new _r({collection:m.collection,disabledKeys:v.disabledKeys,disabledBehavior:v.disabledBehavior,ref:t,layoutDelegate:p}),F=$.dropTargetDelegate||g||new $.ListDropTargetDelegate(r.rows,t);M.setup(F,f,D),K=$.useDroppableCollection({keyboardDelegate:A,dropTargetDelegate:M,onDropActivate:z=>{if(z.target.type==="item"){let L=z.target.key,J=f.collection.getItem(L),le=d.has(L);J&&J.hasChildNodes&&(!le||$?.isVirtualDragging?.())&&f.toggleKey(L)}},onKeyDown:z=>{let L=k?.target;if(L&&L.type==="item"&&L.dropPosition==="on"){let J=f.collection.getItem(L.key);(z.key===h2.expand[D]&&J?.hasChildNodes&&!f.expandedKeys.has(L.key)||z.key===h2.collapse[D]&&J?.hasChildNodes&&f.expandedKeys.has(L.key))&&f.toggleKey(L.key)}}},k,t),T=k.isDropTarget({type:"root"})}let{focusProps:G,isFocused:O,isFocusVisible:Y}=Oe(),P=ue({...e,children:void 0,defaultClassName:"react-aria-Table",values:{isDropTarget:T,isFocused:O,isFocusVisible:Y,state:m}}),N=!!(C&&!E?.isDisabled),_=P.style,Q=null;s&&(Q=s.useTableColumnResizeState({tableWidth:s.tableWidth},m),h||(_={..._,tableLayout:"fixed",width:"min-content"}));let X=ie(e,{global:!0});return u.createElement(Pe,{values:[[dt,m],[xu,Q],[ut,{dragAndDropHooks:$,dragState:E,dropState:k}],[So,{render:X7}],[$r,null],[vr,null]]},u.createElement($a,null,u.createElement(M7,{...q(X,P,x,G,K?.collectionProps),style:_,ref:t,slot:e.slot||void 0,onScroll:e.onScroll,"data-allows-dragging":N||void 0,"data-drop-target":T||void 0,"data-focused":O||void 0,"data-focus-visible":Y||void 0},u.createElement(ga,null,u.createElement(y,{collection:m.collection,scrollRef:s?.scrollRef??t,persistedKeys:Fm(v,$,k)})))),I)}const L7=u.createContext(null),Ds=class Ds extends et{};Ds.type="tableheader";let Ia=Ds,O7=u.forwardRef(function(t,n){let{isVirtualized:r}=u.useContext(ge);return r?u.createElement(re.div,{...t,ref:n}):u.createElement(re.thead,{...t,ref:n})});const z7=zi(Ia,(e,t)=>{let n=u.useContext(dt).collection,r=yl({items:n.headerRows,children:u.useCallback(s=>{if(s.type==="headerrow")return u.createElement(_7,{item:s});throw new Error("Unsupported node type in TableHeader: "+s.type)},[])}),{rowGroupProps:i}=$u(),{hoverProps:a,isHovered:l}=ze({onHoverStart:e.onHoverStart,onHoverChange:e.onHoverChange,onHoverEnd:e.onHoverEnd}),o=ue({...e,children:void 0,defaultClassName:"react-aria-TableHeader",values:{isHovered:l}});return u.createElement(O7,{...q(ie(e,{global:!0}),i,a),...o,ref:t,"data-hovered":l||void 0},r)},e=>u.createElement(mn,{dependencies:e.dependencies,items:e.columns},e.children));let V7=u.forwardRef(function(t,n){let{isVirtualized:r}=u.useContext(ge);return r?u.createElement("div",{...t,ref:n}):u.createElement("tr",{...t,ref:n})});function _7({item:e}){let t=u.useRef(null),n=u.useContext(dt),{isVirtualized:r,CollectionBranch:i}=u.useContext(ge),{rowProps:a}=C7({node:e,isVirtualized:r},n,t),{checkboxProps:l}=S7(n);return u.createElement(V7,{...a,ref:t},u.createElement(Pe,{values:[[m0,{slots:{selection:l}}],[h0,{slots:{selection:l}}]]},u.createElement(i,{collection:n.collection,parent:e})))}const Es=class Es extends et{};Es.type="column";let Cu=Es,R7=u.forwardRef(function(t,n){let{isVirtualized:r}=u.useContext(ge);return r?u.createElement(re.div,{...t,ref:n}):u.createElement(re.th,{...t,ref:n})});const j7=yt(Cu,(e,t,n)=>{let r=Te(t),i=u.useContext(dt),{isVirtualized:a}=u.useContext(ge),{columnHeaderProps:l,isPressed:o}=y7({node:n,isVirtualized:a,focusMode:e.focusMode,allowsArrowNavigation:e.allowsArrowNavigation},i,r),{isFocused:s,isFocusVisible:d,focusProps:c}=Oe(),f=u.useContext(xu),m=!1;if(f)m=f.resizingColumn===n.key;else if(process.env.NODE_ENV!=="production")for(let x in["width","defaultWidth","minWidth","maxWidth"])x in n.props&&console.warn(`The ${x} prop on a <Column> only applies when a <Table> is wrapped in a <ResizableTableContainer>. If you aren't using column resizing, you can set the width of a column with CSS.`);let{hoverProps:h,isHovered:p}=ze({isDisabled:!e.allowsSorting}),g=ue({...e,id:void 0,children:n.rendered,defaultClassName:"react-aria-Column",values:{isHovered:p,isPressed:o,isFocused:s,isFocusVisible:d,allowsSorting:n.props.allowsSorting,sortDirection:i.sortDescriptor?.column===n.key?i.sortDescriptor.direction:void 0,isResizing:m,startResize:()=>{if(f)f.startResize(n.key),i.setKeyboardNavigationDisabled(!0);else throw new Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing")},sort:x=>{i.sort(n.key,x)}}}),y=g.style;f&&(y={...y,width:f.getColumnWidth(n.key)});let $=ie(e,{global:!0});return delete $.id,u.createElement(R7,{...q($,l,c,h),...g,style:y,ref:r,"data-hovered":p||void 0,"data-pressed":o||void 0,"data-focused":s||void 0,"data-focus-visible":d||void 0,"data-resizing":m||void 0,"data-allows-sorting":n.props.allowsSorting||void 0,"data-sort-direction":i.sortDescriptor?.column===n.key?i.sortDescriptor.direction:void 0},u.createElement(Pe,{values:[[p2,{column:n,triggerRef:r}],[ge,wl]]},g.children))}),p2=u.createContext(null),H7=u.forwardRef(function(t,n){let r=u.useContext(xu);if(!r)throw new Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing");let i=ke(N7(wo),"react-aria-components"),{onResizeStart:a,onResize:l,onResizeEnd:o}=u.useContext(vu),{column:s,triggerRef:d}=u.useContext(p2),c=u.useRef(null),{resizerProps:f,inputProps:m,isResizing:h,isMouseResizing:p}=k7({column:s,"aria-label":t["aria-label"]||i.format("tableResizer"),onResizeStart:a,onResize:l,onResizeEnd:o,triggerRef:d},r,c),{focusProps:g,isFocused:y,isFocusVisible:$}=Oe(),{hoverProps:x,isHovered:v}=ze(t),C=r.getColumnMinWidth(s.key)>=r.getColumnWidth(s.key),w=r.getColumnMaxWidth(s.key)<=r.getColumnWidth(s.key),{direction:S}=be(),B="both";C?B=S==="rtl"?"right":"left":w?B=S==="rtl"?"left":"right":B="both";let E=Te(n),[k,K]=u.useState("");u.useEffect(()=>{if(!E.current)return;let R=window.getComputedStyle(E.current);K(R.cursor)},[E,B]);let T=ue({...t,defaultClassName:"react-aria-ColumnResizer",values:{isFocused:y,isFocusVisible:$,isResizing:h,isHovered:v,resizableDirection:B}}),I=ie(t,{global:!0});return u.createElement(re.div,{ref:E,role:"presentation",...q(I,T,f,x),"data-hovered":v||void 0,"data-focused":y||void 0,"data-focus-visible":$||void 0,"data-resizing":h||void 0,"data-resizable-direction":B},T.children,u.createElement("input",{ref:c,...q(m,g)}),h&&p&&jt.createPortal(u.createElement("div",{style:{position:"fixed",top:0,left:0,bottom:0,right:0,cursor:k},"data-testid":"cursor-overlay"}),document.body))}),ws=class ws extends Fi{};ws.type="tablebody";let Ma=ws,U7=u.forwardRef(function(t,n){let{isVirtualized:r}=u.useContext(ge);return r?u.createElement(re.div,{...t,ref:n}):u.createElement(re.tbody,{...t,ref:n})});const W7=zi(Ma,(e,t,n)=>{let r=u.useContext(dt),{isVirtualized:i}=u.useContext(ge),a=r.collection,{CollectionBranch:l}=u.useContext(ge),{dragAndDropHooks:o,dropState:s}=u.useContext(ut),d=!!o?.useDroppableCollectionState&&!s?.isDisabled,c=d&&!!s&&(s.isDropTarget({type:"root"})??!1),f=a.size===0,m={isDropTarget:c,isEmpty:f},h=ue({...e,id:void 0,children:void 0,defaultClassName:"react-aria-TableBody",values:m}),p,g=a.columnCount;if(f&&e.renderEmptyState&&r){let x={},v={},C={};i?(v["aria-colspan"]=g,C={display:"contents"}):v.colSpan=g,p=u.createElement(ir,{role:"row",...x,style:C},u.createElement(ar,{role:"rowheader",...v,style:C},e.renderEmptyState(m)))}let{rowGroupProps:y}=$u(),$=ie(e,{global:!0});return u.createElement(U7,{...q($,h,y),ref:t,"data-empty":f||void 0},d&&u.createElement(nC,null),u.createElement(l,{collection:a,parent:n,renderDropIndicator:ba(o,s)}),p)}),Ss=class Ss extends Fi{};Ss.type="tablefooter";let Du=Ss,G7=u.forwardRef(function(t,n){let{isVirtualized:r}=u.useContext(ge);return r?u.createElement(re.div,{...t,ref:n}):u.createElement(re.tfoot,{...t,ref:n})});const Z7=zi(Du,(e,t,n)=>{let i=u.useContext(dt).collection,{CollectionBranch:a}=u.useContext(ge),{dragAndDropHooks:l,dropState:o}=u.useContext(ut),{rowGroupProps:s}=$u(),d=ie(e,{global:!0}),c=ue({style:e.style,className:e.className,defaultClassName:"react-aria-TableFooter",values:{}});return u.createElement(G7,{...q(d,c,s),ref:t},u.createElement(a,{collection:i,parent:n,renderDropIndicator:ba(l,o)}))}),b2=u.createContext({isFocusVisibleWithinRow:!1}),Ps=class Ps extends et{filter(t,n,r){let i=t.getChildren(this.key);for(let a of i)if(r(a.textValue,a)){let l=this.clone();return n.addDescendants(l,t),l}return null}};Ps.type="item";let Eu=Ps,ir=u.forwardRef(function(t,n){let{isVirtualized:r}=u.useContext(ge);return r?u.createElement(re.div,{...t,ref:n}):u.createElement(re.tr,{...t,ref:n})});const Y7=zi(Eu,(e,t,n)=>{let r=Te(t),i=u.useContext(dt),{dragAndDropHooks:a,dragState:l,dropState:o}=u.useContext(ut),{isVirtualized:s,CollectionBranch:d}=u.useContext(ge),c=l&&!(l.isDisabled||l.selectionManager.isDisabled(n.key)),{rowProps:f,expandButtonProps:m,...h}=x7({node:n,shouldSelectOnPressUp:!!l,isVirtualized:s},i,r),{isFocused:p,isFocusVisible:g,focusProps:y}=Oe(),{isFocusVisible:$,focusProps:x}=Oe({within:!0}),{hoverProps:v,isHovered:C}=ze({isDisabled:!h.allowsSelection&&!h.hasAction&&!c,onHoverStart:e.onHoverStart,onHoverChange:e.onHoverChange,onHoverEnd:e.onHoverEnd}),{checkboxProps:w}=w7({key:n.key},i),S;l&&a&&(S=a.useDraggableItem({key:n.key,hasDragButton:!0},l));let B,E=u.useRef(null),{visuallyHiddenProps:k}=Dn();o&&a&&(B=a.useDropIndicator({target:{type:"item",key:n.key,dropPosition:"on"}},o,E));let K=u.useRef(null);u.useEffect(()=>{l&&!K.current&&process.env.NODE_ENV!=="production"&&console.warn('Draggable items in a Table must contain a <Button slot="drag"> element so that keyboard and screen reader users can drag them.')},[]);let T=l&&l.isDragging(n.key),{children:I,...R}=e,D=e.hasChildItems||i.collection.getItem(n.lastChildKey)?.type!=="cell",M=D&&i.expandedKeys.has(n.key),G=ue({...R,id:void 0,defaultClassName:"react-aria-Row",defaultStyle:{"--table-row-level":n.level+1},values:{...h,state:i,isHovered:C,isFocused:p,isFocusVisible:g,selectionMode:i.selectionManager.selectionMode,selectionBehavior:i.selectionManager.selectionBehavior,isDragging:T,isDropTarget:B?.isDropTarget,isFocusVisibleWithin:$,id:n.key,hasChildItems:D,isExpanded:M,level:n.level+1}}),O=ie(e,{global:!0});return delete O.id,delete O.onClick,u.createElement(u.Fragment,null,B&&!B.isHidden&&u.createElement(ir,{role:"row",style:{height:0}},u.createElement(ar,{role:"gridcell",colSpan:i.collection.columnCount,style:{padding:0}},u.createElement("div",{role:"button",...k,...B.dropIndicatorProps,ref:E}))),u.createElement(ir,{...q(O,G,f,y,v,S?.dragProps,x),ref:r,"data-disabled":h.isDisabled||void 0,"data-selected":h.isSelected||void 0,"data-hovered":C||void 0,"data-focused":h.isFocused||void 0,"data-focus-visible":g||void 0,"data-pressed":h.isPressed||void 0,"data-dragging":T||void 0,"data-drop-target":B?.isDropTarget||void 0,"data-selection-mode":i.selectionManager.selectionMode==="none"?void 0:i.selectionManager.selectionMode,"data-focus-visible-within":$||void 0,"data-expanded":M||void 0,"data-has-child-items":D||void 0,"data-level":n.level+1},u.createElement(Pe,{values:[[m0,{slots:{[Nt]:{},selection:w}}],[h0,{slots:{[Nt]:{},selection:w}}],[vt,{slots:{[Nt]:{},chevron:m,drag:{...S?.dragButtonProps,ref:K,style:{pointerEvents:"none"}}}}],[zr,{isSelected:h.isSelected}],[b2,{isFocusVisibleWithinRow:$}]]},u.createElement(d,{collection:i.collection,parent:n}))))},e=>{if(e.id==null&&typeof e.children=="function")throw new Error("No id detected for the Row element. The Row element requires a id to be provided to it when the cells are rendered dynamically.");let t=[e.value].concat(e.dependencies);return u.createElement(mn,{dependencies:t,items:e.columns,idScope:e.id},e.children)}),ks=class ks extends et{};ks.type="cell";let wu=ks,ar=u.forwardRef(function(t,n){let{isVirtualized:r}=u.useContext(ge);return r?u.createElement(re.div,{...t,ref:n}):u.createElement(re.td,{...t,ref:n})});const q7=yt(wu,(e,t,n)=>{let r=Te(t),i=u.useContext(dt),{dragState:a}=u.useContext(ut),{isVirtualized:l}=u.useContext(ge);n.column=i.collection.columns[n.index];let{gridCellProps:o,isPressed:s}=D7({node:n,shouldSelectOnPressUp:!!a,isVirtualized:l,focusMode:e.focusMode,allowsArrowNavigation:e.allowsArrowNavigation},i,r),{isFocused:d,isFocusVisible:c,focusProps:f}=Oe(),{hoverProps:m,isHovered:h}=ze({}),{isFocusVisibleWithinRow:p}=u.useContext(b2),g=n.parentKey!=null?i.selectionManager.isSelected(n.parentKey):!1,y=n.colIndex||n.index,$=i.collection.getItem(n.parentKey),x=$.props.hasChildItems||i.collection.getItem($.lastChildKey)?.type!=="cell",v=x&&i.expandedKeys.has(n.parentKey),C=i.selectionManager.isDisabled(n.parentKey),w=ue({...e,id:void 0,defaultClassName:"react-aria-Cell",values:{isFocused:d,isFocusVisible:c,isFocusVisibleWithinRow:p,isPressed:s,isHovered:h,isSelected:g,id:n.key,columnIndex:y,hasChildItems:x,isExpanded:v,isDisabled:C,level:$.level+1,isTreeColumn:n.column.key===i.treeColumn}}),S=ie(e,{global:!0});return delete S.id,u.createElement(ar,{...q(S,w,o,f,m),ref:r,"data-focused":d||void 0,"data-focus-visible":c||void 0,"data-focus-visible-within-row":p||void 0,"data-pressed":s||void 0,"data-selected":g||void 0,"data-column-index":y,"data-expanded":v||void 0,"data-has-child-items":x||void 0,"data-level":$.level+1,"data-tree-column":n.column.key===i.treeColumn||void 0,"data-disabled":C||void 0},u.createElement(ge.Provider,{value:wl},w.children))});function X7(e,t){t=Te(t);let{dragAndDropHooks:n,dropState:r}=u.useContext(ut),i=u.useRef(null),{dropIndicatorProps:a,isHidden:l,isDropTarget:o}=n.useDropIndicator(e,r,i);if(l)return null;let s=r&&e.target.type==="item"?(r.collection.getItem(e.target.key)?.level||0)+1:1;return u.createElement(tC,{...e,dropIndicatorProps:a,isDropTarget:o,buttonRef:i,level:s,ref:t})}let J7=u.forwardRef(function(t,n){let{isVirtualized:r}=u.useContext(ge);return r?u.createElement(re.div,{...t,ref:n}):u.createElement(re.tr,{...t,ref:n})}),Q7=u.forwardRef(function(t,n){let{isVirtualized:r}=u.useContext(ge);return r?u.createElement(re.div,{...t,ref:n}):u.createElement(re.td,{...t,ref:n})});function eC(e,t){let{dropIndicatorProps:n,isDropTarget:r,buttonRef:i,level:a,...l}=e,o=u.useContext(dt),{visuallyHiddenProps:s}=Dn(),d=ue({...l,defaultClassName:"react-aria-DropIndicator",defaultStyle:{"--table-row-level":a+1},values:{isDropTarget:r}});return u.createElement(J7,{...ie(e,{global:!0}),...d,role:"row",ref:t,"data-drop-target":r||void 0,"aria-level":a},u.createElement(Q7,{role:"gridcell",colSpan:o.collection.columnCount,style:{padding:0}},u.createElement("div",{...s,role:"button",...n,ref:i}),d.children))}const tC=u.forwardRef(eC);function nC(){let e=u.useContext(dt),{dragAndDropHooks:t,dropState:n}=u.useContext(ut),r=u.useRef(null),{dropIndicatorProps:i}=t.useDropIndicator({target:{type:"root"}},n,r),a=n.isDropTarget({type:"root"}),{visuallyHiddenProps:l}=Dn();return!a&&i["aria-hidden"]?null:u.createElement(ir,{role:"row","aria-hidden":i["aria-hidden"],style:{height:0}},u.createElement(ar,{role:"gridcell",colSpan:e.collection.columnCount,style:{padding:0}},u.createElement("div",{role:"button",...l,...i,ref:r})))}const rC=yt(Ti,function(t,n,r){let i=u.useContext(dt),{isVirtualized:a}=u.useContext(ge),{isLoading:l,onLoadMore:o,scrollOffset:s,...d}=t,c=i.collection.columns.length,f=u.useRef(null),m=u.useMemo(()=>({onLoadMore:o,collection:i?.collection,sentinelRef:f,scrollOffset:s}),[o,s,i?.collection]);n4(m,f);let h=ue({...d,id:void 0,children:r.rendered,defaultClassName:"react-aria-TableLoadingIndicator",defaultStyle:{"--table-row-level":r.level+1},values:void 0}),p={},g={},y={};return a?(g["aria-colspan"]=c,y={display:"contents"}):g.colSpan=c,u.createElement(u.Fragment,null,u.createElement(ir,{style:{height:0},inert:Jm(!0)},u.createElement(ar,{style:{padding:0,border:0}},u.createElement("div",{"data-testid":"loadMoreSentinel",ref:f,style:{position:"relative",height:1,width:1}}))),l&&h.children&&u.createElement(ir,{...q(ie(t,{global:!0}),p),...h,role:"row",ref:n,"aria-level":r.level+1,"data-level":r.level+1},u.createElement(ar,{role:"rowheader",...g,style:y},h.children)))}),g2=new WeakMap;function y2(e,t,n){if(!e)return"";typeof t=="string"&&(t=t.replace(/\s+/g,""));let r=g2.get(e);return process.env.NODE_ENV!=="production"&&!r&&console.error("There is no tab id, please check if you have rendered the tab panel before the tab list."),`${r}-${n}-${t}`}function iC(e,t,n){let{key:r,isDisabled:i,shouldSelectOnPressUp:a}=e,{selectionManager:l,selectedKey:o}=t,s=r===o,d=i||t.isDisabled||t.selectionManager.isDisabled(r),c=t.collection.getItem(r),{itemProps:f,isPressed:m}=Rr({selectionManager:l,key:r,ref:n,isDisabled:d,shouldSelectOnPressUp:a??c?.props.href!=null,linkBehavior:"selection"}),h=y2(t,r,"tab"),p=y2(t,r,"tabpanel"),{tabIndex:g}=f,y=ie(c?.props,{labelable:!0});delete y.id;let $=Pi(c?.props),{focusableProps:x}=zn({...c?.props,isDisabled:d},n);return{tabProps:q(y,x,$,f,{id:h,"aria-selected":s,"aria-disabled":d||void 0,"aria-controls":s?p:void 0,tabIndex:d?void 0:g,role:"tab"}),isSelected:s,isDisabled:d,isPressed:m}}class aC{constructor(t,n,r,i=new Set){this.collection=t,this.flipDirection=n==="rtl"&&r==="horizontal",this.disabledKeys=i,this.tabDirection=r==="horizontal"}getKeyLeftOf(t){return this.flipDirection?this.getNextKey(t):this.getPreviousKey(t)}getKeyRightOf(t){return this.flipDirection?this.getPreviousKey(t):this.getNextKey(t)}isDisabled(t){return this.disabledKeys.has(t)||!!this.collection.getItem(t)?.props?.isDisabled}getFirstKey(){let t=this.collection.getFirstKey();return t!=null&&this.isDisabled(t)&&(t=this.getNextKey(t)),t}getLastKey(){let t=this.collection.getLastKey();return t!=null&&this.isDisabled(t)&&(t=this.getPreviousKey(t)),t}getKeyAbove(t){return this.tabDirection?null:this.getPreviousKey(t)}getKeyBelow(t){return this.tabDirection?null:this.getNextKey(t)}getNextKey(t){let n=t;do n=this.collection.getKeyAfter(n),n==null&&(n=this.collection.getFirstKey());while(n!=null&&this.isDisabled(n)&&n!==t);return n}getPreviousKey(t){let n=t;do n=this.collection.getKeyBefore(n),n==null&&(n=this.collection.getLastKey());while(n!=null&&this.isDisabled(n)&&n!==t);return n}}function lC(e,t,n){let{orientation:r="horizontal",keyboardActivation:i="automatic"}=e,{collection:a,selectionManager:l,disabledKeys:o}=t,{direction:s}=be(),d=u.useMemo(()=>new aC(a,s,r,o),[a,o,r,s]),{collectionProps:c}=xa({ref:n,selectionManager:l,keyboardDelegate:d,selectOnFocus:i==="automatic",disallowEmptySelection:!0,scrollRef:n,linkBehavior:"selection"}),f=Ee();g2.set(t,f);let m=Tt({...e,id:f});return{tabListProps:{...q(c,m),role:"tablist","aria-orientation":r,tabIndex:void 0}}}function oC(e){let[t,n]=He(e.selectedKey,e.defaultSelectedKey??null,e.onSelectionChange),r=u.useMemo(()=>t!=null?[t]:[],[t]),{collection:i,disabledKeys:a,selectionManager:l}=Ca({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:r,onSelectionChange:s=>{if(s==="all")return;let d=s.values().next().value??null;d===t&&e.onSelectionChange&&e.onSelectionChange(d),n(d)}}),o=t!=null?i.getItem(t):null;return{collection:i,disabledKeys:a,selectionManager:l,selectedKey:t,setSelectedKey:n,selectedItem:o}}function uC(e){let t=oC({...e,onSelectionChange:e.onSelectionChange?l=>{l!=null&&e.onSelectionChange?.(l)}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:e.defaultSelectedKey??$2(e.collection,e.disabledKeys?new Set(e.disabledKeys):new Set)??void 0}),{selectionManager:n,collection:r,selectedKey:i}=t,a=u.useRef(i);return u.useEffect(()=>{let l=i;e.selectedKey==null&&(n.isEmpty||l==null||!r.getItem(l))&&(l=$2(r,t.disabledKeys),l!=null&&n.setSelectedKeys([l])),(l!=null&&n.focusedKey==null||!n.isFocused&&l!==a.current)&&n.setFocusedKey(l),a.current=l}),{...t,isDisabled:e.isDisabled||!1}}function $2(e,t){let n=null;if(e){for(n=e.getFirstKey();n!=null&&(t.has(n)||e.getItem(n)?.props?.isDisabled)&&n!==e.getLastKey();)n=e.getKeyAfter(n);n!=null&&(t.has(n)||e.getItem(n)?.props?.isDisabled)&&n===e.getLastKey()&&(n=e.getFirstKey())}return n}const Su=u.createContext(null),Ka=u.createContext(null),v2=u.forwardRef(function(t,n){[t,n]=pe(t,n,Su);let{children:r,orientation:i="horizontal"}=t;return r=u.useMemo(()=>typeof r=="function"?r({orientation:i,defaultChildren:null}):r,[r,i]),u.createElement(fn,{content:r},a=>u.createElement(sC,{props:t,collection:a,tabsRef:n}))});function sC({props:e,tabsRef:t,collection:n}){let{orientation:r="horizontal"}=e,i=uC({...e,collection:n,children:void 0}),{focusProps:a,isFocused:l,isFocusVisible:o}=Oe({within:!0}),s=u.useMemo(()=>({orientation:r,isFocusWithin:l,isFocusVisible:o}),[r,l,o]),d=ue({...e,defaultClassName:"react-aria-Tabs",values:s}),c=ie(e,{global:!0});return u.createElement(re.div,{...q(c,d,a),ref:t,slot:e.slot||void 0,"data-focused":l||void 0,"data-orientation":r,"data-focus-visible":o||void 0,"data-disabled":i.isDisabled||void 0},u.createElement(Pe,{values:[[Su,e],[Ka,i]]},d.children))}const x2=u.forwardRef(function(t,n){return u.useContext(Ka)?u.createElement(dC,{props:t,forwardedRef:n}):u.createElement(mn,t)});function dC({props:e,forwardedRef:t}){let n=u.useContext(Ka),{CollectionRoot:r}=u.useContext(ge),{orientation:i="horizontal",keyboardActivation:a="automatic"}=qe(Su),l=Te(t),{tabListProps:o}=lC({...e,orientation:i,keyboardActivation:a},n,l),s=ue({...e,children:null,defaultClassName:"react-aria-TabList",values:{orientation:i,state:n}}),d=ie(e,{global:!0});return delete d.id,u.createElement(re.div,{...q(d,s,o),ref:l,"data-orientation":i||void 0},u.createElement(ga,null,u.createElement(r,{collection:n.collection,persistedKeys:Ed(n.selectionManager.focusedKey)})))}const Bs=class Bs extends et{};Bs.type="item";let Pu=Bs;const C2=yt(Pu,(e,t,n)=>{let r=u.useContext(Ka),i=Te(t),{tabProps:a,isSelected:l,isDisabled:o,isPressed:s}=iC({key:n.key,...e},r,i),{focusProps:d,isFocused:c,isFocusVisible:f}=Oe(),{hoverProps:m,isHovered:h}=ze({isDisabled:o,onHoverStart:e.onHoverStart,onHoverEnd:e.onHoverEnd,onHoverChange:e.onHoverChange}),p=ue({...e,id:void 0,children:n.rendered,defaultClassName:"react-aria-Tab",values:{isSelected:l,isDisabled:o,isFocused:c,isFocusVisible:f,isPressed:s,isHovered:h}}),g=n.props.href?re.a:re.div,y=ie(e,{global:!0});return delete y.id,delete y.onClick,u.createElement(g,{...q(y,p,a,d,m),ref:i,"data-selected":l||void 0,"data-disabled":o||void 0,"data-focused":c||void 0,"data-focus-visible":f||void 0,"data-pressed":s||void 0,"data-hovered":h||void 0},u.createElement(zr.Provider,{value:{isSelected:l}},p.children))}),cC=u.createContext({});let fC=e=>{let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,...i}=e;return i};const mC=u.forwardRef(function(t,n){[t,n]=pe(t,n,cC);let{hoverProps:r,isHovered:i}=ze(t),{isFocused:a,isFocusVisible:l,focusProps:o}=Oe({isTextInput:!0,autoFocus:t.autoFocus}),s=!!t["aria-invalid"]&&t["aria-invalid"]!=="false",d=ue({...t,values:{isHovered:i,isFocused:a,isFocusVisible:l,isDisabled:t.disabled||!1,isInvalid:s},defaultClassName:"react-aria-TextArea"});return u.createElement(re.textarea,{...q(fC(t),o,r),...d,ref:n,"data-focused":a||void 0,"data-disabled":t.disabled||void 0,"data-hovered":i||void 0,"data-focus-visible":l||void 0,"data-invalid":s||void 0})}),hC=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},pC=(e,t)=>({classGroupId:e,validator:t}),D2=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),La="-",E2=[],bC="arbitrary..",gC=e=>{const t=$C(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return yC(l);const o=l.split(La),s=o[0]===""&&o.length>1?1:0;return w2(o,s,t)},getConflictingClassGroupIds:(l,o)=>{if(o){const s=r[l],d=n[l];return s?d?hC(d,s):s:d||E2}return n[l]||E2}}},w2=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const i=e[t],a=n.nextPart.get(i);if(a){const d=w2(e,t+1,a);if(d)return d}const l=n.validators;if(l===null)return;const o=t===0?e.join(La):e.slice(t).join(La),s=l.length;for(let d=0;d<s;d++){const c=l[d];if(c.validator(o))return c.classGroupId}},yC=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?bC+r:void 0})(),$C=e=>{const{theme:t,classGroups:n}=e;return vC(n,t)},vC=(e,t)=>{const n=D2();for(const r in e){const i=e[r];ku(i,n,r,t)}return n},ku=(e,t,n,r)=>{const i=e.length;for(let a=0;a<i;a++){const l=e[a];xC(l,t,n,r)}},xC=(e,t,n,r)=>{if(typeof e=="string"){CC(e,t,n);return}if(typeof e=="function"){DC(e,t,n,r);return}EC(e,t,n,r)},CC=(e,t,n)=>{const r=e===""?t:S2(t,e);r.classGroupId=n},DC=(e,t,n,r)=>{if(wC(e)){ku(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(pC(n,e))},EC=(e,t,n,r)=>{const i=Object.entries(e),a=i.length;for(let l=0;l<a;l++){const[o,s]=i[l];ku(s,S2(t,o),n,r)}},S2=(e,t)=>{let n=e;const r=t.split(La),i=r.length;for(let a=0;a<i;a++){const l=r[a];let o=n.nextPart.get(l);o||(o=D2(),n.nextPart.set(l,o)),n=o}return n},wC=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,SC=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const i=(a,l)=>{n[a]=l,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(a){let l=n[a];if(l!==void 0)return l;if((l=r[a])!==void 0)return i(a,l),l},set(a,l){a in n?n[a]=l:i(a,l)}}},Bu="!",P2=":",PC=[],k2=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),kC=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const a=[];let l=0,o=0,s=0,d;const c=i.length;for(let g=0;g<c;g++){const y=i[g];if(l===0&&o===0){if(y===P2){a.push(i.slice(s,g)),s=g+1;continue}if(y==="/"){d=g;continue}}y==="["?l++:y==="]"?l--:y==="("?o++:y===")"&&o--}const f=a.length===0?i:i.slice(s);let m=f,h=!1;f.endsWith(Bu)?(m=f.slice(0,-1),h=!0):f.startsWith(Bu)&&(m=f.slice(1),h=!0);const p=d&&d>s?d-s:void 0;return k2(a,h,m,p)};if(t){const i=t+P2,a=r;r=l=>l.startsWith(i)?a(l.slice(i.length)):k2(PC,!1,l,void 0,!0)}if(n){const i=r;r=a=>n({className:a,parseClassName:i})}return r},BC=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let a=0;a<n.length;a++){const l=n[a],o=l[0]==="[",s=t.has(l);o||s?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(l)):i.push(l)}return i.length>0&&(i.sort(),r.push(...i)),r}},NC=e=>({cache:SC(e.cacheSize),parseClassName:kC(e),sortModifiers:BC(e),postfixLookupClassGroupIds:AC(e),...gC(e)}),AC=e=>{const t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let r=0;r<n.length;r++)t[n[r]]=!0;return t},FC=/\s+/,TC=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:l}=t,o=[],s=e.trim().split(FC);let d="";for(let c=s.length-1;c>=0;c-=1){const f=s[c],{isExternal:m,modifiers:h,hasImportantModifier:p,baseClassName:g,maybePostfixModifierPosition:y}=n(f);if(m){d=f+(d.length>0?" "+d:d);continue}let $=!!y,x;if($){const B=g.substring(0,y);x=r(B);const E=x&&l[x]?r(g):void 0;E&&E!==x&&(x=E,$=!1)}else x=r(g);if(!x){if(!$){d=f+(d.length>0?" "+d:d);continue}if(x=r(g),!x){d=f+(d.length>0?" "+d:d);continue}$=!1}const v=h.length===0?"":h.length===1?h[0]:a(h).join(":"),C=p?v+Bu:v,w=C+x;if(o.indexOf(w)>-1)continue;o.push(w);const S=i(x,$);for(let B=0;B<S.length;++B){const E=S[B];o.push(C+E)}d=f+(d.length>0?" "+d:d)}return d},IC=(...e)=>{let t=0,n,r,i="";for(;t<e.length;)(n=e[t++])&&(r=B2(n))&&(i&&(i+=" "),i+=r);return i},B2=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=B2(e[r]))&&(n&&(n+=" "),n+=t);return n},N2=(e,...t)=>{let n,r,i,a;const l=s=>{const d=t.reduce((c,f)=>f(c),e());return n=NC(d),r=n.cache.get,i=n.cache.set,a=o,o(s)},o=s=>{const d=r(s);if(d)return d;const c=TC(s,n);return i(s,c),c};return a=l,(...s)=>a(IC(...s))},MC=[],Fe=e=>{const t=n=>n[e]||MC;return t.isThemeGetter=!0,t},A2=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,F2=/^\((?:(\w[\w-]*):)?(.+)\)$/i,KC=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,LC=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,OC=/\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$/,zC=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,VC=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,_C=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,an=e=>KC.test(e),de=e=>!!e&&!Number.isNaN(Number(e)),St=e=>!!e&&Number.isInteger(Number(e)),Nu=e=>e.endsWith("%")&&de(e.slice(0,-1)),Vt=e=>LC.test(e),T2=()=>!0,RC=e=>OC.test(e)&&!zC.test(e),Au=()=>!1,jC=e=>VC.test(e),HC=e=>_C.test(e),UC=e=>!te(e)&&!ne(e),WC=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),GC=e=>ln(e,z2,Au),te=e=>A2.test(e),Bn=e=>ln(e,V2,RC),I2=e=>ln(e,tD,de),ZC=e=>ln(e,R2,T2),YC=e=>ln(e,_2,Au),M2=e=>ln(e,L2,Au),qC=e=>ln(e,O2,HC),Oa=e=>ln(e,j2,jC),ne=e=>F2.test(e),ei=e=>Nn(e,V2),XC=e=>Nn(e,_2),K2=e=>Nn(e,L2),JC=e=>Nn(e,z2),QC=e=>Nn(e,O2),za=e=>Nn(e,j2,!0),eD=e=>Nn(e,R2,!0),ln=(e,t,n)=>{const r=A2.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Nn=(e,t,n=!1)=>{const r=F2.exec(e);return r?r[1]?t(r[1]):n:!1},L2=e=>e==="position"||e==="percentage",O2=e=>e==="image"||e==="url",z2=e=>e==="length"||e==="size"||e==="bg-size",V2=e=>e==="length",tD=e=>e==="number",_2=e=>e==="family-name",R2=e=>e==="number"||e==="weight",j2=e=>e==="shadow",H2=()=>{const e=Fe("color"),t=Fe("font"),n=Fe("text"),r=Fe("font-weight"),i=Fe("tracking"),a=Fe("leading"),l=Fe("breakpoint"),o=Fe("container"),s=Fe("spacing"),d=Fe("radius"),c=Fe("shadow"),f=Fe("inset-shadow"),m=Fe("text-shadow"),h=Fe("drop-shadow"),p=Fe("blur"),g=Fe("perspective"),y=Fe("aspect"),$=Fe("ease"),x=Fe("animate"),v=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],w=()=>[...C(),ne,te],S=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto","contain","none"],E=()=>[ne,te,s],k=()=>[an,"full","auto",...E()],K=()=>[St,"none","subgrid",ne,te],T=()=>["auto",{span:["full",St,ne,te]},St,ne,te],I=()=>[St,"auto",ne,te],R=()=>["auto","min","max","fr",ne,te],D=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],M=()=>["start","end","center","stretch","center-safe","end-safe"],G=()=>["auto",...E()],O=()=>[an,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...E()],Y=()=>[an,"screen","full","dvw","lvw","svw","min","max","fit",...E()],P=()=>[an,"screen","full","lh","dvh","lvh","svh","min","max","fit",...E()],N=()=>[e,ne,te],_=()=>[...C(),K2,M2,{position:[ne,te]}],Q=()=>["no-repeat",{repeat:["","x","y","space","round"]}],X=()=>["auto","cover","contain",JC,GC,{size:[ne,te]}],A=()=>[Nu,ei,Bn],F=()=>["","none","full",d,ne,te],z=()=>["",de,ei,Bn],L=()=>["solid","dashed","dotted","double"],J=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],le=()=>[de,Nu,K2,M2],Ke=()=>["","none",p,ne,te],V=()=>["none",de,ne,te],j=()=>["none",de,ne,te],me=()=>[de,ne,te],he=()=>[an,"full",...E()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Vt],breakpoint:[Vt],color:[T2],container:[Vt],"drop-shadow":[Vt],ease:["in","out","in-out"],font:[UC],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Vt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Vt],shadow:[Vt],spacing:["px",de],text:[Vt],"text-shadow":[Vt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",an,te,ne,y]}],container:["container"],"container-type":[{"@container":["","normal","size",ne,te]}],"container-named":[WC],columns:[{columns:[de,te,ne,o]}],"break-after":[{"break-after":v()}],"break-before":[{"break-before":v()}],"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:w()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:k()}],"inset-x":[{"inset-x":k()}],"inset-y":[{"inset-y":k()}],start:[{"inset-s":k(),start:k()}],end:[{"inset-e":k(),end:k()}],"inset-bs":[{"inset-bs":k()}],"inset-be":[{"inset-be":k()}],top:[{top:k()}],right:[{right:k()}],bottom:[{bottom:k()}],left:[{left:k()}],visibility:["visible","invisible","collapse"],z:[{z:[St,"auto",ne,te]}],basis:[{basis:[an,"full","auto",o,...E()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[de,an,"auto","initial","none",te]}],grow:[{grow:["",de,ne,te]}],shrink:[{shrink:["",de,ne,te]}],order:[{order:[St,"first","last","none",ne,te]}],"grid-cols":[{"grid-cols":K()}],"col-start-end":[{col:T()}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":K()}],"row-start-end":[{row:T()}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":R()}],"auto-rows":[{"auto-rows":R()}],gap:[{gap:E()}],"gap-x":[{"gap-x":E()}],"gap-y":[{"gap-y":E()}],"justify-content":[{justify:[...D(),"normal"]}],"justify-items":[{"justify-items":[...M(),"normal"]}],"justify-self":[{"justify-self":["auto",...M()]}],"align-content":[{content:["normal",...D()]}],"align-items":[{items:[...M(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...M(),{baseline:["","last"]}]}],"place-content":[{"place-content":D()}],"place-items":[{"place-items":[...M(),"baseline"]}],"place-self":[{"place-self":["auto",...M()]}],p:[{p:E()}],px:[{px:E()}],py:[{py:E()}],ps:[{ps:E()}],pe:[{pe:E()}],pbs:[{pbs:E()}],pbe:[{pbe:E()}],pt:[{pt:E()}],pr:[{pr:E()}],pb:[{pb:E()}],pl:[{pl:E()}],m:[{m:G()}],mx:[{mx:G()}],my:[{my:G()}],ms:[{ms:G()}],me:[{me:G()}],mbs:[{mbs:G()}],mbe:[{mbe:G()}],mt:[{mt:G()}],mr:[{mr:G()}],mb:[{mb:G()}],ml:[{ml:G()}],"space-x":[{"space-x":E()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":E()}],"space-y-reverse":["space-y-reverse"],size:[{size:O()}],"inline-size":[{inline:["auto",...Y()]}],"min-inline-size":[{"min-inline":["auto",...Y()]}],"max-inline-size":[{"max-inline":["none",...Y()]}],"block-size":[{block:["auto",...P()]}],"min-block-size":[{"min-block":["auto",...P()]}],"max-block-size":[{"max-block":["none",...P()]}],w:[{w:[o,"screen",...O()]}],"min-w":[{"min-w":[o,"screen","none",...O()]}],"max-w":[{"max-w":[o,"screen","none","prose",{screen:[l]},...O()]}],h:[{h:["screen","lh",...O()]}],"min-h":[{"min-h":["screen","lh","none",...O()]}],"max-h":[{"max-h":["screen","lh",...O()]}],"font-size":[{text:["base",n,ei,Bn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,eD,ZC]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Nu,te]}],"font-family":[{font:[XC,YC,t]}],"font-features":[{"font-features":[te]}],"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:[i,ne,te]}],"line-clamp":[{"line-clamp":[de,"none",ne,I2]}],leading:[{leading:[a,...E()]}],"list-image":[{"list-image":["none",ne,te]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ne,te]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:N()}],"text-color":[{text:N()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...L(),"wavy"]}],"text-decoration-thickness":[{decoration:[de,"from-font","auto",ne,Bn]}],"text-decoration-color":[{decoration:N()}],"underline-offset":[{"underline-offset":[de,"auto",ne,te]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"tab-size":[{tab:[St,ne,te]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ne,te]}],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",ne,te]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:_()}],"bg-repeat":[{bg:Q()}],"bg-size":[{bg:X()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},St,ne,te],radial:["",ne,te],conic:[St,ne,te]},QC,qC]}],"bg-color":[{bg:N()}],"gradient-from-pos":[{from:A()}],"gradient-via-pos":[{via:A()}],"gradient-to-pos":[{to:A()}],"gradient-from":[{from:N()}],"gradient-via":[{via:N()}],"gradient-to":[{to:N()}],rounded:[{rounded:F()}],"rounded-s":[{"rounded-s":F()}],"rounded-e":[{"rounded-e":F()}],"rounded-t":[{"rounded-t":F()}],"rounded-r":[{"rounded-r":F()}],"rounded-b":[{"rounded-b":F()}],"rounded-l":[{"rounded-l":F()}],"rounded-ss":[{"rounded-ss":F()}],"rounded-se":[{"rounded-se":F()}],"rounded-ee":[{"rounded-ee":F()}],"rounded-es":[{"rounded-es":F()}],"rounded-tl":[{"rounded-tl":F()}],"rounded-tr":[{"rounded-tr":F()}],"rounded-br":[{"rounded-br":F()}],"rounded-bl":[{"rounded-bl":F()}],"border-w":[{border:z()}],"border-w-x":[{"border-x":z()}],"border-w-y":[{"border-y":z()}],"border-w-s":[{"border-s":z()}],"border-w-e":[{"border-e":z()}],"border-w-bs":[{"border-bs":z()}],"border-w-be":[{"border-be":z()}],"border-w-t":[{"border-t":z()}],"border-w-r":[{"border-r":z()}],"border-w-b":[{"border-b":z()}],"border-w-l":[{"border-l":z()}],"divide-x":[{"divide-x":z()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":z()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...L(),"hidden","none"]}],"divide-style":[{divide:[...L(),"hidden","none"]}],"border-color":[{border:N()}],"border-color-x":[{"border-x":N()}],"border-color-y":[{"border-y":N()}],"border-color-s":[{"border-s":N()}],"border-color-e":[{"border-e":N()}],"border-color-bs":[{"border-bs":N()}],"border-color-be":[{"border-be":N()}],"border-color-t":[{"border-t":N()}],"border-color-r":[{"border-r":N()}],"border-color-b":[{"border-b":N()}],"border-color-l":[{"border-l":N()}],"divide-color":[{divide:N()}],"outline-style":[{outline:[...L(),"none","hidden"]}],"outline-offset":[{"outline-offset":[de,ne,te]}],"outline-w":[{outline:["",de,ei,Bn]}],"outline-color":[{outline:N()}],shadow:[{shadow:["","none",c,za,Oa]}],"shadow-color":[{shadow:N()}],"inset-shadow":[{"inset-shadow":["none",f,za,Oa]}],"inset-shadow-color":[{"inset-shadow":N()}],"ring-w":[{ring:z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:N()}],"ring-offset-w":[{"ring-offset":[de,Bn]}],"ring-offset-color":[{"ring-offset":N()}],"inset-ring-w":[{"inset-ring":z()}],"inset-ring-color":[{"inset-ring":N()}],"text-shadow":[{"text-shadow":["none",m,za,Oa]}],"text-shadow-color":[{"text-shadow":N()}],opacity:[{opacity:[de,ne,te]}],"mix-blend":[{"mix-blend":[...J(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":J()}],"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":[de]}],"mask-image-linear-from-pos":[{"mask-linear-from":le()}],"mask-image-linear-to-pos":[{"mask-linear-to":le()}],"mask-image-linear-from-color":[{"mask-linear-from":N()}],"mask-image-linear-to-color":[{"mask-linear-to":N()}],"mask-image-t-from-pos":[{"mask-t-from":le()}],"mask-image-t-to-pos":[{"mask-t-to":le()}],"mask-image-t-from-color":[{"mask-t-from":N()}],"mask-image-t-to-color":[{"mask-t-to":N()}],"mask-image-r-from-pos":[{"mask-r-from":le()}],"mask-image-r-to-pos":[{"mask-r-to":le()}],"mask-image-r-from-color":[{"mask-r-from":N()}],"mask-image-r-to-color":[{"mask-r-to":N()}],"mask-image-b-from-pos":[{"mask-b-from":le()}],"mask-image-b-to-pos":[{"mask-b-to":le()}],"mask-image-b-from-color":[{"mask-b-from":N()}],"mask-image-b-to-color":[{"mask-b-to":N()}],"mask-image-l-from-pos":[{"mask-l-from":le()}],"mask-image-l-to-pos":[{"mask-l-to":le()}],"mask-image-l-from-color":[{"mask-l-from":N()}],"mask-image-l-to-color":[{"mask-l-to":N()}],"mask-image-x-from-pos":[{"mask-x-from":le()}],"mask-image-x-to-pos":[{"mask-x-to":le()}],"mask-image-x-from-color":[{"mask-x-from":N()}],"mask-image-x-to-color":[{"mask-x-to":N()}],"mask-image-y-from-pos":[{"mask-y-from":le()}],"mask-image-y-to-pos":[{"mask-y-to":le()}],"mask-image-y-from-color":[{"mask-y-from":N()}],"mask-image-y-to-color":[{"mask-y-to":N()}],"mask-image-radial":[{"mask-radial":[ne,te]}],"mask-image-radial-from-pos":[{"mask-radial-from":le()}],"mask-image-radial-to-pos":[{"mask-radial-to":le()}],"mask-image-radial-from-color":[{"mask-radial-from":N()}],"mask-image-radial-to-color":[{"mask-radial-to":N()}],"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":C()}],"mask-image-conic-pos":[{"mask-conic":[de]}],"mask-image-conic-from-pos":[{"mask-conic-from":le()}],"mask-image-conic-to-pos":[{"mask-conic-to":le()}],"mask-image-conic-from-color":[{"mask-conic-from":N()}],"mask-image-conic-to-color":[{"mask-conic-to":N()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:_()}],"mask-repeat":[{mask:Q()}],"mask-size":[{mask:X()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ne,te]}],filter:[{filter:["","none",ne,te]}],blur:[{blur:Ke()}],brightness:[{brightness:[de,ne,te]}],contrast:[{contrast:[de,ne,te]}],"drop-shadow":[{"drop-shadow":["","none",h,za,Oa]}],"drop-shadow-color":[{"drop-shadow":N()}],grayscale:[{grayscale:["",de,ne,te]}],"hue-rotate":[{"hue-rotate":[de,ne,te]}],invert:[{invert:["",de,ne,te]}],saturate:[{saturate:[de,ne,te]}],sepia:[{sepia:["",de,ne,te]}],"backdrop-filter":[{"backdrop-filter":["","none",ne,te]}],"backdrop-blur":[{"backdrop-blur":Ke()}],"backdrop-brightness":[{"backdrop-brightness":[de,ne,te]}],"backdrop-contrast":[{"backdrop-contrast":[de,ne,te]}],"backdrop-grayscale":[{"backdrop-grayscale":["",de,ne,te]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[de,ne,te]}],"backdrop-invert":[{"backdrop-invert":["",de,ne,te]}],"backdrop-opacity":[{"backdrop-opacity":[de,ne,te]}],"backdrop-saturate":[{"backdrop-saturate":[de,ne,te]}],"backdrop-sepia":[{"backdrop-sepia":["",de,ne,te]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":E()}],"border-spacing-x":[{"border-spacing-x":E()}],"border-spacing-y":[{"border-spacing-y":E()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ne,te]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[de,"initial",ne,te]}],ease:[{ease:["linear","initial",$,ne,te]}],delay:[{delay:[de,ne,te]}],animate:[{animate:["none",x,ne,te]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,ne,te]}],"perspective-origin":[{"perspective-origin":w()}],rotate:[{rotate:V()}],"rotate-x":[{"rotate-x":V()}],"rotate-y":[{"rotate-y":V()}],"rotate-z":[{"rotate-z":V()}],scale:[{scale:j()}],"scale-x":[{"scale-x":j()}],"scale-y":[{"scale-y":j()}],"scale-z":[{"scale-z":j()}],"scale-3d":["scale-3d"],skew:[{skew:me()}],"skew-x":[{"skew-x":me()}],"skew-y":[{"skew-y":me()}],transform:[{transform:[ne,te,"","none","gpu","cpu"]}],"transform-origin":[{origin:w()}],"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"],zoom:[{zoom:[St,ne,te]}],accent:[{accent:N()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:N()}],"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",ne,te]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":N()}],"scrollbar-track-color":[{"scrollbar-track":N()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mbs":[{"scroll-mbs":E()}],"scroll-mbe":[{"scroll-mbe":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pbs":[{"scroll-pbs":E()}],"scroll-pbe":[{"scroll-pbe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"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",ne,te]}],fill:[{fill:["none",...N()]}],"stroke-w":[{stroke:[de,ei,Bn,I2]}],stroke:[{stroke:["none",...N()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","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-bs","border-w-be","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-bs","border-color-be","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-mbs","scroll-mbe","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-pbs","scroll-pbe","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"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},nD=(e,{cacheSize:t,prefix:n,experimentalParseClassName:r,extend:i={},override:a={}})=>(lr(e,"cacheSize",t),lr(e,"prefix",n),lr(e,"experimentalParseClassName",r),Va(e.theme,a.theme),Va(e.classGroups,a.classGroups),Va(e.conflictingClassGroups,a.conflictingClassGroups),Va(e.conflictingClassGroupModifiers,a.conflictingClassGroupModifiers),lr(e,"postfixLookupClassGroups",a.postfixLookupClassGroups),lr(e,"orderSensitiveModifiers",a.orderSensitiveModifiers),_a(e.theme,i.theme),_a(e.classGroups,i.classGroups),_a(e.conflictingClassGroups,i.conflictingClassGroups),_a(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),Fu(e,i,"postfixLookupClassGroups"),Fu(e,i,"orderSensitiveModifiers"),e),lr=(e,t,n)=>{n!==void 0&&(e[t]=n)},Va=(e,t)=>{if(t)for(const n in t)lr(e,n,t[n])},_a=(e,t)=>{if(t)for(const n in t)Fu(e,t,n)},Fu=(e,t,n)=>{const r=t[n];r!==void 0&&(e[n]=e[n]?e[n].concat(r):r)},rD=((e,...t)=>typeof e=="function"?N2(H2,e,...t):N2(()=>nD(H2(),e),...t))({extend:{theme:{text:["h1","h2","h3","h4","h5","h6","body-lg","body-sm","caption-lg","caption-sm"]}}});function H(...e){return rD(ee(e))}const U2=u.createContext({size:"md"}),iD=()=>u.useContext(U2),W2=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,G2=ee,Z=(e,t)=>n=>{var r;if(t?.variants==null)return G2(e,n?.class,n?.className);const{variants:i,defaultVariants:a}=t,l=Object.keys(i).map(d=>{const c=n?.[d],f=a?.[d];if(c===null)return null;const m=W2(c)||W2(f);return i[d][m]}),o=n&&Object.entries(n).reduce((d,c)=>{let[f,m]=c;return m===void 0||(d[f]=m),d},{}),s=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((d,c)=>{let{class:f,className:m,...h}=c;return Object.entries(h).every(p=>{let[g,y]=p;return Array.isArray(y)?y.includes({...a,...o}[g]):{...a,...o}[g]===y})?[...d,f,m]:d},[]);return G2(e,l,s,n?.class,n?.className)},aD={xs:18,sm:20,md:20,lg:24,xl:28,"2xl":28},lD=Z("inline-flex shrink-0 items-center justify-center [&_svg]:size-full",{variants:{size:{xs:"size-[18px]",sm:"size-[20px]",md:"size-[20px]",lg:"size-[24px]",xl:"size-[28px]","2xl":"size-[28px]"}},defaultVariants:{size:"md"}}),oD=Z(["relative inline-flex items-center justify-center font-bold","transition-[color,background-color,border-color,box-shadow,filter,transform] duration-150","focus-visible:outline-none","[-webkit-tap-highlight-color:transparent]","disabled:cursor-not-allowed data-[disabled]:cursor-not-allowed data-[pending]:cursor-wait","data-[pressed]:brightness-[0.96]"],{variants:{size:{xs:"py-1 px-2 gap-1 rounded-md text-caption-sm",sm:"h-[36px] px-4 gap-1 rounded-lg text-caption-sm",md:"h-[44px] px-4 gap-2 rounded-lg text-sm",lg:"h-[52px] px-5 gap-2 rounded-[10px] text-body-sm",xl:"h-[60px] px-6 gap-2 rounded-[10px] text-body-lg","2xl":"h-[68px] px-6 gap-2 rounded-[10px] text-body-lg"},tone:{primary:"",destructive:""},iconOnly:{true:"!p-0",false:""},variant:{solid:["text-white","disabled:bg-light-100 disabled:text-light-400","data-[pending]:!bg-light-100 data-[pending]:!text-light-400"],outline:["bg-white border","disabled:bg-white disabled:text-light-400 disabled:border-light-200","data-[pending]:!bg-white data-[pending]:!text-light-400 data-[pending]:!border-light-200"],ghost:["bg-transparent","disabled:text-light-400","data-[pending]:!bg-transparent data-[pending]:!text-light-400"],"outline-primary":["bg-white border border-primary-500 text-primary-500","hover:bg-primary-100 hover:border-primary-300 hover:text-primary-800","focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white","disabled:bg-white disabled:text-light-400 disabled:border-light-200","data-[pending]:!bg-white data-[pending]:!text-light-400 data-[pending]:!border-light-200"],"ghost-primary":["bg-transparent text-primary-500","hover:bg-primary-50 hover:text-primary-800","focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white","disabled:text-light-400","data-[pending]:!bg-transparent data-[pending]:!text-light-400"],plain:["bg-transparent h-auto rounded-none p-0 gap-1","disabled:text-light-400 data-[pending]:!text-light-400"],"plain-black":["bg-transparent h-auto rounded-none p-0 gap-1","disabled:text-light-400 data-[pending]:!text-light-400"]}},compoundVariants:[{tone:"primary",variant:"solid",class:["bg-primary-500","hover:bg-primary-800","focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"].join(" ")},{tone:"primary",variant:"outline",class:["border-light-200 text-light-900","hover:bg-light-50","focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"].join(" ")},{tone:"primary",variant:"ghost",class:["text-light-800","hover:bg-light-50 hover:text-light-900","focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"].join(" ")},{tone:"primary",variant:"plain",class:["text-primary-500","hover:text-primary-800 hover:bg-transparent","focus-visible:rounded focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"].join(" ")},{tone:"primary",variant:"plain-black",class:["text-light-800","hover:text-light-900 hover:bg-transparent","focus-visible:rounded focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"].join(" ")},{tone:"destructive",variant:"solid",class:["bg-error-500 text-white","hover:bg-error-800","focus-visible:ring-2 focus-visible:ring-error-300 focus-visible:ring-offset-2 focus-visible:ring-offset-white","disabled:bg-light-100 data-[pending]:!bg-light-100"].join(" ")},{tone:"destructive",variant:"outline",class:["border-error-500 text-error-500","hover:border-error-300 hover:bg-error-100 hover:text-error-800","focus-visible:ring-2 focus-visible:ring-error-300 focus-visible:ring-offset-2 focus-visible:ring-offset-white"].join(" ")},{tone:"destructive",variant:"ghost",class:["text-error-500","hover:bg-error-50 hover:text-error-800","focus-visible:ring-2 focus-visible:ring-error-300 focus-visible:ring-offset-2 focus-visible:ring-offset-white","disabled:bg-white disabled:text-light-400","data-[pending]:!bg-white data-[pending]:!text-light-400"].join(" ")},{tone:"destructive",variant:"plain",class:["text-error-500","hover:text-error-800 hover:bg-transparent","focus-visible:rounded focus-visible:ring-2 focus-visible:ring-error-300 focus-visible:ring-offset-2 focus-visible:ring-offset-white"].join(" ")},{size:"xs",iconOnly:!0,class:"!w-[26px] !h-[26px]"},{size:"sm",iconOnly:!0,class:"!w-[36px] !h-[36px]"},{size:"md",iconOnly:!0,class:"!w-[44px] !h-[44px]"},{size:"lg",iconOnly:!0,class:"!w-[52px] !h-[52px]"},{size:"xl",iconOnly:!0,class:"!w-[60px] !h-[60px]"},{size:"2xl",iconOnly:!0,class:"!w-[68px] !h-[68px]"}],defaultVariants:{size:"md",tone:"primary",variant:"solid",iconOnly:!1}}),uD={xs:12,sm:14,md:16,lg:18,xl:20,"2xl":22},Z2=u.forwardRef(({children:e,className:t,tone:n,variant:r,size:i="md",iconOnly:a,isDisabled:l,disabled:o,isPending:s,title:d,value:c,...f},m)=>{const h=u.useCallback(g=>{g&&(d===void 0?g.removeAttribute("title"):g.title=d,c===void 0?g.removeAttribute("value"):g.value=String(c)),typeof m=="function"?m(g):m&&(m.current=g)},[m,d,c]),p=f;return u.createElement(U2.Provider,{value:{size:i}},u.createElement(Xt,{...p,ref:h,isDisabled:l||o,isPending:s,className:al(t,g=>H(oD({tone:n,variant:r,size:i,iconOnly:a}),g))},al(e,(g,{isPending:y})=>u.createElement(u.Fragment,null,y?u.createElement("span",{className:"flex shrink-0 items-center","aria-hidden":!0},u.createElement(As,{size:uD[i],className:"animate-spin"})):null,y&&a?null:g))))});Z2.displayName="Button";const sD=({children:e})=>{const{size:t}=iD();return u.createElement("span",{className:lD({size:t})},e)},dD=({children:e})=>u.createElement("span",{className:"whitespace-nowrap"},e),Ze=Z2;Ze.Icon=sD,Ze.Text=dD;const Y2=Z(["inline-flex items-center justify-center","border transition-colors duration-150","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"],{variants:{size:{sm:"h-4 w-4 rounded-[4px]",md:"h-5 w-5 rounded-[6px]",lg:"h-5 w-5 rounded-[6px]"},checked:{true:"",false:""},disabled:{true:"cursor-not-allowed",false:"cursor-pointer"}},compoundVariants:[{checked:!1,disabled:!1,className:"bg-white border-light-200 hover:border-light-400"},{checked:!0,disabled:!1,className:"bg-primary-500 border-primary-500 text-white hover:bg-primary-800 hover:border-primary-800"},{disabled:!0,className:"bg-light-100 border-light-200 text-white"}],defaultVariants:{size:"md",checked:!1,disabled:!1}}),cD={sm:{width:12,height:9},md:{width:14,height:10},lg:{width:14,height:10}},q2=b.forwardRef(({id:e,checked:t,indeterminate:n=!1,disabled:r,size:i="md",onCheckedChange:a,className:l},o)=>{const s=()=>{r||a?.(!t)},d=cD[i],c=r?"text-white/80":"text-current";return b.createElement("button",{id:e,ref:o,type:"button",role:"checkbox","aria-checked":n?"mixed":t,disabled:r,onClick:s,className:ee(Y2({size:i,checked:t,disabled:r}),l)},t&&!n&&b.createElement("svg",{width:d.width,height:d.height,viewBox:"0 0 14 10",fill:"none",className:c},b.createElement("path",{d:"M1 5L5 9L13 1",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),n&&b.createElement("span",{className:ee(c,"bg-current rounded-sm",i==="sm"&&"h-0.5 w-3",(i==="md"||i==="lg")&&"h-0.5 w-4")}))});q2.displayName="Checkbox";const X2=b.createContext(null),fD=({value:e,defaultValue:t,onValueChange:n,children:r,className:i})=>{const[a,l]=b.useState(t),o=e??a,s=d=>{l(d),n?.(d)};return b.createElement(X2.Provider,{value:{value:o,onValueChange:s}},b.createElement("div",{role:"radiogroup",className:i},r))},mD=()=>{const e=b.useContext(X2);if(!e)throw new Error("RadioGroupItem must be used within RadioGroup");return e},hD=Z(["relative inline-flex items-center justify-center","border rounded-full transition-colors duration-150","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"],{variants:{size:{sm:"h-4 w-4",md:"h-5 w-5",lg:"h-5 w-5"},checked:{true:"",false:""},disabled:{true:"cursor-not-allowed",false:"cursor-pointer"}},compoundVariants:[{checked:!1,disabled:!1,className:"border-light-200 bg-white hover:border-light-400"},{checked:!0,disabled:!1,className:"border-primary-500 bg-primary-500 hover:bg-primary-800 hover:border-primary-800"},{disabled:!0,className:"border-light-200 bg-light-100"}],defaultVariants:{size:"md",checked:!1,disabled:!1}}),pD=Z(["rounded-full bg-white transition-all"],{variants:{size:{sm:"h-1.5 w-1.5",md:"h-2 w-2",lg:"h-2 w-2"},checked:{true:"scale-100",false:"scale-0"}},defaultVariants:{size:"md",checked:!1}}),J2=b.forwardRef(({id:e,value:t,disabled:n,size:r="md",className:i},a)=>{const{value:l,onValueChange:o}=mD(),s=l===t;return b.createElement("button",{ref:a,id:e,type:"button",role:"radio","aria-checked":s,disabled:n,onClick:()=>{n||o?.(t)},className:ee(hD({size:r,checked:s,disabled:n}),i)},b.createElement("span",{className:pD({size:r,checked:s})}))});J2.displayName="RadioGroupItem";const bD=Z(["inline-flex items-center shrink-0 rounded-full p-[2px]","transition-colors duration-200","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-offset-white"],{variants:{size:{sm:"h-5 w-9",md:"h-6 w-11",lg:"h-6 w-11"},checked:{true:"justify-end",false:"justify-start"},disabled:{true:"cursor-not-allowed",false:"cursor-pointer"},variant:{default:"",success:""}},compoundVariants:[{checked:!1,disabled:!1,className:"bg-light-200"},{checked:!0,disabled:!1,variant:"default",className:"bg-primary-500 hover:bg-primary-800"},{checked:!0,disabled:!1,variant:"success",className:"bg-success-500 hover:bg-success-800"},{disabled:!0,className:"bg-light-100"},{variant:"default",className:"focus-visible:ring-primary-400"},{variant:"success",className:"focus-visible:ring-success-500"}],defaultVariants:{size:"md",checked:!1,disabled:!1,variant:"default"}}),gD=Z("rounded-full shrink-0 shadow-[0_1px_3px_0_rgba(16,24,40,0.10),0_1px_2px_0_rgba(16,24,40,0.06)]",{variants:{size:{sm:"h-4 w-4",md:"h-5 w-5",lg:"h-5 w-5"},disabled:{true:"bg-light-50",false:"bg-white"}},defaultVariants:{size:"md",disabled:!1}}),Q2=b.forwardRef(({checked:e=!1,size:t="md",variant:n="default",disabled:r,onCheckedChange:i,className:a},l)=>b.createElement("button",{ref:l,type:"button",role:"switch","aria-checked":e,disabled:r,onClick:()=>{r||i?.(!e)},className:ee(bD({size:t,checked:e,disabled:r,variant:n}),a)},b.createElement("span",{className:gD({size:t,disabled:r})})));Q2.displayName="Toggle";const yD=1e3,$D=900,vD=Z(["flex flex-col overflow-hidden","rounded-lg border border-light-200 bg-white shadow-lg","outline-none"]);function xD(e){b.useEffect(()=>{let t=0;const n=r=>{!e.current||t||r.target instanceof Node&&e.current.contains(r.target)||(t=requestAnimationFrame(()=>{t=0,window.dispatchEvent(new Event("resize"))}))};return document.addEventListener("scroll",n,!0),()=>{document.removeEventListener("scroll",n,!0),t&&cancelAnimationFrame(t)}},[e])}function CD(e){const t=()=>{e.hasAttribute("role")&&e.removeAttribute("role")};t();const n=new MutationObserver(t);return n.observe(e,{attributes:!0,attributeFilter:["role"]}),()=>n.disconnect()}const Pt=b.forwardRef(({className:e,style:t,matchTriggerWidth:n=!1,children:r,...i},a)=>{const l=b.useRef(null),o=b.useRef(null),s=b.useCallback(d=>{l.current=d,typeof a=="function"?a(d):a&&(a.current=d),o.current?.(),o.current=d?CD(d):null},[a]);return xD(l),b.createElement(i3,{ref:s,...i,style:{zIndex:yD,...n?{width:"var(--trigger-width)"}:void 0,...t},className:H(vD(),e)},r)});Pt.displayName="Popover";const DD=Z(["relative rounded-lg text-caption-sm font-semibold text-white","bg-primary-900","shadow-lg","pointer-events-none","select-none"],{variants:{side:{top:"",bottom:"",left:"",right:""},hasSupportingText:{true:"p-3",false:"px-3 py-2"}},defaultVariants:{side:"top",hasSupportingText:!1}}),ED="mt-1 font-medium text-light-100",wD="overflow-visible border-0 bg-transparent shadow-none pointer-events-none",SD="block text-primary-900",PD=12,kD={top:"M0 0H16L8 6Z",bottom:"M0 6H16L8 0Z",left:"M0 0V16L6 8Z",right:"M6 0V16L0 8Z"};function BD({placement:e}){const t=e==="left"||e==="right";return b.createElement("svg",{"aria-hidden":"true",width:t?6:16,height:t?16:6,viewBox:t?"0 0 6 16":"0 0 16 6",className:SD,shapeRendering:"geometricPrecision"},b.createElement("path",{d:kD[e],fill:"currentColor"}))}const Ra=({content:e,supportingText:t,side:n="top",open:r,defaultOpen:i=!1,disabled:a=!1,delay:l=100,className:o,children:s})=>{const[d,c]=b.useState(i),f=r??d,m=b.useRef(null),h=b.useRef(null),p=()=>{a||(h.current&&clearTimeout(h.current),l>0?h.current=window.setTimeout(()=>c(!0),l):c(!0))},g=()=>{a||(h.current&&(clearTimeout(h.current),h.current=null),c(!0))},y=()=>{h.current&&clearTimeout(h.current),l>0?h.current=window.setTimeout(()=>c(!1),l):c(!1)},$=()=>{h.current&&(clearTimeout(h.current),h.current=null),c(!1)};return b.createElement(b.Fragment,null,b.createElement("span",{ref:m,className:"inline-flex",onMouseEnter:p,onMouseLeave:y,onFocus:g,onBlur:$,tabIndex:0},s),b.createElement(Pt,{isNonModal:!0,triggerRef:m,isOpen:f,onOpenChange:c,placement:n,offset:PD,className:wD},({placement:x})=>b.createElement(b.Fragment,null,b.createElement("div",{role:"tooltip",className:ee(DD({side:n,hasSupportingText:!!t}),o)},e,t&&b.createElement("p",{className:ED},t)),b.createElement(Qx,{className:"react-aria-OverlayArrow data-[placement=bottom]:!bottom-[calc(100%-1px)]"},b.createElement(BD,{placement:x==null||x==="center"?n:x})))))};Ra.displayName="Tooltip";const ND="text-light-800",AD="hover:text-light-900",FD="border-light-200",TD="group-hover:border-light-500",ID={brand:{bg:"bg-primary-50",border:"border-primary-300",hoverBg:"hover:bg-primary-100",hoverBorder:"hover:border-primary-500"},gray:{bg:"bg-white",border:"border-light-200",hoverBg:"hover:bg-light-100",hoverBorder:"hover:border-light-500"},error:{bg:"bg-error-50",border:"border-error-200",hoverBg:"hover:bg-error-100",hoverBorder:"hover:border-error-500"},warning:{bg:"bg-warning-50",border:"border-warning-200",hoverBg:"hover:bg-warning-100",hoverBorder:"hover:border-warning-500"},success:{bg:"bg-success-50",border:"border-success-200",hoverBg:"hover:bg-success-100",hoverBorder:"hover:border-success-500"},"blue-gray":{bg:"bg-blue-gray-50",border:"border-blue-gray-200",hoverBg:"hover:bg-blue-gray-100",hoverBorder:"hover:border-blue-gray-500"},"blue-light":{bg:"bg-blue-light-50",border:"border-blue-light-200",hoverBg:"hover:bg-blue-light-100",hoverBorder:"hover:border-blue-light-500"},indigo:{bg:"bg-indigo-50",border:"border-indigo-200",hoverBg:"hover:bg-indigo-100",hoverBorder:"hover:border-indigo-500"},purple:{bg:"bg-purple-50",border:"border-purple-200",hoverBg:"hover:bg-purple-100",hoverBorder:"hover:border-purple-500"},blue:{bg:"bg-blue-50",border:"border-blue-200",hoverBg:"hover:bg-blue-100",hoverBorder:"hover:border-blue-500"},pink:{bg:"bg-pink-50",border:"border-pink-200",hoverBg:"hover:bg-pink-100",hoverBorder:"hover:border-pink-500"},orange:{bg:"bg-orange-50",border:"border-orange-200",hoverBg:"hover:bg-orange-100",hoverBorder:"hover:border-orange-500"}},MD=Z(["inline-flex items-center gap-1 border","font-medium transition-colors duration-150","select-none"],{variants:{size:{sm:"text-caption-sm py-[3px]",md:"text-caption-lg py-[2px]",lg:"text-caption-lg py-1"},shape:{rounded:"rounded-md",pill:"rounded-full"},hasLeading:{true:"",false:""},hasTrailing:{true:"",false:""},interactive:{true:"group cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white",false:""},disabled:{true:"cursor-not-allowed opacity-60",false:""}},compoundVariants:[{size:"sm",hasLeading:!1,className:"pl-2"},{size:"sm",hasLeading:!0,className:"pl-1"},{size:"sm",hasTrailing:!1,className:"pr-2"},{size:"sm",hasTrailing:!0,className:"pr-1"},{size:"md",hasLeading:!1,className:"pl-[9px]"},{size:"md",hasLeading:!0,className:"pl-1"},{size:"md",hasTrailing:!1,className:"pr-[9px]"},{size:"md",hasTrailing:!0,className:"pr-1"},{size:"lg",hasLeading:!1,className:"pl-2.5"},{size:"lg",hasLeading:!0,className:"pl-1.5"},{size:"lg",hasTrailing:!1,className:"pr-2.5"},{size:"lg",hasTrailing:!0,className:"pr-1.5"}],defaultVariants:{size:"sm",shape:"rounded",hasLeading:!1,hasTrailing:!1,interactive:!1,disabled:!1}}),KD=Z(["shrink-0 rounded border bg-white transition-colors duration-150"],{variants:{size:{sm:"size-[14px]",md:"size-[16px]",lg:"size-[18px]"},checked:{true:"bg-primary-500 border-primary-500",false:""}},defaultVariants:{size:"sm",checked:!1}}),LD="shrink-0 rounded-[3px] bg-light-100 px-1 text-light-800",OD=Z(["shrink-0 inline-flex items-center justify-center rounded-[3px]","hover:bg-black/5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400"],{variants:{size:{sm:"size-[14px]",md:"size-[16px]",lg:"size-[20px]"}},defaultVariants:{size:"sm"}}),e1=/^#([0-9a-f]{6})$/i,t1=e=>e1.test(e.trim()),n1=(e,t)=>{const n=e1.exec(e.trim());if(!n)return;const r=parseInt(n[1],16),i=r>>16&255,a=r>>8&255,l=r&255;return`rgba(${i}, ${a}, ${l}, ${t})`},Tu=({children:e,size:t="sm",shape:n="rounded",icon:r,checked:i,onCheckedChange:a,onClose:l,count:o,disabled:s=!1,className:d,color:c="gray",customColor:f})=>{const m=a!==void 0,h=i!==void 0||!!r,p=!!l||o!==void 0,g=m&&!s,y=ID[c],$=!!(f&&t1(f)),x=$?{borderColor:f,backgroundColor:n1(f,.12)}:void 0,v=()=>{s||a?.(!i)},C=w=>{!m||s||(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),v())};return b.createElement("div",{role:m?"checkbox":void 0,"aria-checked":m?!!i:void 0,"aria-disabled":s||void 0,tabIndex:m&&!s?0:void 0,onClick:m?v:void 0,onKeyDown:C,style:x,className:ee(MD({size:t,shape:n,hasLeading:h,hasTrailing:p,interactive:g,disabled:s}),!$&&y.bg,!$&&y.border,ND,g&&!$&&y.hoverBg,g&&!$&&y.hoverBorder,g&&AD,d)},i!==void 0&&b.createElement("span",{className:ee(KD({checked:i,size:t}),!i&&FD,g&&!i&&TD)},i&&b.createElement("svg",{viewBox:"0 0 14 10",fill:"none",className:"size-full text-white"},b.createElement("path",{d:"M1 5L5 9L13 1",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),r,b.createElement("span",{className:"whitespace-nowrap"},e),o!==void 0&&b.createElement("span",{className:LD},o),l&&b.createElement("button",{type:"button","aria-label":"Remove",disabled:s,onClick:w=>{w.stopPropagation(),l()},className:OD({size:t})},b.createElement("svg",{viewBox:"0 0 10 10",fill:"none",className:t==="sm"?"size-2":t==="md"?"size-2.5":"size-3"},b.createElement("path",{d:"M1 1L9 9M9 1L1 9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}))))};Tu.displayName="Tag";const zD={brand:{solidBg:"bg-primary-50",solidBorder:"border-primary-300",solidText:"text-primary-500",outlineBorder:"border-primary-500",outlineText:"text-primary-700",hoverSolidBg:"hover:bg-primary-100",hoverSolidBorder:"hover:border-primary-500",hoverSolidText:"hover:text-primary-800",hoverOutlineBg:"hover:bg-primary-50",hoverOutlineBorder:"hover:border-primary-300",hoverOutlineText:"hover:text-primary-800",checkboxHoverBorder:"group-hover:border-primary-500"},gray:{solidBg:"bg-light-50",solidBorder:"border-light-200",solidText:"text-light-700",outlineBorder:"border-light-600",outlineText:"text-light-700",hoverSolidBg:"hover:bg-light-100",hoverSolidBorder:"hover:border-light-500",hoverSolidText:"hover:text-light-900",hoverOutlineBg:"hover:bg-light-50",hoverOutlineBorder:"hover:border-light-300",hoverOutlineText:"hover:text-light-900",checkboxHoverBorder:"group-hover:border-light-500"},error:{solidBg:"bg-error-50",solidBorder:"border-error-200",solidText:"text-error-700",outlineBorder:"border-error-600",outlineText:"text-error-700",hoverSolidBg:"hover:bg-error-100",hoverSolidBorder:"hover:border-error-500",hoverSolidText:"hover:text-error-800",hoverOutlineBg:"hover:bg-error-50",hoverOutlineBorder:"hover:border-error-300",hoverOutlineText:"hover:text-error-800",checkboxHoverBorder:"group-hover:border-error-500"},warning:{solidBg:"bg-warning-50",solidBorder:"border-warning-200",solidText:"text-warning-700",outlineBorder:"border-warning-600",outlineText:"text-warning-700",hoverSolidBg:"hover:bg-warning-100",hoverSolidBorder:"hover:border-warning-500",hoverSolidText:"hover:text-warning-800",hoverOutlineBg:"hover:bg-warning-50",hoverOutlineBorder:"hover:border-warning-300",hoverOutlineText:"hover:text-warning-800",checkboxHoverBorder:"group-hover:border-warning-500"},success:{solidBg:"bg-success-50",solidBorder:"border-success-200",solidText:"text-success-700",outlineBorder:"border-success-600",outlineText:"text-success-700",hoverSolidBg:"hover:bg-success-100",hoverSolidBorder:"hover:border-success-500",hoverSolidText:"hover:text-success-800",hoverOutlineBg:"hover:bg-success-50",hoverOutlineBorder:"hover:border-success-300",hoverOutlineText:"hover:text-success-800",checkboxHoverBorder:"group-hover:border-success-500"},"blue-gray":{solidBg:"bg-blue-gray-50",solidBorder:"border-blue-gray-200",solidText:"text-blue-gray-700",outlineBorder:"border-blue-gray-600",outlineText:"text-blue-gray-700",hoverSolidBg:"hover:bg-blue-gray-100",hoverSolidBorder:"hover:border-blue-gray-500",hoverSolidText:"hover:text-blue-gray-800",hoverOutlineBg:"hover:bg-blue-gray-50",hoverOutlineBorder:"hover:border-blue-gray-300",hoverOutlineText:"hover:text-blue-gray-800",checkboxHoverBorder:"group-hover:border-blue-gray-500"},"blue-light":{solidBg:"bg-blue-light-50",solidBorder:"border-blue-light-200",solidText:"text-blue-light-700",outlineBorder:"border-blue-light-600",outlineText:"text-blue-light-700",hoverSolidBg:"hover:bg-blue-light-100",hoverSolidBorder:"hover:border-blue-light-500",hoverSolidText:"hover:text-blue-light-800",hoverOutlineBg:"hover:bg-blue-light-50",hoverOutlineBorder:"hover:border-blue-light-300",hoverOutlineText:"hover:text-blue-light-800",checkboxHoverBorder:"group-hover:border-blue-light-500"},indigo:{solidBg:"bg-indigo-50",solidBorder:"border-indigo-200",solidText:"text-indigo-700",outlineBorder:"border-indigo-600",outlineText:"text-indigo-700",hoverSolidBg:"hover:bg-indigo-100",hoverSolidBorder:"hover:border-indigo-500",hoverSolidText:"hover:text-indigo-800",hoverOutlineBg:"hover:bg-indigo-50",hoverOutlineBorder:"hover:border-indigo-300",hoverOutlineText:"hover:text-indigo-800",checkboxHoverBorder:"group-hover:border-indigo-500"},purple:{solidBg:"bg-purple-50",solidBorder:"border-purple-200",solidText:"text-purple-700",outlineBorder:"border-purple-600",outlineText:"text-purple-700",hoverSolidBg:"hover:bg-purple-100",hoverSolidBorder:"hover:border-purple-500",hoverSolidText:"hover:text-purple-800",hoverOutlineBg:"hover:bg-purple-50",hoverOutlineBorder:"hover:border-purple-300",hoverOutlineText:"hover:text-purple-800",checkboxHoverBorder:"group-hover:border-purple-500"},blue:{solidBg:"bg-blue-50",solidBorder:"border-blue-200",solidText:"text-blue-700",outlineBorder:"border-blue-600",outlineText:"text-blue-700",hoverSolidBg:"hover:bg-blue-100",hoverSolidBorder:"hover:border-blue-500",hoverSolidText:"hover:text-blue-800",hoverOutlineBg:"hover:bg-blue-50",hoverOutlineBorder:"hover:border-blue-300",hoverOutlineText:"hover:text-blue-800",checkboxHoverBorder:"group-hover:border-blue-500"},pink:{solidBg:"bg-pink-50",solidBorder:"border-pink-200",solidText:"text-pink-700",outlineBorder:"border-pink-600",outlineText:"text-pink-700",hoverSolidBg:"hover:bg-pink-100",hoverSolidBorder:"hover:border-pink-500",hoverSolidText:"hover:text-pink-800",hoverOutlineBg:"hover:bg-pink-50",hoverOutlineBorder:"hover:border-pink-300",hoverOutlineText:"hover:text-pink-800",checkboxHoverBorder:"group-hover:border-pink-500"},orange:{solidBg:"bg-orange-50",solidBorder:"border-orange-200",solidText:"text-orange-700",outlineBorder:"border-orange-600",outlineText:"text-orange-700",hoverSolidBg:"hover:bg-orange-100",hoverSolidBorder:"hover:border-orange-500",hoverSolidText:"hover:text-orange-800",hoverOutlineBg:"hover:bg-orange-50",hoverOutlineBorder:"hover:border-orange-300",hoverOutlineText:"hover:text-orange-800",checkboxHoverBorder:"group-hover:border-orange-500"}},VD=Z(["inline-flex items-center gap-1 border font-medium","transition-colors duration-150"],{variants:{size:{sm:"text-caption-sm py-0.5",md:"text-caption-lg py-0.5",lg:"text-caption-lg py-1"},shape:{pill:"rounded-full",badge:""},modern:{true:"rounded-md shadow-xs",false:""},hasLeading:{true:"",false:""},hasTrailing:{true:"",false:""},iconOnly:{true:"p-[5px]",false:""},interactive:{true:"group cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white",false:""},disabled:{true:"cursor-not-allowed opacity-60",false:""}},compoundVariants:[{shape:"badge",size:"sm",modern:!1,className:"rounded-md"},{shape:"badge",size:"md",modern:!1,className:"rounded-md"},{shape:"badge",size:"lg",modern:!1,className:"rounded-lg"},{size:"sm",shape:"pill",iconOnly:!1,hasLeading:!1,className:"pl-2"},{size:"sm",shape:"badge",iconOnly:!1,hasLeading:!1,className:"pl-1.5"},{size:"sm",iconOnly:!1,hasLeading:!0,className:"pl-1"},{size:"sm",iconOnly:!1,hasTrailing:!1,className:"pr-2"},{size:"sm",iconOnly:!1,hasTrailing:!0,className:"pr-1"},{size:"md",iconOnly:!1,hasLeading:!1,className:"pl-2.5"},{size:"md",iconOnly:!1,hasLeading:!0,className:"pl-1"},{size:"md",iconOnly:!1,hasTrailing:!1,className:"pr-2.5"},{size:"md",iconOnly:!1,hasTrailing:!0,className:"pr-1"},{size:"lg",shape:"pill",iconOnly:!1,hasLeading:!1,className:"pl-3"},{size:"lg",shape:"badge",iconOnly:!1,hasLeading:!1,className:"pl-2.5"},{size:"lg",iconOnly:!1,hasLeading:!0,className:"pl-1.5"},{size:"lg",shape:"pill",iconOnly:!1,hasTrailing:!1,className:"pr-3"},{size:"lg",shape:"badge",iconOnly:!1,hasTrailing:!1,className:"pr-2.5"},{size:"lg",iconOnly:!1,hasTrailing:!0,className:"pr-1.5"}],defaultVariants:{size:"sm",shape:"pill",modern:!1,hasLeading:!1,hasTrailing:!1,iconOnly:!1,interactive:!1,disabled:!1}}),_D=Z(["shrink-0 rounded border bg-white transition-colors duration-150"],{variants:{size:{sm:"size-[14px]",md:"size-[16px]",lg:"size-[18px]"}},defaultVariants:{size:"sm"}}),RD=Z(["shrink-0 inline-flex items-center justify-center rounded","hover:bg-black/5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400"],{variants:{size:{sm:"size-[16px]",md:"size-[16px]",lg:"size-[16px]"}},defaultVariants:{size:"sm"}}),r1=({children:e,size:t="sm",shape:n="pill",variant:r="solid",color:i="brand",customColor:a,modern:l=!1,icon:o,trailingIcon:s,checked:d,onCheckedChange:c,onClose:f,iconOnly:m=!1,disabled:h=!1,className:p})=>{const g=c!==void 0,y=d!==void 0||!!o,$=!!f||!!s,x=g&&!h,v=zD[i],C=!!(a&&t1(a)),w=C?{borderColor:a,color:a,backgroundColor:r==="outline"?"transparent":n1(a,.1)}:void 0,S=()=>{h||c?.(!d)},B=E=>{!g||h||(E.key==="Enter"||E.key===" ")&&(E.preventDefault(),S())};return b.createElement("div",{role:g?"checkbox":void 0,"aria-checked":g?!!d:void 0,"aria-disabled":h||void 0,tabIndex:g&&!h?0:void 0,onClick:g?S:void 0,onKeyDown:B,style:w,className:ee(VD({size:t,shape:n,modern:l,hasLeading:y,hasTrailing:$,iconOnly:m,interactive:x,disabled:h}),!C&&(r==="outline"?ee("bg-transparent",v.outlineBorder,v.outlineText):ee(v.solidBg,v.solidBorder,v.solidText)),x&&!C&&(r==="outline"?ee(v.hoverOutlineBg,v.hoverOutlineBorder,v.hoverOutlineText):ee(v.hoverSolidBg,v.hoverSolidBorder,v.hoverSolidText)),p)},d!==void 0&&b.createElement("span",{className:ee(_D({size:t}),d?"bg-primary-500 border-primary-500":!C&&v.solidBorder,x&&!d&&!C&&v.checkboxHoverBorder),style:!d&&C?{borderColor:a}:void 0},d&&b.createElement("svg",{viewBox:"0 0 14 10",fill:"none",className:"size-full text-white"},b.createElement("path",{d:"M1 5L5 9L13 1",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),o,!m&&b.createElement("span",{className:"whitespace-nowrap"},e),s,f&&b.createElement("button",{type:"button","aria-label":"Remove",disabled:h,onClick:E=>{E.stopPropagation(),f()},className:RD({size:t})},b.createElement("svg",{viewBox:"0 0 10 10",fill:"none",className:t==="sm"?"size-2":"size-2.5"},b.createElement("path",{d:"M1 1L9 9M9 1L1 9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}))))};r1.displayName="Badge";const jD={brand:{bg50:"bg-primary-50",hoverBg100:"hover:bg-primary-100",border200:"border-primary-200",border500:"border-primary-500",text500:"text-primary-500"},gray:{bg50:"bg-light-50",hoverBg100:"hover:bg-light-100",border200:"border-light-200",border500:"border-light-500",text500:"text-light-500"},error:{bg50:"bg-error-50",hoverBg100:"hover:bg-error-100",border200:"border-error-200",border500:"border-error-500",text500:"text-error-500"},warning:{bg50:"bg-warning-50",hoverBg100:"hover:bg-warning-100",border200:"border-warning-200",border500:"border-warning-500",text500:"text-warning-500"},success:{bg50:"bg-success-50",hoverBg100:"hover:bg-success-100",border200:"border-success-200",border500:"border-success-500",text500:"text-success-500"}},HD={md:{outerPad:{leading:"pl-1 pr-2.5 py-1",trailing:"pl-3 pr-1 py-1"},gap:"gap-2",chipPad:"px-2 py-0.5",text:"text-caption-lg"},lg:{outerPad:{leading:"pl-1.5 pr-3 py-1.5",trailing:"pl-3 pr-1.5 py-1.5"},gap:"gap-2",chipPad:"px-2.5 py-[3px]",text:"text-body-sm"}},i1=({badgeLabel:e,children:t,size:n="md",theme:r="light",color:i="brand",badgePosition:a="leading",icon:l,onClick:o,className:s})=>{const d=jD[i],c=HD[n],f=r==="modern",m=r==="outline",h=ee("inline-flex items-center border transition-colors duration-150",c.gap,c.outerPad[a],f?"rounded-lg bg-light-50 border-light-200 shadow-xs":m?ee("rounded-full bg-white border-[1.5px]",d.border500):ee("rounded-full",d.bg50,d.border200,d.hoverBg100),o&&"cursor-pointer",s),p=ee("inline-flex shrink-0 items-center gap-1 border font-medium whitespace-nowrap",c.chipPad,c.text,f?"rounded-md bg-white border-light-200 text-light-800":m?ee("rounded-full bg-white border-[1.5px]",d.border500,d.text500):ee("rounded-full bg-white",d.border200,d.text500)),g=ee("inline-flex items-center gap-1 font-medium",c.text,f?"text-light-800":d.text500),y=b.createElement("span",{className:p},f&&b.createElement("span",{className:"size-2 shrink-0 rounded-full bg-light-400"}),e);return b.createElement("div",{role:o?"button":void 0,tabIndex:o?0:void 0,onClick:o,className:h},a==="leading"&&y,b.createElement("span",{className:g},t,l),a==="trailing"&&y)};i1.displayName="BadgeGroup";const UD=({size:e})=>{const t=e*.09,n=(e-t)/2,r=2*Math.PI*n;return b.createElement("svg",{width:e,height:e,viewBox:`0 0 ${e} ${e}`,fill:"none",className:"animate-spin"},b.createElement("circle",{cx:e/2,cy:e/2,r:n,strokeWidth:t,className:"stroke-light-100"}),b.createElement("circle",{cx:e/2,cy:e/2,r:n,strokeWidth:t,strokeLinecap:"round",strokeDasharray:`${r*.25} ${r}`,className:"stroke-primary-600"}))},WD=({size:e})=>{const t=b.useId(),n=e*.125,r=(e-n)/2,i=2*Math.PI*r;return b.createElement("svg",{width:e,height:e,viewBox:`0 0 ${e} ${e}`,fill:"none",className:"animate-spin text-primary-600"},b.createElement("defs",null,b.createElement("linearGradient",{id:t,x1:"100%",y1:"0%",x2:"0%",y2:"100%"},b.createElement("stop",{offset:"0%",stopColor:"currentColor",stopOpacity:"1"}),b.createElement("stop",{offset:"100%",stopColor:"currentColor",stopOpacity:"0"}))),b.createElement("circle",{cx:e/2,cy:e/2,r,strokeWidth:n,className:"stroke-light-100"}),b.createElement("circle",{cx:e/2,cy:e/2,r,strokeWidth:n,strokeLinecap:"round",stroke:`url(#${t})`,strokeDasharray:`${i*.75} ${i}`}))},GD=({size:e})=>{const n=Math.max(e*.1,3),r=(e-n)/2;return b.createElement("div",{className:"relative animate-spin",style:{width:e,height:e}},Array.from({length:12}).map((i,a)=>{const l=30*a,o=.15+.85*a/11;return b.createElement("span",{key:a,className:"absolute rounded-full bg-primary-600 top-1/2 left-1/2",style:{width:n,height:n,opacity:o,marginTop:-n/2,marginLeft:-n/2,transform:`rotate(${l}deg) translate(${r}px) rotate(${-l}deg)`}})}))},ZD={sm:{box:32,gapClass:"gap-4",textClass:"text-caption-lg"},md:{box:48,gapClass:"gap-4",textClass:"text-caption-lg"},lg:{box:56,gapClass:"gap-4",textClass:"text-body-lg"},xl:{box:64,gapClass:"gap-5",textClass:"text-body-lg"}},a1=({size:e="sm",style:t="line-simple",supportingText:n=!0,label:r="Loading...",className:i})=>{const{box:a,gapClass:l,textClass:o}=ZD[e],s=typeof r=="string"?r:"Loading";return b.createElement("div",{"aria-live":"polite","aria-atomic":"true"},b.createElement(Lv,{isIndeterminate:!0,"aria-label":s,className:H("inline-flex flex-col items-center",l,i)},t==="line-simple"&&b.createElement(UD,{size:a}),t==="line-spinner"&&b.createElement(WD,{size:a}),t==="dot-circle"&&b.createElement(GD,{size:a}),n&&b.createElement("p",{className:H("font-nunito font-medium text-light-700 whitespace-nowrap",o)},r)))};a1.displayName="Loading";const l1=({className:e,style:t})=>b.createElement("svg",{viewBox:"0 0 24 24",fill:"none",className:e,style:t},b.createElement("path",{d:"M12 12a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9Z",stroke:"currentColor",strokeWidth:"1.75"}),b.createElement("path",{d:"M3.75 20.25a8.25 8.25 0 0 1 16.5 0",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round"})),o1=({className:e})=>b.createElement("svg",{viewBox:"0 0 20 20",fill:"none",className:e},b.createElement("circle",{cx:"10",cy:"10",r:"9",className:"fill-primary-500 stroke-white",strokeWidth:"1.5"}),b.createElement("path",{d:"M6 10.2 8.6 12.8 14 7",stroke:"white",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"})),YD={xs:{box:24,borderWidth:"0.5px",statusSize:6,badgeSize:10,textClass:"text-caption-sm"},sm:{box:32,borderWidth:"0.5px",statusSize:8,badgeSize:12,textClass:"text-caption-lg"},md:{box:40,borderWidth:"0.75px",statusSize:10,badgeSize:14,textClass:"text-body-sm"},lg:{box:48,borderWidth:"0.75px",statusSize:12,badgeSize:16,textClass:"text-body-lg"},xl:{box:56,borderWidth:"0.75px",statusSize:14,badgeSize:18,textClass:"text-h6"},"2xl":{box:64,borderWidth:"0.75px",statusSize:16,badgeSize:20,textClass:"text-h5 leading-7"}},qD="#17B26A",ja={brand:{bg:"bg-primary-500",text:"text-white",iconText:"text-white"},gray:{bg:"bg-light-50",text:"text-light-500",iconText:"text-light-300"},error:{bg:"bg-error-500",text:"text-white",iconText:"text-white"},warning:{bg:"bg-warning-500",text:"text-white",iconText:"text-white"},success:{bg:"bg-success-500",text:"text-white",iconText:"text-white"}},Ha=({src:e,alt:t,initials:n,size:r="md",color:i="gray",status:a="none",statusIcon:l,contrastBorder:o=!0,className:s})=>{const{box:d,borderWidth:c,statusSize:f,badgeSize:m,textClass:h}=YD[r],p=e?"image":n!==void 0?"initials":"placeholder";return b.createElement("div",{className:ee("relative inline-block shrink-0 rounded-full",s),style:{width:d,height:d}},p==="image"&&b.createElement("img",{src:e,alt:t??"",className:"absolute inset-0 size-full rounded-full object-cover"}),p==="placeholder"&&b.createElement("div",{className:ee("absolute inset-0 flex items-center justify-center rounded-full",ja[i].bg)},b.createElement(l1,{className:ja[i].iconText,style:{width:d*.55,height:d*.55}})),p==="initials"&&b.createElement("div",{className:ee("absolute inset-0 flex items-center justify-center rounded-full font-semibold",ja[i].bg,ja[i].text,h)},n),o&&b.createElement("div",{className:"pointer-events-none absolute inset-0 rounded-full border-black/[0.08]",style:{borderWidth:c,borderStyle:"solid"}}),a==="online"&&b.createElement("span",{className:"absolute bottom-0 right-0 rounded-full border-[1.5px] border-white",style:{width:f,height:f,backgroundColor:qD}}),a==="company"&&b.createElement("div",{className:"absolute bottom-0 right-0 flex items-center justify-center overflow-hidden rounded-full border-[1.5px] border-white bg-white",style:{width:m,height:m}},l),a==="verified"&&b.createElement("div",{className:"absolute bottom-0 right-0",style:{width:m,height:m}},b.createElement(o1,{className:"size-full"})))};Ha.displayName="Avatar";const u1=[{bg:"bg-primary-100",text:"text-primary-600"},{bg:"bg-secondary-100",text:"text-secondary-600"},{bg:"bg-purple-100",text:"text-purple-600"},{bg:"bg-pink-100",text:"text-pink-600"},{bg:"bg-orange-100",text:"text-orange-600"},{bg:"bg-teal-100",text:"text-teal-600"},{bg:"bg-indigo-100",text:"text-indigo-600"},{bg:"bg-rose-100",text:"text-rose-600"}],XD=e=>{let t=0;for(let r=0;r<e.length;r+=1)t=t*31+e.charCodeAt(r)|0;const n=Math.abs(t)%u1.length;return u1[n]},JD={xs:{box:24,overlap:-4,contrastBorderWidth:"0.5px",plusIconSize:16,textClass:"text-caption-sm"},sm:{box:32,overlap:-8,contrastBorderWidth:"0.5px",plusIconSize:16,textClass:"text-caption-lg"},md:{box:40,overlap:-12,contrastBorderWidth:"0.75px",plusIconSize:20,textClass:"text-body-sm"}},s1=({avatars:e,max:t,size:n="xs",onAdd:r,className:i})=>{const{box:a,overlap:l,contrastBorderWidth:o,textClass:s}=JD[n],d=t?e.slice(0,t):e,c=t&&e.length>t?e.length-t:0;return b.createElement("div",{className:ee("inline-flex items-start gap-2",i)},b.createElement("div",{className:"flex items-start"},d.map((f,m)=>{const h=m<d.length-1||c>0;return b.createElement(Ra,{key:m,content:f.label,disabled:!f.label,side:"top"},b.createElement("div",{className:"relative shrink-0 overflow-hidden rounded-full border-[1.5px] border-white",style:{width:a,height:a,marginRight:h?l:0}},f.src?b.createElement("img",{src:f.src,alt:f.alt??"",className:"size-full object-cover"}):(()=>{const{text:p,bg:g}=XD(String(f.label??f.alt??f.initials??m));return b.createElement("div",{className:ee("flex size-full items-center justify-center font-semibold",f.initialsBgColor??g,f.initialsTextColor??p,s)},f.initials)})(),b.createElement("div",{className:ee("pointer-events-none absolute inset-0 rounded-full",f.borderColor??"border-black/[0.08]"),style:{borderWidth:o,borderStyle:"solid"}})))}),c>0&&b.createElement(Ra,{content:e.slice(t).map((f,m)=>b.createElement("div",{key:m},f.label)),disabled:!e.slice(t).some(f=>f.label),side:"top"},b.createElement("div",{className:"relative flex shrink-0 items-center justify-center rounded-full border-2 border-white bg-light-100",style:{width:a,height:a}},b.createElement("span",{className:ee("font-semibold text-light-600",s)},"+",c)))),r&&b.createElement("button",{type:"button",onClick:r,"aria-label":"Add",className:"flex shrink-0 items-center justify-center rounded-full border border-dashed border-light-300 bg-white text-light-500 hover:bg-light-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2",style:{width:a,height:a}},b.createElement("svg",{width:a*.4,height:a*.4,viewBox:"0 0 20 20",fill:"none"},b.createElement("path",{d:"M10 4v12M4 10h12",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round"}))))};s1.displayName="AvatarGroup";const QD={xs:{nameClass:"text-caption-sm",subtitleClass:"text-caption-sm"},sm:{nameClass:"text-caption-lg",subtitleClass:"text-caption-sm"},md:{nameClass:"text-caption-lg",subtitleClass:"text-caption-lg"},lg:{nameClass:"text-body-sm",subtitleClass:"text-body-sm"},xl:{nameClass:"text-body-lg",subtitleClass:"text-body-sm"}},d1=({name:e,subtitle:t,src:n,initials:r,size:i="xs",status:a="none",statusIcon:l,className:o})=>{const{nameClass:s,subtitleClass:d}=QD[i];return b.createElement("div",{className:ee("inline-flex items-center gap-2",o)},b.createElement(Ha,{src:n,initials:r,size:i,status:a,statusIcon:l}),b.createElement("div",{className:"flex flex-col items-start whitespace-nowrap"},b.createElement("span",{className:ee("font-bold text-light-800",s)},e),t&&b.createElement("span",{className:ee("font-normal text-light-700",d)},t)))};d1.displayName="AvatarLabelGroup";const eE={sm:{box:72,ringWidth:3,shadowClass:"shadow-md",iconSize:36,textClass:"text-h4",verifiedSize:20,verifiedOffset:0},md:{box:96,ringWidth:4,shadowClass:"shadow-lg",iconSize:48,textClass:"text-h3",verifiedSize:24,verifiedOffset:0},lg:{box:160,ringWidth:4,shadowClass:"shadow-lg",iconSize:80,textClass:"text-h1",verifiedSize:32,verifiedOffset:4}},c1=({src:e,alt:t,initials:n,size:r="sm",verified:i=!0,contrastBorder:a=!0,className:l})=>{const{box:o,ringWidth:s,shadowClass:d,iconSize:c,textClass:f,verifiedSize:m,verifiedOffset:h}=eE[r],p=e?"image":n!==void 0?"initials":"placeholder";return b.createElement("div",{className:ee("relative rounded-full",l),style:{width:o,height:o}},b.createElement("div",{className:ee("absolute inset-0 overflow-hidden rounded-full border-white",d,p!=="image"&&"bg-light-100"),style:{borderWidth:s,borderStyle:"solid"}},p==="image"&&b.createElement("img",{src:e,alt:t??"",className:"absolute inset-0 size-full rounded-full object-cover"}),a&&b.createElement("div",{className:"pointer-events-none absolute inset-0 rounded-full border border-black/[0.08]"}),p==="placeholder"&&b.createElement("div",{className:"absolute inset-0 flex items-center justify-center"},b.createElement(l1,{className:"text-light-300",style:{width:c,height:c}})),p==="initials"&&b.createElement("div",{className:ee("absolute inset-0 flex items-center justify-center font-semibold text-light-500",f)},n)),i&&b.createElement("div",{className:"absolute",style:{width:m,height:m,bottom:h,right:h}},b.createElement(o1,{className:"size-full"})))};c1.displayName="AvatarProfilePhoto";const tE={"button-gray":{sm:"h-9 px-3 py-2 text-sm gap-2",md:"h-11 px-3 py-2 text-base gap-2"},"button-white":{sm:"h-9 px-3 py-2 text-sm gap-2",md:"h-11 px-3 py-2 text-base gap-2"},"button-primary":{sm:"h-9 px-3 py-2 text-sm gap-2",md:"h-11 px-3 py-2 text-base gap-2"},underline:{sm:"h-8 px-1 pb-3 text-sm gap-2",md:"h-9 px-1 pb-3 text-base gap-2"},"underline-filled":{sm:"h-11 p-3 text-sm gap-2",md:"h-12 p-3 text-base gap-2"},line:{sm:"h-9 px-3 py-2 text-sm gap-2",md:"h-11 px-3.5 py-2.5 text-base gap-2"}},nE={"button-gray":"rounded-md","button-white":"rounded-md","button-primary":"rounded-md",underline:"rounded-none","underline-filled":"rounded-none",line:"rounded-none"},rE={"button-gray":{active:"bg-light-50 text-light-700",inactive:"bg-transparent text-light-500",hoverInactive:"hover:bg-light-50 hover:text-light-700",hasFocusRing:!0},"button-white":{active:"bg-white text-light-700 shadow-sm",inactive:"bg-transparent text-light-500",hoverInactive:"hover:bg-white hover:text-light-700 hover:shadow-sm",hasFocusRing:!0},"button-primary":{active:"bg-primary-50 text-primary-700",inactive:"bg-transparent text-light-500",hoverInactive:"hover:bg-primary-50 hover:text-primary-700",hasFocusRing:!0},underline:{active:"border-b-2 border-primary-500 text-primary-700",inactive:"border-b-2 border-transparent text-light-500",hoverInactive:"hover:border-primary-500 hover:text-primary-700",hasFocusRing:!1},"underline-filled":{active:"bg-primary-50 border-b-2 border-primary-500 text-primary-700",inactive:"bg-transparent border-b-2 border-transparent text-light-500",hoverInactive:"hover:bg-primary-50 hover:border-primary-500 hover:text-primary-700",hasFocusRing:!1},line:{active:"bg-transparent border-l-2 border-primary-500 text-primary-700",inactive:"bg-transparent border-l-2 border-transparent text-light-500",hoverInactive:"hover:border-primary-500 hover:text-primary-700",hasFocusRing:!0}},iE="inline-flex items-center justify-center rounded-full border border-light-200 bg-light-50 px-2 py-0.5 text-caption-sm font-medium text-light-700",aE={"button-gray":{gapClass:"gap-1",hasHairline:!1},"button-white":{gapClass:"gap-1",hasHairline:!1},"button-primary":{gapClass:"gap-1",hasHairline:!1},underline:{gapClass:"gap-3",hasHairline:!0},"underline-filled":{gapClass:"gap-3",hasHairline:!0},line:{gapClass:"gap-1",hasHairline:!1}},f1=({children:e,variant:t="button-primary",size:n="sm",fullWidth:r=!1,count:i,iconLeft:a,iconRight:l,disabled:o=!1,onClick:s,className:d,id:c,active:f})=>{const m=rE[t];return b.createElement(C2,{id:c,isDisabled:o,onPress:()=>s?.(),className:({isSelected:h})=>H("inline-flex items-center justify-center font-semibold transition-colors duration-150",tE[t][n],nE[t],h?m.active:m.inactive,!h&&!o&&m.hoverInactive,m.hasFocusRing&&"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white",r&&"w-full",o?"cursor-not-allowed opacity-60":"cursor-pointer",d)},a&&b.createElement("span",{className:"shrink-0"},a),b.createElement("span",{className:"whitespace-nowrap"},e),i!==void 0&&b.createElement("span",{className:iE},i),l&&b.createElement("span",{className:"shrink-0"},l))};f1.displayName="Tab";const m1=({children:e,variant:t="button-primary",orientation:n="horizontal",boxed:r=!1,"aria-label":i="Tabs",keyboardActivation:a,disabledKeys:l,className:o})=>{const{gapClass:s,hasHairline:d}=aE[t],c=b.Children.toArray(e),f=c.map((g,y)=>String(y)),m=c.findIndex(g=>g.props.active),h=f[m>=0?m:0],p=g=>{const y=f.indexOf(String(g));y>=0&&c[y].props.onClick?.()};return b.createElement(v2,{orientation:n,keyboardActivation:a,disabledKeys:l,selectedKey:c.length?h:void 0,onSelectionChange:p},b.createElement(x2,{"aria-label":i,className:H("inline-flex",n==="vertical"?"flex-col items-stretch":"flex-row items-center",s,r&&"rounded-lg border border-light-200 bg-light-50 p-1",d&&n==="horizontal"&&!r&&"border-b border-light-200",o)},c.map((g,y)=>b.cloneElement(g,{key:f[y],id:f[y]}))))};m1.displayName="TabList";const h1=9,kt=1,lE=30;function p1(e){const t=h1,n=kt-e,r=n?`calc(100% - ${n}px)`:"100%",i=`calc(100% - ${t+1}px)`,a=`calc(100% - ${t}px)`;return`shape(${[`from ${-e}px 100%`,...n?[`vline to ${r}`]:[],`curve to ${t}px ${i} with ${t}px ${r}`,`vline to ${t-e}px`,`curve to ${2*t-e}px 0 with ${t}px 0`,`hline to calc(100% - ${2*t-e}px)`,`curve to ${a} ${t-e}px with ${a} 0`,`vline to ${i}`,`curve to ${e?`calc(100% + ${e}px)`:"100%"} ${r} with ${a} ${r}`,...n?["vline to 100%"]:[]].join(", ")})`}const b1=p1(0),g1=p1(kt),y1={default:{box:"h-12 shrink-0",padX:lE},"max-width":{box:"h-9 min-w-px flex-1",padX:h1}},oE={clipPath:b1,paddingInline:`${kt}px`},uE={paddingInline:`${kt}px`},$1=b.forwardRef(({type:e="default",disabled:t=!1,unstyled:n=!1,iconLeft:r,trailing:i,tooltip:a,children:l,className:o,style:s,contentClassName:d,contentStyle:c,onClick:f,id:m,active:h,...p},g)=>{const{box:y,padX:$}=y1[e];return b.createElement(C2,{ref:g,id:m,isDisabled:t,onPress:()=>f?.(void 0),...p,className:({isSelected:x})=>H("group relative flex transition-colors duration-150 focus-visible:outline-none",!n&&"rounded-t-lg pt-px",!n&&y,t&&"cursor-not-allowed opacity-60",!t&&!x&&"cursor-pointer",!n&&x&&"-mb-px bg-light-200 focus-visible:bg-primary-400",x&&"cursor-default",o),style:({isSelected:x})=>n?s:{...x?oE:uE,...s}},({isSelected:x})=>{const v=!t&&!x,C=x?{clipPath:g1,paddingInline:`${$-kt}px`}:{paddingInline:`${$-kt}px`};return b.createElement("span",{title:a,className:H("flex h-full w-full items-center justify-center gap-1 whitespace-nowrap text-caption-sm",!n&&"rounded-t-lg",!n&&(x?"bg-white font-bold text-light-800":"font-medium leading-4 text-light-600"),!n&&v&&"group-hover:bg-light-100 group-hover:text-light-800",!n&&v&&"group-focus-visible:rounded-b-lg group-focus-visible:ring-2 group-focus-visible:ring-primary-400 group-focus-visible:ring-offset-2",d),style:n?c:{...C,...c}},r&&b.createElement("span",{className:"shrink-0"},r),b.createElement("span",{className:"overflow-hidden text-ellipsis"},l),i)})});$1.displayName="TabBrowser";const sE=48,v1=({children:e,separators:t=!1,trailingSlot:n,overflow:r=!1,overflowLabel:i,className:a})=>{const l=b.Children.toArray(e),o=b.useMemo(()=>l.map((E,k)=>String(k)),[l.length]),s=l.findIndex(E=>E.props.active),d=b.useRef(null),c=b.useRef(null),f=b.useRef(new Map),m=b.useRef(new Map),[h,p]=b.useState(l.length),g=o.join("|");b.useLayoutEffect(()=>{r&&(m.current.clear(),p(l.length))},[r,g]);const y=b.useCallback(()=>{const E=d.current;if(!E||l.length===0||(m.current.size<l.length&&o.forEach(R=>{const D=f.current.get(R);D&&m.current.set(R,D.getBoundingClientRect().width)}),m.current.size<l.length))return;const k=E.clientWidth,K=c.current?.getBoundingClientRect().width||sE;let T=0,I=0;for(;I<o.length;I++){const R=m.current.get(o[I])??0,D=I<o.length-1?K:0;if(T+R+D>k&&I>0)break;T+=R}p(R=>R===I?R:I)},[l.length,o]),$=h===l.length;b.useLayoutEffect(()=>{r&&y()},[r,y,$]),b.useEffect(()=>{if(!r)return;const E=d.current;if(!E||typeof ResizeObserver>"u")return;const k=new ResizeObserver(()=>y());return k.observe(E),()=>k.disconnect()},[r,y]);const x=r&&h<l.length?Math.max(h,1):l.length,v=r?s>=0&&s>=x?[...Array(x-1).keys(),s]:[...Array(x).keys()]:o.map((E,k)=>k),C=new Set(v),w=o.map((E,k)=>k).filter(E=>!C.has(E)),S=s>=0?o[s]:v.length?o[v[0]]:void 0,B=E=>{const k=o.indexOf(String(E));k>=0&&l[k].props.onClick?.(void 0)};return b.createElement(v2,{selectedKey:l.length?S:void 0,onSelectionChange:B,className:H("flex items-end",r&&"min-w-0 flex-1",a)},(()=>{const E=b.createElement(x2,{"aria-label":"Tabs",className:H("flex min-w-0 items-end",r?"shrink-0":"flex-1")},v.map((k,K)=>{const T=l[k],I=K===v.length-1&&w.length===0,R=v[K+1],D=T.props.active||l[R]?.props.active;return b.cloneElement(T,{key:o[k],id:o[k],ref:r?M=>{M?f.current.set(o[k],M):f.current.delete(o[k])}:void 0,className:H(T.props.className,t&&!I&&!D&&"after:absolute after:-right-px after:bottom-3 after:h-5 after:w-px after:bg-light-200 after:content-['']")})}));return r?b.createElement("div",{ref:d,className:"flex min-w-0 flex-1 items-end overflow-hidden"},E,w.length>0&&b.createElement(Aa,null,b.createElement(Xt,{ref:c,className:"mb-3 flex h-7 shrink-0 items-center self-end rounded-md px-2 text-caption-sm font-semibold text-light-600 hover:bg-light-100 hover:text-light-800 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400"},i?i(w.length):`+${w.length}`),b.createElement(i3,{placement:"bottom end",className:"flex flex-col overflow-hidden rounded-lg border border-light-200 bg-white p-1 shadow-lg"},b.createElement(H3,{className:"flex max-h-[320px] min-h-0 min-w-[160px] flex-1 flex-col gap-0.5 overflow-y-auto outline-none [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",onAction:k=>{const K=o.indexOf(String(k));K>=0&&l[K].props.onClick?.(void 0)}},w.map(k=>{const K=l[k],T=K.props.children;return b.createElement(U3,{key:o[k],id:o[k],isDisabled:K.props.disabled,textValue:typeof T=="string"?T:void 0,className:"flex h-9 shrink-0 cursor-pointer items-center gap-2 truncate rounded-md px-2 text-caption-sm text-light-800 outline-none data-[disabled]:cursor-not-allowed data-[disabled]:opacity-60 data-[focused]:bg-light-50 data-[focused]:text-light-900"},K.props.iconLeft&&b.createElement("span",{className:"shrink-0"},K.props.iconLeft),b.createElement("span",{className:"truncate"},T),K.props.trailing&&b.createElement("span",{className:"ml-auto shrink-0"},K.props.trailing))}))))):E})(),n)};v1.displayName="TabBrowserBar";const dE={clipPath:b1,paddingInline:`${kt}px`},cE={paddingInline:`${kt}px`},x1=b.forwardRef(({type:e="default",disabled:t=!1,unstyled:n=!1,active:r=!1,iconLeft:i,trailing:a,tooltip:l,children:o,className:s,style:d,contentClassName:c,contentStyle:f,...m},h)=>{const{box:p,padX:g}=y1[e],y=!t&&!r,$=r?{clipPath:g1,paddingInline:`${g-kt}px`}:{paddingInline:`${g-kt}px`};return b.createElement("div",{ref:h,role:"tab","aria-disabled":t,"aria-selected":r,...m,className:H("group relative flex transition-colors duration-150 focus-visible:outline-none",!n&&"rounded-t-lg pt-px",!n&&p,t&&"cursor-not-allowed opacity-60",!t&&!r&&"cursor-pointer",!n&&r&&"-mb-px bg-light-200 focus-visible:bg-primary-400",r&&"cursor-default",s),style:n?d:{...r?dE:cE,...d}},b.createElement("span",{title:l,className:H("flex h-full w-full items-center justify-center gap-1 whitespace-nowrap text-caption-sm",!n&&"rounded-t-lg",!n&&(r?"bg-white font-bold text-light-800":"font-medium leading-4 text-light-600"),!n&&y&&"group-hover:bg-light-100 group-hover:text-light-800",!n&&y&&"group-focus-visible:rounded-b-lg group-focus-visible:ring-2 group-focus-visible:ring-primary-400 group-focus-visible:ring-offset-2",c),style:n?f:{...$,...f}},i&&b.createElement("span",{className:"shrink-0"},i),b.createElement("span",{className:"overflow-hidden text-ellipsis"},o),a))});x1.displayName="TabBrowserPreview";const fE=Z("flex flex-col gap-1 w-full",{variants:{size:{xs:"text-caption-sm",sm:"text-caption-lg",md:"text-sm"}},defaultVariants:{size:"md"}}),mE=Z("flex items-center gap-1 font-bold text-sm",{variants:{error:{true:"",false:"text-light-800"}},defaultVariants:{error:!1}}),hE=Z(["flex items-center w-full border","bg-white transition-[border-color,border-width]"],{variants:{size:{xs:"h-7 px-2 gap-1 rounded text-caption-sm",sm:"h-9 px-3 gap-2 rounded-lg",md:"h-11 px-3 gap-2 rounded-lg"},error:{true:["border-error-200","focus-within:border-2 focus-within:border-error-500"],false:["border-light-200","focus-within:border-2 focus-within:border-primary-500"]},disabled:{true:"bg-light-100 text-light-400 cursor-not-allowed",false:""}},defaultVariants:{size:"md",error:!1,disabled:!1}}),pE=Z(["flex-1 bg-transparent outline-none text-light-900","placeholder:text-light-500","disabled:text-light-400 disabled:cursor-not-allowed"],{variants:{size:{xs:"text-caption-sm",sm:"text-caption-lg",md:"text-body-sm"},error:{true:"",false:"text-light-900"}},defaultVariants:{size:"md",error:!1}}),bE=Z("text-caption-lg",{variants:{error:{true:"text-error-500",false:"text-light-700"}}}),gE=Z("flex items-stretch w-full bg-white border overflow-hidden transition-[border-color,border-width]",{variants:{size:{xs:"rounded",sm:"rounded-lg",md:"rounded-lg"},error:{true:["border-error-200","focus-within:border-2 focus-within:border-error-500"],false:["border-light-200","focus-within:border-2 focus-within:border-primary-500"]},disabled:{true:"bg-light-100",false:""}},defaultVariants:{size:"md",error:!1,disabled:!1}}),yE=Z("flex flex-1 items-center min-w-0",{variants:{size:{xs:"gap-1 px-2 py-1",sm:"gap-2 px-3 py-2",md:"gap-2 px-3 py-2"},disabled:{true:"text-light-400 cursor-not-allowed",false:""}},defaultVariants:{size:"md",disabled:!1}}),$E=Z("flex items-center text-light-700 whitespace-nowrap border-r border-light-200",{variants:{size:{xs:"px-2 text-caption-sm",sm:"px-3 text-caption-lg",md:"px-3 text-body-sm"}},defaultVariants:{size:"md"}}),C1=Z(["flex items-center gap-1 shrink-0 bg-transparent p-0 text-light-800 cursor-pointer","hover:bg-transparent hover:text-light-900","disabled:cursor-not-allowed disabled:text-light-400"],{variants:{size:{xs:"text-caption-sm",sm:"text-caption-lg",md:"text-body-sm"}},defaultVariants:{size:"md"}}),vE=Z("flex shrink-0 items-center justify-center gap-1 w-[92px] border-l border-light-200 bg-white font-semibold text-light-800 hover:bg-light-50 disabled:cursor-not-allowed disabled:text-light-400",{variants:{size:{xs:"text-caption-sm",sm:"text-caption-lg",md:"text-body-sm"}},defaultVariants:{size:"md"}}),D1=({className:e})=>u.createElement("svg",{viewBox:"0 0 20 20",fill:"none",className:e},u.createElement("path",{d:"M5 7.5L10 12.5L15 7.5",stroke:"currentColor",strokeWidth:"1.67",strokeLinecap:"round",strokeLinejoin:"round"})),xE={xs:"h-7",sm:"h-[30px]",md:"h-[34px]"},CE=({size:e,error:t,disabled:n})=>ee("flex items-center w-full gap-2 rounded-lg border bg-white px-2 transition-[border-color,border-width]",xE[e],t?"border-error-200 focus-within:border-2 focus-within:border-error-500":"border-light-200 focus-within:border-2 focus-within:border-primary-500",n&&"bg-light-100 text-light-400 cursor-not-allowed"),DE=({error:e})=>ee("flex items-center gap-1 text-caption-sm font-semibold",e?"":"text-light-800"),EE="flex flex-col w-full max-w-[320px]",E1=u.forwardRef(function({label:t,required:n,hint:r,rightIcon:i,size:a="md",error:l=!1,disabled:o=!1,compact:s=!1,hideCalendarIcon:d=!1,type:c,prefix:f,suffix:m,leadingAddon:h,leadingDropdown:p,trailingDropdown:g,trailingButton:y,maxLength:$,value:x,className:v,wrapperClassName:C,...w},S){const B=!!(h||y),E=u.createElement(u.Fragment,null,p&&u.createElement("button",{type:"button",onClick:p.onClick,disabled:p.disabled||o,className:C1({size:a})},u.createElement("span",null,p.value),u.createElement(D1,{className:"size-5 text-light-500"})),f&&u.createElement("div",{className:"flex items-center"},f),u.createElement("input",{...w,ref:S,type:c,disabled:o,maxLength:$,value:x,className:ee(pE({size:a,error:l}),"h-full",d&&"[&::-webkit-calendar-picker-indicator]:hidden [&::-webkit-clear-button]:hidden",c==="date"&&"[&::-webkit-datetime-edit]:p-0 [&::-webkit-datetime-edit-fields-wrapper]:p-0",v)}),(i||m)&&u.createElement("div",{className:"flex h-full items-center gap-2"},i&&u.createElement("div",{className:"flex h-full items-center pb-0.5 text-light-400 hover:text-light-600"},i),m&&u.createElement("div",{className:"flex h-full items-center gap-1 leading-none text-light-700"},m)),g&&u.createElement("button",{type:"button",onClick:g.onClick,disabled:g.disabled||o,className:C1({size:a})},u.createElement("span",null,g.value),u.createElement(D1,{className:"size-5 text-light-500"})));return u.createElement("div",{className:ee(s?EE:fE({size:a}),C)},t&&u.createElement("label",{className:s?DE({error:l}):mE({error:l})},t,n&&u.createElement("span",{className:"text-error-400"},"*")),B?u.createElement("div",{className:gE({size:a,error:l,disabled:o})},h&&u.createElement("div",{className:$E({size:a})},h),u.createElement("div",{className:yE({size:a,disabled:o})},E),y&&u.createElement("button",{type:"button",onClick:y.onClick,disabled:y.disabled||o,className:vE({size:a})},y.icon,u.createElement("span",null,y.label))):u.createElement("div",{className:s?CE({size:a,error:l,disabled:o}):hE({size:a,error:l,disabled:o})},E),$&&typeof x=="string"&&u.createElement("div",{className:"text-right text-xs text-light-400"},x.length,"/",$),r&&u.createElement("p",{className:bE({error:l})},r))});function wE({children:e}){return React.createElement("div",{className:"flex items-center text-light-500"},e)}function SE({children:e}){return React.createElement("div",{className:"flex items-center text-light-500"},e)}const PE=Z("flex flex-col gap-1 w-full",{variants:{size:{xs:"text-caption-sm",sm:"text-caption-lg",md:"text-sm"}},defaultVariants:{size:"md"}}),kE=Z("flex items-center gap-1 font-bold text-sm",{variants:{error:{true:"",false:"text-light-800"}},defaultVariants:{error:!1}}),Iu={xs:"h-7",sm:"h-[30px]",md:"h-[34px]"},BE=Z(["flex items-center w-full gap-2 border bg-white","transition-[border-color,border-width]","data-[invalid]:border-error-200 data-[focus-within]:data-[invalid]:border-2 data-[focus-within]:data-[invalid]:border-error-500","data-[disabled]:cursor-not-allowed data-[disabled]:bg-light-100 data-[disabled]:text-light-400"],{variants:{size:{xs:"h-7 px-2 rounded text-caption-sm",sm:"h-9 px-3 rounded-lg",md:"h-11 px-3 rounded-lg"},compact:{true:"rounded-lg px-2",false:""},error:{true:"",false:"border-light-200 data-[focus-within]:border-2 data-[focus-within]:border-primary-500"}},compoundVariants:[{compact:!0,size:"xs",class:Iu.xs},{compact:!0,size:"sm",class:Iu.sm},{compact:!0,size:"md",class:Iu.md}],defaultVariants:{size:"md",compact:!1,error:!1}}),NE=Z(["flex-1 min-w-0 bg-transparent outline-none text-light-900","placeholder:text-light-500","disabled:text-light-400 disabled:cursor-not-allowed"],{variants:{size:{xs:"text-caption-sm",sm:"text-caption-lg",md:"text-body-sm"}},defaultVariants:{size:"md"}}),w1="flex items-center shrink-0",AE=Z("text-caption-lg",{variants:{error:{true:"text-error-500",false:"text-light-700"}},defaultVariants:{error:!1}}),ti=b.forwardRef(function({label:t,required:n,hint:r,size:i="md",error:a=!1,disabled:l=!1,compact:o=!1,leftSlot:s,rightSlot:d,className:c,wrapperClassName:f,...m},h){return b.createElement("div",{className:H(PE({size:i}),f)},t&&b.createElement("label",{className:kE({error:a})},t,n&&b.createElement("span",{className:"text-error-400"},"*")),b.createElement(Lr,{isDisabled:l,isInvalid:a,className:BE({size:i,compact:o,error:a})},s&&b.createElement("div",{className:w1},s),b.createElement(Or,{...m,ref:h,disabled:l,required:n,className:H(NE({size:i}),c)}),d&&b.createElement("div",{className:w1},d)),r&&b.createElement("p",{className:AE({error:a})},r))});ti.displayName="BaseInput";const FE={xs:12,sm:16,md:20,lg:24,xl:32},An=({icon:e,size:t="md",strokeWidth:n=2,label:r,className:i,...a})=>b.createElement(e,{size:FE[t],stroke:n,className:ee("shrink-0",i),"aria-hidden":r?void 0:!0,role:r?"img":void 0,"aria-label":r,...a});An.displayName="Icon";const S1=H("flex max-h-60 w-full flex-col overflow-y-auto py-1 outline-none","[scrollbar-width:thin] [scrollbar-color:theme(colors.light.300)_theme(colors.light.50)]","[&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-track]:bg-light-50","[&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-light-300"),P1=H("flex size-4 shrink-0 items-center justify-center text-light-500"),k1=H("ml-auto shrink-0 font-normal text-caption-sm text-light-500"),B1=H("my-1 h-px w-full shrink-0 bg-light-200"),TE=H("flex w-full flex-col items-start border-b border-light-200 px-4 py-3"),Mu=H("group flex h-12 w-full items-center px-2 py-0.5 outline-none","cursor-pointer data-[disabled]:cursor-not-allowed"),IE=Z(["flex h-11 min-w-0 flex-1 items-center gap-2 overflow-hidden rounded-md","py-2.5 pl-1 pr-2.5 text-left font-nunito text-body-sm font-medium","[&_[data-slot=supporting-text]]:font-normal"],{variants:{active:{true:"bg-light-50 text-light-800",false:"text-light-900"},focusVisible:{true:"shadow-focus",false:""},nativeInteraction:{true:"group-hover:bg-light-50 group-active:bg-light-50",false:""},disabled:{true:"text-light-400 [&_[data-slot=supporting-text]]:text-light-400",false:"[&_[data-slot=supporting-text]]:text-light-700"}},defaultVariants:{active:!1,focusVisible:!1,nativeInteraction:!1,disabled:!1}}),ME="flex shrink-0 items-center justify-center",KE="flex min-w-0 flex-1 items-center gap-2 overflow-hidden whitespace-nowrap",LE="ml-auto flex shrink-0 items-center justify-center",N1=e=>e!=null&&e!==!1;function Ku({state:e,leadingSlot:t,hasCustomLeadingSlot:n=!1,children:r,trailingSlot:i,nativeInteraction:a=!1}){const l=n?t:e.selectionMode==="multiple"?b.createElement("span",{"aria-hidden":"true","data-slot":"selection-indicator","data-selected":String(e.isSelected),className:`${Y2({size:"sm",checked:e.isSelected,disabled:e.isDisabled})} pointer-events-none shrink-0`},e.isSelected&&b.createElement(vi,{size:12,strokeWidth:2.5})):null;return b.createElement("span",{"data-slot":"collection-item-content",className:H(IE({active:e.isHovered||e.isPressed||e.isSelected||e.isFocusVisible,focusVisible:e.isFocusVisible,nativeInteraction:a&&!e.isDisabled,disabled:e.isDisabled}))},N1(l)&&b.createElement("span",{"data-slot":"leading",className:ME},l),b.createElement("span",{"data-slot":"main",className:KE},r),N1(i)&&b.createElement("span",{"data-slot":"trailing",className:LE},i))}const or=(e,t)=>typeof e=="function"?e(t):e,A1=e=>({isHovered:e.isHovered,isPressed:e.isPressed,isSelected:e.isSelected,isFocused:e.isFocused,isFocusVisible:e.isFocusVisible,isDisabled:e.isDisabled,selectionMode:e.selectionMode,selectionBehavior:e.selectionBehavior});function OE({className:e,style:t,leadingSlot:n,children:r,trailingSlot:i,...a},l){const o=a.textValue??(typeof r=="string"?r:void 0);return b.createElement(Yx,{ref:l,...a,textValue:o,style:t,className:H(Mu,e)},s=>b.createElement(Ku,{state:A1(s),leadingSlot:or(n,s),hasCustomLeadingSlot:n!==void 0,trailingSlot:or(i,s)},or(r,s)))}const F1=b.forwardRef(OE);function zE({className:e,style:t,leadingSlot:n,children:r,trailingSlot:i,...a},l){const o=a.textValue??(typeof r=="string"?r:void 0);return b.createElement(U3,{ref:l,...a,textValue:o,style:t,className:H(Mu,e)},s=>b.createElement(Ku,{state:A1(s),leadingSlot:or(n,s),hasCustomLeadingSlot:n!==void 0,trailingSlot:or(i,s)},or(r,s)))}const T1=b.forwardRef(zE),Lu=b.createContext(null);function VE({className:e,style:t,...n},r){return b.createElement(Lu.Provider,{value:"menu"},b.createElement(H3,{ref:r,...n,style:t,className:H(S1,e)}))}const Ou=b.forwardRef(VE);function _E({className:e,style:t,content:n="none",icon:r,shortcut:i,children:a,...l},o){const s=n==="icon"?r:n==="selection"?d=>b.createElement("span",{className:P1},d.isSelected&&b.createElement(An,{icon:vi,size:"sm","aria-hidden":"true"})):void 0;return b.createElement(T1,{ref:o,...l,style:t,className:e,leadingSlot:s,trailingSlot:i?b.createElement("span",{className:k1},i):void 0},a)}const zu=b.forwardRef(_E),RE=({className:e})=>b.createElement(Im,{className:H(B1,e)}),jE=({children:e,className:t})=>b.createElement(xx,{className:H(TE,t)},e),HE=Z(["flex items-center gap-1 shrink-0 border-r border-light-200 bg-transparent","text-light-800 cursor-pointer","hover:text-light-900","disabled:cursor-not-allowed disabled:text-light-400"],{variants:{size:{xs:"pr-2 text-caption-sm",sm:"pr-2 text-caption-lg",md:"pr-2 text-body-sm"}},defaultVariants:{size:"md"}}),UE="w-72",WE="border-b border-light-200 p-2";function GE({size:e,disabled:t,countries:n,selected:r,onSelect:i}){const[a,l]=b.useState(""),o=a?n.filter(s=>s.name.toLowerCase().includes(a.toLowerCase())||s.dial_code.includes(a)||s.code.toLowerCase()===a.toLowerCase()):n;return b.createElement(Aa,{onOpenChange:s=>{s||l("")}},b.createElement(Xt,{isDisabled:t,"aria-label":`Country: ${r.name} (${r.dial_code})`,className:HE({size:e})},b.createElement("span",null,r.code),b.createElement(xi,{size:14,"aria-hidden":"true"})),b.createElement(Pt,{placement:"bottom start"},b.createElement("div",{className:WE},b.createElement("input",{autoFocus:!0,value:a,onChange:s=>l(s.target.value),placeholder:"Search country...",className:"w-full bg-transparent text-sm text-light-900 outline-none placeholder:text-light-500"})),b.createElement(Ou,{"aria-label":"Country",className:H(UE,"max-h-60 overflow-y-auto"),items:o,onAction:s=>{const d=o.find(c=>c.code===s);d&&i(d)}},s=>b.createElement(zu,{id:s.code,textValue:`${s.name} ${s.dial_code}`},b.createElement("span",{className:"flex min-w-0 flex-1 items-center gap-2"},b.createElement("span",{className:"min-w-0 flex-1 truncate"},s.name),b.createElement("span",{className:"shrink-0 text-light-500"},s.dial_code))))))}const I1={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[2-467])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:48|5[0-3579]|[6-9])|7(?:20|32|8)|[89]","(?:31|4)6|51|6(?:485|5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:241|349)0\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|[34]\\d\\d)|91(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79]))))\\d{3}|(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8])|8(?:55|6[0-8]|[78]\\d|9[02-9]))\\d{6}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|2[23]"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","[024-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[024-7]"]]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","(?:01\\d|8)\\d{7}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["0"]]]],BL:["590","00","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["(?:59(?:0(?:2[7-9]|3[3-7]|5[12]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","(?:[2-7]\\d\\d|8001)\\d{5}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[23]|4[46]|50"]],["(\\d{8})","$1",["[5-7]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","[1-467]\\d{9,10}|55[0-46-9]\\d{8}|[34]\\d{7}|55\\d{7,8}|(?:5[0-46-9]|[89]\\d)\\d{7,9}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37|86)","300|4(?:0(?:0|20)|370|864)"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],BT:["975","00","[178]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-6]|7[246]|8[2-4]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|[78]"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","[2-9]\\d{9}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|5[07]|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|3[23]|44|66|77|88)|6(?:22|33))[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["5"],"0$1"]],"0"],CF:["236","00","8776\\d{4}|(?:[27]\\d|61)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-8]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["60|809"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9(?:10|[2-9])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-8]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]","(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["46"]],["(\\d{3})(\\d{7})","$1 $2",["6|90"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|9[14]"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["[56]"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9,10,11,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[03568]","15(?:[0568]|3[13])"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,0,[["528[89]\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|3[01]|5[0-5]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","(?:400|[5-9]\\d\\d)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[4-9]"]]]],ET:["251","00","(?:11|[2-57-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-57-9]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d{5})","$1",["20[2-59]"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["(?:[1-3]0|[68])0|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[14]|2[09]|50|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"],["(\\d)(\\d{4,9})","$1 $2",["(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,"0|180020",0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-5])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|5[01]))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","(?:694\\d|7093)\\d{5}|(?:59|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]|80[6-9]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0|180020","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","[235]\\d{8}|800\\d{5,6}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2358]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[48]\\d{8}|[2-9]\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|4(?:[0-35]|4[16-9])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[48]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|80[6-9]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["(?:59(?:0(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","[2-69]\\d{8}|80\\d{5,7}|[1-79]\\d{7}|6\\d{6}",[7,8,9],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6|7[245]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-57]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","[2-589]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13,14,15,16,17],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1(?:05|[2-9]))","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0|180020","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31)|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:3171|5[15][2-6]|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|8(?:16|2[014]|3[126]|6[136]|7[78]|83)(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|3[129]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7(?:[23569]|8[0-57-9])|8[1-6])|7(?:1(?:[013-8]|9[6-9])|3(?:17|2[0-49]|9[2-57])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|8(?:28[235-7]|3))|73179|807(?:1|9[1-3])|(?:1552|6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578])\\d|7(?:[23569]\\d|8[0-57-9])|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|3(?:2[0-49]|9[2-57])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["16|[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["18[06]","18[06]0"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,11}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11,12],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]|43"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[03]"]]],0,0,0,0,0,0,[["0(?:669[0-79]\\d{1,6}|831\\d{2,8})|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[2356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"],["3[2-9]\\d{7,8}|(?:31|43)\\d{8}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],["3[2-8]\\d{9,10}",[11,12]],0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0|180020","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|427|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[47]"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[25-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["3|4(?:2[09]|7[01])|6[1-9]","3|4(?:2(?:0|9[02-69])|7(?:0[019]|1))|6[1-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[25-9]"],"0$1"]],"0",0,"(000[2569]\\d{4,6})$|(?:(?:003768)0?)|0","$1"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[36]0|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","8\\d{13}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["3"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-6]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:[2457]\\d|33|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["4[67]|[56]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(0-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"0 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(0-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(0-$1)",1]],"0",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["20"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["20"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|78|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2679]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{4})(\\d{5})","$1-$2",["892"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8(?:0[0-7]|9)"],"0$1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[5-8]"],"0$1"]],"0",0,0,0,0,"[5-8]"],MC:["377","00","(?:[3489]|[67]\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[67]"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["(?:59(?:0(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|452|678|86","[12]|452|6788|86"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["11|2[16]"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670"],MQ:["596","00","7091\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|8(?:0[6-9]|[36])"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-37-9]"],"0$1"]],"0"],MX:["52","0[09]","[2-9]\\d{9}",[10],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"]]],0,0,0,0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[0467]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","(?:20|9\\d)\\d{8}|[78]\\d{9,13}",[10,11,12,13,14],[["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["20[129]"],"0$1"],["(\\d{4})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:222|444|(?:55|8\\d)\\d|666|777|999)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[24-9]"]]]],NU:["683","00","(?:[4-7]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["30|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","30|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","[78]\\d{8}|[2-9]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","[36-8]\\d{5,8}|4\\d{6,8}|59\\d{6}|9\\d{5,10}|(?:2\\d|5[0-8])\\d{6,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["3[289]|4[246-8]|61|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[136]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]]],RE:["262","00","709\\d{6}|(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"],"0$1"]],"0",0,0,0,0,0,[["2631[0-6]\\d{4}|26(?:2\\d|30|88)\\d{5}"],["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[0-3]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))\\d{4}"],["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,"[3489]",0,"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0"],SA:["966","00","(?:[15]\\d|800|92)\\d{7}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","[6-9]\\d{6}|[1-6]\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","(?:[2489]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10,12],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-9]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[013]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|9[2-9]"]],["(\\d)(\\d{7})","$1 $2",["[267]|904"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[346-9]"]]],"0"],SR:["597","00","(?:[2-5]|[6-9]\\d)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-9]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[25-7]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[25-7]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721"],SY:["963","00","[1-359]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-4]|5[1-3]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[59]"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649"],TD:["235","00|16","(?:22|[3689]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[236-9]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","(?:[0-57-9]\\d|66)\\d{7}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[02-479]|[34]7"]],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3(?:[1245]|3[12])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["\\d"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","[1-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["[67]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["826"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["83"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["82"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[25]0|37|49|8[09]"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-478])|7[1-9]","[23568]|4(?:0[2-48]|[1-478])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024","20240"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["20[0-35-7]|4(?:6[45]|[7-9])|[7-9]","20(?:[0135-7]|2[5-9])|4(?:6[45]|[7-9])|[7-9]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[2-4]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["(?:472[2-47-9]|983[2-57-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[02469]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-3]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-2478]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|2\\d{3,4}|(?:[49]\\d|80)\\d{5}",[4,5,6,7,8,9,10,11,12,13],[["(\\d{4,5})","$1",["21"]],["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","00","(?:20|33|[5-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"]]]],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11,12],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{6,7}|7\\d{6}",[7,8,9,10],[["(\\d{4})(\\d{4,6})","$1 $2",["1(?:2[02]|[89])"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[26]|6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[47-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}",[8,9,10,11,12],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2|39"],"0$1"],["(\\d{2})(\\d{7,10})","$1 $2",["3"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","(?:639\\d|7093)\\d{5}|(?:26|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["26(?:89\\d|9(?:0[0-467]|15|5[0-4]|6\\d|[78]0))\\d{4}"],["(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"],["80\\d{7}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|[579]\\d|63)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[579]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[235-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"],0,0,0,0,0,0,["2\\d{8}",[9]]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|5[12]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|5(?:0\\d{3}|2[0-2]))\\d{7}",[7,8,9,10,12]],0,0,0,["348[57]\\d{7}",[11]],0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};function Vu(e,t){var n=Array.prototype.slice.call(t);return n.push(I1),e.apply(this,n)}function M1(e,t){e=e.split("-"),t=t.split("-");for(var n=e[0].split("."),r=t[0].split("."),i=0;i<3;i++){var a=Number(n[i]),l=Number(r[i]);if(a>l)return 1;if(l>a)return-1;if(!isNaN(a)&&isNaN(l))return 1;if(isNaN(a)&&!isNaN(l))return-1}return e[1]&&t[1]?e[1]>t[1]?1:e[1]<t[1]?-1:0:!e[1]&&t[1]?1:e[1]&&!t[1]?-1:0}var ZE={}.constructor;function Fn(e){return e!=null&&e.constructor===ZE}var YE=/^\d+$/;function qE(e){return YE.test(e)}function ur(e){"@babel/helpers - typeof";return ur=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ur(e)}function Ua(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XE(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,JE(r.key),r)}}function Wa(e,t,n){return t&&XE(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function JE(e){var t=QE(e,"string");return ur(t)=="symbol"?t:t+""}function QE(e,t){if(ur(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ur(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ew="1.2.0",tw="1.7.35",K1=" ext. ",Me=(function(){function e(t){Ua(this,e),z1(t),this.metadata=t,V1.call(this,t)}return Wa(e,[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter(function(n){return n!=="001"})}},{key:"getCountryMetadata",value:function(n){return this.metadata.countries[n]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(n){return this.getCountryMetadata(n)!==void 0}},{key:"hasCallingCode",value:function(n){if(this.getCountryCodesForCallingCode(n))return!0;if(this.nonGeographic()){if(this.nonGeographic()[n])return!0}else{var r=this.countryCallingCodes()[n];if(r&&r.length===1&&r[0]==="001")return!0}}},{key:"isNonGeographicCallingCode",value:function(n){return this.nonGeographic()?!!this.nonGeographic()[n]:!this.getCountryCodesForCallingCode(n)}},{key:"country",value:function(n){return this.selectNumberingPlan(n)}},{key:"selectNumberingPlan",value:function(n,r){var i,a;if(n&&(qE(n)?a=n:i=n),r&&(a=r),i&&i!=="001"){var l=this.getCountryMetadata(i);if(!l)throw new Error("Unknown country: ".concat(i));this.numberingPlan=new L1(l,this)}else if(a){if(!this.hasCallingCode(a))throw new Error("Unknown calling code: ".concat(a));this.numberingPlan=new L1(this.getNumberingPlanMetadata(a),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(n){var r=this.countryCallingCodes()[n];if(r)return r.length===1&&r[0].length===3?void 0:r}},{key:"getCountryCodeForCallingCode",value:function(n){var r=this.getCountryCodesForCallingCode(n);if(r)return r[0]}},{key:"getNumberingPlanMetadata",value:function(n){var r=this.getCountryCodeForCallingCode(n);if(r)return this.getCountryMetadata(r);if(this.nonGeographic()){var i=this.nonGeographic()[n];if(i)return i}else{var a=this.countryCallingCodes()[n];if(a&&a.length===1&&a[0]==="001")return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(n){return this.numberingPlan.type(n)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(n){return this.selectNumberingPlan(n)}},{key:"hasSelectedNumberingPlan",value:function(){return this.numberingPlan!==void 0}}])})(),L1=(function(){function e(t,n){Ua(this,e),this.globalMetadataObject=n,this.metadata=t,V1.call(this,n.metadata)}return Wa(e,[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"_getDefaultCountryMetadataForThisCallingCode",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this._getDefaultCountryMetadataForThisCallingCode()}},{key:"IDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[1]}},{key:"defaultIDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[12]}},{key:"nationalNumberPattern",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:"possibleLengths",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:"_getFormats",value:function(n){return n[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var n=this,r=this._getFormats(this.metadata)||this._getFormats(this._getDefaultCountryMetadataForThisCallingCode())||[];return r.map(function(i){return new nw(i,n)})}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(n){return n[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this._getDefaultCountryMetadataForThisCallingCode())}},{key:"_nationalPrefixForParsing",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:"nationalPrefixForParsing",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:"_getNationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this._getDefaultCountryMetadataForThisCallingCode())}},{key:"leadingDigits",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return this.types()&&this.types().length===0?!1:!!this.types()}},{key:"type",value:function(n){if(this.hasTypes()&&O1(this.types(),n))return new iw(O1(this.types(),n),this)}},{key:"ext",value:function(){return this.v1||this.v2?K1:this.metadata[13]||K1}}])})(),nw=(function(){function e(t,n){Ua(this,e),this._format=t,this.metadata=n}return Wa(e,[{key:"pattern",value:function(){return this._format[0]}},{key:"format",value:function(){return this._format[1]}},{key:"leadingDigitsPatterns",value:function(){return this._format[2]||[]}},{key:"nationalPrefixFormattingRule",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"nationalPrefixIsMandatoryWhenFormattingInNationalFormat",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"usesNationalPrefix",value:function(){return!!(this.nationalPrefixFormattingRule()&&!rw.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}])})(),rw=/^\(?\$1\)?$/,iw=(function(){function e(t,n){Ua(this,e),this.type=t,this.metadata=n}return Wa(e,[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.type[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}])})();function O1(e,t){switch(t){case"FIXED_LINE":return e[0];case"MOBILE":return e[1];case"TOLL_FREE":return e[2];case"PREMIUM_RATE":return e[3];case"PERSONAL_NUMBER":return e[4];case"VOICEMAIL":return e[5];case"UAN":return e[6];case"PAGER":return e[7];case"VOIP":return e[8];case"SHARED_COST":return e[9]}}function z1(e){if(!e)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!Fn(e)||!Fn(e.countries))throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(Fn(e)?"an object of shape: { "+Object.keys(e).join(", ")+" }":"a "+aw(e)+": "+e,"."))}var aw=function(t){return ur(t)};function _u(e,t){var n=new Me(t);if(n.hasCountry(e))return n.selectNumberingPlan(e).countryCallingCode();throw new Error("Unknown country: ".concat(e))}function lw(e,t){return t.countries.hasOwnProperty(e)}function V1(e){var t=e.version;typeof t=="number"?(this.v1=t===1,this.v2=t===2,this.v3=t===3,this.v4=t===4):t?M1(t,ew)===-1?this.v2=!0:M1(t,tw)===-1?this.v3=!0:this.v4=!0:this.v1=!0}function ni(e,t,n){return ow(e,void 0,t,n)}function ow(e,t,n,r){n&&(r=new Me(r.metadata),r.selectNumberingPlan(n));var i=r.type(t),a=i&&i.possibleLengths()||r.possibleLengths();if(!a)return"IS_POSSIBLE";var l=e.length,o=a[0];return o===l?"IS_POSSIBLE":o>l?"TOO_SHORT":a[a.length-1]<l?"TOO_LONG":a.indexOf(l,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}function uw(e,t,n){t===void 0&&(t={});var r=new Me(n);if(t.v2){if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");r.selectNumberingPlan(e.country||e.countryCallingCode)}else{if(!e.phone)return!1;if(e.country){if(!r.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));r.selectNumberingPlan(e.country)}else{if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");r.selectNumberingPlan(e.countryCallingCode)}}if(r.possibleLengths())return _1(e.phone||e.nationalNumber,r);if(e.countryCallingCode&&r.isNonGeographicCallingCode(e.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}function _1(e,t){return ni(e,void 0,t)==="IS_POSSIBLE"}function _t(e,t){return e=e||"",new RegExp("^(?:"+t+")$").test(e)}function sw(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=dw(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
13
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dw(e,t){if(e){if(typeof e=="string")return R1(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?R1(e,t):void 0}}function R1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var cw=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function Ru(e,t,n){if(t=t||{},!(!e.country&&!e.countryCallingCode)){var r=new Me(n);r.selectNumberingPlan(e.country||e.countryCallingCode);var i=t.v2?e.nationalNumber:e.phone;if(_t(i,r.nationalNumberPattern())){if(ju(i,"FIXED_LINE",r))return r.type("MOBILE")&&r.type("MOBILE").pattern()===""||!r.type("MOBILE")||ju(i,"MOBILE",r)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE";for(var a=sw(cw),l;!(l=a()).done;){var o=l.value;if(ju(i,o,r))return o}}}}function ju(e,t,n){var r=n.type(t);return!r||!r.pattern()||r.possibleLengths()&&r.possibleLengths().indexOf(e.length)<0?!1:_t(e,r.pattern())}function fw(e,t,n){t=t||{};var r=new Me(n);if(r.selectNumberingPlan(e.country||e.countryCallingCode),r.hasTypes())return Ru(e,t,r.metadata)!==void 0;var i=t.v2?e.nationalNumber:e.phone;return _t(i,r.nationalNumberPattern())}var mw=/^[A-Z]{2}$/;function hw(e){return mw.test(e)}function pw(e,t){var n,r,i=new Me(t);return hw(e)?(n=e,i.selectNumberingPlan(n),r=i.countryCallingCode()):r=e,{country:n,callingCode:r}}function bw(e,t,n){var r=new Me(n),i=r.getCountryCodesForCallingCode(e);return i?i.filter(function(a){return gw(t,a,n)}):[]}function gw(e,t,n){var r=new Me(n);return r.selectNumberingPlan(t),r.numberingPlan.possibleLengths().indexOf(e.length)>=0}var Hu=2,yw=17,$w=3,Ue="0-90-9٠-٩۰-۹",vw="-‐-―−ー-",xw="//",Cw="..",Dw=" ",Ew="()()[]\\[\\]",ww="~⁓∼~",ct="".concat(vw).concat(xw).concat(Cw).concat(Dw).concat(Ew).concat(ww),Ga="++",Sw=new RegExp("(["+Ue+"])");function j1(e,t,n,r){if(t){var i=new Me(r);i.selectNumberingPlan(t||n);var a=new RegExp(i.IDDPrefix());if(e.search(a)===0){e=e.slice(e.match(a)[0].length);var l=e.match(Sw);if(!(l&&l[1]!=null&&l[1].length>0&&l[1]==="0"))return e}}}function Uu(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var n=new RegExp("^(?:"+t.numberingPlan.nationalPrefixForParsing()+")"),r=n.exec(e);if(r){var i,a,l=r.length-1,o=l>0&&r[l];if(t.nationalPrefixTransformRule()&&o)i=e.replace(n,t.nationalPrefixTransformRule()),l>1&&(a=r[1]);else{var s=r[0];i=e.slice(s.length),o&&(a=r[1])}var d;if(o){var c=e.indexOf(r[1]),f=e.slice(0,c);f===t.numberingPlan.nationalPrefix()&&(d=t.numberingPlan.nationalPrefix())}else d=r[0];return{nationalNumber:i,nationalPrefix:d,carrierCode:a}}}return{nationalNumber:e}}function Pw(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=kw(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
14
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kw(e,t){if(e){if(typeof e=="string")return H1(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?H1(e,t):void 0}}function H1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function U1(e,t,n){for(var r=new Me(n),i=Pw(t),a;!(a=i()).done;){var l=a.value;if(r.selectNumberingPlan(l),r.leadingDigits()){if(e&&e.search(r.leadingDigits())===0)return l}else if(Ru({phone:e,country:l},void 0,r.metadata))return l}}function Wu(e,t){var n=t.nationalNumber,r=t.metadata,i=r.getCountryCodesForCallingCode(e);if(i)return i.length===1?i[0]:U1(n,i,r.metadata)}function Gu(e,t,n){var r=Uu(e,n),i=r.carrierCode,a=r.nationalNumber;if(a!==e){if(!Bw(e,a,n))return{nationalNumber:e};if(n.numberingPlan.possibleLengths()&&(t||(t=Wu(n.numberingPlan.callingCode(),{nationalNumber:a,metadata:n})),!Nw(a,t,n)))return{nationalNumber:e}}return{nationalNumber:a,carrierCode:i}}function Bw(e,t,n){return!(_t(e,n.nationalNumberPattern())&&!_t(t,n.nationalNumberPattern()))}function Nw(e,t,n){switch(ni(e,t,n)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}function W1(e,t,n,r,i){if(!(t||n||r))return{number:e};var a=t||n?_u(t||n,i):r;if(e.indexOf(a)===0){var l=new Me(i);l.selectNumberingPlan(t||n||r);var o=e.slice(a.length),s=Gu(o,void 0,l),d=s.nationalNumber,c=Gu(e,void 0,l),f=c.nationalNumber;if(!_t(f,l.nationalNumberPattern())&&_t(d,l.nationalNumberPattern())||ni(f,void 0,l)==="TOO_LONG")return{countryCallingCode:a,number:o}}return{number:e}}function Zu(e,t,n,r,i){if(!e)return{};var a;if(e[0]!=="+"){var l=j1(e,t||n,r,i);if(l&&l!==e)a=!0,e="+"+l;else{if(t||n||r){var o=W1(e,t,n,r,i),s=o.countryCallingCode,d=o.number;if(s)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:s,number:d}}return{number:e}}}if(e[1]==="0")return{};for(var c=new Me(i),f=2;f-1<=$w&&f<=e.length;){var m=e.slice(1,f);if(c.hasCallingCode(m))return c.selectNumberingPlan(m),{countryCallingCodeSource:a?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:m,number:e.slice(f)};f++}return{}}function G1(e){return e.replace(new RegExp("[".concat(ct,"]+"),"g")," ").trim()}var Z1=/(\$\d)/;function Y1(e,t,n){var r=n.useInternationalFormat,i=n.withNationalPrefix;n.carrierCode,n.metadata;var a=e.replace(new RegExp(t.pattern()),r?t.internationalFormat():i&&t.nationalPrefixFormattingRule()?t.format().replace(Z1,t.nationalPrefixFormattingRule()):t.format());return r?G1(a):a}var Aw=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function Fw(e,t,n){var r=new Me(n);if(r.selectNumberingPlan(e||t),r.defaultIDDPrefix())return r.defaultIDDPrefix();if(Aw.test(r.IDDPrefix()))return r.IDDPrefix()}var Tw=";ext=",sr=function(t){return"([".concat(Ue,"]{1,").concat(t,"})")};function q1(e){var t="20",n="15",r="9",i="6",a="[ \\t,]*",l="[:\\..]?[ \\t,-]*",o="#?",s="(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)",d="(?:[xx##~~]|int|int)",c="[- ]+",f="[ \\t]*",m="(?:,{2}|;)",h=Tw+sr(t),p=a+s+l+sr(t)+o,g=a+d+l+sr(r)+o,y=c+sr(i)+"#",$=f+m+l+sr(n)+o,x=f+"(?:,)+"+l+sr(r)+o;return h+"|"+p+"|"+g+"|"+y+"|"+$+"|"+x}var Iw="["+Ue+"]{"+Hu+"}",Mw="["+Ga+"]{0,1}(?:["+ct+"]*["+Ue+"]){3,}["+ct+Ue+"]*",Kw=new RegExp("^["+Ga+"]{0,1}(?:["+ct+"]*["+Ue+"]){1,2}$","i"),Lw=Mw+"(?:"+q1()+")?",Ow=new RegExp("^"+Iw+"$|^"+Lw+"$","i");function zw(e){return e.length>=Hu&&Ow.test(e)}function Vw(e){return Kw.test(e)}function _w(e){var t=e.number,n=e.ext;if(!t)return"";if(t[0]!=="+")throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(t).concat(n?";ext="+n:"")}var X1={formatExtension:function(t,n,r){return"".concat(t).concat(r.ext()).concat(n)}};function Rw(e,t,n,r){n?n=Uw({},X1,n):n=X1;var i=new Me(r);if(e.country&&e.country!=="001"){if(!i.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));i.selectNumberingPlan(e.country)}else if(e.countryCallingCode)i.selectNumberingPlan(e.countryCallingCode);else return e.phone||"";var a=i.countryCallingCode(),l=n.v2?e.nationalNumber:e.phone,o;switch(t){case"NATIONAL":return l?(o=Za(l,e.carrierCode,"NATIONAL",i,n),Yu(o,e.ext,i,n.formatExtension)):"";case"INTERNATIONAL":return l?(o=Za(l,null,"INTERNATIONAL",i,n),o="+".concat(a," ").concat(o),Yu(o,e.ext,i,n.formatExtension)):"+".concat(a);case"E.164":return"+".concat(a).concat(l);case"RFC3966":return _w({number:"+".concat(a).concat(l),ext:e.ext});case"IDD":if(!n.fromCountry)return;var s=Hw(l,e.carrierCode,a,n.fromCountry,i);return s?Yu(s,e.ext,i,n.formatExtension):void 0;default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t,'"'))}}function Za(e,t,n,r,i){var a=jw(r.formats(),e);return a?Y1(e,a,{useInternationalFormat:n==="INTERNATIONAL",withNationalPrefix:!(a.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&i&&i.nationalPrefix===!1),carrierCode:t,metadata:r}):e}function jw(e,t){return Ww(e,function(n){if(n.leadingDigitsPatterns().length>0){var r=n.leadingDigitsPatterns()[n.leadingDigitsPatterns().length-1];if(t.search(r)!==0)return!1}return _t(t,n.pattern())})}function Yu(e,t,n,r){return t?r(e,t,n):e}function Hw(e,t,n,r,i){var a=_u(r,i.metadata);if(a===n){var l=Za(e,t,"NATIONAL",i);return n==="1"?n+" "+l:l}var o=Fw(r,void 0,i.metadata);if(o)return"".concat(o," ").concat(n," ").concat(Za(e,null,"INTERNATIONAL",i))}function Uw(){for(var e=1,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(;e<n.length;){if(n[e])for(var i in n[e])n[0][i]=n[e][i];e++}return n[0]}function Ww(e,t){for(var n=0;n<e.length;){if(t(e[n]))return e[n];n++}}function ri(e){"@babel/helpers - typeof";return ri=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ri(e)}function J1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Q1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?J1(Object(n),!0).forEach(function(r){Gw(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Gw(e,t,n){return(t=ey(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zw(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yw(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ey(r.key),r)}}function qw(e,t,n){return t&&Yw(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ey(e){var t=Xw(e,"string");return ri(t)=="symbol"?t:t+""}function Xw(e,t){if(ri(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ri(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ty=(function(){function e(t,n,r){if(Zw(this,e),!t)throw new TypeError("First argument is required");if(typeof t!="string")throw new TypeError("First argument must be a string");if(t[0]==="+"&&!n)throw new TypeError("`metadata` argument not passed");if(Fn(n)&&Fn(n.countries)){r=n;var i=t;if(!Jw.test(i))throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');var a=Zu(i,void 0,void 0,void 0,r),l=a.countryCallingCode,o=a.number;if(n=o,t=l,!n)throw new Error("Invalid `number` argument passed: too short")}if(!n)throw new TypeError("`nationalNumber` argument is required");if(typeof n!="string")throw new TypeError("`nationalNumber` argument must be a string");z1(r);var s=pw(t,r),d=s.country,c=s.callingCode;this.country=d,this.countryCallingCode=c,this.nationalNumber=n,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return r}}return qw(e,[{key:"setExt",value:function(n){this.ext=n}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:bw(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return uw(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return fw(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){var n=new Me(this.getMetadata());return n.isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(n){return this.number===n.number&&this.ext===n.ext}},{key:"getType",value:function(){return Ru(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(n,r){return Rw(this,n,r?Q1(Q1({},r),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:"formatNational",value:function(n){return this.format("NATIONAL",n)}},{key:"formatInternational",value:function(n){return this.format("INTERNATIONAL",n)}},{key:"getURI",value:function(n){return this.format("RFC3966",n)}}])})(),Jw=/^\+\d+$/;function qu(e){"@babel/helpers - typeof";return qu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qu(e)}function Qw(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}function eS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tS(e,t,n){return t=ai(t),nS(e,Ju()?Reflect.construct(t,n||[],ai(e).constructor):t.apply(e,n))}function nS(e,t){if(t&&(qu(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rS(e)}function rS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iS(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ii(e,t)}function Xu(e){var t=typeof Map=="function"?new Map:void 0;return Xu=function(r){if(r===null||!lS(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return aS(r,arguments,ai(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),ii(i,r)},Xu(e)}function aS(e,t,n){if(Ju())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&ii(i,n.prototype),i}function Ju(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ju=function(){return!!e})()}function lS(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function ii(e,t){return ii=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},ii(e,t)}function ai(e){return ai=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ai(e)}var Rt=(function(e){function t(n){var r;return eS(this,t),r=tS(this,t,[n]),Object.setPrototypeOf(r,t.prototype),r.name=r.constructor.name,r}return iS(t,e),Qw(t)})(Xu(Error)),ny=new RegExp("(?:"+q1()+")$","i");function oS(e){var t=e.search(ny);if(t<0)return{};for(var n=e.slice(0,t),r=e.match(ny),i=1;i<r.length;){if(r[i])return{number:n,ext:r[i]};i++}}function uS(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=sS(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
15
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sS(e,t){if(e){if(typeof e=="string")return ry(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ry(e,t):void 0}}function ry(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var dS={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9"};function iy(e){return dS[e]}function Ya(e){for(var t="",n=uS(e.split("")),r;!(r=n()).done;){var i=r.value,a=iy(i);a&&(t+=a)}return t}function cS(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=fS(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
16
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fS(e,t){if(e){if(typeof e=="string")return ay(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ay(e,t):void 0}}function ay(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ly(e){for(var t="",n=cS(e.split("")),r;!(r=n()).done;){var i=r.value;t+=mS(i,t)||""}return t}function mS(e,t,n){return e==="+"?t?void 0:"+":iy(e)}var oy="+",hS="[\\-\\.\\(\\)]?",uy="(["+Ue+"]|"+hS+")",pS="^\\"+oy+uy+"*["+Ue+"]"+uy+"*$",bS=new RegExp(pS,"g"),Qu=Ue,gS="["+Qu+"]+((\\-)*["+Qu+"])*",yS="a-zA-Z",$S="["+yS+"]+((\\-)*["+Qu+"])*",vS="^("+gS+"\\.)*"+$S+"\\.?$",xS=new RegExp(vS,"g"),sy="tel:",es=";phone-context=",CS=";isub=";function DS(e){var t=e.indexOf(es);if(t<0)return null;var n=t+es.length;if(n>=e.length)return"";var r=e.indexOf(";",n);return r>=0?e.substring(n,r):e.substring(n)}function ES(e){return e===null?!0:e.length===0?!1:bS.test(e)||xS.test(e)}function wS(e,t){var n=t.extractFormattedPhoneNumber,r=DS(e);if(!ES(r))throw new Rt("NOT_A_NUMBER");var i;if(r===null)i=n(e)||"";else{i="",r.charAt(0)===oy&&(i+=r);var a=e.indexOf(sy),l;a>=0?l=a+sy.length:l=0;var o=e.indexOf(es);i+=e.substring(l,o)}var s=i.indexOf(CS);if(s>0&&(i=i.substring(0,s)),i!=="")return i}var SS=250,PS=new RegExp("["+Ga+Ue+"]"),kS=new RegExp("[^"+Ue+"#]+$");function BS(e,t,n){t=t||{};var r=new Me(n);if(t.defaultCountry&&!r.hasCountry(t.defaultCountry))throw t.v2?new Rt("INVALID_COUNTRY"):new Error("Unknown country: ".concat(t.defaultCountry));var i=AS(e,t.v2,t.extract),a=i.number,l=i.ext,o=i.error;if(!a){if(t.v2)throw o==="TOO_SHORT"?new Rt("TOO_SHORT"):new Rt("NOT_A_NUMBER");return{}}var s=TS(a,t.defaultCountry,t.defaultCallingCode,r),d=s.country,c=s.nationalNumber,f=s.countryCallingCode,m=s.countryCallingCodeSource,h=s.carrierCode;if(!r.hasSelectedNumberingPlan()){if(t.v2)throw new Rt("INVALID_COUNTRY");return{}}if(!c||c.length<Hu){if(t.v2)throw new Rt("TOO_SHORT");return{}}if(c.length>yw){if(t.v2)throw new Rt("TOO_LONG");return{}}if(t.v2){var p=new ty(f,c,r.metadata);return d&&(p.country=d),h&&(p.carrierCode=h),l&&(p.ext=l),p.__countryCallingCodeSource=m,p}var g=(t.extended?r.hasSelectedNumberingPlan():d)?_t(c,r.nationalNumberPattern()):!1;return t.extended?{country:d,countryCallingCode:f,carrierCode:h,valid:g,possible:g?!0:!!(t.extended===!0&&r.possibleLengths()&&_1(c,r)),phone:c,ext:l}:g?FS(d,c,l):{}}function NS(e,t,n){if(e){if(e.length>SS){if(n)throw new Rt("TOO_LONG");return}if(t===!1)return e;var r=e.search(PS);if(!(r<0))return e.slice(r).replace(kS,"")}}function AS(e,t,n){var r=wS(e,{extractFormattedPhoneNumber:function(l){return NS(l,n,t)}});if(!r)return{};if(!zw(r))return Vw(r)?{error:"TOO_SHORT"}:{};var i=oS(r);return i.ext?i:{number:r}}function FS(e,t,n){var r={country:e,phone:t};return n&&(r.ext=n),r}function TS(e,t,n,r){var i=Zu(ly(e),void 0,t,n,r.metadata),a=i.countryCallingCodeSource,l=i.countryCallingCode,o=i.number,s;if(l)r.selectNumberingPlan(l);else if(o&&(t||n))t?(s=t,r.selectNumberingPlan(t),l=r.numberingPlan.callingCode()):(r.selectNumberingPlan(n),l=n);else return{};if(!o)return{countryCallingCodeSource:a,countryCallingCode:l};var d=Gu(ly(o),void 0,r),c=d.nationalNumber,f=d.carrierCode,m=Wu(l,{nationalNumber:c,metadata:r});return m&&(s=m,m==="001"||r.selectNumberingPlan(s)),{country:s,countryCallingCode:l,countryCallingCodeSource:a,nationalNumber:c,carrierCode:f}}function li(e){"@babel/helpers - typeof";return li=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},li(e)}function dy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function cy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dy(Object(n),!0).forEach(function(r){IS(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dy(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function IS(e,t,n){return(t=MS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MS(e){var t=KS(e,"string");return li(t)=="symbol"?t:t+""}function KS(e,t){if(li(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(li(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function LS(e,t,n){return BS(e,cy(cy({},t),{},{v2:!0}),n)}function oi(e){"@babel/helpers - typeof";return oi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oi(e)}function fy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function OS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fy(Object(n),!0).forEach(function(r){zS(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fy(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zS(e,t,n){return(t=VS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VS(e){var t=_S(e,"string");return oi(t)=="symbol"?t:t+""}function _S(e,t){if(oi(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(oi(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function RS(e,t){return WS(e)||US(e,t)||HS(e,t)||jS()}function jS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
17
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function HS(e,t){if(e){if(typeof e=="string")return my(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?my(e,t):void 0}}function my(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function US(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,l,o=[],s=!0,d=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(s=(r=a.call(n)).done)&&(o.push(r.value),o.length!==t);s=!0);}catch(c){d=!0,i=c}finally{try{if(!s&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw i}}return o}}function WS(e){if(Array.isArray(e))return e}function GS(e){var t=Array.prototype.slice.call(e),n=RS(t,4),r=n[0],i=n[1],a=n[2],l=n[3],o,s,d;if(typeof r=="string")o=r;else throw new TypeError("A text for parsing must be a string.");if(!i||typeof i=="string")l?(s=a,d=l):(s=void 0,d=a),i&&(s=OS({defaultCountry:i},s));else if(Fn(i))a?(s=i,d=a):d=i;else throw new Error("Invalid second argument: ".concat(i));return{text:o,options:s,metadata:d}}function ui(e){"@babel/helpers - typeof";return ui=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ui(e)}function hy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function py(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hy(Object(n),!0).forEach(function(r){ZS(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hy(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ZS(e,t,n){return(t=YS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YS(e){var t=qS(e,"string");return ui(t)=="symbol"?t:t+""}function qS(e,t){if(ui(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ui(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function XS(e,t,n){t&&t.defaultCountry&&!lw(t.defaultCountry,n)&&(t=py(py({},t),{},{defaultCountry:void 0}));try{return LS(e,t,n)}catch(r){if(!(r instanceof Rt))throw r}}function JS(){var e=GS(arguments),t=e.text,n=e.options,r=e.metadata;return XS(t,n,r)}function si(e){"@babel/helpers - typeof";return si=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},si(e)}function QS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,nP(r.key),r)}}function tP(e,t,n){return t&&eP(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function nP(e){var t=rP(e,"string");return si(t)=="symbol"?t:t+""}function rP(e,t){if(si(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(si(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var iP=(function(){function e(t){var n=t.onCountryChange,r=t.onCallingCodeChange;QS(this,e),this.onCountryChange=n,this.onCallingCodeChange=r}return tP(e,[{key:"reset",value:function(n){var r=n.country,i=n.callingCode;this.international=!1,this.missingPlus=!1,this.IDDPrefix=void 0,this.callingCode=void 0,this.digits="",this.resetNationalSignificantNumber(),this.initCountryAndCallingCode(r,i)}},{key:"resetNationalSignificantNumber",value:function(){this.nationalSignificantNumber=this.getNationalDigits(),this.nationalSignificantNumberIsModified=!1,this.nationalPrefix=void 0,this.carrierCode=void 0,this.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix=void 0}},{key:"update",value:function(n){for(var r=0,i=Object.keys(n);r<i.length;r++){var a=i[r];this[a]=n[a]}}},{key:"initCountryAndCallingCode",value:function(n,r){this.setCountry(n),this.setCallingCode(r)}},{key:"setCountry",value:function(n){this.country=n,this.onCountryChange(n)}},{key:"setCallingCode",value:function(n){this.callingCode=n,this.onCallingCodeChange(n,this.country)}},{key:"startInternationalNumber",value:function(n,r){this.international=!0,this.initCountryAndCallingCode(n,r)}},{key:"appendDigits",value:function(n){this.digits+=n}},{key:"appendNationalSignificantNumberDigits",value:function(n){this.nationalSignificantNumber+=n}},{key:"getNationalDigits",value:function(){return this.international?this.digits.slice((this.IDDPrefix?this.IDDPrefix.length:0)+(this.callingCode?this.callingCode.length:0)):this.digits}},{key:"getDigitsWithoutInternationalPrefix",value:function(){return this.international&&this.IDDPrefix?this.digits.slice(this.IDDPrefix.length):this.digits}}])})();function aP(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=lP(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
18
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lP(e,t){if(e){if(typeof e=="string")return by(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?by(e,t):void 0}}function by(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var ft="x",ts=new RegExp(ft);function qa(e,t){if(t<1)return"";for(var n="";t>1;)t&1&&(n+=e),t>>=1,e+=e;return n+e}function gy(e,t){return e[t]===")"&&t++,oP(e.slice(0,t))}function oP(e){for(var t=[],n=0;n<e.length;)e[n]==="("?t.push(n):e[n]===")"&&t.pop(),n++;var r=0,i="";t.push(e.length);for(var a=0,l=t;a<l.length;a++){var o=l[a];i+=e.slice(r,o),r=o+1}return i}function uP(e,t,n){for(var r=aP(n.split("")),i;!(i=r()).done;){var a=i.value;if(e.slice(t+1).search(ts)<0)return;t=e.search(ts),e=e.replace(ts,a)}return[e,t]}function sP(e,t,n){var r=n.metadata,i=n.shouldTryNationalPrefixFormattingRule,a=n.getSeparatorAfterNationalPrefix,l=new RegExp("^(?:".concat(t.pattern(),")$"));if(l.test(e.nationalSignificantNumber))return cP(e,t,{metadata:r,shouldTryNationalPrefixFormattingRule:i,getSeparatorAfterNationalPrefix:a})}function dP(e,t){return ni(e,void 0,t)==="IS_POSSIBLE"}function cP(e,t,n){var r=n.metadata,i=n.shouldTryNationalPrefixFormattingRule,a=n.getSeparatorAfterNationalPrefix;if(e.nationalSignificantNumber,e.international,e.nationalPrefix,e.carrierCode,i(t)){var l=yy(e,t,{useNationalPrefixFormattingRule:!0,getSeparatorAfterNationalPrefix:a,metadata:r});if(l)return l}return yy(e,t,{useNationalPrefixFormattingRule:!1,getSeparatorAfterNationalPrefix:a,metadata:r})}function yy(e,t,n){var r=n.metadata,i=n.useNationalPrefixFormattingRule,a=n.getSeparatorAfterNationalPrefix,l=Y1(e.nationalSignificantNumber,t,{carrierCode:e.carrierCode,useInternationalFormat:e.international,withNationalPrefix:i,metadata:r});if(i||(e.nationalPrefix?l=e.nationalPrefix+a(t)+l:e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix&&(l=e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix+" "+l)),fP(l,e))return l}function fP(e,t){return Ya(e)===t.getNationalDigits()}function di(e){"@babel/helpers - typeof";return di=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},di(e)}function mP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,bP(r.key),r)}}function pP(e,t,n){return t&&hP(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function bP(e){var t=gP(e,"string");return di(t)=="symbol"?t:t+""}function gP(e,t){if(di(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(di(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var yP=(function(){function e(){mP(this,e)}return pP(e,[{key:"parse",value:function(n){if(this.context=[{or:!0,instructions:[]}],this.parsePattern(n),this.context.length!==1)throw new Error("Non-finalized contexts left when pattern parse ended");var r=this.context[0],i=r.branches,a=r.instructions;if(i)return{op:"|",args:i.concat([ns(a)])};if(a.length===0)throw new Error("Pattern is required");return a.length===1?a[0]:a}},{key:"startContext",value:function(n){this.context.push(n)}},{key:"endContext",value:function(){this.context.pop()}},{key:"getContext",value:function(){return this.context[this.context.length-1]}},{key:"parsePattern",value:function(n){if(!n)throw new Error("Pattern is required");var r=n.match(xP);if(!r){if(vP.test(n))throw new Error("Illegal characters found in a pattern: ".concat(n));this.getContext().instructions=this.getContext().instructions.concat(n.split(""));return}var i=r[1],a=n.slice(0,r.index),l=n.slice(r.index+i.length);switch(i){case"(?:":a&&this.parsePattern(a),this.startContext({or:!0,instructions:[],branches:[]});break;case")":if(!this.getContext().or)throw new Error('")" operator must be preceded by "(?:" operator');if(a&&this.parsePattern(a),this.getContext().instructions.length===0)throw new Error('No instructions found after "|" operator in an "or" group');var o=this.getContext(),s=o.branches;s.push(ns(this.getContext().instructions)),this.endContext(),this.getContext().instructions.push({op:"|",args:s});break;case"|":if(!this.getContext().or)throw new Error('"|" operator can only be used inside "or" groups');if(a&&this.parsePattern(a),!this.getContext().branches)if(this.context.length===1)this.getContext().branches=[];else throw new Error('"branches" not found in an "or" group context');this.getContext().branches.push(ns(this.getContext().instructions)),this.getContext().instructions=[];break;case"[":a&&this.parsePattern(a),this.startContext({oneOfSet:!0});break;case"]":if(!this.getContext().oneOfSet)throw new Error('"]" operator must be preceded by "[" operator');this.endContext(),this.getContext().instructions.push({op:"[]",args:$P(a)});break;default:throw new Error("Unknown operator: ".concat(i))}l&&this.parsePattern(l)}}])})();function $P(e){for(var t=[],n=0;n<e.length;){if(e[n]==="-"){if(n===0||n===e.length-1)throw new Error("Couldn't parse a one-of set pattern: ".concat(e));for(var r=e[n-1].charCodeAt(0)+1,i=e[n+1].charCodeAt(0)-1,a=r;a<=i;)t.push(String.fromCharCode(a)),a++}else t.push(e[n]);n++}return t}var vP=/[\(\)\[\]\?\:\|]/,xP=new RegExp("(\\||\\(\\?\\:|\\)|\\[|\\])");function ns(e){return e.length===1?e[0]:e}function $y(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=CP(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
19
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function CP(e,t){if(e){if(typeof e=="string")return vy(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vy(e,t):void 0}}function vy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ci(e){"@babel/helpers - typeof";return ci=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ci(e)}function DP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function EP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,SP(r.key),r)}}function wP(e,t,n){return t&&EP(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function SP(e){var t=PP(e,"string");return ci(t)=="symbol"?t:t+""}function PP(e,t){if(ci(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ci(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var kP=(function(){function e(t){DP(this,e),this.matchTree=new yP().parse(t)}return wP(e,[{key:"match",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.allowOverflow;if(!n)throw new Error("String is required");var a=rs(n.split(""),this.matchTree,!0);if(a&&a.match&&delete a.matchedChars,!(a&&a.overflow&&!i))return a}}])})();function rs(e,t,n){if(typeof t=="string"){var r=e.join("");return t.indexOf(r)===0?e.length===t.length?{match:!0,matchedChars:e}:{partialMatch:!0}:r.indexOf(t)===0?n&&e.length>t.length?{overflow:!0}:{match:!0,matchedChars:e.slice(0,t.length)}:void 0}if(Array.isArray(t)){for(var i=e.slice(),a=0;a<t.length;){var l=t[a],o=rs(i,l,n&&a===t.length-1);if(o){if(o.overflow)return o;if(o.match){if(i=i.slice(o.matchedChars.length),i.length===0)return a===t.length-1?{match:!0,matchedChars:e}:{partialMatch:!0}}else{if(o.partialMatch)return{partialMatch:!0};throw new Error(`Unsupported match result:
|
|
20
|
+
`.concat(JSON.stringify(o,null,2)))}}else return;a++}return n?{overflow:!0}:{match:!0,matchedChars:e.slice(0,e.length-i.length)}}switch(t.op){case"|":for(var s,d=$y(t.args),c;!(c=d()).done;){var f=c.value,m=rs(e,f,n);if(m){if(m.overflow)return m;if(m.match)return{match:!0,matchedChars:m.matchedChars};if(m.partialMatch)s=!0;else throw new Error(`Unsupported match result:
|
|
21
|
+
`.concat(JSON.stringify(m,null,2)))}}return s?{partialMatch:!0}:void 0;case"[]":for(var h=$y(t.args),p;!(p=h()).done;){var g=p.value;if(e[0]===g)return e.length===1?{match:!0,matchedChars:e}:n?{overflow:!0}:{match:!0,matchedChars:[g]}}return;default:throw new Error("Unsupported instruction tree: ".concat(t))}}function fi(e){"@babel/helpers - typeof";return fi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fi(e)}function xy(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=BP(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
22
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BP(e,t){if(e){if(typeof e=="string")return Cy(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Cy(e,t):void 0}}function Cy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function NP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function AP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,TP(r.key),r)}}function FP(e,t,n){return t&&AP(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function TP(e){var t=IP(e,"string");return fi(t)=="symbol"?t:t+""}function IP(e,t){if(fi(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(fi(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var is="9",MP=15,KP=qa(is,MP),LP=/[- ]/,OP=function(){return/\[([^\[\]])*\]/g},zP=function(){return/\d(?=[^,}][^,}])/g},VP=new RegExp("["+ct+"]*\\$1["+ct+"]*(\\$\\d["+ct+"]*)*$"),Dy=3,_P=(function(){function e(t){t.state;var n=t.metadata;NP(this,e),this.metadata=n,this.resetFormat()}return FP(e,[{key:"resetFormat",value:function(){this.chosenFormat=void 0,this.template=void 0,this.nationalNumberTemplate=void 0,this.populatedNationalNumberTemplate=void 0,this.populatedNationalNumberTemplatePosition=-1}},{key:"reset",value:function(n,r){this.resetFormat(),n?(this.isNANP=n.callingCode()==="1",this.matchingFormats=n.formats(),r.nationalSignificantNumber&&this.narrowDownMatchingFormats(r)):(this.isNANP=void 0,this.matchingFormats=[])}},{key:"format",value:function(n,r){var i=this;if(dP(r.nationalSignificantNumber,this.metadata))for(var a=xy(this.matchingFormats),l;!(l=a()).done;){var o=l.value,s=sP(r,o,{metadata:this.metadata,shouldTryNationalPrefixFormattingRule:function(c){return i.shouldTryNationalPrefixFormattingRule(c,{international:r.international,nationalPrefix:r.nationalPrefix})},getSeparatorAfterNationalPrefix:function(c){return i.getSeparatorAfterNationalPrefix(c)}});if(s)return this.resetFormat(),this.chosenFormat=o,this.setNationalNumberTemplate(s.replace(/\d/g,ft),r),this.populatedNationalNumberTemplate=s,this.populatedNationalNumberTemplatePosition=this.template.lastIndexOf(ft),s}return this.formatNationalNumberWithNextDigits(n,r)}},{key:"formatNationalNumberWithNextDigits",value:function(n,r){var i=this.chosenFormat,a=this.chooseFormat(r);if(a)return a===i?this.formatNextNationalNumberDigits(n):this.formatNextNationalNumberDigits(r.getNationalDigits())}},{key:"narrowDownMatchingFormats",value:function(n){var r=this,i=n.nationalSignificantNumber,a=n.nationalPrefix,l=n.international,o=i,s=o.length-Dy;s<0&&(s=0),this.matchingFormats=this.matchingFormats.filter(function(d){return r.formatSuits(d,l,a)&&r.formatMatches(d,o,s)}),this.chosenFormat&&this.matchingFormats.indexOf(this.chosenFormat)===-1&&this.resetFormat()}},{key:"formatSuits",value:function(n,r,i){return!(i&&!n.usesNationalPrefix()&&!n.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!r&&!i&&n.nationalPrefixIsMandatoryWhenFormattingInNationalFormat())}},{key:"formatMatches",value:function(n,r,i){var a=n.leadingDigitsPatterns().length;if(a===0)return!0;i=Math.min(i,a-1);var l=n.leadingDigitsPatterns()[i];if(r.length<Dy)try{return new kP(l).match(r,{allowOverflow:!0})!==void 0}catch(o){return console.error(o),!0}return new RegExp("^(".concat(l,")")).test(r)}},{key:"getFormatFormat",value:function(n,r){return r?n.internationalFormat():n.format()}},{key:"chooseFormat",value:function(n){for(var r=this,i=function(){var d=o.value;return r.chosenFormat===d?0:VP.test(r.getFormatFormat(d,n.international))?r.createTemplateForFormat(d,n)?(r.chosenFormat=d,0):(r.matchingFormats=r.matchingFormats.filter(function(c){return c!==d}),1):1},a,l=xy(this.matchingFormats.slice()),o;!(o=l()).done&&(a=i(),a!==0););return this.chosenFormat||this.resetFormat(),this.chosenFormat}},{key:"createTemplateForFormat",value:function(n,r){if(!(n.pattern().indexOf("|")>=0)){var i=this.getTemplateForFormat(n,r);if(i)return this.setNationalNumberTemplate(i,r),!0}}},{key:"getSeparatorAfterNationalPrefix",value:function(n){return this.isNANP||n&&n.nationalPrefixFormattingRule()&&LP.test(n.nationalPrefixFormattingRule())?" ":""}},{key:"getInternationalPrefixBeforeCountryCallingCode",value:function(n,r){var i=n.IDDPrefix,a=n.missingPlus;return i?r&&r.spacing===!1?i:i+" ":a?"":"+"}},{key:"getTemplate",value:function(n){if(this.template){for(var r=-1,i=0,a=n.international?this.getInternationalPrefixBeforeCountryCallingCode(n,{spacing:!1}):"";i<a.length+n.getDigitsWithoutInternationalPrefix().length;)r=this.template.indexOf(ft,r+1),i++;return gy(this.template,r+1)}}},{key:"setNationalNumberTemplate",value:function(n,r){this.nationalNumberTemplate=n,this.populatedNationalNumberTemplate=n,this.populatedNationalNumberTemplatePosition=-1,r.international?this.template=this.getInternationalPrefixBeforeCountryCallingCode(r).replace(/[\d\+]/g,ft)+qa(ft,r.callingCode.length)+" "+n:this.template=n}},{key:"getTemplateForFormat",value:function(n,r){var i=r.nationalSignificantNumber,a=r.international,l=r.nationalPrefix,o=r.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix,s=n.pattern();s=s.replace(OP(),"\\d").replace(zP(),"\\d");var d=KP.match(s)[0];if(!(i.length>d.length)){var c=new RegExp("^"+s+"$"),f=i.replace(/\d/g,is);c.test(f)&&(d=f);var m=this.getFormatFormat(n,a),h;if(this.shouldTryNationalPrefixFormattingRule(n,{international:a,nationalPrefix:l})){var p=m.replace(Z1,n.nationalPrefixFormattingRule());if(Ya(n.nationalPrefixFormattingRule())===(l||"")+Ya("$1")&&(m=p,h=!0,l))for(var g=l.length;g>0;)m=m.replace(/\d/,ft),g--}var y=d.replace(new RegExp(s),m).replace(new RegExp(is,"g"),ft);return h||(o?y=qa(ft,o.length)+" "+y:l&&(y=qa(ft,l.length)+this.getSeparatorAfterNationalPrefix(n)+y)),a&&(y=G1(y)),y}}},{key:"formatNextNationalNumberDigits",value:function(n){var r=uP(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition,n);if(!r){this.resetFormat();return}return this.populatedNationalNumberTemplate=r[0],this.populatedNationalNumberTemplatePosition=r[1],gy(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition+1)}},{key:"shouldTryNationalPrefixFormattingRule",value:function(n,r){var i=r.international,a=r.nationalPrefix;if(n.nationalPrefixFormattingRule()){var l=n.usesNationalPrefix();if(l&&a||!l&&!i)return!0}}}])})();function mi(e){"@babel/helpers - typeof";return mi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mi(e)}function Ey(e,t){return UP(e)||HP(e,t)||jP(e,t)||RP()}function RP(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
23
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jP(e,t){if(e){if(typeof e=="string")return wy(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?wy(e,t):void 0}}function wy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function HP(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,l,o=[],s=!0,d=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(s=(r=a.call(n)).done)&&(o.push(r.value),o.length!==t);s=!0);}catch(c){d=!0,i=c}finally{try{if(!s&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw i}}return o}}function UP(e){if(Array.isArray(e))return e}function WP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,YP(r.key),r)}}function ZP(e,t,n){return t&&GP(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function YP(e){var t=qP(e,"string");return mi(t)=="symbol"?t:t+""}function qP(e,t){if(mi(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(mi(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var XP="["+ct+Ue+"]+",JP=new RegExp("^"+XP+"$","i"),QP="(?:["+Ga+"]["+ct+Ue+"]*|["+ct+Ue+"]+)",ek=new RegExp("[^"+ct+Ue+"]+.*$"),tk=/[^\d\[\]]/,nk=(function(){function e(t){var n=t.defaultCountry,r=t.defaultCallingCode,i=t.metadata,a=t.onNationalSignificantNumberChange;WP(this,e),this.defaultCountry=n,this.defaultCallingCode=r,this.metadata=i,this.onNationalSignificantNumberChange=a}return ZP(e,[{key:"input",value:function(n,r){var i=ak(n),a=Ey(i,2),l=a[0],o=a[1],s=Ya(l),d;return o&&(r.digits||(r.startInternationalNumber(void 0,void 0),s||(d=!0))),s&&this.inputDigits(s,r),{digits:s,justLeadingPlus:d}}},{key:"inputDigits",value:function(n,r){var i=r.digits,a=i.length<3&&i.length+n.length>=3;if(r.appendDigits(n),a&&this.extractIddPrefix(r),this.isWaitingForCountryCallingCode(r)){if(!this.extractCountryCallingCode(r))return}else r.appendNationalSignificantNumberDigits(n);r.international||this.hasExtractedNationalSignificantNumber||this.extractNationalSignificantNumber(r.getNationalDigits(),function(l){return r.update(l)})}},{key:"isWaitingForCountryCallingCode",value:function(n){var r=n.international,i=n.callingCode;return r&&!i}},{key:"extractCountryCallingCode",value:function(n){var r=Zu("+"+n.getDigitsWithoutInternationalPrefix(),n.country,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),i=r.countryCallingCode,a=r.number;if(i)return n.setCallingCode(i),n.update({nationalSignificantNumber:a}),!0}},{key:"reset",value:function(n){if(n){this.hasSelectedNumberingPlan=!0;var r=n._nationalPrefixForParsing();this.couldPossiblyExtractAnotherNationalSignificantNumber=r&&tk.test(r)}else this.hasSelectedNumberingPlan=void 0,this.couldPossiblyExtractAnotherNationalSignificantNumber=void 0}},{key:"extractNationalSignificantNumber",value:function(n,r){if(this.hasSelectedNumberingPlan){var i=Uu(n,this.metadata),a=i.nationalPrefix,l=i.nationalNumber,o=i.carrierCode;if(l!==n)return this.onExtractedNationalNumber(a,o,l,n,r),!0}}},{key:"extractAnotherNationalSignificantNumber",value:function(n,r,i){if(!this.hasExtractedNationalSignificantNumber)return this.extractNationalSignificantNumber(n,i);if(this.couldPossiblyExtractAnotherNationalSignificantNumber){var a=Uu(n,this.metadata),l=a.nationalPrefix,o=a.nationalNumber,s=a.carrierCode;if(o!==r)return this.onExtractedNationalNumber(l,s,o,n,i),!0}}},{key:"onExtractedNationalNumber",value:function(n,r,i,a,l){var o=!1,s,d=a.lastIndexOf(i);if(d<0||d!==a.length-i.length)o=!0;else{var c=a.slice(0,d);c&&c!==n&&(s=c)}l({nationalPrefix:n,carrierCode:r,nationalSignificantNumber:i,nationalSignificantNumberIsModified:o,prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix:s}),this.hasExtractedNationalSignificantNumber=!0,this.onNationalSignificantNumberChange()}},{key:"reExtractNationalSignificantNumber",value:function(n){if(this.extractAnotherNationalSignificantNumber(n.getNationalDigits(),n.nationalSignificantNumber,function(r){return n.update(r)}))return!0;if(this.extractIddPrefix(n))return this.extractCallingCodeAndNationalSignificantNumber(n),!0;if(this.fixMissingPlus(n))return this.extractCallingCodeAndNationalSignificantNumber(n),!0}},{key:"extractIddPrefix",value:function(n){var r=n.international,i=n.IDDPrefix,a=n.digits;if(n.nationalSignificantNumber,!(r||i)){var l=j1(a,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata);if(l!==void 0&&l!==a)return n.update({IDDPrefix:a.slice(0,a.length-l.length)}),this.startInternationalNumber(n,{country:void 0,callingCode:void 0}),!0}}},{key:"fixMissingPlus",value:function(n){if(!n.international){var r=W1(n.digits,n.country,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),i=r.countryCallingCode;if(i)return n.update({missingPlus:!0}),this.startInternationalNumber(n,{country:n.country,callingCode:i}),!0}}},{key:"startInternationalNumber",value:function(n,r){var i=r.country,a=r.callingCode;n.startInternationalNumber(i,a),n.nationalSignificantNumber&&(n.resetNationalSignificantNumber(),this.onNationalSignificantNumberChange(),this.hasExtractedNationalSignificantNumber=void 0)}},{key:"extractCallingCodeAndNationalSignificantNumber",value:function(n){this.extractCountryCallingCode(n)&&this.extractNationalSignificantNumber(n.getNationalDigits(),function(r){return n.update(r)})}}])})();function rk(e){var t=e.search(QP);if(!(t<0)){e=e.slice(t);var n;return e[0]==="+"&&(n=!0,e=e.slice(1)),e=e.replace(ek,""),n&&(e="+"+e),e}}function ik(e){var t=rk(e)||"";return t[0]==="+"?[t.slice(1),!0]:[t]}function ak(e){var t=ik(e),n=Ey(t,2),r=n[0],i=n[1];return JP.test(r)||(r=""),[r,i]}function hi(e){"@babel/helpers - typeof";return hi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hi(e)}function lk(e,t){return dk(e)||sk(e,t)||uk(e,t)||ok()}function ok(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
24
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uk(e,t){if(e){if(typeof e=="string")return Sy(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Sy(e,t):void 0}}function Sy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function sk(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,l,o=[],s=!0,d=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(s=(r=a.call(n)).done)&&(o.push(r.value),o.length!==t);s=!0);}catch(c){d=!0,i=c}finally{try{if(!s&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw i}}return o}}function dk(e){if(Array.isArray(e))return e}function ck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,hk(r.key),r)}}function mk(e,t,n){return t&&fk(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function hk(e){var t=pk(e,"string");return hi(t)=="symbol"?t:t+""}function pk(e,t){if(hi(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(hi(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Py=(function(){function e(t,n){ck(this,e),this.metadata=new Me(n);var r=this.getCountryAndCallingCode(t),i=lk(r,2),a=i[0],l=i[1];this.defaultCountry=a,this.defaultCallingCode=l,this.reset()}return mk(e,[{key:"getCountryAndCallingCode",value:function(n){var r,i;return n&&(Fn(n)?(r=n.defaultCountry,i=n.defaultCallingCode):r=n),r&&!this.metadata.hasCountry(r)&&(r=void 0),[r,i]}},{key:"input",value:function(n){var r=this.parser.input(n,this.state),i=r.digits,a=r.justLeadingPlus;if(a)this.formattedOutput="+";else if(i){this.determineTheCountryIfNeeded(),this.state.nationalSignificantNumber&&this.formatter.narrowDownMatchingFormats(this.state);var l;if(this.metadata.hasSelectedNumberingPlan()&&(l=this.formatter.format(i,this.state)),l===void 0&&this.parser.reExtractNationalSignificantNumber(this.state)){this.determineTheCountryIfNeeded();var o=this.state.getNationalDigits();o&&(l=this.formatter.format(o,this.state))}this.formattedOutput=l?this.getFullNumber(l):this.getNonFormattedNumber()}return this.formattedOutput}},{key:"reset",value:function(){var n=this;return this.state=new iP({onCountryChange:function(i){n.country=i},onCallingCodeChange:function(i,a){n.metadata.selectNumberingPlan(a||i),n.formatter.reset(n.metadata.numberingPlan,n.state),n.parser.reset(n.metadata.numberingPlan)}}),this.formatter=new _P({state:this.state,metadata:this.metadata}),this.parser=new nk({defaultCountry:this.defaultCountry,defaultCallingCode:this.defaultCallingCode,metadata:this.metadata,state:this.state,onNationalSignificantNumberChange:function(){n.determineTheCountryIfNeeded(),n.formatter.reset(n.metadata.numberingPlan,n.state)}}),this.state.reset({country:this.defaultCountry,callingCode:this.defaultCallingCode}),this.formattedOutput="",this}},{key:"isInternational",value:function(){return this.state.international}},{key:"getCallingCode",value:function(){if(this.isInternational())return this.state.callingCode}},{key:"getCountryCallingCode",value:function(){return this.getCallingCode()}},{key:"getCountry",value:function(){var n=this.state.digits;if(n)return this._getCountry()}},{key:"_getCountry",value:function(){var n=this.state.country;return n}},{key:"determineTheCountryIfNeeded",value:function(){(!this.state.country||this.isCountryCallingCodeAmbiguous())&&this.determineTheCountry()}},{key:"getFullNumber",value:function(n){var r=this;if(this.isInternational()){var i=function(o){return r.formatter.getInternationalPrefixBeforeCountryCallingCode(r.state,{spacing:!!o})+o},a=this.state.callingCode;return i(a?n?"".concat(a," ").concat(n):a:"".concat(this.state.getDigitsWithoutInternationalPrefix()))}return n}},{key:"getNonFormattedNationalNumberWithPrefix",value:function(){var n=this.state,r=n.nationalSignificantNumber,i=n.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix,a=n.nationalPrefix,l=r,o=i||a;return o&&(l=o+l),l}},{key:"getNonFormattedNumber",value:function(){var n=this.state.nationalSignificantNumberIsModified;return this.getFullNumber(n?this.state.getNationalDigits():this.getNonFormattedNationalNumberWithPrefix())}},{key:"getNonFormattedTemplate",value:function(){var n=this.getNonFormattedNumber();if(n)return n.replace(/[\+\d]/g,ft)}},{key:"isCountryCallingCodeAmbiguous",value:function(){var n=this.state.callingCode,r=this.metadata.getCountryCodesForCallingCode(n);return r&&r.length>1}},{key:"determineTheCountry",value:function(){var n=Wu(this.isInternational()?this.state.callingCode:this.defaultCallingCode,{nationalNumber:this.state.nationalSignificantNumber,metadata:this.metadata});n!==this.state.country&&(this.state.setCountry(n),n&&this.metadata.selectNumberingPlan(n))}},{key:"getNumberValue",value:function(){var n=this.state,r=n.digits,i=n.callingCode,a=n.country,l=n.nationalSignificantNumber;if(r){if(this.isInternational())return i?"+"+i+l:"+"+r;if(a||i){var o=a?this.metadata.countryCallingCode():i;return"+"+o+l}}}},{key:"getNumber",value:function(){var n=this.state,r=n.nationalSignificantNumber,i=n.carrierCode,a=n.callingCode;if(r){var l=this._getCountry();if(!(!l&&!a)){if(l&&l===this.defaultCountry){var o=this.metadata.numberingPlan.callingCode(),s=bk(o,r,this.metadata);s&&(l=s)}var d=new ty(l||a,r,this.metadata.metadata);return i&&(d.carrierCode=i),d}}}},{key:"isPossible",value:function(){var n=this.getNumber();return n?n.isPossible():!1}},{key:"isValid",value:function(){var n=this.getNumber();return n?n.isValid():!1}},{key:"validateLength",value:function(){var n=this.state,r=n.digits,i=n.nationalSignificantNumber;if(!r)return"NOT_A_NUMBER";if(!this.metadata.numberingPlan)return"INVALID_COUNTRY";if(!i)return"TOO_SHORT";var a=ni(i,void 0,this.metadata);if(a!=="IS_POSSIBLE")return a}},{key:"getNationalNumber",value:function(){return this.state.nationalSignificantNumber}},{key:"getChars",value:function(){return(this.state.international?"+":"")+this.state.digits}},{key:"getTemplate",value:function(){return this.formatter.getTemplate(this.state)||this.getNonFormattedTemplate()||""}}])})();function bk(e,t,n){var r=n.getCountryCodesForCallingCode(e);if(r.length>1)return U1(t,r,n.metadata)}function gk(e){return new Me(e).getCountries()}function ky(){return Vu(JS,arguments)}function Xa(e){return Py.call(this,e,I1)}Xa.prototype=Object.create(Py.prototype,{}),Xa.prototype.constructor=Xa;function yk(){return Vu(gk,arguments)}function $k(){return Vu(_u,arguments)}function vk(e){return e.toUpperCase().replace(/./g,t=>String.fromCodePoint(127397+t.charCodeAt(0)))}let Ja=null;function By(){if(Ja)return Ja;const e=typeof Intl<"u"&&"DisplayNames"in Intl?new Intl.DisplayNames(["en"],{type:"region"}):null;return Ja=yk().map(t=>({code:t,dial_code:`+${$k(t)}`,name:e?.of(t)??t,flag:vk(t)})).sort((t,n)=>t.name.localeCompare(n.name)),Ja}function Ny(e,t,n){let r=e.replace(/\D/g,"");const i=n.replace(/\D/g,"");r.startsWith(i)&&(r=r.slice(i.length)),r=r.replace(/^0+/,"");const a=15-i.length;if(r=r.slice(0,a),!r)return n;const o=new Xa(t).input(r);return`${n} ${o}`}function Ay(e,t){return e?ky(e,t)?.isValid()??!1:!1}function Fy(e,t){const n=ky(e,t);return n?.isValid()?n.number:void 0}function xk({size:e="md",label:t,required:n,hint:r,error:i,disabled:a=!1,placeholder:l,value:o="",defaultCountry:s="ID",countries:d,onChange:c,className:f,wrapperClassName:m}){const h=d??By(),[p,g]=b.useState(()=>h.find(C=>C.code===s)??h[0]),y=C=>{const w=Ay(C,p.code),S=w?Fy(C,p.code):void 0;c?.(C,w,S)},$=C=>{const w=Ny(C.target.value,p.code,p.dial_code);y(w)},x=()=>{o||c?.(p.dial_code,!1,void 0)},v=C=>{const w=Ny(o,C.code,C.dial_code);g(C);const S=Ay(w,C.code),B=S?Fy(w,C.code):void 0;c?.(w,S,B)};return b.createElement(ti,{size:e,label:t,required:n,hint:r,error:i,disabled:a,placeholder:l??"Enter phone number",inputMode:"numeric",value:o,onChange:$,onFocus:x,className:f,wrapperClassName:m,leftSlot:b.createElement(GE,{size:e,disabled:a,countries:h,selected:p,onSelect:v})})}const Ck=Z(["flex items-center gap-1 shrink-0 border-l border-light-200 bg-transparent","text-light-800 cursor-pointer","hover:text-light-900","disabled:cursor-not-allowed disabled:text-light-400"],{variants:{size:{xs:"pl-2 text-caption-sm",sm:"pl-2 text-caption-lg",md:"pl-2 text-body-sm"}},defaultVariants:{size:"md"}}),Dk="w-64",Ek="select-none text-light-700";function wk({size:e,disabled:t,currencies:n,selected:r,onSelect:i}){return b.createElement(Aa,null,b.createElement(Xt,{isDisabled:t,"aria-label":`Currency: ${r.label} (${r.code})`,className:Ck({size:e})},b.createElement("span",null,r.code),b.createElement(xi,{size:14,"aria-hidden":"true"})),b.createElement(Pt,{placement:"bottom end"},b.createElement(Ou,{"aria-label":"Currency",className:H(Dk,"max-h-60 overflow-y-auto"),items:n,onAction:a=>{const l=n.find(o=>o.code===a);l&&i(l)}},a=>b.createElement(zu,{id:a.code,textValue:`${a.label} ${a.code}`},b.createElement("span",{className:"flex min-w-0 flex-1 items-center gap-2"},b.createElement("span",{className:"min-w-0 flex-1 truncate"},a.label),b.createElement("span",{className:"shrink-0 text-light-500"},a.code))))))}function as(e){const t=new Intl.NumberFormat(e).formatToParts(123456789e-2),n=t.find(i=>i.type==="group")?.value??",",r=t.find(i=>i.type==="decimal")?.value??".";return{group:n,decimal:r}}function Ty(e,t){return e?e.replace(/\B(?=(\d{3})+(?!\d))/g,t):""}function Sk(e,t){const{group:n,decimal:r}=as(t);let i=e.split("").filter(d=>/\d/.test(d)||d===r).join("");const a=i.indexOf(r);if(a!==-1){const d=i.slice(0,a).split(r).join(""),c=i.slice(a+1).split(r).join("").slice(0,2);i=`${d}${r}${c}`}const[l,o]=i.split(r),s=Ty(l??"",n);return o!==void 0?`${s}${r}${o}`:s}function Pk(e,t){const{group:n,decimal:r}=as(t),i=e.split(n).join("").split(r).join("."),a=Number.parseFloat(i);return Number.isNaN(a)?0:a}function ls(e,t){if(e===void 0||Number.isNaN(e))return"";const{group:n,decimal:r}=as(t),[i,a]=e.toString().split("."),l=Ty(i??"0",n);return a?`${l}${r}${a}`:l}function kk({size:e="md",label:t,required:n,hint:r,error:i,disabled:a=!1,placeholder:l,value:o,currency:s,currencies:d,onCurrencyChange:c,onChange:f,className:m,wrapperClassName:h}){const p=d.find(C=>C.code===s)??d[0],[g,y]=b.useState(()=>ls(o,p?.locale)),$=b.useRef(!1);b.useEffect(()=>{if($.current){$.current=!1;return}y(ls(o,p?.locale))},[o,p?.locale]);const x=C=>{$.current=!0;const w=Sk(C.target.value,p?.locale);y(w),f?.(Pk(w,p?.locale))},v=C=>{c?.(C.code),$.current=!0,y(ls(o,C.locale))};return b.createElement(ti,{size:e,label:t,required:n,hint:r,error:i,disabled:a,placeholder:l??"0.00",inputMode:"decimal",value:g,onChange:x,className:m,wrapperClassName:h,leftSlot:p?b.createElement("span",{className:Ek},p.symbol):void 0,rightSlot:p?b.createElement(wk,{size:e,disabled:a,currencies:d,selected:p,onSelect:v}):void 0})}function Bk({size:e="md",label:t,required:n,hint:r,disabled:i,error:a,className:l,wrapperClassName:o,value:s,maxLength:d,placeholder:c,onChange:f}){const m=s.length>d,h=a||m;return u.createElement(E1,{size:e,label:t,required:n,disabled:i,error:h,value:s,placeholder:c,onChange:f,className:l,wrapperClassName:o,hint:r,suffix:u.createElement("span",{className:ee("text-caption-lg",m?"text-error-600":"text-light-400")},s.length,"/",d)})}const Iy=[{brand:"visa",pattern:/^4/,length:[13,16,19]},{brand:"mastercard",pattern:/^(5[1-5]|2[2-7])/,length:[16]},{brand:"amex",pattern:/^3[47]/,length:[15]},{brand:"discover",pattern:/^6(?:011|5)/,length:[16]},{brand:"jcb",pattern:/^35/,length:[16]},{brand:"diners",pattern:/^3(?:0[0-5]|[68])/,length:[14]},{brand:"unionpay",pattern:/^62/,length:[16,19]}];function Nk(e){return Iy.find(({pattern:n})=>n.test(e))?.brand??null}function Ak(e){if(!e)return!1;let t=0,n=!1;for(let r=e.length-1;r>=0;r--){let i=Number.parseInt(e[r]??"0",10);n&&(i*=2,i>9&&(i-=9)),t+=i,n=!n}return t%10===0}function Fk(e,t){if(!t||!e)return!1;const n=Iy.find(r=>r.brand===t);return!n||!n.length.includes(e.length)?!1:Ak(e)}function Tk(e,t){return t==="amex"?[e.slice(0,4),e.slice(4,10),e.slice(10,15)].filter(Boolean).join(" "):e.replace(/(.{4})/g,"$1 ").trim()}const Ik=19;function Mk(e){const t=e.replace(/\D/g,"").slice(0,Ik),n=Nk(t),r=Tk(t,n),i=Fk(t,n);return{formatted:r,brand:n,isValid:i}}function Kk({size:e="md",label:t="Card number",required:n,hint:r,error:i,disabled:a=!1,placeholder:l="Card number",value:o="",leftSlot:s,onChange:d,className:c,wrapperClassName:f}){const m=h=>{const{formatted:p,brand:g,isValid:y}=Mk(h.target.value);d?.(p,g,y)};return b.createElement(ti,{size:e,label:t,required:n,hint:r,error:i,disabled:a,placeholder:l,value:o,onChange:m,inputMode:"numeric",autoComplete:"cc-number",className:c,wrapperClassName:f,leftSlot:s})}const os=E1;os.Prefix=wE,os.Suffix=SE;const Lk="flex flex-col gap-1 w-full",Ok=Z("flex items-center gap-1 font-bold text-sm",{variants:{error:{true:"",false:"text-light-800"}},defaultVariants:{error:!1}}),zk=Z(["flex w-full items-start gap-2 border rounded-lg p-3 bg-white","transition-[border-color,border-width]","data-[invalid]:border-error-200 data-[focus-within]:data-[invalid]:border-2 data-[focus-within]:data-[invalid]:border-error-500","data-[disabled]:cursor-not-allowed data-[disabled]:bg-light-100"],{variants:{error:{true:"",false:"border-light-200 data-[focus-within]:border-2 data-[focus-within]:border-primary-500"}},defaultVariants:{error:!1}}),Vk=Z(["flex-1 min-h-[132px] bg-transparent outline-none text-caption-lg text-light-900","placeholder:text-light-500","disabled:text-light-400 disabled:cursor-not-allowed disabled:resize-none"],{variants:{resizable:{true:"resize-y",false:"resize-none"}},defaultVariants:{resizable:!0}}),_k=Z("text-caption-lg",{variants:{error:{true:"text-error-500",false:"text-light-700"}},defaultVariants:{error:!1}}),Rk=({error:e})=>ee("flex w-full items-start gap-2 rounded-lg border bg-white p-2 transition-[border-color,border-width]",e?"data-[invalid]:border-error-200 data-[focus-within]:data-[invalid]:border-2 data-[focus-within]:data-[invalid]:border-error-500":"border-light-200 data-[focus-within]:border-2 data-[focus-within]:border-primary-500","data-[disabled]:bg-light-100 data-[disabled]:cursor-not-allowed"),jk=({error:e})=>ee("flex items-center gap-1 text-caption-sm font-semibold",e?"":"text-light-800"),Hk=e=>ee("flex-1 min-h-[64px] bg-transparent outline-none text-sm text-light-900","placeholder:text-light-500",e?"resize-y":"resize-none"),Uk="flex flex-col w-full max-w-[320px]",My=b.forwardRef(({label:e,required:t,hint:n,helpIcon:r,error:i=!1,disabled:a=!1,resizable:l=!0,compact:o=!1,rows:s,style:d,className:c,wrapperClassName:f,...m},h)=>{const p=s?{minHeight:`${s*20}px`}:void 0;return b.createElement("div",{className:ee(o?Uk:Lk,f)},e&&b.createElement("label",{className:o?jk({error:i}):Ok({error:i})},e,t&&b.createElement("span",{className:"text-error-400"},"*"),r),b.createElement(Lr,{isDisabled:a,isInvalid:i,className:o?Rk({error:i}):zk({error:i})},b.createElement(mC,{ref:h,disabled:a,rows:s,style:{...p,...d},className:ee(o?Hk(l&&!a):Vk({resizable:l&&!a}),c),...m})),n&&b.createElement("p",{className:_k({error:i})},n))});My.displayName="Textarea";const Wk=Z("flex w-[320px] flex-col gap-1"),Gk=Z("flex items-center gap-1 font-bold text-sm",{variants:{error:{true:"",false:"text-light-800"}}}),Zk=Z("flex items-stretch rounded-lg border bg-white transition-colors",{variants:{error:{true:"",false:"border-light-200"},disabled:{true:"bg-light-100",false:""}}}),Yk=Z("flex items-center px-3 text-sm text-light-500 rounded-l-lg select-none",{variants:{size:{sm:"h-9",md:"h-11"},disabled:{true:"bg-light-100",false:"bg-white"}}}),qk="w-px bg-light-200",Xk=Z(["flex flex-1 items-center gap-2 px-3 rounded-r-lg","transition-shadow","focus-within:ring-2 focus-within:ring-offset-0"],{variants:{size:{sm:"h-9",md:"h-11"},error:{true:"border border-error-200 focus-within:ring-error-500",false:"focus-within:ring-primary-500"},disabled:{true:"cursor-not-allowed",false:""}}}),Jk=Z("flex-1 bg-transparent outline-none text-light-900 placeholder:text-light-500",{variants:{disabled:{true:"text-light-400 cursor-not-allowed",false:""}}}),Qk=Z("text-caption-lg",{variants:{error:{true:"text-error-600",false:"text-light-700"}}});function eB({size:e="md",label:t,required:n,hint:r,error:i=!1,disabled:a=!1,placeholder:l="www.cekat.ai",value:o,rightIcon:s,onChange:d,className:c,wrapperClassName:f}){return u.createElement("div",{className:ee(Wk(),f)},t&&u.createElement("label",{className:Gk({error:i})},t,n&&u.createElement("span",{className:"text-error-400"},"*")),u.createElement("div",{className:Zk({error:i,disabled:a})},u.createElement("div",{className:Yk({size:e})},"http://"),u.createElement("div",{className:qk}),u.createElement("div",{className:Xk({size:e,error:i,disabled:a})},u.createElement("input",{value:o,onChange:d,placeholder:l,disabled:a,className:ee(Jk({disabled:a}),c)}),s&&u.createElement("div",{className:"flex items-center text-light-400"},s))),r&&u.createElement("p",{className:Qk({error:i})},r))}const tB=Z("flex w-[320px] flex-col gap-1"),nB=Z("flex items-center gap-1 font-bold text-sm",{variants:{error:{true:"text-error-600",false:"text-light-800"}}}),rB=Z("flex items-stretch rounded-lg border border-light-200 bg-white transition-colors",{variants:{disabled:{true:"bg-light-100",false:""}}}),iB=Z(["flex flex-1 items-center gap-2 px-3 rounded-l-lg","transition-shadow","focus-within:ring-2 focus-within:ring-offset-0"],{variants:{size:{sm:"h-9",md:"h-11"},error:{true:"border border-error-200 focus-within:ring-error-500",false:"focus-within:ring-primary-500"},disabled:{true:"cursor-not-allowed",false:""}}}),aB=Z("w-px transition-colors",{variants:{error:{true:"focus:bg-error-200 group-focus-within:bg-error-500",false:"focus:bg-light-200 group-focus-within:bg-primary-500"}}}),lB=Z("flex items-center gap-1 px-3 text-sm text-light-700 rounded-r-lg select-none",{variants:{size:{sm:"h-9",md:"h-11"},disabled:{true:"bg-white",false:"bg-white"}}}),oB=Z("flex-1 bg-transparent outline-none text-light-900 placeholder:text-light-500",{variants:{disabled:{true:"text-light-400 cursor-not-allowed",false:""}}}),uB=Z("text-caption-lg",{variants:{error:{true:"text-error-600",false:"text-light-700"}}});function sB({size:e="md",label:t,required:n,hint:r,error:i=!1,disabled:a=!1,placeholder:l="www.cekat.ai",value:o,rightIcon:s,suffix:d,onChange:c,className:f,wrapperClassName:m}){return u.createElement("div",{className:ee(tB(),m)},t&&u.createElement("label",{className:nB({error:i})},t,n&&u.createElement("span",{className:"text-error-400"},"*")),u.createElement("div",{className:rB({disabled:a})},u.createElement("div",{className:iB({size:e,error:i,disabled:a})},u.createElement("input",{value:o,onChange:c,placeholder:l,disabled:a,className:ee(oB({disabled:a}),f)}),s&&u.createElement("div",{className:"text-light-400"},s)),u.createElement("div",{className:aB({error:i})}),u.createElement("div",{className:lB({size:e,disabled:a})},d)),r&&u.createElement("p",{className:uB({error:i})},r))}const dB=Z("flex w-full flex-col gap-1"),cB=Z("flex items-center gap-1 text-sm font-bold text-light-800"),Ky=Z(["flex w-full items-center border bg-white text-left","transition-[border-color,border-width]"],{variants:{size:{xs:"h-7 gap-1 rounded px-2 text-caption-sm",sm:"h-9 gap-2 rounded-lg px-3 text-caption-lg",md:"h-11 gap-2 rounded-lg px-3 text-body-sm"},open:{true:"border-2 border-primary-500",false:"border-light-200 focus-within:border-2 focus-within:border-primary-500"},disabled:{true:"cursor-not-allowed bg-light-100",false:"cursor-pointer"}},defaultVariants:{size:"md",open:!1,disabled:!1}}),fB=Z(["w-full overflow-y-auto py-1"],{variants:{size:{xs:"max-h-52",sm:"max-h-64",md:"max-h-80"}},defaultVariants:{size:"md"}}),mB=Z("text-caption-lg text-light-700"),hB=({className:e})=>b.createElement("svg",{viewBox:"0 0 20 20",fill:"none",className:e},b.createElement("path",{d:"M5 7.5L10 12.5L15 7.5",stroke:"currentColor",strokeWidth:"1.67",strokeLinecap:"round",strokeLinejoin:"round"})),pB=({className:e})=>b.createElement("svg",{viewBox:"0 0 20 20",fill:"none",className:e},b.createElement("path",{d:"M17.5 17.5L14.1 14.1M16 9.25C16 12.98 12.98 16 9.25 16C5.52 16 2.5 12.98 2.5 9.25C2.5 5.52 5.52 2.5 9.25 2.5C12.98 2.5 16 5.52 16 9.25Z",stroke:"currentColor",strokeWidth:"1.67",strokeLinecap:"round",strokeLinejoin:"round"})),us={xs:"size-4",sm:"size-5",md:"size-6"},Ly={xs:"size-4",sm:"size-5",md:"size-5"},bB={xs:"text-caption-sm",sm:"text-caption-lg",md:"text-body-sm"},gB={xs:"h-7",sm:"h-[30px]",md:"h-[34px]"},Oy=({size:e,open:t,disabled:n})=>ee("flex w-full items-center gap-2 rounded-lg border bg-white px-2 text-left transition-[border-color,border-width]",bB[e],gB[e],t?"border-2 border-primary-500":"border-light-200 focus-within:border-2 focus-within:border-primary-500",n?"cursor-not-allowed bg-light-100":"cursor-pointer"),yB=()=>"flex items-center gap-1 text-caption-sm font-semibold text-light-800",$B="flex w-full max-w-[320px] flex-col";function vB({size:e="md",type:t="default",label:n,required:r,helpIcon:i,hint:a,placeholder:l="Select option",disabled:o=!1,compact:s=!1,leadingIcon:d,options:c,value:f=null,onChange:m,values:h=[],onValuesChange:p,hideTagsOnFocus:g=!1,className:y,wrapperClassName:$}){const[x,v]=b.useState(!1),[C,w]=b.useState(""),S=b.useRef(null),B=b.useRef(null),E=b.useRef(null),k=t==="tags",K=t==="search"||k,T=c.find(A=>A.id===f)??null,I=c.filter(A=>h.includes(A.id)),R=k&&(!g||!x),D=k&&g&&!x&&I.length>0,M=C?c.filter(A=>`${A.label} ${A.supportingText??""}`.toLowerCase().includes(C.toLowerCase())):c,G=()=>{v(!1),w("")};b.useEffect(()=>{x&&K&&B.current?.focus()},[x,K]),b.useEffect(()=>{if(!x||!K)return;const A=F=>{const z=F.target;S.current?.contains(z)||E.current?.contains(z)||G()};return document.addEventListener("mousedown",A),()=>document.removeEventListener("mousedown",A)},[x,K]);const O=()=>{o||(x?G():v(!0))},Y=A=>{A.disabled||(k?(p?.(h.includes(A.id)?h.filter(F=>F!==A.id):[...h,A.id]),w(""),B.current?.focus()):(m?.(A),G()))},P=A=>{if(A.key==="Enter"){A.preventDefault();const F=M.find(z=>!z.disabled);x&&F&&Y(F)}else A.key==="Backspace"&&k&&!C&&h.length?p?.(h.slice(0,-1)):x||v(!0)},N=A=>A.avatar?b.createElement("img",{src:A.avatar,alt:"",className:ee(us[e],"shrink-0 rounded-full object-cover")}):A.icon?b.createElement("span",{className:ee(us[e],"flex shrink-0 items-center justify-center",o?"text-light-400":"text-light-500")},A.icon):A.dot?b.createElement("span",{className:"size-2 shrink-0 rounded-full",style:{backgroundColor:o?"#d0d5dd":A.dot}}):null,_=T?N(T):d?b.createElement("span",{className:ee(us[e],"flex shrink-0 items-center justify-center",o?"text-light-400":"text-light-500")},d):null,Q=T?b.createElement("span",{className:"flex min-w-0 items-center gap-2 whitespace-nowrap"},b.createElement("span",{className:ee("truncate font-medium",o?"text-light-400":"text-light-800")},T.label),T.supportingText&&b.createElement("span",{className:o?"text-light-400":"text-light-700"},T.supportingText)):b.createElement("span",{className:o?"text-light-400":"text-light-500"},l),X=b.createElement(Pt,{ref:E,triggerRef:S,isOpen:x,onOpenChange:A=>{A||G()},isNonModal:K,shouldCloseOnInteractOutside:A=>!S.current?.contains(A),matchTriggerWidth:!0,placement:"bottom start"},b.createElement("div",{role:"listbox",className:fB({size:e})},M.length===0&&b.createElement("div",{className:"flex h-12 items-center px-4 text-light-500"},"No options found"),M.map(A=>{const F=k?h.includes(A.id):A.id===f,z={isHovered:!1,isPressed:!1,isSelected:F,isFocusVisible:!1,isDisabled:!!A.disabled,selectionMode:k?"multiple":"single"};return b.createElement("button",{key:A.id,type:"button",role:"option","aria-selected":F,disabled:A.disabled,onClick:()=>Y(A),className:ee(Mu,A.disabled&&"cursor-not-allowed")},b.createElement(Ku,{state:z,nativeInteraction:!0},b.createElement(b.Fragment,null,N(A),b.createElement("span",{className:"truncate"},A.label),A.supportingText&&b.createElement("span",{"data-slot":"supporting-text"},A.supportingText))))})));return b.createElement("div",{ref:S,className:ee(s?$B:dB(),$)},n&&b.createElement("label",{className:s?yB():cB()},n,r&&b.createElement("span",{className:"text-error-400"},"*"),i),b.createElement("div",{className:"relative",onKeyDown:A=>{A.key==="Escape"&&G()}},t==="default"?b.createElement("button",{type:"button","aria-haspopup":"listbox","aria-expanded":x,disabled:o,onClick:O,className:ee(s?Oy({size:e,open:x,disabled:o}):Ky({size:e,open:x,disabled:o}),y)},_,b.createElement("span",{className:"flex min-w-0 flex-1 items-center"},Q),b.createElement(hB,{className:ee(Ly[e],"shrink-0 text-light-500")})):b.createElement("div",{role:"combobox","aria-haspopup":"listbox","aria-expanded":x,onClick:O,className:ee(s?Oy({size:e,open:x,disabled:o}):Ky({size:e,open:x,disabled:o}),y)},b.createElement(pB,{className:ee(Ly[e],"shrink-0",o?"text-light-400":"text-light-500")}),R&&I.length>0&&b.createElement("div",{className:"flex shrink items-center gap-1 overflow-x-auto whitespace-nowrap [scrollbar-width:none] [&::-webkit-scrollbar]:hidden"},I.map(A=>b.createElement(Tu,{key:A.id,size:"sm",disabled:o,icon:A.avatar?b.createElement("img",{src:A.avatar,alt:"",className:"size-4 shrink-0 rounded-full object-cover"}):void 0,onClose:()=>Y(A)},A.label))),!k&&!x&&T?b.createElement("span",{className:"flex min-w-0 flex-1 items-center"},Q):D?null:b.createElement("input",{ref:B,value:C,disabled:o,placeholder:l,onChange:A=>{w(A.target.value),x||v(!0)},onKeyDown:P,className:"min-w-8 flex-1 bg-transparent text-light-900 outline-none placeholder:text-light-500 disabled:cursor-not-allowed disabled:placeholder:text-light-400"})),X),a&&b.createElement("p",{className:mB()},a))}function xB({id:e,value:t,textValue:n,"aria-label":r,isDisabled:i,onAction:a,className:l,style:o,leadingSlot:s,children:d,trailingSlot:c},f){const m=b.useContext(Lu),h={id:e,value:t,textValue:n,"aria-label":r,isDisabled:i,onAction:a,className:l,style:o,leadingSlot:s,children:d,trailingSlot:c};if(m==="menu")return b.createElement(T1,{ref:f,...h});if(m==="listbox")return b.createElement(F1,{ref:f,...h});throw new Error("CollectionItem must be rendered inside a supported collection parent.")}const CB=b.forwardRef(xB),zy=Z("relative",{variants:{layout:{floating:["flex w-full flex-col gap-4 p-4","rounded-xl border shadow-xs","sm:flex-row sm:items-start"],"full-width":"w-full border-b"}},defaultVariants:{layout:"floating"}}),DB={default:{surface:"bg-light-50",border:"border-light-300",iconSurface:"border border-light-200 bg-white shadow-xs",iconSurfaceOnLight:"border border-light-200 bg-white shadow-xs",iconText:"text-light-800"},brand:{surface:"bg-primary-50",border:"border-primary-300",iconSurface:"bg-primary-100",iconSurfaceOnLight:"bg-white",iconText:"text-primary-500"},gray:{surface:"bg-light-50",border:"border-light-300",iconSurface:"bg-light-100",iconSurfaceOnLight:"bg-white",iconText:"text-light-800"},error:{surface:"bg-error-50",border:"border-error-300",iconSurface:"bg-error-50",iconSurfaceOnLight:"bg-white",iconText:"text-error-500"},warning:{surface:"bg-warning-50",border:"border-warning-300",iconSurface:"bg-warning-100",iconSurfaceOnLight:"bg-white",iconText:"text-warning-500"},success:{surface:"bg-success-50",border:"border-success-300",iconSurface:"bg-success-50",iconSurfaceOnLight:"bg-white",iconText:"text-success-500"}},EB="bg-white border-light-200",wB="relative mx-auto flex w-full max-w-[1280px] flex-col gap-4 px-4 py-4 sm:flex-row sm:items-center sm:gap-3 sm:px-8 sm:py-3",SB=Z("flex shrink-0 items-center justify-center",{variants:{layout:{floating:"","full-width":"hidden sm:flex"},shape:{square:"",circle:""},variant:{featured:"",plain:""}},compoundVariants:[{variant:"featured",layout:"floating",class:"size-8"},{variant:"featured",layout:"full-width",class:"size-10"},{variant:"featured",shape:"circle",class:"rounded-full"},{variant:"featured",shape:"square",layout:"floating",class:"rounded-md"},{variant:"featured",shape:"square",layout:"full-width",class:"rounded-lg"}],defaultVariants:{layout:"floating",shape:"square",variant:"featured"}}),Vy=Z("flex min-w-0 flex-1",{variants:{layout:{floating:"flex-col gap-3","full-width":"items-center gap-4"}},defaultVariants:{layout:"floating"}}),PB=Z("flex min-w-0",{variants:{layout:{floating:"flex-col gap-1","full-width":"flex-col gap-0.5 sm:flex-row sm:flex-wrap sm:gap-x-1.5"},closable:{true:"",false:""}},compoundVariants:[{layout:"floating",closable:!0,class:"pr-8"},{layout:"full-width",closable:!0,class:"pr-8 sm:pr-0"}],defaultVariants:{layout:"floating",closable:!1}}),kB="text-caption-lg font-bold text-light-800",BB="text-caption-lg text-light-600",NB=Z("flex gap-3",{variants:{layout:{floating:"flex-wrap items-center","full-width":""},actionVariant:{link:"flex-wrap items-center",button:""}},compoundVariants:[{layout:"full-width",actionVariant:"button",class:"flex-col-reverse sm:flex-row sm:items-center"}],defaultVariants:{layout:"floating",actionVariant:"link"}}),AB=Z(["inline-flex items-center justify-center gap-1 bg-transparent p-0","text-caption-lg font-bold transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2"],{variants:{emphasis:{primary:"text-primary-500 hover:text-primary-800",secondary:"text-light-800 hover:text-light-900"}},defaultVariants:{emphasis:"secondary"}}),FB=Z(["flex size-9 shrink-0 items-center justify-center rounded-lg","bg-transparent text-light-500 transition-colors","hover:bg-light-50 hover:text-light-700","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2"],{variants:{layout:{floating:"absolute right-[7px] top-[7px]","full-width":"absolute right-2 top-2 sm:static"}},defaultVariants:{layout:"floating"}}),TB={default:dr,brand:dr,gray:dr,error:$i,warning:$i,success:nl},_y=({title:e,description:t,color:n="default",layout:r="floating",background:i="white",icon:a,iconVariant:l="featured",showIcon:o=!0,primaryAction:s,secondaryAction:d,actionVariant:c,actions:f,onClose:m,closeLabel:h="Close",className:p,...g})=>{const y=TB[n],$=r==="floating"?16:20,x=c??(r==="floating"?"link":"button"),v=DB[n],C=i==="light",w=C?ee(v.surface,v.border):EB,S=(I,R)=>I?x==="link"?u.createElement("button",{type:"button",onClick:I.onClick,className:AB({emphasis:R})},I.label):u.createElement(Ze,{size:"sm",variant:R==="primary"?"solid":"outline",onPress:I.onClick,className:r==="full-width"?"w-full sm:w-auto":void 0},I.label):null,E=!!(f||s||d)?u.createElement("div",{className:NB({layout:r,actionVariant:x})},f??u.createElement(u.Fragment,null,S(d,"secondary"),S(s,"primary"))):null,k=o&&(a||y)?u.createElement("div",{className:ee(SB({layout:r,variant:l,shape:n==="default"?"square":"circle"}),v.iconText,l==="featured"&&(C?v.iconSurfaceOnLight:v.iconSurface))},a??u.createElement(y,{size:$,stroke:2})):null,K=m?u.createElement("button",{type:"button","aria-label":h,onClick:m,className:FB({layout:r})},u.createElement(cr,{size:16,stroke:2})):null,T=u.createElement("div",{className:PB({layout:r,closable:!!m})},u.createElement("p",{className:kB},e),t&&u.createElement("p",{className:BB},t));return r==="full-width"?u.createElement("div",{role:"alert",className:ee(zy({layout:r}),w,p),...g},u.createElement("div",{className:wB},u.createElement("div",{className:Vy({layout:r})},k,T),(E||K)&&u.createElement("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:gap-2"},E,K))):u.createElement("div",{role:"alert",className:ee(zy({layout:r}),w,p),...g},k,u.createElement("div",{className:Vy({layout:r})},T,E),K)};_y.displayName="Alert";const IB={success:{container:"bg-success-100",badge:"bg-success-900",iconColor:"text-success-100",text:"text-success-900",defaultTitle:"Success!"},error:{container:"bg-error-100",badge:"bg-error-800",iconColor:"text-error-100",text:"text-error-800",defaultTitle:"Error!"},warning:{container:"bg-warning-100",badge:"bg-warning-800",iconColor:"text-warning-100",text:"text-warning-800",defaultTitle:"Warning!"},info:{container:"bg-info-100",badge:"bg-info-900",iconColor:"text-info-100",text:"text-info-900",defaultTitle:"Info"}},MB=Z("relative flex w-full max-w-[400px] items-center gap-2 rounded-md px-2 py-3 shadow-[0px_4px_4px_0px_rgba(0,0,0,0.04)]"),KB="mt-0.5 flex size-6 shrink-0 items-center justify-center rounded-full",LB="flex-1 break-words font-nunito text-sm leading-5",OB=Z(["absolute -left-4 -top-3 flex size-6 shrink-0 items-center justify-center rounded-full","shadow-[0px_4px_4px_0px_rgba(0,0,0,0.04)]","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2"],{variants:{variant:{success:"bg-success-100 text-success-900",error:"bg-error-100 text-error-800",warning:"bg-warning-100 text-warning-800",info:"bg-info-100 text-info-900"}}}),zB={success:nl,error:cr,warning:B$,info:dr},Ry=({variant:e,message:t,title:n,onClose:r,closeLabel:i="Close",className:a})=>{const l=IB[e],o=zB[e];return b.createElement("div",{role:"status",className:H(MB(),l.container,a)},b.createElement("div",{className:H(KB,l.badge)},b.createElement(o,{size:16,stroke:3,className:l.iconColor})),b.createElement("p",{className:H(LB,l.text)},b.createElement("span",{className:"font-bold"},n??l.defaultTitle),b.createElement("span",{className:"ml-1 font-normal"},t)),r&&b.createElement("button",{type:"button","aria-label":i,onClick:r,className:OB({variant:e})},b.createElement(cr,{size:14,stroke:2.5})))};Ry.displayName="Toast";const ss=Z(["relative flex w-full max-w-[504px] items-start gap-4 rounded-xl border border-light-200","bg-white p-4 shadow-lg"],{variants:{type:{image:"flex-col gap-4 p-0 sm:flex-row"}}}),VB={"primary-icon":{shape:"rounded-full",bg:"bg-primary-100",iconText:"text-primary-500"},"gray-icon":{shape:"rounded-lg border border-light-200 shadow-xs",bg:"bg-white",iconText:"text-light-700"},progress:{shape:"rounded-lg border border-light-200 shadow-xs",bg:"bg-white",iconText:"text-light-700"},success:{shape:"rounded-full",bg:"bg-success-50",iconText:"text-success-500"},warning:{shape:"rounded-full",bg:"bg-warning-100",iconText:"text-warning-500"},error:{shape:"rounded-full",bg:"bg-error-50",iconText:"text-error-500"},avatar:null,image:null,"no-icon":null},jy="font-nunito font-bold text-caption-lg text-light-800",Hy="font-nunito font-normal text-caption-lg text-light-600",_B="flex flex-wrap items-center gap-3",RB=Z(["inline-flex items-center justify-center gap-1 bg-transparent p-0","text-caption-lg font-semibold transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2"],{variants:{emphasis:{primary:"text-primary-500 hover:text-primary-800",secondary:"text-light-800 hover:text-light-900"}},defaultVariants:{emphasis:"secondary"}}),jB="absolute right-[7px] top-[7px] flex size-9 shrink-0 items-center justify-center rounded-lg bg-transparent text-light-500 transition-colors hover:bg-light-50 hover:text-light-700 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2",HB="h-2 w-full rounded-full bg-light-200",UB="h-2 rounded-full bg-primary-500",WB="font-nunito text-caption-lg font-medium text-light-600",GB="h-[122px] w-full shrink-0 overflow-hidden rounded-md bg-light-50 sm:h-auto sm:w-20 sm:self-stretch sm:rounded-none sm:rounded-l-xl",ZB="flex flex-1 flex-col gap-3 p-4 sm:py-4 sm:pl-5 sm:pr-4",YB={"primary-icon":dr,progress:I$,success:nl,warning:$i,error:$i},Uy=({action:e,emphasis:t})=>b.createElement("button",{type:"button",onClick:e.onClick,className:RB({emphasis:t})},e.label),Wy=({type:e,title:t,supportingText:n,primaryAction:r,secondaryAction:i,onClose:a,closeLabel:l="Close",icon:o,avatarSrc:s,avatarAlt:d,timestamp:c,imageSrc:f,imageAlt:m,progressValue:h,progressLabel:p,className:g})=>{const y=VB[e],$=YB[e],v=!!(r||i)?b.createElement("div",{className:_B},i&&b.createElement(Uy,{action:i,emphasis:"secondary"}),r&&b.createElement(Uy,{action:r,emphasis:"primary"})):null,C=a?b.createElement("button",{type:"button","aria-label":l,onClick:a,className:jB},b.createElement(An,{icon:cr,size:"sm",strokeWidth:2})):null,w=b.createElement("div",{className:"flex flex-col gap-1"},b.createElement("p",{className:jy},t),n&&b.createElement("p",{className:Hy},n)),S=e==="progress"?b.createElement("div",{className:"flex flex-col items-end gap-2"},b.createElement("div",{className:HB},b.createElement("div",{className:UB,style:{width:`${Math.min(100,Math.max(0,h??0))}%`}})),p&&b.createElement("p",{className:WB},p)):null,B=e==="avatar"?b.createElement(Ha,{src:s,alt:d,size:"md",status:"online"}):y?b.createElement("div",{className:H("flex size-8 shrink-0 items-center justify-center",y.shape,y.bg)},o??($&&b.createElement(An,{icon:$,size:"sm",strokeWidth:2,className:y.iconText}))):null;return e==="image"?b.createElement("div",{role:"status",className:H(ss({type:e}),g)},b.createElement("div",{className:GB},f&&b.createElement("img",{src:f,alt:m??"",className:"size-full object-cover"})),b.createElement("div",{className:ZB},w,v),C):e==="avatar"?b.createElement("div",{role:"status",className:H(ss(),g)},B,b.createElement("div",{className:"flex min-w-0 flex-1 flex-col gap-3"},b.createElement("div",{className:"flex flex-col gap-1"},b.createElement("div",{className:"flex flex-wrap items-center gap-2"},b.createElement("p",{className:jy},t),c&&b.createElement("span",{className:"font-nunito text-caption-lg text-light-500"},c)),n&&b.createElement("p",{className:Hy},n)),v),C):b.createElement("div",{role:"status",className:H(ss(),g)},B,b.createElement("div",{className:"flex min-w-0 flex-1 flex-col gap-3"},w,S,v),C)};Wy.displayName="NotificationToast";const qB=H("relative overflow-auto rounded-lg border border-light-200 bg-white"),XB=H("w-full border-collapse text-left"),JB=H("sticky top-0 z-10 bg-light-100"),QB=H("data-[empty]:h-full"),eN=H("border-t border-light-200 bg-light-100 [&_tr]:!bg-light-100"),tN=H("relative min-h-[36px] whitespace-nowrap px-5 py-2 align-middle","border-b border-r border-light-200 last:border-r-0","has-[[data-resizable-direction]]:border-r-0","font-nunito text-caption-lg leading-caption-lg text-light-800","select-none","data-[hovered]:bg-light-200","data-[focus-visible]:outline data-[focus-visible]:outline-2","data-[focus-visible]:outline-primary-500 data-[focus-visible]:-outline-offset-2"),nN={start:"text-left",center:"text-center",end:"text-right"},rN=H("sticky z-30 bg-light-100 data-[hovered]:bg-light-200"),Gy={left:"border-r-0 shadow-[inset_-1px_0_0_0_#D0D5DD]",right:"border-l-0 shadow-[inset_1px_0_0_0_#D0D5DD]"},iN=H("sticky z-20 bg-white","data-[hovered]:bg-light-100","group-data-[selected]/row:bg-primary-100","group-data-[selected]/row:data-[hovered]:bg-primary-200"),aN=H("flex min-w-0 items-center justify-between gap-3 self-stretch"),Zy={inactive:"text-light-500",active:"text-light-800"},lN=H("group/row","bg-white data-[hovered]:bg-light-100","data-[selected]:bg-primary-100","data-[selected]:data-[hovered]:bg-primary-200","data-[disabled]:bg-white data-[disabled]:text-light-500","data-[focus-visible]:outline data-[focus-visible]:outline-2","data-[focus-visible]:outline-primary-500","data-[focus-visible]:-outline-offset-2"),oN=H("group/cell relative min-h-[42px] min-w-0 px-5 py-2 align-middle","border-b border-r border-light-200 last:border-r-0","font-nunito text-caption-lg leading-caption-lg text-light-800","data-[disabled]:text-light-500","data-[focus-visible]:outline data-[focus-visible]:outline-2","data-[focus-visible]:outline-primary-500","data-[focus-visible]:-outline-offset-2"),uN=H("flex min-h-[26px] min-w-0 items-center gap-3 self-stretch"),sN=H("group-first/cell:group-data-[selected]/row:shadow-[inset_2px_0_0_0_#1352BF]"),dN="block truncate",cN=H("absolute right-[-3px] top-0 h-full w-2 shrink-0 cursor-col-resize touch-none","data-[resizable-direction=left]:cursor-w-resize","data-[resizable-direction=right]:cursor-e-resize","after:absolute after:right-1/2 after:top-0 after:h-full after:w-px after:translate-x-1/2 after:bg-light-300","after:transition-[width,background-color] after:duration-100 after:ease-out","data-[hovered]:after:w-0.5 data-[hovered]:after:bg-light-500","data-[resizing]:after:w-0.5 data-[resizing]:after:bg-primary-500","data-[focus-visible]:outline data-[focus-visible]:outline-2","data-[focus-visible]:outline-primary-500 data-[focus-visible]:-outline-offset-2"),fN=H("w-full border-t border-light-200 py-3 text-center"),pi={container:H("flex flex-col items-center gap-3 px-6 py-10 text-center"),iconWrap:H("flex h-14 w-14 items-center justify-center rounded-full bg-light-100 text-light-500 [&>svg]:h-6 [&>svg]:w-6"),title:H("font-nunito text-body-sm font-semibold text-light-800"),description:H("max-w-sm font-nunito text-caption-lg text-light-600"),actions:H("mt-2 flex items-center gap-2")};function Yy({sticky:e,stickyOffset:t=0},n){return e?{...n,[e]:t}:n}const qy=u.forwardRef(({className:e,...t},n)=>b.createElement(F7,{ref:n,...t,className:H(qB,e)}));qy.displayName="TableContainer";const Xy=u.forwardRef(({className:e,...t},n)=>b.createElement(I7,{ref:n,...t,className:H(XB,e)}));Xy.displayName="Table";const mN=u.forwardRef(({className:e,...t},n)=>b.createElement(z7,{ref:n,...t,className:H(JB,e)})),hN=u.forwardRef(({className:e,...t},n)=>b.createElement(W7,{ref:n,...t,className:H(QB,e)})),pN=u.forwardRef(({className:e,...t},n)=>b.createElement(Z7,{ref:n,...t,className:H(eN,e)})),bN={onPointerDown:e=>e.stopPropagation(),onMouseDown:e=>e.stopPropagation(),onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation()},Jy=u.forwardRef(({className:e,align:t="start",children:n,allowsSorting:r,actions:i,sticky:a,stickyOffset:l,style:o,...s},d)=>b.createElement(j7,{ref:d,allowsSorting:r,...s,style:Yy({sticky:a,stickyOffset:l},o),className:H(tN,nN[t],a&&rN,a&&Gy[a],e)},c=>{const{allowsSorting:f,sortDirection:m}=c;let h=typeof n=="function"?n(c):n;b.isValidElement(h)&&h.type===b.Fragment&&(h=h.props.children);const p=b.Children.toArray(h),g=p.filter($=>b.isValidElement($)&&$.type===Qa),y=p.filter($=>!(b.isValidElement($)&&$.type===Qa));return b.createElement("div",{className:aN},b.createElement("span",{className:"min-w-0 truncate"},y),f&&b.createElement("span",{className:H("shrink-0",m?Zy.active:Zy.inactive)},m==="ascending"&&b.createElement(A$,{size:14,"aria-hidden":"true"}),m==="descending"&&b.createElement(N$,{size:14,"aria-hidden":"true"}),!m&&b.createElement(F$,{size:14,"aria-hidden":"true"})),i&&b.createElement("span",{className:"shrink-0",...bN},i),g)}));Jy.displayName="Column";const gN=u.forwardRef(({className:e,...t},n)=>b.createElement(Y7,{ref:n,...t,className:H(lN,e)})),Qy=u.forwardRef(({className:e,children:t,sticky:n,stickyOffset:r,style:i,...a},l)=>b.createElement(q7,{ref:l,...a,style:Yy({sticky:n,stickyOffset:r},i),className:H(oN,sN,n&&iN,n&&Gy[n],e)},o=>b.createElement("div",{className:uN},typeof t=="function"?t(o):t)));Qy.displayName="Cell";const Qa=u.forwardRef(({className:e,...t},n)=>b.createElement(H7,{ref:n,...t,className:H(cN,e)}));Qa.displayName="ColumnResizer";const e$=u.forwardRef(({className:e,children:t,isLoading:n,...r},i)=>b.createElement(rC,{ref:i,isLoading:n,...r,className:H(fN,e)},t??(n&&b.createElement(As,{size:18,className:"inline-block animate-spin text-light-500","aria-label":"Loading more"}))));e$.displayName="TableLoadMoreItem";const t$=b.forwardRef(({icon:e,title:t,description:n,actions:r,className:i},a)=>b.createElement("div",{ref:a,className:H(pi.container,i)},e&&b.createElement("div",{className:pi.iconWrap},e),b.createElement("p",{className:pi.title},t),n&&b.createElement("p",{className:pi.description},n),r&&b.createElement("div",{className:pi.actions},r)));t$.displayName="EmptyState";const yN=Z(["fixed inset-0 flex items-center justify-center","bg-black/40 p-4"]),$N=Z(["relative flex max-h-full items-stretch overflow-hidden","rounded-xl border border-light-200 bg-white","shadow-[0px_2px_4px_-1px_rgba(16,24,40,0.08),0px_8px_24px_-4px_rgba(16,24,40,0.14)]","outline-none"]),vN=Z(["flex min-w-0 shrink-0 flex-col self-stretch overflow-hidden outline-none"],{variants:{size:{sm:"w-[500px]",md:"w-[640px]",lg:"w-[800px]"}},defaultVariants:{size:"sm"}}),xN=Z(["absolute right-[7px] top-[7px] z-10"]),CN=Z(["flex w-full shrink-0 items-center gap-3 px-6 py-4"]),DN=Z(["min-h-0 w-full flex-1 overflow-y-auto"]),EN=Z(["flex shrink-0 items-center justify-center self-stretch overflow-hidden py-2 pr-2"]),wN=Z(["flex h-full w-[240px] items-center justify-center overflow-hidden","rounded-lg border border-light-200 bg-primary-50"]),SN=Z(["flex w-full shrink-0 items-center gap-3 px-6 py-4"],{variants:{layout:{"horizontal-fill":"[&>*]:flex-1",horizontal:"justify-end","vertical-fill":"flex-col items-stretch","right-aligned":"","right-aligned-checkbox":"","wizard-navigation":"","single-cta":""}},defaultVariants:{layout:"horizontal-fill"}}),n$=b.forwardRef(({className:e,style:t,size:n="sm",showCloseButton:r=!0,isDismissable:i=!0,imagePanel:a,children:l,"aria-label":o,"aria-labelledby":s,...d},c)=>b.createElement(Kb,{...d,isDismissable:i,className:yN(),style:{zIndex:$D}},b.createElement(K8,{ref:c,className:$N()},b.createElement(G3,{"aria-label":o,"aria-labelledby":s,style:t,className:H(vN({size:n}),e)},f=>b.createElement(b.Fragment,null,r&&b.createElement(Ze,{type:"button",size:"sm",variant:"ghost",iconOnly:!0,onPress:f.close,"aria-label":"Close",className:xN()},b.createElement(Ze.Icon,null,b.createElement(cr,{size:16}))),typeof l=="function"?l(f):l)),a)));n$.displayName="Modal";const PN=({title:e,subtitle:t,icon:n,className:r})=>b.createElement("div",{className:H(CN(),r)},n&&b.createElement("span",{className:"flex size-6 shrink-0 items-center justify-center","aria-hidden":"true"},n),b.createElement("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5"},b.createElement(Pc,{slot:"title",className:"text-[18px] font-bold leading-5 text-light-800"},e),t&&b.createElement("p",{className:"text-caption-sm text-light-500"},t))),kN=({children:e,className:t})=>b.createElement("div",{className:H(DN(),t)},e),BN=({children:e,className:t})=>b.createElement("div",{className:EN()},b.createElement("div",{className:H(wN(),t)},e)),r$=b.createElement("div",{className:"h-px min-w-px flex-1","aria-hidden":"true"}),NN=({layout:e="horizontal-fill",destructive:t=!1,isPending:n=!1,cancelLabel:r,onCancel:i,confirmLabel:a,onConfirm:l,isConfirmDisabled:o=!1,backLabel:s="Back",onBack:d,checkbox:c,className:f})=>{const m=b.createElement(Ze,{type:"button",size:"sm",tone:t?"destructive":"primary",isDisabled:o||n,isPending:n,onPress:l},b.createElement(Ze.Text,null,a)),h=r&&b.createElement(Ze,{type:"button",size:"sm",variant:"outline",isDisabled:n,onPress:i},b.createElement(Ze.Text,null,r)),p=r&&b.createElement(Ze,{type:"button",size:"sm",variant:"plain",isDisabled:n,onPress:i},b.createElement(Ze.Text,null,r)),g=b.createElement(Ze,{type:"button",size:"sm",variant:"outline",isDisabled:n,onPress:d},b.createElement(Ze.Text,null,s));let y;switch(e){case"single-cta":y=b.createElement("div",{className:"w-full"},m);break;case"vertical-fill":y=b.createElement(b.Fragment,null,b.createElement("div",{className:"w-full"},m),r&&b.createElement("div",{className:"flex w-full items-center justify-center"},p));break;case"right-aligned":y=b.createElement(b.Fragment,null,p,r$,m);break;case"right-aligned-checkbox":y=b.createElement(b.Fragment,null,c&&b.createElement("div",{className:"flex min-w-0 flex-1 items-start"},c),b.createElement("div",{className:"flex shrink-0 items-center gap-3"},h,m));break;case"wizard-navigation":y=b.createElement(b.Fragment,null,p,r$,b.createElement("div",{className:"flex shrink-0 items-center gap-3"},g,m));break;default:y=b.createElement(b.Fragment,null,h,m);break}return b.createElement("div",{className:H(SN({layout:e}),f)},y)},bi=n$;bi.Header=PN,bi.Body=kN,bi.ImagePanel=BN,bi.Footer=NN;function AN({className:e,style:t,...n},r){return b.createElement(Lu.Provider,{value:"listbox"},b.createElement(Wx,{ref:r,...n,style:t,className:H(S1,e)}))}const gi=b.forwardRef(AN);function FN({className:e,style:t,content:n="none",icon:r,shortcut:i,children:a,...l},o){const s=n==="icon"?r:n==="selection"?d=>b.createElement("span",{className:P1},d.isSelected&&b.createElement(vi,{size:16,"aria-hidden":"true"})):void 0;return b.createElement(F1,{ref:o,...l,style:t,className:e,leadingSlot:s,trailingSlot:i?b.createElement("span",{className:k1},i):void 0},a)}const ds=b.forwardRef(FN),TN=({className:e})=>b.createElement(Im,{className:H(B1,e)}),i$=b.createContext(null);function IN(){const e=b.useContext(i$);if(!e)throw new Error("SelectPopover must be rendered inside Select.");return e}const MN=Z(["flex w-full items-center justify-between gap-2 border bg-white text-left","text-light-900 outline-none cursor-pointer","transition-[border-color,box-shadow]","border-light-200 group-data-[open]:border-primary-500","group-data-[focus-visible]:shadow-focus","group-data-[invalid]:border-error-200 group-data-[invalid]:group-data-[open]:border-error-500 group-data-[invalid]:group-data-[focus-visible]:border-error-500","group-data-[disabled]:cursor-not-allowed group-data-[disabled]:bg-light-100 group-data-[disabled]:text-light-400"],{variants:{size:{xs:"h-7 rounded px-3 text-caption-sm",sm:"h-9 rounded-lg px-3 text-caption-lg",md:"h-11 rounded-lg px-3 text-body-sm"}},defaultVariants:{size:"md"}}),KN="flex size-4 shrink-0 items-center justify-center text-light-500",LN={xs:18,sm:20,md:24},ON=Z("min-w-0 flex-1 truncate",{variants:{placeholder:{true:"text-light-400",false:"font-medium text-light-800"}},defaultVariants:{placeholder:!1}}),zN=Z("shrink-0 text-light-500 transition-transform",{variants:{open:{true:"rotate-180",false:""}},defaultVariants:{open:!1}}),VN="p-2 pb-1",_N="flex h-9 items-center gap-2 rounded-lg border border-light-200 px-3 focus-within:border-primary-500 focus-within:shadow-focus",RN="min-w-0 flex-1 bg-transparent text-caption-lg text-light-800 outline-none placeholder:text-light-400";function jN({isOpen:e,onClose:t}){const n=b.useRef(e);return b.useEffect(()=>{n.current&&!e&&t(),n.current=e},[e,t]),null}function HN({className:e,style:t,children:n,...r},i){const[a,l]=b.useState(""),o=b.useMemo(()=>({query:a,setQuery:l}),[a]);return b.createElement(Y8,{ref:i,...r,style:t,className:H("group w-full",e)},s=>b.createElement(i$.Provider,{value:o},b.createElement(jN,{isOpen:s.isOpen,onClose:()=>l("")}),typeof n=="function"?n(s):n))}const cs=b.forwardRef(HN),el=b.forwardRef(({className:e,style:t,size:n="md",icon:r,children:i,...a},l)=>b.createElement(Xt,{ref:l,...a,style:t,className:H(MN({size:n}),e)},o=>b.createElement(b.Fragment,null,r&&b.createElement("span",{className:KN},r),typeof i=="function"?i(o):i,b.createElement(xi,{size:LN[n],"aria-hidden":"true",className:zN({open:o.isPressed})}))));el.displayName="SelectTrigger";function UN({className:e,style:t,...n},r){return b.createElement(J8,{ref:r,...n,style:t,className:i=>H(ON({placeholder:i.isPlaceholder}),e)})}const fs=b.forwardRef(UN);function ms({className:e,...t}){return b.createElement(ds,{...t,content:"selection",className:e})}function WN({items:e,children:t,getTextValue:n,filter:r,searchPlaceholder:i="Search...",searchAriaLabel:a="Search options",emptyState:l="No options found",className:o}){const{query:s,setQuery:d}=IN(),c=b.useMemo(()=>Array.from(e),[e]),f=b.useRef(null),m=b.useRef(null),h=b.useContext(cu)?.isOpen??!1;b.useEffect(()=>{if(!h)return;const y=window.setTimeout(()=>m.current?.focus(),0);return()=>window.clearTimeout(y)},[h]);const p=b.useMemo(()=>{const y=s.trim().toLocaleLowerCase();return y?c.filter($=>r?r($,s):n($).toLocaleLowerCase().includes(y)):c},[r,n,c,s]),g=y=>{if(y.key!=="ArrowDown")return;const $=f.current?.querySelector('[role="option"]:not([data-disabled])');$&&(y.preventDefault(),$.focus())};return b.createElement(Pt,{matchTriggerWidth:!0,placement:"bottom start",className:H(o)},b.createElement("div",{className:VN},b.createElement(vg,{"aria-label":a,value:s,onChange:d},b.createElement("div",{className:_N},b.createElement(Fs,{size:18,"aria-hidden":"true",className:"shrink-0 text-light-500"}),b.createElement(Or,{ref:m,placeholder:i,className:RN,onKeyDown:g})))),b.createElement(gi,{ref:f,items:p,renderEmptyState:()=>l},t))}const GN=Z(["flex w-full flex-nowrap items-center gap-2 border bg-white text-left","border-light-200 text-light-900","transition-[border-color,box-shadow]","group-data-[open]:border-primary-500","group-data-[focus-visible]:shadow-focus","group-data-[invalid]:border-error-200 group-data-[invalid]:group-data-[open]:border-error-500 group-data-[invalid]:group-data-[focus-visible]:border-error-500","group-data-[disabled]:cursor-not-allowed group-data-[disabled]:bg-light-100 group-data-[disabled]:text-light-400"],{variants:{size:{xs:"h-7 rounded px-3 text-caption-sm",sm:"h-9 rounded-lg px-3 text-caption-lg",md:"h-11 rounded-lg px-3 text-body-sm"}},defaultVariants:{size:"md"}}),ZN=Z("flex shrink-0 items-center justify-center text-light-500",{variants:{size:{xs:"size-5",sm:"size-6",md:"size-7"}},defaultVariants:{size:"md"}}),YN="flex min-w-0 flex-nowrap items-center gap-1.5 overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",qN="min-w-[4rem] flex-1 bg-transparent font-medium text-light-800 outline-none placeholder:font-normal placeholder:text-light-400 disabled:cursor-not-allowed";function XN({className:e,style:t,children:n,...r},i){return b.createElement(G9,{ref:i,...r,style:t,className:H("group",e)},n)}const JN=b.forwardRef(XN),a$=b.forwardRef(({className:e,size:t="md",icon:n,children:r,onClick:i,...a},l)=>{const o=b.useCallback(s=>{i?.(s),s.target.closest("button, input")||s.currentTarget.querySelector("input")?.focus()},[i]);return b.createElement(Lr,{ref:l,...a,onClick:o,className:H(GN({size:t}),e)},n&&b.createElement("span",{className:ZN({size:t})},n),r)});a$.displayName="ComboBoxTrigger";const l$=b.forwardRef(({className:e,style:t,onKeyDown:n,...r},i)=>{const a=b.useContext(nu),l=b.useCallback(o=>{if(n?.(o),o.key==="Backspace"&&!o.defaultPrevented&&o.currentTarget.value===""&&a?.selectionManager.selectionMode==="multiple"){const s=a.selectedItems[a.selectedItems.length-1];s&&a.selectionManager.toggleSelection(s.key)}},[n,a]);return b.createElement(Or,{ref:i,...r,style:t,onKeyDown:l,className:H(qN,e)})});l$.displayName="ComboBoxInput";const QN=({children:e})=>{const t=b.useContext(nu);return t?b.createElement("div",{className:YN},t.selectedItems.map(n=>n?b.createElement(b.Fragment,{key:n.key},e({key:n.key,textValue:n.textValue??String(n.key),onRemove:()=>t.selectionManager.toggleSelection(n.key)})):null)):null};function eA({className:e,...t}){return b.createElement(ds,{...t,content:"selection",className:e})}const o$=b.createContext(null);function u$(){const e=b.useContext(o$);if(!e)throw new Error("MultiSelect components must be rendered inside MultiSelect.");return e}function tA({"aria-label":e,items:t,children:n,selectedKeys:r,defaultSelectedKeys:i,onSelectionChange:a,disabledKeys:l,getTextValue:o,filter:s,searchValue:d,defaultSearchValue:c="",onSearchChange:f,isDisabled:m=!1,className:h}){const p=b.useMemo(()=>Array.from(t),[t]),g=r!==void 0,[y,$]=b.useState(()=>new Set(i)),x=b.useMemo(()=>g?new Set(r):y,[r,g,y]),v=d!==void 0,[C,w]=b.useState(c),S=v?d:C,[B,E]=b.useState(!1),k=b.useCallback(M=>{v||w(M),f?.(M)},[v,f]),K=b.useCallback(M=>{E(M),!M&&!v&&w("")},[v]),T=b.useCallback(M=>{if(M==="all")return;const G=new Set(M);g||$(G),a?.(G)},[g,a]),I=b.useMemo(()=>{const M=S.trim().toLocaleLowerCase();return M?p.filter(G=>s?s(G,S):o(G).toLocaleLowerCase().includes(M)):p},[s,o,p,S]),R=b.useMemo(()=>new Set(l),[l]),D={label:e,items:p,filteredItems:I,selectedKeys:x,disabledKeys:R,onSelectionChange:T,query:S,setQuery:k,isOpen:B,setOpen:K,isDisabled:m};return b.createElement(o$.Provider,{value:D},b.createElement("div",{className:H("w-full",h)},b.createElement(O9,{isOpen:B,onOpenChange:K},n)))}const nA=Z(["flex w-full items-center justify-between gap-2 border bg-white text-left","font-medium text-light-800 outline-none transition-[border-color,box-shadow]","hover:border-light-300 focus-visible:shadow-focus","disabled:cursor-not-allowed disabled:bg-light-100 disabled:text-light-400"],{variants:{size:{xs:"h-7 rounded px-3 text-caption-sm",sm:"h-9 rounded-lg px-3 text-caption-lg",md:"h-11 rounded-lg px-3 text-body-sm"},open:{true:"border-primary-500",false:"border-light-200"}},defaultVariants:{size:"md",open:!1}}),rA="overflow-hidden rounded-lg border border-light-200 bg-white shadow-lg outline-none",iA="outline-none",aA="p-2 pb-1",lA="flex h-9 items-center gap-2 rounded-lg border border-light-200 px-3 focus-within:border-primary-500 focus-within:shadow-focus",oA="min-w-0 flex-1 bg-transparent text-caption-lg text-light-800 outline-none placeholder:text-light-400",uA={xs:18,sm:20,md:20},s$=b.forwardRef(({children:e,size:t="md",className:n,style:r,...i},a)=>{const{isOpen:l,isDisabled:o}=u$();return b.createElement(Xt,{ref:a,isDisabled:o,style:r,className:H(nA({size:t,open:l}),n),...i},b.createElement("span",{className:"min-w-0 flex-1 truncate"},e),b.createElement(xi,{size:uA[t],"aria-hidden":"true",className:H("shrink-0 text-light-500 transition-transform",l&&"rotate-180")}))});s$.displayName="MultiSelectTrigger";function sA({children:e,searchPlaceholder:t="Search...",emptyState:n="No options found",className:r}){const{label:i,filteredItems:a,selectedKeys:l,disabledKeys:o,onSelectionChange:s,query:d,setQuery:c,setOpen:f}=u$(),m=b.useRef(null),h=p=>{if(p.key!=="ArrowDown")return;const g=m.current?.querySelector('[role="option"]:not([data-disabled])');g&&(p.preventDefault(),g.focus())};return b.createElement(Pt,{matchTriggerWidth:!0,placement:"bottom start",className:H(rA,r)},b.createElement(G3,{"aria-label":i,className:iA},b.createElement("div",{onKeyDownCapture:p=>{const g=p.target;if(p.key.toLowerCase()==="a"&&(p.ctrlKey||p.metaKey)&&!!g.closest('[role="listbox"]')){p.preventDefault(),p.stopPropagation();return}p.key==="Escape"&&(p.preventDefault(),p.stopPropagation(),f(!1))}},b.createElement("div",{className:aA},b.createElement(vg,{"aria-label":`Search ${i.toLocaleLowerCase()}`,value:d,onChange:c},b.createElement("div",{className:lA},b.createElement(Fs,{size:18,"aria-hidden":"true",className:"shrink-0 text-light-500"}),b.createElement(Or,{autoFocus:!0,placeholder:t,className:oA,onKeyDown:h})))),b.createElement(gi,{ref:m,"aria-label":`${i} options`,items:a,selectionMode:"multiple",selectedKeys:l,disabledKeys:o,onSelectionChange:s,escapeKeyBehavior:"none",renderEmptyState:()=>n},e))))}const dA=Z(["relative inline-flex w-fit items-center font-semibold","transition-[color,background-color] duration-150","focus-visible:outline-none","[-webkit-tap-highlight-color:transparent]","data-[disabled]:pointer-events-none data-[disabled]:cursor-not-allowed data-[disabled]:text-light-400"],{variants:{size:{xs:"gap-1 text-caption-sm",sm:"gap-1 text-caption-lg",md:"gap-1.5 text-body-sm"},variant:{text:["bg-transparent text-light-600","data-[hovered]:text-light-900","data-[current]:text-light-800","focus-visible:rounded focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"],ghost:["bg-transparent text-light-500 rounded-md","data-[hovered]:bg-light-50 data-[hovered]:text-light-700","data-[current]:bg-light-50 data-[current]:text-light-800","focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"],"ghost-primary":["bg-transparent text-primary-500 rounded-md","data-[hovered]:bg-primary-100 data-[hovered]:text-primary-800","data-[current]:bg-primary-100 data-[current]:text-primary-800","focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white"]},underline:{none:"",hover:"data-[hovered]:underline underline-offset-2",always:"underline underline-offset-2"}},compoundVariants:[{variant:"ghost",size:"xs",class:"px-1.5 py-0.5"},{variant:"ghost",size:"sm",class:"px-2 py-1"},{variant:"ghost",size:"md",class:"px-2.5 py-1.5"},{variant:"ghost-primary",size:"xs",class:"px-1.5 py-0.5"},{variant:"ghost-primary",size:"sm",class:"px-2 py-1"},{variant:"ghost-primary",size:"md",class:"px-2.5 py-1.5"}],defaultVariants:{size:"sm",variant:"text",underline:"none"}}),hs=b.forwardRef(({children:e,className:t,variant:n="text",size:r="sm",underline:i="none",...a},l)=>b.createElement(Ev,{...a,ref:l,className:al(t,o=>H(dA({variant:n,size:r,underline:i}),o))},e));hs.displayName="Link";const d$=b.createContext({separator:"chevron",variant:"text",size:"sm"}),c$=()=>b.useContext(d$),cA="flex flex-wrap items-center",fA="inline-flex items-center gap-1.5",mA=Z("shrink-0 text-light-400",{variants:{type:{chevron:"size-4",slash:"size-3.5"}},defaultVariants:{type:"chevron"}}),hA="inline-flex size-5 shrink-0 items-center justify-center [&_svg]:size-full",f$=({"aria-label":e="Breadcrumb",separator:t="chevron",variant:n="text",size:r="sm",isDisabled:i,className:a,children:l})=>{const o=b.useMemo(()=>({separator:t,variant:n,size:r}),[t,n,r]);return b.createElement("nav",{"aria-label":e},b.createElement(d$.Provider,{value:o},b.createElement(Pv,{isDisabled:i,className:H(cA,a)},l)))};f$.displayName="Breadcrumbs";const ps=({type:e="chevron",className:t})=>{const n=e==="slash"?M$:Ns;return b.createElement("span",{"aria-hidden":"true",className:H(mA({type:e}),t)},b.createElement(n,{className:"size-full",stroke:2}))};ps.displayName="BreadcrumbSeparator";const m$=({className:e,children:t})=>{const{separator:n}=c$();return b.createElement(kv,{className:H(fA,e)},({isCurrent:r})=>b.createElement(b.Fragment,null,t,!r&&b.createElement(ps,{type:n})))};m$.displayName="Breadcrumb";const h$=({variant:e,size:t,icon:n,children:r,...i})=>{const a=c$();return b.createElement(hs,{variant:e??a.variant,size:t??a.size,...i},n&&b.createElement("span",{className:hA,"aria-hidden":"true"},n),r)};h$.displayName="BreadcrumbLink";const pA={xs:24,sm:32,md:40,lg:48,xl:56},bA={xs:12,sm:16,md:20,lg:24,xl:28},p$={brand:{light:"bg-primary-100",dark:"bg-primary-500",glass:"bg-primary-100/60 backdrop-blur-sm"},gray:{light:"bg-light-100",dark:"bg-light-600",modern:"bg-white border border-light-200 shadow-xs"},error:{light:"bg-error-50",dark:"bg-error-500"},warning:{light:"bg-warning-100",dark:"bg-warning-600"},success:{light:"bg-success-50",dark:"bg-success-500"}},b$={brand:{light:"text-primary-500",dark:"text-white",glass:"text-primary-700"},gray:{light:"text-light-700",dark:"text-white",modern:"text-light-700"},error:{light:"text-error-500",dark:"text-white"},warning:{light:"text-warning-600",dark:"text-white"},success:{light:"text-success-500",dark:"text-white"}};function gA(e,t){return p$[e][t]??p$[e].light??""}function yA(e,t){return b$[e][t]??b$[e].light??""}const $A=Z("relative inline-flex shrink-0 items-center justify-center",{variants:{type:{light:"rounded-full",dark:"rounded-lg",modern:"rounded-lg",glass:"rounded-full"}},defaultVariants:{type:"light"}}),g$=({icon:e,size:t="md",color:n="brand",type:r="light",className:i})=>{const a=pA[t],l=bA[t];return b.createElement("div",{"aria-hidden":!0,className:ee($A({type:r}),gA(n,r),i),style:{width:a,height:a}},b.createElement(An,{icon:e,strokeWidth:2,className:yA(n,r),style:{width:l,height:l}}))};g$.displayName="FeaturedIcon";const vA={xs:20,sm:24,md:28,lg:32},xA={xs:9,sm:11,md:12,lg:14},CA={primary:{default:"bg-primary-100",line:"bg-transparent border border-primary-300",filled:"bg-primary-500"},gray:{default:"bg-light-100",line:"bg-transparent border border-light-300",filled:"bg-light-600"},success:{default:"bg-success-50",line:"bg-transparent border border-success-300",filled:"bg-success-500"}},DA={primary:{default:"text-primary-500",line:"text-primary-500",filled:"text-white"},gray:{default:"text-light-700",line:"text-light-700",filled:"text-white"},success:{default:"text-success-500",line:"text-success-500",filled:"text-white"}};function EA(e,t){return CA[e][t]}function wA(e,t){return DA[e][t]}const SA=Z("relative inline-flex shrink-0 items-center justify-center rounded-full"),y$=({size:e="sm",color:t="primary",type:n="default",className:r})=>{const i=vA[e],a=xA[e];return b.createElement("div",{"aria-hidden":!0,className:ee(SA(),EA(t,n),r),style:{width:i,height:i}},b.createElement(An,{icon:vi,strokeWidth:2.5,className:wA(t,n),style:{width:a,height:a}}))};y$.displayName="CheckIcon";const PA={sm:8,md:10,lg:12},kA={sm:6,md:8,lg:10},BA=Z("relative shrink-0 rounded-full bg-current",{variants:{outline:{true:"ring-2 ring-white",false:""}},defaultVariants:{outline:!1}}),$$=({size:e="sm",outline:t=!1,className:n})=>{const r=PA[e],i=kA[e];return b.createElement("span",{"aria-hidden":!0,className:"relative inline-flex shrink-0 items-center justify-center",style:{width:r,height:r}},b.createElement("span",{className:ee(BA({outline:t}),n),style:{width:i,height:i}}))};$$.displayName="Dot";const v$="inline-flex flex-col gap-3 text-light-900",NA="flex h-9 w-full items-center justify-between gap-1",AA="flex-1 text-center text-body-sm font-semibold text-light-900",FA="flex min-w-0 flex-1 items-center justify-center gap-2",TA=Z("h-fit self-start border-separate border-spacing-x-0",{variants:{size:{sm:"border-spacing-y-1",md:"border-spacing-y-1"}},defaultVariants:{size:"md"}}),IA=Z("font-medium text-light-500",{variants:{size:{sm:"size-8 text-caption-sm",md:"size-10 text-caption-lg"}},defaultVariants:{size:"md"}}),MA=Z(["group/cell relative flex cursor-pointer select-none items-center justify-center rounded-full","font-medium text-light-800 outline-none","transition-colors","data-[outside-month]:pointer-events-none data-[outside-month]:text-light-400","data-[hovered]:bg-light-100","data-[disabled]:pointer-events-none data-[disabled]:text-light-400","data-[unavailable]:pointer-events-none data-[unavailable]:text-light-400 data-[unavailable]:line-through","data-[selected]:bg-primary-500 data-[selected]:text-white","data-[selected]:data-[hovered]:bg-primary-600","data-[focus-visible]:shadow-focus"],{variants:{size:{sm:"size-8 text-caption-sm",md:"size-10 text-caption-lg"}},defaultVariants:{size:"md"}}),KA=["data-[selected]:rounded-none data-[selected]:bg-light-50 data-[selected]:text-light-700","data-[selected]:data-[hovered]:bg-light-100","[td:first-child_&]:data-[selected]:rounded-l-full","[td:last-child_&]:data-[selected]:rounded-r-full","data-[selected]:data-[selection-start]:rounded-full data-[selected]:data-[selection-start]:bg-primary-500 data-[selected]:data-[selection-start]:text-white","data-[selected]:data-[selection-end]:rounded-full data-[selected]:data-[selection-end]:bg-primary-500 data-[selected]:data-[selection-end]:text-white","data-[selected]:data-[hovered]:data-[selection-start]:bg-primary-600","data-[selected]:data-[hovered]:data-[selection-end]:bg-primary-600"],LA=["pointer-events-none absolute bottom-1 left-1/2 size-1 -translate-x-1/2 rounded-full","bg-primary-500","group-data-[selected]/cell:group-data-[selection-start]/cell:bg-white","group-data-[selected]/cell:group-data-[selection-end]/cell:bg-white","group-data-[disabled]/cell:bg-light-400","group-data-[unavailable]/cell:bg-light-400"],OA=["data-[today]:font-bold data-[today]:text-primary-500","data-[today]:data-[selected]:text-primary-500","data-[today]:data-[selected]:data-[selection-start]:text-white","data-[today]:data-[selected]:data-[selection-end]:text-white"],zA=["data-[today]:font-bold data-[today]:text-primary-500","data-[today]:data-[selected]:text-white"],x$=["flex size-9 shrink-0 cursor-pointer items-center justify-center rounded-lg","text-light-500 outline-none transition-colors","data-[hovered]:bg-light-100 data-[hovered]:text-light-700","data-[focus-visible]:shadow-focus","data-[disabled]:cursor-not-allowed data-[disabled]:text-light-300"],tl=b.createContext({size:"md",isRange:!1});function VA(e,t){return b.useMemo(()=>t?new Proxy(e,{get(n,r,i){return r==="focusedDate"?n.focusedDate.add(t):r==="setFocusedDate"?a=>n.setFocusedDate(a.subtract(t)):Reflect.get(n,r,i)}}):e,[e,t])}function C$(e){const t=b.useContext(Yn),n=b.useContext(qn),r=t??n;if(!r)throw new Error("CalendarMonthSelect/CalendarYearSelect must be rendered inside a Calendar or RangeCalendar.");return VA(r,e)}function _A({previousLabel:e,nextLabel:t,withPickers:n=!1,visibleYears:r=20,offset:i,className:a}){return b.createElement("header",{className:H(NA,a)},b.createElement(Xt,{slot:"previous","aria-label":e,className:H(x$)},b.createElement(T$,{size:20,"aria-hidden":"true"})),n?b.createElement("div",{className:FA},b.createElement(D$,{offset:i}),b.createElement(E$,{visibleYears:r,offset:i})):b.createElement(sx,{offset:i,className:AA}),b.createElement(Xt,{slot:"next","aria-label":t,className:H(x$)},b.createElement(Ns,{size:20,"aria-hidden":"true"})))}function D$({format:e="long",size:t="sm",offset:n,className:r}){const i=C$(n),{items:a,value:l,onChange:o,"aria-label":s}=q6({format:e},i);return b.createElement(cs,{"aria-label":s,selectedKey:l,onSelectionChange:o,className:r},b.createElement(el,{size:t},b.createElement(fs,null)),b.createElement(Pt,null,b.createElement(gi,{items:a},d=>b.createElement(ms,{id:d.id,textValue:d.formatted},d.formatted))))}function E$({visibleYears:e=20,size:t="sm",offset:n,className:r}){const i=C$(n),{items:a,value:l,onChange:o,"aria-label":s}=X6({visibleYears:e},i);return b.createElement(cs,{"aria-label":s,selectedKey:l,onSelectionChange:o,className:r},b.createElement(el,{size:t},b.createElement(fs,null)),b.createElement(Pt,null,b.createElement(gi,{items:a},d=>b.createElement(ms,{id:d.id,textValue:d.formatted},d.formatted))))}function RA({size:e,className:t,...n}){const r=b.useContext(tl),i=e??r.size;return b.createElement(ix,{...n,className:H(TA({size:i}),t)},b.createElement(o0,null,a=>b.createElement(u0,{className:IA({size:i})},a)),b.createElement(s0,null,a=>b.createElement(w$,{date:a,size:i})))}function w$({date:e,size:t,className:n,...r}){const i=b.useContext(tl),a=t??i.size,l=i.hasActivity?.(e)??!1;return b.createElement(ux,{...r,date:e,className:H(MA({size:a}),i.isRange&&KA,i.isRange?OA:zA,n)},({formattedDate:o})=>b.createElement(b.Fragment,null,o,l?b.createElement("span",{"aria-hidden":"true",className:H(LA)}):null))}function jA({size:e="md",hasActivity:t,className:n,children:r,...i}){const a=b.useMemo(()=>({size:e,isRange:!1,hasActivity:t}),[e,t]);return b.createElement(tl.Provider,{value:a},b.createElement(nx,{...i,className:H(v$,n)},r))}function HA({size:e="md",hasActivity:t,className:n,children:r,...i}){const a=b.useMemo(()=>({size:e,isRange:!0,hasActivity:t}),[e,t]);return b.createElement(tl.Provider,{value:a},b.createElement(rx,{...i,className:H(v$,n)},r))}const UA=Z(["flex w-full items-center border bg-white text-left","border-light-200 text-light-800","transition-[border-color,box-shadow]","data-[focus-within]:border-primary-500","data-[focus-visible]:shadow-focus","data-[invalid]:border-error-500","data-[disabled]:cursor-not-allowed data-[disabled]:bg-light-100 data-[disabled]:text-light-400"],{variants:{size:{xs:"h-7 gap-1 rounded px-2 text-caption-sm",sm:"h-9 gap-2 rounded-lg px-3 text-caption-lg",md:"h-11 gap-2 rounded-lg px-3 text-body-sm"}},defaultVariants:{size:"md"}}),WA="flex min-w-0 flex-1 items-center",GA=["rounded px-0.5 tabular-nums outline-none","text-light-800 caret-transparent","data-[placeholder]:text-light-400","data-[focused]:bg-primary-500 data-[focused]:text-white","data-[disabled]:text-light-400","data-[type=literal]:px-0 data-[type=literal]:text-light-400"],ZA=Z("flex shrink-0 items-center justify-center text-light-500",{variants:{size:{xs:"size-5",sm:"size-6",md:"size-7"}},defaultVariants:{size:"md"}});function YA({size:e="md",icon:t,trailing:n,className:r,style:i,...a}){return b.createElement(C8,{...a,style:i,className:H("group w-full",r)},b.createElement(Lr,{className:UA({size:e})},t?b.createElement("span",{className:ZA({size:e}),"aria-hidden":"true"},t):null,b.createElement(D8,{className:WA},l=>b.createElement(w8,{segment:l,className:H(GA)})),n))}U.Alert=_y,U.Avatar=Ha,U.AvatarGroup=s1,U.AvatarLabelGroup=d1,U.AvatarProfilePhoto=c1,U.Badge=r1,U.BadgeGroup=i1,U.BaseInput=ti,U.Breadcrumb=m$,U.BreadcrumbLink=h$,U.BreadcrumbSeparator=ps,U.Breadcrumbs=f$,U.Button=Ze,U.Calendar=jA,U.CalendarCell=w$,U.CalendarGrid=RA,U.CalendarHeader=_A,U.CalendarMonthSelect=D$,U.CalendarYearSelect=E$,U.Cell=Qy,U.CheckIcon=y$,U.Checkbox=q2,U.CollectionItem=CB,U.Column=Jy,U.ColumnResizer=Qa,U.ComboBox=JN,U.ComboBoxInput=l$,U.ComboBoxItem=eA,U.ComboBoxTags=QN,U.ComboBoxTrigger=a$,U.DateField=YA,U.Dot=$$,U.EmptyState=t$,U.FeaturedIcon=g$,U.Icon=An,U.Input=os,U.InputCardNumber=Kk,U.InputCounter=Bk,U.InputDropdown=vB,U.InputPhone=xk,U.InputPrice=kk,U.Link=hs,U.ListBox=gi,U.ListBoxItem=ds,U.ListBoxSeparator=TN,U.Loading=a1,U.Menu=Ou,U.MenuHeader=jE,U.MenuItem=zu,U.MenuSeparator=RE,U.MenuTrigger=Aa,U.Modal=bi,U.MultiSelect=tA,U.MultiSelectPopover=sA,U.MultiSelectTrigger=s$,U.NotificationToast=Wy,U.Popover=Pt,U.RadioGroup=fD,U.RadioGroupItem=J2,U.RangeCalendar=HA,U.Row=gN,U.Select=cs,U.SelectItem=ms,U.SelectPopover=WN,U.SelectTrigger=el,U.SelectValue=fs,U.SelectionIndicator=Dx,U.Tab=f1,U.TabBrowser=$1,U.TabBrowserBar=v1,U.TabBrowserPreview=x1,U.TabList=m1,U.Table=Xy,U.TableBody=hN,U.TableContainer=qy,U.TableFooter=pN,U.TableHeader=mN,U.TableLoadMoreItem=e$,U.Tag=Tu,U.Textarea=My,U.Toast=Ry,U.Toggle=Q2,U.Tooltip=Ra,U.WebsiteCopyInput=sB,U.WebsiteInput=eB,U.buttonIconSizePx=aD,U.cellTruncate=dN,U.getDefaultCountryOptions=By,Object.defineProperty(U,Symbol.toStringTag,{value:"Module"})}));
|