karin-plugin-kkk 2.45.2-beta.3 → 2.45.2

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.
@@ -0,0 +1,11 @@
1
+ import{r as e,t}from"./rolldown-runtime-hePW80VL.js";var n=t((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.for(`react.view_transition`),m=Symbol.iterator;function h(e){return typeof e!=`object`||!e?null:(e=m&&e[m]||e[`@@iterator`],typeof e==`function`?e:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,v={};function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function b(){}b.prototype=y.prototype;function x(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}var S=x.prototype=new b;S.constructor=x,_(S,y.prototype),S.isPureReactComponent=!0;var C=Array.isArray;function w(){}var T={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function D(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function O(e,t){return D(e.type,t,e.props)}function k(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function A(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var j=/\/+/g;function M(e,t){return typeof e==`object`&&e&&e.key!=null?A(``+e.key):t.toString(36)}function N(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(w,w):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function ee(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,ee(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+M(e,0):a,C(o)?(i=``,c!=null&&(i=c.replace(j,`$&/`)+`/`),ee(o,r,i,``,function(e){return e})):o!=null&&(k(o)&&(o=O(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(j,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(C(e))for(var u=0;u<e.length;u++)a=e[u],s=l+M(a,u),c+=ee(a,r,i,s,o);else if(u=h(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+M(a,u++),c+=ee(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return ee(N(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function te(e,t,n){if(e==null)return e;var r=[],i=0;return ee(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function P(e){if(e._status===-1){var t=e._result,n=t();n.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t,n.status===void 0&&(n.status=`fulfilled`,n.value=t))},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t,n.status===void 0&&(n.status=`rejected`,n.reason=t))}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var ne=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)};function re(e){var t=T.T,n={};n.types=t===null?null:t.types,T.T=n;try{var r=e(),i=T.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(w,ne)}catch(e){ne(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),T.T=t}}function ie(e){var t=T.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else re(ie.bind(null,e))}var F={map:te,forEach:function(e,t,n){te(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return te(e,function(){t++}),t},toArray:function(e){return te(e,function(e){return e})||[]},only:function(e){if(!k(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=F,e.Component=y,e.Fragment=r,e.Profiler=a,e.PureComponent=x,e.StrictMode=i,e.Suspense=l,e.ViewTransition=p,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=T,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return T.H.useMemoCache(e)}},e.addTransitionType=ie,e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=_({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!E.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return D(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)E.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return D(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=k,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:P}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=re,e.unstable_useCacheRefresh=function(){return T.H.useCacheRefresh()},e.use=function(e){return T.H.use(e)},e.useActionState=function(e,t,n){return T.H.useActionState(e,t,n)},e.useCallback=function(e,t){return T.H.useCallback(e,t)},e.useContext=function(e){return T.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return T.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return T.H.useEffect(e,t)},e.useEffectEvent=function(e){return T.H.useEffectEvent(e)},e.useId=function(){return T.H.useId()},e.useImperativeHandle=function(e,t,n){return T.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return T.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return T.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return T.H.useMemo(e,t)},e.useOptimistic=function(e,t){return T.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return T.H.useReducer(e,t,n)},e.useRef=function(e){return T.H.useRef(e)},e.useState=function(e){return T.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return T.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return T.H.useTransition()},e.version=`19.3.1`})),r=t(((e,t)=>{t.exports=n()})),i=t((e=>{var t=r();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function i(){}var a={d:{f:i,r:function(){throw Error(n(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for(`react.portal`),s=Symbol.for(`react.recoverable`),c=Symbol.for(`react.optimistic_key`);function l(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:r==null?null:r===c?c:``+r,children:e,containerInfo:t,implementation:n}}var u=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,e.browser=function(e){return{$$typeof:s,_reason:e}},e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return l(e,t,null,r)},e.flushSync=function(e){var t=u.T,n=a.p;try{if(u.T=null,a.p=2,e)return e()}finally{u.T=t,a.p=n,a.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,a.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&a.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=d(n,t.crossOrigin),i=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?a.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:o}):n===`script`&&a.d.X(e,{crossOrigin:r,integrity:i,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=d(t.as,t.crossOrigin);a.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}}else t??a.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=d(n,t.crossOrigin);a.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=d(t.as,t.crossOrigin);a.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}else a.d.m(e)}},e.requestFormReset=function(e){a.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return u.H.useFormState(e,t,n)},e.useFormStatus=function(){return u.H.useHostTransitionStatus()},e.version=`19.3.1`})),a=t(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=i()})),o=e(r(),1),s=typeof document<`u`?o.useLayoutEffect:()=>{};typeof window<`u`&&window.document&&window.document.createElement;var c=new Map;typeof FinalizationRegistry<`u`&&new FinalizationRegistry(e=>{c.delete(e)});function l(e,t){if(e===t)return e;let n=c.get(e);if(n)return n.forEach(e=>e.current=t),t;let r=c.get(t);return r?(r.forEach(t=>t.current=e),e):t}function u(...e){return(...t)=>{for(let n of e)typeof n==`function`&&n(...t)}}function d(...e){return e.length===1&&e[0]?e[0]:t=>{let n=!1,r=e.map(e=>{let r=f(e,t);return n||=typeof r==`function`,r});if(n)return()=>{r.forEach((t,n)=>{typeof t==`function`?t():f(e[n],null)})}}}function f(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function p(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=p(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function m(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=p(e))&&(r&&(r+=` `),r+=t);return r}function h(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let e in r){let n=t[e],i=r[e];typeof n==`function`&&typeof i==`function`&&e[0]===`o`&&e[1]===`n`&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?t[e]=u(n,i):(e===`className`||e===`UNSAFE_className`)&&typeof n==`string`&&typeof i==`string`?t[e]=m(n,i):e===`id`&&n&&i?t.id=l(n,i):e===`ref`&&n&&i?t.ref=d(n,i):t[e]=i===void 0?n:i}}return t}var g=t((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),_=t(((e,t)=>{t.exports=g()})),v=e(a(),1),y=_();function b(e,t){let{ref:n,render:r,...i}=t,a=(0,o.useRef)(null),c=(0,o.useMemo)(()=>d(n,a),[n,a]);s(()=>{},[e,r]);let l={...i,ref:c};return r?r(l,void 0):(0,y.jsx)(e,{...l})}var x={},S=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let n=x[t];return n||(n=b.bind(null,t),x[t]=n),n}}),C=Array.isArray,w=e=>{if(!e&&e!==0&&e!==0n)return``;if(typeof e==`string`)return e;if(typeof e==`number`)return e===e?``+e:``;if(typeof e==`bigint`)return``+e;let t=``;if(C(e)){let n=e.length;for(let r=0;r<n;r++){let n=e[r];if(!n&&n!==0&&n!==0n)continue;let i=typeof n==`string`?n:w(n);i&&(t&&(t+=` `),t+=i)}return t}if(typeof e==`object`)for(let n in e)e[n]&&(t&&(t+=` `),t+=n);return t},T=/\s+/g,E=Array.isArray,D=e=>typeof e!=`string`||!e?e:e.replace(T,` `).trim(),O=e=>{let t=e.length;if(t===0)return!1;let n=e.charCodeAt(0),r=e.charCodeAt(t-1);if(n===32||r===32||n>=9&&n<=13||n===160||r>=9&&r<=13||r===160)return!0;for(let n=0;n<t;n++){let r=e.charCodeAt(n);if(r>=9&&r<=13||r===160||r===32&&n+1<t&&e.charCodeAt(n+1)===32)return!0}return!1},k=(...e)=>{let t=w(e);if(t)return O(t)?D(t):t},A=e=>e===!1?`false`:e===!0?`true`:e===0?`0`:e,j=e=>{if(!e||typeof e!=`object`)return!0;for(let t in e)return!1;return!0},M=(e,t)=>{if(e===t)return!0;if(!e||!t)return!1;let n=e,r=t,i=Object.keys(n),a=Object.keys(r);if(i.length!==a.length)return!1;for(let e=0;e<i.length;e++){let t=i[e];if(!a.includes(t)||n[t]!==r[t])return!1}return!0},N=(e,t)=>{let n=e;for(let e in t)if(Object.hasOwn(t,e)){let r=t[e];n[e]=e in n?k(n[e],r):r}return e},ee=(e,t)=>{for(let n=0;n<e.length;n++){let r=e[n];E(r)?ee(r,t):r&&t.push(r)}},te=(...e)=>{let t=[];ee(e,t);let n=[];for(let e=0;e<t.length;e++)t[e]&&n.push(t[e]);return n},P=(e,t)=>{let n=e,r=t,i={};for(let e in n){let t=n[e];if(e in r){let n=r[e];i[e]=E(t)||E(n)?te(n,t):typeof t==`object`&&typeof n==`object`&&t&&n?P(t,n):n+` `+t}else i[e]=t}for(let e in r)e in n||(i[e]=r[e]);return i},ne={twMerge:!0,twMergeConfig:{}},re=256,ie=128,F=Symbol(`tv-cache-miss`),I=e=>e?.class!=null&&e.class!==``||e?.className!=null&&e.className!==``,L=e=>{if(e===void 0)return``;if(e===null)return`null`;if(typeof e==`string`)return e;if(typeof e==`boolean`)return e?`true`:`false`;if(typeof e==`number`)return e===0?`0`:String(e);if(typeof e==`bigint`)return String(e);let t=A(e),n=typeof t;if(n===`string`||n===`number`||n===`boolean`||n===`bigint`)return String(t);if(n===`object`)try{return JSON.stringify(t)}catch{return null}return null},ae=(e,t)=>{if(t===void 0)return e;if(t===null)return e+`null`;let n=typeof t;if(n===`string`||n===`number`||n===`boolean`||n===`bigint`)return e+String(t);if(Array.isArray(t))return e+t.join(`\0`);try{return e+JSON.stringify(t)}catch{return e+`?`}},oe=(e,t,n,r)=>{let i=``,a=Object.create(null);for(let r=0;r<e.length;r++){let o=e[r];a[o]=1;let s=t[o];n&&n[o]!==void 0&&(s=n[o]);let c=L(s);if(c===null)return null;i+=o+`:`+c+`;`}let o=[];for(let e in t)e===`class`||e===`className`||a[e]||(a[e]=1,o.push(e));if(n)for(let e in n)e===`class`||e===`className`||a[e]||n[e]===void 0||(a[e]=1,o.push(e));o.length>1&&o.sort();for(let e=0;e<o.length;e++){let r=o[e],a=t[r];n&&n[r]!==void 0&&(a=n[r]);let s=L(a);if(s===null)return null;i+=r+`:`+s+`;`}return i},R=(e,t)=>{let n=``;for(let t=0;t<e.length;t++){let{conditionKeys:r,source:i}=e[t];for(let e=0;e<r.length;e++){let t=r[e];n+=t+`=`,n=ae(n,i[t]),n+=`,`}n+=`c=`,n=ae(n,i.class),n+=`|cn=`,n=ae(n,i.className),n+=`;`}for(let e=0;e<t.length;e++){let{conditionKeys:r,source:i}=t[e];for(let e=0;e<r.length;e++){let t=r[e];n+=t+`=`,n=ae(n,i[t]),n+=`,`}Array.isArray(i.slots)&&(n+=`slots=`+i.slots.join(`,`)+`,`),n+=`c=`,n=ae(n,i.class),n+=`|cn=`,n=ae(n,i.className),n+=`;`}return n},se=(e=re)=>{let t=new Map,n=null;return{get(e){if(t.has(e))return t.get(e);if(n?.has(e)){let r=n.get(e);return t.set(e,r),r}return F},set(r,i){t.size>=e&&(n=t,t=new Map),t.set(r,i)}}},ce=(e=re)=>{let t=se(e);return{get(e){return t.get(e)},set(e,n){t.set(e,n)}}},le=(e=ie)=>{let t=new Map,n=null,r=0;return{get(e,i){let a=t.get(e);if(a){let e=a.get(i);if(e!==void 0||a.has(i))return e}if(n){let a=n.get(e);if(a){let n=a.get(i);if(n!==void 0||a.has(i)){let a=t.get(e);return a||(a=new Map,t.set(e,a)),a.has(i)||r++,a.set(i,n),n}}}return F},set(i,a,o){r>=e&&(n=t,t=new Map,r=0);let s=t.get(i);s||(s=new Map,t.set(i,s)),s.has(a)||r++,s.set(a,o)}}},ue=(e,t)=>{let n=null;return(r,i)=>{if(!I(i))return r;let a=i.class,o=i.className;if(a!=null&&a!==``&&typeof a!=`string`||o!=null&&o!==``&&typeof o!=`string`)return e(t,r,a,o);n??=le();let s=r??``,c=(typeof a==`string`?a:``)+`\0`+(typeof o==`string`?o:``),l=n.get(s,c);if(l!==F)return l;let u=e(t,r,a,o);return n.set(s,c,u),u}};function de(){let e=null,t={},n=!1;return{get cachedTwMerge(){return e},set cachedTwMerge(t){e=t},get cachedTwMergeConfig(){return t},set cachedTwMergeConfig(e){t=e},get didTwMergeConfigChange(){return n},set didTwMergeConfigChange(e){n=e},reset(){e=null,t={},n=!1}}}var fe=de(),pe=e=>{!j(e.twMergeConfig)&&!M(e.twMergeConfig,fe.cachedTwMergeConfig)&&(fe.didTwMergeConfigChange=!0,fe.cachedTwMergeConfig=e.twMergeConfig)},me=(e,t)=>{let n=[];for(let r=0;r<t.length;r++){let i=t[r],a=e[i];n.push({key:i,values:a,isEmpty:j(a)})}return n},he=e=>{if(!Array.isArray(e)||e.length===0)return[];let t=[];for(let n=0;n<e.length;n++){let r=e[n],i=[];for(let e in r)e!==`class`&&e!==`className`&&i.push(e);t.push({conditionKeys:i,source:r})}return t},ge=e=>{if(!Array.isArray(e)||e.length===0)return[];let t=[];for(let n=0;n<e.length;n++){let r=e[n],i=[];for(let e in r)e!==`slots`&&e!==`class`&&e!==`className`&&i.push(e);t.push({conditionKeys:i,source:r})}return t},_e=e=>{let t={};for(let n=0;n<e.length;n++){let r=e[n],i=r.source.slots;if(Array.isArray(i))for(let e=0;e<i.length;e++){let n=i[e];t[n]||(t[n]=[]),t[n].push(r)}}return t},ve=(e,t)=>{let{extend:n=null,slots:r={},variants:i={},compoundVariants:a=[],compoundSlots:o=[],defaultVariants:s={}}=e,c={...ne,...t},l=e.slots!==void 0,u=n?.base?k(n.base,e?.base):e?.base,d=n?.variants&&!j(n.variants)?P(i,n.variants):i,f=n?.defaultVariants&&!j(n.defaultVariants)?{...n.defaultVariants,...s}:s;pe(c);let p=!n?.slots||j(n.slots),m=l?p&&n?.base?k(e?.base,n.base):typeof e?.base==`string`||e?.base==null?e.base:k(e.base):void 0,h=l?{base:m,...r}:{},g=p?h:N({...n?.slots},j(h)?{base:e?.base}:h),_=!n?.compoundVariants||j(n.compoundVariants)?a:te(n?.compoundVariants,a),v=!n?.compoundSlots||j(n.compoundSlots)?o:te(n?.compoundSlots,o),y=Object.keys(d);return{config:c,extend:n,base:u,variants:d,defaultVariants:f,slots:g,compoundVariants:_,compoundSlots:v,compiledVariants:null,compiledCompoundVariants:null,compiledCompoundSlots:null,compiledCompoundSlotsBySlot:null,deferredError:_&&!Array.isArray(_)?TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof _}`):v&&!Array.isArray(v)?TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof v}`):null,mode:l||!p?`slots`:y.length===0?`plain`:`variants`,slotKeys:null,variantKeys:y}},ye=e=>e.compiledVariants===null?(e.compiledVariants=me(e.variants,e.variantKeys),e.compiledCompoundVariants=he(e.compoundVariants),e.compiledCompoundSlots=ge(e.compoundSlots),e.compiledCompoundSlotsBySlot=_e(e.compiledCompoundSlots),e.slotKeys=e.slots&&typeof e.slots==`object`?Object.keys(e.slots):[],e):e,be=[],xe=[],Se=[],Ce=[],we=[],Te=(e,t,n)=>{let r={};for(let t in e)r[t]=e[t];if(t)for(let e in t)t[e]!==void 0&&(r[e]=t[e]);if(n)for(let e in n)n[e]!==void 0&&(r[e]=n[e]);return r},Ee=e=>e==null||e===!1,De=(e,t)=>{if(!Array.isArray(e))return e===t||Ee(e)&&Ee(t);for(let n=0;n<e.length;n++){let r=e[n];if(r===t||Ee(r)&&Ee(t))return!0}return!1},Oe=(e,t,n,r)=>{if(e.isEmpty)return null;let i=r?.[e.key]??n?.[e.key];if(i===null)return null;let a=A(i);if(typeof a==`object`)return null;let o=t?.[e.key],s=a??A(o);return e.values[s||`false`]},ke=(e,t)=>{let{conditionKeys:n,source:r}=e;for(let e=0;e<n.length;e++){let i=n[e];if(!De(r[i],t[i]))return!1}return!0},Ae=(e,t,n)=>{typeof n==`string`?t===`base`&&e.push(n):n&&typeof n==`object`&&n[t]&&e.push(n[t])},je=(e,t,n)=>{let r=xe;r.length=0;for(let i=0;i<e.length;i++){let a=Oe(e[i],t,n);a&&r.push(a)}return r},Me=(e,t,n,r,i)=>{let a=xe;a.length=0;for(let o=0;o<t.length;o++){let s=Oe(t[o],n,r,i),c=e===`base`&&typeof s==`string`?s:s&&s[e];c&&a.push(c)}return a},Ne=(e,t)=>{let n=Se;n.length=0;for(let r=0;r<e.length;r++){let i=e[r];ke(i,t)&&(i.source.class&&n.push(i.source.class),i.source.className&&n.push(i.source.className))}return n},Pe=(e,t,n)=>{let r=Ce;r.length=0;for(let i=0;i<t.length;i++){let a=t[i];ke(a,n)&&(Ae(r,e,a.source.class),Ae(r,e,a.source.className))}return r},Fe=(e,t)=>{let n=we;n.length=0;for(let r=0;r<e.length;r++){let i=e[r];ke(i,t)&&(i.source.class&&n.push(i.source.class),i.source.className&&n.push(i.source.className))}return n},Ie=(e,t)=>{let{base:n,config:r}=e,i=F,a=ue(t,r);return(e=>(i===F&&(i=t(r,n)),a(i,e)))},Le=(e,t)=>{let{base:n,config:r,defaultVariants:i,deferredError:a,variantKeys:o}=e,s=e.compiledCompoundVariants,c=e.compiledVariants,l=be,u=null,d=ue(t,r),f=1,p=e=>{let a=s.length>0?Ne(s,Te(i,e)):void 0;return t(r,n,je(c,i,e),a)};return(t=>{if(a)throw a;(c===null||s===null)&&(ye(e),c=e.compiledVariants,s=e.compiledCompoundVariants,l=e.compiledCompoundSlots??be);let n;if(f>0)f--,n=p(t);else{u??=ce();let e=oe(o,i,t);if(e!==null){let r=s.length>0||l.length>0?R(s,l):``,i=e+`#`+r,a=u.get(i);a===F?(n=p(t),u.set(i,n)):n=a}else n=p(t)}return d(n,t)})},Re=(e,t)=>{let{config:n,defaultVariants:r,deferredError:i,slots:a,variantKeys:o}=e,s=null,c=null,l=null,u=null,d=!1,f=null,p=null,m=1,h=()=>{if(l!==null)return;(e.compiledVariants===null||e.compiledCompoundVariants===null||e.compiledCompoundSlots===null||e.compiledCompoundSlotsBySlot===null||e.slotKeys===null)&&ye(e);let i=e.compiledVariants;s=e.compiledCompoundVariants,c=e.compiledCompoundSlots;let o=e.compiledCompoundSlotsBySlot;l=e.slotKeys,d=s.length>0||c.length>0,f=ue(t,n);let p=Array(l.length);for(let e=0;e<l.length;e++){let c=l[e],u=o[c]??be;p[e]=(e,o)=>{let l=d?Te(r,e,o):void 0,f=l?Pe(c,s,l):void 0,p=l?Fe(u,l):void 0;return t(n,a[c],Me(c,i,r,e,o),f,p)}}u=p},g=e=>{let t=l,n=u,r=f,i={};for(let a=0;a<t.length;a++){let o=n[a],s=o(e);i[t[a]]=t=>{if(t==null)return s;let n=!1;for(let e in t)if(e!==`class`&&e!==`className`&&t[e]!==void 0){n=!0;break}return r(n?o(e,t):s,t)}}return i};return(e=>{if(i)throw i;if(h(),m>0)return m--,g(e);let t=oe(o,r,e);if(t===null)return g(e);let n=d?R(s,c):``,a=t+`#`+n;p??=se();let l=p.get(a);if(l!==F)return l;let u=g(e);return p.set(a,u),u})},ze=(e,t)=>{if(e.mode===`plain`)return Ie(e,t);let n;return(r=>(n??=e.mode===`slots`?Re(e,t):Le(e,t),n(r)))},Be=(e,t)=>{e.variantKeys=t.variantKeys,e.extend=t.extend,e.base=t.base,e.slots=t.slots,e.variants=t.variants,e.defaultVariants=t.defaultVariants,e.compoundSlots=t.compoundSlots,e.compoundVariants=t.compoundVariants},Ve=e=>{let t=(t,n)=>{let r=ve(t,n),i=ze(r,e);return Be(i,r),i};return{tv:t,createTV:e=>(n,r)=>t(n,r?P(e,r):e)}},He=(e,t)=>{let n=e.length,r=t.length,i=Array(n+r);for(let t=0;t<n;t++)i[t]=e[t];for(let e=0;e<r;e++)i[n+e]=t[e];return i},Ue=(e,t)=>({classGroupId:e,validator:t}),We=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Ge=`-`,Ke=[],qe=`arbitrary..`,Je=e=>{let t=Ze(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e[0]===`[`&&e[e.length-1]===`]`)return Xe(e);let n=e.split(Ge);return Ye(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?He(i,t):t:i||Ke}return n[e]||Ke}}},Ye=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=Ye(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(Ge):e.slice(t).join(Ge),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},Xe=e=>{let t=e.slice(1,-1),n=t.indexOf(`:`);if(n===-1)return;let r=t.slice(0,n);return r?qe+r:void 0},Ze=e=>{let{theme:t,classGroups:n}=e;return Qe(n,t)},Qe=(e,t)=>{let n=We();for(let r in e){let i=e[r];$e(i,n,r,t)}return n},$e=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];et(i,t,n,r)}},et=(e,t,n,r)=>{if(typeof e==`string`){tt(e,t,n);return}if(typeof e==`function`){nt(e,t,n,r);return}rt(e,t,n,r)},tt=(e,t,n)=>{let r=e===``?t:it(t,e);r.classGroupId=n},nt=(e,t,n,r)=>{if(at(e)){$e(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Ue(n,e))},rt=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];$e(o,it(t,a),n,r)}},it=(e,t)=>{let n=e,r=t.split(Ge),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=We(),n.nextPart.set(t,i)),n=i}return n},at=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,ot=`!`,st=58,ct=47,lt=91,ut=93,dt=40,ft=41,pt=33,mt=(e,t,n,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:void 0}),ht=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e.charCodeAt(s);if(n===0&&r===0){if(o===st){t.push(e.slice(i,s)),i=s+1;continue}if(o===ct){a=s;continue}}o===lt?n++:o===ut?n--:o===dt?r++:o===ft&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1,u=s.length-1;s.charCodeAt(u)===pt?(c=s.slice(0,-1),l=!0):s.charCodeAt(0)===pt&&(c=s.slice(1),l=!0);let d=a&&a>i?a-i:void 0;return mt(t,l,c,d)},gt=e=>{let t=new Set(e.orderSensitiveModifiers);return e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);if(o||s){if(r.length>0){r.sort();for(let e=0;e<r.length;e++)n.push(r[e]);r=[]}n.push(a)}else r.push(a)}if(r.length>0){r.sort();for(let e=0;e<r.length;e++)n.push(r[e])}return n}},_t={isExternal:!0,classId:-1,conflictIds:[]},vt=4096,yt=16384,bt=e=>{let t=gt(e),n=xt(e),{getClassGroupId:r,getConflictingClassGroupIds:i}=Je(e),a=Object.create(null),o=Object.create(null),s=0,c=new Int32Array(256),l=0,u=new Uint8Array(64),d=!1,f=e=>{let t=[],n=e.length,r=-1;d=!1;for(let i=0;i<n;i++){let n=e.charCodeAt(i);n===32?r!==-1&&(t.push(e.slice(r,i)),r=-1):n>=9&&n<=13?(d=!0,r!==-1&&(t.push(e.slice(r,i)),r=-1)):r===-1&&(r=i)}return r!==-1&&t.push(e.slice(r)),t},p=new Map,m=0,h=e=>{let t=p.get(e);if(t===void 0&&(t=m++,p.set(e,t),t>=c.length)){let e=new Int32Array(c.length*2);e.set(c),c=e}return t},g=e=>{let{isExternal:a,modifiers:o,hasImportantModifier:s,baseClassName:c,maybePostfixModifierPosition:l}=ht(e);if(a)return _t;let u=!!l,d;if(u){let e=c.substring(0,l);d=r(e);let t=d&&n[d]?r(c):void 0;t&&t!==d&&(d=t,u=!1)}else d=r(c);if(!d){if(!u||(d=r(c),!d))return _t;u=!1}let f=o.length===0?``:o.length===1?o[0]:t(o).join(`:`),p=s?f+ot:f,m=i(d,u),g=[];for(let e=0;e<m.length;e++)g.push(h(p+m[e]));return{isExternal:!1,classId:h(p+d),conflictIds:g}},_=e=>{let t=a[e];return t===void 0?(t=o[e],t===void 0&&(t=g(e)),a[e]=t,++s>vt&&(s=0,o=a,a=Object.create(null)),t):t};return{parseClassName:ht,sortModifiers:t,postfixLookupClassGroupIds:n,getClassGroupId:r,getConflictingClassGroupIds:i,getClassDescriptor:_,mergeClassList:e=>{let t=f(e),n=t.length;if(n===1)return t[0];m>yt&&(p.clear(),m=0,a=Object.create(null),o=Object.create(null),s=0),l=l+1|0,l===0&&(l=1);let r=l;if(n>u.length){let e=u.length;for(;e<n;)e*=2;u=new Uint8Array(e)}let i=!1,h=0;for(let e=n-1;e>=0;--e){let n=t[e];h+=n.length;let a=_(n);if(a.isExternal){u[e]=1;continue}let o=a.classId;if(c[o]===r){u[e]=0,i=!0;continue}c[o]=r;let s=a.conflictIds;for(let e=0;e<s.length;e++)c[s[e]]=r;u[e]=1}if(!i&&!d&&e.length===h+n-1)return e;let g=``;for(let e=0;e<n;e++)u[e]===1&&(g&&(g+=` `),g+=t[e]);return g}}},xt=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},St=500,Ct=e=>{let t,n,r=Object.create(null),i=Object.create(null),a=0,o=r=>(t=bt(e()),n=t.mergeClassList,c.mergeString=s,s(r)),s=e=>{let t=r[e];return t===void 0?(t=i[e],t===void 0&&(t=n(e)),r[e]=t,++a>St&&(a=0,i=r,r=Object.create(null)),t):t},c=(...e)=>c.mergeString(w(e));return c.mergeString=o,c},wt=[],Tt=e=>{let t=t=>t[e]||wt;return t.isThemeGetter=!0,t},Et=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Dt=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ot=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,kt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,At=/\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$/,jt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Mt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Nt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Pt=Number,Ft=Number.isNaN,It=Number.isInteger,Lt=e=>Ot.test(e),z=e=>!!e&&!Ft(Pt(e)),Rt=e=>!!e&&It(Pt(e)),zt=e=>e.endsWith(`%`)&&z(e.slice(0,-1)),Bt=e=>kt.test(e),Vt=()=>!0,Ht=e=>At.test(e)&&!jt.test(e),Ut=()=>!1,Wt=e=>Mt.test(e),Gt=e=>Nt.test(e),Kt=e=>!B(e)&&!V(e),qt=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)),Jt=e=>un(e,mn,Ut),B=e=>Et.test(e),Yt=e=>un(e,hn,Ht),Xt=e=>un(e,gn,z),Zt=e=>un(e,vn,Vt),Qt=e=>un(e,_n,Ut),$t=e=>un(e,fn,Ut),en=e=>un(e,pn,Gt),tn=e=>un(e,yn,Wt),V=e=>Dt.test(e),nn=e=>dn(e,hn),rn=e=>dn(e,_n),an=e=>dn(e,fn),on=e=>dn(e,mn),sn=e=>dn(e,pn),cn=e=>dn(e,yn,!0),ln=e=>dn(e,vn,!0),un=(e,t,n)=>{let r=Et.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},dn=(e,t,n=!1)=>{let r=Dt.exec(e);return r?r[1]?t(r[1]):n:!1},fn=e=>e===`position`||e===`percentage`,pn=e=>e===`image`||e===`url`,mn=e=>e===`length`||e===`size`||e===`bg-size`,hn=e=>e===`length`,gn=e=>e===`number`,_n=e=>e===`family-name`,vn=e=>e===`number`||e===`weight`,yn=e=>e===`shadow`,bn=()=>{let e=Tt(`color`),t=Tt(`font`),n=Tt(`text`),r=Tt(`font-weight`),i=Tt(`tracking`),a=Tt(`leading`),o=Tt(`breakpoint`),s=Tt(`container`),c=Tt(`spacing`),l=Tt(`radius`),u=Tt(`shadow`),d=Tt(`inset-shadow`),f=Tt(`text-shadow`),p=Tt(`drop-shadow`),m=Tt(`blur`),h=Tt(`perspective`),g=Tt(`aspect`),_=Tt(`ease`),v=Tt(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),V,B],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[V,B,c],T=()=>[Lt,`full`,`auto`,...w()],E=()=>[Rt,`none`,`subgrid`,V,B],D=()=>[`auto`,{span:[`full`,Rt,V,B]},Rt,V,B],O=()=>[Rt,`auto`,V,B],k=()=>[`auto`,`min`,`max`,`fr`,V,B],A=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],j=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],M=()=>[`auto`,...w()],N=()=>[Lt,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],ee=()=>[Lt,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],te=()=>[Lt,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],P=()=>[e,V,B],ne=()=>[...b(),an,$t,{position:[V,B]}],re=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],ie=()=>[`auto`,`cover`,`contain`,on,Jt,{size:[V,B]}],F=()=>[zt,nn,Yt],I=()=>[``,`none`,`full`,l,V,B],L=()=>[``,z,nn,Yt],ae=()=>[`solid`,`dashed`,`dotted`,`double`],oe=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],R=()=>[z,zt,an,$t],se=()=>[``,`none`,m,V,B],ce=()=>[`none`,z,V,B],le=()=>[`none`,z,V,B],ue=()=>[z,V,B],de=()=>[Lt,`full`,...w()];return{theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[Bt],breakpoint:[Bt],color:[Vt],container:[Bt],"drop-shadow":[Bt],ease:[`in`,`out`,`in-out`],font:[Kt],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[Bt],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[Bt],shadow:[Bt],spacing:[`px`,z],text:[Bt],"text-shadow":[Bt],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,Lt,B,V,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,V,B]}],"container-named":[qt],columns:[{columns:[z,B,V,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"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:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[Rt,`auto`,V,B]}],basis:[{basis:[Lt,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[z,Lt,`auto`,`initial`,`none`,B]}],grow:[{grow:[``,z,V,B]}],shrink:[{shrink:[``,z,V,B]}],order:[{order:[Rt,`first`,`last`,`none`,V,B]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":k()}],"auto-rows":[{"auto-rows":k()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...A(),`normal`]}],"justify-items":[{"justify-items":[...j(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...j()]}],"align-content":[{content:[`normal`,...A()]}],"align-items":[{items:[...j(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...j(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":A()}],"place-items":[{"place-items":[...j(),`baseline`]}],"place-self":[{"place-self":[`auto`,...j()]}],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:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mbs:[{mbs:M()}],mbe:[{mbe:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:N()}],"inline-size":[{inline:[`auto`,...ee()]}],"min-inline-size":[{"min-inline":[`auto`,...ee()]}],"max-inline-size":[{"max-inline":[`none`,...ee()]}],"block-size":[{block:[`auto`,...te()]}],"min-block-size":[{"min-block":[`auto`,...te()]}],"max-block-size":[{"max-block":[`none`,...te()]}],w:[{w:[s,`screen`,...N()]}],"min-w":[{"min-w":[s,`screen`,`none`,...N()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...N()]}],h:[{h:[`screen`,`lh`,...N()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...N()]}],"max-h":[{"max-h":[`screen`,`lh`,...N()]}],"font-size":[{text:[`base`,n,nn,Yt]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,ln,Zt]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,zt,B]}],"font-family":[{font:[rn,Qt,t]}],"font-features":[{"font-features":[B]}],"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,V,B]}],"line-clamp":[{"line-clamp":[z,`none`,V,Xt]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,V,B]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,V,B]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:P()}],"text-color":[{text:P()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...ae(),`wavy`]}],"text-decoration-thickness":[{decoration:[z,`from-font`,`auto`,V,Yt]}],"text-decoration-color":[{decoration:P()}],"underline-offset":[{"underline-offset":[z,`auto`,V,B]}],"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:[Rt,V,B]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,V,B]}],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`,V,B]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:ne()}],"bg-repeat":[{bg:re()}],"bg-size":[{bg:ie()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},Rt,V,B],radial:[``,V,B],conic:[Rt,V,B]},sn,en]}],"bg-color":[{bg:P()}],"gradient-from-pos":[{from:F()}],"gradient-via-pos":[{via:F()}],"gradient-to-pos":[{to:F()}],"gradient-from":[{from:P()}],"gradient-via":[{via:P()}],"gradient-to":[{to:P()}],rounded:[{rounded:I()}],"rounded-s":[{"rounded-s":I()}],"rounded-e":[{"rounded-e":I()}],"rounded-t":[{"rounded-t":I()}],"rounded-r":[{"rounded-r":I()}],"rounded-b":[{"rounded-b":I()}],"rounded-l":[{"rounded-l":I()}],"rounded-ss":[{"rounded-ss":I()}],"rounded-se":[{"rounded-se":I()}],"rounded-ee":[{"rounded-ee":I()}],"rounded-es":[{"rounded-es":I()}],"rounded-tl":[{"rounded-tl":I()}],"rounded-tr":[{"rounded-tr":I()}],"rounded-br":[{"rounded-br":I()}],"rounded-bl":[{"rounded-bl":I()}],"border-w":[{border:L()}],"border-w-x":[{"border-x":L()}],"border-w-y":[{"border-y":L()}],"border-w-s":[{"border-s":L()}],"border-w-e":[{"border-e":L()}],"border-w-bs":[{"border-bs":L()}],"border-w-be":[{"border-be":L()}],"border-w-t":[{"border-t":L()}],"border-w-r":[{"border-r":L()}],"border-w-b":[{"border-b":L()}],"border-w-l":[{"border-l":L()}],"divide-x":[{"divide-x":L()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":L()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...ae(),`hidden`,`none`]}],"divide-style":[{divide:[...ae(),`hidden`,`none`]}],"border-color":[{border:P()}],"border-color-x":[{"border-x":P()}],"border-color-y":[{"border-y":P()}],"border-color-s":[{"border-s":P()}],"border-color-e":[{"border-e":P()}],"border-color-bs":[{"border-bs":P()}],"border-color-be":[{"border-be":P()}],"border-color-t":[{"border-t":P()}],"border-color-r":[{"border-r":P()}],"border-color-b":[{"border-b":P()}],"border-color-l":[{"border-l":P()}],"divide-color":[{divide:P()}],"outline-style":[{outline:[...ae(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[z,V,B]}],"outline-w":[{outline:[``,z,nn,Yt]}],"outline-color":[{outline:P()}],shadow:[{shadow:[``,`none`,u,cn,tn]}],"shadow-color":[{shadow:P()}],"inset-shadow":[{"inset-shadow":[`none`,d,cn,tn]}],"inset-shadow-color":[{"inset-shadow":P()}],"ring-w":[{ring:L()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:P()}],"ring-offset-w":[{"ring-offset":[z,Yt]}],"ring-offset-color":[{"ring-offset":P()}],"inset-ring-w":[{"inset-ring":L()}],"inset-ring-color":[{"inset-ring":P()}],"text-shadow":[{"text-shadow":[`none`,f,cn,tn]}],"text-shadow-color":[{"text-shadow":P()}],opacity:[{opacity:[z,V,B]}],"mix-blend":[{"mix-blend":[...oe(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":oe()}],"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":[z]}],"mask-image-linear-from-pos":[{"mask-linear-from":R()}],"mask-image-linear-to-pos":[{"mask-linear-to":R()}],"mask-image-linear-from-color":[{"mask-linear-from":P()}],"mask-image-linear-to-color":[{"mask-linear-to":P()}],"mask-image-t-from-pos":[{"mask-t-from":R()}],"mask-image-t-to-pos":[{"mask-t-to":R()}],"mask-image-t-from-color":[{"mask-t-from":P()}],"mask-image-t-to-color":[{"mask-t-to":P()}],"mask-image-r-from-pos":[{"mask-r-from":R()}],"mask-image-r-to-pos":[{"mask-r-to":R()}],"mask-image-r-from-color":[{"mask-r-from":P()}],"mask-image-r-to-color":[{"mask-r-to":P()}],"mask-image-b-from-pos":[{"mask-b-from":R()}],"mask-image-b-to-pos":[{"mask-b-to":R()}],"mask-image-b-from-color":[{"mask-b-from":P()}],"mask-image-b-to-color":[{"mask-b-to":P()}],"mask-image-l-from-pos":[{"mask-l-from":R()}],"mask-image-l-to-pos":[{"mask-l-to":R()}],"mask-image-l-from-color":[{"mask-l-from":P()}],"mask-image-l-to-color":[{"mask-l-to":P()}],"mask-image-x-from-pos":[{"mask-x-from":R()}],"mask-image-x-to-pos":[{"mask-x-to":R()}],"mask-image-x-from-color":[{"mask-x-from":P()}],"mask-image-x-to-color":[{"mask-x-to":P()}],"mask-image-y-from-pos":[{"mask-y-from":R()}],"mask-image-y-to-pos":[{"mask-y-to":R()}],"mask-image-y-from-color":[{"mask-y-from":P()}],"mask-image-y-to-color":[{"mask-y-to":P()}],"mask-image-radial":[{"mask-radial":[V,B]}],"mask-image-radial-from-pos":[{"mask-radial-from":R()}],"mask-image-radial-to-pos":[{"mask-radial-to":R()}],"mask-image-radial-from-color":[{"mask-radial-from":P()}],"mask-image-radial-to-color":[{"mask-radial-to":P()}],"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":b()}],"mask-image-conic-pos":[{"mask-conic":[z]}],"mask-image-conic-from-pos":[{"mask-conic-from":R()}],"mask-image-conic-to-pos":[{"mask-conic-to":R()}],"mask-image-conic-from-color":[{"mask-conic-from":P()}],"mask-image-conic-to-color":[{"mask-conic-to":P()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:ne()}],"mask-repeat":[{mask:re()}],"mask-size":[{mask:ie()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,V,B]}],filter:[{filter:[``,`none`,V,B]}],blur:[{blur:se()}],brightness:[{brightness:[z,V,B]}],contrast:[{contrast:[z,V,B]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,cn,tn]}],"drop-shadow-color":[{"drop-shadow":P()}],grayscale:[{grayscale:[``,z,V,B]}],"hue-rotate":[{"hue-rotate":[z,V,B]}],invert:[{invert:[``,z,V,B]}],saturate:[{saturate:[z,V,B]}],sepia:[{sepia:[``,z,V,B]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,V,B]}],"backdrop-blur":[{"backdrop-blur":se()}],"backdrop-brightness":[{"backdrop-brightness":[z,V,B]}],"backdrop-contrast":[{"backdrop-contrast":[z,V,B]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,z,V,B]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[z,V,B]}],"backdrop-invert":[{"backdrop-invert":[``,z,V,B]}],"backdrop-opacity":[{"backdrop-opacity":[z,V,B]}],"backdrop-saturate":[{"backdrop-saturate":[z,V,B]}],"backdrop-sepia":[{"backdrop-sepia":[``,z,V,B]}],"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`,V,B]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[z,`initial`,V,B]}],ease:[{ease:[`linear`,`initial`,_,V,B]}],delay:[{delay:[z,V,B]}],animate:[{animate:[`none`,v,V,B]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,V,B]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:ce()}],"rotate-x":[{"rotate-x":ce()}],"rotate-y":[{"rotate-y":ce()}],"rotate-z":[{"rotate-z":ce()}],scale:[{scale:le()}],"scale-x":[{"scale-x":le()}],"scale-y":[{"scale-y":le()}],"scale-z":[{"scale-z":le()}],"scale-3d":[`scale-3d`],skew:[{skew:ue()}],"skew-x":[{"skew-x":ue()}],"skew-y":[{"skew-y":ue()}],transform:[{transform:[V,B,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:de()}],"translate-x":[{"translate-x":de()}],"translate-y":[{"translate-y":de()}],"translate-z":[{"translate-z":de()}],"translate-none":[`translate-none`],zoom:[{zoom:[Rt,V,B]}],accent:[{accent:P()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:P()}],"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`,V,B]}],"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":P()}],"scrollbar-track-color":[{"scrollbar-track":P()}],"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`,V,B]}],fill:[{fill:[`none`,...P()]}],"stroke-w":[{stroke:[z,nn,Yt,Xt]}],stroke:[{stroke:[`none`,...P()]}],"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`]}},xn=(e,{extend:t={},override:n={}})=>(Cn(e.theme,n.theme),Cn(e.classGroups,n.classGroups),Cn(e.conflictingClassGroups,n.conflictingClassGroups),Cn(e.conflictingClassGroupModifiers,n.conflictingClassGroupModifiers),Sn(e,`postfixLookupClassGroups`,n.postfixLookupClassGroups),Sn(e,`orderSensitiveModifiers`,n.orderSensitiveModifiers),wn(e.theme,t.theme),wn(e.classGroups,t.classGroups),wn(e.conflictingClassGroups,t.conflictingClassGroups),wn(e.conflictingClassGroupModifiers,t.conflictingClassGroupModifiers),Tn(e,t,`postfixLookupClassGroups`),Tn(e,t,`orderSensitiveModifiers`),e),Sn=(e,t,n)=>{n!==void 0&&(e[t]=n)},Cn=(e,t)=>{if(t)for(let n in t)Sn(e,n,t[n])},wn=(e,t)=>{if(t)for(let n in t)Tn(e,t,n)},Tn=(e,t,n)=>{let r=t[n];r!==void 0&&(e[n]=e[n]?e[n].concat(r):r)},En=e=>Ct(e?typeof e==`function`?()=>e(bn()):()=>xn(bn(),e):bn),Dn=e=>{if(j(e))return;let t=e,n={...t.extend??{}};for(let e of[`theme`,`classGroups`,`conflictingClassGroups`,`conflictingClassGroupModifiers`,`postfixLookupClassGroups`,`orderSensitiveModifiers`,`cacheSize`,`prefix`,`separator`,`experimentalParseClassName`])t[e]!==void 0&&n[e]===void 0&&(n[e]=t[e]);let r={};if(Object.keys(n).length>0&&(r.extend=n),t.override!=null&&!j(t.override)&&(r.override=t.override),r.extend||r.override)return r},On=e=>{let t=En(Dn(e));return e=>t.mergeString(e)},kn,An=()=>(kn||=En(),kn),jn=()=>((!fe.cachedTwMerge||fe.didTwMergeConfigChange)&&(fe.didTwMergeConfigChange=!1,fe.cachedTwMerge=On(fe.cachedTwMergeConfig)),fe.cachedTwMerge),Mn=e=>{let t=e?.twMergeConfig;t&&!j(t)&&(M(t,fe.cachedTwMergeConfig)||(fe.cachedTwMergeConfig=t,fe.didTwMergeConfigChange=!0))},Nn=e=>w(e),Pn=(()=>{let e=Error();return!(`line`in e)&&!(`lineNumber`in e)})(),Fn=64,In=500,Ln=new Map,Rn=new Map,zn=0,Bn=()=>{Ln=new Map,Rn=new Map,zn=0},Vn=e=>{if(e)return e.indexOf(` `)===-1?e:An().mergeString(e)||void 0},Hn=(e,t,n)=>{let r=Ln.get(e);r===void 0&&(r=[],Ln.set(e,r)),r.length>=Fn&&r.shift(),r.push({rest:t,result:n}),++zn>In&&(zn=0,Rn=Ln,Ln=new Map)},Un=(e,t,n,r,i)=>{let a=Ln.get(e);if(a===void 0&&(a=Rn.get(e)),a!==void 0)for(let e=0;e<a.length;e++){let o=a[e],s=o.rest;if(s.length!==n-1)continue;let c=0,l=!0;for(let e=t+1;e<r;e++){let t=i(e);if(t&&t!==s[c++]){l=!1;break}}if(l)return o.result}},Wn=(e,t)=>{let n=``,r=-1,i=0,a=!0;for(let o=0;o<e;o++){let e=t(o);if(e){if(typeof e!=`string`){a=!1;break}r===-1&&(n=e,r=o),i++}}if(!a){let n=Array(e);for(let r=0;r<e;r++)n[r]=t(r);return Vn(Nn(n))}if(i===0)return;if(i===1)return Vn(n);let o=Un(n,r,i,e,t);if(o!==void 0)return o||void 0;let s=n,c=[];for(let n=r+1;n<e;n++){let e=t(n);e&&(s+=` `+e,c.push(e))}let l=Vn(s)??``;return Hn(n,c,l),l||void 0},Gn=fe.reset.bind(fe);fe.reset=()=>{kn=void 0,Bn(),Gn()};var Kn=(e,t)=>{let n=Nn(e);return!n||!(t?.twMerge??!0)?n||void 0:n.indexOf(` `)===-1?n:(Mn(t),(t?.twMergeConfig&&!j(t.twMergeConfig)?jn():An().mergeString)(n)||void 0)},qn=(e,...t)=>Kn(t,e),Jn=function(){let e=arguments.length;if(e===0)return;let t=arguments[0];if(e===1)return Vn(typeof t==`string`?t:Nn([t]));if(Pn)return Wn(e,e=>arguments[e]);let n=Array(e);for(let t=0;t<e;t++)n[t]=arguments[t];return Vn(Nn(n))},Yn=Ve(qn),Xn=Yn.tv;Yn.createTV;var Zn=k;Xn({defaultVariants:{fullWidth:!1,orientation:`horizontal`},slots:{base:`button-group`,separator:`button-group__separator`},variants:{fullWidth:{false:{},true:{base:`button-group--full-width`}},orientation:{horizontal:{base:`button-group--horizontal`},vertical:{base:`button-group--vertical`}}}});var Qn=Xn({base:`button`,defaultVariants:{fullWidth:!1,isIconOnly:!1,size:`md`,variant:`primary`},variants:{fullWidth:{false:``,true:`button--full-width`},isIconOnly:{true:`button--icon-only`},size:{lg:`button--lg`,md:`button--md`,sm:`button--sm`},variant:{danger:`button--danger`,"danger-soft":`button--danger-soft`,ghost:`button--ghost`,outline:`button--outline`,primary:`button--primary`,secondary:`button--secondary`,tertiary:`button--tertiary`}}}),$n=Xn({base:`close-button`,defaultVariants:{variant:`default`},variants:{variant:{default:`close-button--default`}}});Xn({defaultVariants:{fullWidth:!1},slots:{base:`combo-box`,inputGroup:`combo-box__input-group`,popover:`combo-box__popover`,trigger:`combo-box__trigger`,value:`combo-box__value`},variants:{fullWidth:{false:{},true:{base:`combo-box--full-width`,inputGroup:`combo-box__input-group--full-width`}}}});var er=Xn({base:`description`}),tr=Xn({defaultVariants:{placement:`bottom`,variant:`opaque`},slots:{backdrop:`drawer__backdrop`,body:`drawer__body`,closeTrigger:`drawer__close-trigger`,content:`drawer__content`,dialog:`drawer__dialog`,footer:`drawer__footer`,handle:`drawer__handle`,header:`drawer__header`,heading:`drawer__heading`,trigger:`drawer__trigger`},variants:{placement:{bottom:{content:`drawer__content--bottom`,dialog:`drawer__dialog--bottom`},left:{content:`drawer__content--left`,dialog:`drawer__dialog--left`},right:{content:`drawer__content--right`,dialog:`drawer__dialog--right`},top:{content:`drawer__content--top`,dialog:`drawer__dialog--top`}},variant:{blur:{backdrop:`drawer__backdrop--blur`},opaque:{backdrop:`drawer__backdrop--opaque`},transparent:{backdrop:`drawer__backdrop--transparent`}}}}),nr=Xn({base:`input`,defaultVariants:{fullWidth:!1,variant:`primary`},variants:{fullWidth:{false:``,true:`input--full-width`},variant:{primary:`input--primary`,secondary:`input--secondary`}}}),rr=Xn({base:`label`,defaultVariants:{isDisabled:!1,isInvalid:!1,isRequired:!1},variants:{isDisabled:{true:`label--disabled`},isInvalid:{true:`label--invalid`},isRequired:{true:`label--required`}}}),ir=Xn({defaultVariants:{variant:`default`},slots:{indicator:`list-box-item__indicator`,item:`list-box-item`},variants:{variant:{danger:{item:`list-box-item--danger`},default:{item:`list-box-item--default`}}}}),ar=Xn({base:`list-box-section`}),or=Xn({base:`list-box`,defaultVariants:{variant:`default`},variants:{variant:{danger:`list-box--danger`,default:`list-box--default`}}}),sr=Xn({defaultVariants:{hideScrollBar:!1,orientation:`vertical`,variant:`fade`},slots:{base:`scroll-shadow`},variants:{hideScrollBar:{false:{},true:{base:`scroll-shadow--hide-scrollbar`}},orientation:{horizontal:{base:`scroll-shadow--horizontal`},vertical:{base:`scroll-shadow--vertical`}},variant:{fade:{base:`scroll-shadow--fade`}}}}),cr=Xn({defaultVariants:{fullWidth:!1,variant:`primary`},slots:{base:`select`,clearButton:`select__clear-button`,indicator:`select__indicator`,popover:`select__popover`,trigger:`select__trigger`,value:`select__value`},variants:{fullWidth:{false:{},true:{base:`select--full-width`,trigger:`select__trigger--full-width`}},variant:{primary:{base:`select--primary`},secondary:{base:`select--secondary`}}}}),lr=Xn({base:`surface`,defaultVariants:{variant:`default`},variants:{variant:{default:`surface--default`,secondary:`surface--secondary`,tertiary:`surface--tertiary`,transparent:`surface--transparent`}}}),ur=Xn({defaultVariants:{align:`center`,variant:`primary`},slots:{base:`tabs`,scrollNext:`tabs__list-container__scroll-next`,scrollPrev:`tabs__list-container__scroll-prev`,scroller:`tabs__list-container__scroller`,separator:`tabs__separator`,tab:`tabs__tab`,tabIndicator:`tabs__indicator`,tabList:`tabs__list`,tabListContainer:`tabs__list-container`,tabPanel:`tabs__panel`},variants:{align:{center:{},end:{base:`tabs--align-end`},start:{base:`tabs--align-start`}},variant:{primary:{},secondary:{base:`tabs--secondary`}}}}),dr=Xn({base:`textfield`,defaultVariants:{fullWidth:!1},variants:{fullWidth:{false:``,true:`textfield--full-width`}}});function fr(...e){return(...t)=>{for(let n of e)typeof n==`function`&&n(...t)}}var H=typeof document<`u`?o.useLayoutEffect:()=>{},pr={prefix:String(Math.round(Math.random()*1e10)),current:0},mr=o.createContext(pr),hr=o.createContext(!1);typeof window<`u`&&window.document&&window.document.createElement;var gr=new WeakMap;function _r(e=!1){let t=(0,o.useContext)(mr),n=(0,o.useRef)(null);if(n.current===null&&!e){let e=o.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;if(e){let n=gr.get(e);n==null?gr.set(e,{id:t.current,state:e.memoizedState}):e.memoizedState!==n.state&&(t.current=n.id,gr.delete(e))}n.current=++t.current}return n.current}function vr(e){let t=(0,o.useContext)(mr),n=_r(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function yr(e){let t=o.useId(),[n]=(0,o.useState)(wr()),r=n?`react-aria`:`react-aria${pr.prefix}`;return e||`${r}-${t}`}var br=typeof o.useId==`function`?yr:vr;function xr(){return!1}function Sr(){return!0}function Cr(e){return()=>{}}function wr(){return typeof o.useSyncExternalStore==`function`?o.useSyncExternalStore(Cr,xr,Sr):(0,o.useContext)(hr)}function Tr(e){let[t,n]=(0,o.useState)(e),r=(0,o.useRef)(t),i=(0,o.useRef)(null),a=(0,o.useRef)(()=>{if(!i.current)return;let e=i.current.next();if(e.done){i.current=null;return}r.current===e.value?a.current():n(e.value)});return H(()=>{r.current=t,i.current&&a.current()}),[t,(0,o.useCallback)(e=>{i.current=e(r.current),a.current()},[a])]}var Er=!!(typeof window<`u`&&window.document&&window.document.createElement),Dr=new Map,Or;typeof FinalizationRegistry<`u`&&(Or=new FinalizationRegistry(e=>{Dr.delete(e)}));var kr=new WeakMap;function Ar(e){let[t,n]=(0,o.useState)(e),r=(0,o.useRef)(null),i=br(t),a=(0,o.useRef)(null),s=kr.get(a);if(Or&&s!==i&&(s!=null&&Or.unregister(a),Or.register(a,i,a),kr.set(a,i)),Er){let e=Dr.get(i);e&&!e.includes(r)?e.push(r):Dr.set(i,[r])}return H(()=>{let e=i;return()=>{Or&&(Or.unregister(a),kr.delete(a)),Dr.delete(e)}},[i]),(0,o.useEffect)(()=>{let e=r.current;return e&&n(e),()=>{e&&(r.current=null)}}),i}function jr(e,t){if(e===t)return e;let n=Dr.get(e);if(n)return n.forEach(e=>e.current=t),t;let r=Dr.get(t);return r?(r.forEach(t=>t.current=e),e):t}function Mr(e=[]){let t=Ar(),[n,r]=Tr(t),i=(0,o.useCallback)(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return H(i,[t,i,...e]),n}function Nr(...e){return e.length===1&&e[0]?e[0]:t=>{let n=!1,r=e.map(e=>{let r=Pr(e,t);return n||=typeof r==`function`,r});if(n)return()=>{r.forEach((t,n)=>{typeof t==`function`?t():Pr(e[n],null)})}}}function Pr(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function U(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let e in r){let n=t[e],i=r[e];typeof n==`function`&&typeof i==`function`&&e[0]===`o`&&e[1]===`n`&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?t[e]=fr(n,i):(e===`className`||e===`UNSAFE_className`)&&typeof n==`string`&&typeof i==`string`?t[e]=m(n,i):e===`id`&&n&&i?t.id=jr(n,i):e===`ref`&&n&&i?t.ref=Nr(n,i):t[e]=i===void 0?n:i}}return t}function Fr(e){let t=(0,o.useRef)(null),n=(0,o.useRef)(void 0),r=(0,o.useCallback)(t=>{if(typeof e==`function`){let n=e,r=n(t);return()=>{typeof r==`function`?r():n(null)}}if(e)return e.current=t,()=>{e.current=null}},[e]);return(0,o.useMemo)(()=>({get current(){return t.current},set current(e){t.current=e,n.current&&=(n.current(),void 0),e!=null&&(n.current=r(e))}}),[r])}var Ir=Symbol(`default`);function Lr({values:e,children:t}){for(let[n,r]of e)t=o.createElement(n.Provider,{value:r},t);return t}function W(e){let{className:t,style:n,children:r,defaultClassName:i,defaultChildren:a,defaultStyle:s,values:c,render:l}=e;return(0,o.useMemo)(()=>{let e,o,u;return e=typeof t==`function`?t({...c,defaultClassName:i}):t,o=typeof n==`function`?n({...c,defaultStyle:s||{}}):n,u=typeof r==`function`?r({...c,defaultChildren:a}):r??a,{className:e??i,style:o||s?{...s,...o}:void 0,children:u??a,"data-rac":``,render:l?e=>l(e,c):void 0}},[t,n,r,i,a,s,c,l])}function Rr(e,t){return n=>t(typeof e==`function`?e(n):e,n)}function zr(e,t){let n=(0,o.useContext)(e);if(t===null)return null;if(n&&typeof n==`object`&&`slots`in n&&n.slots){let e=t||Ir;if(!n.slots[e]){let e=new Intl.ListFormat().format(Object.keys(n.slots).map(e=>`"${e}"`)),r=t?`Invalid slot "${t}".`:`A slot prop is required.`;throw Error(`${r} Valid slot names are ${e}.`)}return n.slots[e]}return n}function G(e,t,n){let{ref:r,...i}=zr(n,e.slot)||{},a=Fr((0,o.useMemo)(()=>Nr(t,r),[t,r])),s=U(i,e);return`style`in i&&i.style&&`style`in e&&e.style&&(s.style=typeof i.style==`function`||typeof e.style==`function`?t=>{let n=typeof i.style==`function`?i.style(t):i.style,r={...t.defaultStyle,...n},a=typeof e.style==`function`?e.style({...t,defaultStyle:r}):e.style;return{...r,...a}}:{...i.style,...e.style}),[s,a]}function Br(e=!0){let[t,n]=(0,o.useState)(e),r=(0,o.useRef)(!1),i=(0,o.useCallback)(e=>{r.current=!0,n(!!e)},[]);return H(()=>{r.current||n(!1)},[]),[i,t]}function Vr(e){let t=/^(data-.*)$/,n={};for(let r in e)t.test(r)||(n[r]=e[r]);return n}function Hr(e,t,n){let{render:r,...i}=t,a=(0,o.useRef)(null),s=(0,o.useMemo)(()=>Nr(n,a),[n,a]);H(()=>{},[e,r]);let c={...i,ref:s};return r?r(c,void 0):o.createElement(e,c)}var Ur={},K=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let n=Ur[t];return n||(n=(0,o.forwardRef)(Hr.bind(null,t)),Ur[t]=n),n}});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)}}));var Wr=(0,o.createContext)(!1);function Gr(e){if((0,o.useContext)(Wr))return o.createElement(o.Fragment,null,e.children);let t=o.createElement(Wr.Provider,{value:!0},e.children);return o.createElement(`template`,null,t)}function Kr(e){let t=(t,n)=>(0,o.useContext)(Wr)?null:e(t,n);return t.displayName=e.displayName||e.name,(0,o.forwardRef)(t)}function qr(){return(0,o.useContext)(Wr)}var Jr=(0,o.createContext)({}),Yr=Kr(function(e,t){[e,t]=G(e,t,Jr);let{elementType:n=`label`,...r}=e,i=K[n];return o.createElement(i,{className:`react-aria-Label`,...r,ref:t})}),Xr=new Set([`id`]),Zr=new Set([`aria-label`,`aria-labelledby`,`aria-describedby`,`aria-details`]),Qr=new Set([`href`,`hrefLang`,`target`,`rel`,`download`,`ping`,`referrerPolicy`]),$r=new Set([`dir`,`lang`,`hidden`,`inert`,`translate`,`suppressHydrationWarning`]),ei=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`.split(`.`)),ti=/^(data-.*)$/;function q(e,t={}){let{labelable:n,isLink:r,global:i,events:a=i,propNames:o}=t,s={};for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(Xr.has(t)||n&&Zr.has(t)||r&&Qr.has(t)||i&&$r.has(t)||a&&(ei.has(t)||t.endsWith(`Capture`)&&ei.has(t.slice(0,-7)))||o?.has(t)||ti.test(t))&&(s[t]=e[t]);return s}function ni(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=Ar(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(` `):i&&=i.trim().split(/\s+/).join(` `),!r&&!i&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":i}}function ri(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:a=`label`}=e;t=Ar(t);let o=Ar(),s={};n&&(r=r?`${o} ${r}`:o,s={id:o,htmlFor:a===`label`?t:void 0});let c=ni({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:s,fieldProps:c}}var ii=new Set([`Arab`,`Syrc`,`Samr`,`Mand`,`Thaa`,`Mend`,`Nkoo`,`Adlm`,`Rohg`,`Hebr`]),ai=new Set([`ae`,`ar`,`arc`,`bcc`,`bqi`,`ckb`,`dv`,`fa`,`glk`,`he`,`ku`,`mzn`,`nqo`,`pnb`,`ps`,`sd`,`ug`,`ur`,`yi`]);function oi(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize(),n=typeof t.getTextInfo==`function`?t.getTextInfo():t.textInfo;if(n)return n.direction===`rtl`;if(t.script)return ii.has(t.script)}let t=e.split(`-`)[0];return ai.has(t)}var si=Symbol.for(`react-aria.i18n.locale`);function ci(){let e=typeof window<`u`&&window[si]||typeof navigator<`u`&&(navigator.language||navigator.userLanguage)||`en-US`;try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e=`en-US`}return{locale:e,direction:oi(e)?`rtl`:`ltr`}}var li=ci(),ui=new Set;function di(){li=ci();for(let e of ui)e(li)}function fi(){let e=wr(),[t,n]=(0,o.useState)(li);return(0,o.useEffect)(()=>(ui.size===0&&window.addEventListener(`languagechange`,di),ui.add(n),()=>{ui.delete(n),ui.size===0&&window.removeEventListener(`languagechange`,di)}),[]),e?{locale:typeof window<`u`&&window[si]||`en-US`,direction:`ltr`}:t}var pi=o.createContext(null);function mi(){let e=fi();return(0,o.useContext)(pi)||e}var hi=new Map,gi=!1;try{gi=new Intl.NumberFormat(`de-DE`,{signDisplay:`exceptZero`}).resolvedOptions().signDisplay===`exceptZero`}catch{}var _i=class{constructor(e,t={}){this.numberFormatter=vi(e,t),this.options=t}format(e){let t=``;return t=!gi&&this.options.signDisplay!=null?yi(this.numberFormatter,this.options.signDisplay,e):this.numberFormatter.format(e),t}formatToParts(e){return this.numberFormatter.formatToParts(e)}formatRange(e,t){if(typeof this.numberFormatter.formatRange==`function`)return this.numberFormatter.formatRange(e,t);if(t<e)throw RangeError(`End date must be >= start date`);return`${this.format(e)} \u{2013} ${this.format(t)}`}formatRangeToParts(e,t){if(typeof this.numberFormatter.formatRangeToParts==`function`)return this.numberFormatter.formatRangeToParts(e,t);if(t<e)throw RangeError(`End date must be >= start date`);let n=this.numberFormatter.formatToParts(e),r=this.numberFormatter.formatToParts(t);return[...n.map(e=>({...e,source:`startRange`})),{type:`literal`,value:` – `,source:`shared`},...r.map(e=>({...e,source:`endRange`}))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return!gi&&this.options.signDisplay!=null&&(e={...e,signDisplay:this.options.signDisplay}),e}};function vi(e,t={}){let{numberingSystem:n}=t;n&&e.includes(`-nu-`)&&(e.includes(`-u-`)||(e+=`-u-`),e+=`-nu-${n}`);let r=e+(t?Object.entries(t).sort((e,t)=>e[0]<t[0]?-1:1).join():``);if(hi.has(r))return hi.get(r);let i=new Intl.NumberFormat(e,t);return hi.set(r,i),i}function yi(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 t=e.format(-n),r=e.format(n),i=t.replace(r,``).replace(/\u200e|\u061C/,``);return[...i].length!==1&&console.warn(`@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case`),t.replace(r,`!!!`).replace(i,`+`).replace(`!!!`,r)}return e.format(n)}}function bi(e={}){let{locale:t}=mi();return(0,o.useMemo)(()=>new _i(t,e),[t,e])}function xi(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function Si(e,t){let n=e,r=0,i=t.toString(),a=i.toLowerCase().indexOf(`e-`);if(a>0)r=Math.abs(Math.floor(Math.log10(Math.abs(t))))+a;else{let e=i.indexOf(`.`);e>=0&&(r=i.length-e)}if(r>0){let e=10**r;n=Math.round(n*e)/e}return n}function Ci(e,t,n,r){t=Number(t),n=Number(n);let i=(e-(isNaN(t)?0:t))%r,a=Si(Math.abs(i)*2>=r?e+Math.sign(i)*(r-Math.abs(i)):e-i,r);return isNaN(t)?!isNaN(n)&&a>n&&(a=Math.floor(Si(n/r,r))*r):a<t?a=t:!isNaN(n)&&a>n&&(a=t+Math.floor(Si((n-t)/r,r))*r),a=Si(a,r),a}var wi=(0,o.createContext)(null),Ti=7e3,Ei=null;function Di(e,t=`assertive`,n=Ti){Ei?Ei.announce(e,t,n):(Ei=new ki,(typeof IS_REACT_ACT_ENVIRONMENT==`boolean`?IS_REACT_ACT_ENVIRONMENT:typeof jest<`u`)?Ei.announce(e,t,n):setTimeout(()=>{Ei?.isAttached()&&Ei?.announce(e,t,n)},100))}function Oi(e){Ei&&Ei.clear(e)}var ki=class{constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<`u`&&(this.node=document.createElement(`div`),this.node.dataset.liveAnnouncer=`true`,Object.assign(this.node.style,{border:0,clip:`rect(0 0 0 0)`,clipPath:`inset(50%)`,height:`1px`,margin:`-1px`,overflow:`hidden`,padding:0,position:`absolute`,width:`1px`,whiteSpace:`nowrap`}),this.assertiveLog=this.createLog(`assertive`),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog(`polite`),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}isAttached(){return this.node?.isConnected}createLog(e){let t=document.createElement(`div`);return t.setAttribute(`role`,`log`),t.setAttribute(`aria-live`,e),t.setAttribute(`aria-relevant`,`additions`),t}destroy(){this.node&&=(document.body.removeChild(this.node),null)}announce(e,t=`assertive`,n=Ti){if(!this.node)return;let r=document.createElement(`div`);typeof e==`object`?(r.setAttribute(`role`,`img`),r.setAttribute(`aria-labelledby`,e[`aria-labelledby`])):r.textContent=e,t===`assertive`?this.assertiveLog?.appendChild(r):this.politeLog?.appendChild(r),e!==``&&setTimeout(()=>{r.remove()},n)}clear(e){this.node&&((!e||e===`assertive`)&&this.assertiveLog&&(this.assertiveLog.innerHTML=``),(!e||e===`polite`)&&this.politeLog&&(this.politeLog.innerHTML=``))}};function Ai(e){e.focus({preventScroll:!0})}var J=e=>Ni(e)?e.document:Pi(e)?e:e?.ownerDocument??(typeof document<`u`?document:void 0),ji=e=>J(e)?.defaultView??(typeof window<`u`?window:void 0);function Mi(e){return typeof e==`object`&&!!e&&`nodeType`in e&&typeof e.nodeType==`number`}function Ni(e){return typeof e==`object`&&!!e&&`window`in e&&e.window===e}function Pi(e){return Mi(e)&&e.nodeType===9}function Fi(e){return Mi(e)&&e.nodeType===11&&`host`in e}function Ii(e,t,n,r){if(n==null||e==null)return()=>{};let i=Array.isArray(e)?e:[e];for(let e of i)e.addEventListener(t,n,r);return()=>{for(let e of i)e.removeEventListener(t,n,r)}}function Li(e,t,n,r){if(e==null)return()=>{};let i=[],a=Array.isArray(e)?e:[e];for(let e of a){let a=e.style.getPropertyValue(t),o=e.style.getPropertyPriority(t);e.style.setProperty(t,n,r),i.unshift(()=>{a?e.style.setProperty(t,a,o):e.style.removeProperty(t)})}return()=>{for(let e of i)e()}}var Ri=!1;function zi(){return Ri}function Y(e,t){if(!zi())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!=null;){if(n===e)return!0;n=typeof n.assignedElements!=`function`&&n.assignedSlot?.parentNode?n.assignedSlot.parentNode:Fi(n)?n.host:n.parentNode}return!1}var X=(e=document)=>{if(!zi())return e.activeElement;let t=e.activeElement;for(;t&&`shadowRoot`in t&&t.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t};function Z(e){if(zi()&&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 Bi(e,t){if(t===null)return[];t??=ji(e);let n=[t];if(!zi()||!e||e===t)return n;let r=`getRootNode`in t?t.getRootNode():null,i=e.getRootNode()??null;for(;Fi(i)&&i!==r;)n.push(i),i=i.host.getRootNode();return n}function Vi(e){if(!e)return!1;let t=e.getRootNode(),n=ji(e);if(!(t instanceof n.Document||t instanceof n.ShadowRoot))return!1;let r=t.activeElement;return r!=null&&e.contains(r)}var Hi=typeof Element<`u`&&`checkVisibility`in Element.prototype;function Ui(e){let t=ji(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){let{getComputedStyle:t}=ji(e),{display:n,visibility:r}=t(e);i=n!==`none`&&r!==`hidden`&&r!==`collapse`}return i}function Wi(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 Gi(e,t){return Hi?e.checkVisibility({visibilityProperty:!0})&&!e.closest(`[data-react-aria-prevent-focus]`):e.nodeName!==`#comment`&&Ui(e)&&Wi(e,t)&&(!e.parentElement||Gi(e.parentElement,e))}var Ki=[`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`],qi=Ki.join(`:not([hidden]),`)+`,[tabindex]:not([disabled]):not([hidden])`;Ki.push(`[tabindex]:not([tabindex="-1"]):not([disabled])`);var Ji=Ki.join(`:not([hidden]):not([tabindex="-1"]),`);function Yi(e,t){return e.matches(qi)&&!Zi(e)&&(t?.skipVisibilityCheck||Gi(e))}function Xi(e){return e.matches(Ji)&&Gi(e)&&!Zi(e)}function Zi(e){let t=e;for(;t!=null;){if(t instanceof ji(t).HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function Qi(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function $i(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function ea(e){let t=(0,o.useRef)({isFocused:!1,observer:null});return H(()=>{let e=t.current;return()=>{e.observer&&=(e.observer.disconnect(),null)}},[]),(0,o.useCallback)(n=>{let r=Z(n);if(r instanceof HTMLButtonElement||r instanceof HTMLInputElement||r instanceof HTMLTextAreaElement||r instanceof HTMLSelectElement){t.current.isFocused=!0;let n=r;n.addEventListener(`focusout`,r=>{if(t.current.isFocused=!1,n.disabled){let t=Qi(r);e?.(t)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&n.disabled){t.current.observer?.disconnect();let e=n===X()?null:X();n.dispatchEvent(new FocusEvent(`blur`,{relatedTarget:e})),n.dispatchEvent(new FocusEvent(`focusout`,{bubbles:!0,relatedTarget:e}))}}),t.current.observer.observe(n,{attributes:!0,attributeFilter:[`disabled`]})}},[e])}var ta=!1;function na(e){for(;e&&!Yi(e,{skipVisibilityCheck:!0});)e=e.parentElement;let t=X(ji(e).document);if(!t||t===e)return;let n=e?.getRootNode(),r=n!=null&&Fi(n)?n:ji(e),i=t=>t===e||Mi(t)&&Y(e,t),a=e=>e===t||t!=null&&Mi(e)&&Y(t,e);ta=!0;let o=!1,s=e=>{(a(Z(e))||o)&&e.stopImmediatePropagation()},c=n=>{(a(Z(n))||o)&&(n.stopImmediatePropagation(),!e&&!o&&(o=!0,Ai(t),d()))},l=e=>{(i(Z(e))||o)&&e.stopImmediatePropagation()},u=e=>{(i(Z(e))||o)&&(e.stopImmediatePropagation(),o||(o=!0,Ai(t),d()))};r.addEventListener(`blur`,s,!0),r.addEventListener(`focusout`,c,!0),r.addEventListener(`focusin`,u,!0),r.addEventListener(`focus`,l,!0);let d=()=>{cancelAnimationFrame(f),r.removeEventListener(`blur`,s,!0),r.removeEventListener(`focusout`,c,!0),r.removeEventListener(`focusin`,u,!0),r.removeEventListener(`focus`,l,!0),ta=!1,o=!1},f=requestAnimationFrame(d);return d}function ra(e){if(typeof window>`u`||window.navigator==null)return!1;let t=window.navigator.userAgentData?.brands;return Array.isArray(t)&&t.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function ia(e){return typeof window<`u`&&window.navigator!=null&&e.test(window.navigator.userAgentData?.platform||window.navigator.platform)}function aa(e){let t=null;return()=>(t??=e(),t)}var oa=aa(function(){return ia(/^Mac/i)}),sa=aa(function(){return ia(/^iPhone/i)}),ca=aa(function(){return ia(/^iPad/i)||oa()&&navigator.maxTouchPoints>1}),la=aa(function(){return sa()||ca()}),ua=aa(function(){return oa()||la()}),da=aa(function(){return ra(/AppleWebKit/i)&&(la()||!fa())}),fa=aa(function(){return ra(/Chrome|CriOS|CrMo/i)}),pa=aa(function(){return ra(/Android/i)});function ma(e){return e.pointerType===``&&e.isTrusted?!0:pa()&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function ha(e){return!pa()&&e.width===0&&e.height===0||pa()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`}var ga=(0,o.createContext)({isNative:!0,open:ba,useHref:e=>e});function _a(){return(0,o.useContext)(ga)}function va(e,t,n=!0){let{metaKey:r,ctrlKey:i,altKey:a,shiftKey:o}=t,s=da()&&oa()&&!ca()?new KeyboardEvent(`keydown`,{keyIdentifier:`Enter`,metaKey:r,ctrlKey:i,altKey:a,shiftKey:o}):new MouseEvent(`click`,{metaKey:r,ctrlKey:i,altKey:a,shiftKey:o,detail:1,bubbles:!0,cancelable:!0});va.isOpening=n,Ai(e),e.dispatchEvent(s),va.isOpening=!1}va.isOpening=!1;function ya(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 ba(e,t){ya(e,e=>va(e,t))}function xa(e){let t=_a().useHref(e?.href??``),n={};if(e)for(let r of[`href`,`target`,`rel`,`download`,`ping`,`referrerPolicy`])r in e&&e[r]!==void 0&&(n[r]=r===`href`?t:e[r]);return n}var Sa=null,Ca=`keyboard`,wa=new Set,Ta=new Map,Ea=!1,Da=!1,Oa={Tab:!0,Escape:!0};function ka(e,t){for(let n of wa)n(e,t)}function Aa(e){return!(e.metaKey||!oa()&&e.altKey||e.ctrlKey||e.key===`Control`||e.key===`Shift`||e.key===`Meta`)}function ja(e){Ea=!0,!va.isOpening&&Aa(e)&&(Sa=`keyboard`,Ca=`keyboard`,ka(`keyboard`,e))}function Ma(e){Sa=`pointer`,Ca=`pointerType`in e?e.pointerType:`mouse`,(e.type===`mousedown`||e.type===`pointerdown`)&&(Ea=!0,ka(`pointer`,e))}function Na(e){!va.isOpening&&ma(e)&&(Ea=!0,Sa=`virtual`,Ca=`virtual`)}function Pa(e){if(ta)return;let t=Z(e),n=ji(t),r=J(t);if(t===n){Da=!0;return}t!==r&&e.isTrusted&&(!Ea&&!Da&&(Sa=`virtual`,Ca=`virtual`,ka(`virtual`,e)),Ea=!1,Da=!1)}function Fa(){ta||(Ea=!1,Da=!0)}function Ia(e){let t=X(J(Z(e)));queueMicrotask(()=>{X(J(Z(e)))!==t&&Ha(`keyboard`)})}function La(e){if(typeof window>`u`||typeof document>`u`)return;let t=ji(e),n=J(e);if(Ta.get(t))return;let r=t.HTMLElement.prototype.focus;Reflect.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:function(){Ea=!0,r.apply(this,arguments)}}),n.addEventListener(`keydown`,ja,!0),n.addEventListener(`keyup`,ja,!0),n.addEventListener(`click`,Na,!0),n.addEventListener(`invalid`,Ia,!0),t.addEventListener(`focus`,Pa,!0),t.addEventListener(`blur`,Fa,!1),typeof PointerEvent<`u`&&(n.addEventListener(`pointerdown`,Ma,!0),n.addEventListener(`pointermove`,Ma,!0),n.addEventListener(`pointerup`,Ma,!0)),t.addEventListener(`beforeunload`,()=>{Ra(e)},{once:!0}),Ta.set(t,{focus:r})}var Ra=(e,t)=>{let n=ji(e),r=J(e);t&&r.removeEventListener(`DOMContentLoaded`,t),Ta.has(n)&&(Reflect.defineProperty(n.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:Ta.get(n).focus}),r.removeEventListener(`keydown`,ja,!0),r.removeEventListener(`keyup`,ja,!0),r.removeEventListener(`click`,Na,!0),r.removeEventListener(`invalid`,Ia,!0),n.removeEventListener(`focus`,Pa,!0),n.removeEventListener(`blur`,Fa,!1),typeof PointerEvent<`u`&&(r.removeEventListener(`pointerdown`,Ma,!0),r.removeEventListener(`pointermove`,Ma,!0),r.removeEventListener(`pointerup`,Ma,!0)),Ta.delete(n))};function za(e){let t=J(e),n;return t.readyState===`loading`?(n=()=>{La(e)},t.addEventListener(`DOMContentLoaded`,n)):La(e),()=>Ra(e,n)}typeof document<`u`&&za();function Ba(){return Sa!==`pointer`}function Va(){return Sa}function Ha(e){Sa=e,Ca=e===`pointer`?`mouse`:e,ka(e,null)}function Ua(){return Ca}var Wa=new Set([`checkbox`,`radio`,`range`,`color`,`file`,`image`,`button`,`submit`,`reset`]);function Ga(e,t,n){let r=n?Z(n):void 0,i=J(r),a=ji(r),o=a===void 0?HTMLInputElement:a.HTMLInputElement,s=a===void 0?HTMLTextAreaElement:a.HTMLTextAreaElement,c=a===void 0?HTMLElement:a.HTMLElement,l=a===void 0?KeyboardEvent:a.KeyboardEvent,u=X(i);return e=e||u instanceof o&&!Wa.has(u.type)||u instanceof s||u instanceof c&&u.isContentEditable,!(e&&t===`keyboard`&&n instanceof l&&!Oa[n.key])}function Ka(e={}){let{isTextInput:t,autoFocus:n}=e,[r,i]=(0,o.useState)(n||Ba());return qa(e=>{i(e)},[t],{isTextInput:t}),{isFocusVisible:r}}function qa(e,t,n){La(),(0,o.useEffect)(()=>{if(n?.enabled===!1)return;let t=(t,r)=>{Ga(!!n?.isTextInput,t,r)&&e(Ba())};return wa.add(t),()=>{wa.delete(t)}},t)}var Ja=new Map,Ya=new Set;function Xa(e){return`propertyName`in e}function Za(e){let t=Z(e);if(!Xa(e)||!t)return;let n=Ja.get(t);n||(n=new Set,Ja.set(t,n),t.addEventListener(`transitioncancel`,Qa,{once:!0})),n.add(e.propertyName)}function Qa(e){let t=Z(e);if(!Xa(e)||!t)return;let n=Ja.get(t);if(n&&(n.delete(e.propertyName),n.size===0&&(t.removeEventListener(`transitioncancel`,Qa),Ja.delete(t)),Ja.size===0))for(let e of Ya)e(!0),Ya.delete(e)}function $a(){Ii(document,`transitionrun`,Za),Ii(document,`transitionend`,Qa)}function eo(){for(let[e]of Ja)`isConnected`in e&&!e.isConnected&&Ja.delete(e)}typeof document<`u`&&(document.readyState===`loading`?Ii(document,`DOMContentLoaded`,$a):$a());function to(e){let t=window.requestAnimationFrame(()=>{if(eo(),Ja.size===0)return e(!1);Ya.add(e)});return()=>{window.cancelAnimationFrame(t),Ya.delete(e)}}function no(e){if(!e.isConnected)return;let t=J(e);if(Va()===`virtual`){let n=X(t);to(()=>{let r=X(t);(r===n||r===t.body)&&e.isConnected&&Ai(e)})}else Ai(e)}function ro(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e,a=(0,o.useCallback)(e=>{if(Z(e)===e.currentTarget)return r&&r(e),i&&i(!1),!0},[r,i]),s=ea(a),c=(0,o.useCallback)(e=>{let t=Z(e),r=J(t),a=r?X(r):X();t===e.currentTarget&&t===a&&(n&&n(e),i&&i(!0),s(e))},[i,n,s]);return{focusProps:{onFocus:!t&&(n||i||r)?c:void 0,onBlur:!t&&(r||i)?a:void 0}}}function io(e){if(e)return t=>{let n=!0;e({...t,preventDefault(){t.preventDefault()},isDefaultPrevented(){return t.isDefaultPrevented()},stopPropagation(){n=!0},continuePropagation(){n=!1,typeof t.continuePropagation==`function`&&t.continuePropagation()},isPropagationStopped(){return n}}),n&&!(typeof t.isPropagationStopped==`function`&&t.isPropagationStopped())&&t.stopPropagation()}}var ao=new Set([`shift`,`alt`,`control`,`meta`,`mod`]),oo=[`Alt`,`Control`,`Meta`,`Shift`];function so(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(oa()?`Meta`:`Control`),t}function co(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 lo(e){return oo.filter(t=>e.has(t))}function uo(e){let t=e.split(`+`).reduce((e,t)=>{let n=t.toLowerCase();return ao.has(n)?n===`shift`?e.shift=!0:n===`alt`?e.alt=!0:n===`control`?e.ctrl=!0:n===`meta`?e.meta=!0:n===`mod`&&(e.mod=!0):e.key=t,e},{shift:!1,alt:!1,ctrl:!1,meta:!1,mod:!1,key:``});if(t.key===``)throw 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 fo(e){return e.toLowerCase()}var po={space:` `,esc:`escape`,del:`delete`,ins:`insert`,left:`arrowleft`,right:`arrowright`,up:`arrowup`,down:`arrowdown`,pageup:`pageup`,pagedown:`pagedown`};function mo(e){let t=fo(e);return po[t]??t}function ho(e){let t=lo(so(e)),n=mo(e.key);return t.length>0?`${t.join(`+`)}+${n}`:n}function go(e){let t=lo(co(e)),n=fo(e.key);return(t.length>0?`${t.join(`+`)}+`:``)+n}function _o(e){let t=new Map;for(let[n,r]of Object.entries(e)){let e=uo(n);t.set(ho(e),r)}return e=>{let n=go(e),r=t.get(n),i=r?.(e);i===void 0&&r!==void 0?i={shouldContinuePropagation:!1,shouldPreventDefault:!0}:typeof i==`boolean`&&(i={shouldContinuePropagation:!i,shouldPreventDefault:i}),i?.shouldPreventDefault&&e.preventDefault(),(!r||i?.shouldContinuePropagation)&&e.continuePropagation()}}function vo(e){let{shortcuts:t,allowRepeats:n=!1,allowComposing:r=!1}=e,i,a;if(t){let o=_o(t),s=io(e=>{if(!Y(e.currentTarget,Z(e))){e.continuePropagation();return}if(e.nativeEvent?.repeat&&!n||e.nativeEvent?.isComposing&&!r){e.continuePropagation();return}o(e)}),c=io(e=>{if(!Y(e.currentTarget,Z(e))){e.continuePropagation();return}if(e.nativeEvent?.repeat&&!n||e.nativeEvent?.isComposing&&!r){e.continuePropagation();return}e.continuePropagation()});i=e.onKeyDown?fr(e.onKeyDown,s):s,a=e.onKeyUp?fr(e.onKeyUp,c):c}else i=io(e.onKeyDown),a=io(e.onKeyUp);return{keyboardProps:e.isDisabled?{}:{onKeyDown:i,onKeyUp:a}}}function yo(e,t){H(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}var bo=o.createContext(null);function xo(e){let t=(0,o.useContext)(bo)||{};yo(t,e);let{ref:n,...r}=t;return r}var So=o.forwardRef(function(e,t){let{children:n,...r}=e,i=Fr(t),a={...r,ref:i};return o.createElement(bo.Provider,{value:a},n)});function Co(e,t){let{focusProps:n}=ro(e),{keyboardProps:r}=vo(e),i=U(n,r),a=xo(t),s=e.isDisabled?{}:a,c=(0,o.useRef)(e.autoFocus);(0,o.useEffect)(()=>{c.current&&t.current&&no(t.current),c.current=!1},[t]);let l=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(l=void 0),{focusableProps:U({...i,tabIndex:l},s)}}var wo=`default`,To=``,Eo=new WeakMap;function Do(e){if(la()&&da()){if(wo==="default"){let t=J(e);To=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect=`none`}wo=`disabled`}else if(e instanceof HTMLElement||e instanceof SVGElement){let t=`userSelect`in e.style?`userSelect`:`webkitUserSelect`;Eo.set(e,e.style[t]),e.style[t]=`none`}}function Oo(e){if(la()&&da()){if(wo!==`disabled`)return;wo=`restoring`,setTimeout(()=>{to(()=>{if(wo===`restoring`){let t=J(e);t.documentElement.style.webkitUserSelect===`none`&&(t.documentElement.style.webkitUserSelect=To||``),To=``,wo=`default`}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Eo.has(e)){let t=Eo.get(e),n=`userSelect`in e.style?`userSelect`:`webkitUserSelect`;e.style[n]===`none`&&(e.style[n]=t),e.getAttribute(`style`)===``&&e.removeAttribute(`style`),Eo.delete(e)}}function ko(e,t){let n=ji(t),r=J(t);if(r==null||n==null)return;let i,a=`meta[name="${CSS.escape(e)}"], meta[property="${CSS.escape(e)}"]`,o=r.querySelector(a);return o&&o instanceof n.HTMLMetaElement&&(e===`csp-nonce`&&o.nonce&&(i??=o.nonce||void 0),o.content&&(i??=o.content||void 0)),e===`csp-nonce`&&(i??=n.__webpack_nonce__||globalThis.__webpack_nonce__||void 0),i}var Ao=new WeakMap;function jo(e){let t=J(e),n=Ao.get(t);return n??=ko(`csp-nonce`,t),n!==void 0&&Ao.set(t,n),n}var Mo=o.createContext({register:()=>{}});Mo.displayName=`PressResponderContext`;var No=o.useInsertionEffect??H;function Po(e){let t=(0,o.useRef)(null);return No(()=>{t.current=e},[e]),(0,o.useCallback)((...e)=>{let n=t.current;return n?.(...e)},[])}function Fo(){let e=(0,o.useRef)(new Map),t=(0,o.useCallback)((t,n,r,i)=>{let a=i?.once?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:a,options:i}),t.addEventListener(n,a,i)},[]),n=(0,o.useCallback)((t,n,r,i)=>{let a=e.current.get(r)?.fn||r;t.removeEventListener(n,a,i),e.current.delete(r)},[]),r=(0,o.useCallback)(()=>{e.current.forEach((e,t)=>{n(e.eventTarget,e.type,t,e.options)})},[n]);return(0,o.useEffect)(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function Io(e){let t=(0,o.useContext)(Mo);if(t){let{register:n,ref:r,...i}=t;e=U(i,e),n()}return yo(t,e.ref),e}var Lo=class{#e;constructor(e,t,n,r){this.#e=!0;let i=(r?.target??n.currentTarget)?.getBoundingClientRect(),a,o=0,s,c=null;n.clientX!=null&&n.clientY!=null&&(s=n.clientX,c=n.clientY),i&&(s!=null&&c!=null?(a=s-i.left,o=c-i.top):(a=i.width/2,o=i.height/2)),this.type=e,this.pointerType=t,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=a,this.y=o,this.key=n.key}continuePropagation(){this.#e=!1}get shouldStopPropagation(){return this.#e}},Ro=Symbol(`linkClicked`),zo=`react-aria-pressable-style`,Bo=`data-react-aria-pressable`;function Vo(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:a,onClick:s,isDisabled:c,isPressed:l,preventFocusOnPress:u,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:f,ref:p,...m}=Io(e),[h,g]=(0,o.useState)(!1),_=(0,o.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:v,removeAllGlobalListeners:y}=Fo(),b=(0,o.useCallback)((e,t)=>{let i=_.current;if(c||i.didFirePressStart)return!1;let a=!0;if(i.isTriggeringEvent=!0,r){let n=new Lo(`pressstart`,t,e);r(n),a=n.shouldStopPropagation}return n&&n(!0),i.isTriggeringEvent=!1,i.didFirePressStart=!0,g(!0),a},[c,r,n]),x=(0,o.useCallback)((e,r,a=!0)=>{let o=_.current;if(!o.didFirePressStart)return!1;o.didFirePressStart=!1,o.isTriggeringEvent=!0;let s=!0;if(i){let t=new Lo(`pressend`,r,e);i(t),s=t.shouldStopPropagation}if(n&&n(!1),g(!1),t&&a&&!c){let n=new Lo(`press`,r,e);t(n),s&&=n.shouldStopPropagation}return o.isTriggeringEvent=!1,s},[c,i,n,t]),S=Po(x),C=Po((0,o.useCallback)((e,t)=>{let n=_.current;if(c)return!1;if(a){n.isTriggeringEvent=!0;let r=new Lo(`pressup`,t,e);return a(r),n.isTriggeringEvent=!1,r.shouldStopPropagation}return!0},[c,a])),w=(0,o.useCallback)(e=>{let t=_.current;if(t.isPressed&&t.target){t.didFirePressStart&&t.pointerType!=null&&x(Wo(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,y(),f||Oo(t.target);for(let e of t.disposables)e();t.disposables=[]}},[f,y,x]),T=Po(w);(0,o.useEffect)(()=>{c&&_.current.isPressed&&T({currentTarget:_.current.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})},[c]);let E=(0,o.useCallback)(e=>{d&&w(e)},[d,w]),D=(0,o.useCallback)(e=>{c||s?.(e)},[c,s]),O=(0,o.useCallback)((e,t)=>{if(!c&&s){let n=new MouseEvent(`click`,e);$i(n,t),s(Qi(n))}},[c,s]),k=(0,o.useMemo)(()=>{let e=_.current,t={onKeyDown(t){if(Uo(t.nativeEvent,t.currentTarget)&&Y(t.currentTarget,Z(t))){Ko(Z(t),t.key)&&t.preventDefault();let r=!0;!e.isPressed&&!t.repeat&&(e.target=t.currentTarget,e.isPressed=!0,e.pointerType=`keyboard`,r=b(t,`keyboard`));let i=t.currentTarget;v(J(t.currentTarget),`keyup`,fr(t=>{Uo(t,i)&&!t.repeat&&Y(i,Z(t))&&e.target&&C(Wo(e.target,t),`keyboard`)},n),!0),r&&t.stopPropagation(),t.metaKey&&oa()&&e.metaKeyEvents?.set(t.key,t.nativeEvent)}else t.key===`Meta`&&(e.metaKeyEvents=new Map)},onClick(t){if((!t||Y(t.currentTarget,Z(t)))&&t&&t.button===0&&!e.isTriggeringEvent&&!va.isOpening){let n=!0;if(c&&t.preventDefault(),!e.ignoreEmulatedMouseEvents&&!e.isPressed&&(e.pointerType===`virtual`||ma(t.nativeEvent))){let e=b(t,`virtual`),r=C(t,`virtual`),i=S(t,`virtual`);D(t),n=e&&r&&i}else if(e.isPressed&&e.pointerType!==`keyboard`){let r=e.pointerType||t.nativeEvent.pointerType||`virtual`,i=C(Wo(t.currentTarget,t),r),a=S(Wo(t.currentTarget,t),r,!0);n=i&&a,e.isOverTarget=!1,D(t),T(t)}e.ignoreEmulatedMouseEvents=!1,n&&t.stopPropagation()}}},n=t=>{if(e.isPressed&&e.target&&Uo(t,e.target)){Ko(Z(t),t.key)&&t.preventDefault();let n=Z(t),r=Y(e.target,n);S(Wo(e.target,t),`keyboard`,r),r&&O(t,e.target),y(),t.key!==`Enter`&&Ho(e.target)&&Y(e.target,n)&&!t[Ro]&&(t[Ro]=!0,va(e.target,t,!1)),e.isPressed=!1,e.metaKeyEvents?.delete(t.key)}else if(t.key===`Meta`&&e.metaKeyEvents?.size){let t=e.metaKeyEvents;e.metaKeyEvents=void 0;for(let n of t.values())e.target?.dispatchEvent(new KeyboardEvent(`keyup`,n))}};if(typeof PointerEvent<`u`){t.onPointerDown=t=>{if(t.button!==0||!Y(t.currentTarget,Z(t)))return;if(ha(t.nativeEvent)){e.pointerType=`virtual`;return}e.pointerType=t.pointerType;let i=!0;if(!e.isPressed){e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=t.pointerId,e.target=t.currentTarget,f||Do(e.target),i=b(t,e.pointerType);let a=Z(t);`releasePointerCapture`in a&&(`hasPointerCapture`in a?a.hasPointerCapture(t.pointerId)&&a.releasePointerCapture(t.pointerId):a.releasePointerCapture(t.pointerId)),v(J(t.currentTarget),`pointerup`,n,!1),v(J(t.currentTarget),`pointercancel`,r,!1)}i&&t.stopPropagation()},t.onMouseDown=t=>{if(Y(t.currentTarget,Z(t))&&t.button===0){if(u){let n=na(t.target);n&&e.disposables.push(n)}t.stopPropagation()}},t.onPointerUp=t=>{Y(t.currentTarget,Z(t))&&e.pointerType!==`virtual`&&t.button===0&&!e.isPressed&&C(t,e.pointerType||t.pointerType)},t.onPointerEnter=t=>{t.pointerId===e.activePointerId&&e.target&&!e.isOverTarget&&e.pointerType!=null&&(e.isOverTarget=!0,b(Wo(e.target,t),e.pointerType))},t.onPointerLeave=t=>{t.pointerId===e.activePointerId&&e.target&&e.isOverTarget&&e.pointerType!=null&&(e.isOverTarget=!1,S(Wo(e.target,t),e.pointerType,!1),E(t))};let n=t=>{if(t.pointerId===e.activePointerId&&e.isPressed&&t.button===0&&e.target){if(Y(e.target,Z(t))&&e.pointerType!=null){let n=!1,r=setTimeout(()=>{e.isPressed&&e.target instanceof HTMLElement&&(n?T(t):(Ai(e.target),e.target.click()))},80);v(t.currentTarget,`click`,()=>n=!0,!0),e.disposables.push(()=>clearTimeout(r))}else T(t);e.isOverTarget=!1}},r=e=>{T(e)};t.onDragStart=e=>{Y(e.currentTarget,Z(e))&&T(e)}}return t},[v,c,u,y,f,E,b,D,O]);return(0,o.useEffect)(()=>{if(!p)return;let e=J(p.current);if(!e||!e.head||e.getElementById(zo))return;let t=e.createElement(`style`);t.id=zo;let n=jo(e);n&&(t.nonce=n),t.textContent=`
2
+ @layer {
3
+ [${Bo}] {
4
+ touch-action: pan-x pan-y pinch-zoom;
5
+ }
6
+ }
7
+ `.trim(),e.head.prepend(t)},[p]),(0,o.useEffect)(()=>{let e=_.current;return()=>{f||Oo(e.target??void 0);for(let t of e.disposables)t();e.disposables=[]}},[f]),{isPressed:l||h,pressProps:U(m,k,{[Bo]:!0})}}function Ho(e){return e.tagName===`A`&&e.hasAttribute(`href`)}function Uo(e,t){let{key:n,code:r}=e,i=t,a=i.getAttribute(`role`);return(n===`Enter`||n===` `||n===`Spacebar`||r===`Space`)&&!(i instanceof ji(i).HTMLInputElement&&!Jo(i,n)||i instanceof ji(i).HTMLTextAreaElement||i.isContentEditable)&&!((a===`link`||!a&&Ho(i))&&n!==`Enter`)}function Wo(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 Go(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!==`submit`&&e.type!==`reset`:!Ho(e)}function Ko(e,t){return oa()&&t===`Enter`?!1:e instanceof HTMLInputElement?t===`Enter`&&(e.type===`checkbox`||e.type===`radio`)?!1:!Jo(e,t):Go(e)}var qo=new Set([`checkbox`,`radio`,`range`,`color`,`file`,`image`,`button`,`submit`,`reset`]);function Jo(e,t){return e.type===`checkbox`||e.type===`radio`?t===` `:qo.has(e.type)}function Yo(e,t){let{elementType:n=`button`,isDisabled:r,onPress:i,onPressStart:a,onPressEnd:o,onPressUp:s,onPressChange:c,preventFocusOnPress:l,allowFocusWhenDisabled:u,onClick:d,href:f,target:p,rel:m,type:h=`button`}=e,g;g=n===`button`?{type:h,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}:{role:`button`,href:n===`a`&&!r?f:void 0,target:n===`a`?p:void 0,type:n===`input`?h:void 0,disabled:n===`input`?r:void 0,"aria-disabled":!r||n===`input`?void 0:r,rel:n===`a`?m:void 0};let{pressProps:_,isPressed:v}=Vo({onPressStart:a,onPressEnd:o,onPressChange:c,onPress:i,onPressUp:s,onClick:d,isDisabled:r,preventFocusOnPress:l,ref:t}),{focusableProps:y}=Co(e,t);u&&(y.tabIndex=r?-1:y.tabIndex);let b=U(y,_,q(e,{labelable:!0}));return{isPressed:v,buttonProps:U(g,b,{"aria-haspopup":e[`aria-haspopup`],"aria-expanded":e[`aria-expanded`],"aria-controls":e[`aria-controls`],"aria-pressed":e[`aria-pressed`],"aria-current":e[`aria-current`],"aria-disabled":e[`aria-disabled`]})}}function Xo(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,a=(0,o.useRef)({isFocusWithin:!1}),{addGlobalListener:s,removeAllGlobalListeners:c}=Fo(),l=(0,o.useCallback)(e=>{Y(e.currentTarget,Z(e))&&a.current.isFocusWithin&&!Y(e.currentTarget,e.relatedTarget)&&(a.current.isFocusWithin=!1,c(),n&&n(e),i&&i(!1))},[n,i,a,c]),u=ea(l),d=(0,o.useCallback)(e=>{if(!Y(e.currentTarget,Z(e)))return;let t=Z(e),n=J(t),o=X(n);if(!a.current.isFocusWithin&&o===t){r&&r(e),i&&i(!0),a.current.isFocusWithin=!0,u(e);let t=e.currentTarget;s(n,`focus`,e=>{let r=Z(e);if(a.current.isFocusWithin&&!Y(t,r)){let e=new n.defaultView.FocusEvent(`blur`,{relatedTarget:r});$i(e,t);let i=Qi(e);l(i)}},{capture:!0})}},[r,i,u,s,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:d,onBlur:l}}}function Zo(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=(0,o.useRef)({isFocused:!1,isFocusVisible:t||Ba()}),[a,s]=(0,o.useState)(!1),[c,l]=(0,o.useState)(()=>i.current.isFocused&&i.current.isFocusVisible),u=(0,o.useCallback)(()=>l(i.current.isFocused&&i.current.isFocusVisible),[]),d=(0,o.useCallback)(e=>{i.current.isFocused=e,i.current.isFocusVisible=Ba(),s(e),u()},[u]);qa(e=>{i.current.isFocusVisible=e,u()},[n,a],{enabled:a,isTextInput:n});let{focusProps:f}=ro({isDisabled:r,onFocusChange:d}),{focusWithinProps:p}=Xo({isDisabled:!r,onFocusWithinChange:d});return{isFocused:a,isFocusVisible:c,focusProps:r?p:f}}var Qo=!1,$o=0;function es(){Qo=!0,setTimeout(()=>{Qo=!1},500)}function ts(e){e.pointerType===`touch`&&es()}function ns(){let e=J(null);if(e!==void 0)return $o===0&&typeof PointerEvent<`u`&&e.addEventListener(`pointerup`,ts),$o++,()=>{$o--,!($o>0)&&typeof PointerEvent<`u`&&e.removeEventListener(`pointerup`,ts)}}function rs(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[a,s]=(0,o.useState)(!1),c=(0,o.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:``,target:null}).current;(0,o.useEffect)(ns,[]);let{addGlobalListener:l,removeAllGlobalListeners:u}=Fo(),{hoverProps:d,triggerHoverEnd:f}=(0,o.useMemo)(()=>{let e=(e,r)=>{if(c.pointerType=r,i||r===`touch`||c.isHovered||!Y(e.currentTarget,Z(e)))return;c.isHovered=!0;let o=e.currentTarget;c.target=o,l(J(Z(e)),`pointerover`,e=>{c.isHovered&&c.target&&!Y(c.target,Z(e))&&a(e,e.pointerType)},{capture:!0}),t&&t({type:`hoverstart`,target:o,pointerType:r}),n&&n(!0),s(!0)},a=(e,t)=>{let i=c.target;c.pointerType=``,c.target=null,t!==`touch`&&c.isHovered&&i&&(c.isHovered=!1,u(),r&&r({type:`hoverend`,target:i,pointerType:t}),n&&n(!1),s(!1))},o={};return typeof PointerEvent<`u`&&(o.onPointerEnter=t=>{Qo&&t.pointerType===`mouse`||e(t,t.pointerType)},o.onPointerLeave=e=>{!i&&Y(e.currentTarget,Z(e))&&a(e,e.pointerType)}),{hoverProps:o,triggerHoverEnd:a}},[t,n,r,i,c,l,u]);return(0,o.useEffect)(()=>{i&&f({currentTarget:c.target},c.pointerType)},[i]),{hoverProps:d,isHovered:a}}var is=(0,o.createContext)({}),as=Kr(function(e,t){[e,t]=G(e,t,is);let n=e,{isPending:r}=n,{buttonProps:i,isPressed:a}=Yo(e,t);i=ss(i,r);let{focusProps:s,isFocused:c,isFocusVisible:l}=Zo(e),{hoverProps:u,isHovered:d}=rs({...e,isDisabled:e.isDisabled||r}),f={isHovered:d,isPressed:(n.isPressed||a)&&!r,isFocused:c,isFocusVisible:l,isDisabled:e.isDisabled||!1,isPending:r??!1},p=W({...e,values:f,defaultClassName:`react-aria-Button`}),m=Ar(i.id),h=Ar(),g=i[`aria-labelledby`];r&&(g?g=`${g} ${h}`:i[`aria-label`]&&(g=`${m} ${h}`));let _=(0,o.useRef)(r);(0,o.useEffect)(()=>{let e={"aria-labelledby":g||m};(!_.current&&c&&r||_.current&&c&&!r)&&Di(e,`assertive`),_.current=r},[r,c,g,m]);let v=q(e,{global:!0});return delete v.onClick,o.createElement(K.button,{...U(v,p,i,s,u),type:i.type===`submit`&&r?`button`:i.type,id:m,ref:t,"aria-labelledby":g,slot:e.slot||void 0,"aria-disabled":r?`true`:i[`aria-disabled`],"data-disabled":e.isDisabled||void 0,"data-pressed":f.isPressed||void 0,"data-hovered":d||void 0,"data-focused":c||void 0,"data-pending":r||void 0,"data-focus-visible":l||void 0},o.createElement(wi.Provider,{value:{id:h}},p.children))}),os=/Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;function ss(e,t){if(t){for(let t in e)t.startsWith(`on`)&&!os.test(t)&&(e[t]=void 0);e.href=void 0,e.target=void 0}return e}function cs(e,t,n,r){let i=Po(n),a=n==null;(0,o.useEffect)(()=>{if(!(a||e.current==null))return Ii(e.current,t,i,r)},[e,t,r,a])}var ls=o.useInsertionEffect??o.useLayoutEffect;function us(e,t,n){let[r,i]=(0,o.useState)(e||t),a=(0,o.useRef)(r),s=(0,o.useRef)(e!==void 0),c=e!==void 0;(0,o.useEffect)(()=>{s.current,s.current=c},[c]);let l=c?e:r;ls(()=>{a.current=l});let[,u]=(0,o.useReducer)(()=>({}),{});return[l,(0,o.useCallback)((e,...t)=>{let r=typeof e==`function`?e(a.current):e;Object.is(a.current,r)||(a.current=r,i(r),u(),n?.(r,...t))},[n])]}var ds=(0,o.createContext)({}),fs=(0,o.forwardRef)(function(e,t){[e,t]=G(e,t,ds);let{children:n,level:r=3,className:i,...a}=e,s=K[`h${r}`];return o.createElement(s,{...a,ref:t,className:i??`react-aria-Heading`},n)}),ps=e=>e?`true`:void 0;function ms(e,t){return Rr(e,(e,n)=>Zn(typeof t==`function`?t(n)??``:t??``,e??``)??``)}var hs=(e,t,n)=>typeof e==`function`?e({...n??{},className:t}):t;function gs(e,t){return(0,o.useMemo)(()=>typeof e==`function`?ms(e,t):t?e?Zn(t,e)??t:t:e??``,[e,t])}var _s=e=>(0,y.jsx)(`svg`,{"aria-hidden":`true`,fill:`none`,height:16,role:`presentation`,viewBox:`0 0 16 16`,width:16,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,y.jsx)(`path`,{clipRule:`evenodd`,d:`M2.97 5.47a.75.75 0 0 1 1.06 0L8 9.44l3.97-3.97a.75.75 0 1 1 1.06 1.06l-4.5 4.5a.75.75 0 0 1-1.06 0l-4.5-4.5a.75.75 0 0 1 0-1.06`,fill:`currentColor`,fillRule:`evenodd`})}),vs=e=>(0,y.jsx)(`svg`,{"aria-hidden":`true`,fill:`none`,height:16,role:`presentation`,viewBox:`0 0 16 16`,width:16,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,y.jsx)(`path`,{clipRule:`evenodd`,d:`M13.03 10.53a.75.75 0 0 1-1.06 0L8 6.56l-3.97 3.97a.75.75 0 0 1-1.06-1.06l4.5-4.5a.75.75 0 0 1 1.06 0l4.5 4.5a.75.75 0 0 1 0 1.06`,fill:`currentColor`,fillRule:`evenodd`})}),ys=e=>(0,y.jsx)(`svg`,{"aria-hidden":`true`,fill:`none`,height:16,role:`presentation`,viewBox:`0 0 16 16`,width:16,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,y.jsx)(`path`,{clipRule:`evenodd`,d:`M10.53 2.97a.75.75 0 0 1 0 1.06L6.56 8l3.97 3.97a.75.75 0 1 1-1.06 1.06l-4.5-4.5a.75.75 0 0 1 0-1.06l4.5-4.5a.75.75 0 0 1 1.06 0`,fill:`currentColor`,fillRule:`evenodd`})}),bs=e=>(0,y.jsx)(`svg`,{"aria-hidden":`true`,fill:`none`,height:16,role:`presentation`,viewBox:`0 0 16 16`,width:16,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,y.jsx)(`path`,{clipRule:`evenodd`,d:`M5.47 2.97a.75.75 0 0 1 1.06 0l4.5 4.5a.75.75 0 0 1 0 1.06l-4.5 4.5a.75.75 0 1 1-1.06-1.06L9.44 8 5.47 4.03a.75.75 0 0 1 0-1.06Z`,fill:`currentColor`,fillRule:`evenodd`})}),xs=e=>(0,y.jsx)(`svg`,{"aria-hidden":`true`,fill:`none`,height:16,role:`presentation`,viewBox:`0 0 16 16`,width:16,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,y.jsx)(`path`,{clipRule:`evenodd`,d:`M3.47 3.47a.75.75 0 0 1 1.06 0L8 6.94l3.47-3.47a.75.75 0 1 1 1.06 1.06L9.06 8l3.47 3.47a.75.75 0 1 1-1.06 1.06L8 9.06l-3.47 3.47a.75.75 0 0 1-1.06-1.06L6.94 8 3.47 4.53a.75.75 0 0 1 0-1.06Z`,fill:`currentColor`,fillRule:`evenodd`})}),Ss=e=>(0,y.jsx)(`svg`,{"aria-hidden":`true`,fill:`none`,height:16,role:`presentation`,viewBox:`0 0 16 16`,width:16,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,y.jsx)(`path`,{clipRule:`evenodd`,d:`M8 13.5a5.5 5.5 0 1 0 0-11a5.5 5.5 0 0 0 0 11M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m1-9.5a1 1 0 1 1-2 0a1 1 0 0 1 2 0m-.25 3a.75.75 0 0 0-1.5 0V11a.75.75 0 0 0 1.5 0z`,fill:`currentColor`,fillRule:`evenodd`})}),Cs=e=>(0,y.jsx)(`svg`,{"aria-hidden":`true`,fill:`none`,height:16,role:`presentation`,viewBox:`0 0 16 16`,width:16,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,y.jsx)(`path`,{clipRule:`evenodd`,d:`M7.134 2.994L2.217 11.5a1 1 0 0 0 .866 1.5h9.834a1 1 0 0 0 .866-1.5L8.866 2.993a1 1 0 0 0-1.732 0m3.03-.75c-.962-1.665-3.366-1.665-4.329 0L.918 10.749c-.963 1.666.24 3.751 2.165 3.751h9.834c1.925 0 3.128-2.085 2.164-3.751zM8 5a.75.75 0 0 1 .75.75v2a.75.75 0 0 1-1.5 0v-2A.75.75 0 0 1 8 5m1 5.75a1 1 0 1 1-2 0a1 1 0 0 1 2 0`,fill:`currentColor`,fillRule:`evenodd`})}),ws=e=>(0,y.jsx)(`svg`,{"aria-hidden":`true`,fill:`none`,height:16,role:`presentation`,viewBox:`0 0 16 16`,width:16,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,y.jsx)(`path`,{clipRule:`evenodd`,d:`M8 13.5a5.5 5.5 0 1 0 0-11a5.5 5.5 0 0 0 0 11M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m1-4.5a1 1 0 1 1-2 0a1 1 0 0 1 2 0M8.75 5a.75.75 0 0 0-1.5 0v2.5a.75.75 0 0 0 1.5 0z`,fill:`currentColor`,fillRule:`evenodd`})}),Ts=e=>(0,y.jsx)(`svg`,{"aria-hidden":`true`,fill:`none`,height:16,role:`presentation`,viewBox:`0 0 16 16`,width:16,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,y.jsx)(`path`,{clipRule:`evenodd`,d:`M13.5 8a5.5 5.5 0 1 1-11 0a5.5 5.5 0 0 1 11 0M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0m-3.9-1.55a.75.75 0 1 0-1.2-.9L7.419 8.858L6.03 7.47a.75.75 0 0 0-1.06 1.06l2 2a.75.75 0 0 0 1.13-.08z`,fill:`currentColor`,fillRule:`evenodd`})}),Es=e=>(0,y.jsx)(`svg`,{"aria-hidden":`true`,fill:`none`,height:16,role:`presentation`,viewBox:`0 0 16 16`,width:16,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,y.jsx)(`path`,{clipRule:`evenodd`,d:`M1.75 8a.75.75 0 0 1 .75-.75h11a.75.75 0 0 1 0 1.5h-11A.75.75 0 0 1 1.75 8`,fill:`currentColor`,fillRule:`evenodd`})}),Ds=e=>(0,y.jsx)(`svg`,{"aria-hidden":`true`,fill:`none`,height:16,role:`presentation`,viewBox:`0 0 16 16`,width:16,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,y.jsx)(`path`,{clipRule:`evenodd`,d:`M8 1.75a.75.75 0 0 1 .75.75v4.75h4.75a.75.75 0 0 1 0 1.5H8.75v4.75a.75.75 0 0 1-1.5 0V8.75H2.5a.75.75 0 0 1 0-1.5h4.75V2.5A.75.75 0 0 1 8 1.75`,fill:`currentColor`,fillRule:`evenodd`})}),Os=e=>(0,y.jsx)(`svg`,{"aria-hidden":`true`,fill:`none`,height:16,role:`presentation`,viewBox:`0 0 16 16`,width:16,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,y.jsx)(`path`,{clipRule:`evenodd`,d:`M11.5 7a4.5 4.5 0 1 1-9 0a4.5 4.5 0 0 1 9 0m-.82 4.74a6 6 0 1 1 1.06-1.06l2.79 2.79a.75.75 0 1 1-1.06 1.06z`,fill:`currentColor`,fillRule:`evenodd`})}),ks=(0,o.createContext)({}),As=({children:e,className:t,variant:n=`default`,...r})=>{let i=o.useMemo(()=>({variant:n}),[n]),a=(0,o.useMemo)(()=>lr({className:t,variant:n}),[t,n]);return(0,y.jsx)(ks,{value:i,children:(0,y.jsx)(S.div,{className:a,"data-slot":`surface`,...r,children:e})})};As.displayName=`HeroUI.Surface`;var js=(0,o.createContext)({placement:`bottom`}),Ms=(0,o.forwardRef)(function(e,t){[e,t]=G(e,t,js);let n=e.placement,r={position:`absolute`,transform:n===`top`||n===`bottom`?`translateX(-50%)`:`translateY(-50%)`};n!=null&&(r[n]=`100%`);let i=W({...e,defaultClassName:`react-aria-OverlayArrow`,values:{placement:n}});i.style&&Object.keys(i.style).forEach(e=>i.style[e]===void 0&&delete i.style[e]);let a=q(e);return o.createElement(K.div,{...a,...i,style:{...r,...i.style},ref:t,"data-placement":n})}),Ns=class{constructor(e,t,n,r){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=e=>{if(e.nodeType===Node.ELEMENT_NODE){let t=e.shadowRoot;if(t){let e=this._doc.createTreeWalker(t,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(e),NodeFilter.FILTER_ACCEPT}if(typeof this.filter==`function`)return this.filter(e);if(this.filter?.acceptNode)return this.filter.acceptNode(e);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_SKIP},this._doc=e,this.root=t,this.filter=r??null,this.whatToShow=n??NodeFilter.SHOW_ALL,this._currentNode=t,this._walkerStack.unshift(e.createTreeWalker(t,n,this._acceptNode));let i=t.shadowRoot;if(i){let e=this._doc.createTreeWalker(i,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(e)}}get currentNode(){return this._currentNode}set currentNode(e){if(!Y(this.root,e))throw Error(`Cannot set currentNode to a node that is not contained by the root node.`);let t=[],n=e,r=e;for(this._currentNode=e;n&&n!==this.root;)if(n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let e=n,i=this._doc.createTreeWalker(e,this.whatToShow,{acceptNode:this._acceptNode});t.push(i),i.currentNode=r,this._currentSetFor.add(i),n=r=e.host}else n=n.parentNode;let i=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});t.push(i),i.currentNode=r,this._currentSetFor.add(i),this._walkerStack=t}get doc(){return this._doc}firstChild(){let e=this.currentNode,t=this.nextNode();return Y(e,t)?(t&&(this.currentNode=t),t):(this.currentNode=e,null)}lastChild(){let e=this._walkerStack[0].lastChild();return e&&(this.currentNode=e),e}nextNode(){let e=this._walkerStack[0].nextNode();if(e){if(e.shadowRoot){let t;if(typeof this.filter==`function`?t=this.filter(e):this.filter?.acceptNode&&(t=this.filter.acceptNode(e)),t===NodeFilter.FILTER_ACCEPT)return this.currentNode=e,e;let n=this.nextNode();return n&&(this.currentNode=n),n}return e&&(this.currentNode=e),e}if(this._walkerStack.length>1){this._walkerStack.shift();let e=this.nextNode();return e&&(this.currentNode=e),e}return null}previousNode(){let e=this._walkerStack[0];if(e.currentNode===e.root){if(this._currentSetFor.has(e)){if(this._currentSetFor.delete(e),this._walkerStack.length>1){this._walkerStack.shift();let e=this.previousNode();return e&&(this.currentNode=e),e}return null}return null}let t=e.previousNode();if(t){if(t.shadowRoot){let e;if(typeof this.filter==`function`?e=this.filter(t):this.filter?.acceptNode&&(e=this.filter.acceptNode(t)),e===NodeFilter.FILTER_ACCEPT)return t&&(this.currentNode=t),t;let n=this.lastChild();return n&&(this.currentNode=n),n}return t&&(this.currentNode=t),t}if(this._walkerStack.length>1){this._walkerStack.shift();let e=this.previousNode();return e&&(this.currentNode=e),e}return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}};function Ps(e,t,n,r){return zi()?new Ns(e,t,n,r):e.createTreeWalker(t,n,r)}var Fs=typeof HTMLElement<`u`&&`inert`in HTMLElement.prototype;function Is(e){return e.dataset.liveAnnouncer===`true`||e.dataset.reactAriaTopLayer!==void 0}var Ls=new WeakMap,Rs=[];function zs(e,t){let n=ji(e?.[0]),r=t instanceof n.Element?{root:t}:t,i=r?.root??document.body,a=r?.shouldUseInert&&Fs,o=new Set(e),s=new Set,c=e=>a&&e instanceof n.HTMLElement?e.inert:e.getAttribute(`aria-hidden`)===`true`,l=(e,t)=>{a&&e instanceof n.HTMLElement?e.inert=t:t?e.setAttribute(`aria-hidden`,`true`):(e.removeAttribute(`aria-hidden`),e instanceof n.HTMLElement&&(e.inert=!1))},u=new Set;if(zi()){let t=i.getRootNode();for(let n of e){let e=n.getRootNode();for(;Fi(e)&&e!==t;)u.add(e),e=e.host.getRootNode()}}let d=e=>{for(let t of e.querySelectorAll(`[data-live-announcer], [data-react-aria-top-layer]`))o.add(t);let t=e=>{if(s.has(e)||o.has(e)||e.parentElement&&s.has(e.parentElement)&&e.parentElement.getAttribute(`role`)!==`row`)return NodeFilter.FILTER_REJECT;for(let t of o)if(Y(e,t))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},n=Ps(J(e),e,NodeFilter.SHOW_ELEMENT,{acceptNode:t}),r=t(e);if(r===NodeFilter.FILTER_ACCEPT&&f(e),r!==NodeFilter.FILTER_REJECT){let e=n.nextNode();for(;e!=null;)f(e),e=n.nextNode()}},f=e=>{let t=Ls.get(e)??0;c(e)&&t===0||(t===0&&l(e,!0),s.add(e),Ls.set(e,t+1))};Rs.length&&Rs[Rs.length-1].disconnect(),d(i);let p=new MutationObserver(e=>{for(let t of e)if(t.type===`childList`){if(t.target.isConnected&&![...o,...s].some(e=>Y(e,t.target)))for(let e of t.addedNodes)(e instanceof HTMLElement||e instanceof SVGElement)&&Is(e)?o.add(e):e instanceof Element&&d(e);if(zi()){for(let e of u)if(!e.isConnected){p.disconnect();break}}}});p.observe(i,{childList:!0,subtree:!0});let m=new Set;if(zi())for(let e of u){let t=new MutationObserver(e=>{for(let t of e)if(t.type===`childList`){if(t.target.isConnected&&![...o,...s].some(e=>Y(e,t.target)))for(let e of t.addedNodes)(e instanceof HTMLElement||e instanceof SVGElement)&&Is(e)?o.add(e):e instanceof Element&&d(e);if(zi()){for(let e of u)if(!e.isConnected){p.disconnect();break}}}});t.observe(e,{childList:!0,subtree:!0}),m.add(t)}let h={visibleNodes:o,hiddenNodes:s,observe(){p.observe(i,{childList:!0,subtree:!0})},disconnect(){p.disconnect()}};return Rs.push(h),()=>{if(p.disconnect(),zi())for(let e of m)e.disconnect();for(let e of s){let t=Ls.get(e);t!=null&&(t===1?(l(e,!1),Ls.delete(e)):Ls.set(e,t-1))}h===Rs[Rs.length-1]?(Rs.pop(),Rs.length&&Rs[Rs.length-1].observe()):Rs.splice(Rs.indexOf(h),1)}}function Bs(e){let t=Rs[Rs.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}var Vs={top:`top`,bottom:`top`,left:`left`,right:`left`},Hs={top:`bottom`,bottom:`top`,left:`right`,right:`left`},Us={top:`left`,left:`top`},Ws={top:`height`,left:`width`},Gs={width:`totalWidth`,height:`totalHeight`},Ks={},qs=()=>typeof document<`u`?window.visualViewport:null;function Js(e,t){let n=0,r=0,i=0,a=0,o=0,s=0,c={},l=(t?.scale??1)>1;if(e.tagName===`BODY`||e.tagName===`HTML`){let l=document.documentElement;i=l.clientWidth,a=l.clientHeight,n=t?.width??i,r=t?.height??a,c.top=l.scrollTop||e.scrollTop,c.left=l.scrollLeft||e.scrollLeft,t&&(o=Math.max(0,t.pageTop-(c.top??0)),s=Math.max(0,t.pageLeft-(c.left??0)))}else({width:n,height:r,top:o,left:s}=ac(e,!1)),c.top=e.scrollTop,c.left=e.scrollLeft,i=n,a=r;return da()&&(e.tagName===`BODY`||e.tagName===`HTML`)&&l&&(c.top=0,c.left=0,o=t?.pageTop??0,s=t?.pageLeft??0),{width:n,height:r,totalWidth:i,totalHeight:a,scroll:c,top:o,left:s}}function Ys(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function Xs(e,t,n,r,i,a,o){let s=i.scroll[e]??0,c=r[Ws[e]],l=o[e]+r.scroll[Vs[e]]+a,u=o[e]+r.scroll[Vs[e]]+c-a,d=t-s+r.scroll[Vs[e]]+o[e]-r[Vs[e]],f=t-s+n+r.scroll[Vs[e]]+o[e]-r[Vs[e]];return d<l?l-d:f>u?Math.max(u-f,l-d):0}function Zs(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 Qs(e){if(Ks[e])return Ks[e];let[t,n]=e.split(` `),r=Vs[t]||`right`,i=Us[r];Vs[n]||(n=`center`);let a=Ws[r],o=Ws[i];return Ks[e]={placement:t,crossPlacement:n,axis:r,crossAxis:i,size:a,crossSize:o},Ks[e]}function $s(e,t,n,r,i,a,o,s,c,l,u){let{placement:d,crossPlacement:f,axis:p,crossAxis:m,size:h,crossSize:g}=r,_={};_[m]=e[m]??0,f===`center`?_[m]+=((e[g]??0)-(n[g]??0))/2:f!==m&&(_[m]+=(e[g]??0)-(n[g]??0)),_[m]+=a;let v=e[m]-n[g]+c+l,y=e[m]+e[g]-c-l;if(_[m]=xi(_[m],v,y),d===p){let t=s?u[h]:u[Gs[h]];_[Hs[p]]=Math.floor(t-e[p]+i)}else _[p]=Math.floor(e[p]+e[h]+i);return _}function ec(e,t,n,r,i,a,o,s,c,l,u){let d=(e.top==null?c[Gs.height]-(e.bottom??0)-o:e.top)-(c.scroll.top??0),f=l?n.top:0,p={top:Math.max(t.top+f,(u?.offsetTop??t.top)+f),bottom:Math.min(t.top+t.height+f,(u?.offsetTop??0)+(u?.height??0))};return s===`top`?Math.max(0,d+o-p.top-((i.top??0)+(i.bottom??0)+a)):Math.max(0,p.bottom-d-((i.top??0)+(i.bottom??0)+a))}function tc(e,t,n,r,i,a,o,s){let{placement:c,axis:l,size:u}=a;return c===l?Math.max(0,n[l]-(o.scroll[l]??0)-(e[l]+(s?t[l]:0))-(r[l]??0)-r[Hs[l]]-i):Math.max(0,e[u]+e[l]+(s?t[l]:0)-n[l]-n[u]+(o.scroll[l]??0)-(r[l]??0)-r[Hs[l]]-i)}function nc(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_){let v=Qs(e),{size:y,crossAxis:b,crossSize:x,placement:S,crossPlacement:C}=v,w=$s(t,s,n,v,u,d,l,f,m,h,c),T=u,E=tc(s,l,t,i,a+u,v,c,g);if(o&&n[y]>E){let e=Qs(`${Hs[S]} ${C}`),r=$s(t,s,n,e,u,d,l,f,m,h,c);tc(s,l,t,i,a+u,e,c,g)>E&&(v=e,w=r,T=u)}let D=`bottom`;v.axis===`top`?v.placement===`top`?D=`top`:v.placement===`bottom`&&(D=`bottom`):v.crossAxis===`top`&&(v.crossPlacement===`top`?D=`bottom`:v.crossPlacement===`bottom`&&(D=`top`));let O=Xs(b,w[b],n[x],s,c,a,l);w[b]+=O;let k=ec(w,s,l,f,i,a,n.height,D,c,g,_);p&&p<k&&(k=p),n.height=Math.min(n.height,k),w=$s(t,s,n,v,T,d,l,f,m,h,c),O=Xs(b,w[b],n[x],s,c,a,l),w[b]+=O;let A={},j=t[b]-w[b]-i[Vs[b]],M=j+.5*t[x],N=m/2+h,ee=Vs[b]===`left`?(i.left??0)+(i.right??0):(i.top??0)+(i.bottom??0),te=n[x]-ee-m/2-h;A[b]=xi(xi(M,t[b]+m/2-(w[b]+i[Vs[b]]),t[b]+t[x]-m/2-(w[b]+i[Vs[b]])),N,te),{placement:S,crossPlacement:C}=v,m?j=A[b]:C===`right`?j+=t[x]:C===`center`&&(j+=t[x]/2);let P=S===`left`||S===`top`?n[y]:0,ne={x:S===`top`||S===`bottom`?j:P,y:S===`left`||S===`right`?j:P};return{position:w,maxHeight:k,arrowOffsetLeft:A.left,arrowOffsetTop:A.top,placement:S,triggerAnchorPoint:ne}}function rc(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:i,padding:a,shouldFlip:o,boundaryElement:s,offset:c,crossOffset:l,maxHeight:u,arrowSize:d=0,arrowBoundaryOffset:f=0,targetRect:p}=e,m=qs(),h=r instanceof HTMLElement?sc(r):document.documentElement,g=h===document.documentElement,_=window.getComputedStyle(h).position,v=!!_&&_!==`static`,y=g?ac(n,!1,p):oc(n,h,!1,p);if(!g){let{marginTop:e,marginLeft:t}=window.getComputedStyle(n);y.top+=parseInt(e,10)||0,y.left+=parseInt(t,10)||0}let b=ac(r,!0),x=Zs(r);b.width+=(x.left??0)+(x.right??0),b.height+=(x.top??0)+(x.bottom??0);let S=Ys(i),C=Js(s,m),w=Js(h,m),T;if((s.tagName===`BODY`||s.tagName===`HTML`)&&!g){let e=ic(h,!1);T={top:-(e.top-C.top),left:-(e.left-C.left),width:0,height:0}}else T=(s.tagName===`BODY`||s.tagName===`HTML`)&&g?{top:0,left:0,width:0,height:0}:oc(s,h,!1);let E=Y(s,h);return nc(t,y,b,S,x,a,o,C,w,T,c,l,v,u,d,f,E,m)}function ic(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 ac(e,t,n){let{top:r,left:i,width:a,height:o}=n||ic(e,t),{scrollTop:s,scrollLeft:c,clientTop:l,clientLeft:u}=document.documentElement;return{top:r+s-l,left:i+c-u,width:a,height:o}}function oc(e,t,n,r){let i=window.getComputedStyle(e),a;if(i.position===`fixed`)a=r||ic(e,n);else{a=ac(e,n,r);let i=ac(t,n),o=window.getComputedStyle(t);i.top+=(parseInt(o.borderTopWidth,10)||0)-t.scrollTop,i.left+=(parseInt(o.borderLeftWidth,10)||0)-t.scrollLeft,a.top-=i.top,a.left-=i.left}return a.top-=parseInt(i.marginTop,10)||0,a.left-=parseInt(i.marginLeft,10)||0,a}function sc(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position===`static`&&!cc(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!cc(t);)t=t.parentElement;return t||document.documentElement}function cc(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`}var lc=new WeakMap;function uc(e){let{triggerRef:t,isOpen:n,onClose:r}=e;(0,o.useEffect)(()=>!n||r===null?void 0:Ii(Bi(t.current),`scroll`,e=>{let n=Z(e);if(!t.current||n instanceof Node&&!Y(n,t.current)||n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)return;let i=r||lc.get(t.current);i&&i()},!0),[n,r,t])}function dc(){return window.ResizeObserver!==void 0}function fc(e){let{ref:t,box:n,onResize:r}=e,i=Po(r);(0,o.useEffect)(()=>{let e=t?.current;if(e){if(dc()){let t=new window.ResizeObserver(e=>{e.length&&i()});return t.observe(e,{box:n}),()=>{e&&t.unobserve(e)}}return window.addEventListener(`resize`,i,!1),()=>{window.removeEventListener(`resize`,i,!1)}}},[t,n])}var pc=typeof document<`u`?window.visualViewport:null;function mc(e){let{direction:t}=mi(),{arrowSize:n,targetRef:r,overlayRef:i,arrowRef:a,scrollRef:s=i,placement:c=`bottom`,containerPadding:l=12,shouldFlip:u=!0,boundaryElement:d=typeof document<`u`?document.body:null,offset:f=0,crossOffset:p=0,shouldUpdatePosition:m=!0,isOpen:h=!0,onClose:g,maxHeight:_,arrowBoundaryOffset:v=0,getTargetRect:y}=e,[b,x]=(0,o.useState)(null),S=[m,c,i.current,r.current,a?.current,s.current,l,u,d,f,p,h,t,_,v,n],C=(0,o.useRef)(pc?.scale);(0,o.useEffect)(()=>{h&&(C.current=pc?.scale)},[h]);let w=(0,o.useCallback)(()=>{if(m===!1||!h||!i.current||!r.current||!d||pc?.scale!==C.current)return;let e=null;if(s.current&&Vi(s.current)){let t=X()?.getBoundingClientRect(),n=s.current.getBoundingClientRect();e={type:`top`,offset:(t?.top??0)-n.top},e.offset>n.height/2&&(e.type=`bottom`,e.offset=(t?.bottom??0)-n.bottom)}let o=i.current;!_&&i.current&&(o.style.top=`0px`,o.style.bottom=``,o.style.maxHeight=(window.visualViewport?.height??window.innerHeight)+`px`);let g=rc({placement:gc(c,t),overlayNode:i.current,targetNode:r.current,scrollNode:s.current||i.current,padding:l,shouldFlip:u,boundaryElement:d,offset:f,crossOffset:p,maxHeight:_,arrowSize:n??(a?.current?ic(a.current,!0).width:0),arrowBoundaryOffset:v,targetRect:y?.(r.current)});if(!g.position)return;o.style.top=``,o.style.bottom=``,o.style.left=``,o.style.right=``,Object.keys(g.position).forEach(e=>o.style[e]=g.position[e]+`px`),o.style.maxHeight=g.maxHeight==null?``:g.maxHeight+`px`;let b=X();if(e&&b&&s.current){let t=b.getBoundingClientRect(),n=s.current.getBoundingClientRect(),r=t[e.type]-n[e.type];s.current.scrollTop+=r-e.offset}x(g)},S);H(w,S),hc(w),fc({ref:i,onResize:w}),fc({ref:r,onResize:w});let T=(0,o.useRef)(!1);H(()=>{let e,t=()=>{T.current=!0,clearTimeout(e),e=setTimeout(()=>{T.current=!1},500),w()},n=()=>{T.current&&t()};pc?.addEventListener(`resize`,t),pc?.addEventListener(`scroll`,n);let r=Ii(Bi(window),`scroll`,n);return()=>{pc?.removeEventListener(`resize`,t),pc?.removeEventListener(`scroll`,n),r()}},[w]);let E=(0,o.useCallback)(()=>{T.current||g?.()},[g,T]);return uc({triggerRef:r,isOpen:h,onClose:g&&E}),{overlayProps:{style:{position:b?`absolute`:`fixed`,top:b?void 0:0,left:b?void 0:0,zIndex:1e5,...b?.position,maxHeight:b?.maxHeight??`100vh`}},placement:b?.placement??null,triggerAnchorPoint:b?.triggerAnchorPoint??null,arrowProps:{"aria-hidden":`true`,role:`presentation`,style:{left:b?.arrowOffsetLeft,top:b?.arrowOffsetTop}},updatePosition:w}}function hc(e){H(()=>(window.addEventListener(`resize`,e,!1),()=>{window.removeEventListener(`resize`,e,!1)}),[e])}function gc(e,t){return t===`rtl`?e.replace(`start`,`right`).replace(`end`,`left`):e.replace(`start`,`left`).replace(`end`,`right`)}var _c=o.createContext(null),vc=`react-aria-focus-scope-restore`,Q=null;function yc(e){let{children:t,contain:n,restoreFocus:r,autoFocus:i}=e,a=(0,o.useRef)(null),s=(0,o.useRef)(null),c=(0,o.useRef)([]),{parentNode:l}=(0,o.useContext)(_c)||{},u=(0,o.useMemo)(()=>new Vc({scopeRef:c}),[c]);H(()=>{let e=l||Hc.root;if(Hc.getTreeNode(e.scopeRef)&&Q&&!Ac(Q,e.scopeRef)){let t=Hc.getTreeNode(Q);t&&(e=t)}e.addChild(u),Hc.addNode(u)},[u,l]),H(()=>{let e=Hc.getTreeNode(c);e&&(e.contain=!!n)},[n]),H(()=>{let e=a.current?.nextSibling,t=[],n=e=>e.stopPropagation();for(;e&&e!==s.current;)t.push(e),e.addEventListener(vc,n),e=e.nextSibling;return c.current=t,()=>{for(let e of t)e.removeEventListener(vc,n)}},[t]),Fc(c,r,n),Tc(c,n),Lc(c,r,n),Pc(c,i),(0,o.useEffect)(()=>{let e=X(J(c.current?c.current[0]:void 0)),t=null;if(Dc(e,c.current)){for(let n of Hc.traverse())n.scopeRef&&Dc(e,n.scopeRef.current)&&(t=n);t===Hc.getTreeNode(c)&&(Q=t.scopeRef)}},[c]),H(()=>()=>{let e=Hc.getTreeNode(c)?.parent?.scopeRef??null;(c===Q||Ac(c,Q))&&(!e||Hc.getTreeNode(e))&&(Q=e),Hc.removeTreeNode(c)},[c]);let d=(0,o.useMemo)(()=>bc(c),[]),f=(0,o.useMemo)(()=>({focusManager:d,parentNode:u}),[u,d]);return o.createElement(_c.Provider,{value:f},o.createElement(`span`,{"data-focus-scope-start":!0,hidden:!0,ref:a}),t,o.createElement(`span`,{"data-focus-scope-end":!0,hidden:!0,ref:s}))}function bc(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:o}=t,s=r||X(J(n[0]??void 0)),c=n[0].previousElementSibling,l=zc(xc(n),{tabbable:i,accept:o},n);l.currentNode=Dc(s,n)?s:c;let u=l.nextNode();return!u&&a&&(l.currentNode=c,u=l.nextNode()),u&&jc(u,!0),u},focusPrevious(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:o}=t,s=r||X(J(n[0]??void 0)),c=n[n.length-1].nextElementSibling,l=zc(xc(n),{tabbable:i,accept:o},n);l.currentNode=Dc(s,n)?s:c;let u=l.previousNode();return!u&&a&&(l.currentNode=c,u=l.previousNode()),u&&jc(u,!0),u},focusFirst(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=zc(xc(n),{tabbable:r,accept:i},n);a.currentNode=n[0].previousElementSibling;let o=a.nextNode();return o&&jc(o,!0),o},focusLast(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=zc(xc(n),{tabbable:r,accept:i},n);a.currentNode=n[n.length-1].nextElementSibling;let o=a.previousNode();return o&&jc(o,!0),o}}}function xc(e){return e[0].parentElement}function Sc(e){let t=Hc.getTreeNode(Q);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function Cc(e){if(!e.form)return Array.from(J(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter(e=>!e.form);let t=e.form.elements.namedItem(e.name),n=ji(e);return t instanceof n.RadioNodeList?Array.from(t).filter(e=>e instanceof n.HTMLInputElement):t instanceof n.HTMLInputElement?[t]:[]}function wc(e){if(e.checked)return!0;let t=Cc(e);return t.length>0&&!t.some(e=>e.checked)}function Tc(e,t){let n=(0,o.useRef)(void 0),r=(0,o.useRef)(void 0);H(()=>{let i=e.current;if(!t){r.current&&=(cancelAnimationFrame(r.current),void 0);return}let a=J(i?i[0]:void 0),o=t=>{if(t.key!==`Tab`||t.altKey||t.ctrlKey||t.metaKey||!Sc(e)||t.isComposing)return;let n=X(a),r=e.current;if(!r||!Dc(n,r))return;let i=zc(xc(r),{tabbable:!0},r);if(!n)return;i.currentNode=n;let o=t.shiftKey?i.previousNode():i.nextNode();o||=(i.currentNode=t.shiftKey?r[r.length-1].nextElementSibling:r[0].previousElementSibling,t.shiftKey?i.previousNode():i.nextNode()),t.preventDefault(),o&&(jc(o,!0),o instanceof ji(o).HTMLInputElement&&o.select())},s=t=>{(!Q||Ac(Q,e))&&Dc(Z(t),e.current)?(Q=e,n.current=Z(t)):Sc(e)&&!Oc(Z(t),e)?n.current?jc(n.current):Q&&Q.current&&Nc(Q.current):Sc(e)&&(n.current=Z(t))},c=t=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let r=Va(),i=(r===`virtual`||r===null)&&pa()&&fa(),o=X(a);if(!i&&o&&Sc(e)&&!Oc(o,e)){Q=e;let r=Z(t);r&&r.isConnected?(n.current=r,jc(n.current)):Q.current&&Nc(Q.current)}})};return a.addEventListener(`keydown`,o,!1),a.addEventListener(`focusin`,s,!1),i?.forEach(e=>e.addEventListener(`focusin`,s,!1)),i?.forEach(e=>e.addEventListener(`focusout`,c,!1)),()=>{a.removeEventListener(`keydown`,o,!1),a.removeEventListener(`focusin`,s,!1),i?.forEach(e=>e.removeEventListener(`focusin`,s,!1)),i?.forEach(e=>e.removeEventListener(`focusout`,c,!1))}},[e,t]),H(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function Ec(e){return Oc(e)}function Dc(e,t){return!e||!t?!1:t.some(t=>Y(t,e))}function Oc(e,t=null){if(e instanceof Element&&e.closest(`[data-react-aria-top-layer]`))return!0;for(let{scopeRef:n}of Hc.traverse(Hc.getTreeNode(t)))if(n&&Dc(e,n.current))return!0;return!1}function kc(e){return Oc(e,Q)}function Ac(e,t){let n=Hc.getTreeNode(t)?.parent;for(;n;){if(n.scopeRef===e)return!0;n=n.parent}return!1}function jc(e,t=!1){if(e!=null&&!t)try{no(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function Mc(e,t=!0){let n=e[0].previousElementSibling,r=xc(e),i=zc(r,{tabbable:t},e);i.currentNode=n;let a=i.nextNode();return t&&!a&&(r=xc(e),i=zc(r,{tabbable:!1},e),i.currentNode=n,a=i.nextNode()),a}function Nc(e,t=!0){jc(Mc(e,t))}function Pc(e,t){let n=o.useRef(t);(0,o.useEffect)(()=>{n.current&&(Q=e,!Dc(X(J(e.current?e.current[0]:void 0)),Q.current)&&e.current&&Nc(e.current)),n.current=!1},[e])}function Fc(e,t,n){H(()=>{if(t||n)return;let r=e.current,i=J(r?r[0]:void 0),a=t=>{let n=Z(t);Dc(n,e.current)?Q=e:Ec(n)||(Q=null)};return i.addEventListener(`focusin`,a,!1),r?.forEach(e=>e.addEventListener(`focusin`,a,!1)),()=>{i.removeEventListener(`focusin`,a,!1),r?.forEach(e=>e.removeEventListener(`focusin`,a,!1))}},[e,t,n])}function Ic(e){let t=Hc.getTreeNode(Q);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return t?.scopeRef===e}function Lc(e,t,n){let r=(0,o.useRef)(typeof document<`u`?X(J(e.current?e.current[0]:void 0)):null);H(()=>{let r=e.current,i=J(r?r[0]:void 0);if(!t||n)return;let a=()=>{(!Q||Ac(Q,e))&&Dc(X(i),e.current)&&(Q=e)};return i.addEventListener(`focusin`,a,!1),r?.forEach(e=>e.addEventListener(`focusin`,a,!1)),()=>{i.removeEventListener(`focusin`,a,!1),r?.forEach(e=>e.removeEventListener(`focusin`,a,!1))}},[e,n]),H(()=>{let r=J(e.current?e.current[0]:void 0);if(!t)return;let i=t=>{if(t.key!==`Tab`||t.altKey||t.ctrlKey||t.metaKey||!Sc(e)||t.isComposing)return;let n=r.activeElement;if(!Oc(n,e)||!Ic(e))return;let i=Hc.getTreeNode(e);if(!i)return;let a=i.nodeToRestore,o=zc(r.body,{tabbable:!0});o.currentNode=n;let s=t.shiftKey?o.previousNode():o.nextNode();if((!a||!a.isConnected||a===r.body)&&(a=void 0,i.nodeToRestore=void 0),(!s||!Oc(s,e))&&a){o.currentNode=a;do s=t.shiftKey?o.previousNode():o.nextNode();while(Oc(s,e));t.preventDefault(),t.stopPropagation(),s?jc(s,!0):Ec(a)?jc(a,!0):n.blur()}};return n||r.addEventListener(`keydown`,i,!0),()=>{n||r.removeEventListener(`keydown`,i,!0)}},[e,t,n]),H(()=>{let n=J(e.current?e.current[0]:void 0);if(!t)return;let i=Hc.getTreeNode(e);if(i)return i.nodeToRestore=r.current??void 0,()=>{let r=Hc.getTreeNode(e);if(!r)return;let i=r.nodeToRestore,a=X(n);if(t&&i&&(a&&Oc(a,e)||a===n.body&&Ic(e))){let t=Hc.clone();requestAnimationFrame(()=>{if(n.activeElement===n.body){let n=t.getTreeNode(e);for(;n;){if(n.nodeToRestore&&n.nodeToRestore.isConnected){Rc(n.nodeToRestore);return}n=n.parent}for(n=t.getTreeNode(e);n;){if(n.scopeRef&&n.scopeRef.current&&Hc.getTreeNode(n.scopeRef)){let e=Mc(n.scopeRef.current,!0);if(e){Rc(e);return}}n=n.parent}}})}}},[e,t])}function Rc(e){e.dispatchEvent(new CustomEvent(vc,{bubbles:!0,cancelable:!0}))&&jc(e)}function zc(e,t,n){let r=t?.tabbable?Xi:Yi,i=J(e?.nodeType===Node.ELEMENT_NODE?e:null),a=Ps(i,e||i,NodeFilter.SHOW_ELEMENT,{acceptNode(e){return Y(t?.from,e)||t?.tabbable&&e.tagName===`INPUT`&&e.getAttribute(`type`)===`radio`&&(!wc(e)||a.currentNode.tagName===`INPUT`&&a.currentNode.type===`radio`&&a.currentNode.name===e.name)?NodeFilter.FILTER_REJECT:r(e)&&(!n||Dc(e,n))&&(!t?.accept||t.accept(e))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(a.currentNode=t.from),a}var Bc=class e{constructor(){this.fastMap=new Map,this.root=new Vc({scopeRef:null}),this.fastMap.set(null,this.root)}get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,n){let r=this.fastMap.get(t??null);if(!r)return;let i=new Vc({scopeRef:e});r.addChild(i),i.parent=r,this.fastMap.set(e,i),n&&(i.nodeToRestore=n)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(e===null)return;let t=this.fastMap.get(e);if(!t)return;let n=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&Dc(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let r=t.children;n&&(n.removeChild(t),r.size>0&&r.forEach(e=>n&&n.addChild(e))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(e.scopeRef!=null&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){let t=new e;for(let e of this.traverse())t.addTreeNode(e.scopeRef,e.parent?.scopeRef??null,e.nodeToRestore);return t}},Vc=class{constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}},Hc=new Bc;function Uc(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=e,a=(0,o.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),s=Po(e=>{n&&Wc(e,t)&&(i&&i(e),a.current.isPointerDown=!0)}),c=Po(e=>{n&&n(e)});(0,o.useEffect)(()=>{let e=a.current;if(r)return;let n=t.current,i=J(n);if(typeof PointerEvent<`u`){let n=n=>{e.isPointerDown&&Wc(n,t)&&c(n),e.isPointerDown=!1};return i.addEventListener(`pointerdown`,s,!0),i.addEventListener(`click`,n,!0),()=>{i.removeEventListener(`pointerdown`,s,!0),i.removeEventListener(`click`,n,!0)}}},[t,r])}function Wc(e,t){if(e.button>0)return!1;let n=Z(e);if(n){let e=n.ownerDocument;if(!e||!Y(e.documentElement,n)||n.closest(`[data-react-aria-top-layer]`))return!1}return t.current?!e.composedPath().includes(t.current):!1}var Gc=[];function Kc(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:a=!1,isKeyboardDismissDisabled:s=!1,shouldCloseOnInteractOutside:c}=e,l=(0,o.useRef)(void 0);(0,o.useEffect)(()=>{if(i&&!Gc.includes(t))return Gc.push(t),()=>{let e=Gc.indexOf(t);e>=0&&Gc.splice(e,1)}},[i,t]);let u=()=>{Gc[Gc.length-1]===t&&n&&n()},d=e=>{let n=Gc[Gc.length-1];l.current=n,(!c||c(Z(e)))&&n===t&&e.stopPropagation()},f=e=>{(!c||c(Z(e)))&&(Gc[Gc.length-1]===t&&e.stopPropagation(),l.current===t&&u()),l.current=void 0},{keyboardProps:p}=vo({shortcuts:{Escape:()=>{if(!s){u();return}return!1}}});Uc({ref:t,onInteractOutside:a&&i?f:void 0,onInteractOutsideStart:d});let{focusWithinProps:m}=Xo({isDisabled:!r,onBlurWithin:e=>{e.relatedTarget&&!kc(e.relatedTarget)&&(!c||c(e.relatedTarget))&&n?.()}});return{overlayProps:{...p,...m},underlayProps:{}}}function qc(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 Jc(e,t){let n=e;for(qc(n,t)&&(n=n.parentElement);n&&!qc(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}var Yc=100,Xc=600,$={isOpen:!1,screenWidth:0,screenHeight:0,screenAngle:0,screenTimeout:0,startTimeStamp:0,endTimeStamp:0,resizeTimeStamp:0,resizeTimeout:0},Zc=new Set([`checkbox`,`radio`,`range`,`color`,`file`,`image`,`button`,`submit`,`reset`]);function Qc(){let e=Number(window.visualViewport?.width??window.innerWidth),t=Number(window.visualViewport?.height??window.innerHeight),n=Number(window.visualViewport?.scale??1);return{width:e*n,height:t*n,angle:window.screen.orientation?.angle??0}}function $c(e){$.resizeTimeStamp<=e.timeStamp+50&&($.resizeTimeStamp=e.timeStamp+150,window.clearTimeout($.resizeTimeout),$.resizeTimeout=window.setTimeout(el,150))}function el(){let e=ko(`viewport`);if(pa()&&e?.includes(`overlays-content`))return;let t=performance.now(),n=Qc(),r=t-$.startTimeStamp,i=$.screenHeight-n.height,a=$.screenAngle-n.angle;Math.abs(a)%180&&$.screenWidth-n.height<Yc&&($.screenWidth=n.width,$.screenHeight=n.height,$.screenAngle=n.angle,i=0),r>Xc&&(window.clearTimeout($.screenTimeout),$.screenTimeout=window.setTimeout(()=>{let e=al(document.hasFocus()?X():null),t=Qc();Math.abs($.screenAngle-t.angle)%180||$.isOpen&&e||($.screenWidth=t.width,$.screenHeight=t.height,$.screenAngle=t.angle,$.isOpen=!1)},Xc)),r<=Xc&&i>=Yc&&($.endTimeStamp=t),$.isOpen=i>=Yc}function tl(){let e=Qc(),t=$.screenAngle-e.angle;if(Math.abs(t)%180&&!$.isOpen){let e=$.screenWidth;$.screenWidth=$.screenHeight,$.screenHeight=e}$.isOpen||($.screenAngle=e.angle)}function nl(e){let t=al(Z(e)),n=performance.now(),r=Qc(),i=$.screenHeight-r.height;i<Yc&&t&&($.screenWidth=r.width,$.screenHeight=r.height,$.screenAngle=r.angle,$.startTimeStamp=n),t&&window.clearTimeout($.screenTimeout),i>=Yc&&t&&($.endTimeStamp=n)}function rl(){let e=Qc();Ii(window.visualViewport,`resize`,da()?el:$c),Ii(window.screen.orientation,`change`,tl),Ii(window,`focus`,nl,{capture:!0,passive:!0}),$.screenWidth=e.width,$.screenHeight=e.height,$.screenAngle=e.angle}typeof document<`u`&&(document.readyState===`loading`?Ii(document,`DOMContentLoaded`,rl):rl());function il(){let e=ko(`viewport`);return pa()&&e?.includes(`overlays-content`)?!1:$.isOpen?!0:$.startTimeStamp?$.endTimeStamp>=$.startTimeStamp?!0:performance.now()-$.startTimeStamp<=Xc?$.endTimeStamp>0||window.navigator.maxTouchPoints>0:!1:window.navigator.maxTouchPoints>0}function al(e){if(!(e instanceof Element)||!Yi(e))return!1;let t=e instanceof HTMLTextAreaElement,n=e instanceof HTMLElement&&e.isContentEditable,r=e instanceof HTMLInputElement&&!Zc.has(e.type);return t||n||r}function ol(e){return oa()?e.metaKey:e.ctrlKey}function sl(){return $.isOpen}var cl=200,ll=50,ul=600,dl=new WeakMap,fl=new Set,pl=new Set;function ml(e,t){let n=sl();if(e!==n||t.aborted)for(let e of pl)e(n),pl.delete(e);if(!e&&n&&da()&&!t.aborted){window.clearInterval(dl.get(window)),dl.set(window,hl(cl));return}if(e!==n||t.aborted)for(let e of fl)e(n),fl.delete(e);(pl.size+fl.size<=0||t.aborted)&&(window.clearInterval(dl.get(window)),dl.delete(window))}function hl(e=ul){return window.setInterval(ml,ll,sl(),AbortSignal.timeout(e))}function gl(e){if(!il())return e(!1),()=>{};let t=window.requestAnimationFrame(()=>{t=window.requestAnimationFrame(()=>{let t=al(document.hasFocus()?X():null);if(sl()===t||sl()&&!t)return e(t);pl.add(e),dl.has(window)||dl.set(window,hl())})});return()=>{window.cancelAnimationFrame(t),pl.delete(e)}}function _l(e){if(!il())return e(!1),()=>{};let t=window.requestAnimationFrame(()=>{t=window.requestAnimationFrame(()=>{let t=al(document.hasFocus()?X():null);if(sl()===t)return e(t);fl.add(e),dl.has(window)||dl.set(window,hl())})});return()=>{window.cancelAnimationFrame(t),fl.delete(e)}}var vl=typeof document<`u`&&window.visualViewport,yl=0,bl;function xl(e={}){let{isDisabled:t,UNSTABLE_overrideFocus:n}=e;H(()=>{if(!t)return yl++,yl===1&&(bl=la()&&da()?Cl():Sl(n)),()=>{yl--,yl===0&&bl()}},[t,n])}function Sl(e){let t=window.innerWidth-document.documentElement.clientWidth;return fr(t>0&&(`scrollbarGutter`in document.documentElement.style?Li(document.documentElement,`scrollbar-gutter`,`stable`):Li(document.documentElement,`padding-right`,`${t}px`)),Li(document.documentElement,`overflow`,`hidden`),e&&Tl(),e&&il()&&wl())}function Cl(){let e=Li(document.documentElement,`overflow`,`hidden`),t,n=!1,r=e=>{let r=Z(e);t=qc(r,!0)?r:Jc(r,!0),n=!1;let i=r.ownerDocument.defaultView.getSelection();i&&!i.isCollapsed&&i.containsNode(r,!0)&&(n=!0),e.composedPath().some(e=>e instanceof HTMLInputElement&&e.type===`range`)&&(n=!0),`selectionStart`in r&&`selectionEnd`in r&&r.selectionStart<r.selectionEnd&&r.ownerDocument.activeElement===r&&(n=!0)},i=document.createElement(`style`),a=jo();a&&(i.nonce=a),i.textContent=`@layer {
8
+ * {
9
+ overscroll-behavior: contain;
10
+ }
11
+ }`,document.head.prepend(i);let o=e=>{if(!(e.touches.length===2||n)){if(!t||t===document.documentElement||t===document.body){e.preventDefault();return}t.scrollHeight===t.clientHeight&&t.scrollWidth===t.clientWidth&&e.preventDefault()}},s=Tl(),c=fr(Ii(document,`touchstart`,r,{passive:!1,capture:!0}),Ii(document,`touchmove`,o,{passive:!1,capture:!0}),wl());return()=>{e(),c(),i.remove(),s()}}function wl(){return Ii(document,`blur`,e=>{let t=Z(e),n=e.relatedTarget;n&&al(n)?n.focus():n||(t.parentElement?.closest(`[tabindex]`))?.focus({preventScroll:!0})},!0)}function Tl(){let e=HTMLElement.prototype.focus;return Reflect.defineProperty(HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:function(t){if(e.call(this,{...t,preventScroll:!0}),!t||!t.preventScroll){let e=()=>{X()===this&&El(this)};gl(t=>t?e():_l(()=>e()))}}}),()=>{Reflect.defineProperty(HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:e})}}function El(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t&&n.isConnected;){let e=Jc(n);if(e!==document.documentElement&&e!==document.body&&e!==n){let t=e.getBoundingClientRect(),r=n.getBoundingClientRect();if(r.top<t.top||r.bottom>t.top+n.clientHeight){let n=t.bottom;vl&&(n=Math.min(n,vl.offsetTop+vl.height));let i=r.top-t.top-((n-t.top)/2-r.height/2);e.scrollTo({top:Math.max(0,Math.min(e.scrollHeight-e.clientHeight,e.scrollTop+i)),behavior:`smooth`})}}n=e.parentElement}}function Dl(e,t){let{triggerRef:n,popoverRef:r,groupRef:i,isNonModal:a,isKeyboardDismissDisabled:s,shouldCloseOnInteractOutside:c,...l}=e,u=l.trigger===`SubmenuTrigger`,{overlayProps:d,underlayProps:f}=Kc({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!a||u,isKeyboardDismissDisabled:s,shouldCloseOnInteractOutside:c},i??r),{overlayProps:p,arrowProps:m,placement:h,triggerAnchorPoint:g}=mc({...l,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:a&&!u?t.close:null,getTargetRect:l.getTargetRect??(t.point?()=>new DOMRect(t.point.x,t.point.y,0,0):void 0)});xl({isDisabled:a||!t.isOpen}),(0,o.useEffect)(()=>{if(t.isOpen&&r.current)return a?Bs(i?.current??r.current):zs([i?.current??r.current],{shouldUseInert:!0})},[a,t.isOpen,r,i]);let{focusWithinProps:_}=Xo(e);return{popoverProps:U(d,p,_),arrowProps:m,underlayProps:f,placement:h,triggerAnchorPoint:g}}var Ol={};Ol={dismiss:`ØĒØŦØ§Ų‡Ų„`};var kl={};kl={dismiss:`ĐžŅ‚Ņ…Đ˛ŅŠŅ€ĐģŅĐŊĐĩ`};var Al={};Al={dismiss:`Odstranit`};var jl={};jl={dismiss:`Luk`};var Ml={};Ml={dismiss:`Schließen`};var Nl={};Nl={dismiss:`Î‘Ī€ĪŒĪĪÎšĪˆÎˇ`};var Pl={};Pl={dismiss:`Dismiss`};var Fl={};Fl={dismiss:`Descartar`};var Il={};Il={dismiss:`LÃĩpeta`};var Ll={};Ll={dismiss:`Hylkää`};var Rl={};Rl={dismiss:`Rejeter`};var zl={};zl={dismiss:`ה×Ē×ĸלם`};var Bl={};Bl={dismiss:`Odbaci`};var Vl={};Vl={dismiss:`ElutasítÃĄs`};var Hl={};Hl={dismiss:`Ignora`};var Ul={};Ul={dismiss:`閉じる`};var Wl={};Wl={dismiss:`ëŦ´ė‹œ`};var Gl={};Gl={dismiss:`Atmesti`};var Kl={};Kl={dismiss:`NerādÄĢt`};var ql={};ql={dismiss:`Lukk`};var Jl={};Jl={dismiss:`Negeren`};var Yl={};Yl={dismiss:`Zignoruj`};var Xl={};Xl={dismiss:`Descartar`};var Zl={};Zl={dismiss:`Dispensar`};var Ql={};Ql={dismiss:`Revocare`};var $l={};$l={dismiss:`ĐŸŅ€ĐžĐŋŅƒŅŅ‚Đ¸Ņ‚ŅŒ`};var eu={};eu={dismiss:`ZruÅĄiÅĨ`};var tu={};tu={dismiss:`Opusti`};var nu={};nu={dismiss:`Odbaci`};var ru={};ru={dismiss:`Avvisa`};var iu={};iu={dismiss:`Kapat`};var au={};au={dismiss:`ĐĄĐēĐ°ŅŅƒĐ˛Đ°Ņ‚Đ¸`};var ou={};ou={dismiss:`取æļˆ`};var su={};su={dismiss:`關閉`};var cu={};cu={"ar-AE":Ol,"bg-BG":kl,"cs-CZ":Al,"da-DK":jl,"de-DE":Ml,"el-GR":Nl,"en-US":Pl,"es-ES":Fl,"et-EE":Il,"fi-FI":Ll,"fr-FR":Rl,"he-IL":zl,"hr-HR":Bl,"hu-HU":Vl,"it-IT":Hl,"ja-JP":Ul,"ko-KR":Wl,"lt-LT":Gl,"lv-LV":Kl,"nb-NO":ql,"nl-NL":Jl,"pl-PL":Yl,"pt-BR":Xl,"pt-PT":Zl,"ro-RO":Ql,"ru-RU":$l,"sk-SK":eu,"sl-SI":tu,"sr-SP":nu,"sv-SE":ru,"tr-TR":iu,"uk-UA":au,"zh-CN":ou,"zh-TW":su};var lu=Symbol.for(`react-aria.i18n.locale`),uu=Symbol.for(`react-aria.i18n.strings`),du=void 0,fu=class e{constructor(e,t=`en-US`){this.strings=Object.fromEntries(Object.entries(e).filter(([,e])=>e)),this.defaultLocale=t}getStringForLocale(e,t){let n=this.getStringsForLocale(t)[e];if(!n)throw Error(`Could not find intl message ${e} in ${t} locale`);return n}getStringsForLocale(e){let t=this.strings[e];return t||(t=pu(e,this.strings,this.defaultLocale),this.strings[e]=t),t}static getGlobalDictionaryForPackage(t){if(typeof window>`u`)return null;let n=window[lu];if(du===void 0){let t=window[uu];if(!t)return null;du={};for(let r in t)du[r]=new e({[n]:t[r]},n)}let r=du?.[t];if(!r)throw Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}};function pu(e,t,n=`en-US`){if(t[e])return t[e];let r=mu(e),i=hu(e);if(i&&t[`${r}-${i}`])return t[`${r}-${i}`];if(t[r])return t[r];for(let e in t)if(e.startsWith(r+`-`))return t[e];return t[n]}function mu(e){return Intl.Locale?new Intl.Locale(e).language:e.split(`-`)[0]}function hu(e){if(Intl.Locale)return new Intl.Locale(e).script}var gu=new Map,_u=new Map,vu=class{constructor(e,t){this.locale=e,this.strings=t}format(e,t){let n=this.strings.getStringForLocale(e,this.locale);return typeof n==`function`?n(t,this):n}plural(e,t,n=`cardinal`){let r=t[`=`+e];if(r)return typeof r==`function`?r():r;let i=this.locale+`:`+n,a=gu.get(i);return a||(a=new Intl.PluralRules(this.locale,{type:n}),gu.set(i,a)),r=t[a.select(e)]||t.other,typeof r==`function`?r():r}number(e){let t=_u.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),_u.set(this.locale,t)),t.format(e)}select(e,t){let n=e[t]||e.other;return typeof n==`function`?n():n}},yu=new WeakMap;function bu(e){let t=yu.get(e);return t||(t=new fu(e),yu.set(e,t)),t}function xu(e,t){return t&&fu.getGlobalDictionaryForPackage(t)||bu(e)}function Su(e,t){let{locale:n}=mi(),r=xu(e,t);return(0,o.useMemo)(()=>new vu(n,r),[n,r])}var Cu={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 wu(e={}){let{style:t,isFocusable:n}=e,[r,i]=(0,o.useState)(!1),{focusWithinProps:a}=Xo({isDisabled:!n,onFocusWithinChange:e=>i(e)}),s=(0,o.useMemo)(()=>r?t:t?{...Cu,...t}:Cu,[r]);return{visuallyHiddenProps:{...a,style:s}}}function Tu(e){let{children:t,elementType:n=`div`,isFocusable:r,style:i,...a}=e,{visuallyHiddenProps:s}=wu(e);return o.createElement(n,U(a,s),t)}function Eu(e){return e&&e.__esModule?e.default:e}function Du(e){let{onDismiss:t,...n}=e,r=ni(n,Su(Eu(cu),`@react-aria/overlays`).format(`dismiss`)),i=()=>{t&&t()};return o.createElement(Tu,null,o.createElement(`button`,{...r,tabIndex:-1,onClick:i,style:{width:1,height:1}}))}var Ou=o.forwardRef(({children:e,...t},n)=>{let r=(0,o.useRef)(!1),i=(0,o.useContext)(Mo),a=U(i||{},{...t,register(){r.current=!0,i&&i.register()}});return a.ref=Fr(n||i?.ref),yo(i,a.ref),(0,o.useEffect)(()=>{r.current||=!0},[]),o.createElement(Mo.Provider,{value:a},e)});function ku({children:e}){let t=(0,o.useMemo)(()=>({register:()=>{}}),[]);return o.createElement(Mo.Provider,{value:t},e)}var Au=(0,o.createContext)({});function ju(){return(0,o.useContext)(Au)??{}}var Mu=o.createContext(null);function Nu(e){let t=wr(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[i,a]=(0,o.useState)(!1),s=(0,o.useMemo)(()=>({contain:i,setContain:a}),[i,a]),{getContainer:c}=ju();if(!e.portalContainer&&c&&(n=c()),!n)return null;let l=e.children;return e.disableFocusManagement||(l=o.createElement(yc,{restoreFocus:!0,contain:(e.shouldContainFocus||i)&&!r},l)),l=o.createElement(Mu.Provider,{value:s},o.createElement(ku,null,o.createElement(bo.Provider,{value:null},l))),v.createPortal(l,n)}function Pu(){let e=(0,o.useContext)(Mu)?.setContain;H(()=>{e?.(!0)},[e])}function Fu(e){let[t,n]=us(e.isOpen,e.defaultOpen||!1,e.onOpenChange),[r,i]=(0,o.useState)(null);return{isOpen:t,setOpen:n,open:(0,o.useCallback)(()=>{n(!0)},[n]),close:(0,o.useCallback)(()=>{n(!1)},[n]),toggle:(0,o.useCallback)(()=>{n(!t)},[n,t]),point:r,setPoint:i}}function Iu(e,t=!0,n){let[r,i]=(0,o.useState)(!0),a=r&&t;return H(()=>{if(!t&&e.current)return fr(Li(e.current,`opacity`,`0`),Li(e.current,`clip`,`rect(0 0 0 0)`),Li(e.current,`clip-path`,`inset(50%)`),Li(e.current,`mask-image`,`linear-gradient(#0000, #0000)`))},[e,t]),H(()=>{if(a&&e.current&&`getAnimations`in e.current)for(let t of e.current.getAnimations())t instanceof CSSTransition&&t.cancel()},[e,a]),Ru(e,a,n,(0,o.useCallback)(()=>i(!1),[])),a}function Lu(e,t,n){let[r,i]=(0,o.useState)(t?`open`:`closed`);switch(r){case`open`:t||i(`exiting`);break;case`closed`:case`exiting`:t&&i(`open`)}let a=r===`exiting`;return Ru(e,a,n,(0,o.useCallback)(()=>{i(e=>e===`exiting`?`closed`:e)},[])),a}function Ru(e,t,n,r){let i=(0,o.useRef)(null),a=Po(n);H(()=>{if(t&&e.current&&i.current!==t){if(i.current=t,!(`getAnimations`in e.current)){r();return}let n=a?.(e.current),o=e.current.getAnimations().filter(e=>(typeof DocumentTimeline>`u`||e.timeline instanceof DocumentTimeline)&&e.playState===`running`);if(o.length===0&&!n){r();return}Promise.all([n,...o.map(e=>e.finished)]).then(()=>{(0,v.flushSync)(()=>{r()})}).catch(()=>{})}i.current=t},[e,t,r])}var zu=(0,o.createContext)(null),Bu=(0,o.createContext)(null),Vu=(0,o.forwardRef)(function(e,t){[e,t]=G(e,t,zu);let n=(0,o.useContext)(_m),r=Fu(e),i=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,a=Lu(t,i.isOpen),s=e.isExiting||!e.shouldSkipAnimation&&a||!1,c=qr(),{direction:l}=mi();if(c){let t=e.children;return typeof t==`function`&&(t=t({trigger:e.trigger||null,placement:`bottom`,isEntering:!1,isExiting:!1,defaultChildren:null})),o.createElement(o.Fragment,null,t)}return i&&!i.isOpen&&!s?null:o.createElement(Hu,{...e,triggerRef:e.triggerRef,state:i,popoverRef:t,isExiting:s,dir:l})});function Hu({state:e,isExiting:t,UNSTABLE_portalContainer:n,clearContexts:r,...i}){let a=(0,o.useRef)(null),s=(0,o.useRef)(null),c=(0,o.useContext)(Bu),l=c&&i.trigger===`SubmenuTrigger`,[u,d]=(0,o.useState)(!1),{popoverProps:f,underlayProps:p,arrowProps:m,placement:h,triggerAnchorPoint:g}=Dl({...i,offset:i.offset??8,arrowRef:a,groupRef:l?c:s},e),_=i.popoverRef,v=Iu(_,!!h&&u),y=i.isEntering||!i.shouldSkipAnimation&&v||!1,b=W({...i,defaultClassName:`react-aria-Popover`,values:{trigger:i.trigger||null,placement:h,isEntering:y,isExiting:t}}),x=!i.isNonModal||i.trigger===`SubmenuTrigger`||i.trigger===`PreviewTrigger`,[S,C]=(0,o.useState)(i.trigger===`PreviewTrigger`);H(()=>{_.current&&C(x&&!_.current.querySelector(`[role=dialog]`))},[_,x]),(0,o.useEffect)(()=>{S&&i.trigger!==`PreviewTrigger`&&(i.trigger!==`SubmenuTrigger`||Va()!==`pointer`)&&_.current&&!Vi(_.current)&&no(_.current)},[S,_,i.trigger]);let w=(0,o.useMemo)(()=>{let e=b.children;for(let t of[zu,...r??[]])e=o.createElement(t.Provider,{value:null},e);return e},[b.children,r]),[T,E]=(0,o.useState)(null),D=(0,o.useCallback)(()=>{i.triggerRef.current&&E(i.triggerRef.current.getBoundingClientRect().width+`px`)},[i.triggerRef]);H(D,[D]),fc({ref:b.style?.[`--trigger-width`]?void 0:i.triggerRef,onResize:D});let O={...f.style,"--trigger-anchor-point":g?`${g.x}px ${g.y}px`:void 0,...b.style,"--trigger-width":b.style?.[`--trigger-width`]||T};H(()=>gl(()=>d(!0)),[]);let k=o.createElement(K.div,{...U(q(i,{global:!0}),f),...b,id:S?i.id:void 0,role:S?`dialog`:void 0,tabIndex:S?-1:void 0,"aria-label":i[`aria-label`],"aria-labelledby":i[`aria-labelledby`],ref:_,slot:i.slot||void 0,style:O,dir:i.dir,"data-trigger":i.trigger,"data-placement":h,"data-entering":y||void 0,"data-exiting":t||void 0},!i.isNonModal&&o.createElement(Du,{onDismiss:e.close}),o.createElement(js.Provider,{value:{...m,placement:h,ref:a}},w),o.createElement(Du,{onDismiss:e.close}));return l?o.createElement(Nu,{...i,shouldContainFocus:S&&i.trigger!==`PreviewTrigger`,isExiting:t,portalContainer:n??c?.current??void 0},k):o.createElement(Nu,{...i,shouldContainFocus:S&&i.trigger!==`PreviewTrigger`,isExiting:t,portalContainer:n},!i.isNonModal&&e.isOpen&&o.createElement(`div`,{"data-testid":`underlay`,...p,style:{position:`fixed`,inset:0}}),o.createElement(`div`,{ref:s,style:{display:`contents`}},o.createElement(Bu.Provider,{value:s},k)))}var Uu=class{constructor(e){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue=``,this[`aria-label`]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=e}get childNodes(){throw Error(`childNodes is not supported`)}clone(){let e=new this.constructor(this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e[`aria-label`]=this[`aria-label`],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e.colSpan=this.colSpan,e.colIndex=this.colIndex,e}filter(e,t,n){let r=this.clone();return t.addDescendants(r,e),r}},Wu=class extends Uu{filter(e,t,n){let[r,i]=Xu(e,t,this.firstChildKey,n),a=this.clone();return a.firstChildKey=r,a.lastChildKey=i,a}},Gu=class extends Uu{static{this.type=`header`}},Ku=class extends Uu{static{this.type=`loader`}},qu=class extends Wu{static{this.type=`item`}filter(e,t,n){if(n(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}},Ju=class extends Wu{static{this.type=`section`}filter(e,t,n){let r=super.filter(e,t,n);if(r&&r.lastChildKey!==null){let t=e.getItem(r.lastChildKey);if(t&&t.type!==`header`)return r}return null}},Yu=class{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=this.firstKey==null?void 0:this.keyMap.get(this.firstKey);for(;e;)yield e,e=e.nextKey==null?void 0:this.keyMap.get(e.nextKey)}getChildren(e){let t=this.keyMap;return{*[Symbol.iterator](){let n=t.get(e),r=n?.firstChildKey==null?null:t.get(n.firstChildKey);for(;r;)yield r,r=r.nextKey==null?void 0:t.get(r.nextKey)}}}getKeyBefore(e){let t=this.keyMap.get(e);if(!t)return null;if(t.prevKey!=null){for(t=this.keyMap.get(t.prevKey);t&&t.type!==`item`&&t.lastChildKey!=null;)t=this.keyMap.get(t.lastChildKey);return t?.key??null}return t.parentKey}getKeyAfter(e){let t=this.keyMap.get(e);if(!t)return null;if(t.type!==`item`&&t.firstChildKey!=null)return t.firstChildKey;for(;t;){if(t.nextKey!=null)return t.nextKey;if(t.parentKey!=null)t=this.keyMap.get(t.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=this.lastKey==null?null:this.keyMap.get(this.lastKey);for(;e?.lastChildKey!=null;)e=this.keyMap.get(e.lastChildKey);return e?.key??null}getItem(e){return this.keyMap.get(e)??null}at(){throw Error(`Not implemented`)}clone(){let e=this.constructor,t=new e;return t.keyMap=new Map(this.keyMap),t.firstKey=this.firstKey,t.lastKey=this.lastKey,t.itemCount=this.itemCount,t}addNode(e){if(this.frozen)throw Error(`Cannot add a node to a frozen collection`);e.type===`item`&&this.keyMap.get(e.key)==null&&this.itemCount++,this.keyMap.set(e.key,e)}addDescendants(e,t){this.addNode(e);let n=t.getChildren(e.key);for(let e of n)this.addDescendants(e,t)}removeNode(e){if(this.frozen)throw Error(`Cannot remove a node to a frozen collection`);let t=this.keyMap.get(e);t!=null&&t.type===`item`&&this.itemCount--,this.keyMap.delete(e)}commit(e,t,n=!1){if(this.frozen)throw Error(`Cannot commit a frozen collection`);this.firstKey=e,this.lastKey=t,this.frozen=!n}filter(e){let t=new this.constructor,[n,r]=Xu(this,t,this.firstKey,e);return t?.commit(n,r),t}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}};function Xu(e,t,n,r){if(n==null)return[null,null];let i=null,a=null,o=e.getItem(n);for(;o!=null;){let n=o.filter(e,t,r);n!=null&&(n.nextKey=null,a&&(n.prevKey=a.key,a.nextKey=n.key),i??=n,t.addNode(n),a=n),o=o.nextKey==null?null:e.getItem(o.nextKey)}if(a&&a.type===`separator`){let e=a.prevKey;t.removeNode(a.key),e==null?a=null:(a=t.getItem(e),a.nextKey=null)}return[i?.key??null,a?.key??null]}var Zu=class{constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=e}*[Symbol.iterator](){let e=this.firstChild;for(;e;)yield e,e=e.nextSibling}get firstChild(){return this._firstChild}set firstChild(e){this._firstChild=e,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(e){this._lastChild=e,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(e){this._previousSibling=e,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(e){this._nextSibling=e,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(e){this._parentNode=e,this.ownerDocument.markDirty(this)}get isConnected(){return this.parentNode?.isConnected||!1}invalidateChildIndices(e){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||e.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=e,this.ownerDocument.markDirty(this))}updateChildIndices(){let e=this._minInvalidChildIndex;for(;e;)e.index=e.previousSibling?e.previousSibling.index+1:0,e=e.nextSibling;this._minInvalidChildIndex=null}appendChild(e){e.parentNode&&e.parentNode.removeChild(e),this.firstChild??=e,this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(e,t){if(t==null)return this.appendChild(e);e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=t,e.previousSibling=t.previousSibling,e.index=t.index-1,this.firstChild===t?this.firstChild=e:t.previousSibling&&(t.previousSibling.nextSibling=e),t.previousSibling=e,e.parentNode=t.parentNode,this.invalidateChildIndices(e),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(e){e.parentNode===this&&(this._minInvalidChildIndex===e&&(this._minInvalidChildIndex=null),e.nextSibling&&(this.invalidateChildIndices(e.nextSibling),e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.markDirty(e),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let e=this.previousSibling;for(;e&&e.isHidden;)e=e.previousSibling;return e}get nextVisibleSibling(){let e=this.nextSibling;for(;e&&e.isHidden;)e=e.nextSibling;return e}get firstVisibleChild(){let e=this.firstChild;for(;e&&e.isHidden;)e=e.nextSibling;return e}get lastVisibleChild(){let e=this.lastChild;for(;e&&e.isHidden;)e=e.previousSibling;return e}},Qu=class e extends Zu{constructor(e,t){super(t),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof e?this.parentNode.level+ +(this.parentNode.node?.type===`item`):0}getMutableNode(){return this.node==null?null:(this.isMutated||=(this.node=this.node.clone(),!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 e?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 e=(n.colIndex??n.index)+(n.colSpan??1);if(t.node!=null&&e!==t.node.colIndex){let n=t.getMutableNode();n.colIndex=e}}}setProps(e,t,n,r,i){let a,{value:o,textValue:s,id:c,...l}=e;if(this.node==null?(a=new n(c??`react-aria-${++this.ownerDocument.nodeId}`),this.node=a):a=this.getMutableNode(),l.ref=t,a.props=l,a.rendered=r,a.render=i,a.value=o,e[`aria-label`]&&(a[`aria-label`]=e[`aria-label`]),a.textValue=s||(typeof l.children==`string`?l.children:``)||e[`aria-label`]||``,c!=null&&c!==a.key)throw Error(`Cannot change the id of an item`);l.colSpan!=null&&(a.colSpan=l.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let e=this;return{get display(){return e.isHidden?`none`:``},set display(t){let n=t===`none`;if(e.isHidden!==n){(e.parentNode?.firstVisibleChild===e||e.parentNode?.lastVisibleChild===e)&&e.ownerDocument.markDirty(e.parentNode);let t=e.previousVisibleSibling,r=e.nextVisibleSibling;t&&e.ownerDocument.markDirty(t),r&&e.ownerDocument.markDirty(r),e.isHidden=n,e.ownerDocument.markDirty(e)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}},$u=class extends Zu{constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.keyOwners=new Map,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=e,this.nextCollection=e}get isConnected(){return!0}createElement(e){return new Qu(e,this)}getMutableCollection(){return this.nextCollection||=this.collection.clone(),this.nextCollection}markDirty(e){this.dirtyNodes.add(e)}addNode(e){if(e.isHidden||e.node==null)return;let t=this.getMutableCollection();if(!t.getItem(e.node.key))for(let t of e)this.addNode(t);t.addNode(e.node)}removeNode(e){for(let t of e)this.removeNode(t);e.node&&this.getMutableCollection().removeNode(e.node.key)}getCollection(){return this.inSubscription?this.collection:(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let e of this.dirtyNodes)e instanceof Qu&&(!e.isConnected||e.isHidden)?this.removeNode(e):e.updateChildIndices();for(let e of this.dirtyNodes)e instanceof Qu?(e.isConnected&&!e.isHidden&&(e.updateNode(),this.addNode(e)),e.node&&this.dirtyNodes.delete(e),e.isMutated=!1):this.dirtyNodes.delete(e);this.nextCollection&&(this.nextCollection.commit(this.firstVisibleChild?.node?.key??null,this.lastVisibleChild?.node?.key??null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null))}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0,this.isSSR||(this.collection=this.collection.clone());for(let e of this.subscriptions)e();this.inSubscription=!1}}subscribe(e){return this.subscriptions.add(e),this.queuedRender&&e(),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0,this.keyOwners.clear())}};function ed(e){let{children:t,items:n,idScope:r,addIdAndValue:i,dependencies:a=[]}=e,s=(0,o.useMemo)(()=>void 0,[t]),c=(0,o.useMemo)(()=>new WeakMap,[...a,s]);return(0,o.useMemo)(()=>{if(n&&typeof t==`function`){let e=[];for(let a of n){let n=td(a)?a:null,s=n?c.get(n):null;if(!s){s=t(a);let l=s.props.id??a?.key??a?.id;r!=null&&s.props.id==null&&l!=null&&(l=r+`:`+l);let u=l??e.length;s=(0,o.cloneElement)(s,i?{key:u,id:l,value:a}:{key:u}),n&&c.set(n,s)}e.push(s)}return e}if(typeof t!=`function`)return t},[t,n,c,r,i])}function td(e){switch(typeof e){case`object`:return e!=null;case`function`:case`symbol`:return!0;default:return!1}}var nd=t((e=>{var t=r();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:n,a=t.useState,o=t.useEffect,s=t.useLayoutEffect,c=t.useDebugValue;function l(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,l=r[1];return s(function(){i.value=n,i.getSnapshot=t,u(i)&&l({inst:i})},[e,n,t]),o(function(){return u(i)&&l({inst:i}),e(function(){u(i)&&l({inst:i})})},[e]),c(n),n}function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch{return!0}}function d(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?d:l;e.useSyncExternalStore=t.useSyncExternalStore===void 0?f:t.useSyncExternalStore})),rd=t(((e,t)=>{t.exports=nd()})),id=rd(),ad=(0,o.createContext)(!1),od=(0,o.createContext)(null);function sd(e){if((0,o.useContext)(od))return e.content;let{collection:t,document:n}=dd(e.createCollection);return o.createElement(o.Fragment,null,o.createElement(Gr,null,o.createElement(od.Provider,{value:n},e.content)),o.createElement(cd,{render:e.children,collection:t}))}function cd({collection:e,render:t}){return t(e)}function ld(e,t,n){let r=wr(),i=(0,o.useRef)(r);i.current=r;let a=(0,o.useCallback)(()=>i.current?n():t(),[t,n]);return(0,id.useSyncExternalStore)(e,a)}var ud=typeof o.useSyncExternalStore==`function`?o.useSyncExternalStore:ld;function dd(e){let[t]=(0,o.useState)(()=>new $u(e?.()||new Yu));return{collection:ud((0,o.useCallback)(e=>t.subscribe(e),[t]),(0,o.useCallback)(()=>{let e=t.getCollection();return t.isSSR&&t.resetAfterSSR(),e},[t]),(0,o.useCallback)(()=>(t.isSSR=!0,t.getCollection()),[t])),document:t}}var fd=(0,o.createContext)(null);function pd(e){return class extends Uu{static{this.type=e}}}function md(e,t,n,r,i,a){typeof e==`string`&&(e=pd(e));let s=(0,o.useCallback)(i=>{i?.setProps(t,n,e,r,a)},[t,n,r,a,e]),c=(0,o.useContext)(fd);if(c){let s=c.ownerDocument.nodesByProps.get(t);return s||(s=c.ownerDocument.createElement(e.type),s.setProps(t,n,e,r,a),c.appendChild(s),c.ownerDocument.updateCollection(),c.ownerDocument.nodesByProps.set(t,s)),i?o.createElement(fd.Provider,{value:s},i):null}return o.createElement(e.type,{ref:s},i)}function hd(e,t){let n=({node:e})=>t(e.props,e.props.ref,e),r=(0,o.forwardRef)((r,i)=>{let a=(0,o.useContext)(bo);if(!(0,o.useContext)(ad)){if(t.length>=3)throw Error(t.name+` cannot be rendered outside a collection.`);return t(r,i)}return md(e,r,i,`children`in r?r.children:null,null,e=>o.createElement(bo.Provider,{value:a},o.createElement(n,{node:e})))});return r.displayName=t.name,r}function gd(e,t,n=_d){let r=({node:e})=>t(e.props,e.props.ref,e),i=(0,o.forwardRef)((t,i)=>md(e,t,i,null,n(t),e=>o.createElement(r,{node:e}))??o.createElement(o.Fragment,null));return i.displayName=t.name,i}function _d(e){return ed({...e,addIdAndValue:!0})}var vd=(0,o.createContext)(null);function yd(e){let t=(0,o.useContext)(vd),n=(t?.dependencies||[]).concat(e.dependencies),r=e.idScope??t?.idScope,i=_d({...e,idScope:r,dependencies:n});return(0,o.useContext)(od)&&(i=o.createElement(bd,null,i)),t=(0,o.useMemo)(()=>({dependencies:n,idScope:r}),[r,...n]),o.createElement(vd.Provider,{value:t},i)}function bd({children:e}){let t=(0,o.useContext)(od),n=(0,o.useMemo)(()=>o.createElement(od.Provider,{value:null},o.createElement(ad.Provider,{value:!0},e)),[e]);return wr()?o.createElement(fd.Provider,{value:t},n):(0,v.createPortal)(n,t)}var xd=(0,o.createContext)(null),Sd={CollectionRoot({collection:e,renderDropIndicator:t}){return Cd(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return Cd(e,t,n)}};function Cd(e,t,n){return ed({items:t?e.getChildren(t.key):e,dependencies:[n],children(t){if(t.type===`content`)return o.createElement(o.Fragment,null);let r=t.render(t);return!n||t.type!==`item`?r:o.createElement(o.Fragment,null,n({type:`item`,key:t.key,dropPosition:`before`}),r,wd(e,t,n))}})}function wd(e,t,n){let r=t.key,i=e.getKeyAfter(r),a=i==null?null:e.getItem(i);for(;a!=null&&a.type!==`item`;)i=e.getKeyAfter(a.key),a=i==null?null:e.getItem(i);let s=t.nextKey==null?null:e.getItem(t.nextKey);for(;s!=null&&s.type!==`item`;)s=s.nextKey==null?null:e.getItem(s.nextKey);let c=[];if(s==null){let r=t;for(;r?.type===`item`&&(!a||r.parentKey!==a.parentKey&&a.level<r.level);){let t=n({type:`item`,key:r.key,dropPosition:`after`});(0,o.isValidElement)(t)&&c.push((0,o.cloneElement)(t,{key:`${r.key}-after`})),r=r.parentKey==null?null:e.getItem(r.parentKey)}}return c}var Td=(0,o.createContext)(Sd);function Ed(e){return(0,o.useMemo)(()=>e==null?null:new Set([e]),[e])}var Dd=`react-aria-clear-focus`,Od=`react-aria-focus`;function kd(e){let t=Md(J(e));t!==e&&(t&&Ad(t,e),e&&jd(e,t))}function Ad(e,t){e.dispatchEvent(new FocusEvent(`blur`,{relatedTarget:t})),e.dispatchEvent(new FocusEvent(`focusout`,{bubbles:!0,relatedTarget:t}))}function jd(e,t){e.dispatchEvent(new FocusEvent(`focus`,{relatedTarget:t})),e.dispatchEvent(new FocusEvent(`focusin`,{bubbles:!0,relatedTarget:t}))}function Md(e){let t=X(e),n=t?.getAttribute(`aria-activedescendant`);return n&&e.getElementById(n)||t}var Nd={};Nd={collectionLabel:`Ų…Ų‚ØĒØąØ­Ø§ØĒ`};var Pd={};Pd={collectionLabel:`ĐŸŅ€ĐĩĐ´ĐģĐžĐļĐĩĐŊĐ¸Ņ`};var Fd={};Fd={collectionLabel:`NÃĄvrhy`};var Id={};Id={collectionLabel:`Forslag`};var Ld={};Ld={collectionLabel:`Empfehlungen`};var Rd={};Rd={collectionLabel:`Î ĪÎŋĪ„ÎŦ΃ÎĩÎšĪ‚`};var zd={};zd={collectionLabel:`Suggestions`};var Bd={};Bd={collectionLabel:`Sugerencias`};var Vd={};Vd={collectionLabel:`Soovitused`};var Hd={};Hd={collectionLabel:`Ehdotukset`};var Ud={};Ud={collectionLabel:`Suggestions`};var Wd={};Wd={collectionLabel:`ה×Ļ×ĸו×Ē`};var Gd={};Gd={collectionLabel:`Prijedlozi`};var Kd={};Kd={collectionLabel:`Javaslatok`};var qd={};qd={collectionLabel:`Suggerimenti`};var Jd={};Jd={collectionLabel:`å€™čŖœ`};var Yd={};Yd={collectionLabel:`ė œė•ˆ`};var Xd={};Xd={collectionLabel:`PasiÅĢlymai`};var Zd={};Zd={collectionLabel:`Ieteikumi`};var Qd={};Qd={collectionLabel:`Forslag`};var $d={};$d={collectionLabel:`Suggesties`};var ef={};ef={collectionLabel:`Sugestie`};var tf={};tf={collectionLabel:`SugestÃĩes`};var nf={};nf={collectionLabel:`SugestÃĩes`};var rf={};rf={collectionLabel:`Sugestii`};var af={};af={collectionLabel:`ĐŸŅ€ĐĩĐ´ĐģĐžĐļĐĩĐŊĐ¸Ņ`};var of={};of={collectionLabel:`NÃĄvrhy`};var sf={};sf={collectionLabel:`Predlogi`};var cf={};cf={collectionLabel:`Predlozi`};var lf={};lf={collectionLabel:`FÃļrslag`};var uf={};uf={collectionLabel:`Öneriler`};var df={};df={collectionLabel:`ĐŸŅ€ĐžĐŋĐžĐˇĐ¸Ņ†Ņ–Ņ—`};var ff={};ff={collectionLabel:`åģē莎`};var pf={};pf={collectionLabel:`åģēč­°`};var mf={};mf={"ar-AE":Nd,"bg-BG":Pd,"cs-CZ":Fd,"da-DK":Id,"de-DE":Ld,"el-GR":Rd,"en-US":zd,"es-ES":Bd,"et-EE":Vd,"fi-FI":Hd,"fr-FR":Ud,"he-IL":Wd,"hr-HR":Gd,"hu-HU":Kd,"it-IT":qd,"ja-JP":Jd,"ko-KR":Yd,"lt-LT":Xd,"lv-LV":Zd,"nb-NO":Qd,"nl-NL":$d,"pl-PL":ef,"pt-BR":tf,"pt-PT":nf,"ro-RO":rf,"ru-RU":af,"sk-SK":of,"sl-SI":sf,"sr-SP":cf,"sv-SE":lf,"tr-TR":uf,"uk-UA":df,"zh-CN":ff,"zh-TW":pf};function hf(e){return e&&e.__esModule?e.default:e}function gf(e,t){let{inputRef:n,collectionRef:r,filter:i,disableAutoFocusFirst:a=!1,disableVirtualFocus:s=!1}=e,c=Ar(),l=(0,o.useRef)(void 0),u=(0,o.useRef)(!1),d=(0,o.useRef)(null),f=Va()===`virtual`&&(la()||pa()),[p,m]=(0,o.useState)(!f&&!s),[h,g]=(0,o.useState)(!1),[_,v]=(0,o.useState)(!1);(0,o.useEffect)(()=>()=>clearTimeout(l.current),[]);let y=Po(e=>{!e.isTrusted&&p&&n.current&&X(J(n.current))!==n.current&&Ua()!==`touch`&&n.current.focus();let i=Z(e);!e.isTrusted&&i&&d.current!==i.id&&(clearTimeout(l.current),i===r.current?d.current&&!document.getElementById(d.current)&&(d.current=null,t.setFocusedNodeId(null)):u.current?(d.current=i.id,l.current=setTimeout(()=>{t.setFocusedNodeId(i.id)},500)):(d.current=i.id,t.setFocusedNodeId(i.id)),u.current=!1)}),[b,x]=(0,o.useState)(null),S=(0,o.useCallback)(e=>{x(e),e==null?g(!1):(e.getAttribute(`tabindex`)!=null&&m(!1),g(!0))},[]);H(()=>(b?.addEventListener(`focusin`,y),()=>{b?.removeEventListener(`focusin`,y)}),[b]);let C=Fr((0,o.useMemo)(()=>Nr(r,S),[r,S])),w=(0,o.useCallback)(()=>{if(!r.current){v(!0);return}u.current=!0,r.current?.dispatchEvent(new CustomEvent(Od,{cancelable:!0,bubbles:!0,detail:{focusStrategy:`first`}}))},[r]),T=(0,o.useCallback)(e=>{v(!1),kd(X()),d.current=null,t.setFocusedNodeId(null);let n=new CustomEvent(Dd,{cancelable:!0,bubbles:!0,detail:{clearFocusKey:e}});clearTimeout(l.current),u.current=!1,r.current?.dispatchEvent(n)},[r,t]),E=(0,o.useRef)(``);cs(n,`beforeinput`,e=>{let{inputType:t}=e;E.current=t});let D=e=>{(E.current===`insertText`||E.current===`insertCompositionText`||E.current===`insertFromComposition`)&&!a?w():E.current&&(E.current.includes(`insert`)||E.current.includes(`delete`)||E.current.includes(`history`))&&(T(!0),Md(document)===n.current&&jd(n.current,null)),t.setInputValue(e)},O=(0,o.useRef)(null),k=e=>{if(O.current=Z(e),e.nativeEvent.isComposing)return;let t=d.current;switch(t!==null&&J(n.current).getElementById(t)==null&&(d.current=null,t=null),e.key){case`a`:if(ol(e))return;break;case`Escape`:if(e.isDefaultPrevented())return;break;case` `:return;case`Tab`:`continuePropagation`in e&&e.continuePropagation();return;case`Home`:case`End`:case`PageDown`:case`PageUp`:case`ArrowUp`:case`ArrowDown`:case`ArrowRight`:case`ArrowLeft`:{if((e.key===`Home`||e.key===`End`)&&t==null&&e.shiftKey)return;if(e.key===`ArrowRight`||e.key===`ArrowLeft`){if(t==null){e.isPropagationStopped()||e.stopPropagation();return}break}e.preventDefault();let n=new CustomEvent(Od,{cancelable:!0,bubbles:!0});r.current?.dispatchEvent(n);break}}e.isPropagationStopped()||e.stopPropagation();let i=!0;if(r.current!==null){if(t==null)i=r.current?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type,e.nativeEvent))||!1;else{let n=document.getElementById(t);n&&(i=n?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type,e.nativeEvent))||!1)}}if(i)switch(e.key){case`ArrowLeft`:case`ArrowRight`:T();break;case`Enter`:t!=null&&document.getElementById(t)?.dispatchEvent(new PointerEvent(`click`,e.nativeEvent))}else e.preventDefault()},A=Po(e=>{if(Z(e)===O.current){e.stopImmediatePropagation();let t=d.current;t==null?r.current?.dispatchEvent(new KeyboardEvent(e.type,e)):document.getElementById(t)?.dispatchEvent(new KeyboardEvent(e.type,e))}});(0,o.useEffect)(()=>(document.addEventListener(`keyup`,A,!0),()=>{document.removeEventListener(`keyup`,A,!0)}),[]);let j=ni({id:c,"aria-label":Su(hf(mf),`@react-aria/autocomplete`).format(`collectionLabel`)}),M=(0,o.useCallback)((e,n)=>!i||i(e,t.inputValue,n),[t.inputValue,i]),N=e=>{if(!e.isTrusted)return;let t=d.current?document.getElementById(d.current):null;t&&Ad(t,e.relatedTarget)},ee=e=>{if(e.isTrusted&&d.current&&document.getElementById(d.current)){let t=Z(e);queueMicrotask(()=>{Ad(t,r.current),jd(r.current,t)})}},te=e=>{e.button===0&&e.pointerType!==`touch`&&d.current!=null&&n.current!=null&&Z(e)===n.current&&T()},P={value:t.inputValue,onChange:D},ne={onKeyDown:k,"aria-activedescendant":t.focusedNodeId??void 0,onBlur:N,onFocus:ee,onPointerDown:te};return P={...P,...p&&h&&ne,enterKeyHint:`go`,"aria-controls":h?c:void 0,"aria-autocomplete":`list`,autoCorrect:`off`,spellCheck:`false`,autoComplete:`off`},{inputProps:P,collectionProps:U(j,{shouldUseVirtualFocus:p,disallowTypeAhead:p,autoFocus:_?`first`:!1}),collectionRef:C,filter:i==null?void 0:M}}function _f(e){let{onInputChange:t,inputValue:n,defaultInputValue:r=``}=e,i=e=>{t&&t(e)},[a,s]=(0,o.useState)(null),[c,l]=us(n,r,i);return{inputValue:c,setInputValue:l,focusedNodeId:a,setFocusedNodeId:s}}var vf=(0,o.createContext)(null),yf=(0,o.createContext)(null),bf=(0,o.createContext)(null),xf=(0,o.createContext)(null);function Sf(e){e=U(zr(vf,e.slot),e);let{filter:t,disableAutoFocusFirst:n}=e,r=_f(e),i=(0,o.useRef)(null),a=(0,o.useRef)(null),{inputProps:s,collectionProps:c,collectionRef:l,filter:u}=gf({...Vr(e),filter:t,disableAutoFocusFirst:n,inputRef:i,collectionRef:a},r);return o.createElement(Lr,{values:[[yf,r],[xf,{...s,ref:i}],[bf,{...c,filter:u,ref:l}]]},e.children)}var Cf=(0,o.createContext)({}),wf=hd(Gu,function(e,t){return[e,t]=G(e,t,Cf),o.createElement(K.header,{className:`react-aria-Header`,...e,ref:t},e.children)}),Tf=(0,o.createContext)(null);function Ef(e){let t=(0,o.useRef)({});return o.createElement(Tf.Provider,{value:t},e.children)}var Df=(0,o.forwardRef)(function(e,t){let{name:n,isVisible:r=!0,children:i,className:a,style:s,render:c,...l}=e,[u,d]=(0,o.useState)(r?`visible`:`hidden`),f=(0,o.useContext)(Tf);if(!f)throw Error(`<SharedElement> must be rendered inside a <SharedElementTransition>`);r&&u===`hidden`&&d(`visible`),t=Fr(t),H(()=>{let e=t.current,i=f.current,a=i[n],o=null;if(e&&r&&a){d(`visible`);let t=e.getAnimations(),r=a.style.map(([t,n])=>{let r=e.style[t];if(t===`translate`){let t=a.rect,n=e.getBoundingClientRect(),r=t.left-n?.left,i=t.top-n?.top;e.style.translate=`${r}px ${i}px`}else e.style[t]=n;return[t,r]});for(let n of e.getAnimations())t.includes(n)||n.cancel();o=requestAnimationFrame(()=>{o=null;for(let[t,n]of r)e.style[t]=n}),delete i[n]}else e&&r&&!a?(queueMicrotask(()=>(0,v.flushSync)(()=>d(`entering`))),o=requestAnimationFrame(()=>{o=null,d(`visible`)})):e&&!r&&queueMicrotask(()=>{i[n]?(delete i[n],(0,v.flushSync)(()=>d(`exiting`)),Promise.all(e.getAnimations().map(e=>e.finished)).then(()=>d(`hidden`)).catch(()=>{})):d(`hidden`)});return()=>{if(o!=null&&cancelAnimationFrame(o),e&&e.isConnected&&!e.hasAttribute(`data-exiting`)){let t=window.getComputedStyle(e);if(t.transitionProperty!==`none`){let r=t.transitionProperty.split(/\s*,\s*/);i[n]={rect:e.getBoundingClientRect(),style:r.map(e=>[e,t[e]])}}}}},[t,f,n,r]);let p=W({children:i,className:a,style:s,render:c,values:{isEntering:u===`entering`,isExiting:u===`exiting`}});return u===`hidden`?null:o.createElement(K.div,{...l,...p,ref:t,"data-entering":u===`entering`||void 0,"data-exiting":u===`exiting`||void 0})}),Of=(0,o.createContext)({isSelected:!1}),kf=(0,o.forwardRef)(function(e,t){[e,t]=G(e,t,Of);let{isSelected:n,...r}=e;return o.createElement(Df,{...r,ref:t,className:e.className||`react-aria-SelectionIndicator`,name:`SelectionIndicator`,isVisible:n})});function Af(e){let t=q(e,{labelable:!0}),n;return e.orientation===`vertical`&&(n=`vertical`),e.elementType===`hr`?{separatorProps:t}:{separatorProps:{...t,role:`separator`,"aria-orientation":n}}}var jf=(0,o.createContext)({}),Mf=hd(class extends Uu{static{this.type=`separator`}filter(e,t){let n=t.getItem(this.prevKey);if(n&&n.type!==`separator`){let n=this.clone();return t.addDescendants(n,e),n}return null}},function(e,t){[e,t]=G(e,t,jf);let{elementType:n,orientation:r,style:i,className:a,slot:s,...c}=e,l=n||`hr`;l===`hr`&&r===`vertical`&&(l=`div`);let u=K[l],{separatorProps:d}=Af({...c,elementType:n,orientation:r}),f=q(e,{global:!0});return o.createElement(u,{render:e.render,...U(f,d),style:i,className:a??`react-aria-Separator`,ref:t,slot:s||void 0})}),Nf=(0,o.createContext)({}),Pf=Kr(function(e,t){[e,t]=G(e,t,Nf);let{elementType:n=`span`,...r}=e,i=K[n];return o.createElement(i,{className:`react-aria-Text`,...r,ref:t})}),Ff={};Ff={longPressMessage:`اØļØēØˇ Ų…ØˇŲˆŲ„Ø§Ų‹ ØŖŲˆ اØļØēØˇ ØšŲ„Ų‰ Alt + Ø§Ų„ØŗŲ‡Ų… Ų„ØŖØŗŲŲ„ ؄؁ØĒØ­ Ø§Ų„Ų‚Ø§ØĻŲ…ØŠ`};var If={};If={longPressMessage:`ĐĐ°Ņ‚Đ¸ŅĐŊĐĩŅ‚Đĩ ĐŋŅ€ĐžĐ´ŅŠĐģĐļĐ¸Ņ‚ĐĩĐģĐŊĐž иĐģи ĐŊĐ°Ņ‚Đ¸ŅĐŊĐĩŅ‚Đĩ Alt+ ҁ҂ҀĐĩĐģĐēа ĐŊадОĐģ҃, Са да ĐžŅ‚Đ˛ĐžŅ€Đ¸Ņ‚Đĩ ĐŧĐĩĐŊŅŽŅ‚Đž`};var Lf={};Lf={longPressMessage:`DlouhÃŊm stiskem nebo stisknutím klÃĄves Alt + ÅĄipka dolů otevřete nabídku`};var Rf={};Rf={longPressMessage:`Langt tryk eller tryk pÃĨ Alt + pil ned for at ÃĨbne menuen`};var zf={};zf={longPressMessage:`DrÃŧcken Sie lange oder drÃŧcken Sie Alt + Nach-unten, um das MenÃŧ zu Ãļffnen`};var Bf={};Bf={longPressMessage:`Î ÎšÎ­ĪƒĪ„Îĩ Ī€ÎąĪÎąĪ„ÎĩĪ„ÎąÎŧέÎŊÎą ÎŽ Ī€ÎąĪ„ÎŽĪƒĪ„Îĩ Alt + ÎēÎŦ΄Ή βέÎģÎŋĪ‚ ÎŗÎšÎą ÎŊÎą ÎąÎŊÎŋίΞÎĩĪ„Îĩ Ī„Îŋ ÎŧÎĩÎŊÎŋĪ`};var Vf={};Vf={longPressMessage:`Long press or press Alt + ArrowDown to open menu`};var Hf={};Hf={longPressMessage:`Mantenga pulsado o pulse Alt + flecha abajo para abrir el menÃē`};var Uf={};Uf={longPressMessage:`MenÃŧÃŧ avamiseks vajutage pikalt vÃĩi vajutage klahve Alt + allanool`};var Wf={};Wf={longPressMessage:`Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli`};var Gf={};Gf={longPressMessage:`Appuyez de manière prolongÊe ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu.`};var Kf={};Kf={longPressMessage:`לח×Ĩ לחי×Ļה ארוכה או הקש Alt + ArrowDown כדי לפ×Ēוח א×Ē ×”×Ēפריט`};var qf={};qf={longPressMessage:`Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika`};var Jf={};Jf={longPressMessage:`Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menÃŧ megnyitÃĄsÃĄhoz`};var Yf={};Yf={longPressMessage:`Premi a lungo o premi Alt + Freccia giÚ per aprire il menu`};var Xf={};Xf={longPressMessage:`長æŠŧしぞたは Alt+下įŸĸ印キãƒŧã§ãƒĄãƒ‹ãƒĨãƒŧを開く`};var Zf={};Zf={longPressMessage:`描枌 누ëĨ´ęą°ë‚˜ Alt + ė•„ëž˜ėĒŊ í™”ė‚´í‘œëĨŧ 눌ëŸŦ 메뉴 뗴揰`};var Qf={};Qf={longPressMessage:`Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“.`};var $f={};$f={longPressMessage:`Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa`};var ep={};ep={longPressMessage:`Langt trykk eller trykk Alt + PilNed for ÃĨ ÃĨpne menyen`};var tp={};tp={longPressMessage:`Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen`};var np={};np={longPressMessage:`Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dÃŗÅ‚, aby otworzyć menu`};var rp={};rp={longPressMessage:`Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu`};var ip={};ip={longPressMessage:`Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu`};var ap={};ap={longPressMessage:`Apăsați lung sau apăsați pe Alt + săgeată ÃŽn jos pentru a deschide meniul`};var op={};op={longPressMessage:`НаĐļĐŧĐ¸Ņ‚Đĩ и ŅƒĐ´ĐĩŅ€ĐļĐ¸Đ˛Đ°ĐšŅ‚Đĩ иĐģи ĐŊаĐļĐŧĐ¸Ņ‚Đĩ Alt + ĐĄŅ‚Ņ€ĐĩĐģĐēа вĐŊиС, Ņ‡Ņ‚ĐžĐąŅ‹ ĐžŅ‚ĐēŅ€Ņ‹Ņ‚ŅŒ ĐŧĐĩĐŊŅŽ`};var sp={};sp={longPressMessage:`Ponuku otvoríte dlhÃŊm stlačením alebo stlačením klÃĄvesu Alt + klÃĄvesu so ÅĄÃ­pkou nadol`};var cp={};cp={longPressMessage:`Za odprtje menija pritisnite in drÅžite gumb ali pritisnite Alt+puÅĄÄica navzdol`};var lp={};lp={longPressMessage:`Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni`};var up={};up={longPressMessage:`HÃĨll nedtryckt eller tryck pÃĨ Alt + pil nedÃĨt fÃļr att Ãļppna menyn`};var dp={};dp={longPressMessage:`MenÃŧyÃŧ açmak için uzun basÄąn veya Alt + Aşağı Ok tuşuna basÄąn`};var fp={};fp={longPressMessage:`Đ”ĐžĐ˛ĐŗĐž айО ĐˇĐ˛Đ¸Ņ‡Đ°ĐšĐŊĐž ĐŊĐ°Ņ‚Đ¸ŅĐŊŅ–Ņ‚ŅŒ ĐēĐžĐŧĐąŅ–ĐŊĐ°Ņ†Ņ–ŅŽ ĐēĐģĐ°Đ˛Ņ–Ņˆ Alt Ņ– ҁ҂ҀҖĐģĐēа вĐŊиС, Ņ‰ĐžĐą Đ˛Ņ–Đ´ĐēŅ€Đ¸Ņ‚Đ¸ ĐŧĐĩĐŊŅŽ`};var pp={};pp={longPressMessage:`é•ŋ按或按 Alt + 向下斚向锎äģĨ打åŧ€čœå•`};var mp={};mp={longPressMessage:`é•ˇæŒ‰æˆ–æŒ‰ Alt+向下éĩäģĨ開啟功čƒŊ襨`};var hp={};hp={"ar-AE":Ff,"bg-BG":If,"cs-CZ":Lf,"da-DK":Rf,"de-DE":zf,"el-GR":Bf,"en-US":Vf,"es-ES":Hf,"et-EE":Uf,"fi-FI":Wf,"fr-FR":Gf,"he-IL":Kf,"hr-HR":qf,"hu-HU":Jf,"it-IT":Yf,"ja-JP":Xf,"ko-KR":Zf,"lt-LT":Qf,"lv-LV":$f,"nb-NO":ep,"nl-NL":tp,"pl-PL":np,"pt-BR":rp,"pt-PT":ip,"ro-RO":ap,"ru-RU":op,"sk-SK":sp,"sl-SI":cp,"sr-SP":lp,"sv-SE":up,"tr-TR":dp,"uk-UA":fp,"zh-CN":pp,"zh-TW":mp};var gp=0,_p=new Map;function vp(e){let[t,n]=(0,o.useState)();return H(()=>{if(!e)return;let t=_p.get(e);if(t)n(t.element.id);else{let r=`react-aria-description-${gp++}`;n(r);let i=document.createElement(`div`);i.id=r,i.style.display=`none`,i.textContent=e,document.body.appendChild(i),t={refCount:0,element:i},_p.set(e,t)}return t.refCount++,()=>{t&&--t.refCount===0&&(t.element.remove(),_p.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}var yp=500;function bp(e){let{isDisabled:t,pointerType:n,onLongPressStart:r,onLongPressEnd:i,onLongPress:a,threshold:s=yp,accessibilityDescription:c}=e,l=(0,o.useRef)(void 0),{addGlobalListener:u,removeAllGlobalListeners:d}=Fo(),f=e=>n?e.pointerType===n:e.pointerType===`mouse`||e.pointerType===`touch`,{pressProps:p}=Vo({isDisabled:t,onPressStart(e){if(e.continuePropagation(),f(e)){r&&r({...e,type:`longpressstart`}),l.current=setTimeout(()=>{e.target.dispatchEvent(new PointerEvent(`pointercancel`,{bubbles:!0})),u(e.target,`click`,e=>e.preventDefault(),{once:!0}),J(e.target).activeElement!==e.target&&Ai(e.target),a&&a({...e,type:`longpress`}),l.current=void 0},s),e.pointerType===`touch`&&u(e.target,`contextmenu`,e=>e.preventDefault(),{once:!0});let t=ji(e.target);u(t,`pointerup`,()=>{setTimeout(()=>{d()},100)},{once:!0})}},onPressEnd(e){l.current&&clearTimeout(l.current),i&&f(e)&&i({...e,type:`longpressend`})}});return{longPressProps:U(p,vp(a&&!t?c:void 0))}}function xp(e){let{onContextMenu:t}=e,n=(0,o.useRef)(!1),{longPressProps:r}=bp({onLongPressStart(){n.current=!1},onLongPress(e){n.current?n.current=!1:t?.({target:e.target,x:e.x,y:e.y})}});return t?{contextMenuProps:U(la()?r:{},{onContextMenu(e){e.stopPropagation(),e.preventDefault(),n.current=!0;let r=e.currentTarget.getBoundingClientRect();t({target:e.currentTarget,x:e.clientX-r.x,y:e.clientY-r.y})},onKeyDown(e){if(oa()&&e.ctrlKey&&e.key===`Enter`){n.current=!1;let r=e.currentTarget;e.stopPropagation(),setTimeout(()=>{if(n.current)n.current=!1;else{let e=r.getBoundingClientRect();t({target:r,x:e.width/2,y:e.height/2})}},10)}}})}:{contextMenuProps:{}}}function Sp(e,t,n){let{type:r}=e,{isOpen:i}=t;(0,o.useEffect)(()=>{n&&n.current&&lc.set(n.current,t.close)});let a;r===`menu`?a=!0:r===`listbox`&&(a=`listbox`);let s=Ar();return{triggerProps:{"aria-haspopup":a,"aria-expanded":i,"aria-controls":i?s:void 0,onPress:t.toggle},overlayProps:{id:s}}}function Cp(e){return e&&e.__esModule?e.default:e}function wp(e,t,n){let{type:r=`menu`,isDisabled:i,trigger:a=`press`}=e,s=Ar(),{triggerProps:c,overlayProps:l}=Sp({type:r},t,n),u=(e,n,r=`first`)=>{if(!e||n.isDefaultPrevented())return!1;t.toggle(r)},{keyboardProps:d}=vo({isDisabled:i,shortcuts:{Enter:e=>u(a!==`longPress`,e,`first`)," ":e=>u(a!==`longPress`,e,`first`),ArrowDown:e=>u(a!==`longPress`,e,`first`),ArrowUp:e=>u(a!==`longPress`,e,`last`),"Alt+Enter":e=>u(a===`longPress`,e,`first`),"Alt+ ":e=>u(a===`longPress`,e,`first`),"Alt+ArrowDown":e=>u(!0,e,`first`),"Alt+ArrowUp":e=>u(!0,e,`last`)}}),f=Su(Cp(hp),`@react-aria/menu`),{longPressProps:p}=bp({isDisabled:i||a!==`longPress`,accessibilityDescription:f.format(`longPressMessage`),onLongPressStart(){t.close()},onLongPress(){t.open(`first`)}}),m={preventFocusOnPress:!0,onPressStart(e){e.pointerType!==`touch`&&e.pointerType!==`keyboard`&&!i&&(Ai(e.target),t.open(e.pointerType===`virtual`?`first`:null))},onPress(e){e.pointerType===`touch`&&!i&&(Ai(e.target),t.toggle())}};delete c.onPress;let{contextMenuProps:h}=xp({onContextMenu(e){let n=e.target.getBoundingClientRect();t.setPoint({x:n.x+e.x,y:n.y+e.y}),t.open()}});(0,o.useEffect)(()=>{if(t.isOpen&&a===`contextMenu`){let e=e=>{(e.button===2||e.button===0&&e.ctrlKey===!0)&&Z(e)===document.body&&t.close()};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)}},[t,a]);let g;if(a===`press`)g={...m,...d};else if(a===`longPress`)g={...p,...d};else if(a===`contextMenu`){g=h;let{"aria-haspopup":e,"aria-expanded":t,"aria-controls":n,...r}=c;c=r}return{menuTriggerProps:{...c,...g,id:s},menuProps:{...l,"aria-labelledby":s,autoFocus:t.focusStrategy||!0,onClose:t.close}}}function Tp(e){return ua()?e.altKey:e.ctrlKey}function Ep(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)}var Dp=new WeakMap;function Op(e){let t=Ar();return Dp.set(e,t),t}function kp(e){return Dp.get(e)}function Ap(e,t){let n=[],r=document.scrollingElement||document.documentElement;for(;e&&(qc(e,t)&&n.push(e),e!==r);)e=e.parentElement;return n}function jp(e,t,n={}){e!==t&&Mp(e,t,t.getBoundingClientRect(),n)}function Mp(e,t,n,r={}){let{block:i=`nearest`,inline:a=`nearest`}=r,o=e.scrollTop,s=e.scrollLeft,c=e.getBoundingClientRect(),l=window.getComputedStyle(t),u=window.getComputedStyle(e),d=document.scrollingElement||document.documentElement,f=e===d,p=e===d?0:c.top,m=e===d?e.clientHeight:c.bottom,h=e===d?0:c.left,g=e===d?e.clientWidth:c.right,_=parseFloat(l.scrollMarginTop)||0,v=parseFloat(l.scrollMarginBottom)||0,y=parseFloat(l.scrollMarginLeft)||0,b=parseFloat(l.scrollMarginRight)||0,x=parseFloat(u.scrollPaddingTop)||0,S=parseFloat(u.scrollPaddingBottom)||0,C=parseFloat(u.scrollPaddingLeft)||0,w=parseFloat(u.scrollPaddingRight)||0,T=parseFloat(u.borderTopWidth)||0,E=parseFloat(u.borderBottomWidth)||0,D=parseFloat(u.borderLeftWidth)||0,O=parseFloat(u.borderRightWidth)||0,k=n.top-_,A=n.bottom+v,j=n.left-y,M=n.right+b,N=e===d?0:D+O,ee=e===d?0:T+E,te=e===d?0:e.offsetWidth-e.clientWidth-N,P=e===d?0:e.offsetHeight-e.clientHeight-ee,ne=p+(f?0:T)+x,re=m-(f?0:E)-S-P,ie=h+(f?0:D)+C,F=g-(f?0:O)-w;la()&&da()||u.direction===`ltr`?F-=te:u.direction===`rtl`&&(ie+=te);let I=k<ne||A>re,L=j<ie||M>F;if(I&&i===`start`)o+=k-ne;else if(I&&i===`center`)o+=(k+A)/2-(ne+re)/2;else if(I&&i===`end`)o+=A-re;else if(I&&i===`nearest`){let e=k-ne,t=A-re;o+=Math.abs(e)<=Math.abs(t)?e:t}if(L&&a===`start`)s+=j-ie;else if(L&&a===`center`)s+=(j+M)/2-(ie+F)/2;else if(L&&a===`end`)s+=M-F;else if(L&&a===`nearest`){let e=j-ie,t=M-F;s+=Math.abs(e)<=Math.abs(t)?e:t}e.scrollTo({left:s,top:o})}function Np(e,t={}){let{containingElement:n}=t;if(e&&e.isConnected){let t=document.scrollingElement||document.documentElement;if(window.getComputedStyle(t).overflow!==`hidden`){let{left:t,top:r}=e.getBoundingClientRect();e?.scrollIntoView?.({block:`nearest`});let{left:i,top:a}=e.getBoundingClientRect();(Math.abs(t-i)>1||Math.abs(r-a)>1)&&(n?.scrollIntoView?.({block:`center`,inline:`center`}),e.scrollIntoView?.({block:`nearest`}))}else{let{left:t,top:r}=e.getBoundingClientRect(),i=Ap(e,!0);for(let t of i)jp(t,e);let{left:a,top:o}=e.getBoundingClientRect();if(Math.abs(t-a)>1||Math.abs(r-o)>1){i=n?Ap(n,!0):[];for(let e of i)jp(e,n,{block:`center`,inline:`center`});for(let t of Ap(e,!0))jp(t,e)}}}}var Pp=1e3;function Fp(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=(0,o.useRef)({search:``,timeout:void 0});return(0,o.useEffect)(()=>{let e=i.current.timeout;return()=>{clearTimeout(e)}},[i]),{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?e=>{if(i.current.search.length>0&&e.key===` `){if(e.preventDefault(),(!(`continuePropagation`in e)||`continuePropagation`in e&&!e.isPropagationStopped())&&e.stopPropagation(),i.current.search+=` `,t.getKeyForSearch!=null){let e=t.getKeyForSearch(i.current.search,n.focusedKey);e??=t.getKeyForSearch(i.current.search),e!=null&&(n.setFocusedKey(e),r&&r(e))}clearTimeout(i.current.timeout),i.current.timeout=setTimeout(()=>{i.current.search=``},Pp)}}:void 0,onKeyDown:t.getKeyForSearch?e=>{let a=Ip(e.key);if(!(!a||e.ctrlKey||e.metaKey||e.altKey||!Y(e.currentTarget,Z(e))||i.current.search.length===0&&a===` `)){if(i.current.search+=a,t.getKeyForSearch!=null){let a=t.getKeyForSearch(i.current.search,n.focusedKey);if(a??=t.getKeyForSearch(i.current.search),a!=null)n.setFocusedKey(a),r&&r(a),e.preventDefault(),`continuePropagation`in e||e.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=``},Pp)}}:void 0}}}function Ip(e){return e.length===1||!/^[A-Z]/i.test(e)?e:``}function Lp(e,t){let n=(0,o.useRef)(!0),r=(0,o.useRef)(null);H(()=>(n.current=!0,()=>{n.current=!1}),[]),H(()=>{n.current?n.current=!1:(!r.current||t.some((e,t)=>!Object.is(e,r[t])))&&e(),r.current=t},t)}function Rp(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:a=!1,disallowEmptySelection:s=!1,disallowSelectAll:c=!1,escapeKeyBehavior:l=`clearSelection`,selectOnFocus:u=t.selectionBehavior===`replace`,disallowTypeAhead:d=!1,shouldUseVirtualFocus:f,allowsTabNavigation:p=!1,scrollRef:m=r,linkBehavior:h=`action`,UNSTABLE_focusOnEntry:g}=e,{direction:_}=mi(),y=_a(),b=(e,n,i)=>{if(n!=null){if(t.isLink(n)&&h===`selection`&&u&&!Tp(e)){(0,v.flushSync)(()=>{t.setFocusedKey(n,i)});let a=Ep(r,n),o=t.getItemProps(n);if(a){y.open(a,e,o.href,o.routerOptions);return}return!1}if(t.setFocusedKey(n,i),t.isLink(n)&&h===`override`)return!1;if(e.shiftKey&&t.selectionMode===`multiple`){t.extendSelection(n);return}if(u&&!Tp(e)){t.replaceSelection(n);return}}return!1},x=e=>{if(n.getKeyBelow){let r=t.focusedKey==null?n.getFirstKey?.():n.getKeyBelow?.(t.focusedKey);if(r==null&&a&&(r=n.getFirstKey?.(t.focusedKey)),r!=null){b(e,r);return}}return!1},S=e=>{if(n.getKeyAbove){let r=t.focusedKey==null?n.getLastKey?.():n.getKeyAbove?.(t.focusedKey);if(r==null&&a&&(r=n.getLastKey?.(t.focusedKey)),r!=null){b(e,r);return}}return!1},C=e=>{if(n.getFirstKey){if(t.focusedKey===null&&e.shiftKey)return!1;let r=n.getFirstKey(t.focusedKey,ol(e));if(t.setFocusedKey(r),r!=null){if(ol(e)&&e.shiftKey&&t.selectionMode===`multiple`){t.extendSelection(r);return}if(u){t.replaceSelection(r);return}}}return!1},w=e=>{if(n.getKeyLeftOf){let r=t.focusedKey==null?n.getFirstKey?.():n.getKeyLeftOf?.(t.focusedKey);if(r==null&&a&&(r=_===`rtl`?n.getFirstKey?.(t.focusedKey):n.getLastKey?.(t.focusedKey)),r!=null){b(e,r,_===`rtl`?`first`:`last`);return}}return!1},T=e=>{if(n.getKeyRightOf){let r=t.focusedKey==null?n.getFirstKey?.():n.getKeyRightOf?.(t.focusedKey);if(r==null&&a&&(r=_===`rtl`?n.getLastKey?.(t.focusedKey):n.getFirstKey?.(t.focusedKey)),r!=null){b(e,r,_===`rtl`?`last`:`first`);return}}return!1},E=e=>{if(n.getLastKey){if(t.focusedKey===null&&e.shiftKey)return!1;let r=n.getLastKey(t.focusedKey,ol(e));if(t.setFocusedKey(r),r!=null){if(ol(e)&&e.shiftKey&&t.selectionMode===`multiple`){t.extendSelection(r);return}if(u){t.replaceSelection(r);return}}}return!1},D=e=>{if(n.getKeyPageBelow&&t.focusedKey!=null){let r=n.getKeyPageBelow(t.focusedKey);if(r!=null)return b(e,r)}return!1},O=e=>{if(n.getKeyPageAbove&&t.focusedKey!=null){let r=n.getKeyPageAbove(t.focusedKey);if(r!=null)return b(e,r)}return!1},k=()=>{if(t.selectionMode===`multiple`&&c!==!0){t.selectAll();return}return!1},A=()=>{if(l===`clearSelection`&&!s&&t.selectedKeys.size!==0){t.clearSelection();return}return!1},j=()=>{if(!p&&r.current){let e=zc(r.current,{tabbable:!0}),t,n;do n=e.lastChild(),n&&(t=n);while(n);let i=X();t&&(!Vi(t)||i&&!Xi(i))&&Ai(t)}return{shouldContinuePropagation:!0,shouldPreventDefault:!1}},M=()=>(!p&&r.current&&r.current.focus(),{shouldContinuePropagation:!0,shouldPreventDefault:!1}),N=(e,t)=>({[oa()?e+`+Shift+Alt`:e+`+Shift+Control`]:t,[e+`+Shift`]:t,[oa()?e+`+Alt`:e+`+Control`]:t,[e]:t}),{keyboardProps:ee}=vo({shortcuts:{...N(`ArrowDown`,x),...N(`ArrowUp`,S),...N(`ArrowLeft`,w),...N(`ArrowRight`,T),...N(`PageDown`,D),...N(`PageUp`,O)},allowRepeats:!0}),{keyboardProps:te}=vo({shortcuts:{...N(`Home`,C),...N(`End`,E),"Mod+A":k,Escape:A,Tab:j,"Tab+Shift":M}}),P=(0,o.useRef)({top:0,left:0});cs(m,`scroll`,()=>{P.current={top:m.current?.scrollTop??0,left:m.current?.scrollLeft??0}});let ne=e=>{if(t.isFocused){Y(e.currentTarget,Z(e))||t.setFocused(!1);return}if(!Y(e.currentTarget,Z(e)))return;let i=Va();t.setFocused(!0);let a=e=>{e!=null&&(t.setFocusedKey(e),u&&!t.isSelected(e)&&t.replaceSelection(e))};if(g&&(i===`keyboard`||i===`virtual`))a(g===`first`?n.getFirstKey?.():n.getLastKey?.());else if(t.focusedKey==null){let r=e.relatedTarget;r&&e.currentTarget.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_FOLLOWING?a(t.lastSelectedKey??n.getLastKey?.()):a(t.firstSelectedKey??n.getFirstKey?.())}else m.current&&(m.current.scrollTop=P.current.top,m.current.scrollLeft=P.current.left);if(t.focusedKey!=null&&m.current){let e=Ep(r,t.focusedKey);e instanceof HTMLElement&&(!Vi(e)&&!f&&Ai(e),(i===`keyboard`||g&&i===`virtual`)&&Np(e,{containingElement:r.current}))}},re=e=>{Y(e.currentTarget,e.relatedTarget)||t.setFocused(!1)},ie=(0,o.useRef)(!1);cs(r,Od,f?e=>{let{detail:n}=e;e.stopPropagation(),t.setFocused(!0),n?.focusStrategy===`first`&&(ie.current=!0)}:void 0);let F=n.getFirstKey?.()??null;Lp(()=>{if(ie.current){if(F==null){let e=X();kd(r.current),jd(e,null),t.collection.size>0&&(ie.current=!1)}else t.setFocusedKey(F),ie.current=!1}},[F,t.collection.size]),Lp(()=>{t.collection.size>0&&(ie.current=!1)},[t.focusedKey]),cs(r,Dd,f?e=>{e.stopPropagation(),t.setFocused(!1),e.detail?.clearFocusKey&&t.setFocusedKey(null)}:void 0);let I=(0,o.useRef)(i),L=(0,o.useRef)(!1);(0,o.useEffect)(()=>{if(I.current){let e=null;i===`first`&&(e=n.getFirstKey?.()??null),i===`last`&&(e=n.getLastKey?.()??null);let a=t.selectedKeys;if(a.size){for(let n of a)if(t.canSelectItem(n)){e=n;break}}t.setFocused(!0),t.setFocusedKey(e),e!=null&&u&&!a.size&&t.canSelectItem(e)&&t.replaceSelection(e),e==null&&!f&&r.current&&no(r.current),t.collection.size>0&&(I.current=!1,L.current=!0)}});let ae=(0,o.useRef)(t.focusedKey),oe=(0,o.useRef)(null);(0,o.useEffect)(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==ae.current||L.current)&&m.current&&r.current){let e=Va(),n=Ep(r,t.focusedKey);if(!(n instanceof HTMLElement))return;(e===`keyboard`||L.current)&&(oe.current&&cancelAnimationFrame(oe.current),oe.current=requestAnimationFrame(()=>{m.current&&(jp(m.current,n),e!==`virtual`&&Np(n,{containingElement:r.current}))}))}!f&&t.isFocused&&t.focusedKey==null&&ae.current!=null&&r.current&&no(r.current),ae.current=t.focusedKey,L.current=!1}),(0,o.useEffect)(()=>()=>{oe.current&&cancelAnimationFrame(oe.current)},[]),cs(r,`react-aria-focus-scope-restore`,e=>{e.preventDefault(),t.setFocused(!0)});let R={...U(te,ee),onFocus:ne,onBlur:re,onMouseDown(e){m.current===Z(e)&&e.preventDefault()}},{typeSelectProps:se}=Fp({keyboardDelegate:n,selectionManager:t});d||(R=U(se,R));let ce;f||(ce=t.focusedKey==null?0:-1);let le=Op(t.collection);return{collectionProps:U(R,{tabIndex:ce,"data-collection":le})}}var zp=class{constructor(e){this.ref=e}getItemRect(e){let t=this.ref.current;if(!t)return null;let n=e==null?null:Ep(this.ref,e);if(!n)return null;let r=t.getBoundingClientRect(),i=n.getBoundingClientRect();return{x:i.left-r.left-t.clientLeft+t.scrollLeft,y:i.top-r.top-t.clientTop+t.scrollTop,width:i.width,height:i.height}}getContentSize(){let e=this.ref.current;return{width:e?.scrollWidth??0,height:e?.scrollHeight??0}}getVisibleRect(){let e=this.ref.current;return{x:e?.scrollLeft??0,y:e?.scrollTop??0,width:e?.clientWidth??0,height:e?.clientHeight??0}}},Bp=class{constructor(...e){if(e.length===1){let t=e[0];this.collection=t.collection,this.ref=t.ref,this.collator=t.collator,this.disabledKeys=t.disabledKeys||new Set,this.disabledBehavior=t.disabledBehavior||`all`,this.orientation=t.orientation||`vertical`,this.direction=t.direction,this.layout=t.layout||`stack`,this.layoutDelegate=t.layoutDelegate||new zp(t.ref)}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout=`stack`,this.orientation=`vertical`,this.disabledBehavior=`all`,this.layoutDelegate=new zp(this.ref);this.layout===`stack`&&this.orientation===`vertical`&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}isDisabled(e){return this.disabledBehavior===`all`&&(e.props?.isDisabled||this.disabledKeys.has(e.key))&&e.props?.disabledBehavior!==`selection`}findNextNonDisabled(e,t,n=!1){let r=e;for(;r!=null;){let e=this.collection.getItem(r);if(e?.type===`item`&&(n||!this.isDisabled(e)))return r;r=t(r)}return null}getNextKey(e,t){let n=e;return n=this.collection.getKeyAfter(n),this.findNextNonDisabled(n,e=>this.collection.getKeyAfter(e),t?.includeDisabled)}getPreviousKey(e,t){let n=e;return n=this.collection.getKeyBefore(n),this.findNextNonDisabled(n,e=>this.collection.getKeyBefore(e),t?.includeDisabled)}findKey(e,t,n){let r=e,i=this.layoutDelegate.getItemRect(r);if(!i||r==null)return null;let a=i;do{if(r=t(r),r==null)break;i=this.layoutDelegate.getItemRect(r)}while(i&&n(a,i)&&r!=null);return r}isSameRow(e,t){return e.y===t.y||e.x!==t.x}isSameColumn(e,t){return e.x===t.x||e.y!==t.y}isReversed(e){let t=this.getNextKey(e),n=Ep(this.ref,e);if(t!=null){let e=Ep(this.ref,t);return!n||!e?!1:n.getBoundingClientRect().top>e.getBoundingClientRect().top}let r=this.getPreviousKey(e);if(r!=null){let e=Ep(this.ref,r);return!n||!e?!1:e.getBoundingClientRect().top>n.getBoundingClientRect().top}return!1}getKeyBelow(e,t){return this.layout===`grid`&&this.orientation===`vertical`?this.findKey(e,e=>this.getNextKey(e,t),this.isSameRow):this.orientation===`vertical`&&this.isReversed(e)?this.getPreviousKey(e,t):this.getNextKey(e,t)}getKeyAbove(e,t){return this.layout===`grid`&&this.orientation===`vertical`?this.findKey(e,e=>this.getPreviousKey(e,t),this.isSameRow):this.orientation===`vertical`&&this.isReversed(e)?this.getNextKey(e,t):this.getPreviousKey(e,t)}getNextColumn(e,t,n){return t?this.getPreviousKey(e,n):this.getNextKey(e,n)}getKeyRightOf(e,t){let n=this.direction===`ltr`?`getKeyRightOf`:`getKeyLeftOf`;return this.layoutDelegate[n]?(e=this.layoutDelegate[n](e),this.findNextNonDisabled(e,e=>this.layoutDelegate[n](e),t?.includeDisabled)):this.layout===`grid`?this.orientation===`vertical`?this.getNextColumn(e,this.direction===`rtl`,t):this.findKey(e,e=>this.getNextColumn(e,this.direction===`rtl`,t),this.isSameColumn):this.orientation===`horizontal`?this.getNextColumn(e,this.direction===`rtl`,t):null}getKeyLeftOf(e,t){let n=this.direction===`ltr`?`getKeyLeftOf`:`getKeyRightOf`;return this.layoutDelegate[n]?(e=this.layoutDelegate[n](e),this.findNextNonDisabled(e,e=>this.layoutDelegate[n](e),t?.includeDisabled)):this.layout===`grid`?this.orientation===`vertical`?this.getNextColumn(e,this.direction===`ltr`,t):this.findKey(e,e=>this.getNextColumn(e,this.direction===`ltr`,t),this.isSameColumn):this.orientation===`horizontal`?this.getNextColumn(e,this.direction===`ltr`,t):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,e=>this.collection.getKeyAfter(e))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,e=>this.collection.getKeyBefore(e))}getKeyPageAbove(e){let t=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;let r=this.isReversed(e);if(t&&!qc(t))return this.getFirstKey();let i=e;if(this.orientation===`horizontal`){let e=Math.max(0,n.x+n.width-this.layoutDelegate.getVisibleRect().width);for(;n&&n.x>e&&i!=null;)i=this.getKeyAbove(i),n=i==null?null:this.layoutDelegate.getItemRect(i)}else{let e=this.layoutDelegate.getVisibleRect(),t=r?n.y-e.height:Math.max(0,n.y+n.height-e.height);for(;n&&n.y>t&&i!=null;)i=this.getKeyAbove(i),n=i==null?null:this.layoutDelegate.getItemRect(i)}return i??(r?this.getLastKey():this.getFirstKey())}getKeyPageBelow(e){let t=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;let r=this.isReversed(e);if(t&&!qc(t))return this.getLastKey();let i=e;if(this.orientation===`horizontal`){let e=Math.min(this.layoutDelegate.getContentSize().width,n.x-n.width+this.layoutDelegate.getVisibleRect().width);for(;n&&n.x<e&&i!=null;)i=this.getKeyBelow(i),n=i==null?null:this.layoutDelegate.getItemRect(i)}else{let e=Math.min(this.layoutDelegate.getContentSize().height,n.y-n.height+this.layoutDelegate.getVisibleRect().height);for(;n&&n.y<e&&i!=null;)i=this.getKeyBelow(i),n=i==null?null:this.layoutDelegate.getItemRect(i)}return i??(r?this.getFirstKey():this.getLastKey())}getKeyForSearch(e,t){if(!this.collator)return null;let n=this.collection,r=t||this.getFirstKey();for(;r!=null;){let t=n.getItem(r);if(!t)return null;let i=t.textValue.slice(0,e.length);if(t.textValue&&this.collator.compare(i,e)===0)return r;r=this.getNextKey(r)}return null}},Vp=new Map;function Hp(e){let{locale:t}=mi(),n=t+(e?Object.entries(e).sort((e,t)=>e[0]<t[0]?-1:1).join():``);if(Vp.has(n))return Vp.get(n);let r=new Intl.Collator(t,e);return Vp.set(n,r),r}function Up(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:i,keyboardDelegate:a,layoutDelegate:s,orientation:c}=e,l=Hp({usage:`search`,sensitivity:`base`}),u=t.disabledBehavior,d=(0,o.useMemo)(()=>a||new Bp({collection:n,disabledKeys:r,disabledBehavior:u,ref:i,collator:l,layoutDelegate:s,orientation:c}),[a,s,n,r,i,l,u,c]),{collectionProps:f}=Rp({...e,ref:i,selectionManager:t,keyboardDelegate:d});return{listProps:f}}function Wp(e){let{id:t,selectionManager:n,key:r,ref:i,shouldSelectOnPressUp:a,shouldUseVirtualFocus:s,focus:c,isDisabled:l,onAction:u,allowsDifferentPressOrigin:d,linkBehavior:f=`action`}=e,p=_a();t=Ar(t);let m=e=>{if(e.pointerType===`keyboard`&&Tp(e))n.toggleSelection(r);else{if(n.selectionMode===`none`)return;if(n.isLink(r)){if(f===`selection`&&i.current){let t=n.getItemProps(r);p.open(i.current,e,t.href,t.routerOptions),n.setSelectedKeys(n.selectedKeys);return}if(f===`override`||f===`none`)return}n.selectionMode===`single`?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):e&&e.shiftKey?n.extendSelection(r):n.selectionBehavior===`toggle`||e&&(ol(e)||e.pointerType===`touch`||e.pointerType===`virtual`)?n.toggleSelection(r):n.replaceSelection(r)}};(0,o.useEffect)(()=>{r===n.focusedKey&&n.isFocused&&(s?kd(i.current):c?c():X()!==i.current&&i.current&&no(i.current))},[i,r,n.focusedKey,n.childFocusStrategy,n.isFocused,s]),l||=n.isDisabled(r);let h={};!s&&!l?h={tabIndex:r===n.focusedKey?0:-1,onFocus(e){Z(e)===i.current&&n.setFocusedKey(r)}}:l&&(h.onMouseDown=e=>{e.preventDefault()}),(0,o.useEffect)(()=>{l&&n.focusedKey===r&&n.setFocusedKey(null)},[n,l,r]);let g=n.isLink(r)&&f===`override`,_=u&&e.UNSTABLE_itemBehavior===`action`,v=n.isLink(r)&&f!==`selection`&&f!==`none`,y=!l&&n.canSelectItem(r)&&!g&&!_,b=(u||v)&&!l,x=b&&(n.selectionBehavior===`replace`?!y:!y||n.isEmpty),S=b&&y&&n.selectionBehavior===`replace`,C=x||S,w=(0,o.useRef)(null),T=C&&y,E=(0,o.useRef)(!1),D=(0,o.useRef)(!1),O=n.getItemProps(r),k=e=>{u&&(u(),i.current?.dispatchEvent(new CustomEvent(`react-aria-item-action`,{bubbles:!0}))),v&&i.current&&p.open(i.current,e,O.href,O.routerOptions)},A={ref:i};a?(A.onPressStart=e=>{w.current=e.pointerType,E.current=T,e.pointerType===`keyboard`&&(!C||Kp(e.key))&&m(e)},d?(A.onPressUp=x?void 0:e=>{e.pointerType===`mouse`&&y&&m(e)},A.onPress=x?k:e=>{e.pointerType!==`keyboard`&&e.pointerType!==`mouse`&&y&&m(e)}):A.onPress=e=>{if(x||S&&e.pointerType!==`mouse`){if(e.pointerType===`keyboard`&&!Gp(e.key))return;k(e)}else e.pointerType!==`keyboard`&&y&&m(e)}):(A.onPressStart=e=>{w.current=e.pointerType,E.current=T,D.current=x,y&&(e.pointerType===`mouse`&&!x||e.pointerType===`keyboard`&&(!b||Kp(e.key)))&&m(e)},A.onPress=e=>{(e.pointerType===`touch`||e.pointerType===`pen`||e.pointerType===`virtual`||e.pointerType===`keyboard`&&C&&Gp(e.key)||e.pointerType===`mouse`&&D.current)&&(C?k(e):y&&m(e))});let j=kp(n.collection);if(h[`data-collection`]=j,h[`data-key`]=r,A.preventFocusOnPress=s,s&&(A=U(A,{onPressStart(e){e.pointerType!==`touch`&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(e){e.pointerType===`touch`&&(n.setFocused(!0),n.setFocusedKey(r))}})),O)for(let e of[`onPressStart`,`onPressEnd`,`onPressChange`,`onPress`,`onPressUp`,`onClick`])O[e]&&(A[e]=fr(A[e],O[e]));let{pressProps:M,isPressed:N}=Vo(A),ee=S?e=>{w.current===`mouse`&&(e.stopPropagation(),e.preventDefault(),k(e))}:void 0,{longPressProps:te}=bp({isDisabled:!T,onLongPress(e){e.pointerType===`touch`&&(m(e),n.setSelectionBehavior(`toggle`))}}),P=e=>{w.current===`touch`&&E.current&&e.preventDefault()},ne=f!==`none`&&n.isLink(r)?e=>{va.isOpening||e.preventDefault()}:void 0,re=U(h,y||x||s&&!l?M:{},T?te:{},{onDoubleClick:ee,onDragStartCapture:P,onClick:ne,id:t},s?{onMouseDown:e=>e.preventDefault()}:void 0),ie=e=>{let t=e;for(;t&&t!==i.current;){let e=t.getAttribute(`data-collection`);if(e!=null)return e!==j;t=t.parentElement}return Xi(e)},F=re.onPointerDown;re.onPointerDown=e=>{let t=Z(e);if(t&&t!==i.current&&ie(t)){e.stopPropagation();return}F?.(e)};let I=re.onMouseDown;return re.onMouseDown=e=>{let t=Z(e);if(t&&t!==i.current&&ie(t)){e.stopPropagation();return}I?.(e)},{itemProps:re,isPressed:N,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:l,allowsSelection:y,hasAction:C}}function Gp(e){return e===`Enter`}function Kp(e){return e===` `}function qp(e,t){return typeof t.getChildren==`function`?t.getChildren(e.key):e.childNodes}function Jp(e){return Yp(e,0)}function Yp(e,t){if(t<0)return;let n=0;for(let r of e){if(n===t)return r;n++}}function Xp(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...Zp(e,t),t],i=[...Zp(e,n),n],a=r.slice(0,i.length).findIndex((e,t)=>e!==i[t]);return a===-1?r.findIndex(e=>e===n)>=0?1:(i.findIndex(e=>e===t),-1):(t=r[a],n=i[a],t.index-n.index)}function Zp(e,t){let n=[],r=t;for(;r?.parentKey!=null;)r=e.getItem(r.parentKey),r&&n.unshift(r);return n}var Qp=new WeakMap;function $p(e){let t=Qp.get(e);if(t!=null)return t;let n=0,r=t=>{for(let i of t)i.type===`section`?r(qp(i,e)):i.type===`item`&&n++};return r(e),Qp.set(e,n),n}function em(e){let t=Fu(e),[n,r]=(0,o.useState)(null),[i,a]=(0,o.useState)([]),s=()=>{a([]),t.close()},c=(e,t)=>{a(n=>t>n.length?n:[...n.slice(0,t),e])},l=(e,t)=>{a(n=>n[t]===e?n.slice(0,t):n)};return{focusStrategy:n,...t,open(e=null){r(e),t.open()},toggle(e=null){r(e),t.toggle()},close(){s()},expandedKeysStack:i,openSubmenu:c,closeSubmenu:l}}function tm(e){let t=o.version.split(`.`);return parseInt(t[0],10)>=19?e:e?`true`:void 0}function nm(e,t){let{collection:n,onLoadMore:r,scrollOffset:i=1,direction:a=`end`}=e,s=(0,o.useRef)(null),c=Po(e=>{for(let t of e)t.isIntersecting&&r&&r()});H(()=>{if(t.current){let e=100*i,n=a===`start`?`${e}% 0px 0px 0px`:`0px ${e}% ${e}% ${e}%`;s.current=new IntersectionObserver(c,{root:Jc(t?.current),rootMargin:n}),s.current.observe(t.current)}return()=>{s.current&&s.current.disconnect()}},[n,t,i,a])}var rm=class e extends Set{constructor(t,n,r){super(t),t instanceof e?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}},im=class e{constructor(e,t,n){this.collection=e,this.state=t,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(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,t){(e==null||this.collection.getItem(e))&&this.state.setFocusedKey(e,t)}get selectedKeys(){return this.state.selectedKeys===`all`?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if(this.state.selectionMode===`none`)return!1;let t=this.getKey(e);return t==null?!1:this.state.selectedKeys===`all`?this.canSelectItem(t):this.state.selectedKeys.has(t)}get isEmpty(){return this.state.selectedKeys!==`all`&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys===`all`)return!0;if(this._isSelectAll!=null)return this._isSelectAll;let e=this.getSelectAllKeys(),t=this.state.selectedKeys;return this._isSelectAll=e.every(e=>t.has(e)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);(!e||n&&Xp(this.collection,n,e)<0)&&(e=n)}return e?.key??null}get lastSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);(!e||n&&Xp(this.collection,n,e)>0)&&(e=n)}return e?.key??null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if(this.selectionMode===`none`)return;if(this.selectionMode===`single`){this.replaceSelection(e);return}let t=this.getKey(e);if(t==null)return;let n;if(this.state.selectedKeys===`all`)n=new rm([t],t,t);else{let e=this.state.selectedKeys,r=e.anchorKey??t;n=new rm(e,r,t);for(let i of this.getKeyRange(r,e.currentKey??t))n.delete(i);for(let e of this.getKeyRange(t,r))this.canSelectItem(e)&&n.add(e)}this.state.setSelectedKeys(n)}getKeyRange(e,t){let n=this.collection.getItem(e),r=this.collection.getItem(t);return n&&r?Xp(this.collection,n,r)<=0?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){if(this.layoutDelegate?.getKeyRange)return this.layoutDelegate.getKeyRange(e,t);let n=[],r=e;for(;r!=null;){let e=this.collection.getItem(r);if(e&&(e.type===`item`||e.type===`cell`&&this.allowsCellSelection)&&n.push(r),r===t)return n;r=this.collection.getKeyAfter(r)}return[]}getKey(e){let t=this.collection.getItem(e);if(!t||t.type===`cell`&&this.allowsCellSelection)return e;for(;t&&t.type!==`item`&&t.parentKey!=null;)t=this.collection.getItem(t.parentKey);return!t||t.type!==`item`?null:t.key}toggleSelection(e){if(this.selectionMode===`none`)return;if(this.selectionMode===`single`&&!this.isSelected(e)){this.replaceSelection(e);return}let t=this.getKey(e);if(t==null)return;let n=new rm(this.state.selectedKeys===`all`?this.getSelectAllKeys():this.state.selectedKeys);n.has(t)?n.delete(t):this.canSelectItem(t)&&(n.add(t),n.anchorKey=t,n.currentKey=t),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(e){if(this.selectionMode===`none`)return;let t=this.getKey(e);if(t==null)return;let n=this.canSelectItem(t)?new rm([t],t,t):new rm;this.state.setSelectedKeys(n)}setSelectedKeys(e){if(this.selectionMode===`none`)return;let t=new rm;for(let n of e){let e=this.getKey(n);if(e!=null&&(t.add(e),this.selectionMode===`single`))break}this.state.setSelectedKeys(t)}getSelectAllKeys(){let e=this.fullCollection??this.collection,t=[],n=r=>{for(;r!=null;){if(this.canSelectItemIn(r,e)){let i=e.getItem(r);i?.type===`item`&&t.push(r),i?.hasChildNodes&&(this.allowsCellSelection||i.type!==`item`)&&n(Jp(qp(i,e))?.key??null)}r=e.getKeyAfter(r)}};return n(e.getFirstKey()),t}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 rm)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,t){this.selectionMode!==`none`&&(this.selectionMode===`single`?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior===`toggle`||t&&(t.pointerType===`touch`||t.pointerType===`virtual`)?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let t=this.selectedKeys;if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;for(let n of t)if(!e.has(n))return!1;return!0}canSelectItem(e){return this.canSelectItemIn(e,this.collection)}canSelectItemIn(e,t){if(this.state.selectionMode===`none`||this.state.disabledKeys.has(e))return!1;let n=t.getItem(e);return!(!n||n?.props?.isDisabled||n.type===`cell`&&!this.allowsCellSelection)}isDisabled(e){let t=this.collection.getItem(e);return this.state.disabledBehavior===`all`&&(this.state.disabledKeys.has(e)||!!t?.props?.isDisabled)&&t?.props?.disabledBehavior!==`selection`}isLink(e){return!!this.collection.getItem(e)?.props?.href}getItemProps(e){return this.collection.getItem(e)?.props}withCollection(t){return new e(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0,fullCollection:this.fullCollection??this.collection})}},am=class{build(e,t){return this.context=t,om(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:t,items:n}=e;if(o.isValidElement(t)&&t.type===o.Fragment)yield*this.iterateCollection({children:t.props.children,items:n});else if(typeof t==`function`){if(!n)throw Error(`props.children was a function but props.items is missing`);let e=0;for(let r of n)yield*this.getFullNode({value:r,index:e},{renderer:t}),e++}else{let e=[];o.Children.forEach(t,t=>{t&&e.push(t)});let n=0;for(let t of e){let e=this.getFullNode({element:t,index:n},{});for(let t of e)n++,yield t}}}getKey(e,t,n,r){if(e.key!=null)return e.key;if(t.type===`cell`&&t.key!=null)return`${r}${t.key}`;let i=t.value;if(i!=null){let e=i.key??i.id;if(e==null)throw Error(`No key found for item`);return e}return r?`${r}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,n,r){if(o.isValidElement(e.element)&&e.element.type===o.Fragment){let i=[];o.Children.forEach(e.element.props.children,e=>{i.push(e)});let a=e.index??0;for(let e of i)yield*this.getFullNode({element:e,index:a++},t,n,r);return}let i=e.element;if(!i&&e.value&&t&&t.renderer){let n=this.cache.get(e.value);if(n&&(!n.shouldInvalidate||!n.shouldInvalidate(this.context))){n.index=e.index,n.parentKey=r?r.key:null,yield n;return}i=t.renderer(e.value)}if(o.isValidElement(i)){let a=i.type;if(typeof a!=`function`&&typeof a.getCollectionNode!=`function`){let e=i.type;throw Error(`Unknown element <${e}> in collection.`)}let o=a.getCollectionNode(i.props,this.context),s=e.index??0,c=o.next();for(;!c.done&&c.value;){let a=c.value;e.index=s;let l=a.key??null;l??=a.element?null:this.getKey(i,e,t,n);let u=[...this.getFullNode({...a,key:l,index:s,wrapper:sm(e.wrapper,a.wrapper)},this.getChildState(t,a),n?`${n}${i.key}`:i.key,r)];for(let t of u){if(t.value=a.value??e.value??null,t.value&&this.cache.set(t.value,t),e.type&&t.type!==e.type)throw Error(`Unsupported type <${cm(t.type)}> in <${cm(r?.type??`unknown parent type`)}>. Only <${cm(e.type)}> is supported.`);s++,yield t}c=o.next(u)}return}if(e.key==null||e.type==null)return;let a=this,s={type:e.type,props:e.props,key:e.key,parentKey:r?r.key:null,value:e.value??null,level:(r?.level??0)+ +(r?.type===`item`),index:e.index,rendered:e.rendered,textValue:e.textValue??``,"aria-label":e[`aria-label`],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:om(function*(){if(!e.hasChildNodes||!e.childNodes)return;let n=0;for(let r of e.childNodes()){r.key!=null&&(r.key=`${s.key}${r.key}`);let e=a.getFullNode({...r,index:n},a.getChildState(t,r),s.key,s);for(let t of e)n++,yield t}})};yield s}constructor(){this.cache=new WeakMap}};function om(e){let t=[],n=null;return{*[Symbol.iterator](){for(let e of t)yield e;n||=e();for(let e of n)t.push(e),yield e}}}function sm(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function cm(e){return e[0].toUpperCase()+e.slice(1)}function lm(e,t,n){let r=(0,o.useMemo)(()=>new am,[]),{children:i,items:a,collection:s}=e;return(0,o.useMemo)(()=>s||t(r.build({children:i,items:a},n)),[r,i,a,s,n,t])}function um(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function dm(e){let{selectionMode:t=`none`,disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i=`toggle`,disabledBehavior:a=`all`}=e,s=(0,o.useRef)(!1),[,c]=(0,o.useState)(!1),l=(0,o.useRef)(null),u=(0,o.useRef)(null),[,d]=(0,o.useState)(null),[f,p]=us((0,o.useMemo)(()=>fm(e.selectedKeys),[e.selectedKeys]),(0,o.useMemo)(()=>fm(e.defaultSelectedKeys,new rm),[e.defaultSelectedKeys]),e.onSelectionChange),m=(0,o.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[h,g]=(0,o.useState)(i);i===`replace`&&h===`toggle`&&typeof f==`object`&&f.size===0&&g(`replace`);let _=(0,o.useRef)(i);return(0,o.useEffect)(()=>{i!==_.current&&(g(i),_.current=i)},[i]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:h,setSelectionBehavior:g,get isFocused(){return s.current},setFocused(e){s.current=e,c(e)},get focusedKey(){return l.current},get childFocusStrategy(){return u.current},setFocusedKey(e,t=`first`){l.current=e,u.current=t,d(e)},selectedKeys:f,setSelectedKeys(e){(r||!um(e,f))&&p(e)},disabledKeys:m,disabledBehavior:a}}function fm(e,t){return e?e===`all`?`all`:new rm(e):t}var pm=(0,o.createContext)(null),mm=(0,o.createContext)(null);(class extends Uu{static{this.type=`submenutrigger`}filter(e,t,n){let r=e.getItem(this.firstChildKey);if(r&&n(r.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}}),hd(Ku,function(e,t,n){let r=(0,o.useContext)(pm),{isLoading:i,onLoadMore:a,scrollOffset:s,...c}=e,l=(0,o.useRef)(null);nm((0,o.useMemo)(()=>({onLoadMore:a,collection:r?.collection,sentinelRef:l,scrollOffset:s}),[a,s,r?.collection]),l);let u=W({...c,id:void 0,children:n.rendered,defaultClassName:`react-aria-MenuLoadingIndicator`,values:void 0});return o.createElement(o.Fragment,null,o.createElement(`div`,{style:{position:`relative`,width:0,height:0},inert:tm(!0)},o.createElement(`div`,{"data-testid":`loadMoreSentinel`,ref:l,style:{position:`absolute`,height:1,width:1}})),i&&u.children&&o.createElement(o.Fragment,null,o.createElement(K.div,{...U(q(e,{global:!0}),{tabIndex:-1}),...u,role:`menuitem`,ref:t},u.children)))});function hm(e,t){let{role:n=`dialog`,isEntering:r}=e,i=Mr();i=e[`aria-label`]?void 0:i;let a=Mr();a=n===`alertdialog`&&!e[`aria-describedby`]?a:void 0;let s=(0,o.useRef)(!1);(0,o.useEffect)(()=>{if(!r&&t.current&&!Vi(t.current)){no(t.current);let e=setTimeout(()=>{(X()===t.current||X()===document.body)&&(s.current=!0,t.current&&(t.current.blur(),no(t.current)),s.current=!1)},500);return()=>{clearTimeout(e)}}},[t,r]),Pu(),(0,o.useRef)(!1),(0,o.useEffect)(()=>{});let c=e[`aria-describedby`]??a;return{dialogProps:{...q(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e[`aria-labelledby`]??i,"aria-describedby":c,onBlur:e=>{s.current&&e.stopPropagation()}},titleProps:{id:i},contentProps:{id:a}}}var gm=(0,o.createContext)(null),_m=(0,o.createContext)(null);function vm(e){let t=em(e),n=(0,o.useRef)(null),{triggerProps:r,overlayProps:i}=Sp({type:`dialog`},t,n);return r.id=Ar(),i[`aria-labelledby`]=r.id,qr()?null:o.createElement(Lr,{values:[[_m,t],[mm,t],[gm,i],[zu,{trigger:`DialogTrigger`,triggerRef:n,id:i.id,"aria-labelledby":i[`aria-labelledby`]}]]},o.createElement(Ou,{...r,ref:n,isPressed:t.isOpen},e.children))}var ym=(0,o.forwardRef)(function(e,t){let n=e[`aria-labelledby`];[e,t]=G(e,t,gm);let{dialogProps:r,titleProps:i,contentProps:a}=hm({...e,"aria-labelledby":n},t),s=(0,o.useContext)(_m);!r[`aria-label`]&&!r[`aria-labelledby`]&&e[`aria-labelledby`]&&(r[`aria-labelledby`]=e[`aria-labelledby`]);let c=W({defaultClassName:`react-aria-Dialog`,className:e.className,style:e.style,children:e.children,values:{close:s?.close||(()=>{})}}),l=q(e,{global:!0});return o.createElement(K.section,{...U(l,c,r),render:e.render,ref:t,slot:e.slot||void 0},o.createElement(Lr,{values:[[ds,{slots:{[Ir]:{},title:{...i,level:2}}}],[Nf,{slots:{[Ir]:{},description:a}}],[is,{slots:{[Ir]:{},close:{onPress:()=>s?.close()}}}]]},c.children))});function bm(e,t,n){let{overlayProps:r,underlayProps:i}=Kc({...e,isOpen:t.isOpen,onClose:t.close},n);xl({isDisabled:!t.isOpen,UNSTABLE_overrideFocus:e.UNSTABLE_overrideFocus}),Pu();let{isEntering:a}=e;return(0,o.useEffect)(()=>{if(t.isOpen&&n.current)return a?Bs(n.current):zs([n.current],{shouldUseInert:!0})},[t.isOpen,a,n]),{modalProps:U(r),underlayProps:i}}var xm=typeof document<`u`&&window.visualViewport;function Sm(){let e=wr(),t=(0,o.useRef)(null),[n,r]=(0,o.useState)(()=>e?{width:0,height:0}:Cm());return(0,o.useEffect)(()=>{let e=e=>{r(t=>e.width===t.width&&e.height===t.height?t:e)},n=()=>{xm&&xm.scale>1||e(Cm())},i=n=>{xm&&xm.scale>1||al(Z(n))&&(t.current=gl(t=>{t||e({width:document.documentElement.clientWidth,height:document.documentElement.clientHeight})}))};return e(Cm()),la()&&da()&&window.addEventListener(`blur`,i,!0),xm?xm.addEventListener(`resize`,n):window.addEventListener(`resize`,n),()=>{t.current?.(),la()&&da()&&window.removeEventListener(`blur`,i,!0),xm?xm.removeEventListener(`resize`,n):window.removeEventListener(`resize`,n)}},[]),n}function Cm(){return{width:xm?Math.min(xm.width*xm.scale,document.documentElement.clientWidth):document.documentElement.clientWidth,height:xm?xm.height*xm.scale:document.documentElement.clientHeight}}var wm=(0,o.createContext)(null),Tm=(0,o.createContext)(null),Em=(0,o.forwardRef)(function(e,t){if((0,o.useContext)(Tm))return o.createElement(jm,{...e,modalRef:t},e.children);let{isDismissable:n,isKeyboardDismissDisabled:r,isOpen:i,defaultOpen:a,onOpenChange:s,children:c,isEntering:l,isExiting:u,UNSTABLE_portalContainer:d,shouldCloseOnInteractOutside:f,...p}=e;return o.createElement(Om,{isDismissable:n,isKeyboardDismissDisabled:r,isOpen:i,defaultOpen:a,onOpenChange:s,isEntering:l,isExiting:u,UNSTABLE_portalContainer:d,shouldCloseOnInteractOutside:f},o.createElement(jm,{...p,modalRef:t},c))});function Dm(e,t){[e,t]=G(e,t,wm);let n=(0,o.useContext)(_m),r=Fu(e),i=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,a=Fr(t),s=(0,o.useRef)(null),c=Lu(a,i.isOpen,e.onExit),l=(0,o.useRef)(null),u=Lu(s,i.isOpen,e=>l.current?.(e)),d=c||u||e.isExiting||!1,f=wr();return!i.isOpen&&!d||f?null:o.createElement(km,{...e,state:i,isExiting:d,overlayRef:a,modalRef:s,onExitRef:l})}var Om=(0,o.forwardRef)(Dm);function km({UNSTABLE_portalContainer:e,UNSTABLE_deferUntilEntered:t,...n}){let r=n.modalRef,{state:i}=n,[a,s]=(0,o.useState)(!1),c=Iu(n.overlayRef,a,n.onEnter)||n.isEntering||!1,l=!!t&&(!a||c),{modalProps:u,underlayProps:d}=bm({...n,isEntering:l},i,r),f=(0,o.useContext)(gm),p=t?Am(f,{isEntering:l}):f,m=W({...n,defaultClassName:`react-aria-ModalOverlay`,values:{isEntering:c,isExiting:n.isExiting,state:i}}),h=Sm(),g,_;if(typeof document<`u`){let e=qc(document.body)?document.body:document.scrollingElement||document.documentElement,t=e.getBoundingClientRect().width%1,n=e.getBoundingClientRect().height%1;g=e.scrollWidth-t,_=e.scrollHeight-n}let v={...m.style,"--visual-viewport-width":h.width+`px`,"--visual-viewport-height":h.height+`px`,"--page-width":g===void 0?void 0:g+`px`,"--page-height":_===void 0?void 0:_+`px`};return H(()=>gl(()=>s(!0)),[]),o.createElement(Nu,{isExiting:n.isExiting,portalContainer:e},o.createElement(K.div,{...U(q(n,{global:!0}),d),...m,style:v,ref:n.overlayRef,"data-entering":c||void 0,"data-exiting":n.isExiting||void 0},o.createElement(Lr,{values:[[Tm,{modalProps:u,modalRef:r,isExiting:n.isExiting,onExitRef:n.onExitRef,isOpen:a,isDismissable:n.isDismissable}],[_m,i],[gm,p]]},m.children)))}function Am(e,t){if(e&&`slots`in e&&e.slots){let n={};for(let r in e.slots)n[r]={...e.slots[r],...t};return{...e,slots:n}}return{...e,...t}}function jm(e){let{modalProps:t,modalRef:n,isExiting:r,onExitRef:i,isDismissable:a,isOpen:s}=(0,o.useContext)(Tm),c=(0,o.useContext)(_m),l=Fr((0,o.useMemo)(()=>Nr(e.modalRef,n),[e.modalRef,n])),u=Iu(l,s,e.onEnter),d=W({...e,defaultClassName:`react-aria-Modal`,values:{isEntering:u,isExiting:r,state:c}});return H(()=>{i&&(i.current=e.onExit)}),o.createElement(K.div,{...U(q(e,{global:!0}),t),...d,ref:l,"data-entering":u||void 0,"data-exiting":r||void 0},a&&o.createElement(Du,{onDismiss:c.close}),d.children)}var Mm=`[data-exiting="true"]`,Nm=e=>{let t=getComputedStyle(e).animationDuration.split(`,`).map(e=>{let t=e.trim(),n=Number.parseFloat(t);return Number.isNaN(n)?0:t.endsWith(`ms`)?n:n*1e3});return Math.max(0,...t)},Pm=e=>getComputedStyle(e).animationName.split(`,`).some(e=>{let t=e.trim().replaceAll(`"`,``);return t!==``&&t!==`none`}),Fm=e=>[e,...e.querySelectorAll(Mm)],Im=e=>Math.max(0,...Fm(e).map(e=>Pm(e)?Nm(e):0)),Lm=(e,t)=>t instanceof Element&&(t===e||e.contains(t)&&t.matches(Mm)),Rm=e=>typeof e.getAnimations!=`function`||typeof CSSAnimation>`u`?[]:e.getAnimations({subtree:!0}).filter(t=>t instanceof CSSAnimation&&Lm(e,t.effect?.target)&&(t.playState===`running`||String(t.playState)===`pending`)),zm=(e,{enabled:t=!0,prepare:n,ref:r}={})=>{let i=(0,o.useRef)(null),a=(0,o.useRef)(new Map),[s,c]=(0,o.useState)(!1),[l,u]=(0,o.useState)(e),f=s;e===l?(!t||e)&&s&&(c(!1),f=!1):(u(e),f=t&&e===!1,f!==s&&c(f));let p=(0,o.useCallback)(e=>d(i,r)(e),[r]),m=(0,o.useCallback)(()=>c(!1),[]);return(0,o.useLayoutEffect)(()=>{if(!i.current){a.current.clear();return}if(e){for(let[e,{priority:t,value:n}]of a.current)e.style.opacity===`0`&&(n?e.style.setProperty(`opacity`,n,t):e.style.removeProperty(`opacity`));a.current.clear()}}),(0,o.useLayoutEffect)(()=>{let e=i.current;if(!f||!e)return;n?.(e);let t=!1,r=()=>{t||(t=!0,m())},o=()=>{if(!t){t=!0;for(let t of Fm(e))a.current.set(t,{priority:t.style.getPropertyPriority(`opacity`),value:t.style.opacity}),t.style.opacity=`0`;(0,v.flushSync)(m)}},s=e=>{if(e.length===0){r();return}Promise.all(e.map(e=>e.finished)).then(o,o)},c=Rm(e);if(c.length>0)return s(c),()=>{t=!0};let l=Im(e);if(l===0){r();return}let u=t=>{Lm(e,t.target)&&(Rm(e).length>0||o())};e.addEventListener(`animationend`,u),e.addEventListener(`animationcancel`,u);let d=window.setTimeout(o,l+50),p=window.requestAnimationFrame(()=>{let t=Rm(e);t.length!==0&&(window.clearTimeout(d),s(t))});return()=>{t=!0,e.removeEventListener(`animationend`,u),e.removeEventListener(`animationcancel`,u),window.clearTimeout(d),window.cancelAnimationFrame(p)}},[m,f,n]),{isExiting:f,ref:p}},Bm=(e,t,n)=>e!=null||t!=null||!n?e:n.isOpen,Vm=({"aria-label":e,children:t,className:n,slot:r,style:i,variant:a,...s})=>{let c=(0,o.useMemo)(()=>$n({variant:a}),[a]),l=zr(is,r),u=e??(s[`aria-labelledby`]!=null||l!=null&&(l[`aria-label`]!=null||l[`aria-labelledby`]!=null)?void 0:`Close`);return(0,y.jsx)(as,{"aria-label":u,className:gs(n,c),"data-slot":`close-button`,slot:r,style:i,type:`button`,...s,children:typeof t==`function`?t:t??(0,y.jsx)(xs,{"data-slot":`close-button-icon`})})};Vm.displayName=`HeroUI.CloseButton`;var Hm=Object.assign(Vm,{Root:Vm});function Um(e){let t=Hp({usage:`search`,...e}),n=(0,o.useCallback)((e,n)=>n.length===0||(e=e.normalize(`NFC`),n=n.normalize(`NFC`),t.compare(e.slice(0,n.length),n)===0),[t]),r=(0,o.useCallback)((e,n)=>n.length===0||(e=e.normalize(`NFC`),n=n.normalize(`NFC`),t.compare(e.slice(-n.length),n)===0),[t]),i=(0,o.useCallback)((e,n)=>{if(n.length===0)return!0;e=e.normalize(`NFC`),n=n.normalize(`NFC`);let r=0,i=n.length;for(;r+i<=e.length;r++){let a=e.slice(r,r+i);if(t.compare(n,a)===0)return!0}return!1},[t]);return(0,o.useMemo)(()=>({startsWith:n,endsWith:r,contains:i}),[n,r,i])}var Wm=(0,o.createContext)({}),Gm=(0,o.forwardRef)(function(e,t){[e,t]=G(e,t,Wm);let{isDisabled:n,isInvalid:r,isReadOnly:i,onHoverStart:a,onHoverChange:s,onHoverEnd:c,...l}=e;n??=!!e[`aria-disabled`]&&e[`aria-disabled`]!==`false`,r??=!!e[`aria-invalid`]&&e[`aria-invalid`]!==`false`;let{hoverProps:u,isHovered:d}=rs({onHoverStart:a,onHoverChange:s,onHoverEnd:c,isDisabled:n}),{isFocused:f,isFocusVisible:p,focusProps:m}=Zo({within:!0}),h=W({...e,values:{isHovered:d,isFocusWithin:f,isFocusVisible:p,isDisabled:n,isInvalid:r},defaultClassName:`react-aria-Group`});return o.createElement(K.div,{...U(l,m,u),...h,ref:t,role:e.role??`group`,slot:e.slot??void 0,"data-focus-within":f||void 0,"data-hovered":d||void 0,"data-focus-visible":p||void 0,"data-disabled":n||void 0,"data-invalid":r||void 0,"data-readonly":i||void 0},h.children)}),Km=(0,o.createContext)(null),qm=(0,o.forwardRef)(function(e,t){return(0,o.useContext)(Km)?.isInvalid?o.createElement(Jm,{...e,ref:t}):null}),Jm=(0,o.forwardRef)((e,t)=>{let n=(0,o.useContext)(Km),{elementType:r,...i}=e,a=q(i,{global:!0}),s=W({...i,defaultClassName:`react-aria-FieldError`,defaultChildren:n.validationErrors.length===0?void 0:n.validationErrors.join(` `),values:n});return s.children==null?null:o.createElement(Pf,{slot:`errorMessage`,elementType:r,...a,...s,ref:t})}),Ym={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},Xm={...Ym,customError:!0,valid:!1},Zm={isInvalid:!1,validationDetails:Ym,validationErrors:[]},Qm=(0,o.createContext)({}),$m=`__reactAriaFormValidationState`;function eh(e){if(e.__reactAriaFormValidationState){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}=e[$m];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}}return th(e)}function th(e){let{isInvalid:t,validationState:n,name:r,value:i,builtinValidation:a,validate:s,validationBehavior:c=`aria`}=e;n&&(t||=n===`invalid`);let l=t===void 0?null:{isInvalid:t,validationErrors:[],validationDetails:Xm},u=(0,o.useMemo)(()=>!s||i==null?null:ih(rh(s,i)),[s,i]);a?.validationDetails.valid&&(a=void 0);let d=(0,o.useContext)(Qm),f=(0,o.useMemo)(()=>r?Array.isArray(r)?r.flatMap(e=>nh(d[e])):nh(d[r]):[],[d,r]),[p,m]=(0,o.useState)(d),[h,g]=(0,o.useState)(!1);d!==p&&(m(d),g(!1));let _=(0,o.useMemo)(()=>ih(h?[]:f),[h,f]),v=(0,o.useRef)(Zm),[y,b]=(0,o.useState)(Zm),x=(0,o.useRef)(Zm),S=()=>{if(!C)return;w(!1);let e=u||a||v.current;ah(e,x.current)||(x.current=e,b(e))},[C,w]=(0,o.useState)(!1);return(0,o.useEffect)(S),{realtimeValidation:l||_||u||a||Zm,displayValidation:c===`native`?l||_||y:l||_||u||a||y,updateValidation(e){c===`aria`&&!ah(y,e)?b(e):v.current=e},resetValidation(){let e=Zm;ah(e,x.current)||(x.current=e,b(e)),c===`native`&&w(!1),g(!0)},commitValidation(){c===`native`&&w(!0),g(!0)}}}function nh(e){return e?Array.isArray(e)?e:[e]:[]}function rh(e,t){if(typeof e==`function`){let n=e(t);if(n&&typeof n!=`boolean`)return nh(n)}return[]}function ih(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:Xm}:null}function ah(e,t){return e===t||!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((e,n)=>e===t.validationErrors[n])&&Object.entries(e.validationDetails).every(([e,n])=>t.validationDetails[e]===n)}function oh(...e){let t=new Set,n=!1,r={...Ym};for(let i of e){for(let e of i.validationErrors)t.add(e);n||=i.isInvalid;for(let e in r)r[e]||=i.validationDetails[e]}return r.valid=!n,{isInvalid:n,validationErrors:[...t],validationDetails:r}}var sh=(0,o.createContext)(null),ch=(0,o.forwardRef)(function(e,t){[e,t]=G(e,t,sh);let{validationErrors:n,validationBehavior:r=`native`,children:i,className:a,...s}=e;return o.createElement(K.form,{noValidate:r!==`native`,...s,ref:t,className:a||`react-aria-Form`},o.createElement(sh.Provider,{value:{...e,validationBehavior:r}},o.createElement(Qm.Provider,{value:n??{}},i)))}),lh={};lh={colorSwatchPicker:`ØĒØēŲŠŲŠØąØ§ØĒ Ø§Ų„ØŖŲ„ŲˆØ§Ų†`,dropzoneLabel:`DropZone`,selectPlaceholder:`حدد ØšŲ†ØĩØąŲ‹Ø§`,tableResizer:`ØŖØ¯Ø§ØŠ ØĒØēŲŠŲŠØą Ø§Ų„Ø­ØŦŲ…`};var uh={};uh={colorSwatchPicker:`ĐĻвĐĩŅ‚ĐžĐ˛Đ¸ ĐŧĐžŅŅ‚Ņ€Đ¸`,dropzoneLabel:`DropZone`,selectPlaceholder:`ИСйĐĩŅ€ĐĩŅ‚Đĩ ĐŋŅ€ĐĩĐ´ĐŧĐĩŅ‚`,tableResizer:`ĐŸŅ€ĐĩĐžŅ€Đ°ĐˇĐŧĐĩŅ€Đ¸Ņ‚ĐĩĐģ`};var dh={};dh={colorSwatchPicker:`Vzorky barev`,dropzoneLabel:`Místo pro přetaÅžení`,selectPlaceholder:`Vyberte poloÅžku`,tableResizer:`Změna velikosti`};var fh={};fh={colorSwatchPicker:`Farveprøver`,dropzoneLabel:`DropZone`,selectPlaceholder:`VÃĻlg et element`,tableResizer:`StørrelsesÃĻndring`};var ph={};ph={colorSwatchPicker:`Farbfelder`,dropzoneLabel:`Ablegebereich`,selectPlaceholder:`Element wählen`,tableResizer:`GrÃļßenanpassung`};var mh={};mh={colorSwatchPicker:`Î§ĪĪ‰ÎŧÎąĪ„ÎšÎēÎŦ δÎĩÎ¯ÎŗÎŧÎąĪ„Îą`,dropzoneLabel:`DropZone`,selectPlaceholder:`Î•Ī€ÎšÎģÎ­ÎžĪ„Îĩ έÎŊÎą ÎąÎŊĪ„ÎšÎēÎĩίÎŧÎĩÎŊÎŋ`,tableResizer:`ΑÎģÎģÎąÎŗÎŽ ÎŧÎĩÎŗÎ­Î¸ÎŋĪ…Ī‚`};var hh={};hh={selectPlaceholder:`Select an item`,tableResizer:`Resizer`,dropzoneLabel:`DropZone`,colorSwatchPicker:`Color swatches`};var gh={};gh={colorSwatchPicker:`Muestras de colores`,dropzoneLabel:`DropZone`,selectPlaceholder:`Seleccionar un artículo`,tableResizer:`Cambiador de tamaÃąo`};var _h={};_h={colorSwatchPicker:`Värvinäidised`,dropzoneLabel:`DropZone`,selectPlaceholder:`Valige Ãŧksus`,tableResizer:`Suuruse muutja`};var vh={};vh={colorSwatchPicker:`Värimallit`,dropzoneLabel:`DropZone`,selectPlaceholder:`Valitse kohde`,tableResizer:`Koon muuttaja`};var yh={};yh={colorSwatchPicker:`Échantillons de couleurs`,dropzoneLabel:`DropZone`,selectPlaceholder:`SÊlectionner un ÊlÊment`,tableResizer:`Redimensionneur`};var bh={};bh={colorSwatchPicker:`דוגמיו×Ē ×Ļב×ĸ`,dropzoneLabel:`DropZone`,selectPlaceholder:`בחר פריט`,tableResizer:`שינוי גודל`};var xh={};xh={colorSwatchPicker:`Uzorci boja`,dropzoneLabel:`Zona spuÅĄtanja`,selectPlaceholder:`Odaberite stavku`,tableResizer:`Promjena veličine`};var Sh={};Sh={colorSwatchPicker:`SzíntÃĄrak`,dropzoneLabel:`DropZone`,selectPlaceholder:`VÃĄlasszon ki egy elemet`,tableResizer:`ÁtmÊretező`};var Ch={};Ch={colorSwatchPicker:`Campioni di colore`,dropzoneLabel:`Zona di rilascio`,selectPlaceholder:`Seleziona un elemento`,tableResizer:`Ridimensionamento`};var wh={};wh={colorSwatchPicker:`ã‚Ģナãƒŧ゚ã‚Ļりッチ`,dropzoneLabel:`ドロップゞãƒŧãƒŗ`,selectPlaceholder:`é …į›Žã‚’é¸æŠž`,tableResizer:`ã‚ĩイã‚ē変更ツãƒŧãƒĢ`};var Th={};Th={colorSwatchPicker:`ėƒ‰ėƒ ę˛Ŧëŗ¸`,dropzoneLabel:`드롭 ė˜ė—­`,selectPlaceholder:`항ëĒŠ ė„ íƒ`,tableResizer:`íŦ기 ėĄ°ė •ę¸°`};var Eh={};Eh={colorSwatchPicker:`SpalvÅŗ pavyzdÅžiai`,dropzoneLabel:`„DropZone“`,selectPlaceholder:`Pasirinkite elementą`,tableResizer:`DydÅžio keitiklis`};var Dh={};Dh={colorSwatchPicker:`Krāsu paraugi`,dropzoneLabel:`DropZone`,selectPlaceholder:`Izvēlēties vienumu`,tableResizer:`Izmēra mainÄĢtājs`};var Oh={};Oh={colorSwatchPicker:`Fargekart`,dropzoneLabel:`Droppsone`,selectPlaceholder:`Velg et element`,tableResizer:`Størrelsesendrer`};var kh={};kh={colorSwatchPicker:`kleurstalen`,dropzoneLabel:`DropZone`,selectPlaceholder:`Selecteer een item`,tableResizer:`Resizer`};var Ah={};Ah={colorSwatchPicker:`PrÃŗbki kolorÃŗw`,dropzoneLabel:`Strefa upuszczania`,selectPlaceholder:`Wybierz element`,tableResizer:`Zmiana rozmiaru`};var jh={};jh={colorSwatchPicker:`Amostras de cores`,dropzoneLabel:`DropZone`,selectPlaceholder:`Selecione um item`,tableResizer:`Redimensionador`};var Mh={};Mh={colorSwatchPicker:`Amostras de cores`,dropzoneLabel:`DropZone`,selectPlaceholder:`Selecione um item`,tableResizer:`Redimensionador`};var Nh={};Nh={colorSwatchPicker:`Specimene de culoare`,dropzoneLabel:`Zonă de plasare`,selectPlaceholder:`Selectați un element`,tableResizer:`Instrument de redimensionare`};var Ph={};Ph={colorSwatchPicker:`ĐĻвĐĩŅ‚ĐžĐ˛Ņ‹Đĩ ĐžĐąŅ€Đ°ĐˇŅ†Ņ‹`,dropzoneLabel:`DropZone`,selectPlaceholder:`Đ’Ņ‹ĐąĐĩŅ€Đ¸Ņ‚Đĩ ŅĐģĐĩĐŧĐĩĐŊŅ‚`,tableResizer:`ĐĄŅ€ĐĩĐ´ŅŅ‚Đ˛Đž иСĐŧĐĩĐŊĐĩĐŊĐ¸Ņ Ņ€Đ°ĐˇĐŧĐĩŅ€Đ°`};var Fh={};Fh={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 Lh={};Lh={colorSwatchPicker:`Uzorci boje`,dropzoneLabel:`DropZone`,selectPlaceholder:`Izaberite stavku`,tableResizer:`Promena veličine`};var Rh={};Rh={colorSwatchPicker:`Färgrutor`,dropzoneLabel:`DropZone`,selectPlaceholder:`Välj en artikel`,tableResizer:`Storleksändrare`};var zh={};zh={colorSwatchPicker:`Renk Ãļrnekleri`,dropzoneLabel:`BÄąrakma BÃļlgesi`,selectPlaceholder:`Bir Ãļğe seçin`,tableResizer:`Yeniden boyutlandÄąrÄącÄą`};var Bh={};Bh={colorSwatchPicker:`Đ—Ņ€Đ°ĐˇĐēи ĐēĐžĐģŅŒĐžŅ€Ņ–Đ˛`,dropzoneLabel:`DropZone`,selectPlaceholder:`ВибĐĩŅ€Ņ–Ņ‚ŅŒ ĐĩĐģĐĩĐŧĐĩĐŊŅ‚`,tableResizer:`Đ—Đ°ŅŅ–Đą СĐŧŅ–ĐŊĐĩĐŊĐŊŅ Ņ€ĐžĐˇĐŧŅ–Ņ€Ņƒ`};var Vh={};Vh={colorSwatchPicker:`éĸœč‰˛č‰˛æŋ`,dropzoneLabel:`攞įŊŽåŒē域`,selectPlaceholder:`选拊一ä¸ĒéĄšį›Ž`,tableResizer:`å°ēå¯¸č°ƒæ•´å™¨`};var Hh={};Hh={colorSwatchPicker:`色įĨ¨`,dropzoneLabel:`攞įŊŽå€`,selectPlaceholder:`é¸å–é …į›Ž`,tableResizer:`大小čĒŋ整器`};var Uh={};Uh={"ar-AE":lh,"bg-BG":uh,"cs-CZ":dh,"da-DK":fh,"de-DE":ph,"el-GR":mh,"en-US":hh,"es-ES":gh,"et-EE":_h,"fi-FI":vh,"fr-FR":yh,"he-IL":bh,"hr-HR":xh,"hu-HU":Sh,"it-IT":Ch,"ja-JP":wh,"ko-KR":Th,"lt-LT":Eh,"lv-LV":Dh,"nb-NO":Oh,"nl-NL":kh,"pl-PL":Ah,"pt-BR":jh,"pt-PT":Mh,"ro-RO":Nh,"ru-RU":Ph,"sk-SK":Fh,"sl-SI":Ih,"sr-SP":Lh,"sv-SE":Rh,"tr-TR":zh,"uk-UA":Bh,"zh-CN":Vh,"zh-TW":Hh};var Wh=(0,o.createContext)({}),Gh=(0,o.createContext)(null),Kh=(0,o.forwardRef)(function(e,t){let{render:n}=(0,o.useContext)(Gh);return o.createElement(o.Fragment,null,n(e,t))});function qh(e,t){let n=e?.renderDropIndicator,r=e?.isVirtualDragging?.(),i=(0,o.useCallback)(e=>{if(r||t?.isDropTarget(e))return n?n(e):o.createElement(Kh,{target:e})},[t?.target,r,n]);return e?.useDropIndicator?i:void 0}function Jh(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 e=n.collection.getKeyAfter(i),t=null;if(e!=null){let r=n.collection.getItem(i)?.level??0;for(;e!=null;){let i=n.collection.getItem(e);if(!i)break;if(i.type!==`item`){e=n.collection.getKeyAfter(e);continue}if((i.level??0)<=r)break;t=e,e=n.collection.getKeyAfter(e)}}i=e??t??i}return(0,o.useMemo)(()=>new Set([r,i].filter(e=>e!=null)),[r,i])}var Yh=new WeakMap;function Xh(e){return typeof e==`string`?e.replace(/\s*/g,``):``+e}function Zh(e,t){let n=Yh.get(e);if(!n)throw Error(`Unknown list`);return`${n.id}-option-${Xh(t)}`}function Qh(e,t,n){let r=q(e,{labelable:!0}),i=e.selectionBehavior||`toggle`,a=e.orientation||`vertical`,o=e.linkBehavior||(i===`replace`?`action`:`override`);i===`toggle`&&o===`action`&&(o=`override`);let{listProps:s}=Up({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:o}),{focusWithinProps:c}=Xo({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),l=Ar(e.id);Yh.set(t,{id:l,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:o,UNSTABLE_itemBehavior:e.UNSTABLE_itemBehavior});let{labelProps:u,fieldProps:d}=ri({...e,id:l,labelElementType:`span`});return{labelProps:u,listBoxProps:U(r,c,t.selectionManager.selectionMode===`multiple`?{"aria-multiselectable":`true`}:{},{role:`listbox`,"aria-orientation":a,...U(d,s)})}}function $h(e,t,n){let{key:r}=e,i=Yh.get(t),a=e.isDisabled??t.selectionManager.isDisabled(r),o=e.isSelected??t.selectionManager.isSelected(r),s=e.shouldSelectOnPressUp??i?.shouldSelectOnPressUp,c=e.shouldFocusOnHover??i?.shouldFocusOnHover,l=e.shouldUseVirtualFocus??i?.shouldUseVirtualFocus,u=e.isVirtualized??i?.isVirtualized,d=Mr(),f=Mr(),p={role:`option`,"aria-disabled":a||void 0,"aria-selected":t.selectionManager.selectionMode===`none`?void 0:o,"aria-label":e[`aria-label`],"aria-labelledby":d,"aria-describedby":f},m=t.collection.getItem(r);if(u){let e=Number(m?.index);p[`aria-posinset`]=Number.isNaN(e)?void 0:e+1,p[`aria-setsize`]=$p(t.collection)}let h=i?.onAction?()=>i?.onAction?.(r):void 0,g=Zh(t,r),{itemProps:_,isPressed:v,isFocused:y,hasAction:b,allowsSelection:x}=Wp({selectionManager:t.selectionManager,key:r,ref:n,shouldSelectOnPressUp:s,allowsDifferentPressOrigin:s&&c,isVirtualized:u,shouldUseVirtualFocus:l,isDisabled:a,onAction:h||m?.props?.onAction?fr(m?.props?.onAction,h):void 0,linkBehavior:i?.linkBehavior,UNSTABLE_itemBehavior:i?.UNSTABLE_itemBehavior,id:g}),{hoverProps:S}=rs({isDisabled:a||!c,onHoverStart(){Ba()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(r))}}),C=q(m?.props);delete C.id;let w=xa(m?.props);return{optionProps:{...p,...U(C,_,S,w),id:g},labelProps:{id:d},descriptionProps:{id:f},isFocused:y,isFocusVisible:y&&t.selectionManager.isFocused&&Ba(),isSelected:o,isDisabled:a,isPressed:v,allowsSelection:x,hasAction:b}}function eg(e){let{heading:t,"aria-label":n}=e,r=Ar();return{itemProps:{role:`presentation`},headingProps:t?{id:r,role:`presentation`,onMouseDown:e=>{e.preventDefault()}}:{},groupProps:{role:`group`,"aria-label":n,"aria-labelledby":t?r:void 0}}}var tg=class{constructor(e){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let t=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&e.type===`section`)for(let n of e.childNodes)t(n)};for(let n of e)t(n);let n=null,r=0,i=0;for(let[e,t]of this.keyMap)n?(n.nextKey=e,t.prevKey=n.key):(this.firstKey=e,t.prevKey=void 0),t.type===`item`&&(t.index=r++),(t.type===`section`||t.type===`item`)&&i++,n=t,n.nextKey=void 0;this._size=i,this.lastKey=n?.key??null}*[Symbol.iterator](){yield*this.iterable}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);return t?t.prevKey??null:null}getKeyAfter(e){let t=this.keyMap.get(e);return t?t.nextKey??null:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)??null}at(e){let t=[...this.getKeys()];return this.getItem(t[e])}getChildren(e){return this.keyMap.get(e)?.childNodes||[]}};function ng(e){let{filter:t,layoutDelegate:n}=e,r=dm(e),i=(0,o.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=lm(e,(0,o.useCallback)(e=>t?new tg(t(e)):new tg(e),[t]),(0,o.useMemo)(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning])),s=(0,o.useMemo)(()=>new im(a,r,{layoutDelegate:n}),[a,r,n]);return ig(a,s),{collection:a,disabledKeys:i,selectionManager:s}}function rg(e,t){let n=(0,o.useMemo)(()=>t?e.collection.filter(t):e.collection,[e.collection,t]),r=e.selectionManager.withCollection(n);return ig(n,r),{collection:n,selectionManager:r,disabledKeys:e.disabledKeys}}function ig(e,t){let n=(0,o.useRef)(null);(0,o.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])}var ag=(0,o.createContext)(null),og=(0,o.createContext)(null),sg=(0,o.forwardRef)(function(e,t){[e,t]=G(e,t,ag);let n=(0,o.useContext)(og);return n?o.createElement(lg,{state:n,props:e,listBoxRef:t}):o.createElement(sd,{content:o.createElement(yd,e)},n=>o.createElement(cg,{props:e,listBoxRef:t,collection:n}))});function cg({props:e,listBoxRef:t,collection:n}){e={...e,collection:n,children:null,items:null};let{layoutDelegate:r}=(0,o.useContext)(Td),i=ng({...e,layoutDelegate:r});return o.createElement(lg,{state:i,props:e,listBoxRef:t})}function lg({state:e,props:t,listBoxRef:n}){[t,n]=G(t,n,bf);let{dragAndDropHooks:r,layout:i=`stack`,orientation:a=`vertical`,filter:s}=t,c=rg(e,s),{collection:l,selectionManager:u}=c,d=!!r?.useDraggableCollectionState,f=!!r?.useDroppableCollectionState,{direction:p}=mi(),{disabledBehavior:m,disabledKeys:h}=u,g=Hp({usage:`search`,sensitivity:`base`}),{isVirtualized:_,layoutDelegate:v,dropTargetDelegate:y,CollectionRoot:b}=(0,o.useContext)(Td),x=(0,o.useMemo)(()=>t.keyboardDelegate||new Bp({collection:l,collator:g,ref:n,disabledKeys:h,disabledBehavior:m,layout:i,orientation:a,direction:p,layoutDelegate:v}),[l,g,n,m,h,a,p,t.keyboardDelegate,i,v]),{listBoxProps:S}=Qh({...t,shouldSelectOnPressUp:d||t.shouldSelectOnPressUp,keyboardDelegate:x,isVirtualized:_},c,n);(0,o.useRef)(d),(0,o.useRef)(f),(0,o.useEffect)(()=>{},[d,f]);let C,w,T,E=!1,D=null,O=(0,o.useRef)(null);if(d&&r){C=r.useDraggableCollectionState({collection:l,selectionManager:u,preview:r.renderDragPreview?O:void 0}),r.useDraggableCollection({},C,n);let e=r.DragPreview;D=r.renderDragPreview?o.createElement(e,{ref:O},r.renderDragPreview):null}if(f&&r){w=r.useDroppableCollectionState({collection:l,selectionManager:u});let e=r.dropTargetDelegate||y||new r.ListDropTargetDelegate(l,n,{orientation:a,layout:i,direction:p});T=r.useDroppableCollection({keyboardDelegate:x,dropTargetDelegate:e},w,n),E=w.isDropTarget({type:`root`})}let{focusProps:k,isFocused:A,isFocusVisible:j}=Zo(),M=c.collection.size===0,N={isDropTarget:E,isEmpty:M,isFocused:A,isFocusVisible:j,layout:t.layout||`stack`,orientation:a,state:c},ee=W({...t,children:void 0,defaultClassName:`react-aria-ListBox`,values:N}),te=null;M&&t.renderEmptyState&&(te=o.createElement(`div`,{role:`option`,style:{display:`contents`}},t.renderEmptyState(N)));let P=q(t,{global:!0});return o.createElement(yc,null,o.createElement(K.div,{...U(P,ee,S,k,T?.collectionProps),ref:n,slot:t.slot||void 0,onScroll:t.onScroll,"data-drop-target":E||void 0,"data-empty":M||void 0,"data-focused":A||void 0,"data-focus-visible":j||void 0,"data-layout":t.layout||`stack`,"data-orientation":a},o.createElement(Lr,{values:[[ag,t],[og,c],[Wh,{dragAndDropHooks:r,dragState:C,dropState:w}],[jf,{elementType:`div`}],[Gh,{render:pg}],[xd,{name:`ListBoxSection`,render:ug}]]},o.createElement(Ef,null,o.createElement(b,{collection:l,scrollRef:n,persistedKeys:Jh(u,r,w),renderDropIndicator:qh(r,w)}))),te,D))}function ug(e,t,n,r=`react-aria-ListBoxSection`){let i=(0,o.useContext)(og),{dragAndDropHooks:a,dropState:s}=(0,o.useContext)(Wh),{CollectionBranch:c}=(0,o.useContext)(Td),[l,u]=Br(),{headingProps:d,groupProps:f}=eg({heading:u,"aria-label":e[`aria-label`]??void 0}),p=W({...e,id:void 0,children:void 0,defaultClassName:r,values:void 0}),m=q(e,{global:!0});return delete m.id,o.createElement(K.section,{...U(m,p,f),ref:t},o.createElement(Cf.Provider,{value:{...d,ref:l}},o.createElement(c,{collection:i.collection,parent:n,renderDropIndicator:qh(a,s)})))}var dg=gd(Ju,ug),fg=hd(qu,function(e,t,n){let r=Fr(t),i=(0,o.useContext)(og),{dragAndDropHooks:a,dragState:s,dropState:c}=(0,o.useContext)(Wh),l=s&&!(s.isDisabled||s.selectionManager.isDisabled(n.key)),{optionProps:u,labelProps:d,descriptionProps:f,...p}=$h({key:n.key,"aria-label":e?.[`aria-label`]},i,r),{hoverProps:m,isHovered:h}=rs({isDisabled:!p.allowsSelection&&!p.hasAction&&!l,onHoverStart:n.props.onHoverStart,onHoverChange:n.props.onHoverChange,onHoverEnd:n.props.onHoverEnd}),{keyboardProps:g}=vo(e),{focusProps:_}=ro(e),v=null;s&&a&&(v=a.useDraggableItem({key:n.key,hasAction:p.hasAction},s));let y=null;c&&a&&(y=a.useDroppableItem({target:{type:`item`,key:n.key,dropPosition:`on`}},c,r));let b=s&&s.isDragging(n.key),x=W({...e,id:void 0,children:e.children,defaultClassName:`react-aria-ListBoxItem`,values:{...p,isHovered:h,selectionMode:i.selectionManager.selectionMode,selectionBehavior:i.selectionManager.selectionBehavior,allowsDragging:!!s,isDragging:b,isDropTarget:y?.isDropTarget}});(0,o.useEffect)(()=>{n.textValue},[n.textValue]);let S=e.href?K.a:K.div,C=q(e,{global:!0});return delete C.id,delete C.onClick,e.href&&u.tabIndex==null&&(u.tabIndex=-1),o.createElement(S,{...U(C,x,u,m,g,_,v?.dragProps,y?.dropProps),ref:r,"data-allows-dragging":!!s||void 0,"data-selected":p.isSelected||void 0,"data-disabled":p.isDisabled||void 0,"data-hovered":h||void 0,"data-focused":p.isFocused||void 0,"data-focus-visible":p.isFocusVisible||void 0,"data-pressed":p.isPressed||void 0,"data-dragging":b||void 0,"data-drop-target":y?.isDropTarget||void 0,"data-selection-mode":i.selectionManager.selectionMode===`none`?void 0:i.selectionManager.selectionMode},o.createElement(Lr,{values:[[Nf,{slots:{[Ir]:d,label:d,description:f}}],[Of,{isSelected:p.isSelected}]]},x.children))});function pg(e,t){t=Fr(t);let{dragAndDropHooks:n,dropState:r}=(0,o.useContext)(Wh),{dropIndicatorProps:i,isHidden:a,isDropTarget:s}=n.useDropIndicator(e,r,t);return a?null:o.createElement(hg,{...e,dropIndicatorProps:i,isDropTarget:s,ref:t})}function mg(e,t){let{dropIndicatorProps:n,isDropTarget:r,...i}=e,a=W({...i,defaultClassName:`react-aria-DropIndicator`,values:{isDropTarget:r}});return o.createElement(o.Fragment,null,o.createElement(K.div,{...n,...a,role:`option`,ref:t,"data-drop-target":r||void 0}))}var hg=(0,o.forwardRef)(mg);hd(Ku,function(e,t,n){let r=(0,o.useContext)(og),{isLoading:i,onLoadMore:a,scrollOffset:s,...c}=e,l=(0,o.useRef)(null);nm((0,o.useMemo)(()=>({onLoadMore:a,collection:r?.collection,sentinelRef:l,scrollOffset:s}),[a,s,r?.collection]),l);let u=W({...c,id:void 0,children:n.rendered,defaultClassName:`react-aria-ListBoxLoadingIndicator`,values:void 0});return o.createElement(o.Fragment,null,o.createElement(`div`,{style:{position:`relative`,width:0,height:0},inert:tm(!0)},o.createElement(`div`,{"data-testid":`loadMoreSentinel`,ref:l,style:{position:`absolute`,height:1,width:1}})),i&&u.children&&o.createElement(o.Fragment,null,o.createElement(K.div,{...U(q(e,{global:!0}),{tabIndex:-1}),...u,role:`option`,ref:t},u.children)))});function gg(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:a,fieldProps:o}=ri(e),s=Mr([!!t,!!n,r,i]),c=Mr([!!t,!!n,r,i]);return o=U(o,{"aria-describedby":[s,c,e[`aria-describedby`]].filter(Boolean).join(` `)||void 0}),{labelProps:a,fieldProps:o,descriptionProps:{id:s},errorMessageProps:{id:c}}}var _g=new WeakMap;function vg(e,t,n){let{keyboardDelegate:r,isDisabled:i,isRequired:a,name:s,form:c,validationBehavior:l=`aria`}=e,u=Hp({usage:`search`,sensitivity:`base`}),d=(0,o.useMemo)(()=>r||new Bp(t.collection,t.disabledKeys,n,u),[r,t.collection,t.disabledKeys,u,n]),{menuTriggerProps:f,menuProps:p}=wp({isDisabled:i,type:`listbox`},t,n),{keyboardProps:m}=vo({shortcuts:{ArrowLeft:()=>{if(t.selectionManager.selectionMode===`multiple`)return!1;let e=t.selectedKey==null?d.getFirstKey?.():d.getKeyAbove?.(t.selectedKey);e!=null&&t.setSelectedKey(e)},ArrowRight:()=>{if(t.selectionManager.selectionMode===`multiple`)return!1;let e=t.selectedKey==null?d.getFirstKey?.():d.getKeyBelow?.(t.selectedKey);e!=null&&t.setSelectedKey(e)}},allowRepeats:!0,onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp}),{typeSelectProps:h}=Fp({keyboardDelegate:d,selectionManager:t.selectionManager,onTypeSelect(e){t.setSelectedKey(e)}}),{isInvalid:g,validationErrors:_,validationDetails:v}=t.displayValidation,{labelProps:y,fieldProps:b,descriptionProps:x,errorMessageProps:S}=gg({...e,labelElementType:`span`,isInvalid:g,errorMessage:e.errorMessage||_});t.selectionManager.selectionMode===`multiple`&&(h={});let C=q(e,{labelable:!0}),w=U(h,f,b),T=Ar();return _g.set(t,{isDisabled:i,isRequired:a,name:s,form:c,validationBehavior:l}),{labelProps:{...y,onClick:()=>{e.isDisabled||(n.current?.focus(),Ha(`keyboard`))}},triggerProps:U(C,{...w,isDisabled:i,onKeyDown:fr(w.onKeyDown,m.onKeyDown),onKeyUp:m.onKeyUp,"aria-labelledby":[T,w[`aria-labelledby`],w[`aria-label`]&&!w[`aria-labelledby`]?w.id:null].filter(Boolean).join(` `),onFocus(n){t.isFocused||(e.onFocus&&e.onFocus(n),e.onFocusChange&&e.onFocusChange(!0),t.setFocused(!0))},onBlur(n){t.isOpen||(e.onBlur&&e.onBlur(n),e.onFocusChange&&e.onFocusChange(!1),t.setFocused(!1))}}),valueProps:{id:T},menuProps:{...p,onAction:void 0,autoFocus:t.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,linkBehavior:`selection`,onBlur:n=>{Y(n.currentTarget,n.relatedTarget)||(e.onBlur&&e.onBlur(n),e.onFocusChange&&e.onFocusChange(!1),t.setFocused(!1))},"aria-labelledby":[b[`aria-labelledby`],w[`aria-label`]&&!b[`aria-labelledby`]?w.id:null].filter(Boolean).join(` `)},descriptionProps:x,errorMessageProps:S,isInvalid:g,validationErrors:_,validationDetails:v,hiddenSelectProps:{isDisabled:i,name:s,label:e.label,state:t,triggerRef:n,form:c}}}function yg(e,t,n){let r=Po(e=>{n&&!e.defaultPrevented&&n(t)});(0,o.useEffect)(()=>{let t=e?.current?.form;return t?.addEventListener(`reset`,r),()=>{t?.removeEventListener(`reset`,r)}},[e])}function bg(e,t,n){let{validationBehavior:r,focus:i}=e;H(()=>{if(r===`native`&&n?.current&&`setCustomValidity`in n.current&&!n.current.disabled){let e=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(` `)||`Invalid value.`:``;n.current.setCustomValidity(e),n.current.hasAttribute(`title`)||(n.current.title=``),t.realtimeValidation.isInvalid||t.updateValidation(Sg(n.current))}});let a=(0,o.useRef)(!1),s=Po(()=>{a.current||t.resetValidation()}),c=Po(e=>{t.displayValidation.isInvalid||t.commitValidation();let r=n?.current?.form;!e.defaultPrevented&&n&&r&&Cg(r)===n.current&&(i?i():n.current?.focus(),Ha(`keyboard`)),e.preventDefault()}),l=Po(()=>{t.commitValidation()});(0,o.useEffect)(()=>{let e=n?.current;if(!e)return;let t=e.form,r=t?.reset;return t&&(t.reset=()=>{a.current=!window.event||window.event.type===`message`&&Z(window.event)instanceof MessagePort,r?.call(t),a.current=!1}),e.addEventListener(`invalid`,c),e.addEventListener(`change`,l),t?.addEventListener(`reset`,s),()=>{e.removeEventListener(`invalid`,c),e.removeEventListener(`change`,l),t?.removeEventListener(`reset`,s),t&&(t.reset=r)}},[n,r])}function xg(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 Sg(e){return{isInvalid:!e.validity.valid,validationDetails:xg(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function Cg(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(n.validity?.valid===!1)return n}return null}function wg(e,t,n){let r=_g.get(t)||{},{autoComplete:i,name:a=r.name,form:s=r.form,isDisabled:c=r.isDisabled}=e,{validationBehavior:l,isRequired:u}=r,{visuallyHiddenProps:d}=wu({style:{position:`fixed`,top:0,left:0}});yg(e.selectRef,t.defaultValue,t.setValue),bg({validationBehavior:l,focus:()=>n.current?.focus()},t,e.selectRef);let f=t.setValue,p=(0,o.useCallback)(e=>{let t=Z(e);t.multiple?f(Array.from(t.selectedOptions,e=>e.value)):f(e.currentTarget.value)},[f]);return{containerProps:{...d,"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:c,multiple:t.selectionManager.selectionMode===`multiple`,required:l===`native`&&u,name:a,form:s,value:t.value??``,onChange:p,onInput:p}}}function Tg(e){let{state:t,triggerRef:n,label:r,name:i,form:a,isDisabled:s}=e,c=(0,o.useRef)(null),l=(0,o.useRef)(null),{containerProps:u,selectProps:d}=wg({...e,selectRef:t.collection.size<=300?c:l},t,n),f=Array.isArray(t.value)?t.value:[t.value];if(t.collection.size<=300)return o.createElement(`div`,{...u,"data-testid":`hidden-select-container`},o.createElement(`label`,null,r,o.createElement(`select`,{...d,ref:c},o.createElement(`option`,{value:``,label:`\xA0`},`\xA0`),[...t.collection.getKeys()].map(e=>{let n=t.collection.getItem(e);if(n&&n.type===`item`)return o.createElement(`option`,{key:n.key,value:n.key},n.textValue)}),t.collection.size===0&&i&&f.map((e,t)=>o.createElement(`option`,{key:t,value:e??``})))));if(i){let{validationBehavior:e}=_g.get(t)||{};f.length===0&&(f=[null]);let n=f.map((t,n)=>{let r={type:`hidden`,autoComplete:d.autoComplete,name:i,form:a,disabled:s,value:t??``};return e===`native`?o.createElement(`input`,{key:n,...r,ref:n===0?l:null,style:{display:`none`},type:`text`,required:n===0&&d.required,onChange:()=>{}}):o.createElement(`input`,{key:n,...r,ref:n===0?l:null})});return o.createElement(o.Fragment,null,n)}return null}function Eg(e){let{selectionMode:t=`single`,shouldCloseOnSelect:n=t===`single`}=e,r=Fu(e),[i,a]=(0,o.useState)(null),s=(0,o.useMemo)(()=>e.defaultValue===void 0?t===`single`?e.defaultSelectedKey??null:[]:e.defaultValue,[e.defaultValue,e.defaultSelectedKey,t]),[c,l]=us((0,o.useMemo)(()=>e.value===void 0?t===`single`?e.selectedKey:void 0:e.value,[e.value,e.selectedKey,t]),s,e.onChange),u=t===`single`&&Array.isArray(c)?c[0]:c,d=n=>{if(t===`single`){let t=Array.isArray(n)?n[0]??null:n;l(t),t!==u&&e.onSelectionChange?.(t)}else{let e=[];Array.isArray(n)?e=n:n!=null&&(e=[n]),l(e)}},f=ng({...e,selectionMode:t,disallowEmptySelection:t===`single`,allowDuplicateSelectionEvents:!0,selectedKeys:(0,o.useMemo)(()=>Dg(u),[u]),onSelectionChange:e=>{if(e!==`all`){if(t===`single`){let t=e.values().next().value??null;d(t)}else d([...e]);n&&r.close(),h.commitValidation()}}}),p=f.selectionManager.firstSelectedKey,m=(0,o.useMemo)(()=>[...f.selectionManager.selectedKeys].map(e=>f.collection.getItem(e)).filter(e=>e!=null),[f.selectionManager.selectedKeys,f.collection]),h=eh({...e,value:Array.isArray(u)&&u.length===0?null:u}),[g,_]=(0,o.useState)(!1),[v]=(0,o.useState)(u);return{...h,...f,...r,value:u,defaultValue:s??v,setValue:d,selectedKey:p,setSelectedKey:d,selectedItem:m[0]??null,selectedItems:m,defaultSelectedKey:e.defaultSelectedKey??(e.selectionMode===`single`?v:null),focusStrategy:i,open(t=null){(f.collection.size!==0||e.allowsEmptyCollection)&&(a(t),r.open())},toggle(t=null){(f.collection.size!==0||e.allowsEmptyCollection)&&(a(t),r.toggle())},isFocused:g,setFocused:_}}function Dg(e){if(e!==void 0)return e===null?[]:Array.isArray(e)?e:[e]}function Og(e={}){let{locale:t}=mi();return(0,o.useMemo)(()=>new Intl.ListFormat(t,e),[t,e])}function kg(e){return e&&e.__esModule?e.default:e}var Ag=(0,o.createContext)(null),jg=(0,o.createContext)(null),Mg=Kr(function(e,t){[e,t]=G(e,t,Ag);let{children:n,isDisabled:r=!1,isInvalid:i=!1,isRequired:a=!1}=e,s=(0,o.useMemo)(()=>typeof n==`function`?n({isOpen:!1,isDisabled:r,isInvalid:i,isRequired:a,isFocused:!1,isFocusVisible:!1,defaultChildren:null}):n,[n,r,i,a]);return o.createElement(sd,{content:s},n=>o.createElement(Pg,{props:e,collection:n,selectRef:t}))}),Ng=[Jr,is,Nf];function Pg({props:e,selectRef:t,collection:n}){let{validationBehavior:r}=zr(sh)||{},i=e.validationBehavior??r??`native`,a=Eg({...e,collection:n,children:void 0,validationBehavior:i}),{isFocusVisible:s,focusProps:c}=Zo({within:!0}),l=(0,o.useRef)(null),[u,d]=Br(!e[`aria-label`]&&!e[`aria-labelledby`]),{labelProps:f,triggerProps:p,valueProps:m,menuProps:h,descriptionProps:g,errorMessageProps:_,hiddenSelectProps:v,...y}=vg({...Vr(e),label:d,validationBehavior:i},a,l),b=(0,o.useMemo)(()=>({isOpen:a.isOpen,isFocused:a.isFocused,isFocusVisible:s,isDisabled:e.isDisabled||!1,isInvalid:y.isInvalid||!1,isRequired:e.isRequired||!1}),[a.isOpen,a.isFocused,s,e.isDisabled,y.isInvalid,e.isRequired]),x=W({...e,values:b,defaultClassName:`react-aria-Select`}),S=q(e,{global:!0});delete S.id;let C=(0,o.useRef)(null);return o.createElement(Lr,{values:[[Ag,e],[jg,a],[Fg,m],[Jr,{...f,ref:u,elementType:`span`}],[is,{...p,ref:l,isPressed:a.isOpen,autoFocus:e.autoFocus}],[_m,a],[zu,{trigger:`Select`,triggerRef:l,scrollRef:C,placement:`bottom start`,"aria-labelledby":h[`aria-labelledby`],clearContexts:Ng}],[ag,{...h,ref:C}],[og,a],[Nf,{slots:{description:g,errorMessage:_}}],[Km,y]]},o.createElement(K.div,{...U(S,x,c),ref:t,slot:e.slot||void 0,"data-focused":a.isFocused||void 0,"data-focus-visible":s||void 0,"data-open":a.isOpen||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":y.isInvalid||void 0,"data-required":e.isRequired||void 0},x.children,o.createElement(Tg,{...v,autoComplete:e.autoComplete})))}var Fg=(0,o.createContext)(null),Ig=Kr(function(e,t){[e,t]=G(e,t,Fg);let n=(0,o.useContext)(jg),{placeholder:r}=zr(Ag),i=n.selectedItems.map(e=>{let t=e.props?.children;return typeof t==`function`&&(t=t({isHovered:!1,isPressed:!1,isSelected:!1,isFocused:!1,isFocusVisible:!1,isDisabled:!1,selectionMode:`single`,selectionBehavior:`toggle`})),t}),a=Og(),s=(0,o.useMemo)(()=>n.selectedItems.map(e=>e?.textValue),[n.selectedItems]),c=n.selectionManager.selectionMode,l=(0,o.useMemo)(()=>c===`single`?s[0]??``:a.format(s),[c,a,s]),u=(0,o.useMemo)(()=>{if(c===`single`)return i[0];let e=a.formatToParts(s);if(e.length===0)return null;let t=0;return e.map(e=>e.type===`element`?o.createElement(o.Fragment,{key:t},i[t++]):e.value)},[c,a,s,i]),d=Su(kg(Uh),`react-aria-components`),f=W({...e,defaultChildren:u??r??d.format(`selectPlaceholder`),defaultClassName:`react-aria-SelectValue`,values:{selectedItem:n.selectedItems[0]?.value??null,selectedItems:(0,o.useMemo)(()=>n.selectedItems.map(e=>e.value??null),[n.selectedItems]),selectedText:l,isPlaceholder:n.selectedItems.length===0,state:n}}),p=q(e,{global:!0});return o.createElement(K.span,{ref:t,...p,...f,"data-placeholder":n.selectedItems.length===0||void 0},o.createElement(Nf.Provider,{value:void 0},f.children))}),Lg=(0,o.createContext)(!1),Rg=e=>{let t=(0,o.use)(Lg),n=(0,o.use)(Nf);return!t||n?.slots?.[e]!=null},zg=({children:e})=>(0,y.jsx)(Lg,{value:!0,children:e}),Bg=(e,t)=>{let n=zr(zu,e.slot),r=(0,o.use)(_m),i=e.shouldSkipAnimation??n?.shouldSkipAnimation;return zm(Bm(e.isOpen??n?.isOpen,e.defaultOpen??n?.defaultOpen,r),{...t,enabled:!i})},Vg=(0,o.createContext)({}),Hg=`__button_group_child`,Ug=({children:e,className:t,fullWidth:n,isDisabled:r,isIconOnly:i,size:a,slot:s,style:c,variant:l,[Hg]:u,...d})=>{let f=(0,o.use)(Vg),p=u===!0,m=a??(p?f?.size:void 0),h=l??(p?f?.variant:void 0),g=r??(p?f?.isDisabled:void 0),_=n??(p?f?.fullWidth:void 0),v=gs(t,(0,o.useMemo)(()=>Qn({fullWidth:_,isIconOnly:i,size:m,variant:h}),[_,m,h,i]));return(0,y.jsx)(as,{className:v,"data-slot":`button`,isDisabled:g,slot:s,style:c,...d,children:e})};Ug.displayName=`HeroUI.Button`;var Wg=Object.assign(Ug,{Root:Ug});function Gg(e=!0){let[t,n]=(0,o.useState)(e),r=(0,o.useRef)(!1),i=(0,o.useCallback)(e=>{r.current=!0,n(!!e)},[]);return H(()=>{r.current||n(!1)},[]),[i,t]}function Kg(e=!0){let t=Ar(),[n,r]=Gg(e);return{id:r?t:void 0,ref:n}}var qg=(0,o.createContext)({}),Jg=e=>{let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,...i}=e;return i},Yg=Kr(function(e,t){[e,t]=G(e,t,qg);let{hoverProps:n,isHovered:r}=rs({...e,isDisabled:e.disabled}),{isFocused:i,isFocusVisible:a,focusProps:s}=Zo({isTextInput:!0,autoFocus:e.autoFocus}),c=!!e[`aria-invalid`]&&e[`aria-invalid`]!==`false`,l=W({...e,values:{isHovered:r,isFocused:i,isFocusVisible:a,isDisabled:e.disabled||!1,isInvalid:c},defaultClassName:`react-aria-Input`});return o.createElement(K.input,{...U(Jg(e),s,n),...l,ref:t,"data-focused":i||void 0,"data-disabled":e.disabled||void 0,"data-hovered":r||void 0,"data-focus-visible":a||void 0,"data-invalid":c||void 0})});function Xg(e,t){let{inputElementType:n=`input`,isDisabled:r=!1,isRequired:i=!1,isReadOnly:a=!1,type:s=`text`,validationBehavior:c=`aria`}=e,[l,u]=us(e.value,e.defaultValue||``,e.onChange),{focusableProps:d}=Co(e,t),f=eh({...e,value:l}),{isInvalid:p,validationErrors:m,validationDetails:h}=f.displayValidation,{labelProps:g,fieldProps:_,descriptionProps:v,errorMessageProps:y}=gg({...e,isInvalid:p,errorMessage:e.errorMessage||m}),b=q(e,{labelable:!0}),x={type:s,pattern:e.pattern},[S]=(0,o.useState)(l);return yg(t,e.defaultValue??S,u),bg(e,f,t),{labelProps:g,inputProps:U(b,n===`input`?x:void 0,{disabled:r,readOnly:a,required:i&&c===`native`,"aria-required":i&&c===`aria`||void 0,"aria-invalid":p||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:l,onChange:e=>u(Z(e).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,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,...d,..._}),descriptionProps:v,errorMessageProps:y,isInvalid:p,validationErrors:m,validationDetails:h}}function Zg(e,t){let n=t?.isDisabled,[r,i]=(0,o.useState)(!1);return H(()=>{if(e?.current&&!n){let t=()=>{if(e.current){let t=zc(e.current,{tabbable:!0});i(!!t.nextNode())}};t();let n=new MutationObserver(t);return n.observe(e.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:[`tabIndex`,`disabled`]}),()=>{n.disconnect()}}}),!n&&r}var Qg=new WeakMap;function $g(e,t,n){return e?(typeof t==`string`&&(t=t.replace(/\s+/g,``)),`${Qg.get(e)}-${n}-${t}`):``}function e_(e,t,n){let{key:r,isDisabled:i,shouldSelectOnPressUp:a}=e,{selectionManager:o,selectedKey:s}=t,c=r===s,l=i||t.isDisabled||t.selectionManager.isDisabled(r),u=t.collection.getItem(r),{itemProps:d,isPressed:f}=Wp({selectionManager:o,key:r,ref:n,isDisabled:l,shouldSelectOnPressUp:a??u?.props.href!=null,linkBehavior:`selection`}),p=$g(t,r,`tab`),m=$g(t,r,`tabpanel`),{tabIndex:h}=d,g=q(u?.props,{labelable:!0});delete g.id;let _=xa(u?.props),{focusableProps:v}=Co({...u?.props,isDisabled:l},n);return{tabProps:U(g,v,_,d,{id:p,"aria-selected":c,"aria-disabled":l||void 0,"aria-controls":c?m:void 0,tabIndex:l?void 0:h,role:`tab`}),isSelected:c,isDisabled:l,isPressed:f}}function t_(e,t,n){let r=Zg(n)?void 0:0,i=$g(t,e.id??t?.selectedKey,`tabpanel`);return{tabPanelProps:U(ni({...e,id:i,"aria-labelledby":$g(t,t?.selectedKey,`tab`)}),{tabIndex:r,role:`tabpanel`,"aria-describedby":e[`aria-describedby`],"aria-details":e[`aria-details`]})}}var n_=class{constructor(e,t,n,r=new Set){this.collection=e,this.flipDirection=t===`rtl`,this.disabledKeys=r,this.tabDirection=n===`horizontal`}getKeyLeftOf(e){return this.flipDirection?this.getNextKey(e):this.getPreviousKey(e)}getKeyRightOf(e){return this.flipDirection?this.getPreviousKey(e):this.getNextKey(e)}isDisabled(e){return this.disabledKeys.has(e)||!!this.collection.getItem(e)?.props?.isDisabled}getFirstKey(){let e=this.collection.getFirstKey();return e!=null&&this.isDisabled(e)&&(e=this.getNextKey(e)),e}getLastKey(){let e=this.collection.getLastKey();return e!=null&&this.isDisabled(e)&&(e=this.getPreviousKey(e)),e}getKeyAbove(e){return this.tabDirection?null:this.getPreviousKey(e)}getKeyBelow(e){return this.tabDirection?null:this.getNextKey(e)}getNextKey(e){let t=e;do t=this.collection.getKeyAfter(t),t??=this.collection.getFirstKey();while(t!=null&&this.isDisabled(t)&&t!==e);return t}getPreviousKey(e){let t=e;do t=this.collection.getKeyBefore(t),t??=this.collection.getLastKey();while(t!=null&&this.isDisabled(t)&&t!==e);return t}};function r_(e,t,n){let{orientation:r=`horizontal`,keyboardActivation:i=`automatic`}=e,{collection:a,selectionManager:s,disabledKeys:c}=t,{direction:l}=mi(),{collectionProps:u}=Rp({ref:n,selectionManager:s,keyboardDelegate:(0,o.useMemo)(()=>new n_(a,l,r,c),[a,c,r,l]),selectOnFocus:i===`automatic`,disallowEmptySelection:!0,scrollRef:n,linkBehavior:`selection`}),d=Ar();return Qg.set(t,d),{tabListProps:{...U(u,ni({...e,id:d})),role:`tablist`,"aria-orientation":r,tabIndex:void 0}}}function i_(e){let[t,n]=us(e.selectedKey,e.defaultSelectedKey??null,e.onSelectionChange),r=(0,o.useMemo)(()=>t==null?[]:[t],[t]),{collection:i,disabledKeys:a,selectionManager:s}=ng({...e,selectionMode:`single`,disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:r,onSelectionChange:r=>{if(r===`all`)return;let i=r.values().next().value??null;i===t&&e.onSelectionChange&&e.onSelectionChange(i),n(i)}});return{collection:i,disabledKeys:a,selectionManager:s,selectedKey:t,setSelectedKey:n,selectedItem:t==null?null:i.getItem(t)}}function a_(e){let t=i_({...e,onSelectionChange:e.onSelectionChange?t=>{t!=null&&e.onSelectionChange?.(t)}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:e.defaultSelectedKey??o_(e.collection,e.disabledKeys?new Set(e.disabledKeys):new Set)??void 0}),{selectionManager:n,collection:r,selectedKey:i}=t,a=(0,o.useRef)(i);return(0,o.useEffect)(()=>{let o=i;e.selectedKey==null&&(n.isEmpty||o==null||!r.getItem(o))&&(o=o_(r,t.disabledKeys),o!=null&&n.setSelectedKeys([o])),(o!=null&&n.focusedKey==null||!n.isFocused&&o!==a.current)&&n.setFocusedKey(o),a.current=o}),{...t,isDisabled:e.isDisabled||!1}}function o_(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}var s_=(0,o.createContext)(null),c_=(0,o.createContext)(null),l_=(0,o.forwardRef)(function(e,t){[e,t]=G(e,t,s_);let{children:n,orientation:r=`horizontal`}=e;return n=(0,o.useMemo)(()=>typeof n==`function`?n({orientation:r,defaultChildren:null}):n,[n,r]),o.createElement(sd,{content:n},n=>o.createElement(u_,{props:e,collection:n,tabsRef:t}))});function u_({props:e,tabsRef:t,collection:n}){let{orientation:r=`horizontal`}=e,i=a_({...e,collection:n,children:void 0}),{focusProps:a,isFocused:s,isFocusVisible:c}=Zo({within:!0}),l=(0,o.useMemo)(()=>({orientation:r,isFocusWithin:s,isFocusVisible:c}),[r,s,c]),u=W({...e,defaultClassName:`react-aria-Tabs`,values:l}),d=q(e,{global:!0});return o.createElement(K.div,{...U(d,u,a),ref:t,slot:e.slot||void 0,"data-focused":s||void 0,"data-orientation":r,"data-focus-visible":c||void 0,"data-disabled":i.isDisabled||void 0},o.createElement(Lr,{values:[[s_,e],[c_,i]]},u.children))}var d_=(0,o.forwardRef)(function(e,t){return(0,o.useContext)(c_)?o.createElement(f_,{props:e,forwardedRef:t}):o.createElement(yd,e)});function f_({props:e,forwardedRef:t}){let n=(0,o.useContext)(c_),{CollectionRoot:r}=(0,o.useContext)(Td),{orientation:i=`horizontal`,keyboardActivation:a=`automatic`}=zr(s_),s=Fr(t),{tabListProps:c}=r_({...e,orientation:i,keyboardActivation:a},n,s),l=W({...e,children:null,defaultClassName:`react-aria-TabList`,values:{orientation:i,state:n}}),u=q(e,{global:!0});return delete u.id,o.createElement(K.div,{...U(u,l,c),ref:s,"data-orientation":i||void 0},o.createElement(Ef,null,o.createElement(r,{collection:n.collection,persistedKeys:Ed(n.selectionManager.focusedKey)})))}var p_=hd(class extends Uu{static{this.type=`item`}},(e,t,n)=>{let r=(0,o.useContext)(c_),i=Fr(t),{tabProps:a,isSelected:s,isDisabled:c,isPressed:l}=e_({key:n.key,...e},r,i),{focusProps:u,isFocused:d,isFocusVisible:f}=Zo(),{hoverProps:p,isHovered:m}=rs({isDisabled:c,onHoverStart:e.onHoverStart,onHoverEnd:e.onHoverEnd,onHoverChange:e.onHoverChange}),h=W({...e,id:void 0,children:n.rendered,defaultClassName:`react-aria-Tab`,values:{isSelected:s,isDisabled:c,isFocused:d,isFocusVisible:f,isPressed:l,isHovered:m}}),g=n.props.href?K.a:K.div,_=q(e,{global:!0});return delete _.id,delete _.onClick,o.createElement(g,{...U(_,h,a,u,p),ref:i,"data-selected":s||void 0,"data-disabled":c||void 0,"data-focused":d||void 0,"data-focus-visible":f||void 0,"data-pressed":l||void 0,"data-hovered":m||void 0},o.createElement(Of.Provider,{value:{isSelected:s}},h.children))}),m_=Kr(function(e,t){let n=(0,o.useContext)(c_),r=Fr(t),i=n.selectedKey===e.id,[a,s]=(0,o.useState)(n.selectedKey==null?null:i);a==null&&n.selectedKey!=null?s(i):!i&&a&&s(!1);let c=Lu(r,i);return!i&&!e.shouldForceMount&&!c?null:o.createElement(h_,{...e,tabPanelRef:r,isInitiallySelected:a||!1,isExiting:c})});function h_(e){let t=(0,o.useContext)(c_),{id:n,tabPanelRef:r,isInitiallySelected:i,isExiting:a,...s}=e,{tabPanelProps:c}=t_(e,t,r),{focusProps:l,isFocused:u,isFocusVisible:d}=Zo(),f=t.selectedKey===e.id,p=Iu(r)&&!i,m=W({...e,defaultClassName:`react-aria-TabPanel`,values:{isFocused:u,isFocusVisible:d,isInert:tm(!f),isEntering:p,isExiting:a,state:t}}),h=q(s,{global:!0});delete h.id;let g=f?U(h,c,l,m):U(h,m);return o.createElement(K.div,{...g,ref:r,"data-focused":u||void 0,"data-focus-visible":d||void 0,inert:tm(!f||e.inert),"data-inert":f?void 0:`true`,"data-entering":p||void 0,"data-exiting":a||void 0},o.createElement(Lr,{values:[[s_,null],[c_,null]]},o.createElement(Td.Provider,{value:Sd},m.children)))}var g_=(0,o.createContext)({}),__=(0,o.createContext)(null),v_=Kr(function(e,t){[e,t]=G(e,t,__);let{validationBehavior:n}=zr(sh)||{},r=e.validationBehavior??n??`native`,i=(0,o.useRef)(null);[e,i]=G(e,i,xf);let[a,s]=Br(!e[`aria-label`]&&!e[`aria-labelledby`]),[c,l]=(0,o.useState)(`input`),{labelProps:u,inputProps:d,descriptionProps:f,errorMessageProps:p,...m}=Xg({...Vr(e),inputElementType:c,label:s,validationBehavior:r},i),h=(0,o.useCallback)(e=>{i.current=e,e&&l(e instanceof HTMLTextAreaElement?`textarea`:`input`)},[i]),g=W({...e,values:{isDisabled:e.isDisabled||!1,isInvalid:m.isInvalid,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1},defaultClassName:`react-aria-TextField`}),_=q(e,{global:!0});return delete _.id,o.createElement(K.div,{..._,...g,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":m.isInvalid||void 0,"data-readonly":e.isReadOnly||void 0,"data-required":e.isRequired||void 0},o.createElement(Lr,{values:[[Jr,{...u,ref:a}],[qg,{...d,ref:h}],[g_,{...d,ref:h}],[Wm,{role:`presentation`,isInvalid:m.isInvalid,isDisabled:e.isDisabled||!1}],[Nf,{slots:{description:f,errorMessage:p}}],[Km,m]]},g.children))}),y_={blue:`\x1B[34m`,green:`\x1B[32m`,magenta:`\x1B[35m`,red:`\x1B[31m`,reset:`\x1B[0m`,yellow:`\x1B[33m`},b_={debug:y_.magenta,error:y_.red,info:y_.blue,success:y_.green,warn:y_.yellow},x_={debug:`🔍`,error:`❌`,info:`â„šī¸`,success:`✅`,warn:`âš ī¸`},S_=new class{constructor(e={}){this.enabled=e.enabled??!0,this.prefix=e.prefix??`HeroUI`}formatMessage(e,t){let n=b_[e],r=x_[e];return`${n}[${this.prefix}]${y_.reset} ${r} ${t}`}log(e,t,...n){if(!this.enabled)return;let r=this.formatMessage(e,t);switch(e){case`error`:console.error(r,...n);break;case`warn`:console.warn(r,...n);break;default:console.log(r,...n)}}info(e,...t){this.log(`info`,e,...t)}success(e,...t){this.log(`success`,e,...t)}warn(e,...t){this.log(`warn`,e,...t)}error(e,...t){this.log(`error`,e,...t)}debug(e,...t){this.log(`debug`,e,...t)}divider(e=`=`,t=80){this.enabled&&console.log(e.repeat(t))}newline(){this.enabled&&console.log()}}({prefix:`HeroUI`}),C_,w_=typeof process<`u`&&!1,T_=e=>{w_&&(C_??=new Set,C_.has(e)&&S_.warn(`Duplicate collection slot "${e}". Use a unique, namespaced name (e.g. "tabs.listContainer", "menu.popover").`),C_.add(e));let t=`$$heroui.collection.${e}`,n=(0,o.createContext)(void 0),r=(e,n)=>o.Children.map(e,e=>(0,o.isValidElement)(e)?o.cloneElement(e,{[t]:n}):e),i=e=>{let{[t]:n,...r}=e;return[n,r]},a=e=>{let[t,r]=i(e),a=(0,o.useContext)(n);return[t??a,r]},s=({children:e,...t})=>(0,y.jsx)(n.Provider,{value:t,children:r(e,t)});return s.displayName=`HeroUI.CollectionSlot(${e})`,{key:t,inject:r,consume:i,useSlot:a,Injector:s,withSlot:(t,n)=>{let r=(0,o.forwardRef)(function(r,i){let[o,s]=a(r),{children:c,...l}=s;if(!o)return(0,y.jsx)(t,{...l,ref:i,children:c});if(n)return n({...l,children:c},o,i);let{className:u,render:d,...f}=o;return(0,y.jsx)(t,{...l,ref:i,children:d?d({children:c,className:u,...f}):(0,y.jsx)(`div`,{className:u,"data-slot":`${e}-container`,...f,children:c})})});return r.displayName=`HeroUI.withCollectionSlot(${t.displayName||t.name||e})`,r},Context:n}},E_=(0,o.createContext)({});T_(`combo-box.inputGroup`);var D_=({children:e,className:t,...n})=>{let r=(0,o.useMemo)(()=>er({className:t}),[t]);return Rg(`description`)?(0,y.jsx)(Pf,{className:r,"data-slot":`description`,slot:`description`,...n,children:e}):null};D_.displayName=`HeroUI.Description`;var O_=Object.assign(D_,{Root:D_}),k_=(e,t)=>e.closest(`[data-slot="drawer-dialog"]`)===t,A_={variant:`default`},j_=8,M_=.3,N_=.5;function P_(e,t){let n=(0,o.use)(_m),r=(0,o.useRef)(null),i=(0,o.useRef)(!1),a=(0,o.useRef)(!1),s=(0,o.useRef)(0),c=(0,o.useRef)(0),l=(0,o.useRef)(0),u=(0,o.useRef)(0),d=(0,o.useRef)(0),f=e===`top`||e===`bottom`,p=(0,o.useCallback)(e=>f?e.clientY:e.clientX,[f]),m=(0,o.useCallback)(t=>{switch(e){case`bottom`:return Math.max(0,t);case`top`:return Math.min(0,t);case`right`:return Math.max(0,t);case`left`:return Math.min(0,t);default:return t}},[e]),h=(0,o.useCallback)(e=>{if(!t||e.button!==0)return;let n=e.target,r=e.currentTarget;k_(n,r)&&(n.closest(`input, textarea, button, [role='button'], select, a, [data-slot='drawer-body']`)||(i.current=!0,a.current=!1,s.current=p(e),d.current=s.current,u.current=Date.now(),c.current=0,l.current=0))},[p,t]),g=(0,o.useCallback)(e=>{if(!i.current||!r.current)return;let t=p(e),n=t-s.current,o=m(n);if(!a.current){if(Math.abs(n)<j_)return;a.current=!0,r.current.style.transition=`none`,r.current.setPointerCapture(e.pointerId)}c.current=o;let h=Date.now(),g=h-u.current;g>0&&(l.current=(t-d.current)/g,u.current=h,d.current=t);let _=f?`Y`:`X`;r.current.style.transform=`translate${_}(${o}px)`},[p,m,f]),_=(0,o.useCallback)(e=>{e.style.transition=`transform 300ms cubic-bezier(0.32, 0.72, 0, 1)`,e.style.transform=``,e.addEventListener(`transitionend`,()=>{e.style.transition=``},{once:!0})},[]),v=(0,o.useCallback)(e=>{if(!i.current)return;i.current=!1;let t=r.current;if(!t||!a.current){a.current=!1;return}a.current=!1;try{t.releasePointerCapture(e.pointerId)}catch{}let o=f?t.offsetHeight:t.offsetWidth,s=Math.abs(c.current),u=Math.abs(l.current);(s>o*M_||u>N_)&&n?(t.style.transition=``,n.close()):_(t),c.current=0,l.current=0},[f,n,_]),y=(0,o.useCallback)(e=>{if(!i.current)return;let t=a.current;i.current=!1,a.current=!1,c.current=0,l.current=0;let n=r.current;if(n){try{n.releasePointerCapture(e.pointerId)}catch{}t&&_(n)}},[_]),b=(0,o.useCallback)(e=>{e.target===e.currentTarget&&y(e)},[y]);return{dialogRef:r,dragHandlers:t?{onLostPointerCapture:b,onPointerCancel:y,onPointerDown:h,onPointerMove:g,onPointerUp:v}:{}}}var F_=(0,o.createContext)({}),I_=({children:e,state:t,...n})=>{let r=(0,o.useMemo)(()=>({slots:tr(),placement:void 0,isDismissable:!0}),[]),i=(0,o.useMemo)(()=>t?{isOpen:t.isOpen,onOpenChange:t.setOpen}:{},[t]);return(0,y.jsx)(F_,{value:r,children:(0,y.jsx)(vm,{"data-slot":`drawer-root`,...h(n,i),children:e})})};I_.displayName=`HeroUI.Drawer`;var L_=({children:e,className:t,...n})=>{let{slots:r}=(0,o.use)(F_);return(0,y.jsx)(as,{className:gs(t,r?.trigger()),"data-slot":`drawer-trigger`,...n,children:e})};L_.displayName=`HeroUI.Drawer.Trigger`;var R_=({children:e,className:t,isDismissable:n=!0,variant:r,...i})=>{let{slots:a}=(0,o.use)(F_),s=(0,o.useMemo)(()=>tr({variant:r}),[r]),c=(0,o.useMemo)(()=>({slots:{...a,...s},isDismissable:n}),[a,s,n]);return(0,y.jsx)(Om,{className:gs(t,s?.backdrop()),"data-slot":`drawer-backdrop`,isDismissable:n,...i,children:t=>(0,y.jsx)(F_,{value:c,children:typeof e==`function`?e(t):e})})};R_.displayName=`HeroUI.Drawer.Backdrop`;var z_=({children:e,className:t,placement:n=`bottom`,...r})=>{let{isDismissable:i,slots:a}=(0,o.use)(F_),s=(0,o.useMemo)(()=>tr({placement:n}),[n]),c=(0,o.useMemo)(()=>({placement:n,isDismissable:i,slots:{...a,...s}}),[a,n,i,s]);return(0,y.jsx)(Em,{className:gs(t,s?.content()),"data-placement":n,"data-slot":`drawer-content`,...r,children:t=>(0,y.jsx)(F_,{value:c,children:typeof e==`function`?e(t):e})})};z_.displayName=`HeroUI.Drawer.Content`;var B_=({children:e,className:t,style:n,...r})=>{let{isDismissable:i=!0,placement:a,slots:s}=(0,o.use)(F_),{dialogRef:c,dragHandlers:l}=P_(a,i);return(0,y.jsx)(ks,{value:A_,children:(0,y.jsx)(ym,{ref:c,className:hs(s?.dialog,t),"data-placement":a,"data-slot":`drawer-dialog`,...l,...r,style:i?{touchAction:`none`,...n}:n,children:e})})};B_.displayName=`HeroUI.Drawer.Dialog`;var V_=({children:e,className:t,...n})=>{let{slots:r}=(0,o.use)(F_);return(0,y.jsx)(S.div,{className:hs(r?.header,t),"data-slot":`drawer-header`,...n,children:e})};V_.displayName=`HeroUI.Drawer.Header`;var H_=({children:e,className:t,...n})=>{let{slots:r}=(0,o.use)(F_);return(0,y.jsx)(S.div,{className:hs(r?.body,t),"data-slot":`drawer-body`,style:{touchAction:`pan-y`},...n,children:e})};H_.displayName=`HeroUI.Drawer.Body`;var U_=({children:e,className:t,...n})=>{let{slots:r}=(0,o.use)(F_);return(0,y.jsx)(S.div,{className:hs(r?.footer,t),"data-slot":`drawer-footer`,...n,children:e})};U_.displayName=`HeroUI.Drawer.Footer`;var W_=({children:e,className:t,...n})=>{let{slots:r}=(0,o.use)(F_);return(0,y.jsx)(fs,{className:hs(r?.heading,t),"data-slot":`drawer-heading`,slot:`title`,...n,children:e})};W_.displayName=`HeroUI.Drawer.Heading`;var G_=({className:e,...t})=>{let{slots:n}=(0,o.use)(F_);return(0,y.jsx)(S.div,{"aria-hidden":`true`,className:hs(n?.handle,e),"data-slot":`drawer-handle`,...t,children:(0,y.jsx)(`div`,{"data-slot":`drawer-handle-bar`})})};G_.displayName=`HeroUI.Drawer.Handle`;var K_=({className:e,...t})=>{let{slots:n}=(0,o.use)(F_);return(0,y.jsx)(Hm,{className:gs(e,n?.closeTrigger()),"data-slot":`drawer-close-trigger`,slot:`close`,...t})};K_.displayName=`HeroUI.Drawer.CloseTrigger`;var q_=Object.assign(I_,{Root:I_,Trigger:L_,Backdrop:R_,Content:z_,Dialog:B_,Header:V_,Heading:W_,Body:H_,Footer:U_,Handle:G_,CloseTrigger:K_}),J_=(0,o.createContext)({}),Y_=({children:e,className:t,fullWidth:n,variant:r,...i})=>{let a=o.useMemo(()=>dr({fullWidth:n}),[n]),s=o.useMemo(()=>({variant:r}),[r]),c=gs(t,a);return(0,y.jsx)(J_,{value:s,children:(0,y.jsx)(v_,{"data-slot":`textfield`,...i,className:c,children:e})})};Y_.displayName=`HeroUI.TextField`;var X_=({className:e,fullWidth:t,variant:n,...r})=>{let i=(0,o.use)(J_),a=(0,o.use)(E_),s=n??i.variant??a.variant,c=gs(e,(0,o.useMemo)(()=>nr({fullWidth:t,variant:s}),[t,s]));return(0,y.jsx)(Yg,{className:c,"data-slot":`input`,...r})};X_.displayName=`HeroUI.Input`;var Z_=Object.assign(X_,{Root:X_}),Q_=({children:e,className:t,isDisabled:n,isInvalid:r,isRequired:i,...a})=>{let s=(0,o.useMemo)(()=>rr({className:t,isDisabled:n,isInvalid:r,isRequired:i}),[t,n,r,i]);return(0,y.jsx)(Yr,{className:s,"data-slot":`label`,...a,children:e})};Q_.displayName=`HeroUI.Label`;var $_=Object.assign(Q_,{Root:Q_}),ev=(0,o.createContext)({}),tv=({children:e,className:t,variant:n,...r})=>{let i=o.useMemo(()=>ir({variant:n}),[n]);return(0,y.jsx)(fg,{className:gs(t,i.item()),"data-slot":`list-box-item`,...r,children:t=>(0,y.jsx)(ev,{value:{slots:i,state:t},children:typeof e==`function`?e(t):e})})};tv.displayName=`HeroUI.ListBoxItem`;var nv=({children:e,className:t,...n})=>{let{slots:r,state:i}=(0,o.use)(ev),a=i?.isSelected,s=typeof e==`function`?e(i??{}):e||(0,y.jsx)(`svg`,{"aria-hidden":`true`,"data-slot":`list-box-item-indicator--checkmark`,fill:`none`,role:`presentation`,stroke:`currentColor`,strokeDasharray:22,strokeDashoffset:a?44:66,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:2,viewBox:`0 0 17 18`,children:(0,y.jsx)(`polyline`,{points:`1 9 7 14 15 4`})});return(0,y.jsx)(S.span,{"aria-hidden":`true`,className:hs(r?.indicator,t),"data-slot":`list-box-item-indicator`,"data-visible":a||void 0,...n,children:s})};nv.displayName=`HeroUI.ListBoxItem.Indicator`;var rv=Object.assign(tv,{Root:tv,Indicator:nv}),iv=({children:e,className:t,...n})=>{let r=o.useMemo(()=>ar({class:typeof t==`string`?t:void 0}),[t]);return(0,y.jsx)(dg,{className:r,...n,children:e})};iv.displayName=`HeroUI.ListBoxSection`;var av=iv;function ov({className:e,variant:t,...n}){let r=o.useMemo(()=>or({variant:t}),[t]);return(0,y.jsx)(sg,{className:gs(e,r),"data-slot":`list-box`,...n})}ov.displayName=`HeroUI.ListBox`;var sv=Object.assign(ov,{Root:ov,Item:rv,ItemIndicator:nv,Section:av}),cv=globalThis?.document?o.useLayoutEffect:o.useEffect,lv=e=>{let{containerRef:t,isEnabled:n,offset:r,onVisibilityChange:i,orientation:a,visibility:s}=e,c=(0,o.useRef)(i);(0,o.useEffect)(()=>{c.current=i},[i]);let l=(0,o.useRef)(null),u=(0,o.useRef)(null),d=(0,o.useCallback)(()=>{let e=t.current;if(!e)return;let n=a===`vertical`,i=n?e.scrollTop:Math.abs(e.scrollLeft),o=n?e.scrollHeight:e.scrollWidth,s=n?e.clientHeight:e.clientWidth,d=i>r,f=i+s+r<o-1,p=l.current;p&&p.hasScrollBefore===d&&p.hasScrollAfter===f||(l.current={hasScrollBefore:d,hasScrollAfter:f},u.current!==null&&cancelAnimationFrame(u.current),u.current=requestAnimationFrame(()=>{u.current=null;let t=c.current;n?d&&f?(e.dataset.topBottomScroll=`true`,delete e.dataset.topScroll,delete e.dataset.bottomScroll,t?.(`both`)):(e.dataset.topScroll=String(d),e.dataset.bottomScroll=String(f),delete e.dataset.topBottomScroll,t&&t(d?`top`:f?`bottom`:`none`)):d&&f?(e.dataset.leftRightScroll=`true`,delete e.dataset.leftScroll,delete e.dataset.rightScroll,t?.(`both`)):(e.dataset.leftScroll=String(d),e.dataset.rightScroll=String(f),delete e.dataset.leftRightScroll,t&&t(d?`left`:f?`right`:`none`))}))},[t,a,r]);(0,o.useEffect)(()=>{let e=t.current;if(!e||!n||s!==`auto`)return;d(),e.addEventListener(`scroll`,d,{passive:!0});let r=new ResizeObserver(d);r.observe(e);let i=new MutationObserver(d);return i.observe(e,{attributeFilter:[`class`,`style`],attributes:!0,characterData:!0,childList:!0,subtree:!0}),()=>{e.removeEventListener(`scroll`,d),r.disconnect(),i.disconnect(),u.current!==null&&(cancelAnimationFrame(u.current),u.current=null),l.current=null}},[t,s,n,d])},uv=({children:e,className:t,hideScrollBar:n=!1,isEnabled:r=!0,offset:i=0,onVisibilityChange:a,orientation:s=`vertical`,ref:c,size:l=40,style:u,variant:f=`fade`,visibility:p=`auto`,...m})=>{let h=(0,o.useRef)(null);lv({containerRef:h,isEnabled:r,offset:i,onVisibilityChange:a,orientation:s,visibility:p}),cv(()=>{let e=h.current;!e||p===`auto`&&r||(delete e.dataset.topScroll,delete e.dataset.bottomScroll,delete e.dataset.topBottomScroll,delete e.dataset.leftScroll,delete e.dataset.rightScroll,delete e.dataset.leftRightScroll,p!==`auto`&&(p===`both`?e.dataset[s===`vertical`?`topBottomScroll`:`leftRightScroll`]=`true`:p!==`none`&&(e.dataset[`${p}Scroll`]=`true`)))},[p,s,r]);let g=(0,o.useMemo)(()=>sr({hideScrollBar:n,orientation:s,variant:f}),[s,n,f]),_=(0,o.useMemo)(()=>g.base({className:t}),[t,g]),v={"--scroll-shadow-size":`${l}px`,"--scroll-shadow-offset":`${i}px`,...u},b=(0,o.useMemo)(()=>d(h,c),[h,c]);return(0,y.jsx)(`div`,{ref:b,className:_,"data-orientation":s,"data-scroll-shadow-mode":r&&p===`auto`?`auto`:`manual`,"data-scroll-shadow-size":l,"data-slot":`scroll-shadow`,style:v,...m,children:e})};uv.displayName=`HeroUI.ScrollShadow`;var dv=Object.assign(uv,{Root:uv}),fv=(0,o.createContext)({}),pv=(0,o.createContext)({}),mv=e=>(e?.selectionManager.selectedKeys.size??0)===0,hv=(e,t)=>{e?.selectionManager.setSelectedKeys(new Set),t?.()},gv=({children:e,className:t,fullWidth:n,isDisabled:r,onClear:i,variant:a,...s})=>{let c=o.useMemo(()=>cr({fullWidth:n,variant:a}),[n,a]),l=o.useRef(0),u=o.useCallback(()=>(l.current+=1,()=>{--l.current}),[]),d=o.useCallback(()=>l.current>0,[]),f=o.useMemo(()=>({hasClearButton:d,isDisabled:r,onClear:i,registerClearButton:u,slots:c}),[d,r,i,u,c]);return(0,y.jsx)(zg,{children:(0,y.jsx)(fv,{value:f,children:(0,y.jsx)(Mg,{"data-slot":`select`,...s,className:gs(t,c?.base()),isDisabled:r,children:e})})})};gv.displayName=`HeroUI.Select`;var _v=({children:e,className:t,onKeyDown:n,...r})=>{let{hasClearButton:i,onClear:a,slots:s}=(0,o.use)(fv),c=(0,o.use)(jg),l=e=>{n?.(e);let t=e.key===`Backspace`||e.key===`Delete`,r=!!i?.()&&!mv(c);if(!t||!r||c?.isOpen){e.continuePropagation();return}e.preventDefault(),hv(c,a)};return(0,y.jsx)(as,{className:gs(t,s?.trigger()),"data-slot":`select-trigger`,...r,onKeyDown:l,children:t=>(0,y.jsx)(pv,{value:{isDisabled:t.isDisabled},children:typeof e==`function`?e(t):e})})};_v.displayName=`HeroUI.Select.Trigger`;var vv=({children:e,className:t,...n})=>{let{slots:r}=(0,o.use)(fv);return(0,y.jsx)(Ig,{className:gs(t,r?.value()),"data-slot":`select-value`,...n,children:e})};vv.displayName=`HeroUI.Select.Value`;var yv=({children:e,className:t,...n})=>{let{slots:r}=(0,o.use)(fv),i=(0,o.use)(jg);return e&&o.isValidElement(e)?o.cloneElement(e,{...n,className:hs(r?.indicator,t),"data-slot":`select-indicator`,"data-open":ps(i?.isOpen)}):(0,y.jsx)(_s,{className:hs(r?.indicator,t),"data-open":ps(i?.isOpen),"data-slot":`select-default-indicator`,...n})};yv.displayName=`HeroUI.Select.Indicator`;var bv=({children:e,className:t,onClick:n,onPointerDown:r,...i})=>{let{isDisabled:a,onClear:s,registerClearButton:c,slots:l}=(0,o.use)(fv),{isDisabled:u}=(0,o.use)(pv),d=(0,o.use)(jg),f=u??a??!1,p=mv(d);o.useEffect(()=>c?.(),[c]);let m=e=>{e.stopPropagation(),r?.(e)},h=e=>{e.preventDefault(),e.stopPropagation(),!f&&!p&&hv(d,s),n?.(e)};return(0,y.jsx)(S.span,{"aria-hidden":!0,className:l?.clearButton({className:t}),"data-empty":ps(p),"data-slot":`select-clear-button`,...i,onClick:h,onPointerDown:m,children:e??(0,y.jsx)(xs,{"data-slot":`select-clear-button-icon`})})};bv.displayName=`HeroUI.Select.ClearButton`;var xv=({children:e,className:t,defaultOpen:n,isExiting:r,isOpen:i,placement:a=`bottom`,ref:s,...c})=>{let{slots:l}=(0,o.use)(fv),{isExiting:u,ref:d}=Bg({...c,defaultOpen:n,isOpen:i},{ref:s});return(0,y.jsx)(ks,{value:{variant:`default`},children:(0,y.jsx)(Vu,{...c,ref:d,className:gs(t,l?.popover()),"data-slot":`select-popover`,defaultOpen:n,isExiting:u||r,isOpen:i,placement:a,children:e})})};xv.displayName=`HeroUI.Select.Popover`;var Sv=Object.assign(gv,{Root:gv,Trigger:_v,Value:vv,Indicator:yv,ClearButton:bv,Popover:xv}),Cv=Object.assign(As,{Root:As}),wv=(0,o.createContext)({}),Tv=T_(`tabs.listContainer`),Ev=({align:e,children:t,className:n,orientation:r=`horizontal`,variant:i,...a})=>{let[s,c]=o.useState(!1);o.useEffect(()=>{let e=requestAnimationFrame(()=>c(!0));return()=>cancelAnimationFrame(e)},[]);let l=o.useMemo(()=>ur({align:e,variant:i}),[e,i]),u=o.useMemo(()=>({isIndicatorReady:s,orientation:r,slots:l}),[s,r,l]);return(0,y.jsx)(wv,{value:u,children:(0,y.jsx)(l_,{...a,className:gs(n,l.base()),"data-slot":`tabs`,orientation:r,children:t})})};Ev.displayName=`HeroUI.Tabs`;var Dv=({children:e,className:t,render:n,...r})=>(0,y.jsx)(Tv.Injector,{...r,className:t,render:n,children:e});Dv.displayName=`HeroUI.Tabs.ListContainer`;var Ov=({children:e,className:t,...n})=>{let{orientation:r=`horizontal`,slots:i}=(0,o.use)(wv),a=(0,o.useRef)(null),s=r===`vertical`,[c,l]=Tv.useSlot(n),u=gs(t,i?.tabList()),d=(0,o.useCallback)(e=>{let t=a.current;if(!t)return;let n=s?t.clientHeight:t.clientWidth,r=s?t.scrollHeight:t.scrollWidth,i=Math.max(0,r-n),o=!s&&getComputedStyle(t).direction===`rtl`,c=e*n*.8*(o?-1:1),l=s?t.scrollTop:t.scrollLeft,u=Math.min(o?0:i,Math.max(o?-i:0,l+c));u!==l&&t.scrollTo({behavior:`smooth`,[s?`top`:`left`]:u})},[s]);if(!c)return(0,y.jsx)(d_,{...l,className:u,"data-slot":`tabs-list`,children:e});let{className:f,render:p,...m}=c;return(0,y.jsx)(d_,{...l,className:u,"data-slot":`tabs-list`,render:e=>{let{children:t,className:n,ref:o,...c}=e;return(0,y.jsxs)(S.div,{className:hs(i?.tabListContainer,f),"data-slot":`tabs-list-container`,render:p,...m,children:[(0,y.jsx)(dv,{ref:a,hideScrollBar:!0,className:hs(i?.scroller),orientation:r,size:64,children:(0,y.jsx)(`div`,{...c,ref:o,className:n,children:t})}),(0,y.jsx)(`button`,{"aria-label":s?`Scroll tabs up`:`Scroll tabs left`,className:hs(i?.scrollPrev),tabIndex:-1,type:`button`,onClick:()=>d(-1),children:s?(0,y.jsx)(vs,{}):(0,y.jsx)(ys,{})}),(0,y.jsx)(`button`,{"aria-label":s?`Scroll tabs down`:`Scroll tabs right`,className:hs(i?.scrollNext),tabIndex:-1,type:`button`,onClick:()=>d(1),children:s?(0,y.jsx)(_s,{}):(0,y.jsx)(bs,{})})]})},children:e})};Ov.displayName=`HeroUI.Tabs.List`;var kv=({children:e,className:t,...n})=>{let{slots:r}=(0,o.use)(wv);return(0,y.jsx)(p_,{...n,className:gs(t,r?.tab()),"data-slot":`tabs-tab`,children:e})};kv.displayName=`HeroUI.Tabs.Tab`;var Av=({className:e,...t})=>{let{isIndicatorReady:n=!1,slots:r}=(0,o.use)(wv);return(0,y.jsx)(kf,{className:hs(r?.tabIndicator,e),"data-animation-ready":n,"data-slot":`tabs-indicator`,...t})};Av.displayName=`HeroUI.Tabs.Indicator`;var jv=({children:e,className:t,...n})=>{let{slots:r}=(0,o.use)(wv);return(0,y.jsx)(m_,{...n,className:gs(t,r?.tabPanel()),"data-slot":`tabs-panel`,children:e})};jv.displayName=`HeroUI.Tabs.Panel`;var Mv=({className:e,...t})=>{let{slots:n}=(0,o.use)(wv);return(0,y.jsx)(S.span,{"aria-hidden":`true`,className:hs(n?.separator,e),"data-slot":`tabs-separator`,...t})};Mv.displayName=`HeroUI.Tabs.Separator`;var Nv=Object.assign(Ev,{Root:Ev,ListContainer:Dv,List:Ov,Tab:kv,Indicator:Av,Separator:Mv,Panel:jv}),Pv=Object.assign(Y_,{Root:Y_}),Fv=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase();function Iv(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:Fv(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var Lv=e=>{let t=``,n=!1;for(let r of e){if(r===`-`||r===`_`||r<=` `){n=t.length>0;continue}t.length===0?t+=r.toLowerCase():t+=n?r.toUpperCase():r,n=!1}return t},Rv=e=>{let t=Lv(e);return t.charAt(0).toUpperCase()+t.slice(1)},zv=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),Bv={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`};function Vv(e){return e!=null}function Hv(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??Bv.width,a=e.size??e.height??Bv.height,o=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(` `).filter(Boolean)??[],l=t.includeDefaultClasses===!1?zv(...c):zv(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??Bv[`stroke-width`])*Number(e.size??e.width??Bv.width)/Number(t.size??t.width??Bv.width):t.strokeWidth??Bv[`stroke-width`];return[`svg`,{...Object.entries(Bv).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&Vv(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&Vv(t.width)&&{[r(`width`)]:t.width},...`height`in t&&Vv(t.height)&&{[r(`height`)]:t.height},[r(`stroke-width`)]:u,...l&&{[r(`class`)]:l},[r(`viewBox`)]:`0 0 ${i} ${a}`,...t.hasA11yProp===!1?{[r(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,i,a]=e,o=t.nonScalingStroke?{[r(`vector-effect`)]:`non-scaling-stroke`,...i}:i;return a?[n,o,a]:[n,o]})]}function Uv(e,t={}){return Hv(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var Wv=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},Gv=(0,o.createContext)({}),Kv=()=>(0,o.useContext)(Gv),qv=(0,o.forwardRef)(({color:e,size:t,width:n,height:r,strokeWidth:i,absoluteStrokeWidth:a,nonScalingStroke:s,className:c=``,children:l,iconNode:u=[],icon:d={node:u,aliases:[],size:24},...f},p)=>{let{size:m=24,strokeWidth:h=2,absoluteStrokeWidth:g=!1,nonScalingStroke:_=!1,color:v=`currentColor`,className:y=``}=Kv()??{},b=!!l||Wv(f),[x,S,C=[]]=Uv(d,{color:e??v,width:n??t??m,height:r??t??m,strokeWidth:i??h,absoluteStrokeWidth:a??g,nonScalingStroke:s??_,className:zv(y,c),hasA11yProp:b,attributes:f});return(0,o.createElement)(x,{ref:p,...S},[...C.map(([e,t])=>(0,o.createElement)(e,t)),...Array.isArray(l)?l:[l]])});function Jv(e,t=[],n=[]){let r=typeof e==`string`?Iv(e,t,n):e,i=(0,o.forwardRef)(({className:e,...t},n)=>(0,o.createElement)(qv,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=Rv(r.name)),i}export{xf as $,ji as $t,Zm as A,Xn as An,as as At,Em as B,Co as Bt,bg as C,U as Cn,hs as Ct,sh as D,wr as Dn,us as Dt,ch as E,Ar as En,fs as Et,Wm as F,s as Fn,Fo as Ft,Pf as G,Ba as Gt,vm as H,ro as Ht,Um as I,a as In,Po as It,jf as J,pa as Jt,Nf as K,Ka as Kt,Hm as L,r as Ln,Do as Lt,qm as M,_ as Mn,Zo as Mt,Km as N,h as Nn,Xo as Nt,oh as O,H as On,cs as Ot,Gm as P,d as Pn,Vo as Pt,Sf as Q,Z as Qt,Bm as R,Oo as Rt,Mg as S,Fr as Sn,Cs as St,gg as T,Mr as Tn,ps as Tt,ym as U,Va as Ut,Om as V,vo as Vt,_m as W,Ha as Wt,Ef as X,Y as Xt,Of as Y,la as Yt,wf as Z,X as Zt,Wg as _,Rr as _n,Es as _t,Sv as a,bi as an,Fu as at,Ig as b,Vr as bn,Ss as bt,sv as c,ri as cn,Su as ct,q_ as d,Kr as dn,js as dt,Ai as en,rd as et,O_ as f,qr as fn,Ms as ft,Kg as g,Br as gn,_s as gt,Yg as h,W as hn,ws as ht,Cv as i,Ci as in,Iu as it,eh as j,S as jn,rs as jt,$m as k,Jn as kn,is as kt,$_ as l,q as ln,zc as lt,qg as m,G as mn,xs as mt,Pv as n,Oi as nn,zu as nt,dv as o,_i as on,ju as ot,Xg as p,Lr as pn,ks as pt,Mf as q,sa as qt,Nv as r,xi as rn,Lu as rt,cv as s,mi as sn,Tu as st,Jv as t,Di as tn,Vu as tt,Z_ as u,Jr as un,mc as ut,Bg as v,Ir as vn,Ds as vt,yg as w,Nr as wn,gs as wt,jg as x,zr as xn,Ts as xt,zg as y,K as yn,Os as yt,zm as z,So as zt};