cekat-ui 1.3.18 → 1.3.19
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/README.md +10 -5
- package/dist/components/RichTextEditor/RichTextEditor.d.ts +3 -0
- package/dist/components/RichTextEditor/index.d.ts +2 -0
- package/dist/components/RichTextEditor/richTextEditor.styles.d.ts +22 -0
- package/dist/components/RichTextEditor/richTextEditor.types.d.ts +22 -0
- package/dist/editor.d.mts +1 -0
- package/dist/editor.d.ts +1 -0
- package/dist/editor.mjs +23558 -0
- package/dist/editor.umd.js +35 -0
- package/dist/index.d.mts +204 -51
- package/dist/index.d.ts +204 -51
- package/dist/index.mjs +13374 -11500
- package/dist/index.umd.js +16 -16
- package/dist/style.css +444 -269
- package/editor.d.ts +1 -0
- package/editor.js +1 -0
- package/package.json +39 -10
- package/tailwind.preset.cjs +44 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
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=`
|
|
1
|
+
(function(U,m){typeof exports=="object"&&typeof module<"u"?m(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],m):(U=typeof globalThis<"u"?globalThis:U||self,m(U.CekatUI={},U.ReactJSXRuntime,U.React,U.ReactDOM))})(this,(function(U,m,s,Ut){"use strict";function qy(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const _=qy(s);var Xy={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 He=(e,t,r,n)=>{const i=s.forwardRef(({color:a="currentColor",size:l=24,stroke:o=2,title:u,className:d,children:c,...f},h)=>s.createElement("svg",{ref:h,...Xy[e],width:l,height:l,className:["tabler-icon",`tabler-icon-${t}`,d].join(" "),strokeWidth:o,stroke:a,...f},[u&&s.createElement("title",{key:"svg-title"},u),...n.map(([p,b])=>s.createElement(p,b)),...Array.isArray(c)?c:[c]]));return i.displayName=`${r}`,i};const ki=He("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 Jy=He("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 Qy=He("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 e5=He("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 t5=He("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 Bi=He("outline","check","Check",[["path",{d:"M5 12l5 5l10 -10",key:"svg-0"}]]);const Ni=He("outline","chevron-down","ChevronDown",[["path",{d:"M6 9l6 6l6 -6",key:"svg-0"}]]);const r5=He("outline","chevron-left","ChevronLeft",[["path",{d:"M15 6l-6 6l6 6",key:"svg-0"}]]);const Ou=He("outline","chevron-right","ChevronRight",[["path",{d:"M9 6l6 6l-6 6",key:"svg-0"}]]);const ol=He("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 n5=He("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 yn=He("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 Lu=He("outline","loader-2","Loader2",[["path",{d:"M12 3a9 9 0 1 0 9 9",key:"svg-0"}]]);const zu=He("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 i5=He("outline","slash","Slash",[["path",{d:"M17 5l-10 14",key:"svg-0"}]]);const vn=He("outline","x","X",[["path",{d:"M18 6l-12 12",key:"svg-0"}],["path",{d:"M6 6l12 12",key:"svg-1"}]]);function ot(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}const fe=typeof document<"u"?s.useLayoutEffect:()=>{},Ai={prefix:String(Math.round(Math.random()*1e10)),current:0},Vu=s.createContext(Ai),a5=s.createContext(!1);let l5=!!(typeof window<"u"&&window.document&&window.document.createElement),sl=new WeakMap;function o5(e=!1){let t=s.useContext(Vu),r=s.useRef(null);if(r.current===null&&!e){let n=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;if(n){let i=sl.get(n);i==null?sl.set(n,{id:t.current,state:n.memoizedState}):n.memoizedState!==i.state&&(t.current=i.id,sl.delete(n))}r.current=++t.current}return r.current}function s5(e){let t=s.useContext(Vu);t===Ai&&!l5&&process.env.NODE_ENV!=="production"&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let r=o5(!!e),n=t===Ai&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${n}-${r}`}function u5(e){let t=s.useId(),[r]=s.useState(Wt()),n=r||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Ai.prefix}`;return e||`${n}-${t}`}const d5=typeof s.useId=="function"?u5:s5;function c5(){return!1}function f5(){return!0}function h5(e){return()=>{}}function Wt(){return typeof s.useSyncExternalStore=="function"?s.useSyncExternalStore(h5,c5,f5):s.useContext(a5)}function p5(e){let[t,r]=s.useState(e),n=s.useRef(t),i=s.useRef(null),a=s.useRef(()=>{if(!i.current)return;let o=i.current.next();if(o.done){i.current=null;return}n.current===o.value?a.current():r(o.value)});fe(()=>{n.current=t,i.current&&a.current()});let l=s.useCallback(o=>{i.current=o(n.current),a.current()},[a]);return[t,l]}let m5=!!(typeof window<"u"&&window.document&&window.document.createElement),zr=new Map,Vr;typeof FinalizationRegistry<"u"&&(Vr=new FinalizationRegistry(e=>{zr.delete(e)}));let ul=new WeakMap;function De(e){let[t,r]=s.useState(e),n=s.useRef(null),i=d5(t),a=s.useRef(null),l=ul.get(a);if(Vr&&l!==i&&(l!=null&&Vr.unregister(a),Vr.register(a,i,a),ul.set(a,i)),m5){const o=zr.get(i);o&&!o.includes(n)?o.push(n):zr.set(i,[n])}return fe(()=>{let o=i;return()=>{Vr&&(Vr.unregister(a),ul.delete(a)),zr.delete(o)}},[i]),s.useEffect(()=>{let o=n.current;return o&&r(o),()=>{o&&(n.current=null)}}),i}function b5(e,t){if(e===t)return e;let r=zr.get(e);if(r)return r.forEach(i=>i.current=t),t;let n=zr.get(t);return n?(n.forEach(i=>i.current=e),e):t}function mt(e=[]){let t=De(),[r,n]=p5(t),i=s.useCallback(()=>{n(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,n]);return fe(i,[t,i,...e]),r}function Gt(...e){return e.length===1&&e[0]?e[0]:t=>{let r=!1;const n=e.map(i=>{const a=_u(i,t);return r||=typeof a=="function",a});if(r)return()=>{n.forEach((i,a)=>{typeof i=="function"?i():_u(e[a],null)})}}}function _u(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ju(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=ju(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Y(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=ju(e))&&(n&&(n+=" "),n+=t);return n}function W(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let n=e[r];for(let i in n){let a=t[i],l=n[i];typeof a=="function"&&typeof l=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=ot(a,l):(i==="className"||i==="UNSAFE_className")&&typeof a=="string"&&typeof l=="string"?t[i]=Y(a,l):i==="id"&&a&&l?t.id=b5(a,l):i==="ref"&&a&&l?t.ref=Gt(a,l):t[i]=l!==void 0?l:a}}return t}function Be(e){const t=s.useRef(null),r=s.useRef(void 0),n=s.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 s.useMemo(()=>({get current(){return t.current},set current(i){t.current=i,r.current&&(r.current(),r.current=void 0),i!=null&&(r.current=n(i))}}),[n])}const Ft=Symbol("default");function Ee({values:e,children:t}){for(let[r,n]of e)t=s.createElement(r.Provider,{value:n},t);return t}function se(e){let{className:t,style:r,children:n,defaultClassName:i,defaultChildren:a,defaultStyle:l,values:o,render:u}=e;return s.useMemo(()=>{let d,c,f;return typeof t=="function"?d=t({...o,defaultClassName:i}):d=t,typeof r=="function"?c=r({...o,defaultStyle:l||{}}):c=r,typeof n=="function"?f=n({...o,defaultChildren:a}):n==null?f=a:f=n,{className:d??i,style:c||l?{...l,...c}:void 0,children:f??a,"data-rac":"",render:u?h=>u(h,o):void 0}},[t,r,n,i,a,l,o,u])}function dl(e,t){return r=>t(typeof e=="function"?e(r):e,r)}function Re(e,t){let r=s.useContext(e);if(t===null)return null;if(r&&typeof r=="object"&&"slots"in r&&r.slots){let n=t||Ft;if(!r.slots[n]){let i=new Intl.ListFormat().format(Object.keys(r.slots).map(l=>`"${l}"`)),a=t?`Invalid slot "${t}".`:"A slot prop is required.";throw new Error(`${a} Valid slot names are ${i}.`)}return r.slots[n]}return r}function me(e,t,r){let n=Re(r,e.slot)||{},{ref:i,...a}=n,l=Be(s.useMemo(()=>Gt(t,i),[t,i])),o=W(a,e);return"style"in a&&a.style&&"style"in e&&e.style&&(typeof a.style=="function"||typeof e.style=="function"?o.style=u=>{let d=typeof a.style=="function"?a.style(u):a.style,c={...u.defaultStyle,...d},f=typeof e.style=="function"?e.style({...u,defaultStyle:c}):e.style;return{...c,...f}}:o.style={...a.style,...e.style}),[o,l]}function Rt(e=!0){let[t,r]=s.useState(e),n=s.useRef(!1),i=s.useCallback(a=>{n.current=!0,r(!!a)},[]);return fe(()=>{n.current||r(!1)},[]),[i,t]}function Zt(e){const t=/^(data-.*)$/;let r={};for(const n in e)t.test(n)||(r[n]=e[n]);return r}function g5(e,t,r){let{render:n,...i}=t,a=s.useRef(null),l=s.useMemo(()=>Gt(r,a),[r,a]);fe(()=>{process.env.NODE_ENV!=="production"&&n&&(a.current?a.current.localName!==e&&console.warn(`Unexpected DOM element returned by custom \`render\` function. Expected <${e}>, got <${a.current.localName}>. This may break the component behavior and accessibility.`):console.warn("Ref was not connected to DOM element returned by custom `render` function. Did you forget to pass through or merge the `ref`?"))},[e,n]);let o={...i,ref:l};return n?n(o,void 0):s.createElement(e,o)}const Hu={},re=new Proxy({},{get(e,t){if(typeof t!="string")return;let r=Hu[t];return r||(r=s.forwardRef(g5.bind(null,t)),Hu[t]=r),r}}),$5="react-aria-clear-focus",y5="react-aria-focus",de=e=>v5(e)?e.document:x5(e)?e:e?.ownerDocument??(typeof document<"u"?document:void 0),Ce=e=>de(e)?.defaultView??(typeof window<"u"?window:void 0);function Uu(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function v5(e){return typeof e=="object"&&e!=null&&"window"in e&&e.window===e}function x5(e){return Uu(e)&&e.nodeType===9}function cl(e){return Uu(e)&&e.nodeType===11&&"host"in e}function C5(e,t,r,n){if(r==null||e==null)return()=>{};let i=Array.isArray(e)?e:[e];for(let a of i)a.addEventListener(t,r,n);return()=>{for(let a of i)a.removeEventListener(t,r,n)}}let D5=!1;function bt(){return D5}function le(e,t){if(!bt())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let r=t;for(;r!==null;){if(r===e)return!0;typeof r.assignedElements!="function"&&r.assignedSlot?.parentNode?r=r.assignedSlot.parentNode:cl(r)?r=r.host:r=r.parentNode}return!1}const he=(e=document)=>{if(!bt())return e.activeElement;let t=e.activeElement;for(;t&&"shadowRoot"in t&&t.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t};function X(e){if(bt()&&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 w5(e,t){if(t===null)return[];t=t??Ce(e);let r=[t];if(!bt()||!e||e===t)return r;let n="getRootNode"in t?t.getRootNode():null,i=e.getRootNode()??null;for(;cl(i)&&i!==n;)r.push(i),i=i.host.getRootNode();return r}function Yt(e){if(!e)return!1;let t=e.getRootNode(),r=Ce(e);if(!(t instanceof r.Document||t instanceof r.ShadowRoot))return!1;let n=t.activeElement;return n!=null&&e.contains(n)}function Wu(e){let t=S5(de(e));t!==e&&(t&&E5(t,e),e&&fl(e,t))}function E5(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function fl(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function S5(e){let t=he(e),r=t?.getAttribute("aria-activedescendant");return r&&e.getElementById(r)||t}function et(e){if(P5())e.focus({preventScroll:!0});else{let t=k5(e);e.focus(),B5(t)}}let Fi=null;function P5(){if(Fi==null){Fi=!1;try{document.createElement("div").focus({get preventScroll(){return Fi=!0,!0}})}catch{}}return Fi}function k5(e){let t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}function B5(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}const N5=typeof Element<"u"&&"checkVisibility"in Element.prototype;function A5(e){const t=Ce(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:r,visibility:n}=e.style,i=r!=="none"&&n!=="hidden"&&n!=="collapse";if(i){const{getComputedStyle:a}=Ce(e);let{display:l,visibility:o}=a(e);i=l!=="none"&&o!=="hidden"&&o!=="collapse"}return i}function F5(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 hl(e,t){return N5?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&A5(e)&&F5(e,t)&&(!e.parentElement||hl(e.parentElement,e))}const pl=["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"],T5=pl.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";pl.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const I5=pl.join(':not([hidden]):not([tabindex="-1"]),');function Gu(e,t){return e.matches(T5)&&!Ru(e)&&(t?.skipVisibilityCheck||hl(e))}function ml(e){return e.matches(I5)&&hl(e)&&!Ru(e)}function Ru(e){let t=e;for(;t!=null;){if(t instanceof Ce(t).HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function bl(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function Zu(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function Yu(e){let t=s.useRef({isFocused:!1,observer:null});return fe(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]),s.useCallback(r=>{let n=X(r);if(n instanceof HTMLButtonElement||n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement||n instanceof HTMLSelectElement){t.current.isFocused=!0;let i=n,a=l=>{if(t.current.isFocused=!1,i.disabled){let o=bl(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===he()?null:he();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 Ti=!1;function qu(e){for(;e&&!Gu(e,{skipVisibilityCheck:!0});)e=e.parentElement;let t=Ce(e),r=t.document.activeElement;if(!r||r===e)return;Ti=!0;let n=!1,i=c=>{(X(c)===r||n)&&c.stopImmediatePropagation()},a=c=>{(X(c)===r||n)&&(c.stopImmediatePropagation(),!e&&!n&&(n=!0,et(r),u()))},l=c=>{(X(c)===e||n)&&c.stopImmediatePropagation()},o=c=>{(X(c)===e||n)&&(c.stopImmediatePropagation(),n||(n=!0,et(r),u()))};t.addEventListener("blur",i,!0),t.addEventListener("focusout",a,!0),t.addEventListener("focusin",o,!0),t.addEventListener("focus",l,!0);let u=()=>{cancelAnimationFrame(d),t.removeEventListener("blur",i,!0),t.removeEventListener("focusout",a,!0),t.removeEventListener("focusin",o,!0),t.removeEventListener("focus",l,!0),Ti=!1,n=!1},d=requestAnimationFrame(u);return u}function Ii(e){if(typeof window>"u"||window.navigator==null)return!1;let t=window.navigator.userAgentData?.brands;return Array.isArray(t)&&t.some(r=>e.test(r.brand))||e.test(window.navigator.userAgent)}function gl(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.userAgentData?.platform||window.navigator.platform):!1}function gt(e){if(process.env.NODE_ENV==="test")return e;let t=null;return()=>(t==null&&(t=e()),t)}const tt=gt(function(){return gl(/^Mac/i)}),M5=gt(function(){return gl(/^iPhone/i)}),Xu=gt(function(){return gl(/^iPad/i)||tt()&&navigator.maxTouchPoints>1}),$t=gt(function(){return M5()||Xu()}),Mi=gt(function(){return tt()||$t()}),yt=gt(function(){return Ii(/AppleWebKit/i)&&($t()||!$l())});gt(function(){return yt()&&!$l()&&!Ju()});const $l=gt(function(){return Ii(/Chrome|CriOS|CrMo/i)}),_r=gt(function(){return Ii(/Android/i)}),Ju=gt(function(){return Ii(/(Firefox|FxiOS)/i)});function yl(e){return e.pointerType===""&&e.isTrusted?!0:_r()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function K5(e){return!_r()&&e.width===0&&e.height===0||_r()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}const O5=s.createContext({isNative:!0,open:V5,useHref:e=>e});function pr(){return s.useContext(O5)}function L5(e,t){let r=e.getAttribute("target");return(!r||r==="_self")&&e.origin===location.origin&&!e.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function Tt(e,t,r=!0){let{metaKey:n,ctrlKey:i,altKey:a,shiftKey:l}=t;!yt()&&Ju()&&window.event?.type?.startsWith("key")&&e.target==="_blank"&&(tt()?n=!0:i=!0);let o=yt()&&tt()&&!Xu()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:n,ctrlKey:i,altKey:a,shiftKey:l}):new MouseEvent("click",{metaKey:n,ctrlKey:i,altKey:a,shiftKey:l,detail:1,bubbles:!0,cancelable:!0});Tt.isOpening=r,et(e),e.dispatchEvent(o),Tt.isOpening=!1}Tt.isOpening=!1;function z5(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let r=document.createElement("a");r.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(r.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(r.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(r.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(r.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(r.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(r),t(r),e.removeChild(r)}}function V5(e,t){z5(e,r=>Tt(r,t))}function _5(e){const r=pr().useHref(e.href??"");return{"data-href":e.href?r:void 0,"data-target":e.target,"data-rel":e.rel,"data-download":e.download,"data-ping":e.ping,"data-referrer-policy":e.referrerPolicy}}function Ki(e){const r=pr().useHref(e?.href??"");let n={};if(e)for(let i of["href","target","rel","download","ping","referrerPolicy"])i in e&&e[i]!==void 0&&(n[i]=i==="href"?r:e[i]);return n}function Qu(e,t,r,n){!t.isNative&&e.currentTarget instanceof HTMLAnchorElement&&e.currentTarget.href&&!e.isDefaultPrevented()&&L5(e.currentTarget,e)&&r&&(e.preventDefault(),t.open(e.currentTarget,e,r,n))}let It=null;const xn=new Set;let Cn=new Map,mr=!1,vl=!1;const j5={Tab:!0,Escape:!0};function Oi(e,t){for(let r of xn)r(e,t)}function H5(e){return!(e.metaKey||!tt()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Li(e){mr=!0,!Tt.isOpening&&H5(e)&&(It="keyboard",Oi("keyboard",e))}function rt(e){It="pointer","pointerType"in e&&e.pointerType,(e.type==="mousedown"||e.type==="pointerdown")&&(mr=!0,Oi("pointer",e))}function ed(e){!Tt.isOpening&&yl(e)&&(mr=!0,It="virtual")}function td(e){let t=Ce(X(e)),r=de(X(e));X(e)===t||X(e)===r||Ti||!e.isTrusted||(!mr&&!vl&&(It="virtual",Oi("virtual",e)),mr=!1,vl=!1)}function rd(){Ti||(mr=!1,vl=!0)}function zi(e){if(typeof window>"u"||typeof document>"u")return;const t=Ce(e),r=de(e);if(Cn.get(t))return;let n=t.HTMLElement.prototype.focus;Reflect.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:function(){mr=!0,n.apply(this,arguments)}}),r.addEventListener("keydown",Li,!0),r.addEventListener("keyup",Li,!0),r.addEventListener("click",ed,!0),t.addEventListener("focus",td,!0),t.addEventListener("blur",rd,!1),typeof PointerEvent<"u"?(r.addEventListener("pointerdown",rt,!0),r.addEventListener("pointermove",rt,!0),r.addEventListener("pointerup",rt,!0)):process.env.NODE_ENV==="test"&&(r.addEventListener("mousedown",rt,!0),r.addEventListener("mousemove",rt,!0),r.addEventListener("mouseup",rt,!0)),t.addEventListener("beforeunload",()=>{nd(e)},{once:!0}),Cn.set(t,{focus:n})}const nd=(e,t)=>{const r=Ce(e),n=de(e);t&&n.removeEventListener("DOMContentLoaded",t),Cn.has(r)&&(Reflect.defineProperty(r.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:Cn.get(r).focus}),n.removeEventListener("keydown",Li,!0),n.removeEventListener("keyup",Li,!0),n.removeEventListener("click",ed,!0),r.removeEventListener("focus",td,!0),r.removeEventListener("blur",rd,!1),typeof PointerEvent<"u"?(n.removeEventListener("pointerdown",rt,!0),n.removeEventListener("pointermove",rt,!0),n.removeEventListener("pointerup",rt,!0)):process.env.NODE_ENV==="test"&&(n.removeEventListener("mousedown",rt,!0),n.removeEventListener("mousemove",rt,!0),n.removeEventListener("mouseup",rt,!0)),Cn.delete(r))};function U5(e){const t=de(e);let r;return t.readyState!=="loading"?zi(e):(r=()=>{zi(e)},t.addEventListener("DOMContentLoaded",r)),()=>nd(e,r)}typeof document<"u"&&U5();function qt(){return It!=="pointer"}function jr(){return It}function Hr(e){It=e,Oi(e,null)}function id(){zi();let[e,t]=s.useState(It);return s.useEffect(()=>{let r=()=>{t(It)};return xn.add(r),()=>{xn.delete(r)}},[]),Wt()?null:e}const W5=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function G5(e,t,r){let n=r?X(r):void 0,i=de(n),a=Ce(n);const l=typeof a<"u"?a.HTMLInputElement:HTMLInputElement,o=typeof a<"u"?a.HTMLTextAreaElement:HTMLTextAreaElement,u=typeof a<"u"?a.HTMLElement:HTMLElement,d=typeof a<"u"?a.KeyboardEvent:KeyboardEvent;let c=he(i);return e=e||c instanceof l&&!W5.has(c.type)||c instanceof o||c instanceof u&&c.isContentEditable,!(e&&t==="keyboard"&&r instanceof d&&!j5[r.key])}function R5(e,t,r){zi(),s.useEffect(()=>{if(r?.enabled===!1)return;let n=(i,a)=>{G5(!!r?.isTextInput,i,a)&&e(qt())};return xn.add(n),()=>{xn.delete(n)}},t)}function Dn(e){return tt()?e.metaKey:e.ctrlKey}const Z5=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function wn(e){return e instanceof HTMLInputElement&&!Z5.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}const Y5=s.useInsertionEffect??fe;function Se(e){const t=s.useRef(null);return Y5(()=>{t.current=e},[e]),s.useCallback((...r)=>{const n=t.current;return n?.(...r)},[])}function st(e,t,r,n){let i=Se(r),a=r==null;s.useEffect(()=>{if(a||!e.current)return;let l=e.current;return l.addEventListener(t,i,n),()=>{l.removeEventListener(t,i,n)}},[e,t,n,a])}function Mt(e,t){let{id:r,"aria-label":n,"aria-labelledby":i}=e;return r=De(r),i&&n?i=[...new Set([r,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!n&&!i&&t&&(n=t),{id:r,"aria-label":n,"aria-labelledby":i}}const q5=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),X5=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function J5(e){if(Intl.Locale){let r=new Intl.Locale(e).maximize(),n=typeof r.getTextInfo=="function"?r.getTextInfo():r.textInfo;if(n)return n.direction==="rtl";if(r.script)return q5.has(r.script)}let t=e.split("-")[0];return X5.has(t)}const ad=Symbol.for("react-aria.i18n.locale");function ld(){let e=typeof window<"u"&&window[ad]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:J5(e)?"rtl":"ltr"}}let xl=ld(),En=new Set;function od(){xl=ld();for(let e of En)e(xl)}function Q5(){let e=Wt(),[t,r]=s.useState(xl);return s.useEffect(()=>(En.size===0&&window.addEventListener("languagechange",od),En.add(r),()=>{En.delete(r),En.size===0&&window.removeEventListener("languagechange",od)}),[]),e?{locale:typeof window<"u"&&window[ad]||"en-US",direction:"ltr"}:t}const ev=s.createContext(null);function ge(){let e=Q5();return s.useContext(ev)||e}const tv=Symbol.for("react-aria.i18n.locale"),rv=Symbol.for("react-aria.i18n.strings");let Vi;class br{constructor(t,r="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,n])=>n)),this.defaultLocale=r}getStringForLocale(t,r){let i=this.getStringsForLocale(r)[t];if(!i)throw new Error(`Could not find intl message ${t} in ${r} locale`);return i}getStringsForLocale(t){let r=this.strings[t];return r||(r=nv(t,this.strings,this.defaultLocale),this.strings[t]=r),r}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let r=window[tv];if(Vi===void 0){let i=window[rv];if(!i)return null;Vi={};for(let a in i)Vi[a]=new br({[r]:i[a]},r)}let n=Vi?.[t];if(!n)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return n}}function nv(e,t,r="en-US"){if(t[e])return t[e];let n=iv(e),i=av(e);if(i&&t[`${n}-${i}`])return t[`${n}-${i}`];if(t[n])return t[n];for(let a in t)if(a.startsWith(n+"-"))return t[a];return t[r]}function iv(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}function av(e){if(Intl.Locale)return new Intl.Locale(e).script}const sd=new Map,ud=new Map;class dd{constructor(t,r){this.locale=t,this.strings=r}format(t,r){let n=this.strings.getStringForLocale(t,this.locale);return typeof n=="function"?n(r,this):n}plural(t,r,n="cardinal"){let i=r["="+t];if(i)return typeof i=="function"?i():i;let a=this.locale+":"+n,l=sd.get(a);l||(l=new Intl.PluralRules(this.locale,{type:n}),sd.set(a,l));let o=l.select(t);return i=r[o]||r.other,typeof i=="function"?i():i}number(t){let r=ud.get(this.locale);return r||(r=new Intl.NumberFormat(this.locale),ud.set(this.locale,r)),r.format(t)}select(t,r){let n=t[r]||t.other;return typeof n=="function"?n():n}}const cd=new WeakMap;function lv(e){let t=cd.get(e);return t||(t=new br(e),cd.set(e,t)),t}function fd(e,t){return t&&br.getGlobalDictionaryForPackage(t)||lv(e)}function Ne(e,t){let{locale:r}=ge(),n=fd(e,t);return s.useMemo(()=>new dd(r,n),[r,n])}const ov=typeof document<"u"?s.useInsertionEffect??s.useLayoutEffect:()=>{};function _e(e,t,r){let[n,i]=s.useState(e||t),a=s.useRef(n),l=s.useRef(e!==void 0),o=e!==void 0;s.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 u=o?e:n;ov(()=>{a.current=u});let[,d]=s.useReducer(()=>({}),{}),c=s.useCallback((f,...h)=>{let p=typeof f=="function"?f(a.current):f;Object.is(a.current,p)||(a.current=p,i(p),d(),r?.(p,...h))},[r]);return[u,c]}const Sn=s.createContext(null),Pn=s.createContext(null);class nt{constructor(t){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=t}get childNodes(){throw new Error("childNodes is not supported")}clone(){let t=new this.constructor(this.key);return t.value=this.value,t.level=this.level,t.hasChildNodes=this.hasChildNodes,t.rendered=this.rendered,t.textValue=this.textValue,t["aria-label"]=this["aria-label"],t.index=this.index,t.parentKey=this.parentKey,t.prevKey=this.prevKey,t.nextKey=this.nextKey,t.firstChildKey=this.firstChildKey,t.lastChildKey=this.lastChildKey,t.props=this.props,t.render=this.render,t.colSpan=this.colSpan,t.colIndex=this.colIndex,t}filter(t,r,n){let i=this.clone();return r.addDescendants(i,t),i}}class _i extends nt{filter(t,r,n){let[i,a]=md(t,r,this.firstChildKey,n),l=this.clone();return l.firstChildKey=i,l.lastChildKey=a,l}}const Du=class Du extends nt{};Du.type="header";let Cl=Du;const wu=class wu extends nt{};wu.type="loader";let ji=wu;const Eu=class Eu extends _i{filter(t,r,n){if(n(this.textValue,this)){let i=this.clone();return r.addDescendants(i,t),i}return null}};Eu.type="item";let Hi=Eu;const Su=class Su extends _i{filter(t,r,n){let i=super.filter(t,r,n);if(i&&i.lastChildKey!==null){let a=t.getItem(i.lastChildKey);if(a&&a.type!=="header")return i}return null}};Su.type="section";let hd=Su;class pd{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 r=this.keyMap;return{*[Symbol.iterator](){let n=r.get(t),i=n?.firstChildKey!=null?r.get(n.firstChildKey):null;for(;i;)yield i,i=i.nextKey!=null?r.get(i.nextKey):void 0}}}getKeyBefore(t){let r=this.keyMap.get(t);if(!r)return null;if(r.prevKey!=null){for(r=this.keyMap.get(r.prevKey);r&&r.type!=="item"&&r.lastChildKey!=null;)r=this.keyMap.get(r.lastChildKey);return r?.key??null}return r.parentKey}getKeyAfter(t){let r=this.keyMap.get(t);if(!r)return null;if(r.type!=="item"&&r.firstChildKey!=null)return r.firstChildKey;for(;r;){if(r.nextKey!=null)return r.nextKey;if(r.parentKey!=null)r=this.keyMap.get(r.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let 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,r=new t;return r.keyMap=new Map(this.keyMap),r.firstKey=this.firstKey,r.lastKey=this.lastKey,r.itemCount=this.itemCount,r}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,r){this.addNode(t);let n=r.getChildren(t.key);for(let i of n)this.addDescendants(i,r)}removeNode(t){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");let r=this.keyMap.get(t);r!=null&&r.type==="item"&&this.itemCount--,this.keyMap.delete(t)}commit(t,r,n=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=t,this.lastKey=r,this.frozen=!n}filter(t){let r=new this.constructor,[n,i]=md(this,r,this.firstKey,t);return r?.commit(n,i),r}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}}function md(e,t,r,n){if(r==null)return[null,null];let i=null,a=null,l=e.getItem(r);for(;l!=null;){let o=l.filter(e,t,n);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 bd{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,r){if(r==null)return this.appendChild(t);t.parentNode&&t.parentNode.removeChild(t),t.nextSibling=r,t.previousSibling=r.previousSibling,t.index=r.index-1,this.firstChild===r?this.firstChild=t:r.previousSibling&&(r.previousSibling.nextSibling=t),r.previousSibling=t,t.parentNode=r.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 Ur extends bd{constructor(t,r){super(r),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof Ur?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,r=this.getMutableNode();if(r!=null&&(r.index=this.index,r.level=this.level,r.parentKey=this.parentNode instanceof Ur?this.parentNode.node?.key??null:null,r.prevKey=this.previousVisibleSibling?.node?.key??null,r.nextKey=t?.node?.key??null,r.hasChildNodes=!!this.firstChild,r.firstChildKey=this.firstVisibleChild?.node?.key??null,r.lastChildKey=this.lastVisibleChild?.node?.key??null,(r.colSpan!=null||r.colIndex!=null)&&t)){let n=(r.colIndex??r.index)+(r.colSpan??1);if(t.node!=null&&n!==t.node.colIndex){let i=t.getMutableNode();i.colIndex=n}}}setProps(t,r,n,i,a){let l,{value:o,textValue:u,id:d,...c}=t;if(this.node==null?(l=new n(d??`react-aria-${++this.ownerDocument.nodeId}`),this.node=l):l=this.getMutableNode(),c.ref=r,l.props=c,l.rendered=i,l.render=a,l.value=o,t["aria-label"]&&(l["aria-label"]=t["aria-label"]),l.textValue=u||(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(r){let n=r==="none";if(t.isHidden!==n){(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=n,t.ownerDocument.markDirty(t)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}}class sv extends bd{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 Ur(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 r=this.getMutableCollection();if(!r.getItem(t.node.key))for(let n of t)this.addNode(n);r.addNode(t.node)}removeNode(t){for(let r of t)this.removeNode(r);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 Ur&&(!t.isConnected||t.isHidden)?this.removeNode(t):t.updateChildIndices();for(let t of this.dirtyNodes)t instanceof Ur?(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 Dl(e){let{children:t,items:r,idScope:n,addIdAndValue:i,dependencies:a=[]}=e,l=s.useMemo(()=>process.env.NODE_ENV!=="production"&&typeof t=="function"?t.toString():void 0,[t]),o=s.useMemo(()=>new WeakMap,[...a,l]);return s.useMemo(()=>{if(r&&typeof t=="function"){let u=[];for(let d of r){let c=uv(d)?d:null,f=c?o.get(c):null;if(!f){f=t(d);let h=f.props.id??d?.key??d?.id;n!=null&&f.props.id==null&&h!=null&&(h=n+":"+h);let p=h??u.length;f=s.cloneElement(f,i?{key:p,id:h,value:d}:{key:p}),c&&o.set(c,f)}u.push(f)}return u}else if(typeof t!="function")return t},[t,r,o,n,i])}function uv(e){switch(typeof e){case"object":return e!=null;case"function":case"symbol":return!0;default:return!1}}let Xt=new Map,wl=new Set;function gd(){if(typeof window>"u")return;function e(n){return"propertyName"in n}let t=n=>{let i=X(n);if(!e(n)||!i)return;let a=Xt.get(i);a||(a=new Set,Xt.set(i,a),i.addEventListener("transitioncancel",r,{once:!0})),a.add(n.propertyName)},r=n=>{let i=X(n);if(!e(n)||!i)return;let a=Xt.get(i);if(a&&(a.delete(n.propertyName),a.size===0&&(i.removeEventListener("transitioncancel",r),Xt.delete(i)),Xt.size===0)){for(let l of wl)l();wl.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?gd():document.addEventListener("DOMContentLoaded",gd));function dv(){for(const[e]of Xt)"isConnected"in e&&!e.isConnected&&Xt.delete(e)}function $d(e){requestAnimationFrame(()=>{dv(),Xt.size===0?e():wl.add(e)})}function Oe(e){if(!e.isConnected)return;const t=de(e);if(jr()==="virtual"){let r=he(t);$d(()=>{const n=he(t);(n===r||n===t.body)&&e.isConnected&&et(e)})}else et(e)}function El(e){let{isDisabled:t,onFocus:r,onBlur:n,onFocusChange:i}=e;const a=s.useCallback(u=>{if(X(u)===u.currentTarget)return n&&n(u),i&&i(!1),!0},[n,i]),l=Yu(a),o=s.useCallback(u=>{let d=X(u);const c=de(d),f=c?he(c):he();d===u.currentTarget&&d===f&&(r&&r(u),i&&i(!0),l(u))},[i,r,l]);return{focusProps:{onFocus:!t&&(r||i||n)?o:void 0,onBlur:!t&&(n||i)?a:void 0}}}function Ui(e){if(e)return t=>{let r=!0,n={...t,preventDefault(){t.preventDefault()},isDefaultPrevented(){return t.isDefaultPrevented()},stopPropagation(){r&&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."):r=!0},continuePropagation(){r=!1,typeof t.continuePropagation=="function"&&t.continuePropagation()},isPropagationStopped(){return r}};e(n),r&&!(typeof t.isPropagationStopped=="function"&&t.isPropagationStopped())&&t.stopPropagation()}}const cv=new Set(["shift","alt","control","meta","mod"]),fv=["Alt","Control","Meta","Shift"];function hv(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(tt()?"Meta":"Control"),t}function pv(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 yd(e){return fv.filter(t=>e.has(t))}function mv(e){let t=e.split("+").reduce((r,n)=>{let i=n.toLowerCase();return cv.has(i)?i==="shift"?r.shift=!0:i==="alt"?r.alt=!0:i==="control"?r.ctrl=!0:i==="meta"?r.meta=!0:i==="mod"&&(r.mod=!0):r.key=n,r},{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 vd(e){return e.toLowerCase()}const bv={space:" ",esc:"escape",del:"delete",ins:"insert",left:"arrowleft",right:"arrowright",up:"arrowup",down:"arrowdown",pageup:"pageup",pagedown:"pagedown"};function gv(e){let t=vd(e),r=bv[t];return r??t}function $v(e){let t=yd(hv(e)),r=gv(e.key);return t.length>0?`${t.join("+")}+${r}`:r}function yv(e){let t=yd(pv(e)),r=vd(e.key);return(t.length>0?`${t.join("+")}+`:"")+r}function vv(e){let t=new Map;for(let[r,n]of Object.entries(e)){let i=mv(r);t.set($v(i),n)}return r=>{let n=yv(r),i=t.get(n),a=i?.(r);a===void 0&&i!==void 0?a={shouldContinuePropagation:!1,shouldPreventDefault:!0}:typeof a=="boolean"&&(a={shouldContinuePropagation:!a,shouldPreventDefault:a}),a?.shouldPreventDefault&&r.preventDefault(),(!i||a?.shouldContinuePropagation)&&r.continuePropagation()}}function Le(e){let{shortcuts:t,allowRepeats:r=!1,allowComposing:n=!1}=e,i,a;if(t){let l=vv(t),o=Ui(d=>{if(!le(d.currentTarget,X(d))){d.continuePropagation();return}if(d.nativeEvent?.repeat&&!r||d.nativeEvent?.isComposing&&!n){d.continuePropagation();return}l(d)}),u=Ui(d=>{if(!le(d.currentTarget,X(d))){d.continuePropagation();return}if(d.nativeEvent?.repeat&&!r||d.nativeEvent?.isComposing&&!n){d.continuePropagation();return}d.continuePropagation()});i=e.onKeyDown?ot(e.onKeyDown,o):o,a=e.onKeyUp?ot(e.onKeyUp,u):u}else i=Ui(e.onKeyDown),a=Ui(e.onKeyUp);return{keyboardProps:e.isDisabled?{}:{onKeyDown:i,onKeyUp:a}}}function Sl(e,t){fe(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}let Wi=s.createContext(null);function xv(e){let t=s.useContext(Wi)||{};Sl(t,e);let{ref:r,...n}=t;return n}function Jt(e,t){let{focusProps:r}=El(e),{keyboardProps:n}=Le(e),i=W(r,n),a=xv(t),l=e.isDisabled?{}:a,o=s.useRef(e.autoFocus);s.useEffect(()=>{o.current&&t.current&&Oe(t.current),o.current=!1},[t]);let u=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(u=void 0),{focusableProps:W({...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(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 Gi=s.createContext(!1);function Cv(e){if(s.useContext(Gi))return s.createElement(s.Fragment,null,e.children);let r=s.createElement(Gi.Provider,{value:!0},e.children);return s.createElement("template",null,r)}function Wr(e){let t=(r,n)=>s.useContext(Gi)?null:e(r,n);return t.displayName=e.displayName||e.name,s.forwardRef(t)}function xd(){return s.useContext(Gi)}var Ri={exports:{}},Pl={};var Cd;function Dv(){if(Cd)return Pl;Cd=1;var e=s;function t(f,h){return f===h&&(f!==0||1/f===1/h)||f!==f&&h!==h}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,i=e.useEffect,a=e.useLayoutEffect,l=e.useDebugValue;function o(f,h){var p=h(),b=n({inst:{value:p,getSnapshot:h}}),g=b[0].inst,$=b[1];return a(function(){g.value=p,g.getSnapshot=h,u(g)&&$({inst:g})},[f,p,h]),i(function(){return u(g)&&$({inst:g}),f(function(){u(g)&&$({inst:g})})},[f]),l(p),p}function u(f){var h=f.getSnapshot;f=f.value;try{var p=h();return!r(f,p)}catch{return!0}}function d(f,h){return h()}var c=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:o;return Pl.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:c,Pl}var kl={};var Dd;function wv(){return Dd||(Dd=1,process.env.NODE_ENV!=="production"&&(function(){function e(p,b){return p===b&&(p!==0||1/p===1/b)||p!==p&&b!==b}function t(p,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 $=b();a(g,$)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}$=l({inst:{value:g,getSnapshot:b}});var y=$[0].inst,x=$[1];return u(function(){y.value=g,y.getSnapshot=b,r(y)&&x({inst:y})},[p,g,b]),o(function(){return r(y)&&x({inst:y}),p(function(){r(y)&&x({inst:y})})},[p]),d(g),g}function r(p){var b=p.getSnapshot;p=p.value;try{var g=b();return!a(p,g)}catch{return!0}}function n(p,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,a=typeof Object.is=="function"?Object.is:e,l=i.useState,o=i.useEffect,u=i.useLayoutEffect,d=i.useDebugValue,c=!1,f=!1,h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:t;kl.useSyncExternalStore=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:h,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),kl}var wd;function Ev(){return wd||(wd=1,process.env.NODE_ENV==="production"?Ri.exports=Dv():Ri.exports=wv()),Ri.exports}var Sv=Ev();const Ed=s.createContext(!1),kn=s.createContext(null);function gr(e){if(s.useContext(kn))return e.content;let{collection:r,document:n}=Nv(e.createCollection);return s.createElement(s.Fragment,null,s.createElement(Cv,null,s.createElement(kn.Provider,{value:n},e.content)),s.createElement(Pv,{render:e.children,collection:r}))}function Pv({collection:e,render:t}){return t(e)}function kv(e,t,r){let n=Wt(),i=s.useRef(n);i.current=n;let a=s.useCallback(()=>i.current?r():t(),[t,r]);return Sv.useSyncExternalStore(e,a)}const Bv=typeof s.useSyncExternalStore=="function"?s.useSyncExternalStore:kv;function Nv(e){let[t]=s.useState(()=>new sv(e?.()||new pd)),r=s.useCallback(l=>t.subscribe(l),[t]),n=s.useCallback(()=>{let l=t.getCollection();return t.isSSR&&t.resetAfterSSR(),l},[t]),i=s.useCallback(()=>(t.isSSR=!0,t.getCollection()),[t]);return{collection:Bv(r,n,i),document:t}}const Bl=s.createContext(null);function Av(e){var r;return r=class extends nt{},r.type=e,r}function Sd(e,t,r,n,i,a){typeof e=="string"&&(e=Av(e));let l=s.useCallback(u=>{u?.setProps(t,r,e,n,a)},[t,r,n,a,e]),o=s.useContext(Bl);if(o){let u=o.ownerDocument.nodesByProps.get(t);return u||(u=o.ownerDocument.createElement(e.type),u.setProps(t,r,e,n,a),o.appendChild(u),o.ownerDocument.updateCollection(),o.ownerDocument.nodesByProps.set(t,u)),i?s.createElement(Bl.Provider,{value:u},i):null}return s.createElement(e.type,{ref:l},i)}function vt(e,t){let r=({node:i})=>t(i.props,i.props.ref,i),n=s.forwardRef((i,a)=>{let l=s.useContext(Wi);if(!s.useContext(Ed)){if(t.length>=3)throw new Error(t.name+" cannot be rendered outside a collection.");return t(i,a)}return Sd(e,i,a,"children"in i?i.children:null,null,u=>s.createElement(Wi.Provider,{value:l},s.createElement(r,{node:u})))});return n.displayName=t.name,n}function Zi(e,t,r=Pd){let n=({node:a})=>t(a.props,a.props.ref,a),i=s.forwardRef((a,l)=>{let o=r(a);return Sd(e,a,l,null,o,u=>s.createElement(n,{node:u}))??s.createElement(s.Fragment,null)});return i.displayName=t.name,i}function Pd(e){return Dl({...e,addIdAndValue:!0})}const kd=s.createContext(null);function $r(e){let t=s.useContext(kd),r=(t?.dependencies||[]).concat(e.dependencies),n=e.idScope??t?.idScope,i=Pd({...e,idScope:n,dependencies:r});return s.useContext(kn)&&(i=s.createElement(Fv,null,i)),t=s.useMemo(()=>({dependencies:r,idScope:n}),[n,...r]),s.createElement(kd.Provider,{value:t},i)}function Fv({children:e}){let t=s.useContext(kn),r=s.useMemo(()=>s.createElement(kn.Provider,{value:null},s.createElement(Ed.Provider,{value:!0},e)),[e]);return Wt()?s.createElement(Bl.Provider,{value:t},r):Ut.createPortal(r,t)}const Bd=s.createContext(null),Nl={CollectionRoot({collection:e,renderDropIndicator:t}){return Nd(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:r}){return Nd(e,t,r)}};function Nd(e,t,r){return Dl({items:t?e.getChildren(t.key):e,dependencies:[r],children(n){if(n.type==="content")return s.createElement(s.Fragment,null);let i=n.render(n);return!r||n.type!=="item"?i:s.createElement(s.Fragment,null,r({type:"item",key:n.key,dropPosition:"before"}),i,Tv(e,n,r))}})}function Tv(e,t,r){let n=t.key,i=e.getKeyAfter(n),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 u=t;for(;u?.type==="item"&&(!a||u.parentKey!==a.parentKey&&a.level<u.level);){let d=r({type:"item",key:u.key,dropPosition:"after"});s.isValidElement(d)&&o.push(s.cloneElement(d,{key:`${u.key}-after`})),u=u.parentKey!=null?e.getItem(u.parentKey):null}}return o}const $e=s.createContext(Nl);function Ad(e){return s.useMemo(()=>e!=null?new Set([e]):null,[e])}const Iv=new Set(["id"]),Mv=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Kv=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),Ov=new Set(["dir","lang","hidden","inert","translate"]),Fd=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"]),Lv=/^(data-.*)$/;function ne(e,t={}){let{labelable:r,isLink:n,global:i,events:a=i,propNames:l}=t,o={};for(const u in e)Object.prototype.hasOwnProperty.call(e,u)&&(Iv.has(u)||r&&Mv.has(u)||n&&Kv.has(u)||i&&Ov.has(u)||a&&(Fd.has(u)||u.endsWith("Capture")&&Fd.has(u.slice(0,-7)))||l?.has(u)||Lv.test(u))&&(o[u]=e[u]);return o}let Gr="default",Al="",Yi=new WeakMap;function Fl(e){if($t()&&yt()){if(Gr==="default"){const t=de(e);Al=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Gr="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";Yi.set(e,e.style[t]),e.style[t]="none"}}function qi(e){if($t()&&yt()){if(Gr!=="disabled")return;Gr="restoring",setTimeout(()=>{$d(()=>{if(Gr==="restoring"){const t=de(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Al||""),Al="",Gr="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Yi.has(e)){let t=Yi.get(e),r="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[r]==="none"&&(e.style[r]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Yi.delete(e)}}function Td(e){return e?.defaultView?.__webpack_nonce__||globalThis.__webpack_nonce__||void 0}let Tl=new WeakMap;function Id(e){let t=e??(typeof document<"u"?document:void 0);if(!t)return Td(t);if(Tl.has(t))return Tl.get(t);let r=t.querySelector('meta[property="csp-nonce"]'),n=r&&r instanceof Ce(r).HTMLMetaElement&&(r.nonce||r.content)||Td(t)||void 0;return n!==void 0&&Tl.set(t,n),n}const Bn=s.createContext({register:()=>{}});Bn.displayName="PressResponderContext";function Rr(){let e=s.useRef(new Map),t=s.useCallback((i,a,l,o)=>{let u=o?.once?(...d)=>{e.current.delete(l),l(...d)}:l;e.current.set(l,{type:a,eventTarget:i,fn:u,options:o}),i.addEventListener(a,u,o)},[]),r=s.useCallback((i,a,l,o)=>{let u=e.current.get(l)?.fn||l;i.removeEventListener(a,u,o),e.current.delete(l)},[]),n=s.useCallback(()=>{e.current.forEach((i,a)=>{r(i.eventTarget,i.type,a,i.options)})},[r]);return s.useEffect(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}function zv(e){let t=s.useContext(Bn);if(t){let{register:r,ref:n,...i}=t;e=W(i,e),r()}return Sl(t,e.ref),e}class Xi{#e;constructor(t,r,n,i){this.#e=!0;const l=(i?.target??n.currentTarget)?.getBoundingClientRect();let o,u=0,d,c=null;n.clientX!=null&&n.clientY!=null&&(d=n.clientX,c=n.clientY),l&&(d!=null&&c!=null?(o=d-l.left,u=c-l.top):(o=l.width/2,u=l.height/2)),this.type=t,this.pointerType=r,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=o,this.y=u,this.key=n.key}continuePropagation(){this.#e=!1}get shouldStopPropagation(){return this.#e}}const Md=Symbol("linkClicked"),Kd="react-aria-pressable-style",Od="data-react-aria-pressable";function Xe(e){let{onPress:t,onPressChange:r,onPressStart:n,onPressEnd:i,onPressUp:a,onClick:l,isDisabled:o,isPressed:u,preventFocusOnPress:d,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:f,ref:h,...p}=zv(e),[b,g]=s.useState(!1),$=s.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:y,removeAllGlobalListeners:x}=Rr(),v=s.useCallback((D,M)=>{let G=$.current;if(o||G.didFirePressStart)return!1;let O=!0;if(G.isTriggeringEvent=!0,n){let J=new Xi("pressstart",M,D);n(J),O=J.shouldStopPropagation}return r&&r(!0),G.isTriggeringEvent=!1,G.didFirePressStart=!0,g(!0),O},[o,n,r]),C=s.useCallback((D,M,G=!0)=>{let O=$.current;if(!O.didFirePressStart)return!1;O.didFirePressStart=!1,O.isTriggeringEvent=!0;let J=!0;if(i){let k=new Xi("pressend",M,D);i(k),J=k.shouldStopPropagation}if(r&&r(!1),g(!1),t&&G&&!o){let k=new Xi("press",M,D);t(k),J&&=k.shouldStopPropagation}return O.isTriggeringEvent=!1,J},[o,i,r,t]),E=Se(C),S=s.useCallback((D,M)=>{let G=$.current;if(o)return!1;if(a){G.isTriggeringEvent=!0;let O=new Xi("pressup",M,D);return a(O),G.isTriggeringEvent=!1,O.shouldStopPropagation}return!0},[o,a]),B=Se(S),w=s.useCallback(D=>{let M=$.current;if(M.isPressed&&M.target){M.didFirePressStart&&M.pointerType!=null&&C(yr(M.target,D),M.pointerType,!1),M.isPressed=!1,M.isOverTarget=!1,M.activePointerId=null,M.pointerType=null,x(),f||qi(M.target);for(let G of M.disposables)G();M.disposables=[]}},[f,x,C]),P=Se(w);s.useEffect(()=>{o&&$.current.isPressed&&P({currentTarget:$.current.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})},[o]);let K=s.useCallback(D=>{c&&w(D)},[c,w]),T=s.useCallback(D=>{o||l?.(D)},[o,l]),I=s.useCallback((D,M)=>{if(!o&&l){let G=new MouseEvent("click",D);Zu(G,M),l(bl(G))}},[o,l]),H=s.useMemo(()=>{let D=$.current,M={onKeyDown(O){if(Ml(O.nativeEvent,O.currentTarget)&&le(O.currentTarget,X(O))){Vd(X(O),O.key)&&O.preventDefault();let J=!0;!D.isPressed&&!O.repeat&&(D.target=O.currentTarget,D.isPressed=!0,D.pointerType="keyboard",J=v(O,"keyboard"));let k=O.currentTarget,N=z=>{Ml(z,k)&&!z.repeat&&le(k,X(z))&&D.target&&B(yr(D.target,z),"keyboard")};y(de(O.currentTarget),"keyup",ot(N,G),!0),J&&O.stopPropagation(),O.metaKey&&tt()&&D.metaKeyEvents?.set(O.key,O.nativeEvent)}else O.key==="Meta"&&(D.metaKeyEvents=new Map)},onClick(O){if(!(O&&!le(O.currentTarget,X(O)))&&O&&O.button===0&&!D.isTriggeringEvent&&!Tt.isOpening){let J=!0;if(o&&O.preventDefault(),!D.ignoreEmulatedMouseEvents&&!D.isPressed&&(D.pointerType==="virtual"||yl(O.nativeEvent))){let k=v(O,"virtual"),N=B(O,"virtual"),z=E(O,"virtual");T(O),J=k&&N&&z}else if(D.isPressed&&D.pointerType!=="keyboard"){let k=D.pointerType||O.nativeEvent.pointerType||"virtual",N=B(yr(O.currentTarget,O),k),z=E(yr(O.currentTarget,O),k,!0);J=N&&z,D.isOverTarget=!1,T(O),P(O)}D.ignoreEmulatedMouseEvents=!1,J&&O.stopPropagation()}}},G=O=>{if(D.isPressed&&D.target&&Ml(O,D.target)){Vd(X(O),O.key)&&O.preventDefault();let J=X(O),k=le(D.target,J);E(yr(D.target,O),"keyboard",k),k&&I(O,D.target),x(),O.key!=="Enter"&&Il(D.target)&&le(D.target,J)&&!O[Md]&&(O[Md]=!0,Tt(D.target,O,!1)),D.isPressed=!1,D.metaKeyEvents?.delete(O.key)}else if(O.key==="Meta"&&D.metaKeyEvents?.size){let J=D.metaKeyEvents;D.metaKeyEvents=void 0;for(let k of J.values())D.target?.dispatchEvent(new KeyboardEvent("keyup",k))}};if(typeof PointerEvent<"u"){M.onPointerDown=k=>{if(k.button!==0||!le(k.currentTarget,X(k)))return;if(K5(k.nativeEvent)){D.pointerType="virtual";return}D.pointerType=k.pointerType;let N=!0;if(!D.isPressed){D.isPressed=!0,D.isOverTarget=!0,D.activePointerId=k.pointerId,D.target=k.currentTarget,f||Fl(D.target),N=v(k,D.pointerType);let z=X(k);"releasePointerCapture"in z&&("hasPointerCapture"in z?z.hasPointerCapture(k.pointerId)&&z.releasePointerCapture(k.pointerId):z.releasePointerCapture(k.pointerId)),y(de(k.currentTarget),"pointerup",O,!1),y(de(k.currentTarget),"pointercancel",J,!1)}N&&k.stopPropagation()},M.onMouseDown=k=>{if(le(k.currentTarget,X(k))&&k.button===0){if(d){let N=qu(k.target);N&&D.disposables.push(N)}k.stopPropagation()}},M.onPointerUp=k=>{!le(k.currentTarget,X(k))||D.pointerType==="virtual"||k.button===0&&!D.isPressed&&B(k,D.pointerType||k.pointerType)},M.onPointerEnter=k=>{k.pointerId===D.activePointerId&&D.target&&!D.isOverTarget&&D.pointerType!=null&&(D.isOverTarget=!0,v(yr(D.target,k),D.pointerType))},M.onPointerLeave=k=>{k.pointerId===D.activePointerId&&D.target&&D.isOverTarget&&D.pointerType!=null&&(D.isOverTarget=!1,E(yr(D.target,k),D.pointerType,!1),K(k))};let O=k=>{if(k.pointerId===D.activePointerId&&D.isPressed&&k.button===0&&D.target){if(le(D.target,X(k))&&D.pointerType!=null){let N=!1,z=setTimeout(()=>{D.isPressed&&D.target instanceof HTMLElement&&(N?P(k):(et(D.target),D.target.click()))},80);y(k.currentTarget,"click",()=>N=!0,!0),D.disposables.push(()=>clearTimeout(z))}else P(k);D.isOverTarget=!1}},J=k=>{P(k)};M.onDragStart=k=>{le(k.currentTarget,X(k))&&P(k)}}else if(process.env.NODE_ENV==="test"){M.onMouseDown=k=>{if(k.button!==0||!le(k.currentTarget,X(k)))return;if(D.ignoreEmulatedMouseEvents){k.stopPropagation();return}if(D.isPressed=!0,D.isOverTarget=!0,D.target=k.currentTarget,D.pointerType=yl(k.nativeEvent)?"virtual":"mouse",Ut.flushSync(()=>v(k,D.pointerType))&&k.stopPropagation(),d){let z=qu(k.target);z&&D.disposables.push(z)}y(de(k.currentTarget),"mouseup",O,!1)},M.onMouseEnter=k=>{if(!le(k.currentTarget,X(k)))return;let N=!0;D.isPressed&&!D.ignoreEmulatedMouseEvents&&D.pointerType!=null&&(D.isOverTarget=!0,N=v(k,D.pointerType)),N&&k.stopPropagation()},M.onMouseLeave=k=>{if(!le(k.currentTarget,X(k)))return;let N=!0;D.isPressed&&!D.ignoreEmulatedMouseEvents&&D.pointerType!=null&&(D.isOverTarget=!1,N=E(k,D.pointerType,!1),K(k)),N&&k.stopPropagation()},M.onMouseUp=k=>{le(k.currentTarget,X(k))&&!D.ignoreEmulatedMouseEvents&&k.button===0&&!D.isPressed&&B(k,D.pointerType||"mouse")};let O=k=>{if(k.button===0){if(D.ignoreEmulatedMouseEvents){D.ignoreEmulatedMouseEvents=!1;return}D.target&&le(D.target,X(k))&&D.pointerType!=null||P(k),D.isOverTarget=!1}};M.onTouchStart=k=>{if(!le(k.currentTarget,X(k)))return;let N=Vv(k.nativeEvent);if(!N)return;D.activePointerId=N.identifier,D.ignoreEmulatedMouseEvents=!0,D.isOverTarget=!0,D.isPressed=!0,D.target=k.currentTarget,D.pointerType="touch",f||Fl(D.target),v(Qt(D.target,k),D.pointerType)&&k.stopPropagation(),y(Ce(k.currentTarget),"scroll",J,!0)},M.onTouchMove=k=>{if(!le(k.currentTarget,X(k)))return;if(!D.isPressed){k.stopPropagation();return}let N=Ld(k.nativeEvent,D.activePointerId),z=!0;N&&zd(N,k.currentTarget)?!D.isOverTarget&&D.pointerType!=null&&(D.isOverTarget=!0,z=v(Qt(D.target,k),D.pointerType)):D.isOverTarget&&D.pointerType!=null&&(D.isOverTarget=!1,z=E(Qt(D.target,k),D.pointerType,!1),K(Qt(D.target,k))),z&&k.stopPropagation()},M.onTouchEnd=k=>{if(!le(k.currentTarget,X(k)))return;if(!D.isPressed){k.stopPropagation();return}let N=Ld(k.nativeEvent,D.activePointerId),z=!0;N&&zd(N,k.currentTarget)&&D.pointerType!=null?(B(Qt(D.target,k),D.pointerType),z=E(Qt(D.target,k),D.pointerType),I(k.nativeEvent,D.target)):D.isOverTarget&&D.pointerType!=null&&(z=E(Qt(D.target,k),D.pointerType,!1)),z&&k.stopPropagation(),D.isPressed=!1,D.activePointerId=null,D.isOverTarget=!1,D.ignoreEmulatedMouseEvents=!0,D.target&&!f&&qi(D.target),x()},M.onTouchCancel=k=>{le(k.currentTarget,X(k))&&(k.stopPropagation(),D.isPressed&&P(Qt(D.target,k)))};let J=k=>{D.isPressed&&le(X(k),D.target)&&P({currentTarget:D.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};M.onDragStart=k=>{le(k.currentTarget,X(k))&&P(k)}}return M},[y,o,d,x,f,K,v,T,I]);return s.useEffect(()=>{if(!h||process.env.NODE_ENV==="test")return;const D=de(h.current);if(!D||!D.head||D.getElementById(Kd))return;const M=D.createElement("style");M.id=Kd;let G=Id(D);G&&(M.nonce=G),M.textContent=`
|
|
2
2
|
@layer {
|
|
3
|
-
[${
|
|
3
|
+
[${Od}] {
|
|
4
4
|
touch-action: pan-x pan-y pinch-zoom;
|
|
5
5
|
}
|
|
6
6
|
}
|
|
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=`
|
|
7
|
+
`.trim(),D.head.prepend(M)},[h]),s.useEffect(()=>{let D=$.current;return()=>{f||qi(D.target??void 0);for(let M of D.disposables)M();D.disposables=[]}},[f]),{isPressed:u||b,pressProps:W(p,H,{[Od]:!0})}}function Il(e){return e.tagName==="A"&&e.hasAttribute("href")}function Ml(e,t){const{key:r,code:n}=e,i=t,a=i.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||n==="Space")&&!(i instanceof Ce(i).HTMLInputElement&&!_d(i,r)||i instanceof Ce(i).HTMLTextAreaElement||i.isContentEditable)&&!((a==="link"||!a&&Il(i))&&r!=="Enter")}function Vv(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function Ld(e,t){const r=e.changedTouches;for(let n=0;n<r.length;n++){const i=r[n];if(i.identifier===t)return i}return null}function Qt(e,t){let r=0,n=0;return t.targetTouches&&t.targetTouches.length===1&&(r=t.targetTouches[0].clientX,n=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:r,clientY:n}}function yr(e,t){let r=t.clientX,n=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:r,clientY:n,key:t.key}}function _v(e){let t=0,r=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?r=e.height/2:e.radiusY!==void 0&&(r=e.radiusY),{top:e.clientY-r,right:e.clientX+t,bottom:e.clientY+r,left:e.clientX-t}}function jv(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function zd(e,t){let r=t.getBoundingClientRect(),n=_v(e);return jv(r,n)}function Hv(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Il(e)}function Vd(e,t){return tt()&&t==="Enter"?!1:e instanceof HTMLInputElement?t==="Enter"&&(e.type==="checkbox"||e.type==="radio")?!1:!_d(e,t):Hv(e)}const Uv=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function _d(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":Uv.has(e.type)}function Wv(e,t){let{elementType:r="a",onPress:n,onPressStart:i,onPressEnd:a,onPressChange:l,onClick:o,isDisabled:u,...d}=e,c={};r!=="a"&&(c={role:"link",tabIndex:u?void 0:0});let{focusableProps:f}=Jt(e,t),{pressProps:h,isPressed:p}=Xe({onPress:n,onPressStart:i,onPressEnd:a,onPressChange:l,onClick:o,isDisabled:u,ref:t}),b=ne(d,{labelable:!0}),g=W(f,h),$=pr(),y=Ki(e);return{isPressed:p,linkProps:W(b,y,{...g,...c,"aria-disabled":u||void 0,"aria-current":e["aria-current"],onClick:x=>{h.onClick?.(x),Qu(x,$,e.href,e.routerOptions)}})}}function vr(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:i}=e,a=s.useRef({isFocusWithin:!1}),{addGlobalListener:l,removeAllGlobalListeners:o}=Rr(),u=s.useCallback(f=>{le(f.currentTarget,X(f))&&a.current.isFocusWithin&&!le(f.currentTarget,f.relatedTarget)&&(a.current.isFocusWithin=!1,o(),r&&r(f),i&&i(!1))},[r,i,a,o]),d=Yu(u),c=s.useCallback(f=>{if(!le(f.currentTarget,X(f)))return;let h=X(f);const p=de(h),b=he(p);if(!a.current.isFocusWithin&&b===h){n&&n(f),i&&i(!0),a.current.isFocusWithin=!0,d(f);let g=f.currentTarget;l(p,"focus",$=>{let y=X($);if(a.current.isFocusWithin&&!le(g,y)){let x=new p.defaultView.FocusEvent("blur",{relatedTarget:y});Zu(x,g);let v=bl(x);u(v)}},{capture:!0})}},[n,i,d,l,u]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:u}}}function Ae(e={}){let{autoFocus:t=!1,isTextInput:r,within:n}=e,i=s.useRef({isFocused:!1,isFocusVisible:t||qt()}),[a,l]=s.useState(!1),[o,u]=s.useState(()=>i.current.isFocused&&i.current.isFocusVisible),d=s.useCallback(()=>u(i.current.isFocused&&i.current.isFocusVisible),[]),c=s.useCallback(p=>{i.current.isFocused=p,i.current.isFocusVisible=qt(),l(p),d()},[d]);R5(p=>{i.current.isFocusVisible=p,d()},[r,a],{enabled:a,isTextInput:r});let{focusProps:f}=El({isDisabled:n,onFocusChange:c}),{focusWithinProps:h}=vr({isDisabled:!n,onFocusWithinChange:c});return{isFocused:a,isFocusVisible:o,focusProps:n?h:f}}let Ji=!1,Qi=0;function Kl(){Ji=!0,setTimeout(()=>{Ji=!1},500)}function jd(e){e.pointerType==="touch"&&Kl()}function Gv(){let e=de(null);if(!(typeof e>"u"))return Qi===0&&(typeof PointerEvent<"u"?e.addEventListener("pointerup",jd):process.env.NODE_ENV==="test"&&e.addEventListener("touchend",Kl)),Qi++,()=>{Qi--,!(Qi>0)&&(typeof PointerEvent<"u"?e.removeEventListener("pointerup",jd):process.env.NODE_ENV==="test"&&e.removeEventListener("touchend",Kl))}}function Fe(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:n,isDisabled:i}=e,[a,l]=s.useState(!1),o=s.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;s.useEffect(Gv,[]);let{addGlobalListener:u,removeAllGlobalListeners:d}=Rr(),{hoverProps:c,triggerHoverEnd:f}=s.useMemo(()=>{let h=(g,$)=>{if(o.pointerType=$,i||$==="touch"||o.isHovered||!le(g.currentTarget,X(g)))return;o.isHovered=!0;let y=g.currentTarget;o.target=y,u(de(X(g)),"pointerover",x=>{o.isHovered&&o.target&&!le(o.target,X(x))&&p(x,x.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:y,pointerType:$}),r&&r(!0),l(!0)},p=(g,$)=>{let y=o.target;o.pointerType="",o.target=null,!($==="touch"||!o.isHovered||!y)&&(o.isHovered=!1,d(),n&&n({type:"hoverend",target:y,pointerType:$}),r&&r(!1),l(!1))},b={};return typeof PointerEvent<"u"?(b.onPointerEnter=g=>{Ji&&g.pointerType==="mouse"||h(g,g.pointerType)},b.onPointerLeave=g=>{!i&&le(g.currentTarget,X(g))&&p(g,g.pointerType)}):process.env.NODE_ENV==="test"&&(b.onTouchStart=()=>{o.ignoreEmulatedMouseEvents=!0},b.onMouseEnter=g=>{!o.ignoreEmulatedMouseEvents&&!Ji&&h(g,"mouse"),o.ignoreEmulatedMouseEvents=!1},b.onMouseLeave=g=>{!i&&le(g.currentTarget,X(g))&&p(g,"mouse")}),{hoverProps:b,triggerHoverEnd:p}},[t,r,n,i,o,u,d]);return s.useEffect(()=>{i&&f({currentTarget:o.target},o.pointerType)},[i]),{hoverProps:c,isHovered:a}}const Hd=s.createContext(null),Rv=s.forwardRef(function(t,r){[t,r]=me(t,r,Hd);let n=t.href&&!t.isDisabled?"a":"span",{linkProps:i,isPressed:a}=Wv({...t,elementType:n},r),l=re[n],{hoverProps:o,isHovered:u}=Fe(t),{focusProps:d,isFocused:c,isFocusVisible:f}=Ae(),h=se({...t,defaultClassName:"react-aria-Link",values:{isCurrent:!!t["aria-current"],isDisabled:t.isDisabled||!1,isPressed:a,isHovered:u,isFocused:c,isFocusVisible:f}}),p=ne(t,{global:!0});return delete p.onClick,s.createElement(l,{ref:r,slot:t.slot||void 0,...W(p,h,i,o,d),"data-focused":c||void 0,"data-hovered":u||void 0,"data-pressed":a||void 0,"data-focus-visible":f||void 0,"data-current":!!t["aria-current"]||void 0,"data-disabled":t.isDisabled||void 0},h.children)});var Ud={};Ud={breadcrumbs:"عناصر الواجهة"};var Wd={};Wd={breadcrumbs:"Трохи хляб"};var Gd={};Gd={breadcrumbs:"Popis cesty"};var Rd={};Rd={breadcrumbs:"Brødkrummer"};var Zd={};Zd={breadcrumbs:"Breadcrumbs"};var Yd={};Yd={breadcrumbs:"Πλοηγήσεις breadcrumb"};var qd={};qd={breadcrumbs:"Breadcrumbs"};var Xd={};Xd={breadcrumbs:"Migas de pan"};var Jd={};Jd={breadcrumbs:"Lingiread"};var Qd={};Qd={breadcrumbs:"Navigointilinkit"};var ec={};ec={breadcrumbs:"Chemin de navigation"};var tc={};tc={breadcrumbs:"שבילי ניווט"};var rc={};rc={breadcrumbs:"Navigacijski putovi"};var nc={};nc={breadcrumbs:"Morzsamenü"};var ic={};ic={breadcrumbs:"Breadcrumb"};var ac={};ac={breadcrumbs:"パンくずリスト"};var lc={};lc={breadcrumbs:"탐색 표시"};var oc={};oc={breadcrumbs:"Naršymo kelias"};var sc={};sc={breadcrumbs:"Atpakaļceļi"};var uc={};uc={breadcrumbs:"Navigasjonsstier"};var dc={};dc={breadcrumbs:"Broodkruimels"};var cc={};cc={breadcrumbs:"Struktura nawigacyjna"};var fc={};fc={breadcrumbs:"Caminho detalhado"};var hc={};hc={breadcrumbs:"Categorias"};var pc={};pc={breadcrumbs:"Miez de pâine"};var mc={};mc={breadcrumbs:"Навигация"};var bc={};bc={breadcrumbs:"Navigačné prvky Breadcrumbs"};var gc={};gc={breadcrumbs:"Drobtine"};var $c={};$c={breadcrumbs:"Putanje navigacije"};var yc={};yc={breadcrumbs:"Sökvägar"};var vc={};vc={breadcrumbs:"İçerik haritaları"};var xc={};xc={breadcrumbs:"Навігаційна стежка"};var Cc={};Cc={breadcrumbs:"导航栏"};var Dc={};Dc={breadcrumbs:"導覽列"};var wc={};wc={"ar-AE":Ud,"bg-BG":Wd,"cs-CZ":Gd,"da-DK":Rd,"de-DE":Zd,"el-GR":Yd,"en-US":qd,"es-ES":Xd,"et-EE":Jd,"fi-FI":Qd,"fr-FR":ec,"he-IL":tc,"hr-HR":rc,"hu-HU":nc,"it-IT":ic,"ja-JP":ac,"ko-KR":lc,"lt-LT":oc,"lv-LV":sc,"nb-NO":uc,"nl-NL":dc,"pl-PL":cc,"pt-BR":fc,"pt-PT":hc,"ro-RO":pc,"ru-RU":mc,"sk-SK":bc,"sl-SI":gc,"sr-SP":$c,"sv-SE":yc,"tr-TR":vc,"uk-UA":xc,"zh-CN":Cc,"zh-TW":Dc};function Zv(e){return e&&e.__esModule?e.default:e}function Yv(e){let{"aria-label":t,...r}=e,n=Ne(Zv(wc),"@react-aria/breadcrumbs");return{navProps:{...ne(r,{labelable:!0}),"aria-label":t||n.format("breadcrumbs")}}}const Ol=s.createContext(null),qv=s.forwardRef(function(t,r){[t,r]=me(t,r,Ol);let{CollectionRoot:n}=s.useContext($e),{navProps:i}=Yv(t),a=ne(t,{global:!0,labelable:!0});return s.createElement(gr,{content:s.createElement($r,t)},l=>s.createElement(re.ol,{render:t.render,ref:r,...W(a,i),slot:t.slot||void 0,style:t.style,className:t.className??"react-aria-Breadcrumbs"},s.createElement(Ol.Provider,{value:t},s.createElement(n,{collection:l}))))}),Pu=class Pu extends nt{};Pu.type="item";let Ll=Pu;const Xv=vt(Ll,function(t,r,n){let i=n.nextKey==null,{isDisabled:a,onAction:l}=Re(Ol),o={"aria-current":i?"page":null,isDisabled:a||i,onPress:()=>l?.(n.key)},u=se({...n.props,children:n.rendered,values:{isDisabled:a||i,isCurrent:i},defaultClassName:"react-aria-Breadcrumb"}),d=ne(t,{global:!0,labelable:!0});return delete d.id,s.createElement(re.li,{...d,...u,ref:r,"data-disabled":a||i||void 0,"data-current":i||void 0},s.createElement(Hd.Provider,{value:o},u.children))}),er=s.createContext({});function zl(e){let{id:t,label:r,"aria-labelledby":n,"aria-label":i,labelElementType:a="label"}=e;t=De(t);let l=De(),o={};r?(n=n?`${l} ${n}`:l,o={id:l,htmlFor:a==="label"?t:void 0}):!n&&!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=Mt({id:t,"aria-label":i,"aria-labelledby":n});return{labelProps:o,fieldProps:u}}let Vl=new Map,_l=!1;try{_l=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let ea=!1;try{ea=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const Ec={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class ta{constructor(t,r={}){this.numberFormatter=Jv(t,r),this.options=r}format(t){let r="";if(!_l&&this.options.signDisplay!=null?r=Qv(this.numberFormatter,this.options.signDisplay,t):r=this.numberFormatter.format(t),this.options.style==="unit"&&!ea){let{unit:n,unitDisplay:i="short",locale:a}=this.resolvedOptions();if(!n)return r;let l=Ec[n]?.[i];r+=l[a]||l.default}return r}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,r){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,r);if(r<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(r)}`}formatRangeToParts(t,r){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,r);if(r<t)throw new RangeError("End date must be >= start date");let n=this.numberFormatter.formatToParts(t),i=this.numberFormatter.formatToParts(r);return[...n.map(a=>({...a,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(a=>({...a,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!_l&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!ea&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}}function Jv(e,t={}){let{numberingSystem:r}=t;if(r&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${r}`),t.style==="unit"&&!ea){let{unit:a,unitDisplay:l="short"}=t;if(!a)throw new Error('unit option must be provided with style: "unit"');if(!Ec[a]?.[l])throw new Error(`Unsupported unit ${a} with unitDisplay = ${l}`);t={...t,style:"decimal"}}let n=e+(t?Object.entries(t).sort((a,l)=>a[0]<l[0]?-1:1).join():"");if(Vl.has(n))return Vl.get(n);let i=new Intl.NumberFormat(e,t);return Vl.set(n,i),i}function Qv(e,t,r){if(t==="auto")return e.format(r);if(t==="never")return e.format(Math.abs(r));{let n=!1;if(t==="always"?n=r>0||Object.is(r,0):t==="exceptZero"&&(Object.is(r,-0)||Object.is(r,0)?r=Math.abs(r):n=r>0),n){let i=e.format(-r),a=e.format(r),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(r)}}const e6=new RegExp("^.*\\(.*\\).*$"),t6=["latn","arab","hanidec","deva","beng","fullwide"];class Sc{constructor(t,r={}){this.locale=t,this.options=r}parse(t){return jl(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,r,n){return jl(this.locale,this.options,t).isValidPartialNumber(t,r,n)}getNumberingSystem(t){return jl(this.locale,this.options,t).options.numberingSystem}}const Pc=new Map;function jl(e,t,r){let n=kc(e,t);if(!e.includes("-nu-")&&!n.isValidPartialNumber(r)){for(let i of t6)if(i!==n.options.numberingSystem){let a=kc(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,t);if(a.isValidPartialNumber(r))return a}}return n}function kc(e,t){let r=e+(t?Object.entries(t).sort((i,a)=>i[0]<a[0]?-1:1).join():""),n=Pc.get(r);return n||(n=new r6(e,t),Pc.set(r,n)),n}class r6{constructor(t,r={}){this.locale=t,r.roundingIncrement!==1&&r.roundingIncrement!=null&&(r.maximumFractionDigits==null&&r.minimumFractionDigits==null?(r.maximumFractionDigits=0,r.minimumFractionDigits=0):r.maximumFractionDigits==null?r.maximumFractionDigits=r.minimumFractionDigits:r.minimumFractionDigits==null&&(r.minimumFractionDigits=r.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(t,r),this.options=this.formatter.resolvedOptions(),this.symbols=n6(t,this.formatter,this.options,r),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 r=this.formatter.resolvedOptions().useGrouping,n=this.sanitize(t);if(!r&&this.symbols.group&&n.includes(this.symbols.group))return NaN;if(this.symbols.group&&(n=n.replaceAll(this.symbols.group,"")),this.symbols.decimal&&(n=n.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(n=n.replace(this.symbols.minusSign,"-")),n=n.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let a=n.indexOf("-");n=n.replace("-",""),n=n.replace("+","");let l=n.indexOf(".");l===-1&&(l=n.length),n=n.replace(".",""),l-2===0?n=`0.${n}`:l-2===-1?n=`0.0${n}`:l-2===-2?n="0.00":n=`${n.slice(0,l-2)}.${n.slice(l-2)}`,a>-1&&(n=`-${n}`)}let i=n?+n: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 Sc(this.locale,a).parse(new ta(this.locale,a).format(i))}return this.options.currencySign==="accounting"&&e6.test(t)&&(i=-1*i),i}sanitize(t){let r=this.formatter.resolvedOptions().useGrouping;return this.symbols.noNumeralUnits.length>0&&this.symbols.noNumeralUnits.find(n=>n.unit===t)?this.symbols.noNumeralUnits.find(n=>n.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=tr(t,",",this.symbols.decimal),t=tr(t,"،",this.symbols.decimal)),this.symbols.group&&r&&(t=tr(t,".",this.symbols.group))),this.symbols.group==="’"&&t.includes("'")&&r&&(t=tr(t,"'",this.symbols.group)),this.symbols.group==="'"&&t.includes("’")&&r&&(t=tr(t,"’",this.symbols.group)),this.options.locale==="fr-FR"&&this.symbols.group&&r&&(t=tr(t," ",this.symbols.group),t=tr(t,/\u00A0/g,this.symbols.group)),t)}isValidPartialNumber(t,r=-1/0,n=1/0){let i=this.formatter.resolvedOptions().useGrouping;return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&r<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&n>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=tr(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}}const Bc=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),Nc=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function n6(e,t,r,n){let i=new Intl.NumberFormat(e,{...r,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand",useGrouping:!0}),a=i.formatToParts(-10000.111),l=i.formatToParts(10000.111),o=Nc.map(S=>i.formatToParts(S)),u=o.map((S,B)=>{let w=S.find(P=>P.type==="unit");return w&&!S.some(P=>P.type==="integer"||P.type==="fraction")?{unit:w.value,value:Nc[B]}:null}).filter(S=>!!S),d=a.find(S=>S.type==="minusSign")?.value??"-",c=l.find(S=>S.type==="plusSign")?.value;!c&&(n?.signDisplay==="exceptZero"||n?.signDisplay==="always")&&(c="+");let h=new Intl.NumberFormat(e,{...r,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(S=>S.type==="decimal")?.value,p=a.find(S=>S.type==="group")?.value,b=a.filter(S=>!Bc.has(S.type)).map(S=>Ac(S.value)),g=o.flatMap(S=>S.filter(B=>!Bc.has(B.type)).map(B=>Ac(B.value))),$=[...new Set([...b,...g])].sort((S,B)=>B.length-S.length),y=$.length===0?new RegExp("\\p{White_Space}|\\p{Cf}","gu"):new RegExp(`${$.join("|")}|\\p{White_Space}|\\p{Cf}`,"gu"),x=[...new Intl.NumberFormat(r.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:h,group:p,literals:y,numeral:C,numerals:x,index:S=>String(v.get(S)),noNumeralUnits:u}}function tr(e,t,r){return e.replaceAll?e.replaceAll(t,r):e.split(t).join(r)}function Ac(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function i6(e={}){let{locale:t}=ge();return s.useMemo(()=>new ta(t,e),[t,e])}function Nn(e,t=-1/0,r=1/0){return Math.min(Math.max(e,t),r)}function a6(e){let{value:t=0,minValue:r=0,maxValue:n=100,valueLabel:i,isIndeterminate:a,formatOptions:l={style:"percent"}}=e,o=ne(e,{labelable:!0}),{labelProps:u,fieldProps:d}=zl({...e,labelElementType:"span"});t=Nn(t,r,n);let c=n-r,f=c===0?0:(t-r)/c,h=i6(l);if(!a&&!i){let p=l.style==="percent"?f:t;i=h.format(p)}return{progressBarProps:W(o,{...d,"aria-valuenow":a?void 0:t,"aria-valuemin":r,"aria-valuemax":n,"aria-valuetext":a?void 0:i,role:"progressbar"}),labelProps:u}}const Fc=s.createContext(null),l6=s.forwardRef(function(t,r){[t,r]=me(t,r,Fc);let{value:n=0,minValue:i=0,maxValue:a=100,isIndeterminate:l=!1}=t;n=Nn(n,i,a);let[o,u]=Rt(!t["aria-label"]&&!t["aria-labelledby"]),{progressBarProps:d,labelProps:c}=a6({...t,label:u}),f=a-i,h;l||(f===0?h=0:h=(n-i)/f*100);let p=se({...t,defaultClassName:"react-aria-ProgressBar",values:{percentage:h,valueText:d["aria-valuetext"],isIndeterminate:l}}),b=ne(t,{global:!0});return s.createElement(re.div,{...W(b,p,d),ref:r,slot:t.slot||void 0},s.createElement(er.Provider,{value:{...c,ref:o,elementType:"span"}},p.children))}),Tc=7e3;let rr=null;function xt(e,t="assertive",r=Tc){rr?rr.announce(e,t,r):(rr=new s6,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?rr.announce(e,t,r):setTimeout(()=>{rr?.isAttached()&&rr?.announce(e,t,r)},100))}function o6(e){rr&&rr.clear(e)}class s6{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 r=document.createElement("div");return r.setAttribute("role","log"),r.setAttribute("aria-live",t),r.setAttribute("aria-relevant","additions"),r}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,r="assertive",n=Tc){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,r==="assertive"?this.assertiveLog?.appendChild(i):this.politeLog?.appendChild(i),t!==""&&setTimeout(()=>{i.remove()},n)}clear(t){this.node&&((!t||t==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}}function u6(e,t){let{elementType:r="button",isDisabled:n,onPress:i,onPressStart:a,onPressEnd:l,onPressUp:o,onPressChange:u,preventFocusOnPress:d,allowFocusWhenDisabled:c,onClick:f,href:h,target:p,rel:b,type:g="button"}=e,$;r==="button"?$={type:g,disabled:n,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:$={role:"button",href:r==="a"&&!n?h:void 0,target:r==="a"?p:void 0,type:r==="input"?g:void 0,disabled:r==="input"?n:void 0,"aria-disabled":!n||r==="input"?void 0:n,rel:r==="a"?b:void 0};let{pressProps:y,isPressed:x}=Xe({onPressStart:a,onPressEnd:l,onPressChange:u,onPress:i,onPressUp:o,onClick:f,isDisabled:n,preventFocusOnPress:d,ref:t}),{focusableProps:v}=Jt(e,t);c&&(v.tabIndex=n?-1:v.tabIndex);let C=W(v,y,ne(e,{labelable:!0}));return{isPressed:x,buttonProps:W($,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 Ct=s.createContext({}),nr=Wr(function(t,r){[t,r]=me(t,r,Ct);let n=t,{isPending:i}=n,{buttonProps:a,isPressed:l}=u6(t,r);a=c6(a,i);let{focusProps:o,isFocused:u,isFocusVisible:d}=Ae(t),{hoverProps:c,isHovered:f}=Fe({...t,isDisabled:t.isDisabled||i}),h={isHovered:f,isPressed:(n.isPressed||l)&&!i,isFocused:u,isFocusVisible:d,isDisabled:t.isDisabled||!1,isPending:i??!1},p=se({...t,values:h,defaultClassName:"react-aria-Button"}),b=De(a.id),g=De(),$=a["aria-labelledby"];i&&($?$=`${$} ${g}`:a["aria-label"]&&($=`${b} ${g}`));let y=s.useRef(i);s.useEffect(()=>{let v={"aria-labelledby":$||b};(!y.current&&u&&i||y.current&&u&&!i)&&xt(v,"assertive"),y.current=i},[i,u,$,b]);let x=ne(t,{global:!0});return delete x.onClick,s.createElement(re.button,{...W(x,p,a,o,c),type:a.type==="submit"&&i?"button":a.type,id:b,ref:r,"aria-labelledby":$,slot:t.slot||void 0,"aria-disabled":i?"true":a["aria-disabled"],"data-disabled":t.isDisabled||void 0,"data-pressed":h.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(Fc.Provider,{value:{id:g}},p.children))}),d6=/Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;function c6(e,t){if(t){for(const r in e)r.startsWith("on")&&!d6.test(r)&&(e[r]=void 0);e.href=void 0,e.target=void 0}return e}const ra=s.createContext({}),Ic=s.forwardRef(function(t,r){[t,r]=me(t,r,ra);let{children:n,level:i=3,className:a,...l}=t,o=re[`h${i}`];return s.createElement(o,{...l,ref:r,className:a??"react-aria-Heading"},n)}),Je=s.createContext({});var Mc={};Mc={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 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 Oc={};Oc={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 Lc={};Lc={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 zc={};zc={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 Vc={};Vc={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 _c={};_c={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 jc={};jc={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 Hc={};Hc={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 Uc={};Uc={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 Wc={};Wc={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 Gc={};Gc={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 Rc={};Rc={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 Zc={};Zc={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 Yc={};Yc={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 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 Xc={};Xc={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 Jc={};Jc={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 Qc={};Qc={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 ef={};ef={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 tf={};tf={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 rf={};rf={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 nf={};nf={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 af={};af={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 lf={};lf={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 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 sf={};sf={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 uf={};uf={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 df={};df={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 cf={};cf={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 ff={};ff={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 hf={};hf={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 pf={};pf={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 mf={};mf={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 An={};An={"ar-AE":Mc,"bg-BG":Kc,"cs-CZ":Oc,"da-DK":Lc,"de-DE":zc,"el-GR":Vc,"en-US":_c,"es-ES":jc,"et-EE":Hc,"fi-FI":Uc,"fr-FR":Wc,"he-IL":Gc,"hr-HR":Rc,"hu-HU":Zc,"it-IT":Yc,"ja-JP":qc,"ko-KR":Xc,"lt-LT":Jc,"lv-LV":Qc,"nb-NO":ef,"nl-NL":tf,"pl-PL":rf,"pt-BR":nf,"pt-PT":af,"ro-RO":lf,"ru-RU":of,"sk-SK":sf,"sl-SI":uf,"sr-SP":df,"sv-SE":cf,"tr-TR":ff,"uk-UA":hf,"zh-CN":pf,"zh-TW":mf};function bf(e,t){let r=s.useRef(null);return e&&r.current&&t(e,r.current)&&(e=r.current),r.current=e,e}function Zr(e,t){return e-t*Math.floor(e/t)}const gf=1721426;function xr(e,t,r,n){t=Fn(e,t);let i=t-1,a=-2;return r<=2?a=0:ir(t)&&(a=-1),gf-1+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*r-362)/12+a+n)}function ir(e){return e%4===0&&(e%100!==0||e%400===0)}function Fn(e,t){return e==="BC"?1-t:t}function na(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const f6={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 Ue{fromJulianDay(t){let r=t,n=r-gf,i=Math.floor(n/146097),a=Zr(n,146097),l=Math.floor(a/36524),o=Zr(a,36524),u=Math.floor(o/1461),d=Zr(o,1461),c=Math.floor(d/365),f=i*400+l*100+u*4+c+(l!==4&&c!==4?1:0),[h,p]=na(f),b=r-xr(h,p,1,1),g=2;r<xr(h,p,3,1)?g=0:ir(p)&&(g=1);let $=Math.floor(((b+g)*12+373)/367),y=r-xr(h,p,$,1)+1;return new Pe(h,p,$,y)}toJulianDay(t){return xr(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return f6[ir(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return ir(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 h6={"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 we(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 p6(e,t){return t=ye(t,e.calendar),e=Cr(e),t=Cr(t),e.era===t.era&&e.year===t.year&&e.month===t.month}function m6(e,t){return t=ye(t,e.calendar),e=Gl(e),t=Gl(t),e.era===t.era&&e.year===t.year}function b6(e,t){return ia(e.calendar,t.calendar)&&we(e,t)}function ia(e,t){return e.isEqual?.(t)??t.isEqual?.(e)??e.identifier===t.identifier}function $f(e,t){return we(e,Ul(t))}const g6={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function Hl(e,t,r){let n=e.calendar.toJulianDay(e),i=r?g6[r]:C6(t),a=Math.ceil(n+1-i)%7;return a<0&&(a+=7),a}function yf(e){return Ot(Date.now(),e)}function Ul(e){return je(yf(e))}function vf(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function $6(e,t){return xf(e)-xf(t)}function xf(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let Wl=null,y6=!1;function aa(){return Wl==null&&(Wl=new Intl.DateTimeFormat().resolvedOptions().timeZone),Wl}function Cf(){return y6}function Cr(e){return e.subtract({days:e.day-1})}function la(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function Gl(e){return Cr(e.subtract({months:e.month-1}))}function Tn(e,t,r){let n=Hl(e,t,r);return e.subtract({days:n})}function v6(e,t,r){return Tn(e,t,r).add({days:6})}const Df=new Map,Rl=new Map;function x6(e){if(Intl.Locale){let r=Df.get(e);return r||(r=new Intl.Locale(e).maximize().region,r&&Df.set(e,r)),r}let t=e.split("-")[1];return t==="u"?void 0:t}function C6(e){let t=Rl.get(e);if(!t){if(Intl.Locale){let n=new Intl.Locale(e);if("getWeekInfo"in n&&(t=n.getWeekInfo(),t))return Rl.set(e,t),t.firstDay}let r=x6(e);if(e.includes("-fw-")){let n=e.split("-fw-")[1].split("-")[0];n==="mon"?t={firstDay:1}:n==="tue"?t={firstDay:2}:n==="wed"?t={firstDay:3}:n==="thu"?t={firstDay:4}:n==="fri"?t={firstDay:5}:n==="sat"?t={firstDay:6}:t={firstDay:0}}else e.includes("-ca-iso8601")?t={firstDay:1}:t={firstDay:r&&h6[r]||0};Rl.set(e,t)}return t.firstDay}function D6(e,t,r){let n=e.calendar.getDaysInMonth(e);return Math.ceil((Hl(Cr(e),t,r)+n)/7)}function Zl(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function Yl(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function Yr(e){e=ye(e,new Ue);let t=Fn(e.era,e.year);return wf(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function wf(e,t,r,n,i,a,l){let o=new Date;return o.setUTCHours(n,i,a,l),o.setUTCFullYear(e,t-1,r),o.getTime()}function ql(e,t){if(t==="UTC")return 0;if(e>0&&t===aa()&&!Cf())return new Date(e).getTimezoneOffset()*-6e4;let{year:r,month:n,day:i,hour:a,minute:l,second:o}=Sf(e,t);return wf(r,n,i,a,l,o,0)-Math.floor(e/1e3)*1e3}const Ef=new Map;function Sf(e,t){let r=Ef.get(t);r||(r=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),Ef.set(t,r));let n=r.formatToParts(new Date(e)),i={};for(let a of n)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 Pf=864e5;function w6(e,t,r,n){return(r===n?[r]:[r,n]).filter(a=>E6(e,t,a))}function E6(e,t,r){let n=Sf(r,t);return e.year===n.year&&e.month===n.month&&e.day===n.day&&e.hour===n.hour&&e.minute===n.minute&&e.second===n.second}function Kt(e,t,r="compatible"){let n=ar(e);if(t==="UTC")return Yr(n);if(t===aa()&&r==="compatible"&&!Cf()){n=ye(n,new Ue);let u=new Date,d=Fn(n.era,n.year);return u.setFullYear(d,n.month-1,n.day),u.setHours(n.hour,n.minute,n.second,n.millisecond),u.getTime()}let i=Yr(n),a=ql(i-Pf,t),l=ql(i+Pf,t),o=w6(n,t,i-a,i-l);if(o.length===1)return o[0];if(o.length>1)switch(r){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(r){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 kf(e,t,r="compatible"){return new Date(Kt(e,t,r))}function Ot(e,t){let r=ql(e,t),n=new Date(e+r),i=n.getUTCFullYear(),a=n.getUTCMonth()+1,l=n.getUTCDate(),o=n.getUTCHours(),u=n.getUTCMinutes(),d=n.getUTCSeconds(),c=n.getUTCMilliseconds();return new Kn(i<1?"BC":"AD",i<1?-i+1:i,a,l,t,r,o,u,d,c)}function je(e){return new Pe(e.calendar,e.era,e.year,e.month,e.day)}function ar(e,t){let r=0,n=0,i=0,a=0;if("timeZone"in e)({hour:r,minute:n,second:i,millisecond:a}=e);else if("hour"in e&&!t)return e;return t&&({hour:r,minute:n,second:i,millisecond:a}=t),new Mn(e.calendar,e.era,e.year,e.month,e.day,r,n,i,a)}function ye(e,t){if(ia(e.calendar,t))return e;let r=t.fromJulianDay(e.calendar.toJulianDay(e)),n=e.copy();return n.calendar=t,n.era=r.era,n.year=r.year,n.month=r.month,n.day=r.day,Dr(n),n}function S6(e,t,r){if(e instanceof Kn)return e.timeZone===t?e:Bf(e,t);let n=Kt(e,t,r);return Ot(n,t)}function P6(e){let t=Yr(e)-e.offset;return new Date(t)}function Bf(e,t){let r=Yr(e)-e.offset;return ye(Ot(r,t),e.calendar)}function k6(e){return Bf(e,aa())}const In=36e5;function oa(e,t){let r=e.copy(),n="hour"in r?F6(r,t):0;Xl(r,t.years||0),r.calendar.balanceYearMonth&&r.calendar.balanceYearMonth(r,e),r.month+=t.months||0,Jl(r),Nf(r),r.day+=(t.weeks||0)*7,r.day+=t.days||0,r.day+=n,B6(r),r.calendar.balanceDate&&r.calendar.balanceDate(r),r.year<1&&(r.year=1,r.month=1,r.day=1);let i=r.calendar.getYearsInEra(r);if(r.year>i){let l=r.calendar.isInverseEra?.(r);r.year=i,r.month=l?1:r.calendar.getMonthsInYear(r),r.day=l?1:r.calendar.getDaysInMonth(r)}r.month<1&&(r.month=1,r.day=1);let a=r.calendar.getMonthsInYear(r);return r.month>a&&(r.month=a,r.day=r.calendar.getDaysInMonth(r)),r.day=Math.max(1,Math.min(r.calendar.getDaysInMonth(r),r.day)),r}function Xl(e,t){e.calendar.isInverseEra?.(e)&&(t=-t),e.year+=t}function Jl(e){for(;e.month<1;)Xl(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,Xl(e,1)}function B6(e){for(;e.day<1;)e.month--,Jl(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,Jl(e)}function Nf(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 Dr(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),Nf(e)}function Af(e){let t={};for(let r in e)typeof e[r]=="number"&&(t[r]=-e[r]);return t}function Ff(e,t){return oa(e,Af(t))}function Ql(e,t){let r=e.copy();return t.era!=null&&(r.era=t.era),t.year!=null&&(r.year=t.year),t.month!=null&&(r.month=t.month),t.day!=null&&(r.day=t.day),Dr(r),r}function sa(e,t){let r=e.copy();return t.hour!=null&&(r.hour=t.hour),t.minute!=null&&(r.minute=t.minute),t.second!=null&&(r.second=t.second),t.millisecond!=null&&(r.millisecond=t.millisecond),A6(r),r}function N6(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=ua(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=ua(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=ua(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=ua(e.hour,24),t}function A6(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 ua(e,t){let r=e%t;return r<0&&(r+=t),r}function F6(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,N6(e)}function eo(e,t,r,n){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,r,0,a.length-1,n?.round),i.era=a[l],Dr(i);break}case"year":i.calendar.isInverseEra?.(i)&&(r=-r),i.year=Lt(e.year,r,-1/0,9999,n?.round),i.year===-1/0&&(i.year=1),i.calendar.balanceYearMonth&&i.calendar.balanceYearMonth(i,e);break;case"month":i.month=Lt(e.month,r,1,e.calendar.getMonthsInYear(e),n?.round);break;case"day":i.day=Lt(e.day,r,1,e.calendar.getDaysInMonth(e),n?.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(i),Dr(i),i}function Tf(e,t,r,n){let i=e.copy();switch(t){case"hour":{let a=e.hour,l=0,o=23;if(n?.hourCycle===12){let u=a>=12;l=u?12:0,o=u?23:11}i.hour=Lt(a,r,l,o,n?.round);break}case"minute":i.minute=Lt(e.minute,r,0,59,n?.round);break;case"second":i.second=Lt(e.second,r,0,59,n?.round);break;case"millisecond":i.millisecond=Lt(e.millisecond,r,0,999,n?.round);break;default:throw new Error("Unsupported field "+t)}return i}function Lt(e,t,r,n,i=!1){if(i){e+=Math.sign(t),e<r&&(e=n);let a=Math.abs(t);t>0?e=Math.ceil(e/a)*a:e=Math.floor(e/a)*a,e>n&&(e=r)}else e+=t,e<r?e=n-(r-e-1):e>n&&(e=r+(e-n-1));return e}function If(e,t){let r;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=oa(ar(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});r=Kt(i,e.timeZone)}else r=Yr(e)-e.offset;r+=t.milliseconds||0,r+=(t.seconds||0)*1e3,r+=(t.minutes||0)*6e4,r+=(t.hours||0)*36e5;let n=Ot(r,e.timeZone);return ye(n,e.calendar)}function T6(e,t){return If(e,Af(t))}function I6(e,t,r,n){switch(t){case"hour":{let i=0,a=23;if(n?.hourCycle===12){let b=e.hour>=12;i=b?12:0,a=b?23:11}let l=ar(e),o=ye(sa(l,{hour:i}),new Ue),u=[Kt(o,e.timeZone,"earlier"),Kt(o,e.timeZone,"later")].filter(b=>Ot(b,e.timeZone).day===o.day)[0],d=ye(sa(l,{hour:a}),new Ue),c=[Kt(d,e.timeZone,"earlier"),Kt(d,e.timeZone,"later")].filter(b=>Ot(b,e.timeZone).day===d.day).pop(),f=Yr(e)-e.offset,h=Math.floor(f/In),p=f%In;return f=Lt(h,r,Math.floor(u/In),Math.floor(c/In),n?.round)*In+p,ye(Ot(f,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return Tf(e,t,r,n);case"era":case"year":case"month":case"day":{let i=eo(ar(e),t,r,n),a=Kt(i,e.timeZone);return ye(Ot(a,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function M6(e,t,r){let n=ar(e),i=sa(Ql(n,t),t);if(i.compare(n)===0)return e;let a=Kt(i,e.timeZone,r);return ye(Ot(a,e.timeZone),e.calendar)}const K6=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,O6=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/,Mf=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/;function L6(e){let t=e.match(K6);if(!t)throw Mf.test(e)?new Error(`Invalid ISO 8601 date string: ${e}. Use parseAbsolute() instead.`):new Error("Invalid ISO 8601 date string: "+e);let r=new Pe(Dt(t[1],0,9999),Dt(t[2],1,12),1);return r.day=Dt(t[3],1,r.calendar.getDaysInMonth(r)),r}function z6(e){let t=e.match(O6);if(!t)throw Mf.test(e)?new Error(`Invalid ISO 8601 date time string: ${e}. Use parseAbsolute() instead.`):new Error("Invalid ISO 8601 date time string: "+e);let r=Dt(t[1],-9999,9999),n=r<1?"BC":"AD",i=new Mn(n,r<1?-r+1:r,Dt(t[2],1,12),1,t[4]?Dt(t[4],0,23):0,t[5]?Dt(t[5],0,59):0,t[6]?Dt(t[6],0,59):0,t[7]?Dt(t[7],0,1/0)*1e3:0);return i.day=Dt(t[3],0,i.calendar.getDaysInMonth(i)),i}function Dt(e,t,r){let n=Number(e);if(n<t||n>r)throw new RangeError(`Value out of range: ${t} <= ${n} <= ${r}`);return n}function V6(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 Kf(e){let t=ye(e,new Ue),r;return t.era==="BC"?r=t.year===1?"0000":"-"+String(Math.abs(1-t.year)).padStart(6,"00"):r=String(t.year).padStart(4,"0"),`${r}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function Of(e){return`${Kf(e)}T${V6(e)}`}function _6(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let r=Math.floor(e/36e5),n=Math.floor(e%36e5/6e4),i=Math.floor(e%36e5%6e4/1e3),a=`${t}${String(r).padStart(2,"0")}:${String(n).padStart(2,"0")}`;return i!==0&&(a+=`:${String(i).padStart(2,"0")}`),a}function j6(e){return`${Of(e)}${_6(e.offset)}[${e.timeZone}]`}function to(e){let t=typeof e[0]=="object"?e.shift():new Ue,r;if(typeof e[0]=="string")r=e.shift();else{let l=t.getEras();r=l[l.length-1]}let n=e.shift(),i=e.shift(),a=e.shift();return[t,r,n,i,a]}class Pe{#e;constructor(...t){let[r,n,i,a,l]=to(t);this.calendar=r,this.era=n,this.year=i,this.month=a,this.day=l,Dr(this)}copy(){return this.era?new Pe(this.calendar,this.era,this.year,this.month,this.day):new Pe(this.calendar,this.year,this.month,this.day)}add(t){return oa(this,t)}subtract(t){return Ff(this,t)}set(t){return Ql(this,t)}cycle(t,r,n){return eo(this,t,r,n)}toDate(t){return kf(this,t)}toString(){return Kf(this)}compare(t){return vf(this,t)}}class Mn{#e;constructor(...t){let[r,n,i,a,l]=to(t);this.calendar=r,this.era=n,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,Dr(this)}copy(){return this.era?new Mn(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new Mn(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return oa(this,t)}subtract(t){return Ff(this,t)}set(t){return Ql(sa(this,t),t)}cycle(t,r,n){switch(t){case"era":case"year":case"month":case"day":return eo(this,t,r,n);default:return Tf(this,t,r,n)}}toDate(t,r){return kf(this,t,r)}toString(){return Of(this)}compare(t){let r=vf(this,t);return r===0?$6(this,ar(t)):r}}class Kn{#e;constructor(...t){let[r,n,i,a,l]=to(t),o=t.shift(),u=t.shift();this.calendar=r,this.era=n,this.year=i,this.month=a,this.day=l,this.timeZone=o,this.offset=u,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Dr(this)}copy(){return this.era?new Kn(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new Kn(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return If(this,t)}subtract(t){return T6(this,t)}set(t,r){return M6(this,t,r)}cycle(t,r,n){return I6(this,t,r,n)}toDate(){return P6(this)}toString(){return j6(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-S6(t,this.timeZone).toDate().getTime()}}const qr=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],H6=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],da=[1867,1911,1925,1988,2018],lr=["meiji","taisho","showa","heisei","reiwa"];function Lf(e){const t=qr.findIndex(([r,n,i])=>e.year<r||e.year===r&&e.month<n||e.year===r&&e.month===n&&e.day<i);return t===-1?qr.length-1:t===0?0:t-1}function ro(e){let t=da[lr.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new Pe(e.year+t,e.month,e.day)}class U6 extends Ue{fromJulianDay(t){let r=super.fromJulianDay(t),n=Lf(r);return new Pe(this,lr[n],r.year-da[n],r.month,r.day)}toJulianDay(t){return super.toJulianDay(ro(t))}balanceDate(t){let r=ro(t),n=Lf(r);lr[n]!==t.era&&(t.era=lr[n],t.year=r.year-da[n]),this.constrainDate(t)}constrainDate(t){let r=lr.indexOf(t.era),n=H6[r];if(n!=null){let[i,a,l]=n,o=i-da[r];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&&r>=0){let[,i,a]=qr[r];t.month=Math.max(i,t.month),t.month===i&&(t.day=Math.max(a,t.day))}}getEras(){return lr}getYearsInEra(t){let r=lr.indexOf(t.era),n=qr[r],i=qr[r+1];if(i==null)return 9999-n[0]+1;let a=i[0]-n[0];return(t.month<i[1]||t.month===i[1]&&t.day<i[2])&&a++,a}getDaysInMonth(t){return super.getDaysInMonth(ro(t))}getMinimumMonthInYear(t){let r=zf(t);return r?r[1]:1}getMinimumDayInMonth(t){let r=zf(t);return r&&t.month===r[1]?r[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function zf(e){if(e.year===1){let t=lr.indexOf(e.era);return qr[t]}}const Vf=-543;class W6 extends Ue{fromJulianDay(t){let r=super.fromJulianDay(t),n=Fn(r.era,r.year);return new Pe(this,n-Vf,r.month,r.day)}toJulianDay(t){return super.toJulianDay(_f(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(_f(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function _f(e){let[t,r]=na(e.year+Vf);return new Pe(t,r,e.month,e.day)}const ca=1911;function jf(e){return e.era==="minguo"?e.year+ca:1-e.year+ca}function Hf(e){let t=e-ca;return t>0?["minguo",t]:["before_minguo",1-t]}class G6 extends Ue{fromJulianDay(t){let r=super.fromJulianDay(t),n=Fn(r.era,r.year),[i,a]=Hf(n);return new Pe(this,i,a,r.month,r.day)}toJulianDay(t){return super.toJulianDay(Uf(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[r,n]=Hf(jf(t));t.era=r,t.year=n}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(Uf(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-ca}constructor(...t){super(...t),this.identifier="roc"}}function Uf(e){let[t,r]=na(jf(e));return new Pe(t,r,e.month,e.day)}const Wf=1948320,Gf=[0,31,62,93,124,155,186,216,246,276,306,336];class R6{fromJulianDay(t){let r=t-Wf,n=1+Math.floor((33*r+3)/12053),i=365*(n-1)+Math.floor((8*n+21)/33),a=r-i,l=a<216?Math.floor(a/31):Math.floor((a-6)/30),o=a-Gf[l]+1;return new Pe(this,n,l+1,o)}toJulianDay(t){let r=Wf-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return r+=Gf[t.month-1],r+=t.day,r}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||Zr(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 no=78,Rf=80;class Z6 extends Ue{fromJulianDay(t){let r=super.fromJulianDay(t),n=r.year-no,i=t-xr(r.era,r.year,1,1),a;i<Rf?(n--,a=ir(r.year-1)?31:30,i+=a+155+90+10):(a=ir(r.year)?31:30,i-=Rf);let l,o;if(i<a)l=1,o=i+1;else{let u=i-a;u<155?(l=Math.floor(u/31)+2,o=u%31+1):(u-=155,l=Math.floor(u/30)+7,o=u%30+1)}return new Pe(this,n,l,o)}toJulianDay(t){let r=t.year+no,[n,i]=na(r),a,l;return ir(i)?(a=31,l=xr(n,i,3,21)):(a=30,l=xr(n,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&&ir(t.year+no)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const fa=1948440,Zf=1948439,it=1300,Xr=1600,Y6=460322;function ha(e,t,r,n){return n+Math.ceil(29.5*(r-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function Yf(e,t,r){let n=Math.floor((30*(r-t)+10646)/10631),i=Math.min(12,Math.ceil((r-(29+ha(t,n,1,1)))/29.5)+1),a=r-ha(t,n,i,1)+1;return new Pe(e,n,i,a)}function qf(e){return(14+11*e)%30<11}class io{fromJulianDay(t){return Yf(this,fa,t)}toJulianDay(t){return ha(fa,t.year,t.month,t.day)}getDaysInMonth(t){let r=29+t.month%2;return t.month===12&&qf(t.year)&&r++,r}getMonthsInYear(){return 12}getDaysInYear(t){return qf(t.year)?355:354}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 30}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class q6 extends io{fromJulianDay(t){return Yf(this,Zf,t)}toJulianDay(t){return ha(Zf,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const X6="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let ao,Jr;function pa(e){return Y6+Jr[e-it]}function On(e,t){let r=e-it,n=1<<11-(t-1);return(ao[r]&n)===0?29:30}function Xf(e,t){let r=pa(e);for(let n=1;n<t;n++)r+=On(e,n);return r}function Jf(e){return Jr[e+1-it]-Jr[e-it]}class J6 extends io{constructor(){if(super(),this.identifier="islamic-umalqura",ao||(ao=new Uint16Array(Uint8Array.from(atob(X6),t=>t.charCodeAt(0)).buffer)),!Jr){Jr=new Uint32Array(Xr-it+1);let t=0;for(let r=it;r<=Xr;r++){Jr[r-it]=t;for(let n=1;n<=12;n++)t+=On(r,n)}}}fromJulianDay(t){let r=t-fa,n=pa(it),i=pa(Xr);if(r<n||r>i)return super.fromJulianDay(t);{let a=it-1,l=1,o=1;for(;o>0;){a++,o=r-pa(a)+1;let u=Jf(a);if(o===u){l=12;break}else if(o<u){let d=On(a,l);for(l=1;o>d;)o-=d,l++,d=On(a,l);break}}return new Pe(this,a,l,r-Xf(a,l)+1)}}toJulianDay(t){return t.year<it||t.year>Xr?super.toJulianDay(t):fa+Xf(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<it||t.year>Xr?super.getDaysInMonth(t):On(t.year,t.month)}getDaysInYear(t){return t.year<it||t.year>Xr?super.getDaysInYear(t):Jf(t.year)}}const Qf=347997,e0=1080,t0=24*e0,Q6=29,ex=12*e0+793,tx=Q6*t0+ex;function wr(e){return Zr(e*7+1,19)<7}function ma(e){let t=Math.floor((235*e-234)/19),r=12084+13753*t,n=t*29+Math.floor(r/25920);return Zr(3*(n+1),7)<3&&(n+=1),n}function rx(e){let t=ma(e-1),r=ma(e);return ma(e+1)-r===356?2:r-t===382?1:0}function Ln(e){return ma(e)+rx(e)}function r0(e){return Ln(e+1)-Ln(e)}function nx(e){let t=r0(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function ba(e,t){if(t>=6&&!wr(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let r=nx(e);return t===2?r===2?30:29:t===3?r===0?29:30:t===6?wr(e)?30:0:30}class ix{fromJulianDay(t){let r=t-Qf,n=r*t0/tx,i=Math.floor((19*n+234)/235)+1,a=Ln(i),l=Math.floor(r-a);for(;l<1;)i--,a=Ln(i),l=Math.floor(r-a);let o=1,u=0;for(;u<l;)u+=ba(i,o),o++;o--,u-=ba(i,o);let d=l-u;return new Pe(this,i,o,d)}toJulianDay(t){let r=Ln(t.year);for(let n=1;n<t.month;n++)r+=ba(t.year,n);return r+t.day+Qf}getDaysInMonth(t){return ba(t.year,t.month)}getMonthsInYear(t){return wr(t.year)?13:12}getDaysInYear(t){return r0(t.year)}getMaximumMonthsInYear(){return 13}getMaximumDaysInMonth(){return 30}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,r){r.year!==t.year&&(wr(r.year)&&!wr(t.year)&&r.month>6?t.month--:!wr(r.year)&&wr(t.year)&&r.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const lo=1723856,n0=1824665,oo=5500;function ga(e,t,r,n){return e+365*t+Math.floor(t/4)+30*(r-1)+n-1}function so(e,t){let r=Math.floor(4*(t-e)/1461),n=1+Math.floor((t-ga(e,r,1,1))/30),i=t+1-ga(e,r,n,1);return[r,n,i]}function i0(e){return Math.floor(e%4/3)}function a0(e,t){return t%13!==0?30:i0(e)+5}class uo{fromJulianDay(t){let[r,n,i]=so(lo,t),a="AM";return r<=0&&(a="AA",r+=oo),new Pe(this,a,r,n,i)}toJulianDay(t){let r=t.year;return t.era==="AA"&&(r-=oo),ga(lo,r,t.month,t.day)}getDaysInMonth(t){return a0(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+i0(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 ax extends uo{fromJulianDay(t){let[r,n,i]=so(lo,t);return r+=oo,new Pe(this,"AA",r,n,i)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class lx extends uo{fromJulianDay(t){let[r,n,i]=so(n0,t),a="CE";return r<=0&&(a="BCE",r=1-r),new Pe(this,a,r,n,i)}toJulianDay(t){let r=t.year;return t.era==="BCE"&&(r=1-r),ga(n0,r,t.month,t.day)}getDaysInMonth(t){let r=t.year;return t.era==="BCE"&&(r=1-r),a0(r,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 $a(e){switch(e){case"buddhist":return new W6;case"ethiopic":return new uo;case"ethioaa":return new ax;case"coptic":return new lx;case"hebrew":return new ix;case"indian":return new Z6;case"islamic-civil":return new io;case"islamic-tbla":return new q6;case"islamic-umalqura":return new J6;case"japanese":return new U6;case"persian":return new R6;case"roc":return new G6;default:return new Ue}}let co=new Map;class Er{constructor(t,r={}){this.formatter=l0(t,r),this.options=r}format(t){return this.formatter.format(t)}formatToParts(t){return this.formatter.formatToParts(t)}formatRange(t,r){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(t,r);if(r<t)throw new RangeError("End date must be >= start date");return`${this.formatter.format(t)} – ${this.formatter.format(r)}`}formatRangeToParts(t,r){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(t,r);if(r<t)throw new RangeError("End date must be >= start date");let n=this.formatter.formatToParts(t),i=this.formatter.formatToParts(r);return[...n.map(a=>({...a,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(a=>({...a,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return ux()&&(this.resolvedHourCycle||(this.resolvedHourCycle=dx(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 ox={true:{ja:"h11"},false:{}};function l0(e,t={}){if(typeof t.hour12=="boolean"&&sx()){t={...t};let i=ox[String(t.hour12)][e.split("-")[0]],a=t.hour12?"h12":"h23";t.hourCycle=i??a,delete t.hour12}let r=e+(t?Object.entries(t).sort((i,a)=>i[0]<a[0]?-1:1).join():"");if(co.has(r))return co.get(r);let n=new Intl.DateTimeFormat(e,t);return co.set(r,n),n}let fo=null;function sx(){return fo==null&&(fo=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),fo}let ho=null;function ux(){return ho==null&&(ho=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),ho}function dx(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 r=l0(e,{...t,timeZone:void 0}),n=parseInt(r.formatToParts(new Date(2020,2,3,0)).find(a=>a.type==="hour").value,10),i=parseInt(r.formatToParts(new Date(2020,2,3,23)).find(a=>a.type==="hour").value,10);if(n===0&&i===23)return"h23";if(n===24&&i===23)return"h24";if(n===0&&i===11)return"h11";if(n===12&&i===11)return"h12";throw new Error("Unexpected hour cycle result")}function Qe(e){e=bf(e??{},cx);let{locale:t}=ge();return s.useMemo(()=>new Er(t,e),[t,e])}function cx(e,t){if(e===t)return!0;let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let i of r)if(t[i]!==e[i])return!1;return!0}function o0(e){return e&&e.__esModule?e.default:e}const po=new WeakMap;function zn(e){return e?.calendar.identifier==="gregory"&&e.era==="BC"?"short":void 0}function fx(e){let t=Ne(o0(An),"@react-aria/calendar"),r,n;"highlightedRange"in e?{start:r,end:n}=e.highlightedRange||{}:(r=Array.isArray(e.value)?e.value[0]:e.value??void 0,n=Array.isArray(e.value)?e.value.at(-1):e.value??void 0);let i=Qe({weekday:"long",month:"long",year:"numeric",day:"numeric",era:zn(r)||zn(n),timeZone:e.timeZone}),{locale:a}=ge(),l=s.useMemo(()=>new Intl.ListFormat(a),[a]),o="anchorDate"in e?e.anchorDate:null;return s.useMemo(()=>{if(!o&&r&&n){if(we(r,n)){let u=i.format(r.toDate(e.timeZone));return t.format("selectedDateDescription",{date:u})}else if("highlightedRange"in e){let u=bo(i,t,r,n,e.timeZone);return t.format("selectedRangeDescription",{dateRange:u})}else if(Array.isArray(e.value)){let u=e.value.map(c=>i.format(c.toDate(e.timeZone))),d=l.format(u);return t.format("selectedDateDescription",{date:d})}}return""},[r,n,o,e,t,i,l])}function mo(e,t,r,n){let i=Ne(o0(An),"@react-aria/calendar"),a=zn(e)||zn(t),l=Qe({month:"long",year:"numeric",era:a,calendar:e.calendar.identifier,timeZone:r}),o=Qe({month:"long",year:"numeric",day:"numeric",era:a,calendar:e.calendar.identifier,timeZone:r});return s.useMemo(()=>{if(we(e,Cr(e))){let u=e,d=t;if(e.calendar.getFormattableMonth&&(u=e.calendar.getFormattableMonth(e)),t.calendar.getFormattableMonth&&(d=t.calendar.getFormattableMonth(t)),we(t,la(e)))return l.format(u.toDate(r));if(we(t,la(t)))return n?bo(l,i,u,d,r):l.formatRange(u.toDate(r),d.toDate(r))}return n?bo(o,i,e,t,r):o.formatRange(e.toDate(r),t.toDate(r))},[e,t,l,o,i,r,n])}function bo(e,t,r,n,i){let a=e.formatRangeToParts(r.toDate(i),n.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="",u="";for(let d=0;d<a.length;d++)d<l?o+=a[d].value:d>l&&(u+=a[d].value);return t.format("dateRange",{startDate:o,endDate:u})}function Vn(e,t){const r=s.useRef(!0),n=s.useRef(null);let i=Se(e);s.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[]),s.useEffect(()=>{let a=n.current;r.current?r.current=!1:(!a||t.some((l,o)=>!Object.is(l,a[o])))&&i(),n.current=t},t)}function hx(e){return e&&e.__esModule?e.default:e}function s0(e,t){let r=Ne(hx(An),"@react-aria/calendar"),n=ne(e),i=mo(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),a=mo(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);Vn(()=>{t.isFocused||xt(a)},[a]);let l=fx(t);Vn(()=>{l&&xt(l,"polite",4e3)},[l]);let o=mt([!!e.errorMessage,e.isInvalid,e.validationState]);po.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:o,selectedDateDescription:l});let[u,d]=s.useState(!1),c=e.isDisabled||t.isNextVisibleRangeInvalid();c&&u&&(d(!1),t.setFocused(!0));let[f,h]=s.useState(!1),p=e.isDisabled||t.isPreviousVisibleRangeInvalid();p&&f&&(h(!1),t.setFocused(!0));let b=Mt({id:e.id,"aria-label":[e["aria-label"],a].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]});return{calendarProps:W(n,b,{role:"application","aria-details":e["aria-details"]||void 0,"aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>t.focusNextPage(),"aria-label":r.format("next"),isDisabled:c,onFocusChange:d},prevButtonProps:{onPress:()=>t.focusPreviousPage(),"aria-label":r.format("previous"),isDisabled:p,onFocusChange:h},errorMessageProps:{id:o},title:i}}function px(e,t){return s0(e,t)}function mx(e,t){let{startDate:r=t.visibleRange.start,endDate:n=t.visibleRange.end,firstDayOfWeek:i}=e,{direction:a}=ge(),{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}),u=mo(r,n,t.timeZone,!0),{ariaLabel:d,ariaLabelledBy:c}=po.get(t),f=Mt({"aria-label":[d,u].filter(Boolean).join(", "),"aria-labelledby":c}),h=Qe({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:p}=ge(),b=s.useMemo(()=>{let $=t.visibleDuration.days&&t.visibleDuration.days<7,y=$?r:Tn(Ul(t.timeZone),p,i),x=$?t.visibleDuration.days:7;return[...new Array(x).keys()].map(v=>{let E=y.add({days:v}).toDate(t.timeZone);return h.format(E)})},[p,t.timeZone,h,i,r,t.visibleDuration.days]),g=t.getWeeksInMonth(r);return{gridProps:W(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:b,weeksInMonth:g}}function or(e,t){if(!e)return!1;let r=window.getComputedStyle(e),n=document.scrollingElement||document.documentElement,i=/(auto|scroll)/.test(r.overflow+r.overflowX+r.overflowY);return e===n&&r.overflow!=="hidden"&&(i=!0),i&&t&&(i=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),i}function ut(e,t){let r=e;for(or(r,t)&&(r=r.parentElement);r&&!or(r,t);)r=r.parentElement;return r||document.scrollingElement||document.documentElement}function go(e,t){let r=[],n=document.scrollingElement||document.documentElement;for(;e&&(or(e,t)&&r.push(e),e!==n);)e=e.parentElement;return r}function ya(e,t,r={}){let{block:n="nearest",inline:i="nearest"}=r;if(e===t)return;let a=e.scrollTop,l=e.scrollLeft,o=t.getBoundingClientRect(),u=e.getBoundingClientRect(),d=window.getComputedStyle(t),c=window.getComputedStyle(e),f=document.scrollingElement||document.documentElement,h=e===f,p=e===f?0:u.top,b=e===f?e.clientHeight:u.bottom,g=e===f?0:u.left,$=e===f?e.clientWidth:u.right,y=parseFloat(d.scrollMarginTop)||0,x=parseFloat(d.scrollMarginBottom)||0,v=parseFloat(d.scrollMarginLeft)||0,C=parseFloat(d.scrollMarginRight)||0,E=parseFloat(c.scrollPaddingTop)||0,S=parseFloat(c.scrollPaddingBottom)||0,B=parseFloat(c.scrollPaddingLeft)||0,w=parseFloat(c.scrollPaddingRight)||0,P=parseFloat(c.borderTopWidth)||0,K=parseFloat(c.borderBottomWidth)||0,T=parseFloat(c.borderLeftWidth)||0,I=parseFloat(c.borderRightWidth)||0,H=o.top-y,D=o.bottom+x,M=o.left-v,G=o.right+C,O=e===f?0:T+I,J=e===f?0:P+K,k=e===f?0:e.offsetWidth-e.clientWidth-O,N=e===f?0:e.offsetHeight-e.clientHeight-J,z=p+(h?0:P)+E,ee=b-(h?0:K)-S-N,Q=g+(h?0:T)+B,A=$-(h?0:I)-w;$t()&&yt()||c.direction==="ltr"?A-=k:c.direction==="rtl"&&(Q+=k);let F=H<z||D>ee,V=M<Q||G>A;if(F&&n==="start")a+=H-z;else if(F&&n==="center")a+=(H+D)/2-(z+ee)/2;else if(F&&n==="end")a+=D-ee;else if(F&&n==="nearest"){let L=H-z,te=D-ee;a+=Math.abs(L)<=Math.abs(te)?L:te}if(V&&i==="start")l+=M-Q;else if(V&&i==="center")l+=(M+G)/2-(Q+A)/2;else if(V&&i==="end")l+=G-A;else if(V&&i==="nearest"){let L=M-Q,te=G-A;l+=Math.abs(L)<=Math.abs(te)?L:te}if(process.env.NODE_ENV==="test"){e.scrollLeft=l,e.scrollTop=a;return}e.scrollTo({left:l,top:a})}function wt(e,t={}){let{containingElement:r}=t;if(e&&e.isConnected){let n=document.scrollingElement||document.documentElement;if(window.getComputedStyle(n).overflow==="hidden"){let{left:a,top:l}=e.getBoundingClientRect(),o=go(e,!0);for(let c of o)ya(c,e);let{left:u,top:d}=e.getBoundingClientRect();if(Math.abs(a-u)>1||Math.abs(l-d)>1){o=r?go(r,!0):[];for(let c of o)ya(c,r,{block:"center",inline:"center"});for(let c of go(e,!0))ya(c,e)}}else{let{left:a,top:l}=e.getBoundingClientRect();e?.scrollIntoView?.({block:"nearest"});let{left:o,top:u}=e.getBoundingClientRect();(Math.abs(a-o)>1||Math.abs(l-u)>1)&&(r?.scrollIntoView?.({block:"center",inline:"center"}),e.scrollIntoView?.({block:"nearest"}))}}}let bx=0;const $o=new Map;function Sr(e){let[t,r]=s.useState();return fe(()=>{if(!e)return;let n=$o.get(e);if(n)r(n.element.id);else{let i=`react-aria-description-${bx++}`;r(i);let a=document.createElement("div");a.id=i,a.style.display="none",a.textContent=e,document.body.appendChild(a),n={refCount:0,element:a},$o.set(e,n)}return n.refCount++,()=>{n&&--n.refCount===0&&(n.element.remove(),$o.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function gx(e){return e&&e.__esModule?e.default:e}function $x(e,t,r){let{date:n,isDisabled:i}=e,{errorMessageId:a,selectedDateDescription:l}=po.get(t),o=Ne(gx(An),"@react-aria/calendar"),u=Qe({weekday:"long",day:"numeric",month:"long",year:"numeric",era:zn(n),timeZone:t.timeZone}),d=t.isCellFocused(n)&&!e.isOutsideMonth;i=i||t.isCellDisabled(n)||!!e.isOutsideMonth;let c=t.isCellUnavailable(n),f=!i&&!c,h=t.isSelected(n)&&f,p=!1;t.isValueInvalid&&("highlightedRange"in t?p=!t.anchorDate&&t.highlightedRange!=null&&n.compare(t.highlightedRange.start)>=0&&n.compare(t.highlightedRange.end)<=0:Array.isArray(t.value)?p=t.value.some(T=>we(T,n)):t.value&&(p=we(t.value,n))),p&&!i&&(h=!0),n=bf(n,b6);let b=s.useMemo(()=>n.toDate(t.timeZone),[n,t.timeZone]),g=$f(n,t.timeZone),$=s.useMemo(()=>{let T="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&(we(n,t.value.start)||we(n,t.value.end))&&(T=l+", "),T+=u.format(b),g?T=o.format(h?"todayDateSelected":"todayDate",{date:T}):h&&(T=o.format("dateSelected",{date:T})),t.minValue&&we(n,t.minValue)?T+=", "+o.format("minimumDate"):t.maxValue&&we(n,t.maxValue)&&(T+=", "+o.format("maximumDate")),T},[u,b,o,h,g,n,t,l]),y="";"anchorDate"in t&&d&&!t.isReadOnly&&f&&(t.anchorDate?y=o.format("finishRangeSelectionPrompt"):y=o.format("startRangeSelectionPrompt"));let x=Sr(y),v=s.useRef(!1),C=s.useRef(!1),E=s.useRef(void 0),{pressProps:S,isPressed:B}=Xe({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:!0,isDisabled:!f||t.isReadOnly,onPressStart(T){if(t.isReadOnly){t.setFocusedDate(n),t.setFocused(!0);return}if("highlightedRange"in t&&!t.anchorDate&&(T.pointerType==="mouse"||T.pointerType==="touch")){if(t.highlightedRange&&!p){if(we(n,t.highlightedRange.start)){t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(n),t.setFocused(!0),t.setDragging(!0),C.current=!0;return}else if(we(n,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(n),t.setFocused(!0),t.setDragging(!0),C.current=!0;return}}let I=()=>{t.setDragging(!0),E.current=void 0,t.selectDate(n),t.setFocusedDate(n),t.setFocused(!0),v.current=!0};T.pointerType==="touch"?E.current=setTimeout(I,200):I()}},onPressEnd(){C.current=!1,v.current=!1,clearTimeout(E.current),E.current=void 0},onPress(){!("anchorDate"in t)&&!t.isReadOnly&&(t.selectDate(n),t.setFocusedDate(n),t.setFocused(!0))},onPressUp(T){t.isReadOnly||("anchorDate"in t&&E.current&&(t.selectDate(n),t.setFocusedDate(n),t.setFocused(!0)),"anchorDate"in t&&(C.current?t.setAnchorDate(n):t.anchorDate&&!v.current?(t.selectDate(n),t.setFocusedDate(n),t.setFocused(!0)):T.pointerType==="keyboard"&&!t.anchorDate?(t.selectDate(n),t.focusNearestAvailableDate(n)):T.pointerType==="virtual"&&(t.selectDate(n),t.setFocusedDate(n),t.setFocused(!0))))}}),w;i||(w=we(n,t.focusedDate)?0:-1),s.useEffect(()=>{d&&r.current&&(et(r.current),jr()!=="pointer"&&he()===r.current&&wt(r.current,{containingElement:ut(r.current)}))},[d,r]);let P=Qe({day:"numeric",timeZone:t.timeZone,calendar:n.calendar.identifier}),K=s.useMemo(()=>P.formatToParts(b).find(T=>T.type==="day").value,[P,b]);return{cellProps:{role:"gridcell","aria-disabled":!f||void 0,"aria-selected":h||void 0,"aria-invalid":p||void 0},buttonProps:W(S,{onFocus(){i||(t.setFocusedDate(n),t.setFocused(!0))},tabIndex:w,role:"button","aria-disabled":!f||void 0,"aria-label":$,"aria-invalid":p||void 0,"aria-describedby":[p?a:void 0,x["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(T){"highlightDate"in t&&(T.pointerType!=="touch"||t.isDragging)&&f&&t.highlightDate(n)},onPointerDown(T){let I=X(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:h,isDisabled:i,isUnavailable:c,isOutsideVisibleRange:n.compare(t.visibleRange.start)<0||n.compare(t.visibleRange.end)>0,isInvalid:p,formattedDate:K}}function yx(e,t){let r=Qe({month:e.format||"short",calendar:t.focusedDate.calendar.identifier,timeZone:t.timeZone}),n=[],i=t.focusedDate.calendar.getMonthsInYear(t.focusedDate);for(let o=1;o<=i;o++){let u=t.focusedDate.set({month:o}),d=u.calendar.getFormattableMonth?u.calendar.getFormattableMonth(u):u;n.push({id:o,date:u,formatted:r.format(d.toDate(t.timeZone))})}let{locale:a}=ge();return{"aria-label":s.useMemo(()=>new Intl.DisplayNames(a,{type:"dateTimeField"}).of("month"),[a]),value:t.focusedDate.month,onChange:o=>{o!=null&&t.setFocusedDate(n[Number(o)-1].date)},items:n}}function vx(e,t){let r=Qe({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}),n=e.visibleYears||20,i=t.focusedDate.subtract({years:Math.floor(n/2)}),a=t.focusedDate.add({years:Math.ceil(n/2)-1});t.maxValue&&a.compare(t.maxValue)>0&&(a=je(t.maxValue),i=a.subtract({years:n-1})),t.minValue&&i.compare(t.minValue)<0&&(i=je(t.minValue),a=i.add({years:n-1}),t.maxValue&&a.compare(t.maxValue)>0&&(a=je(t.maxValue)));let l=[],o=i,u=0;for(;o.compare(a)<=0;)m6(o,t.focusedDate)&&(u=l.length),l.push({id:l.length,date:o,formatted:r.format(o.toDate(t.timeZone))}),o=o.add({years:1});let{locale:d}=ge();return{"aria-label":s.useMemo(()=>new Intl.DisplayNames(d,{type:"dateTimeField"}).of("year"),[d]),value:u,onChange:f=>{f!=null&&t.setFocusedDate(l[f].date)},items:l}}function xx(e,t){let r=s.useMemo(()=>{let a=t.visibleRange.start;return e.offset&&(a=a.add(e.offset)),a},[t.visibleRange.start,e.offset]),n=t.visibleDuration.days||t.visibleDuration.weeks,i=Qe({day:e.format?.day||(n?"numeric":void 0),month:e.format?.month||"long",year:e.format?.year||"numeric",era:e.format?.era||r&&r.calendar.identifier==="gregory"&&r.era==="BC"?"short":void 0,calendar:t.visibleRange?.start.calendar.identifier,timeZone:t.timeZone});return s.useMemo(()=>{if(n)return i.formatRange(r.toDate(t.timeZone),t.visibleRange.end.toDate(t.timeZone));let a=r.calendar.getFormattableMonth?r.calendar.getFormattableMonth(r):r;return i.format(a.toDate(t.timeZone))},[i,n,r,t.timeZone,t.visibleRange.end])}function Cx(e,t,r){let{commitBehavior:n="select",...i}=e,a=s0(i,t),l=s.useRef(!1),o=s.useRef(typeof window<"u"?window:null);st(o,"pointerdown",c=>{l.current=c.width===0&&c.height===0});const u={clear:()=>t.clearSelection(),reset:()=>t.setAnchorDate(null),select:()=>t.commitSelection()};return st(o,"pointerup",c=>{if(l.current){l.current=!1;return}if(t.setDragging(!1),!t.anchorDate)return;let f=c.target;r.current&&Yt(r.current)&&(!le(r.current,f)||!f.closest('button, [role="button"]'))&&u[n]()}),a.calendarProps.onBlur=c=>{r.current&&(!c.relatedTarget||!le(r.current,c.relatedTarget))&&t.anchorDate&&u[n]()},st(r,"touchmove",c=>{t.isDragging&&c.preventDefault()},{passive:!1,capture:!0}),a}function sr(e,t,r){return t!=null&&e.compare(t)<0||r!=null&&e.compare(r)>0}function yo(e,t,r,n,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=Pr(e,t,r).subtract(a);return _n(e,l,t,r,n,i)}function Pr(e,t,r,n,i){let a=e;return t.years?a=Gl(e):t.months?a=Cr(e):(t.weeks||t.days&&t.days>7)&&(a=Tn(e,r)),_n(e,a,t,r,n,i)}function vo(e,t,r,n,i){let a={...t};a.days?a.days--:a.weeks?a.weeks--:a.months?a.months--:a.years&&a.years--;let l=Pr(e,t,r).subtract(a);return _n(e,l,t,r,n,i)}function _n(e,t,r,n,i,a){if(i&&e.compare(i)>=0){let l=Yl(t,Pr(je(i),r,n));l&&(t=l)}if(a&&e.compare(a)<=0){let l=Zl(t,vo(je(a),r,n));l&&(t=l)}return t}function Et(e,t,r){if(t){let n=Yl(e,je(t));n&&(e=n)}if(r){let n=Zl(e,je(r));n&&(e=n)}return e}function u0(e,t,r){if(!r)return e;for(;e.compare(t)>=0&&r(e);)e=e.subtract({days:1});return e.compare(t)>=0?e:null}function Dx(e,t){return e===t?!0:e.days===t.days&&e.weeks===t.weeks&&e.months===t.months&&e.years===t.years}function d0(e){let t=s.useMemo(()=>new Er(e.locale),[e.locale]),r=s.useMemo(()=>t.resolvedOptions(),[t]),{locale:n,createCalendar:i,visibleDuration:a={months:1},minValue:l,maxValue:o,selectionAlignment:u,isDateUnavailable:d,pageBehavior:c="visible",selectionMode:f="single",firstDayOfWeek:h,weeksInMonth:p}=e,b=s.useMemo(()=>i(r.calendar),[i,r.calendar]),[g,$]=_e(e.value,e.defaultValue??null,e.onChange),y=s.useMemo(()=>Array.isArray(g)?g.map(A=>ye(je(A),b)):g?ye(je(g),b):null,[g,b]),x=s.useMemo(()=>{let A=Array.isArray(g)?g[0]:g;return A&&"timeZone"in A?A.timeZone:r.timeZone},[g,r.timeZone]),v=s.useMemo(()=>e.focusedValue?Et(ye(je(e.focusedValue),b),l,o):void 0,[e.focusedValue,b,l,o]),C=s.useMemo(()=>e.defaultFocusedValue?Et(ye(je(e.defaultFocusedValue),b),l,o):Et(y?Array.isArray(y)?y[0]:y:ye(Ul(x),b),l,o),[e.defaultFocusedValue,y,x,b,l,o]),[E,S]=_e(v,C,e.onFocusChange),B=()=>{switch(u){case"start":return Pr(E,a,n,l,o);case"end":return vo(E,a,n,l,o);default:return yo(E,a,n,l,o)}},[w,P]=s.useState(B),[K,T]=s.useState(e.autoFocus||!1),[I,H]=s.useState(a);Dx(a,I)||(H(a),P(B()));let D=s.useMemo(()=>{let A={...a};return A.days?A.days--:A.days=-1,w.add(A)},[w,a]),[M,G]=s.useState(b);if(!ia(b,M)){let A=ye(E,b);P(yo(A,a,n,l,o)),S(A),G(b)}sr(E,l,o)?S(Et(E,l,o)):E.compare(w)<0?P(vo(E,a,n,l,o)):E.compare(D)>0&&P(Pr(E,a,n,l,o));function O(A){A=Et(A,l,o),S(A)}function J(A){let F=Et(A,l,o),V=u0(F,w,d);if(!V)return null;let L=Array.isArray(g)?g[0]:g,te=ye(V,L?.calendar||new Ue);return L&&"hour"in L?L.set(te):te}function k(A){if(!e.isDisabled&&!e.isReadOnly){if(A===null){$(f==="multiple"?[]:null);return}if(Array.isArray(A))$(A.map(J).filter(Boolean));else{let F=J(A);F&&$(F)}}}let N=s.useMemo(()=>y?Array.isArray(y)?y.some(A=>d?.(A)||sr(A,l,o)):d?.(y)||sr(y,l,o):!1,[y,d,l,o]),z=e.isInvalid||e.validationState==="invalid"||N,ee=z?"invalid":null,Q=s.useMemo(()=>c==="visible"?a:xo(a),[c,a]);return{isDisabled:e.isDisabled??!1,isReadOnly:e.isReadOnly??!1,value:y,setValue:k,selectionMode:f,visibleDuration:a,visibleRange:{start:w,end:D},minValue:l,maxValue:o,focusedDate:E,timeZone:x,validationState:ee,isValueInvalid:z,setFocusedDate(A){O(A)},focusNextDay(){O(E.add({days:1}))},focusPreviousDay(){O(E.subtract({days:1}))},focusNextRow(){a.days?this.focusNextPage():(a.weeks||a.months||a.years)&&O(E.add({weeks:1}))},focusPreviousRow(){a.days?this.focusPreviousPage():(a.weeks||a.months||a.years)&&O(E.subtract({weeks:1}))},focusNextPage(){let A=w.add(Q);S(Et(E.add(Q),l,o)),P(Pr(_n(E,A,Q,n,l,o),Q,n))},focusPreviousPage(){let A=w.subtract(Q);S(Et(E.subtract(Q),l,o)),P(Pr(_n(E,A,Q,n,l,o),Q,n))},focusSectionStart(){a.days?O(w):a.weeks?O(Tn(E,n)):(a.months||a.years)&&O(Cr(E))},focusSectionEnd(){a.days?O(D):a.weeks?O(v6(E,n)):(a.months||a.years)&&O(la(E))},focusNextSection(A){if(!A&&!a.days){O(E.add(xo(a)));return}a.days?this.focusNextPage():a.weeks?O(E.add({months:1})):(a.months||a.years)&&O(E.add({years:1}))},focusPreviousSection(A){if(!A&&!a.days){O(E.subtract(xo(a)));return}a.days?this.focusPreviousPage():a.weeks?O(E.subtract({months:1})):(a.months||a.years)&&O(E.subtract({years:1}))},selectFocusedDate(){d&&d(E)||this.selectDate(E)},selectDate(A){if(!(e.isDisabled||e.isReadOnly))if(f==="multiple"&&A!=null){let F=J(A);if(!F)return;let V=[];Array.isArray(g)?V=g:g!=null&&(V=[g]);let L=V.findIndex(oe=>we(oe,F)),te=L>=0?V.slice(0,L).concat(V.slice(L+1)):[...V,F];$(te)}else k(A)},isFocused:K,setFocused:T,isInvalid(A){return sr(A,l,o)},isSelected(A){return!y||this.isCellDisabled(A)||this.isCellUnavailable(A)?!1:Array.isArray(y)?y.some(F=>we(F,A)):we(A,y)},isCellFocused(A){return K&&E&&we(A,E)},isCellDisabled(A){return e.isDisabled||A.compare(w)<0||A.compare(D)>0||this.isInvalid(A)},isCellUnavailable(A){return e.isDateUnavailable?e.isDateUnavailable(A):!1},isPreviousVisibleRangeInvalid(){let A=w.subtract({days:1});return we(A,w)||this.isInvalid(A)},isNextVisibleRangeInvalid(){let A=D.add({days:1});return we(A,D)||this.isInvalid(A)},getDatesInWeek(A,F=w){let V=F.add({weeks:A}),L=[],te=a.days&&a.days<7?a.days:7;if(te===7){V=Tn(V,n,h);let oe=Hl(V,n,h);for(let Ve=0;Ve<oe;Ve++)L.push(null)}for(;L.length<te;){L.push(V);let oe=V.add({days:1});if(we(V,oe))break;V=oe}for(;L.length<te;)L.push(null);return L},getWeeksInMonth(A=w){let F=p||D6(A,n,h);return(a.weeks||a.days)&&(F=a.weeks??0,a.days&&(F+=Math.ceil(a.days/7))),F}}}function xo(e){let t={...e};for(let r in e)t[r]=1;return t}function wx(e){let{value:t,defaultValue:r,onChange:n,createCalendar:i,locale:a,visibleDuration:l={months:1},minValue:o,maxValue:u,...d}=e,[c,f]=_e(t,r||null,n),[h,p]=s.useState(null),b="center";if(c&&c.start&&c.end){let H=yo(je(c.start),l,a,o,u).add(l).subtract({days:1});c.end.compare(H)>0&&(b="start")}let g=s.useMemo(()=>{let I=e.isDateUnavailable;if(I)return H=>I(H,h)},[e.isDateUnavailable,h]),$=s.useCallback(I=>{if(I&&g&&!e.allowsNonContiguousRanges){const H=f0(I,g,l,-1),D=f0(I,g,l,1);return{start:H,end:D}}else return null},[g,l,e.allowsNonContiguousRanges]),y=s.useMemo(()=>$(h),[$,h]),x=s.useMemo(()=>Yl(o,y?.start),[o,y]),v=s.useMemo(()=>Zl(u,y?.end),[u,y]),C=d0({...d,value:c&&c.start,createCalendar:i,locale:a,visibleDuration:l,minValue:x,maxValue:v,selectionAlignment:e.selectionAlignment||b,isDateUnavailable:g}),E=h?Co(h,C.focusedDate):c&&Co(c.start,c.end),S=I=>{if(e.isReadOnly)return;const H=Et(I,x,v),D=u0(H,C.visibleRange.start,g);if(D)if(!h)p(D);else{let M=Co(h,D);M&&f({start:c0(M.start,c?.start),end:c0(M.end,c?.end)}),p(null)}},[B,w]=s.useState(!1),P=s.useMemo(()=>!c||h?!1:g&&(g(c.start)||g(c.end))?!0:sr(c.start,o,u)||sr(c.end,o,u),[g,c,h,o,u]),K=e.isInvalid||e.validationState==="invalid"||P;return{...C,value:c,setValue:f,anchorDate:h,setAnchorDate:p,highlightedRange:E,validationState:K?"invalid":null,isValueInvalid:K,selectFocusedDate(){C.isCellUnavailable(C.focusedDate)||S(C.focusedDate)},commitSelection(){S(C.focusedDate)},selectDate:S,highlightDate(I){h&&C.setFocusedDate(I)},isSelected(I){return!!(E&&I.compare(E.start)>=0&&I.compare(E.end)<=0&&!C.isCellDisabled(I)&&!C.isCellUnavailable(I))},isInvalid(I){return C.isInvalid(I)||sr(I,y?.start,y?.end)},isDragging:B,setDragging:w,clearSelection(){p(null),f(null)},focusNearestAvailableDate(I){let H=$(I),D=G=>this.isInvalid(G)||sr(G,H?.start,H?.end),M=I.add({days:1});D(M)&&(M=I.subtract({days:1})),D(M)||(this.setFocusedDate(M),this.setFocused(!0))}}}function Co(e,t){return!e||!t?null:(t.compare(e)<0&&([e,t]=[t,e]),{start:je(e),end:je(t)})}function c0(e,t){return e=ye(e,t?.calendar||new Ue),t&&"hour"in t?t.set(e):e}function f0(e,t,r,n){let i=e.add({days:n}),a=e.subtract(r),l=e.add(r);for(;(n<0?i.compare(a)>=0:i.compare(l)<=0)&&!t(i);)i=i.add({days:n});if(t(i))return i.add({days:-n})}const h0={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 kr(e={}){let{style:t,isFocusable:r}=e,[n,i]=s.useState(!1),{focusWithinProps:a}=vr({isDisabled:!r,onFocusWithinChange:o=>i(o)}),l=s.useMemo(()=>n?t:t?{...h0,...t}:h0,[n]);return{visuallyHiddenProps:{...a,style:l}}}function ur(e){let{children:t,elementType:r="div",isFocusable:n,style:i,...a}=e,{visuallyHiddenProps:l}=kr(e);return s.createElement(r,W(a,l),t)}const Do=s.createContext(null),wo=s.createContext(null),Qr=s.createContext(null),en=s.createContext(null),Ex=s.forwardRef(function(t,r){[t,r]=me(t,r,Do);let{locale:n}=ge(),i=d0({...t,locale:n,createCalendar:t.createCalendar||$a}),{calendarProps:a,prevButtonProps:l,nextButtonProps:o,errorMessageProps:u,title:d}=px(t,i),c=se({...t,values:{state:i,isDisabled:t.isDisabled||!1,isInvalid:i.isValueInvalid},defaultClassName:"react-aria-Calendar"}),f=ne(t,{global:!0});return s.createElement(re.div,{...W(f,c,a),ref:r,slot:t.slot||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":i.isValueInvalid||void 0},s.createElement(Ee,{values:[[Ct,{slots:{previous:l,next:o}}],[ra,{"aria-hidden":!0,level:2,children:d}],[Qr,i],[Do,t],[Je,{slots:{errorMessage:u}}]]},s.createElement(ur,null,s.createElement("h2",null,a["aria-label"])),c.children,s.createElement(ur,null,s.createElement("button",{"aria-label":o["aria-label"],disabled:o.isDisabled,onClick:()=>i.focusNextPage(),tabIndex:-1}))))}),Sx=s.forwardRef(function(t,r){[t,r]=me(t,r,wo);let{locale:n}=ge(),i=wx({...t,locale:n,createCalendar:t.createCalendar||$a}),{calendarProps:a,prevButtonProps:l,nextButtonProps:o,errorMessageProps:u,title:d}=Cx(t,i,r),c=se({...t,values:{state:i,isDisabled:t.isDisabled||!1,isInvalid:i.isValueInvalid},defaultClassName:"react-aria-RangeCalendar"}),f=ne(t,{global:!0});return s.createElement(re.div,{...W(c,f,a),ref:r,slot:t.slot||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":i.isValueInvalid||void 0},s.createElement(Ee,{values:[[Ct,{slots:{previous:l,next:o}}],[ra,{"aria-hidden":!0,level:2,children:d}],[en,i],[wo,t],[Je,{slots:{errorMessage:u}}]]},s.createElement(ur,null,s.createElement("h2",null,a["aria-label"])),c.children,s.createElement(ur,null,s.createElement("button",{"aria-label":o["aria-label"],disabled:o.isDisabled,onClick:()=>i.focusNextPage(),tabIndex:-1}))))}),va=s.createContext(null),Px=s.forwardRef(function(t,r){let n=s.useContext(Qr),i=s.useContext(en),a=Re(Do),l=Re(wo),o=n??i,u=o.visibleRange.start;t.offset&&(u=u.add(t.offset));let d=a?.firstDayOfWeek??l?.firstDayOfWeek,{gridProps:c,headerProps:f,weekDays:h,weeksInMonth:p}=mx({startDate:u,endDate:la(u),weekdayStyle:t.weekdayStyle,firstDayOfWeek:d},o),b=ne(t,{global:!0});return s.createElement(va.Provider,{value:{headerProps:f,weekDays:h,startDate:u,weeksInMonth:p}},s.createElement(re.table,{render:t.render,...W(b,c),ref:r,style:t.style,cellPadding:0,className:t.className??"react-aria-CalendarGrid"},typeof t.children!="function"?t.children:s.createElement(s.Fragment,null,s.createElement(p0,null,g=>s.createElement(m0,null,g)),s.createElement(b0,null,t.children))))});function kx(e,t){let{children:r,style:n,className:i}=e,{headerProps:a,weekDays:l}=s.useContext(va),o=ne(e,{global:!0});return s.createElement(re.thead,{render:e.render,...W(o,a),ref:t,style:n,className:i??"react-aria-CalendarGridHeader"},s.createElement("tr",null,l.map((u,d)=>s.cloneElement(r(u),{key:d}))))}const p0=s.forwardRef(kx);function Bx(e,t){let{children:r,style:n,className:i}=e,a=ne(e,{global:!0});return s.createElement(re.th,{render:e.render,...a,ref:t,style:n,className:i||"react-aria-CalendarHeaderCell"},r)}const m0=s.forwardRef(Bx);function Nx(e,t){let{children:r,style:n,className:i}=e,a=s.useContext(Qr),l=s.useContext(en),o=a??l,{startDate:u,weeksInMonth:d}=s.useContext(va),c=ne(e,{global:!0});return s.createElement(re.tbody,{render:e.render,...c,ref:t,style:n,className:i??"react-aria-CalendarGridBody"},[...new Array(d).keys()].map(f=>s.createElement("tr",{key:f},o.getDatesInWeek(f,u).map((h,p)=>h?s.cloneElement(r(h),{key:p}):s.createElement("td",{key:p})))))}const b0=s.forwardRef(Nx),Ax=s.forwardRef(function({date:t,...r},n){let i=s.useContext(Qr),a=s.useContext(en),l=i??a,{startDate:o}=s.useContext(va)??{startDate:l.visibleRange.start},u=l.visibleDuration.days||l.visibleDuration.weeks?!1:!p6(o,t),d=$f(t,l.timeZone),c=s.useRef(null),{cellProps:f,buttonProps:h,...p}=$x({date:t,isOutsideMonth:u},l,c),{hoverProps:b,isHovered:g}=Fe({...r,isDisabled:p.isDisabled||p.isUnavailable}),{focusProps:$,isFocusVisible:y}=Ae();y&&=p.isFocused;let x=!1,v=!1;"highlightedRange"in l&&l.highlightedRange&&(x=we(t,l.highlightedRange.start),v=we(t,l.highlightedRange.end));let C=se({...r,defaultChildren:p.formattedDate,defaultClassName:"react-aria-CalendarCell",values:{date:t,isHovered:g,isOutsideMonth:u,isFocusVisible:y,isSelectionStart:x,isSelectionEnd:v,isToday:d,...p}}),E={"data-focused":p.isFocused||void 0,"data-hovered":g||void 0,"data-pressed":p.isPressed||void 0,"data-unavailable":p.isUnavailable||void 0,"data-disabled":p.isDisabled||void 0,"data-focus-visible":y||void 0,"data-outside-visible-range":p.isOutsideVisibleRange||void 0,"data-outside-month":u||void 0,"data-selected":p.isSelected||void 0,"data-selection-start":x||void 0,"data-selection-end":v||void 0,"data-invalid":p.isInvalid||void 0,"data-today":d||void 0},S=ne(r,{global:!0});return s.createElement("td",{...f,ref:n},s.createElement(re.div,{...W(S,h,$,b,E,C),ref:c}))}),Fx=s.forwardRef(function(t,r){let{offset:n,format:i,className:a="react-aria-CalendarHeading",...l}=t,o=s.useContext(Qr),u=s.useContext(en),c=xx({offset:n,format:i},o||u);return s.createElement(Ic,{...l,className:a,ref:r},c)}),jn=s.createContext(null),g0={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},$0={...g0,customError:!0,valid:!1},tn={isInvalid:!1,validationDetails:g0,validationErrors:[]},Tx=s.createContext({}),Hn="__reactAriaFormValidationState";function Br(e){if(e[Hn]){let{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:i,commitValidation:a}=e[Hn];return{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:i,commitValidation:a}}return Ix(e)}function Ix(e){let{isInvalid:t,validationState:r,name:n,value:i,builtinValidation:a,validate:l,validationBehavior:o="aria"}=e;r&&(t||=r==="invalid");let u=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:$0}:null,d=s.useMemo(()=>{if(!l||i==null)return null;let K=Mx(l,i);return y0(K)},[l,i]);a?.validationDetails.valid&&(a=void 0);let c=s.useContext(Tx),f=s.useMemo(()=>n?Array.isArray(n)?n.flatMap(K=>Eo(c[K])):Eo(c[n]):[],[c,n]),[h,p]=s.useState(c),[b,g]=s.useState(!1);c!==h&&(p(c),g(!1));let $=s.useMemo(()=>y0(b?[]:f),[b,f]),y=s.useRef(tn),[x,v]=s.useState(tn),C=s.useRef(tn),E=()=>{if(!S)return;B(!1);let K=d||a||y.current;So(K,C.current)||(C.current=K,v(K))},[S,B]=s.useState(!1);return s.useEffect(E),{realtimeValidation:u||$||d||a||tn,displayValidation:o==="native"?u||$||x:u||$||d||a||x,updateValidation(K){o==="aria"&&!So(x,K)?v(K):y.current=K},resetValidation(){let K=tn;So(K,C.current)||(C.current=K,v(K)),o==="native"&&B(!1),g(!0)},commitValidation(){o==="native"&&B(!0),g(!0)}}}function Eo(e){return e?Array.isArray(e)?e:[e]:[]}function Mx(e,t){if(typeof e=="function"){let r=e(t);if(r&&typeof r!="boolean")return Eo(r)}return[]}function y0(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:$0}:null}function So(e,t){return e===t?!0:!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((r,n)=>r===t.validationErrors[n])&&Object.entries(e.validationDetails).every(([r,n])=>t.validationDetails[r]===n)}const rn=s.createContext(null),Kx=new WeakMap;function xa(e){let{description:t,errorMessage:r,isInvalid:n,validationState:i}=e,{labelProps:a,fieldProps:l}=zl(e),o=mt([!!t,!!r,n,i]),u=mt([!!t,!!r,n,i]);return l=W(l,{"aria-describedby":[o,u,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:a,fieldProps:l,descriptionProps:{id:o},errorMessageProps:{id:u}}}function nn(e,t,r){let n=Se(i=>{r&&!i.defaultPrevented&&r(t)});s.useEffect(()=>{let i=e?.current?.form;return i?.addEventListener("reset",n),()=>{i?.removeEventListener("reset",n)}},[e])}function Un(e,t,r){let{validationBehavior:n,focus:i}=e;fe(()=>{if(n==="native"&&r?.current&&"setCustomValidity"in r.current&&!r.current.disabled){let d=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";r.current.setCustomValidity(d),r.current.hasAttribute("title")||(r.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(Lx(r.current))}});let a=s.useRef(!1),l=Se(()=>{a.current||t.resetValidation()}),o=Se(d=>{t.displayValidation.isInvalid||t.commitValidation();let c=r?.current?.form;!d.defaultPrevented&&r&&c&&zx(c)===r.current&&(i?i():r.current?.focus(),Hr("keyboard")),d.preventDefault()}),u=Se(()=>{t.commitValidation()});s.useEffect(()=>{let d=r?.current;if(!d)return;let c=d.form,f=c?.reset;return c&&(c.reset=()=>{a.current=!window.event||window.event.type==="message"&&X(window.event)instanceof MessagePort,f?.call(c),a.current=!1}),d.addEventListener("invalid",o),d.addEventListener("change",u),c?.addEventListener("reset",l),()=>{d.removeEventListener("invalid",o),d.removeEventListener("change",u),c?.removeEventListener("reset",l),c&&(c.reset=f)}},[r,n])}function Ox(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 Lx(e){return{isInvalid:!e.validity.valid,validationDetails:Ox(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function zx(e){for(let t=0;t<e.elements.length;t++){let r=e.elements[t];if(r.validity?.valid===!1)return r}return null}function Vx(e=!0){let[t,r]=s.useState(e),n=s.useRef(!1),i=s.useCallback(a=>{n.current=!0,r(!!a)},[]);return fe(()=>{n.current||r(!1)},[]),[i,t]}function Po(e=!0){let t=De(),[r,n]=Vx(e);return{id:n?t:void 0,ref:r}}function v0(e,t,r){let{isDisabled:n=!1,isReadOnly:i=!1,value:a,name:l,form:o,children:u,isRequired:d,validationBehavior:c="aria","aria-label":f,"aria-labelledby":h,"aria-describedby":p,onPressStart:b,onPressEnd:g,onPressChange:$,onPress:y,onPressUp:x,onClick:v}=e,C=Br({...e,value:t.isSelected}),{isInvalid:E,validationErrors:S,validationDetails:B}=C.displayValidation;Un(e,C,r);let w=z=>{z.stopPropagation(),t.setSelected(X(z).checked)},P=u!=null,K=f!=null||h!=null;!P&&!K&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:T,isPressed:I}=Xe({onPressStart:b,onPressEnd:g,onPressChange:$,onPress:y,onPressUp:x,onClick:v,isDisabled:n}),[H,D]=s.useState(!1),{pressProps:M}=Xe({onPressStart(z){if(z.pointerType==="keyboard"||z.pointerType==="virtual"){z.continuePropagation();return}b?.(z),$?.(!0),D(!0)},onPressEnd(z){if(z.pointerType==="keyboard"||z.pointerType==="virtual"){z.continuePropagation();return}g?.(z),$?.(!1),D(!1)},onPressUp(z){if(z.pointerType==="keyboard"||z.pointerType==="virtual"){z.continuePropagation();return}x?.(z)},onClick:v,onPress(z){if(z.pointerType==="keyboard"||z.pointerType==="virtual"){z.continuePropagation();return}y?.(z),t.toggle(),r.current?.focus();let{[Hn]:ee}=e,{commitValidation:Q}=ee||C;Q()},isDisabled:n||i}),{focusableProps:G}=Jt(e,r),O=W(T,G),J=ne(e,{labelable:!0});nn(r,t.defaultSelected,t.setSelected);let k=Po(),N=Po();return{labelProps:W(M,{onClick:z=>z.preventDefault()}),inputProps:W(J,{checked:t.isSelected,"aria-required":d&&c==="aria"||void 0,required:d&&c==="native","aria-invalid":E||e.validationState==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":i||void 0,"aria-describedby":[k.id,N.id,p].filter(Boolean).join(" ")||void 0,onChange:w,disabled:n,...a==null?{}:{value:a},name:l,form:o,type:"checkbox",...O}),descriptionProps:k,errorMessageProps:N,isSelected:t.isSelected,isPressed:I||H,isDisabled:n,isReadOnly:i,isInvalid:E||e.validationState==="invalid",validationErrors:S,validationDetails:B}}function x0(e,t,r){let{labelProps:n,inputProps:i,descriptionProps:a,errorMessageProps:l,isSelected:o,isPressed:u,isDisabled:d,isReadOnly:c,isInvalid:f,validationErrors:h,validationDetails:p}=v0(e,t,r),{isIndeterminate:b}=e;return s.useEffect(()=>{r.current&&(r.current.indeterminate=!!b)}),{labelProps:W(n,s.useMemo(()=>({onMouseDown:g=>g.preventDefault()}),[])),inputProps:i,descriptionProps:a,errorMessageProps:l,isSelected:o,isPressed:u,isDisabled:d,isReadOnly:c,isInvalid:f,validationErrors:h,validationDetails:p}}function ko(e={}){let{isReadOnly:t}=e,[r,n]=_e(e.isSelected,e.defaultSelected||!1,e.onChange),[i]=s.useState(r);function a(o){t||n(o)}function l(){t||n(!r)}return{isSelected:r,defaultSelected:e.defaultSelected??i,setSelected:a,toggle:l}}function _x(e,t,r){const n=ko({isReadOnly:e.isReadOnly||t.isReadOnly,isSelected:t.isSelected(e.value),defaultSelected:t.defaultValue.includes(e.value),onChange(g){g?t.addValue(e.value):t.removeValue(e.value),e.onChange&&e.onChange(g)}});let{name:i,form:a,descriptionId:l,errorMessageId:o,validationBehavior:u}=Kx.get(t);u=e.validationBehavior??u;let{realtimeValidation:d}=Br({...e,value:n.isSelected,name:void 0,validationBehavior:"aria"}),c=s.useRef(tn),f=()=>{t.setInvalid(e.value,d.isInvalid?d:c.current)};s.useEffect(f);let h=t.realtimeValidation.isInvalid?t.realtimeValidation:d,p=u==="native"?t.displayValidation:h,b=x0({...e,isReadOnly:e.isReadOnly||t.isReadOnly,isDisabled:e.isDisabled||t.isDisabled,name:e.name||i,form:e.form||a,isRequired:e.isRequired??t.isRequired,validationBehavior:u,[Hn]:{realtimeValidation:h,displayValidation:p,resetValidation:t.resetValidation,commitValidation:t.commitValidation,updateValidation(g){c.current=g,f()}}},n,r);return{...b,inputProps:{...b.inputProps,"aria-describedby":[b.inputProps["aria-describedby"],t.isInvalid?o:null,l].filter(Boolean).join(" ")||void 0}}}const Bo=s.createContext(null),C0=s.createContext(null),jx=s.createContext(null),D0=s.createContext(null);function Hx(e,t){let{validationBehavior:r}=Re(rn)||{},n=e.validationBehavior??r??"native",i=s.useContext(jx),a=Be(s.useMemo(()=>Gt(t,e.inputRef!==void 0?e.inputRef:null),[t,e.inputRef])),l={...Zt(e),children:typeof e.children=="function"?!0:e.children,value:e.value,validationBehavior:n};return[i?_x(l,i,a):x0(l,ko(e),a),a]}const Ux=s.forwardRef(function(t,r){let{inputRef:n=null,...i}=t;[t,r]=me(i,r,Bo);let[a,l]=Hx(t,n);return s.createElement(D0.Provider,{value:{...a,inputRef:l,defaultClassName:"react-aria-Checkbox",isIndeterminate:t.isIndeterminate,isRequired:t.isRequired}},s.createElement(Wx,{...t,ref:r}))}),Wx=s.forwardRef(function(t,r){let{labelProps:n,inputProps:i,isSelected:a,isDisabled:l,isReadOnly:o,isPressed:u,isInvalid:d,inputRef:c,defaultClassName:f,isIndeterminate:h,isRequired:p}=s.useContext(D0),{isFocused:b,isFocusVisible:g,focusProps:$}=Ae(),y=l||o,{hoverProps:x,isHovered:v}=Fe({...t,isDisabled:y}),C=se({...t,defaultClassName:f,values:{isSelected:a,isIndeterminate:h||!1,isPressed:u,isHovered:v,isFocused:b,isFocusVisible:g,isDisabled:l,isReadOnly:o,isInvalid:d,isRequired:p||!1}}),E=ne(t,{global:!0});return delete E.id,delete E.onClick,s.createElement(re.label,{...W(E,n,x,C),ref:r,slot:t.slot||void 0,"data-selected":a||void 0,"data-indeterminate":h||void 0,"data-pressed":u||void 0,"data-hovered":v||void 0,"data-focused":b||void 0,"data-focus-visible":g||void 0,"data-disabled":l||void 0,"data-readonly":o||void 0,"data-invalid":d||void 0,"data-required":p||void 0},s.createElement(ur,{elementType:"span"},s.createElement("input",{...W(i,$),ref:c})),C.children)});function Gx(e){let{onMoveStart:t,onMove:r,onMoveEnd:n}=e,i=s.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:a,removeGlobalListener:l}=Rr(),o=s.useCallback((h,p,b,g)=>{b===0&&g===0||(i.current.didMove||(i.current.didMove=!0,t?.({type:"movestart",pointerType:p,shiftKey:h.shiftKey,metaKey:h.metaKey,ctrlKey:h.ctrlKey,altKey:h.altKey})),r?.({type:"move",pointerType:p,deltaX:b,deltaY:g,shiftKey:h.shiftKey,metaKey:h.metaKey,ctrlKey:h.ctrlKey,altKey:h.altKey}))},[t,r,i]),u=Se(o),d=s.useCallback((h,p)=>{qi(),i.current.didMove&&n?.({type:"moveend",pointerType:p,shiftKey:h.shiftKey,metaKey:h.metaKey,ctrlKey:h.ctrlKey,altKey:h.altKey})},[n,i]),c=Se(d);return{moveProps:s.useMemo(()=>{let h={},p=()=>{Fl(),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})},$=v=>{if(v.button===0){c(v,"mouse");let C=Ce(X(v));l(C,"mousemove",g,!1),l(C,"mouseup",$,!1)}};h.onMouseDown=v=>{if(v.button===0){p(),v.stopPropagation(),v.preventDefault(),i.current.lastPosition={pageX:v.pageX,pageY:v.pageY};let C=Ce(X(v));a(C,"mousemove",g,!1),a(C,"mouseup",$,!1)}};let y=v=>{let C=[...v.changedTouches].findIndex(({identifier:E})=>E===i.current.id);if(C>=0){let{pageX:E,pageY:S}=v.changedTouches[C];u(v,"touch",E-(i.current.lastPosition?.pageX??0),S-(i.current.lastPosition?.pageY??0)),i.current.lastPosition={pageX:E,pageY:S}}},x=v=>{if([...v.changedTouches].findIndex(({identifier:E})=>E===i.current.id)>=0){c(v,"touch"),i.current.id=null;let E=Ce(X(v));l(E,"touchmove",y),l(E,"touchend",x),l(E,"touchcancel",x)}};h.onTouchStart=v=>{if(v.changedTouches.length===0||i.current.id!=null)return;let{pageX:C,pageY:E,identifier:S}=v.changedTouches[0];p(),v.stopPropagation(),v.preventDefault(),i.current.lastPosition={pageX:C,pageY:E},i.current.id=S;let B=Ce(X(v));a(B,"touchmove",y,!1),a(B,"touchend",x,!1),a(B,"touchcancel",x,!1)}}else{let g=y=>{if(y.pointerId===i.current.id){let x=y.pointerType||"mouse";u(y,x,y.pageX-(i.current.lastPosition?.pageX??0),y.pageY-(i.current.lastPosition?.pageY??0)),i.current.lastPosition={pageX:y.pageX,pageY:y.pageY}}},$=y=>{if(y.pointerId===i.current.id){let x=y.pointerType||"mouse";c(y,x),i.current.id=null;let v=Ce(X(y));l(v,"pointermove",g,!1),l(v,"pointerup",$,!1),l(v,"pointercancel",$,!1)}};h.onPointerDown=y=>{if(y.button===0&&i.current.id==null){p(),y.stopPropagation(),y.preventDefault(),i.current.lastPosition={pageX:y.pageX,pageY:y.pageY},i.current.id=y.pointerId;let x=Ce(X(y));a(x,"pointermove",g,!1),a(x,"pointerup",$,!1),a(x,"pointercancel",$,!1)}}}let b=(g,$,y)=>{p(),u(g,"keyboard",$,y),c(g,"keyboard")};return h.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}},h},[a,l,i])}}const an=s.createContext({}),Wn=s.forwardRef(function(t,r){[t,r]=me(t,r,an);let{isDisabled:n,isInvalid:i,isReadOnly:a,onHoverStart:l,onHoverChange:o,onHoverEnd:u,...d}=t;n??=!!t["aria-disabled"]&&t["aria-disabled"]!=="false",i??=!!t["aria-invalid"]&&t["aria-invalid"]!=="false";let{hoverProps:c,isHovered:f}=Fe({onHoverStart:l,onHoverChange:o,onHoverEnd:u,isDisabled:n}),{isFocused:h,isFocusVisible:p,focusProps:b}=Ae({within:!0}),g=se({...t,values:{isHovered:f,isFocusWithin:h,isFocusVisible:p,isDisabled:n,isInvalid:i},defaultClassName:"react-aria-Group"});return s.createElement(re.div,{...W(d,b,c),...g,ref:r,role:t.role??"group",slot:t.slot??void 0,"data-focus-within":h||void 0,"data-hovered":f||void 0,"data-focus-visible":p||void 0,"data-disabled":n||void 0,"data-invalid":i||void 0,"data-readonly":a||void 0},g.children)}),ln=s.createContext({});let Rx=e=>{let{onHoverStart:t,onHoverChange:r,onHoverEnd:n,...i}=e;return i};const Gn=Wr(function(t,r){[t,r]=me(t,r,ln);let{hoverProps:n,isHovered:i}=Fe({...t,isDisabled:t.disabled}),{isFocused:a,isFocusVisible:l,focusProps:o}=Ae({isTextInput:!0,autoFocus:t.autoFocus}),u=!!t["aria-invalid"]&&t["aria-invalid"]!=="false",d=se({...t,values:{isHovered:i,isFocused:a,isFocusVisible:l,isDisabled:t.disabled||!1,isInvalid:u},defaultClassName:"react-aria-Input"});return s.createElement(re.input,{...W(Rx(t),o,n),...d,ref:r,"data-focused":a||void 0,"data-disabled":t.disabled||void 0,"data-hovered":i||void 0,"data-focus-visible":l||void 0,"data-invalid":u||void 0})});function w0(e,t){let{inputElementType:r="input",isDisabled:n=!1,isRequired:i=!1,isReadOnly:a=!1,type:l="text",validationBehavior:o="aria"}=e,[u,d]=_e(e.value,e.defaultValue||"",e.onChange),{focusableProps:c}=Jt(e,t),f=Br({...e,value:u}),{isInvalid:h,validationErrors:p,validationDetails:b}=f.displayValidation,{labelProps:g,fieldProps:$,descriptionProps:y,errorMessageProps:x}=xa({...e,isInvalid:h,errorMessage:e.errorMessage||p}),v=ne(e,{labelable:!0});const C={type:l,pattern:e.pattern};let[E]=s.useState(u);return nn(t,e.defaultValue??E,d),Un(e,f,t),{labelProps:g,inputProps:W(v,r==="input"?C:void 0,{disabled:n,readOnly:a,required:i&&o==="native","aria-required":i&&o==="aria"||void 0,"aria-invalid":h||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:u,onChange:S=>d(X(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(s.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,...$}),descriptionProps:y,errorMessageProps:x,isInvalid:h,validationErrors:p,validationDetails:b}}var E0={};E0={Empty:"فارغ"};var S0={};S0={Empty:"Изпразни"};var P0={};P0={Empty:"Prázdné"};var k0={};k0={Empty:"Tom"};var B0={};B0={Empty:"Leer"};var N0={};N0={Empty:"Άδειο"};var A0={};A0={Empty:"Empty"};var F0={};F0={Empty:"Vacío"};var T0={};T0={Empty:"Tühjenda"};var I0={};I0={Empty:"Tyhjä"};var M0={};M0={Empty:"Vide"};var K0={};K0={Empty:"ריק"};var O0={};O0={Empty:"Prazno"};var L0={};L0={Empty:"Üres"};var z0={};z0={Empty:"Vuoto"};var V0={};V0={Empty:"空"};var _0={};_0={Empty:"비어 있음"};var j0={};j0={Empty:"Tuščias"};var H0={};H0={Empty:"Tukšs"};var U0={};U0={Empty:"Tom"};var W0={};W0={Empty:"Leeg"};var G0={};G0={Empty:"Pusty"};var R0={};R0={Empty:"Vazio"};var Z0={};Z0={Empty:"Vazio"};var Y0={};Y0={Empty:"Gol"};var q0={};q0={Empty:"Не заполнено"};var X0={};X0={Empty:"Prázdne"};var J0={};J0={Empty:"Prazen"};var Q0={};Q0={Empty:"Prazno"};var eh={};eh={Empty:"Tomt"};var th={};th={Empty:"Boş"};var rh={};rh={Empty:"Пусто"};var nh={};nh={Empty:"空"};var ih={};ih={Empty:"空白"};var ah={};ah={"ar-AE":E0,"bg-BG":S0,"cs-CZ":P0,"da-DK":k0,"de-DE":B0,"el-GR":N0,"en-US":A0,"es-ES":F0,"et-EE":T0,"fi-FI":I0,"fr-FR":M0,"he-IL":K0,"hr-HR":O0,"hu-HU":L0,"it-IT":z0,"ja-JP":V0,"ko-KR":_0,"lt-LT":j0,"lv-LV":H0,"nb-NO":U0,"nl-NL":W0,"pl-PL":G0,"pt-BR":R0,"pt-PT":Z0,"ro-RO":Y0,"ru-RU":q0,"sk-SK":X0,"sl-SI":J0,"sr-SP":Q0,"sv-SE":eh,"tr-TR":th,"uk-UA":rh,"zh-CN":nh,"zh-TW":ih};function Zx(e){return e&&e.__esModule?e.default:e}const lh=()=>{};function Yx(e){const t=s.useRef(void 0);let{value:r,textValue:n,minValue:i,maxValue:a,isDisabled:l,isReadOnly:o,isRequired:u,onIncrement:d,onIncrementPage:c,onDecrement:f,onDecrementPage:h,onDecrementToMin:p,onIncrementToMax:b}=e;const g=Ne(Zx(ah),"@react-aria/spinbutton");let $=s.useRef(!1);const y=s.useCallback(()=>{clearTimeout(t.current),$.current=!1},[]),x=Se(()=>{y()});s.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(h){h();return}if(f){f();return}return!1},ArrowDown:()=>{if(f){f();return}return!1},Home:()=>{if(p){p();return}return!1},End:()=>{if(b){b();return}return!1}},allowRepeats:!0}),C=s.useRef(!1),E=()=>{C.current=!0},S=()=>{C.current=!1},B=n===""?g.format("Empty"):(n||`${r}`).replace("-","−");s.useEffect(()=>{C.current&&(o6("assertive"),xt(B,"assertive"))},[B]);let w=s.useCallback(()=>{y()},[y]);const P=Se(d??lh),K=Se(f??lh),T=Se(()=>{(a===void 0||isNaN(a)||r===void 0||isNaN(r)||r<a)&&(P(),I(60))}),I=Se(Q=>{x(),$.current=!0,t.current=window.setTimeout(T,Q)}),H=Se(()=>{(i===void 0||isNaN(i)||r===void 0||isNaN(r)||r>i)&&(K(),D(60))}),D=Se(Q=>{x(),$.current=!0,t.current=window.setTimeout(H,Q)});let M=Q=>{Q.preventDefault()},{addGlobalListener:G,removeAllGlobalListeners:O}=Rr(),J=s.useRef(!1),[k,N]=s.useState(null);s.useEffect(()=>{k==="touch"?I(600):k?I(400):k||x()},[k]);let[z,ee]=s.useState(null);return s.useEffect(()=>{z==="touch"?D(600):z?D(400):z||x()},[z]),{spinButtonProps:{role:"spinbutton","aria-valuenow":r!==void 0&&!isNaN(r)?r:void 0,"aria-valuetext":B,"aria-valuemin":i,"aria-valuemax":a,"aria-disabled":l||void 0,"aria-readonly":o||void 0,"aria-required":u||void 0,...v,onFocus:E,onBlur:S},incrementButtonProps:{onPressStart:Q=>{y(),Q.pointerType!=="touch"?(d?.(),N("mouse")):(G(window,"pointercancel",w,{capture:!0}),J.current=!1,N("touch")),G(window,"contextmenu",M)},onPressUp:Q=>{y(),Q.pointerType==="touch"&&(J.current=!0),O(),N(null)},onPressEnd:Q=>{y(),Q.pointerType==="touch"&&!$.current&&J.current&&d?.(),J.current=!1,N(null)},onFocus:E,onBlur:S},decrementButtonProps:{onPressStart:Q=>{y(),Q.pointerType!=="touch"?(f?.(),ee("mouse")):(G(window,"pointercancel",w,{capture:!0}),J.current=!1,ee("touch"))},onPressUp:Q=>{y(),Q.pointerType==="touch"&&(J.current=!0),O(),ee(null)},onPressEnd:Q=>{y(),Q.pointerType==="touch"&&!$.current&&J.current&&f?.(),J.current=!1,ee(null)},onFocus:E,onBlur:S}}}var oh={};oh={colorSwatchPicker:"تغييرات الألوان",dropzoneLabel:"DropZone",selectPlaceholder:"حدد عنصرًا",tableResizer:"أداة تغيير الحجم"};var sh={};sh={colorSwatchPicker:"Цветови мостри",dropzoneLabel:"DropZone",selectPlaceholder:"Изберете предмет",tableResizer:"Преоразмерител"};var uh={};uh={colorSwatchPicker:"Vzorky barev",dropzoneLabel:"Místo pro přetažení",selectPlaceholder:"Vyberte položku",tableResizer:"Změna velikosti"};var dh={};dh={colorSwatchPicker:"Farveprøver",dropzoneLabel:"DropZone",selectPlaceholder:"Vælg et element",tableResizer:"Størrelsesændring"};var ch={};ch={colorSwatchPicker:"Farbfelder",dropzoneLabel:"Ablegebereich",selectPlaceholder:"Element wählen",tableResizer:"Größenanpassung"};var fh={};fh={colorSwatchPicker:"Χρωματικά δείγματα",dropzoneLabel:"DropZone",selectPlaceholder:"Επιλέξτε ένα αντικείμενο",tableResizer:"Αλλαγή μεγέθους"};var hh={};hh={selectPlaceholder:"Select an item",tableResizer:"Resizer",dropzoneLabel:"DropZone",colorSwatchPicker:"Color swatches"};var ph={};ph={colorSwatchPicker:"Muestras de colores",dropzoneLabel:"DropZone",selectPlaceholder:"Seleccionar un artículo",tableResizer:"Cambiador de tamaño"};var mh={};mh={colorSwatchPicker:"Värvinäidised",dropzoneLabel:"DropZone",selectPlaceholder:"Valige üksus",tableResizer:"Suuruse muutja"};var bh={};bh={colorSwatchPicker:"Värimallit",dropzoneLabel:"DropZone",selectPlaceholder:"Valitse kohde",tableResizer:"Koon muuttaja"};var gh={};gh={colorSwatchPicker:"Échantillons de couleurs",dropzoneLabel:"DropZone",selectPlaceholder:"Sélectionner un élément",tableResizer:"Redimensionneur"};var $h={};$h={colorSwatchPicker:"דוגמיות צבע",dropzoneLabel:"DropZone",selectPlaceholder:"בחר פריט",tableResizer:"שינוי גודל"};var yh={};yh={colorSwatchPicker:"Uzorci boja",dropzoneLabel:"Zona spuštanja",selectPlaceholder:"Odaberite stavku",tableResizer:"Promjena veličine"};var vh={};vh={colorSwatchPicker:"Színtárak",dropzoneLabel:"DropZone",selectPlaceholder:"Válasszon ki egy elemet",tableResizer:"Átméretező"};var xh={};xh={colorSwatchPicker:"Campioni di colore",dropzoneLabel:"Zona di rilascio",selectPlaceholder:"Seleziona un elemento",tableResizer:"Ridimensionamento"};var Ch={};Ch={colorSwatchPicker:"カラースウォッチ",dropzoneLabel:"ドロップゾーン",selectPlaceholder:"項目を選択",tableResizer:"サイズ変更ツール"};var Dh={};Dh={colorSwatchPicker:"색상 견본",dropzoneLabel:"드롭 영역",selectPlaceholder:"항목 선택",tableResizer:"크기 조정기"};var wh={};wh={colorSwatchPicker:"Spalvų pavyzdžiai",dropzoneLabel:"„DropZone“",selectPlaceholder:"Pasirinkite elementą",tableResizer:"Dydžio keitiklis"};var Eh={};Eh={colorSwatchPicker:"Krāsu paraugi",dropzoneLabel:"DropZone",selectPlaceholder:"Izvēlēties vienumu",tableResizer:"Izmēra mainītājs"};var Sh={};Sh={colorSwatchPicker:"Fargekart",dropzoneLabel:"Droppsone",selectPlaceholder:"Velg et element",tableResizer:"Størrelsesendrer"};var Ph={};Ph={colorSwatchPicker:"kleurstalen",dropzoneLabel:"DropZone",selectPlaceholder:"Selecteer een item",tableResizer:"Resizer"};var kh={};kh={colorSwatchPicker:"Próbki kolorów",dropzoneLabel:"Strefa upuszczania",selectPlaceholder:"Wybierz element",tableResizer:"Zmiana rozmiaru"};var Bh={};Bh={colorSwatchPicker:"Amostras de cores",dropzoneLabel:"DropZone",selectPlaceholder:"Selecione um item",tableResizer:"Redimensionador"};var Nh={};Nh={colorSwatchPicker:"Amostras de cores",dropzoneLabel:"DropZone",selectPlaceholder:"Selecione um item",tableResizer:"Redimensionador"};var Ah={};Ah={colorSwatchPicker:"Specimene de culoare",dropzoneLabel:"Zonă de plasare",selectPlaceholder:"Selectați un element",tableResizer:"Instrument de redimensionare"};var Fh={};Fh={colorSwatchPicker:"Цветовые образцы",dropzoneLabel:"DropZone",selectPlaceholder:"Выберите элемент",tableResizer:"Средство изменения размера"};var Th={};Th={colorSwatchPicker:"Vzorkovníky farieb",dropzoneLabel:"DropZone",selectPlaceholder:"Vyberte položku",tableResizer:"Nástroj na zmenu veľkosti"};var Ih={};Ih={colorSwatchPicker:"Barvne palete",dropzoneLabel:"DropZone",selectPlaceholder:"Izberite element",tableResizer:"Spreminjanje velikosti"};var Mh={};Mh={colorSwatchPicker:"Uzorci boje",dropzoneLabel:"DropZone",selectPlaceholder:"Izaberite stavku",tableResizer:"Promena veličine"};var Kh={};Kh={colorSwatchPicker:"Färgrutor",dropzoneLabel:"DropZone",selectPlaceholder:"Välj en artikel",tableResizer:"Storleksändrare"};var Oh={};Oh={colorSwatchPicker:"Renk örnekleri",dropzoneLabel:"Bırakma Bölgesi",selectPlaceholder:"Bir öğe seçin",tableResizer:"Yeniden boyutlandırıcı"};var Lh={};Lh={colorSwatchPicker:"Зразки кольорів",dropzoneLabel:"DropZone",selectPlaceholder:"Виберіть елемент",tableResizer:"Засіб змінення розміру"};var zh={};zh={colorSwatchPicker:"颜色色板",dropzoneLabel:"放置区域",selectPlaceholder:"选择一个项目",tableResizer:"尺寸调整器"};var Vh={};Vh={colorSwatchPicker:"色票",dropzoneLabel:"放置區",selectPlaceholder:"選取項目",tableResizer:"大小調整器"};var No={};No={"ar-AE":oh,"bg-BG":sh,"cs-CZ":uh,"da-DK":dh,"de-DE":ch,"el-GR":fh,"en-US":hh,"es-ES":ph,"et-EE":mh,"fi-FI":bh,"fr-FR":gh,"he-IL":$h,"hr-HR":yh,"hu-HU":vh,"it-IT":xh,"ja-JP":Ch,"ko-KR":Dh,"lt-LT":wh,"lv-LV":Eh,"nb-NO":Sh,"nl-NL":Ph,"pl-PL":kh,"pt-BR":Bh,"pt-PT":Nh,"ro-RO":Ah,"ru-RU":Fh,"sk-SK":Th,"sl-SI":Ih,"sr-SP":Mh,"sv-SE":Kh,"tr-TR":Oh,"uk-UA":Lh,"zh-CN":zh,"zh-TW":Vh};const dt=s.createContext({}),Ao=s.createContext(null),qx=s.forwardRef(function(t,r){let{render:n}=s.useContext(Ao);return s.createElement(s.Fragment,null,n(t,r))});function Ca(e,t){let r=e?.renderDropIndicator,n=e?.isVirtualDragging?.(),i=s.useCallback(a=>{if(n||t?.isDropTarget(a))return r?r(a):s.createElement(qx,{target:a})},[t?.target,n,r]);return e?.useDropIndicator?i:void 0}function _h(e,t,r){let n=e.focusedKey,i=null;if(t?.isVirtualDragging?.()&&r?.target?.type==="item"&&(i=r.target.key,r.target.dropPosition==="after")){let a=r.collection.getKeyAfter(i),l=null;if(a!=null){let o=r.collection.getItem(i)?.level??0;for(;a!=null;){let u=r.collection.getItem(a);if(!u)break;if(u.type!=="item"){a=r.collection.getKeyAfter(a);continue}if((u.level??0)<=o)break;l=a,a=r.collection.getKeyAfter(a)}}i=a??l??i}return s.useMemo(()=>new Set([n,i].filter(a=>a!=null)),[n,i])}const Fo=s.createContext({}),Xx=vt(Cl,function(t,r){return[t,r]=me(t,r,Fo),s.createElement(re.header,{className:"react-aria-Header",...t,ref:r},t.children)}),jh=s.createContext(null);function Rn(e){let t=s.useRef({});return s.createElement(jh.Provider,{value:t},e.children)}const Jx=s.forwardRef(function(t,r){let{name:n,isVisible:i=!0,children:a,className:l,style:o,render:u,...d}=t,[c,f]=s.useState(i?"visible":"hidden"),h=s.useContext(jh);if(!h)throw new Error("<SharedElement> must be rendered inside a <SharedElementTransition>");i&&c==="hidden"&&f("visible"),r=Be(r),fe(()=>{let b=r.current,g=h.current,$=g[n],y=null;if(b&&i&&$){f("visible");let x=b.getAnimations(),v=$.style.map(([C,E])=>{let S=b.style[C];if(C==="translate"){let B=$.rect,w=b.getBoundingClientRect(),P=B.left-w?.left,K=B.top-w?.top;b.style.translate=`${P}px ${K}px`}else b.style[C]=E;return[C,S]});for(let C of b.getAnimations())x.includes(C)||C.cancel();y=requestAnimationFrame(()=>{y=null;for(let[C,E]of v)b.style[C]=E}),delete g[n]}else b&&i&&!$?(queueMicrotask(()=>Ut.flushSync(()=>f("entering"))),y=requestAnimationFrame(()=>{y=null,f("visible")})):b&&!i&&queueMicrotask(()=>{g[n]?(delete g[n],Ut.flushSync(()=>f("exiting")),Promise.all(b.getAnimations().map(x=>x.finished)).then(()=>f("hidden")).catch(()=>{})):f("hidden")});return()=>{if(y!=null&&cancelAnimationFrame(y),b&&b.isConnected&&!b.hasAttribute("data-exiting")){let x=window.getComputedStyle(b);if(x.transitionProperty!=="none"){let v=x.transitionProperty.split(/\s*,\s*/);g[n]={rect:b.getBoundingClientRect(),style:v.map(C=>[C,x[C]])}}}}},[r,h,n,i]);let p=se({children:a,className:l,style:o,render:u,values:{isEntering:c==="entering",isExiting:c==="exiting"}});return c==="hidden"?null:s.createElement(re.div,{...d,...p,ref:r,"data-entering":c==="entering"||void 0,"data-exiting":c==="exiting"||void 0})}),Zn=s.createContext({isSelected:!1}),Qx=s.forwardRef(function(t,r){[t,r]=me(t,r,Zn);let{isSelected:n,...i}=t;return s.createElement(Jx,{...i,ref:r,className:t.className||"react-aria-SelectionIndicator",name:"SelectionIndicator",isVisible:n})});function e9(e){let t=ne(e,{labelable:!0}),r;return e.orientation==="vertical"&&(r="vertical"),e.elementType!=="hr"?{separatorProps:{...t,role:"separator","aria-orientation":r}}:{separatorProps:t}}const To=s.createContext({}),ku=class ku extends nt{filter(t,r){let n=r.getItem(this.prevKey);if(n&&n.type!=="separator"){let i=this.clone();return r.addDescendants(i,t),i}return null}};ku.type="separator";let Io=ku;const Hh=vt(Io,function(t,r){[t,r]=me(t,r,To);let{elementType:n,orientation:i,style:a,className:l,slot:o,...u}=t,d=n||"hr";d==="hr"&&i==="vertical"&&(d="div");let c=re[d],{separatorProps:f}=e9({...u,elementType:n,orientation:i}),h=ne(t,{global:!0});return s.createElement(c,{render:t.render,...W(h,f),style:a,className:l??"react-aria-Separator",ref:r,slot:o||void 0})}),Da=new WeakMap;function t9(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function Uh(e,t){let r=Da.get(e);if(!r)throw new Error("Unknown list");return`${r.id}-option-${t9(t)}`}class r9{constructor(t,r,n,i){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=l=>{if(l.nodeType===Node.ELEMENT_NODE){const o=l.shadowRoot;if(o){const u=this._doc.createTreeWalker(o,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=t,this.root=r,this.filter=i??null,this.whatToShow=n??NodeFilter.SHOW_ALL,this._currentNode=r,this._walkerStack.unshift(t.createTreeWalker(r,n,this._acceptNode));const a=r.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(!le(this.root,t))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const r=[];let n=t,i=t;for(this._currentNode=t;n&&n!==this.root;)if(n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const l=n,o=this._doc.createTreeWalker(l,this.whatToShow,{acceptNode:this._acceptNode});r.push(o),o.currentNode=i,this._currentSetFor.add(o),n=i=l.host}else n=n.parentNode;const a=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});r.push(a),a.currentNode=i,this._currentSetFor.add(a),this._walkerStack=r}get doc(){return this._doc}firstChild(){let t=this.currentNode,r=this.nextNode();return le(t,r)?(r&&(this.currentNode=r),r):(this.currentNode=t,null)}lastChild(){let r=this._walkerStack[0].lastChild();return r&&(this.currentNode=r),r}nextNode(){const t=this._walkerStack[0].nextNode();if(t){if(t.shadowRoot){let n;if(typeof this.filter=="function"?n=this.filter(t):this.filter?.acceptNode&&(n=this.filter.acceptNode(t)),n===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 r=this.nextNode();return r&&(this.currentNode=r),r}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 n=this.previousNode();return n&&(this.currentNode=n),n}else return null;return null}const r=t.previousNode();if(r){if(r.shadowRoot){let i;if(typeof this.filter=="function"?i=this.filter(r):this.filter?.acceptNode&&(i=this.filter.acceptNode(r)),i===NodeFilter.FILTER_ACCEPT)return r&&(this.currentNode=r),r;let a=this.lastChild();return a&&(this.currentNode=a),a}return r&&(this.currentNode=r),r}else if(this._walkerStack.length>1){this._walkerStack.shift();let n=this.previousNode();return n&&(this.currentNode=n),n}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}}function Wh(e,t,r,n){return bt()?new r9(e,t,r,n):e.createTreeWalker(t,r,n)}const Gh=s.createContext(null),Mo="react-aria-focus-scope-restore";let ve=null;function wa(e){let{children:t,contain:r,restoreFocus:n,autoFocus:i}=e,a=s.useRef(null),l=s.useRef(null),o=s.useRef([]),{parentNode:u}=s.useContext(Gh)||{},d=s.useMemo(()=>new zo({scopeRef:o}),[o]);fe(()=>{let h=u||Ie.root;if(Ie.getTreeNode(h.scopeRef)&&ve&&!Ea(ve,h.scopeRef)){let p=Ie.getTreeNode(ve);p&&(h=p)}h.addChild(d),Ie.addNode(d)},[d,u]),fe(()=>{let h=Ie.getTreeNode(o);h&&(h.contain=!!r)},[r]),fe(()=>{let h=a.current?.nextSibling,p=[],b=g=>g.stopPropagation();for(;h&&h!==l.current;)p.push(h),h.addEventListener(Mo,b),h=h.nextSibling;return o.current=p,()=>{for(let g of p)g.removeEventListener(Mo,b)}},[t]),u9(o,n,r),l9(o,r),d9(o,n,r),s9(o,i),s.useEffect(()=>{const h=he(de(o.current?o.current[0]:void 0));let p=null;if(at(h,o.current)){for(let b of Ie.traverse())b.scopeRef&&at(h,b.scopeRef.current)&&(p=b);p===Ie.getTreeNode(o)&&(ve=p.scopeRef)}},[o]),fe(()=>()=>{let h=Ie.getTreeNode(o)?.parent?.scopeRef??null;(o===ve||Ea(o,ve))&&(!h||Ie.getTreeNode(h))&&(ve=h),Ie.removeTreeNode(o)},[o]);let c=s.useMemo(()=>n9(o),[]),f=s.useMemo(()=>({focusManager:c,parentNode:d}),[d,c]);return s.createElement(Gh.Provider,{value:f},s.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:a}),t,s.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:l}))}function n9(e){return{focusNext(t={}){let r=e.current,{from:n,tabbable:i,wrap:a,accept:l}=t,o=n||he(de(r[0]??void 0)),u=r[0].previousElementSibling,d=Nr(r),c=Te(d,{tabbable:i,accept:l},r);c.currentNode=at(o,r)?o:u;let f=c.nextNode();return!f&&a&&(c.currentNode=u,f=c.nextNode()),f&&We(f,!0),f},focusPrevious(t={}){let r=e.current,{from:n,tabbable:i,wrap:a,accept:l}=t,o=n||he(de(r[0]??void 0)),u=r[r.length-1].nextElementSibling,d=Nr(r),c=Te(d,{tabbable:i,accept:l},r);c.currentNode=at(o,r)?o:u;let f=c.previousNode();return!f&&a&&(c.currentNode=u,f=c.previousNode()),f&&We(f,!0),f},focusFirst(t={}){let r=e.current,{tabbable:n,accept:i}=t,a=Nr(r),l=Te(a,{tabbable:n,accept:i},r);l.currentNode=r[0].previousElementSibling;let o=l.nextNode();return o&&We(o,!0),o},focusLast(t={}){let r=e.current,{tabbable:n,accept:i}=t,a=Nr(r),l=Te(a,{tabbable:n,accept:i},r);l.currentNode=r[r.length-1].nextElementSibling;let o=l.previousNode();return o&&We(o,!0),o}}}function Nr(e){return e[0].parentElement}function Yn(e){let t=Ie.getTreeNode(ve);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function i9(e){if(!e.form)return Array.from(de(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter(n=>!n.form);const t=e.form.elements.namedItem(e.name);let r=Ce(e);return t instanceof r.RadioNodeList?Array.from(t).filter(n=>n instanceof r.HTMLInputElement):t instanceof r.HTMLInputElement?[t]:[]}function a9(e){if(e.checked)return!0;const t=i9(e);return t.length>0&&!t.some(r=>r.checked)}function l9(e,t){let r=s.useRef(void 0),n=s.useRef(void 0);fe(()=>{let i=e.current;if(!t){n.current&&(cancelAnimationFrame(n.current),n.current=void 0);return}const a=de(i?i[0]:void 0);let l=d=>{if(d.key!=="Tab"||d.altKey||d.ctrlKey||d.metaKey||!Yn(e)||d.isComposing)return;let c=he(a),f=e.current;if(!f||!at(c,f))return;let h=Nr(f),p=Te(h,{tabbable:!0},f);if(!c)return;p.currentNode=c;let b=d.shiftKey?p.previousNode():p.nextNode();b||(p.currentNode=d.shiftKey?f[f.length-1].nextElementSibling:f[0].previousElementSibling,b=d.shiftKey?p.previousNode():p.nextNode()),d.preventDefault(),b&&(We(b,!0),b instanceof Ce(b).HTMLInputElement&&b.select())},o=d=>{(!ve||Ea(ve,e))&&at(X(d),e.current)?(ve=e,r.current=X(d)):Yn(e)&&!dr(X(d),e)?r.current?We(r.current):ve&&ve.current&&Ko(ve.current):Yn(e)&&(r.current=X(d))},u=d=>{n.current&&cancelAnimationFrame(n.current),n.current=requestAnimationFrame(()=>{let c=jr(),f=(c==="virtual"||c===null)&&_r()&&$l(),h=he(a);if(!f&&h&&Yn(e)&&!dr(h,e)){ve=e;let p=X(d);p&&p.isConnected?(r.current=p,We(r.current)):ve.current&&Ko(ve.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",u,!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",u,!1))}},[e,t]),fe(()=>()=>{n.current&&cancelAnimationFrame(n.current)},[n])}function Rh(e){return dr(e)}function at(e,t){return!e||!t?!1:t.some(r=>le(r,e))}function dr(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of Ie.traverse(Ie.getTreeNode(t)))if(r&&at(e,r.current))return!0;return!1}function o9(e){return dr(e,ve)}function Ea(e,t){let r=Ie.getTreeNode(t)?.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function We(e,t=!1){if(e!=null&&!t)try{Oe(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function Zh(e,t=!0){let r=e[0].previousElementSibling,n=Nr(e),i=Te(n,{tabbable:t},e);i.currentNode=r;let a=i.nextNode();return t&&!a&&(n=Nr(e),i=Te(n,{tabbable:!1},e),i.currentNode=r,a=i.nextNode()),a}function Ko(e,t=!0){We(Zh(e,t))}function s9(e,t){const r=s.useRef(t);s.useEffect(()=>{if(r.current){ve=e;const n=de(e.current?e.current[0]:void 0);!at(he(n),ve.current)&&e.current&&Ko(e.current)}r.current=!1},[e])}function u9(e,t,r){fe(()=>{if(t||r)return;let n=e.current;const i=de(n?n[0]:void 0);let a=l=>{let o=X(l);at(o,e.current)?ve=e:Rh(o)||(ve=null)};return i.addEventListener("focusin",a,!1),n?.forEach(l=>l.addEventListener("focusin",a,!1)),()=>{i.removeEventListener("focusin",a,!1),n?.forEach(l=>l.removeEventListener("focusin",a,!1))}},[e,t,r])}function Yh(e){let t=Ie.getTreeNode(ve);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return t?.scopeRef===e}function d9(e,t,r){const n=s.useRef(typeof document<"u"?he(de(e.current?e.current[0]:void 0)):null);fe(()=>{let i=e.current;const a=de(i?i[0]:void 0);if(!t||r)return;let l=()=>{(!ve||Ea(ve,e))&&at(he(a),e.current)&&(ve=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,r]),fe(()=>{const i=de(e.current?e.current[0]:void 0);if(!t)return;let a=l=>{if(l.key!=="Tab"||l.altKey||l.ctrlKey||l.metaKey||!Yn(e)||l.isComposing)return;let o=i.activeElement;if(!dr(o,e)||!Yh(e))return;let u=Ie.getTreeNode(e);if(!u)return;let d=u.nodeToRestore,c=Te(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,u.nodeToRestore=void 0),(!f||!dr(f,e))&&d){c.currentNode=d;do f=l.shiftKey?c.previousNode():c.nextNode();while(dr(f,e));l.preventDefault(),l.stopPropagation(),f?We(f,!0):Rh(d)?We(d,!0):o.blur()}};return r||i.addEventListener("keydown",a,!0),()=>{r||i.removeEventListener("keydown",a,!0)}},[e,t,r]),fe(()=>{const i=de(e.current?e.current[0]:void 0);if(!t)return;let a=Ie.getTreeNode(e);if(a)return a.nodeToRestore=n.current??void 0,()=>{let l=Ie.getTreeNode(e);if(!l)return;let o=l.nodeToRestore,u=he(i);if(t&&o&&(u&&dr(u,e)||u===i.body&&Yh(e))){let d=Ie.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let c=d.getTreeNode(e);for(;c;){if(c.nodeToRestore&&c.nodeToRestore.isConnected){qh(c.nodeToRestore);return}c=c.parent}for(c=d.getTreeNode(e);c;){if(c.scopeRef&&c.scopeRef.current&&Ie.getTreeNode(c.scopeRef)){let f=Zh(c.scopeRef.current,!0);qh(f);return}c=c.parent}}})}}},[e,t])}function qh(e){e.dispatchEvent(new CustomEvent(Mo,{bubbles:!0,cancelable:!0}))&&We(e)}function Te(e,t,r){let n=t?.tabbable?ml:Gu,i=e?.nodeType===Node.ELEMENT_NODE?e:null,a=de(i),l=Wh(a,e||a,NodeFilter.SHOW_ELEMENT,{acceptNode(o){return le(t?.from,o)||t?.tabbable&&o.tagName==="INPUT"&&o.getAttribute("type")==="radio"&&(!a9(o)||l.currentNode.tagName==="INPUT"&&l.currentNode.type==="radio"&&l.currentNode.name===o.name)?NodeFilter.FILTER_REJECT:n(o)&&(!r||at(o,r))&&(!t?.accept||t.accept(o))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(l.currentNode=t.from),l}function Xh(e,t={}){return{focusNext(r={}){let n=e.current;if(!n)return null;let{from:i,tabbable:a=t.tabbable,wrap:l=t.wrap,accept:o=t.accept}=r,u=i||he(de(n)),d=Te(n,{tabbable:a,accept:o});le(n,u)&&(d.currentNode=u);let c=d.nextNode();return!c&&l&&(d.currentNode=n,c=d.nextNode()),c&&We(c,!0),c},focusPrevious(r=t){let n=e.current;if(!n)return null;let{from:i,tabbable:a=t.tabbable,wrap:l=t.wrap,accept:o=t.accept}=r,u=i||he(de(n)),d=Te(n,{tabbable:a,accept:o});if(le(n,u))d.currentNode=u;else{let f=Oo(d);return f&&We(f,!0),f??null}let c=d.previousNode();if(!c&&l){d.currentNode=n;let f=Oo(d);if(!f)return null;c=f}return c&&We(c,!0),c??null},focusFirst(r=t){let n=e.current;if(!n)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=r,o=Te(n,{tabbable:i,accept:a}).nextNode();return o&&We(o,!0),o},focusLast(r=t){let n=e.current;if(!n)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=r,l=Te(n,{tabbable:i,accept:a}),o=Oo(l);return o&&We(o,!0),o??null}}}function Oo(e){let t,r;do r=e.lastChild(),r&&(t=r);while(r);return t}class Lo{constructor(){this.fastMap=new Map,this.root=new zo({scopeRef:null}),this.fastMap.set(null,this.root)}get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,r,n){let i=this.fastMap.get(r??null);if(!i)return;let a=new zo({scopeRef:t});i.addChild(a),a.parent=i,this.fastMap.set(t,a),n&&(a.nodeToRestore=n)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let r=this.fastMap.get(t);if(!r)return;let n=r.parent;for(let a of this.traverse())a!==r&&r.nodeToRestore&&a.nodeToRestore&&r.scopeRef&&r.scopeRef.current&&at(a.nodeToRestore,r.scopeRef.current)&&(a.nodeToRestore=r.nodeToRestore);let i=r.children;n&&(n.removeChild(r),i.size>0&&i.forEach(a=>n&&n.addChild(a))),this.fastMap.delete(r.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let r of t.children)yield*this.traverse(r)}clone(){let t=new Lo;for(let r of this.traverse())t.addTreeNode(r.scopeRef,r.parent?.scopeRef??null,r.nodeToRestore);return t}}class zo{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 Ie=new Lo;function Vo(e){return Mi()?e.altKey:e.ctrlKey}function Ar(e,t){let r=`[data-key="${CSS.escape(String(t))}"]`,n=e.current?.dataset.collection;return n&&(r=`[data-collection="${CSS.escape(n)}"]${r}`),e.current?.querySelector(r)}const Jh=new WeakMap;function c9(e){let t=De();return Jh.set(e,t),t}function f9(e){return Jh.get(e)}const Qh=1e3;function e4(e){let{keyboardDelegate:t,selectionManager:r,onTypeSelect:n}=e,i=s.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 u=t.getKeyForSearch(i.current.search,r.focusedKey);u==null&&(u=t.getKeyForSearch(i.current.search)),u!=null&&(r.setFocusedKey(u),n&&n(u))}clearTimeout(i.current.timeout),i.current.timeout=setTimeout(()=>{i.current.search=""},Qh)}},l=o=>{let u=h9(o.key);if(!(!u||o.ctrlKey||o.metaKey||o.altKey||!le(o.currentTarget,X(o))||i.current.search.length===0&&u===" ")){if(i.current.search+=u,t.getKeyForSearch!=null){let d=t.getKeyForSearch(i.current.search,r.focusedKey);if(d==null&&(d=t.getKeyForSearch(i.current.search)),d!=null)r.setFocusedKey(d),n&&n(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=""},Qh)}};return s.useEffect(()=>{let o=i.current.timeout;return()=>{clearTimeout(o)}},[i]),{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?a:void 0,onKeyDown:t.getKeyForSearch?l:void 0}}}function h9(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function t4(e,t){const r=s.useRef(!0),n=s.useRef(null);fe(()=>(r.current=!0,()=>{r.current=!1}),[]),fe(()=>{r.current?r.current=!1:(!n.current||t.some((i,a)=>!Object.is(i,n[a])))&&e(),n.current=t},t)}function Sa(e){let{selectionManager:t,keyboardDelegate:r,ref:n,autoFocus:i=!1,shouldFocusWrap:a=!1,disallowEmptySelection:l=!1,disallowSelectAll:o=!1,escapeKeyBehavior:u="clearSelection",selectOnFocus:d=t.selectionBehavior==="replace",disallowTypeAhead:c=!1,shouldUseVirtualFocus:f,allowsTabNavigation:h=!1,scrollRef:p=n,linkBehavior:b="action",UNSTABLE_focusOnEntry:g}=e,{direction:$}=ge(),y=pr();const x=(j,R,pe)=>{if(R!=null){if(t.isLink(R)&&b==="selection"&&d&&!Vo(j)){Ut.flushSync(()=>{t.setFocusedKey(R,pe)});let be=Ar(n,R),At=t.getItemProps(R);if(be){y.open(be,j,At.href,At.routerOptions);return}return!1}if(t.setFocusedKey(R,pe),t.isLink(R)&&b==="override")return!1;if(j.shiftKey&&t.selectionMode==="multiple"){t.extendSelection(R);return}else if(d&&!Vo(j)){t.replaceSelection(R);return}}return!1};let v=j=>{if(r.getKeyBelow){let R=t.focusedKey!=null?r.getKeyBelow?.(t.focusedKey):r.getFirstKey?.();if(R==null&&a&&(R=r.getFirstKey?.(t.focusedKey)),R!=null){x(j,R);return}}return!1},C=j=>{if(r.getKeyAbove){let R=t.focusedKey!=null?r.getKeyAbove?.(t.focusedKey):r.getLastKey?.();if(R==null&&a&&(R=r.getLastKey?.(t.focusedKey)),R!=null){x(j,R);return}}return!1},E=j=>{if(r.getFirstKey){if(t.focusedKey===null&&j.shiftKey)return!1;let R=r.getFirstKey(t.focusedKey,Dn(j));if(t.setFocusedKey(R),R!=null){if(Dn(j)&&j.shiftKey&&t.selectionMode==="multiple"){t.extendSelection(R);return}else if(d){t.replaceSelection(R);return}}}return!1},S=j=>{if(r.getKeyLeftOf){let R=t.focusedKey!=null?r.getKeyLeftOf?.(t.focusedKey):r.getFirstKey?.();if(R==null&&a&&(R=$==="rtl"?r.getFirstKey?.(t.focusedKey):r.getLastKey?.(t.focusedKey)),R!=null){x(j,R,$==="rtl"?"first":"last");return}}return!1},B=j=>{if(r.getKeyRightOf){let R=t.focusedKey!=null?r.getKeyRightOf?.(t.focusedKey):r.getFirstKey?.();if(R==null&&a&&(R=$==="rtl"?r.getLastKey?.(t.focusedKey):r.getFirstKey?.(t.focusedKey)),R!=null){x(j,R,$==="rtl"?"last":"first");return}}return!1},w=j=>{if(r.getLastKey){if(t.focusedKey===null&&j.shiftKey)return!1;let R=r.getLastKey(t.focusedKey,Dn(j));if(t.setFocusedKey(R),R!=null){if(Dn(j)&&j.shiftKey&&t.selectionMode==="multiple"){t.extendSelection(R);return}else if(d){t.replaceSelection(R);return}}}return!1},P=j=>{if(r.getKeyPageBelow&&t.focusedKey!=null){let R=r.getKeyPageBelow(t.focusedKey);if(R!=null)return x(j,R)}return!1},K=j=>{if(r.getKeyPageAbove&&t.focusedKey!=null){let R=r.getKeyPageAbove(t.focusedKey);if(R!=null)return x(j,R)}return!1},T=()=>{if(t.selectionMode==="multiple"&&o!==!0){t.selectAll();return}return!1},I=()=>{if(u==="clearSelection"&&!l&&t.selectedKeys.size!==0){t.clearSelection();return}return!1},H=()=>{if(!h&&n.current){let j=Te(n.current,{tabbable:!0}),R,pe;do pe=j.lastChild(),pe&&(R=pe);while(pe);let be=he();R&&(!Yt(R)||be&&!ml(be))&&et(R)}return{shouldContinuePropagation:!0,shouldPreventDefault:!1}},D=()=>(!h&&n.current&&n.current.focus(),{shouldContinuePropagation:!0,shouldPreventDefault:!1}),M=(j,R)=>({[tt()?j+"+Shift+Alt":j+"+Shift+Control"]:R,[j+"+Shift"]:R,[tt()?j+"+Alt":j+"+Control"]:R,[j]:R}),{keyboardProps:G}=Le({shortcuts:{...M("ArrowDown",v),...M("ArrowUp",C),...M("ArrowLeft",S),...M("ArrowRight",B),...M("PageDown",P),...M("PageUp",K)},allowRepeats:!0}),{keyboardProps:O}=Le({shortcuts:{...M("Home",E),...M("End",w),"Mod+A":T,Escape:I,Tab:H,"Tab+Shift":D}}),J=s.useRef({top:0,left:0});st(p,"scroll",()=>{J.current={top:p.current?.scrollTop??0,left:p.current?.scrollLeft??0}});let k=j=>{if(t.isFocused){le(j.currentTarget,X(j))||t.setFocused(!1);return}if(!le(j.currentTarget,X(j)))return;let R=jr();t.setFocused(!0);let pe=be=>{be!=null&&(t.setFocusedKey(be),d&&!t.isSelected(be)&&t.replaceSelection(be))};if(g&&(R==="keyboard"||R==="virtual"))pe(g==="first"?r.getFirstKey?.():r.getLastKey?.());else if(t.focusedKey==null){let be=j.relatedTarget;be&&j.currentTarget.compareDocumentPosition(be)&Node.DOCUMENT_POSITION_FOLLOWING?pe(t.lastSelectedKey??r.getLastKey?.()):pe(t.firstSelectedKey??r.getFirstKey?.())}else p.current&&(p.current.scrollTop=J.current.top,p.current.scrollLeft=J.current.left);if(t.focusedKey!=null&&p.current){let be=Ar(n,t.focusedKey);be instanceof HTMLElement&&(!Yt(be)&&!f&&et(be),(R==="keyboard"||g&&R==="virtual")&&wt(be,{containingElement:n.current}))}},N=j=>{le(j.currentTarget,j.relatedTarget)||t.setFocused(!1)},z=s.useRef(!1);st(n,y5,f?j=>{let{detail:R}=j;j.stopPropagation(),t.setFocused(!0),R?.focusStrategy==="first"&&(z.current=!0)}:void 0);let ee=r.getFirstKey?.()??null;t4(()=>{if(z.current)if(ee==null){let j=he();Wu(n.current),fl(j,null),t.collection.size>0&&(z.current=!1)}else t.setFocusedKey(ee),z.current=!1},[ee,t.collection.size]),t4(()=>{t.collection.size>0&&(z.current=!1)},[t.focusedKey]),st(n,$5,f?j=>{j.stopPropagation(),t.setFocused(!1),j.detail?.clearFocusKey&&t.setFocusedKey(null)}:void 0);const Q=s.useRef(i),A=s.useRef(!1);s.useEffect(()=>{if(Q.current){let j=null;i==="first"&&(j=r.getFirstKey?.()??null),i==="last"&&(j=r.getLastKey?.()??null);let R=t.selectedKeys;if(R.size){for(let pe of R)if(t.canSelectItem(pe)){j=pe;break}}t.setFocused(!0),t.setFocusedKey(j),j==null&&!f&&n.current&&Oe(n.current),t.collection.size>0&&(Q.current=!1,A.current=!0)}});let F=s.useRef(t.focusedKey),V=s.useRef(null);s.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==F.current||A.current)&&p.current&&n.current){let j=jr(),R=Ar(n,t.focusedKey);if(!(R instanceof HTMLElement))return;(j==="keyboard"||A.current)&&(V.current&&cancelAnimationFrame(V.current),V.current=requestAnimationFrame(()=>{p.current&&(ya(p.current,R),j!=="virtual"&&wt(R,{containingElement:n.current}))}))}!f&&t.isFocused&&t.focusedKey==null&&F.current!=null&&n.current&&Oe(n.current),F.current=t.focusedKey,A.current=!1}),s.useEffect(()=>()=>{V.current&&cancelAnimationFrame(V.current)},[]),st(n,"react-aria-focus-scope-restore",j=>{j.preventDefault(),t.setFocused(!0)});let L={...W(O,G),onFocus:k,onBlur:N,onMouseDown(j){p.current===X(j)&&j.preventDefault()}},{typeSelectProps:te}=e4({keyboardDelegate:r,selectionManager:t});c||(L=W(te,L));let oe;f||(oe=t.focusedKey==null?0:-1);let Ve=c9(t.collection);return{collectionProps:W(L,{tabIndex:oe,"data-collection":Ve})}}class _o{constructor(t){this.ref=t}getItemRect(t){let r=this.ref.current;if(!r)return null;let n=t!=null?Ar(this.ref,t):null;if(!n)return null;let i=r.getBoundingClientRect(),a=n.getBoundingClientRect();return{x:a.left-i.left-r.clientLeft+r.scrollLeft,y:a.top-i.top-r.clientTop+r.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 qn{constructor(...t){if(t.length===1){let r=t[0];this.collection=r.collection,this.ref=r.ref,this.collator=r.collator,this.disabledKeys=r.disabledKeys||new Set,this.disabledBehavior=r.disabledBehavior||"all",this.orientation=r.orientation||"vertical",this.direction=r.direction,this.layout=r.layout||"stack",this.layoutDelegate=r.layoutDelegate||new _o(r.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 _o(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,r,n=!1){let i=t;for(;i!=null;){let a=this.collection.getItem(i);if(a?.type==="item"&&(n||!this.isDisabled(a)))return i;i=r(i)}return null}getNextKey(t,r){let n=t;return n=this.collection.getKeyAfter(n),this.findNextNonDisabled(n,i=>this.collection.getKeyAfter(i),r?.includeDisabled)}getPreviousKey(t,r){let n=t;return n=this.collection.getKeyBefore(n),this.findNextNonDisabled(n,i=>this.collection.getKeyBefore(i),r?.includeDisabled)}findKey(t,r,n){let i=t,a=this.layoutDelegate.getItemRect(i);if(!a||i==null)return null;let l=a;do{if(i=r(i),i==null)break;a=this.layoutDelegate.getItemRect(i)}while(a&&n(l,a)&&i!=null);return i}isSameRow(t,r){return t.y===r.y||t.x!==r.x}isSameColumn(t,r){return t.x===r.x||t.y!==r.y}isReversed(t){let r=this.getNextKey(t),n=Ar(this.ref,t);if(r!=null){let a=Ar(this.ref,r);return!n||!a?!1:n.getBoundingClientRect().top>a.getBoundingClientRect().top}let i=this.getPreviousKey(t);if(i!=null){let a=Ar(this.ref,i);return!n||!a?!1:a.getBoundingClientRect().top>n.getBoundingClientRect().top}return!1}getKeyBelow(t,r){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getNextKey(n,r),this.isSameRow):this.orientation==="vertical"?this.isReversed(t)?this.getPreviousKey(t,r):this.getNextKey(t,r):this.getNextKey(t,r)}getKeyAbove(t,r){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getPreviousKey(n,r),this.isSameRow):this.orientation==="vertical"?this.isReversed(t)?this.getNextKey(t,r):this.getPreviousKey(t,r):this.getPreviousKey(t,r)}getNextColumn(t,r,n){return r?this.getPreviousKey(t,n):this.getNextKey(t,n)}getKeyRightOf(t,r){let n=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,i=>this.layoutDelegate[n](i),r?.includeDisabled)):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl",r):this.findKey(t,i=>this.getNextColumn(i,this.direction==="rtl",r),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl",r):null}getKeyLeftOf(t,r){let n=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,i=>this.layoutDelegate[n](i),r?.includeDisabled)):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr",r):this.findKey(t,i=>this.getNextColumn(i,this.direction==="ltr",r),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr",r):null}getFirstKey(){let t=this.collection.getFirstKey();return this.findNextNonDisabled(t,r=>this.collection.getKeyAfter(r))}getLastKey(){let t=this.collection.getLastKey();return this.findNextNonDisabled(t,r=>this.collection.getKeyBefore(r))}getKeyPageAbove(t){let r=this.ref.current,n=this.layoutDelegate.getItemRect(t);if(!n)return null;let i=this.isReversed(t);if(r&&!or(r))return this.getFirstKey();let a=t;if(this.orientation==="horizontal"){let l=Math.max(0,n.x+n.width-this.layoutDelegate.getVisibleRect().width);for(;n&&n.x>l&&a!=null;)a=this.getKeyAbove(a),n=a==null?null:this.layoutDelegate.getItemRect(a)}else{let l=this.layoutDelegate.getVisibleRect(),o=i?n.y-l.height:Math.max(0,n.y+n.height-l.height);for(;n&&n.y>o&&a!=null;)a=this.getKeyAbove(a),n=a==null?null:this.layoutDelegate.getItemRect(a)}return a??(i?this.getLastKey():this.getFirstKey())}getKeyPageBelow(t){let r=this.ref.current,n=this.layoutDelegate.getItemRect(t);if(!n)return null;let i=this.isReversed(t);if(r&&!or(r))return this.getLastKey();let a=t;if(this.orientation==="horizontal"){let l=Math.min(this.layoutDelegate.getContentSize().width,n.x-n.width+this.layoutDelegate.getVisibleRect().width);for(;n&&n.x<l&&a!=null;)a=this.getKeyBelow(a),n=a==null?null:this.layoutDelegate.getItemRect(a)}else{let l=Math.min(this.layoutDelegate.getContentSize().height,n.y-n.height+this.layoutDelegate.getVisibleRect().height);for(;n&&n.y<l&&a!=null;)a=this.getKeyBelow(a),n=a==null?null:this.layoutDelegate.getItemRect(a)}return a??(i?this.getFirstKey():this.getLastKey())}getKeyForSearch(t,r){if(!this.collator)return null;let n=this.collection,i=r||this.getFirstKey();for(;i!=null;){let a=n.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 jo=new Map;function on(e){let{locale:t}=ge(),r=t+(e?Object.entries(e).sort((i,a)=>i[0]<a[0]?-1:1).join():"");if(jo.has(r))return jo.get(r);let n=new Intl.Collator(t,e);return jo.set(r,n),n}function r4(e){let{selectionManager:t,collection:r,disabledKeys:n,ref:i,keyboardDelegate:a,layoutDelegate:l,orientation:o}=e,u=on({usage:"search",sensitivity:"base"}),d=t.disabledBehavior,c=s.useMemo(()=>a||new qn({collection:r,disabledKeys:n,disabledBehavior:d,ref:i,collator:u,layoutDelegate:l,orientation:o}),[a,l,r,n,i,u,d,o]),{collectionProps:f}=Sa({...e,ref:i,selectionManager:t,keyboardDelegate:c});return{listProps:f}}function p9(e,t,r){let n=ne(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}=r4({...e,ref:r,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:l}),{focusWithinProps:u}=vr({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),d=De(e.id);Da.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}=zl({...e,id:d,labelElementType:"span"});return{labelProps:c,listBoxProps:W(n,u,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox","aria-orientation":a,...W(f,o)})}}const m9=500;function Ho(e){let{isDisabled:t,pointerType:r,onLongPressStart:n,onLongPressEnd:i,onLongPress:a,threshold:l=m9,accessibilityDescription:o}=e;const u=s.useRef(void 0);let{addGlobalListener:d,removeAllGlobalListeners:c}=Rr(),f=b=>r?b.pointerType===r:b.pointerType==="mouse"||b.pointerType==="touch",{pressProps:h}=Xe({isDisabled:t,onPressStart(b){if(b.continuePropagation(),f(b)){n&&n({...b,type:"longpressstart"}),u.current=setTimeout(()=>{b.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),d(b.target,"click",$=>$.preventDefault(),{once:!0}),de(b.target).activeElement!==b.target&&et(b.target),a&&a({...b,type:"longpress"}),u.current=void 0},l),b.pointerType==="touch"&&d(b.target,"contextmenu",$=>$.preventDefault(),{once:!0});let g=Ce(b.target);d(g,"pointerup",()=>{setTimeout(()=>{c()},100)},{once:!0})}},onPressEnd(b){u.current&&clearTimeout(u.current),i&&f(b)&&i({...b,type:"longpressend"})}}),p=Sr(a&&!t?o:void 0);return{longPressProps:W(h,p)}}function Xn(e){let{id:t,selectionManager:r,key:n,ref:i,shouldSelectOnPressUp:a,shouldUseVirtualFocus:l,focus:o,isDisabled:u,onAction:d,allowsDifferentPressOrigin:c,linkBehavior:f="action"}=e,h=pr();t=De(t);let p=F=>{if(F.pointerType==="keyboard"&&Vo(F))r.toggleSelection(n);else{if(r.selectionMode==="none")return;if(r.isLink(n)){if(f==="selection"&&i.current){let V=r.getItemProps(n);h.open(i.current,F,V.href,V.routerOptions),r.setSelectedKeys(r.selectedKeys);return}else if(f==="override"||f==="none")return}r.selectionMode==="single"?r.isSelected(n)&&!r.disallowEmptySelection?r.toggleSelection(n):r.replaceSelection(n):F&&F.shiftKey?r.extendSelection(n):r.selectionBehavior==="toggle"||F&&(Dn(F)||F.pointerType==="touch"||F.pointerType==="virtual")?r.toggleSelection(n):r.replaceSelection(n)}};s.useEffect(()=>{n===r.focusedKey&&r.isFocused&&(l?Wu(i.current):o?o():he()!==i.current&&i.current&&Oe(i.current))},[i,n,r.focusedKey,r.childFocusStrategy,r.isFocused,l]),u=u||r.isDisabled(n);let b={};!l&&!u?b={tabIndex:n===r.focusedKey?0:-1,onFocus(F){X(F)===i.current&&r.setFocusedKey(n)}}:u&&(b.onMouseDown=F=>{F.preventDefault()}),s.useEffect(()=>{u&&r.focusedKey===n&&r.setFocusedKey(null)},[r,u,n]);let g=r.isLink(n)&&f==="override",$=d&&e.UNSTABLE_itemBehavior==="action",y=r.isLink(n)&&f!=="selection"&&f!=="none",x=!u&&r.canSelectItem(n)&&!g&&!$,v=(d||y)&&!u,C=v&&(r.selectionBehavior==="replace"?!x:!x||r.isEmpty),E=v&&x&&r.selectionBehavior==="replace",S=C||E,B=s.useRef(null),w=S&&x,P=s.useRef(!1),K=s.useRef(!1),T=r.getItemProps(n),I=F=>{d&&(d(),i.current?.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))),y&&i.current&&h.open(i.current,F,T.href,T.routerOptions)},H={ref:i};a?(H.onPressStart=F=>{B.current=F.pointerType,P.current=w,F.pointerType==="keyboard"&&(!S||i4(F.key))&&p(F)},c?(H.onPressUp=C?void 0:F=>{F.pointerType==="mouse"&&x&&p(F)},H.onPress=C?I:F=>{F.pointerType!=="keyboard"&&F.pointerType!=="mouse"&&x&&p(F)}):H.onPress=F=>{if(C||E&&F.pointerType!=="mouse"){if(F.pointerType==="keyboard"&&!n4(F.key))return;I(F)}else F.pointerType!=="keyboard"&&x&&p(F)}):(H.onPressStart=F=>{B.current=F.pointerType,P.current=w,K.current=C,x&&(F.pointerType==="mouse"&&!C||F.pointerType==="keyboard"&&(!v||i4(F.key)))&&p(F)},H.onPress=F=>{(F.pointerType==="touch"||F.pointerType==="pen"||F.pointerType==="virtual"||F.pointerType==="keyboard"&&S&&n4(F.key)||F.pointerType==="mouse"&&K.current)&&(S?I(F):x&&p(F))});let D=f9(r.collection);if(b["data-collection"]=D,b["data-key"]=n,H.preventFocusOnPress=l,l&&(H=W(H,{onPressStart(F){F.pointerType!=="touch"&&(r.setFocused(!0),r.setFocusedKey(n))},onPress(F){F.pointerType==="touch"&&(r.setFocused(!0),r.setFocusedKey(n))}})),T)for(let F of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])T[F]&&(H[F]=ot(H[F],T[F]));let{pressProps:M,isPressed:G}=Xe(H),O=E?F=>{B.current==="mouse"&&(F.stopPropagation(),F.preventDefault(),I(F))}:void 0,{longPressProps:J}=Ho({isDisabled:!w,onLongPress(F){F.pointerType==="touch"&&(p(F),r.setSelectionBehavior("toggle"))}}),k=F=>{B.current==="touch"&&P.current&&F.preventDefault()},N=f!=="none"&&r.isLink(n)?F=>{Tt.isOpening||F.preventDefault()}:void 0,z=W(b,x||C||l&&!u?M:{},w?J:{},{onDoubleClick:O,onDragStartCapture:k,onClick:N,id:t},l?{onMouseDown:F=>F.preventDefault()}:void 0),ee=F=>{let V=F;for(;V&&V!==i.current;){let L=V.getAttribute("data-collection");if(L!=null)return L!==D;V=V.parentElement}return ml(F)},Q=z.onPointerDown;z.onPointerDown=F=>{let V=X(F);if(V&&V!==i.current&&ee(V)){F.stopPropagation();return}Q?.(F)};let A=z.onMouseDown;return z.onMouseDown=F=>{let V=X(F);if(V&&V!==i.current&&ee(V)){F.stopPropagation();return}A?.(F)},{itemProps:z,isPressed:G,isSelected:r.isSelected(n),isFocused:r.isFocused&&r.focusedKey===n,isDisabled:u,allowsSelection:x,hasAction:S}}function n4(e){return e==="Enter"}function i4(e){return e===" "}function Me(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function zt(e){return Jn(e,0)}function Jn(e,t){if(t<0)return;let r=0;for(let n of e){if(r===t)return n;r++}}function sn(e){let t;for(let r of e)t=r;return t}function Uo(e,t,r){if(t.parentKey===r.parentKey)return t.index-r.index;let n=[...a4(e,t),t],i=[...a4(e,r),r],a=n.slice(0,i.length).findIndex((l,o)=>l!==i[o]);return a!==-1?(t=n[a],r=i[a],t.index-r.index):n.findIndex(l=>l===r)>=0?1:(i.findIndex(l=>l===t)>=0,-1)}function a4(e,t){let r=[],n=t;for(;n?.parentKey!=null;)n=e.getItem(n.parentKey),n&&r.unshift(n);return r}const l4=new WeakMap;function Wo(e){let t=l4.get(e);if(t!=null)return t;let r=0,n=i=>{for(let a of i)a.type==="section"?n(Me(a,e)):a.type==="item"&&r++};return n(e),l4.set(e,r),r}function b9(e,t,r){let{key:n}=e,i=Da.get(t),a=e.isDisabled??t.selectionManager.isDisabled(n),l=e.isSelected??t.selectionManager.isSelected(n),o=e.shouldSelectOnPressUp??i?.shouldSelectOnPressUp,u=e.shouldFocusOnHover??i?.shouldFocusOnHover,d=e.shouldUseVirtualFocus??i?.shouldUseVirtualFocus,c=e.isVirtualized??i?.isVirtualized,f=mt(),h=mt(),p={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":h},b=t.collection.getItem(n);if(c){let P=Number(b?.index);p["aria-posinset"]=Number.isNaN(P)?void 0:P+1,p["aria-setsize"]=Wo(t.collection)}let g=i?.onAction?()=>i?.onAction?.(n):void 0,$=Uh(t,n),{itemProps:y,isPressed:x,isFocused:v,hasAction:C,allowsSelection:E}=Xn({selectionManager:t.selectionManager,key:n,ref:r,shouldSelectOnPressUp:o,allowsDifferentPressOrigin:o&&u,isVirtualized:c,shouldUseVirtualFocus:d,isDisabled:a,onAction:g||b?.props?.onAction?ot(b?.props?.onAction,g):void 0,linkBehavior:i?.linkBehavior,UNSTABLE_itemBehavior:i?.UNSTABLE_itemBehavior,id:$}),{hoverProps:S}=Fe({isDisabled:a||!u,onHoverStart(){qt()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(n))}}),B=ne(b?.props);delete B.id;let w=Ki(b?.props);return{optionProps:{...p,...W(B,y,S,w),id:$},labelProps:{id:f},descriptionProps:{id:h},isFocused:v,isFocusVisible:v&&t.selectionManager.isFocused&&qt(),isSelected:l,isDisabled:a,isPressed:x,allowsSelection:E,hasAction:C}}function g9(e){let{heading:t,"aria-label":r}=e,n=De();return{itemProps:{role:"presentation"},headingProps:t?{id:n,role:"presentation",onMouseDown:i=>{i.preventDefault()}}:{},groupProps:{role:"group","aria-label":r,"aria-labelledby":t?n:void 0}}}function o4(e){const t=s.version.split(".");return parseInt(t[0],10)>=19?e:e?"true":void 0}class Go{constructor(t){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t;let r=l=>{if(this.keyMap.set(l.key,l),l.childNodes&&l.type==="section")for(let o of l.childNodes)r(o)};for(let l of t)r(l);let n=null,i=0,a=0;for(let[l,o]of this.keyMap)n?(n.nextKey=l,o.prevKey=n.key):(this.firstKey=l,o.prevKey=void 0),o.type==="item"&&(o.index=i++),(o.type==="section"||o.type==="item")&&a++,n=o,n.nextKey=void 0;this._size=a,this.lastKey=n?.key??null}*[Symbol.iterator](){yield*this.iterable}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let r=this.keyMap.get(t);return r?r.prevKey??null:null}getKeyAfter(t){let r=this.keyMap.get(t);return r?r.nextKey??null:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)??null}at(t){const r=[...this.getKeys()];return this.getItem(r[t])}getChildren(t){return this.keyMap.get(t)?.childNodes||[]}}class ct extends Set{constructor(t,r,n){super(t),t instanceof ct?(this.anchorKey=r??t.anchorKey,this.currentKey=n??t.currentKey):(this.anchorKey=r??null,this.currentKey=n??null)}}function $9(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}function Qn(e){let{selectionMode:t="none",disallowEmptySelection:r=!1,allowDuplicateSelectionEvents:n,selectionBehavior:i="toggle",disabledBehavior:a="all"}=e,l=s.useRef(!1),[,o]=s.useState(!1),u=s.useRef(null),d=s.useRef(null),[,c]=s.useState(null),f=s.useMemo(()=>s4(e.selectedKeys),[e.selectedKeys]),h=s.useMemo(()=>s4(e.defaultSelectedKeys,new ct),[e.defaultSelectedKeys]),[p,b]=_e(f,h,e.onSelectionChange),g=s.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[$,y]=s.useState(i);i==="replace"&&$==="toggle"&&typeof p=="object"&&p.size===0&&y("replace");let x=s.useRef(i);return s.useEffect(()=>{i!==x.current&&(y(i),x.current=i)},[i]),{selectionMode:t,disallowEmptySelection:r,selectionBehavior:$,setSelectionBehavior:y,get isFocused(){return l.current},setFocused(v){l.current=v,o(v)},get focusedKey(){return u.current},get childFocusStrategy(){return d.current},setFocusedKey(v,C="first"){u.current=v,d.current=C,c(v)},selectedKeys:p,setSelectedKeys(v){(n||!$9(v,p))&&b(v)},disabledKeys:g,disabledBehavior:a}}function s4(e,t){return e?e==="all"?"all":new ct(e):t}class un{constructor(t,r,n){this.collection=t,this.state=r,this.allowsCellSelection=n?.allowsCellSelection??!1,this._isSelectAll=null,this.layoutDelegate=n?.layoutDelegate||null,this.fullCollection=n?.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,r){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,r)}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 r=this.getKey(t);return r==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(r):this.state.selectedKeys.has(r)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),r=this.state.selectedKeys;return this._isSelectAll=t.every(n=>r.has(n)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let n=this.collection.getItem(r);(!t||n&&Uo(this.collection,n,t)<0)&&(t=n)}return t?.key??null}get lastSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let n=this.collection.getItem(r);(!t||n&&Uo(this.collection,n,t)>0)&&(t=n)}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 r=this.getKey(t);if(r==null)return;let n;if(this.state.selectedKeys==="all")n=new ct([r],r,r);else{let i=this.state.selectedKeys,a=i.anchorKey??r;n=new ct(i,a,r);for(let l of this.getKeyRange(a,i.currentKey??r))n.delete(l);for(let l of this.getKeyRange(r,a))this.canSelectItem(l)&&n.add(l)}this.state.setSelectedKeys(n)}getKeyRange(t,r){let n=this.collection.getItem(t),i=this.collection.getItem(r);return n&&i?Uo(this.collection,n,i)<=0?this.getKeyRangeInternal(t,r):this.getKeyRangeInternal(r,t):[]}getKeyRangeInternal(t,r){if(this.layoutDelegate?.getKeyRange)return this.layoutDelegate.getKeyRange(t,r);let n=[],i=t;for(;i!=null;){let a=this.collection.getItem(i);if(a&&(a.type==="item"||a.type==="cell"&&this.allowsCellSelection)&&n.push(i),i===r)return n;i=this.collection.getKeyAfter(i)}return[]}getKey(t){let r=this.collection.getItem(t);if(!r||r.type==="cell"&&this.allowsCellSelection)return t;for(;r&&r.type!=="item"&&r.parentKey!=null;)r=this.collection.getItem(r.parentKey);return!r||r.type!=="item"?null:r.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let r=this.getKey(t);if(r==null)return;let n=new ct(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);n.has(r)?n.delete(r):this.canSelectItem(r)&&(n.add(r),n.anchorKey=r,n.currentKey=r),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(t){if(this.selectionMode==="none")return;let r=this.getKey(t);if(r==null)return;let n=this.canSelectItem(r)?new ct([r],r,r):new ct;this.state.setSelectedKeys(n)}setSelectedKeys(t){if(this.selectionMode==="none")return;let r=new ct;for(let n of t){let i=this.getKey(n);if(i!=null&&(r.add(i),this.selectionMode==="single"))break}this.state.setSelectedKeys(r)}getSelectAllKeys(){let t=this.fullCollection??this.collection,r=[],n=i=>{for(;i!=null;){if(this.canSelectItemIn(i,t)){let a=t.getItem(i);a?.type==="item"&&r.push(i),a?.hasChildNodes&&(this.allowsCellSelection||a.type!=="item")&&n(zt(Me(a,t))?.key??null)}i=t.getKeyAfter(i)}};return n(t.getFirstKey()),r}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new ct)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,r){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||r&&(r.pointerType==="touch"||r.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let r=this.selectedKeys;if(t.size!==r.size)return!1;for(let n of t)if(!r.has(n))return!1;for(let n of r)if(!t.has(n))return!1;return!0}canSelectItem(t){return this.canSelectItemIn(t,this.collection)}canSelectItemIn(t,r){if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let n=r.getItem(t);return!(!n||n?.props?.isDisabled||n.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){let r=this.collection.getItem(t);return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!r?.props?.isDisabled)&&r?.props?.disabledBehavior!=="selection"}isLink(t){return!!this.collection.getItem(t)?.props?.href}getItemProps(t){return this.collection.getItem(t)?.props}withCollection(t){return new un(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0,fullCollection:this.fullCollection??this.collection})}}class y9{build(t,r){return this.context=r,u4(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:r,items:n}=t;if(s.isValidElement(r)&&r.type===s.Fragment)yield*this.iterateCollection({children:r.props.children,items:n});else if(typeof r=="function"){if(!n)throw new Error("props.children was a function but props.items is missing");let i=0;for(let a of n)yield*this.getFullNode({value:a,index:i},{renderer:r}),i++}else{let i=[];s.Children.forEach(r,l=>{l&&i.push(l)});let a=0;for(let l of i){let o=this.getFullNode({element:l,index:a},{});for(let u of o)a++,yield u}}}getKey(t,r,n,i){if(t.key!=null)return t.key;if(r.type==="cell"&&r.key!=null)return`${i}${r.key}`;let a=r.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}.${r.index}`:`$.${r.index}`}getChildState(t,r){return{renderer:r.renderer||t.renderer}}*getFullNode(t,r,n,i){if(s.isValidElement(t.element)&&t.element.type===s.Fragment){let u=[];s.Children.forEach(t.element.props.children,c=>{u.push(c)});let d=t.index??0;for(const c of u)yield*this.getFullNode({element:c,index:d++},r,n,i);return}let a=t.element;if(!a&&t.value&&r&&r.renderer){let u=this.cache.get(t.value);if(u&&(!u.shouldInvalidate||!u.shouldInvalidate(this.context))){u.index=t.index,u.parentKey=i?i.key:null,yield u;return}a=r.renderer(t.value)}if(s.isValidElement(a)){let u=a.type;if(typeof u!="function"&&typeof u.getCollectionNode!="function"){let h=a.type;throw new Error(`Unknown element <${h}> in collection.`)}let d=u.getCollectionNode(a.props,this.context),c=t.index??0,f=d.next();for(;!f.done&&f.value;){let h=f.value;t.index=c;let p=h.key??null;p==null&&(p=h.element?null:this.getKey(a,t,r,n));let g=[...this.getFullNode({...h,key:p,index:c,wrapper:v9(t.wrapper,h.wrapper)},this.getChildState(r,h),n?`${n}${a.key}`:a.key,i)];for(let $ of g){if($.value=h.value??t.value??null,$.value&&this.cache.set($.value,$),t.type&&$.type!==t.type)throw new Error(`Unsupported type <${Ro($.type)}> in <${Ro(i?.type??"unknown parent type")}>. Only <${Ro(t.type)}> is supported.`);c++,yield $}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:u4(function*(){if(!t.hasChildNodes||!t.childNodes)return;let u=0;for(let d of t.childNodes()){d.key!=null&&(d.key=`${o.key}${d.key}`);let c=l.getFullNode({...d,index:u},l.getChildState(r,d),o.key,o);for(let f of c)u++,yield f}})};yield o}constructor(){this.cache=new WeakMap}}function u4(e){let t=[],r=null;return{*[Symbol.iterator](){for(let n of t)yield n;r||(r=e());for(let n of r)t.push(n),yield n}}}function v9(e,t){if(e&&t)return r=>e(t(r));if(e)return e;if(t)return t}function Ro(e){return e[0].toUpperCase()+e.slice(1)}function Zo(e,t,r){let n=s.useMemo(()=>new y9,[]),{children:i,items:a,collection:l}=e;return s.useMemo(()=>{if(l)return l;let u=n.build({children:i,items:a},r);return t(u)},[n,i,a,l,r,t])}function Pa(e){let{filter:t,layoutDelegate:r}=e,n=Qn(e),i=s.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=s.useCallback(d=>t?new Go(t(d)):new Go(d),[t]),l=s.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),o=Zo(e,a,l),u=s.useMemo(()=>new un(o,n,{layoutDelegate:r}),[o,n,r]);return d4(o,u),{collection:o,disabledKeys:i,selectionManager:u}}function x9(e,t){let r=s.useMemo(()=>t?e.collection.filter(t):e.collection,[e.collection,t]),n=e.selectionManager.withCollection(r);return d4(r,n),{collection:r,selectionManager:n,disabledKeys:e.disabledKeys}}function d4(e,t){const r=s.useRef(null);s.useEffect(()=>{if(t.focusedKey!=null&&!e.getItem(t.focusedKey)&&r.current){let n=r.current.getKeyAfter(t.focusedKey),i=null;for(;n!=null;){let a=e.getItem(n);if(a&&a.type==="item"&&!t.isDisabled(n)){i=n;break}n=r.current.getKeyAfter(n)}if(i==null)for(n=r.current.getKeyBefore(t.focusedKey);n!=null;){let a=e.getItem(n);if(a&&a.type==="item"&&!t.isDisabled(n)){i=n;break}n=r.current.getKeyBefore(n)}t.setFocusedKey(i)}r.current=e},[e,t])}function c4(e,t){let{collection:r,onLoadMore:n,scrollOffset:i=1,direction:a="end"}=e,l=s.useRef(null),o=Se(u=>{for(let d of u)d.isIntersecting&&n&&n()});fe(()=>{if(t.current){const u=100*i,d=a==="start"?`${u}% 0px 0px 0px`:`0px ${u}% ${u}% ${u}%`;l.current=new IntersectionObserver(o,{root:ut(t?.current),rootMargin:d}),l.current.observe(t.current)}return()=>{l.current&&l.current.disconnect()}},[r,t,i,a])}const ei=s.createContext(null),Fr=s.createContext(null),C9=s.forwardRef(function(t,r){[t,r]=me(t,r,ei);let n=s.useContext(Fr);return n?s.createElement(f4,{state:n,props:t,listBoxRef:r}):s.createElement(gr,{content:s.createElement($r,t)},i=>s.createElement(D9,{props:t,listBoxRef:r,collection:i}))});function D9({props:e,listBoxRef:t,collection:r}){e={...e,collection:r,children:null,items:null};let{layoutDelegate:n}=s.useContext($e),i=Pa({...e,layoutDelegate:n});return s.createElement(f4,{state:i,props:e,listBoxRef:t})}function f4({state:e,props:t,listBoxRef:r}){[t,r]=me(t,r,Sn);let{dragAndDropHooks:n,layout:i="stack",orientation:a="vertical",filter:l}=t,o=x9(e,l),{collection:u,selectionManager:d}=o,c=!!n?.useDraggableCollectionState,f=!!n?.useDroppableCollectionState,{direction:h}=ge(),{disabledBehavior:p,disabledKeys:b}=d,g=on({usage:"search",sensitivity:"base"}),{isVirtualized:$,layoutDelegate:y,dropTargetDelegate:x,CollectionRoot:v}=s.useContext($e),C=s.useMemo(()=>t.keyboardDelegate||new qn({collection:u,collator:g,ref:r,disabledKeys:b,disabledBehavior:p,layout:i,orientation:a,direction:h,layoutDelegate:y}),[u,g,r,p,b,a,h,t.keyboardDelegate,i,y]),{listBoxProps:E}=p9({...t,shouldSelectOnPressUp:c||t.shouldSelectOnPressUp,keyboardDelegate:C,isVirtualized:$},o,r),S=s.useRef(c),B=s.useRef(f);s.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 w,P,K,T=!1,I=null,H=s.useRef(null);if(c&&n){w=n.useDraggableCollectionState({collection:u,selectionManager:d,preview:n.renderDragPreview?H:void 0}),n.useDraggableCollection({},w,r);let ee=n.DragPreview;I=n.renderDragPreview?s.createElement(ee,{ref:H},n.renderDragPreview):null}if(f&&n){P=n.useDroppableCollectionState({collection:u,selectionManager:d});let ee=n.dropTargetDelegate||x||new n.ListDropTargetDelegate(u,r,{orientation:a,layout:i,direction:h});K=n.useDroppableCollection({keyboardDelegate:C,dropTargetDelegate:ee},P,r),T=P.isDropTarget({type:"root"})}let{focusProps:D,isFocused:M,isFocusVisible:G}=Ae(),O=o.collection.size===0,J={isDropTarget:T,isEmpty:O,isFocused:M,isFocusVisible:G,layout:t.layout||"stack",orientation:a,state:o},k=se({...t,children:void 0,defaultClassName:"react-aria-ListBox",values:J}),N=null;O&&t.renderEmptyState&&(N=s.createElement("div",{role:"option",style:{display:"contents"}},t.renderEmptyState(J)));let z=ne(t,{global:!0});return s.createElement(wa,null,s.createElement(re.div,{...W(z,k,E,D,K?.collectionProps),ref:r,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},s.createElement(Ee,{values:[[ei,t],[Fr,o],[dt,{dragAndDropHooks:n,dragState:w,dropState:P}],[To,{elementType:"div"}],[Ao,{render:S9}],[Bd,{name:"ListBoxSection",render:w9}]]},s.createElement(Rn,null,s.createElement(v,{collection:u,scrollRef:r,persistedKeys:_h(d,n,P),renderDropIndicator:Ca(n,P)}))),N,I))}function w9(e,t,r,n="react-aria-ListBoxSection"){let i=s.useContext(Fr),{dragAndDropHooks:a,dropState:l}=s.useContext(dt),{CollectionBranch:o}=s.useContext($e),[u,d]=Rt(),{headingProps:c,groupProps:f}=g9({heading:d,"aria-label":e["aria-label"]??void 0}),h=se({...e,id:void 0,children:void 0,defaultClassName:n,values:void 0}),p=ne(e,{global:!0});return delete p.id,s.createElement(re.section,{...W(p,h,f),ref:t},s.createElement(Fo.Provider,{value:{...c,ref:u}},s.createElement(o,{collection:i.collection,parent:r,renderDropIndicator:Ca(a,l)})))}const E9=vt(Hi,function(t,r,n){let i=Be(r),a=s.useContext(Fr),{dragAndDropHooks:l,dragState:o,dropState:u}=s.useContext(dt),d=o&&!(o.isDisabled||o.selectionManager.isDisabled(n.key)),{optionProps:c,labelProps:f,descriptionProps:h,...p}=b9({key:n.key,"aria-label":t?.["aria-label"]},a,i),{hoverProps:b,isHovered:g}=Fe({isDisabled:!p.allowsSelection&&!p.hasAction&&!d,onHoverStart:n.props.onHoverStart,onHoverChange:n.props.onHoverChange,onHoverEnd:n.props.onHoverEnd}),{keyboardProps:$}=Le(t),{focusProps:y}=El(t),x=null;o&&l&&(x=l.useDraggableItem({key:n.key,hasAction:p.hasAction},o));let v=null;u&&l&&(v=l.useDroppableItem({target:{type:"item",key:n.key,dropPosition:"on"}},u,i));let C=o&&o.isDragging(n.key),E=se({...t,id:void 0,children:t.children,defaultClassName:"react-aria-ListBoxItem",values:{...p,isHovered:g,selectionMode:a.selectionManager.selectionMode,selectionBehavior:a.selectionManager.selectionBehavior,allowsDragging:!!o,isDragging:C,isDropTarget:v?.isDropTarget}});s.useEffect(()=>{!n.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.")},[n.textValue]);let S=t.href?re.a:re.div,B=ne(t,{global:!0});return delete B.id,delete B.onClick,t.href&&c.tabIndex==null&&(c.tabIndex=-1),s.createElement(S,{...W(B,E,c,b,$,y,x?.dragProps,v?.dropProps),ref:i,"data-allows-dragging":!!o||void 0,"data-selected":p.isSelected||void 0,"data-disabled":p.isDisabled||void 0,"data-hovered":g||void 0,"data-focused":p.isFocused||void 0,"data-focus-visible":p.isFocusVisible||void 0,"data-pressed":p.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},s.createElement(Ee,{values:[[Je,{slots:{[Ft]:f,label:f,description:h}}],[Zn,{isSelected:p.isSelected}]]},E.children))});function S9(e,t){t=Be(t);let{dragAndDropHooks:r,dropState:n}=s.useContext(dt),{dropIndicatorProps:i,isHidden:a,isDropTarget:l}=r.useDropIndicator(e,n,t);return a?null:s.createElement(k9,{...e,dropIndicatorProps:i,isDropTarget:l,ref:t})}function P9(e,t){let{dropIndicatorProps:r,isDropTarget:n,...i}=e,a=se({...i,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:n}});return s.createElement(s.Fragment,null,s.createElement(re.div,{...r,...a,role:"option",ref:t,"data-drop-target":n||void 0}))}const k9=s.forwardRef(P9);vt(ji,function(t,r,n){let i=s.useContext(Fr),{isLoading:a,onLoadMore:l,scrollOffset:o,...u}=t,d=s.useRef(null),c=s.useMemo(()=>({onLoadMore:l,collection:i?.collection,sentinelRef:d,scrollOffset:o}),[l,o,i?.collection]);c4(c,d);let f=se({...u,id:void 0,children:n.rendered,defaultClassName:"react-aria-ListBoxLoadingIndicator",values:void 0}),h={tabIndex:-1};return s.createElement(s.Fragment,null,s.createElement("div",{style:{position:"relative",width:0,height:0},inert:o4(!0)},s.createElement("div",{"data-testid":"loadMoreSentinel",ref:d,style:{position:"absolute",height:1,width:1}})),a&&f.children&&s.createElement(s.Fragment,null,s.createElement(re.div,{...W(ne(t,{global:!0}),h),...f,role:"option",ref:r},f.children)))});const h4=s.createContext({placement:"bottom"}),B9=s.forwardRef(function(t,r){[t,r]=me(t,r,h4);let n=t.placement,i={position:"absolute",transform:n==="top"||n==="bottom"?"translateX(-50%)":"translateY(-50%)"};n!=null&&(i[n]="100%");let a=se({...t,defaultClassName:"react-aria-OverlayArrow",values:{placement:n}});a.style&&Object.keys(a.style).forEach(o=>a.style[o]===void 0&&delete a.style[o]);let l=ne(t);return s.createElement(re.div,{...l,...a,style:{...i,...a.style},ref:r,"data-placement":n})}),N9=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype;function p4(e){return e.dataset.liveAnnouncer==="true"||e.dataset.reactAriaTopLayer!==void 0}let ti=new WeakMap,Ze=[];function Yo(e,t){let r=Ce(e?.[0]),n=t instanceof r.Element?{root:t}:t,i=n?.root??document.body,a=n?.shouldUseInert&&N9,l=new Set(e),o=new Set,u=$=>a&&$ instanceof r.HTMLElement?$.inert:$.getAttribute("aria-hidden")==="true",d=($,y)=>{a&&$ instanceof r.HTMLElement?$.inert=y:y?$.setAttribute("aria-hidden","true"):($.removeAttribute("aria-hidden"),$ instanceof r.HTMLElement&&($.inert=!1))},c=new Set;if(bt()){let $=i.getRootNode();for(let y of e){let x=y.getRootNode();for(;cl(x)&&x!==$;)c.add(x),x=x.host.getRootNode()}}let f=$=>{for(let C of $.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))l.add(C);let y=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 E of l)if(le(C,E))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},x=Wh(de($),$,NodeFilter.SHOW_ELEMENT,{acceptNode:y}),v=y($);if(v===NodeFilter.FILTER_ACCEPT&&h($),v!==NodeFilter.FILTER_REJECT){let C=x.nextNode();for(;C!=null;)h(C),C=x.nextNode()}},h=$=>{let y=ti.get($)??0;u($)&&y===0||(y===0&&d($,!0),o.add($),ti.set($,y+1))};Ze.length&&Ze[Ze.length-1].disconnect(),f(i);let p=new MutationObserver($=>{for(let y of $)if(y.type==="childList"){if(y.target.isConnected&&![...l,...o].some(x=>le(x,y.target)))for(let x of y.addedNodes)(x instanceof HTMLElement||x instanceof SVGElement)&&p4(x)?l.add(x):x instanceof Element&&f(x);if(bt()){for(let x of c)if(!x.isConnected){p.disconnect();break}}}});p.observe(i,{childList:!0,subtree:!0});let b=new Set;if(bt())for(let $ of c){let y=new MutationObserver(x=>{for(let v of x)if(v.type==="childList"){if(v.target.isConnected&&![...l,...o].some(C=>le(C,v.target)))for(let C of v.addedNodes)(C instanceof HTMLElement||C instanceof SVGElement)&&p4(C)?l.add(C):C instanceof Element&&f(C);if(bt()){for(let C of c)if(!C.isConnected){p.disconnect();break}}}});y.observe($,{childList:!0,subtree:!0}),b.add(y)}let g={visibleNodes:l,hiddenNodes:o,observe(){p.observe(i,{childList:!0,subtree:!0})},disconnect(){p.disconnect()}};return Ze.push(g),()=>{if(p.disconnect(),bt())for(let $ of b)$.disconnect();for(let $ of o){let y=ti.get($);y!=null&&(y===1?(d($,!1),ti.delete($)):ti.set($,y-1))}g===Ze[Ze.length-1]?(Ze.pop(),Ze.length&&Ze[Ze.length-1].observe()):Ze.splice(Ze.indexOf(g),1)}}function A9(e){let t=Ze[Ze.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}const lt={top:"top",bottom:"top",left:"left",right:"left"},ka={top:"bottom",bottom:"top",left:"right",right:"left"},F9={top:"left",left:"top"},qo={top:"height",left:"width"},m4={width:"totalWidth",height:"totalHeight"},Ba={};let T9=()=>typeof document<"u"?window.visualViewport:null;function b4(e,t){let r=0,n=0,i=0,a=0,l=0,o=0,u={},d=(t?.scale??1)>1;if(e.tagName==="BODY"||e.tagName==="HTML"){let c=document.documentElement;i=c.clientWidth,a=c.clientHeight,r=t?.width??i,n=t?.height??a,u.top=c.scrollTop||e.scrollTop,u.left=c.scrollLeft||e.scrollLeft,t&&(l=t.offsetTop,o=t.offsetLeft)}else({width:r,height:n,top:l,left:o}=ri(e,!1)),u.top=e.scrollTop,u.left=e.scrollLeft,i=r,a=n;return yt()&&(e.tagName==="BODY"||e.tagName==="HTML")&&d&&(u.top=0,u.left=0,l=t?.pageTop??0,o=t?.pageLeft??0),{width:r,height:n,totalWidth:i,totalHeight:a,scroll:u,top:l,left:o}}function I9(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function g4(e,t,r,n,i,a,l){let o=i.scroll[e]??0,u=n[qo[e]],d=l[e]+n.scroll[lt[e]]+a,c=l[e]+n.scroll[lt[e]]+u-a,f=t-o+n.scroll[lt[e]]+l[e]-n[lt[e]],h=t-o+r+n.scroll[lt[e]]+l[e]-n[lt[e]];return f<d?d-f:h>c?Math.max(c-h,d-f):0}function M9(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 $4(e){if(Ba[e])return Ba[e];let[t,r]=e.split(" "),n=lt[t]||"right",i=F9[n];lt[r]||(r="center");let a=qo[n],l=qo[i];return Ba[e]={placement:t,crossPlacement:r,axis:n,crossAxis:i,size:a,crossSize:l},Ba[e]}function Xo(e,t,r,n,i,a,l,o,u,d,c){let{placement:f,crossPlacement:h,axis:p,crossAxis:b,size:g,crossSize:$}=n,y={};y[b]=e[b]??0,h==="center"?y[b]+=((e[$]??0)-(r[$]??0))/2:h!==b&&(y[b]+=(e[$]??0)-(r[$]??0)),y[b]+=a;const x=e[b]-r[$]+u+d,v=e[b]+e[$]-u-d;if(y[b]=Nn(y[b],x,v),f===p){let C=o?c[g]:c[m4[g]];y[ka[p]]=Math.floor(C-e[p]+i)}else y[p]=Math.floor(e[p]+e[g]+i);return y}function K9(e,t,r,n,i,a,l,o,u,d,c){let f=(e.top!=null?e.top:u[m4.height]-(e.bottom??0)-l)-(u.scroll.top??0),h=d?r.top:0,p={top:Math.max(t.top+h,(c?.offsetTop??t.top)+h),bottom:Math.min(t.top+t.height+h,(c?.offsetTop??0)+(c?.height??0))};return o!=="top"?Math.max(0,p.bottom-f-((i.top??0)+(i.bottom??0)+a)):Math.max(0,f+l-p.top-((i.top??0)+(i.bottom??0)+a))}function y4(e,t,r,n,i,a,l,o){let{placement:u,axis:d,size:c}=a;return u===d?Math.max(0,r[d]-(l.scroll[d]??0)-(e[d]+(o?t[d]:0))-(n[d]??0)-n[ka[d]]-i):Math.max(0,e[c]+e[d]+(o?t[d]:0)-r[d]-r[c]+(l.scroll[d]??0)-(n[d]??0)-n[ka[d]]-i)}function O9(e,t,r,n,i,a,l,o,u,d,c,f,h,p,b,g,$,y){let x=$4(e),{size:v,crossAxis:C,crossSize:E,placement:S,crossPlacement:B}=x,w=Xo(t,o,r,x,c,f,d,h,b,g,u),P=c,K=y4(o,d,t,i,a+c,x,u,$);if(l&&r[v]>K){let F=$4(`${ka[S]} ${B}`),V=Xo(t,o,r,F,c,f,d,h,b,g,u);y4(o,d,t,i,a+c,F,u,$)>K&&(x=F,w=V,P=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=g4(C,w[C],r[E],o,u,a,d);w[C]+=I;let H=K9(w,o,d,h,i,a,r.height,T,u,$,y);p&&p<H&&(H=p),r.height=Math.min(r.height,H),w=Xo(t,o,r,x,P,f,d,h,b,g,u),I=g4(C,w[C],r[E],o,u,a,d),w[C]+=I;let D={},M=t[C]-w[C]-i[lt[C]],G=M+.5*t[E];const O=b/2+g,J=lt[C]==="left"?(i.left??0)+(i.right??0):(i.top??0)+(i.bottom??0),k=r[E]-J-b/2-g,N=t[C]+b/2-(w[C]+i[lt[C]]),z=t[C]+t[E]-b/2-(w[C]+i[lt[C]]),ee=Nn(G,N,z);D[C]=Nn(ee,O,k),{placement:S,crossPlacement:B}=x,b?M=D[C]:B==="right"?M+=t[E]:B==="center"&&(M+=t[E]/2);let Q=S==="left"||S==="top"?r[v]:0,A={x:S==="top"||S==="bottom"?M:Q,y:S==="left"||S==="right"?M:Q};return{position:w,maxHeight:H,arrowOffsetLeft:D.left,arrowOffsetTop:D.top,placement:S,triggerAnchorPoint:A}}function L9(e){let{placement:t,targetNode:r,overlayNode:n,scrollNode:i,padding:a,shouldFlip:l,boundaryElement:o,offset:u,crossOffset:d,maxHeight:c,arrowSize:f=0,arrowBoundaryOffset:h=0,targetRect:p}=e,b=T9(),g=n instanceof HTMLElement?z9(n):document.documentElement,$=g===document.documentElement;const y=window.getComputedStyle(g).position;let x=!!y&&y!=="static",v=$?ri(r,!1,p):v4(r,g,!1,p);if(!$){let{marginTop:T,marginLeft:I}=window.getComputedStyle(r);v.top+=parseInt(T,10)||0,v.left+=parseInt(I,10)||0}let C=ri(n,!0),E=M9(n);C.width+=(E.left??0)+(E.right??0),C.height+=(E.top??0)+(E.bottom??0);let S=I9(i),B=b4(o,b),w=b4(g,b),P;if((o.tagName==="BODY"||o.tagName==="HTML")&&!$){let T=Na(g,!1);P={top:-(T.top-B.top),left:-(T.left-B.left),width:0,height:0}}else(o.tagName==="BODY"||o.tagName==="HTML")&&$?P={top:0,left:0,width:0,height:0}:P=v4(o,g,!1);let K=le(o,g);return O9(t,v,C,S,E,a,l,B,w,P,u,d,x,c,f,h,K,b)}function Na(e,t){let{top:r,left:n,width:i,height:a}=e.getBoundingClientRect();return t&&e instanceof e.ownerDocument.defaultView.HTMLElement&&(i=e.offsetWidth,a=e.offsetHeight),{top:r,left:n,width:i,height:a}}function ri(e,t,r){let{top:n,left:i,width:a,height:l}=r||Na(e,t),{scrollTop:o,scrollLeft:u,clientTop:d,clientLeft:c}=document.documentElement;return{top:n+o-d,left:i+u-c,width:a,height:l}}function v4(e,t,r,n){let i=window.getComputedStyle(e),a;if(i.position==="fixed")a=n||Na(e,r);else{a=ri(e,r,n);let l=ri(t,r),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 z9(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!x4(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!x4(t);)t=t.parentElement;return t||document.documentElement}function x4(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 C4=new WeakMap;function V9(e){let{triggerRef:t,isOpen:r,onClose:n}=e;s.useEffect(()=>{if(!r||n===null)return;let i=a=>{let l=X(a);if(!t.current||l instanceof Node&&!le(l,t.current)||l instanceof HTMLInputElement||l instanceof HTMLTextAreaElement)return;let o=n||C4.get(t.current);o&&o()};return C5(w5(t.current),"scroll",i,!0)},[r,n,t])}function _9(){return typeof window.ResizeObserver<"u"}function ni(e){const{ref:t,box:r,onResize:n}=e;let i=Se(n);s.useEffect(()=>{let a=t?.current;if(a)if(_9()){const l=new window.ResizeObserver(o=>{o.length&&i()});return l.observe(a,{box:r}),()=>{a&&l.unobserve(a)}}else return window.addEventListener("resize",i,!1),()=>{window.removeEventListener("resize",i,!1)}},[t,r])}let Tr=typeof document<"u"?window.visualViewport:null;function j9(e){let{direction:t}=ge(),{arrowSize:r,targetRef:n,overlayRef:i,arrowRef:a,scrollRef:l=i,placement:o="bottom",containerPadding:u=12,shouldFlip:d=!0,boundaryElement:c=typeof document<"u"?document.body:null,offset:f=0,crossOffset:h=0,shouldUpdatePosition:p=!0,isOpen:b=!0,onClose:g,maxHeight:$,arrowBoundaryOffset:y=0,getTargetRect:x}=e,[v,C]=s.useState(null),E=[p,o,i.current,n.current,a?.current,l.current,u,d,c,f,h,b,t,$,y,r],S=s.useRef(Tr?.scale);s.useEffect(()=>{b&&(S.current=Tr?.scale)},[b]);let B=s.useCallback(()=>{if(p===!1||!b||!i.current||!n.current||!c||Tr?.scale!==S.current)return;let K=null;if(l.current&&Yt(l.current)){let D=he()?.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;!$&&i.current&&(T.style.top="0px",T.style.bottom="",T.style.maxHeight=(window.visualViewport?.height??window.innerHeight)+"px");let I=L9({placement:U9(o,t),overlayNode:i.current,targetNode:n.current,scrollNode:l.current||i.current,padding:u,shouldFlip:d,boundaryElement:c,offset:f,crossOffset:h,maxHeight:$,arrowSize:r??(a?.current?Na(a.current,!0).width:0),arrowBoundaryOffset:y,targetRect:x?.(n.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 H=he();if(K&&H&&l.current){let D=H.getBoundingClientRect(),M=l.current.getBoundingClientRect(),G=D[K.type]-M[K.type];l.current.scrollTop+=G-K.offset}C(I)},E);fe(B,E),H9(B),ni({ref:i,onResize:B}),ni({ref:n,onResize:B});let w=s.useRef(!1);fe(()=>{let K,T=()=>{w.current=!0,clearTimeout(K),K=setTimeout(()=>{w.current=!1},500),B()},I=()=>{w.current&&T()};return Tr?.addEventListener("resize",T),Tr?.addEventListener("scroll",I),()=>{Tr?.removeEventListener("resize",T),Tr?.removeEventListener("scroll",I)}},[B]);let P=s.useCallback(()=>{w.current||g?.()},[g,w]);return V9({triggerRef:n,isOpen:b,onClose:g&&P}),{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 H9(e){fe(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function U9(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}function W9(e){let{ref:t,onInteractOutside:r,isDisabled:n,onInteractOutsideStart:i}=e,a=s.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),l=Se(u=>{r&&Aa(u,t)&&(i&&i(u),a.current.isPointerDown=!0)}),o=Se(u=>{r&&r(u)});s.useEffect(()=>{let u=a.current;if(n)return;const d=t.current,c=de(d);if(typeof PointerEvent<"u"){let f=h=>{u.isPointerDown&&Aa(h,t)&&o(h),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=p=>{u.ignoreEmulatedMouseEvents?u.ignoreEmulatedMouseEvents=!1:u.isPointerDown&&Aa(p,t)&&o(p),u.isPointerDown=!1},h=p=>{u.ignoreEmulatedMouseEvents=!0,u.isPointerDown&&Aa(p,t)&&o(p),u.isPointerDown=!1};return c.addEventListener("mousedown",l,!0),c.addEventListener("mouseup",f,!0),c.addEventListener("touchstart",l,!0),c.addEventListener("touchend",h,!0),()=>{c.removeEventListener("mousedown",l,!0),c.removeEventListener("mouseup",f,!0),c.removeEventListener("touchstart",l,!0),c.removeEventListener("touchend",h,!0)}}},[t,n])}function Aa(e,t){if(e.button>0)return!1;let r=X(e);if(r){const n=r.ownerDocument;if(!n||!le(n.documentElement,r)||r.closest("[data-react-aria-top-layer]"))return!1}return t.current?!e.composedPath().includes(t.current):!1}const St=[];function D4(e,t){let{onClose:r,shouldCloseOnBlur:n,isOpen:i,isDismissable:a=!1,isKeyboardDismissDisabled:l=!1,shouldCloseOnInteractOutside:o}=e,u=s.useRef(void 0);s.useEffect(()=>{if(i&&!St.includes(t))return St.push(t),()=>{let b=St.indexOf(t);b>=0&&St.splice(b,1)}},[i,t]);let d=()=>{St[St.length-1]===t&&r&&r()},c=b=>{const g=St[St.length-1];u.current=g,(!o||o(X(b)))&&g===t&&b.stopPropagation()},f=b=>{(!o||o(X(b)))&&(St[St.length-1]===t&&b.stopPropagation(),u.current===t&&d()),u.current=void 0},{keyboardProps:h}=Le({shortcuts:{Escape:()=>{if(!l){d();return}return!1}}});W9({ref:t,onInteractOutside:a&&i?f:void 0,onInteractOutsideStart:c});let{focusWithinProps:p}=vr({isDisabled:!n,onBlurWithin:b=>{!b.relatedTarget||o9(b.relatedTarget)||(!o||o(b.relatedTarget))&&r?.()}});return{overlayProps:{...h,...p},underlayProps:{}}}const ii=typeof document<"u"&&window.visualViewport;let Fa=0,Jo;function w4(e={}){let{isDisabled:t}=e;fe(()=>{if(!t)return Fa++,Fa===1&&($t()&&yt()?Jo=R9():Jo=G9()),()=>{Fa--,Fa===0&&Jo()}},[t])}function G9(){let e=window.innerWidth-document.documentElement.clientWidth;return ot(e>0&&("scrollbarGutter"in document.documentElement.style?Ta(document.documentElement,"scrollbarGutter","stable"):Ta(document.documentElement,"paddingRight",`${e}px`)),Ta(document.documentElement,"overflow","hidden"))}function R9(){let e=Ta(document.documentElement,"overflow","hidden"),t,r=!1,n=c=>{let f=X(c);t=or(f)?f:ut(f,!0),r=!1;let h=f.ownerDocument.defaultView.getSelection();h&&!h.isCollapsed&&h.containsNode(f,!0)&&(r=!0),c.composedPath().some(p=>p instanceof HTMLInputElement&&p.type==="range")&&(r=!0),"selectionStart"in f&&"selectionEnd"in f&&f.selectionStart<f.selectionEnd&&f.ownerDocument.activeElement===f&&(r=!0)},i=document.createElement("style"),a=Id();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(!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
|
|
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
|
|
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(o,null,2)))}}else return;a++}return
|
|
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 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"})}));
|
|
12
|
+
}`.trim(),document.head.prepend(i);let l=c=>{if(!(c.touches.length===2||r)){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=X(c),h=c.relatedTarget;h&&wn(h)?(h.focus({preventScroll:!0}),E4(h,wn(f))):h||f.parentElement?.closest("[tabindex]")?.focus({preventScroll:!0})},u=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(c){let f=he(),h=f!=null&&wn(f);u.call(this,{...c,preventScroll:!0}),(!c||!c.preventScroll)&&E4(this,h)};let d=ot(Qo(document,"touchstart",n,{passive:!1,capture:!0}),Qo(document,"touchmove",l,{passive:!1,capture:!0}),Qo(document,"blur",o,!0));return()=>{e(),d(),i.remove(),HTMLElement.prototype.focus=u}}function Ta(e,t,r){let n=e.style[t];return e.style[t]=r,()=>{e.style[t]=n}}function Qo(e,t,r,n){return e.addEventListener(t,r,n),()=>{e.removeEventListener(t,r,n)}}function E4(e,t){t||!ii?S4(e):ii.addEventListener("resize",()=>S4(e),{once:!0})}function S4(e){let t=document.scrollingElement||document.documentElement,r=e;for(;r&&r!==t;){let n=ut(r);if(n!==document.documentElement&&n!==document.body&&n!==r){let i=n.getBoundingClientRect(),a=r.getBoundingClientRect();if(a.top<i.top||a.bottom>i.top+r.clientHeight){let l=i.bottom;ii&&(l=Math.min(l,ii.offsetTop+ii.height));let o=a.top-i.top-((l-i.top)/2-a.height/2);n.scrollTo({top:Math.max(0,Math.min(n.scrollHeight-n.clientHeight,n.scrollTop+o)),behavior:"smooth"})}}r=n.parentElement}}function Z9(e,t){let{triggerRef:r,popoverRef:n,groupRef:i,isNonModal:a,isKeyboardDismissDisabled:l,shouldCloseOnInteractOutside:o,...u}=e,d=u.trigger==="SubmenuTrigger",{overlayProps:c,underlayProps:f}=D4({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!a||d,isKeyboardDismissDisabled:l,shouldCloseOnInteractOutside:o},i??n),{overlayProps:h,arrowProps:p,placement:b,triggerAnchorPoint:g}=j9({...u,targetRef:r,overlayRef:n,isOpen:t.isOpen,onClose:a&&!d?t.close:null,getTargetRect:u.getTargetRect??(t.point?()=>new DOMRect(t.point.x,t.point.y,0,0):void 0)});w4({isDisabled:a||!t.isOpen}),s.useEffect(()=>{if(t.isOpen&&n.current)return a?A9(i?.current??n.current):Yo([i?.current??n.current],{shouldUseInert:!0})},[a,t.isOpen,n,i]);let{focusWithinProps:$}=vr(e);return{popoverProps:W(c,h,$),arrowProps:p,underlayProps:f,placement:b,triggerAnchorPoint:g}}var P4={};P4={dismiss:"تجاهل"};var k4={};k4={dismiss:"Отхвърляне"};var B4={};B4={dismiss:"Odstranit"};var N4={};N4={dismiss:"Luk"};var A4={};A4={dismiss:"Schließen"};var F4={};F4={dismiss:"Απόρριψη"};var T4={};T4={dismiss:"Dismiss"};var I4={};I4={dismiss:"Descartar"};var M4={};M4={dismiss:"Lõpeta"};var K4={};K4={dismiss:"Hylkää"};var O4={};O4={dismiss:"Rejeter"};var L4={};L4={dismiss:"התעלם"};var z4={};z4={dismiss:"Odbaci"};var V4={};V4={dismiss:"Elutasítás"};var _4={};_4={dismiss:"Ignora"};var j4={};j4={dismiss:"閉じる"};var H4={};H4={dismiss:"무시"};var U4={};U4={dismiss:"Atmesti"};var W4={};W4={dismiss:"Nerādīt"};var G4={};G4={dismiss:"Lukk"};var R4={};R4={dismiss:"Negeren"};var Z4={};Z4={dismiss:"Zignoruj"};var Y4={};Y4={dismiss:"Descartar"};var q4={};q4={dismiss:"Dispensar"};var X4={};X4={dismiss:"Revocare"};var J4={};J4={dismiss:"Пропустить"};var Q4={};Q4={dismiss:"Zrušiť"};var e3={};e3={dismiss:"Opusti"};var t3={};t3={dismiss:"Odbaci"};var r3={};r3={dismiss:"Avvisa"};var n3={};n3={dismiss:"Kapat"};var i3={};i3={dismiss:"Скасувати"};var a3={};a3={dismiss:"取消"};var l3={};l3={dismiss:"關閉"};var o3={};o3={"ar-AE":P4,"bg-BG":k4,"cs-CZ":B4,"da-DK":N4,"de-DE":A4,"el-GR":F4,"en-US":T4,"es-ES":I4,"et-EE":M4,"fi-FI":K4,"fr-FR":O4,"he-IL":L4,"hr-HR":z4,"hu-HU":V4,"it-IT":_4,"ja-JP":j4,"ko-KR":H4,"lt-LT":U4,"lv-LV":W4,"nb-NO":G4,"nl-NL":R4,"pl-PL":Z4,"pt-BR":Y4,"pt-PT":q4,"ro-RO":X4,"ru-RU":J4,"sk-SK":Q4,"sl-SI":e3,"sr-SP":t3,"sv-SE":r3,"tr-TR":n3,"uk-UA":i3,"zh-CN":a3,"zh-TW":l3};function Y9(e){return e&&e.__esModule?e.default:e}function es(e){let{onDismiss:t,...r}=e,n=Ne(Y9(o3),"@react-aria/overlays"),i=Mt(r,n.format("dismiss")),a=()=>{t&&t()};return s.createElement(ur,null,s.createElement("button",{...i,tabIndex:-1,onClick:a,style:{width:1,height:1}}))}const s3=s.forwardRef(({children:e,...t},r)=>{let n=s.useRef(!1),i=s.useContext(Bn),a=W(i||{},{...t,register(){n.current=!0,i&&i.register()}});return a.ref=Be(r||i?.ref),Sl(i,a.ref),s.useEffect(()=>{n.current||(process.env.NODE_ENV!=="production"&&console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component."),n.current=!0)},[]),s.createElement(Bn.Provider,{value:a},e)});function q9({children:e}){let t=s.useMemo(()=>({register:()=>{}}),[]);return s.createElement(Bn.Provider,{value:t},e)}const X9=s.createContext({});function J9(){return s.useContext(X9)??{}}const u3=s.createContext(null);function ts(e){let t=Wt(),{portalContainer:r=t?null:document.body,isExiting:n}=e,[i,a]=s.useState(!1),l=s.useMemo(()=>({contain:i,setContain:a}),[i,a]),{getContainer:o}=J9();if(!e.portalContainer&&o&&(r=o()),!r)return null;let u=e.children;return e.disableFocusManagement||(u=s.createElement(wa,{restoreFocus:!0,contain:(e.shouldContainFocus||i)&&!n},u)),u=s.createElement(u3.Provider,{value:l},s.createElement(q9,null,s.createElement(Wi.Provider,{value:null},u))),Ut.createPortal(u,r)}function d3(){let t=s.useContext(u3)?.setContain;fe(()=>{t?.(!0)},[t])}function ai(e){let[t,r]=_e(e.isOpen,e.defaultOpen||!1,e.onOpenChange),[n,i]=s.useState(null);const a=s.useCallback(()=>{r(!0)},[r]),l=s.useCallback(()=>{r(!1)},[r]),o=s.useCallback(()=>{r(!t)},[r,t]);return{isOpen:t,setOpen:r,open:a,close:l,toggle:o,point:n,setPoint:i}}function rs(e,t=!0){let[r,n]=s.useState(!0),i=r&&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]),c3(e,i,s.useCallback(()=>n(!1),[])),i}function ns(e,t){let[r,n]=s.useState(t?"open":"closed");switch(r){case"open":t||n("exiting");break;case"closed":case"exiting":t&&n("open");break}let i=r==="exiting";return c3(e,i,s.useCallback(()=>{n(a=>a==="exiting"?"closed":a)},[])),i}function c3(e,t,r){fe(()=>{if(t&&e.current){if(!("getAnimations"in e.current)){r();return}let n=e.current.getAnimations();if(n.length===0){r();return}let i=!1;return Promise.allSettled(n.map(a=>a.finished)).then(()=>{i||Ut.flushSync(()=>{r()})}),()=>{i=!0}}},[e,t,r])}const li=s.createContext(null),f3=s.createContext(null),h3=s.forwardRef(function(t,r){[t,r]=me(t,r,li);let n=s.useContext(Vt),i=ai(t),a=t.isOpen!=null||t.defaultOpen!=null||!n?i:n,l=ns(r,a.isOpen),o=t.isExiting||!t.shouldSkipAnimation&&l||!1,u=xd(),{direction:d}=ge();if(u){let c=t.children;return typeof c=="function"&&(c=c({trigger:t.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),s.createElement(s.Fragment,null,c)}return a&&!a.isOpen&&!o?null:s.createElement(Q9,{...t,triggerRef:t.triggerRef,state:a,popoverRef:r,isExiting:o,dir:d})});function Q9({state:e,isExiting:t,UNSTABLE_portalContainer:r,clearContexts:n,...i}){let a=s.useRef(null),l=s.useRef(null),o=s.useContext(f3),u=o&&i.trigger==="SubmenuTrigger",{popoverProps:d,underlayProps:c,arrowProps:f,placement:h,triggerAnchorPoint:p}=Z9({...i,offset:i.offset??8,arrowRef:a,groupRef:u?o:l},e),b=i.popoverRef,g=rs(b,!!h),$=i.isEntering||!i.shouldSkipAnimation&&g||!1,y=se({...i,defaultClassName:"react-aria-Popover",values:{trigger:i.trigger||null,placement:h,isEntering:$,isExiting:t}}),x=!i.isNonModal||i.trigger==="SubmenuTrigger"||i.trigger==="PreviewTrigger",[v,C]=s.useState(i.trigger==="PreviewTrigger");fe(()=>{b.current&&C(x&&!b.current.querySelector("[role=dialog]"))},[b,x]),s.useEffect(()=>{v&&i.trigger!=="PreviewTrigger"&&(i.trigger!=="SubmenuTrigger"||jr()!=="pointer")&&b.current&&!Yt(b.current)&&Oe(b.current)},[v,b,i.trigger]);let E=s.useMemo(()=>{let T=y.children;if(n)for(let I of n)T=s.createElement(I.Provider,{value:null},T);return T},[y.children,n]),[S,B]=s.useState(null),w=s.useCallback(()=>{i.triggerRef.current&&B(i.triggerRef.current.getBoundingClientRect().width+"px")},[i.triggerRef]);fe(w,[w]),ni({ref:y.style?.["--trigger-width"]?void 0:i.triggerRef,onResize:w});let P={...d.style,"--trigger-anchor-point":p?`${p.x}px ${p.y}px`:void 0,...y.style,"--trigger-width":y.style?.["--trigger-width"]||S},K=s.createElement(re.div,{...W(ne(i,{global:!0}),d),...y,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:P,dir:i.dir,"data-trigger":i.trigger,"data-placement":h,"data-entering":$||void 0,"data-exiting":t||void 0},!i.isNonModal&&s.createElement(es,{onDismiss:e.close}),s.createElement(h4.Provider,{value:{...f,placement:h,ref:a}},E),s.createElement(es,{onDismiss:e.close}));return u?s.createElement(ts,{...i,shouldContainFocus:v&&i.trigger!=="PreviewTrigger",isExiting:t,portalContainer:r??o?.current??void 0},K):s.createElement(ts,{...i,shouldContainFocus:v&&i.trigger!=="PreviewTrigger",isExiting:t,portalContainer:r},!i.isNonModal&&e.isOpen&&s.createElement("div",{"data-testid":"underlay",...c,style:{position:"fixed",inset:0}}),s.createElement("div",{ref:l,style:{display:"contents"}},s.createElement(f3.Provider,{value:l},K)))}const e8=s.createContext({});var p3={};p3={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var m3={};m3={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var b3={};b3={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var g3={};g3={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var $3={};$3={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var y3={};y3={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var v3={};v3={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var x3={};x3={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var C3={};C3={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var D3={};D3={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var w3={};w3={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var E3={};E3={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var S3={};S3={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var P3={};P3={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var k3={};k3={longPressMessage:"Premi a lungo o premi Alt + Freccia giù per aprire il menu"};var B3={};B3={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var N3={};N3={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var A3={};A3={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var F3={};F3={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var T3={};T3={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var I3={};I3={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var M3={};M3={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var K3={};K3={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var O3={};O3={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var L3={};L3={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var z3={};z3={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var V3={};V3={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var _3={};_3={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var j3={};j3={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var H3={};H3={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var U3={};U3={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var W3={};W3={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var G3={};G3={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var R3={};R3={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var Z3={};Z3={"ar-AE":p3,"bg-BG":m3,"cs-CZ":b3,"da-DK":g3,"de-DE":$3,"el-GR":y3,"en-US":v3,"es-ES":x3,"et-EE":C3,"fi-FI":D3,"fr-FR":w3,"he-IL":E3,"hr-HR":S3,"hu-HU":P3,"it-IT":k3,"ja-JP":B3,"ko-KR":N3,"lt-LT":A3,"lv-LV":F3,"nb-NO":T3,"nl-NL":I3,"pl-PL":M3,"pt-BR":K3,"pt-PT":O3,"ro-RO":L3,"ru-RU":z3,"sk-SK":V3,"sl-SI":_3,"sr-SP":j3,"sv-SE":H3,"tr-TR":U3,"uk-UA":W3,"zh-CN":G3,"zh-TW":R3};function t8(e){let{onContextMenu:t}=e,r=s.useRef(!1),{longPressProps:n}=Ho({onLongPressStart(){r.current=!1},onLongPress(i){r.current?r.current=!1:t?.({target:i.target,x:i.x,y:i.y})}});return t?{contextMenuProps:W($t()?n:{},{onContextMenu(i){i.stopPropagation(),i.preventDefault(),r.current=!0;let a=i.currentTarget.getBoundingClientRect();t({target:i.currentTarget,x:i.clientX-a.x,y:i.clientY-a.y})},onKeyDown(i){if(tt()&&i.ctrlKey&&i.key==="Enter"){r.current=!1;let a=i.currentTarget;i.stopPropagation(),setTimeout(()=>{if(r.current)r.current=!1;else{let l=a.getBoundingClientRect();t({target:a,x:l.width/2,y:l.height/2})}},10)}}})}:{contextMenuProps:{}}}function Y3(e,t,r){let{type:n}=e,{isOpen:i}=t;s.useEffect(()=>{r&&r.current&&C4.set(r.current,t.close)});let a;n==="menu"?a=!0:n==="listbox"&&(a="listbox");let l=De();return{triggerProps:{"aria-haspopup":a,"aria-expanded":i,"aria-controls":i?l:void 0,onPress:t.toggle},overlayProps:{id:l}}}function r8(e){return e&&e.__esModule?e.default:e}function is(e,t,r){let{type:n="menu",isDisabled:i,trigger:a="press"}=e,l=De(),{triggerProps:o,overlayProps:u}=Y3({type:n},t,r),d=($,y,x="first")=>{if(!$||y.isDefaultPrevented())return!1;t.toggle(x)},{keyboardProps:c}=Le({isDisabled:i,shortcuts:{Enter:$=>d(a!=="longPress",$,"first")," ":$=>d(a!=="longPress",$,"first"),ArrowDown:$=>d(a!=="longPress",$,"first"),ArrowUp:$=>d(a!=="longPress",$,"last"),"Alt+Enter":$=>d(a==="longPress",$,"first"),"Alt+ ":$=>d(a==="longPress",$,"first"),"Alt+ArrowDown":$=>d(!0,$,"first"),"Alt+ArrowUp":$=>d(!0,$,"last")}}),f=Ne(r8(Z3),"@react-aria/menu"),{longPressProps:h}=Ho({isDisabled:i||a!=="longPress",accessibilityDescription:f.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),p={preventFocusOnPress:!0,onPressStart($){$.pointerType!=="touch"&&$.pointerType!=="keyboard"&&!i&&(et($.target),t.open($.pointerType==="virtual"?"first":null))},onPress($){$.pointerType==="touch"&&!i&&(et($.target),t.toggle())}};delete o.onPress;let{contextMenuProps:b}=t8({onContextMenu($){let y=$.target.getBoundingClientRect();t.setPoint({x:y.x+$.x,y:y.y+$.y}),t.open()}});s.useEffect(()=>{if(t.isOpen&&a==="contextMenu"){let $=y=>{(y.button===2||y.button===0&&y.ctrlKey===!0)&&X(y)===document.body&&t.close()};return document.addEventListener("mousedown",$),()=>document.removeEventListener("mousedown",$)}},[t,a]);let g;if(a==="press")g={...p,...c};else if(a==="longPress")g={...h,...c};else if(a==="contextMenu"){g=b;let{"aria-haspopup":$,"aria-expanded":y,"aria-controls":x,...v}=o;o=v}return{menuTriggerProps:{...o,...g,id:l},menuProps:{...u,"aria-labelledby":l,autoFocus:t.focusStrategy||!0,onClose:t.close}}}const q3=new WeakMap;function n8(e,t,r){let{shouldFocusWrap:n=!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=ne(e,{labelable:!0}),{listProps:u}=r4({...l,ref:r,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:n,linkBehavior:"override"});return q3.set(t,{onClose:e.onClose,onAction:e.onAction,shouldUseVirtualFocus:e.shouldUseVirtualFocus}),{menuProps:W(o,{onKeyDown:i,onKeyUp:a},{role:"menu",...u,onKeyDown:d=>{(d.key!=="Escape"||e.shouldUseVirtualFocus)&&u.onKeyDown?.(d)}})}}function i8(e,t,r){let{id:n,key:i,closeOnSelect:a,shouldCloseOnSelect:l,isVirtualized:o,"aria-haspopup":u,onPressStart:d,onPressUp:c,onPress:f,onPressChange:h,onPressEnd:p,onClick:b,onHoverStart:g,onHoverChange:$,onHoverEnd:y,onKeyDown:x,onKeyUp:v,onFocus:C,onFocusChange:E,onBlur:S,selectionManager:B=t.selectionManager}=e,w=!!u,P=w&&e["aria-expanded"]==="true",K=e.isDisabled??B.isDisabled(i),T=e.isSelected??B.isSelected(i),I=q3.get(t),H=t.collection.getItem(i),D=e.onClose||I.onClose,M=pr(),G=()=>{if(!w&&(H?.props?.onAction?H.props.onAction():e.onAction&&e.onAction(i),I.onAction)){let xe=I.onAction;xe(i,H?.value)}},O="menuitem";w||(B.selectionMode==="single"?O="menuitemradio":B.selectionMode==="multiple"&&(O="menuitemcheckbox"));let J=mt(),k=mt(),N=mt(),z={id:n,"aria-disabled":K||void 0,role:O,"aria-label":e["aria-label"],"aria-labelledby":J,"aria-describedby":[e["aria-describedby"],k,N].filter(Boolean).join(" ")||void 0,"aria-controls":e["aria-controls"],"aria-haspopup":u,"aria-expanded":e["aria-expanded"]};if(B.selectionMode!=="none"&&!w&&(z["aria-checked"]=T),o){let xe=Number(H?.index);z["aria-posinset"]=Number.isNaN(xe)?void 0:xe+1,z["aria-setsize"]=Wo(t.collection)}let ee=s.useRef(!1),Q=xe=>{h?.(xe),ee.current=xe},A=s.useRef(null),F=xe=>{xe.pointerType!=="keyboard"&&(A.current={pointerType:xe.pointerType}),xe.pointerType==="mouse"&&(ee.current||xe.target.click()),c?.(xe)},V=xe=>{b?.(xe),G(),Qu(xe,M,H.props.href,H?.props.routerOptions);let hr=A.current?.pointerType==="keyboard"?A.current?.key==="Enter"||B.selectionMode==="none"||B.isLink(i):B.selectionMode!=="multiple"||B.isLink(i);hr=l??a??hr,D&&!w&&hr&&D(),A.current=null},{itemProps:L,isFocused:te}=Xn({id:n,selectionManager:B,key:i,ref:r,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none",shouldUseVirtualFocus:I.shouldUseVirtualFocus}),{pressProps:oe,isPressed:Ve}=Xe({onPressStart:d,onPress:f,onPressUp:F,onPressChange:Q,onPressEnd:p,isDisabled:K}),{hoverProps:j}=Fe({isDisabled:K,onHoverStart(xe){!qt()&&!(P&&u)&&(B.setFocused(!0),B.setFocusedKey(i)),g?.(xe)},onHoverChange:$,onHoverEnd:y}),{keyboardProps:R}=Le({shortcuts:{" ":xe=>{A.current={pointerType:"keyboard",key:" "},X(xe).click(),Hr("keyboard")},Enter:xe=>{A.current={pointerType:"keyboard",key:"Enter"};let hr=X(xe);if(hr.tagName!=="A"){hr.click(),Hr("keyboard");return}return Hr("keyboard"),{shouldPreventDefault:!1,shouldContinuePropagation:!1}}},onKeyDown:x,onKeyUp:v}),{focusableProps:pe}=Jt({onBlur:S,onFocus:C,onFocusChange:E},r),be=ne(H?.props);delete be.id;let At=Ki(H?.props);return{menuItemProps:{...z,...W(be,At,w?{onFocus:L.onFocus,"data-collection":L["data-collection"],"data-key":L["data-key"]}:L,oe,j,R,pe,I.shouldUseVirtualFocus||w?{onMouseDown:xe=>xe.preventDefault()}:void 0,K?void 0:{onClick:V}),tabIndex:L.tabIndex!=null&&P&&!I.shouldUseVirtualFocus?-1:L.tabIndex},labelProps:{id:J},descriptionProps:{id:k},keyboardShortcutProps:{id:N},isFocused:te,isFocusVisible:te&&B.isFocused&&qt()&&!P,isSelected:T,isPressed:Ve,isDisabled:K}}function a8(e){let{heading:t,"aria-label":r}=e,n=De();return{itemProps:{role:"presentation"},headingProps:t?{id:n,role:"presentation"}:{},groupProps:{role:"group","aria-label":r,"aria-labelledby":t?n:void 0}}}function as(e){let t=ai(e),[r,n]=s.useState(null),[i,a]=s.useState([]),l=()=>{a([]),t.close()};return{focusStrategy:r,...t,open(d=null){n(d),t.open()},toggle(d=null){n(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 l8{constructor(t,{expandedKeys:r}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t,r=r||new Set;let n=l=>{if(this.keyMap.set(l.key,l),l.childNodes&&(l.type==="section"||r.has(l.key)))for(let o of l.childNodes)n(o)};for(let l of t)n(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 r=this.keyMap.get(t);return r?r.prevKey??null:null}getKeyAfter(t){let r=this.keyMap.get(t);return r?r.nextKey??null:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)??null}at(t){const r=[...this.getKeys()];return this.getItem(r[t])}}function o8(e){let{onExpandedChange:t}=e,[r,n]=_e(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),i=Qn(e),a=s.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),l=Zo(e,s.useCallback(u=>new l8(u,{expandedKeys:r}),[r]),null);return s.useEffect(()=>{i.focusedKey!=null&&!l.getItem(i.focusedKey)&&i.setFocusedKey(null)},[l,i.focusedKey]),{collection:l,expandedKeys:r,disabledKeys:a,toggleKey:u=>{n(s8(r,u))},setExpandedKeys:n,selectionManager:new un(l,i)}}function s8(e,t){let r=new Set(e);return r.has(t)?r.delete(t):r.add(t),r}const X3=s.createContext(null),ls=s.createContext(null),Ia=s.createContext(null),Ma=s.createContext(null);function Ka(e){let t=as(e),r=s.useRef(null),{menuTriggerProps:n,menuProps:i}=is({...e,type:"menu"},t,r),a=s.useRef(null);return xd()?null:s.createElement(Ee,{values:[[X3,{...i,ref:a}],[Vt,t],[Ia,t],[li,{trigger:"MenuTrigger",triggerRef:r,scrollRef:a,placement:"bottom start","aria-labelledby":i["aria-labelledby"],offset:e.trigger==="contextMenu"?0:void 0}]]},s.createElement(s3,{...n,ref:r,isPressed:t.isOpen},e.children))}const u8=s.createContext(null),Bu=class Bu extends nt{filter(t,r,n){let i=t.getItem(this.firstChildKey);if(i&&n(i.textValue,this)){let a=this.clone();return r.addDescendants(a,t),a}return null}};Bu.type="submenutrigger";let J3=Bu;const Q3=s.forwardRef(function(t,r){return[t,r]=me(t,r,X3),s.createElement(gr,{content:s.createElement($r,t)},n=>s.createElement(d8,{props:t,collection:n,menuRef:r}))});function d8({props:e,collection:t,menuRef:r}){[e,r]=me(e,r,Sn);let{filter:n,...i}=e,a=s.useMemo(()=>n?t.filter(n):t,[t,n]),l=o8({...e,collection:a,children:void 0}),o=s.useContext(Ia),{isVirtualized:u,CollectionRoot:d}=s.useContext($e),{menuProps:c}=n8({...e,isVirtualized:u,onClose:e.onClose||o?.close},l,r),f=se({...e,children:void 0,defaultClassName:"react-aria-Menu",values:{isEmpty:l.collection.size===0}}),h=null;l.collection.size===0&&e.renderEmptyState&&(h=s.createElement("div",{role:"menuitem",style:{display:"contents"}},e.renderEmptyState()));let p=ne(e,{global:!0});return s.createElement(wa,null,s.createElement(re.div,{...W(p,f,c),ref:r,slot:e.slot||void 0,"data-empty":l.collection.size===0||void 0,onScroll:e.onScroll},s.createElement(Ee,{values:[[ls,l],[To,{elementType:"div"}],[Bd,{name:"MenuSection",render:f8}],[u8,{parentMenuRef:r,shouldUseVirtualFocus:i?.shouldUseVirtualFocus}],[oi,{shouldCloseOnSelect:e.shouldCloseOnSelect}],[Sn,null],[Pn,null],[Ma,l.selectionManager],[Ia,o??as({})]]},s.createElement(Rn,null,s.createElement(d,{collection:l.collection,persistedKeys:Ad(l.selectionManager.focusedKey),scrollRef:r}))),h))}class c8 extends un{constructor(t,r){super(t.collection,r),this.parent=t}get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(t,r){return this.parent.setFocusedKey(t,r)}setFocused(t){this.parent.setFocused(t)}get childFocusStrategy(){return this.parent.childFocusStrategy}}function f8(e,t,r,n="react-aria-MenuSection"){let i=s.useContext(ls),{CollectionBranch:a}=s.useContext($e),[l,o]=Rt(),{headingProps:u,groupProps:d}=a8({heading:o,"aria-label":r.props["aria-label"]??void 0}),c=se({...e,id:void 0,children:void 0,defaultClassName:n,className:r.props?.className,style:r.props?.style,values:void 0}),f=s.useContext(Ma),h=Qn(e),p=e.selectionMode!=null?new c8(f,h):f,b=Re(oi)?.shouldCloseOnSelect,g=ne(e,{global:!0});return delete g.id,s.createElement(re.section,{...W(g,c,d),ref:t},s.createElement(Ee,{values:[[Fo,{...u,ref:l}],[Ma,p],[oi,{shouldCloseOnSelect:e.shouldCloseOnSelect??b}]]},s.createElement(a,{collection:i.collection,parent:r})))}const oi=s.createContext(null),ep=vt(Hi,function(t,r,n){[t,r]=me(t,r,oi);let i=Re(oi)?.id,a=s.useContext(ls),l=Be(r),o=s.useContext(Ma),{isVirtualized:u}=s.useContext($e),{menuItemProps:d,labelProps:c,descriptionProps:f,keyboardShortcutProps:h,...p}=i8({...t,id:i,key:n.key,selectionManager:o,isVirtualized:u},a,l),{hoverProps:b,isHovered:g}=Fe({isDisabled:p.isDisabled}),$=se({...t,id:void 0,children:n.rendered,defaultClassName:"react-aria-MenuItem",values:{...p,isHovered:g,isFocusVisible:p.isFocusVisible,selectionMode:o.selectionMode,selectionBehavior:o.selectionBehavior,hasSubmenu:!!t["aria-haspopup"],isOpen:t["aria-expanded"]==="true"}}),y=t.href?re.a:re.div,x=ne(t,{global:!0});return delete x.id,delete x.onClick,s.createElement(y,{...W(x,$,d,b),ref:l,"data-disabled":p.isDisabled||void 0,"data-hovered":g||void 0,"data-focused":p.isFocused||void 0,"data-focus-visible":p.isFocusVisible||void 0,"data-pressed":p.isPressed||void 0,"data-selected":p.isSelected||void 0,"data-selection-mode":o.selectionMode==="none"?void 0:o.selectionMode,"data-has-submenu":!!t["aria-haspopup"]||void 0,"data-open":t["aria-expanded"]==="true"||void 0},s.createElement(Ee,{values:[[Je,{slots:{[Ft]:c,label:c,description:f}}],[e8,h],[Zn,{isSelected:p.isSelected}]]},$.children))});function h8(e,t){let{role:r="dialog"}=e,n=mt();n=e["aria-label"]?void 0:n;let i=mt();i=r==="alertdialog"&&!e["aria-describedby"]?i:void 0;let a=s.useRef(!1);s.useEffect(()=>{if(t.current&&!Yt(t.current)){Oe(t.current);let u=setTimeout(()=>{(he()===t.current||he()===document.body)&&(a.current=!0,t.current&&(t.current.blur(),Oe(t.current)),a.current=!1)},500);return()=>{clearTimeout(u)}}},[t]),d3();let l=s.useRef(!1);s.useEffect(()=>{if(process.env.NODE_ENV!=="production"&&!l.current&&t.current){let u=t.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 o=e["aria-describedby"]??i;return{dialogProps:{...ne(e,{labelable:!0}),role:r,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]??n,"aria-describedby":o,onBlur:u=>{a.current&&u.stopPropagation()}},titleProps:{id:n},contentProps:{id:i}}}const tp=s.createContext(null),Vt=s.createContext(null);function p8(e){let t=as(e),r=s.useRef(null),{triggerProps:n,overlayProps:i}=Y3({type:"dialog"},t,r);return n.id=De(),i["aria-labelledby"]=n.id,s.createElement(Ee,{values:[[Vt,t],[Ia,t],[tp,i],[li,{trigger:"DialogTrigger",triggerRef:r,id:i.id,"aria-labelledby":i["aria-labelledby"]}]]},s.createElement(s3,{...n,ref:r,isPressed:t.isOpen},e.children))}const rp=s.forwardRef(function(t,r){let n=t["aria-labelledby"];[t,r]=me(t,r,tp);let{dialogProps:i,titleProps:a,contentProps:l}=h8({...t,"aria-labelledby":n},r),o=s.useContext(Vt);!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 u=se({defaultClassName:"react-aria-Dialog",className:t.className,style:t.style,children:t.children,values:{close:o?.close||(()=>{})}}),d=ne(t,{global:!0});return s.createElement(re.section,{...W(d,u,i),render:t.render,ref:r,slot:t.slot||void 0},s.createElement(Ee,{values:[[ra,{slots:{[Ft]:{},title:{...a,level:2}}}],[Je,{slots:{[Ft]:{},description:l}}],[Ct,{slots:{[Ft]:{},close:{onPress:()=>o?.close()}}}]]},u.children))});var np={};np={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 ip={};ip={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 ap={};ap={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 lp={};lp={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 op={};op={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 sp={};sp={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 up={};up={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 dp={};dp={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 cp={};cp={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 fp={};fp={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 hp={};hp={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 pp={};pp={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 mp={};mp={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 bp={};bp={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 gp={};gp={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 $p={};$p={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 yp={};yp={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 vp={};vp={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 xp={};xp={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 Cp={};Cp={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 Dp={};Dp={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 wp={};wp={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 Ep={};Ep={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 Sp={};Sp={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 Pp={};Pp={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 kp={};kp={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 Bp={};Bp={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 Np={};Np={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 Ap={};Ap={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 Fp={};Fp={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 Tp={};Tp={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 Ip={};Ip={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 Mp={};Mp={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 Kp={};Kp={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 Op={};Op={"ar-AE":np,"bg-BG":ip,"cs-CZ":ap,"da-DK":lp,"de-DE":op,"el-GR":sp,"en-US":up,"es-ES":dp,"et-EE":cp,"fi-FI":fp,"fr-FR":hp,"he-IL":pp,"hr-HR":mp,"hu-HU":bp,"it-IT":gp,"ja-JP":$p,"ko-KR":yp,"lt-LT":vp,"lv-LV":xp,"nb-NO":Cp,"nl-NL":Dp,"pl-PL":wp,"pt-BR":Ep,"pt-PT":Sp,"ro-RO":Pp,"ru-RU":kp,"sk-SK":Bp,"sl-SI":Np,"sr-SP":Ap,"sv-SE":Fp,"tr-TR":Tp,"uk-UA":Ip,"zh-CN":Mp,"zh-TW":Kp};function m8(e){return e&&e.__esModule?e.default:e}function b8(e,t){let{buttonRef:r,popoverRef:n,inputRef:i,listBoxRef:a,keyboardDelegate:l,layoutDelegate:o,shouldFocusWrap:u,isReadOnly:d,isDisabled:c}=e,f=s.useRef(null);r=r??f;let h=Ne(m8(Op),"@react-aria/combobox"),{menuTriggerProps:p,menuProps:b}=is({type:"listbox",isDisabled:c||d},t,r);Da.set(t,{id:b.id});let{collection:g}=t,{disabledKeys:$}=t.selectionManager,y=s.useMemo(()=>l||new qn({collection:g,disabledKeys:$,ref:a,layoutDelegate:o}),[l,o,g,$,a]),{collectionProps:x}=Sa({selectionManager:t.selectionManager,keyboardDelegate:y,disallowTypeAhead:!0,disallowEmptySelection:!0,shouldFocusWrap:u,ref:i,isVirtualized:!0}),v=pr(),{keyboardProps:C}=Le({shortcuts:{Enter:j=>{let R=t.isOpen;if(t.isOpen&&a.current&&t.selectionManager.focusedKey!=null){let pe=t.collection.getItem(t.selectionManager.focusedKey);if(pe?.props.href){let be=a.current.querySelector(`[data-key="${CSS.escape(t.selectionManager.focusedKey.toString())}"]`);return be instanceof HTMLAnchorElement&&v.open(be,j,pe.props.href,pe.props.routerOptions),t.close(),{shouldPreventDefault:R}}else if(pe?.props.onAction)return pe.props.onAction(),t.close(),{shouldPreventDefault:R}}return t.commit(),{shouldPreventDefault:R}},Tab:()=>{if(t.isOpen&&a.current&&t.selectionManager.focusedKey!=null){let j=t.collection.getItem(t.selectionManager.focusedKey);if(j?.props.href)return t.close(),{shouldPreventDefault:!1};if(j?.props.onAction)return j.props.onAction(),t.close(),{shouldPreventDefault:!1,shouldContinuePropagation:!0}}return t.isOpen&&t.commit(),{shouldPreventDefault:!1,shouldContinuePropagation:!0}},Escape:()=>{let j=!1;return(!t.selectionManager.isEmpty||t.inputValue===""||e.allowsCustomValue)&&(j=!0),t.revert(),{shouldContinuePropagation:j}}}}),{keyboardProps:E}=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=j=>{let R=r?.current&&r.current===j.relatedTarget,pe=le(n.current,j.relatedTarget);R||pe||(e.onBlur&&e.onBlur(j),t.setFocused(!1))},B=j=>{t.isFocused||(e.onFocus&&e.onFocus(j),t.setFocused(!0))},w=g8([t.selectionManager.selectedKeys,t.selectionManager.selectionMode]),{isInvalid:P,validationErrors:K,validationDetails:T}=t.displayValidation,{labelProps:I,inputProps:H,descriptionProps:D,errorMessageProps:M}=w0({...e,isRequired:e.selectionMode==="multiple"?e.isRequired&&t.selectionManager.isEmpty:e.isRequired,onChange:t.setInputValue,onKeyDown:d?e.onKeyDown:ot(t.isOpen&&x.onKeyDown,C.onKeyDown,E.onKeyDown,e.onKeyDown),onBlur:S,value:t.inputValue,defaultValue:t.defaultInputValue,onFocus:B,autoComplete:"off",validate:void 0,[Hn]:t,"aria-describedby":[w,e["aria-describedby"]].filter(Boolean).join(" ")||void 0},i);nn(i,t.defaultValue,t.setValue);let G=j=>{j.pointerType==="touch"&&(i.current?.focus(),t.toggle(null,"manual"))},O=j=>{j.pointerType!=="touch"&&(i.current?.focus(),t.toggle(j.pointerType==="keyboard"||j.pointerType==="virtual"?"first":null,"manual"))},J=Mt({id:p.id,"aria-label":h.format("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||I.id}),k=Mt({id:b.id,"aria-label":h.format("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||I.id}),N=s.useRef(0),z=j=>{if(c||d)return;if(j.timeStamp-N.current<500){j.preventDefault(),i.current?.focus();return}let R=X(j).getBoundingClientRect(),pe=j.changedTouches[0],be=Math.ceil(R.left+.5*R.width),At=Math.ceil(R.top+.5*R.height);pe.clientX===be&&pe.clientY===At&&(j.preventDefault(),i.current?.focus(),t.toggle(null,"manual"),N.current=j.timeStamp)},ee=t.selectionManager.focusedKey!=null&&t.isOpen?t.collection.getItem(t.selectionManager.focusedKey):void 0,Q=ee?.parentKey??null,A=t.selectionManager.focusedKey??null,F=s.useRef(Q),V=s.useRef(A);s.useEffect(()=>{if(Mi()&&ee!=null&&A!=null&&A!==V.current){let j=t.selectionManager.isSelected(A),R=Q!=null?t.collection.getItem(Q):null,pe=R?.["aria-label"]||(typeof R?.rendered=="string"?R.rendered:"")||"",be=h.format("focusAnnouncement",{isGroupChange:(R&&Q!==F.current)??!1,groupTitle:pe,groupCount:R?[...Me(R,t.collection)].length:0,optionText:ee["aria-label"]||ee.textValue||"",isSelected:j});xt(be)}F.current=Q,V.current=A});let L=Wo(t.collection),te=s.useRef(L),oe=s.useRef(t.isOpen);s.useEffect(()=>{let j=t.isOpen!==oe.current&&(t.selectionManager.focusedKey==null||Mi());if(t.isOpen&&(j||L!==te.current)){let R=h.format("countAnnouncement",{optionCount:L});xt(R)}te.current=L,oe.current=t.isOpen});let Ve=s.useRef(t.selectedKey);return s.useEffect(()=>{if(Mi()&&t.isFocused&&t.selectedItem&&t.selectedKey!==Ve.current){let j=t.selectedItem["aria-label"]||t.selectedItem.textValue||"",R=h.format("selectedAnnouncement",{optionText:j});xt(R)}Ve.current=t.selectedKey}),s.useEffect(()=>{if(t.isOpen)return Yo([i.current,n.current].filter(j=>j!=null))},[t.isOpen,i,n]),Vn(()=>{!ee&&i.current&&he(de(i.current))===i.current&&fl(i.current,null)},[ee]),st(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(),Hr("keyboard")}},buttonProps:{...p,...J,excludeFromTabOrder:!0,preventFocusOnPress:!0,onPress:G,onPressStart:O,isDisabled:c||d},inputProps:W(H,{role:"combobox","aria-expanded":p["aria-expanded"],"aria-controls":t.isOpen?b.id:void 0,"aria-autocomplete":"list","aria-activedescendant":ee?Uh(t,ee.key):void 0,onTouchEnd:z,autoCorrect:"off",spellCheck:"false"}),listBoxProps:W(b,k,{onAction:void 0,autoFocus:t.focusStrategy||!0,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,linkBehavior:"selection",UNSTABLE_itemBehavior:"action"}),valueProps:{id:w},descriptionProps:D,errorMessageProps:M,isInvalid:P,validationErrors:K,validationDetails:T}}function g8(e=[]){let t=De(),[r,n]=s.useState(!0),[i,a]=s.useState(e);return i.some((l,o)=>!Object.is(l,e[o]))&&(n(!0),a(e)),s.useEffect(()=>{r&&!document.getElementById(t)&&n(!1)},[t,r,i]),r?t:void 0}function $8(e){let{defaultFilter:t,menuTrigger:r="input",allowsEmptyCollection:n=!1,allowsCustomValue:i,shouldCloseOnBlur:a=!0,selectionMode:l="single"}=e,[o,u]=s.useState(!1),[d,c]=s.useState(!1),[f,h]=s.useState(null),p=s.useMemo(()=>e.defaultValue!==void 0?e.defaultValue:l==="single"?e.defaultSelectedKey??null:[],[e.defaultValue,e.defaultSelectedKey,l]),b=s.useMemo(()=>e.value!==void 0?e.value:l==="single"?e.selectedKey:void 0,[e.value,e.selectedKey,l]),[g,$]=_e(b,p,e.onChange),y=l==="single"&&Array.isArray(g)?g[0]:g,x=ue=>{if(l==="single"){let ke=Array.isArray(ue)?ue[0]??null:ue;$(ke),ke!==y&&e.onSelectionChange?.(ke)}else{let ke=[];Array.isArray(ue)?ke=ue:ue!=null&&(ke=[ue]),$(ke)}},{collection:v,selectionManager:C,disabledKeys:E}=Pa({...e,items:e.items??e.defaultItems,selectionMode:l,disallowEmptySelection:l==="single",allowDuplicateSelectionEvents:!0,selectedKeys:s.useMemo(()=>v8(y),[y]),onSelectionChange:ue=>{if(ue!=="all")if(l==="single"){let ke=ue.values().next().value??null;ke===y?(e.onSelectionChange?.(ke),V(),Q()):x(ke)}else x([...ue])}}),S=l==="single"?C.firstSelectedKey:null,B=s.useMemo(()=>[...C.selectedKeys].map(ue=>v.getItem(ue)).filter(ue=>ue!=null),[C.selectedKeys,v]),[w,P]=_e(e.inputValue,zp(e.defaultInputValue,S,v)||"",e.onInputChange),[K]=s.useState(y),[T]=s.useState(w),I=v,H=s.useMemo(()=>e.items!=null||!t?v:y8(v,w,t),[v,w,t,e.items]),[D,M]=s.useState(H),G=s.useRef("focus"),J=ai({...e,onOpenChange:ue=>{e.onOpenChange&&e.onOpenChange(ue,ue?G.current:void 0),C.setFocused(ue),ue||C.setFocusedKey(null)},isOpen:void 0,defaultOpen:void 0}),k=(ue=null,ke)=>{let Pi=ke==="manual"||ke==="focus"&&r==="focus";(n||H.size>0||Pi&&I.size>0||e.items)&&(Pi&&!J.isOpen&&e.items===void 0&&u(!0),G.current=ke,h(ue),J.open())},N=(ue=null,ke)=>{let Pi=ke==="manual"||ke==="focus"&&r==="focus";!(n||H.size>0||Pi&&I.size>0||e.items)&&!J.isOpen||(Pi&&!J.isOpen&&e.items===void 0&&u(!0),J.isOpen||(G.current=ke),ee(ue))},z=s.useCallback(()=>{M(o?I:H)},[o,I,H]),ee=s.useCallback((ue=null)=>{J.isOpen&&z(),h(ue),J.toggle()},[J,z]),Q=s.useCallback(()=>{J.isOpen&&(z(),J.close())},[J,z]),[A,F]=s.useState(w),V=()=>{let ue=S!=null?v.getItem(S)?.textValue??"":"";F(ue),P(ue)},L=s.useRef(y),te=s.useRef(S!=null?v.getItem(S)?.textValue??"":"");s.useEffect(()=>{d&&(H.size>0||n)&&!J.isOpen&&w!==A&&r!=="manual"&&k(null,"input"),!o&&!n&&J.isOpen&&H.size===0&&Q(),y!=null&&y!==L.current&&l==="single"&&Q(),w!==A&&(C.setFocusedKey(null),u(!1),l==="single"&&w===""&&(e.inputValue===void 0||b===void 0)&&x(null)),y!==L.current&&(e.inputValue===void 0||b===void 0)?V():A!==w&&F(w);let ue=S!=null?v.getItem(S)?.textValue??"":"";!d&&S!=null&&e.inputValue===void 0&&S===L.current&&te.current!==ue&&(F(ue),P(ue)),L.current=y,te.current=ue});let oe=Br({...e,value:s.useMemo(()=>Array.isArray(y)&&y.length===0?null:{inputValue:w,value:y,selectedKey:S},[w,S,y])}),Ve=()=>{i&&S==null?j():R()},j=()=>{if(l==="multiple"){F(w),Q();return}let ue=null;L.current=ue,x(ue),Q()},R=(ue=!1)=>{if(b!==void 0&&e.inputValue!==void 0){let ke=S!=null?v.getItem(S)?.textValue??"":"";(ue||l==="multiple"||w!==ke)&&(e.onSelectionChange?.(S),e.onChange?.(y)),F(ke),Q()}else V(),Q()};const pe=()=>{if(i){const ue=S!=null?v.getItem(S)?.textValue??"":"";w===ue?R():j()}else R()};let be=()=>{J.isOpen&&C.focusedKey!=null?C.isSelected(C.focusedKey)&&l==="single"?R(!0):C.select(C.focusedKey):pe()},At=s.useRef([w,y]),xe=ue=>{ue?(At.current=[w,y],r==="focus"&&!e.isReadOnly&&k(null,"focus")):(a&&pe(),(w!==At.current[0]||y!==At.current[1])&&oe.commitValidation()),c(ue)},hr=s.useMemo(()=>J.isOpen?o?I:H:D,[J.isOpen,I,H,o,D]),Yy=e.defaultSelectedKey??(l==="single"?K:null);return{...oe,...J,focusStrategy:f,toggle:N,open:k,close:pe,selectionManager:C,value:y,defaultValue:p??K,setValue:x,selectedKey:S,selectedItems:B,defaultSelectedKey:Yy,setSelectedKey:x,disabledKeys:E,isFocused:d,setFocused:xe,selectedItem:B[0]??null,collection:hr,inputValue:w,defaultInputValue:zp(e.defaultInputValue,Yy,v)??T,setInputValue:P,commit:be,revert:Ve}}function y8(e,t,r){return new Go(Lp(e,e,t,r))}function Lp(e,t,r,n){let i=[];for(let a of t)if(a.type==="section"&&a.hasChildNodes){let l=Lp(e,Me(a,e),r,n);[...l].some(o=>o.type==="item")&&i.push({...a,childNodes:l})}else a.type==="item"&&n(a.textValue,r)?i.push({...a}):a.type!=="item"&&i.push({...a});return i}function zp(e,t,r){return e==null&&t!=null?r.getItem(t)?.textValue??"":e}function v8(e){if(e!==void 0)return e===null?[]:Array.isArray(e)?e:[e]}function Vp(e){let t=on({usage:"search",...e}),r=s.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]),n=s.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=s.useCallback((a,l)=>{if(l.length===0)return!0;a=a.normalize("NFC"),l=l.normalize("NFC");let o=0,u=l.length;for(;o+u<=a.length;o++){let d=a.slice(o,o+u);if(t.compare(l,d)===0)return!0}return!1},[t]);return s.useMemo(()=>({startsWith:r,endsWith:n,contains:i}),[r,n,i])}function x8(e={}){let{locale:t}=ge();return s.useMemo(()=>new Intl.ListFormat(t,e),[t,e])}const C8=s.createContext(null),os=s.createContext(null),D8=Wr(function(t,r){[t,r]=me(t,r,C8);let{children:n,isDisabled:i=!1,isInvalid:a=!1,isRequired:l=!1,isReadOnly:o=!1}=t,u=s.useMemo(()=>s.createElement(ei.Provider,{value:{items:t.items??t.defaultItems}},typeof n=="function"?n({isOpen:!1,isDisabled:i,isInvalid:a,isRequired:l,defaultChildren:null,isReadOnly:o}):n),[n,i,a,l,o,t.items,t.defaultItems]);return s.createElement(gr,{content:u},d=>s.createElement(E8,{props:t,collection:d,comboBoxRef:r}))}),w8=[er,Ct,ln,Pn,an,Je];function E8({props:e,collection:t,comboBoxRef:r}){let{name:n,formValue:i="key",allowsCustomValue:a}=e;a&&(i="text");let{validationBehavior:l}=Re(rn)||{},o=e.validationBehavior??l??"native",{contains:u}=Vp({sensitivity:"base"}),d=$8({...e,defaultFilter:e.defaultFilter||u,items:e.items,children:void 0,collection:t,validationBehavior:o}),c=s.useRef(null),f=s.useRef(null),h=s.useRef(null),p=s.useRef(null),b=s.useRef(null),[g,$]=Rt(!e["aria-label"]&&!e["aria-labelledby"]),[y,x]=s.useState("label"),{buttonProps:v,inputProps:C,listBoxProps:E,labelProps:S,descriptionProps:B,errorMessageProps:w,valueProps:P,...K}=b8({...Zt(e),label:$,inputRef:f,buttonRef:c,listBoxRef:p,popoverRef:b,name:i==="text"?n:void 0,validationBehavior:o,labelElementType:y},d),[T,I]=s.useState(null),H=s.useCallback(()=>{if(f.current&&!h.current){let k=c.current?.getBoundingClientRect(),N=f.current.getBoundingClientRect(),z=k?Math.min(k.left,N.left):N.left,ee=k?Math.max(k.right,N.right):N.right;I(ee-z+"px")}},[c,f,I]);ni({ref:f,onResize:H});let D=s.useMemo(()=>({get current(){return h.current||f.current}}),[h,f]),M=s.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=se({...e,values:M,defaultClassName:"react-aria-ComboBox"}),O=ne(e,{global:!0});delete O.id;let J=[];if(n&&i==="key"){let k=Array.isArray(d.value)?d.value:[d.value];k.length===0&&(k=[null]),J=k.map((N,z)=>s.createElement("input",{key:z,type:"hidden",name:n,form:e.form,value:N??""}))}return s.createElement(Ee,{values:[[os,d],[er,{...S,elementType:y,ref:g}],[Ct,{...v,ref:c,isPressed:d.isOpen}],[ln,{...C,ref:f}],[Pn,{...C,ref:s.useCallback(k=>{f.current=k,k&&x(k.tagName.toLowerCase()==="input"?"label":"span")},[]),value:d.inputValue,onChange:k=>d.setInputValue(k)}],[Vt,d],[li,{ref:b,triggerRef:D,scrollRef:p,placement:"bottom start",isNonModal:!0,trigger:"ComboBox",style:{"--trigger-width":T},clearContexts:w8}],[ei,{...E,ref:p}],[Fr,d],[Je,{slots:{description:B,errorMessage:w}}],[an,{ref:h,isInvalid:K.isInvalid,isDisabled:e.isDisabled||!1}],[jn,K],[S8,P]]},s.createElement(re.div,{...O,...G,ref:r,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,J))}const S8=s.createContext(null),P8=["day","month","year"],k8={hour:1,minute:2,second:3};function B8(e,t){let{autoComplete:r,isDisabled:n,name:i}=e,{visuallyHiddenProps:a}=kr({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=je(t.value).toString():o=ar("timeZone"in t.value?k6(t.value):t.value).toString());let u=t.granularity==="day"?"date":"datetime-local",d=["hour","minute","second"],c=0;return d.includes(t.granularity)&&(c=k8[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:r,disabled:n,type:u,form:"",name:i,step:l,value:o,onChange:f=>{let h=X(f).value.toString();if(h)try{let p=z6(h);if(t.granularity==="day"&&(p=L6(h)),"setSegment"in t)for(let b in p)P8.includes(b)&&t.setSegment(b,p[b]),d.includes(b)&&t.setSegment(b,p[b]);t.setValue(p)}catch{}}}}}function N8(e){let{state:t}=e,{containerProps:r,inputProps:n}=B8({...e},t);return s.createElement("div",{...r,"data-testid":"hidden-dateinput-container"},s.createElement("input",n))}var _p={};_p={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 jp={};jp={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 Hp={};Hp={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 Up={};Up={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 Wp={};Wp={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 Gp={};Gp={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 Rp={};Rp={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 Zp={};Zp={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 Yp={};Yp={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 qp={};qp={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 Xp={};Xp={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 Jp={};Jp={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 Qp={};Qp={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 em={};em={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 tm={};tm={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 rm={};rm={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 nm={};nm={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 im={};im={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 am={};am={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 lm={};lm={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 om={};om={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 sm={};sm={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 um={};um={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 dm={};dm={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 cm={};cm={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 fm={};fm={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 hm={};hm={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 pm={};pm={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 mm={};mm={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 bm={};bm={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 gm={};gm={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 $m={};$m={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 ym={};ym={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 vm={};vm={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 ss={};ss={"ar-AE":_p,"bg-BG":jp,"cs-CZ":Hp,"da-DK":Up,"de-DE":Wp,"el-GR":Gp,"en-US":Rp,"es-ES":Zp,"et-EE":Yp,"fi-FI":qp,"fr-FR":Xp,"he-IL":Jp,"hr-HR":Qp,"hu-HU":em,"it-IT":tm,"ja-JP":rm,"ko-KR":nm,"lt-LT":im,"lv-LV":am,"nb-NO":lm,"nl-NL":om,"pl-PL":sm,"pt-BR":um,"pt-PT":dm,"ro-RO":cm,"ru-RU":fm,"sk-SK":hm,"sl-SI":pm,"sr-SP":mm,"sv-SE":bm,"tr-TR":gm,"uk-UA":$m,"zh-CN":ym,"zh-TW":vm};function A8(e,t,r){let{direction:n}=ge(),i=s.useMemo(()=>Xh(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:u=>{if(r)return!1;if(n==="rtl"){if(t.current){let d=X(u),c=xm(t.current,d.getBoundingClientRect().left,-1);if(c){c.focus();return}}}else{i.focusPrevious();return}return!1},ArrowRight:u=>{if(r)return!1;if(n==="rtl"){if(t.current){let d=X(u),c=xm(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 u=window.event?X(window.event):null,d=Te(t.current,{tabbable:!0});if(u&&(d.currentNode=u,u=d.previousNode()),!u){let c;do c=d.lastChild(),c&&(u=c);while(c)}for(;u?.hasAttribute("data-placeholder");){let c=d.previousNode();if(c&&c.hasAttribute("data-placeholder"))u=c;else break}u&&u.focus()},{pressProps:o}=Xe({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(u){u.pointerType==="mouse"&&l()},onPress(u){(u.pointerType==="touch"||u.pointerType==="pen")&&l()}});return W(o,a)}function xm(e,t,r){let n=Te(e,{tabbable:!0}),i=n.nextNode(),a=null,l=1/0;for(;i;){let u=i.getBoundingClientRect().left-t,d=Math.abs(u);Math.sign(u)===r&&d<l&&(a=i,l=d),i=n.nextNode()}return a}function F8(e){return e&&e.__esModule?e.default:e}const Cm=new WeakMap,us="__reactAriaDateFieldRole",T8="__reactAriaDateFieldFocusManager";function Dm(e,t,r){let{isInvalid:n,validationErrors:i,validationDetails:a}=t.displayValidation,{labelProps:l,fieldProps:o,descriptionProps:u,errorMessageProps:d}=xa({...e,labelElementType:"span",isInvalid:n,errorMessage:e.errorMessage||i}),c=s.useRef(null),{focusWithinProps:f}=vr({...e,onFocusWithin(P){c.current=t.value,e.onFocus?.(P)},onBlurWithin:P=>{t.confirmPlaceholder(),t.value!==c.current&&t.commitValidation(),e.onBlur?.(P)},onFocusWithinChange:e.onFocusChange}),h=Ne(F8(ss),"@react-aria/datepicker"),p=t.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",b=t.maxGranularity==="hour"?"time":"date",g=t.value?h.format(p,{[b]:t.formatValue({month:"long"})}):"",$=Sr(g),y=e[us]==="presentation"?o["aria-describedby"]:[$["aria-describedby"],o["aria-describedby"]].filter(Boolean).join(" ")||void 0,x=e[T8],v=s.useMemo(()=>x||Xh(r),[x,r]),C=A8(t,r,e[us]==="presentation");Cm.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[l.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:y,focusManager:v});let E=s.useRef(e.autoFocus),S;e[us]==="presentation"?S={role:"presentation"}:S=W(o,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":y}),s.useEffect(()=>{E.current&&v.focusFirst(),E.current=!1},[v]),nn(e.inputRef,t.defaultValue,t.setValue),Un({...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 w=ne(e);return{labelProps:{...l,onClick:()=>{v.focusFirst()}},fieldProps:W(w,S,C,f,{onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp,style:{unicodeBidi:"isolate"}}),inputProps:B,descriptionProps:u,errorMessageProps:d,isInvalid:n,validationErrors:i,validationDetails:a}}function I8(e){return e&&e.__esModule?e.default:e}function M8(){let{locale:e}=ge(),t=fd(I8(ss),"@react-aria/datepicker");return s.useMemo(()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch{return new K8(e,t)}},[e,t])}class K8{constructor(t,r){this.locale=t,this.dictionary=r}of(t){return this.dictionary.getStringForLocale(t,this.locale)}}function O8(e,t,r){let n=s.useRef(""),{locale:i,direction:a}=ge(),l=M8(),{ariaLabel:o,ariaLabelledBy:u,ariaDescribedBy:d,focusManager:c}=Cm.get(t),f=e.isPlaceholder?"":e.text,h=s.useMemo(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),p=Qe({month:"long",timeZone:h.timeZone}),b=Qe({hour:"numeric",hour12:h.hour12,timeZone:h.timeZone});if(e.type==="month"&&!e.isPlaceholder){let N=p.format(t.dateValue);f=N!==f?`${f} – ${N}`:N}else e.type==="hour"&&!e.isPlaceholder&&(f=b.format(t.dateValue));let{spinButtonProps:g}=Yx({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:()=>{n.current="",t.increment(e.type)},onDecrement:()=>{n.current="",t.decrement(e.type)},onIncrementPage:()=>{n.current="",t.incrementPage(e.type)},onDecrementPage:()=>{n.current="",t.decrementPage(e.type)},onIncrementToMax:()=>{n.current="",t.incrementToMax(e.type)},onDecrementToMin:()=>{n.current="",t.decrementToMin(e.type)}}),$=s.useMemo(()=>new Sc(i,{maximumFractionDigits:0}),[i]),y=()=>{if(e.text===e.placeholder&&c.focusPrevious(),$.isValidPartialNumber(e.text)&&!t.isReadOnly&&!e.isPlaceholder){let N=e.text.slice(0,-1),z=$.parse(N);N=z===0?"":N,N.length===0||z===0?t.clearSegment(e.type):t.setSegment(e.type,z),n.current=N}else(e.type==="dayPeriod"||e.type==="era")&&t.clearSegment(e.type)},{keyboardProps:x}=Le({shortcuts:{Backspace:()=>{y()},Delete:()=>{y()},"Mod+a":()=>{}},allowRepeats:!0}),{startsWith:v}=Vp({sensitivity:"base"}),C=Qe({hour:"numeric",hour12:!0}),E=s.useMemo(()=>{let N=new Date;return N.setHours(0),C.formatToParts(N).find(z=>z.type==="dayPeriod").value},[C]),S=s.useMemo(()=>{let N=new Date;return N.setHours(12),C.formatToParts(N).find(z=>z.type==="dayPeriod").value},[C]),B=Qe({year:"numeric",era:"narrow",timeZone:"UTC"}),w=s.useMemo(()=>{if(e.type!=="era")return[];let N=ye(new Pe(1,1,1),t.calendar),z=t.calendar.getEras().map(Q=>{let A=N.set({year:1,month:1,day:1,era:Q}).toDate("UTC"),V=B.formatToParts(A).find(L=>L.type==="era").value;return{era:Q,formatted:V}}),ee=L8(z.map(Q=>Q.formatted));if(ee)for(let Q of z)Q.formatted=Q.formatted.slice(ee);return z},[B,t.calendar,e.type]),P=N=>{if(t.isDisabled||t.isReadOnly)return;let z=n.current+N;switch(e.type){case"dayPeriod":if(v(E,N))t.setSegment("dayPeriod",0);else if(v(S,N))t.setSegment("dayPeriod",1);else break;c.focusNext();break;case"era":{let ee=w.find(Q=>v(Q.formatted,N));ee&&(t.setSegment("era",ee.era),c.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!$.isValidPartialNumber(z))return;let ee=$.parse(z),Q=ee;if(e.maxValue!==void 0&&ee>e.maxValue&&(Q=$.parse(N)),isNaN(ee))return;t.setSegment(e.type,Q),e.maxValue!==void 0&&(+(ee+"0")>e.maxValue||z.length>=String(e.maxValue).length)?(n.current="",c.focusNext()):n.current=z;break}}},K=()=>{n.current="",r.current&&wt(r.current,{containingElement:ut(r.current)}),window.getSelection()?.collapse(r.current)},T=s.useRef(typeof document<"u"?document:null);st(T,"selectionchange",()=>{let N=window.getSelection();N?.anchorNode&&le(r.current,N?.anchorNode)&&he()===r.current&&N.collapse(r.current)});let I=s.useRef("");st(r,"beforeinput",N=>{if(r.current)switch(N.preventDefault(),N.inputType){case"deleteContentBackward":case"deleteContentForward":$.isValidPartialNumber(e.text)&&!t.isReadOnly&&y();break;case"insertCompositionText":I.current=r.current.textContent,r.current.textContent=r.current.textContent;break;default:N.data!=null&&P(N.data);break}}),st(r,"input",N=>{let{inputType:z,data:ee}=N;z==="insertCompositionText"&&(r.current&&(r.current.textContent=I.current),ee!=null&&(v(E,ee)||v(S,ee))&&P(ee))}),fe(()=>{let N=r.current;return()=>{he()===N&&(c.focusPrevious()||c.focusNext())}},[r,c]);let H=$t()||e.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},D=s.useMemo(()=>t.segments.find(N=>N.isEditable),[t.segments]);e!==D&&!t.isInvalid&&(d=void 0);let M=De(),G=!t.isDisabled&&!t.isReadOnly&&e.isEditable,O=e.type==="literal"?"":l.of(e.type),J=Mt({"aria-label":`${O}${o?`, ${o}`:""}${u?", ":""}`,"aria-labelledby":u});if(e.type==="literal")return{segmentProps:{"aria-hidden":!0}};let k={caretColor:"transparent"};if(a==="rtl"){k.unicodeBidi="embed";let N=h[e.type];(N==="numeric"||N==="2-digit")&&(k.direction="ltr")}return{segmentProps:W(g,J,{id:M,...H,...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(s.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:k,onPointerDown(N){N.stopPropagation()},onMouseDown(N){N.stopPropagation()}})}}function L8(e){e.sort();let t=e[0],r=e[e.length-1];for(let n=0;n<t.length;n++)if(t[n]!==r[n])return n;return 0}var wm={};wm={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var Em={};Em={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var Sm={};Sm={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 Pm={};Pm={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 km={};km={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 Bm={};Bm={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var Nm={};Nm={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 Am={};Am={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 Fm={};Fm={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 Tm={};Tm={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 Im={};Im={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 Mm={};Mm={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var Km={};Km={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 Om={};Om={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 Lm={};Lm={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 zm={};zm={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var Vm={};Vm={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이후여야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var _m={};_m={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 jm={};jm={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 Hm={};Hm={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 Um={};Um={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 Wm={};Wm={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 Gm={};Gm={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 Rm={};Rm={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 Zm={};Zm={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 Ym={};Ym={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var qm={};qm={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 Xm={};Xm={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 Jm={};Jm={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 Qm={};Qm={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 eb={};eb={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 tb={};tb={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var rb={};rb={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var nb={};nb={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};var ib={};ib={"ar-AE":wm,"bg-BG":Em,"cs-CZ":Sm,"da-DK":Pm,"de-DE":km,"el-GR":Bm,"en-US":Nm,"es-ES":Am,"et-EE":Fm,"fi-FI":Tm,"fr-FR":Im,"he-IL":Mm,"hr-HR":Km,"hu-HU":Om,"it-IT":Lm,"ja-JP":zm,"ko-KR":Vm,"lt-LT":_m,"lv-LV":jm,"nb-NO":Hm,"nl-NL":Um,"pl-PL":Wm,"pt-BR":Gm,"pt-PT":Rm,"ro-RO":Zm,"ru-RU":Ym,"sk-SK":qm,"sl-SI":Xm,"sr-SP":Jm,"sv-SE":Qm,"tr-TR":eb,"uk-UA":tb,"zh-CN":rb,"zh-TW":nb};function z8(e){return e&&e.__esModule?e.default:e}const V8=new br(z8(ib));function _8(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return e}function j8(e,t,r,n,i){let a=e!=null&&r!=null&&e.compare(r)>0,l=e!=null&&t!=null&&e.compare(t)<0,o=e!=null&&n?.(e)||!1,u=a||l||o,d=[];if(u){let c=_8(),f=br.getGlobalDictionaryForPackage("@react-stately/datepicker")||V8,h=new dd(c,f),p=new Er(c,Oa({},i)),b=p.resolvedOptions().timeZone;l&&t!=null&&d.push(h.format("rangeUnderflow",{minValue:p.format(t.toDate(b))})),a&&r!=null&&d.push(h.format("rangeOverflow",{maxValue:p.format(r.toDate(b))})),o&&d.push(h.format("unavailableDate"))}return{isInvalid:u,validationErrors:d,validationDetails:{badInput:o,customError:!1,patternMismatch:!1,rangeOverflow:a,rangeUnderflow:l,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!u}}}const H8={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},U8={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function Oa(e,t){e={...t.shouldForceLeadingZeros?U8:H8,...e};let n=t.granularity||"minute",i=Object.keys(e),a=i.indexOf(t.maxGranularity??"year");a<0&&(a=0);let l=i.indexOf(n);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",(n==="hour"||n==="minute"||n==="second")&&t.timeZone&&!t.hideTimeZone&&(o.timeZoneName="short"),t.showEra&&a===0&&(o.era="short"),o}function ab(e,t){if(e===null)return null;if(e)return ye(e,t)}function W8(e,t,r,n){if(e)return ab(e,r);let i=ye(yf(n??aa()).set({hour:0,minute:0,second:0,millisecond:0}),r);return t==="year"||t==="month"||t==="day"?je(i):n?i:ar(i)}function G8(e,t){let r=e&&"timeZone"in e?e.timeZone:void 0,n=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]=s.useState([n,r]);e&&(i[0]!==n||i[1]!==r)&&a([n,r]),t||(t=e?n:i[0]);let l=e?r:i[1];return[t,l]}const R8=new br({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 Z8(e,t,r){return e==="era"||e==="dayPeriod"?t:e==="year"||e==="month"||e==="day"?R8.getStringForLocale(e,r):"––"}class Pt{constructor(t,r,n){if(this.era=n?.era??null,this.calendar=t,this.year=n?.year??null,this.month=n?.month??null,this.day=n?.day??null,this.hour=n?.hour??null,this.hourCycle=r,this.dayPeriod=null,this.minute=n?.minute??null,this.second=n?.second??null,this.millisecond=n?.millisecond??null,this.offset="offset"in(n??{})?n.offset:null,this.hour!=null){let[i,a]=dn(this.hour,r);this.dayPeriod=i,this.hour=a}}copy(){let t=new Pt(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(r=>this[r]!=null)}validate(t,r){return r.every(n=>{if((n==="hour"||n==="dayPeriod")&&"hour"in t){let[i,a]=dn(t.hour,this.hourCycle);return this.dayPeriod===i&&this.hour===a}return this[n]===t[n]})}isCleared(t){return t.every(r=>this[r]===null)}set(t,r,n){let i=this.copy();return i[t]=r,t==="hour"&&i.dayPeriod==null&&"hour"in n&&(i.dayPeriod=dn(n.hour,this.hourCycle)[0]),t==="year"&&i.era==null&&(i.era=n.era),t!=="second"&&t!=="literal"&&t!=="timeZoneName"&&(i.offset=null),i}clear(t){let r=this.copy();return r[t]=null,t==="year"&&(r.era=null),r.offset=null,r}cycle(t,r,n,i){let a=this.copy();if(a[t]==null&&t!=="dayPeriod"&&t!=="era"){if(t==="hour"&&"hour"in n){let[l,o]=dn(n.hour,this.hourCycle);a.dayPeriod=l,a.hour=o}else a[t]=n[t];return t==="year"&&a.era==null&&(a.era=n.era),a}switch(t){case"era":{let l=this.calendar.getEras(),o=l.indexOf(a.era);o=Ir(o,r,0,l.length-1),a.era=l[o];break}case"year":{let l=new Pe(this.calendar,this.era??n.era,this.year??n.year,this.month??1,this.day??1);l=l.cycle(t,r,{round:t==="year"}),a.era=l.era,a.year=l.year;break}case"month":a.month=Ir(a.month??1,r,1,this.calendar.getMaximumMonthsInYear());break;case"day":a.day=Ir(a.day??1,r,1,this.calendar.getMaximumDaysInMonth());break;case"hour":{let l=i.some(o=>["year","month","day"].includes(o));if("timeZone"in n&&(!l||a.year!=null&&a.month!=null&&a.day!=null)){let o=this.toValue(n);o=o.cycle("hour",r,{hourCycle:this.hourCycle==="h12"?12:24,round:!1});let[u,d]=dn(o.hour,this.hourCycle);a.hour=d,a.dayPeriod=u,a.offset=o.offset}else{let o=a.hour??0,u=this.getSegmentLimits("hour");a.hour=Ir(o,r,u.minValue,u.maxValue),a.dayPeriod==null&&"hour"in n&&(a.dayPeriod=dn(n.hour,this.hourCycle)[0])}break}case"dayPeriod":a.dayPeriod=Ir(a.dayPeriod??0,r,0,1);break;case"minute":a.minute=Ir(a.minute??0,r,0,59,!0);break;case"second":a.second=Ir(a.second??0,r,0,59,!0);break}return a}toValue(t){if("hour"in t){let r=this.hour;r!=null?r=Y8(r,this.dayPeriod??0,this.hourCycle):(this.hourCycle==="h12"||this.hourCycle==="h11")&&(r=this.dayPeriod===1?12:0);let n=t.set({era:this.era??t.era,year:this.year??t.year,month:this.month??t.month,day:this.day??t.day,hour:r??t.hour,minute:this.minute??t.minute,second:this.second??t.second,millisecond:this.millisecond??t.millisecond});return"offset"in n&&this.offset!=null&&n.offset!==this.offset&&(n=n.add({milliseconds:n.offset-this.offset})),n}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 r=this.calendar.getEras();return{value:this.era!=null?r.indexOf(this.era):r.length-1,minValue:0,maxValue:r.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 r=0,n=23;return this.hourCycle==="h12"?(r=1,n=12):this.hourCycle==="h11"&&(r=0,n=11),{value:this.hour,minValue:r,maxValue:n}}case"minute":return{value:this.minute,minValue:0,maxValue:59};case"second":return{value:this.second,minValue:0,maxValue:59}}}}function Ir(e,t,r,n,i=!1){if(i){e+=Math.sign(t),e<r&&(e=n);let a=Math.abs(t);t>0?e=Math.ceil(e/a)*a:e=Math.floor(e/a)*a,e>n&&(e=r)}else e+=t,e<r?e=n-(r-e-1):e>n&&(e=r+(e-n-1));return e}function dn(e,t){let r=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":r=null;break;case"h24":e+=1,r=null}return[r,e]}function Y8(e,t,r){switch(r){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 ds={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},lb={year:5,month:2,day:7,hour:2,minute:15,second:15},q8={dayperiod:"dayPeriod",relatedYear:"year",yearName:"literal",unknown:"literal"};function ob(e){let{locale:t,createCalendar:r,hideTimeZone:n,isDisabled:i=!1,isReadOnly:a=!1,isRequired:l=!1,minValue:o,maxValue:u,isDateUnavailable:d}=e,c=e.value||e.defaultValue||e.placeholderValue||null,[f,h]=G8(c,e.granularity),p=h||"UTC";if(c&&!(f in c))throw new Error("Invalid granularity "+f+" for value "+c.toString());let[b,g]=s.useMemo(()=>{let te=new Er(t,{dateStyle:"short",timeStyle:"short",hour12:e.hourCycle!=null?e.hourCycle===12:void 0}).resolvedOptions();return[r(te.calendar),te.hourCycle]},[t,e.hourCycle,r]),[$,y]=_e(e.value,e.defaultValue??null,e.onChange),[x]=s.useState($),v=s.useMemo(()=>ab($,b)??null,[$,b]),[C,E]=s.useState(()=>new Pt(b,g,v)),S=b.identifier==="gregory"&&C.era==="BC",B=s.useMemo(()=>({granularity:f,maxGranularity:e.maxGranularity??"year",timeZone:h,hideTimeZone:n,hourCycle:e.hourCycle,showEra:S,shouldForceLeadingZeros:e.shouldForceLeadingZeros}),[e.maxGranularity,f,e.hourCycle,e.shouldForceLeadingZeros,h,n,S]),w=s.useMemo(()=>Oa({},B),[B]),P=s.useMemo(()=>new Er(t,w),[t,w]),K=s.useMemo(()=>P.resolvedOptions(),[P]),T=s.useMemo(()=>W8(e.placeholderValue,f,b,h),[e.placeholderValue,f,b,h]),I=s.useMemo(()=>{let L=g==="h11"||g==="h12",te=["era","year","month","day","hour",...L?["dayPeriod"]:[],"minute","second"],oe=te.indexOf(e.maxGranularity||"era"),Ve=te.indexOf(f==="hour"&&L?"dayPeriod":f);return te.slice(oe,Ve+1)},[e.maxGranularity,f,g]),[H,D]=s.useState(v),[M,G]=s.useState(b),[O,J]=s.useState(g);(v!==H||g!==O||!ia(b,M))&&(C=new Pt(b,g,v),D(v),G(b),J(g),E(C));let k=L=>{if(!(e.isDisabled||e.isReadOnly))if(L==null||L instanceof Pt&&L.isCleared(I))E(new Pt(b,g,v)),y(null);else if(!(L instanceof Pt))L=ye(L,c?.calendar||new Ue),E(new Pt(b,g,v)),y(L);else{if(L.isComplete(I)){let te=L.toValue(v??T);if(L.validate(te,I)){let oe=ye(te,c?.calendar||new Ue);if(!$||oe.compare($)!==0){E(new Pt(b,g,v)),y(oe);return}}}E(L)}},N=s.useMemo(()=>C.toValue(v??T).toDate(p),[C,p,v,T]),z=s.useMemo(()=>X8(N,C,P,K,b,t,f),[N,P,K,C,b,t,f]),ee=(L,te)=>{k(C.cycle(L,te,T,I))},Q=s.useMemo(()=>j8($,o,u,d,B),[$,o,u,d,B]),A=Br({...e,value:$,builtinValidation:Q}),F=A.displayValidation.isInvalid,V=e.validationState||(F?"invalid":null);return{...A,value:v,defaultValue:e.defaultValue??x,dateValue:N,calendar:b,setValue:k,segments:z,dateFormatter:P,validationState:V,isInvalid:F,granularity:f,maxGranularity:e.maxGranularity??"year",isDisabled:i,isReadOnly:a,isRequired:l,increment(L){ee(L,1)},decrement(L){ee(L,-1)},incrementPage(L){ee(L,lb[L]||1)},decrementPage(L){ee(L,-(lb[L]||1))},incrementToMax(L){let te=L==="hour"&&g==="h12"?11:C.getSegmentLimits(L).maxValue;k(C.set(L,te,T))},decrementToMin(L){let te=L==="hour"&&g==="h12"?12:C.getSegmentLimits(L).minValue;k(C.set(L,te,T))},setSegment(L,te){k(C.set(L,te,T))},confirmPlaceholder(){if(!(e.isDisabled||e.isReadOnly)&&C.isComplete(I)){let L=C.toValue(v??T),te=ye(L,c?.calendar||new Ue);(!$||te.compare($)!==0)&&y(te),E(new Pt(b,g,v))}},clearSegment(L){let te=C;L!=="timeZoneName"&&L!=="literal"&&(te=C.clear(L)),k(te)},formatValue(L){if(!v)return"";let te=Oa(L,B);return new Er(t,te).format(N)},getDateFormatter(L,te){let oe={...B,...te},Ve=Oa({},oe);return new Er(L,Ve)}}}function X8(e,t,r,n,i,a,l){let o=["hour","minute","second"],u=r.formatToParts(e),d=new ta(a,{useGrouping:!1}),c=new ta(a,{useGrouping:!1,minimumIntegerDigits:2});for(let h of u)if(h.type==="year"||h.type==="month"||h.type==="day"||h.type==="hour"){let p=t[h.type]??0;n[h.type]==="2-digit"?h.value=c.format(p):h.value=d.format(p)}let f=[];for(let h of u){let p=q8[h.type]||h.type,b=ds[p];p==="era"&&i.getEras().length===1&&(b=!1);let g=ds[p]&&t[h.type]==null,$=ds[p]?Z8(p,h.value,a):null,y={type:p,text:g?$:h.value,...t.getSegmentLimits(p),isPlaceholder:g,placeholder:$,isEditable:b};p==="hour"?(f.push({type:"literal",text:"",isPlaceholder:!1,placeholder:"",isEditable:!1}),f.push(y),p===l&&f.push({type:"literal",text:"",isPlaceholder:!1,placeholder:"",isEditable:!1})):o.includes(p)&&p===l?(f.push(y),f.push({type:"literal",text:"",isPlaceholder:!1,placeholder:"",isEditable:!1})):f.push(y)}return f}const sb=s.createContext(null),si=s.createContext(null),cs=s.createContext(null),J8=s.forwardRef(function(t,r){[t,r]=me(t,r,sb);let{validationBehavior:n}=Re(rn)||{},i=t.validationBehavior??n??"native",{locale:a}=ge(),l=ob({...t,locale:a,createCalendar:$a,validationBehavior:i}),o=s.useRef(null),[u,d]=Rt(!t["aria-label"]&&!t["aria-labelledby"]),c=s.useRef(null),{labelProps:f,fieldProps:h,inputProps:p,descriptionProps:b,errorMessageProps:g,...$}=Dm({...Zt(t),label:d,inputRef:c,validationBehavior:i},l,o),y=se({...Zt(t),values:{state:l,isInvalid:l.isInvalid,isDisabled:l.isDisabled,isReadOnly:l.isReadOnly,isRequired:t.isRequired||!1},defaultClassName:"react-aria-DateField"}),x=ne(t,{global:!0});return delete x.id,s.createElement(Ee,{values:[[si,l],[an,{...h,ref:o,isInvalid:l.isInvalid,isDisabled:l.isDisabled}],[ln,{...p,ref:c}],[er,{...f,ref:u,elementType:"span"}],[Je,{slots:{description:b,errorMessage:g}}],[jn,$]]},s.createElement(re.div,{...x,...y,ref:r,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}),s.createElement(N8,{autoComplete:t.autoComplete,name:t.name,isDisabled:t.isDisabled,state:l}))}),Q8=s.forwardRef(function(t,r){let n=s.useContext(si),i=s.useContext(cs);return n||i?s.createElement(ub,{...t,ref:r}):s.createElement(e7,{...t,ref:r})}),e7=s.forwardRef((e,t)=>{let[r,n]=me({slot:e.slot},t,sb),{locale:i}=ge(),a=ob({...r,locale:i,createCalendar:$a}),l=s.useRef(null),{fieldProps:o,inputProps:u}=Dm({...r,inputRef:l},a,n);return s.createElement(Ee,{values:[[si,a],[ln,{...u,ref:l}],[an,{...o,ref:n,isInvalid:a.isInvalid,isDisabled:a.isDisabled}]]},s.createElement(ub,e))}),ub=s.forwardRef((e,t)=>{let{className:r,children:n}=e,i=s.useContext(si),a=s.useContext(cs),l=i??a;return s.createElement(s.Fragment,null,s.createElement(Wn,{...e,ref:t,slot:e.slot||void 0,className:r??"react-aria-DateInput",isReadOnly:l.isReadOnly,isInvalid:l.isInvalid,isDisabled:l.isDisabled},l.segments.map((o,u)=>s.cloneElement(n(o),{key:u}))),s.createElement(Gn,{className:""}))}),t7=s.forwardRef(function({segment:t,...r},n){let i=s.useContext(si),a=s.useContext(cs),l=i??a,o=Be(n),{segmentProps:u}=O8(t,l,o),{focusProps:d,isFocused:c,isFocusVisible:f}=Ae(),{hoverProps:h,isHovered:p}=Fe({...r,isDisabled:l.isDisabled||t.type==="literal"}),b=se({...r,values:{...t,isReadOnly:l.isReadOnly,isInvalid:l.isInvalid,isDisabled:l.isDisabled,isHovered:p,isFocused:c,isFocusVisible:f},defaultChildren:t.text,defaultClassName:"react-aria-DateSegment"});return s.createElement(re.span,{...W(ne(r,{global:!0}),u,d,h),...b,style:u.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":p||void 0,"data-focused":c||void 0,"data-focus-visible":f||void 0})});var db={};db={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 cb={};cb={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 fb={};fb={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 hb={};hb={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 pb={};pb={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 mb={};mb={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 bb={};bb={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 gb={};gb={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 $b={};$b={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 yb={};yb={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 vb={};vb={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 xb={};xb={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 Cb={};Cb={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 Db={};Db={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 wb={};wb={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 Eb={};Eb={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 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=>`${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 kb={};kb={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 Bb={};Bb={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 Nb={};Nb={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 Ab={};Ab={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 Fb={};Fb={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 Tb={};Tb={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 Ib={};Ib={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 Mb={};Mb={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 Kb={};Kb={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 Ob={};Ob={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 Lb={};Lb={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 zb={};zb={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 Vb={};Vb={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 _b={};_b={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 jb={};jb={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 Hb={};Hb={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 La={};La={"ar-AE":db,"bg-BG":cb,"cs-CZ":fb,"da-DK":hb,"de-DE":pb,"el-GR":mb,"en-US":bb,"es-ES":gb,"et-EE":$b,"fi-FI":yb,"fr-FR":vb,"he-IL":xb,"hr-HR":Cb,"hu-HU":Db,"it-IT":wb,"ja-JP":Eb,"ko-KR":Sb,"lt-LT":Pb,"lv-LV":kb,"nb-NO":Bb,"nl-NL":Nb,"pl-PL":Ab,"pt-BR":Fb,"pt-PT":Tb,"ro-RO":Ib,"ru-RU":Mb,"sk-SK":Kb,"sl-SI":Ob,"sr-SP":Lb,"sv-SE":zb,"tr-TR":Vb,"uk-UA":_b,"zh-CN":jb,"zh-TW":Hb};function r7(e){return e&&e.__esModule?e.default:e}function n7(e,t){let{getRowText:r=o=>t.collection.getTextValue?.(o)??t.collection.getItem(o)?.textValue}=e,n=Ne(r7(La),"@react-aria/grid"),i=t.selectionManager.rawSelection,a=s.useRef(i),l=s.useCallback(()=>{if(!t.selectionManager.isFocused||i===a.current){a.current=i;return}let o=Ub(i,a.current),u=Ub(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 h=r(f);h&&c.push(n.format("selectedItem",{item:h}))}}else if(o.size===1&&u.size===0){let f=o.keys().next().value;if(f!=null){let h=r(f);h&&c.push(n.format("selectedItem",{item:h}))}}else if(u.size===1&&o.size===0){let f=u.keys().next().value;if(f!=null&&t.collection.getItem(f)){let h=r(f);h&&c.push(n.format("deselectedItem",{item:h}))}}t.selectionManager.selectionMode==="multiple"&&(c.length===0||i==="all"||i.size>1||a.current==="all"||a.current?.size>1)&&c.push(i==="all"?n.format("selectedAll"):n.format("selectedCount",{count:i.size})),c.length>0&&xt(c.join(" ")),a.current=i},[i,t.selectionManager.selectedKeys,t.selectionManager.isFocused,t.selectionManager.selectionBehavior,t.selectionManager.selectionMode,t.collection,r,n]);Vn(()=>{if(t.selectionManager.isFocused)l();else{let o=requestAnimationFrame(l);return()=>cancelAnimationFrame(o)}},[i,t.selectionManager.isFocused])}function Ub(e,t){let r=new Set;if(e==="all"||t==="all")return r;for(let n of e.keys())t.has(n)||r.add(n);return r}function i7(e,t){let r=t?.isDisabled,[n,i]=s.useState(!1);return fe(()=>{if(e?.current&&!r){let a=()=>{if(e.current){let o=Te(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()}}}),r?!1:n}function a7(e){return e&&e.__esModule?e.default:e}function l7(e){let t=Ne(a7(La),"@react-aria/grid"),r=id(),n=(r==="pointer"||r==="virtual"||r==null)&&typeof window<"u"&&"ontouchstart"in window,i=s.useMemo(()=>{let l=e.selectionManager.selectionMode,o=e.selectionManager.selectionBehavior,u;return n&&(u=t.format("longPressToSelect")),o==="replace"&&l!=="none"&&e.hasItemActions?u:void 0},[e.selectionManager.selectionMode,e.selectionManager.selectionBehavior,e.hasItemActions,t,n]);return Sr(i)}function o7(e){return e&&e.__esModule?e.default:e}function s7(e,t){let{key:r}=e,n=t.selectionManager,i=De(),a=!t.selectionManager.canSelectItem(r),l=t.selectionManager.isSelected(r),o=()=>n.toggleSelection(r);const u=Ne(o7(La),"@react-aria/grid");return{checkboxProps:{id:i,"aria-label":u.format("select"),isSelected:l,isDisabled:a,onChange:o}}}function u7(e,t,r){let{overlayProps:n,underlayProps:i}=D4({...e,isOpen:t.isOpen,onClose:t.close},r);return w4({isDisabled:!t.isOpen}),d3(),s.useEffect(()=>{if(t.isOpen&&r.current)return Yo([r.current],{shouldUseInert:!0})},[t.isOpen,r]),{modalProps:W(n),underlayProps:i}}let Ye=typeof document<"u"&&window.visualViewport;function d7(){let e=Wt(),[t,r]=s.useState(()=>e?{width:0,height:0}:fs());return s.useEffect(()=>{let n=o=>{r(u=>o.width===u.width&&o.height===u.height?u:o)},i=()=>{Ye&&Ye.scale>1||n(fs())},a,l=o=>{Ye&&Ye.scale>1||wn(X(o))&&(a=requestAnimationFrame(()=>{let u=he();(!u||!wn(u))&&n({width:document.documentElement.clientWidth,height:document.documentElement.clientHeight})}))};return n(fs()),$t()&&yt()&&window.addEventListener("blur",l,!0),Ye?Ye.addEventListener("resize",i):window.addEventListener("resize",i),()=>{cancelAnimationFrame(a),$t()&&yt()&&window.removeEventListener("blur",l,!0),Ye?Ye.removeEventListener("resize",i):window.removeEventListener("resize",i)}},[]),t}function fs(){return{width:Ye?Math.min(Ye.width*Ye.scale,document.documentElement.clientWidth):document.documentElement.clientWidth,height:Ye?Ye.height*Ye.scale:document.documentElement.clientHeight}}const c7=s.createContext(null),hs=s.createContext(null),f7=s.forwardRef(function(t,r){if(s.useContext(hs)){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"]),$=Object.keys(t).filter(y=>g.has(y));console.warn(`This modal is already wrapped in a ModalOverlay, props [${$.join(", ")}] should be placed on the ModalOverlay instead.`)}return s.createElement(Gb,{...t,modalRef:r},t.children)}let{isDismissable:i,isKeyboardDismissDisabled:a,isOpen:l,defaultOpen:o,onOpenChange:u,children:d,isEntering:c,isExiting:f,UNSTABLE_portalContainer:h,shouldCloseOnInteractOutside:p,...b}=t;return s.createElement(Wb,{isDismissable:i,isKeyboardDismissDisabled:a,isOpen:l,defaultOpen:o,onOpenChange:u,isEntering:c,isExiting:f,UNSTABLE_portalContainer:h,shouldCloseOnInteractOutside:p},s.createElement(Gb,{...b,modalRef:r},d))});function h7(e,t){[e,t]=me(e,t,c7);let r=s.useContext(Vt),n=ai(e),i=e.isOpen!=null||e.defaultOpen!=null||!r?n:r;i===r&&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=Be(t),l=s.useRef(null),o=ns(a,i.isOpen),u=ns(l,i.isOpen),d=o||u||e.isExiting||!1,c=Wt();return!i.isOpen&&!d||c?null:s.createElement(p7,{...e,state:i,isExiting:d,overlayRef:a,modalRef:l})}const Wb=s.forwardRef(h7);function p7({UNSTABLE_portalContainer:e,...t}){let r=t.modalRef,{state:n}=t,{modalProps:i,underlayProps:a}=u7(t,n,r),l=rs(t.overlayRef)||t.isEntering||!1,o=se({...t,defaultClassName:"react-aria-ModalOverlay",values:{isEntering:l,isExiting:t.isExiting,state:n}}),u=d7(),d,c;if(typeof document<"u"){let h=or(document.body)?document.body:document.scrollingElement||document.documentElement,p=h.getBoundingClientRect().width%1,b=h.getBoundingClientRect().height%1;d=h.scrollWidth-p,c=h.scrollHeight-b}let f={...o.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(ts,{isExiting:t.isExiting,portalContainer:e},s.createElement(re.div,{...W(ne(t,{global:!0}),a),...o,style:f,ref:t.overlayRef,"data-entering":l||void 0,"data-exiting":t.isExiting||void 0},s.createElement(Ee,{values:[[hs,{modalProps:i,modalRef:r,isExiting:t.isExiting,isDismissable:t.isDismissable}],[Vt,n]]},o.children)))}function Gb(e){let{modalProps:t,modalRef:r,isExiting:n,isDismissable:i}=s.useContext(hs),a=s.useContext(Vt),l=s.useMemo(()=>Gt(e.modalRef,r),[e.modalRef,r]),o=Be(l),u=rs(o),d=se({...e,defaultClassName:"react-aria-Modal",values:{isEntering:u,isExiting:n,state:a}});return s.createElement(re.div,{...W(ne(e,{global:!0}),t),...d,ref:o,"data-entering":u||void 0,"data-exiting":n||void 0},i&&s.createElement(es,{onDismiss:a.close}),d.children)}const Rb=new WeakMap;function m7(e,t,r){let{value:n,children:i,"aria-label":a,"aria-labelledby":l,onPressStart:o,onPressEnd:u,onPressChange:d,onPress:c,onPressUp:f,onClick:h}=e;const p=e.isDisabled||t.isDisabled;let b=i!=null,g=a!=null||l!=null;!b&&!g&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let $=t.selectedValue===n,y=G=>{G.stopPropagation(),t.setSelectedValue(n)},{pressProps:x,isPressed:v}=Xe({onPressStart:o,onPressEnd:u,onPressChange:d,onPress:c,onPressUp:f,onClick:h,isDisabled:p}),{pressProps:C,isPressed:E}=Xe({onPressStart:o,onPressEnd:u,onPressChange:d,onPressUp:f,onClick:h,isDisabled:p,onPress(G){c?.(G),t.setSelectedValue(n),r.current?.focus()}}),{focusableProps:S}=Jt(W(e,{onFocus:()=>t.setLastFocusedValue(n)}),r),B=W(x,S),w=ne(e,{labelable:!0}),P=-1;t.selectedValue!=null?t.selectedValue===n&&(P=0):(t.lastFocusedValue===n||t.lastFocusedValue==null)&&(P=0),p&&(P=void 0);let{name:K,form:T,descriptionId:I,errorMessageId:H,validationBehavior:D}=Rb.get(t);nn(r,t.defaultSelectedValue,t.setSelectedValue),Un({validationBehavior:D},t,r);let M=Po();return{labelProps:W(C,s.useMemo(()=>({onClick:G=>G.preventDefault(),onMouseDown:G=>G.preventDefault()}),[])),inputProps:W(w,{...B,type:"radio",name:K,form:T,tabIndex:P,disabled:p,required:t.isRequired&&D==="native",checked:$,value:n,onChange:y,"aria-describedby":[e["aria-describedby"],M.id,t.isInvalid?H:null,I].filter(Boolean).join(" ")||void 0}),descriptionProps:M,isDisabled:p,isSelected:$,isPressed:v||E}}function b7(e,t){let{name:r,form:n,isReadOnly:i,isRequired:a,isDisabled:l,orientation:o="vertical",validationBehavior:u="aria"}=e,{direction:d}=ge(),{isInvalid:c,validationErrors:f,validationDetails:h}=t.displayValidation,{labelProps:p,fieldProps:b,descriptionProps:g,errorMessageProps:$}=xa({...e,labelElementType:"span",isInvalid:t.isInvalid,errorMessage:e.errorMessage||f}),y=ne(e,{labelable:!0}),{focusWithinProps:x}=vr({onBlurWithin(S){e.onBlur?.(S),t.selectedValue||t.setLastFocusedValue(null)},onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange});function v(S,B){let w=Te(B.currentTarget,{from:X(B),accept:K=>K instanceof Ce(K).HTMLInputElement&&K.type==="radio"}),P;return S==="next"?(P=w.nextNode(),P||(w.currentNode=B.currentTarget,P=w.firstChild())):(P=w.previousNode(),P||(w.currentNode=B.currentTarget,P=w.lastChild())),P?(P.focus(),t.setSelectedValue(P.value),!0):!1}let{keyboardProps:C}=Le({shortcuts:{ArrowRight:S=>v(d==="rtl"&&o!=="vertical"?"prev":"next",S),ArrowLeft:S=>v(d==="rtl"&&o!=="vertical"?"next":"prev",S),ArrowDown:S=>v("next",S),ArrowUp:S=>v("prev",S)},allowRepeats:!0}),E=De(r);return Rb.set(t,{name:E,form:n,descriptionId:g.id,errorMessageId:$.id,validationBehavior:u}),{radioGroupProps:W(y,{role:"radiogroup",...C,"aria-invalid":t.isInvalid||void 0,"aria-errormessage":e["aria-errormessage"],"aria-readonly":i||void 0,"aria-required":a||void 0,"aria-disabled":l||void 0,"aria-orientation":o,...b,...x}),labelProps:p,descriptionProps:g,errorMessageProps:$,isInvalid:c,validationErrors:f,validationDetails:h}}let g7=Math.round(Math.random()*1e10),$7=0;function y7(e){let t=s.useMemo(()=>e.name||`radio-group-${g7}-${++$7}`,[e.name]),[r,n]=_e(e.value,e.defaultValue??null,e.onChange),[i]=s.useState(r),[a,l]=s.useState(null),o=Br({...e,value:r}),u=c=>{!e.isReadOnly&&!e.isDisabled&&(n(c),o.commitValidation())},d=o.displayValidation.isInvalid;return{...o,name:t,selectedValue:r,defaultSelectedValue:e.value!==void 0?i:e.defaultValue??null,setSelectedValue:u,lastFocusedValue:a,setLastFocusedValue:l,isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1,validationState:e.validationState||(d?"invalid":null),isInvalid:d}}const v7=s.createContext(null),x7=s.createContext(null),ps=s.createContext(null),C7=s.forwardRef(function(t,r){[t,r]=me(t,r,v7);let{validationBehavior:n}=Re(rn)||{},i=t.validationBehavior??n??"native",a=y7({...t,validationBehavior:i}),[l,o]=Rt(!t["aria-label"]&&!t["aria-labelledby"]),{radioGroupProps:u,labelProps:d,descriptionProps:c,errorMessageProps:f,...h}=b7({...t,label:o,validationBehavior:i},a),p=se({...t,values:{orientation:t.orientation||"vertical",isDisabled:a.isDisabled,isReadOnly:a.isReadOnly,isRequired:a.isRequired,isInvalid:a.isInvalid,state:a},defaultClassName:"react-aria-RadioGroup"}),b=ne(t,{global:!0});return s.createElement(re.div,{...W(b,p,u),ref:r,slot:t.slot||void 0,"data-orientation":t.orientation||"vertical","data-invalid":a.isInvalid||void 0,"data-disabled":a.isDisabled||void 0,"data-readonly":a.isReadOnly||void 0,"data-required":a.isRequired||void 0},s.createElement(Ee,{values:[[ps,a],[er,{...d,ref:l,elementType:"span"}],[Je,{slots:{description:c,errorMessage:f}}],[jn,h]]},s.createElement(Rn,null,p.children)))}),D7=s.forwardRef(function(t,r){let{inputRef:n=null,...i}=t;[t,r]=me(i,r,x7);let a=s.useContext(ps),l=Be(s.useMemo(()=>Gt(n,t.inputRef!==void 0?t.inputRef:null),[n,t.inputRef])),o=m7({...Zt(t),children:typeof t.children=="function"?!0:t.children},a,l);return s.createElement(Zb.Provider,{value:{...o,inputRef:l,defaultClassName:"react-aria-Radio"}},s.createElement(w7,{...t,ref:r}))}),Zb=s.createContext(null),w7=s.forwardRef(function(t,r){let{labelProps:n,inputProps:i,isSelected:a,isDisabled:l,isPressed:o,defaultClassName:u,inputRef:d}=s.useContext(Zb),c=s.useContext(ps),{isFocused:f,isFocusVisible:h,focusProps:p}=Ae(),b=l||c.isReadOnly,{hoverProps:g,isHovered:$}=Fe({...t,isDisabled:b}),y=se({...t,defaultClassName:u,values:{isSelected:a,isPressed:o,isHovered:$,isFocused:f,isFocusVisible:h,isDisabled:l,isReadOnly:c.isReadOnly,isInvalid:c.isInvalid,isRequired:c.isRequired}}),x=ne(t,{global:!0});return delete x.id,delete x.onClick,s.createElement(re.label,{...W(x,n,g,y),ref:r,"data-selected":a||void 0,"data-pressed":o||void 0,"data-hovered":$||void 0,"data-focused":f||void 0,"data-focus-visible":h||void 0,"data-disabled":l||void 0,"data-readonly":c.isReadOnly||void 0,"data-invalid":c.isInvalid||void 0,"data-required":c.isRequired||void 0},s.createElement(ur,{elementType:"span"},s.createElement("input",{...W(i,p),ref:d})),y.children)});var Yb={};Yb={"Clear search":"مسح البحث"};var qb={};qb={"Clear search":"Изчистване на търсене"};var Xb={};Xb={"Clear search":"Vymazat hledání"};var Jb={};Jb={"Clear search":"Ryd søgning"};var Qb={};Qb={"Clear search":"Suche zurücksetzen"};var e1={};e1={"Clear search":"Απαλοιφή αναζήτησης"};var t1={};t1={"Clear search":"Clear search"};var r1={};r1={"Clear search":"Borrar búsqueda"};var n1={};n1={"Clear search":"Tühjenda otsing"};var i1={};i1={"Clear search":"Tyhjennä haku"};var a1={};a1={"Clear search":"Effacer la recherche"};var l1={};l1={"Clear search":"נקה חיפוש"};var o1={};o1={"Clear search":"Obriši pretragu"};var s1={};s1={"Clear search":"Keresés törlése"};var u1={};u1={"Clear search":"Cancella ricerca"};var d1={};d1={"Clear search":"検索をクリア"};var c1={};c1={"Clear search":"검색 지우기"};var f1={};f1={"Clear search":"Išvalyti iešką"};var h1={};h1={"Clear search":"Notīrīt meklēšanu"};var p1={};p1={"Clear search":"Tøm søk"};var m1={};m1={"Clear search":"Zoekactie wissen"};var b1={};b1={"Clear search":"Wyczyść zawartość wyszukiwania"};var g1={};g1={"Clear search":"Limpar pesquisa"};var $1={};$1={"Clear search":"Limpar pesquisa"};var y1={};y1={"Clear search":"Ştergeţi căutarea"};var v1={};v1={"Clear search":"Очистить поиск"};var x1={};x1={"Clear search":"Vymazať vyhľadávanie"};var C1={};C1={"Clear search":"Počisti iskanje"};var D1={};D1={"Clear search":"Obriši pretragu"};var w1={};w1={"Clear search":"Rensa sökning"};var E1={};E1={"Clear search":"Aramayı temizle"};var S1={};S1={"Clear search":"Очистити пошук"};var P1={};P1={"Clear search":"清除搜索"};var k1={};k1={"Clear search":"清除搜尋條件"};var B1={};B1={"ar-AE":Yb,"bg-BG":qb,"cs-CZ":Xb,"da-DK":Jb,"de-DE":Qb,"el-GR":e1,"en-US":t1,"es-ES":r1,"et-EE":n1,"fi-FI":i1,"fr-FR":a1,"he-IL":l1,"hr-HR":o1,"hu-HU":s1,"it-IT":u1,"ja-JP":d1,"ko-KR":c1,"lt-LT":f1,"lv-LV":h1,"nb-NO":p1,"nl-NL":m1,"pl-PL":b1,"pt-BR":g1,"pt-PT":$1,"ro-RO":y1,"ru-RU":v1,"sk-SK":x1,"sl-SI":C1,"sr-SP":D1,"sv-SE":w1,"tr-TR":E1,"uk-UA":S1,"zh-CN":P1,"zh-TW":k1};function E7(e){return e&&e.__esModule?e.default:e}function S7(e,t,r){let n=Ne(E7(B1),"@react-aria/searchfield"),{isDisabled:i,isReadOnly:a,onSubmit:l,onClear:o,type:u="search"}=e,{keyboardProps:d}=Le({isDisabled:i||a,shortcuts:{Enter:()=>{if(l){l(t.value);return}return!1},Escape:()=>{if(t.value===""&&(!r.current||r.current.value===""))return!1;t.setValue(""),o?.()}}}),c=()=>{t.setValue(""),o&&o()},f=()=>{r.current?.focus()},{labelProps:h,inputProps:p,descriptionProps:b,errorMessageProps:g,...$}=w0({...e,value:t.value,onChange:t.setValue,onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp,type:u},r);return{labelProps:h,inputProps:W(d,{...p,defaultValue:void 0}),clearButtonProps:{"aria-label":n.format("Clear search"),excludeFromTabOrder:!0,preventFocusOnPress:!0,isDisabled:i||a,onPress:c,onPressStart:f},descriptionProps:b,errorMessageProps:g,...$}}function P7(e){let[t,r]=_e(N1(e.value),N1(e.defaultValue)||"",e.onChange);return{value:t,setValue:r}}function N1(e){if(e!=null)return e.toString()}const k7=s.createContext(null),A1=Wr(function(t,r){[t,r]=me(t,r,k7);let{validationBehavior:n}=Re(rn)||{},i=t.validationBehavior??n??"native",a=s.useRef(null);[t,a]=me(t,a,Pn);let[l,o]=Rt(!t["aria-label"]&&!t["aria-labelledby"]),u=P7({...t,validationBehavior:i}),{labelProps:d,inputProps:c,clearButtonProps:f,descriptionProps:h,errorMessageProps:p,...b}=S7({...Zt(t),label:o,validationBehavior:i},u,a),g=se({...t,values:{isEmpty:u.value==="",isDisabled:t.isDisabled||!1,isInvalid:b.isInvalid||!1,isReadOnly:t.isReadOnly||!1,isRequired:t.isRequired||!1,state:u},defaultClassName:"react-aria-SearchField"}),$=ne(t,{global:!0});return delete $.id,s.createElement(re.div,{...$,...g,ref:r,slot:t.slot||void 0,"data-empty":u.value===""||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":b.isInvalid||void 0,"data-readonly":t.isReadOnly||void 0,"data-required":t.isRequired||void 0},s.createElement(Ee,{values:[[er,{...d,ref:l}],[ln,{...c,ref:a}],[Ct,f],[Je,{slots:{description:h,errorMessage:p}}],[an,{isInvalid:b.isInvalid,isDisabled:t.isDisabled||!1}],[jn,b]]},g.children))}),ms=new WeakMap;function B7(e,t,r){let{keyboardDelegate:n,isDisabled:i,isRequired:a,name:l,form:o,validationBehavior:u="aria"}=e,d=on({usage:"search",sensitivity:"base"}),c=s.useMemo(()=>n||new qn(t.collection,t.disabledKeys,r,d),[n,t.collection,t.disabledKeys,d,r]),{menuTriggerProps:f,menuProps:h}=is({isDisabled:i,type:"listbox"},t,r),{keyboardProps:p}=Le({shortcuts:{ArrowLeft:()=>{if(t.selectionManager.selectionMode==="multiple")return!1;let P=t.selectedKey!=null?c.getKeyAbove?.(t.selectedKey):c.getFirstKey?.();P!=null&&t.setSelectedKey(P)},ArrowRight:()=>{if(t.selectionManager.selectionMode==="multiple")return!1;let P=t.selectedKey!=null?c.getKeyBelow?.(t.selectedKey):c.getFirstKey?.();P!=null&&t.setSelectedKey(P)}},allowRepeats:!0,onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp}),{typeSelectProps:b}=e4({keyboardDelegate:c,selectionManager:t.selectionManager,onTypeSelect(P){t.setSelectedKey(P)}}),{isInvalid:g,validationErrors:$,validationDetails:y}=t.displayValidation,{labelProps:x,fieldProps:v,descriptionProps:C,errorMessageProps:E}=xa({...e,labelElementType:"span",isInvalid:g,errorMessage:e.errorMessage||$});t.selectionManager.selectionMode==="multiple"&&(b={});let S=ne(e,{labelable:!0}),B=W(b,f,v),w=De();return ms.set(t,{isDisabled:i,isRequired:a,name:l,form:o,validationBehavior:u}),{labelProps:{...x,onClick:()=>{e.isDisabled||(r.current?.focus(),Hr("keyboard"))}},triggerProps:W(S,{...B,isDisabled:i,onKeyDown:ot(B.onKeyDown,p.onKeyDown),onKeyUp:p.onKeyUp,"aria-labelledby":[w,B["aria-labelledby"],B["aria-label"]&&!B["aria-labelledby"]?B.id:null].filter(Boolean).join(" "),onFocus(P){t.isFocused||(e.onFocus&&e.onFocus(P),e.onFocusChange&&e.onFocusChange(!0),t.setFocused(!0))},onBlur(P){t.isOpen||(e.onBlur&&e.onBlur(P),e.onFocusChange&&e.onFocusChange(!1),t.setFocused(!1))}}),valueProps:{id:w},menuProps:{...h,onAction:void 0,autoFocus:t.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,linkBehavior:"selection",onBlur:P=>{le(P.currentTarget,P.relatedTarget)||(e.onBlur&&e.onBlur(P),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:E,isInvalid:g,validationErrors:$,validationDetails:y,hiddenSelectProps:{isDisabled:i,name:l,label:e.label,state:t,triggerRef:r,form:o}}}function N7(e,t,r){let n=ms.get(t)||{},{autoComplete:i,name:a=n.name,form:l=n.form,isDisabled:o=n.isDisabled}=e,{validationBehavior:u,isRequired:d}=n,{visuallyHiddenProps:c}=kr({style:{position:"fixed",top:0,left:0}});nn(e.selectRef,t.defaultValue,t.setValue),Un({validationBehavior:u,focus:()=>r.current?.focus()},t,e.selectRef);let f=t.setValue,h=s.useCallback(p=>{let b=X(p);b.multiple?f(Array.from(b.selectedOptions,g=>g.value)):f(p.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:u==="native"&&d,name:a,form:l,value:t.value??"",onChange:h,onInput:h}}}function A7(e){let{state:t,triggerRef:r,label:n,name:i,form:a,isDisabled:l}=e,o=s.useRef(null),u=s.useRef(null),{containerProps:d,selectProps:c}=N7({...e,selectRef:t.collection.size<=300?o:u},t,r),f=Array.isArray(t.value)?t.value:[t.value];if(t.collection.size<=300)return s.createElement("div",{...d,"data-testid":"hidden-select-container"},s.createElement("label",null,n,s.createElement("select",{...c,ref:o},s.createElement("option",{value:"",label:" "}," "),[...t.collection.getKeys()].map(h=>{let p=t.collection.getItem(h);if(p&&p.type==="item")return s.createElement("option",{key:p.key,value:p.key},p.textValue)}),t.collection.size===0&&i&&f.map((h,p)=>s.createElement("option",{key:p,value:h??""})))));if(i){let h=ms.get(t)||{},{validationBehavior:p}=h;f.length===0&&(f=[null]);let b=f.map((g,$)=>{let y={type:"hidden",autoComplete:c.autoComplete,name:i,form:a,disabled:l,value:g??""};return p==="native"?s.createElement("input",{key:$,...y,ref:$===0?u:null,style:{display:"none"},type:"text",required:$===0?c.required:!1,onChange:()=>{}}):s.createElement("input",{key:$,...y,ref:$===0?u:null})});return s.createElement(s.Fragment,null,b)}return null}function F7(e){let{selectionMode:t="single",shouldCloseOnSelect:r=t==="single"}=e,n=ai(e),[i,a]=s.useState(null),l=s.useMemo(()=>e.defaultValue!==void 0?e.defaultValue:t==="single"?e.defaultSelectedKey??null:[],[e.defaultValue,e.defaultSelectedKey,t]),o=s.useMemo(()=>e.value!==void 0?e.value:t==="single"?e.selectedKey:void 0,[e.value,e.selectedKey,t]),[u,d]=_e(o,l,e.onChange),c=t==="single"&&Array.isArray(u)?u[0]:u,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)}},h=Pa({...e,selectionMode:t,disallowEmptySelection:t==="single",allowDuplicateSelectionEvents:!0,selectedKeys:s.useMemo(()=>T7(c),[c]),onSelectionChange:v=>{if(v!=="all"){if(t==="single"){let C=v.values().next().value??null;f(C)}else f([...v]);r&&n.close(),g.commitValidation()}}}),p=h.selectionManager.firstSelectedKey,b=s.useMemo(()=>[...h.selectionManager.selectedKeys].map(v=>h.collection.getItem(v)).filter(v=>v!=null),[h.selectionManager.selectedKeys,h.collection]),g=Br({...e,value:Array.isArray(c)&&c.length===0?null:c}),[$,y]=s.useState(!1),[x]=s.useState(c);return{...g,...h,...n,value:c,defaultValue:l??x,setValue:f,selectedKey:p,setSelectedKey:f,selectedItem:b[0]??null,selectedItems:b,defaultSelectedKey:e.defaultSelectedKey??(e.selectionMode==="single"?x:null),focusStrategy:i,open(v=null){(h.collection.size!==0||e.allowsEmptyCollection)&&(a(v),n.open())},toggle(v=null){(h.collection.size!==0||e.allowsEmptyCollection)&&(a(v),n.toggle())},isFocused:$,setFocused:y}}function T7(e){if(e!==void 0)return e===null?[]:Array.isArray(e)?e:[e]}function I7(e){return e&&e.__esModule?e.default:e}const bs=s.createContext(null),gs=s.createContext(null),M7=Wr(function(t,r){[t,r]=me(t,r,bs);let{children:n,isDisabled:i=!1,isInvalid:a=!1,isRequired:l=!1}=t,o=s.useMemo(()=>typeof n=="function"?n({isOpen:!1,isDisabled:i,isInvalid:a,isRequired:l,isFocused:!1,isFocusVisible:!1,defaultChildren:null}):n,[n,i,a,l]);return s.createElement(gr,{content:o},u=>s.createElement(O7,{props:t,collection:u,selectRef:r}))}),K7=[er,Ct,Je];function O7({props:e,selectRef:t,collection:r}){let{validationBehavior:n}=Re(rn)||{},i=e.validationBehavior??n??"native",a=F7({...e,collection:r,children:void 0,validationBehavior:i}),{isFocusVisible:l,focusProps:o}=Ae({within:!0}),u=s.useRef(null),[d,c]=Rt(!e["aria-label"]&&!e["aria-labelledby"]),{labelProps:f,triggerProps:h,valueProps:p,menuProps:b,descriptionProps:g,errorMessageProps:$,hiddenSelectProps:y,...x}=B7({...Zt(e),label:c,validationBehavior:i},a,u),v=s.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=se({...e,values:v,defaultClassName:"react-aria-Select"}),E=ne(e,{global:!0});delete E.id;let S=s.useRef(null);return s.createElement(Ee,{values:[[bs,e],[gs,a],[F1,p],[er,{...f,ref:d,elementType:"span"}],[Ct,{...h,ref:u,isPressed:a.isOpen,autoFocus:e.autoFocus}],[Vt,a],[li,{trigger:"Select",triggerRef:u,scrollRef:S,placement:"bottom start","aria-labelledby":b["aria-labelledby"],clearContexts:K7}],[ei,{...b,ref:S}],[Fr,a],[Je,{slots:{description:g,errorMessage:$}}],[jn,x]]},s.createElement(re.div,{...W(E,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,s.createElement(A7,{...y,autoComplete:e.autoComplete})))}const F1=s.createContext(null),L7=Wr(function(t,r){[t,r]=me(t,r,F1);let n=s.useContext(gs),{placeholder:i}=Re(bs),a=n.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=x8(),o=s.useMemo(()=>n.selectedItems.map(b=>b?.textValue),[n.selectedItems]),u=n.selectionManager.selectionMode,d=s.useMemo(()=>u==="single"?o[0]??"":l.format(o),[u,l,o]),c=s.useMemo(()=>{if(u==="single")return a[0];let b=l.formatToParts(o);if(b.length===0)return null;let g=0;return b.map($=>$.type==="element"?s.createElement(s.Fragment,{key:g},a[g++]):$.value)},[u,l,o,a]),f=Ne(I7(No),"react-aria-components"),h=se({...t,defaultChildren:c??i??f.format("selectPlaceholder"),defaultClassName:"react-aria-SelectValue",values:{selectedItem:n.selectedItems[0]?.value??null,selectedItems:s.useMemo(()=>n.selectedItems.map(b=>b.value??null),[n.selectedItems]),selectedText:d,isPlaceholder:n.selectedItems.length===0,state:n}}),p=ne(t,{global:!0});return s.createElement(re.span,{ref:r,...p,...h,"data-placeholder":n.selectedItems.length===0||void 0},s.createElement(Je.Provider,{value:void 0},h.children))});function z7(e,t,r){let{labelProps:n,inputProps:i,isSelected:a,...l}=v0(e,t,r);return{labelProps:n,inputProps:{...i,role:"switch",checked:a},isSelected:a,...l}}const V7=s.createContext(null),T1=s.createContext(null),_7=s.forwardRef(function(t,r){let{inputRef:n=null,...i}=t;[t,r]=me(i,r,V7);let a=Be(Gt(n,t.inputRef!==void 0?t.inputRef:null)),l=ko(t),o=z7({...Zt(t),children:typeof t.children=="function"?!0:t.children},l,a);return s.createElement(Ee,{values:[[T1,l],[I1,{...o,inputRef:a,defaultClassName:"react-aria-Switch"}]]},s.createElement(j7,{...t,ref:r}))}),I1=s.createContext(null),j7=s.forwardRef(function(t,r){let{labelProps:n,inputProps:i,isSelected:a,isDisabled:l,isReadOnly:o,isPressed:u,isInvalid:d,inputRef:c,defaultClassName:f,isRequired:h}=s.useContext(I1),{isFocused:p,isFocusVisible:b,focusProps:g}=Ae(),$=l||o,y=s.useContext(T1),{hoverProps:x,isHovered:v}=Fe({...t,isDisabled:$}),C=se({...t,defaultClassName:f,values:{isSelected:a,isPressed:u,isHovered:v,isFocused:p,isFocusVisible:b,isDisabled:l,isReadOnly:o,isInvalid:d,isRequired:h||!1,state:y}}),E=ne(t,{global:!0});return delete E.id,delete E.onClick,s.createElement(re.label,{...W(E,n,x,C),ref:r,slot:t.slot||void 0,"data-selected":a||void 0,"data-pressed":u||void 0,"data-hovered":v||void 0,"data-focused":p||void 0,"data-focus-visible":b||void 0,"data-disabled":l||void 0,"data-readonly":o||void 0,"data-invalid":d||void 0,"data-required":h||void 0},s.createElement(ur,{elementType:"span"},s.createElement("input",{...W(i,g),ref:c})),C.children)}),M1=10,K1=5;class H7{setup(t,r,n){this.delegate=t,this.state=r,this.direction=n}getDropTargetFromPoint(t,r,n){let i=this.delegate.getDropTargetFromPoint(t,r,n);return!i||i.type==="root"?i:this.resolveDropTarget(i,t,r,n)}resolveDropTarget(t,r,n,i){let a=this.pointerTracking,l=n-a.lastY,o=r-a.lastX,u=a.yDirection,d=a.xDirection;if(Math.abs(l)>K1&&(u=l>0?"down":"up",a.yDirection=u,a.lastY=n),Math.abs(o)>M1&&(d=o>0?"right":"left",a.xDirection=d,a.lastX=r),t.dropPosition==="before"){let h=this.state.collection.getKeyBefore(t.key);for(;h!=null;){let p=this.state.collection.getItem(h);if(p?.type==="item")break;h=p?.parentKey??null}if(h!=null){let p={type:"item",key:h,dropPosition:"after"};i(p)&&(t=p)}}let c=this.getPotentialTargets(t,i);if(c.length===0)return{type:"root"};let f;return c.length>1?f=this.selectTarget(c,t,r,n,u,d):(f=c[0],a.boundaryContext=null),f}getPotentialTargets(t,r){if(t.dropPosition==="on")return[t];let n=t,i=this.state.collection,a=i.getItem(n.key);for(;a&&a?.type!=="item"&&a.nextKey!=null;)n.key=a.nextKey,a=i.getItem(a.nextKey);let l=[n];if(a&&a.hasChildNodes&&this.state.expandedKeys.has(a.key)&&i.getChildren&&n.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 r(c)?[c]:[]}}if(a?.nextKey!=null)return[t];let o=a?.parentKey,u=[];for(;o!=null;){let d=i.getItem(o),c=d?.nextKey!=null?i.getItem(d.nextKey):null;if(!c||c.parentKey!==o){let h={type:"item",key:o,dropPosition:"after"};if(r(h)&&u.push(h),c)break}o=d?.parentKey}if(u.length>0&&l.push(...u),l.length===1){let d=i.getKeyAfter(n.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(r(f))return[f]}}return l.filter(r)}selectTarget(t,r,n,i,a,l){if(t.length<2)return t[0];let o=this.pointerTracking,d=this.state.collection.getItem(r.key)?.parentKey;if(d==null)return t[0];if(!o.boundaryContext||o.boundaryContext.parentKey!==d){let b=o.yDirection==="up"?t.length-1:0;o.boundaryContext={parentKey:d,preferredTargetIndex:b,lastSwitchY:i,lastSwitchX:n}}let c=o.boundaryContext,f=Math.abs(n-c.lastSwitchX);if(Math.abs(i-c.lastSwitchY)>K1&&a){let b=c.preferredTargetIndex||0;a==="down"&&b===0?c.preferredTargetIndex=t.length-1:a==="up"&&b===t.length-1&&(c.preferredTargetIndex=0),o.xDirection=null}if(f>M1&&l){let b=c.preferredTargetIndex||0;l==="left"?this.direction==="ltr"?b<t.length-1&&(c.preferredTargetIndex=b+1,c.lastSwitchX=n):b>0&&(c.preferredTargetIndex=b-1,c.lastSwitchX=n):l==="right"&&(this.direction==="ltr"?b>0&&(c.preferredTargetIndex=b-1,c.lastSwitchX=n):b<t.length-1&&(c.preferredTargetIndex=b+1,c.lastSwitchX=n)),o.yDirection=null}let p=Math.max(0,Math.min(c.preferredTargetIndex||0,t.length-1));return t[p]}constructor(){this.delegate=null,this.state=null,this.direction="ltr",this.pointerTracking={lastY:0,lastX:0,yDirection:null,xDirection:null,boundaryContext:null}}}class U7{constructor(t){this.keyMap=new Map,this.keyMap=new Map,this.columnCount=t?.columnCount,this.rows=[];let r=a=>{let l=this.keyMap.get(a.key);t.visitNode&&(a=t.visitNode(a)),this.keyMap.set(a.key,a);let o=new Set,u=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=u?(u.colIndex??u.index)+(u.colSpan??1):c.index),c.type==="cell"&&c.parentKey==null&&(c.parentKey=a.key),o.add(c.key),u?(u.nextKey=c.key,c.prevKey=u.key):c.prevKey=null,r(c),u=c;if(u&&(u.nextKey=null),l)for(let c of l.childNodes)o.has(c.key)||n(c)},n=a=>{this.keyMap.delete(a.key);for(let l of a.childNodes)this.keyMap.get(l.key)===l&&n(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),r(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 r=this.keyMap.get(t);return r?r.prevKey??null:null}getKeyAfter(t){let r=this.keyMap.get(t);return r?r.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 r=[...this.getKeys()];return this.getItem(r[t])}getChildren(t){return this.keyMap.get(t)?.childNodes||[]}}const O1="row-header-column-"+Math.random().toString(36).slice(2);let $s="row-header-column-"+Math.random().toString(36).slice(2);for(;O1===$s;)$s="row-header-column-"+Math.random().toString(36).slice(2);function L1(e,t){if(t.length===0)return[];let r=[],n=new Map;for(let u of t){let d=u.parentKey,c=[u];for(;d!=null;){let f=e.get(d);if(!f)break;if(n.has(f)){f.colSpan??=0,f.colSpan++,f.colspan=f.colSpan;let{column:h,index:p}=n.get(f);if(p>c.length)break;for(let b=p;b<c.length;b++)h.splice(b,0,null);for(let b=c.length;b<h.length;b++)h[b]&&n.has(h[b])&&(n.get(h[b]).index=b)}else f.colSpan=1,f.colspan=1,c.push(f),n.set(f,{column:c,index:c.length-1});d=f.parentKey}r.push(c),u.index=r.length-1}let i=Math.max(...r.map(u=>u.length)),a=Array(i).fill(0).map(()=>[]),l=0;for(let u of r){let d=i-1;for(let c of u){if(c){let f=a[d],h=f.reduce((p,b)=>p+(b.colSpan??1),0);if(h<l){let p={type:"placeholder",key:"placeholder-"+c.key,colspan:l-h,colSpan:l-h,index:h,value:null,rendered:null,level:d,hasChildNodes:!1,childNodes:[],textValue:""};f.length>0&&(f[f.length-1].nextKey=p.key,p.prevKey=f[f.length-1].key),f.push(p)}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 u of a){let d=u.reduce((c,f)=>c+(f.colSpan??1),0);if(d<t.length){let c={type:"placeholder",key:"placeholder-"+u[u.length-1].key,colSpan:t.length-d,colspan:t.length-d,index:d,value:null,rendered:null,level:o,hasChildNodes:!1,childNodes:[],textValue:"",prevKey:u[u.length-1].key};u.push(c)}o++}return a.map((u,d)=>({type:"headerrow",key:"headerrow-"+d,index:d,value:null,rendered:null,level:0,hasChildNodes:!0,childNodes:u,textValue:""}))}class W7 extends U7{constructor(t,r,n){let i=new Set,a=null,l=[];if(n?.showSelectionCheckboxes){let f={type:"column",key:O1,value:null,textValue:"",level:0,index:n?.showDragButtons?1:0,hasChildNodes:!1,rendered:null,childNodes:[],props:{isSelectionCell:!0}};l.unshift(f)}if(n?.showDragButtons){let f={type:"column",key:$s,value:null,textValue:"",level:0,index:0,hasChildNodes:!1,rendered:null,childNodes:[],props:{isDragButtonCell:!0}};l.unshift(f)}let o=[],u=new Map,d=f=>{switch(f.type){case"body":a=f;break;case"column":u.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 h of f.childNodes)d(h)};for(let f of t)d(f);let c=L1(u,l);if(c.forEach((f,h)=>o.splice(h,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(h=>!h.props?.isDragButtonCell&&!h.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 zt(this.body.childNodes)?.key??null}getLastKey(){return sn(this.body.childNodes)?.key??null}getItem(t){return t===this.body.key?this.body:this.keyMap.get(t)??null}at(t){const r=[...this.getKeys()];return this.getItem(r[t])}getChildren(t){if(t===this.body.key)return this.body.childNodes;let r=this.getItem(t);return r?.type==="item"?[...r.childNodes].filter(n=>n.type==="cell"):super.getChildren(t)}getTextValue(t){let r=this.getItem(t);if(!r)return"";if(r.textValue)return r.textValue;let n=this.rowHeaderColumnKeys;if(n){let i=[];for(let a of r.childNodes){let l=this.columns[a.index];if(n.has(l.key)&&a.textValue&&i.push(a.textValue),i.length===n.size)break}return i.join(" ")}return""}}function G7(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 ys(e,t){if(typeof e=="string"){let r=e.match(/^(\d+)(?=%$)/);if(!r)throw new Error("Only percentages or numbers are supported for static column widths");return t*(parseFloat(r[0])/100)}return e}function z1(e,t){return e!=null?ys(e,t):Number.MAX_SAFE_INTEGER}function V1(e,t){return e!=null?ys(e,t):0}function Z7(e,t,r,n,i){let a=e,l=Math.floor(e),o=e-l>0;e=l;let u=!1,d=t.map((f,h)=>{let p=r.get(f.key)!=null?r.get(f.key)??"1fr":f.width??f.defaultWidth??n?.(h)??"1fr",b=!1,g=0,$=0,y=0;G7(p)?(g=ys(p,e),b=!0):($=R7(p),$<=0&&(b=!0));let x=V1(f.minWidth??i?.(h)??0,e),v=z1(f.maxWidth,e),C=Math.max(x,Math.min(g,v));return b?y=C:g>C&&(b=!0,y=C),b||(u=!0),{frozen:b,baseSize:g,hypotheticalMainSize:C,min:x,max:v,flex:$,targetMainSize:y,violation:0}});for(;u;){let f=0,h=0;d.forEach(g=>{g.frozen?f+=g.targetMainSize:(f+=g.baseSize,h+=g.flex)});let p=e-f;p>0&&d.forEach(g=>{if(!g.frozen){let $=g.flex/h;g.targetMainSize=g.baseSize+$*p}});let b=0;d.forEach(g=>{if(g.violation=0,!g.frozen){let{min:$,max:y,targetMainSize:x}=g;g.targetMainSize=Math.max($,Math.min(x,y)),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=Y7(d);if(o&&c.length>0){let f=a.toString().split(".")[1],h=c[c.length-1].toString();c[c.length-1]=+(h+"."+f)}return c}function Y7(e){let t=0,r=0,n=[];return e.forEach(function(i){let a=i.targetMainSize,l=Math.round(a+t)-r;t+=a,r+=l,n.push(l)}),n}class q7{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((r,n)=>(n.props.width!=null?r[0].set(n.key,n):r[1].set(n.key,n),r),[new Map,new Map])}recombineColumns(t,r,n,i){return new Map(t.map(a=>n.has(a.key)?[a.key,r.get(a.key)]:[a.key,i.get(a.key).props.width]))}getInitialUncontrolledWidths(t){return new Map(Array.from(t).map(([r,n])=>[r,n.props.defaultWidth??this.getDefaultWidth?.(n)??"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,r,n,i){let a=this.columnWidths,l=!0,o=new Map;return i=Math.max(this.getColumnMinWidth(n),Math.min(this.getColumnMaxWidth(n),Math.floor(i))),t.columns.forEach(u=>{u.key===n?(o.set(u.key,i),l=!1):l?o.set(u.key,a.get(u.key)??0):o.set(u.key,u.props.width??r.get(u.key))}),o}buildColumnWidths(t,r,n){return this.columnWidths=new Map,this.columnMinWidths=new Map,this.columnMaxWidths=new Map,Z7(t,r.columns.map(a=>({...a.props,key:a.key})),n,a=>this.getDefaultWidth(r.columns[a]),a=>this.getDefaultMinWidth(r.columns[a])).forEach((a,l)=>{let o=r.columns[l].key,u=r.columns[l];this.columnWidths.set(o,a),this.columnMinWidths.set(o,V1(u.props.minWidth??this.getDefaultMinWidth(u),t)),this.columnMaxWidths.set(o,z1(u.props.maxWidth,t))}),this.columnWidths}}function X7(e,t){let{getDefaultWidth:r,getDefaultMinWidth:n,tableWidth:i=0}=e,[a,l]=s.useState(null),o=s.useMemo(()=>new q7({getDefaultWidth:r,getDefaultMinWidth:n}),[r,n]),[u,d]=s.useMemo(()=>o.splitColumnsIntoControlledAndUncontrolled(t.collection.columns),[t.collection.columns,o]),[c,f]=s.useState(()=>o.getInitialUncontrolledWidths(d)),[h,p]=s.useState(t.collection.columns);if(t.collection.columns!==h){if(t.collection.columns.length!==h.length||t.collection.columns.some((v,C)=>v.key!==h[C].key)){let v=o.getInitialUncontrolledWidths(d);f(v)}p(t.collection.columns)}let b=s.useMemo(()=>o.recombineColumns(t.collection.columns,c,d,u),[t.collection.columns,c,d,u,o]),g=s.useCallback(v=>{l(v)},[l]),$=s.useCallback((v,C)=>{let E=o.resizeColumnWidth(t.collection,c,v,C),S=new Map(Array.from(d).map(([B])=>[B,E.get(B)]));return S.set(v,C),f(S),E},[d,f,o,t.collection,c]),y=s.useCallback(()=>{l(null)},[l]),x=s.useMemo(()=>o.buildColumnWidths(i,t.collection,b),[i,t.collection,b,o]);return s.useMemo(()=>({resizingColumn:a,updateResizedColumns:$,startResize:g,endResize:y,getColumnWidth:v=>o.getColumnWidth(v),getColumnMinWidth:v=>o.getColumnMinWidth(v),getColumnMaxWidth:v=>o.getColumnMaxWidth(v),tableState:t,columnWidths:x}),[o,x,a,$,g,y,t])}function J7(e){let{collection:t,focusMode:r}=e,n=e.UNSAFE_selectionState||Qn(e),i=s.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=n.setFocusedKey;n.setFocusedKey=(u,d)=>{if(r==="cell"&&u!=null){let c=t.getItem(u);if(c?.type==="item"){let f=Me(c,t);d==="last"?u=sn(f)?.key??null:u=zt(f)?.key??null}}a(u,d)};let l=s.useMemo(()=>new un(t,n),[t,n]);const o=s.useRef(null);return s.useEffect(()=>{if(n.focusedKey!=null&&o.current&&!t.getItem(n.focusedKey)){const u=o.current.getItem(n.focusedKey),d=u?.parentKey!=null&&(u.type==="cell"||u.type==="rowheader"||u.type==="column")?o.current.getItem(u.parentKey):u;if(!d){n.setFocusedKey(null);return}const c=o.current.rows,f=t.rows,h=c.length-f.length;let p=Math.min(h>1?Math.max(d.index-h+1,0):d.index,f.length-1),b=null;for(let g=Math.max(0,p);g<f.length;g++)if(!l.isDisabled(f[g].key)&&f[g].type!=="headerrow"){b=f[g];break}if(b===null){for(let g=p-1;g>=0;g--)if(!l.isDisabled(f[g].key)&&f[g].type!=="headerrow"){b=f[g];break}}if(b){const g=b.hasChildNodes?[...Me(b,t)]:[],$=b.hasChildNodes&&d!==u&&u&&u.index<g.length?g[u.index].key:b.key;n.setFocusedKey($)}else n.setFocusedKey(null)}o.current=t},[t,l,n,n.focusedKey]),{collection:t,disabledKeys:i,isKeyboardNavigationDisabled:!1,selectionManager:l}}const Q7={ascending:"descending",descending:"ascending"};function eC(e){let[t,r]=s.useState(!1),{selectionMode:n="none",showSelectionCheckboxes:i,showDragButtons:a,treeColumn:l=null}=e,o=s.useMemo(()=>({showSelectionCheckboxes:i&&n!=="none",showDragButtons:a,selectionMode:n,columns:[]}),[e.children,i,n,a]),u=Zo(e,s.useCallback(p=>new W7(p,null,o),[o]),o),{disabledKeys:d,selectionManager:c}=J7({...e,collection:u,disabledBehavior:e.disabledBehavior||"selection"}),[f,h]=_e(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,e.onExpandedChange);return{collection:u,disabledKeys:d,selectionManager:c,showSelectionCheckboxes:e.showSelectionCheckboxes||!1,sortDescriptor:e.sortDescriptor??null,isKeyboardNavigationDisabled:u.size===0||t,setKeyboardNavigationDisabled:r,sort(p,b){e.onSortChange?.({column:p,direction:b??(e.sortDescriptor?.column===p?Q7[e.sortDescriptor.direction]:"ascending")})},expandedKeys:f,toggleKey(p){h(b=>{let g=new Set(b);return g.has(p)?g.delete(p):g.add(p),g})},treeColumn:l}}function tC(e,t){let r=s.useMemo(()=>t?e.collection.filter(t):e.collection,[e.collection,t]),n=e.selectionManager.withCollection(r);return{...e,collection:r,selectionManager:n}}class _1{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 rC(t.layout):new _o(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,r,n=!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((n||!this.isDisabled(a))&&(!r||r(a)))return i;i=this.collection.getKeyBefore(i)}return null}findNextKey(t,r,n=!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((n||!this.isDisabled(a))&&(!r||r(a)))return i;if(i=this.collection.getKeyAfter(i),i==null)return null}return null}getKeyForItemInRowByIndex(t,r=0){if(r<0)return null;let n=this.collection.getItem(t);if(!n)return null;let i=0;for(let a of Me(n,this.collection)){if(a.colSpan&&a.colSpan+i>r||(a.colSpan&&(i=i+a.colSpan-1),i===r))return a.key??null;i++}return null}getKeyBelow(t,r){let n=t,i=this.collection.getItem(n);if(!i||(this.isCell(i)&&(n=i.parentKey??null),n==null))return null;if(n=this.findNextKey(n,a=>a.type==="item",r?.includeDisabled),n!=null){if(this.isCell(i)){let a=i.colIndex?i.colIndex:i.index;return this.getKeyForItemInRowByIndex(n,a)}if(this.focusMode==="row")return n}return null}getKeyAbove(t,r){let n=t,i=this.collection.getItem(n);if(!i||(this.isCell(i)&&(n=i.parentKey??null),n==null))return null;if(n=this.findPreviousKey(n,a=>a.type==="item",r?.includeDisabled),n!=null){if(this.isCell(i)){let a=i.colIndex?i.colIndex:i.index;return this.getKeyForItemInRowByIndex(n,a)}if(this.focusMode==="row")return n}return null}getKeyRightOf(t){let r=this.collection.getItem(t);if(!r)return null;if(this.isRow(r)){let n=Me(r,this.collection);return(this.direction==="rtl"?sn(n)?.key:zt(n)?.key)??null}if(this.isCell(r)&&r.parentKey!=null){let n=this.collection.getItem(r.parentKey);if(!n)return null;let i=Me(n,this.collection),a=(this.direction==="rtl"?Jn(i,r.index-1):Jn(i,r.index+1))??null;return a?a.key??null:this.focusMode==="row"?r.parentKey??null:(this.direction==="rtl"?this.getFirstKey(t):this.getLastKey(t))??null}return null}getKeyLeftOf(t){let r=this.collection.getItem(t);if(!r)return null;if(this.isRow(r)){let n=Me(r,this.collection);return(this.direction==="rtl"?zt(n)?.key:sn(n)?.key)??null}if(this.isCell(r)&&r.parentKey!=null){let n=this.collection.getItem(r.parentKey);if(!n)return null;let i=Me(n,this.collection),a=(this.direction==="rtl"?Jn(i,r.index+1):Jn(i,r.index-1))??null;return a?a.key??null:this.focusMode==="row"?r.parentKey??null:(this.direction==="rtl"?this.getLastKey(t):this.getFirstKey(t))??null}return null}getFirstKey(t,r){let n=t??null,i;if(n!=null){if(i=this.collection.getItem(n),!i)return null;if(this.isCell(i)&&!r&&i.parentKey!=null){let a=this.collection.getItem(i.parentKey);return a?zt(Me(a,this.collection))?.key??null:null}}if(n=this.findNextKey(void 0,a=>a.type==="item"),n!=null&&(i&&this.isCell(i)&&r||this.focusMode==="cell")){let a=this.collection.getItem(n);if(!a)return null;n=zt(Me(a,this.collection))?.key??null}return n}getLastKey(t,r){let n=t??null,i;if(n!=null){if(i=this.collection.getItem(n),!i)return null;if(this.isCell(i)&&!r&&i.parentKey!=null){let a=this.collection.getItem(i.parentKey);if(!a)return null;let l=Me(a,this.collection);return sn(l)?.key??null}}if(n=this.findPreviousKey(void 0,a=>a.type==="item"),n!=null&&(i&&this.isCell(i)&&r||this.focusMode==="cell")){let a=this.collection.getItem(n);if(!a)return null;let l=Me(a,this.collection);n=sn(l)?.key??null}return n}getKeyPageAbove(t){let r=t,n=this.layoutDelegate.getItemRect(r);if(!n)return null;let i=Math.max(0,n.y+n.height-this.layoutDelegate.getVisibleRect().height);for(;n&&n.y>i&&r!=null&&(r=this.getKeyAbove(r)??null,r!=null);)n=this.layoutDelegate.getItemRect(r);return r}getKeyPageBelow(t){let r=t,n=this.layoutDelegate.getItemRect(r);if(!n)return null;let i=this.layoutDelegate.getVisibleRect().height,a=Math.min(this.layoutDelegate.getContentSize().height,n.y+i);for(;n&&n.y+n.height<a;){let l=this.getKeyBelow(r);if(l==null)break;n=this.layoutDelegate.getItemRect(l),r=l}return r}getKeyForSearch(t,r){let n=r??null;if(!this.collator)return null;let i=this.collection;if(n=r??this.getFirstKey(),n==null)return null;let a=i.getItem(n);if(!a)return null;a.type==="cell"&&(n=a.parentKey??null);let l=!1;for(;n!=null;){let o=i.getItem(n);if(!o)return null;if(o.textValue){let u=o.textValue.slice(0,t.length);if(this.collator.compare(u,t)===0)return this.isRow(o)&&this.focusMode==="cell"?zt(Me(o,this.collection))?.key??null:o.key}n=this.findNextKey(n,u=>u.type==="item"),n==null&&!l&&(n=this.getFirstKey(),l=!0)}return null}}class rC{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 vs=new WeakMap;function nC(e,t,r){let{isVirtualized:n,disallowTypeAhead:i,keyboardDelegate:a,focusMode:l,scrollRef:o,getRowText:u,onRowAction:d,onCellAction:c,escapeKeyBehavior:f="clearSelection",shouldSelectOnPressUp:h,keyboardNavigationBehavior:p="arrow"}=e,{selectionManager:b}=t;!e["aria-label"]&&!e["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let g=on({usage:"search",sensitivity:"base"}),{direction:$}=ge(),y=t.selectionManager.disabledBehavior,x=s.useMemo(()=>a||new _1({collection:t.collection,disabledKeys:t.disabledKeys,disabledBehavior:y,ref:r,direction:$,collator:g,focusMode:l}),[a,t.collection,t.disabledKeys,y,r,$,g,l]),{collectionProps:v}=Sa({ref:r,selectionManager:b,keyboardDelegate:x,isVirtualized:n,scrollRef:o,disallowTypeAhead:i,escapeKeyBehavior:f}),C=De(e.id);vs.set(t,{keyboardDelegate:x,actions:{onRowAction:d,onCellAction:c},shouldSelectOnPressUp:h,keyboardNavigationBehavior:p});let E=l7({selectionManager:b,hasItemActions:!!(d||c)}),S=ne(e,{labelable:!0}),B=s.useCallback(T=>{if(b.isFocused){le(T.currentTarget,X(T))||b.setFocused(!1);return}le(T.currentTarget,X(T))&&b.setFocused(!0)},[b]),w=s.useMemo(()=>({onBlur:v.onBlur,onFocus:B}),[B,v.onBlur]),P=i7(r,{isDisabled:t.collection.size!==0}),K=W(S,{role:"grid",id:C,"aria-multiselectable":b.selectionMode==="multiple"?"true":void 0},t.isKeyboardNavigationDisabled?w:v,t.collection.size===0&&{tabIndex:P?-1:0}||void 0,E);return n&&(K["aria-rowcount"]=t.collection.size,K["aria-colcount"]=t.collection.columnCount),n7({getRowText:u},t),{gridProps:K}}const xs=new WeakMap;function Cs(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function j1(e,t){let r=xs.get(e);if(!r)throw new Error("Unknown grid");return`${r}-${Cs(t)}`}function H1(e,t,r){let n=xs.get(e);if(!n)throw new Error("Unknown grid");return`${n}-${Cs(t)}-${Cs(r)}`}function Ds(e,t){return[...e.collection.rowHeaderColumnKeys].map(r=>H1(e,t,r)).join(" ")}var U1={};U1={ascending:"تصاعدي",ascendingSort:e=>`ترتيب حسب العمود ${e.columnName} بترتيب تصاعدي`,collapse:"طي",columnSize:e=>`${e.value} بالبكسل`,descending:"تنازلي",descendingSort:e=>`ترتيب حسب العمود ${e.columnName} بترتيب تنازلي`,expand:"تمديد",resizerDescription:"اضغط على مفتاح Enter لبدء تغيير الحجم",select:"تحديد",selectAll:"تحديد الكل",sortable:"عمود قابل للترتيب"};var W1={};W1={ascending:"възходящ",ascendingSort:e=>`сортирано по колона ${e.columnName} във възходящ ред`,collapse:"Свиване",columnSize:e=>`${e.value} пиксела`,descending:"низходящ",descendingSort:e=>`сортирано по колона ${e.columnName} в низходящ ред`,expand:"Разширяване",resizerDescription:"Натиснете „Enter“, за да започнете да преоразмерявате",select:"Изберете",selectAll:"Изберете всичко",sortable:"сортираща колона"};var G1={};G1={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 R1={};R1={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 Z1={};Z1={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 Y1={};Y1={ascending:"αύξουσα",ascendingSort:e=>`διαλογή ανά στήλη ${e.columnName} σε αύξουσα σειρά`,collapse:"Σύμπτυξη",columnSize:e=>`${e.value} pixel`,descending:"φθίνουσα",descendingSort:e=>`διαλογή ανά στήλη ${e.columnName} σε φθίνουσα σειρά`,expand:"Ανάπτυξη",resizerDescription:"Πατήστε Enter για έναρξη της αλλαγής μεγέθους",select:"Επιλογή",selectAll:"Επιλογή όλων",sortable:"Στήλη διαλογής"};var q1={};q1={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 X1={};X1={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 J1={};J1={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 Q1={};Q1={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 eg={};eg={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 tg={};tg={ascending:"עולה",ascendingSort:e=>`מוין לפי עמודה ${e.columnName} בסדר עולה`,collapse:"כווץ",columnSize:e=>`${e.value} פיקסלים`,descending:"יורד",descendingSort:e=>`מוין לפי עמודה ${e.columnName} בסדר יורד`,expand:"הרחב",resizerDescription:"הקש Enter כדי לשנות את הגודל",select:"בחר",selectAll:"בחר הכול",sortable:"עמודה שניתן למיין"};var rg={};rg={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 ng={};ng={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 ig={};ig={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 ag={};ag={ascending:"昇順",ascendingSort:e=>`列 ${e.columnName} を昇順で並べ替え`,collapse:"折りたたむ",columnSize:e=>`${e.value} ピクセル`,descending:"降順",descendingSort:e=>`列 ${e.columnName} を降順で並べ替え`,expand:"展開",resizerDescription:"Enter キーを押してサイズ変更を開始",select:"選択",selectAll:"すべて選択",sortable:"並べ替え可能な列"};var lg={};lg={ascending:"오름차순",ascendingSort:e=>`${e.columnName} 열을 기준으로 오름차순으로 정렬됨`,collapse:"접기",columnSize:e=>`${e.value} 픽셀`,descending:"내림차순",descendingSort:e=>`${e.columnName} 열을 기준으로 내림차순으로 정렬됨`,expand:"펼치기",resizerDescription:"크기 조정을 시작하려면 Enter를 누르세요.",select:"선택",selectAll:"모두 선택",sortable:"정렬 가능한 열"};var og={};og={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 sg={};sg={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 ug={};ug={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 dg={};dg={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 cg={};cg={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 fg={};fg={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 hg={};hg={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 pg={};pg={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 mg={};mg={ascending:"возрастание",ascendingSort:e=>`сортировать столбец ${e.columnName} в порядке возрастания`,collapse:"Свернуть",columnSize:e=>`${e.value} пикс.`,descending:"убывание",descendingSort:e=>`сортировать столбец ${e.columnName} в порядке убывания`,expand:"Развернуть",resizerDescription:"Нажмите клавишу Enter для начала изменения размеров",select:"Выбрать",selectAll:"Выбрать все",sortable:"сортируемый столбец"};var bg={};bg={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 gg={};gg={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 $g={};$g={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 yg={};yg={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 vg={};vg={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 xg={};xg={ascending:"висхідний",ascendingSort:e=>`відсортовано за стовпцем ${e.columnName} у висхідному порядку`,collapse:"Згорнути",columnSize:e=>`${e.value} пікс.`,descending:"низхідний",descendingSort:e=>`відсортовано за стовпцем ${e.columnName} у низхідному порядку`,expand:"Розгорнути",resizerDescription:"Натисніть Enter, щоб почати зміну розміру",select:"Вибрати",selectAll:"Вибрати все",sortable:"сортувальний стовпець"};var Cg={};Cg={ascending:"升序",ascendingSort:e=>`按列 ${e.columnName} 升序排序`,collapse:"折叠",columnSize:e=>`${e.value} 像素`,descending:"降序",descendingSort:e=>`按列 ${e.columnName} 降序排序`,expand:"扩展",resizerDescription:"按 Enter 开始调整大小。",select:"选择",selectAll:"全选",sortable:"可排序的列"};var Dg={};Dg={ascending:"遞增",ascendingSort:e=>`已依據「${e.columnName}」欄遞增排序`,collapse:"收合",columnSize:e=>`${e.value} 像素`,descending:"遞減",descendingSort:e=>`已依據「${e.columnName}」欄遞減排序`,expand:"展開",resizerDescription:"按 Enter 鍵以開始調整大小",select:"選取",selectAll:"全選",sortable:"可排序的欄"};var cn={};cn={"ar-AE":U1,"bg-BG":W1,"cs-CZ":G1,"da-DK":R1,"de-DE":Z1,"el-GR":Y1,"en-US":q1,"es-ES":X1,"et-EE":J1,"fi-FI":Q1,"fr-FR":eg,"he-IL":tg,"hr-HR":rg,"hu-HU":ng,"it-IT":ig,"ja-JP":ag,"ko-KR":lg,"lt-LT":og,"lv-LV":sg,"nb-NO":ug,"nl-NL":dg,"pl-PL":cg,"pt-BR":fg,"pt-PT":hg,"ro-RO":pg,"ru-RU":mg,"sk-SK":bg,"sl-SI":gg,"sr-SP":$g,"sv-SE":yg,"tr-TR":vg,"uk-UA":xg,"zh-CN":Cg,"zh-TW":Dg};class iC extends _1{isCell(t){return t.type==="cell"||t.type==="rowheader"||t.type==="column"}getKeyBelow(t,r){let n=this.collection.getItem(t);if(!n)return null;if(n.type==="column"){let i=zt(Me(n,this.collection));if(i)return i.key;let a=this.getFirstKey();return a==null||!this.collection.getItem(a)?null:super.getKeyForItemInRowByIndex(a,n.index)}return super.getKeyBelow(t,r)}getKeyAbove(t,r){let n=this.collection.getItem(t);if(!n)return null;if(n.type==="column"){let l=n.parentKey!=null?this.collection.getItem(n.parentKey):null;return l&&l.type==="column"?l.key:null}let i=super.getKeyAbove(t,r),a=i!=null?this.collection.getItem(i):null;return a&&a.type!=="headerrow"?i:this.isCell(n)?this.collection.columns[n.index].key:this.collection.columns[0].key}findNextColumnKey(t){let r=this.findNextKey(t.key,i=>i.type==="column");if(r!=null)return r;let n=this.collection.headerRows[t.level];for(let i of Me(n,this.collection))if(i.type==="column")return i.key;return null}findPreviousColumnKey(t){let r=this.findPreviousKey(t.key,a=>a.type==="column");if(r!=null)return r;let n=this.collection.headerRows[t.level],i=[...Me(n,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 r=this.collection.getItem(t);return r?r.type==="column"?this.direction==="rtl"?this.findPreviousColumnKey(r):this.findNextColumnKey(r):super.getKeyRightOf(t):null}getKeyLeftOf(t){let r=this.collection.getItem(t);return r?r.type==="column"?this.direction==="rtl"?this.findNextColumnKey(r):this.findPreviousColumnKey(r):super.getKeyLeftOf(t):null}getKeyForSearch(t,r){if(!this.collator)return null;let n=this.collection,i=r??this.getFirstKey();if(i==null)return null;let a=n.getItem(i);a?.type==="cell"&&(i=a.parentKey??null);let l=!1;for(;i!=null;){let o=n.getItem(i);if(!o)return null;if(o.textValue){let u=o.textValue.slice(0,t.length);if(this.collator.compare(u,t)===0)return o.key}for(let u of Me(o,this.collection)){let d=n.columns[u.index];if(n.rowHeaderColumnKeys.has(d.key)&&u.textValue){let c=u.textValue.slice(0,t.length);if(this.collator.compare(c,t)===0)return(r!=null?n.getItem(r):a)?.type==="cell"?u.key:o.key}}i=this.getKeyBelow(i),i==null&&!l&&(i=this.getFirstKey(),l=!0)}return null}}function aC(e){return e&&e.__esModule?e.default:e}function lC(e,t,r){let{keyboardDelegate:n,isVirtualized:i,layoutDelegate:a,layout:l}=e,o=on({usage:"search",sensitivity:"base"}),{direction:u}=ge(),d=t.selectionManager.disabledBehavior,c=s.useMemo(()=>n||new iC({collection:t.collection,disabledKeys:t.disabledKeys,disabledBehavior:d,ref:r,direction:u,collator:o,layoutDelegate:a,layout:l}),[n,t.collection,t.disabledKeys,d,r,u,o,a,l]),f=De(e.id);xs.set(t,f);let{gridProps:h}=nC({...e,id:f,keyboardDelegate:c},t,r);i&&(h["aria-rowcount"]=t.collection.size+t.collection.headerRows.length),t.treeColumn!=null&&(h.role="treegrid");let{column:p,direction:b}=t.sortDescriptor||{},g=Ne(aC(cn),"@react-aria/table"),$=s.useMemo(()=>{let x=t.collection.columns.find(v=>v.key===p)?.textValue??"";return b&&p?g.format(`${b}Sort`,{columnName:x}):void 0},[b,p,t.collection.columns]),y=Sr($);return Vn(()=>{$&&xt($,"assertive",500)},[$]),{gridProps:W(h,y,{"aria-describedby":[y["aria-describedby"],h["aria-describedby"]].filter(Boolean).join(" ")})}}function wg(e,t,r){let{node:n,isVirtualized:i,focusMode:a,allowsArrowNavigation:l,shouldSelectOnPressUp:o,onAction:u}=e,{direction:d}=ge(),{keyboardDelegate:c,actions:{onCellAction:f},keyboardNavigationBehavior:h}=vs.get(t),p=a??(h==="tab"?"cell":"child"),b=s.useRef(null),g=()=>{if(r.current){let S=Te(r.current);if(p==="child"){if(Yt(r.current)&&r.current!==he(de(r.current)))return;let B=t.selectionManager.childFocusStrategy==="last"?ws(S):S.firstChild();if(B){Oe(B);return}}(b.current!=null&&n.key!==b.current||!Yt(r.current))&&Oe(r.current)}},{itemProps:$,isPressed:y}=Xn({selectionManager:t.selectionManager,key:n.key,ref:r,isVirtualized:i,focus:g,shouldSelectOnPressUp:o,onAction:f?()=>f(n.key):u,isDisabled:t.collection.size===0}),x=S=>{let B=he(de(r.current));if(!le(S.currentTarget,X(S))||t.isKeyboardNavigationDisabled||!r.current||!B)return;let w=Te(r.current);switch(w.currentNode=B,S.key){case"ArrowLeft":{let P=d==="rtl"?w.nextNode():w.previousNode();if(p==="child"&&P===r.current&&(P=null),S.preventDefault(),S.stopPropagation(),P)Oe(P),wt(P,{containingElement:ut(r.current)});else{if(c.getKeyLeftOf?.(n.key)!==n.key){r.current.parentElement?.dispatchEvent(new KeyboardEvent(S.nativeEvent.type,S.nativeEvent));break}p==="cell"&&d==="rtl"?(Oe(r.current),wt(r.current,{containingElement:ut(r.current)})):(w.currentNode=r.current,P=d==="rtl"?w.firstChild():ws(w),P&&(Oe(P),wt(P,{containingElement:ut(r.current)})))}break}case"ArrowRight":{let P=d==="rtl"?w.previousNode():w.nextNode();if(p==="child"&&P===r.current&&(P=null),S.preventDefault(),S.stopPropagation(),P)Oe(P),wt(P,{containingElement:ut(r.current)});else{if(c.getKeyRightOf?.(n.key)!==n.key){r.current.parentElement?.dispatchEvent(new KeyboardEvent(S.nativeEvent.type,S.nativeEvent));break}p==="cell"&&d==="ltr"?(Oe(r.current),wt(r.current,{containingElement:ut(r.current)})):(w.currentNode=r.current,P=d==="rtl"?ws(w):w.firstChild(),P&&(Oe(P),wt(P,{containingElement:ut(r.current)})))}break}case"ArrowUp":case"ArrowDown":!S.altKey&&le(r.current,X(S))&&(S.stopPropagation(),S.preventDefault(),r.current.parentElement?.dispatchEvent(new KeyboardEvent(S.nativeEvent.type,S.nativeEvent)));break}},v=S=>{let B=he(de(r.current));if(!(!le(S.currentTarget,X(S))||t.isKeyboardNavigationDisabled||!r.current||!B)){if(h==="tab"&&X(S)!==r.current&&S.key!=="Tab"){S.stopPropagation();return}switch(S.key){case"Tab":if(h==="tab"){let w=Te(r.current,{tabbable:!0});w.currentNode=B,(S.shiftKey?w.previousNode():w.nextNode())&&S.stopPropagation()}}}},C=S=>{if(b.current=n.key,X(S)!==r.current){qt()||t.selectionManager.setFocusedKey(n.key);return}p==="child"&&S.relatedTarget&&le(r.current,S.relatedTarget)||requestAnimationFrame(()=>{p==="child"&&he(de(r.current))===r.current&&g()})},E=W($,{role:"gridcell",onKeyDownCapture:h!=="tab"||l?x:void 0,onKeyDown:h==="tab"?v:void 0,"aria-colspan":n.colSpan,"aria-colindex":n.colIndex!=null?n.colIndex+1:void 0,colSpan:i?void 0:n.colSpan,onFocus:C,...p==="child"&&h==="tab"?{tabIndex:-1}:{}});return i&&(E["aria-colindex"]=(n.colIndex??n.index)+1),o&&E.tabIndex!=null&&E.onPointerDown==null&&(E.onPointerDown=S=>{let B=S.currentTarget,w=B.getAttribute("tabindex");B.removeAttribute("tabindex"),requestAnimationFrame(()=>{w!=null&&B.setAttribute("tabindex",w)})}),{gridCellProps:E,isPressed:y}}function ws(e){let t=null,r=null;do r=e.lastChild(),r&&(t=r);while(r);return t}function oC(e){return e&&e.__esModule?e.default:e}function sC(e,t,r){let{node:n}=e,i=n.props.allowsSorting,{gridCellProps:a}=wg({focusMode:"child",...e},t,r),l=n.props.isSelectionCell&&t.selectionManager.selectionMode==="single",{pressProps:o,isPressed:u}=Xe({isDisabled:!i||l,onPress(){t.sort(n.key)},ref:r}),{focusableProps:d}=Jt({},r),c,f=t.sortDescriptor?.column===n.key,h=t.sortDescriptor?.direction;n.props.allowsSorting&&!_r()&&(c=f?h:"none");let p=Ne(oC(cn),"@react-aria/table"),b;i&&(b=`${p.format("sortable")}`,f&&h&&_r()&&(b=`${b}, ${p.format(h)}`));let g=Sr(b),$=t.collection.size===0;return s.useEffect(()=>{$&&t.selectionManager.focusedKey===n.key&&t.selectionManager.setFocusedKey(null)},[$,t.selectionManager,n.key]),{columnHeaderProps:{...W(d,a,o,g,$?{tabIndex:-1}:null),role:"columnheader",id:j1(t,n.key),"aria-colspan":n.colSpan&&n.colSpan>1?n.colSpan:void 0,"aria-sort":c},isPressed:u}}function uC(e,t,r){let{node:n,isVirtualized:i,shouldSelectOnPressUp:a,onAction:l}=e,{actions:o,shouldSelectOnPressUp:u}=vs.get(t),d=o.onRowAction?()=>o.onRowAction?.(n.key):l,{itemProps:c,...f}=Xn({selectionManager:t.selectionManager,key:n.key,ref:r,isVirtualized:i,shouldSelectOnPressUp:u||a,onAction:d||n?.props?.onAction?ot(n?.props?.onAction,d):void 0,isDisabled:t.collection.size===0}),h=t.selectionManager.isSelected(n.key),p={role:"row","aria-selected":t.selectionManager.selectionMode!=="none"?h:void 0,"aria-disabled":f.isDisabled||void 0,...c};return i&&(p["aria-rowindex"]=n.index+1),{rowProps:p,...f}}function dC(e){return e&&e.__esModule?e.default:e}const Eg={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function cC(e,t,r){let{node:n,isVirtualized:i}=e,{rowProps:a,...l}=uC(e,t,r),{direction:o}=ge();i&&t.treeColumn==null?a["aria-rowindex"]=n.index+1+t.collection.headerRows.length:delete a["aria-rowindex"];let u=t.treeColumn!=null&&(t.expandedKeys==="all"||t.expandedKeys.has(n.key)),d=Ne(dC(cn),"@react-aria/table"),c=Mt({"aria-label":u?d.format("collapse"):d.format("expand"),"aria-labelledby":Ds(t,n.key)}),f={},h={};if(t.treeColumn!=null){let g=t.collection.getItem(n.key);if(g!=null){let $=Sg(t.collection,n),y=g.props?.hasChildRows||g.props?.UNSTABLE_childItems||$?.type!=="cell",x=t.collection.getItem(n.parentKey),v=x.type==="tablebody"||x.type==="body",C=Sg(t.collection,x);for(;C&&C.type!=="item"&&C.prevKey!=null;)C=t.collection.getItem(C.prevKey);f={onKeyDown:E=>{E.key===Eg.expand[o]&&t.selectionManager.focusedKey===g.key&&y&&t.expandedKeys!=="all"&&!t.expandedKeys.has(g.key)?(t.toggleKey(g.key),E.stopPropagation()):E.key===Eg.collapse[o]&&t.selectionManager.focusedKey===g.key&&(t.expandedKeys!=="all"?y&&t.expandedKeys.has(g.key)?(t.toggleKey(g.key),E.stopPropagation()):!t.expandedKeys.has(g.key)&&g.parentKey!=null&&g.level>0&&(t.selectionManager.setFocusedKey(g.parentKey),E.stopPropagation()):t.expandedKeys==="all"&&(t.toggleKey(g.key),E.stopPropagation()))},"aria-expanded":y?t.expandedKeys==="all"||t.expandedKeys.has(n.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},h={isDisabled:l.isDisabled,onPress:()=>{l.isDisabled||(t.toggleKey(n.key),t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(n.key))},excludeFromTabOrder:!0,preventFocusOnPress:!0,"data-react-aria-prevent-focus":!0,...c}}}let p=_5(n.props),b=l.hasAction?p:{};return{rowProps:{...W(a,f,b),"aria-labelledby":Ds(t,n.key)},expandButtonProps:h,...l}}function Sg(e,t){return"lastChildKey"in t?t.lastChildKey!=null?e.getItem(t.lastChildKey):null:Array.from(t.childNodes).findLast(r=>r.parentKey===t.key)}function fC(e,t,r){let{node:n,isVirtualized:i}=e,a={role:"row"};return i&&t.treeColumn==null&&(a["aria-rowindex"]=n.index+1),{rowProps:a}}function hC(e,t,r){let{gridCellProps:n,isPressed:i}=wg(e,t,r),a=e.node.column?.key;return a!=null&&t.collection.rowHeaderColumnKeys.has(a)&&(n.role="rowheader",n.id=H1(t,e.node.parentKey,a)),{gridCellProps:n,isPressed:i}}function pC(e){return e&&e.__esModule?e.default:e}function mC(e,t){let{key:r}=e;const{checkboxProps:n}=s7(e,t);return{checkboxProps:{...n,"aria-labelledby":`${n.id} ${Ds(t,r)}`}}}function bC(e){let{isEmpty:t,isSelectAll:r,selectionMode:n}=e.selectionManager;return{checkboxProps:{"aria-label":Ne(pC(cn),"@react-aria/table").format(n==="single"?"select":"selectAll"),isSelected:r,isDisabled:n!=="multiple"||e.collection.size===0||e.collection.rows.length===1&&e.collection.rows[0].type==="loader",isIndeterminate:!t&&!r,onChange:()=>e.selectionManager.toggleSelectAll()}}}function gC(e){return e&&e.__esModule?e.default:e}function $C(e,t,r){let{column:n,triggerRef:i,isDisabled:a,onResizeStart:l,onResize:o,onResizeEnd:u,"aria-label":d}=e;const c=Ne(gC(cn),"@react-aria/table");let f=De(),h=t.resizingColumn===n.key,p=s.useRef(h),b=s.useRef(null),g=s.useRef(!1),$=t.tableState.isKeyboardNavigationDisabled,[y,x]=s.useState(!1),{direction:v}=ge(),C=s.useCallback(V=>{p.current||(b.current=t.updateResizedColumns(V.key,t.getColumnWidth(V.key)),t.startResize(V.key),t.tableState.setKeyboardNavigationDisabled(!0),l?.(b.current)),p.current=!0},[t,l]),E=s.useCallback((V,L)=>{let te=t.updateResizedColumns(V.key,L);o?.(te),b.current=te},[t,o]),S=s.useCallback(V=>{p.current&&(b.current==null&&(b.current=t.updateResizedColumns(V.key,t.getColumnWidth(V.key))),t.endResize(),t.tableState.setKeyboardNavigationDisabled(!1),u?.(b.current),p.current=!1,i?.current&&!g.current&&Oe(i.current)),b.current=null},[t,i,u]),B=()=>{if($){S(n);return}return!1},{keyboardProps:w}=Le({shortcuts:{Escape:()=>B(),Enter:()=>{$?S(n):C(n)}," ":()=>B(),Tab:()=>B()}});const P=s.useRef(0),{moveProps:K}=Gx({onMoveStart(V){P.current=t.getColumnWidth(n.key),V.pointerType==="mouse"&&x(!0),C(n)},onMove(V){let{deltaX:L,deltaY:te,pointerType:oe}=V;v==="rtl"&&(L*=-1),oe==="keyboard"&&(te!==0&&L===0&&(L=te*-1),L*=10),L!==0&&(P.current+=L,E(n,P.current))},onMoveEnd(V){let{pointerType:L}=V;P.current=0,x(!1),(L==="mouse"||L==="touch"&&g.current)&&S(n)}});let T=s.useCallback(V=>{$&&K.onKeyDown?.(V)},[$,K]),I=Math.floor(t.getColumnMinWidth(n.key)),H=Math.floor(t.getColumnMaxWidth(n.key));H===1/0&&(H=Number.MAX_SAFE_INTEGER);let D=Math.floor(t.getColumnWidth(n.key)),M=id();M==="virtual"&&typeof window<"u"&&"ontouchstart"in window&&(M="touch");let G=i?.current==null&&(M==="keyboard"||M==="virtual")&&!h?c.format("resizerDescription"):void 0,O=Sr(G),J={"aria-label":d,"aria-orientation":"horizontal","aria-labelledby":`${f} ${j1(t.tableState,n.key)}`,"aria-valuetext":c.format("columnSize",{value:D}),type:"range",min:I,max:H,value:D,...O};const k=s.useCallback(()=>{r.current&&Oe(r.current)},[r]);let N=t.resizingColumn,z=s.useRef(null),ee=Se(C);s.useEffect(()=>{if(z.current!==N&&N!=null&&N===n.key){g.current=he()===r.current,ee(n);let V=setTimeout(()=>k(),0),L=setTimeout(k,400);return()=>{clearTimeout(V),clearTimeout(L)}}z.current=N},[N,n,k,r]);let Q=V=>{let L=t.getColumnWidth(n.key),te=parseFloat(X(V).value);te>L?te=L+10:te=L-10,E(n,te)},{pressProps:A}=Xe({preventFocusOnPress:!0,onPressStart:V=>{if(!(V.ctrlKey||V.altKey||V.metaKey||V.shiftKey||V.pointerType==="keyboard")){if(V.pointerType==="virtual"&&t.resizingColumn!=null){S(n);return}k(),V.pointerType!=="virtual"&&C(n)}},onPress:V=>{(V.pointerType==="touch"&&g.current||V.pointerType==="mouse")&&t.resizingColumn!=null&&S(n)}}),{visuallyHiddenProps:F}=kr();return{resizerProps:W(w,{...K,onKeyDown:T},A,{style:{touchAction:"none"}}),inputProps:W(F,{id:f,onBlur:()=>{S(n)},onChange:Q,disabled:a},J),isResizing:h,isMouseResizing:y}}function yC(){return{rowGroupProps:{role:"rowgroup"}}}function Es(){return yC()}function vC(e){return e&&e.__esModule?e.default:e}class xC extends pd{withExpandedKeys(t){let r=this.clone();return r.expandedKeys=t,r.frozen=this.frozen,r.rows=Array.from(r.getRows()),r}addNode(t){super.addNode(t),this.columnsDirty||=t.type==="column",t.type==="tableheader"&&(this.head=t)}getRows(){let t=[];for(let r of this)(r.type==="tablebody"||r.type==="tablefooter")&&t.push(...this.getChildren(r.key));return t}get body(){for(let t of this)if(t.type==="tablebody")return t;return new Va(-2)}commit(t,r,n=!1){this.updateColumns(n),this.firstKey=t,this.lastKey=r,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&&!n)throw new Error(`Cell count must match column count. Found ${o} cells and ${this.columns.length} columns.`)}}this.rows.push(i)}super.commit(t,r,n)}updateColumns(t){if(!this.columnsDirty)return;this.rowHeaderColumnKeys=new Set,this.columns=[];let r=new Map,n=i=>{i.type==="column"&&(r.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))n(a)};for(let i of this.getChildren(this.head.key))n(i);if(this.headerRows=L1(r,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 r=this.getItem(t);r&&(yield r),t=r?.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 r=this.getItem(t);for(;r?.lastChildKey!=null&&(r.type!=="item"||this.expandedKeys.has(r.key));)r=this.getItem(r.lastChildKey);return r?.key}getKeyAfter(t){let r=this.getItem(t);if(r?.type==="column")return r.nextKey??null;if(!r)return null;if(r.type==="item"&&r.firstChildKey!=null&&this.expandedKeys.has(r.key)){let n=this.getItem(r.firstChildKey);for(;n;){if(n.type==="item")return n.key;n=n.nextKey!=null?this.getItem(n.nextKey):null}}return super.getKeyAfter(t)}getKeyBefore(t){let r=this.getItem(t);if(r?.type==="column")return r.prevKey??null;if(!r)return null;let n=null;if(r.prevKey!=null){for(r=this.getItem(r.prevKey);r&&(r.type!=="item"||this.expandedKeys.has(r.key))&&r.lastChildKey!=null;)r=this.getItem(r.lastChildKey);n=r?.key??null}return n==null&&(n=r.parentKey),n!=null&&this.getItem(n)?.type==="tableheader"?null:n}getChildren(t){let r=this.getItem(t);if(!r){for(let i of this.headerRows)if(i.key===t)return i.childNodes}let n=this;return r?.type==="tablebody"||r?.type==="tablefooter"?{*[Symbol.iterator](){let i=r.firstChildKey,a=i!=null?n.getItem(i):null;for(;a;){yield a;let l=n.getKeyAfter(a.key);if(a=l!=null?n.getItem(l):null,a&&a.parentKey===r.parentKey)break}}}:{*[Symbol.iterator](){let i=n.getItem(t),a=i?.firstChildKey!=null?n.getItem(i.firstChildKey):null;for(;a&&(yield a,a=a.nextKey!=null?n.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 r=this.getItem(t);if(!r)return"";if(r.textValue)return r.textValue;let n=this.rowHeaderColumnKeys,i=[];for(let a of this.getChildren(t)){let l=this.columns[a.index];if(n.has(l.key)&&a.textValue&&i.push(a.textValue),i.length===n.size)break}return i.join(" ")}constructor(...t){super(...t),this.headerRows=[],this.columns=[],this.rows=[],this.rowHeaderColumnKeys=new Set,this.head=new za(-1),this.columnsDirty=!0,this.expandedKeys=new Set}}const Ss=s.createContext(null),CC=s.forwardRef(function(t,r){let n=Be(r),i=s.useRef(null),a=s.useRef(null),[l,o]=s.useState(0);fe(()=>{let d=i.current;for(;d&&d!==n.current&&!or(d);)d=d.parentElement;a.current=d},[n]),ni({ref:a,box:"border-box",onResize(){o(a.current?.clientWidth??0)}}),fe(()=>{o(a.current?.clientWidth??0)},[]);let u=s.useMemo(()=>({tableRef:i,scrollRef:a,tableWidth:l,useTableColumnResizeState:X7,onResizeStart:t.onResizeStart,onResize:t.onResize,onResizeEnd:t.onResizeEnd}),[i,l,t.onResizeStart,t.onResize,t.onResizeEnd]);return s.createElement(re.div,{render:t.render,...ne(t,{global:!0}),ref:n,className:t.className||"react-aria-ResizableTableContainer",style:t.style,onScroll:t.onScroll},s.createElement(Ss.Provider,{value:u},t.children))}),DC=s.createContext(null),ft=s.createContext(null),Ps=s.createContext(null),wC=s.forwardRef(function(t,r){[t,r]=me(t,r,DC);let n=Qn(t),{selectionBehavior:i,selectionMode:a,disallowEmptySelection:l}=n,o=!!t.dragAndDropHooks?.useDraggableCollectionState,u=s.useMemo(()=>({selectionBehavior:a==="none"?null:i,selectionMode:a,disallowEmptySelection:l,allowsDragging:o}),[i,a,l,o]),d=s.createElement(PC.Provider,{value:u},s.createElement($r,t));return s.createElement(gr,{content:d,createCollection:()=>new xC},c=>s.createElement(SC,{props:t,forwardedRef:r,selectionState:n,collection:c}))});let EC=s.forwardRef(function(t,r){let{isVirtualized:n}=s.useContext($e);return n?s.createElement(re.div,{...t,ref:r}):s.createElement(re.table,{...t,ref:r})});const Pg={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function SC({props:e,forwardedRef:t,selectionState:r,collection:n}){[e,t]=me(e,t,Sn);let{shouldUseVirtualFocus:i,disallowTypeAhead:a,filter:l,...o}=e,u=s.useContext(Ss);t=Be(s.useMemo(()=>Gt(t,u?.tableRef),[t,u?.tableRef]));let[d,c]=_e(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,e.onExpandedChange);n=s.useMemo(()=>n.withExpandedKeys(d),[n,d]);let f=eC({...o,collection:n,children:void 0,UNSAFE_selectionState:r,expandedKeys:d,onExpandedChange:c}),h=tC(f,l),{isVirtualized:p,layoutDelegate:b,dropTargetDelegate:g,CollectionRoot:$}=s.useContext($e),{dragAndDropHooks:y}=e,{gridProps:x}=lC({...o,layoutDelegate:b,isVirtualized:p},h,t),v=h.selectionManager,C=!!y?.useDraggableCollectionState,E=!!y?.useDroppableCollectionState,S=s.useRef(C),B=s.useRef(E);s.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!==E&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."))},[C,E]);let w,P,K,T=!1,I=null,H=s.useRef(null),{direction:D}=ge(),[M]=s.useState(()=>new H7);if(C&&y){w=y.useDraggableCollectionState({collection:h.collection,selectionManager:v,preview:y.renderDragPreview?H:void 0}),y.useDraggableCollection({},w,t);let A=y.DragPreview;I=y.renderDragPreview?s.createElement(A,{ref:H},y.renderDragPreview):null}if(E&&y){P=y.useDroppableCollectionState({collection:h.collection,selectionManager:v});let A=new qn({collection:h.collection,disabledKeys:v.disabledKeys,disabledBehavior:v.disabledBehavior,ref:t,layoutDelegate:b}),F=y.dropTargetDelegate||g||new y.ListDropTargetDelegate(n.rows,t);M.setup(F,f,D),K=y.useDroppableCollection({keyboardDelegate:A,dropTargetDelegate:M,onDropActivate:V=>{if(V.target.type==="item"){let L=V.target.key,te=f.collection.getItem(L),oe=d.has(L);te&&te.hasChildNodes&&(!oe||y?.isVirtualDragging?.())&&f.toggleKey(L)}},onKeyDown:V=>{let L=P?.target;if(L&&L.type==="item"&&L.dropPosition==="on"){let te=f.collection.getItem(L.key);(V.key===Pg.expand[D]&&te?.hasChildNodes&&!f.expandedKeys.has(L.key)||V.key===Pg.collapse[D]&&te?.hasChildNodes&&f.expandedKeys.has(L.key))&&f.toggleKey(L.key)}}},P,t),T=P.isDropTarget({type:"root"})}let{focusProps:G,isFocused:O,isFocusVisible:J}=Ae(),k=se({...e,children:void 0,defaultClassName:"react-aria-Table",values:{isDropTarget:T,isFocused:O,isFocusVisible:J,state:h}}),N=!!(C&&!w?.isDisabled),z=k.style,ee=null;u&&(ee=u.useTableColumnResizeState({tableWidth:u.tableWidth},h),p||(z={...z,tableLayout:"fixed",width:"min-content"}));let Q=ne(e,{global:!0});return s.createElement(Ee,{values:[[ft,h],[Ps,ee],[dt,{dragAndDropHooks:y,dragState:w,dropState:P}],[Ao,{render:_C}],[Sn,null],[Pn,null]]},s.createElement(wa,null,s.createElement(EC,{...W(Q,k,x,G,K?.collectionProps),style:z,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":J||void 0},s.createElement(Rn,null,s.createElement($,{collection:h.collection,scrollRef:u?.scrollRef??t,persistedKeys:_h(v,y,P)})))),I)}const PC=s.createContext(null),Nu=class Nu extends nt{};Nu.type="tableheader";let za=Nu,kC=s.forwardRef(function(t,r){let{isVirtualized:n}=s.useContext($e);return n?s.createElement(re.div,{...t,ref:r}):s.createElement(re.thead,{...t,ref:r})});const BC=Zi(za,(e,t)=>{let r=s.useContext(ft).collection,n=Dl({items:r.headerRows,children:s.useCallback(u=>{if(u.type==="headerrow")return s.createElement(AC,{item:u});throw new Error("Unsupported node type in TableHeader: "+u.type)},[])}),{rowGroupProps:i}=Es(),{hoverProps:a,isHovered:l}=Fe({onHoverStart:e.onHoverStart,onHoverChange:e.onHoverChange,onHoverEnd:e.onHoverEnd}),o=se({...e,children:void 0,defaultClassName:"react-aria-TableHeader",values:{isHovered:l}});return s.createElement(kC,{...W(ne(e,{global:!0}),i,a),...o,ref:t,"data-hovered":l||void 0},n)},e=>s.createElement($r,{dependencies:e.dependencies,items:e.columns},e.children));let NC=s.forwardRef(function(t,r){let{isVirtualized:n}=s.useContext($e);return n?s.createElement("div",{...t,ref:r}):s.createElement("tr",{...t,ref:r})});function AC({item:e}){let t=s.useRef(null),r=s.useContext(ft),{isVirtualized:n,CollectionBranch:i}=s.useContext($e),{rowProps:a}=fC({node:e,isVirtualized:n},r,t),{checkboxProps:l}=bC(r);return s.createElement(NC,{...a,ref:t},s.createElement(Ee,{values:[[Bo,{slots:{selection:l}}],[C0,{slots:{selection:l}}]]},s.createElement(i,{collection:r.collection,parent:e})))}const Au=class Au extends nt{};Au.type="column";let ks=Au,FC=s.forwardRef(function(t,r){let{isVirtualized:n}=s.useContext($e);return n?s.createElement(re.div,{...t,ref:r}):s.createElement(re.th,{...t,ref:r})});const TC=vt(ks,(e,t,r)=>{let n=Be(t),i=s.useContext(ft),{isVirtualized:a}=s.useContext($e),{columnHeaderProps:l,isPressed:o}=sC({node:r,isVirtualized:a,focusMode:e.focusMode,allowsArrowNavigation:e.allowsArrowNavigation},i,n),{isFocused:u,isFocusVisible:d,focusProps:c}=Ae(),f=s.useContext(Ps),h=!1;if(f)h=f.resizingColumn===r.key;else if(process.env.NODE_ENV!=="production")for(let x in["width","defaultWidth","minWidth","maxWidth"])x in r.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:p,isHovered:b}=Fe({isDisabled:!e.allowsSorting}),g=se({...e,id:void 0,children:r.rendered,defaultClassName:"react-aria-Column",values:{isHovered:b,isPressed:o,isFocused:u,isFocusVisible:d,allowsSorting:r.props.allowsSorting,sortDirection:i.sortDescriptor?.column===r.key?i.sortDescriptor.direction:void 0,isResizing:h,startResize:()=>{if(f)f.startResize(r.key),i.setKeyboardNavigationDisabled(!0);else throw new Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing")},sort:x=>{i.sort(r.key,x)}}}),$=g.style;f&&($={...$,width:f.getColumnWidth(r.key)});let y=ne(e,{global:!0});return delete y.id,s.createElement(FC,{...W(y,l,c,p),...g,style:$,ref:n,"data-hovered":b||void 0,"data-pressed":o||void 0,"data-focused":u||void 0,"data-focus-visible":d||void 0,"data-resizing":h||void 0,"data-allows-sorting":r.props.allowsSorting||void 0,"data-sort-direction":i.sortDescriptor?.column===r.key?i.sortDescriptor.direction:void 0},s.createElement(Ee,{values:[[kg,{column:r,triggerRef:n}],[$e,Nl]]},g.children))}),kg=s.createContext(null),IC=s.forwardRef(function(t,r){let n=s.useContext(Ps);if(!n)throw new Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing");let i=Ne(vC(No),"react-aria-components"),{onResizeStart:a,onResize:l,onResizeEnd:o}=s.useContext(Ss),{column:u,triggerRef:d}=s.useContext(kg),c=s.useRef(null),{resizerProps:f,inputProps:h,isResizing:p,isMouseResizing:b}=$C({column:u,"aria-label":t["aria-label"]||i.format("tableResizer"),onResizeStart:a,onResize:l,onResizeEnd:o,triggerRef:d},n,c),{focusProps:g,isFocused:$,isFocusVisible:y}=Ae(),{hoverProps:x,isHovered:v}=Fe(t),C=n.getColumnMinWidth(u.key)>=n.getColumnWidth(u.key),E=n.getColumnMaxWidth(u.key)<=n.getColumnWidth(u.key),{direction:S}=ge(),B="both";C?B=S==="rtl"?"right":"left":E?B=S==="rtl"?"left":"right":B="both";let w=Be(r),[P,K]=s.useState("");s.useEffect(()=>{if(!w.current)return;let H=window.getComputedStyle(w.current);K(H.cursor)},[w,B]);let T=se({...t,defaultClassName:"react-aria-ColumnResizer",values:{isFocused:$,isFocusVisible:y,isResizing:p,isHovered:v,resizableDirection:B}}),I=ne(t,{global:!0});return s.createElement(re.div,{ref:w,role:"presentation",...W(I,T,f,x),"data-hovered":v||void 0,"data-focused":$||void 0,"data-focus-visible":y||void 0,"data-resizing":p||void 0,"data-resizable-direction":B},T.children,s.createElement("input",{ref:c,...W(h,g)}),p&&b&&Ut.createPortal(s.createElement("div",{style:{position:"fixed",top:0,left:0,bottom:0,right:0,cursor:P},"data-testid":"cursor-overlay"}),document.body))}),Fu=class Fu extends _i{};Fu.type="tablebody";let Va=Fu,MC=s.forwardRef(function(t,r){let{isVirtualized:n}=s.useContext($e);return n?s.createElement(re.div,{...t,ref:r}):s.createElement(re.tbody,{...t,ref:r})});const KC=Zi(Va,(e,t,r)=>{let n=s.useContext(ft),{isVirtualized:i}=s.useContext($e),a=n.collection,{CollectionBranch:l}=s.useContext($e),{dragAndDropHooks:o,dropState:u}=s.useContext(dt),d=!!o?.useDroppableCollectionState&&!u?.isDisabled,c=d&&!!u&&(u.isDropTarget({type:"root"})??!1),f=a.size===0,h={isDropTarget:c,isEmpty:f},p=se({...e,id:void 0,children:void 0,defaultClassName:"react-aria-TableBody",values:h}),b,g=a.columnCount;if(f&&e.renderEmptyState&&n){let x={},v={},C={};i?(v["aria-colspan"]=g,C={display:"contents"}):v.colSpan=g,b=s.createElement(fn,{role:"row",...x,style:C},s.createElement(hn,{role:"rowheader",...v,style:C},e.renderEmptyState(h)))}let{rowGroupProps:$}=Es(),y=ne(e,{global:!0});return s.createElement(MC,{...W(y,p,$),ref:t,"data-empty":f||void 0},d&&s.createElement(GC,null),s.createElement(l,{collection:a,parent:r,renderDropIndicator:Ca(o,u)}),b)}),Tu=class Tu extends _i{};Tu.type="tablefooter";let Bs=Tu,OC=s.forwardRef(function(t,r){let{isVirtualized:n}=s.useContext($e);return n?s.createElement(re.div,{...t,ref:r}):s.createElement(re.tfoot,{...t,ref:r})});const LC=Zi(Bs,(e,t,r)=>{let i=s.useContext(ft).collection,{CollectionBranch:a}=s.useContext($e),{dragAndDropHooks:l,dropState:o}=s.useContext(dt),{rowGroupProps:u}=Es(),d=ne(e,{global:!0}),c=se({style:e.style,className:e.className,defaultClassName:"react-aria-TableFooter",values:{}});return s.createElement(OC,{...W(d,c,u),ref:t},s.createElement(a,{collection:i,parent:r,renderDropIndicator:Ca(l,o)}))}),Bg=s.createContext({isFocusVisibleWithinRow:!1}),Iu=class Iu extends nt{filter(t,r,n){let i=t.getChildren(this.key);for(let a of i)if(n(a.textValue,a)){let l=this.clone();return r.addDescendants(l,t),l}return null}};Iu.type="item";let Ns=Iu,fn=s.forwardRef(function(t,r){let{isVirtualized:n}=s.useContext($e);return n?s.createElement(re.div,{...t,ref:r}):s.createElement(re.tr,{...t,ref:r})});const zC=Zi(Ns,(e,t,r)=>{let n=Be(t),i=s.useContext(ft),{dragAndDropHooks:a,dragState:l,dropState:o}=s.useContext(dt),{isVirtualized:u,CollectionBranch:d}=s.useContext($e),c=l&&!(l.isDisabled||l.selectionManager.isDisabled(r.key)),{rowProps:f,expandButtonProps:h,...p}=cC({node:r,shouldSelectOnPressUp:!!l,isVirtualized:u},i,n),{isFocused:b,isFocusVisible:g,focusProps:$}=Ae(),{isFocusVisible:y,focusProps:x}=Ae({within:!0}),{hoverProps:v,isHovered:C}=Fe({isDisabled:!p.allowsSelection&&!p.hasAction&&!c,onHoverStart:e.onHoverStart,onHoverChange:e.onHoverChange,onHoverEnd:e.onHoverEnd}),{checkboxProps:E}=mC({key:r.key},i),S;l&&a&&(S=a.useDraggableItem({key:r.key,hasDragButton:!0},l));let B,w=s.useRef(null),{visuallyHiddenProps:P}=kr();o&&a&&(B=a.useDropIndicator({target:{type:"item",key:r.key,dropPosition:"on"}},o,w));let K=s.useRef(null);s.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(r.key),{children:I,...H}=e,D=e.hasChildItems||i.collection.getItem(r.lastChildKey)?.type!=="cell",M=D&&i.expandedKeys.has(r.key),G=se({...H,id:void 0,defaultClassName:"react-aria-Row",defaultStyle:{"--table-row-level":r.level+1},values:{...p,state:i,isHovered:C,isFocused:b,isFocusVisible:g,selectionMode:i.selectionManager.selectionMode,selectionBehavior:i.selectionManager.selectionBehavior,isDragging:T,isDropTarget:B?.isDropTarget,isFocusVisibleWithin:y,id:r.key,hasChildItems:D,isExpanded:M,level:r.level+1}}),O=ne(e,{global:!0});return delete O.id,delete O.onClick,s.createElement(s.Fragment,null,B&&!B.isHidden&&s.createElement(fn,{role:"row",style:{height:0}},s.createElement(hn,{role:"gridcell",colSpan:i.collection.columnCount,style:{padding:0}},s.createElement("div",{role:"button",...P,...B.dropIndicatorProps,ref:w}))),s.createElement(fn,{...W(O,G,f,$,v,S?.dragProps,x),ref:n,"data-disabled":p.isDisabled||void 0,"data-selected":p.isSelected||void 0,"data-hovered":C||void 0,"data-focused":p.isFocused||void 0,"data-focus-visible":g||void 0,"data-pressed":p.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":y||void 0,"data-expanded":M||void 0,"data-has-child-items":D||void 0,"data-level":r.level+1},s.createElement(Ee,{values:[[Bo,{slots:{[Ft]:{},selection:E}}],[C0,{slots:{[Ft]:{},selection:E}}],[Ct,{slots:{[Ft]:{},chevron:h,drag:{...S?.dragButtonProps,ref:K,style:{pointerEvents:"none"}}}}],[Zn,{isSelected:p.isSelected}],[Bg,{isFocusVisibleWithinRow:y}]]},s.createElement(d,{collection:i.collection,parent:r}))))},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 s.createElement($r,{dependencies:t,items:e.columns,idScope:e.id},e.children)}),Mu=class Mu extends nt{};Mu.type="cell";let As=Mu,hn=s.forwardRef(function(t,r){let{isVirtualized:n}=s.useContext($e);return n?s.createElement(re.div,{...t,ref:r}):s.createElement(re.td,{...t,ref:r})});const VC=vt(As,(e,t,r)=>{let n=Be(t),i=s.useContext(ft),{dragState:a}=s.useContext(dt),{isVirtualized:l}=s.useContext($e);r.column=i.collection.columns[r.index];let{gridCellProps:o,isPressed:u}=hC({node:r,shouldSelectOnPressUp:!!a,isVirtualized:l,focusMode:e.focusMode,allowsArrowNavigation:e.allowsArrowNavigation},i,n),{isFocused:d,isFocusVisible:c,focusProps:f}=Ae(),{hoverProps:h,isHovered:p}=Fe({}),{isFocusVisibleWithinRow:b}=s.useContext(Bg),g=r.parentKey!=null?i.selectionManager.isSelected(r.parentKey):!1,$=r.colIndex||r.index,y=i.collection.getItem(r.parentKey),x=y.props.hasChildItems||i.collection.getItem(y.lastChildKey)?.type!=="cell",v=x&&i.expandedKeys.has(r.parentKey),C=i.selectionManager.isDisabled(r.parentKey),E=se({...e,id:void 0,defaultClassName:"react-aria-Cell",values:{isFocused:d,isFocusVisible:c,isFocusVisibleWithinRow:b,isPressed:u,isHovered:p,isSelected:g,id:r.key,columnIndex:$,hasChildItems:x,isExpanded:v,isDisabled:C,level:y.level+1,isTreeColumn:r.column.key===i.treeColumn}}),S=ne(e,{global:!0});return delete S.id,s.createElement(hn,{...W(S,E,o,f,h),ref:n,"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":$,"data-expanded":v||void 0,"data-has-child-items":x||void 0,"data-level":y.level+1,"data-tree-column":r.column.key===i.treeColumn||void 0,"data-disabled":C||void 0},s.createElement($e.Provider,{value:Nl},E.children))});function _C(e,t){t=Be(t);let{dragAndDropHooks:r,dropState:n}=s.useContext(dt),i=s.useRef(null),{dropIndicatorProps:a,isHidden:l,isDropTarget:o}=r.useDropIndicator(e,n,i);if(l)return null;let u=n&&e.target.type==="item"?(n.collection.getItem(e.target.key)?.level||0)+1:1;return s.createElement(WC,{...e,dropIndicatorProps:a,isDropTarget:o,buttonRef:i,level:u,ref:t})}let jC=s.forwardRef(function(t,r){let{isVirtualized:n}=s.useContext($e);return n?s.createElement(re.div,{...t,ref:r}):s.createElement(re.tr,{...t,ref:r})}),HC=s.forwardRef(function(t,r){let{isVirtualized:n}=s.useContext($e);return n?s.createElement(re.div,{...t,ref:r}):s.createElement(re.td,{...t,ref:r})});function UC(e,t){let{dropIndicatorProps:r,isDropTarget:n,buttonRef:i,level:a,...l}=e,o=s.useContext(ft),{visuallyHiddenProps:u}=kr(),d=se({...l,defaultClassName:"react-aria-DropIndicator",defaultStyle:{"--table-row-level":a+1},values:{isDropTarget:n}});return s.createElement(jC,{...ne(e,{global:!0}),...d,role:"row",ref:t,"data-drop-target":n||void 0,"aria-level":a},s.createElement(HC,{role:"gridcell",colSpan:o.collection.columnCount,style:{padding:0}},s.createElement("div",{...u,role:"button",...r,ref:i}),d.children))}const WC=s.forwardRef(UC);function GC(){let e=s.useContext(ft),{dragAndDropHooks:t,dropState:r}=s.useContext(dt),n=s.useRef(null),{dropIndicatorProps:i}=t.useDropIndicator({target:{type:"root"}},r,n),a=r.isDropTarget({type:"root"}),{visuallyHiddenProps:l}=kr();return!a&&i["aria-hidden"]?null:s.createElement(fn,{role:"row","aria-hidden":i["aria-hidden"],style:{height:0}},s.createElement(hn,{role:"gridcell",colSpan:e.collection.columnCount,style:{padding:0}},s.createElement("div",{role:"button",...l,...i,ref:n})))}const RC=vt(ji,function(t,r,n){let i=s.useContext(ft),{isVirtualized:a}=s.useContext($e),{isLoading:l,onLoadMore:o,scrollOffset:u,...d}=t,c=i.collection.columns.length,f=s.useRef(null),h=s.useMemo(()=>({onLoadMore:o,collection:i?.collection,sentinelRef:f,scrollOffset:u}),[o,u,i?.collection]);c4(h,f);let p=se({...d,id:void 0,children:n.rendered,defaultClassName:"react-aria-TableLoadingIndicator",defaultStyle:{"--table-row-level":n.level+1},values:void 0}),b={},g={},$={};return a?(g["aria-colspan"]=c,$={display:"contents"}):g.colSpan=c,s.createElement(s.Fragment,null,s.createElement(fn,{style:{height:0},inert:o4(!0)},s.createElement(hn,{style:{padding:0,border:0}},s.createElement("div",{"data-testid":"loadMoreSentinel",ref:f,style:{position:"relative",height:1,width:1}}))),l&&p.children&&s.createElement(fn,{...W(ne(t,{global:!0}),b),...p,role:"row",ref:r,"aria-level":n.level+1,"data-level":n.level+1},s.createElement(hn,{role:"rowheader",...g,style:$},p.children)))}),Ng=new WeakMap;function Ag(e,t,r){if(!e)return"";typeof t=="string"&&(t=t.replace(/\s+/g,""));let n=Ng.get(e);return process.env.NODE_ENV!=="production"&&!n&&console.error("There is no tab id, please check if you have rendered the tab panel before the tab list."),`${n}-${r}-${t}`}function ZC(e,t,r){let{key:n,isDisabled:i,shouldSelectOnPressUp:a}=e,{selectionManager:l,selectedKey:o}=t,u=n===o,d=i||t.isDisabled||t.selectionManager.isDisabled(n),c=t.collection.getItem(n),{itemProps:f,isPressed:h}=Xn({selectionManager:l,key:n,ref:r,isDisabled:d,shouldSelectOnPressUp:a??c?.props.href!=null,linkBehavior:"selection"}),p=Ag(t,n,"tab"),b=Ag(t,n,"tabpanel"),{tabIndex:g}=f,$=ne(c?.props,{labelable:!0});delete $.id;let y=Ki(c?.props),{focusableProps:x}=Jt({...c?.props,isDisabled:d},r);return{tabProps:W($,x,y,f,{id:p,"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:h}}class YC{constructor(t,r,n,i=new Set){this.collection=t,this.flipDirection=r==="rtl"&&n==="horizontal",this.disabledKeys=i,this.tabDirection=n==="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 r=t;do r=this.collection.getKeyAfter(r),r==null&&(r=this.collection.getFirstKey());while(r!=null&&this.isDisabled(r)&&r!==t);return r}getPreviousKey(t){let r=t;do r=this.collection.getKeyBefore(r),r==null&&(r=this.collection.getLastKey());while(r!=null&&this.isDisabled(r)&&r!==t);return r}}function qC(e,t,r){let{orientation:n="horizontal",keyboardActivation:i="automatic"}=e,{collection:a,selectionManager:l,disabledKeys:o}=t,{direction:u}=ge(),d=s.useMemo(()=>new YC(a,u,n,o),[a,o,n,u]),{collectionProps:c}=Sa({ref:r,selectionManager:l,keyboardDelegate:d,selectOnFocus:i==="automatic",disallowEmptySelection:!0,scrollRef:r,linkBehavior:"selection"}),f=De();Ng.set(t,f);let h=Mt({...e,id:f});return{tabListProps:{...W(c,h),role:"tablist","aria-orientation":n,tabIndex:void 0}}}function XC(e){let[t,r]=_e(e.selectedKey,e.defaultSelectedKey??null,e.onSelectionChange),n=s.useMemo(()=>t!=null?[t]:[],[t]),{collection:i,disabledKeys:a,selectionManager:l}=Pa({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:n,onSelectionChange:u=>{if(u==="all")return;let d=u.values().next().value??null;d===t&&e.onSelectionChange&&e.onSelectionChange(d),r(d)}}),o=t!=null?i.getItem(t):null;return{collection:i,disabledKeys:a,selectionManager:l,selectedKey:t,setSelectedKey:r,selectedItem:o}}function JC(e){let t=XC({...e,onSelectionChange:e.onSelectionChange?l=>{l!=null&&e.onSelectionChange?.(l)}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:e.defaultSelectedKey??Fg(e.collection,e.disabledKeys?new Set(e.disabledKeys):new Set)??void 0}),{selectionManager:r,collection:n,selectedKey:i}=t,a=s.useRef(i);return s.useEffect(()=>{let l=i;e.selectedKey==null&&(r.isEmpty||l==null||!n.getItem(l))&&(l=Fg(n,t.disabledKeys),l!=null&&r.setSelectedKeys([l])),(l!=null&&r.focusedKey==null||!r.isFocused&&l!==a.current)&&r.setFocusedKey(l),a.current=l}),{...t,isDisabled:e.isDisabled||!1}}function Fg(e,t){let r=null;if(e){for(r=e.getFirstKey();r!=null&&(t.has(r)||e.getItem(r)?.props?.isDisabled)&&r!==e.getLastKey();)r=e.getKeyAfter(r);r!=null&&(t.has(r)||e.getItem(r)?.props?.isDisabled)&&r===e.getLastKey()&&(r=e.getFirstKey())}return r}const Fs=s.createContext(null),_a=s.createContext(null),Tg=s.forwardRef(function(t,r){[t,r]=me(t,r,Fs);let{children:n,orientation:i="horizontal"}=t;return n=s.useMemo(()=>typeof n=="function"?n({orientation:i,defaultChildren:null}):n,[n,i]),s.createElement(gr,{content:n},a=>s.createElement(QC,{props:t,collection:a,tabsRef:r}))});function QC({props:e,tabsRef:t,collection:r}){let{orientation:n="horizontal"}=e,i=JC({...e,collection:r,children:void 0}),{focusProps:a,isFocused:l,isFocusVisible:o}=Ae({within:!0}),u=s.useMemo(()=>({orientation:n,isFocusWithin:l,isFocusVisible:o}),[n,l,o]),d=se({...e,defaultClassName:"react-aria-Tabs",values:u}),c=ne(e,{global:!0});return s.createElement(re.div,{...W(c,d,a),ref:t,slot:e.slot||void 0,"data-focused":l||void 0,"data-orientation":n,"data-focus-visible":o||void 0,"data-disabled":i.isDisabled||void 0},s.createElement(Ee,{values:[[Fs,e],[_a,i]]},d.children))}const Ig=s.forwardRef(function(t,r){return s.useContext(_a)?s.createElement(eD,{props:t,forwardedRef:r}):s.createElement($r,t)});function eD({props:e,forwardedRef:t}){let r=s.useContext(_a),{CollectionRoot:n}=s.useContext($e),{orientation:i="horizontal",keyboardActivation:a="automatic"}=Re(Fs),l=Be(t),{tabListProps:o}=qC({...e,orientation:i,keyboardActivation:a},r,l),u=se({...e,children:null,defaultClassName:"react-aria-TabList",values:{orientation:i,state:r}}),d=ne(e,{global:!0});return delete d.id,s.createElement(re.div,{...W(d,u,o),ref:l,"data-orientation":i||void 0},s.createElement(Rn,null,s.createElement(n,{collection:r.collection,persistedKeys:Ad(r.selectionManager.focusedKey)})))}const Ku=class Ku extends nt{};Ku.type="item";let Ts=Ku;const Mg=vt(Ts,(e,t,r)=>{let n=s.useContext(_a),i=Be(t),{tabProps:a,isSelected:l,isDisabled:o,isPressed:u}=ZC({key:r.key,...e},n,i),{focusProps:d,isFocused:c,isFocusVisible:f}=Ae(),{hoverProps:h,isHovered:p}=Fe({isDisabled:o,onHoverStart:e.onHoverStart,onHoverEnd:e.onHoverEnd,onHoverChange:e.onHoverChange}),b=se({...e,id:void 0,children:r.rendered,defaultClassName:"react-aria-Tab",values:{isSelected:l,isDisabled:o,isFocused:c,isFocusVisible:f,isPressed:u,isHovered:p}}),g=r.props.href?re.a:re.div,$=ne(e,{global:!0});return delete $.id,delete $.onClick,s.createElement(g,{...W($,b,a,d,h),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":u||void 0,"data-hovered":p||void 0},s.createElement(Zn.Provider,{value:{isSelected:l}},b.children))}),tD=s.createContext({});let rD=e=>{let{onHoverStart:t,onHoverChange:r,onHoverEnd:n,...i}=e;return i};const nD=s.forwardRef(function(t,r){[t,r]=me(t,r,tD);let{hoverProps:n,isHovered:i}=Fe(t),{isFocused:a,isFocusVisible:l,focusProps:o}=Ae({isTextInput:!0,autoFocus:t.autoFocus}),u=!!t["aria-invalid"]&&t["aria-invalid"]!=="false",d=se({...t,values:{isHovered:i,isFocused:a,isFocusVisible:l,isDisabled:t.disabled||!1,isInvalid:u},defaultClassName:"react-aria-TextArea"});return s.createElement(re.textarea,{...W(rD(t),o,n),...d,ref:r,"data-focused":a||void 0,"data-disabled":t.disabled||void 0,"data-hovered":i||void 0,"data-focus-visible":l||void 0,"data-invalid":u||void 0})}),iD=(e,t)=>{const r=new Array(e.length+t.length);for(let n=0;n<e.length;n++)r[n]=e[n];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r},aD=(e,t)=>({classGroupId:e,validator:t}),Kg=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),ja="-",Og=[],lD="arbitrary..",oD=e=>{const t=uD(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return sD(l);const o=l.split(ja),u=o[0]===""&&o.length>1?1:0;return Lg(o,u,t)},getConflictingClassGroupIds:(l,o)=>{if(o){const u=n[l],d=r[l];return u?d?iD(d,u):u:d||Og}return r[l]||Og}}},Lg=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const i=e[t],a=r.nextPart.get(i);if(a){const d=Lg(e,t+1,a);if(d)return d}const l=r.validators;if(l===null)return;const o=t===0?e.join(ja):e.slice(t).join(ja),u=l.length;for(let d=0;d<u;d++){const c=l[d];if(c.validator(o))return c.classGroupId}},sD=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?lD+n:void 0})(),uD=e=>{const{theme:t,classGroups:r}=e;return dD(r,t)},dD=(e,t)=>{const r=Kg();for(const n in e){const i=e[n];Is(i,r,n,t)}return r},Is=(e,t,r,n)=>{const i=e.length;for(let a=0;a<i;a++){const l=e[a];cD(l,t,r,n)}},cD=(e,t,r,n)=>{if(typeof e=="string"){fD(e,t,r);return}if(typeof e=="function"){hD(e,t,r,n);return}pD(e,t,r,n)},fD=(e,t,r)=>{const n=e===""?t:zg(t,e);n.classGroupId=r},hD=(e,t,r,n)=>{if(mD(e)){Is(e(n),t,r,n);return}t.validators===null&&(t.validators=[]),t.validators.push(aD(r,e))},pD=(e,t,r,n)=>{const i=Object.entries(e),a=i.length;for(let l=0;l<a;l++){const[o,u]=i[l];Is(u,zg(t,o),r,n)}},zg=(e,t)=>{let r=e;const n=t.split(ja),i=n.length;for(let a=0;a<i;a++){const l=n[a];let o=r.nextPart.get(l);o||(o=Kg(),r.nextPart.set(l,o)),r=o}return r},mD=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,bD=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const i=(a,l)=>{r[a]=l,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(a){let l=r[a];if(l!==void 0)return l;if((l=n[a])!==void 0)return i(a,l),l},set(a,l){a in r?r[a]=l:i(a,l)}}},Ms="!",Vg=":",gD=[],_g=(e,t,r,n,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:i}),$D=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=i=>{const a=[];let l=0,o=0,u=0,d;const c=i.length;for(let g=0;g<c;g++){const $=i[g];if(l===0&&o===0){if($===Vg){a.push(i.slice(u,g)),u=g+1;continue}if($==="/"){d=g;continue}}$==="["?l++:$==="]"?l--:$==="("?o++:$===")"&&o--}const f=a.length===0?i:i.slice(u);let h=f,p=!1;f.endsWith(Ms)?(h=f.slice(0,-1),p=!0):f.startsWith(Ms)&&(h=f.slice(1),p=!0);const b=d&&d>u?d-u:void 0;return _g(a,p,h,b)};if(t){const i=t+Vg,a=n;n=l=>l.startsWith(i)?a(l.slice(i.length)):_g(gD,!1,l,void 0,!0)}if(r){const i=n;n=a=>r({className:a,parseClassName:i})}return n},yD=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,n)=>{t.set(r,1e6+n)}),r=>{const n=[];let i=[];for(let a=0;a<r.length;a++){const l=r[a],o=l[0]==="[",u=t.has(l);o||u?(i.length>0&&(i.sort(),n.push(...i),i=[]),n.push(l)):i.push(l)}return i.length>0&&(i.sort(),n.push(...i)),n}},vD=e=>({cache:bD(e.cacheSize),parseClassName:$D(e),sortModifiers:yD(e),postfixLookupClassGroupIds:xD(e),...oD(e)}),xD=e=>{const t=Object.create(null),r=e.postfixLookupClassGroups;if(r)for(let n=0;n<r.length;n++)t[r[n]]=!0;return t},CD=/\s+/,DD=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:l}=t,o=[],u=e.trim().split(CD);let d="";for(let c=u.length-1;c>=0;c-=1){const f=u[c],{isExternal:h,modifiers:p,hasImportantModifier:b,baseClassName:g,maybePostfixModifierPosition:$}=r(f);if(h){d=f+(d.length>0?" "+d:d);continue}let y=!!$,x;if(y){const B=g.substring(0,$);x=n(B);const w=x&&l[x]?n(g):void 0;w&&w!==x&&(x=w,y=!1)}else x=n(g);if(!x){if(!y){d=f+(d.length>0?" "+d:d);continue}if(x=n(g),!x){d=f+(d.length>0?" "+d:d);continue}y=!1}const v=p.length===0?"":p.length===1?p[0]:a(p).join(":"),C=b?v+Ms:v,E=C+x;if(o.indexOf(E)>-1)continue;o.push(E);const S=i(x,y);for(let B=0;B<S.length;++B){const w=S[B];o.push(C+w)}d=f+(d.length>0?" "+d:d)}return d},wD=(...e)=>{let t=0,r,n,i="";for(;t<e.length;)(r=e[t++])&&(n=jg(r))&&(i&&(i+=" "),i+=n);return i},jg=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=jg(e[n]))&&(r&&(r+=" "),r+=t);return r},Hg=(e,...t)=>{let r,n,i,a;const l=u=>{const d=t.reduce((c,f)=>f(c),e());return r=vD(d),n=r.cache.get,i=r.cache.set,a=o,o(u)},o=u=>{const d=n(u);if(d)return d;const c=DD(u,r);return i(u,c),c};return a=l,(...u)=>a(wD(...u))},ED=[],Ke=e=>{const t=r=>r[e]||ED;return t.isThemeGetter=!0,t},Ug=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Wg=/^\((?:(\w[\w-]*):)?(.+)\)$/i,SD=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,PD=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,kD=/\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$/,BD=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ND=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,AD=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,cr=e=>SD.test(e),ce=e=>!!e&&!Number.isNaN(Number(e)),kt=e=>!!e&&Number.isInteger(Number(e)),Ks=e=>e.endsWith("%")&&ce(e.slice(0,-1)),_t=e=>PD.test(e),Gg=()=>!0,FD=e=>kD.test(e)&&!BD.test(e),Os=()=>!1,TD=e=>ND.test(e),ID=e=>AD.test(e),MD=e=>!ie(e)&&!ae(e),KD=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)),OD=e=>fr(e,Jg,Os),ie=e=>Ug.test(e),Mr=e=>fr(e,Qg,FD),Rg=e=>fr(e,WD,ce),LD=e=>fr(e,t2,Gg),zD=e=>fr(e,e2,Os),Zg=e=>fr(e,qg,Os),VD=e=>fr(e,Xg,ID),Ha=e=>fr(e,r2,TD),ae=e=>Wg.test(e),ui=e=>Kr(e,Qg),_D=e=>Kr(e,e2),Yg=e=>Kr(e,qg),jD=e=>Kr(e,Jg),HD=e=>Kr(e,Xg),Ua=e=>Kr(e,r2,!0),UD=e=>Kr(e,t2,!0),fr=(e,t,r)=>{const n=Ug.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},Kr=(e,t,r=!1)=>{const n=Wg.exec(e);return n?n[1]?t(n[1]):r:!1},qg=e=>e==="position"||e==="percentage",Xg=e=>e==="image"||e==="url",Jg=e=>e==="length"||e==="size"||e==="bg-size",Qg=e=>e==="length",WD=e=>e==="number",e2=e=>e==="family-name",t2=e=>e==="number"||e==="weight",r2=e=>e==="shadow",n2=()=>{const e=Ke("color"),t=Ke("font"),r=Ke("text"),n=Ke("font-weight"),i=Ke("tracking"),a=Ke("leading"),l=Ke("breakpoint"),o=Ke("container"),u=Ke("spacing"),d=Ke("radius"),c=Ke("shadow"),f=Ke("inset-shadow"),h=Ke("text-shadow"),p=Ke("drop-shadow"),b=Ke("blur"),g=Ke("perspective"),$=Ke("aspect"),y=Ke("ease"),x=Ke("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"],E=()=>[...C(),ae,ie],S=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto","contain","none"],w=()=>[ae,ie,u],P=()=>[cr,"full","auto",...w()],K=()=>[kt,"none","subgrid",ae,ie],T=()=>["auto",{span:["full",kt,ae,ie]},kt,ae,ie],I=()=>[kt,"auto",ae,ie],H=()=>["auto","min","max","fr",ae,ie],D=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],M=()=>["start","end","center","stretch","center-safe","end-safe"],G=()=>["auto",...w()],O=()=>[cr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...w()],J=()=>[cr,"screen","full","dvw","lvw","svw","min","max","fit",...w()],k=()=>[cr,"screen","full","lh","dvh","lvh","svh","min","max","fit",...w()],N=()=>[e,ae,ie],z=()=>[...C(),Yg,Zg,{position:[ae,ie]}],ee=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Q=()=>["auto","cover","contain",jD,OD,{size:[ae,ie]}],A=()=>[Ks,ui,Mr],F=()=>["","none","full",d,ae,ie],V=()=>["",ce,ui,Mr],L=()=>["solid","dashed","dotted","double"],te=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],oe=()=>[ce,Ks,Yg,Zg],Ve=()=>["","none",b,ae,ie],j=()=>["none",ce,ae,ie],R=()=>["none",ce,ae,ie],pe=()=>[ce,ae,ie],be=()=>[cr,"full",...w()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[_t],breakpoint:[_t],color:[Gg],container:[_t],"drop-shadow":[_t],ease:["in","out","in-out"],font:[MD],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[_t],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[_t],shadow:[_t],spacing:["px",ce],text:[_t],"text-shadow":[_t],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",cr,ie,ae,$]}],container:["container"],"container-type":[{"@container":["","normal","size",ae,ie]}],"container-named":[KD],columns:[{columns:[ce,ie,ae,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:E()}],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:P()}],"inset-x":[{"inset-x":P()}],"inset-y":[{"inset-y":P()}],start:[{"inset-s":P(),start:P()}],end:[{"inset-e":P(),end:P()}],"inset-bs":[{"inset-bs":P()}],"inset-be":[{"inset-be":P()}],top:[{top:P()}],right:[{right:P()}],bottom:[{bottom:P()}],left:[{left:P()}],visibility:["visible","invisible","collapse"],z:[{z:[kt,"auto",ae,ie]}],basis:[{basis:[cr,"full","auto",o,...w()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ce,cr,"auto","initial","none",ie]}],grow:[{grow:["",ce,ae,ie]}],shrink:[{shrink:["",ce,ae,ie]}],order:[{order:[kt,"first","last","none",ae,ie]}],"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":H()}],"auto-rows":[{"auto-rows":H()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"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: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: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":w()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":w()}],"space-y-reverse":["space-y-reverse"],size:[{size:O()}],"inline-size":[{inline:["auto",...J()]}],"min-inline-size":[{"min-inline":["auto",...J()]}],"max-inline-size":[{"max-inline":["none",...J()]}],"block-size":[{block:["auto",...k()]}],"min-block-size":[{"min-block":["auto",...k()]}],"max-block-size":[{"max-block":["none",...k()]}],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",r,ui,Mr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,UD,LD]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ks,ie]}],"font-family":[{font:[_D,zD,t]}],"font-features":[{"font-features":[ie]}],"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,ae,ie]}],"line-clamp":[{"line-clamp":[ce,"none",ae,Rg]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":["none",ae,ie]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ae,ie]}],"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:[ce,"from-font","auto",ae,Mr]}],"text-decoration-color":[{decoration:N()}],"underline-offset":[{"underline-offset":[ce,"auto",ae,ie]}],"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:[kt,ae,ie]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ae,ie]}],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",ae,ie]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:z()}],"bg-repeat":[{bg:ee()}],"bg-size":[{bg:Q()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},kt,ae,ie],radial:["",ae,ie],conic:[kt,ae,ie]},HD,VD]}],"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:V()}],"border-w-x":[{"border-x":V()}],"border-w-y":[{"border-y":V()}],"border-w-s":[{"border-s":V()}],"border-w-e":[{"border-e":V()}],"border-w-bs":[{"border-bs":V()}],"border-w-be":[{"border-be":V()}],"border-w-t":[{"border-t":V()}],"border-w-r":[{"border-r":V()}],"border-w-b":[{"border-b":V()}],"border-w-l":[{"border-l":V()}],"divide-x":[{"divide-x":V()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":V()}],"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":[ce,ae,ie]}],"outline-w":[{outline:["",ce,ui,Mr]}],"outline-color":[{outline:N()}],shadow:[{shadow:["","none",c,Ua,Ha]}],"shadow-color":[{shadow:N()}],"inset-shadow":[{"inset-shadow":["none",f,Ua,Ha]}],"inset-shadow-color":[{"inset-shadow":N()}],"ring-w":[{ring:V()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:N()}],"ring-offset-w":[{"ring-offset":[ce,Mr]}],"ring-offset-color":[{"ring-offset":N()}],"inset-ring-w":[{"inset-ring":V()}],"inset-ring-color":[{"inset-ring":N()}],"text-shadow":[{"text-shadow":["none",h,Ua,Ha]}],"text-shadow-color":[{"text-shadow":N()}],opacity:[{opacity:[ce,ae,ie]}],"mix-blend":[{"mix-blend":[...te(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":te()}],"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":[ce]}],"mask-image-linear-from-pos":[{"mask-linear-from":oe()}],"mask-image-linear-to-pos":[{"mask-linear-to":oe()}],"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":oe()}],"mask-image-t-to-pos":[{"mask-t-to":oe()}],"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":oe()}],"mask-image-r-to-pos":[{"mask-r-to":oe()}],"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":oe()}],"mask-image-b-to-pos":[{"mask-b-to":oe()}],"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":oe()}],"mask-image-l-to-pos":[{"mask-l-to":oe()}],"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":oe()}],"mask-image-x-to-pos":[{"mask-x-to":oe()}],"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":oe()}],"mask-image-y-to-pos":[{"mask-y-to":oe()}],"mask-image-y-from-color":[{"mask-y-from":N()}],"mask-image-y-to-color":[{"mask-y-to":N()}],"mask-image-radial":[{"mask-radial":[ae,ie]}],"mask-image-radial-from-pos":[{"mask-radial-from":oe()}],"mask-image-radial-to-pos":[{"mask-radial-to":oe()}],"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":[ce]}],"mask-image-conic-from-pos":[{"mask-conic-from":oe()}],"mask-image-conic-to-pos":[{"mask-conic-to":oe()}],"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:z()}],"mask-repeat":[{mask:ee()}],"mask-size":[{mask:Q()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ae,ie]}],filter:[{filter:["","none",ae,ie]}],blur:[{blur:Ve()}],brightness:[{brightness:[ce,ae,ie]}],contrast:[{contrast:[ce,ae,ie]}],"drop-shadow":[{"drop-shadow":["","none",p,Ua,Ha]}],"drop-shadow-color":[{"drop-shadow":N()}],grayscale:[{grayscale:["",ce,ae,ie]}],"hue-rotate":[{"hue-rotate":[ce,ae,ie]}],invert:[{invert:["",ce,ae,ie]}],saturate:[{saturate:[ce,ae,ie]}],sepia:[{sepia:["",ce,ae,ie]}],"backdrop-filter":[{"backdrop-filter":["","none",ae,ie]}],"backdrop-blur":[{"backdrop-blur":Ve()}],"backdrop-brightness":[{"backdrop-brightness":[ce,ae,ie]}],"backdrop-contrast":[{"backdrop-contrast":[ce,ae,ie]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ce,ae,ie]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ce,ae,ie]}],"backdrop-invert":[{"backdrop-invert":["",ce,ae,ie]}],"backdrop-opacity":[{"backdrop-opacity":[ce,ae,ie]}],"backdrop-saturate":[{"backdrop-saturate":[ce,ae,ie]}],"backdrop-sepia":[{"backdrop-sepia":["",ce,ae,ie]}],"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",ae,ie]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ce,"initial",ae,ie]}],ease:[{ease:["linear","initial",y,ae,ie]}],delay:[{delay:[ce,ae,ie]}],animate:[{animate:["none",x,ae,ie]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,ae,ie]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:j()}],"rotate-x":[{"rotate-x":j()}],"rotate-y":[{"rotate-y":j()}],"rotate-z":[{"rotate-z":j()}],scale:[{scale:R()}],"scale-x":[{"scale-x":R()}],"scale-y":[{"scale-y":R()}],"scale-z":[{"scale-z":R()}],"scale-3d":["scale-3d"],skew:[{skew:pe()}],"skew-x":[{"skew-x":pe()}],"skew-y":[{"skew-y":pe()}],transform:[{transform:[ae,ie,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:be()}],"translate-x":[{"translate-x":be()}],"translate-y":[{"translate-y":be()}],"translate-z":[{"translate-z":be()}],"translate-none":["translate-none"],zoom:[{zoom:[kt,ae,ie]}],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",ae,ie]}],"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":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",ae,ie]}],fill:[{fill:["none",...N()]}],"stroke-w":[{stroke:[ce,ui,Mr,Rg]}],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"]}},GD=(e,{cacheSize:t,prefix:r,experimentalParseClassName:n,extend:i={},override:a={}})=>(pn(e,"cacheSize",t),pn(e,"prefix",r),pn(e,"experimentalParseClassName",n),Wa(e.theme,a.theme),Wa(e.classGroups,a.classGroups),Wa(e.conflictingClassGroups,a.conflictingClassGroups),Wa(e.conflictingClassGroupModifiers,a.conflictingClassGroupModifiers),pn(e,"postfixLookupClassGroups",a.postfixLookupClassGroups),pn(e,"orderSensitiveModifiers",a.orderSensitiveModifiers),Ga(e.theme,i.theme),Ga(e.classGroups,i.classGroups),Ga(e.conflictingClassGroups,i.conflictingClassGroups),Ga(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),Ls(e,i,"postfixLookupClassGroups"),Ls(e,i,"orderSensitiveModifiers"),e),pn=(e,t,r)=>{r!==void 0&&(e[t]=r)},Wa=(e,t)=>{if(t)for(const r in t)pn(e,r,t[r])},Ga=(e,t)=>{if(t)for(const r in t)Ls(e,t,r)},Ls=(e,t,r)=>{const n=t[r];n!==void 0&&(e[r]=e[r]?e[r].concat(n):n)},RD=((e,...t)=>typeof e=="function"?Hg(n2,e,...t):Hg(()=>GD(n2(),e),...t))({extend:{theme:{text:["h1","h2","h3","h4","h5","h6","body-lg","body-sm","caption-lg","caption-sm"]}}});function Z(...e){return RD(Y(e))}const i2=s.createContext({size:"md"}),ZD=()=>s.useContext(i2),a2=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,l2=Y,q=(e,t)=>r=>{var n;if(t?.variants==null)return l2(e,r?.class,r?.className);const{variants:i,defaultVariants:a}=t,l=Object.keys(i).map(d=>{const c=r?.[d],f=a?.[d];if(c===null)return null;const h=a2(c)||a2(f);return i[d][h]}),o=r&&Object.entries(r).reduce((d,c)=>{let[f,h]=c;return h===void 0||(d[f]=h),d},{}),u=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((d,c)=>{let{class:f,className:h,...p}=c;return Object.entries(p).every(b=>{let[g,$]=b;return Array.isArray($)?$.includes({...a,...o}[g]):{...a,...o}[g]===$})?[...d,f,h]:d},[]);return l2(e,l,u,r?.class,r?.className)},YD={xs:18,sm:20,md:20,lg:24,xl:28,"2xl":28},qD=q("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"}}),XD=q(["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}}),JD={xs:12,sm:14,md:16,lg:18,xl:20,"2xl":22},o2=s.forwardRef(({children:e,className:t,tone:r,variant:n,size:i="md",iconOnly:a,isDisabled:l,disabled:o,isPending:u,title:d,value:c,...f},h)=>{const p=s.useCallback(g=>{g&&(d===void 0?g.removeAttribute("title"):g.title=d,c===void 0?g.removeAttribute("value"):g.value=String(c)),typeof h=="function"?h(g):h&&(h.current=g)},[h,d,c]),b=f;return m.jsx(i2.Provider,{value:{size:i},children:m.jsx(nr,{...b,ref:p,isDisabled:l||o,isPending:u,className:dl(t,g=>Z(XD({tone:r,variant:n,size:i,iconOnly:a}),g)),children:dl(e,(g,{isPending:$})=>m.jsxs(m.Fragment,{children:[$?m.jsx("span",{className:"flex shrink-0 items-center","aria-hidden":!0,children:m.jsx(Lu,{size:JD[i],className:"animate-spin"})}):null,$&&a?null:g]}))})})});o2.displayName="Button";const QD=({children:e})=>{const{size:t}=ZD();return m.jsx("span",{className:qD({size:t}),children:e})},ew=({children:e})=>m.jsx("span",{className:"whitespace-nowrap",children:e}),qe=o2;qe.Icon=QD,qe.Text=ew;const s2=q(["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}}),tw={sm:{width:12,height:9},md:{width:14,height:10},lg:{width:14,height:10}},u2=_.forwardRef(({id:e,checked:t,indeterminate:r=!1,disabled:n,size:i="md",onCheckedChange:a,className:l},o)=>{const u=()=>{n||a?.(!t)},d=tw[i],c=n?"text-white/80":"text-current";return m.jsxs("button",{id:e,ref:o,type:"button",role:"checkbox","aria-checked":r?"mixed":t,disabled:n,onClick:u,className:Y(s2({size:i,checked:t,disabled:n}),l),children:[t&&!r&&m.jsx("svg",{width:d.width,height:d.height,viewBox:"0 0 14 10",fill:"none",className:c,children:m.jsx("path",{d:"M1 5L5 9L13 1",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),r&&m.jsx("span",{className:Y(c,"bg-current rounded-sm",i==="sm"&&"h-0.5 w-3",(i==="md"||i==="lg")&&"h-0.5 w-4")})]})});u2.displayName="Checkbox";const d2=_.createContext(null),rw=({value:e,defaultValue:t,onValueChange:r,children:n,className:i})=>{const[a,l]=_.useState(t),o=e??a,u=d=>{l(d),r?.(d)};return m.jsx(d2.Provider,{value:{value:o,onValueChange:u},children:m.jsx("div",{role:"radiogroup",className:i,children:n})})},nw=()=>{const e=_.useContext(d2);if(!e)throw new Error("RadioGroupItem must be used within RadioGroup");return e},iw=q(["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}}),aw=q(["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}}),c2=_.forwardRef(({id:e,value:t,disabled:r,size:n="md",className:i},a)=>{const{value:l,onValueChange:o}=nw(),u=l===t;return m.jsx("button",{ref:a,id:e,type:"button",role:"radio","aria-checked":u,disabled:r,onClick:()=>{r||o?.(t)},className:Y(iw({size:n,checked:u,disabled:r}),i),children:m.jsx("span",{className:aw({size:n,checked:u})})})});c2.displayName="RadioGroupItem";const lw=q(["mt-0.5 inline-flex shrink-0 items-center justify-center border transition-colors duration-150"],{variants:{size:{sm:"h-4 w-4 rounded-[4px]",md:"h-5 w-5 rounded-[6px]"},selected:{true:"",false:""},disabled:{true:"border-light-200 bg-light-100 text-white/80",false:""},hovered:{true:"",false:""},focusVisible:{true:"ring-2 ring-primary-400 ring-offset-2 ring-offset-white",false:""}},compoundVariants:[{selected:!1,disabled:!1,hovered:!1,className:"border-light-200 bg-white"},{selected:!1,disabled:!1,hovered:!0,className:"border-light-400 bg-white"},{selected:!0,disabled:!1,hovered:!1,className:"border-primary-500 bg-primary-500 text-white"},{selected:!0,disabled:!1,hovered:!0,className:"border-primary-800 bg-primary-800 text-white"}],defaultVariants:{size:"md",selected:!1,disabled:!1,hovered:!1,focusVisible:!1}}),f2=_.forwardRef(({label:e,supportingText:t,size:r="md",className:n,indicatorClassName:i,...a},l)=>m.jsx(Ux,{...a,ref:l,className:Y("group inline-flex max-w-full cursor-pointer items-start gap-2 outline-none","data-[disabled]:cursor-not-allowed",n),children:({isSelected:o,isIndeterminate:u,isHovered:d,isFocusVisible:c,isDisabled:f})=>{const h=o||u;return m.jsxs(m.Fragment,{children:[m.jsx("span",{"aria-hidden":"true","data-slot":"indicator",className:Y(lw({size:r,selected:h,disabled:f,hovered:d,focusVisible:c}),i),children:u?m.jsx("span",{className:Y("rounded-sm bg-current",r==="sm"?"h-0.5 w-2":"h-0.5 w-3")}):o?m.jsx("svg",{width:r==="sm"?12:14,height:r==="sm"?9:10,viewBox:"0 0 14 10",fill:"none",children:m.jsx("path",{d:"M1 5L5 9L13 1",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}):null}),m.jsxs("span",{className:"flex min-w-0 flex-col",children:[m.jsx("span",{"data-slot":"label",className:Y("font-nunito text-caption-lg font-semibold",f?"text-light-400":"text-light-800"),children:e}),t!=null&&m.jsx("span",{"data-slot":"supporting-text",className:Y("font-nunito text-caption-lg font-normal",f?"text-light-400":"text-light-700"),children:t})]})]})}}));f2.displayName="BaseCheckbox";const ow=q(["relative inline-flex shrink-0 items-center overflow-hidden rounded-full p-0.5","transition-colors duration-150"],{variants:{size:{sm:"h-5 w-9",md:"h-6 w-11"},selected:{true:"",false:""},disabled:{true:"bg-light-100",false:""},hovered:{true:"",false:""},focusVisible:{true:"ring-2 ring-offset-2 ring-offset-white",false:""},variant:{default:"",success:""}},compoundVariants:[{selected:!1,disabled:!1,className:"bg-light-200"},{selected:!0,disabled:!1,hovered:!1,variant:"default",className:"bg-primary-500"},{selected:!0,disabled:!1,hovered:!0,variant:"default",className:"bg-primary-800"},{selected:!0,disabled:!1,hovered:!1,variant:"success",className:"bg-success-500"},{selected:!0,disabled:!1,hovered:!0,variant:"success",className:"bg-success-800"},{focusVisible:!0,variant:"default",className:"ring-primary-400"},{focusVisible:!0,variant:"success",className:"ring-success-500"}],defaultVariants:{size:"md",selected:!1,disabled:!1,hovered:!1,focusVisible:!1,variant:"default"}}),sw=q(["block shrink-0 rounded-full","shadow-[0_1px_3px_0_rgba(16,24,40,0.10),0_1px_2px_0_rgba(16,24,40,0.06)]","transition-transform duration-150"],{variants:{size:{sm:"h-4 w-4",md:"h-5 w-5"},selected:{true:"translate-x-full",false:"translate-x-0"},disabled:{true:"bg-light-50",false:"bg-white"}},defaultVariants:{size:"md",selected:!1,disabled:!1}}),h2=_.forwardRef(({label:e,supportingText:t,size:r="md",variant:n="default",className:i,trackClassName:a,...l},o)=>{const u=e!=null;return m.jsx(_7,{...l,ref:o,className:Y("group inline-flex max-w-full cursor-pointer items-start outline-none",r==="sm"?"gap-2":"gap-3","data-[disabled]:cursor-not-allowed",i),children:({isSelected:d,isHovered:c,isFocusVisible:f,isDisabled:h})=>m.jsxs(m.Fragment,{children:[m.jsx("span",{"aria-hidden":"true","data-slot":"track",className:Y(ow({size:r,selected:d,disabled:h,hovered:c,focusVisible:f,variant:n}),a),children:m.jsx("span",{"data-slot":"thumb",className:sw({size:r,selected:d,disabled:h})})}),u&&m.jsxs("span",{className:Y("flex min-w-0 flex-col font-nunito text-caption-lg leading-6",r==="md"&&"gap-0.5"),children:[m.jsx("span",{"data-slot":"label",className:"font-bold text-light-800",children:e}),t!=null&&m.jsx("span",{"data-slot":"supporting-text",className:"font-normal text-light-700",children:t})]})]})})});h2.displayName="BaseToggle";const uw=q(["mt-0.5 inline-flex shrink-0 items-center justify-center rounded-full border transition-colors duration-150"],{variants:{size:{sm:"h-4 w-4",md:"h-5 w-5"},selected:{true:"",false:""},disabled:{true:"border-light-200 bg-light-100",false:""},hovered:{true:"",false:""},focusVisible:{true:"ring-2 ring-primary-400 ring-offset-2 ring-offset-white",false:""}},compoundVariants:[{selected:!1,disabled:!1,hovered:!1,className:"border-light-200 bg-white"},{selected:!1,disabled:!1,hovered:!0,className:"border-light-400 bg-white"},{selected:!0,disabled:!1,hovered:!1,className:"border-primary-500 bg-primary-500"},{selected:!0,disabled:!1,hovered:!0,className:"border-primary-800 bg-primary-800"}],defaultVariants:{size:"md",selected:!1,disabled:!1,hovered:!1,focusVisible:!1}}),p2=_.forwardRef(({label:e,supportingText:t,size:r="md",className:n,indicatorClassName:i,...a},l)=>m.jsx(D7,{...a,ref:l,className:Y("group inline-flex max-w-full cursor-pointer items-start gap-2 outline-none","data-[disabled]:cursor-not-allowed",n),children:({isSelected:o,isHovered:u,isFocusVisible:d,isDisabled:c})=>m.jsxs(m.Fragment,{children:[m.jsx("span",{"aria-hidden":"true","data-slot":"indicator",className:Y(uw({size:r,selected:o,disabled:c,hovered:u,focusVisible:d}),i),children:o&&m.jsx("span",{className:Y("rounded-full bg-white",c&&"opacity-80",r==="sm"?"h-1.5 w-1.5":"h-2 w-2")})}),m.jsxs("span",{className:"flex min-w-0 flex-col",children:[m.jsx("span",{"data-slot":"label",className:Y("font-nunito text-caption-lg font-semibold",c?"text-light-400":"text-light-800"),children:e}),t!=null&&m.jsx("span",{"data-slot":"supporting-text",className:Y("font-nunito text-caption-lg font-normal",c?"text-light-400":"text-light-700"),children:t})]})]})}));p2.displayName="BaseRadio";const m2=_.forwardRef(({children:e,className:t,...r},n)=>m.jsx(C7,{...r,ref:n,className:Y("flex flex-col gap-4",t),children:e}));m2.displayName="BaseRadioGroup";const dw=q(["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"}}),cw=q("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}}),b2=_.forwardRef(({checked:e=!1,size:t="md",variant:r="default",disabled:n,onCheckedChange:i,className:a},l)=>m.jsx("button",{ref:l,type:"button",role:"switch","aria-checked":e,disabled:n,onClick:()=>{n||i?.(!e)},className:Y(dw({size:t,checked:e,disabled:n,variant:r}),a),children:m.jsx("span",{className:cw({size:t,disabled:n})})}));b2.displayName="Toggle";const fw=1e3,hw=900,pw=q(["flex flex-col overflow-hidden","rounded-lg border border-light-200 bg-white shadow-lg","outline-none"]);function mw(e){_.useEffect(()=>{let t=0;const r=n=>{!e.current||t||n.target instanceof Node&&e.current.contains(n.target)||(t=requestAnimationFrame(()=>{t=0,window.dispatchEvent(new Event("resize"))}))};return document.addEventListener("scroll",r,!0),()=>{document.removeEventListener("scroll",r,!0),t&&cancelAnimationFrame(t)}},[e])}function bw(e){const t=()=>{e.hasAttribute("role")&&e.removeAttribute("role")};t();const r=new MutationObserver(t);return r.observe(e,{attributes:!0,attributeFilter:["role"]}),()=>r.disconnect()}const Bt=_.forwardRef(({className:e,style:t,matchTriggerWidth:r=!1,children:n,...i},a)=>{const l=_.useRef(null),o=_.useRef(null),u=_.useCallback(d=>{l.current=d,typeof a=="function"?a(d):a&&(a.current=d),o.current?.(),o.current=d?bw(d):null},[a]);return mw(l),m.jsx(h3,{ref:u,...i,style:{zIndex:fw,...r?{width:"var(--trigger-width)"}:void 0,...t},className:Z(pw(),e),children:n})});Bt.displayName="Popover";const gw=q(["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}}),$w="mt-1 font-medium text-light-100",yw="overflow-visible border-0 bg-transparent shadow-none pointer-events-none",vw="block text-primary-900",xw=12,Cw={top:"M0 0H16L8 6Z",bottom:"M0 6H16L8 0Z",left:"M0 0V16L6 8Z",right:"M6 0V16L0 8Z"};function Dw({placement:e}){const t=e==="left"||e==="right";return m.jsx("svg",{"aria-hidden":"true",width:t?6:16,height:t?16:6,viewBox:t?"0 0 6 16":"0 0 16 6",className:vw,shapeRendering:"geometricPrecision",children:m.jsx("path",{d:Cw[e],fill:"currentColor"})})}const mn=({content:e,supportingText:t,side:r="top",open:n,defaultOpen:i=!1,disabled:a=!1,delay:l=100,className:o,children:u})=>{const[d,c]=_.useState(i),f=n??d,h=_.useRef(null),p=_.useRef(null),b=()=>{a||(p.current&&clearTimeout(p.current),l>0?p.current=window.setTimeout(()=>c(!0),l):c(!0))},g=()=>{a||(p.current&&(clearTimeout(p.current),p.current=null),c(!0))},$=()=>{p.current&&clearTimeout(p.current),l>0?p.current=window.setTimeout(()=>c(!1),l):c(!1)},y=()=>{p.current&&(clearTimeout(p.current),p.current=null),c(!1)};return m.jsxs(m.Fragment,{children:[m.jsx("span",{ref:h,className:"inline-flex",onMouseEnter:b,onMouseLeave:$,onFocus:g,onBlur:y,tabIndex:0,children:u}),m.jsx(Bt,{isNonModal:!0,triggerRef:h,isOpen:f,onOpenChange:c,placement:r,offset:xw,className:yw,children:({placement:x})=>m.jsxs(m.Fragment,{children:[m.jsxs("div",{role:"tooltip",className:Y(gw({side:r,hasSupportingText:!!t}),o),children:[e,t&&m.jsx("p",{className:$w,children:t})]}),m.jsx(B9,{className:"react-aria-OverlayArrow data-[placement=bottom]:!bottom-[calc(100%-1px)]",children:m.jsx(Dw,{placement:x==null||x==="center"?r:x})})]})})]})};mn.displayName="Tooltip";const ww="text-light-800",Ew="hover:text-light-900",Sw="border-light-200",Pw="group-hover:border-light-500",kw={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"}},Bw=q(["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}}),Nw=q(["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}}),Aw="shrink-0 rounded-[3px] bg-light-100 px-1 text-light-800",Fw=q(["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"}}),g2=/^#([0-9a-f]{6})$/i,$2=e=>g2.test(e.trim()),y2=(e,t)=>{const r=g2.exec(e.trim());if(!r)return;const n=parseInt(r[1],16),i=n>>16&255,a=n>>8&255,l=n&255;return`rgba(${i}, ${a}, ${l}, ${t})`},zs=({children:e,size:t="sm",shape:r="rounded",icon:n,checked:i,onCheckedChange:a,onClose:l,count:o,disabled:u=!1,className:d,color:c="gray",customColor:f})=>{const h=a!==void 0,p=i!==void 0||!!n,b=!!l||o!==void 0,g=h&&!u,$=kw[c],y=!!(f&&$2(f)),x=y?{borderColor:f,backgroundColor:y2(f,.12)}:void 0,v=()=>{u||a?.(!i)},C=E=>{!h||u||(E.key==="Enter"||E.key===" ")&&(E.preventDefault(),v())};return m.jsxs("div",{role:h?"checkbox":void 0,"aria-checked":h?!!i:void 0,"aria-disabled":u||void 0,tabIndex:h&&!u?0:void 0,onClick:h?v:void 0,onKeyDown:C,style:x,className:Y(Bw({size:t,shape:r,hasLeading:p,hasTrailing:b,interactive:g,disabled:u}),!y&&$.bg,!y&&$.border,ww,g&&!y&&$.hoverBg,g&&!y&&$.hoverBorder,g&&Ew,d),children:[i!==void 0&&m.jsx("span",{className:Y(Nw({checked:i,size:t}),!i&&Sw,g&&!i&&Pw),children:i&&m.jsx("svg",{viewBox:"0 0 14 10",fill:"none",className:"size-full text-white",children:m.jsx("path",{d:"M1 5L5 9L13 1",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),n,m.jsx("span",{className:"whitespace-nowrap",children:e}),o!==void 0&&m.jsx("span",{className:Aw,children:o}),l&&m.jsx("button",{type:"button","aria-label":"Remove",disabled:u,onClick:E=>{E.stopPropagation(),l()},className:Fw({size:t}),children:m.jsx("svg",{viewBox:"0 0 10 10",fill:"none",className:t==="sm"?"size-2":t==="md"?"size-2.5":"size-3",children:m.jsx("path",{d:"M1 1L9 9M9 1L1 9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})})]})};zs.displayName="Tag";const Tw={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"}},Iw=q(["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}}),Mw=q(["shrink-0 rounded border bg-white transition-colors duration-150"],{variants:{size:{sm:"size-[14px]",md:"size-[16px]",lg:"size-[18px]"}},defaultVariants:{size:"sm"}}),Kw=q(["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"}}),v2=({children:e,size:t="sm",shape:r="pill",variant:n="solid",color:i="brand",customColor:a,modern:l=!1,icon:o,trailingIcon:u,checked:d,onCheckedChange:c,onClose:f,iconOnly:h=!1,disabled:p=!1,className:b})=>{const g=c!==void 0,$=d!==void 0||!!o,y=!!f||!!u,x=g&&!p,v=Tw[i],C=!!(a&&$2(a)),E=C?{borderColor:a,color:a,backgroundColor:n==="outline"?"transparent":y2(a,.1)}:void 0,S=()=>{p||c?.(!d)},B=w=>{!g||p||(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),S())};return m.jsxs("div",{role:g?"checkbox":void 0,"aria-checked":g?!!d:void 0,"aria-disabled":p||void 0,tabIndex:g&&!p?0:void 0,onClick:g?S:void 0,onKeyDown:B,style:E,className:Y(Iw({size:t,shape:r,modern:l,hasLeading:$,hasTrailing:y,iconOnly:h,interactive:x,disabled:p}),!C&&(n==="outline"?Y("bg-transparent",v.outlineBorder,v.outlineText):Y(v.solidBg,v.solidBorder,v.solidText)),x&&!C&&(n==="outline"?Y(v.hoverOutlineBg,v.hoverOutlineBorder,v.hoverOutlineText):Y(v.hoverSolidBg,v.hoverSolidBorder,v.hoverSolidText)),b),children:[d!==void 0&&m.jsx("span",{className:Y(Mw({size:t}),d?"bg-primary-500 border-primary-500":!C&&v.solidBorder,x&&!d&&!C&&v.checkboxHoverBorder),style:!d&&C?{borderColor:a}:void 0,children:d&&m.jsx("svg",{viewBox:"0 0 14 10",fill:"none",className:"size-full text-white",children:m.jsx("path",{d:"M1 5L5 9L13 1",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),o,!h&&m.jsx("span",{className:"whitespace-nowrap",children:e}),u,f&&m.jsx("button",{type:"button","aria-label":"Remove",disabled:p,onClick:w=>{w.stopPropagation(),f()},className:Kw({size:t}),children:m.jsx("svg",{viewBox:"0 0 10 10",fill:"none",className:t==="sm"?"size-2":"size-2.5",children:m.jsx("path",{d:"M1 1L9 9M9 1L1 9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})})]})};v2.displayName="Badge";const Ow={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"}},Lw={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"}},x2=({badgeLabel:e,children:t,size:r="md",theme:n="light",color:i="brand",badgePosition:a="leading",icon:l,onClick:o,className:u})=>{const d=Ow[i],c=Lw[r],f=n==="modern",h=n==="outline",p=Y("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":h?Y("rounded-full bg-white border-[1.5px]",d.border500):Y("rounded-full",d.bg50,d.border200,d.hoverBg100),o&&"cursor-pointer",u),b=Y("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":h?Y("rounded-full bg-white border-[1.5px]",d.border500,d.text500):Y("rounded-full bg-white",d.border200,d.text500)),g=Y("inline-flex items-center gap-1 font-medium",c.text,f?"text-light-800":d.text500),$=m.jsxs("span",{className:b,children:[f&&m.jsx("span",{className:"size-2 shrink-0 rounded-full bg-light-400"}),e]});return m.jsxs("div",{role:o?"button":void 0,tabIndex:o?0:void 0,onClick:o,className:p,children:[a==="leading"&&$,m.jsxs("span",{className:g,children:[t,l]}),a==="trailing"&&$]})};x2.displayName="BadgeGroup";const zw=({size:e})=>{const t=e*.09,r=(e-t)/2,n=2*Math.PI*r;return m.jsxs("svg",{width:e,height:e,viewBox:`0 0 ${e} ${e}`,fill:"none",className:"animate-spin",children:[m.jsx("circle",{cx:e/2,cy:e/2,r,strokeWidth:t,className:"stroke-light-100"}),m.jsx("circle",{cx:e/2,cy:e/2,r,strokeWidth:t,strokeLinecap:"round",strokeDasharray:`${n*.25} ${n}`,className:"stroke-primary-600"})]})},Vw=({size:e})=>{const t=_.useId(),r=e*.125,n=(e-r)/2,i=2*Math.PI*n;return m.jsxs("svg",{width:e,height:e,viewBox:`0 0 ${e} ${e}`,fill:"none",className:"animate-spin text-primary-600",children:[m.jsx("defs",{children:m.jsxs("linearGradient",{id:t,x1:"100%",y1:"0%",x2:"0%",y2:"100%",children:[m.jsx("stop",{offset:"0%",stopColor:"currentColor",stopOpacity:"1"}),m.jsx("stop",{offset:"100%",stopColor:"currentColor",stopOpacity:"0"})]})}),m.jsx("circle",{cx:e/2,cy:e/2,r:n,strokeWidth:r,className:"stroke-light-100"}),m.jsx("circle",{cx:e/2,cy:e/2,r:n,strokeWidth:r,strokeLinecap:"round",stroke:`url(#${t})`,strokeDasharray:`${i*.75} ${i}`})]})},_w=({size:e})=>{const r=Math.max(e*.1,3),n=(e-r)/2;return m.jsx("div",{className:"relative animate-spin",style:{width:e,height:e},children:Array.from({length:12}).map((i,a)=>{const l=30*a,o=.15+.85*a/11;return m.jsx("span",{className:"absolute rounded-full bg-primary-600 top-1/2 left-1/2",style:{width:r,height:r,opacity:o,marginTop:-r/2,marginLeft:-r/2,transform:`rotate(${l}deg) translate(${n}px) rotate(${-l}deg)`}},a)})})},jw={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"}},C2=({size:e="sm",style:t="line-simple",supportingText:r=!0,label:n="Loading...",className:i})=>{const{box:a,gapClass:l,textClass:o}=jw[e],u=typeof n=="string"?n:"Loading";return m.jsx("div",{"aria-live":"polite","aria-atomic":"true",children:m.jsxs(l6,{isIndeterminate:!0,"aria-label":u,className:Z("inline-flex flex-col items-center",l,i),children:[t==="line-simple"&&m.jsx(zw,{size:a}),t==="line-spinner"&&m.jsx(Vw,{size:a}),t==="dot-circle"&&m.jsx(_w,{size:a}),r&&m.jsx("p",{className:Z("font-nunito font-medium text-light-700 whitespace-nowrap",o),children:n})]})})};C2.displayName="Loading";const D2=({className:e,style:t})=>m.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",className:e,style:t,children:[m.jsx("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"}),m.jsx("path",{d:"M3.75 20.25a8.25 8.25 0 0 1 16.5 0",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round"})]}),w2=({className:e})=>m.jsxs("svg",{viewBox:"0 0 20 20",fill:"none",className:e,children:[m.jsx("circle",{cx:"10",cy:"10",r:"9",className:"fill-primary-500 stroke-white",strokeWidth:"1.5"}),m.jsx("path",{d:"M6 10.2 8.6 12.8 14 7",stroke:"white",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"})]}),Hw={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"}},Uw="#17B26A",Ra={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"}},Za=({src:e,alt:t,initials:r,size:n="md",color:i="gray",status:a="none",statusIcon:l,contrastBorder:o=!0,className:u})=>{const{box:d,borderWidth:c,statusSize:f,badgeSize:h,textClass:p}=Hw[n],b=e?"image":r!==void 0?"initials":"placeholder";return m.jsxs("div",{className:Y("relative inline-block shrink-0 rounded-full",u),style:{width:d,height:d},children:[b==="image"&&m.jsx("img",{src:e,alt:t??"",className:"absolute inset-0 size-full rounded-full object-cover"}),b==="placeholder"&&m.jsx("div",{className:Y("absolute inset-0 flex items-center justify-center rounded-full",Ra[i].bg),children:m.jsx(D2,{className:Ra[i].iconText,style:{width:d*.55,height:d*.55}})}),b==="initials"&&m.jsx("div",{className:Y("absolute inset-0 flex items-center justify-center rounded-full font-semibold",Ra[i].bg,Ra[i].text,p),children:r}),o&&m.jsx("div",{className:"pointer-events-none absolute inset-0 rounded-full border-black/[0.08]",style:{borderWidth:c,borderStyle:"solid"}}),a==="online"&&m.jsx("span",{className:"absolute bottom-0 right-0 rounded-full border-[1.5px] border-white",style:{width:f,height:f,backgroundColor:Uw}}),a==="company"&&m.jsx("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:h,height:h},children:l}),a==="verified"&&m.jsx("div",{className:"absolute bottom-0 right-0",style:{width:h,height:h},children:m.jsx(w2,{className:"size-full"})})]})};Za.displayName="Avatar";const E2=[{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"}],Ww=e=>{let t=0;for(let n=0;n<e.length;n+=1)t=t*31+e.charCodeAt(n)|0;const r=Math.abs(t)%E2.length;return E2[r]},Gw={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"}},S2=({avatars:e,max:t,size:r="xs",onAdd:n,className:i})=>{const{box:a,overlap:l,contrastBorderWidth:o,textClass:u}=Gw[r],d=t?e.slice(0,t):e,c=t&&e.length>t?e.length-t:0;return m.jsxs("div",{className:Y("inline-flex items-start gap-2",i),children:[m.jsxs("div",{className:"flex items-start",children:[d.map((f,h)=>{const p=h<d.length-1||c>0;return m.jsx(mn,{content:f.label,disabled:!f.label,side:"top",children:m.jsxs("div",{className:"relative shrink-0 overflow-hidden rounded-full border-[1.5px] border-white",style:{width:a,height:a,marginRight:p?l:0},children:[f.src?m.jsx("img",{src:f.src,alt:f.alt??"",className:"size-full object-cover"}):(()=>{const{text:b,bg:g}=Ww(String(f.label??f.alt??f.initials??h));return m.jsx("div",{className:Y("flex size-full items-center justify-center font-semibold",f.initialsBgColor??g,f.initialsTextColor??b,u),children:f.initials})})(),m.jsx("div",{className:Y("pointer-events-none absolute inset-0 rounded-full",f.borderColor??"border-black/[0.08]"),style:{borderWidth:o,borderStyle:"solid"}})]})},h)}),c>0&&m.jsx(mn,{content:e.slice(t).map((f,h)=>m.jsx("div",{children:f.label},h)),disabled:!e.slice(t).some(f=>f.label),side:"top",children:m.jsx("div",{className:"relative flex shrink-0 items-center justify-center rounded-full border-2 border-white bg-light-100",style:{width:a,height:a},children:m.jsxs("span",{className:Y("font-semibold text-light-600",u),children:["+",c]})})})]}),n&&m.jsx("button",{type:"button",onClick:n,"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},children:m.jsx("svg",{width:a*.4,height:a*.4,viewBox:"0 0 20 20",fill:"none",children:m.jsx("path",{d:"M10 4v12M4 10h12",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round"})})})]})};S2.displayName="AvatarGroup";const Rw={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"}},P2=({name:e,subtitle:t,src:r,initials:n,size:i="xs",status:a="none",statusIcon:l,className:o})=>{const{nameClass:u,subtitleClass:d}=Rw[i];return m.jsxs("div",{className:Y("inline-flex items-center gap-2",o),children:[m.jsx(Za,{src:r,initials:n,size:i,status:a,statusIcon:l}),m.jsxs("div",{className:"flex flex-col items-start whitespace-nowrap",children:[m.jsx("span",{className:Y("font-bold text-light-800",u),children:e}),t&&m.jsx("span",{className:Y("font-normal text-light-700",d),children:t})]})]})};P2.displayName="AvatarLabelGroup";const Zw={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}},k2=({src:e,alt:t,initials:r,size:n="sm",verified:i=!0,contrastBorder:a=!0,className:l})=>{const{box:o,ringWidth:u,shadowClass:d,iconSize:c,textClass:f,verifiedSize:h,verifiedOffset:p}=Zw[n],b=e?"image":r!==void 0?"initials":"placeholder";return m.jsxs("div",{className:Y("relative rounded-full",l),style:{width:o,height:o},children:[m.jsxs("div",{className:Y("absolute inset-0 overflow-hidden rounded-full border-white",d,b!=="image"&&"bg-light-100"),style:{borderWidth:u,borderStyle:"solid"},children:[b==="image"&&m.jsx("img",{src:e,alt:t??"",className:"absolute inset-0 size-full rounded-full object-cover"}),a&&m.jsx("div",{className:"pointer-events-none absolute inset-0 rounded-full border border-black/[0.08]"}),b==="placeholder"&&m.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:m.jsx(D2,{className:"text-light-300",style:{width:c,height:c}})}),b==="initials"&&m.jsx("div",{className:Y("absolute inset-0 flex items-center justify-center font-semibold text-light-500",f),children:r})]}),i&&m.jsx("div",{className:"absolute",style:{width:h,height:h,bottom:p,right:p},children:m.jsx(w2,{className:"size-full"})})]})};k2.displayName="AvatarProfilePhoto";const B2=({className:e,style:t})=>m.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",className:e,style:t,"aria-hidden":"true",children:[m.jsx("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"}),m.jsx("path",{d:"M3.75 20.25a8.25 8.25 0 0 1 16.5 0",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round"})]}),N2=({className:e})=>m.jsxs("svg",{viewBox:"0 0 20 20",fill:"none",className:e,"aria-hidden":"true",children:[m.jsx("circle",{cx:"10",cy:"10",r:"9",className:"fill-primary-500 stroke-white",strokeWidth:"1.5"}),m.jsx("path",{d:"M6 10.2 8.6 12.8 14 7",stroke:"white",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"})]}),Yw={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"}},qw="#17B26A",Ya={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"}},Xw={xs:{nameClass:"text-caption-sm",supportClass:"text-caption-sm",roleClass:"text-caption-sm"},sm:{nameClass:"text-caption-lg",supportClass:"text-caption-sm",roleClass:"text-caption-sm"},md:{nameClass:"text-caption-lg",supportClass:"text-caption-lg",roleClass:"text-caption-sm"},lg:{nameClass:"text-body-sm",supportClass:"text-body-sm",roleClass:"text-caption-lg"},xl:{nameClass:"text-body-lg",supportClass:"text-body-sm",roleClass:"text-caption-lg"}},Jw={xs:{box:24,overlap:-4,contrastBorderWidth:"0.5px",textClass:"text-caption-sm"},sm:{box:32,overlap:-8,contrastBorderWidth:"0.5px",textClass:"text-caption-lg"},md:{box:40,overlap:-12,contrastBorderWidth:"0.75px",textClass:"text-body-sm"}},A2=[{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"}],Qw=e=>{let t=0;for(let r=0;r<e.length;r+=1)t=t*31+e.charCodeAt(r)|0;return A2[Math.abs(t)%A2.length]},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}},Vs=({src:e,alt:t,initials:r,size:n="md",color:i="gray",status:a="none",statusIcon:l,contrastBorder:o=!0,className:u})=>{const{box:d,borderWidth:c,statusSize:f,badgeSize:h,textClass:p}=Yw[n],b=e?"image":r!==void 0?"initials":"placeholder";return m.jsxs("span",{className:Y("relative inline-block shrink-0 rounded-full",u),style:{width:d,height:d},children:[b==="image"&&m.jsx("img",{src:e,alt:t??"",className:"absolute inset-0 size-full rounded-full object-cover"}),b==="placeholder"&&m.jsx("span",{className:Y("absolute inset-0 flex items-center justify-center rounded-full",Ya[i].bg),children:m.jsx(B2,{className:Ya[i].iconText,style:{width:d*.55,height:d*.55}})}),b==="initials"&&m.jsx("span",{className:Y("absolute inset-0 flex items-center justify-center rounded-full font-semibold",Ya[i].bg,Ya[i].text,p),children:r}),o&&m.jsx("span",{className:"pointer-events-none absolute inset-0 rounded-full border-black/[0.08]",style:{borderWidth:c,borderStyle:"solid"},"aria-hidden":"true"}),a==="online"&&m.jsx("span",{className:"absolute bottom-0 right-0 rounded-full border-[1.5px] border-white",style:{width:f,height:f,backgroundColor:qw},"aria-hidden":"true"}),a==="company"&&m.jsx("span",{className:"absolute bottom-0 right-0 flex items-center justify-center overflow-hidden rounded-full border-[1.5px] border-white bg-white",style:{width:h,height:h},"aria-hidden":"true",children:l}),a==="verified"&&m.jsx("span",{className:"absolute bottom-0 right-0",style:{width:h,height:h},children:m.jsx(N2,{className:"size-full"})})]})};Vs.displayName="BaseAvatar";const F2=({avatars:e,max:t,size:r="xs",onAdd:n,addLabel:i="Add user",className:a})=>{const{box:l,overlap:o,contrastBorderWidth:u,textClass:d}=Jw[r],c=t===void 0?e.length:Math.max(0,Math.floor(t)),f=e.slice(0,c),h=Math.max(0,e.length-f.length);return m.jsxs("span",{className:Y("inline-flex items-start gap-2",a),children:[m.jsxs("span",{className:"flex items-start",children:[f.map((p,b)=>{const g=b<f.length-1||h>0,$=Qw(String(p.label??p.alt??p.initials??b));return m.jsx(mn,{content:p.label,disabled:!p.label,side:"top",children:m.jsxs("span",{className:"relative shrink-0 overflow-hidden rounded-full border-[1.5px] border-white",style:{width:l,height:l,marginRight:g?o:0},children:[p.src?m.jsx("img",{src:p.src,alt:p.alt??"",className:"size-full object-cover"}):m.jsx("span",{className:Y("flex size-full items-center justify-center font-semibold",p.initialsBgColor??$.bg,p.initialsTextColor??$.text,d),children:p.initials}),m.jsx("span",{className:Y("pointer-events-none absolute inset-0 rounded-full",p.borderColor??"border-black/[0.08]"),style:{borderWidth:u,borderStyle:"solid"},"aria-hidden":"true"})]})},b)}),h>0&&m.jsx(mn,{content:e.slice(c).map((p,b)=>m.jsx("span",{className:"block",children:p.label},b)),disabled:!e.slice(c).some(p=>p.label),side:"top",children:m.jsx("span",{className:"relative flex shrink-0 items-center justify-center rounded-full border-2 border-white bg-light-100",style:{width:l,height:l},children:m.jsxs("span",{className:Y("font-semibold text-light-600",d),children:["+",h]})})})]}),n&&m.jsx("button",{type:"button",onClick:n,"aria-label":i,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:l,height:l},children:m.jsx("svg",{width:l*.4,height:l*.4,viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",children:m.jsx("path",{d:"M10 4v12M4 10h12",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round"})})})]})};F2.displayName="BaseAvatarGroup";const T2=({name:e,supportText:t,subtitle:r,role:n,src:i,alt:a,initials:l,size:o="xs",status:u="none",statusIcon:d,contrastBorder:c=!0,className:f})=>{const h=Xw[o],p=t??r;return m.jsxs("span",{className:Y("inline-flex items-center gap-2",f),children:[m.jsx(Vs,{src:i,alt:a,initials:l,size:o,status:u,statusIcon:d,contrastBorder:c}),m.jsxs("span",{className:"flex min-w-0 flex-col items-start",children:[m.jsxs("span",{className:"flex min-w-0 items-center gap-1.5",children:[m.jsx("span",{className:Y("truncate font-bold text-light-800",h.nameClass),children:e}),n!=null&&m.jsx("span",{className:Y("shrink-0 font-normal text-light-500",h.roleClass),children:n})]}),p!=null&&m.jsx("span",{className:Y("truncate font-normal text-light-700",h.supportClass),children:p})]})]})};T2.displayName="BaseAvatarLabelGroup";const I2=({src:e,alt:t,initials:r,size:n="sm",verified:i=!0,contrastBorder:a=!0,className:l})=>{const{box:o,ringWidth:u,shadowClass:d,iconSize:c,textClass:f,verifiedSize:h,verifiedOffset:p}=eE[n],b=e?"image":r!==void 0?"initials":"placeholder";return m.jsxs("span",{className:Y("relative inline-block shrink-0 rounded-full",l),style:{width:o,height:o},children:[m.jsxs("span",{className:Y("absolute inset-0 overflow-hidden rounded-full border-white",d,b!=="image"&&"bg-light-100"),style:{borderWidth:u,borderStyle:"solid"},children:[b==="image"&&m.jsx("img",{src:e,alt:t??"",className:"absolute inset-0 size-full rounded-full object-cover"}),b==="placeholder"&&m.jsx("span",{className:"absolute inset-0 flex items-center justify-center",children:m.jsx(B2,{className:"text-light-300",style:{width:c,height:c}})}),b==="initials"&&m.jsx("span",{className:Y("absolute inset-0 flex items-center justify-center font-semibold text-light-500",f),children:r}),a&&m.jsx("span",{className:"pointer-events-none absolute inset-0 rounded-full border border-black/[0.08]","aria-hidden":"true"})]}),i&&m.jsx("span",{className:"absolute",style:{width:h,height:h,bottom:p,right:p},children:m.jsx(N2,{className:"size-full"})})]})};I2.displayName="BaseAvatarProfilePhoto";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"}},rE={"button-gray":"rounded-md","button-white":"rounded-md","button-primary":"rounded-md",underline:"rounded-none","underline-filled":"rounded-none",line:"rounded-none"},nE={"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}},M2=({children:e,variant:t="button-primary",size:r="sm",fullWidth:n=!1,count:i,iconLeft:a,iconRight:l,disabled:o=!1,onClick:u,className:d,id:c,active:f})=>{const h=nE[t];return m.jsxs(Mg,{id:c,isDisabled:o,onPress:()=>u?.(),className:({isSelected:p})=>Z("inline-flex items-center justify-center font-semibold transition-colors duration-150",tE[t][r],rE[t],p?h.active:h.inactive,!p&&!o&&h.hoverInactive,h.hasFocusRing&&"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white",n&&"w-full",o?"cursor-not-allowed opacity-60":"cursor-pointer",d),children:[a&&m.jsx("span",{className:"shrink-0",children:a}),m.jsx("span",{className:"whitespace-nowrap",children:e}),i!==void 0&&m.jsx("span",{className:iE,children:i}),l&&m.jsx("span",{className:"shrink-0",children:l})]})};M2.displayName="Tab";const K2=({children:e,variant:t="button-primary",orientation:r="horizontal",boxed:n=!1,"aria-label":i="Tabs",keyboardActivation:a,disabledKeys:l,className:o})=>{const{gapClass:u,hasHairline:d}=aE[t],c=_.Children.toArray(e),f=c.map((g,$)=>String($)),h=c.findIndex(g=>g.props.active),p=f[h>=0?h:0],b=g=>{const $=f.indexOf(String(g));$>=0&&c[$].props.onClick?.()};return m.jsx(Tg,{orientation:r,keyboardActivation:a,disabledKeys:l,selectedKey:c.length?p:void 0,onSelectionChange:b,children:m.jsx(Ig,{"aria-label":i,className:Z("inline-flex",r==="vertical"?"flex-col items-stretch":"flex-row items-center",u,n&&"rounded-lg border border-light-200 bg-light-50 p-1",d&&r==="horizontal"&&!n&&"border-b border-light-200",o),children:c.map((g,$)=>_.cloneElement(g,{key:f[$],id:f[$]}))})})};K2.displayName="TabList";const O2=9,Nt=1,lE=30;function L2(e){const t=O2,r=Nt-e,n=r?`calc(100% - ${r}px)`:"100%",i=`calc(100% - ${t+1}px)`,a=`calc(100% - ${t}px)`;return`shape(${[`from ${-e}px 100%`,...r?[`vline to ${n}`]:[],`curve to ${t}px ${i} with ${t}px ${n}`,`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%"} ${n} with ${a} ${n}`,...r?["vline to 100%"]:[]].join(", ")})`}const z2=L2(0),V2=L2(Nt),_2={default:{box:"h-12 shrink-0",padX:lE},"max-width":{box:"h-9 min-w-px flex-1",padX:O2}},oE={clipPath:z2,paddingInline:`${Nt}px`},sE={paddingInline:`${Nt}px`},j2=_.forwardRef(({type:e="default",disabled:t=!1,unstyled:r=!1,iconLeft:n,trailing:i,tooltip:a,children:l,className:o,style:u,contentClassName:d,contentStyle:c,onClick:f,id:h,active:p,...b},g)=>{const{box:$,padX:y}=_2[e];return m.jsx(Mg,{ref:g,id:h,isDisabled:t,onPress:()=>f?.(void 0),...b,className:({isSelected:x})=>Z("group relative flex transition-colors duration-150 focus-visible:outline-none",!r&&"rounded-t-lg pt-px",!r&&$,t&&"cursor-not-allowed opacity-60",!t&&!x&&"cursor-pointer",!r&&x&&"-mb-px bg-light-200 focus-visible:bg-primary-400",x&&"cursor-default",o),style:({isSelected:x})=>r?u:{...x?oE:sE,...u},children:({isSelected:x})=>{const v=!t&&!x,C=x?{clipPath:V2,paddingInline:`${y-Nt}px`}:{paddingInline:`${y-Nt}px`};return m.jsxs("span",{title:a,className:Z("flex h-full w-full items-center justify-center gap-1 whitespace-nowrap text-caption-sm",!r&&"rounded-t-lg",!r&&(x?"bg-white font-bold text-light-800":"font-medium leading-4 text-light-600"),!r&&v&&"group-hover:bg-light-100 group-hover:text-light-800",!r&&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:r?c:{...C,...c},children:[n&&m.jsx("span",{className:"shrink-0",children:n}),m.jsx("span",{className:"overflow-hidden text-ellipsis",children:l}),i]})}})});j2.displayName="TabBrowser";const uE=48,H2=({children:e,separators:t=!1,trailingSlot:r,overflow:n=!1,overflowLabel:i,className:a})=>{const l=_.Children.toArray(e),o=_.useMemo(()=>l.map((w,P)=>String(P)),[l.length]),u=l.findIndex(w=>w.props.active),d=_.useRef(null),c=_.useRef(null),f=_.useRef(new Map),h=_.useRef(new Map),[p,b]=_.useState(l.length),g=o.join("|");_.useLayoutEffect(()=>{n&&(h.current.clear(),b(l.length))},[n,g]);const $=_.useCallback(()=>{const w=d.current;if(!w||l.length===0||(h.current.size<l.length&&o.forEach(H=>{const D=f.current.get(H);D&&h.current.set(H,D.getBoundingClientRect().width)}),h.current.size<l.length))return;const P=w.clientWidth,K=c.current?.getBoundingClientRect().width||uE;let T=0,I=0;for(;I<o.length;I++){const H=h.current.get(o[I])??0,D=I<o.length-1?K:0;if(T+H+D>P&&I>0)break;T+=H}b(H=>H===I?H:I)},[l.length,o]),y=p===l.length;_.useLayoutEffect(()=>{n&&$()},[n,$,y]),_.useEffect(()=>{if(!n)return;const w=d.current;if(!w||typeof ResizeObserver>"u")return;const P=new ResizeObserver(()=>$());return P.observe(w),()=>P.disconnect()},[n,$]);const x=n&&p<l.length?Math.max(p,1):l.length,v=n?u>=0&&u>=x?[...Array(x-1).keys(),u]:[...Array(x).keys()]:o.map((w,P)=>P),C=new Set(v),E=o.map((w,P)=>P).filter(w=>!C.has(w)),S=u>=0?o[u]:v.length?o[v[0]]:void 0,B=w=>{const P=o.indexOf(String(w));P>=0&&l[P].props.onClick?.(void 0)};return m.jsxs(Tg,{selectedKey:l.length?S:void 0,onSelectionChange:B,className:Z("flex items-end",n&&"min-w-0 flex-1",a),children:[(()=>{const w=m.jsx(Ig,{"aria-label":"Tabs",className:Z("flex min-w-0 items-end",n?"shrink-0":"flex-1"),children:v.map((P,K)=>{const T=l[P],I=K===v.length-1&&E.length===0,H=v[K+1],D=T.props.active||l[H]?.props.active;return _.cloneElement(T,{key:o[P],id:o[P],ref:n?M=>{M?f.current.set(o[P],M):f.current.delete(o[P])}:void 0,className:Z(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 n?m.jsxs("div",{ref:d,className:"flex min-w-0 flex-1 items-end overflow-hidden",children:[w,E.length>0&&m.jsxs(Ka,{children:[m.jsx(nr,{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",children:i?i(E.length):`+${E.length}`}),m.jsx(h3,{placement:"bottom end",className:"flex flex-col overflow-hidden rounded-lg border border-light-200 bg-white p-1 shadow-lg",children:m.jsx(Q3,{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:P=>{const K=o.indexOf(String(P));K>=0&&l[K].props.onClick?.(void 0)},children:E.map(P=>{const K=l[P],T=K.props.children;return m.jsxs(ep,{id:o[P],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",children:[K.props.iconLeft&&m.jsx("span",{className:"shrink-0",children:K.props.iconLeft}),m.jsx("span",{className:"truncate",children:T}),K.props.trailing&&m.jsx("span",{className:"ml-auto shrink-0",children:K.props.trailing})]},o[P])})})})]})]}):w})(),r]})};H2.displayName="TabBrowserBar";const dE={clipPath:z2,paddingInline:`${Nt}px`},cE={paddingInline:`${Nt}px`},U2=_.forwardRef(({type:e="default",disabled:t=!1,unstyled:r=!1,active:n=!1,iconLeft:i,trailing:a,tooltip:l,children:o,className:u,style:d,contentClassName:c,contentStyle:f,...h},p)=>{const{box:b,padX:g}=_2[e],$=!t&&!n,y=n?{clipPath:V2,paddingInline:`${g-Nt}px`}:{paddingInline:`${g-Nt}px`};return m.jsx("div",{ref:p,role:"tab","aria-disabled":t,"aria-selected":n,...h,className:Z("group relative flex transition-colors duration-150 focus-visible:outline-none",!r&&"rounded-t-lg pt-px",!r&&b,t&&"cursor-not-allowed opacity-60",!t&&!n&&"cursor-pointer",!r&&n&&"-mb-px bg-light-200 focus-visible:bg-primary-400",n&&"cursor-default",u),style:r?d:{...n?dE:cE,...d},children:m.jsxs("span",{title:l,className:Z("flex h-full w-full items-center justify-center gap-1 whitespace-nowrap text-caption-sm",!r&&"rounded-t-lg",!r&&(n?"bg-white font-bold text-light-800":"font-medium leading-4 text-light-600"),!r&&$&&"group-hover:bg-light-100 group-hover:text-light-800",!r&&$&&"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:r?f:{...y,...f},children:[i&&m.jsx("span",{className:"shrink-0",children:i}),m.jsx("span",{className:"overflow-hidden text-ellipsis",children:o}),a]})})});U2.displayName="TabBrowserPreview";const fE=q("flex flex-col gap-1 w-full",{variants:{size:{xs:"text-caption-sm",sm:"text-caption-lg",md:"text-sm"}},defaultVariants:{size:"md"}}),hE=q("flex items-center gap-1 font-bold text-sm",{variants:{error:{true:"",false:"text-light-800"}},defaultVariants:{error:!1}}),pE=q(["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}}),mE=q(["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=q("text-caption-lg",{variants:{error:{true:"text-error-500",false:"text-light-700"}}}),gE=q("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}}),$E=q("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}}),yE=q("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"}}),W2=q(["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=q("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"}}),G2=({className:e})=>m.jsx("svg",{viewBox:"0 0 20 20",fill:"none",className:e,children:m.jsx("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:r})=>Y("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",r&&"bg-light-100 text-light-400 cursor-not-allowed"),DE=({error:e})=>Y("flex items-center gap-1 text-caption-sm font-semibold",e?"":"text-light-800"),wE="flex flex-col w-full max-w-[320px]",R2=s.forwardRef(function({label:t,required:r,hint:n,rightIcon:i,size:a="md",error:l=!1,disabled:o=!1,compact:u=!1,hideCalendarIcon:d=!1,type:c,prefix:f,suffix:h,leadingAddon:p,leadingDropdown:b,trailingDropdown:g,trailingButton:$,maxLength:y,value:x,className:v,wrapperClassName:C,...E},S){const B=!!(p||$),w=m.jsxs(m.Fragment,{children:[b&&m.jsxs("button",{type:"button",onClick:b.onClick,disabled:b.disabled||o,className:W2({size:a}),children:[m.jsx("span",{children:b.value}),m.jsx(G2,{className:"size-5 text-light-500"})]}),f&&m.jsx("div",{className:"flex items-center",children:f}),m.jsx("input",{...E,ref:S,type:c,disabled:o,maxLength:y,value:x,className:Y(mE({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||h)&&m.jsxs("div",{className:"flex h-full items-center gap-2",children:[i&&m.jsx("div",{className:"flex h-full items-center pb-0.5 text-light-400 hover:text-light-600",children:i}),h&&m.jsx("div",{className:"flex h-full items-center gap-1 leading-none text-light-700",children:h})]}),g&&m.jsxs("button",{type:"button",onClick:g.onClick,disabled:g.disabled||o,className:W2({size:a}),children:[m.jsx("span",{children:g.value}),m.jsx(G2,{className:"size-5 text-light-500"})]})]});return m.jsxs("div",{className:Y(u?wE:fE({size:a}),C),children:[t&&m.jsxs("label",{className:u?DE({error:l}):hE({error:l}),children:[t,r&&m.jsx("span",{className:"text-error-400",children:"*"})]}),B?m.jsxs("div",{className:gE({size:a,error:l,disabled:o}),children:[p&&m.jsx("div",{className:yE({size:a}),children:p}),m.jsx("div",{className:$E({size:a,disabled:o}),children:w}),$&&m.jsxs("button",{type:"button",onClick:$.onClick,disabled:$.disabled||o,className:vE({size:a}),children:[$.icon,m.jsx("span",{children:$.label})]})]}):m.jsx("div",{className:u?CE({size:a,error:l,disabled:o}):pE({size:a,error:l,disabled:o}),children:w}),y&&typeof x=="string"&&m.jsxs("div",{className:"text-right text-xs text-light-400",children:[x.length,"/",y]}),n&&m.jsx("p",{className:bE({error:l}),children:n})]})});function EE({children:e}){return m.jsx("div",{className:"flex items-center text-light-500",children:e})}function SE({children:e}){return m.jsx("div",{className:"flex items-center text-light-500",children:e})}const PE=q("flex flex-col gap-1 w-full",{variants:{size:{xs:"text-caption-sm",sm:"text-caption-lg",md:"text-sm"}},defaultVariants:{size:"md"}}),kE=q("flex items-center gap-1 font-bold text-sm",{variants:{error:{true:"",false:"text-light-800"}},defaultVariants:{error:!1}}),_s={xs:"h-7",sm:"h-[30px]",md:"h-[34px]"},BE=q(["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:_s.xs},{compact:!0,size:"sm",class:_s.sm},{compact:!0,size:"md",class:_s.md}],defaultVariants:{size:"md",compact:!1,error:!1}}),NE=q(["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"}}),Z2="flex items-center shrink-0",AE=q("text-caption-lg",{variants:{error:{true:"text-error-500",false:"text-light-700"}},defaultVariants:{error:!1}}),di=_.forwardRef(function({label:t,required:r,hint:n,size:i="md",error:a=!1,disabled:l=!1,compact:o=!1,leftSlot:u,rightSlot:d,className:c,wrapperClassName:f,...h},p){return m.jsxs("div",{className:Z(PE({size:i}),f),children:[t&&m.jsxs("label",{className:kE({error:a}),children:[t,r&&m.jsx("span",{className:"text-error-400",children:"*"})]}),m.jsxs(Wn,{isDisabled:l,isInvalid:a,className:BE({size:i,compact:o,error:a}),children:[u&&m.jsx("div",{className:Z2,children:u}),m.jsx(Gn,{...h,ref:p,disabled:l,required:r,className:Z(NE({size:i}),c)}),d&&m.jsx("div",{className:Z2,children:d})]}),n&&m.jsx("p",{className:AE({error:a}),children:n})]})});di.displayName="BaseInput";const FE={xs:12,sm:16,md:20,lg:24,xl:32},Or=({icon:e,size:t="md",strokeWidth:r=2,label:n,className:i,...a})=>m.jsx(e,{size:FE[t],stroke:r,className:Y("shrink-0",i),"aria-hidden":n?void 0:!0,role:n?"img":void 0,"aria-label":n,...a});Or.displayName="Icon";const Y2=Z("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"),q2=Z("flex size-4 shrink-0 items-center justify-center text-light-500"),X2=Z("ml-auto shrink-0 font-normal text-caption-sm text-light-500"),J2=Z("my-1 h-px w-full shrink-0 bg-light-200"),TE=Z("flex w-full flex-col items-start border-b border-light-200 px-4 py-3"),js=Z("group flex h-12 w-full items-center px-2 py-0.5 outline-none","cursor-pointer data-[disabled]:cursor-not-allowed"),IE=q(["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",OE="ml-auto flex shrink-0 items-center justify-center",Q2=e=>e!=null&&e!==!1;function Hs({state:e,leadingSlot:t,hasCustomLeadingSlot:r=!1,children:n,trailingSlot:i,nativeInteraction:a=!1}){const l=r?t:e.selectionMode==="multiple"?m.jsx("span",{"aria-hidden":"true","data-slot":"selection-indicator","data-selected":String(e.isSelected),className:`${s2({size:"sm",checked:e.isSelected,disabled:e.isDisabled})} pointer-events-none shrink-0`,children:e.isSelected&&m.jsx(Bi,{size:12,strokeWidth:2.5})}):null;return m.jsxs("span",{"data-slot":"collection-item-content",className:Z(IE({active:e.isHovered||e.isPressed||e.isSelected||e.isFocusVisible,focusVisible:e.isFocusVisible,nativeInteraction:a&&!e.isDisabled,disabled:e.isDisabled})),children:[Q2(l)&&m.jsx("span",{"data-slot":"leading",className:ME,children:l}),m.jsx("span",{"data-slot":"main",className:KE,children:n}),Q2(i)&&m.jsx("span",{"data-slot":"trailing",className:OE,children:i})]})}const bn=(e,t)=>typeof e=="function"?e(t):e,e$=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 LE({className:e,style:t,leadingSlot:r,children:n,trailingSlot:i,...a},l){const o=a.textValue??(typeof n=="string"?n:void 0);return m.jsx(E9,{ref:l,...a,textValue:o,style:t,className:Z(js,e),children:u=>m.jsx(Hs,{state:e$(u),leadingSlot:bn(r,u),hasCustomLeadingSlot:r!==void 0,trailingSlot:bn(i,u),children:bn(n,u)})})}const t$=_.forwardRef(LE);function zE({className:e,style:t,leadingSlot:r,children:n,trailingSlot:i,...a},l){const o=a.textValue??(typeof n=="string"?n:void 0);return m.jsx(ep,{ref:l,...a,textValue:o,style:t,className:Z(js,e),children:u=>m.jsx(Hs,{state:e$(u),leadingSlot:bn(r,u),hasCustomLeadingSlot:r!==void 0,trailingSlot:bn(i,u),children:bn(n,u)})})}const r$=_.forwardRef(zE),Us=_.createContext(null);function VE({className:e,style:t,...r},n){return m.jsx(Us.Provider,{value:"menu",children:m.jsx(Q3,{ref:n,...r,style:t,className:Z(Y2,e)})})}const Ws=_.forwardRef(VE);function _E({className:e,style:t,content:r="none",icon:n,shortcut:i,children:a,...l},o){const u=r==="icon"?n:r==="selection"?d=>m.jsx("span",{className:q2,children:d.isSelected&&m.jsx(Or,{icon:Bi,size:"sm","aria-hidden":"true"})}):void 0;return m.jsx(r$,{ref:o,...l,style:t,className:e,leadingSlot:u,trailingSlot:i?m.jsx("span",{className:X2,children:i}):void 0,children:a})}const Gs=_.forwardRef(_E),jE=({className:e})=>m.jsx(Hh,{className:Z(J2,e)}),HE=({children:e,className:t})=>m.jsx(Xx,{className:Z(TE,t),children:e}),UE=q(["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"}}),WE="w-72",GE="border-b border-light-200 p-2";function RE({size:e,disabled:t,countries:r,selected:n,onSelect:i}){const[a,l]=_.useState(""),o=a?r.filter(u=>u.name.toLowerCase().includes(a.toLowerCase())||u.dial_code.includes(a)||u.code.toLowerCase()===a.toLowerCase()):r;return m.jsxs(Ka,{onOpenChange:u=>{u||l("")},children:[m.jsxs(nr,{isDisabled:t,"aria-label":`Country: ${n.name} (${n.dial_code})`,className:UE({size:e}),children:[m.jsx("span",{children:n.code}),m.jsx(Ni,{size:14,"aria-hidden":"true"})]}),m.jsxs(Bt,{placement:"bottom start",children:[m.jsx("div",{className:GE,children:m.jsx("input",{autoFocus:!0,value:a,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"})}),m.jsx(Ws,{"aria-label":"Country",className:Z(WE,"max-h-60 overflow-y-auto"),items:o,onAction:u=>{const d=o.find(c=>c.code===u);d&&i(d)},children:u=>m.jsx(Gs,{id:u.code,textValue:`${u.name} ${u.dial_code}`,children:m.jsxs("span",{className:"flex min-w-0 flex-1 items-center gap-2",children:[m.jsx("span",{className:"min-w-0 flex-1 truncate",children:u.name}),m.jsx("span",{className:"shrink-0 text-light-500",children:u.dial_code})]})})})]})]})}const n$={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 Rs(e,t){var r=Array.prototype.slice.call(t);return r.push(n$),e.apply(this,r)}function i$(e,t){e=e.split("-"),t=t.split("-");for(var r=e[0].split("."),n=t[0].split("."),i=0;i<3;i++){var a=Number(r[i]),l=Number(n[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 Lr(e){return e!=null&&e.constructor===ZE}var YE=/^\d+$/;function qE(e){return YE.test(e)}function gn(e){"@babel/helpers - typeof";return gn=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},gn(e)}function qa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XE(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,JE(n.key),n)}}function Xa(e,t,r){return t&&XE(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function JE(e){var t=QE(e,"string");return gn(t)=="symbol"?t:t+""}function QE(e,t){if(gn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(gn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var eS="1.2.0",tS="1.7.35",a$=" ext. ",ze=(function(){function e(t){qa(this,e),s$(t),this.metadata=t,u$.call(this,t)}return Xa(e,[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter(function(r){return r!=="001"})}},{key:"getCountryMetadata",value:function(r){return this.metadata.countries[r]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(r){return this.getCountryMetadata(r)!==void 0}},{key:"hasCallingCode",value:function(r){if(this.getCountryCodesForCallingCode(r))return!0;if(this.nonGeographic()){if(this.nonGeographic()[r])return!0}else{var n=this.countryCallingCodes()[r];if(n&&n.length===1&&n[0]==="001")return!0}}},{key:"isNonGeographicCallingCode",value:function(r){return this.nonGeographic()?!!this.nonGeographic()[r]:!this.getCountryCodesForCallingCode(r)}},{key:"country",value:function(r){return this.selectNumberingPlan(r)}},{key:"selectNumberingPlan",value:function(r,n){var i,a;if(r&&(qE(r)?a=r:i=r),n&&(a=n),i&&i!=="001"){var l=this.getCountryMetadata(i);if(!l)throw new Error("Unknown country: ".concat(i));this.numberingPlan=new l$(l,this)}else if(a){if(!this.hasCallingCode(a))throw new Error("Unknown calling code: ".concat(a));this.numberingPlan=new l$(this.getNumberingPlanMetadata(a),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(r){var n=this.countryCallingCodes()[r];if(n)return n.length===1&&n[0].length===3?void 0:n}},{key:"getCountryCodeForCallingCode",value:function(r){var n=this.getCountryCodesForCallingCode(r);if(n)return n[0]}},{key:"getNumberingPlanMetadata",value:function(r){var n=this.getCountryCodeForCallingCode(r);if(n)return this.getCountryMetadata(n);if(this.nonGeographic()){var i=this.nonGeographic()[r];if(i)return i}else{var a=this.countryCallingCodes()[r];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(r){return this.numberingPlan.type(r)}},{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(r){return this.selectNumberingPlan(r)}},{key:"hasSelectedNumberingPlan",value:function(){return this.numberingPlan!==void 0}}])})(),l$=(function(){function e(t,r){qa(this,e),this.globalMetadataObject=r,this.metadata=t,u$.call(this,r.metadata)}return Xa(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(r){return r[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var r=this,n=this._getFormats(this.metadata)||this._getFormats(this._getDefaultCountryMetadataForThisCallingCode())||[];return n.map(function(i){return new rS(i,r)})}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(r){return r[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(r){if(this.hasTypes()&&o$(this.types(),r))return new iS(o$(this.types(),r),this)}},{key:"ext",value:function(){return this.v1||this.v2?a$:this.metadata[13]||a$}}])})(),rS=(function(){function e(t,r){qa(this,e),this._format=t,this.metadata=r}return Xa(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()&&!nS.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}])})(),nS=/^\(?\$1\)?$/,iS=(function(){function e(t,r){qa(this,e),this.type=t,this.metadata=r}return Xa(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 o$(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 s$(e){if(!e)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!Lr(e)||!Lr(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(Lr(e)?"an object of shape: { "+Object.keys(e).join(", ")+" }":"a "+aS(e)+": "+e,"."))}var aS=function(t){return gn(t)};function Zs(e,t){var r=new ze(t);if(r.hasCountry(e))return r.selectNumberingPlan(e).countryCallingCode();throw new Error("Unknown country: ".concat(e))}function lS(e,t){return t.countries.hasOwnProperty(e)}function u$(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?i$(t,eS)===-1?this.v2=!0:i$(t,tS)===-1?this.v3=!0:this.v4=!0:this.v1=!0}function ci(e,t,r){return oS(e,void 0,t,r)}function oS(e,t,r,n){r&&(n=new ze(n.metadata),n.selectNumberingPlan(r));var i=n.type(t),a=i&&i.possibleLengths()||n.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 sS(e,t,r){t===void 0&&(t={});var n=new ze(r);if(t.v2){if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(e.country||e.countryCallingCode)}else{if(!e.phone)return!1;if(e.country){if(!n.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));n.selectNumberingPlan(e.country)}else{if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(e.countryCallingCode)}}if(n.possibleLengths())return d$(e.phone||e.nationalNumber,n);if(e.countryCallingCode&&n.isNonGeographicCallingCode(e.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}function d$(e,t){return ci(e,void 0,t)==="IS_POSSIBLE"}function jt(e,t){return e=e||"",new RegExp("^(?:"+t+")$").test(e)}function uS(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=dS(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}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 dS(e,t){if(e){if(typeof e=="string")return c$(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c$(e,t):void 0}}function c$(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var cS=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function Ys(e,t,r){if(t=t||{},!(!e.country&&!e.countryCallingCode)){var n=new ze(r);n.selectNumberingPlan(e.country||e.countryCallingCode);var i=t.v2?e.nationalNumber:e.phone;if(jt(i,n.nationalNumberPattern())){if(qs(i,"FIXED_LINE",n))return n.type("MOBILE")&&n.type("MOBILE").pattern()===""||!n.type("MOBILE")||qs(i,"MOBILE",n)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE";for(var a=uS(cS),l;!(l=a()).done;){var o=l.value;if(qs(i,o,n))return o}}}}function qs(e,t,r){var n=r.type(t);return!n||!n.pattern()||n.possibleLengths()&&n.possibleLengths().indexOf(e.length)<0?!1:jt(e,n.pattern())}function fS(e,t,r){t=t||{};var n=new ze(r);if(n.selectNumberingPlan(e.country||e.countryCallingCode),n.hasTypes())return Ys(e,t,n.metadata)!==void 0;var i=t.v2?e.nationalNumber:e.phone;return jt(i,n.nationalNumberPattern())}var hS=/^[A-Z]{2}$/;function pS(e){return hS.test(e)}function mS(e,t){var r,n,i=new ze(t);return pS(e)?(r=e,i.selectNumberingPlan(r),n=i.countryCallingCode()):n=e,{country:r,callingCode:n}}function bS(e,t,r){var n=new ze(r),i=n.getCountryCodesForCallingCode(e);return i?i.filter(function(a){return gS(t,a,r)}):[]}function gS(e,t,r){var n=new ze(r);return n.selectNumberingPlan(t),n.numberingPlan.possibleLengths().indexOf(e.length)>=0}var Xs=2,$S=17,yS=3,Ge="0-90-9٠-٩۰-۹",vS="-‐-―−ー-",xS="//",CS="..",DS=" ",wS="()()[]\\[\\]",ES="~⁓∼~",ht="".concat(vS).concat(xS).concat(CS).concat(DS).concat(wS).concat(ES),Ja="++",SS=new RegExp("(["+Ge+"])");function f$(e,t,r,n){if(t){var i=new ze(n);i.selectNumberingPlan(t||r);var a=new RegExp(i.IDDPrefix());if(e.search(a)===0){e=e.slice(e.match(a)[0].length);var l=e.match(SS);if(!(l&&l[1]!=null&&l[1].length>0&&l[1]==="0"))return e}}}function Js(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var r=new RegExp("^(?:"+t.numberingPlan.nationalPrefixForParsing()+")"),n=r.exec(e);if(n){var i,a,l=n.length-1,o=l>0&&n[l];if(t.nationalPrefixTransformRule()&&o)i=e.replace(r,t.nationalPrefixTransformRule()),l>1&&(a=n[1]);else{var u=n[0];i=e.slice(u.length),o&&(a=n[1])}var d;if(o){var c=e.indexOf(n[1]),f=e.slice(0,c);f===t.numberingPlan.nationalPrefix()&&(d=t.numberingPlan.nationalPrefix())}else d=n[0];return{nationalNumber:i,nationalPrefix:d,carrierCode:a}}}return{nationalNumber:e}}function PS(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=kS(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}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 kS(e,t){if(e){if(typeof e=="string")return h$(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h$(e,t):void 0}}function h$(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function p$(e,t,r){for(var n=new ze(r),i=PS(t),a;!(a=i()).done;){var l=a.value;if(n.selectNumberingPlan(l),n.leadingDigits()){if(e&&e.search(n.leadingDigits())===0)return l}else if(Ys({phone:e,country:l},void 0,n.metadata))return l}}function Qs(e,t){var r=t.nationalNumber,n=t.metadata,i=n.getCountryCodesForCallingCode(e);if(i)return i.length===1?i[0]:p$(r,i,n.metadata)}function eu(e,t,r){var n=Js(e,r),i=n.carrierCode,a=n.nationalNumber;if(a!==e){if(!BS(e,a,r))return{nationalNumber:e};if(r.numberingPlan.possibleLengths()&&(t||(t=Qs(r.numberingPlan.callingCode(),{nationalNumber:a,metadata:r})),!NS(a,t,r)))return{nationalNumber:e}}return{nationalNumber:a,carrierCode:i}}function BS(e,t,r){return!(jt(e,r.nationalNumberPattern())&&!jt(t,r.nationalNumberPattern()))}function NS(e,t,r){switch(ci(e,t,r)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}function m$(e,t,r,n,i){if(!(t||r||n))return{number:e};var a=t||r?Zs(t||r,i):n;if(e.indexOf(a)===0){var l=new ze(i);l.selectNumberingPlan(t||r||n);var o=e.slice(a.length),u=eu(o,void 0,l),d=u.nationalNumber,c=eu(e,void 0,l),f=c.nationalNumber;if(!jt(f,l.nationalNumberPattern())&&jt(d,l.nationalNumberPattern())||ci(f,void 0,l)==="TOO_LONG")return{countryCallingCode:a,number:o}}return{number:e}}function tu(e,t,r,n,i){if(!e)return{};var a;if(e[0]!=="+"){var l=f$(e,t||r,n,i);if(l&&l!==e)a=!0,e="+"+l;else{if(t||r||n){var o=m$(e,t,r,n,i),u=o.countryCallingCode,d=o.number;if(u)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:u,number:d}}return{number:e}}}if(e[1]==="0")return{};for(var c=new ze(i),f=2;f-1<=yS&&f<=e.length;){var h=e.slice(1,f);if(c.hasCallingCode(h))return c.selectNumberingPlan(h),{countryCallingCodeSource:a?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:h,number:e.slice(f)};f++}return{}}function b$(e){return e.replace(new RegExp("[".concat(ht,"]+"),"g")," ").trim()}var g$=/(\$\d)/;function $$(e,t,r){var n=r.useInternationalFormat,i=r.withNationalPrefix;r.carrierCode,r.metadata;var a=e.replace(new RegExp(t.pattern()),n?t.internationalFormat():i&&t.nationalPrefixFormattingRule()?t.format().replace(g$,t.nationalPrefixFormattingRule()):t.format());return n?b$(a):a}var AS=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function FS(e,t,r){var n=new ze(r);if(n.selectNumberingPlan(e||t),n.defaultIDDPrefix())return n.defaultIDDPrefix();if(AS.test(n.IDDPrefix()))return n.IDDPrefix()}var TS=";ext=",$n=function(t){return"([".concat(Ge,"]{1,").concat(t,"})")};function y$(e){var t="20",r="15",n="9",i="6",a="[ \\t,]*",l="[:\\..]?[ \\t,-]*",o="#?",u="(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)",d="(?:[xx##~~]|int|int)",c="[- ]+",f="[ \\t]*",h="(?:,{2}|;)",p=TS+$n(t),b=a+u+l+$n(t)+o,g=a+d+l+$n(n)+o,$=c+$n(i)+"#",y=f+h+l+$n(r)+o,x=f+"(?:,)+"+l+$n(n)+o;return p+"|"+b+"|"+g+"|"+$+"|"+y+"|"+x}var IS="["+Ge+"]{"+Xs+"}",MS="["+Ja+"]{0,1}(?:["+ht+"]*["+Ge+"]){3,}["+ht+Ge+"]*",KS=new RegExp("^["+Ja+"]{0,1}(?:["+ht+"]*["+Ge+"]){1,2}$","i"),OS=MS+"(?:"+y$()+")?",LS=new RegExp("^"+IS+"$|^"+OS+"$","i");function zS(e){return e.length>=Xs&&LS.test(e)}function VS(e){return KS.test(e)}function _S(e){var t=e.number,r=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(r?";ext="+r:"")}var v$={formatExtension:function(t,r,n){return"".concat(t).concat(n.ext()).concat(r)}};function jS(e,t,r,n){r?r=WS({},v$,r):r=v$;var i=new ze(n);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=r.v2?e.nationalNumber:e.phone,o;switch(t){case"NATIONAL":return l?(o=Qa(l,e.carrierCode,"NATIONAL",i,r),ru(o,e.ext,i,r.formatExtension)):"";case"INTERNATIONAL":return l?(o=Qa(l,null,"INTERNATIONAL",i,r),o="+".concat(a," ").concat(o),ru(o,e.ext,i,r.formatExtension)):"+".concat(a);case"E.164":return"+".concat(a).concat(l);case"RFC3966":return _S({number:"+".concat(a).concat(l),ext:e.ext});case"IDD":if(!r.fromCountry)return;var u=US(l,e.carrierCode,a,r.fromCountry,i);return u?ru(u,e.ext,i,r.formatExtension):void 0;default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t,'"'))}}function Qa(e,t,r,n,i){var a=HS(n.formats(),e);return a?$$(e,a,{useInternationalFormat:r==="INTERNATIONAL",withNationalPrefix:!(a.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&i&&i.nationalPrefix===!1),carrierCode:t,metadata:n}):e}function HS(e,t){return GS(e,function(r){if(r.leadingDigitsPatterns().length>0){var n=r.leadingDigitsPatterns()[r.leadingDigitsPatterns().length-1];if(t.search(n)!==0)return!1}return jt(t,r.pattern())})}function ru(e,t,r,n){return t?n(e,t,r):e}function US(e,t,r,n,i){var a=Zs(n,i.metadata);if(a===r){var l=Qa(e,t,"NATIONAL",i);return r==="1"?r+" "+l:l}var o=FS(n,void 0,i.metadata);if(o)return"".concat(o," ").concat(r," ").concat(Qa(e,null,"INTERNATIONAL",i))}function WS(){for(var e=1,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];for(;e<r.length;){if(r[e])for(var i in r[e])r[0][i]=r[e][i];e++}return r[0]}function GS(e,t){for(var r=0;r<e.length;){if(t(e[r]))return e[r];r++}}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 x$(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function C$(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?x$(Object(r),!0).forEach(function(n){RS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x$(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function RS(e,t,r){return(t=D$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ZS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function YS(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,D$(n.key),n)}}function qS(e,t,r){return t&&YS(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function D$(e){var t=XS(e,"string");return fi(t)=="symbol"?t:t+""}function XS(e,t){if(fi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(fi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var w$=(function(){function e(t,r,n){if(ZS(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]==="+"&&!r)throw new TypeError("`metadata` argument not passed");if(Lr(r)&&Lr(r.countries)){n=r;var i=t;if(!JS.test(i))throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');var a=tu(i,void 0,void 0,void 0,n),l=a.countryCallingCode,o=a.number;if(r=o,t=l,!r)throw new Error("Invalid `number` argument passed: too short")}if(!r)throw new TypeError("`nationalNumber` argument is required");if(typeof r!="string")throw new TypeError("`nationalNumber` argument must be a string");s$(n);var u=mS(t,n),d=u.country,c=u.callingCode;this.country=d,this.countryCallingCode=c,this.nationalNumber=r,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return n}}return qS(e,[{key:"setExt",value:function(r){this.ext=r}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:bS(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return sS(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return fS(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){var r=new ze(this.getMetadata());return r.isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(r){return this.number===r.number&&this.ext===r.ext}},{key:"getType",value:function(){return Ys(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(r,n){return jS(this,r,n?C$(C$({},n),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:"formatNational",value:function(r){return this.format("NATIONAL",r)}},{key:"formatInternational",value:function(r){return this.format("INTERNATIONAL",r)}},{key:"getURI",value:function(r){return this.format("RFC3966",r)}}])})(),JS=/^\+\d+$/;function nu(e){"@babel/helpers - typeof";return nu=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},nu(e)}function QS(e,t,r){return Object.defineProperty(e,"prototype",{writable:!1}),e}function eP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tP(e,t,r){return t=pi(t),rP(e,au()?Reflect.construct(t,r||[],pi(e).constructor):t.apply(e,r))}function rP(e,t){if(t&&(nu(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nP(e)}function nP(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iP(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&&hi(e,t)}function iu(e){var t=typeof Map=="function"?new Map:void 0;return iu=function(n){if(n===null||!lP(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,i)}function i(){return aP(n,arguments,pi(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),hi(i,n)},iu(e)}function aP(e,t,r){if(au())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var i=new(e.bind.apply(e,n));return r&&hi(i,r.prototype),i}function au(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(au=function(){return!!e})()}function lP(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function hi(e,t){return hi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},hi(e,t)}function pi(e){return pi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},pi(e)}var Ht=(function(e){function t(r){var n;return eP(this,t),n=tP(this,t,[r]),Object.setPrototypeOf(n,t.prototype),n.name=n.constructor.name,n}return iP(t,e),QS(t)})(iu(Error)),E$=new RegExp("(?:"+y$()+")$","i");function oP(e){var t=e.search(E$);if(t<0)return{};for(var r=e.slice(0,t),n=e.match(E$),i=1;i<n.length;){if(n[i])return{number:r,ext:n[i]};i++}}function sP(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=uP(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}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 uP(e,t){if(e){if(typeof e=="string")return S$(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?S$(e,t):void 0}}function S$(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var dP={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 P$(e){return dP[e]}function el(e){for(var t="",r=sP(e.split("")),n;!(n=r()).done;){var i=n.value,a=P$(i);a&&(t+=a)}return t}function cP(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=fP(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}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 fP(e,t){if(e){if(typeof e=="string")return k$(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?k$(e,t):void 0}}function k$(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function B$(e){for(var t="",r=cP(e.split("")),n;!(n=r()).done;){var i=n.value;t+=hP(i,t)||""}return t}function hP(e,t,r){return e==="+"?t?void 0:"+":P$(e)}var N$="+",pP="[\\-\\.\\(\\)]?",A$="(["+Ge+"]|"+pP+")",mP="^\\"+N$+A$+"*["+Ge+"]"+A$+"*$",bP=new RegExp(mP,"g"),lu=Ge,gP="["+lu+"]+((\\-)*["+lu+"])*",$P="a-zA-Z",yP="["+$P+"]+((\\-)*["+lu+"])*",vP="^("+gP+"\\.)*"+yP+"\\.?$",xP=new RegExp(vP,"g"),F$="tel:",ou=";phone-context=",CP=";isub=";function DP(e){var t=e.indexOf(ou);if(t<0)return null;var r=t+ou.length;if(r>=e.length)return"";var n=e.indexOf(";",r);return n>=0?e.substring(r,n):e.substring(r)}function wP(e){return e===null?!0:e.length===0?!1:bP.test(e)||xP.test(e)}function EP(e,t){var r=t.extractFormattedPhoneNumber,n=DP(e);if(!wP(n))throw new Ht("NOT_A_NUMBER");var i;if(n===null)i=r(e)||"";else{i="",n.charAt(0)===N$&&(i+=n);var a=e.indexOf(F$),l;a>=0?l=a+F$.length:l=0;var o=e.indexOf(ou);i+=e.substring(l,o)}var u=i.indexOf(CP);if(u>0&&(i=i.substring(0,u)),i!=="")return i}var SP=250,PP=new RegExp("["+Ja+Ge+"]"),kP=new RegExp("[^"+Ge+"#]+$");function BP(e,t,r){t=t||{};var n=new ze(r);if(t.defaultCountry&&!n.hasCountry(t.defaultCountry))throw t.v2?new Ht("INVALID_COUNTRY"):new Error("Unknown country: ".concat(t.defaultCountry));var i=AP(e,t.v2,t.extract),a=i.number,l=i.ext,o=i.error;if(!a){if(t.v2)throw o==="TOO_SHORT"?new Ht("TOO_SHORT"):new Ht("NOT_A_NUMBER");return{}}var u=TP(a,t.defaultCountry,t.defaultCallingCode,n),d=u.country,c=u.nationalNumber,f=u.countryCallingCode,h=u.countryCallingCodeSource,p=u.carrierCode;if(!n.hasSelectedNumberingPlan()){if(t.v2)throw new Ht("INVALID_COUNTRY");return{}}if(!c||c.length<Xs){if(t.v2)throw new Ht("TOO_SHORT");return{}}if(c.length>$S){if(t.v2)throw new Ht("TOO_LONG");return{}}if(t.v2){var b=new w$(f,c,n.metadata);return d&&(b.country=d),p&&(b.carrierCode=p),l&&(b.ext=l),b.__countryCallingCodeSource=h,b}var g=(t.extended?n.hasSelectedNumberingPlan():d)?jt(c,n.nationalNumberPattern()):!1;return t.extended?{country:d,countryCallingCode:f,carrierCode:p,valid:g,possible:g?!0:!!(t.extended===!0&&n.possibleLengths()&&d$(c,n)),phone:c,ext:l}:g?FP(d,c,l):{}}function NP(e,t,r){if(e){if(e.length>SP){if(r)throw new Ht("TOO_LONG");return}if(t===!1)return e;var n=e.search(PP);if(!(n<0))return e.slice(n).replace(kP,"")}}function AP(e,t,r){var n=EP(e,{extractFormattedPhoneNumber:function(l){return NP(l,r,t)}});if(!n)return{};if(!zS(n))return VS(n)?{error:"TOO_SHORT"}:{};var i=oP(n);return i.ext?i:{number:n}}function FP(e,t,r){var n={country:e,phone:t};return r&&(n.ext=r),n}function TP(e,t,r,n){var i=tu(B$(e),void 0,t,r,n.metadata),a=i.countryCallingCodeSource,l=i.countryCallingCode,o=i.number,u;if(l)n.selectNumberingPlan(l);else if(o&&(t||r))t?(u=t,n.selectNumberingPlan(t),l=n.numberingPlan.callingCode()):(n.selectNumberingPlan(r),l=r);else return{};if(!o)return{countryCallingCodeSource:a,countryCallingCode:l};var d=eu(B$(o),void 0,n),c=d.nationalNumber,f=d.carrierCode,h=Qs(l,{nationalNumber:c,metadata:n});return h&&(u=h,h==="001"||n.selectNumberingPlan(u)),{country:u,countryCallingCode:l,countryCallingCodeSource:a,nationalNumber:c,carrierCode:f}}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 T$(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function I$(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?T$(Object(r),!0).forEach(function(n){IP(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):T$(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function IP(e,t,r){return(t=MP(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MP(e){var t=KP(e,"string");return mi(t)=="symbol"?t:t+""}function KP(e,t){if(mi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(mi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function OP(e,t,r){return BP(e,I$(I$({},t),{},{v2:!0}),r)}function bi(e){"@babel/helpers - typeof";return bi=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},bi(e)}function M$(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function LP(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?M$(Object(r),!0).forEach(function(n){zP(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):M$(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zP(e,t,r){return(t=VP(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VP(e){var t=_P(e,"string");return bi(t)=="symbol"?t:t+""}function _P(e,t){if(bi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(bi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jP(e,t){return GP(e)||WP(e,t)||UP(e,t)||HP()}function HP(){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 UP(e,t){if(e){if(typeof e=="string")return K$(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?K$(e,t):void 0}}function K$(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function WP(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,l,o=[],u=!0,d=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(u=(n=a.call(r)).done)&&(o.push(n.value),o.length!==t);u=!0);}catch(c){d=!0,i=c}finally{try{if(!u&&r.return!=null&&(l=r.return(),Object(l)!==l))return}finally{if(d)throw i}}return o}}function GP(e){if(Array.isArray(e))return e}function RP(e){var t=Array.prototype.slice.call(e),r=jP(t,4),n=r[0],i=r[1],a=r[2],l=r[3],o,u,d;if(typeof n=="string")o=n;else throw new TypeError("A text for parsing must be a string.");if(!i||typeof i=="string")l?(u=a,d=l):(u=void 0,d=a),i&&(u=LP({defaultCountry:i},u));else if(Lr(i))a?(u=i,d=a):d=i;else throw new Error("Invalid second argument: ".concat(i));return{text:o,options:u,metadata:d}}function gi(e){"@babel/helpers - typeof";return gi=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},gi(e)}function O$(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function L$(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?O$(Object(r),!0).forEach(function(n){ZP(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O$(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ZP(e,t,r){return(t=YP(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function YP(e){var t=qP(e,"string");return gi(t)=="symbol"?t:t+""}function qP(e,t){if(gi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(gi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function XP(e,t,r){t&&t.defaultCountry&&!lS(t.defaultCountry,r)&&(t=L$(L$({},t),{},{defaultCountry:void 0}));try{return OP(e,t,r)}catch(n){if(!(n instanceof Ht))throw n}}function JP(){var e=RP(arguments),t=e.text,r=e.options,n=e.metadata;return XP(t,r,n)}function $i(e){"@babel/helpers - typeof";return $i=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},$i(e)}function QP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ek(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,rk(n.key),n)}}function tk(e,t,r){return t&&ek(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function rk(e){var t=nk(e,"string");return $i(t)=="symbol"?t:t+""}function nk(e,t){if($i(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if($i(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ik=(function(){function e(t){var r=t.onCountryChange,n=t.onCallingCodeChange;QP(this,e),this.onCountryChange=r,this.onCallingCodeChange=n}return tk(e,[{key:"reset",value:function(r){var n=r.country,i=r.callingCode;this.international=!1,this.missingPlus=!1,this.IDDPrefix=void 0,this.callingCode=void 0,this.digits="",this.resetNationalSignificantNumber(),this.initCountryAndCallingCode(n,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(r){for(var n=0,i=Object.keys(r);n<i.length;n++){var a=i[n];this[a]=r[a]}}},{key:"initCountryAndCallingCode",value:function(r,n){this.setCountry(r),this.setCallingCode(n)}},{key:"setCountry",value:function(r){this.country=r,this.onCountryChange(r)}},{key:"setCallingCode",value:function(r){this.callingCode=r,this.onCallingCodeChange(r,this.country)}},{key:"startInternationalNumber",value:function(r,n){this.international=!0,this.initCountryAndCallingCode(r,n)}},{key:"appendDigits",value:function(r){this.digits+=r}},{key:"appendNationalSignificantNumberDigits",value:function(r){this.nationalSignificantNumber+=r}},{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 ak(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=lk(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}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 lk(e,t){if(e){if(typeof e=="string")return z$(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?z$(e,t):void 0}}function z$(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var pt="x",su=new RegExp(pt);function tl(e,t){if(t<1)return"";for(var r="";t>1;)t&1&&(r+=e),t>>=1,e+=e;return r+e}function V$(e,t){return e[t]===")"&&t++,ok(e.slice(0,t))}function ok(e){for(var t=[],r=0;r<e.length;)e[r]==="("?t.push(r):e[r]===")"&&t.pop(),r++;var n=0,i="";t.push(e.length);for(var a=0,l=t;a<l.length;a++){var o=l[a];i+=e.slice(n,o),n=o+1}return i}function sk(e,t,r){for(var n=ak(r.split("")),i;!(i=n()).done;){var a=i.value;if(e.slice(t+1).search(su)<0)return;t=e.search(su),e=e.replace(su,a)}return[e,t]}function uk(e,t,r){var n=r.metadata,i=r.shouldTryNationalPrefixFormattingRule,a=r.getSeparatorAfterNationalPrefix,l=new RegExp("^(?:".concat(t.pattern(),")$"));if(l.test(e.nationalSignificantNumber))return ck(e,t,{metadata:n,shouldTryNationalPrefixFormattingRule:i,getSeparatorAfterNationalPrefix:a})}function dk(e,t){return ci(e,void 0,t)==="IS_POSSIBLE"}function ck(e,t,r){var n=r.metadata,i=r.shouldTryNationalPrefixFormattingRule,a=r.getSeparatorAfterNationalPrefix;if(e.nationalSignificantNumber,e.international,e.nationalPrefix,e.carrierCode,i(t)){var l=_$(e,t,{useNationalPrefixFormattingRule:!0,getSeparatorAfterNationalPrefix:a,metadata:n});if(l)return l}return _$(e,t,{useNationalPrefixFormattingRule:!1,getSeparatorAfterNationalPrefix:a,metadata:n})}function _$(e,t,r){var n=r.metadata,i=r.useNationalPrefixFormattingRule,a=r.getSeparatorAfterNationalPrefix,l=$$(e.nationalSignificantNumber,t,{carrierCode:e.carrierCode,useInternationalFormat:e.international,withNationalPrefix:i,metadata:n});if(i||(e.nationalPrefix?l=e.nationalPrefix+a(t)+l:e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix&&(l=e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix+" "+l)),fk(l,e))return l}function fk(e,t){return el(e)===t.getNationalDigits()}function yi(e){"@babel/helpers - typeof";return yi=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},yi(e)}function hk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pk(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,bk(n.key),n)}}function mk(e,t,r){return t&&pk(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function bk(e){var t=gk(e,"string");return yi(t)=="symbol"?t:t+""}function gk(e,t){if(yi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(yi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var $k=(function(){function e(){hk(this,e)}return mk(e,[{key:"parse",value:function(r){if(this.context=[{or:!0,instructions:[]}],this.parsePattern(r),this.context.length!==1)throw new Error("Non-finalized contexts left when pattern parse ended");var n=this.context[0],i=n.branches,a=n.instructions;if(i)return{op:"|",args:i.concat([uu(a)])};if(a.length===0)throw new Error("Pattern is required");return a.length===1?a[0]:a}},{key:"startContext",value:function(r){this.context.push(r)}},{key:"endContext",value:function(){this.context.pop()}},{key:"getContext",value:function(){return this.context[this.context.length-1]}},{key:"parsePattern",value:function(r){if(!r)throw new Error("Pattern is required");var n=r.match(xk);if(!n){if(vk.test(r))throw new Error("Illegal characters found in a pattern: ".concat(r));this.getContext().instructions=this.getContext().instructions.concat(r.split(""));return}var i=n[1],a=r.slice(0,n.index),l=r.slice(n.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(),u=o.branches;u.push(uu(this.getContext().instructions)),this.endContext(),this.getContext().instructions.push({op:"|",args:u});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(uu(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:yk(a)});break;default:throw new Error("Unknown operator: ".concat(i))}l&&this.parsePattern(l)}}])})();function yk(e){for(var t=[],r=0;r<e.length;){if(e[r]==="-"){if(r===0||r===e.length-1)throw new Error("Couldn't parse a one-of set pattern: ".concat(e));for(var n=e[r-1].charCodeAt(0)+1,i=e[r+1].charCodeAt(0)-1,a=n;a<=i;)t.push(String.fromCharCode(a)),a++}else t.push(e[r]);r++}return t}var vk=/[\(\)\[\]\?\:\|]/,xk=new RegExp("(\\||\\(\\?\\:|\\)|\\[|\\])");function uu(e){return e.length===1?e[0]:e}function j$(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=Ck(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}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 Ck(e,t){if(e){if(typeof e=="string")return H$(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?H$(e,t):void 0}}function H$(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function vi(e){"@babel/helpers - typeof";return vi=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},vi(e)}function Dk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wk(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Sk(n.key),n)}}function Ek(e,t,r){return t&&wk(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Sk(e){var t=Pk(e,"string");return vi(t)=="symbol"?t:t+""}function Pk(e,t){if(vi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var kk=(function(){function e(t){Dk(this,e),this.matchTree=new $k().parse(t)}return Ek(e,[{key:"match",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.allowOverflow;if(!r)throw new Error("String is required");var a=du(r.split(""),this.matchTree,!0);if(a&&a.match&&delete a.matchedChars,!(a&&a.overflow&&!i))return a}}])})();function du(e,t,r){if(typeof t=="string"){var n=e.join("");return t.indexOf(n)===0?e.length===t.length?{match:!0,matchedChars:e}:{partialMatch:!0}:n.indexOf(t)===0?r&&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=du(i,l,r&&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 r?{overflow:!0}:{match:!0,matchedChars:e.slice(0,e.length-i.length)}}switch(t.op){case"|":for(var u,d=j$(t.args),c;!(c=d()).done;){var f=c.value,h=du(e,f,r);if(h){if(h.overflow)return h;if(h.match)return{match:!0,matchedChars:h.matchedChars};if(h.partialMatch)u=!0;else throw new Error(`Unsupported match result:
|
|
21
|
+
`.concat(JSON.stringify(h,null,2)))}}return u?{partialMatch:!0}:void 0;case"[]":for(var p=j$(t.args),b;!(b=p()).done;){var g=b.value;if(e[0]===g)return e.length===1?{match:!0,matchedChars:e}:r?{overflow:!0}:{match:!0,matchedChars:[g]}}return;default:throw new Error("Unsupported instruction tree: ".concat(t))}}function xi(e){"@babel/helpers - typeof";return xi=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},xi(e)}function U$(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=Bk(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}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 Bk(e,t){if(e){if(typeof e=="string")return W$(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?W$(e,t):void 0}}function W$(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Nk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ak(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Tk(n.key),n)}}function Fk(e,t,r){return t&&Ak(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Tk(e){var t=Ik(e,"string");return xi(t)=="symbol"?t:t+""}function Ik(e,t){if(xi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(xi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var cu="9",Mk=15,Kk=tl(cu,Mk),Ok=/[- ]/,Lk=function(){return/\[([^\[\]])*\]/g},zk=function(){return/\d(?=[^,}][^,}])/g},Vk=new RegExp("["+ht+"]*\\$1["+ht+"]*(\\$\\d["+ht+"]*)*$"),G$=3,_k=(function(){function e(t){t.state;var r=t.metadata;Nk(this,e),this.metadata=r,this.resetFormat()}return Fk(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(r,n){this.resetFormat(),r?(this.isNANP=r.callingCode()==="1",this.matchingFormats=r.formats(),n.nationalSignificantNumber&&this.narrowDownMatchingFormats(n)):(this.isNANP=void 0,this.matchingFormats=[])}},{key:"format",value:function(r,n){var i=this;if(dk(n.nationalSignificantNumber,this.metadata))for(var a=U$(this.matchingFormats),l;!(l=a()).done;){var o=l.value,u=uk(n,o,{metadata:this.metadata,shouldTryNationalPrefixFormattingRule:function(c){return i.shouldTryNationalPrefixFormattingRule(c,{international:n.international,nationalPrefix:n.nationalPrefix})},getSeparatorAfterNationalPrefix:function(c){return i.getSeparatorAfterNationalPrefix(c)}});if(u)return this.resetFormat(),this.chosenFormat=o,this.setNationalNumberTemplate(u.replace(/\d/g,pt),n),this.populatedNationalNumberTemplate=u,this.populatedNationalNumberTemplatePosition=this.template.lastIndexOf(pt),u}return this.formatNationalNumberWithNextDigits(r,n)}},{key:"formatNationalNumberWithNextDigits",value:function(r,n){var i=this.chosenFormat,a=this.chooseFormat(n);if(a)return a===i?this.formatNextNationalNumberDigits(r):this.formatNextNationalNumberDigits(n.getNationalDigits())}},{key:"narrowDownMatchingFormats",value:function(r){var n=this,i=r.nationalSignificantNumber,a=r.nationalPrefix,l=r.international,o=i,u=o.length-G$;u<0&&(u=0),this.matchingFormats=this.matchingFormats.filter(function(d){return n.formatSuits(d,l,a)&&n.formatMatches(d,o,u)}),this.chosenFormat&&this.matchingFormats.indexOf(this.chosenFormat)===-1&&this.resetFormat()}},{key:"formatSuits",value:function(r,n,i){return!(i&&!r.usesNationalPrefix()&&!r.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!n&&!i&&r.nationalPrefixIsMandatoryWhenFormattingInNationalFormat())}},{key:"formatMatches",value:function(r,n,i){var a=r.leadingDigitsPatterns().length;if(a===0)return!0;i=Math.min(i,a-1);var l=r.leadingDigitsPatterns()[i];if(n.length<G$)try{return new kk(l).match(n,{allowOverflow:!0})!==void 0}catch(o){return console.error(o),!0}return new RegExp("^(".concat(l,")")).test(n)}},{key:"getFormatFormat",value:function(r,n){return n?r.internationalFormat():r.format()}},{key:"chooseFormat",value:function(r){for(var n=this,i=function(){var d=o.value;return n.chosenFormat===d?0:Vk.test(n.getFormatFormat(d,r.international))?n.createTemplateForFormat(d,r)?(n.chosenFormat=d,0):(n.matchingFormats=n.matchingFormats.filter(function(c){return c!==d}),1):1},a,l=U$(this.matchingFormats.slice()),o;!(o=l()).done&&(a=i(),a!==0););return this.chosenFormat||this.resetFormat(),this.chosenFormat}},{key:"createTemplateForFormat",value:function(r,n){if(!(r.pattern().indexOf("|")>=0)){var i=this.getTemplateForFormat(r,n);if(i)return this.setNationalNumberTemplate(i,n),!0}}},{key:"getSeparatorAfterNationalPrefix",value:function(r){return this.isNANP||r&&r.nationalPrefixFormattingRule()&&Ok.test(r.nationalPrefixFormattingRule())?" ":""}},{key:"getInternationalPrefixBeforeCountryCallingCode",value:function(r,n){var i=r.IDDPrefix,a=r.missingPlus;return i?n&&n.spacing===!1?i:i+" ":a?"":"+"}},{key:"getTemplate",value:function(r){if(this.template){for(var n=-1,i=0,a=r.international?this.getInternationalPrefixBeforeCountryCallingCode(r,{spacing:!1}):"";i<a.length+r.getDigitsWithoutInternationalPrefix().length;)n=this.template.indexOf(pt,n+1),i++;return V$(this.template,n+1)}}},{key:"setNationalNumberTemplate",value:function(r,n){this.nationalNumberTemplate=r,this.populatedNationalNumberTemplate=r,this.populatedNationalNumberTemplatePosition=-1,n.international?this.template=this.getInternationalPrefixBeforeCountryCallingCode(n).replace(/[\d\+]/g,pt)+tl(pt,n.callingCode.length)+" "+r:this.template=r}},{key:"getTemplateForFormat",value:function(r,n){var i=n.nationalSignificantNumber,a=n.international,l=n.nationalPrefix,o=n.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix,u=r.pattern();u=u.replace(Lk(),"\\d").replace(zk(),"\\d");var d=Kk.match(u)[0];if(!(i.length>d.length)){var c=new RegExp("^"+u+"$"),f=i.replace(/\d/g,cu);c.test(f)&&(d=f);var h=this.getFormatFormat(r,a),p;if(this.shouldTryNationalPrefixFormattingRule(r,{international:a,nationalPrefix:l})){var b=h.replace(g$,r.nationalPrefixFormattingRule());if(el(r.nationalPrefixFormattingRule())===(l||"")+el("$1")&&(h=b,p=!0,l))for(var g=l.length;g>0;)h=h.replace(/\d/,pt),g--}var $=d.replace(new RegExp(u),h).replace(new RegExp(cu,"g"),pt);return p||(o?$=tl(pt,o.length)+" "+$:l&&($=tl(pt,l.length)+this.getSeparatorAfterNationalPrefix(r)+$)),a&&($=b$($)),$}}},{key:"formatNextNationalNumberDigits",value:function(r){var n=sk(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition,r);if(!n){this.resetFormat();return}return this.populatedNationalNumberTemplate=n[0],this.populatedNationalNumberTemplatePosition=n[1],V$(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition+1)}},{key:"shouldTryNationalPrefixFormattingRule",value:function(r,n){var i=n.international,a=n.nationalPrefix;if(r.nationalPrefixFormattingRule()){var l=r.usesNationalPrefix();if(l&&a||!l&&!i)return!0}}}])})();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 R$(e,t){return Wk(e)||Uk(e,t)||Hk(e,t)||jk()}function jk(){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 Hk(e,t){if(e){if(typeof e=="string")return Z$(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Z$(e,t):void 0}}function Z$(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Uk(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,l,o=[],u=!0,d=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(u=(n=a.call(r)).done)&&(o.push(n.value),o.length!==t);u=!0);}catch(c){d=!0,i=c}finally{try{if(!u&&r.return!=null&&(l=r.return(),Object(l)!==l))return}finally{if(d)throw i}}return o}}function Wk(e){if(Array.isArray(e))return e}function Gk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rk(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Yk(n.key),n)}}function Zk(e,t,r){return t&&Rk(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Yk(e){var t=qk(e,"string");return Ci(t)=="symbol"?t:t+""}function qk(e,t){if(Ci(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ci(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Xk="["+ht+Ge+"]+",Jk=new RegExp("^"+Xk+"$","i"),Qk="(?:["+Ja+"]["+ht+Ge+"]*|["+ht+Ge+"]+)",eB=new RegExp("[^"+ht+Ge+"]+.*$"),tB=/[^\d\[\]]/,rB=(function(){function e(t){var r=t.defaultCountry,n=t.defaultCallingCode,i=t.metadata,a=t.onNationalSignificantNumberChange;Gk(this,e),this.defaultCountry=r,this.defaultCallingCode=n,this.metadata=i,this.onNationalSignificantNumberChange=a}return Zk(e,[{key:"input",value:function(r,n){var i=aB(r),a=R$(i,2),l=a[0],o=a[1],u=el(l),d;return o&&(n.digits||(n.startInternationalNumber(void 0,void 0),u||(d=!0))),u&&this.inputDigits(u,n),{digits:u,justLeadingPlus:d}}},{key:"inputDigits",value:function(r,n){var i=n.digits,a=i.length<3&&i.length+r.length>=3;if(n.appendDigits(r),a&&this.extractIddPrefix(n),this.isWaitingForCountryCallingCode(n)){if(!this.extractCountryCallingCode(n))return}else n.appendNationalSignificantNumberDigits(r);n.international||this.hasExtractedNationalSignificantNumber||this.extractNationalSignificantNumber(n.getNationalDigits(),function(l){return n.update(l)})}},{key:"isWaitingForCountryCallingCode",value:function(r){var n=r.international,i=r.callingCode;return n&&!i}},{key:"extractCountryCallingCode",value:function(r){var n=tu("+"+r.getDigitsWithoutInternationalPrefix(),r.country,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),i=n.countryCallingCode,a=n.number;if(i)return r.setCallingCode(i),r.update({nationalSignificantNumber:a}),!0}},{key:"reset",value:function(r){if(r){this.hasSelectedNumberingPlan=!0;var n=r._nationalPrefixForParsing();this.couldPossiblyExtractAnotherNationalSignificantNumber=n&&tB.test(n)}else this.hasSelectedNumberingPlan=void 0,this.couldPossiblyExtractAnotherNationalSignificantNumber=void 0}},{key:"extractNationalSignificantNumber",value:function(r,n){if(this.hasSelectedNumberingPlan){var i=Js(r,this.metadata),a=i.nationalPrefix,l=i.nationalNumber,o=i.carrierCode;if(l!==r)return this.onExtractedNationalNumber(a,o,l,r,n),!0}}},{key:"extractAnotherNationalSignificantNumber",value:function(r,n,i){if(!this.hasExtractedNationalSignificantNumber)return this.extractNationalSignificantNumber(r,i);if(this.couldPossiblyExtractAnotherNationalSignificantNumber){var a=Js(r,this.metadata),l=a.nationalPrefix,o=a.nationalNumber,u=a.carrierCode;if(o!==n)return this.onExtractedNationalNumber(l,u,o,r,i),!0}}},{key:"onExtractedNationalNumber",value:function(r,n,i,a,l){var o=!1,u,d=a.lastIndexOf(i);if(d<0||d!==a.length-i.length)o=!0;else{var c=a.slice(0,d);c&&c!==r&&(u=c)}l({nationalPrefix:r,carrierCode:n,nationalSignificantNumber:i,nationalSignificantNumberIsModified:o,prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix:u}),this.hasExtractedNationalSignificantNumber=!0,this.onNationalSignificantNumberChange()}},{key:"reExtractNationalSignificantNumber",value:function(r){if(this.extractAnotherNationalSignificantNumber(r.getNationalDigits(),r.nationalSignificantNumber,function(n){return r.update(n)}))return!0;if(this.extractIddPrefix(r))return this.extractCallingCodeAndNationalSignificantNumber(r),!0;if(this.fixMissingPlus(r))return this.extractCallingCodeAndNationalSignificantNumber(r),!0}},{key:"extractIddPrefix",value:function(r){var n=r.international,i=r.IDDPrefix,a=r.digits;if(r.nationalSignificantNumber,!(n||i)){var l=f$(a,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata);if(l!==void 0&&l!==a)return r.update({IDDPrefix:a.slice(0,a.length-l.length)}),this.startInternationalNumber(r,{country:void 0,callingCode:void 0}),!0}}},{key:"fixMissingPlus",value:function(r){if(!r.international){var n=m$(r.digits,r.country,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),i=n.countryCallingCode;if(i)return r.update({missingPlus:!0}),this.startInternationalNumber(r,{country:r.country,callingCode:i}),!0}}},{key:"startInternationalNumber",value:function(r,n){var i=n.country,a=n.callingCode;r.startInternationalNumber(i,a),r.nationalSignificantNumber&&(r.resetNationalSignificantNumber(),this.onNationalSignificantNumberChange(),this.hasExtractedNationalSignificantNumber=void 0)}},{key:"extractCallingCodeAndNationalSignificantNumber",value:function(r){this.extractCountryCallingCode(r)&&this.extractNationalSignificantNumber(r.getNationalDigits(),function(n){return r.update(n)})}}])})();function nB(e){var t=e.search(Qk);if(!(t<0)){e=e.slice(t);var r;return e[0]==="+"&&(r=!0,e=e.slice(1)),e=e.replace(eB,""),r&&(e="+"+e),e}}function iB(e){var t=nB(e)||"";return t[0]==="+"?[t.slice(1),!0]:[t]}function aB(e){var t=iB(e),r=R$(t,2),n=r[0],i=r[1];return Jk.test(n)||(n=""),[n,i]}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 lB(e,t){return dB(e)||uB(e,t)||sB(e,t)||oB()}function oB(){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 sB(e,t){if(e){if(typeof e=="string")return Y$(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Y$(e,t):void 0}}function Y$(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function uB(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,l,o=[],u=!0,d=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(u=(n=a.call(r)).done)&&(o.push(n.value),o.length!==t);u=!0);}catch(c){d=!0,i=c}finally{try{if(!u&&r.return!=null&&(l=r.return(),Object(l)!==l))return}finally{if(d)throw i}}return o}}function dB(e){if(Array.isArray(e))return e}function cB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fB(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,pB(n.key),n)}}function hB(e,t,r){return t&&fB(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function pB(e){var t=mB(e,"string");return Di(t)=="symbol"?t:t+""}function mB(e,t){if(Di(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Di(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var q$=(function(){function e(t,r){cB(this,e),this.metadata=new ze(r);var n=this.getCountryAndCallingCode(t),i=lB(n,2),a=i[0],l=i[1];this.defaultCountry=a,this.defaultCallingCode=l,this.reset()}return hB(e,[{key:"getCountryAndCallingCode",value:function(r){var n,i;return r&&(Lr(r)?(n=r.defaultCountry,i=r.defaultCallingCode):n=r),n&&!this.metadata.hasCountry(n)&&(n=void 0),[n,i]}},{key:"input",value:function(r){var n=this.parser.input(r,this.state),i=n.digits,a=n.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 r=this;return this.state=new ik({onCountryChange:function(i){r.country=i},onCallingCodeChange:function(i,a){r.metadata.selectNumberingPlan(a||i),r.formatter.reset(r.metadata.numberingPlan,r.state),r.parser.reset(r.metadata.numberingPlan)}}),this.formatter=new _k({state:this.state,metadata:this.metadata}),this.parser=new rB({defaultCountry:this.defaultCountry,defaultCallingCode:this.defaultCallingCode,metadata:this.metadata,state:this.state,onNationalSignificantNumberChange:function(){r.determineTheCountryIfNeeded(),r.formatter.reset(r.metadata.numberingPlan,r.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 r=this.state.digits;if(r)return this._getCountry()}},{key:"_getCountry",value:function(){var r=this.state.country;return r}},{key:"determineTheCountryIfNeeded",value:function(){(!this.state.country||this.isCountryCallingCodeAmbiguous())&&this.determineTheCountry()}},{key:"getFullNumber",value:function(r){var n=this;if(this.isInternational()){var i=function(o){return n.formatter.getInternationalPrefixBeforeCountryCallingCode(n.state,{spacing:!!o})+o},a=this.state.callingCode;return i(a?r?"".concat(a," ").concat(r):a:"".concat(this.state.getDigitsWithoutInternationalPrefix()))}return r}},{key:"getNonFormattedNationalNumberWithPrefix",value:function(){var r=this.state,n=r.nationalSignificantNumber,i=r.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix,a=r.nationalPrefix,l=n,o=i||a;return o&&(l=o+l),l}},{key:"getNonFormattedNumber",value:function(){var r=this.state.nationalSignificantNumberIsModified;return this.getFullNumber(r?this.state.getNationalDigits():this.getNonFormattedNationalNumberWithPrefix())}},{key:"getNonFormattedTemplate",value:function(){var r=this.getNonFormattedNumber();if(r)return r.replace(/[\+\d]/g,pt)}},{key:"isCountryCallingCodeAmbiguous",value:function(){var r=this.state.callingCode,n=this.metadata.getCountryCodesForCallingCode(r);return n&&n.length>1}},{key:"determineTheCountry",value:function(){var r=Qs(this.isInternational()?this.state.callingCode:this.defaultCallingCode,{nationalNumber:this.state.nationalSignificantNumber,metadata:this.metadata});r!==this.state.country&&(this.state.setCountry(r),r&&this.metadata.selectNumberingPlan(r))}},{key:"getNumberValue",value:function(){var r=this.state,n=r.digits,i=r.callingCode,a=r.country,l=r.nationalSignificantNumber;if(n){if(this.isInternational())return i?"+"+i+l:"+"+n;if(a||i){var o=a?this.metadata.countryCallingCode():i;return"+"+o+l}}}},{key:"getNumber",value:function(){var r=this.state,n=r.nationalSignificantNumber,i=r.carrierCode,a=r.callingCode;if(n){var l=this._getCountry();if(!(!l&&!a)){if(l&&l===this.defaultCountry){var o=this.metadata.numberingPlan.callingCode(),u=bB(o,n,this.metadata);u&&(l=u)}var d=new w$(l||a,n,this.metadata.metadata);return i&&(d.carrierCode=i),d}}}},{key:"isPossible",value:function(){var r=this.getNumber();return r?r.isPossible():!1}},{key:"isValid",value:function(){var r=this.getNumber();return r?r.isValid():!1}},{key:"validateLength",value:function(){var r=this.state,n=r.digits,i=r.nationalSignificantNumber;if(!n)return"NOT_A_NUMBER";if(!this.metadata.numberingPlan)return"INVALID_COUNTRY";if(!i)return"TOO_SHORT";var a=ci(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 bB(e,t,r){var n=r.getCountryCodesForCallingCode(e);if(n.length>1)return p$(t,n,r.metadata)}function gB(e){return new ze(e).getCountries()}function X$(){return Rs(JP,arguments)}function rl(e){return q$.call(this,e,n$)}rl.prototype=Object.create(q$.prototype,{}),rl.prototype.constructor=rl;function $B(){return Rs(gB,arguments)}function yB(){return Rs(Zs,arguments)}function vB(e){return e.toUpperCase().replace(/./g,t=>String.fromCodePoint(127397+t.charCodeAt(0)))}let nl=null;function J$(){if(nl)return nl;const e=typeof Intl<"u"&&"DisplayNames"in Intl?new Intl.DisplayNames(["en"],{type:"region"}):null;return nl=$B().map(t=>({code:t,dial_code:`+${yB(t)}`,name:e?.of(t)??t,flag:vB(t)})).sort((t,r)=>t.name.localeCompare(r.name)),nl}function Q$(e,t,r){let n=e.replace(/\D/g,"");const i=r.replace(/\D/g,"");n.startsWith(i)&&(n=n.slice(i.length)),n=n.replace(/^0+/,"");const a=15-i.length;if(n=n.slice(0,a),!n)return r;const o=new rl(t).input(n);return`${r} ${o}`}function ey(e,t){return e?X$(e,t)?.isValid()??!1:!1}function ty(e,t){const r=X$(e,t);return r?.isValid()?r.number:void 0}function xB({size:e="md",label:t,required:r,hint:n,error:i,disabled:a=!1,placeholder:l,value:o="",defaultCountry:u="ID",countries:d,onChange:c,className:f,wrapperClassName:h}){const p=d??J$(),[b,g]=_.useState(()=>p.find(C=>C.code===u)??p[0]),$=C=>{const E=ey(C,b.code),S=E?ty(C,b.code):void 0;c?.(C,E,S)},y=C=>{const E=Q$(C.target.value,b.code,b.dial_code);$(E)},x=()=>{o||c?.(b.dial_code,!1,void 0)},v=C=>{const E=Q$(o,C.code,C.dial_code);g(C);const S=ey(E,C.code),B=S?ty(E,C.code):void 0;c?.(E,S,B)};return m.jsx(di,{size:e,label:t,required:r,hint:n,error:i,disabled:a,placeholder:l??"Enter phone number",inputMode:"numeric",value:o,onChange:y,onFocus:x,className:f,wrapperClassName:h,leftSlot:m.jsx(RE,{size:e,disabled:a,countries:p,selected:b,onSelect:v})})}const CB=q(["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"}}),DB="w-64",wB="select-none text-light-700";function EB({size:e,disabled:t,currencies:r,selected:n,onSelect:i}){return m.jsxs(Ka,{children:[m.jsxs(nr,{isDisabled:t,"aria-label":`Currency: ${n.label} (${n.code})`,className:CB({size:e}),children:[m.jsx("span",{children:n.code}),m.jsx(Ni,{size:14,"aria-hidden":"true"})]}),m.jsx(Bt,{placement:"bottom end",children:m.jsx(Ws,{"aria-label":"Currency",className:Z(DB,"max-h-60 overflow-y-auto"),items:r,onAction:a=>{const l=r.find(o=>o.code===a);l&&i(l)},children:a=>m.jsx(Gs,{id:a.code,textValue:`${a.label} ${a.code}`,children:m.jsxs("span",{className:"flex min-w-0 flex-1 items-center gap-2",children:[m.jsx("span",{className:"min-w-0 flex-1 truncate",children:a.label}),m.jsx("span",{className:"shrink-0 text-light-500",children:a.code})]})})})})]})}function fu(e){const t=new Intl.NumberFormat(e).formatToParts(123456789e-2),r=t.find(i=>i.type==="group")?.value??",",n=t.find(i=>i.type==="decimal")?.value??".";return{group:r,decimal:n}}function ry(e,t){return e?e.replace(/\B(?=(\d{3})+(?!\d))/g,t):""}function SB(e,t){const{group:r,decimal:n}=fu(t);let i=e.split("").filter(d=>/\d/.test(d)||d===n).join("");const a=i.indexOf(n);if(a!==-1){const d=i.slice(0,a).split(n).join(""),c=i.slice(a+1).split(n).join("").slice(0,2);i=`${d}${n}${c}`}const[l,o]=i.split(n),u=ry(l??"",r);return o!==void 0?`${u}${n}${o}`:u}function PB(e,t){const{group:r,decimal:n}=fu(t),i=e.split(r).join("").split(n).join("."),a=Number.parseFloat(i);return Number.isNaN(a)?0:a}function hu(e,t){if(e===void 0||Number.isNaN(e))return"";const{group:r,decimal:n}=fu(t),[i,a]=e.toString().split("."),l=ry(i??"0",r);return a?`${l}${n}${a}`:l}function kB({size:e="md",label:t,required:r,hint:n,error:i,disabled:a=!1,placeholder:l,value:o,currency:u,currencies:d,onCurrencyChange:c,onChange:f,className:h,wrapperClassName:p}){const b=d.find(C=>C.code===u)??d[0],[g,$]=_.useState(()=>hu(o,b?.locale)),y=_.useRef(!1);_.useEffect(()=>{if(y.current){y.current=!1;return}$(hu(o,b?.locale))},[o,b?.locale]);const x=C=>{y.current=!0;const E=SB(C.target.value,b?.locale);$(E),f?.(PB(E,b?.locale))},v=C=>{c?.(C.code),y.current=!0,$(hu(o,C.locale))};return m.jsx(di,{size:e,label:t,required:r,hint:n,error:i,disabled:a,placeholder:l??"0.00",inputMode:"decimal",value:g,onChange:x,className:h,wrapperClassName:p,leftSlot:b?m.jsx("span",{className:wB,children:b.symbol}):void 0,rightSlot:b?m.jsx(EB,{size:e,disabled:a,currencies:d,selected:b,onSelect:v}):void 0})}function BB({size:e="md",label:t,required:r,hint:n,disabled:i,error:a,className:l,wrapperClassName:o,value:u,maxLength:d,placeholder:c,onChange:f}){const h=u.length>d,p=a||h;return m.jsx(R2,{size:e,label:t,required:r,disabled:i,error:p,value:u,placeholder:c,onChange:f,className:l,wrapperClassName:o,hint:n,suffix:m.jsxs("span",{className:Y("text-caption-lg",h?"text-error-600":"text-light-400"),children:[u.length,"/",d]})})}const ny=[{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 NB(e){return ny.find(({pattern:r})=>r.test(e))?.brand??null}function AB(e){if(!e)return!1;let t=0,r=!1;for(let n=e.length-1;n>=0;n--){let i=Number.parseInt(e[n]??"0",10);r&&(i*=2,i>9&&(i-=9)),t+=i,r=!r}return t%10===0}function FB(e,t){if(!t||!e)return!1;const r=ny.find(n=>n.brand===t);return!r||!r.length.includes(e.length)?!1:AB(e)}function TB(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 IB=19;function MB(e){const t=e.replace(/\D/g,"").slice(0,IB),r=NB(t),n=TB(t,r),i=FB(t,r);return{formatted:n,brand:r,isValid:i}}function KB({size:e="md",label:t="Card number",required:r,hint:n,error:i,disabled:a=!1,placeholder:l="Card number",value:o="",leftSlot:u,onChange:d,className:c,wrapperClassName:f}){const h=p=>{const{formatted:b,brand:g,isValid:$}=MB(p.target.value);d?.(b,g,$)};return m.jsx(di,{size:e,label:t,required:r,hint:n,error:i,disabled:a,placeholder:l,value:o,onChange:h,inputMode:"numeric",autoComplete:"cc-number",className:c,wrapperClassName:f,leftSlot:u})}const pu=R2;pu.Prefix=EE,pu.Suffix=SE;const OB="flex flex-col gap-1 w-full",LB=q("flex items-center gap-1 font-bold text-sm",{variants:{error:{true:"",false:"text-light-800"}},defaultVariants:{error:!1}}),zB=q(["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}}),VB=q(["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}}),_B=q("text-caption-lg",{variants:{error:{true:"text-error-500",false:"text-light-700"}},defaultVariants:{error:!1}}),jB=({error:e})=>Y("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"),HB=({error:e})=>Y("flex items-center gap-1 text-caption-sm font-semibold",e?"":"text-light-800"),UB=e=>Y("flex-1 min-h-[64px] bg-transparent outline-none text-sm text-light-900","placeholder:text-light-500",e?"resize-y":"resize-none"),WB="flex flex-col w-full max-w-[320px]",iy=_.forwardRef(({label:e,required:t,hint:r,helpIcon:n,error:i=!1,disabled:a=!1,resizable:l=!0,compact:o=!1,rows:u,style:d,className:c,wrapperClassName:f,...h},p)=>{const b=u?{minHeight:`${u*20}px`}:void 0;return m.jsxs("div",{className:Y(o?WB:OB,f),children:[e&&m.jsxs("label",{className:o?HB({error:i}):LB({error:i}),children:[e,t&&m.jsx("span",{className:"text-error-400",children:"*"}),n]}),m.jsx(Wn,{isDisabled:a,isInvalid:i,className:o?jB({error:i}):zB({error:i}),children:m.jsx(nD,{ref:p,disabled:a,rows:u,style:{...b,...d},className:Y(o?UB(l&&!a):VB({resizable:l&&!a}),c),...h})}),r&&m.jsx("p",{className:_B({error:i}),children:r})]})});iy.displayName="Textarea";const GB=q("flex w-[320px] flex-col gap-1"),RB=q("flex items-center gap-1 font-bold text-sm",{variants:{error:{true:"",false:"text-light-800"}}}),ZB=q("flex items-stretch rounded-lg border bg-white transition-colors",{variants:{error:{true:"",false:"border-light-200"},disabled:{true:"bg-light-100",false:""}}}),YB=q("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"}}}),qB="w-px bg-light-200",XB=q(["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:""}}}),JB=q("flex-1 bg-transparent outline-none text-light-900 placeholder:text-light-500",{variants:{disabled:{true:"text-light-400 cursor-not-allowed",false:""}}}),QB=q("text-caption-lg",{variants:{error:{true:"text-error-600",false:"text-light-700"}}});function eN({size:e="md",label:t,required:r,hint:n,error:i=!1,disabled:a=!1,placeholder:l="www.cekat.ai",value:o,rightIcon:u,onChange:d,className:c,wrapperClassName:f}){return m.jsxs("div",{className:Y(GB(),f),children:[t&&m.jsxs("label",{className:RB({error:i}),children:[t,r&&m.jsx("span",{className:"text-error-400",children:"*"})]}),m.jsxs("div",{className:ZB({error:i,disabled:a}),children:[m.jsx("div",{className:YB({size:e}),children:"http://"}),m.jsx("div",{className:qB}),m.jsxs("div",{className:XB({size:e,error:i,disabled:a}),children:[m.jsx("input",{value:o,onChange:d,placeholder:l,disabled:a,className:Y(JB({disabled:a}),c)}),u&&m.jsx("div",{className:"flex items-center text-light-400",children:u})]})]}),n&&m.jsx("p",{className:QB({error:i}),children:n})]})}const tN=q("flex w-[320px] flex-col gap-1"),rN=q("flex items-center gap-1 font-bold text-sm",{variants:{error:{true:"text-error-600",false:"text-light-800"}}}),nN=q("flex items-stretch rounded-lg border border-light-200 bg-white transition-colors",{variants:{disabled:{true:"bg-light-100",false:""}}}),iN=q(["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:""}}}),aN=q("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"}}}),lN=q("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"}}}),oN=q("flex-1 bg-transparent outline-none text-light-900 placeholder:text-light-500",{variants:{disabled:{true:"text-light-400 cursor-not-allowed",false:""}}}),sN=q("text-caption-lg",{variants:{error:{true:"text-error-600",false:"text-light-700"}}});function uN({size:e="md",label:t,required:r,hint:n,error:i=!1,disabled:a=!1,placeholder:l="www.cekat.ai",value:o,rightIcon:u,suffix:d,onChange:c,className:f,wrapperClassName:h}){return m.jsxs("div",{className:Y(tN(),h),children:[t&&m.jsxs("label",{className:rN({error:i}),children:[t,r&&m.jsx("span",{className:"text-error-400",children:"*"})]}),m.jsxs("div",{className:nN({disabled:a}),children:[m.jsxs("div",{className:iN({size:e,error:i,disabled:a}),children:[m.jsx("input",{value:o,onChange:c,placeholder:l,disabled:a,className:Y(oN({disabled:a}),f)}),u&&m.jsx("div",{className:"text-light-400",children:u})]}),m.jsx("div",{className:aN({error:i})}),m.jsx("div",{className:lN({size:e,disabled:a}),children:d})]}),n&&m.jsx("p",{className:sN({error:i}),children:n})]})}const dN=q("flex w-full flex-col gap-1"),cN=q("flex items-center gap-1 text-sm font-bold text-light-800"),ay=q(["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}}),fN=q(["w-full overflow-y-auto py-1"],{variants:{size:{xs:"max-h-52",sm:"max-h-64",md:"max-h-80"}},defaultVariants:{size:"md"}}),hN=q("text-caption-lg text-light-700"),pN=({className:e})=>m.jsx("svg",{viewBox:"0 0 20 20",fill:"none",className:e,children:m.jsx("path",{d:"M5 7.5L10 12.5L15 7.5",stroke:"currentColor",strokeWidth:"1.67",strokeLinecap:"round",strokeLinejoin:"round"})}),mN=({className:e})=>m.jsx("svg",{viewBox:"0 0 20 20",fill:"none",className:e,children:m.jsx("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"})}),mu={xs:"size-4",sm:"size-5",md:"size-6"},ly={xs:"size-4",sm:"size-5",md:"size-5"},bN={xs:"text-caption-sm",sm:"text-caption-lg",md:"text-body-sm"},gN={xs:"h-7",sm:"h-[30px]",md:"h-[34px]"},oy=({size:e,open:t,disabled:r})=>Y("flex w-full items-center gap-2 rounded-lg border bg-white px-2 text-left transition-[border-color,border-width]",bN[e],gN[e],t?"border-2 border-primary-500":"border-light-200 focus-within:border-2 focus-within:border-primary-500",r?"cursor-not-allowed bg-light-100":"cursor-pointer"),$N=()=>"flex items-center gap-1 text-caption-sm font-semibold text-light-800",yN="flex w-full max-w-[320px] flex-col";function vN({size:e="md",type:t="default",label:r,required:n,helpIcon:i,hint:a,placeholder:l="Select option",disabled:o=!1,compact:u=!1,leadingIcon:d,options:c,value:f=null,onChange:h,values:p=[],onValuesChange:b,hideTagsOnFocus:g=!1,className:$,wrapperClassName:y}){const[x,v]=_.useState(!1),[C,E]=_.useState(""),S=_.useRef(null),B=_.useRef(null),w=_.useRef(null),P=t==="tags",K=t==="search"||P,T=c.find(A=>A.id===f)??null,I=c.filter(A=>p.includes(A.id)),H=P&&(!g||!x),D=P&&g&&!x&&I.length>0,M=C?c.filter(A=>`${A.label} ${A.supportingText??""}`.toLowerCase().includes(C.toLowerCase())):c,G=()=>{v(!1),E("")};_.useEffect(()=>{x&&K&&B.current?.focus()},[x,K]),_.useEffect(()=>{if(!x||!K)return;const A=F=>{const V=F.target;S.current?.contains(V)||w.current?.contains(V)||G()};return document.addEventListener("mousedown",A),()=>document.removeEventListener("mousedown",A)},[x,K]);const O=()=>{o||(x?G():v(!0))},J=A=>{A.disabled||(P?(b?.(p.includes(A.id)?p.filter(F=>F!==A.id):[...p,A.id]),E(""),B.current?.focus()):(h?.(A),G()))},k=A=>{if(A.key==="Enter"){A.preventDefault();const F=M.find(V=>!V.disabled);x&&F&&J(F)}else A.key==="Backspace"&&P&&!C&&p.length?b?.(p.slice(0,-1)):x||v(!0)},N=A=>A.avatar?m.jsx("img",{src:A.avatar,alt:"",className:Y(mu[e],"shrink-0 rounded-full object-cover")}):A.icon?m.jsx("span",{className:Y(mu[e],"flex shrink-0 items-center justify-center",o?"text-light-400":"text-light-500"),children:A.icon}):A.dot?m.jsx("span",{className:"size-2 shrink-0 rounded-full",style:{backgroundColor:o?"#d0d5dd":A.dot}}):null,z=T?N(T):d?m.jsx("span",{className:Y(mu[e],"flex shrink-0 items-center justify-center",o?"text-light-400":"text-light-500"),children:d}):null,ee=T?m.jsxs("span",{className:"flex min-w-0 items-center gap-2 whitespace-nowrap",children:[m.jsx("span",{className:Y("truncate font-medium",o?"text-light-400":"text-light-800"),children:T.label}),T.supportingText&&m.jsx("span",{className:o?"text-light-400":"text-light-700",children:T.supportingText})]}):m.jsx("span",{className:o?"text-light-400":"text-light-500",children:l}),Q=m.jsx(Bt,{ref:w,triggerRef:S,isOpen:x,onOpenChange:A=>{A||G()},isNonModal:K,shouldCloseOnInteractOutside:A=>!S.current?.contains(A),matchTriggerWidth:!0,placement:"bottom start",children:m.jsxs("div",{role:"listbox",className:fN({size:e}),children:[M.length===0&&m.jsx("div",{className:"flex h-12 items-center px-4 text-light-500",children:"No options found"}),M.map(A=>{const F=P?p.includes(A.id):A.id===f,V={isHovered:!1,isPressed:!1,isSelected:F,isFocusVisible:!1,isDisabled:!!A.disabled,selectionMode:P?"multiple":"single"};return m.jsx("button",{type:"button",role:"option","aria-selected":F,disabled:A.disabled,onClick:()=>J(A),className:Y(js,A.disabled&&"cursor-not-allowed"),children:m.jsx(Hs,{state:V,nativeInteraction:!0,children:m.jsxs(m.Fragment,{children:[N(A),m.jsx("span",{className:"truncate",children:A.label}),A.supportingText&&m.jsx("span",{"data-slot":"supporting-text",children:A.supportingText})]})})},A.id)})]})});return m.jsxs("div",{ref:S,className:Y(u?yN:dN(),y),children:[r&&m.jsxs("label",{className:u?$N():cN(),children:[r,n&&m.jsx("span",{className:"text-error-400",children:"*"}),i]}),m.jsxs("div",{className:"relative",onKeyDown:A=>{A.key==="Escape"&&G()},children:[t==="default"?m.jsxs("button",{type:"button","aria-haspopup":"listbox","aria-expanded":x,disabled:o,onClick:O,className:Y(u?oy({size:e,open:x,disabled:o}):ay({size:e,open:x,disabled:o}),$),children:[z,m.jsx("span",{className:"flex min-w-0 flex-1 items-center",children:ee}),m.jsx(pN,{className:Y(ly[e],"shrink-0 text-light-500")})]}):m.jsxs("div",{role:"combobox","aria-haspopup":"listbox","aria-expanded":x,onClick:O,className:Y(u?oy({size:e,open:x,disabled:o}):ay({size:e,open:x,disabled:o}),$),children:[m.jsx(mN,{className:Y(ly[e],"shrink-0",o?"text-light-400":"text-light-500")}),H&&I.length>0&&m.jsx("div",{className:"flex shrink items-center gap-1 overflow-x-auto whitespace-nowrap [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:I.map(A=>m.jsx(zs,{size:"sm",disabled:o,icon:A.avatar?m.jsx("img",{src:A.avatar,alt:"",className:"size-4 shrink-0 rounded-full object-cover"}):void 0,onClose:()=>J(A),children:A.label},A.id))}),!P&&!x&&T?m.jsx("span",{className:"flex min-w-0 flex-1 items-center",children:ee}):D?null:m.jsx("input",{ref:B,value:C,disabled:o,placeholder:l,onChange:A=>{E(A.target.value),x||v(!0)},onKeyDown:k,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"})]}),Q]}),a&&m.jsx("p",{className:hN(),children:a})]})}function xN({id:e,value:t,textValue:r,"aria-label":n,isDisabled:i,onAction:a,className:l,style:o,leadingSlot:u,children:d,trailingSlot:c},f){const h=_.useContext(Us),p={id:e,value:t,textValue:r,"aria-label":n,isDisabled:i,onAction:a,className:l,style:o,leadingSlot:u,children:d,trailingSlot:c};if(h==="menu")return m.jsx(r$,{ref:f,...p});if(h==="listbox")return m.jsx(t$,{ref:f,...p});throw new Error("CollectionItem must be rendered inside a supported collection parent.")}const CN=_.forwardRef(xN),sy=q("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"}}),DN={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"}},wN="bg-white border-light-200",EN="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",SN=q("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"}}),uy=q("flex min-w-0 flex-1",{variants:{layout:{floating:"flex-col gap-3","full-width":"items-center gap-4"}},defaultVariants:{layout:"floating"}}),PN=q("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}}),kN="text-caption-lg font-bold text-light-800",BN="text-caption-lg text-light-600",NN=q("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"}}),AN=q(["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"}}),FN=q(["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"}}),TN={default:yn,brand:yn,gray:yn,error:ki,warning:ki,success:ol},dy=({title:e,description:t,color:r="default",layout:n="floating",background:i="white",icon:a,iconVariant:l="featured",showIcon:o=!0,primaryAction:u,secondaryAction:d,actionVariant:c,actions:f,onClose:h,closeLabel:p="Close",className:b,...g})=>{const $=TN[r],y=n==="floating"?16:20,x=c??(n==="floating"?"link":"button"),v=DN[r],C=i==="light",E=C?Y(v.surface,v.border):wN,S=(I,H)=>I?x==="link"?m.jsx("button",{type:"button",onClick:I.onClick,className:AN({emphasis:H}),children:I.label}):m.jsx(qe,{size:"sm",variant:H==="primary"?"solid":"outline",onPress:I.onClick,className:n==="full-width"?"w-full sm:w-auto":void 0,children:I.label}):null,w=!!(f||u||d)?m.jsx("div",{className:NN({layout:n,actionVariant:x}),children:f??m.jsxs(m.Fragment,{children:[S(d,"secondary"),S(u,"primary")]})}):null,P=o&&(a||$)?m.jsx("div",{className:Y(SN({layout:n,variant:l,shape:r==="default"?"square":"circle"}),v.iconText,l==="featured"&&(C?v.iconSurfaceOnLight:v.iconSurface)),children:a??m.jsx($,{size:y,stroke:2})}):null,K=h?m.jsx("button",{type:"button","aria-label":p,onClick:h,className:FN({layout:n}),children:m.jsx(vn,{size:16,stroke:2})}):null,T=m.jsxs("div",{className:PN({layout:n,closable:!!h}),children:[m.jsx("p",{className:kN,children:e}),t&&m.jsx("p",{className:BN,children:t})]});return n==="full-width"?m.jsx("div",{role:"alert",className:Y(sy({layout:n}),E,b),...g,children:m.jsxs("div",{className:EN,children:[m.jsxs("div",{className:uy({layout:n}),children:[P,T]}),(w||K)&&m.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:gap-2",children:[w,K]})]})}):m.jsxs("div",{role:"alert",className:Y(sy({layout:n}),E,b),...g,children:[P,m.jsxs("div",{className:uy({layout:n}),children:[T,w]}),K]})};dy.displayName="Alert";const IN={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"}},MN=q("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)]"),KN="mt-0.5 flex size-6 shrink-0 items-center justify-center rounded-full",ON="flex-1 break-words font-nunito text-sm leading-5",LN=q(["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"}}}),zN={success:ol,error:vn,warning:Jy,info:yn},cy=({variant:e,message:t,title:r,onClose:n,closeLabel:i="Close",className:a})=>{const l=IN[e],o=zN[e];return m.jsxs("div",{role:"status",className:Z(MN(),l.container,a),children:[m.jsx("div",{className:Z(KN,l.badge),children:m.jsx(o,{size:16,stroke:3,className:l.iconColor})}),m.jsxs("p",{className:Z(ON,l.text),children:[m.jsx("span",{className:"font-bold",children:r??l.defaultTitle}),m.jsx("span",{className:"ml-1 font-normal",children:t})]}),n&&m.jsx("button",{type:"button","aria-label":i,onClick:n,className:LN({variant:e}),children:m.jsx(vn,{size:14,stroke:2.5})})]})};cy.displayName="Toast";const bu=q(["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"}}}),VN={"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},fy="font-nunito font-bold text-caption-lg text-light-800",hy="font-nunito font-normal text-caption-lg text-light-600",_N="flex flex-wrap items-center gap-3",jN=q(["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"}}),HN="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",UN="h-2 w-full rounded-full bg-light-200",WN="h-2 rounded-full bg-primary-500",GN="font-nunito text-caption-lg font-medium text-light-600",RN="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",ZN="flex flex-1 flex-col gap-3 p-4 sm:py-4 sm:pl-5 sm:pr-4",YN={"primary-icon":yn,progress:n5,success:ol,warning:ki,error:ki},py=({action:e,emphasis:t})=>m.jsx("button",{type:"button",onClick:e.onClick,className:jN({emphasis:t}),children:e.label}),my=({type:e,title:t,supportingText:r,primaryAction:n,secondaryAction:i,onClose:a,closeLabel:l="Close",icon:o,avatarSrc:u,avatarAlt:d,timestamp:c,imageSrc:f,imageAlt:h,progressValue:p,progressLabel:b,className:g})=>{const $=VN[e],y=YN[e],v=!!(n||i)?m.jsxs("div",{className:_N,children:[i&&m.jsx(py,{action:i,emphasis:"secondary"}),n&&m.jsx(py,{action:n,emphasis:"primary"})]}):null,C=a?m.jsx("button",{type:"button","aria-label":l,onClick:a,className:HN,children:m.jsx(Or,{icon:vn,size:"sm",strokeWidth:2})}):null,E=m.jsxs("div",{className:"flex flex-col gap-1",children:[m.jsx("p",{className:fy,children:t}),r&&m.jsx("p",{className:hy,children:r})]}),S=e==="progress"?m.jsxs("div",{className:"flex flex-col items-end gap-2",children:[m.jsx("div",{className:UN,children:m.jsx("div",{className:WN,style:{width:`${Math.min(100,Math.max(0,p??0))}%`}})}),b&&m.jsx("p",{className:GN,children:b})]}):null,B=e==="avatar"?m.jsx(Za,{src:u,alt:d,size:"md",status:"online"}):$?m.jsx("div",{className:Z("flex size-8 shrink-0 items-center justify-center",$.shape,$.bg),children:o??(y&&m.jsx(Or,{icon:y,size:"sm",strokeWidth:2,className:$.iconText}))}):null;return e==="image"?m.jsxs("div",{role:"status",className:Z(bu({type:e}),g),children:[m.jsx("div",{className:RN,children:f&&m.jsx("img",{src:f,alt:h??"",className:"size-full object-cover"})}),m.jsxs("div",{className:ZN,children:[E,v]}),C]}):e==="avatar"?m.jsxs("div",{role:"status",className:Z(bu(),g),children:[B,m.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-3",children:[m.jsxs("div",{className:"flex flex-col gap-1",children:[m.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[m.jsx("p",{className:fy,children:t}),c&&m.jsx("span",{className:"font-nunito text-caption-lg text-light-500",children:c})]}),r&&m.jsx("p",{className:hy,children:r})]}),v]}),C]}):m.jsxs("div",{role:"status",className:Z(bu(),g),children:[B,m.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-3",children:[E,S,v]}),C]})};my.displayName="NotificationToast";const qN=Z("relative overflow-auto rounded-lg border border-light-200 bg-white"),XN=Z("w-full border-collapse text-left"),JN=Z("sticky top-0 z-10 bg-light-100"),QN=Z("data-[empty]:h-full"),eA=Z("border-t border-light-200 bg-light-100 [&_tr]:!bg-light-100"),tA=Z("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"),rA={start:"text-left",center:"text-center",end:"text-right"},nA=Z("sticky z-30 bg-light-100 data-[hovered]:bg-light-200"),by={left:"border-r-0 shadow-[inset_-1px_0_0_0_#D0D5DD]",right:"border-l-0 shadow-[inset_1px_0_0_0_#D0D5DD]"},iA=Z("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"),aA=Z("flex min-w-0 items-center justify-between gap-3 self-stretch"),gy={inactive:"text-light-500",active:"text-light-800"},lA=Z("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"),oA=Z("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"),sA=Z("flex min-h-[26px] min-w-0 items-center gap-3 self-stretch"),uA=Z("group-first/cell:group-data-[selected]/row:shadow-[inset_2px_0_0_0_#1352BF]"),dA="block truncate",cA=Z("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"),fA=Z("w-full border-t border-light-200 py-3 text-center"),wi={container:Z("flex flex-col items-center gap-3 px-6 py-10 text-center"),iconWrap:Z("flex h-14 w-14 items-center justify-center rounded-full bg-light-100 text-light-500 [&>svg]:h-6 [&>svg]:w-6"),title:Z("font-nunito text-body-sm font-semibold text-light-800"),description:Z("max-w-sm font-nunito text-caption-lg text-light-600"),actions:Z("mt-2 flex items-center gap-2")};function $y({sticky:e,stickyOffset:t=0},r){return e?{...r,[e]:t}:r}const yy=s.forwardRef(({className:e,...t},r)=>m.jsx(CC,{ref:r,...t,className:Z(qN,e)}));yy.displayName="TableContainer";const vy=s.forwardRef(({className:e,...t},r)=>m.jsx(wC,{ref:r,...t,className:Z(XN,e)}));vy.displayName="Table";const hA=s.forwardRef(({className:e,...t},r)=>m.jsx(BC,{ref:r,...t,className:Z(JN,e)})),pA=s.forwardRef(({className:e,...t},r)=>m.jsx(KC,{ref:r,...t,className:Z(QN,e)})),mA=s.forwardRef(({className:e,...t},r)=>m.jsx(LC,{ref:r,...t,className:Z(eA,e)})),bA={onPointerDown:e=>e.stopPropagation(),onMouseDown:e=>e.stopPropagation(),onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation()},xy=s.forwardRef(({className:e,align:t="start",children:r,allowsSorting:n,actions:i,sticky:a,stickyOffset:l,style:o,...u},d)=>m.jsx(TC,{ref:d,allowsSorting:n,...u,style:$y({sticky:a,stickyOffset:l},o),className:Z(tA,rA[t],a&&nA,a&&by[a],e),children:c=>{const{allowsSorting:f,sortDirection:h}=c;let p=typeof r=="function"?r(c):r;_.isValidElement(p)&&p.type===_.Fragment&&(p=p.props.children);const b=_.Children.toArray(p),g=b.filter(y=>_.isValidElement(y)&&y.type===il),$=b.filter(y=>!(_.isValidElement(y)&&y.type===il));return m.jsxs("div",{className:aA,children:[m.jsx("span",{className:"min-w-0 truncate",children:$}),f&&m.jsxs("span",{className:Z("shrink-0",h?gy.active:gy.inactive),children:[h==="ascending"&&m.jsx(e5,{size:14,"aria-hidden":"true"}),h==="descending"&&m.jsx(Qy,{size:14,"aria-hidden":"true"}),!h&&m.jsx(t5,{size:14,"aria-hidden":"true"})]}),i&&m.jsx("span",{className:"shrink-0",...bA,children:i}),g]})}}));xy.displayName="Column";const gA=s.forwardRef(({className:e,...t},r)=>m.jsx(zC,{ref:r,...t,className:Z(lA,e)})),Cy=s.forwardRef(({className:e,children:t,sticky:r,stickyOffset:n,style:i,...a},l)=>m.jsx(VC,{ref:l,...a,style:$y({sticky:r,stickyOffset:n},i),className:Z(oA,uA,r&&iA,r&&by[r],e),children:o=>m.jsx("div",{className:sA,children:typeof t=="function"?t(o):t})}));Cy.displayName="Cell";const il=s.forwardRef(({className:e,...t},r)=>m.jsx(IC,{ref:r,...t,className:Z(cA,e)}));il.displayName="ColumnResizer";const Dy=s.forwardRef(({className:e,children:t,isLoading:r,...n},i)=>m.jsx(RC,{ref:i,isLoading:r,...n,className:Z(fA,e),children:t??(r&&m.jsx(Lu,{size:18,className:"inline-block animate-spin text-light-500","aria-label":"Loading more"}))}));Dy.displayName="TableLoadMoreItem";const wy=_.forwardRef(({icon:e,title:t,description:r,actions:n,className:i},a)=>m.jsxs("div",{ref:a,className:Z(wi.container,i),children:[e&&m.jsx("div",{className:wi.iconWrap,children:e}),m.jsx("p",{className:wi.title,children:t}),r&&m.jsx("p",{className:wi.description,children:r}),n&&m.jsx("div",{className:wi.actions,children:n})]}));wy.displayName="EmptyState";const $A=q(["fixed inset-0 flex items-center justify-center","bg-black/40 p-4"]),yA=q(["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"]),vA=q(["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"}}),xA=q(["absolute right-[7px] top-[7px] z-10"]),CA=q(["flex w-full shrink-0 items-center gap-3 px-6 py-4"]),DA=q(["min-h-0 w-full flex-1 overflow-y-auto"]),wA=q(["flex shrink-0 items-center justify-center self-stretch overflow-hidden py-2 pr-2"]),EA=q(["flex h-full w-[240px] items-center justify-center overflow-hidden","rounded-lg border border-light-200 bg-primary-50"]),SA=q(["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"}}),Ey=_.forwardRef(({className:e,style:t,size:r="sm",showCloseButton:n=!0,isDismissable:i=!0,imagePanel:a,children:l,"aria-label":o,"aria-labelledby":u,...d},c)=>m.jsx(Wb,{...d,isDismissable:i,className:$A(),style:{zIndex:hw},children:m.jsxs(f7,{ref:c,className:yA(),children:[m.jsx(rp,{"aria-label":o,"aria-labelledby":u,style:t,className:Z(vA({size:r}),e),children:f=>m.jsxs(m.Fragment,{children:[n&&m.jsx(qe,{type:"button",size:"sm",variant:"ghost",iconOnly:!0,onPress:f.close,"aria-label":"Close",className:xA(),children:m.jsx(qe.Icon,{children:m.jsx(vn,{size:16})})}),typeof l=="function"?l(f):l]})}),a]})}));Ey.displayName="Modal";const PA=({title:e,subtitle:t,icon:r,className:n})=>m.jsxs("div",{className:Z(CA(),n),children:[r&&m.jsx("span",{className:"flex size-6 shrink-0 items-center justify-center","aria-hidden":"true",children:r}),m.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[m.jsx(Ic,{slot:"title",className:"text-[18px] font-bold leading-5 text-light-800",children:e}),t&&m.jsx("p",{className:"text-caption-sm text-light-500",children:t})]})]}),kA=({children:e,className:t})=>m.jsx("div",{className:Z(DA(),t),children:e}),BA=({children:e,className:t})=>m.jsx("div",{className:wA(),children:m.jsx("div",{className:Z(EA(),t),children:e})}),Sy=m.jsx("div",{className:"h-px min-w-px flex-1","aria-hidden":"true"}),NA=({layout:e="horizontal-fill",destructive:t=!1,isPending:r=!1,cancelLabel:n,onCancel:i,confirmLabel:a,onConfirm:l,isConfirmDisabled:o=!1,backLabel:u="Back",onBack:d,checkbox:c,className:f})=>{const h=m.jsx(qe,{type:"button",size:"sm",tone:t?"destructive":"primary",isDisabled:o||r,isPending:r,onPress:l,children:m.jsx(qe.Text,{children:a})}),p=n&&m.jsx(qe,{type:"button",size:"sm",variant:"outline",isDisabled:r,onPress:i,children:m.jsx(qe.Text,{children:n})}),b=n&&m.jsx(qe,{type:"button",size:"sm",variant:"plain",isDisabled:r,onPress:i,children:m.jsx(qe.Text,{children:n})}),g=m.jsx(qe,{type:"button",size:"sm",variant:"outline",isDisabled:r,onPress:d,children:m.jsx(qe.Text,{children:u})});let $;switch(e){case"single-cta":$=m.jsx("div",{className:"w-full",children:h});break;case"vertical-fill":$=m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"w-full",children:h}),n&&m.jsx("div",{className:"flex w-full items-center justify-center",children:b})]});break;case"right-aligned":$=m.jsxs(m.Fragment,{children:[b,Sy,h]});break;case"right-aligned-checkbox":$=m.jsxs(m.Fragment,{children:[c&&m.jsx("div",{className:"flex min-w-0 flex-1 items-start",children:c}),m.jsxs("div",{className:"flex shrink-0 items-center gap-3",children:[p,h]})]});break;case"wizard-navigation":$=m.jsxs(m.Fragment,{children:[b,Sy,m.jsxs("div",{className:"flex shrink-0 items-center gap-3",children:[g,h]})]});break;default:$=m.jsxs(m.Fragment,{children:[p,h]});break}return m.jsx("div",{className:Z(SA({layout:e}),f),children:$})},Ei=Ey;Ei.Header=PA,Ei.Body=kA,Ei.ImagePanel=BA,Ei.Footer=NA;function AA({className:e,style:t,...r},n){return m.jsx(Us.Provider,{value:"listbox",children:m.jsx(C9,{ref:n,...r,style:t,className:Z(Y2,e)})})}const Si=_.forwardRef(AA);function FA({className:e,style:t,content:r="none",icon:n,shortcut:i,children:a,...l},o){const u=r==="icon"?n:r==="selection"?d=>m.jsx("span",{className:q2,children:d.isSelected&&m.jsx(Bi,{size:16,"aria-hidden":"true"})}):void 0;return m.jsx(t$,{ref:o,...l,style:t,className:e,leadingSlot:u,trailingSlot:i?m.jsx("span",{className:X2,children:i}):void 0,children:a})}const gu=_.forwardRef(FA),TA=({className:e})=>m.jsx(Hh,{className:Z(J2,e)}),Py=_.createContext(null);function IA(){const e=_.useContext(Py);if(!e)throw new Error("SelectPopover must be rendered inside Select.");return e}const MA=q(["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"}}),KA="flex size-4 shrink-0 items-center justify-center text-light-500",OA={xs:18,sm:20,md:24},LA=q("min-w-0 flex-1 truncate",{variants:{placeholder:{true:"text-light-400",false:"font-medium text-light-800"}},defaultVariants:{placeholder:!1}}),zA=q("shrink-0 text-light-500 transition-transform",{variants:{open:{true:"rotate-180",false:""}},defaultVariants:{open:!1}}),VA="p-2 pb-1",_A="flex h-9 items-center gap-2 rounded-lg border border-light-200 px-3 focus-within:border-primary-500 focus-within:shadow-focus",jA="min-w-0 flex-1 bg-transparent text-caption-lg text-light-800 outline-none placeholder:text-light-400";function HA({isOpen:e,onClose:t}){const r=_.useRef(e);return _.useEffect(()=>{r.current&&!e&&t(),r.current=e},[e,t]),null}function UA({className:e,style:t,children:r,...n},i){const[a,l]=_.useState(""),o=_.useMemo(()=>({query:a,setQuery:l}),[a]);return m.jsx(M7,{ref:i,...n,style:t,className:Z("group w-full",e),children:u=>m.jsxs(Py.Provider,{value:o,children:[m.jsx(HA,{isOpen:u.isOpen,onClose:()=>l("")}),typeof r=="function"?r(u):r]})})}const $u=_.forwardRef(UA),al=_.forwardRef(({className:e,style:t,size:r="md",icon:n,children:i,...a},l)=>m.jsx(nr,{ref:l,...a,style:t,className:Z(MA({size:r}),e),children:o=>m.jsxs(m.Fragment,{children:[n&&m.jsx("span",{className:KA,children:n}),typeof i=="function"?i(o):i,m.jsx(Ni,{size:OA[r],"aria-hidden":"true",className:zA({open:o.isPressed})})]})}));al.displayName="SelectTrigger";function WA({className:e,style:t,...r},n){return m.jsx(L7,{ref:n,...r,style:t,className:i=>Z(LA({placeholder:i.isPlaceholder}),e)})}const yu=_.forwardRef(WA);function vu({className:e,...t}){return m.jsx(gu,{...t,content:"selection",className:e})}function GA({items:e,children:t,getTextValue:r,filter:n,searchPlaceholder:i="Search...",searchAriaLabel:a="Search options",emptyState:l="No options found",className:o}){const{query:u,setQuery:d}=IA(),c=_.useMemo(()=>Array.from(e),[e]),f=_.useRef(null),h=_.useRef(null),p=_.useContext(gs)?.isOpen??!1;_.useEffect(()=>{if(!p)return;const $=window.setTimeout(()=>h.current?.focus(),0);return()=>window.clearTimeout($)},[p]);const b=_.useMemo(()=>{const $=u.trim().toLocaleLowerCase();return $?c.filter(y=>n?n(y,u):r(y).toLocaleLowerCase().includes($)):c},[n,r,c,u]),g=$=>{if($.key!=="ArrowDown")return;const y=f.current?.querySelector('[role="option"]:not([data-disabled])');y&&($.preventDefault(),y.focus())};return m.jsxs(Bt,{matchTriggerWidth:!0,placement:"bottom start",className:Z(o),children:[m.jsx("div",{className:VA,children:m.jsx(A1,{"aria-label":a,value:u,onChange:d,children:m.jsxs("div",{className:_A,children:[m.jsx(zu,{size:18,"aria-hidden":"true",className:"shrink-0 text-light-500"}),m.jsx(Gn,{ref:h,placeholder:i,className:jA,onKeyDown:g})]})})}),m.jsx(Si,{ref:f,items:b,renderEmptyState:()=>l,children:t})]})}const RA=q(["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"}}),ZA=q("flex shrink-0 items-center justify-center text-light-500",{variants:{size:{xs:"size-5",sm:"size-6",md:"size-7"}},defaultVariants:{size:"md"}}),YA="flex min-w-0 flex-nowrap items-center gap-1.5 overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",qA="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 XA({className:e,style:t,children:r,...n},i){return m.jsx(D8,{ref:i,...n,style:t,className:Z("group",e),children:r})}const JA=_.forwardRef(XA),ky=_.forwardRef(({className:e,size:t="md",icon:r,children:n,onClick:i,...a},l)=>{const o=_.useCallback(u=>{i?.(u),u.target.closest("button, input")||u.currentTarget.querySelector("input")?.focus()},[i]);return m.jsxs(Wn,{ref:l,...a,onClick:o,className:Z(RA({size:t}),e),children:[r&&m.jsx("span",{className:ZA({size:t}),children:r}),n]})});ky.displayName="ComboBoxTrigger";const By=_.forwardRef(({className:e,style:t,onKeyDown:r,...n},i)=>{const a=_.useContext(os),l=_.useCallback(o=>{if(r?.(o),o.key==="Backspace"&&!o.defaultPrevented&&o.currentTarget.value===""&&a?.selectionManager.selectionMode==="multiple"){const u=a.selectedItems[a.selectedItems.length-1];u&&a.selectionManager.toggleSelection(u.key)}},[r,a]);return m.jsx(Gn,{ref:i,...n,style:t,onKeyDown:l,className:Z(qA,e)})});By.displayName="ComboBoxInput";const QA=({children:e})=>{const t=_.useContext(os);return t?m.jsx("div",{className:YA,children:t.selectedItems.map(r=>r?m.jsx(_.Fragment,{children:e({key:r.key,textValue:r.textValue??String(r.key),onRemove:()=>t.selectionManager.toggleSelection(r.key)})},r.key):null)}):null};function eF({className:e,...t}){return m.jsx(gu,{...t,content:"selection",className:e})}const Ny=_.createContext(null);function Ay(){const e=_.useContext(Ny);if(!e)throw new Error("MultiSelect components must be rendered inside MultiSelect.");return e}function tF({"aria-label":e,items:t,children:r,selectedKeys:n,defaultSelectedKeys:i,onSelectionChange:a,disabledKeys:l,getTextValue:o,filter:u,searchValue:d,defaultSearchValue:c="",onSearchChange:f,isDisabled:h=!1,className:p}){const b=_.useMemo(()=>Array.from(t),[t]),g=n!==void 0,[$,y]=_.useState(()=>new Set(i)),x=_.useMemo(()=>g?new Set(n):$,[n,g,$]),v=d!==void 0,[C,E]=_.useState(c),S=v?d:C,[B,w]=_.useState(!1),P=_.useCallback(M=>{v||E(M),f?.(M)},[v,f]),K=_.useCallback(M=>{w(M),!M&&!v&&E("")},[v]),T=_.useCallback(M=>{if(M==="all")return;const G=new Set(M);g||y(G),a?.(G)},[g,a]),I=_.useMemo(()=>{const M=S.trim().toLocaleLowerCase();return M?b.filter(G=>u?u(G,S):o(G).toLocaleLowerCase().includes(M)):b},[u,o,b,S]),H=_.useMemo(()=>new Set(l),[l]),D={label:e,items:b,filteredItems:I,selectedKeys:x,disabledKeys:H,onSelectionChange:T,query:S,setQuery:P,isOpen:B,setOpen:K,isDisabled:h};return m.jsx(Ny.Provider,{value:D,children:m.jsx("div",{className:Z("w-full",p),children:m.jsx(p8,{isOpen:B,onOpenChange:K,children:r})})})}const rF=q(["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}}),nF="overflow-hidden rounded-lg border border-light-200 bg-white shadow-lg outline-none",iF="outline-none",aF="p-2 pb-1",lF="flex h-9 items-center gap-2 rounded-lg border border-light-200 px-3 focus-within:border-primary-500 focus-within:shadow-focus",oF="min-w-0 flex-1 bg-transparent text-caption-lg text-light-800 outline-none placeholder:text-light-400",sF={xs:18,sm:20,md:20},Fy=_.forwardRef(({children:e,size:t="md",className:r,style:n,...i},a)=>{const{isOpen:l,isDisabled:o}=Ay();return m.jsxs(nr,{ref:a,isDisabled:o,style:n,className:Z(rF({size:t,open:l}),r),...i,children:[m.jsx("span",{className:"min-w-0 flex-1 truncate",children:e}),m.jsx(Ni,{size:sF[t],"aria-hidden":"true",className:Z("shrink-0 text-light-500 transition-transform",l&&"rotate-180")})]})});Fy.displayName="MultiSelectTrigger";function uF({children:e,searchPlaceholder:t="Search...",emptyState:r="No options found",className:n}){const{label:i,filteredItems:a,selectedKeys:l,disabledKeys:o,onSelectionChange:u,query:d,setQuery:c,setOpen:f}=Ay(),h=_.useRef(null),p=b=>{if(b.key!=="ArrowDown")return;const g=h.current?.querySelector('[role="option"]:not([data-disabled])');g&&(b.preventDefault(),g.focus())};return m.jsx(Bt,{matchTriggerWidth:!0,placement:"bottom start",className:Z(nF,n),children:m.jsx(rp,{"aria-label":i,className:iF,children:m.jsxs("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))},children:[m.jsx("div",{className:aF,children:m.jsx(A1,{"aria-label":`Search ${i.toLocaleLowerCase()}`,value:d,onChange:c,children:m.jsxs("div",{className:lF,children:[m.jsx(zu,{size:18,"aria-hidden":"true",className:"shrink-0 text-light-500"}),m.jsx(Gn,{autoFocus:!0,placeholder:t,className:oF,onKeyDown:p})]})})}),m.jsx(Si,{ref:h,"aria-label":`${i} options`,items:a,selectionMode:"multiple",selectedKeys:l,disabledKeys:o,onSelectionChange:u,escapeKeyBehavior:"none",renderEmptyState:()=>r,children:e})]})})})}const dF=q(["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"}}),xu=_.forwardRef(({children:e,className:t,variant:r="text",size:n="sm",underline:i="none",...a},l)=>m.jsx(Rv,{...a,ref:l,className:dl(t,o=>Z(dF({variant:r,size:n,underline:i}),o)),children:e}));xu.displayName="Link";const Ty=_.createContext({separator:"chevron",variant:"text",size:"sm"}),Iy=()=>_.useContext(Ty),cF="flex flex-wrap items-center",fF="inline-flex items-center gap-1.5",hF=q("shrink-0 text-light-400",{variants:{type:{chevron:"size-4",slash:"size-3.5"}},defaultVariants:{type:"chevron"}}),pF="inline-flex size-5 shrink-0 items-center justify-center [&_svg]:size-full",My=({"aria-label":e="Breadcrumb",separator:t="chevron",variant:r="text",size:n="sm",isDisabled:i,className:a,children:l})=>{const o=_.useMemo(()=>({separator:t,variant:r,size:n}),[t,r,n]);return m.jsx("nav",{"aria-label":e,children:m.jsx(Ty.Provider,{value:o,children:m.jsx(qv,{isDisabled:i,className:Z(cF,a),children:l})})})};My.displayName="Breadcrumbs";const Cu=({type:e="chevron",className:t})=>{const r=e==="slash"?i5:Ou;return m.jsx("span",{"aria-hidden":"true",className:Z(hF({type:e}),t),children:m.jsx(r,{className:"size-full",stroke:2})})};Cu.displayName="BreadcrumbSeparator";const Ky=({className:e,children:t})=>{const{separator:r}=Iy();return m.jsx(Xv,{className:Z(fF,e),children:({isCurrent:n})=>m.jsxs(m.Fragment,{children:[t,!n&&m.jsx(Cu,{type:r})]})})};Ky.displayName="Breadcrumb";const Oy=({variant:e,size:t,icon:r,children:n,...i})=>{const a=Iy();return m.jsxs(xu,{variant:e??a.variant,size:t??a.size,...i,children:[r&&m.jsx("span",{className:pF,"aria-hidden":"true",children:r}),n]})};Oy.displayName="BreadcrumbLink";const mF={xs:24,sm:32,md:40,lg:48,xl:56},bF={xs:12,sm:16,md:20,lg:24,xl:28},Ly={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"}},zy={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 gF(e,t){return Ly[e][t]??Ly[e].light??""}function $F(e,t){return zy[e][t]??zy[e].light??""}const yF=q("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"}}),Vy=({icon:e,size:t="md",color:r="brand",type:n="light",className:i})=>{const a=mF[t],l=bF[t];return m.jsx("div",{"aria-hidden":!0,className:Y(yF({type:n}),gF(r,n),i),style:{width:a,height:a},children:m.jsx(Or,{icon:e,strokeWidth:2,className:$F(r,n),style:{width:l,height:l}})})};Vy.displayName="FeaturedIcon";const vF={xs:20,sm:24,md:28,lg:32},xF={xs:9,sm:11,md:12,lg:14},CF={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"}},DF={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 wF(e,t){return CF[e][t]}function EF(e,t){return DF[e][t]}const SF=q("relative inline-flex shrink-0 items-center justify-center rounded-full"),_y=({size:e="sm",color:t="primary",type:r="default",className:n})=>{const i=vF[e],a=xF[e];return m.jsx("div",{"aria-hidden":!0,className:Y(SF(),wF(t,r),n),style:{width:i,height:i},children:m.jsx(Or,{icon:Bi,strokeWidth:2.5,className:EF(t,r),style:{width:a,height:a}})})};_y.displayName="CheckIcon";const PF={sm:8,md:10,lg:12},kF={sm:6,md:8,lg:10},BF=q("relative shrink-0 rounded-full bg-current",{variants:{outline:{true:"ring-2 ring-white",false:""}},defaultVariants:{outline:!1}}),jy=({size:e="sm",outline:t=!1,className:r})=>{const n=PF[e],i=kF[e];return m.jsx("span",{"aria-hidden":!0,className:"relative inline-flex shrink-0 items-center justify-center",style:{width:n,height:n},children:m.jsx("span",{className:Y(BF({outline:t}),r),style:{width:i,height:i}})})};jy.displayName="Dot";const Hy="inline-flex flex-col gap-3 text-light-900",NF="flex h-9 w-full items-center justify-between gap-1",AF="flex-1 text-center text-body-sm font-semibold text-light-900",FF="flex min-w-0 flex-1 items-center justify-center gap-2",TF=q("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"}}),IF=q("font-medium text-light-500",{variants:{size:{sm:"size-8 text-caption-sm",md:"size-10 text-caption-lg"}},defaultVariants:{size:"md"}}),MF=q(["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"}}),KF=["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"],OF=["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"],LF=["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"],zF=["data-[today]:font-bold data-[today]:text-primary-500","data-[today]:data-[selected]:text-white"],Uy=["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"],ll=_.createContext({size:"md",isRange:!1});function VF(e,t){return _.useMemo(()=>t?new Proxy(e,{get(r,n,i){return n==="focusedDate"?r.focusedDate.add(t):n==="setFocusedDate"?a=>r.setFocusedDate(a.subtract(t)):Reflect.get(r,n,i)}}):e,[e,t])}function Wy(e){const t=_.useContext(Qr),r=_.useContext(en),n=t??r;if(!n)throw new Error("CalendarMonthSelect/CalendarYearSelect must be rendered inside a Calendar or RangeCalendar.");return VF(n,e)}function _F({previousLabel:e,nextLabel:t,withPickers:r=!1,visibleYears:n=20,offset:i,className:a}){return m.jsxs("header",{className:Z(NF,a),children:[m.jsx(nr,{slot:"previous","aria-label":e,className:Z(Uy),children:m.jsx(r5,{size:20,"aria-hidden":"true"})}),r?m.jsxs("div",{className:FF,children:[m.jsx(Gy,{offset:i}),m.jsx(Ry,{visibleYears:n,offset:i})]}):m.jsx(Fx,{offset:i,className:AF}),m.jsx(nr,{slot:"next","aria-label":t,className:Z(Uy),children:m.jsx(Ou,{size:20,"aria-hidden":"true"})})]})}function Gy({format:e="long",size:t="sm",offset:r,className:n}){const i=Wy(r),{items:a,value:l,onChange:o,"aria-label":u}=yx({format:e},i);return m.jsxs($u,{"aria-label":u,selectedKey:l,onSelectionChange:o,className:n,children:[m.jsx(al,{size:t,children:m.jsx(yu,{})}),m.jsx(Bt,{children:m.jsx(Si,{items:a,children:d=>m.jsx(vu,{id:d.id,textValue:d.formatted,children:d.formatted})})})]})}function Ry({visibleYears:e=20,size:t="sm",offset:r,className:n}){const i=Wy(r),{items:a,value:l,onChange:o,"aria-label":u}=vx({visibleYears:e},i);return m.jsxs($u,{"aria-label":u,selectedKey:l,onSelectionChange:o,className:n,children:[m.jsx(al,{size:t,children:m.jsx(yu,{})}),m.jsx(Bt,{children:m.jsx(Si,{items:a,children:d=>m.jsx(vu,{id:d.id,textValue:d.formatted,children:d.formatted})})})]})}function jF({size:e,className:t,...r}){const n=_.useContext(ll),i=e??n.size;return m.jsxs(Px,{...r,className:Z(TF({size:i}),t),children:[m.jsx(p0,{children:a=>m.jsx(m0,{className:IF({size:i}),children:a})}),m.jsx(b0,{children:a=>m.jsx(Zy,{date:a,size:i})})]})}function Zy({date:e,size:t,className:r,...n}){const i=_.useContext(ll),a=t??i.size,l=i.hasActivity?.(e)??!1;return m.jsx(Ax,{...n,date:e,className:Z(MF({size:a}),i.isRange&&KF,i.isRange?LF:zF,r),children:({formattedDate:o})=>m.jsxs(m.Fragment,{children:[o,l?m.jsx("span",{"aria-hidden":"true",className:Z(OF)}):null]})})}function HF({size:e="md",hasActivity:t,className:r,children:n,...i}){const a=_.useMemo(()=>({size:e,isRange:!1,hasActivity:t}),[e,t]);return m.jsx(ll.Provider,{value:a,children:m.jsx(Ex,{...i,className:Z(Hy,r),children:n})})}function UF({size:e="md",hasActivity:t,className:r,children:n,...i}){const a=_.useMemo(()=>({size:e,isRange:!0,hasActivity:t}),[e,t]);return m.jsx(ll.Provider,{value:a,children:m.jsx(Sx,{...i,className:Z(Hy,r),children:n})})}const WF=q(["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"}}),GF="flex min-w-0 flex-1 items-center",RF=["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"],ZF=q("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 YF({size:e="md",icon:t,trailing:r,className:n,style:i,...a}){return m.jsx(J8,{...a,style:i,className:Z("group w-full",n),children:m.jsxs(Wn,{className:WF({size:e}),children:[t?m.jsx("span",{className:ZF({size:e}),"aria-hidden":"true",children:t}):null,m.jsx(Q8,{className:GF,children:l=>m.jsx(t7,{segment:l,className:Z(RF)})}),r]})})}U.Alert=dy,U.Avatar=Za,U.AvatarGroup=S2,U.AvatarLabelGroup=P2,U.AvatarProfilePhoto=k2,U.Badge=v2,U.BadgeGroup=x2,U.BaseAvatar=Vs,U.BaseAvatarGroup=F2,U.BaseAvatarLabelGroup=T2,U.BaseAvatarProfilePhoto=I2,U.BaseCheckbox=f2,U.BaseInput=di,U.BaseRadio=p2,U.BaseRadioGroup=m2,U.BaseToggle=h2,U.Breadcrumb=Ky,U.BreadcrumbLink=Oy,U.BreadcrumbSeparator=Cu,U.Breadcrumbs=My,U.Button=qe,U.Calendar=HF,U.CalendarCell=Zy,U.CalendarGrid=jF,U.CalendarHeader=_F,U.CalendarMonthSelect=Gy,U.CalendarYearSelect=Ry,U.Cell=Cy,U.CheckIcon=_y,U.Checkbox=u2,U.CollectionItem=CN,U.Column=xy,U.ColumnResizer=il,U.ComboBox=JA,U.ComboBoxInput=By,U.ComboBoxItem=eF,U.ComboBoxTags=QA,U.ComboBoxTrigger=ky,U.DateField=YF,U.Dot=jy,U.EmptyState=wy,U.FeaturedIcon=Vy,U.Icon=Or,U.Input=pu,U.InputCardNumber=KB,U.InputCounter=BB,U.InputDropdown=vN,U.InputPhone=xB,U.InputPrice=kB,U.Link=xu,U.ListBox=Si,U.ListBoxItem=gu,U.ListBoxSeparator=TA,U.Loading=C2,U.Menu=Ws,U.MenuHeader=HE,U.MenuItem=Gs,U.MenuSeparator=jE,U.MenuTrigger=Ka,U.Modal=Ei,U.MultiSelect=tF,U.MultiSelectPopover=uF,U.MultiSelectTrigger=Fy,U.NotificationToast=my,U.Popover=Bt,U.RadioGroup=rw,U.RadioGroupItem=c2,U.RangeCalendar=UF,U.Row=gA,U.Select=$u,U.SelectItem=vu,U.SelectPopover=GA,U.SelectTrigger=al,U.SelectValue=yu,U.SelectionIndicator=Qx,U.Tab=M2,U.TabBrowser=j2,U.TabBrowserBar=H2,U.TabBrowserPreview=U2,U.TabList=K2,U.Table=vy,U.TableBody=pA,U.TableContainer=yy,U.TableFooter=mA,U.TableHeader=hA,U.TableLoadMoreItem=Dy,U.Tag=zs,U.Textarea=iy,U.Toast=cy,U.Toggle=b2,U.Tooltip=mn,U.WebsiteCopyInput=uN,U.WebsiteInput=eN,U.buttonIconSizePx=YD,U.cellTruncate=dA,U.getDefaultCountryOptions=J$,Object.defineProperty(U,Symbol.toStringTag,{value:"Module"})}));
|