@clicktap/ui 0.2.13 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("react/jsx-runtime"),d=require("react"),m=require("styled-components"),Re=require("framer-motion"),D=require("react-aria-components"),Hs=require("react-aria"),Yr=require("react-dom");function Gs(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const Fr=Gs(d);var Ws=()=>p.jsxs("svg",{"aria-hidden":"true",fill:"none",height:"80%",role:"presentation",viewBox:"0 0 24 24",width:"80%",children:[p.jsx("path",{d:"M12 2C9.38 2 7.25 4.13 7.25 6.75C7.25 9.32 9.26 11.4 11.88 11.49C11.96 11.48 12.04 11.48 12.1 11.49C12.12 11.49 12.13 11.49 12.15 11.49C12.16 11.49 12.16 11.49 12.17 11.49C14.73 11.4 16.74 9.32 16.75 6.75C16.75 4.13 14.62 2 12 2Z",fill:"currentColor"}),p.jsx("path",{d:"M17.0809 14.1489C14.2909 12.2889 9.74094 12.2889 6.93094 14.1489C5.66094 14.9989 4.96094 16.1489 4.96094 17.3789C4.96094 18.6089 5.66094 19.7489 6.92094 20.5889C8.32094 21.5289 10.1609 21.9989 12.0009 21.9989C13.8409 21.9989 15.6809 21.5289 17.0809 20.5889C18.3409 19.7389 19.0409 18.5989 19.0409 17.3589C19.0309 16.1289 18.3409 14.9889 17.0809 14.1489Z",fill:"currentColor"})]});function Us(e={}){const{strict:r=!0,errorMessage:t="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:o}=e,n=Fr.createContext(void 0);n.displayName=o;function s(){var i;const l=Fr.useContext(n);if(!l&&r){const u=new Error(t);throw u.name="ContextError",(i=Error.captureStackTrace)==null||i.call(Error,u,s),u}return l}return[n.Provider,s,n]}function Ks(e){return{UNSAFE_getDOMNode(){return e.current}}}function yt(e){const r=d.useRef(null);return d.useImperativeHandle(e,()=>r.current),r}var Ys=e=>(e==null?void 0:e.length)<=4?e:e==null?void 0:e.slice(0,3);function kn(e){var r,t,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e))for(r=0;r<e.length;r++)e[r]&&(t=kn(e[r]))&&(o&&(o+=" "),o+=t);else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function or(...e){for(var r=0,t,o,n="";r<e.length;)(t=e[r++])&&(o=kn(t))&&(n&&(n+=" "),n+=o);return n}var Bo={};function Xs(e,r,...t){var o;const s=`[Next UI]${r?` [${r}]`:" "}: ${e}`;if(!(typeof console>"u")&&!Bo[s]&&(Bo[s]=!0,((o=process==null?void 0:process.env)==null?void 0:o.NODE_ENV)!=="production"))return console.warn(s,t)}function Sn(e){if(!e||typeof e!="object")return"";try{return JSON.stringify(e)}catch{return""}}process.env.NODE_ENV;process.env.NODE_ENV;function qs(e){return typeof e=="function"}var _e=e=>e?"true":void 0;function Zs(e){const r=Object.assign({},e);for(let t in r)r[t]===void 0&&delete r[t];return r}function Js(e,r){if(e!=null){if(qs(e)){e(r);return}try{e.current=r}catch{throw new Error(`Cannot assign value '${r}' to ref '${e}'`)}}}function Qs(...e){return r=>{e.forEach(t=>Js(t,r))}}var ei=Object.create,Tn=Object.defineProperty,ri=Object.getOwnPropertyDescriptor,Pn=Object.getOwnPropertyNames,ti=Object.getPrototypeOf,oi=Object.prototype.hasOwnProperty,Wt=(e,r)=>function(){return r||(0,e[Pn(e)[0]])((r={exports:{}}).exports,r),r.exports},ni=(e,r,t,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Pn(r))!oi.call(e,n)&&n!==t&&Tn(e,n,{get:()=>r[n],enumerable:!(o=ri(r,n))||o.enumerable});return e},ai=(e,r,t)=>(t=e!=null?ei(ti(e)):{},ni(r||!e||!e.__esModule?Tn(t,"default",{value:e,enumerable:!0}):t,e)),si=Wt({"../../../node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react.production.min.js"(e){var r=Symbol.for("react.element"),t=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),b=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),h=Symbol.iterator;function v($){return $===null||typeof $!="object"?null:($=h&&$[h]||$["@@iterator"],typeof $=="function"?$:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,k={};function T($,S,W){this.props=$,this.context=S,this.refs=k,this.updater=W||x}T.prototype.isReactComponent={},T.prototype.setState=function($,S){if(typeof $!="object"&&typeof $!="function"&&$!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,$,S,"setState")},T.prototype.forceUpdate=function($){this.updater.enqueueForceUpdate(this,$,"forceUpdate")};function M(){}M.prototype=T.prototype;function _($,S,W){this.props=$,this.context=S,this.refs=k,this.updater=W||x}var I=_.prototype=new M;I.constructor=_,E(I,T.prototype),I.isPureReactComponent=!0;var O=Array.isArray,P=Object.prototype.hasOwnProperty,F={current:null},L={key:!0,ref:!0,__self:!0,__source:!0};function N($,S,W){var Y,ee={},ne=null,se=null;if(S!=null)for(Y in S.ref!==void 0&&(se=S.ref),S.key!==void 0&&(ne=""+S.key),S)P.call(S,Y)&&!L.hasOwnProperty(Y)&&(ee[Y]=S[Y]);var ae=arguments.length-2;if(ae===1)ee.children=W;else if(1<ae){for(var ie=Array(ae),ve=0;ve<ae;ve++)ie[ve]=arguments[ve+2];ee.children=ie}if($&&$.defaultProps)for(Y in ae=$.defaultProps,ae)ee[Y]===void 0&&(ee[Y]=ae[Y]);return{$$typeof:r,type:$,key:ne,ref:se,props:ee,_owner:F.current}}function J($,S){return{$$typeof:r,type:$.type,key:S,ref:$.ref,props:$.props,_owner:$._owner}}function q($){return typeof $=="object"&&$!==null&&$.$$typeof===r}function j($){var S={"=":"=0",":":"=2"};return"$"+$.replace(/[=:]/g,function(W){return S[W]})}var H=/\/+/g;function z($,S){return typeof $=="object"&&$!==null&&$.key!=null?j(""+$.key):S.toString(36)}function V($,S,W,Y,ee){var ne=typeof $;(ne==="undefined"||ne==="boolean")&&($=null);var se=!1;if($===null)se=!0;else switch(ne){case"string":case"number":se=!0;break;case"object":switch($.$$typeof){case r:case t:se=!0}}if(se)return se=$,ee=ee(se),$=Y===""?"."+z(se,0):Y,O(ee)?(W="",$!=null&&(W=$.replace(H,"$&/")+"/"),V(ee,S,W,"",function(ve){return ve})):ee!=null&&(q(ee)&&(ee=J(ee,W+(!ee.key||se&&se.key===ee.key?"":(""+ee.key).replace(H,"$&/")+"/")+$)),S.push(ee)),1;if(se=0,Y=Y===""?".":Y+":",O($))for(var ae=0;ae<$.length;ae++){ne=$[ae];var ie=Y+z(ne,ae);se+=V(ne,S,W,ie,ee)}else if(ie=v($),typeof ie=="function")for($=ie.call($),ae=0;!(ne=$.next()).done;)ne=ne.value,ie=Y+z(ne,ae++),se+=V(ne,S,W,ie,ee);else if(ne==="object")throw S=String($),Error("Objects are not valid as a React child (found: "+(S==="[object Object]"?"object with keys {"+Object.keys($).join(", ")+"}":S)+"). If you meant to render a collection of children, use an array instead.");return se}function G($,S,W){if($==null)return $;var Y=[],ee=0;return V($,Y,"","",function(ne){return S.call(W,ne,ee++)}),Y}function A($){if($._status===-1){var S=$._result;S=S(),S.then(function(W){($._status===0||$._status===-1)&&($._status=1,$._result=W)},function(W){($._status===0||$._status===-1)&&($._status=2,$._result=W)}),$._status===-1&&($._status=0,$._result=S)}if($._status===1)return $._result.default;throw $._result}var U={current:null},Z={transition:null},Q={ReactCurrentDispatcher:U,ReactCurrentBatchConfig:Z,ReactCurrentOwner:F};e.Children={map:G,forEach:function($,S,W){G($,function(){S.apply(this,arguments)},W)},count:function($){var S=0;return G($,function(){S++}),S},toArray:function($){return G($,function(S){return S})||[]},only:function($){if(!q($))throw Error("React.Children.only expected to receive a single React element child.");return $}},e.Component=T,e.Fragment=o,e.Profiler=s,e.PureComponent=_,e.StrictMode=n,e.Suspense=g,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Q,e.cloneElement=function($,S,W){if($==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+$+".");var Y=E({},$.props),ee=$.key,ne=$.ref,se=$._owner;if(S!=null){if(S.ref!==void 0&&(ne=S.ref,se=F.current),S.key!==void 0&&(ee=""+S.key),$.type&&$.type.defaultProps)var ae=$.type.defaultProps;for(ie in S)P.call(S,ie)&&!L.hasOwnProperty(ie)&&(Y[ie]=S[ie]===void 0&&ae!==void 0?ae[ie]:S[ie])}var ie=arguments.length-2;if(ie===1)Y.children=W;else if(1<ie){ae=Array(ie);for(var ve=0;ve<ie;ve++)ae[ve]=arguments[ve+2];Y.children=ae}return{$$typeof:r,type:$.type,key:ee,ref:ne,props:Y,_owner:se}},e.createContext=function($){return $={$$typeof:l,_currentValue:$,_currentValue2:$,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},$.Provider={$$typeof:i,_context:$},$.Consumer=$},e.createElement=N,e.createFactory=function($){var S=N.bind(null,$);return S.type=$,S},e.createRef=function(){return{current:null}},e.forwardRef=function($){return{$$typeof:u,render:$}},e.isValidElement=q,e.lazy=function($){return{$$typeof:y,_payload:{_status:-1,_result:$},_init:A}},e.memo=function($,S){return{$$typeof:b,type:$,compare:S===void 0?null:S}},e.startTransition=function($){var S=Z.transition;Z.transition={};try{$()}finally{Z.transition=S}},e.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},e.useCallback=function($,S){return U.current.useCallback($,S)},e.useContext=function($){return U.current.useContext($)},e.useDebugValue=function(){},e.useDeferredValue=function($){return U.current.useDeferredValue($)},e.useEffect=function($,S){return U.current.useEffect($,S)},e.useId=function(){return U.current.useId()},e.useImperativeHandle=function($,S,W){return U.current.useImperativeHandle($,S,W)},e.useInsertionEffect=function($,S){return U.current.useInsertionEffect($,S)},e.useLayoutEffect=function($,S){return U.current.useLayoutEffect($,S)},e.useMemo=function($,S){return U.current.useMemo($,S)},e.useReducer=function($,S,W){return U.current.useReducer($,S,W)},e.useRef=function($){return U.current.useRef($)},e.useState=function($){return U.current.useState($)},e.useSyncExternalStore=function($,S,W){return U.current.useSyncExternalStore($,S,W)},e.useTransition=function(){return U.current.useTransition()},e.version="18.2.0"}}),ii=Wt({"../../../node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react.development.js"(e,r){process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var t="18.2.0",o=Symbol.for("react.element"),n=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),g=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),E=Symbol.for("react.offscreen"),k=Symbol.iterator,T="@@iterator";function M(a){if(a===null||typeof a!="object")return null;var f=k&&a[k]||a[T];return typeof f=="function"?f:null}var _={current:null},I={transition:null},O={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},P={current:null},F={},L=null;function N(a){L=a}F.setExtraStackFrame=function(a){L=a},F.getCurrentStack=null,F.getStackAddendum=function(){var a="";L&&(a+=L);var f=F.getCurrentStack;return f&&(a+=f()||""),a};var J=!1,q=!1,j=!1,H=!1,z=!1,V={ReactCurrentDispatcher:_,ReactCurrentBatchConfig:I,ReactCurrentOwner:P};V.ReactDebugCurrentFrame=F,V.ReactCurrentActQueue=O;function G(a){{for(var f=arguments.length,w=new Array(f>1?f-1:0),C=1;C<f;C++)w[C-1]=arguments[C];U("warn",a,w)}}function A(a){{for(var f=arguments.length,w=new Array(f>1?f-1:0),C=1;C<f;C++)w[C-1]=arguments[C];U("error",a,w)}}function U(a,f,w){{var C=V.ReactDebugCurrentFrame,R=C.getStackAddendum();R!==""&&(f+="%s",w=w.concat([R]));var K=w.map(function(B){return String(B)});K.unshift("Warning: "+f),Function.prototype.apply.call(console[a],console,K)}}var Z={};function Q(a,f){{var w=a.constructor,C=w&&(w.displayName||w.name)||"ReactClass",R=C+"."+f;if(Z[R])return;A("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",f,C),Z[R]=!0}}var $={isMounted:function(a){return!1},enqueueForceUpdate:function(a,f,w){Q(a,"forceUpdate")},enqueueReplaceState:function(a,f,w,C){Q(a,"replaceState")},enqueueSetState:function(a,f,w,C){Q(a,"setState")}},S=Object.assign,W={};Object.freeze(W);function Y(a,f,w){this.props=a,this.context=f,this.refs=W,this.updater=w||$}Y.prototype.isReactComponent={},Y.prototype.setState=function(a,f){if(typeof a!="object"&&typeof a!="function"&&a!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,a,f,"setState")},Y.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};{var ee={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},ne=function(a,f){Object.defineProperty(Y.prototype,a,{get:function(){G("%s(...) is deprecated in plain JavaScript React classes. %s",f[0],f[1])}})};for(var se in ee)ee.hasOwnProperty(se)&&ne(se,ee[se])}function ae(){}ae.prototype=Y.prototype;function ie(a,f,w){this.props=a,this.context=f,this.refs=W,this.updater=w||$}var ve=ie.prototype=new ae;ve.constructor=ie,S(ve,Y.prototype),ve.isPureReactComponent=!0;function Te(){var a={current:null};return Object.seal(a),a}var Ie=Array.isArray;function Ae(a){return Ie(a)}function wr(a){{var f=typeof Symbol=="function"&&Symbol.toStringTag,w=f&&a[Symbol.toStringTag]||a.constructor.name||"Object";return w}}function Fa(a){try{return ao(a),!1}catch{return!0}}function ao(a){return""+a}function mr(a){if(Fa(a))return A("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",wr(a)),ao(a)}function za(a,f,w){var C=a.displayName;if(C)return C;var R=f.displayName||f.name||"";return R!==""?w+"("+R+")":w}function so(a){return a.displayName||"Context"}function ze(a){if(a==null)return null;if(typeof a.tag=="number"&&A("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case s:return"Fragment";case n:return"Portal";case l:return"Profiler";case i:return"StrictMode";case y:return"Suspense";case h:return"SuspenseList"}if(typeof a=="object")switch(a.$$typeof){case g:var f=a;return so(f)+".Consumer";case u:var w=a;return so(w._context)+".Provider";case b:return za(a,a.render,"ForwardRef");case v:var C=a.displayName||null;return C!==null?C:ze(a.type)||"Memo";case x:{var R=a,K=R._payload,B=R._init;try{return ze(B(K))}catch{return null}}}return null}var ir=Object.prototype.hasOwnProperty,io={key:!0,ref:!0,__self:!0,__source:!0},lo,co,Jr;Jr={};function uo(a){if(ir.call(a,"ref")){var f=Object.getOwnPropertyDescriptor(a,"ref").get;if(f&&f.isReactWarning)return!1}return a.ref!==void 0}function fo(a){if(ir.call(a,"key")){var f=Object.getOwnPropertyDescriptor(a,"key").get;if(f&&f.isReactWarning)return!1}return a.key!==void 0}function Va(a,f){var w=function(){lo||(lo=!0,A("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",f))};w.isReactWarning=!0,Object.defineProperty(a,"key",{get:w,configurable:!0})}function Ba(a,f){var w=function(){co||(co=!0,A("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",f))};w.isReactWarning=!0,Object.defineProperty(a,"ref",{get:w,configurable:!0})}function Ha(a){if(typeof a.ref=="string"&&P.current&&a.__self&&P.current.stateNode!==a.__self){var f=ze(P.current.type);Jr[f]||(A('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',f,a.ref),Jr[f]=!0)}}var Qr=function(a,f,w,C,R,K,B){var X={$$typeof:o,type:a,key:f,ref:w,props:B,_owner:K};return X._store={},Object.defineProperty(X._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(X,"_self",{configurable:!1,enumerable:!1,writable:!1,value:C}),Object.defineProperty(X,"_source",{configurable:!1,enumerable:!1,writable:!1,value:R}),Object.freeze&&(Object.freeze(X.props),Object.freeze(X)),X};function Ga(a,f,w){var C,R={},K=null,B=null,X=null,oe=null;if(f!=null){uo(f)&&(B=f.ref,Ha(f)),fo(f)&&(mr(f.key),K=""+f.key),X=f.__self===void 0?null:f.__self,oe=f.__source===void 0?null:f.__source;for(C in f)ir.call(f,C)&&!io.hasOwnProperty(C)&&(R[C]=f[C])}var le=arguments.length-2;if(le===1)R.children=w;else if(le>1){for(var de=Array(le),ue=0;ue<le;ue++)de[ue]=arguments[ue+2];Object.freeze&&Object.freeze(de),R.children=de}if(a&&a.defaultProps){var fe=a.defaultProps;for(C in fe)R[C]===void 0&&(R[C]=fe[C])}if(K||B){var ge=typeof a=="function"?a.displayName||a.name||"Unknown":a;K&&Va(R,ge),B&&Ba(R,ge)}return Qr(a,K,B,X,oe,P.current,R)}function Wa(a,f){var w=Qr(a.type,f,a.ref,a._self,a._source,a._owner,a.props);return w}function Ua(a,f,w){if(a==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+a+".");var C,R=S({},a.props),K=a.key,B=a.ref,X=a._self,oe=a._source,le=a._owner;if(f!=null){uo(f)&&(B=f.ref,le=P.current),fo(f)&&(mr(f.key),K=""+f.key);var de;a.type&&a.type.defaultProps&&(de=a.type.defaultProps);for(C in f)ir.call(f,C)&&!io.hasOwnProperty(C)&&(f[C]===void 0&&de!==void 0?R[C]=de[C]:R[C]=f[C])}var ue=arguments.length-2;if(ue===1)R.children=w;else if(ue>1){for(var fe=Array(ue),ge=0;ge<ue;ge++)fe[ge]=arguments[ge+2];R.children=fe}return Qr(a.type,K,B,X,oe,le,R)}function qe(a){return typeof a=="object"&&a!==null&&a.$$typeof===o}var po=".",Ka=":";function Ya(a){var f=/[=:]/g,w={"=":"=0",":":"=2"},C=a.replace(f,function(R){return w[R]});return"$"+C}var bo=!1,Xa=/\/+/g;function go(a){return a.replace(Xa,"$&/")}function et(a,f){return typeof a=="object"&&a!==null&&a.key!=null?(mr(a.key),Ya(""+a.key)):f.toString(36)}function hr(a,f,w,C,R){var K=typeof a;(K==="undefined"||K==="boolean")&&(a=null);var B=!1;if(a===null)B=!0;else switch(K){case"string":case"number":B=!0;break;case"object":switch(a.$$typeof){case o:case n:B=!0}}if(B){var X=a,oe=R(X),le=C===""?po+et(X,0):C;if(Ae(oe)){var de="";le!=null&&(de=go(le)+"/"),hr(oe,f,de,"",function(Bs){return Bs})}else oe!=null&&(qe(oe)&&(oe.key&&(!X||X.key!==oe.key)&&mr(oe.key),oe=Wa(oe,w+(oe.key&&(!X||X.key!==oe.key)?go(""+oe.key)+"/":"")+le)),f.push(oe));return 1}var ue,fe,ge=0,$e=C===""?po:C+Ka;if(Ae(a))for(var Or=0;Or<a.length;Or++)ue=a[Or],fe=$e+et(ue,Or),ge+=hr(ue,f,w,fe,R);else{var ct=M(a);if(typeof ct=="function"){var Fo=a;ct===Fo.entries&&(bo||G("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),bo=!0);for(var zs=ct.call(Fo),zo,Vs=0;!(zo=zs.next()).done;)ue=zo.value,fe=$e+et(ue,Vs++),ge+=hr(ue,f,w,fe,R)}else if(K==="object"){var Vo=String(a);throw new Error("Objects are not valid as a React child (found: "+(Vo==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":Vo)+"). If you meant to render a collection of children, use an array instead.")}}return ge}function Cr(a,f,w){if(a==null)return a;var C=[],R=0;return hr(a,C,"","",function(K){return f.call(w,K,R++)}),C}function qa(a){var f=0;return Cr(a,function(){f++}),f}function Za(a,f,w){Cr(a,function(){f.apply(this,arguments)},w)}function Ja(a){return Cr(a,function(f){return f})||[]}function Qa(a){if(!qe(a))throw new Error("React.Children.only expected to receive a single React element child.");return a}function es(a){var f={$$typeof:g,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};f.Provider={$$typeof:u,_context:f};var w=!1,C=!1,R=!1;{var K={$$typeof:g,_context:f};Object.defineProperties(K,{Provider:{get:function(){return C||(C=!0,A("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),f.Provider},set:function(B){f.Provider=B}},_currentValue:{get:function(){return f._currentValue},set:function(B){f._currentValue=B}},_currentValue2:{get:function(){return f._currentValue2},set:function(B){f._currentValue2=B}},_threadCount:{get:function(){return f._threadCount},set:function(B){f._threadCount=B}},Consumer:{get:function(){return w||(w=!0,A("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),f.Consumer}},displayName:{get:function(){return f.displayName},set:function(B){R||(G("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",B),R=!0)}}}),f.Consumer=K}return f._currentRenderer=null,f._currentRenderer2=null,f}var lr=-1,rt=0,vo=1,rs=2;function ts(a){if(a._status===lr){var f=a._result,w=f();if(w.then(function(K){if(a._status===rt||a._status===lr){var B=a;B._status=vo,B._result=K}},function(K){if(a._status===rt||a._status===lr){var B=a;B._status=rs,B._result=K}}),a._status===lr){var C=a;C._status=rt,C._result=w}}if(a._status===vo){var R=a._result;return R===void 0&&A(`lazy: Expected the result of a dynamic import() call. Instead received: %s
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("react/jsx-runtime"),d=require("react"),m=require("styled-components"),Re=require("framer-motion"),D=require("react-aria-components"),Hs=require("react-aria"),Yr=require("react-dom");function Gs(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const Fr=Gs(d);var Ws=()=>p.jsxs("svg",{"aria-hidden":"true",fill:"none",height:"80%",role:"presentation",viewBox:"0 0 24 24",width:"80%",children:[p.jsx("path",{d:"M12 2C9.38 2 7.25 4.13 7.25 6.75C7.25 9.32 9.26 11.4 11.88 11.49C11.96 11.48 12.04 11.48 12.1 11.49C12.12 11.49 12.13 11.49 12.15 11.49C12.16 11.49 12.16 11.49 12.17 11.49C14.73 11.4 16.74 9.32 16.75 6.75C16.75 4.13 14.62 2 12 2Z",fill:"currentColor"}),p.jsx("path",{d:"M17.0809 14.1489C14.2909 12.2889 9.74094 12.2889 6.93094 14.1489C5.66094 14.9989 4.96094 16.1489 4.96094 17.3789C4.96094 18.6089 5.66094 19.7489 6.92094 20.5889C8.32094 21.5289 10.1609 21.9989 12.0009 21.9989C13.8409 21.9989 15.6809 21.5289 17.0809 20.5889C18.3409 19.7389 19.0409 18.5989 19.0409 17.3589C19.0309 16.1289 18.3409 14.9889 17.0809 14.1489Z",fill:"currentColor"})]});function Us(e={}){const{strict:r=!0,errorMessage:t="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:o}=e,n=Fr.createContext(void 0);n.displayName=o;function s(){var i;const l=Fr.useContext(n);if(!l&&r){const u=new Error(t);throw u.name="ContextError",(i=Error.captureStackTrace)==null||i.call(Error,u,s),u}return l}return[n.Provider,s,n]}function Ks(e){return{UNSAFE_getDOMNode(){return e.current}}}function yt(e){const r=d.useRef(null);return d.useImperativeHandle(e,()=>r.current),r}var Ys=e=>(e==null?void 0:e.length)<=4?e:e==null?void 0:e.slice(0,3);function kn(e){var r,t,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e))for(r=0;r<e.length;r++)e[r]&&(t=kn(e[r]))&&(o&&(o+=" "),o+=t);else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function nr(...e){for(var r=0,t,o,n="";r<e.length;)(t=e[r++])&&(o=kn(t))&&(n&&(n+=" "),n+=o);return n}var Bo={};function Xs(e,r,...t){var o;const s=`[Next UI]${r?` [${r}]`:" "}: ${e}`;if(!(typeof console>"u")&&!Bo[s]&&(Bo[s]=!0,((o=process==null?void 0:process.env)==null?void 0:o.NODE_ENV)!=="production"))return console.warn(s,t)}function Sn(e){if(!e||typeof e!="object")return"";try{return JSON.stringify(e)}catch{return""}}process.env.NODE_ENV;process.env.NODE_ENV;function qs(e){return typeof e=="function"}var _e=e=>e?"true":void 0;function Zs(e){const r=Object.assign({},e);for(let t in r)r[t]===void 0&&delete r[t];return r}function Js(e,r){if(e!=null){if(qs(e)){e(r);return}try{e.current=r}catch{throw new Error(`Cannot assign value '${r}' to ref '${e}'`)}}}function Qs(...e){return r=>{e.forEach(t=>Js(t,r))}}var ei=Object.create,Tn=Object.defineProperty,ri=Object.getOwnPropertyDescriptor,Pn=Object.getOwnPropertyNames,ti=Object.getPrototypeOf,oi=Object.prototype.hasOwnProperty,Wt=(e,r)=>function(){return r||(0,e[Pn(e)[0]])((r={exports:{}}).exports,r),r.exports},ni=(e,r,t,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Pn(r))!oi.call(e,n)&&n!==t&&Tn(e,n,{get:()=>r[n],enumerable:!(o=ri(r,n))||o.enumerable});return e},ai=(e,r,t)=>(t=e!=null?ei(ti(e)):{},ni(r||!e||!e.__esModule?Tn(t,"default",{value:e,enumerable:!0}):t,e)),si=Wt({"../../../node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react.production.min.js"(e){var r=Symbol.for("react.element"),t=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),b=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),h=Symbol.iterator;function v($){return $===null||typeof $!="object"?null:($=h&&$[h]||$["@@iterator"],typeof $=="function"?$:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,k={};function T($,S,W){this.props=$,this.context=S,this.refs=k,this.updater=W||x}T.prototype.isReactComponent={},T.prototype.setState=function($,S){if(typeof $!="object"&&typeof $!="function"&&$!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,$,S,"setState")},T.prototype.forceUpdate=function($){this.updater.enqueueForceUpdate(this,$,"forceUpdate")};function M(){}M.prototype=T.prototype;function _($,S,W){this.props=$,this.context=S,this.refs=k,this.updater=W||x}var I=_.prototype=new M;I.constructor=_,E(I,T.prototype),I.isPureReactComponent=!0;var O=Array.isArray,P=Object.prototype.hasOwnProperty,F={current:null},L={key:!0,ref:!0,__self:!0,__source:!0};function N($,S,W){var Y,ee={},ne=null,se=null;if(S!=null)for(Y in S.ref!==void 0&&(se=S.ref),S.key!==void 0&&(ne=""+S.key),S)P.call(S,Y)&&!L.hasOwnProperty(Y)&&(ee[Y]=S[Y]);var ae=arguments.length-2;if(ae===1)ee.children=W;else if(1<ae){for(var ie=Array(ae),ve=0;ve<ae;ve++)ie[ve]=arguments[ve+2];ee.children=ie}if($&&$.defaultProps)for(Y in ae=$.defaultProps,ae)ee[Y]===void 0&&(ee[Y]=ae[Y]);return{$$typeof:r,type:$,key:ne,ref:se,props:ee,_owner:F.current}}function J($,S){return{$$typeof:r,type:$.type,key:S,ref:$.ref,props:$.props,_owner:$._owner}}function q($){return typeof $=="object"&&$!==null&&$.$$typeof===r}function j($){var S={"=":"=0",":":"=2"};return"$"+$.replace(/[=:]/g,function(W){return S[W]})}var H=/\/+/g;function z($,S){return typeof $=="object"&&$!==null&&$.key!=null?j(""+$.key):S.toString(36)}function V($,S,W,Y,ee){var ne=typeof $;(ne==="undefined"||ne==="boolean")&&($=null);var se=!1;if($===null)se=!0;else switch(ne){case"string":case"number":se=!0;break;case"object":switch($.$$typeof){case r:case t:se=!0}}if(se)return se=$,ee=ee(se),$=Y===""?"."+z(se,0):Y,O(ee)?(W="",$!=null&&(W=$.replace(H,"$&/")+"/"),V(ee,S,W,"",function(ve){return ve})):ee!=null&&(q(ee)&&(ee=J(ee,W+(!ee.key||se&&se.key===ee.key?"":(""+ee.key).replace(H,"$&/")+"/")+$)),S.push(ee)),1;if(se=0,Y=Y===""?".":Y+":",O($))for(var ae=0;ae<$.length;ae++){ne=$[ae];var ie=Y+z(ne,ae);se+=V(ne,S,W,ie,ee)}else if(ie=v($),typeof ie=="function")for($=ie.call($),ae=0;!(ne=$.next()).done;)ne=ne.value,ie=Y+z(ne,ae++),se+=V(ne,S,W,ie,ee);else if(ne==="object")throw S=String($),Error("Objects are not valid as a React child (found: "+(S==="[object Object]"?"object with keys {"+Object.keys($).join(", ")+"}":S)+"). If you meant to render a collection of children, use an array instead.");return se}function G($,S,W){if($==null)return $;var Y=[],ee=0;return V($,Y,"","",function(ne){return S.call(W,ne,ee++)}),Y}function A($){if($._status===-1){var S=$._result;S=S(),S.then(function(W){($._status===0||$._status===-1)&&($._status=1,$._result=W)},function(W){($._status===0||$._status===-1)&&($._status=2,$._result=W)}),$._status===-1&&($._status=0,$._result=S)}if($._status===1)return $._result.default;throw $._result}var U={current:null},Z={transition:null},Q={ReactCurrentDispatcher:U,ReactCurrentBatchConfig:Z,ReactCurrentOwner:F};e.Children={map:G,forEach:function($,S,W){G($,function(){S.apply(this,arguments)},W)},count:function($){var S=0;return G($,function(){S++}),S},toArray:function($){return G($,function(S){return S})||[]},only:function($){if(!q($))throw Error("React.Children.only expected to receive a single React element child.");return $}},e.Component=T,e.Fragment=o,e.Profiler=s,e.PureComponent=_,e.StrictMode=n,e.Suspense=g,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Q,e.cloneElement=function($,S,W){if($==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+$+".");var Y=E({},$.props),ee=$.key,ne=$.ref,se=$._owner;if(S!=null){if(S.ref!==void 0&&(ne=S.ref,se=F.current),S.key!==void 0&&(ee=""+S.key),$.type&&$.type.defaultProps)var ae=$.type.defaultProps;for(ie in S)P.call(S,ie)&&!L.hasOwnProperty(ie)&&(Y[ie]=S[ie]===void 0&&ae!==void 0?ae[ie]:S[ie])}var ie=arguments.length-2;if(ie===1)Y.children=W;else if(1<ie){ae=Array(ie);for(var ve=0;ve<ie;ve++)ae[ve]=arguments[ve+2];Y.children=ae}return{$$typeof:r,type:$.type,key:ee,ref:ne,props:Y,_owner:se}},e.createContext=function($){return $={$$typeof:l,_currentValue:$,_currentValue2:$,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},$.Provider={$$typeof:i,_context:$},$.Consumer=$},e.createElement=N,e.createFactory=function($){var S=N.bind(null,$);return S.type=$,S},e.createRef=function(){return{current:null}},e.forwardRef=function($){return{$$typeof:u,render:$}},e.isValidElement=q,e.lazy=function($){return{$$typeof:y,_payload:{_status:-1,_result:$},_init:A}},e.memo=function($,S){return{$$typeof:b,type:$,compare:S===void 0?null:S}},e.startTransition=function($){var S=Z.transition;Z.transition={};try{$()}finally{Z.transition=S}},e.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},e.useCallback=function($,S){return U.current.useCallback($,S)},e.useContext=function($){return U.current.useContext($)},e.useDebugValue=function(){},e.useDeferredValue=function($){return U.current.useDeferredValue($)},e.useEffect=function($,S){return U.current.useEffect($,S)},e.useId=function(){return U.current.useId()},e.useImperativeHandle=function($,S,W){return U.current.useImperativeHandle($,S,W)},e.useInsertionEffect=function($,S){return U.current.useInsertionEffect($,S)},e.useLayoutEffect=function($,S){return U.current.useLayoutEffect($,S)},e.useMemo=function($,S){return U.current.useMemo($,S)},e.useReducer=function($,S,W){return U.current.useReducer($,S,W)},e.useRef=function($){return U.current.useRef($)},e.useState=function($){return U.current.useState($)},e.useSyncExternalStore=function($,S,W){return U.current.useSyncExternalStore($,S,W)},e.useTransition=function(){return U.current.useTransition()},e.version="18.2.0"}}),ii=Wt({"../../../node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react.development.js"(e,r){process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var t="18.2.0",o=Symbol.for("react.element"),n=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),g=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),E=Symbol.for("react.offscreen"),k=Symbol.iterator,T="@@iterator";function M(a){if(a===null||typeof a!="object")return null;var f=k&&a[k]||a[T];return typeof f=="function"?f:null}var _={current:null},I={transition:null},O={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},P={current:null},F={},L=null;function N(a){L=a}F.setExtraStackFrame=function(a){L=a},F.getCurrentStack=null,F.getStackAddendum=function(){var a="";L&&(a+=L);var f=F.getCurrentStack;return f&&(a+=f()||""),a};var J=!1,q=!1,j=!1,H=!1,z=!1,V={ReactCurrentDispatcher:_,ReactCurrentBatchConfig:I,ReactCurrentOwner:P};V.ReactDebugCurrentFrame=F,V.ReactCurrentActQueue=O;function G(a){{for(var f=arguments.length,w=new Array(f>1?f-1:0),C=1;C<f;C++)w[C-1]=arguments[C];U("warn",a,w)}}function A(a){{for(var f=arguments.length,w=new Array(f>1?f-1:0),C=1;C<f;C++)w[C-1]=arguments[C];U("error",a,w)}}function U(a,f,w){{var C=V.ReactDebugCurrentFrame,R=C.getStackAddendum();R!==""&&(f+="%s",w=w.concat([R]));var K=w.map(function(B){return String(B)});K.unshift("Warning: "+f),Function.prototype.apply.call(console[a],console,K)}}var Z={};function Q(a,f){{var w=a.constructor,C=w&&(w.displayName||w.name)||"ReactClass",R=C+"."+f;if(Z[R])return;A("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",f,C),Z[R]=!0}}var $={isMounted:function(a){return!1},enqueueForceUpdate:function(a,f,w){Q(a,"forceUpdate")},enqueueReplaceState:function(a,f,w,C){Q(a,"replaceState")},enqueueSetState:function(a,f,w,C){Q(a,"setState")}},S=Object.assign,W={};Object.freeze(W);function Y(a,f,w){this.props=a,this.context=f,this.refs=W,this.updater=w||$}Y.prototype.isReactComponent={},Y.prototype.setState=function(a,f){if(typeof a!="object"&&typeof a!="function"&&a!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,a,f,"setState")},Y.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};{var ee={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},ne=function(a,f){Object.defineProperty(Y.prototype,a,{get:function(){G("%s(...) is deprecated in plain JavaScript React classes. %s",f[0],f[1])}})};for(var se in ee)ee.hasOwnProperty(se)&&ne(se,ee[se])}function ae(){}ae.prototype=Y.prototype;function ie(a,f,w){this.props=a,this.context=f,this.refs=W,this.updater=w||$}var ve=ie.prototype=new ae;ve.constructor=ie,S(ve,Y.prototype),ve.isPureReactComponent=!0;function Te(){var a={current:null};return Object.seal(a),a}var Ie=Array.isArray;function Ae(a){return Ie(a)}function wr(a){{var f=typeof Symbol=="function"&&Symbol.toStringTag,w=f&&a[Symbol.toStringTag]||a.constructor.name||"Object";return w}}function Fa(a){try{return ao(a),!1}catch{return!0}}function ao(a){return""+a}function mr(a){if(Fa(a))return A("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",wr(a)),ao(a)}function za(a,f,w){var C=a.displayName;if(C)return C;var R=f.displayName||f.name||"";return R!==""?w+"("+R+")":w}function so(a){return a.displayName||"Context"}function ze(a){if(a==null)return null;if(typeof a.tag=="number"&&A("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case s:return"Fragment";case n:return"Portal";case l:return"Profiler";case i:return"StrictMode";case y:return"Suspense";case h:return"SuspenseList"}if(typeof a=="object")switch(a.$$typeof){case g:var f=a;return so(f)+".Consumer";case u:var w=a;return so(w._context)+".Provider";case b:return za(a,a.render,"ForwardRef");case v:var C=a.displayName||null;return C!==null?C:ze(a.type)||"Memo";case x:{var R=a,K=R._payload,B=R._init;try{return ze(B(K))}catch{return null}}}return null}var ir=Object.prototype.hasOwnProperty,io={key:!0,ref:!0,__self:!0,__source:!0},lo,co,Jr;Jr={};function uo(a){if(ir.call(a,"ref")){var f=Object.getOwnPropertyDescriptor(a,"ref").get;if(f&&f.isReactWarning)return!1}return a.ref!==void 0}function fo(a){if(ir.call(a,"key")){var f=Object.getOwnPropertyDescriptor(a,"key").get;if(f&&f.isReactWarning)return!1}return a.key!==void 0}function Va(a,f){var w=function(){lo||(lo=!0,A("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",f))};w.isReactWarning=!0,Object.defineProperty(a,"key",{get:w,configurable:!0})}function Ba(a,f){var w=function(){co||(co=!0,A("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",f))};w.isReactWarning=!0,Object.defineProperty(a,"ref",{get:w,configurable:!0})}function Ha(a){if(typeof a.ref=="string"&&P.current&&a.__self&&P.current.stateNode!==a.__self){var f=ze(P.current.type);Jr[f]||(A('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',f,a.ref),Jr[f]=!0)}}var Qr=function(a,f,w,C,R,K,B){var X={$$typeof:o,type:a,key:f,ref:w,props:B,_owner:K};return X._store={},Object.defineProperty(X._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(X,"_self",{configurable:!1,enumerable:!1,writable:!1,value:C}),Object.defineProperty(X,"_source",{configurable:!1,enumerable:!1,writable:!1,value:R}),Object.freeze&&(Object.freeze(X.props),Object.freeze(X)),X};function Ga(a,f,w){var C,R={},K=null,B=null,X=null,oe=null;if(f!=null){uo(f)&&(B=f.ref,Ha(f)),fo(f)&&(mr(f.key),K=""+f.key),X=f.__self===void 0?null:f.__self,oe=f.__source===void 0?null:f.__source;for(C in f)ir.call(f,C)&&!io.hasOwnProperty(C)&&(R[C]=f[C])}var le=arguments.length-2;if(le===1)R.children=w;else if(le>1){for(var de=Array(le),ue=0;ue<le;ue++)de[ue]=arguments[ue+2];Object.freeze&&Object.freeze(de),R.children=de}if(a&&a.defaultProps){var fe=a.defaultProps;for(C in fe)R[C]===void 0&&(R[C]=fe[C])}if(K||B){var ge=typeof a=="function"?a.displayName||a.name||"Unknown":a;K&&Va(R,ge),B&&Ba(R,ge)}return Qr(a,K,B,X,oe,P.current,R)}function Wa(a,f){var w=Qr(a.type,f,a.ref,a._self,a._source,a._owner,a.props);return w}function Ua(a,f,w){if(a==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+a+".");var C,R=S({},a.props),K=a.key,B=a.ref,X=a._self,oe=a._source,le=a._owner;if(f!=null){uo(f)&&(B=f.ref,le=P.current),fo(f)&&(mr(f.key),K=""+f.key);var de;a.type&&a.type.defaultProps&&(de=a.type.defaultProps);for(C in f)ir.call(f,C)&&!io.hasOwnProperty(C)&&(f[C]===void 0&&de!==void 0?R[C]=de[C]:R[C]=f[C])}var ue=arguments.length-2;if(ue===1)R.children=w;else if(ue>1){for(var fe=Array(ue),ge=0;ge<ue;ge++)fe[ge]=arguments[ge+2];R.children=fe}return Qr(a.type,K,B,X,oe,le,R)}function Ze(a){return typeof a=="object"&&a!==null&&a.$$typeof===o}var po=".",Ka=":";function Ya(a){var f=/[=:]/g,w={"=":"=0",":":"=2"},C=a.replace(f,function(R){return w[R]});return"$"+C}var bo=!1,Xa=/\/+/g;function go(a){return a.replace(Xa,"$&/")}function et(a,f){return typeof a=="object"&&a!==null&&a.key!=null?(mr(a.key),Ya(""+a.key)):f.toString(36)}function hr(a,f,w,C,R){var K=typeof a;(K==="undefined"||K==="boolean")&&(a=null);var B=!1;if(a===null)B=!0;else switch(K){case"string":case"number":B=!0;break;case"object":switch(a.$$typeof){case o:case n:B=!0}}if(B){var X=a,oe=R(X),le=C===""?po+et(X,0):C;if(Ae(oe)){var de="";le!=null&&(de=go(le)+"/"),hr(oe,f,de,"",function(Bs){return Bs})}else oe!=null&&(Ze(oe)&&(oe.key&&(!X||X.key!==oe.key)&&mr(oe.key),oe=Wa(oe,w+(oe.key&&(!X||X.key!==oe.key)?go(""+oe.key)+"/":"")+le)),f.push(oe));return 1}var ue,fe,ge=0,$e=C===""?po:C+Ka;if(Ae(a))for(var Or=0;Or<a.length;Or++)ue=a[Or],fe=$e+et(ue,Or),ge+=hr(ue,f,w,fe,R);else{var ct=M(a);if(typeof ct=="function"){var Fo=a;ct===Fo.entries&&(bo||G("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),bo=!0);for(var zs=ct.call(Fo),zo,Vs=0;!(zo=zs.next()).done;)ue=zo.value,fe=$e+et(ue,Vs++),ge+=hr(ue,f,w,fe,R)}else if(K==="object"){var Vo=String(a);throw new Error("Objects are not valid as a React child (found: "+(Vo==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":Vo)+"). If you meant to render a collection of children, use an array instead.")}}return ge}function Cr(a,f,w){if(a==null)return a;var C=[],R=0;return hr(a,C,"","",function(K){return f.call(w,K,R++)}),C}function qa(a){var f=0;return Cr(a,function(){f++}),f}function Za(a,f,w){Cr(a,function(){f.apply(this,arguments)},w)}function Ja(a){return Cr(a,function(f){return f})||[]}function Qa(a){if(!Ze(a))throw new Error("React.Children.only expected to receive a single React element child.");return a}function es(a){var f={$$typeof:g,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};f.Provider={$$typeof:u,_context:f};var w=!1,C=!1,R=!1;{var K={$$typeof:g,_context:f};Object.defineProperties(K,{Provider:{get:function(){return C||(C=!0,A("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),f.Provider},set:function(B){f.Provider=B}},_currentValue:{get:function(){return f._currentValue},set:function(B){f._currentValue=B}},_currentValue2:{get:function(){return f._currentValue2},set:function(B){f._currentValue2=B}},_threadCount:{get:function(){return f._threadCount},set:function(B){f._threadCount=B}},Consumer:{get:function(){return w||(w=!0,A("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),f.Consumer}},displayName:{get:function(){return f.displayName},set:function(B){R||(G("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",B),R=!0)}}}),f.Consumer=K}return f._currentRenderer=null,f._currentRenderer2=null,f}var lr=-1,rt=0,vo=1,rs=2;function ts(a){if(a._status===lr){var f=a._result,w=f();if(w.then(function(K){if(a._status===rt||a._status===lr){var B=a;B._status=vo,B._result=K}},function(K){if(a._status===rt||a._status===lr){var B=a;B._status=rs,B._result=K}}),a._status===lr){var C=a;C._status=rt,C._result=w}}if(a._status===vo){var R=a._result;return R===void 0&&A(`lazy: Expected the result of a dynamic import() call. Instead received: %s
2
2
 
3
3
  Your code should look like:
4
4
  const MyComponent = lazy(() => import('./MyComponent'))
@@ -14,13 +14,13 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
14
14
  `+ot+a}}var nt=!1,kr;{var Cs=typeof WeakMap=="function"?WeakMap:Map;kr=new Cs}function To(a,f){if(!a||nt)return"";{var w=kr.get(a);if(w!==void 0)return w}var C;nt=!0;var R=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var K;K=tt.current,tt.current=null,ms();try{if(f){var B=function(){throw Error()};if(Object.defineProperty(B.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(B,[])}catch($e){C=$e}Reflect.construct(a,[],B)}else{try{B.call()}catch($e){C=$e}a.call(B.prototype)}}else{try{throw Error()}catch($e){C=$e}a()}}catch($e){if($e&&C&&typeof $e.stack=="string"){for(var X=$e.stack.split(`
15
15
  `),oe=C.stack.split(`
16
16
  `),le=X.length-1,de=oe.length-1;le>=1&&de>=0&&X[le]!==oe[de];)de--;for(;le>=1&&de>=0;le--,de--)if(X[le]!==oe[de]){if(le!==1||de!==1)do if(le--,de--,de<0||X[le]!==oe[de]){var ue=`
17
- `+X[le].replace(" at new "," at ");return a.displayName&&ue.includes("<anonymous>")&&(ue=ue.replace("<anonymous>",a.displayName)),typeof a=="function"&&kr.set(a,ue),ue}while(le>=1&&de>=0);break}}}finally{nt=!1,tt.current=K,hs(),Error.prepareStackTrace=R}var fe=a?a.displayName||a.name:"",ge=fe?Er(fe):"";return typeof a=="function"&&kr.set(a,ge),ge}function Es(a,f,w){return To(a,!1)}function ks(a){var f=a.prototype;return!!(f&&f.isReactComponent)}function Sr(a,f,w){if(a==null)return"";if(typeof a=="function")return To(a,ks(a));if(typeof a=="string")return Er(a);switch(a){case y:return Er("Suspense");case h:return Er("SuspenseList")}if(typeof a=="object")switch(a.$$typeof){case b:return Es(a.render);case v:return Sr(a.type,f,w);case x:{var C=a,R=C._payload,K=C._init;try{return Sr(K(R),f,w)}catch{}}}return""}var Po={},Ro=V.ReactDebugCurrentFrame;function Tr(a){if(a){var f=a._owner,w=Sr(a.type,a._source,f?f.type:null);Ro.setExtraStackFrame(w)}else Ro.setExtraStackFrame(null)}function Ss(a,f,w,C,R){{var K=Function.call.bind(ir);for(var B in a)if(K(a,B)){var X=void 0;try{if(typeof a[B]!="function"){var oe=Error((C||"React class")+": "+w+" type `"+B+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[B]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw oe.name="Invariant Violation",oe}X=a[B](f,B,C,w,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(le){X=le}X&&!(X instanceof Error)&&(Tr(R),A("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",C||"React class",w,B,typeof X),Tr(null)),X instanceof Error&&!(X.message in Po)&&(Po[X.message]=!0,Tr(R),A("Failed %s type: %s",w,X.message),Tr(null))}}}function Ze(a){if(a){var f=a._owner,w=Sr(a.type,a._source,f?f.type:null);N(w)}else N(null)}var at;at=!1;function Oo(){if(P.current){var a=ze(P.current.type);if(a)return`
17
+ `+X[le].replace(" at new "," at ");return a.displayName&&ue.includes("<anonymous>")&&(ue=ue.replace("<anonymous>",a.displayName)),typeof a=="function"&&kr.set(a,ue),ue}while(le>=1&&de>=0);break}}}finally{nt=!1,tt.current=K,hs(),Error.prepareStackTrace=R}var fe=a?a.displayName||a.name:"",ge=fe?Er(fe):"";return typeof a=="function"&&kr.set(a,ge),ge}function Es(a,f,w){return To(a,!1)}function ks(a){var f=a.prototype;return!!(f&&f.isReactComponent)}function Sr(a,f,w){if(a==null)return"";if(typeof a=="function")return To(a,ks(a));if(typeof a=="string")return Er(a);switch(a){case y:return Er("Suspense");case h:return Er("SuspenseList")}if(typeof a=="object")switch(a.$$typeof){case b:return Es(a.render);case v:return Sr(a.type,f,w);case x:{var C=a,R=C._payload,K=C._init;try{return Sr(K(R),f,w)}catch{}}}return""}var Po={},Ro=V.ReactDebugCurrentFrame;function Tr(a){if(a){var f=a._owner,w=Sr(a.type,a._source,f?f.type:null);Ro.setExtraStackFrame(w)}else Ro.setExtraStackFrame(null)}function Ss(a,f,w,C,R){{var K=Function.call.bind(ir);for(var B in a)if(K(a,B)){var X=void 0;try{if(typeof a[B]!="function"){var oe=Error((C||"React class")+": "+w+" type `"+B+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[B]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw oe.name="Invariant Violation",oe}X=a[B](f,B,C,w,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(le){X=le}X&&!(X instanceof Error)&&(Tr(R),A("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",C||"React class",w,B,typeof X),Tr(null)),X instanceof Error&&!(X.message in Po)&&(Po[X.message]=!0,Tr(R),A("Failed %s type: %s",w,X.message),Tr(null))}}}function Je(a){if(a){var f=a._owner,w=Sr(a.type,a._source,f?f.type:null);N(w)}else N(null)}var at;at=!1;function Oo(){if(P.current){var a=ze(P.current.type);if(a)return`
18
18
 
19
19
  Check the render method of \``+a+"`."}return""}function Ts(a){if(a!==void 0){var f=a.fileName.replace(/^.*[\\\/]/,""),w=a.lineNumber;return`
20
20
 
21
21
  Check your code at `+f+":"+w+"."}return""}function Ps(a){return a!=null?Ts(a.__source):""}var jo={};function Rs(a){var f=Oo();if(!f){var w=typeof a=="string"?a:a.displayName||a.name;w&&(f=`
22
22
 
23
- Check the top-level render call using <`+w+">.")}return f}function Mo(a,f){if(!(!a._store||a._store.validated||a.key!=null)){a._store.validated=!0;var w=Rs(f);if(!jo[w]){jo[w]=!0;var C="";a&&a._owner&&a._owner!==P.current&&(C=" It was passed a child from "+ze(a._owner.type)+"."),Ze(a),A('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',w,C),Ze(null)}}}function _o(a,f){if(typeof a=="object"){if(Ae(a))for(var w=0;w<a.length;w++){var C=a[w];qe(C)&&Mo(C,f)}else if(qe(a))a._store&&(a._store.validated=!0);else if(a){var R=M(a);if(typeof R=="function"&&R!==a.entries)for(var K=R.call(a),B;!(B=K.next()).done;)qe(B.value)&&Mo(B.value,f)}}}function Io(a){{var f=a.type;if(f==null||typeof f=="string")return;var w;if(typeof f=="function")w=f.propTypes;else if(typeof f=="object"&&(f.$$typeof===b||f.$$typeof===v))w=f.propTypes;else return;if(w){var C=ze(f);Ss(w,a.props,"prop",C,a)}else if(f.PropTypes!==void 0&&!at){at=!0;var R=ze(f);A("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",R||"Unknown")}typeof f.getDefaultProps=="function"&&!f.getDefaultProps.isReactClassApproved&&A("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Os(a){{for(var f=Object.keys(a.props),w=0;w<f.length;w++){var C=f[w];if(C!=="children"&&C!=="key"){Ze(a),A("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",C),Ze(null);break}}a.ref!==null&&(Ze(a),A("Invalid attribute `ref` supplied to `React.Fragment`."),Ze(null))}}function Ao(a,f,w){var C=$o(a);if(!C){var R="";(a===void 0||typeof a=="object"&&a!==null&&Object.keys(a).length===0)&&(R+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var K=Ps(f);K?R+=K:R+=Oo();var B;a===null?B="null":Ae(a)?B="array":a!==void 0&&a.$$typeof===o?(B="<"+(ze(a.type)||"Unknown")+" />",R=" Did you accidentally export a JSX literal instead of a component?"):B=typeof a,A("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",B,R)}var X=Ga.apply(this,arguments);if(X==null)return X;if(C)for(var oe=2;oe<arguments.length;oe++)_o(arguments[oe],a);return a===s?Os(X):Io(X),X}var Lo=!1;function js(a){var f=Ao.bind(null,a);return f.type=a,Lo||(Lo=!0,G("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(f,"type",{enumerable:!1,get:function(){return G("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:a}),a}}),f}function Ms(a,f,w){for(var C=Ua.apply(this,arguments),R=2;R<arguments.length;R++)_o(arguments[R],C.type);return Io(C),C}function _s(a,f){var w=I.transition;I.transition={};var C=I.transition;I.transition._updatedFibers=new Set;try{a()}finally{if(I.transition=w,w===null&&C._updatedFibers){var R=C._updatedFibers.size;R>10&&G("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),C._updatedFibers.clear()}}}var No=!1,Pr=null;function Is(a){if(Pr===null)try{var f=("require"+Math.random()).slice(0,7),w=r&&r[f];Pr=w.call(r,"timers").setImmediate}catch{Pr=function(R){No===!1&&(No=!0,typeof MessageChannel>"u"&&A("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var K=new MessageChannel;K.port1.onmessage=R,K.port2.postMessage(void 0)}}return Pr(a)}var Je=0,Do=!1;function As(a){{var f=Je;Je++,O.current===null&&(O.current=[]);var w=O.isBatchingLegacy,C;try{if(O.isBatchingLegacy=!0,C=a(),!w&&O.didScheduleLegacyUpdate){var R=O.current;R!==null&&(O.didScheduleLegacyUpdate=!1,lt(R))}}catch(fe){throw Rr(f),fe}finally{O.isBatchingLegacy=w}if(C!==null&&typeof C=="object"&&typeof C.then=="function"){var K=C,B=!1,X={then:function(fe,ge){B=!0,K.then(function($e){Rr(f),Je===0?st($e,fe,ge):fe($e)},function($e){Rr(f),ge($e)})}};return!Do&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){B||(Do=!0,A("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),X}else{var oe=C;if(Rr(f),Je===0){var le=O.current;le!==null&&(lt(le),O.current=null);var de={then:function(fe,ge){O.current===null?(O.current=[],st(oe,fe,ge)):fe(oe)}};return de}else{var ue={then:function(fe,ge){fe(oe)}};return ue}}}}function Rr(a){a!==Je-1&&A("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),Je=a}function st(a,f,w){{var C=O.current;if(C!==null)try{lt(C),Is(function(){C.length===0?(O.current=null,f(a)):st(a,f,w)})}catch(R){w(R)}else f(a)}}var it=!1;function lt(a){if(!it){it=!0;var f=0;try{for(;f<a.length;f++){var w=a[f];do w=w(!0);while(w!==null)}a.length=0}catch(C){throw a=a.slice(f+1),C}finally{it=!1}}}var Ls=Ao,Ns=Ms,Ds=js,Fs={map:Cr,forEach:Za,count:qa,toArray:Ja,only:Qa};e.Children=Fs,e.Component=Y,e.Fragment=s,e.Profiler=l,e.PureComponent=ie,e.StrictMode=i,e.Suspense=y,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=V,e.cloneElement=Ns,e.createContext=es,e.createElement=Ls,e.createFactory=Ds,e.createRef=Te,e.forwardRef=ns,e.isValidElement=qe,e.lazy=os,e.memo=as,e.startTransition=_s,e.unstable_act=As,e.useCallback=ps,e.useContext=ss,e.useDebugValue=vs,e.useDeferredValue=$s,e.useEffect=ds,e.useId=xs,e.useImperativeHandle=gs,e.useInsertionEffect=us,e.useLayoutEffect=fs,e.useMemo=bs,e.useReducer=ls,e.useRef=cs,e.useState=is,e.useSyncExternalStore=ws,e.useTransition=ys,e.version=t,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}}),li=Wt({"../../../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"(e,r){process.env.NODE_ENV==="production"?r.exports=si():r.exports=ii()}});/**
23
+ Check the top-level render call using <`+w+">.")}return f}function Mo(a,f){if(!(!a._store||a._store.validated||a.key!=null)){a._store.validated=!0;var w=Rs(f);if(!jo[w]){jo[w]=!0;var C="";a&&a._owner&&a._owner!==P.current&&(C=" It was passed a child from "+ze(a._owner.type)+"."),Je(a),A('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',w,C),Je(null)}}}function _o(a,f){if(typeof a=="object"){if(Ae(a))for(var w=0;w<a.length;w++){var C=a[w];Ze(C)&&Mo(C,f)}else if(Ze(a))a._store&&(a._store.validated=!0);else if(a){var R=M(a);if(typeof R=="function"&&R!==a.entries)for(var K=R.call(a),B;!(B=K.next()).done;)Ze(B.value)&&Mo(B.value,f)}}}function Io(a){{var f=a.type;if(f==null||typeof f=="string")return;var w;if(typeof f=="function")w=f.propTypes;else if(typeof f=="object"&&(f.$$typeof===b||f.$$typeof===v))w=f.propTypes;else return;if(w){var C=ze(f);Ss(w,a.props,"prop",C,a)}else if(f.PropTypes!==void 0&&!at){at=!0;var R=ze(f);A("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",R||"Unknown")}typeof f.getDefaultProps=="function"&&!f.getDefaultProps.isReactClassApproved&&A("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Os(a){{for(var f=Object.keys(a.props),w=0;w<f.length;w++){var C=f[w];if(C!=="children"&&C!=="key"){Je(a),A("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",C),Je(null);break}}a.ref!==null&&(Je(a),A("Invalid attribute `ref` supplied to `React.Fragment`."),Je(null))}}function Ao(a,f,w){var C=$o(a);if(!C){var R="";(a===void 0||typeof a=="object"&&a!==null&&Object.keys(a).length===0)&&(R+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var K=Ps(f);K?R+=K:R+=Oo();var B;a===null?B="null":Ae(a)?B="array":a!==void 0&&a.$$typeof===o?(B="<"+(ze(a.type)||"Unknown")+" />",R=" Did you accidentally export a JSX literal instead of a component?"):B=typeof a,A("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",B,R)}var X=Ga.apply(this,arguments);if(X==null)return X;if(C)for(var oe=2;oe<arguments.length;oe++)_o(arguments[oe],a);return a===s?Os(X):Io(X),X}var Lo=!1;function js(a){var f=Ao.bind(null,a);return f.type=a,Lo||(Lo=!0,G("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(f,"type",{enumerable:!1,get:function(){return G("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:a}),a}}),f}function Ms(a,f,w){for(var C=Ua.apply(this,arguments),R=2;R<arguments.length;R++)_o(arguments[R],C.type);return Io(C),C}function _s(a,f){var w=I.transition;I.transition={};var C=I.transition;I.transition._updatedFibers=new Set;try{a()}finally{if(I.transition=w,w===null&&C._updatedFibers){var R=C._updatedFibers.size;R>10&&G("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),C._updatedFibers.clear()}}}var No=!1,Pr=null;function Is(a){if(Pr===null)try{var f=("require"+Math.random()).slice(0,7),w=r&&r[f];Pr=w.call(r,"timers").setImmediate}catch{Pr=function(R){No===!1&&(No=!0,typeof MessageChannel>"u"&&A("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var K=new MessageChannel;K.port1.onmessage=R,K.port2.postMessage(void 0)}}return Pr(a)}var Qe=0,Do=!1;function As(a){{var f=Qe;Qe++,O.current===null&&(O.current=[]);var w=O.isBatchingLegacy,C;try{if(O.isBatchingLegacy=!0,C=a(),!w&&O.didScheduleLegacyUpdate){var R=O.current;R!==null&&(O.didScheduleLegacyUpdate=!1,lt(R))}}catch(fe){throw Rr(f),fe}finally{O.isBatchingLegacy=w}if(C!==null&&typeof C=="object"&&typeof C.then=="function"){var K=C,B=!1,X={then:function(fe,ge){B=!0,K.then(function($e){Rr(f),Qe===0?st($e,fe,ge):fe($e)},function($e){Rr(f),ge($e)})}};return!Do&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){B||(Do=!0,A("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),X}else{var oe=C;if(Rr(f),Qe===0){var le=O.current;le!==null&&(lt(le),O.current=null);var de={then:function(fe,ge){O.current===null?(O.current=[],st(oe,fe,ge)):fe(oe)}};return de}else{var ue={then:function(fe,ge){fe(oe)}};return ue}}}}function Rr(a){a!==Qe-1&&A("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),Qe=a}function st(a,f,w){{var C=O.current;if(C!==null)try{lt(C),Is(function(){C.length===0?(O.current=null,f(a)):st(a,f,w)})}catch(R){w(R)}else f(a)}}var it=!1;function lt(a){if(!it){it=!0;var f=0;try{for(;f<a.length;f++){var w=a[f];do w=w(!0);while(w!==null)}a.length=0}catch(C){throw a=a.slice(f+1),C}finally{it=!1}}}var Ls=Ao,Ns=Ms,Ds=js,Fs={map:Cr,forEach:Za,count:qa,toArray:Ja,only:Qa};e.Children=Fs,e.Component=Y,e.Fragment=s,e.Profiler=l,e.PureComponent=ie,e.StrictMode=i,e.Suspense=y,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=V,e.cloneElement=Ns,e.createContext=es,e.createElement=Ls,e.createFactory=Ds,e.createRef=Te,e.forwardRef=ns,e.isValidElement=Ze,e.lazy=os,e.memo=as,e.startTransition=_s,e.unstable_act=As,e.useCallback=ps,e.useContext=ss,e.useDebugValue=vs,e.useDeferredValue=$s,e.useEffect=ds,e.useId=xs,e.useImperativeHandle=gs,e.useInsertionEffect=us,e.useLayoutEffect=fs,e.useMemo=bs,e.useReducer=ls,e.useRef=cs,e.useState=is,e.useSyncExternalStore=ws,e.useTransition=ys,e.version=t,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}}),li=Wt({"../../../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"(e,r){process.env.NODE_ENV==="production"?r.exports=si():r.exports=ii()}});/**
24
24
  * @license React
25
25
  * react.development.js
26
26
  *
@@ -36,7 +36,7 @@ Check the top-level render call using <`+w+">.")}return f}function Mo(a,f){if(!(
36
36
  *
37
37
  * This source code is licensed under the MIT license found in the
38
38
  * LICENSE file in the root directory of this source tree.
39
- */var Ho=ai(li());function ci(e){return Ho.Children.toArray(e).filter(r=>(0,Ho.isValidElement)(r))}var[di,Rn]=Us({name:"AvatarGroupContext",strict:!1}),ui={default:"bg-default text-default-foreground",primary:"bg-primary text-primary-foreground",secondary:"bg-secondary text-secondary-foreground",success:"bg-success text-success-foreground",warning:"bg-warning text-warning-foreground",danger:"bg-danger text-danger-foreground",foreground:"bg-foreground text-background"},fi={default:"shadow-lg shadow-default/50 bg-default text-default-foreground",primary:"shadow-lg shadow-primary/40 bg-primary text-primary-foreground",secondary:"shadow-lg shadow-secondary/40 bg-secondary text-secondary-foreground",success:"shadow-lg shadow-success/40 bg-success text-success-foreground",warning:"shadow-lg shadow-warning/40 bg-warning text-warning-foreground",danger:"shadow-lg shadow-danger/40 bg-danger text-danger-foreground",foreground:"shadow-lg shadow-foreground/40 bg-foreground text-background"},pi={default:"bg-transparent border-default text-foreground",primary:"bg-transparent border-primary text-primary",secondary:"bg-transparent border-secondary text-secondary",success:"bg-transparent border-success text-success",warning:"bg-transparent border-warning text-warning",danger:"bg-transparent border-danger text-danger",foreground:"bg-transparent border-foreground text-foreground"},bi={default:"bg-default/40 text-default-foreground",primary:"bg-primary/20 text-primary",secondary:"bg-secondary/20 text-secondary",success:"bg-success/20 text-success-600 dark:text-success",warning:"bg-warning/20 text-warning-600 dark:text-warning",danger:"bg-danger/20 text-danger dark:text-danger-500",foreground:"bg-foreground/10 text-foreground"},gi={default:"border-default bg-default-100 text-default-foreground",primary:"border-default bg-default-100 text-primary",secondary:"border-default bg-default-100 text-secondary",success:"border-default bg-default-100 text-success",warning:"border-default bg-default-100 text-warning",danger:"border-default bg-default-100 text-danger",foreground:"border-default bg-default-100 text-foreground"},vi={default:"bg-transparent text-default-foreground",primary:"bg-transparent text-primary",secondary:"bg-transparent text-secondary",success:"bg-transparent text-success",warning:"bg-transparent text-warning",danger:"bg-transparent text-danger",foreground:"bg-transparent text-foreground"},yi={default:"border-default text-default-foreground hover:!bg-default",primary:"border-primary text-primary hover:!text-primary-foreground hover:!bg-primary",secondary:"border-secondary text-secondary hover:text-secondary-foreground hover:!bg-secondary",success:"border-success text-success hover:!text-success-foreground hover:!bg-success",warning:"border-warning text-warning hover:!text-warning-foreground hover:!bg-warning",danger:"border-danger text-danger hover:!text-danger-foreground hover:!bg-danger",foreground:"border-foreground text-foreground hover:!bg-foreground"},te={solid:ui,shadow:fi,bordered:pi,flat:bi,faded:gi,light:vi,ghost:yi},Go=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,me=e=>!e||typeof e!="object"||Object.keys(e).length===0,$i=(e,r)=>JSON.stringify(e)===JSON.stringify(r);function On(e,r){e.forEach(function(t){Array.isArray(t)?On(t,r):r.push(t)})}function jn(e){let r=[];return On(e,r),r}var Mn=(...e)=>jn(e).filter(Boolean),_n=(e,r)=>{let t={},o=Object.keys(e),n=Object.keys(r);for(let s of o)if(n.includes(s)){let i=e[s],l=r[s];typeof i=="object"&&typeof l=="object"?t[s]=_n(i,l):Array.isArray(i)||Array.isArray(l)?t[s]=Mn(l,i):t[s]=l+" "+i}else t[s]=e[s];for(let s of n)o.includes(s)||(t[s]=r[s]);return t},Wo=e=>!e||typeof e!="string"?e:e.replace(/\s+/g," ").trim();function xi(){for(var e=0,r,t,o="";e<arguments.length;)(r=arguments[e++])&&(t=In(r))&&(o&&(o+=" "),o+=t);return o}function In(e){if(typeof e=="string")return e;for(var r,t="",o=0;o<e.length;o++)e[o]&&(r=In(e[o]))&&(t&&(t+=" "),t+=r);return t}var Ut="-";function wi(e){var r=hi(e),t=e.conflictingClassGroups,o=e.conflictingClassGroupModifiers,n=o===void 0?{}:o;function s(l){var u=l.split(Ut);return u[0]===""&&u.length!==1&&u.shift(),An(u,r)||mi(l)}function i(l,u){var g=t[l]||[];return u&&n[l]?[].concat(g,n[l]):g}return{getClassGroupId:s,getConflictingClassGroupIds:i}}function An(e,r){var i;if(e.length===0)return r.classGroupId;var t=e[0],o=r.nextPart.get(t),n=o?An(e.slice(1),o):void 0;if(n)return n;if(r.validators.length!==0){var s=e.join(Ut);return(i=r.validators.find(function(l){var u=l.validator;return u(s)}))==null?void 0:i.classGroupId}}var Uo=/^\[(.+)\]$/;function mi(e){if(Uo.test(e)){var r=Uo.exec(e)[1],t=r==null?void 0:r.substring(0,r.indexOf(":"));if(t)return"arbitrary.."+t}}function hi(e){var r=e.theme,t=e.prefix,o={nextPart:new Map,validators:[]},n=Ei(Object.entries(e.classGroups),t);return n.forEach(function(s){var i=s[0],l=s[1];$t(l,o,i,r)}),o}function $t(e,r,t,o){e.forEach(function(n){if(typeof n=="string"){var s=n===""?r:Ko(r,n);s.classGroupId=t;return}if(typeof n=="function"){if(Ci(n)){$t(n(o),r,t,o);return}r.validators.push({validator:n,classGroupId:t});return}Object.entries(n).forEach(function(i){var l=i[0],u=i[1];$t(u,Ko(r,l),t,o)})})}function Ko(e,r){var t=e;return r.split(Ut).forEach(function(o){t.nextPart.has(o)||t.nextPart.set(o,{nextPart:new Map,validators:[]}),t=t.nextPart.get(o)}),t}function Ci(e){return e.isThemeGetter}function Ei(e,r){return r?e.map(function(t){var o=t[0],n=t[1],s=n.map(function(i){return typeof i=="string"?r+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(function(l){var u=l[0],g=l[1];return[r+u,g]})):i});return[o,s]}):e}function ki(e){if(e<1)return{get:function(){},set:function(){}};var r=0,t=new Map,o=new Map;function n(s,i){t.set(s,i),r++,r>e&&(r=0,o=t,t=new Map)}return{get:function(i){var l=t.get(i);if(l!==void 0)return l;if((l=o.get(i))!==void 0)return n(i,l),l},set:function(i,l){t.has(i)?t.set(i,l):n(i,l)}}}var Ln="!";function Si(e){var r=e.separator||":",t=r.length===1,o=r[0],n=r.length;return function(i){for(var l=[],u=0,g=0,b,y=0;y<i.length;y++){var h=i[y];if(u===0){if(h===o&&(t||i.slice(y,y+n)===r)){l.push(i.slice(g,y)),g=y+n;continue}if(h==="/"){b=y;continue}}h==="["?u++:h==="]"&&u--}var v=l.length===0?i:i.substring(g),x=v.startsWith(Ln),E=x?v.substring(1):v,k=b&&b>g?b-g:void 0;return{modifiers:l,hasImportantModifier:x,baseClassName:E,maybePostfixModifierPosition:k}}}function Ti(e){if(e.length<=1)return e;var r=[],t=[];return e.forEach(function(o){var n=o[0]==="[";n?(r.push.apply(r,t.sort().concat([o])),t=[]):t.push(o)}),r.push.apply(r,t.sort()),r}function Pi(e){return{cache:ki(e.cacheSize),splitModifiers:Si(e),...wi(e)}}var Ri=/\s+/;function Oi(e,r){var t=r.splitModifiers,o=r.getClassGroupId,n=r.getConflictingClassGroupIds,s=new Set;return e.trim().split(Ri).map(function(i){var l=t(i),u=l.modifiers,g=l.hasImportantModifier,b=l.baseClassName,y=l.maybePostfixModifierPosition,h=o(y?b.substring(0,y):b),v=!!y;if(!h){if(!y)return{isTailwindClass:!1,originalClassName:i};if(h=o(b),!h)return{isTailwindClass:!1,originalClassName:i};v=!1}var x=Ti(u).join(":"),E=g?x+Ln:x;return{isTailwindClass:!0,modifierId:E,classGroupId:h,originalClassName:i,hasPostfixModifier:v}}).reverse().filter(function(i){if(!i.isTailwindClass)return!0;var l=i.modifierId,u=i.classGroupId,g=i.hasPostfixModifier,b=l+u;return s.has(b)?!1:(s.add(b),n(u,g).forEach(function(y){return s.add(l+y)}),!0)}).reverse().map(function(i){return i.originalClassName}).join(" ")}function xt(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];var o,n,s,i=l;function l(g){var b=r[0],y=r.slice(1),h=y.reduce(function(v,x){return x(v)},b());return o=Pi(h),n=o.cache.get,s=o.cache.set,i=u,u(g)}function u(g){var b=n(g);if(b)return b;var y=Oi(g,o);return s(g,y),y}return function(){return i(xi.apply(null,arguments))}}function ce(e){var r=function(o){return o[e]||[]};return r.isThemeGetter=!0,r}var Nn=/^\[(?:([a-z-]+):)?(.+)\]$/i,ji=/^\d+\/\d+$/,Mi=new Set(["px","full","screen"]),_i=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ii=/\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$/,Ai=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function Pe(e){return We(e)||Mi.has(e)||ji.test(e)||wt(e)}function wt(e){return Xe(e,"length",Vi)}function Li(e){return Xe(e,"size",Dn)}function Ni(e){return Xe(e,"position",Dn)}function Di(e){return Xe(e,"url",Bi)}function jr(e){return Xe(e,"number",We)}function We(e){return!Number.isNaN(Number(e))}function Fi(e){return e.endsWith("%")&&We(e.slice(0,-1))}function dr(e){return Yo(e)||Xe(e,"number",Yo)}function re(e){return Nn.test(e)}function ur(){return!0}function Ve(e){return _i.test(e)}function zi(e){return Xe(e,"",Hi)}function Xe(e,r,t){var o=Nn.exec(e);return o?o[1]?o[1]===r:t(o[2]):!1}function Vi(e){return Ii.test(e)}function Dn(){return!1}function Bi(e){return e.startsWith("url(")}function Yo(e){return Number.isInteger(Number(e))}function Hi(e){return Ai.test(e)}function mt(){var e=ce("colors"),r=ce("spacing"),t=ce("blur"),o=ce("brightness"),n=ce("borderColor"),s=ce("borderRadius"),i=ce("borderSpacing"),l=ce("borderWidth"),u=ce("contrast"),g=ce("grayscale"),b=ce("hueRotate"),y=ce("invert"),h=ce("gap"),v=ce("gradientColorStops"),x=ce("gradientColorStopPositions"),E=ce("inset"),k=ce("margin"),T=ce("opacity"),M=ce("padding"),_=ce("saturate"),I=ce("scale"),O=ce("sepia"),P=ce("skew"),F=ce("space"),L=ce("translate"),N=function(){return["auto","contain","none"]},J=function(){return["auto","hidden","clip","visible","scroll"]},q=function(){return["auto",re,r]},j=function(){return[re,r]},H=function(){return["",Pe]},z=function(){return["auto",We,re]},V=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},G=function(){return["solid","dashed","dotted","double","none"]},A=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},U=function(){return["start","end","center","between","around","evenly","stretch"]},Z=function(){return["","0",re]},Q=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},$=function(){return[We,jr]},S=function(){return[We,re]};return{cacheSize:500,theme:{colors:[ur],spacing:[Pe],blur:["none","",Ve,re],brightness:$(),borderColor:[e],borderRadius:["none","","full",Ve,re],borderSpacing:j(),borderWidth:H(),contrast:$(),grayscale:Z(),hueRotate:S(),invert:Z(),gap:j(),gradientColorStops:[e],gradientColorStopPositions:[Fi,wt],inset:q(),margin:q(),opacity:$(),padding:j(),saturate:$(),scale:$(),sepia:Z(),skew:S(),space:j(),translate:j()},classGroups:{aspect:[{aspect:["auto","square","video",re]}],container:["container"],columns:[{columns:[Ve]}],"break-after":[{"break-after":Q()}],"break-before":[{"break-before":Q()}],"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"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(V(),[re])}],overflow:[{overflow:J()}],"overflow-x":[{"overflow-x":J()}],"overflow-y":[{"overflow-y":J()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[E]}],"inset-x":[{"inset-x":[E]}],"inset-y":[{"inset-y":[E]}],start:[{start:[E]}],end:[{end:[E]}],top:[{top:[E]}],right:[{right:[E]}],bottom:[{bottom:[E]}],left:[{left:[E]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",dr]}],basis:[{basis:q()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",re]}],grow:[{grow:Z()}],shrink:[{shrink:Z()}],order:[{order:["first","last","none",dr]}],"grid-cols":[{"grid-cols":[ur]}],"col-start-end":[{col:["auto",{span:["full",dr]},re]}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":[ur]}],"row-start-end":[{row:["auto",{span:[dr]},re]}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",re]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",re]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal"].concat(U())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(U(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(U(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[M]}],px:[{px:[M]}],py:[{py:[M]}],ps:[{ps:[M]}],pe:[{pe:[M]}],pt:[{pt:[M]}],pr:[{pr:[M]}],pb:[{pb:[M]}],pl:[{pl:[M]}],m:[{m:[k]}],mx:[{mx:[k]}],my:[{my:[k]}],ms:[{ms:[k]}],me:[{me:[k]}],mt:[{mt:[k]}],mr:[{mr:[k]}],mb:[{mb:[k]}],ml:[{ml:[k]}],"space-x":[{"space-x":[F]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[F]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",re,r]}],"min-w":[{"min-w":["min","max","fit",re,Pe]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[Ve]},Ve,re]}],h:[{h:[re,r,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",re,Pe]}],"max-h":[{"max-h":[re,r,"min","max","fit"]}],"font-size":[{text:["base",Ve,wt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",jr]}],"font-family":[{font:[ur]}],"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-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",re]}],"line-clamp":[{"line-clamp":["none",We,jr]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",re,Pe]}],"list-image":[{"list-image":["none",re]}],"list-style-type":[{list:["none","disc","decimal",re]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[T]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[T]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(G(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",Pe]}],"underline-offset":[{"underline-offset":["auto",re,Pe]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:j()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",re]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",re]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[T]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(V(),[Ni])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Li]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Di]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"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-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[T]}],"border-style":[{border:[].concat(G(),["hidden"])}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[T]}],"divide-style":[{divide:G()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:[""].concat(G())}],"outline-offset":[{"outline-offset":[re,Pe]}],"outline-w":[{outline:[Pe]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:H()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[T]}],"ring-offset-w":[{"ring-offset":[Pe]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Ve,zi]}],"shadow-color":[{shadow:[ur]}],opacity:[{opacity:[T]}],"mix-blend":[{"mix-blend":A()}],"bg-blend":[{"bg-blend":A()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[o]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",Ve,re]}],grayscale:[{grayscale:[g]}],"hue-rotate":[{"hue-rotate":[b]}],invert:[{invert:[y]}],saturate:[{saturate:[_]}],sepia:[{sepia:[O]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[b]}],"backdrop-invert":[{"backdrop-invert":[y]}],"backdrop-opacity":[{"backdrop-opacity":[T]}],"backdrop-saturate":[{"backdrop-saturate":[_]}],"backdrop-sepia":[{"backdrop-sepia":[O]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",re]}],duration:[{duration:S()}],ease:[{ease:["linear","in","out","in-out",re]}],delay:[{delay:S()}],animate:[{animate:["none","spin","ping","pulse","bounce",re]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[I]}],"scale-x":[{"scale-x":[I]}],"scale-y":[{"scale-y":[I]}],rotate:[{rotate:[dr,re]}],"translate-x":[{"translate-x":[L]}],"translate-y":[{"translate-y":[L]}],"skew-x":[{"skew-x":[P]}],"skew-y":[{"skew-y":[P]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",re]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],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",re]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"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","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",re]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Pe,jr]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"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"],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-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-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"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}function Gi(e,r){for(var t in r)Fn(e,t,r[t]);return e}var Wi=Object.prototype.hasOwnProperty,Ui=new Set(["string","number","boolean"]);function Fn(e,r,t){if(!Wi.call(e,r)||Ui.has(typeof t)||t===null){e[r]=t;return}if(Array.isArray(t)&&Array.isArray(e[r])){e[r]=e[r].concat(t);return}if(typeof t=="object"&&typeof e[r]=="object"){if(e[r]===null){e[r]=t;return}for(var o in t)Fn(e[r],o,t[o])}}function Ki(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),o=1;o<r;o++)t[o-1]=arguments[o];return typeof e=="function"?xt.apply(void 0,[mt,e].concat(t)):xt.apply(void 0,[function(){return Gi(mt(),e)}].concat(t))}var Yi=xt(mt),Xi={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},zn=e=>e||void 0,vr=(...e)=>zn(jn(e).filter(Boolean).join(" ")),dt=null,zr={},ht=!1,fr=(...e)=>r=>r.twMerge?((!dt||ht)&&(ht=!1,dt=me(zr)?Yi:Ki(zr)),zn(dt(vr(e)))):vr(e),Xo=(e,r)=>{for(let t in r)e.hasOwnProperty(t)?e[t]=vr(e[t],r[t]):e[t]=r[t];return e},qi=(e,r)=>{let{extend:t=null,slots:o={},variants:n={},compoundVariants:s=[],compoundSlots:i=[],defaultVariants:l={}}=e,u={...Xi,...r},g=t!=null&&t.base?vr(t.base,e==null?void 0:e.base):e==null?void 0:e.base,b=t!=null&&t.variants&&!me(t.variants)?_n(n,t.variants):n,y=t!=null&&t.defaultVariants&&!me(t.defaultVariants)?{...t.defaultVariants,...l}:l;!me(u.twMergeConfig)&&!$i(u.twMergeConfig,zr)&&(ht=!0,zr=u.twMergeConfig);let h=me(t==null?void 0:t.slots),v=me(o)?{}:{base:vr(e==null?void 0:e.base,h&&(t==null?void 0:t.base)),...o},x=h?v:Xo({...t==null?void 0:t.slots},me(v)?{base:e==null?void 0:e.base}:v),E=T=>{if(me(b)&&me(o)&&h)return fr(g,T==null?void 0:T.class,T==null?void 0:T.className)(u);if(s&&!Array.isArray(s))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof s}`);if(i&&!Array.isArray(i))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof i}`);let M=(j,H,z=[],V)=>{let G=z;if(typeof H=="string")G=G.concat(Wo(H).split(" ").map(A=>`${j}:${A}`));else if(Array.isArray(H))G=G.concat(H.reduce((A,U)=>A.concat(`${j}:${U}`),[]));else if(typeof H=="object"&&typeof V=="string"){for(let A in H)if(H.hasOwnProperty(A)&&A===V){let U=H[A];if(U&&typeof U=="string"){let Z=Wo(U);G[V]?G[V]=G[V].concat(Z.split(" ").map(Q=>`${j}:${Q}`)):G[V]=Z.split(" ").map(Q=>`${j}:${Q}`)}else Array.isArray(U)&&U.length>0&&(G[V]=U.reduce((Z,Q)=>Z.concat(`${j}:${Q}`),[]))}}return G},_=(j,H=b,z=null,V=null)=>{var G;let A=H[j];if(!A||me(A))return null;let U=(G=V==null?void 0:V[j])!=null?G:T==null?void 0:T[j];if(U===null)return null;let Z=Go(U),Q=Array.isArray(u.responsiveVariants)&&u.responsiveVariants.length>0||u.responsiveVariants===!0,$=y==null?void 0:y[j],S=[];if(typeof Z=="object"&&Q)for(let[Y,ee]of Object.entries(Z)){let ne=A[ee];if(Y==="initial"){$=ee;continue}Array.isArray(u.responsiveVariants)&&!u.responsiveVariants.includes(Y)||(S=M(Y,ne,S,z))}let W=A[Z]||A[Go($)];return typeof S=="object"&&typeof z=="string"&&S[z]?Xo(S,W):S.length>0?(S.push(W),S):W},I=()=>b?Object.keys(b).map(j=>_(j,b)):null,O=(j,H)=>{if(!b||typeof b!="object")return null;let z=new Array;for(let V in b){let G=_(V,b,j,H),A=j==="base"&&typeof G=="string"?G:G&&G[j];A&&(z[z.length]=A)}return z},P={};for(let j in T)T[j]!==void 0&&(P[j]=T[j]);let F=(j,H)=>{var z;let V=typeof(T==null?void 0:T[j])=="object"?{[j]:(z=T[j])==null?void 0:z.initial}:{};return{...y,...P,...V,...H}},L=(j=[],H)=>{let z=[];for(let{class:V,className:G,...A}of j){let U=!0;for(let[Z,Q]of Object.entries(A)){let $=F(Z,H);if(Array.isArray(Q)){if(!Q.includes($[Z])){U=!1;break}}else if($[Z]!==Q){U=!1;break}}U&&(V&&z.push(V),G&&z.push(G))}return z},N=j=>{let H=L(s,j),z=L(t==null?void 0:t.compoundVariants,j);return Mn(z,H)},J=j=>{let H=N(j);if(!Array.isArray(H))return H;let z={};for(let V of H)if(typeof V=="string"&&(z.base=fr(z.base,V)(u)),typeof V=="object")for(let[G,A]of Object.entries(V))z[G]=fr(z[G],A)(u);return z},q=j=>{if(i.length<1)return null;let H={};for(let{slots:z=[],class:V,className:G,...A}of i){if(!me(A)){let U=!0;for(let Z of Object.keys(A)){let Q=F(Z,j)[Z];if(Q===void 0||(Array.isArray(A[Z])?!A[Z].includes(Q):A[Z]!==Q)){U=!1;break}}if(!U)continue}for(let U of z)H[U]=H[U]||[],H[U].push([V,G])}return H};if(!me(o)||!h){let j={};if(typeof x=="object"&&!me(x))for(let H of Object.keys(x))j[H]=z=>{var V,G;return fr(x[H],O(H,z),((V=J(z))!=null?V:[])[H],((G=q(z))!=null?G:[])[H],z==null?void 0:z.class,z==null?void 0:z.className)(u)};return j}return fr(g,I(),N(),T==null?void 0:T.class,T==null?void 0:T.className)(u)},k=()=>{if(!(!b||typeof b!="object"))return Object.keys(b)};return E.variantKeys=k(),E.extend=t,E.base=g,E.slots=x,E.variants=b,E.defaultVariants=y,E.compoundSlots=i,E.compoundVariants=s,E},Mr=["small","medium","large"],Xr=(e,r)=>{var t,o,n;return qi(e,{...r,twMerge:(t=r==null?void 0:r.twMerge)!=null?t:!0,twMergeConfig:{...r==null?void 0:r.twMergeConfig,theme:{...(o=r==null?void 0:r.twMergeConfig)==null?void 0:o.theme,opacity:["disabled"],spacing:["divider"],borderWidth:Mr,borderRadius:Mr},classGroups:{...(n=r==null?void 0:r.twMergeConfig)==null?void 0:n.classGroups,shadow:[{shadow:Mr}],"font-size":[{text:["tiny",...Mr]}],"bg-image":["bg-stripe-gradient"]}}})},Vn=["outline-none","data-[focus-visible=true]:z-10","data-[focus-visible=true]:outline-2","data-[focus-visible=true]:outline-focus","data-[focus-visible=true]:outline-offset-2"],ut=["absolute","top-1/2","left-1/2","-translate-x-1/2","-translate-y-1/2"],qo=Xr({slots:{base:["z-0","relative","bg-transparent","before:content-['']","before:hidden","before:z-[-1]","before:absolute","before:rotate-45","before:w-2.5","before:h-2.5","before:rounded-sm","data-[arrow=true]:before:block","data-[placement=top]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top]:before:left-1/2","data-[placement=top]:before:-translate-x-1/2","data-[placement=top-start]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top-start]:before:left-3","data-[placement=top-end]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top-end]:before:right-3","data-[placement=bottom]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom]:before:left-1/2","data-[placement=bottom]:before:-translate-x-1/2","data-[placement=bottom-start]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom-start]:before:left-3","data-[placement=bottom-end]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom-end]:before:right-3","data-[placement=left]:before:-right-[calc(theme(spacing.5)/4_-_2px)]","data-[placement=left]:before:top-1/2","data-[placement=left]:before:-translate-y-1/2","data-[placement=left-start]:before:-right-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=left-start]:before:top-1/4","data-[placement=left-end]:before:-right-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=left-end]:before:bottom-1/4","data-[placement=right]:before:-left-[calc(theme(spacing.5)/4_-_2px)]","data-[placement=right]:before:top-1/2","data-[placement=right]:before:-translate-y-1/2","data-[placement=right-start]:before:-left-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=right-start]:before:top-1/4","data-[placement=right-end]:before:-left-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=right-end]:before:bottom-1/4",...Vn],content:["z-10","px-2.5","py-1","w-full","inline-flex","flex-col","items-center","justify-center","box-border","subpixel-antialiased","outline-none","box-border"],trigger:["z-10"],backdrop:["hidden"],arrow:[]},variants:{size:{sm:{content:"text-tiny"},md:{content:"text-small"},lg:{content:"text-medium"}},color:{default:{base:"before:bg-content1 before:shadow-small",content:"bg-content1"},foreground:{base:"before:bg-foreground",content:te.solid.foreground},primary:{base:"before:bg-primary",content:te.solid.primary},secondary:{base:"before:bg-secondary",content:te.solid.secondary},success:{base:"before:bg-success",content:te.solid.success},warning:{base:"before:bg-warning",content:te.solid.warning},danger:{base:"before:bg-danger",content:te.solid.danger}},radius:{none:{content:"rounded-none"},sm:{content:"rounded-small"},md:{content:"rounded-medium"},lg:{content:"rounded-large"},full:{content:"rounded-full"}},shadow:{sm:{content:"shadow-small"},md:{content:"shadow-medium"},lg:{content:"shadow-large"}},backdrop:{transparent:{},opaque:{backdrop:"bg-overlay/50 backdrop-opacity-disabled"},blur:{backdrop:"backdrop-blur-sm backdrop-saturate-150 bg-overlay/30"}},triggerScaleOnOpen:{true:{trigger:["aria-expanded:scale-[0.97]","aria-expanded:opacity-70","subpixel-antialiased"]},false:{}},disableAnimation:{true:{base:"animate-none"}},isTriggerDisabled:{true:{trigger:"opacity-disabled pointer-events-none"},false:{}}},defaultVariants:{color:"default",radius:"lg",size:"md",shadow:"md",backdrop:"transparent",disableAnimation:!1,triggerScaleOnOpen:!0},compoundVariants:[{backdrop:["opaque","blur"],class:{backdrop:"block w-full h-full fixed inset-0 -z-30"}}]}),Zi=Xr({slots:{base:["flex","relative","justify-center","items-center","box-border","overflow-hidden","align-middle","text-white","z-0",...Vn],img:["flex","object-cover","w-full","h-full","transition-opacity","!duration-500","opacity-0","data-[loaded=true]:opacity-100"],fallback:[...ut,"flex","items-center","justify-center"],name:[...ut,"font-normal","text-center","text-inherit"],icon:[...ut,"flex","items-center","justify-center","text-inherit","w-full","h-full"]},variants:{size:{sm:{base:"w-8 h-8 text-tiny"},md:{base:"w-10 h-10 text-tiny"},lg:{base:"w-14 h-14 text-small"}},color:{default:{base:te.solid.default},primary:{base:te.solid.primary},secondary:{base:te.solid.secondary},success:{base:te.solid.success},warning:{base:te.solid.warning},danger:{base:te.solid.danger}},radius:{none:{base:"rounded-none"},sm:{base:"rounded-small"},md:{base:"rounded-medium"},lg:{base:"rounded-large"},full:{base:"rounded-full"}},isBordered:{true:{base:"ring-2 ring-offset-2 ring-offset-background dark:ring-offset-background-dark"}},isDisabled:{true:{base:"opacity-disabled"}},isInGroup:{true:{base:["-ms-2 data-[hover=true]:-translate-x-3 rtl:data-[hover=true]:translate-x-3 transition-transform","data-[focus-visible=true]:-translate-x-3 rtl:data-[focus-visible=true]:translate-x-3"]}},isInGridGroup:{true:{base:"m-0 data-[hover=true]:translate-x-0"}}},defaultVariants:{size:"md",color:"default",radius:"full"},compoundVariants:[{color:"default",isBordered:!0,class:{base:"ring-default"}},{color:"primary",isBordered:!0,class:{base:"ring-primary"}},{color:"secondary",isBordered:!0,class:{base:"ring-secondary"}},{color:"success",isBordered:!0,class:{base:"ring-success"}},{color:"warning",isBordered:!0,class:{base:"ring-warning"}},{color:"danger",isBordered:!0,class:{base:"ring-danger"}}]}),Ji=Xr({slots:{base:"flex items-center justify-center h-auto w-max-content",count:"hover:-translate-x-0"},variants:{isGrid:{true:"inline-grid grid-cols-4 gap-3"}}}),Zo=Xr({slots:{base:["relative","inline-flex","shrink-0"],badge:["flex","z-10","flex-wrap","absolute","box-border","rounded-full","whitespace-nowrap","place-content-center","origin-center","items-center","text-inherit","select-none","font-regular","scale-100","opacity-100","subpixel-antialiased","data-[invisible=true]:scale-0","data-[invisible=true]:opacity-0"]},variants:{variant:{solid:{},flat:{},faded:{badge:"border-medium"},shadow:{}},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},size:{sm:{badge:"px-1 text-tiny"},md:{badge:"px-1 text-small"},lg:{badge:"px-1 text-small"}},placement:{"top-right":{},"top-left":{},"bottom-right":{},"bottom-left":{}},shape:{circle:{},rectangle:{}},isInvisible:{true:{}},isOneChar:{true:{badge:"px-0"}},isDot:{true:{}},disableAnimation:{true:{badge:"transition-none"},false:{badge:"transition-transform-opacity !ease-soft-spring !duration-300"}},showOutline:{true:{badge:"border-2 border-background"},false:{badge:"border-transparent border-0"}}},defaultVariants:{variant:"solid",color:"default",size:"md",shape:"rectangle",placement:"top-right",showOutline:!0,disableAnimation:!1,isInvisible:!1},compoundVariants:[{variant:"solid",color:"default",class:{badge:te.solid.default}},{variant:"solid",color:"primary",class:{badge:te.solid.primary}},{variant:"solid",color:"secondary",class:{badge:te.solid.secondary}},{variant:"solid",color:"success",class:{badge:te.solid.success}},{variant:"solid",color:"warning",class:{badge:te.solid.warning}},{variant:"solid",color:"danger",class:{badge:te.solid.danger}},{variant:"shadow",color:"default",class:{badge:te.shadow.default}},{variant:"shadow",color:"primary",class:{badge:te.shadow.primary}},{variant:"shadow",color:"secondary",class:{badge:te.shadow.secondary}},{variant:"shadow",color:"success",class:{badge:te.shadow.success}},{variant:"shadow",color:"warning",class:{badge:te.shadow.warning}},{variant:"shadow",color:"danger",class:{badge:te.shadow.danger}},{variant:"flat",color:"default",class:{badge:te.flat.default}},{variant:"flat",color:"primary",class:{badge:te.flat.primary}},{variant:"flat",color:"secondary",class:{badge:te.flat.secondary}},{variant:"flat",color:"success",class:{badge:te.flat.success}},{variant:"flat",color:"warning",class:{badge:te.flat.warning}},{variant:"flat",color:"danger",class:{badge:te.flat.danger}},{variant:"faded",color:"default",class:{badge:te.faded.default}},{variant:"faded",color:"primary",class:{badge:te.faded.primary}},{variant:"faded",color:"secondary",class:{badge:te.faded.secondary}},{variant:"faded",color:"success",class:{badge:te.faded.success}},{variant:"faded",color:"warning",class:{badge:te.faded.warning}},{variant:"faded",color:"danger",class:{badge:te.faded.danger}},{isOneChar:!0,size:"sm",class:{badge:"w-4 h-4 min-w-4 min-h-4"}},{isOneChar:!0,size:"md",class:{badge:"w-5 h-5 min-w-5 min-h-5"}},{isOneChar:!0,size:"lg",class:{badge:"w-6 h-6 min-w-6 min-h-6"}},{isDot:!0,size:"sm",class:{badge:"w-3 h-3 min-w-3 min-h-3"}},{isDot:!0,size:"md",class:{badge:"w-3.5 h-3.5 min-w-3.5 min-h-3.5"}},{isDot:!0,size:"lg",class:{badge:"w-4 h-4 min-w-4 min-h-4"}},{placement:"top-right",shape:"rectangle",class:{badge:"top-[5%] right-[5%] translate-x-1/2 -translate-y-1/2"}},{placement:"top-left",shape:"rectangle",class:{badge:"top-[5%] left-[5%] -translate-x-1/2 -translate-y-1/2"}},{placement:"bottom-right",shape:"rectangle",class:{badge:"bottom-[5%] right-[5%] translate-x-1/2 translate-y-1/2"}},{placement:"bottom-left",shape:"rectangle",class:{badge:"bottom-[5%] left-[5%] -translate-x-1/2 translate-y-1/2"}},{placement:"top-right",shape:"circle",class:{badge:"top-[10%] right-[10%] translate-x-1/2 -translate-y-1/2"}},{placement:"top-left",shape:"circle",class:{badge:"top-[10%] left-[10%] -translate-x-1/2 -translate-y-1/2"}},{placement:"bottom-right",shape:"circle",class:{badge:"bottom-[10%] right-[10%] translate-x-1/2 translate-y-1/2"}},{placement:"bottom-left",shape:"circle",class:{badge:"bottom-[10%] left-[10%] -translate-x-1/2 translate-y-1/2"}}]});function Bn(e,r,t){let[o,n]=d.useState(e||r),s=d.useRef(e!==void 0),i=e!==void 0;d.useEffect(()=>{let g=s.current;g!==i&&console.warn(`WARN: A component changed from ${g?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}.`),s.current=i},[i]);let l=i?e:o,u=d.useCallback((g,...b)=>{let y=(h,...v)=>{t&&(Object.is(l,h)||t(h,...v)),i||(l=h)};typeof g=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),n((v,...x)=>{let E=g(i?l:v,...x);return y(E,...b),i?v:E})):(i||n(g),y(g,...b))},[i,l,t]);return[l,u]}function Ct(e,r=-1/0,t=1/0){return Math.min(Math.max(e,r),t)}const Vr={prefix:String(Math.round(Math.random()*1e10)),current:0},Hn=d.createContext(Vr),Qi=d.createContext(!1);let el=!!(typeof window<"u"&&window.document&&window.document.createElement),ft=new WeakMap;function rl(e=!1){let r=d.useContext(Hn),t=d.useRef(null);if(t.current===null&&!e){var o,n;let s=(n=d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||n===void 0||(o=n.ReactCurrentOwner)===null||o===void 0?void 0:o.current;if(s){let i=ft.get(s);i==null?ft.set(s,{id:r.current,state:s.memoizedState}):s.memoizedState!==i.state&&(r.current=i.id,ft.delete(s))}t.current=++r.current}return t.current}function tl(e){let r=d.useContext(Hn);r===Vr&&!el&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let t=rl(!!e),o=r===Vr&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${r.prefix}`;return e||`${o}-${t}`}function ol(e){let r=d.useId(),[t]=d.useState(Kt()),o=t||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Vr.prefix}`;return e||`${o}-${r}`}const nl=typeof d.useId=="function"?ol:tl;function al(){return!1}function sl(){return!0}function il(e){return()=>{}}function Kt(){return typeof d.useSyncExternalStore=="function"?d.useSyncExternalStore(il,al,sl):d.useContext(Qi)}function Gn(e){var r,t,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(r=0;r<n;r++)e[r]&&(t=Gn(e[r]))&&(o&&(o+=" "),o+=t)}else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function ll(){for(var e,r,t=0,o="",n=arguments.length;t<n;t++)(e=arguments[t])&&(r=Gn(e))&&(o&&(o+=" "),o+=r);return o}const Ke=typeof document<"u"?d.useLayoutEffect:()=>{};function Et(e){const r=d.useRef(null);return Ke(()=>{r.current=e},[e]),d.useCallback((...t)=>{const o=r.current;return o==null?void 0:o(...t)},[])}let cl=!!(typeof window<"u"&&window.document&&window.document.createElement),Br=new Map;function dl(e){let[r,t]=d.useState(e),o=d.useRef(null),n=nl(r),s=d.useCallback(i=>{o.current=i},[]);return cl&&Br.set(n,s),Ke(()=>{let i=n;return()=>{Br.delete(i)}},[n]),d.useEffect(()=>{let i=o.current;i&&(o.current=null,t(i))}),n}function ul(e,r){if(e===r)return e;let t=Br.get(e);if(t)return t(r),r;let o=Br.get(r);return o?(o(e),e):r}function fl(...e){return(...r)=>{for(let t of e)typeof t=="function"&&t(...r)}}const ar=e=>{var r;return(r=e==null?void 0:e.ownerDocument)!==null&&r!==void 0?r:document},Ue=e=>e&&"window"in e&&e.window===e?e:ar(e).defaultView||window;function ke(...e){let r={...e[0]};for(let t=1;t<e.length;t++){let o=e[t];for(let n in o){let s=r[n],i=o[n];typeof s=="function"&&typeof i=="function"&&n[0]==="o"&&n[1]==="n"&&n.charCodeAt(2)>=65&&n.charCodeAt(2)<=90?r[n]=fl(s,i):(n==="className"||n==="UNSAFE_className")&&typeof s=="string"&&typeof i=="string"?r[n]=ll(s,i):n==="id"&&s&&i?r.id=ul(s,i):r[n]=i!==void 0?i:s}}return r}const pl=new Set(["id"]),bl=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),gl=new Set(["href","target","rel","download","ping","referrerPolicy"]),vl=/^(data-.*)$/;function yl(e,r={}){let{labelable:t,isLink:o,propNames:n}=r,s={};for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(pl.has(i)||t&&bl.has(i)||o&&gl.has(i)||n!=null&&n.has(i)||vl.test(i))&&(s[i]=e[i]);return s}function Jo(e){if($l())e.focus({preventScroll:!0});else{let r=xl(e);e.focus(),wl(r)}}let _r=null;function $l(){if(_r==null){_r=!1;try{document.createElement("div").focus({get preventScroll(){return _r=!0,!0}})}catch{}}return _r}function xl(e){let r=e.parentNode,t=[],o=document.scrollingElement||document.documentElement;for(;r instanceof HTMLElement&&r!==o;)(r.offsetHeight<r.scrollHeight||r.offsetWidth<r.scrollWidth)&&t.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),r=r.parentNode;return o instanceof HTMLElement&&t.push({element:o,scrollTop:o.scrollTop,scrollLeft:o.scrollLeft}),t}function wl(e){for(let{element:r,scrollTop:t,scrollLeft:o}of e)r.scrollTop=t,r.scrollLeft=o}function Yt(e){var r;return typeof window>"u"||window.navigator==null?!1:((r=window.navigator.userAgentData)===null||r===void 0?void 0:r.brands.some(t=>e.test(t.brand)))||e.test(window.navigator.userAgent)}function ml(e){var r;return typeof window<"u"&&window.navigator!=null?e.test(((r=window.navigator.userAgentData)===null||r===void 0?void 0:r.platform)||window.navigator.platform):!1}function hl(){return ml(/^Mac/i)}function Cl(){return Yt(/AppleWebKit/i)&&!El()}function El(){return Yt(/Chrome/i)}function kl(){return Yt(/Android/i)}let er=new Map,kt=new Set;function Qo(){if(typeof window>"u")return;function e(o){return"propertyName"in o}let r=o=>{if(!e(o)||!o.target)return;let n=er.get(o.target);n||(n=new Set,er.set(o.target,n),o.target.addEventListener("transitioncancel",t,{once:!0})),n.add(o.propertyName)},t=o=>{if(!e(o)||!o.target)return;let n=er.get(o.target);if(n&&(n.delete(o.propertyName),n.size===0&&(o.target.removeEventListener("transitioncancel",t),er.delete(o.target)),er.size===0)){for(let s of kt)s();kt.clear()}};document.body.addEventListener("transitionrun",r),document.body.addEventListener("transitionend",t)}typeof document<"u"&&(document.readyState!=="loading"?Qo():document.addEventListener("DOMContentLoaded",Qo));function Sl(e){requestAnimationFrame(()=>{er.size===0?e():kt.add(e)})}function Tl(e){const r=d.useRef(null);return d.useMemo(()=>({get current(){return r.current},set current(t){r.current=t,typeof e=="function"?e(t):e&&(e.current=t)}}),[e])}function Pl(){return typeof window.ResizeObserver<"u"}function Rl(e){const{ref:r,onResize:t}=e;d.useEffect(()=>{let o=r==null?void 0:r.current;if(o)if(Pl()){const n=new window.ResizeObserver(s=>{s.length&&t()});return n.observe(o),()=>{o&&n.unobserve(o)}}else return window.addEventListener("resize",t,!1),()=>{window.removeEventListener("resize",t,!1)}},[t,r])}function Wn(e,r){Ke(()=>{if(e&&e.ref&&r)return e.ref.current=r.current,()=>{e.ref&&(e.ref.current=null)}})}function Ol(e){return e.mozInputSource===0&&e.isTrusted?!0:kl()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}const St=d.createContext({register:()=>{}});St.displayName="PressResponderContext";const jl=d.forwardRef(({children:e,...r},t)=>{let o=d.useRef(!1),n=d.useContext(St);t=Tl(t||(n==null?void 0:n.ref));let s=ke(n||{},{...r,ref:t,register(){o.current=!0,n&&n.register()}});return Wn(n,t),d.useEffect(()=>{o.current||(console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component."),o.current=!0)},[]),d.createElement(St.Provider,{value:s},e)});class Ml{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(r,t){this.nativeEvent=t,this.target=t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=r}}function Un(e){let r=d.useRef({isFocused:!1,observer:null});Ke(()=>{const o=r.current;return()=>{o.observer&&(o.observer.disconnect(),o.observer=null)}},[]);let t=Et(o=>{e==null||e(o)});return d.useCallback(o=>{if(o.target instanceof HTMLButtonElement||o.target instanceof HTMLInputElement||o.target instanceof HTMLTextAreaElement||o.target instanceof HTMLSelectElement){r.current.isFocused=!0;let n=o.target,s=i=>{r.current.isFocused=!1,n.disabled&&t(new Ml("blur",i)),r.current.observer&&(r.current.observer.disconnect(),r.current.observer=null)};n.addEventListener("focusout",s,{once:!0}),r.current.observer=new MutationObserver(()=>{if(r.current.isFocused&&n.disabled){var i;(i=r.current.observer)===null||i===void 0||i.disconnect();let l=n===document.activeElement?null:document.activeElement;n.dispatchEvent(new FocusEvent("blur",{relatedTarget:l})),n.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:l}))}}),r.current.observer.observe(n,{attributes:!0,attributeFilter:["disabled"]})}},[t])}function Kn(e){let{isDisabled:r,onFocus:t,onBlur:o,onFocusChange:n}=e;const s=d.useCallback(u=>{if(u.target===u.currentTarget)return o&&o(u),n&&n(!1),!0},[o,n]),i=Un(s),l=d.useCallback(u=>{u.target===u.currentTarget&&document.activeElement===u.target&&(t&&t(u),n&&n(!0),i(u))},[n,t,i]);return{focusProps:{onFocus:!r&&(t||n||o)?l:void 0,onBlur:!r&&(o||n)?s:void 0}}}let sr=null,Tt=new Set,gr=new Map,Ye=!1,Pt=!1;const _l={Tab:!0,Escape:!0};function Xt(e,r){for(let t of Tt)t(e,r)}function Il(e){return!(e.metaKey||!hl()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Hr(e){Ye=!0,Il(e)&&(sr="keyboard",Xt("keyboard",e))}function Ce(e){sr="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Ye=!0,Xt("pointer",e))}function Yn(e){Ol(e)&&(Ye=!0,sr="virtual")}function Xn(e){e.target===window||e.target===document||(!Ye&&!Pt&&(sr="virtual",Xt("virtual",e)),Ye=!1,Pt=!1)}function qn(){Ye=!1,Pt=!0}function Rt(e){if(typeof window>"u"||gr.get(Ue(e)))return;const r=Ue(e),t=ar(e);let o=r.HTMLElement.prototype.focus;r.HTMLElement.prototype.focus=function(){Ye=!0,o.apply(this,arguments)},t.addEventListener("keydown",Hr,!0),t.addEventListener("keyup",Hr,!0),t.addEventListener("click",Yn,!0),r.addEventListener("focus",Xn,!0),r.addEventListener("blur",qn,!1),typeof PointerEvent<"u"?(t.addEventListener("pointerdown",Ce,!0),t.addEventListener("pointermove",Ce,!0),t.addEventListener("pointerup",Ce,!0)):(t.addEventListener("mousedown",Ce,!0),t.addEventListener("mousemove",Ce,!0),t.addEventListener("mouseup",Ce,!0)),r.addEventListener("beforeunload",()=>{Zn(e)},{once:!0}),gr.set(r,{focus:o})}const Zn=(e,r)=>{const t=Ue(e),o=ar(e);r&&o.removeEventListener("DOMContentLoaded",r),gr.has(t)&&(t.HTMLElement.prototype.focus=gr.get(t).focus,o.removeEventListener("keydown",Hr,!0),o.removeEventListener("keyup",Hr,!0),o.removeEventListener("click",Yn,!0),t.removeEventListener("focus",Xn,!0),t.removeEventListener("blur",qn,!1),typeof PointerEvent<"u"?(o.removeEventListener("pointerdown",Ce,!0),o.removeEventListener("pointermove",Ce,!0),o.removeEventListener("pointerup",Ce,!0)):(o.removeEventListener("mousedown",Ce,!0),o.removeEventListener("mousemove",Ce,!0),o.removeEventListener("mouseup",Ce,!0)),gr.delete(t))};function Al(e){const r=ar(e);let t;return r.readyState!=="loading"?Rt(e):(t=()=>{Rt(e)},r.addEventListener("DOMContentLoaded",t)),()=>Zn(e,t)}typeof document<"u"&&Al();function qt(){return sr!=="pointer"}function Jn(){return sr}const Ll=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Nl(e,r,t){var o;const n=typeof window<"u"?Ue(t==null?void 0:t.target).HTMLInputElement:HTMLInputElement,s=typeof window<"u"?Ue(t==null?void 0:t.target).HTMLTextAreaElement:HTMLTextAreaElement,i=typeof window<"u"?Ue(t==null?void 0:t.target).HTMLElement:HTMLElement,l=typeof window<"u"?Ue(t==null?void 0:t.target).KeyboardEvent:KeyboardEvent;return e=e||(t==null?void 0:t.target)instanceof n&&!Ll.has(t==null||(o=t.target)===null||o===void 0?void 0:o.type)||(t==null?void 0:t.target)instanceof s||(t==null?void 0:t.target)instanceof i&&(t==null?void 0:t.target.isContentEditable),!(e&&r==="keyboard"&&t instanceof l&&!_l[t.key])}function Dl(e,r,t){Rt(),d.useEffect(()=>{let o=(n,s)=>{Nl(!!(t!=null&&t.isTextInput),n,s)&&e(qt())};return Tt.add(o),()=>{Tt.delete(o)}},r)}function Qn(e){let{isDisabled:r,onBlurWithin:t,onFocusWithin:o,onFocusWithinChange:n}=e,s=d.useRef({isFocusWithin:!1}),i=d.useCallback(g=>{s.current.isFocusWithin&&!g.currentTarget.contains(g.relatedTarget)&&(s.current.isFocusWithin=!1,t&&t(g),n&&n(!1))},[t,n,s]),l=Un(i),u=d.useCallback(g=>{!s.current.isFocusWithin&&document.activeElement===g.target&&(o&&o(g),n&&n(!0),s.current.isFocusWithin=!0,l(g))},[o,n,l]);return r?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:u,onBlur:i}}}let Gr=!1,pt=0;function Ot(){Gr=!0,setTimeout(()=>{Gr=!1},50)}function en(e){e.pointerType==="touch"&&Ot()}function Fl(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",en):document.addEventListener("touchend",Ot),pt++,()=>{pt--,!(pt>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",en):document.removeEventListener("touchend",Ot))}}function Zt(e){let{onHoverStart:r,onHoverChange:t,onHoverEnd:o,isDisabled:n}=e,[s,i]=d.useState(!1),l=d.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;d.useEffect(Fl,[]);let{hoverProps:u,triggerHoverEnd:g}=d.useMemo(()=>{let b=(v,x)=>{if(l.pointerType=x,n||x==="touch"||l.isHovered||!v.currentTarget.contains(v.target))return;l.isHovered=!0;let E=v.currentTarget;l.target=E,r&&r({type:"hoverstart",target:E,pointerType:x}),t&&t(!0),i(!0)},y=(v,x)=>{if(l.pointerType="",l.target=null,x==="touch"||!l.isHovered)return;l.isHovered=!1;let E=v.currentTarget;o&&o({type:"hoverend",target:E,pointerType:x}),t&&t(!1),i(!1)},h={};return typeof PointerEvent<"u"?(h.onPointerEnter=v=>{Gr&&v.pointerType==="mouse"||b(v,v.pointerType)},h.onPointerLeave=v=>{!n&&v.currentTarget.contains(v.target)&&y(v,v.pointerType)}):(h.onTouchStart=()=>{l.ignoreEmulatedMouseEvents=!0},h.onMouseEnter=v=>{!l.ignoreEmulatedMouseEvents&&!Gr&&b(v,"mouse"),l.ignoreEmulatedMouseEvents=!1},h.onMouseLeave=v=>{!n&&v.currentTarget.contains(v.target)&&y(v,"mouse")}),{hoverProps:h,triggerHoverEnd:y}},[r,t,o,n,l]);return d.useEffect(()=>{n&&g({currentTarget:l.target},l.pointerType)},[n]),{hoverProps:u,isHovered:s}}function zl(e){let{ref:r,onInteractOutside:t,isDisabled:o,onInteractOutsideStart:n}=e,s=d.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),i=Et(u=>{t&&Ir(u,r)&&(n&&n(u),s.current.isPointerDown=!0)}),l=Et(u=>{t&&t(u)});d.useEffect(()=>{let u=s.current;if(o)return;const g=r.current,b=ar(g);if(typeof PointerEvent<"u"){let y=h=>{u.isPointerDown&&Ir(h,r)&&l(h),u.isPointerDown=!1};return b.addEventListener("pointerdown",i,!0),b.addEventListener("pointerup",y,!0),()=>{b.removeEventListener("pointerdown",i,!0),b.removeEventListener("pointerup",y,!0)}}else{let y=v=>{u.ignoreEmulatedMouseEvents?u.ignoreEmulatedMouseEvents=!1:u.isPointerDown&&Ir(v,r)&&l(v),u.isPointerDown=!1},h=v=>{u.ignoreEmulatedMouseEvents=!0,u.isPointerDown&&Ir(v,r)&&l(v),u.isPointerDown=!1};return b.addEventListener("mousedown",i,!0),b.addEventListener("mouseup",y,!0),b.addEventListener("touchstart",i,!0),b.addEventListener("touchend",h,!0),()=>{b.removeEventListener("mousedown",i,!0),b.removeEventListener("mouseup",y,!0),b.removeEventListener("touchstart",i,!0),b.removeEventListener("touchend",h,!0)}}},[r,o,i,l])}function Ir(e,r){if(e.button>0)return!1;if(e.target){const t=e.target.ownerDocument;if(!t||!t.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return r.current&&!r.current.contains(e.target)}function rn(e){if(!e)return;let r=!0;return t=>{let o={...t,preventDefault(){t.preventDefault()},isDefaultPrevented(){return t.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){r=!1}};e(o),r&&t.stopPropagation()}}function Vl(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:rn(e.onKeyDown),onKeyUp:rn(e.onKeyUp)}}}function Bl(e){const r=ar(e);if(Jn()==="virtual"){let t=r.activeElement;Sl(()=>{r.activeElement===t&&e.isConnected&&Jo(e)})}else Jo(e)}let Hl=null;function ea(e,r){return!e||!r?!1:r.some(t=>t.contains(e))}function Gl(e,r=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:t}of on.traverse(on.getTreeNode(r)))if(t&&ea(e,t.current))return!0;return!1}function Wl(e){return Gl(e,Hl)}class Jt{get size(){return this.fastMap.size}getTreeNode(r){return this.fastMap.get(r)}addTreeNode(r,t,o){let n=this.fastMap.get(t??null);if(!n)return;let s=new tn({scopeRef:r});n.addChild(s),s.parent=n,this.fastMap.set(r,s),o&&(s.nodeToRestore=o)}addNode(r){this.fastMap.set(r.scopeRef,r)}removeTreeNode(r){if(r===null)return;let t=this.fastMap.get(r);if(!t)return;let o=t.parent;for(let s of this.traverse())s!==t&&t.nodeToRestore&&s.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&ea(s.nodeToRestore,t.scopeRef.current)&&(s.nodeToRestore=t.nodeToRestore);let n=t.children;o&&(o.removeChild(t),n.size>0&&n.forEach(s=>o&&o.addChild(s))),this.fastMap.delete(t.scopeRef)}*traverse(r=this.root){if(r.scopeRef!=null&&(yield r),r.children.size>0)for(let t of r.children)yield*this.traverse(t)}clone(){var r;let t=new Jt;var o;for(let n of this.traverse())t.addTreeNode(n.scopeRef,(o=(r=n.parent)===null||r===void 0?void 0:r.scopeRef)!==null&&o!==void 0?o:null,n.nodeToRestore);return t}constructor(){this.fastMap=new Map,this.root=new tn({scopeRef:null}),this.fastMap.set(null,this.root)}}class tn{addChild(r){this.children.add(r),r.parent=this}removeChild(r){this.children.delete(r),r.parent=void 0}constructor(r){this.children=new Set,this.contain=!1,this.scopeRef=r.scopeRef}}let on=new Jt;function Ul(e={}){let{autoFocus:r=!1,isTextInput:t,within:o}=e,n=d.useRef({isFocused:!1,isFocusVisible:r||qt()}),[s,i]=d.useState(!1),[l,u]=d.useState(()=>n.current.isFocused&&n.current.isFocusVisible),g=d.useCallback(()=>u(n.current.isFocused&&n.current.isFocusVisible),[]),b=d.useCallback(v=>{n.current.isFocused=v,i(v),g()},[g]);Dl(v=>{n.current.isFocusVisible=v,g()},[],{isTextInput:t});let{focusProps:y}=Kn({isDisabled:o,onFocusChange:b}),{focusWithinProps:h}=Qn({isDisabled:!o,onFocusWithinChange:b});return{isFocused:s,isFocusVisible:l,focusProps:o?h:y}}let Kl=d.createContext(null);function Yl(e){let r=d.useContext(Kl)||{};Wn(r,e);let{ref:t,...o}=r;return o}function Xl(e,r){let{focusProps:t}=Kn(e),{keyboardProps:o}=Vl(e),n=ke(t,o),s=Yl(r),i=e.isDisabled?{}:s,l=d.useRef(e.autoFocus);return d.useEffect(()=>{l.current&&r.current&&Bl(r.current),l.current=!1},[r]),{focusableProps:ke({...n,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},i)}}var ra=globalThis!=null&&globalThis.document?d.useLayoutEffect:d.useEffect;function ql(e={}){const{loading:r,src:t,srcSet:o,onLoad:n,onError:s,crossOrigin:i,sizes:l,ignoreFallback:u}=e,[g,b]=d.useState("pending");d.useEffect(()=>{b(t?"loading":"pending")},[t]);const y=d.useRef(),h=d.useCallback(()=>{if(!t)return;v();const x=new Image;x.src=t,i&&(x.crossOrigin=i),o&&(x.srcset=o),l&&(x.sizes=l),r&&(x.loading=r),x.onload=E=>{v(),b("loaded"),n==null||n(E)},x.onerror=E=>{v(),b("failed"),s==null||s(E)},y.current=x},[t,i,o,l,n,s,r]),v=()=>{y.current&&(y.current.onload=null,y.current.onerror=null,y.current=null)};return ra(()=>{if(!u)return g==="loading"&&h(),()=>{v()}},[g,h,u]),u?"loaded":g}function Zl(e={}){var r,t,o,n,s;const i=Rn(),l=!!i,{as:u,ref:g,src:b,name:y,icon:h,classNames:v,fallback:x,alt:E=y||"avatar",imgRef:k,color:T=(r=i==null?void 0:i.color)!=null?r:"default",radius:M=(t=i==null?void 0:i.radius)!=null?t:"full",size:_=(o=i==null?void 0:i.size)!=null?o:"md",isBordered:I=(n=i==null?void 0:i.isBordered)!=null?n:!1,isDisabled:O=(s=i==null?void 0:i.isDisabled)!=null?s:!1,isFocusable:P=!1,getInitials:F=Ys,ignoreFallback:L=!1,showFallback:N=!1,ImgComponent:J="img",imgProps:q,className:j,onError:H,...z}=e,V=u||"span",G=yt(g),A=yt(k),{isFocusVisible:U,isFocused:Z,focusProps:Q}=Ul(),{isHovered:$,hoverProps:S}=Zt({isDisabled:O}),Y=ql({src:b,onError:H,ignoreFallback:L})==="loaded",ee=(!b||!Y)&&N,ne=d.useMemo(()=>{var Te;return Zi({color:T,radius:M,size:_,isBordered:I,isDisabled:O,isInGroup:l,isInGridGroup:(Te=i==null?void 0:i.isGrid)!=null?Te:!1})},[T,M,_,I,O,l,i==null?void 0:i.isGrid]),se=or(v==null?void 0:v.base,j),ae=d.useMemo(()=>P||u==="button",[P,u]),ie=d.useCallback((Te={})=>({ref:G,tabIndex:ae?0:-1,"data-hover":_e($),"data-focus":_e(Z),"data-focus-visible":_e(U),className:ne.base({class:or(se,Te==null?void 0:Te.className)}),...ke(z,S,ae?Q:{})}),[ae,ne,se,Q,z]),ve=d.useCallback((Te={})=>({ref:A,src:b,"data-loaded":_e(Y),className:ne.img({class:v==null?void 0:v.img}),...ke(q,Te)}),[ne,Y,q,b,A]);return{Component:V,ImgComponent:J,src:b,alt:E,icon:h,name:y,imgRef:A,slots:ne,classNames:v,fallback:x,isImgLoaded:Y,showFallback:ee,ignoreFallback:L,getInitials:F,getAvatarProps:ie,getImageProps:ve}}const Jl=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Ql=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function ec(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize(),o=typeof t.getTextInfo=="function"?t.getTextInfo():t.textInfo;if(o)return o.direction==="rtl";if(t.script)return Jl.has(t.script)}let r=e.split("-")[0];return Ql.has(r)}const rc=Symbol.for("react-aria.i18n.locale");function ta(){let e=typeof window<"u"&&window[rc]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:ec(e)?"rtl":"ltr"}}let jt=ta(),br=new Set;function nn(){jt=ta();for(let e of br)e(jt)}function tc(){let e=Kt(),[r,t]=d.useState(jt);return d.useEffect(()=>(br.size===0&&window.addEventListener("languagechange",nn),br.add(t),()=>{br.delete(t),br.size===0&&window.removeEventListener("languagechange",nn)}),[]),e?{locale:"en-US",direction:"ltr"}:r}const oc=d.createContext(null);function nc(){let e=tc();return d.useContext(oc)||e}const rr={top:"top",bottom:"top",left:"left",right:"left"},Wr={top:"bottom",bottom:"top",left:"right",right:"left"},ac={top:"left",left:"top"},Mt={top:"height",left:"width"},oa={width:"totalWidth",height:"totalHeight"},Ar={};let we=typeof document<"u"&&window.visualViewport;function an(e){let r=0,t=0,o=0,n=0,s=0,i=0,l={},u=(we==null?void 0:we.scale)>1;if(e.tagName==="BODY"){let y=document.documentElement;o=y.clientWidth,n=y.clientHeight;var g;r=(g=we==null?void 0:we.width)!==null&&g!==void 0?g:o;var b;t=(b=we==null?void 0:we.height)!==null&&b!==void 0?b:n,l.top=y.scrollTop||e.scrollTop,l.left=y.scrollLeft||e.scrollLeft,we&&(s=we.offsetTop,i=we.offsetLeft)}else({width:r,height:t,top:s,left:i}=tr(e)),l.top=e.scrollTop,l.left=e.scrollLeft,o=r,n=t;return Cl()&&(e.tagName==="BODY"||e.tagName==="HTML")&&u&&(l.top=0,l.left=0,s=we.pageTop,i=we.pageLeft),{width:r,height:t,totalWidth:o,totalHeight:n,scroll:l,top:s,left:i}}function sc(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function sn(e,r,t,o,n,s,i){let l=n.scroll[e],u=o[Mt[e]],g=o.scroll[rr[e]]+s,b=u+o.scroll[rr[e]]-s,y=r-l+i[e]-o[rr[e]],h=r-l+t+i[e]-o[rr[e]];return y<g?g-y:h>b?Math.max(b-h,g-y):0}function ic(e){let r=window.getComputedStyle(e);return{top:parseInt(r.marginTop,10)||0,bottom:parseInt(r.marginBottom,10)||0,left:parseInt(r.marginLeft,10)||0,right:parseInt(r.marginRight,10)||0}}function ln(e){if(Ar[e])return Ar[e];let[r,t]=e.split(" "),o=rr[r]||"right",n=ac[o];rr[t]||(t="center");let s=Mt[o],i=Mt[n];return Ar[e]={placement:r,crossPlacement:t,axis:o,crossAxis:n,size:s,crossSize:i},Ar[e]}function bt(e,r,t,o,n,s,i,l,u,g){let{placement:b,crossPlacement:y,axis:h,crossAxis:v,size:x,crossSize:E}=o,k={};k[v]=e[v],y==="center"?k[v]+=(e[E]-t[E])/2:y!==v&&(k[v]+=e[E]-t[E]),k[v]+=s;const T=e[v]-t[E]+u+g,M=e[v]+e[E]-u-g;if(k[v]=Ct(k[v],T,M),b===h){const _=l?i[x]:r[oa[x]];k[Wr[h]]=Math.floor(_-e[h]+n)}else k[h]=Math.floor(e[h]+e[x]+n);return k}function lc(e,r,t,o,n,s,i,l){const u=o?t.height:r[oa.height];let g=e.top!=null?t.top+e.top:t.top+(u-e.bottom-i),b=l!=="top"?Math.max(0,r.height+r.top+r.scroll.top-g-(n.top+n.bottom+s)):Math.max(0,g+i-(r.top+r.scroll.top)-(n.top+n.bottom+s));return Math.min(r.height-s*2,b)}function cn(e,r,t,o,n,s){let{placement:i,axis:l,size:u}=s;return i===l?Math.max(0,t[l]-e[l]-e.scroll[l]+r[l]-o[l]-o[Wr[l]]-n):Math.max(0,e[u]+e[l]+e.scroll[l]-r[l]-t[l]-t[u]-o[l]-o[Wr[l]]-n)}function cc(e,r,t,o,n,s,i,l,u,g,b,y,h,v,x,E){let k=ln(e),{size:T,crossAxis:M,crossSize:_,placement:I,crossPlacement:O}=k,P=bt(r,l,t,k,b,y,g,h,x,E),F=b,L=cn(l,g,r,n,s+b,k);if(i&&o[T]>L){let Z=ln(`${Wr[I]} ${O}`),Q=bt(r,l,t,Z,b,y,g,h,x,E);cn(l,g,r,n,s+b,Z)>L&&(k=Z,P=Q,F=b)}let N="bottom";k.axis==="top"?k.placement==="top"?N="top":k.placement==="bottom"&&(N="bottom"):k.crossAxis==="top"&&(k.crossPlacement==="top"?N="bottom":k.crossPlacement==="bottom"&&(N="top"));let J=sn(M,P[M],t[_],l,u,s,g);P[M]+=J;let q=lc(P,l,g,h,n,s,t.height,N);v&&v<q&&(q=v),t.height=Math.min(t.height,q),P=bt(r,l,t,k,F,y,g,h,x,E),J=sn(M,P[M],t[_],l,u,s,g),P[M]+=J;let j={},H=r[M]+.5*r[_]-t[M];const z=x/2+E,V=t[_]-x/2-E,G=r[M]-t[M]+x/2,A=r[M]+r[_]-t[M]-x/2,U=Ct(H,G,A);return j[M]=Ct(U,z,V),{position:P,maxHeight:q,arrowOffsetLeft:j.left,arrowOffsetTop:j.top,placement:k.placement}}function dc(e){let{placement:r,targetNode:t,overlayNode:o,scrollNode:n,padding:s,shouldFlip:i,boundaryElement:l,offset:u,crossOffset:g,maxHeight:b,arrowSize:y=0,arrowBoundaryOffset:h=0}=e,v=o instanceof HTMLElement?uc(o):document.documentElement,x=v===document.documentElement;const E=window.getComputedStyle(v).position;let k=!!E&&E!=="static",T=x?tr(t):dn(t,v);if(!x){let{marginTop:L,marginLeft:N}=window.getComputedStyle(t);T.top+=parseInt(L,10)||0,T.left+=parseInt(N,10)||0}let M=tr(o),_=ic(o);M.width+=_.left+_.right,M.height+=_.top+_.bottom;let I=sc(n),O=an(l),P=an(v),F=l.tagName==="BODY"?tr(v):dn(v,l);return v.tagName==="HTML"&&l.tagName==="BODY"&&(P.scroll.top=0,P.scroll.left=0),cc(r,T,M,I,_,s,i,O,P,F,u,g,k,b,y,h)}function tr(e){let{top:r,left:t,width:o,height:n}=e.getBoundingClientRect(),{scrollTop:s,scrollLeft:i,clientTop:l,clientLeft:u}=document.documentElement;return{top:r+s-l,left:t+i-u,width:o,height:n}}function dn(e,r){let t=window.getComputedStyle(e),o;if(t.position==="fixed"){let{top:n,left:s,width:i,height:l}=e.getBoundingClientRect();o={top:n,left:s,width:i,height:l}}else{o=tr(e);let n=tr(r),s=window.getComputedStyle(r);n.top+=(parseInt(s.borderTopWidth,10)||0)-r.scrollTop,n.left+=(parseInt(s.borderLeftWidth,10)||0)-r.scrollLeft,o.top-=n.top,o.left-=n.left}return o.top-=parseInt(t.marginTop,10)||0,o.left-=parseInt(t.marginLeft,10)||0,o}function uc(e){let r=e.offsetParent;if(r&&r===document.body&&window.getComputedStyle(r).position==="static"&&!un(r)&&(r=document.documentElement),r==null)for(r=e.parentElement;r&&!un(r);)r=r.parentElement;return r||document.documentElement}function un(e){let r=window.getComputedStyle(e);return r.transform!=="none"||/transform|perspective/.test(r.willChange)||r.filter!=="none"||r.contain==="paint"||"backdropFilter"in r&&r.backdropFilter!=="none"||"WebkitBackdropFilter"in r&&r.WebkitBackdropFilter!=="none"}const fc=new WeakMap;function pc(e){let{triggerRef:r,isOpen:t,onClose:o}=e;d.useEffect(()=>{if(!t||o===null)return;let n=s=>{let i=s.target;if(!r.current||i instanceof Node&&!i.contains(r.current))return;let l=o||fc.get(r.current);l&&l()};return window.addEventListener("scroll",n,!0),()=>{window.removeEventListener("scroll",n,!0)}},[t,o,r])}let be=typeof document<"u"&&window.visualViewport;function bc(e){let{direction:r}=nc(),{arrowSize:t=0,targetRef:o,overlayRef:n,scrollRef:s=n,placement:i="bottom",containerPadding:l=12,shouldFlip:u=!0,boundaryElement:g=typeof document<"u"?document.body:null,offset:b=0,crossOffset:y=0,shouldUpdatePosition:h=!0,isOpen:v=!0,onClose:x,maxHeight:E,arrowBoundaryOffset:k=0}=e,[T,M]=d.useState({position:{},arrowOffsetLeft:void 0,arrowOffsetTop:void 0,maxHeight:void 0,placement:void 0}),_=[h,i,n.current,o.current,s.current,l,u,g,b,y,v,r,E,k,t],I=d.useRef(be==null?void 0:be.scale);d.useEffect(()=>{v&&(I.current=be==null?void 0:be.scale)},[v]);let O=d.useCallback(()=>{if(h===!1||!v||!n.current||!o.current||!s.current||!g||(be==null?void 0:be.scale)!==I.current)return;!E&&n.current&&(n.current.style.maxHeight="none");let L=dc({placement:vc(i,r),overlayNode:n.current,targetNode:o.current,scrollNode:s.current,padding:l,shouldFlip:u,boundaryElement:g,offset:b,crossOffset:y,maxHeight:E,arrowSize:t,arrowBoundaryOffset:k});Object.keys(L.position).forEach(N=>n.current.style[N]=L.position[N]+"px"),n.current.style.maxHeight=L.maxHeight!=null?L.maxHeight+"px":void 0,M(L)},_);Ke(O,_),gc(O),Rl({ref:n,onResize:O});let P=d.useRef(!1);Ke(()=>{let L,N=()=>{P.current=!0,clearTimeout(L),L=setTimeout(()=>{P.current=!1},500),O()},J=()=>{P.current&&N()};return be==null||be.addEventListener("resize",N),be==null||be.addEventListener("scroll",J),()=>{be==null||be.removeEventListener("resize",N),be==null||be.removeEventListener("scroll",J)}},[O]);let F=d.useCallback(()=>{P.current||x()},[x,P]);return pc({triggerRef:o,isOpen:v,onClose:x&&F}),{overlayProps:{style:{position:"absolute",zIndex:1e5,...T.position,maxHeight:T.maxHeight}},placement:T.placement,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:T.arrowOffsetLeft,top:T.arrowOffsetTop}},updatePosition:O}}function gc(e){Ke(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function vc(e,r){return r==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const Le=[];function yc(e,r){let{onClose:t,shouldCloseOnBlur:o,isOpen:n,isDismissable:s=!1,isKeyboardDismissDisabled:i=!1,shouldCloseOnInteractOutside:l}=e;d.useEffect(()=>(n&&Le.push(r),()=>{let x=Le.indexOf(r);x>=0&&Le.splice(x,1)}),[n,r]);let u=()=>{Le[Le.length-1]===r&&t&&t()},g=x=>{(!l||l(x.target))&&Le[Le.length-1]===r&&(x.stopPropagation(),x.preventDefault())},b=x=>{(!l||l(x.target))&&(Le[Le.length-1]===r&&(x.stopPropagation(),x.preventDefault()),u())},y=x=>{x.key==="Escape"&&!i&&(x.stopPropagation(),x.preventDefault(),u())};zl({ref:r,onInteractOutside:s&&n?b:null,onInteractOutsideStart:g});let{focusWithinProps:h}=Qn({isDisabled:!o,onBlurWithin:x=>{!x.relatedTarget||Wl(x.relatedTarget)||(!l||l(x.relatedTarget))&&t()}}),v=x=>{x.target===x.currentTarget&&x.preventDefault()};return{overlayProps:{onKeyDown:y,...h},underlayProps:{onPointerDown:v}}}const _t=d.createContext(null);function $c(e){let{children:r}=e,t=d.useContext(_t),[o,n]=d.useState(0),s=d.useMemo(()=>({parent:t,modalCount:o,addModal(){n(i=>i+1),t&&t.addModal()},removeModal(){n(i=>i-1),t&&t.removeModal()}}),[t,o]);return d.createElement(_t.Provider,{value:s},r)}function xc(){let e=d.useContext(_t);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:null}}}function wc(e){let{modalProviderProps:r}=xc();return d.createElement("div",{"data-overlay-container":!0,...e,...r})}function mc(e){return d.createElement($c,null,d.createElement(wc,e))}function fn(e){let r=Kt(),{portalContainer:t=r?null:document.body,...o}=e;if(d.useEffect(()=>{if(t!=null&&t.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[t]),!t)return null;let n=d.createElement(mc,o);return Yr.createPortal(n,t)}function qr(e){return d.forwardRef(e)}var na=(e,r,t=!0)=>{if(!r)return[e,{}];const o=r.reduce((n,s)=>s in e?{...n,[s]:e[s]}:n,{});return t?[Object.keys(e).filter(s=>!r.includes(s)).reduce((s,i)=>({...s,[i]:e[i]}),{}),o]:[e,o]},aa=qr((e,r)=>{const{Component:t,ImgComponent:o,src:n,icon:s=p.jsx(Ws,{}),alt:i,classNames:l,slots:u,name:g,showFallback:b,fallback:y,getInitials:h,getAvatarProps:v,getImageProps:x}=Zl({...e,ref:r}),E=d.useMemo(()=>!b&&n?null:y?p.jsx("div",{"aria-label":i,className:u.fallback({class:l==null?void 0:l.fallback}),role:"img",children:y}):g?p.jsx("span",{"aria-label":i,className:u.name({class:l==null?void 0:l.name}),role:"img",children:h(g)}):p.jsx("span",{"aria-label":i,className:u.icon({class:l==null?void 0:l.icon}),role:"img",children:s}),[b,n,y,g,l]);return p.jsxs(t,{...v(),children:[n&&p.jsx(o,{...x(),alt:i}),E]})});aa.displayName="NextUI.Avatar";var sa=aa;function hc(e={}){const{as:r,ref:t,max:o=5,total:n,size:s,color:i,radius:l,children:u,isBordered:g,isDisabled:b,isGrid:y,renderCount:h,className:v,classNames:x,...E}=e,k=yt(t),T=r||"div",M=d.useMemo(()=>({size:s,color:i,radius:l,isGrid:y,isBordered:g,isDisabled:b}),[s,i,l,y,g,b]),_=d.useMemo(()=>Ji({className:v,isGrid:y}),[v,y]),I=ci(u),O=o?I.slice(0,o):I,P=n||(o!=null?I.length-o:-1),F=O.map((J,q)=>{const j=q===0,H=q===O.length-1,z={className:or(j?"ms-0":y?"":"-ms-2",H&&P<1?"hover:-translate-x-0":"")};return d.cloneElement(J,Zs(z))});return{Component:T,context:M,remainingCount:P,clones:F,renderCount:h,getAvatarGroupProps:()=>({ref:k,className:_.base({class:or(x==null?void 0:x.base,v)}),role:"group",...E}),getAvatarGroupCountProps:()=>({className:_.count({class:x==null?void 0:x.count})})}}var ia=qr((e,r)=>{const{Component:t,clones:o,context:n,remainingCount:s,getAvatarGroupCountProps:i,getAvatarGroupProps:l,renderCount:u=g=>p.jsx(sa,{...i(),name:`+${g}`})}=hc({...e,ref:r});return p.jsx(t,{...l(),children:p.jsxs(di,{value:n,children:[o,s>0&&u(s)]})})});ia.displayName="NextUI.AvatarGroup";var Cc=ia;const c={fontFamily:{sans:["ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Helvetica Neue","Arial","Noto Sans","sans-serif","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"],serif:["ui-serif","Georgia","Cambria","Times New Roman","Times","serif"],monospace:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas","Liberation Mono","Courier New","monospace"]},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}],"7xl":["4.5rem",{lineHeight:"1"}],"8xl":["6rem",{lineHeight:"1"}],"9xl":["8rem",{lineHeight:"1"}]},fontWeight:{thin:100,extralight:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{3:"0.75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},borderRadius:{.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem"},listStyleType:{none:"none",disc:"disc",decimal:"decimal"},screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},colors:{primary:"#4785ff",secondary:"#b8cfff",tertiary:"#d6e4ff",background:"#f0f5ff",inherit:"inherit",current:"currentColor",transparent:"transparent",black:"rgb(0 0 0)",white:"rgb(255 255 255)",slate:{50:"rgb(248 250 252)",100:"rgb(241 245 249)",200:"rgb(226 232 240)",300:"rgb(203 213 225)",400:"rgb(148 163 184)",500:"rgb(100 116 139)",600:"rgb(71 85 105)",700:"rgb(51 65 85)",800:"rgb(30 41 59)",900:"rgb(15 23 42)"},gray:{50:"rgb(249 250 251)",100:"rgb(243 244 246)",200:"rgb(229 231 235)",300:"rgb(209 213 219)",400:"rgb(156 163 175)",500:"rgb(107 114 128)",600:"rgb(75 85 99)",700:"rgb(55 65 81)",800:"rgb(31 41 55)",900:"rgb(17 24 39)"},zinc:{50:"rgb(250 250 250)",100:"rgb(244 244 245)",200:"rgb(228 228 231)",300:"rgb(212 212 216)",400:"rgb(161 161 170)",500:"rgb(113 113 122)",600:"rgb(82 82 91)",700:"rgb(63 63 70)",800:"rgb(39 39 42)",900:"rgb(24 24 27)"},neutral:{50:"rgb(250 250 250)",100:"rgb(245 245 245)",200:"rgb(229 229 229)",300:"rgb(212 212 212)",400:"rgb(163 163 163)",500:"rgb(115 115 115)",600:"rgb(82 82 82)",700:"rgb(64 64 64)",800:"rgb(38 38 38)",900:"rgb(23 23 23)"},stone:{50:"rgb(250 250 249)",100:"rgb(245 245 244)",200:"rgb(231 229 228)",300:"rgb(214 211 209)",400:"rgb(168 162 158)",500:"rgb(120 113 108)",600:"rgb(87 83 78)",700:"rgb(68 64 60)",800:"rgb(41 37 36)",900:"rgb(28 25 23)"},red:{50:"rgb(254 242 242)",100:"rgb(254 226 226)",200:"rgb(254 202 202)",300:"rgb(252 165 165)",400:"rgb(248 113 113)",500:"rgb(239 68 68)",600:"rgb(220 38 38)",700:"rgb(185 28 28)",800:"rgb(153 27 27)",900:"rgb(127 29 29)"},orange:{50:"rgb(255 247 237)",100:"rgb(255 237 213)",200:"rgb(254 215 170)",300:"rgb(253 186 116)",400:"rgb(251 146 60)",500:"rgb(249 115 22)",600:"rgb(234 88 12)",700:"rgb(194 65 12)",800:"rgb(154 52 18)",900:"rgb(124 45 18)"},amber:{50:"rgb(255 251 235)",100:"rgb(254 243 199)",200:"rgb(253 230 138)",300:"rgb(252 211 77)",400:"rgb(251 191 36)",500:"rgb(245 158 11)",600:"rgb(217 119 6)",700:"rgb(180 83 9)",800:"rgb(146 64 14)",900:"rgb(120 53 15)"},yellow:{50:"rgb(254 252 232)",100:"rgb(254 249 195)",200:"rgb(254 240 138)",300:"rgb(253 224 71)",400:"rgb(250 204 21)",500:"rgb(234 179 8)",600:"rgb(202 138 4)",700:"rgb(161 98 7)",800:"rgb(133 77 14)",900:"rgb(113 63 18)"},lime:{50:"rgb(247 254 231)",100:"rgb(236 252 203)",200:"rgb(217 249 157)",300:"rgb(190 242 100)",400:"rgb(163 230 53)",500:"rgb(132 204 22)",600:"rgb(101 163 13)",700:"rgb(77 124 15)",800:"rgb(63 98 18)",900:"rgb(54 83 20)"},green:{50:"rgb(240 253 244)",100:"rgb(220 252 231)",200:"rgb(187 247 208)",300:"rgb(134 239 172)",400:"rgb(74 222 128)",500:"rgb(34 197 94)",600:"rgb(22 163 74)",700:"rgb(21 128 61)",800:"rgb(22 101 52)",900:"rgb(20 83 45)"},emerald:{50:"rgb(236 253 245)",100:"rgb(209 250 229)",200:"rgb(167 243 208)",300:"rgb(110 231 183)",400:"rgb(52 211 153)",500:"rgb(16 185 129)",600:"rgb(5 150 105)",700:"rgb(4 120 87)",800:"rgb(6 95 70)",900:"rgb(6 78 59)"},teal:{50:"rgb(240 253 250)",100:"rgb(204 251 241)",200:"rgb(153 246 228)",300:"rgb(94 234 212)",400:"rgb(45 212 191)",500:"rgb(20 184 166)",600:"rgb(13 148 136)",700:"rgb(15 118 110)",800:"rgb(17 94 89)",900:"rgb(19 78 74)"},cyan:{50:"rgb(236 254 255)",100:"rgb(207 250 254)",200:"rgb(165 243 252)",300:"rgb(103 232 249)",400:"rgb(34 211 238)",500:"rgb(6 182 212)",600:"rgb(8 145 178)",700:"rgb(14 116 144)",800:"rgb(21 94 117)",900:"rgb(22 78 99)"},sky:{50:"rgb(240 249 255)",100:"rgb(224 242 254)",200:"rgb(186 230 253)",300:"rgb(125 211 252)",400:"rgb(56 189 248)",500:"rgb(14 165 233)",600:"rgb(2 132 199)",700:"rgb(3 105 161)",800:"rgb(7 89 133)",900:"rgb(12 74 110)"},blue:{50:"rgb(239 246 255)",100:"rgb(219 234 254)",200:"rgb(191 219 254)",300:"rgb(147 197 253)",400:"rgb(96 165 250)",500:"rgb(59 130 246)",600:"rgb(37 99 235)",700:"rgb(29 78 216)",800:"rgb(30 64 175)",900:"rgb(30 58 138)"},indigo:{50:"rgb(238 242 255)",100:"rgb(224 231 255)",200:"rgb(199 210 254)",300:"rgb(165 180 252)",400:"rgb(129 140 248)",500:"rgb(99 102 241)",600:"rgb(79 70 229)",700:"rgb(67 56 202)",800:"rgb(55 48 163)",900:"rgb(49 46 129)"},violet:{50:"rgb(245 243 255)",100:"rgb(237 233 254)",200:"rgb(221 214 254)",300:"rgb(196 181 253)",400:"rgb(167 139 250)",500:"rgb(139 92 246)",600:"rgb(124 58 237)",700:"rgb(109 40 217)",800:"rgb(91 33 182)",900:"rgb(76 29 149)"},purple:{50:"rgb(250 245 255)",100:"rgb(243 232 255)",200:"rgb(233 213 255)",300:"rgb(216 180 254)",400:"rgb(192 132 252)",500:"rgb(168 85 247)",600:"rgb(147 51 234)",700:"rgb(126 34 206)",800:"rgb(107 33 168)",900:"rgb(88 28 135)"},fuchsia:{50:"rgb(253 244 255)",100:"rgb(250 232 255)",200:"rgb(245 208 254)",300:"rgb(240 171 252)",400:"rgb(232 121 249)",500:"rgb(217 70 239)",600:"rgb(192 38 211)",700:"rgb(162 28 175)",800:"rgb(134 25 143)",900:"rgb(112 26 117)"},pink:{50:"rgb(253 242 248)",100:"rgb(252 231 243)",200:"rgb(251 207 232)",300:"rgb(249 168 212)",400:"rgb(244 114 182)",500:"rgb(236 72 153)",600:"rgb(219 39 119)",700:"rgb(190 24 93)",800:"rgb(157 23 77)",900:"rgb(131 24 67)"},rose:{50:"rgb(255 241 242)",100:"rgb(255 228 230)",200:"rgb(254 205 211)",300:"rgb(253 164 175)",400:"rgb(251 113 133)",500:"rgb(244 63 94)",600:"rgb(225 29 72)",700:"rgb(190 18 60)",800:"rgb(159 18 57)",900:"rgb(136 19 55)"}},spacing:{px:"1px",0:"0px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},height:{auto:"auto",px:"1px",0:"0px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%",full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"},components:{button:{primary:{color:"#FFF",backgroundColor:"#000"}},Card:{border:"1px solid rgb(226 232 240)",padding:"1rem",backgroundColor:"transparent",borderRadius:"2px",boxShadow:"rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.1) 0px 1px 2px -1px"},"Card.Content":{padding:0,fontSize:"0.9rem"},"Card.Header":{fontSize:"1.125rem",fontWeight:"700",marginBottom:"1rem"}}};function la(e,r){const t={...e};return Object.entries(r).forEach(([o,n])=>{n!==null&&typeof n=="object"&&!Array.isArray(n)?((t[o]===void 0||t[o]===null)&&(t[o]={}),t[o]=la(t[o],n)):t[o]=n}),t}const Ec=m.styled.div`
39
+ */var Ho=ai(li());function ci(e){return Ho.Children.toArray(e).filter(r=>(0,Ho.isValidElement)(r))}var[di,Rn]=Us({name:"AvatarGroupContext",strict:!1}),ui={default:"bg-default text-default-foreground",primary:"bg-primary text-primary-foreground",secondary:"bg-secondary text-secondary-foreground",success:"bg-success text-success-foreground",warning:"bg-warning text-warning-foreground",danger:"bg-danger text-danger-foreground",foreground:"bg-foreground text-background"},fi={default:"shadow-lg shadow-default/50 bg-default text-default-foreground",primary:"shadow-lg shadow-primary/40 bg-primary text-primary-foreground",secondary:"shadow-lg shadow-secondary/40 bg-secondary text-secondary-foreground",success:"shadow-lg shadow-success/40 bg-success text-success-foreground",warning:"shadow-lg shadow-warning/40 bg-warning text-warning-foreground",danger:"shadow-lg shadow-danger/40 bg-danger text-danger-foreground",foreground:"shadow-lg shadow-foreground/40 bg-foreground text-background"},pi={default:"bg-transparent border-default text-foreground",primary:"bg-transparent border-primary text-primary",secondary:"bg-transparent border-secondary text-secondary",success:"bg-transparent border-success text-success",warning:"bg-transparent border-warning text-warning",danger:"bg-transparent border-danger text-danger",foreground:"bg-transparent border-foreground text-foreground"},bi={default:"bg-default/40 text-default-foreground",primary:"bg-primary/20 text-primary",secondary:"bg-secondary/20 text-secondary",success:"bg-success/20 text-success-600 dark:text-success",warning:"bg-warning/20 text-warning-600 dark:text-warning",danger:"bg-danger/20 text-danger dark:text-danger-500",foreground:"bg-foreground/10 text-foreground"},gi={default:"border-default bg-default-100 text-default-foreground",primary:"border-default bg-default-100 text-primary",secondary:"border-default bg-default-100 text-secondary",success:"border-default bg-default-100 text-success",warning:"border-default bg-default-100 text-warning",danger:"border-default bg-default-100 text-danger",foreground:"border-default bg-default-100 text-foreground"},vi={default:"bg-transparent text-default-foreground",primary:"bg-transparent text-primary",secondary:"bg-transparent text-secondary",success:"bg-transparent text-success",warning:"bg-transparent text-warning",danger:"bg-transparent text-danger",foreground:"bg-transparent text-foreground"},yi={default:"border-default text-default-foreground hover:!bg-default",primary:"border-primary text-primary hover:!text-primary-foreground hover:!bg-primary",secondary:"border-secondary text-secondary hover:text-secondary-foreground hover:!bg-secondary",success:"border-success text-success hover:!text-success-foreground hover:!bg-success",warning:"border-warning text-warning hover:!text-warning-foreground hover:!bg-warning",danger:"border-danger text-danger hover:!text-danger-foreground hover:!bg-danger",foreground:"border-foreground text-foreground hover:!bg-foreground"},te={solid:ui,shadow:fi,bordered:pi,flat:bi,faded:gi,light:vi,ghost:yi},Go=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,me=e=>!e||typeof e!="object"||Object.keys(e).length===0,$i=(e,r)=>JSON.stringify(e)===JSON.stringify(r);function On(e,r){e.forEach(function(t){Array.isArray(t)?On(t,r):r.push(t)})}function jn(e){let r=[];return On(e,r),r}var Mn=(...e)=>jn(e).filter(Boolean),_n=(e,r)=>{let t={},o=Object.keys(e),n=Object.keys(r);for(let s of o)if(n.includes(s)){let i=e[s],l=r[s];typeof i=="object"&&typeof l=="object"?t[s]=_n(i,l):Array.isArray(i)||Array.isArray(l)?t[s]=Mn(l,i):t[s]=l+" "+i}else t[s]=e[s];for(let s of n)o.includes(s)||(t[s]=r[s]);return t},Wo=e=>!e||typeof e!="string"?e:e.replace(/\s+/g," ").trim();function xi(){for(var e=0,r,t,o="";e<arguments.length;)(r=arguments[e++])&&(t=In(r))&&(o&&(o+=" "),o+=t);return o}function In(e){if(typeof e=="string")return e;for(var r,t="",o=0;o<e.length;o++)e[o]&&(r=In(e[o]))&&(t&&(t+=" "),t+=r);return t}var Ut="-";function wi(e){var r=hi(e),t=e.conflictingClassGroups,o=e.conflictingClassGroupModifiers,n=o===void 0?{}:o;function s(l){var u=l.split(Ut);return u[0]===""&&u.length!==1&&u.shift(),An(u,r)||mi(l)}function i(l,u){var g=t[l]||[];return u&&n[l]?[].concat(g,n[l]):g}return{getClassGroupId:s,getConflictingClassGroupIds:i}}function An(e,r){var i;if(e.length===0)return r.classGroupId;var t=e[0],o=r.nextPart.get(t),n=o?An(e.slice(1),o):void 0;if(n)return n;if(r.validators.length!==0){var s=e.join(Ut);return(i=r.validators.find(function(l){var u=l.validator;return u(s)}))==null?void 0:i.classGroupId}}var Uo=/^\[(.+)\]$/;function mi(e){if(Uo.test(e)){var r=Uo.exec(e)[1],t=r==null?void 0:r.substring(0,r.indexOf(":"));if(t)return"arbitrary.."+t}}function hi(e){var r=e.theme,t=e.prefix,o={nextPart:new Map,validators:[]},n=Ei(Object.entries(e.classGroups),t);return n.forEach(function(s){var i=s[0],l=s[1];$t(l,o,i,r)}),o}function $t(e,r,t,o){e.forEach(function(n){if(typeof n=="string"){var s=n===""?r:Ko(r,n);s.classGroupId=t;return}if(typeof n=="function"){if(Ci(n)){$t(n(o),r,t,o);return}r.validators.push({validator:n,classGroupId:t});return}Object.entries(n).forEach(function(i){var l=i[0],u=i[1];$t(u,Ko(r,l),t,o)})})}function Ko(e,r){var t=e;return r.split(Ut).forEach(function(o){t.nextPart.has(o)||t.nextPart.set(o,{nextPart:new Map,validators:[]}),t=t.nextPart.get(o)}),t}function Ci(e){return e.isThemeGetter}function Ei(e,r){return r?e.map(function(t){var o=t[0],n=t[1],s=n.map(function(i){return typeof i=="string"?r+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(function(l){var u=l[0],g=l[1];return[r+u,g]})):i});return[o,s]}):e}function ki(e){if(e<1)return{get:function(){},set:function(){}};var r=0,t=new Map,o=new Map;function n(s,i){t.set(s,i),r++,r>e&&(r=0,o=t,t=new Map)}return{get:function(i){var l=t.get(i);if(l!==void 0)return l;if((l=o.get(i))!==void 0)return n(i,l),l},set:function(i,l){t.has(i)?t.set(i,l):n(i,l)}}}var Ln="!";function Si(e){var r=e.separator||":",t=r.length===1,o=r[0],n=r.length;return function(i){for(var l=[],u=0,g=0,b,y=0;y<i.length;y++){var h=i[y];if(u===0){if(h===o&&(t||i.slice(y,y+n)===r)){l.push(i.slice(g,y)),g=y+n;continue}if(h==="/"){b=y;continue}}h==="["?u++:h==="]"&&u--}var v=l.length===0?i:i.substring(g),x=v.startsWith(Ln),E=x?v.substring(1):v,k=b&&b>g?b-g:void 0;return{modifiers:l,hasImportantModifier:x,baseClassName:E,maybePostfixModifierPosition:k}}}function Ti(e){if(e.length<=1)return e;var r=[],t=[];return e.forEach(function(o){var n=o[0]==="[";n?(r.push.apply(r,t.sort().concat([o])),t=[]):t.push(o)}),r.push.apply(r,t.sort()),r}function Pi(e){return{cache:ki(e.cacheSize),splitModifiers:Si(e),...wi(e)}}var Ri=/\s+/;function Oi(e,r){var t=r.splitModifiers,o=r.getClassGroupId,n=r.getConflictingClassGroupIds,s=new Set;return e.trim().split(Ri).map(function(i){var l=t(i),u=l.modifiers,g=l.hasImportantModifier,b=l.baseClassName,y=l.maybePostfixModifierPosition,h=o(y?b.substring(0,y):b),v=!!y;if(!h){if(!y)return{isTailwindClass:!1,originalClassName:i};if(h=o(b),!h)return{isTailwindClass:!1,originalClassName:i};v=!1}var x=Ti(u).join(":"),E=g?x+Ln:x;return{isTailwindClass:!0,modifierId:E,classGroupId:h,originalClassName:i,hasPostfixModifier:v}}).reverse().filter(function(i){if(!i.isTailwindClass)return!0;var l=i.modifierId,u=i.classGroupId,g=i.hasPostfixModifier,b=l+u;return s.has(b)?!1:(s.add(b),n(u,g).forEach(function(y){return s.add(l+y)}),!0)}).reverse().map(function(i){return i.originalClassName}).join(" ")}function xt(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];var o,n,s,i=l;function l(g){var b=r[0],y=r.slice(1),h=y.reduce(function(v,x){return x(v)},b());return o=Pi(h),n=o.cache.get,s=o.cache.set,i=u,u(g)}function u(g){var b=n(g);if(b)return b;var y=Oi(g,o);return s(g,y),y}return function(){return i(xi.apply(null,arguments))}}function ce(e){var r=function(o){return o[e]||[]};return r.isThemeGetter=!0,r}var Nn=/^\[(?:([a-z-]+):)?(.+)\]$/i,ji=/^\d+\/\d+$/,Mi=new Set(["px","full","screen"]),_i=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ii=/\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$/,Ai=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function Pe(e){return We(e)||Mi.has(e)||ji.test(e)||wt(e)}function wt(e){return Xe(e,"length",Vi)}function Li(e){return Xe(e,"size",Dn)}function Ni(e){return Xe(e,"position",Dn)}function Di(e){return Xe(e,"url",Bi)}function jr(e){return Xe(e,"number",We)}function We(e){return!Number.isNaN(Number(e))}function Fi(e){return e.endsWith("%")&&We(e.slice(0,-1))}function dr(e){return Yo(e)||Xe(e,"number",Yo)}function re(e){return Nn.test(e)}function ur(){return!0}function Ve(e){return _i.test(e)}function zi(e){return Xe(e,"",Hi)}function Xe(e,r,t){var o=Nn.exec(e);return o?o[1]?o[1]===r:t(o[2]):!1}function Vi(e){return Ii.test(e)}function Dn(){return!1}function Bi(e){return e.startsWith("url(")}function Yo(e){return Number.isInteger(Number(e))}function Hi(e){return Ai.test(e)}function mt(){var e=ce("colors"),r=ce("spacing"),t=ce("blur"),o=ce("brightness"),n=ce("borderColor"),s=ce("borderRadius"),i=ce("borderSpacing"),l=ce("borderWidth"),u=ce("contrast"),g=ce("grayscale"),b=ce("hueRotate"),y=ce("invert"),h=ce("gap"),v=ce("gradientColorStops"),x=ce("gradientColorStopPositions"),E=ce("inset"),k=ce("margin"),T=ce("opacity"),M=ce("padding"),_=ce("saturate"),I=ce("scale"),O=ce("sepia"),P=ce("skew"),F=ce("space"),L=ce("translate"),N=function(){return["auto","contain","none"]},J=function(){return["auto","hidden","clip","visible","scroll"]},q=function(){return["auto",re,r]},j=function(){return[re,r]},H=function(){return["",Pe]},z=function(){return["auto",We,re]},V=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},G=function(){return["solid","dashed","dotted","double","none"]},A=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},U=function(){return["start","end","center","between","around","evenly","stretch"]},Z=function(){return["","0",re]},Q=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},$=function(){return[We,jr]},S=function(){return[We,re]};return{cacheSize:500,theme:{colors:[ur],spacing:[Pe],blur:["none","",Ve,re],brightness:$(),borderColor:[e],borderRadius:["none","","full",Ve,re],borderSpacing:j(),borderWidth:H(),contrast:$(),grayscale:Z(),hueRotate:S(),invert:Z(),gap:j(),gradientColorStops:[e],gradientColorStopPositions:[Fi,wt],inset:q(),margin:q(),opacity:$(),padding:j(),saturate:$(),scale:$(),sepia:Z(),skew:S(),space:j(),translate:j()},classGroups:{aspect:[{aspect:["auto","square","video",re]}],container:["container"],columns:[{columns:[Ve]}],"break-after":[{"break-after":Q()}],"break-before":[{"break-before":Q()}],"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"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(V(),[re])}],overflow:[{overflow:J()}],"overflow-x":[{"overflow-x":J()}],"overflow-y":[{"overflow-y":J()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[E]}],"inset-x":[{"inset-x":[E]}],"inset-y":[{"inset-y":[E]}],start:[{start:[E]}],end:[{end:[E]}],top:[{top:[E]}],right:[{right:[E]}],bottom:[{bottom:[E]}],left:[{left:[E]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",dr]}],basis:[{basis:q()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",re]}],grow:[{grow:Z()}],shrink:[{shrink:Z()}],order:[{order:["first","last","none",dr]}],"grid-cols":[{"grid-cols":[ur]}],"col-start-end":[{col:["auto",{span:["full",dr]},re]}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":[ur]}],"row-start-end":[{row:["auto",{span:[dr]},re]}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",re]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",re]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal"].concat(U())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(U(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(U(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[M]}],px:[{px:[M]}],py:[{py:[M]}],ps:[{ps:[M]}],pe:[{pe:[M]}],pt:[{pt:[M]}],pr:[{pr:[M]}],pb:[{pb:[M]}],pl:[{pl:[M]}],m:[{m:[k]}],mx:[{mx:[k]}],my:[{my:[k]}],ms:[{ms:[k]}],me:[{me:[k]}],mt:[{mt:[k]}],mr:[{mr:[k]}],mb:[{mb:[k]}],ml:[{ml:[k]}],"space-x":[{"space-x":[F]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[F]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",re,r]}],"min-w":[{"min-w":["min","max","fit",re,Pe]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[Ve]},Ve,re]}],h:[{h:[re,r,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",re,Pe]}],"max-h":[{"max-h":[re,r,"min","max","fit"]}],"font-size":[{text:["base",Ve,wt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",jr]}],"font-family":[{font:[ur]}],"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-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",re]}],"line-clamp":[{"line-clamp":["none",We,jr]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",re,Pe]}],"list-image":[{"list-image":["none",re]}],"list-style-type":[{list:["none","disc","decimal",re]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[T]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[T]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(G(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",Pe]}],"underline-offset":[{"underline-offset":["auto",re,Pe]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:j()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",re]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",re]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[T]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(V(),[Ni])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Li]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Di]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"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-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[T]}],"border-style":[{border:[].concat(G(),["hidden"])}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[T]}],"divide-style":[{divide:G()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:[""].concat(G())}],"outline-offset":[{"outline-offset":[re,Pe]}],"outline-w":[{outline:[Pe]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:H()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[T]}],"ring-offset-w":[{"ring-offset":[Pe]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Ve,zi]}],"shadow-color":[{shadow:[ur]}],opacity:[{opacity:[T]}],"mix-blend":[{"mix-blend":A()}],"bg-blend":[{"bg-blend":A()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[o]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",Ve,re]}],grayscale:[{grayscale:[g]}],"hue-rotate":[{"hue-rotate":[b]}],invert:[{invert:[y]}],saturate:[{saturate:[_]}],sepia:[{sepia:[O]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[b]}],"backdrop-invert":[{"backdrop-invert":[y]}],"backdrop-opacity":[{"backdrop-opacity":[T]}],"backdrop-saturate":[{"backdrop-saturate":[_]}],"backdrop-sepia":[{"backdrop-sepia":[O]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",re]}],duration:[{duration:S()}],ease:[{ease:["linear","in","out","in-out",re]}],delay:[{delay:S()}],animate:[{animate:["none","spin","ping","pulse","bounce",re]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[I]}],"scale-x":[{"scale-x":[I]}],"scale-y":[{"scale-y":[I]}],rotate:[{rotate:[dr,re]}],"translate-x":[{"translate-x":[L]}],"translate-y":[{"translate-y":[L]}],"skew-x":[{"skew-x":[P]}],"skew-y":[{"skew-y":[P]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",re]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],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",re]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"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","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",re]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Pe,jr]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"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"],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-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-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"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}function Gi(e,r){for(var t in r)Fn(e,t,r[t]);return e}var Wi=Object.prototype.hasOwnProperty,Ui=new Set(["string","number","boolean"]);function Fn(e,r,t){if(!Wi.call(e,r)||Ui.has(typeof t)||t===null){e[r]=t;return}if(Array.isArray(t)&&Array.isArray(e[r])){e[r]=e[r].concat(t);return}if(typeof t=="object"&&typeof e[r]=="object"){if(e[r]===null){e[r]=t;return}for(var o in t)Fn(e[r],o,t[o])}}function Ki(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),o=1;o<r;o++)t[o-1]=arguments[o];return typeof e=="function"?xt.apply(void 0,[mt,e].concat(t)):xt.apply(void 0,[function(){return Gi(mt(),e)}].concat(t))}var Yi=xt(mt),Xi={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},zn=e=>e||void 0,vr=(...e)=>zn(jn(e).filter(Boolean).join(" ")),dt=null,zr={},ht=!1,fr=(...e)=>r=>r.twMerge?((!dt||ht)&&(ht=!1,dt=me(zr)?Yi:Ki(zr)),zn(dt(vr(e)))):vr(e),Xo=(e,r)=>{for(let t in r)e.hasOwnProperty(t)?e[t]=vr(e[t],r[t]):e[t]=r[t];return e},qi=(e,r)=>{let{extend:t=null,slots:o={},variants:n={},compoundVariants:s=[],compoundSlots:i=[],defaultVariants:l={}}=e,u={...Xi,...r},g=t!=null&&t.base?vr(t.base,e==null?void 0:e.base):e==null?void 0:e.base,b=t!=null&&t.variants&&!me(t.variants)?_n(n,t.variants):n,y=t!=null&&t.defaultVariants&&!me(t.defaultVariants)?{...t.defaultVariants,...l}:l;!me(u.twMergeConfig)&&!$i(u.twMergeConfig,zr)&&(ht=!0,zr=u.twMergeConfig);let h=me(t==null?void 0:t.slots),v=me(o)?{}:{base:vr(e==null?void 0:e.base,h&&(t==null?void 0:t.base)),...o},x=h?v:Xo({...t==null?void 0:t.slots},me(v)?{base:e==null?void 0:e.base}:v),E=T=>{if(me(b)&&me(o)&&h)return fr(g,T==null?void 0:T.class,T==null?void 0:T.className)(u);if(s&&!Array.isArray(s))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof s}`);if(i&&!Array.isArray(i))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof i}`);let M=(j,H,z=[],V)=>{let G=z;if(typeof H=="string")G=G.concat(Wo(H).split(" ").map(A=>`${j}:${A}`));else if(Array.isArray(H))G=G.concat(H.reduce((A,U)=>A.concat(`${j}:${U}`),[]));else if(typeof H=="object"&&typeof V=="string"){for(let A in H)if(H.hasOwnProperty(A)&&A===V){let U=H[A];if(U&&typeof U=="string"){let Z=Wo(U);G[V]?G[V]=G[V].concat(Z.split(" ").map(Q=>`${j}:${Q}`)):G[V]=Z.split(" ").map(Q=>`${j}:${Q}`)}else Array.isArray(U)&&U.length>0&&(G[V]=U.reduce((Z,Q)=>Z.concat(`${j}:${Q}`),[]))}}return G},_=(j,H=b,z=null,V=null)=>{var G;let A=H[j];if(!A||me(A))return null;let U=(G=V==null?void 0:V[j])!=null?G:T==null?void 0:T[j];if(U===null)return null;let Z=Go(U),Q=Array.isArray(u.responsiveVariants)&&u.responsiveVariants.length>0||u.responsiveVariants===!0,$=y==null?void 0:y[j],S=[];if(typeof Z=="object"&&Q)for(let[Y,ee]of Object.entries(Z)){let ne=A[ee];if(Y==="initial"){$=ee;continue}Array.isArray(u.responsiveVariants)&&!u.responsiveVariants.includes(Y)||(S=M(Y,ne,S,z))}let W=A[Z]||A[Go($)];return typeof S=="object"&&typeof z=="string"&&S[z]?Xo(S,W):S.length>0?(S.push(W),S):W},I=()=>b?Object.keys(b).map(j=>_(j,b)):null,O=(j,H)=>{if(!b||typeof b!="object")return null;let z=new Array;for(let V in b){let G=_(V,b,j,H),A=j==="base"&&typeof G=="string"?G:G&&G[j];A&&(z[z.length]=A)}return z},P={};for(let j in T)T[j]!==void 0&&(P[j]=T[j]);let F=(j,H)=>{var z;let V=typeof(T==null?void 0:T[j])=="object"?{[j]:(z=T[j])==null?void 0:z.initial}:{};return{...y,...P,...V,...H}},L=(j=[],H)=>{let z=[];for(let{class:V,className:G,...A}of j){let U=!0;for(let[Z,Q]of Object.entries(A)){let $=F(Z,H);if(Array.isArray(Q)){if(!Q.includes($[Z])){U=!1;break}}else if($[Z]!==Q){U=!1;break}}U&&(V&&z.push(V),G&&z.push(G))}return z},N=j=>{let H=L(s,j),z=L(t==null?void 0:t.compoundVariants,j);return Mn(z,H)},J=j=>{let H=N(j);if(!Array.isArray(H))return H;let z={};for(let V of H)if(typeof V=="string"&&(z.base=fr(z.base,V)(u)),typeof V=="object")for(let[G,A]of Object.entries(V))z[G]=fr(z[G],A)(u);return z},q=j=>{if(i.length<1)return null;let H={};for(let{slots:z=[],class:V,className:G,...A}of i){if(!me(A)){let U=!0;for(let Z of Object.keys(A)){let Q=F(Z,j)[Z];if(Q===void 0||(Array.isArray(A[Z])?!A[Z].includes(Q):A[Z]!==Q)){U=!1;break}}if(!U)continue}for(let U of z)H[U]=H[U]||[],H[U].push([V,G])}return H};if(!me(o)||!h){let j={};if(typeof x=="object"&&!me(x))for(let H of Object.keys(x))j[H]=z=>{var V,G;return fr(x[H],O(H,z),((V=J(z))!=null?V:[])[H],((G=q(z))!=null?G:[])[H],z==null?void 0:z.class,z==null?void 0:z.className)(u)};return j}return fr(g,I(),N(),T==null?void 0:T.class,T==null?void 0:T.className)(u)},k=()=>{if(!(!b||typeof b!="object"))return Object.keys(b)};return E.variantKeys=k(),E.extend=t,E.base=g,E.slots=x,E.variants=b,E.defaultVariants=y,E.compoundSlots=i,E.compoundVariants=s,E},Mr=["small","medium","large"],Xr=(e,r)=>{var t,o,n;return qi(e,{...r,twMerge:(t=r==null?void 0:r.twMerge)!=null?t:!0,twMergeConfig:{...r==null?void 0:r.twMergeConfig,theme:{...(o=r==null?void 0:r.twMergeConfig)==null?void 0:o.theme,opacity:["disabled"],spacing:["divider"],borderWidth:Mr,borderRadius:Mr},classGroups:{...(n=r==null?void 0:r.twMergeConfig)==null?void 0:n.classGroups,shadow:[{shadow:Mr}],"font-size":[{text:["tiny",...Mr]}],"bg-image":["bg-stripe-gradient"]}}})},Vn=["outline-none","data-[focus-visible=true]:z-10","data-[focus-visible=true]:outline-2","data-[focus-visible=true]:outline-focus","data-[focus-visible=true]:outline-offset-2"],ut=["absolute","top-1/2","left-1/2","-translate-x-1/2","-translate-y-1/2"],qo=Xr({slots:{base:["z-0","relative","bg-transparent","before:content-['']","before:hidden","before:z-[-1]","before:absolute","before:rotate-45","before:w-2.5","before:h-2.5","before:rounded-sm","data-[arrow=true]:before:block","data-[placement=top]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top]:before:left-1/2","data-[placement=top]:before:-translate-x-1/2","data-[placement=top-start]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top-start]:before:left-3","data-[placement=top-end]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top-end]:before:right-3","data-[placement=bottom]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom]:before:left-1/2","data-[placement=bottom]:before:-translate-x-1/2","data-[placement=bottom-start]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom-start]:before:left-3","data-[placement=bottom-end]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom-end]:before:right-3","data-[placement=left]:before:-right-[calc(theme(spacing.5)/4_-_2px)]","data-[placement=left]:before:top-1/2","data-[placement=left]:before:-translate-y-1/2","data-[placement=left-start]:before:-right-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=left-start]:before:top-1/4","data-[placement=left-end]:before:-right-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=left-end]:before:bottom-1/4","data-[placement=right]:before:-left-[calc(theme(spacing.5)/4_-_2px)]","data-[placement=right]:before:top-1/2","data-[placement=right]:before:-translate-y-1/2","data-[placement=right-start]:before:-left-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=right-start]:before:top-1/4","data-[placement=right-end]:before:-left-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=right-end]:before:bottom-1/4",...Vn],content:["z-10","px-2.5","py-1","w-full","inline-flex","flex-col","items-center","justify-center","box-border","subpixel-antialiased","outline-none","box-border"],trigger:["z-10"],backdrop:["hidden"],arrow:[]},variants:{size:{sm:{content:"text-tiny"},md:{content:"text-small"},lg:{content:"text-medium"}},color:{default:{base:"before:bg-content1 before:shadow-small",content:"bg-content1"},foreground:{base:"before:bg-foreground",content:te.solid.foreground},primary:{base:"before:bg-primary",content:te.solid.primary},secondary:{base:"before:bg-secondary",content:te.solid.secondary},success:{base:"before:bg-success",content:te.solid.success},warning:{base:"before:bg-warning",content:te.solid.warning},danger:{base:"before:bg-danger",content:te.solid.danger}},radius:{none:{content:"rounded-none"},sm:{content:"rounded-small"},md:{content:"rounded-medium"},lg:{content:"rounded-large"},full:{content:"rounded-full"}},shadow:{sm:{content:"shadow-small"},md:{content:"shadow-medium"},lg:{content:"shadow-large"}},backdrop:{transparent:{},opaque:{backdrop:"bg-overlay/50 backdrop-opacity-disabled"},blur:{backdrop:"backdrop-blur-sm backdrop-saturate-150 bg-overlay/30"}},triggerScaleOnOpen:{true:{trigger:["aria-expanded:scale-[0.97]","aria-expanded:opacity-70","subpixel-antialiased"]},false:{}},disableAnimation:{true:{base:"animate-none"}},isTriggerDisabled:{true:{trigger:"opacity-disabled pointer-events-none"},false:{}}},defaultVariants:{color:"default",radius:"lg",size:"md",shadow:"md",backdrop:"transparent",disableAnimation:!1,triggerScaleOnOpen:!0},compoundVariants:[{backdrop:["opaque","blur"],class:{backdrop:"block w-full h-full fixed inset-0 -z-30"}}]}),Zi=Xr({slots:{base:["flex","relative","justify-center","items-center","box-border","overflow-hidden","align-middle","text-white","z-0",...Vn],img:["flex","object-cover","w-full","h-full","transition-opacity","!duration-500","opacity-0","data-[loaded=true]:opacity-100"],fallback:[...ut,"flex","items-center","justify-center"],name:[...ut,"font-normal","text-center","text-inherit"],icon:[...ut,"flex","items-center","justify-center","text-inherit","w-full","h-full"]},variants:{size:{sm:{base:"w-8 h-8 text-tiny"},md:{base:"w-10 h-10 text-tiny"},lg:{base:"w-14 h-14 text-small"}},color:{default:{base:te.solid.default},primary:{base:te.solid.primary},secondary:{base:te.solid.secondary},success:{base:te.solid.success},warning:{base:te.solid.warning},danger:{base:te.solid.danger}},radius:{none:{base:"rounded-none"},sm:{base:"rounded-small"},md:{base:"rounded-medium"},lg:{base:"rounded-large"},full:{base:"rounded-full"}},isBordered:{true:{base:"ring-2 ring-offset-2 ring-offset-background dark:ring-offset-background-dark"}},isDisabled:{true:{base:"opacity-disabled"}},isInGroup:{true:{base:["-ms-2 data-[hover=true]:-translate-x-3 rtl:data-[hover=true]:translate-x-3 transition-transform","data-[focus-visible=true]:-translate-x-3 rtl:data-[focus-visible=true]:translate-x-3"]}},isInGridGroup:{true:{base:"m-0 data-[hover=true]:translate-x-0"}}},defaultVariants:{size:"md",color:"default",radius:"full"},compoundVariants:[{color:"default",isBordered:!0,class:{base:"ring-default"}},{color:"primary",isBordered:!0,class:{base:"ring-primary"}},{color:"secondary",isBordered:!0,class:{base:"ring-secondary"}},{color:"success",isBordered:!0,class:{base:"ring-success"}},{color:"warning",isBordered:!0,class:{base:"ring-warning"}},{color:"danger",isBordered:!0,class:{base:"ring-danger"}}]}),Ji=Xr({slots:{base:"flex items-center justify-center h-auto w-max-content",count:"hover:-translate-x-0"},variants:{isGrid:{true:"inline-grid grid-cols-4 gap-3"}}}),Zo=Xr({slots:{base:["relative","inline-flex","shrink-0"],badge:["flex","z-10","flex-wrap","absolute","box-border","rounded-full","whitespace-nowrap","place-content-center","origin-center","items-center","text-inherit","select-none","font-regular","scale-100","opacity-100","subpixel-antialiased","data-[invisible=true]:scale-0","data-[invisible=true]:opacity-0"]},variants:{variant:{solid:{},flat:{},faded:{badge:"border-medium"},shadow:{}},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},size:{sm:{badge:"px-1 text-tiny"},md:{badge:"px-1 text-small"},lg:{badge:"px-1 text-small"}},placement:{"top-right":{},"top-left":{},"bottom-right":{},"bottom-left":{}},shape:{circle:{},rectangle:{}},isInvisible:{true:{}},isOneChar:{true:{badge:"px-0"}},isDot:{true:{}},disableAnimation:{true:{badge:"transition-none"},false:{badge:"transition-transform-opacity !ease-soft-spring !duration-300"}},showOutline:{true:{badge:"border-2 border-background"},false:{badge:"border-transparent border-0"}}},defaultVariants:{variant:"solid",color:"default",size:"md",shape:"rectangle",placement:"top-right",showOutline:!0,disableAnimation:!1,isInvisible:!1},compoundVariants:[{variant:"solid",color:"default",class:{badge:te.solid.default}},{variant:"solid",color:"primary",class:{badge:te.solid.primary}},{variant:"solid",color:"secondary",class:{badge:te.solid.secondary}},{variant:"solid",color:"success",class:{badge:te.solid.success}},{variant:"solid",color:"warning",class:{badge:te.solid.warning}},{variant:"solid",color:"danger",class:{badge:te.solid.danger}},{variant:"shadow",color:"default",class:{badge:te.shadow.default}},{variant:"shadow",color:"primary",class:{badge:te.shadow.primary}},{variant:"shadow",color:"secondary",class:{badge:te.shadow.secondary}},{variant:"shadow",color:"success",class:{badge:te.shadow.success}},{variant:"shadow",color:"warning",class:{badge:te.shadow.warning}},{variant:"shadow",color:"danger",class:{badge:te.shadow.danger}},{variant:"flat",color:"default",class:{badge:te.flat.default}},{variant:"flat",color:"primary",class:{badge:te.flat.primary}},{variant:"flat",color:"secondary",class:{badge:te.flat.secondary}},{variant:"flat",color:"success",class:{badge:te.flat.success}},{variant:"flat",color:"warning",class:{badge:te.flat.warning}},{variant:"flat",color:"danger",class:{badge:te.flat.danger}},{variant:"faded",color:"default",class:{badge:te.faded.default}},{variant:"faded",color:"primary",class:{badge:te.faded.primary}},{variant:"faded",color:"secondary",class:{badge:te.faded.secondary}},{variant:"faded",color:"success",class:{badge:te.faded.success}},{variant:"faded",color:"warning",class:{badge:te.faded.warning}},{variant:"faded",color:"danger",class:{badge:te.faded.danger}},{isOneChar:!0,size:"sm",class:{badge:"w-4 h-4 min-w-4 min-h-4"}},{isOneChar:!0,size:"md",class:{badge:"w-5 h-5 min-w-5 min-h-5"}},{isOneChar:!0,size:"lg",class:{badge:"w-6 h-6 min-w-6 min-h-6"}},{isDot:!0,size:"sm",class:{badge:"w-3 h-3 min-w-3 min-h-3"}},{isDot:!0,size:"md",class:{badge:"w-3.5 h-3.5 min-w-3.5 min-h-3.5"}},{isDot:!0,size:"lg",class:{badge:"w-4 h-4 min-w-4 min-h-4"}},{placement:"top-right",shape:"rectangle",class:{badge:"top-[5%] right-[5%] translate-x-1/2 -translate-y-1/2"}},{placement:"top-left",shape:"rectangle",class:{badge:"top-[5%] left-[5%] -translate-x-1/2 -translate-y-1/2"}},{placement:"bottom-right",shape:"rectangle",class:{badge:"bottom-[5%] right-[5%] translate-x-1/2 translate-y-1/2"}},{placement:"bottom-left",shape:"rectangle",class:{badge:"bottom-[5%] left-[5%] -translate-x-1/2 translate-y-1/2"}},{placement:"top-right",shape:"circle",class:{badge:"top-[10%] right-[10%] translate-x-1/2 -translate-y-1/2"}},{placement:"top-left",shape:"circle",class:{badge:"top-[10%] left-[10%] -translate-x-1/2 -translate-y-1/2"}},{placement:"bottom-right",shape:"circle",class:{badge:"bottom-[10%] right-[10%] translate-x-1/2 translate-y-1/2"}},{placement:"bottom-left",shape:"circle",class:{badge:"bottom-[10%] left-[10%] -translate-x-1/2 translate-y-1/2"}}]});const Ke=typeof document<"u"?d.useLayoutEffect:()=>{};function Ct(e){const r=d.useRef(null);return Ke(()=>{r.current=e},[e]),d.useCallback((...t)=>{const o=r.current;return o==null?void 0:o(...t)},[])}const Vr={prefix:String(Math.round(Math.random()*1e10)),current:0},Bn=d.createContext(Vr),Qi=d.createContext(!1);let el=!!(typeof window<"u"&&window.document&&window.document.createElement),ft=new WeakMap;function rl(e=!1){let r=d.useContext(Bn),t=d.useRef(null);if(t.current===null&&!e){var o,n;let s=(n=d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||n===void 0||(o=n.ReactCurrentOwner)===null||o===void 0?void 0:o.current;if(s){let i=ft.get(s);i==null?ft.set(s,{id:r.current,state:s.memoizedState}):s.memoizedState!==i.state&&(r.current=i.id,ft.delete(s))}t.current=++r.current}return t.current}function tl(e){let r=d.useContext(Bn);r===Vr&&!el&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let t=rl(!!e),o=r===Vr&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${r.prefix}`;return e||`${o}-${t}`}function ol(e){let r=d.useId(),[t]=d.useState(Kt()),o=t||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Vr.prefix}`;return e||`${o}-${r}`}const nl=typeof d.useId=="function"?ol:tl;function al(){return!1}function sl(){return!0}function il(e){return()=>{}}function Kt(){return typeof d.useSyncExternalStore=="function"?d.useSyncExternalStore(il,al,sl):d.useContext(Qi)}let ll=!!(typeof window<"u"&&window.document&&window.document.createElement),Br=new Map;function cl(e){let[r,t]=d.useState(e),o=d.useRef(null),n=nl(r),s=d.useCallback(i=>{o.current=i},[]);return ll&&Br.set(n,s),Ke(()=>{let i=n;return()=>{Br.delete(i)}},[n]),d.useEffect(()=>{let i=o.current;i&&(o.current=null,t(i))}),n}function dl(e,r){if(e===r)return e;let t=Br.get(e);if(t)return t(r),r;let o=Br.get(r);return o?(o(e),e):r}function ul(...e){return(...r)=>{for(let t of e)typeof t=="function"&&t(...r)}}const qe=e=>{var r;return(r=e==null?void 0:e.ownerDocument)!==null&&r!==void 0?r:document},Ue=e=>e&&"window"in e&&e.window===e?e:qe(e).defaultView||window;function Hn(e){var r,t,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(r=0;r<n;r++)e[r]&&(t=Hn(e[r]))&&(o&&(o+=" "),o+=t)}else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function fl(){for(var e,r,t=0,o="",n=arguments.length;t<n;t++)(e=arguments[t])&&(r=Hn(e))&&(o&&(o+=" "),o+=r);return o}function ke(...e){let r={...e[0]};for(let t=1;t<e.length;t++){let o=e[t];for(let n in o){let s=r[n],i=o[n];typeof s=="function"&&typeof i=="function"&&n[0]==="o"&&n[1]==="n"&&n.charCodeAt(2)>=65&&n.charCodeAt(2)<=90?r[n]=ul(s,i):(n==="className"||n==="UNSAFE_className")&&typeof s=="string"&&typeof i=="string"?r[n]=fl(s,i):n==="id"&&s&&i?r.id=dl(s,i):r[n]=i!==void 0?i:s}}return r}const pl=new Set(["id"]),bl=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),gl=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),vl=/^(data-.*)$/;function yl(e,r={}){let{labelable:t,isLink:o,propNames:n}=r,s={};for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(pl.has(i)||t&&bl.has(i)||o&&gl.has(i)||n!=null&&n.has(i)||vl.test(i))&&(s[i]=e[i]);return s}function Jo(e){if($l())e.focus({preventScroll:!0});else{let r=xl(e);e.focus(),wl(r)}}let _r=null;function $l(){if(_r==null){_r=!1;try{document.createElement("div").focus({get preventScroll(){return _r=!0,!0}})}catch{}}return _r}function xl(e){let r=e.parentNode,t=[],o=document.scrollingElement||document.documentElement;for(;r instanceof HTMLElement&&r!==o;)(r.offsetHeight<r.scrollHeight||r.offsetWidth<r.scrollWidth)&&t.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),r=r.parentNode;return o instanceof HTMLElement&&t.push({element:o,scrollTop:o.scrollTop,scrollLeft:o.scrollLeft}),t}function wl(e){for(let{element:r,scrollTop:t,scrollLeft:o}of e)r.scrollTop=t,r.scrollLeft=o}function Yt(e){var r;return typeof window>"u"||window.navigator==null?!1:((r=window.navigator.userAgentData)===null||r===void 0?void 0:r.brands.some(t=>e.test(t.brand)))||e.test(window.navigator.userAgent)}function ml(e){var r;return typeof window<"u"&&window.navigator!=null?e.test(((r=window.navigator.userAgentData)===null||r===void 0?void 0:r.platform)||window.navigator.platform):!1}function hl(){return ml(/^Mac/i)}function Cl(){return Yt(/AppleWebKit/i)&&!El()}function El(){return Yt(/Chrome/i)}function kl(){return Yt(/Android/i)}let rr=new Map,Et=new Set;function Qo(){if(typeof window>"u")return;function e(o){return"propertyName"in o}let r=o=>{if(!e(o)||!o.target)return;let n=rr.get(o.target);n||(n=new Set,rr.set(o.target,n),o.target.addEventListener("transitioncancel",t,{once:!0})),n.add(o.propertyName)},t=o=>{if(!e(o)||!o.target)return;let n=rr.get(o.target);if(n&&(n.delete(o.propertyName),n.size===0&&(o.target.removeEventListener("transitioncancel",t),rr.delete(o.target)),rr.size===0)){for(let s of Et)s();Et.clear()}};document.body.addEventListener("transitionrun",r),document.body.addEventListener("transitionend",t)}typeof document<"u"&&(document.readyState!=="loading"?Qo():document.addEventListener("DOMContentLoaded",Qo));function Sl(e){requestAnimationFrame(()=>{rr.size===0?e():Et.add(e)})}function Tl(e){const r=d.useRef(null);return d.useMemo(()=>({get current(){return r.current},set current(t){r.current=t,typeof e=="function"?e(t):e&&(e.current=t)}}),[e])}function Pl(){return typeof window.ResizeObserver<"u"}function Rl(e){const{ref:r,onResize:t}=e;d.useEffect(()=>{let o=r==null?void 0:r.current;if(o)if(Pl()){const n=new window.ResizeObserver(s=>{s.length&&t()});return n.observe(o),()=>{o&&n.unobserve(o)}}else return window.addEventListener("resize",t,!1),()=>{window.removeEventListener("resize",t,!1)}},[t,r])}function Gn(e,r){Ke(()=>{if(e&&e.ref&&r)return e.ref.current=r.current,()=>{e.ref&&(e.ref.current=null)}})}function Ol(e){return e.mozInputSource===0&&e.isTrusted?!0:kl()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Wn(e,r,t){let[o,n]=d.useState(e||r),s=d.useRef(e!==void 0),i=e!==void 0;d.useEffect(()=>{let g=s.current;g!==i&&console.warn(`WARN: A component changed from ${g?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}.`),s.current=i},[i]);let l=i?e:o,u=d.useCallback((g,...b)=>{let y=(h,...v)=>{t&&(Object.is(l,h)||t(h,...v)),i||(l=h)};typeof g=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),n((v,...x)=>{let E=g(i?l:v,...x);return y(E,...b),i?v:E})):(i||n(g),y(g,...b))},[i,l,t]);return[l,u]}function kt(e,r=-1/0,t=1/0){return Math.min(Math.max(e,r),t)}const St=d.createContext({register:()=>{}});St.displayName="PressResponderContext";const jl=d.forwardRef(({children:e,...r},t)=>{let o=d.useRef(!1),n=d.useContext(St);t=Tl(t||(n==null?void 0:n.ref));let s=ke(n||{},{...r,ref:t,register(){o.current=!0,n&&n.register()}});return Gn(n,t),d.useEffect(()=>{o.current||(console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component."),o.current=!0)},[]),d.createElement(St.Provider,{value:s},e)});class Ml{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(r,t){this.nativeEvent=t,this.target=t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=r}}function Un(e){let r=d.useRef({isFocused:!1,observer:null});Ke(()=>{const o=r.current;return()=>{o.observer&&(o.observer.disconnect(),o.observer=null)}},[]);let t=Ct(o=>{e==null||e(o)});return d.useCallback(o=>{if(o.target instanceof HTMLButtonElement||o.target instanceof HTMLInputElement||o.target instanceof HTMLTextAreaElement||o.target instanceof HTMLSelectElement){r.current.isFocused=!0;let n=o.target,s=i=>{r.current.isFocused=!1,n.disabled&&t(new Ml("blur",i)),r.current.observer&&(r.current.observer.disconnect(),r.current.observer=null)};n.addEventListener("focusout",s,{once:!0}),r.current.observer=new MutationObserver(()=>{if(r.current.isFocused&&n.disabled){var i;(i=r.current.observer)===null||i===void 0||i.disconnect();let l=n===document.activeElement?null:document.activeElement;n.dispatchEvent(new FocusEvent("blur",{relatedTarget:l})),n.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:l}))}}),r.current.observer.observe(n,{attributes:!0,attributeFilter:["disabled"]})}},[t])}function Kn(e){let{isDisabled:r,onFocus:t,onBlur:o,onFocusChange:n}=e;const s=d.useCallback(u=>{if(u.target===u.currentTarget)return o&&o(u),n&&n(!1),!0},[o,n]),i=Un(s),l=d.useCallback(u=>{const g=qe(u.target);u.target===u.currentTarget&&g.activeElement===u.target&&(t&&t(u),n&&n(!0),i(u))},[n,t,i]);return{focusProps:{onFocus:!r&&(t||n||o)?l:void 0,onBlur:!r&&(o||n)?s:void 0}}}let sr=null,Tt=new Set,gr=new Map,Ye=!1,Pt=!1;const _l={Tab:!0,Escape:!0};function Xt(e,r){for(let t of Tt)t(e,r)}function Il(e){return!(e.metaKey||!hl()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Hr(e){Ye=!0,Il(e)&&(sr="keyboard",Xt("keyboard",e))}function Ce(e){sr="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Ye=!0,Xt("pointer",e))}function Yn(e){Ol(e)&&(Ye=!0,sr="virtual")}function Xn(e){e.target===window||e.target===document||(!Ye&&!Pt&&(sr="virtual",Xt("virtual",e)),Ye=!1,Pt=!1)}function qn(){Ye=!1,Pt=!0}function Rt(e){if(typeof window>"u"||gr.get(Ue(e)))return;const r=Ue(e),t=qe(e);let o=r.HTMLElement.prototype.focus;r.HTMLElement.prototype.focus=function(){Ye=!0,o.apply(this,arguments)},t.addEventListener("keydown",Hr,!0),t.addEventListener("keyup",Hr,!0),t.addEventListener("click",Yn,!0),r.addEventListener("focus",Xn,!0),r.addEventListener("blur",qn,!1),typeof PointerEvent<"u"?(t.addEventListener("pointerdown",Ce,!0),t.addEventListener("pointermove",Ce,!0),t.addEventListener("pointerup",Ce,!0)):(t.addEventListener("mousedown",Ce,!0),t.addEventListener("mousemove",Ce,!0),t.addEventListener("mouseup",Ce,!0)),r.addEventListener("beforeunload",()=>{Zn(e)},{once:!0}),gr.set(r,{focus:o})}const Zn=(e,r)=>{const t=Ue(e),o=qe(e);r&&o.removeEventListener("DOMContentLoaded",r),gr.has(t)&&(t.HTMLElement.prototype.focus=gr.get(t).focus,o.removeEventListener("keydown",Hr,!0),o.removeEventListener("keyup",Hr,!0),o.removeEventListener("click",Yn,!0),t.removeEventListener("focus",Xn,!0),t.removeEventListener("blur",qn,!1),typeof PointerEvent<"u"?(o.removeEventListener("pointerdown",Ce,!0),o.removeEventListener("pointermove",Ce,!0),o.removeEventListener("pointerup",Ce,!0)):(o.removeEventListener("mousedown",Ce,!0),o.removeEventListener("mousemove",Ce,!0),o.removeEventListener("mouseup",Ce,!0)),gr.delete(t))};function Al(e){const r=qe(e);let t;return r.readyState!=="loading"?Rt(e):(t=()=>{Rt(e)},r.addEventListener("DOMContentLoaded",t)),()=>Zn(e,t)}typeof document<"u"&&Al();function qt(){return sr!=="pointer"}function Jn(){return sr}const Ll=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Nl(e,r,t){var o;const n=typeof window<"u"?Ue(t==null?void 0:t.target).HTMLInputElement:HTMLInputElement,s=typeof window<"u"?Ue(t==null?void 0:t.target).HTMLTextAreaElement:HTMLTextAreaElement,i=typeof window<"u"?Ue(t==null?void 0:t.target).HTMLElement:HTMLElement,l=typeof window<"u"?Ue(t==null?void 0:t.target).KeyboardEvent:KeyboardEvent;return e=e||(t==null?void 0:t.target)instanceof n&&!Ll.has(t==null||(o=t.target)===null||o===void 0?void 0:o.type)||(t==null?void 0:t.target)instanceof s||(t==null?void 0:t.target)instanceof i&&(t==null?void 0:t.target.isContentEditable),!(e&&r==="keyboard"&&t instanceof l&&!_l[t.key])}function Dl(e,r,t){Rt(),d.useEffect(()=>{let o=(n,s)=>{Nl(!!(t!=null&&t.isTextInput),n,s)&&e(qt())};return Tt.add(o),()=>{Tt.delete(o)}},r)}function Qn(e){let{isDisabled:r,onBlurWithin:t,onFocusWithin:o,onFocusWithinChange:n}=e,s=d.useRef({isFocusWithin:!1}),i=d.useCallback(g=>{s.current.isFocusWithin&&!g.currentTarget.contains(g.relatedTarget)&&(s.current.isFocusWithin=!1,t&&t(g),n&&n(!1))},[t,n,s]),l=Un(i),u=d.useCallback(g=>{!s.current.isFocusWithin&&document.activeElement===g.target&&(o&&o(g),n&&n(!0),s.current.isFocusWithin=!0,l(g))},[o,n,l]);return r?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:u,onBlur:i}}}let Gr=!1,pt=0;function Ot(){Gr=!0,setTimeout(()=>{Gr=!1},50)}function en(e){e.pointerType==="touch"&&Ot()}function Fl(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",en):document.addEventListener("touchend",Ot),pt++,()=>{pt--,!(pt>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",en):document.removeEventListener("touchend",Ot))}}function Zt(e){let{onHoverStart:r,onHoverChange:t,onHoverEnd:o,isDisabled:n}=e,[s,i]=d.useState(!1),l=d.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;d.useEffect(Fl,[]);let{hoverProps:u,triggerHoverEnd:g}=d.useMemo(()=>{let b=(v,x)=>{if(l.pointerType=x,n||x==="touch"||l.isHovered||!v.currentTarget.contains(v.target))return;l.isHovered=!0;let E=v.currentTarget;l.target=E,r&&r({type:"hoverstart",target:E,pointerType:x}),t&&t(!0),i(!0)},y=(v,x)=>{if(l.pointerType="",l.target=null,x==="touch"||!l.isHovered)return;l.isHovered=!1;let E=v.currentTarget;o&&o({type:"hoverend",target:E,pointerType:x}),t&&t(!1),i(!1)},h={};return typeof PointerEvent<"u"?(h.onPointerEnter=v=>{Gr&&v.pointerType==="mouse"||b(v,v.pointerType)},h.onPointerLeave=v=>{!n&&v.currentTarget.contains(v.target)&&y(v,v.pointerType)}):(h.onTouchStart=()=>{l.ignoreEmulatedMouseEvents=!0},h.onMouseEnter=v=>{!l.ignoreEmulatedMouseEvents&&!Gr&&b(v,"mouse"),l.ignoreEmulatedMouseEvents=!1},h.onMouseLeave=v=>{!n&&v.currentTarget.contains(v.target)&&y(v,"mouse")}),{hoverProps:h,triggerHoverEnd:y}},[r,t,o,n,l]);return d.useEffect(()=>{n&&g({currentTarget:l.target},l.pointerType)},[n]),{hoverProps:u,isHovered:s}}function zl(e){let{ref:r,onInteractOutside:t,isDisabled:o,onInteractOutsideStart:n}=e,s=d.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),i=Ct(u=>{t&&Ir(u,r)&&(n&&n(u),s.current.isPointerDown=!0)}),l=Ct(u=>{t&&t(u)});d.useEffect(()=>{let u=s.current;if(o)return;const g=r.current,b=qe(g);if(typeof PointerEvent<"u"){let y=h=>{u.isPointerDown&&Ir(h,r)&&l(h),u.isPointerDown=!1};return b.addEventListener("pointerdown",i,!0),b.addEventListener("pointerup",y,!0),()=>{b.removeEventListener("pointerdown",i,!0),b.removeEventListener("pointerup",y,!0)}}else{let y=v=>{u.ignoreEmulatedMouseEvents?u.ignoreEmulatedMouseEvents=!1:u.isPointerDown&&Ir(v,r)&&l(v),u.isPointerDown=!1},h=v=>{u.ignoreEmulatedMouseEvents=!0,u.isPointerDown&&Ir(v,r)&&l(v),u.isPointerDown=!1};return b.addEventListener("mousedown",i,!0),b.addEventListener("mouseup",y,!0),b.addEventListener("touchstart",i,!0),b.addEventListener("touchend",h,!0),()=>{b.removeEventListener("mousedown",i,!0),b.removeEventListener("mouseup",y,!0),b.removeEventListener("touchstart",i,!0),b.removeEventListener("touchend",h,!0)}}},[r,o,i,l])}function Ir(e,r){if(e.button>0)return!1;if(e.target){const t=e.target.ownerDocument;if(!t||!t.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return r.current&&!r.current.contains(e.target)}function rn(e){if(!e)return;let r=!0;return t=>{let o={...t,preventDefault(){t.preventDefault()},isDefaultPrevented(){return t.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){r=!1}};e(o),r&&t.stopPropagation()}}function Vl(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:rn(e.onKeyDown),onKeyUp:rn(e.onKeyUp)}}}function Bl(e){const r=qe(e);if(Jn()==="virtual"){let t=r.activeElement;Sl(()=>{r.activeElement===t&&e.isConnected&&Jo(e)})}else Jo(e)}let Hl=null;function ea(e,r){return!e||!r?!1:r.some(t=>t.contains(e))}function Gl(e,r=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:t}of on.traverse(on.getTreeNode(r)))if(t&&ea(e,t.current))return!0;return!1}function Wl(e){return Gl(e,Hl)}class Jt{get size(){return this.fastMap.size}getTreeNode(r){return this.fastMap.get(r)}addTreeNode(r,t,o){let n=this.fastMap.get(t??null);if(!n)return;let s=new tn({scopeRef:r});n.addChild(s),s.parent=n,this.fastMap.set(r,s),o&&(s.nodeToRestore=o)}addNode(r){this.fastMap.set(r.scopeRef,r)}removeTreeNode(r){if(r===null)return;let t=this.fastMap.get(r);if(!t)return;let o=t.parent;for(let s of this.traverse())s!==t&&t.nodeToRestore&&s.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&ea(s.nodeToRestore,t.scopeRef.current)&&(s.nodeToRestore=t.nodeToRestore);let n=t.children;o&&(o.removeChild(t),n.size>0&&n.forEach(s=>o&&o.addChild(s))),this.fastMap.delete(t.scopeRef)}*traverse(r=this.root){if(r.scopeRef!=null&&(yield r),r.children.size>0)for(let t of r.children)yield*this.traverse(t)}clone(){var r;let t=new Jt;var o;for(let n of this.traverse())t.addTreeNode(n.scopeRef,(o=(r=n.parent)===null||r===void 0?void 0:r.scopeRef)!==null&&o!==void 0?o:null,n.nodeToRestore);return t}constructor(){this.fastMap=new Map,this.root=new tn({scopeRef:null}),this.fastMap.set(null,this.root)}}class tn{addChild(r){this.children.add(r),r.parent=this}removeChild(r){this.children.delete(r),r.parent=void 0}constructor(r){this.children=new Set,this.contain=!1,this.scopeRef=r.scopeRef}}let on=new Jt;function Ul(e={}){let{autoFocus:r=!1,isTextInput:t,within:o}=e,n=d.useRef({isFocused:!1,isFocusVisible:r||qt()}),[s,i]=d.useState(!1),[l,u]=d.useState(()=>n.current.isFocused&&n.current.isFocusVisible),g=d.useCallback(()=>u(n.current.isFocused&&n.current.isFocusVisible),[]),b=d.useCallback(v=>{n.current.isFocused=v,i(v),g()},[g]);Dl(v=>{n.current.isFocusVisible=v,g()},[],{isTextInput:t});let{focusProps:y}=Kn({isDisabled:o,onFocusChange:b}),{focusWithinProps:h}=Qn({isDisabled:!o,onFocusWithinChange:b});return{isFocused:s,isFocusVisible:l,focusProps:o?h:y}}let Kl=d.createContext(null);function Yl(e){let r=d.useContext(Kl)||{};Gn(r,e);let{ref:t,...o}=r;return o}function Xl(e,r){let{focusProps:t}=Kn(e),{keyboardProps:o}=Vl(e),n=ke(t,o),s=Yl(r),i=e.isDisabled?{}:s,l=d.useRef(e.autoFocus);return d.useEffect(()=>{l.current&&r.current&&Bl(r.current),l.current=!1},[r]),{focusableProps:ke({...n,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},i)}}var ra=globalThis!=null&&globalThis.document?d.useLayoutEffect:d.useEffect;function ql(e={}){const{loading:r,src:t,srcSet:o,onLoad:n,onError:s,crossOrigin:i,sizes:l,ignoreFallback:u}=e,[g,b]=d.useState("pending");d.useEffect(()=>{b(t?"loading":"pending")},[t]);const y=d.useRef(),h=d.useCallback(()=>{if(!t)return;v();const x=new Image;x.src=t,i&&(x.crossOrigin=i),o&&(x.srcset=o),l&&(x.sizes=l),r&&(x.loading=r),x.onload=E=>{v(),b("loaded"),n==null||n(E)},x.onerror=E=>{v(),b("failed"),s==null||s(E)},y.current=x},[t,i,o,l,n,s,r]),v=()=>{y.current&&(y.current.onload=null,y.current.onerror=null,y.current=null)};return ra(()=>{if(!u)return g==="loading"&&h(),()=>{v()}},[g,h,u]),u?"loaded":g}function Zl(e={}){var r,t,o,n,s;const i=Rn(),l=!!i,{as:u,ref:g,src:b,name:y,icon:h,classNames:v,fallback:x,alt:E=y||"avatar",imgRef:k,color:T=(r=i==null?void 0:i.color)!=null?r:"default",radius:M=(t=i==null?void 0:i.radius)!=null?t:"full",size:_=(o=i==null?void 0:i.size)!=null?o:"md",isBordered:I=(n=i==null?void 0:i.isBordered)!=null?n:!1,isDisabled:O=(s=i==null?void 0:i.isDisabled)!=null?s:!1,isFocusable:P=!1,getInitials:F=Ys,ignoreFallback:L=!1,showFallback:N=!1,ImgComponent:J="img",imgProps:q,className:j,onError:H,...z}=e,V=u||"span",G=yt(g),A=yt(k),{isFocusVisible:U,isFocused:Z,focusProps:Q}=Ul(),{isHovered:$,hoverProps:S}=Zt({isDisabled:O}),Y=ql({src:b,onError:H,ignoreFallback:L})==="loaded",ee=(!b||!Y)&&N,ne=d.useMemo(()=>{var Te;return Zi({color:T,radius:M,size:_,isBordered:I,isDisabled:O,isInGroup:l,isInGridGroup:(Te=i==null?void 0:i.isGrid)!=null?Te:!1})},[T,M,_,I,O,l,i==null?void 0:i.isGrid]),se=nr(v==null?void 0:v.base,j),ae=d.useMemo(()=>P||u==="button",[P,u]),ie=d.useCallback((Te={})=>({ref:G,tabIndex:ae?0:-1,"data-hover":_e($),"data-focus":_e(Z),"data-focus-visible":_e(U),className:ne.base({class:nr(se,Te==null?void 0:Te.className)}),...ke(z,S,ae?Q:{})}),[ae,ne,se,Q,z]),ve=d.useCallback((Te={})=>({ref:A,src:b,"data-loaded":_e(Y),className:ne.img({class:v==null?void 0:v.img}),...ke(q,Te)}),[ne,Y,q,b,A]);return{Component:V,ImgComponent:J,src:b,alt:E,icon:h,name:y,imgRef:A,slots:ne,classNames:v,fallback:x,isImgLoaded:Y,showFallback:ee,ignoreFallback:L,getInitials:F,getAvatarProps:ie,getImageProps:ve}}const Jl=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Ql=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function ec(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize(),o=typeof t.getTextInfo=="function"?t.getTextInfo():t.textInfo;if(o)return o.direction==="rtl";if(t.script)return Jl.has(t.script)}let r=e.split("-")[0];return Ql.has(r)}const rc=Symbol.for("react-aria.i18n.locale");function ta(){let e=typeof window<"u"&&window[rc]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:ec(e)?"rtl":"ltr"}}let jt=ta(),br=new Set;function nn(){jt=ta();for(let e of br)e(jt)}function tc(){let e=Kt(),[r,t]=d.useState(jt);return d.useEffect(()=>(br.size===0&&window.addEventListener("languagechange",nn),br.add(t),()=>{br.delete(t),br.size===0&&window.removeEventListener("languagechange",nn)}),[]),e?{locale:"en-US",direction:"ltr"}:r}const oc=d.createContext(null);function nc(){let e=tc();return d.useContext(oc)||e}const tr={top:"top",bottom:"top",left:"left",right:"left"},Wr={top:"bottom",bottom:"top",left:"right",right:"left"},ac={top:"left",left:"top"},Mt={top:"height",left:"width"},oa={width:"totalWidth",height:"totalHeight"},Ar={};let we=typeof document<"u"&&window.visualViewport;function an(e){let r=0,t=0,o=0,n=0,s=0,i=0,l={},u=(we==null?void 0:we.scale)>1;if(e.tagName==="BODY"){let y=document.documentElement;o=y.clientWidth,n=y.clientHeight;var g;r=(g=we==null?void 0:we.width)!==null&&g!==void 0?g:o;var b;t=(b=we==null?void 0:we.height)!==null&&b!==void 0?b:n,l.top=y.scrollTop||e.scrollTop,l.left=y.scrollLeft||e.scrollLeft,we&&(s=we.offsetTop,i=we.offsetLeft)}else({width:r,height:t,top:s,left:i}=or(e)),l.top=e.scrollTop,l.left=e.scrollLeft,o=r,n=t;return Cl()&&(e.tagName==="BODY"||e.tagName==="HTML")&&u&&(l.top=0,l.left=0,s=we.pageTop,i=we.pageLeft),{width:r,height:t,totalWidth:o,totalHeight:n,scroll:l,top:s,left:i}}function sc(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function sn(e,r,t,o,n,s,i){let l=n.scroll[e],u=o[Mt[e]],g=o.scroll[tr[e]]+s,b=u+o.scroll[tr[e]]-s,y=r-l+i[e]-o[tr[e]],h=r-l+t+i[e]-o[tr[e]];return y<g?g-y:h>b?Math.max(b-h,g-y):0}function ic(e){let r=window.getComputedStyle(e);return{top:parseInt(r.marginTop,10)||0,bottom:parseInt(r.marginBottom,10)||0,left:parseInt(r.marginLeft,10)||0,right:parseInt(r.marginRight,10)||0}}function ln(e){if(Ar[e])return Ar[e];let[r,t]=e.split(" "),o=tr[r]||"right",n=ac[o];tr[t]||(t="center");let s=Mt[o],i=Mt[n];return Ar[e]={placement:r,crossPlacement:t,axis:o,crossAxis:n,size:s,crossSize:i},Ar[e]}function bt(e,r,t,o,n,s,i,l,u,g){let{placement:b,crossPlacement:y,axis:h,crossAxis:v,size:x,crossSize:E}=o,k={};k[v]=e[v],y==="center"?k[v]+=(e[E]-t[E])/2:y!==v&&(k[v]+=e[E]-t[E]),k[v]+=s;const T=e[v]-t[E]+u+g,M=e[v]+e[E]-u-g;if(k[v]=kt(k[v],T,M),b===h){const _=l?i[x]:r[oa[x]];k[Wr[h]]=Math.floor(_-e[h]+n)}else k[h]=Math.floor(e[h]+e[x]+n);return k}function lc(e,r,t,o,n,s,i,l){const u=o?t.height:r[oa.height];let g=e.top!=null?t.top+e.top:t.top+(u-e.bottom-i),b=l!=="top"?Math.max(0,r.height+r.top+r.scroll.top-g-(n.top+n.bottom+s)):Math.max(0,g+i-(r.top+r.scroll.top)-(n.top+n.bottom+s));return Math.min(r.height-s*2,b)}function cn(e,r,t,o,n,s){let{placement:i,axis:l,size:u}=s;return i===l?Math.max(0,t[l]-e[l]-e.scroll[l]+r[l]-o[l]-o[Wr[l]]-n):Math.max(0,e[u]+e[l]+e.scroll[l]-r[l]-t[l]-t[u]-o[l]-o[Wr[l]]-n)}function cc(e,r,t,o,n,s,i,l,u,g,b,y,h,v,x,E){let k=ln(e),{size:T,crossAxis:M,crossSize:_,placement:I,crossPlacement:O}=k,P=bt(r,l,t,k,b,y,g,h,x,E),F=b,L=cn(l,g,r,n,s+b,k);if(i&&o[T]>L){let Z=ln(`${Wr[I]} ${O}`),Q=bt(r,l,t,Z,b,y,g,h,x,E);cn(l,g,r,n,s+b,Z)>L&&(k=Z,P=Q,F=b)}let N="bottom";k.axis==="top"?k.placement==="top"?N="top":k.placement==="bottom"&&(N="bottom"):k.crossAxis==="top"&&(k.crossPlacement==="top"?N="bottom":k.crossPlacement==="bottom"&&(N="top"));let J=sn(M,P[M],t[_],l,u,s,g);P[M]+=J;let q=lc(P,l,g,h,n,s,t.height,N);v&&v<q&&(q=v),t.height=Math.min(t.height,q),P=bt(r,l,t,k,F,y,g,h,x,E),J=sn(M,P[M],t[_],l,u,s,g),P[M]+=J;let j={},H=r[M]+.5*r[_]-t[M];const z=x/2+E,V=t[_]-x/2-E,G=r[M]-t[M]+x/2,A=r[M]+r[_]-t[M]-x/2,U=kt(H,G,A);return j[M]=kt(U,z,V),{position:P,maxHeight:q,arrowOffsetLeft:j.left,arrowOffsetTop:j.top,placement:k.placement}}function dc(e){let{placement:r,targetNode:t,overlayNode:o,scrollNode:n,padding:s,shouldFlip:i,boundaryElement:l,offset:u,crossOffset:g,maxHeight:b,arrowSize:y=0,arrowBoundaryOffset:h=0}=e,v=o instanceof HTMLElement?uc(o):document.documentElement,x=v===document.documentElement;const E=window.getComputedStyle(v).position;let k=!!E&&E!=="static",T=x?or(t):dn(t,v);if(!x){let{marginTop:L,marginLeft:N}=window.getComputedStyle(t);T.top+=parseInt(L,10)||0,T.left+=parseInt(N,10)||0}let M=or(o),_=ic(o);M.width+=_.left+_.right,M.height+=_.top+_.bottom;let I=sc(n),O=an(l),P=an(v),F=l.tagName==="BODY"?or(v):dn(v,l);return v.tagName==="HTML"&&l.tagName==="BODY"&&(P.scroll.top=0,P.scroll.left=0),cc(r,T,M,I,_,s,i,O,P,F,u,g,k,b,y,h)}function or(e){let{top:r,left:t,width:o,height:n}=e.getBoundingClientRect(),{scrollTop:s,scrollLeft:i,clientTop:l,clientLeft:u}=document.documentElement;return{top:r+s-l,left:t+i-u,width:o,height:n}}function dn(e,r){let t=window.getComputedStyle(e),o;if(t.position==="fixed"){let{top:n,left:s,width:i,height:l}=e.getBoundingClientRect();o={top:n,left:s,width:i,height:l}}else{o=or(e);let n=or(r),s=window.getComputedStyle(r);n.top+=(parseInt(s.borderTopWidth,10)||0)-r.scrollTop,n.left+=(parseInt(s.borderLeftWidth,10)||0)-r.scrollLeft,o.top-=n.top,o.left-=n.left}return o.top-=parseInt(t.marginTop,10)||0,o.left-=parseInt(t.marginLeft,10)||0,o}function uc(e){let r=e.offsetParent;if(r&&r===document.body&&window.getComputedStyle(r).position==="static"&&!un(r)&&(r=document.documentElement),r==null)for(r=e.parentElement;r&&!un(r);)r=r.parentElement;return r||document.documentElement}function un(e){let r=window.getComputedStyle(e);return r.transform!=="none"||/transform|perspective/.test(r.willChange)||r.filter!=="none"||r.contain==="paint"||"backdropFilter"in r&&r.backdropFilter!=="none"||"WebkitBackdropFilter"in r&&r.WebkitBackdropFilter!=="none"}const fc=new WeakMap;function pc(e){let{triggerRef:r,isOpen:t,onClose:o}=e;d.useEffect(()=>{if(!t||o===null)return;let n=s=>{let i=s.target;if(!r.current||i instanceof Node&&!i.contains(r.current))return;let l=o||fc.get(r.current);l&&l()};return window.addEventListener("scroll",n,!0),()=>{window.removeEventListener("scroll",n,!0)}},[t,o,r])}let be=typeof document<"u"&&window.visualViewport;function bc(e){let{direction:r}=nc(),{arrowSize:t=0,targetRef:o,overlayRef:n,scrollRef:s=n,placement:i="bottom",containerPadding:l=12,shouldFlip:u=!0,boundaryElement:g=typeof document<"u"?document.body:null,offset:b=0,crossOffset:y=0,shouldUpdatePosition:h=!0,isOpen:v=!0,onClose:x,maxHeight:E,arrowBoundaryOffset:k=0}=e,[T,M]=d.useState({position:{},arrowOffsetLeft:void 0,arrowOffsetTop:void 0,maxHeight:void 0,placement:void 0}),_=[h,i,n.current,o.current,s.current,l,u,g,b,y,v,r,E,k,t],I=d.useRef(be==null?void 0:be.scale);d.useEffect(()=>{v&&(I.current=be==null?void 0:be.scale)},[v]);let O=d.useCallback(()=>{if(h===!1||!v||!n.current||!o.current||!s.current||!g||(be==null?void 0:be.scale)!==I.current)return;!E&&n.current&&(n.current.style.maxHeight="none");let L=dc({placement:vc(i,r),overlayNode:n.current,targetNode:o.current,scrollNode:s.current,padding:l,shouldFlip:u,boundaryElement:g,offset:b,crossOffset:y,maxHeight:E,arrowSize:t,arrowBoundaryOffset:k});Object.keys(L.position).forEach(N=>n.current.style[N]=L.position[N]+"px"),n.current.style.maxHeight=L.maxHeight!=null?L.maxHeight+"px":void 0,M(L)},_);Ke(O,_),gc(O),Rl({ref:n,onResize:O});let P=d.useRef(!1);Ke(()=>{let L,N=()=>{P.current=!0,clearTimeout(L),L=setTimeout(()=>{P.current=!1},500),O()},J=()=>{P.current&&N()};return be==null||be.addEventListener("resize",N),be==null||be.addEventListener("scroll",J),()=>{be==null||be.removeEventListener("resize",N),be==null||be.removeEventListener("scroll",J)}},[O]);let F=d.useCallback(()=>{P.current||x()},[x,P]);return pc({triggerRef:o,isOpen:v,onClose:x&&F}),{overlayProps:{style:{position:"absolute",zIndex:1e5,...T.position,maxHeight:T.maxHeight}},placement:T.placement,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:T.arrowOffsetLeft,top:T.arrowOffsetTop}},updatePosition:O}}function gc(e){Ke(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function vc(e,r){return r==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const Le=[];function yc(e,r){let{onClose:t,shouldCloseOnBlur:o,isOpen:n,isDismissable:s=!1,isKeyboardDismissDisabled:i=!1,shouldCloseOnInteractOutside:l}=e;d.useEffect(()=>(n&&Le.push(r),()=>{let x=Le.indexOf(r);x>=0&&Le.splice(x,1)}),[n,r]);let u=()=>{Le[Le.length-1]===r&&t&&t()},g=x=>{(!l||l(x.target))&&Le[Le.length-1]===r&&(x.stopPropagation(),x.preventDefault())},b=x=>{(!l||l(x.target))&&(Le[Le.length-1]===r&&(x.stopPropagation(),x.preventDefault()),u())},y=x=>{x.key==="Escape"&&!i&&!x.nativeEvent.isComposing&&(x.stopPropagation(),x.preventDefault(),u())};zl({ref:r,onInteractOutside:s&&n?b:null,onInteractOutsideStart:g});let{focusWithinProps:h}=Qn({isDisabled:!o,onBlurWithin:x=>{!x.relatedTarget||Wl(x.relatedTarget)||(!l||l(x.relatedTarget))&&t()}}),v=x=>{x.target===x.currentTarget&&x.preventDefault()};return{overlayProps:{onKeyDown:y,...h},underlayProps:{onPointerDown:v}}}const _t=d.createContext(null);function $c(e){let{children:r}=e,t=d.useContext(_t),[o,n]=d.useState(0),s=d.useMemo(()=>({parent:t,modalCount:o,addModal(){n(i=>i+1),t&&t.addModal()},removeModal(){n(i=>i-1),t&&t.removeModal()}}),[t,o]);return d.createElement(_t.Provider,{value:s},r)}function xc(){let e=d.useContext(_t);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:null}}}function wc(e){let{modalProviderProps:r}=xc();return d.createElement("div",{"data-overlay-container":!0,...e,...r})}function mc(e){return d.createElement($c,null,d.createElement(wc,e))}function fn(e){let r=Kt(),{portalContainer:t=r?null:document.body,...o}=e;if(d.useEffect(()=>{if(t!=null&&t.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[t]),!t)return null;let n=d.createElement(mc,o);return Yr.createPortal(n,t)}function qr(e){return d.forwardRef(e)}var na=(e,r,t=!0)=>{if(!r)return[e,{}];const o=r.reduce((n,s)=>s in e?{...n,[s]:e[s]}:n,{});return t?[Object.keys(e).filter(s=>!r.includes(s)).reduce((s,i)=>({...s,[i]:e[i]}),{}),o]:[e,o]},aa=qr((e,r)=>{const{Component:t,ImgComponent:o,src:n,icon:s=p.jsx(Ws,{}),alt:i,classNames:l,slots:u,name:g,showFallback:b,fallback:y,getInitials:h,getAvatarProps:v,getImageProps:x}=Zl({...e,ref:r}),E=d.useMemo(()=>!b&&n?null:y?p.jsx("div",{"aria-label":i,className:u.fallback({class:l==null?void 0:l.fallback}),role:"img",children:y}):g?p.jsx("span",{"aria-label":i,className:u.name({class:l==null?void 0:l.name}),role:"img",children:h(g)}):p.jsx("span",{"aria-label":i,className:u.icon({class:l==null?void 0:l.icon}),role:"img",children:s}),[b,n,y,g,l]);return p.jsxs(t,{...v(),children:[n&&p.jsx(o,{...x(),alt:i}),E]})});aa.displayName="NextUI.Avatar";var sa=aa;function hc(e={}){const{as:r,ref:t,max:o=5,total:n,size:s,color:i,radius:l,children:u,isBordered:g,isDisabled:b,isGrid:y,renderCount:h,className:v,classNames:x,...E}=e,k=yt(t),T=r||"div",M=d.useMemo(()=>({size:s,color:i,radius:l,isGrid:y,isBordered:g,isDisabled:b}),[s,i,l,y,g,b]),_=d.useMemo(()=>Ji({className:v,isGrid:y}),[v,y]),I=ci(u),O=o?I.slice(0,o):I,P=n||(o!=null?I.length-o:-1),F=O.map((J,q)=>{const j=q===0,H=q===O.length-1,z={className:nr(j?"ms-0":y?"":"-ms-2",H&&P<1?"hover:-translate-x-0":"")};return d.cloneElement(J,Zs(z))});return{Component:T,context:M,remainingCount:P,clones:F,renderCount:h,getAvatarGroupProps:()=>({ref:k,className:_.base({class:nr(x==null?void 0:x.base,v)}),role:"group",...E}),getAvatarGroupCountProps:()=>({className:_.count({class:x==null?void 0:x.count})})}}var ia=qr((e,r)=>{const{Component:t,clones:o,context:n,remainingCount:s,getAvatarGroupCountProps:i,getAvatarGroupProps:l,renderCount:u=g=>p.jsx(sa,{...i(),name:`+${g}`})}=hc({...e,ref:r});return p.jsx(t,{...l(),children:p.jsxs(di,{value:n,children:[o,s>0&&u(s)]})})});ia.displayName="NextUI.AvatarGroup";var Cc=ia;const c={fontFamily:{sans:["ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Helvetica Neue","Arial","Noto Sans","sans-serif","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"],serif:["ui-serif","Georgia","Cambria","Times New Roman","Times","serif"],monospace:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas","Liberation Mono","Courier New","monospace"]},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}],"7xl":["4.5rem",{lineHeight:"1"}],"8xl":["6rem",{lineHeight:"1"}],"9xl":["8rem",{lineHeight:"1"}]},fontWeight:{thin:100,extralight:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{3:"0.75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},borderRadius:{.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem"},listStyleType:{none:"none",disc:"disc",decimal:"decimal"},screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},colors:{primary:"#4785ff",secondary:"#b8cfff",tertiary:"#d6e4ff",background:"#f0f5ff",inherit:"inherit",current:"currentColor",transparent:"transparent",black:"rgb(0 0 0)",white:"rgb(255 255 255)",slate:{50:"rgb(248 250 252)",100:"rgb(241 245 249)",200:"rgb(226 232 240)",300:"rgb(203 213 225)",400:"rgb(148 163 184)",500:"rgb(100 116 139)",600:"rgb(71 85 105)",700:"rgb(51 65 85)",800:"rgb(30 41 59)",900:"rgb(15 23 42)"},gray:{50:"rgb(249 250 251)",100:"rgb(243 244 246)",200:"rgb(229 231 235)",300:"rgb(209 213 219)",400:"rgb(156 163 175)",500:"rgb(107 114 128)",600:"rgb(75 85 99)",700:"rgb(55 65 81)",800:"rgb(31 41 55)",900:"rgb(17 24 39)"},zinc:{50:"rgb(250 250 250)",100:"rgb(244 244 245)",200:"rgb(228 228 231)",300:"rgb(212 212 216)",400:"rgb(161 161 170)",500:"rgb(113 113 122)",600:"rgb(82 82 91)",700:"rgb(63 63 70)",800:"rgb(39 39 42)",900:"rgb(24 24 27)"},neutral:{50:"rgb(250 250 250)",100:"rgb(245 245 245)",200:"rgb(229 229 229)",300:"rgb(212 212 212)",400:"rgb(163 163 163)",500:"rgb(115 115 115)",600:"rgb(82 82 82)",700:"rgb(64 64 64)",800:"rgb(38 38 38)",900:"rgb(23 23 23)"},stone:{50:"rgb(250 250 249)",100:"rgb(245 245 244)",200:"rgb(231 229 228)",300:"rgb(214 211 209)",400:"rgb(168 162 158)",500:"rgb(120 113 108)",600:"rgb(87 83 78)",700:"rgb(68 64 60)",800:"rgb(41 37 36)",900:"rgb(28 25 23)"},red:{50:"rgb(254 242 242)",100:"rgb(254 226 226)",200:"rgb(254 202 202)",300:"rgb(252 165 165)",400:"rgb(248 113 113)",500:"rgb(239 68 68)",600:"rgb(220 38 38)",700:"rgb(185 28 28)",800:"rgb(153 27 27)",900:"rgb(127 29 29)"},orange:{50:"rgb(255 247 237)",100:"rgb(255 237 213)",200:"rgb(254 215 170)",300:"rgb(253 186 116)",400:"rgb(251 146 60)",500:"rgb(249 115 22)",600:"rgb(234 88 12)",700:"rgb(194 65 12)",800:"rgb(154 52 18)",900:"rgb(124 45 18)"},amber:{50:"rgb(255 251 235)",100:"rgb(254 243 199)",200:"rgb(253 230 138)",300:"rgb(252 211 77)",400:"rgb(251 191 36)",500:"rgb(245 158 11)",600:"rgb(217 119 6)",700:"rgb(180 83 9)",800:"rgb(146 64 14)",900:"rgb(120 53 15)"},yellow:{50:"rgb(254 252 232)",100:"rgb(254 249 195)",200:"rgb(254 240 138)",300:"rgb(253 224 71)",400:"rgb(250 204 21)",500:"rgb(234 179 8)",600:"rgb(202 138 4)",700:"rgb(161 98 7)",800:"rgb(133 77 14)",900:"rgb(113 63 18)"},lime:{50:"rgb(247 254 231)",100:"rgb(236 252 203)",200:"rgb(217 249 157)",300:"rgb(190 242 100)",400:"rgb(163 230 53)",500:"rgb(132 204 22)",600:"rgb(101 163 13)",700:"rgb(77 124 15)",800:"rgb(63 98 18)",900:"rgb(54 83 20)"},green:{50:"rgb(240 253 244)",100:"rgb(220 252 231)",200:"rgb(187 247 208)",300:"rgb(134 239 172)",400:"rgb(74 222 128)",500:"rgb(34 197 94)",600:"rgb(22 163 74)",700:"rgb(21 128 61)",800:"rgb(22 101 52)",900:"rgb(20 83 45)"},emerald:{50:"rgb(236 253 245)",100:"rgb(209 250 229)",200:"rgb(167 243 208)",300:"rgb(110 231 183)",400:"rgb(52 211 153)",500:"rgb(16 185 129)",600:"rgb(5 150 105)",700:"rgb(4 120 87)",800:"rgb(6 95 70)",900:"rgb(6 78 59)"},teal:{50:"rgb(240 253 250)",100:"rgb(204 251 241)",200:"rgb(153 246 228)",300:"rgb(94 234 212)",400:"rgb(45 212 191)",500:"rgb(20 184 166)",600:"rgb(13 148 136)",700:"rgb(15 118 110)",800:"rgb(17 94 89)",900:"rgb(19 78 74)"},cyan:{50:"rgb(236 254 255)",100:"rgb(207 250 254)",200:"rgb(165 243 252)",300:"rgb(103 232 249)",400:"rgb(34 211 238)",500:"rgb(6 182 212)",600:"rgb(8 145 178)",700:"rgb(14 116 144)",800:"rgb(21 94 117)",900:"rgb(22 78 99)"},sky:{50:"rgb(240 249 255)",100:"rgb(224 242 254)",200:"rgb(186 230 253)",300:"rgb(125 211 252)",400:"rgb(56 189 248)",500:"rgb(14 165 233)",600:"rgb(2 132 199)",700:"rgb(3 105 161)",800:"rgb(7 89 133)",900:"rgb(12 74 110)"},blue:{50:"rgb(239 246 255)",100:"rgb(219 234 254)",200:"rgb(191 219 254)",300:"rgb(147 197 253)",400:"rgb(96 165 250)",500:"rgb(59 130 246)",600:"rgb(37 99 235)",700:"rgb(29 78 216)",800:"rgb(30 64 175)",900:"rgb(30 58 138)"},indigo:{50:"rgb(238 242 255)",100:"rgb(224 231 255)",200:"rgb(199 210 254)",300:"rgb(165 180 252)",400:"rgb(129 140 248)",500:"rgb(99 102 241)",600:"rgb(79 70 229)",700:"rgb(67 56 202)",800:"rgb(55 48 163)",900:"rgb(49 46 129)"},violet:{50:"rgb(245 243 255)",100:"rgb(237 233 254)",200:"rgb(221 214 254)",300:"rgb(196 181 253)",400:"rgb(167 139 250)",500:"rgb(139 92 246)",600:"rgb(124 58 237)",700:"rgb(109 40 217)",800:"rgb(91 33 182)",900:"rgb(76 29 149)"},purple:{50:"rgb(250 245 255)",100:"rgb(243 232 255)",200:"rgb(233 213 255)",300:"rgb(216 180 254)",400:"rgb(192 132 252)",500:"rgb(168 85 247)",600:"rgb(147 51 234)",700:"rgb(126 34 206)",800:"rgb(107 33 168)",900:"rgb(88 28 135)"},fuchsia:{50:"rgb(253 244 255)",100:"rgb(250 232 255)",200:"rgb(245 208 254)",300:"rgb(240 171 252)",400:"rgb(232 121 249)",500:"rgb(217 70 239)",600:"rgb(192 38 211)",700:"rgb(162 28 175)",800:"rgb(134 25 143)",900:"rgb(112 26 117)"},pink:{50:"rgb(253 242 248)",100:"rgb(252 231 243)",200:"rgb(251 207 232)",300:"rgb(249 168 212)",400:"rgb(244 114 182)",500:"rgb(236 72 153)",600:"rgb(219 39 119)",700:"rgb(190 24 93)",800:"rgb(157 23 77)",900:"rgb(131 24 67)"},rose:{50:"rgb(255 241 242)",100:"rgb(255 228 230)",200:"rgb(254 205 211)",300:"rgb(253 164 175)",400:"rgb(251 113 133)",500:"rgb(244 63 94)",600:"rgb(225 29 72)",700:"rgb(190 18 60)",800:"rgb(159 18 57)",900:"rgb(136 19 55)"}},spacing:{px:"1px",0:"0px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},height:{auto:"auto",px:"1px",0:"0px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%",full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"},components:{button:{primary:{color:"#FFF",backgroundColor:"#000"}},Card:{border:"1px solid rgb(226 232 240)",padding:"1rem",backgroundColor:"transparent",borderRadius:"2px",boxShadow:"rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.1) 0px 1px 2px -1px"},"Card.Content":{padding:0,fontSize:"0.9rem"},"Card.Header":{fontSize:"1.125rem",fontWeight:"700",marginBottom:"1rem"}}};function la(e,r){const t={...e};return Object.entries(r).forEach(([o,n])=>{n!==null&&typeof n=="object"&&!Array.isArray(n)?((t[o]===void 0||t[o]===null)&&(t[o]={}),t[o]=la(t[o],n)):t[o]=n}),t}const Ec=m.styled.div`
40
40
  z-index: 1;
41
41
 
42
42
  &:not(:first-child) {
@@ -100,7 +100,7 @@ Check the top-level render call using <`+w+">.")}return f}function Mo(a,f){if(!(
100
100
  grid-template-columns: repeat(4, minmax(0, 1fr));
101
101
  align-items: center;
102
102
  gap: ${({isGrid:e})=>e?"0.75rem":"0"};
103
- `;function Pc({children:e,isGrid:r,renderCount:t}){return p.jsx(Tc,{isGrid:r,max:0,renderCount:t??void 0,children:e})}function Rc(e){const[r,t]=na(e,Zo.variantKeys),{as:o,children:n,className:s,content:i,classNames:l,...u}=r,g=o||"span",b=d.useMemo(()=>{var E;return((E=String(i))==null?void 0:E.length)===1||(e==null?void 0:e.isOneChar)},[i,e==null?void 0:e.isOneChar]),y=d.useMemo(()=>{var E;return((E=String(i))==null?void 0:E.length)===0},[i]),h=or(l==null?void 0:l.badge,s),v=d.useMemo(()=>Zo({...t,showOutline:e!=null&&e.disableOutline?!(e!=null&&e.disableOutline):e==null?void 0:e.showOutline,isOneChar:b,isDot:y}),[Sn(t),b,y]),x=()=>({className:v.badge({class:h}),"data-invisible":e.isInvisible,...u});return{Component:g,children:n,content:i,slots:v,classNames:l,disableAnimation:e==null?void 0:e.disableAnimation,isInvisible:e==null?void 0:e.isInvisible,getBadgeProps:x}}var ca=qr((e,r)=>{const{Component:t,children:o,content:n,slots:s,classNames:i,getBadgeProps:l}=Rc({...e});return p.jsxs("div",{className:s.base({class:i==null?void 0:i.base}),children:[o,p.jsx(t,{ref:r,...l(),children:n})]})});ca.displayName="NextUI.Badge";var Oc=ca;const jc=m.styled.div`
103
+ `;function Pc({children:e,isGrid:r,renderCount:t}){return p.jsx(Tc,{isGrid:r,max:0,renderCount:t??void 0,children:e})}function Rc(e){const[r,t]=na(e,Zo.variantKeys),{as:o,children:n,className:s,content:i,classNames:l,...u}=r,g=o||"span",b=d.useMemo(()=>{var E;return((E=String(i))==null?void 0:E.length)===1||(e==null?void 0:e.isOneChar)},[i,e==null?void 0:e.isOneChar]),y=d.useMemo(()=>{var E;return((E=String(i))==null?void 0:E.length)===0},[i]),h=nr(l==null?void 0:l.badge,s),v=d.useMemo(()=>Zo({...t,showOutline:e!=null&&e.disableOutline?!(e!=null&&e.disableOutline):e==null?void 0:e.showOutline,isOneChar:b,isDot:y}),[Sn(t),b,y]),x=()=>({className:v.badge({class:h}),"data-invisible":e.isInvisible,...u});return{Component:g,children:n,content:i,slots:v,classNames:l,disableAnimation:e==null?void 0:e.disableAnimation,isInvisible:e==null?void 0:e.isInvisible,getBadgeProps:x}}var ca=qr((e,r)=>{const{Component:t,children:o,content:n,slots:s,classNames:i,getBadgeProps:l}=Rc({...e});return p.jsxs("div",{className:s.base({class:i==null?void 0:i.base}),children:[o,p.jsx(t,{ref:r,...l(),children:n})]})});ca.displayName="NextUI.Badge";var Oc=ca;const jc=m.styled.div`
104
104
  position: relative;
105
105
  display: inline-flex;
106
106
  flex-shrink: 0;
@@ -236,7 +236,7 @@ Check the top-level render call using <`+w+">.")}return f}function Mo(a,f){if(!(
236
236
  border-color: ${({isLoading:e,theme:r,variant:t})=>{var o,n,s,i,l,u,g,b;switch(t){case"ghost":return"transparent";case"outline":return e?((n=(o=r==null?void 0:r.colors)==null?void 0:o.slate)==null?void 0:n[300])??c.colors.slate[300]:((i=(s=r==null?void 0:r.colors)==null?void 0:s.slate)==null?void 0:i[200])??c.colors.slate[200];case"solid":default:return e?((u=(l=r==null?void 0:r.colors)==null?void 0:l.slate)==null?void 0:u[900])??c.colors.slate[900]:((b=(g=r==null?void 0:r.colors)==null?void 0:g.slate)==null?void 0:b[200])??c.colors.slate[200]}}};
237
237
  color: ${({isLoading:e,theme:r,variant:t})=>{var o,n,s,i,l,u,g;switch(t){case"ghost":case"outline":return e?((n=(o=r==null?void 0:r.colors)==null?void 0:o.slate)==null?void 0:n[900])??c.colors.slate[900]:((i=(s=r==null?void 0:r.colors)==null?void 0:s.slate)==null?void 0:i[500])??c.colors.slate[500];case"solid":default:return e?((l=r==null?void 0:r.colors)==null?void 0:l.white)??c.colors.white:((g=(u=r==null?void 0:r.colors)==null?void 0:u.slate)==null?void 0:g[400])??c.colors.slate[400]}}};
238
238
  }
239
- `;function Wc({children:e,isDisabled:r=!1,isLoading:t=!1,size:o="md",variant:n="solid",...s}){return p.jsx(Me,{isDisabled:r||t,isLoading:t,size:o,variant:n,...s,children:e})}const Uc=m.styled.div`
239
+ `,Wc=d.forwardRef(function({isDisabled:r=!1,isLoading:t=!1,size:o="md",variant:n="solid",...s},i){return p.jsx(Me,{isDisabled:r||t,isLoading:t,size:o,variant:n,...s,ref:i})}),Uc=m.styled.div`
240
240
  display: flex;
241
241
  flex-direction: column;
242
242
  `;function Kc({children:e,...r}){return p.jsx(Uc,{...r,children:e})}const he=m.styled.div`
@@ -362,7 +362,7 @@ Check the top-level render call using <`+w+">.")}return f}function Mo(a,f){if(!(
362
362
  `,Zc=m.styled(Re.motion.div)`
363
363
  width: 100%;
364
364
  overflow: hidden;
365
- `,Qt=d.createContext({});function Jc({children:e,...r}){const t=d.useId(),[o,n]=Bn(r.isOpen,r.defaultOpen||!1,r.onOpenChange),s=d.useRef(null),i=d.useCallback(()=>{n(!o)},[n,o]);return p.jsx(D.Provider,{values:[[Qt,{isOpen:o,id:t,defaultOpen:r.defaultOpen||!1}]],children:p.jsx(jl,{ref:s,isPressed:o,onPress:i,"aria-expanded":o,"aria-controls":t,children:p.jsx(qc,{children:e})})})}function Qc({children:e}){const{isOpen:r,id:t,defaultOpen:o}=d.useContext(Qt);return p.jsx(Zc,{id:t,variants:{hidden:{height:"0px",opacity:0},visible:{height:"auto",opacity:1}},initial:o?"visible":"hidden",animate:r?"visible":"hidden",transition:{type:"spring",bounce:0},children:e})}const ed=e=>{let r="";return Object.values(e).forEach(t=>{r+=`
365
+ `,Qt=d.createContext({});function Jc({children:e,...r}){const t=d.useId(),[o,n]=Wn(r.isOpen,r.defaultOpen||!1,r.onOpenChange),s=d.useRef(null),i=d.useCallback(()=>{n(!o)},[n,o]);return p.jsx(D.Provider,{values:[[Qt,{isOpen:o,id:t,defaultOpen:r.defaultOpen||!1}]],children:p.jsx(jl,{ref:s,isPressed:o,onPress:i,"aria-expanded":o,"aria-controls":t,children:p.jsx(qc,{children:e})})})}function Qc({children:e}){const{isOpen:r,id:t,defaultOpen:o}=d.useContext(Qt);return p.jsx(Zc,{id:t,variants:{hidden:{height:"0px",opacity:0},visible:{height:"auto",opacity:1}},initial:o?"visible":"hidden",animate:r?"visible":"hidden",transition:{type:"spring",bounce:0},children:e})}const ed=e=>{let r="";return Object.values(e).forEach(t=>{r+=`
366
366
  @media (min-width: ${t}) {
367
367
  max-width: ${t};
368
368
  }
@@ -1284,7 +1284,7 @@ Check the top-level render call using <`+w+">.")}return f}function Mo(a,f){if(!(
1284
1284
  left: 50%;
1285
1285
  }
1286
1286
  }
1287
- `;function ma({label:e,showOutput:r=!0,thumbLabels:t,...o}){return p.jsxs(Cu,{...o,children:[p.jsx(Eu,{children:e}),r&&p.jsx(ku,{children:({state:n})=>n.values.map((s,i)=>n.getThumbValueLabel(i)).join(" – ")}),p.jsx(Su,{children:({state:n})=>n.values.map((s,i)=>p.jsx(Lt,{index:i,"aria-label":t==null?void 0:t[i]},i))})]})}ma.defaultProps={label:void 0,showOutput:!0,thumbLabels:void 0};const De=m.styled.div`
1287
+ `;function ma({label:e,showOutput:r=!0,thumbLabels:t,...o}){return p.jsxs(Cu,{...o,children:[p.jsx(Eu,{children:e}),r&&p.jsx(ku,{children:({state:n})=>n.values.map((s,i)=>n.getThumbValueLabel(i)).join(" – ")}),p.jsx(Su,{"data-track":!0,children:({state:n})=>n.values.map((s,i)=>p.jsx(Lt,{index:i,"aria-label":t==null?void 0:t[i],"data-thumb":!0},i))})]})}ma.defaultProps={label:void 0,showOutput:!0,thumbLabels:void 0};const De=m.styled.div`
1288
1288
  width: 4rem;
1289
1289
  height: 2.5rem;
1290
1290
  border: 1px solid
@@ -1644,7 +1644,7 @@ Check the top-level render call using <`+w+">.")}return f}function Mo(a,f){if(!(
1644
1644
  border-color: ${({variant:e,theme:r})=>{var t,o,n,s;switch(e){case"ghost":return"transparent";case"outline":return((o=(t=r==null?void 0:r.colors)==null?void 0:t.slate)==null?void 0:o[200])??c.colors.slate[200];case"solid":default:return((s=(n=r==null?void 0:r.colors)==null?void 0:n.slate)==null?void 0:s[100])??c.colors.slate[100]}}};
1645
1645
  color: ${({variant:e,theme:r})=>{var t,o,n,s;switch(e){case"ghost":case"outline":return((o=(t=r==null?void 0:r.colors)==null?void 0:t.slate)==null?void 0:o[500])??c.colors.slate[500];case"solid":default:return((s=(n=r==null?void 0:r.colors)==null?void 0:n.slate)==null?void 0:s[400])??c.colors.slate[400]}}};
1646
1646
  }
1647
- `;function Gu({children:e,size:r="md",variant:t="solid",...o}){return p.jsx(Hu,{...o,size:r,variant:t,children:e})}function Wu(e){let[r,t]=Bn(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const o=d.useCallback(()=>{t(!0)},[t]),n=d.useCallback(()=>{t(!1)},[t]),s=d.useCallback(()=>{t(!r)},[t,r]);return{isOpen:r,setOpen:t,open:o,close:n,toggle:s}}const Uu=1500,gn=500;let Be={},Ku=0,pr=!1,Ne=null,He=null;function Yu(e={}){let{delay:r=Uu,closeDelay:t=gn}=e,{isOpen:o,open:n,close:s}=Wu(e),i=d.useMemo(()=>`${++Ku}`,[]),l=d.useRef(),u=()=>{Be[i]=y},g=()=>{for(let v in Be)v!==i&&(Be[v](!0),delete Be[v])},b=()=>{clearTimeout(l.current),l.current=null,g(),u(),pr=!0,n(),Ne&&(clearTimeout(Ne),Ne=null),He&&(clearTimeout(He),He=null)},y=v=>{v||t<=0?(clearTimeout(l.current),l.current=null,s()):l.current||(l.current=setTimeout(()=>{l.current=null,s()},t)),Ne&&(clearTimeout(Ne),Ne=null),pr&&(He&&clearTimeout(He),He=setTimeout(()=>{delete Be[i],He=null,pr=!1},Math.max(gn,t)))},h=()=>{g(),u(),!o&&!Ne&&!pr?Ne=setTimeout(()=>{Ne=null,pr=!0,b()},r):o||b()};return d.useEffect(()=>()=>{clearTimeout(l.current),Be[i]&&delete Be[i]},[i]),{isOpen:o,open:v=>{!v&&r>0&&!l.current?h():b()},close:y}}function Xu(e,r){let t=yl(e,{labelable:!0}),{hoverProps:o}=Zt({onHoverStart:()=>r==null?void 0:r.open(!0),onHoverEnd:()=>r==null?void 0:r.close()});return{tooltipProps:ke(t,o,{role:"tooltip"})}}function qu(e,r,t){let{isDisabled:o,trigger:n}=e,s=dl(),i=d.useRef(!1),l=d.useRef(!1),u=()=>{(i.current||l.current)&&r.open(l.current)},g=T=>{!i.current&&!l.current&&r.close(T)};d.useEffect(()=>{let T=M=>{t&&t.current&&M.key==="Escape"&&(M.stopPropagation(),r.close(!0))};if(r.isOpen)return document.addEventListener("keydown",T,!0),()=>{document.removeEventListener("keydown",T,!0)}},[t,r]);let b=()=>{n!=="focus"&&(Jn()==="pointer"?i.current=!0:i.current=!1,u())},y=()=>{n!=="focus"&&(l.current=!1,i.current=!1,g())},h=()=>{l.current=!1,i.current=!1,g(!0)},v=()=>{qt()&&(l.current=!0,u())},x=()=>{l.current=!1,i.current=!1,g(!0)},{hoverProps:E}=Zt({isDisabled:o,onHoverStart:b,onHoverEnd:y}),{focusableProps:k}=Xl({isDisabled:o,onFocus:v,onBlur:x},t);return{triggerProps:{"aria-describedby":r.isOpen?s:void 0,...ke(k,E,{onPointerDown:h,onKeyDown:h})},tooltipProps:{id:s}}}var Zu=e=>{const r={top:{originY:1},bottom:{originY:0},left:{originX:1},right:{originX:0},"top-start":{originX:0,originY:1},"top-end":{originX:1,originY:1},"bottom-start":{originX:0,originY:0},"bottom-end":{originX:1,originY:0},"right-start":{originX:0,originY:0},"right-end":{originX:0,originY:1},"left-start":{originX:1,originY:0},"left-end":{originX:1,originY:1}};return(r==null?void 0:r[e])||{}},Ju=e=>({top:"top",bottom:"bottom",left:"left",right:"right","top-start":"top start","top-end":"top end","bottom-start":"bottom start","bottom-end":"bottom end","left-start":"left top","left-end":"left bottom","right-start":"right top","right-end":"right bottom"})[e],vn=(e,r)=>{if(r.includes("-")){const[,t]=r.split("-");return`${e}-${t}`}return e};function Qu(e){const[r,t]=na(e,qo.variantKeys),{ref:o,as:n,isOpen:s,content:i,children:l,defaultOpen:u,onOpenChange:g,isDisabled:b,trigger:y,shouldFlip:h=!0,containerPadding:v=12,placement:x="top",delay:E=0,closeDelay:k=500,showArrow:T=!1,offset:M=7,crossOffset:_=0,isDismissable:I,shouldCloseOnBlur:O=!0,portalContainer:P,isKeyboardDismissDisabled:F=!1,updatePositionDeps:L=[],shouldCloseOnInteractOutside:N,className:J,onClose:q,motionProps:j,classNames:H,...z}=r,V=n||"div",G=Yu({delay:E,closeDelay:k,isDisabled:b,defaultOpen:u,isOpen:s,onOpenChange:Ie=>{g==null||g(Ie),Ie||q==null||q()}}),A=d.useRef(null),U=d.useRef(null),Z=d.useId(),Q=G.isOpen&&!b;d.useImperativeHandle(o,()=>Ks(U));const{triggerProps:$,tooltipProps:S}=qu({isDisabled:b,trigger:y},G,A),{tooltipProps:W}=Xu({isOpen:Q,...ke(r,S)},G),{overlayProps:Y,placement:ee,updatePosition:ne}=bc({isOpen:Q,targetRef:A,placement:Ju(x),overlayRef:U,offset:T?M+3:M,crossOffset:_,shouldFlip:h,containerPadding:v});ra(()=>{L.length&&ne()},L);const{overlayProps:se}=yc({isOpen:Q,onClose:G.close,isDismissable:I,shouldCloseOnBlur:O,isKeyboardDismissDisabled:F,shouldCloseOnInteractOutside:N},U),ae=d.useMemo(()=>{var Ie,Ae,wr;return qo({...t,radius:(Ie=e==null?void 0:e.radius)!=null?Ie:"md",size:(Ae=e==null?void 0:e.size)!=null?Ae:"md",shadow:(wr=e==null?void 0:e.shadow)!=null?wr:"sm"})},[Sn(t),e==null?void 0:e.radius,e==null?void 0:e.size,e==null?void 0:e.shadow]),ie=d.useCallback((Ie={},Ae=null)=>({...ke($,Ie),ref:Qs(Ae,A),"aria-describedby":Q?Z:void 0}),[$,Q,Z,G]),ve=d.useCallback(()=>({ref:U,"data-slot":"base","data-open":_e(Q),"data-arrow":_e(T),"data-disabled":_e(b),"data-placement":vn(ee,x),...ke(W,se,z),style:ke(Y.style,z.style,r.style),className:ae.base({class:H==null?void 0:H.base}),id:Z}),[ae,Q,T,b,ee,x,W,se,z,Y,r,Z]),Te=d.useCallback(()=>({"data-slot":"content","data-open":_e(Q),"data-arrow":_e(T),"data-disabled":_e(b),"data-placement":vn(ee,x),className:ae.content({class:or(H==null?void 0:H.content,J)})}),[ae,Q,T,b,ee,x,H]);return{Component:V,content:i,children:l,isOpen:Q,triggerRef:A,showArrow:T,portalContainer:P,placement:x,disableAnimation:e==null?void 0:e.disableAnimation,isDisabled:b,motionProps:j,getTooltipContentProps:Te,getTriggerProps:ie,getTooltipProps:ve}}var Qe={ease:[.36,.66,.4,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1],spring:[.155,1.105,.295,1.12],springOut:[.57,-.15,.62,.07],softSpring:[.16,1.11,.3,1.02]},ef={scaleSpring:{enter:{transform:"scale(1)",opacity:1,transition:{type:"spring",bounce:0,duration:.3}},exit:{transform:"scale(0.6)",opacity:0,transition:{type:"easeOut",duration:.2}}},scaleSpringOpacity:{initial:{opacity:0,transform:"scale(0.8)"},enter:{opacity:1,transform:"scale(1)",transition:{type:"spring",bounce:0,duration:.3}},exit:{opacity:0,transform:"scale(0.96)",transition:{type:"easeOut",bounce:0,duration:.15}}},scale:{enter:{scale:1},exit:{scale:.95}},scaleFadeIn:{enter:{transform:"scale(1)",opacity:1,transition:{duration:.25,ease:Qe.easeIn}},exit:{transform:"scale(0.95)",opacity:0,transition:{duration:.2,ease:Qe.easeOut}}},scaleInOut:{enter:{transform:"scale(1)",opacity:1,transition:{duration:.4,ease:Qe.ease}},exit:{transform:"scale(1.03)",opacity:0,transition:{duration:.3,ease:Qe.ease}}},fade:{enter:{opacity:1,transition:{duration:.4,ease:Qe.ease}},exit:{opacity:0,transition:{duration:.3,ease:Qe.ease}}},collapse:{enter:{opacity:1,height:"auto",transition:{height:{type:"spring",bounce:0,duration:.3},opacity:{easings:"ease",duration:.4}}},exit:{opacity:0,height:0,transition:{easings:"ease",duration:.3}}}},Ea=qr((e,r)=>{const{Component:t,children:o,content:n,isOpen:s,portalContainer:i,placement:l,disableAnimation:u,motionProps:g,getTriggerProps:b,getTooltipProps:y,getTooltipContentProps:h}=Qu({...e,ref:r});let v;try{if(d.Children.count(o)!==1)throw new Error;if(!d.isValidElement(o))v=p.jsx("p",{...b(),children:o});else{const I=o;v=d.cloneElement(I,b(I.props,I.ref))}}catch{v=p.jsx("span",{}),Xs("Tooltip must have only one child node. Please, check your code.")}const{ref:x,id:E,style:k,...T}=y(),M=p.jsx("div",{ref:x,id:E,style:k,children:p.jsx(Re.LazyMotion,{features:Re.domAnimation,children:p.jsx(Re.m.div,{animate:"enter",exit:"exit",initial:"exit",variants:ef.scaleSpring,...ke(g,T),style:{...Zu(l)},children:p.jsx(t,{...h(),children:n})})})});return p.jsxs(p.Fragment,{children:[v,u&&s?p.jsx(fn,{portalContainer:i,children:p.jsx("div",{ref:x,id:E,style:k,...T,children:p.jsx(t,{...h(),children:n})})}):p.jsx(Re.AnimatePresence,{children:s?p.jsx(fn,{portalContainer:i,children:M}):null})]})});Ea.displayName="NextUI.Tooltip";var rf=Ea;const tf=m.styled(rf).attrs({className:"tooltip"})`
1647
+ `;function Gu({children:e,size:r="md",variant:t="solid",...o}){return p.jsx(Hu,{...o,size:r,variant:t,children:e})}function Wu(e){let[r,t]=Wn(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const o=d.useCallback(()=>{t(!0)},[t]),n=d.useCallback(()=>{t(!1)},[t]),s=d.useCallback(()=>{t(!r)},[t,r]);return{isOpen:r,setOpen:t,open:o,close:n,toggle:s}}const Uu=1500,gn=500;let Be={},Ku=0,pr=!1,Ne=null,He=null;function Yu(e={}){let{delay:r=Uu,closeDelay:t=gn}=e,{isOpen:o,open:n,close:s}=Wu(e),i=d.useMemo(()=>`${++Ku}`,[]),l=d.useRef(),u=()=>{Be[i]=y},g=()=>{for(let v in Be)v!==i&&(Be[v](!0),delete Be[v])},b=()=>{clearTimeout(l.current),l.current=null,g(),u(),pr=!0,n(),Ne&&(clearTimeout(Ne),Ne=null),He&&(clearTimeout(He),He=null)},y=v=>{v||t<=0?(clearTimeout(l.current),l.current=null,s()):l.current||(l.current=setTimeout(()=>{l.current=null,s()},t)),Ne&&(clearTimeout(Ne),Ne=null),pr&&(He&&clearTimeout(He),He=setTimeout(()=>{delete Be[i],He=null,pr=!1},Math.max(gn,t)))},h=()=>{g(),u(),!o&&!Ne&&!pr?Ne=setTimeout(()=>{Ne=null,pr=!0,b()},r):o||b()};return d.useEffect(()=>()=>{clearTimeout(l.current),Be[i]&&delete Be[i]},[i]),{isOpen:o,open:v=>{!v&&r>0&&!l.current?h():b()},close:y}}function Xu(e,r){let t=yl(e,{labelable:!0}),{hoverProps:o}=Zt({onHoverStart:()=>r==null?void 0:r.open(!0),onHoverEnd:()=>r==null?void 0:r.close()});return{tooltipProps:ke(t,o,{role:"tooltip"})}}function qu(e,r,t){let{isDisabled:o,trigger:n}=e,s=cl(),i=d.useRef(!1),l=d.useRef(!1),u=()=>{(i.current||l.current)&&r.open(l.current)},g=T=>{!i.current&&!l.current&&r.close(T)};d.useEffect(()=>{let T=M=>{t&&t.current&&M.key==="Escape"&&(M.stopPropagation(),r.close(!0))};if(r.isOpen)return document.addEventListener("keydown",T,!0),()=>{document.removeEventListener("keydown",T,!0)}},[t,r]);let b=()=>{n!=="focus"&&(Jn()==="pointer"?i.current=!0:i.current=!1,u())},y=()=>{n!=="focus"&&(l.current=!1,i.current=!1,g())},h=()=>{l.current=!1,i.current=!1,g(!0)},v=()=>{qt()&&(l.current=!0,u())},x=()=>{l.current=!1,i.current=!1,g(!0)},{hoverProps:E}=Zt({isDisabled:o,onHoverStart:b,onHoverEnd:y}),{focusableProps:k}=Xl({isDisabled:o,onFocus:v,onBlur:x},t);return{triggerProps:{"aria-describedby":r.isOpen?s:void 0,...ke(k,E,{onPointerDown:h,onKeyDown:h})},tooltipProps:{id:s}}}var Zu=e=>{const r={top:{originY:1},bottom:{originY:0},left:{originX:1},right:{originX:0},"top-start":{originX:0,originY:1},"top-end":{originX:1,originY:1},"bottom-start":{originX:0,originY:0},"bottom-end":{originX:1,originY:0},"right-start":{originX:0,originY:0},"right-end":{originX:0,originY:1},"left-start":{originX:1,originY:0},"left-end":{originX:1,originY:1}};return(r==null?void 0:r[e])||{}},Ju=e=>({top:"top",bottom:"bottom",left:"left",right:"right","top-start":"top start","top-end":"top end","bottom-start":"bottom start","bottom-end":"bottom end","left-start":"left top","left-end":"left bottom","right-start":"right top","right-end":"right bottom"})[e],vn=(e,r)=>{if(r.includes("-")){const[,t]=r.split("-");return`${e}-${t}`}return e};function Qu(e){const[r,t]=na(e,qo.variantKeys),{ref:o,as:n,isOpen:s,content:i,children:l,defaultOpen:u,onOpenChange:g,isDisabled:b,trigger:y,shouldFlip:h=!0,containerPadding:v=12,placement:x="top",delay:E=0,closeDelay:k=500,showArrow:T=!1,offset:M=7,crossOffset:_=0,isDismissable:I,shouldCloseOnBlur:O=!0,portalContainer:P,isKeyboardDismissDisabled:F=!1,updatePositionDeps:L=[],shouldCloseOnInteractOutside:N,className:J,onClose:q,motionProps:j,classNames:H,...z}=r,V=n||"div",G=Yu({delay:E,closeDelay:k,isDisabled:b,defaultOpen:u,isOpen:s,onOpenChange:Ie=>{g==null||g(Ie),Ie||q==null||q()}}),A=d.useRef(null),U=d.useRef(null),Z=d.useId(),Q=G.isOpen&&!b;d.useImperativeHandle(o,()=>Ks(U));const{triggerProps:$,tooltipProps:S}=qu({isDisabled:b,trigger:y},G,A),{tooltipProps:W}=Xu({isOpen:Q,...ke(r,S)},G),{overlayProps:Y,placement:ee,updatePosition:ne}=bc({isOpen:Q,targetRef:A,placement:Ju(x),overlayRef:U,offset:T?M+3:M,crossOffset:_,shouldFlip:h,containerPadding:v});ra(()=>{L.length&&ne()},L);const{overlayProps:se}=yc({isOpen:Q,onClose:G.close,isDismissable:I,shouldCloseOnBlur:O,isKeyboardDismissDisabled:F,shouldCloseOnInteractOutside:N},U),ae=d.useMemo(()=>{var Ie,Ae,wr;return qo({...t,radius:(Ie=e==null?void 0:e.radius)!=null?Ie:"md",size:(Ae=e==null?void 0:e.size)!=null?Ae:"md",shadow:(wr=e==null?void 0:e.shadow)!=null?wr:"sm"})},[Sn(t),e==null?void 0:e.radius,e==null?void 0:e.size,e==null?void 0:e.shadow]),ie=d.useCallback((Ie={},Ae=null)=>({...ke($,Ie),ref:Qs(Ae,A),"aria-describedby":Q?Z:void 0}),[$,Q,Z,G]),ve=d.useCallback(()=>({ref:U,"data-slot":"base","data-open":_e(Q),"data-arrow":_e(T),"data-disabled":_e(b),"data-placement":vn(ee,x),...ke(W,se,z),style:ke(Y.style,z.style,r.style),className:ae.base({class:H==null?void 0:H.base}),id:Z}),[ae,Q,T,b,ee,x,W,se,z,Y,r,Z]),Te=d.useCallback(()=>({"data-slot":"content","data-open":_e(Q),"data-arrow":_e(T),"data-disabled":_e(b),"data-placement":vn(ee,x),className:ae.content({class:nr(H==null?void 0:H.content,J)})}),[ae,Q,T,b,ee,x,H]);return{Component:V,content:i,children:l,isOpen:Q,triggerRef:A,showArrow:T,portalContainer:P,placement:x,disableAnimation:e==null?void 0:e.disableAnimation,isDisabled:b,motionProps:j,getTooltipContentProps:Te,getTriggerProps:ie,getTooltipProps:ve}}var er={ease:[.36,.66,.4,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1],spring:[.155,1.105,.295,1.12],springOut:[.57,-.15,.62,.07],softSpring:[.16,1.11,.3,1.02]},ef={scaleSpring:{enter:{transform:"scale(1)",opacity:1,transition:{type:"spring",bounce:0,duration:.3}},exit:{transform:"scale(0.6)",opacity:0,transition:{type:"easeOut",duration:.2}}},scaleSpringOpacity:{initial:{opacity:0,transform:"scale(0.8)"},enter:{opacity:1,transform:"scale(1)",transition:{type:"spring",bounce:0,duration:.3}},exit:{opacity:0,transform:"scale(0.96)",transition:{type:"easeOut",bounce:0,duration:.15}}},scale:{enter:{scale:1},exit:{scale:.95}},scaleFadeIn:{enter:{transform:"scale(1)",opacity:1,transition:{duration:.25,ease:er.easeIn}},exit:{transform:"scale(0.95)",opacity:0,transition:{duration:.2,ease:er.easeOut}}},scaleInOut:{enter:{transform:"scale(1)",opacity:1,transition:{duration:.4,ease:er.ease}},exit:{transform:"scale(1.03)",opacity:0,transition:{duration:.3,ease:er.ease}}},fade:{enter:{opacity:1,transition:{duration:.4,ease:er.ease}},exit:{opacity:0,transition:{duration:.3,ease:er.ease}}},collapse:{enter:{opacity:1,height:"auto",transition:{height:{type:"spring",bounce:0,duration:.3},opacity:{easings:"ease",duration:.4}}},exit:{opacity:0,height:0,transition:{easings:"ease",duration:.3}}}},Ea=qr((e,r)=>{const{Component:t,children:o,content:n,isOpen:s,portalContainer:i,placement:l,disableAnimation:u,motionProps:g,getTriggerProps:b,getTooltipProps:y,getTooltipContentProps:h}=Qu({...e,ref:r});let v;try{if(d.Children.count(o)!==1)throw new Error;if(!d.isValidElement(o))v=p.jsx("p",{...b(),children:o});else{const I=o;v=d.cloneElement(I,b(I.props,I.ref))}}catch{v=p.jsx("span",{}),Xs("Tooltip must have only one child node. Please, check your code.")}const{ref:x,id:E,style:k,...T}=y(),M=p.jsx("div",{ref:x,id:E,style:k,children:p.jsx(Re.LazyMotion,{features:Re.domAnimation,children:p.jsx(Re.m.div,{animate:"enter",exit:"exit",initial:"exit",variants:ef.scaleSpring,...ke(g,T),style:{...Zu(l)},children:p.jsx(t,{...h(),children:n})})})});return p.jsxs(p.Fragment,{children:[v,u&&s?p.jsx(fn,{portalContainer:i,children:p.jsx("div",{ref:x,id:E,style:k,...T,children:p.jsx(t,{...h(),children:n})})}):p.jsx(Re.AnimatePresence,{children:s?p.jsx(fn,{portalContainer:i,children:M}):null})]})});Ea.displayName="NextUI.Tooltip";var rf=Ea;const tf=m.styled(rf).attrs({className:"tooltip"})`
1648
1648
  z-index: 0;
1649
1649
  position: relative;
1650
1650
  background-color: transparent;
@@ -1765,7 +1765,7 @@ Check the top-level render call using <`+w+">.")}return f}function Mo(a,f){if(!(
1765
1765
  border-radius: 0.375rem;
1766
1766
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
1767
1767
  }
1768
- `;function of({children:e,...r}){return p.jsx(tf,{classNames:{base:["tooltip"],content:["tooltip-content"]},...r,children:e})}function pe(){return pe=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},pe.apply(this,arguments)}function ka(e,r=[]){let t=[];function o(s,i){const l=d.createContext(i),u=t.length;t=[...t,i];function g(y){const{scope:h,children:v,...x}=y,E=(h==null?void 0:h[e][u])||l,k=d.useMemo(()=>x,Object.values(x));return d.createElement(E.Provider,{value:k},v)}function b(y,h){const v=(h==null?void 0:h[e][u])||l,x=d.useContext(v);if(x)return x;if(i!==void 0)return i;throw new Error(`\`${y}\` must be used within \`${s}\``)}return g.displayName=s+"Provider",[g,b]}const n=()=>{const s=t.map(i=>d.createContext(i));return function(l){const u=(l==null?void 0:l[e])||s;return d.useMemo(()=>({[`__scope${e}`]:{...l,[e]:u}}),[l,u])}};return n.scopeName=e,[o,nf(n,...r)]}function nf(...e){const r=e[0];if(e.length===1)return r;const t=()=>{const o=e.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(s){const i=o.reduce((l,{useScope:u,scopeName:g})=>{const y=u(s)[`__scope${g}`];return{...l,...y}},{});return d.useMemo(()=>({[`__scope${r.scopeName}`]:i}),[i])}};return t.scopeName=r.scopeName,t}function ye(e,r,{checkForDefaultPrevented:t=!0}={}){return function(n){if(e==null||e(n),t===!1||!n.defaultPrevented)return r==null?void 0:r(n)}}function af(e,r){typeof e=="function"?e(r):e!=null&&(e.current=r)}function eo(...e){return r=>e.forEach(t=>af(t,r))}function Fe(...e){return d.useCallback(eo(...e),e)}const Ur=d.forwardRef((e,r)=>{const{children:t,...o}=e,n=d.Children.toArray(t),s=n.find(lf);if(s){const i=s.props.children,l=n.map(u=>u===s?d.Children.count(i)>1?d.Children.only(null):d.isValidElement(i)?i.props.children:null:u);return d.createElement(Nt,pe({},o,{ref:r}),d.isValidElement(i)?d.cloneElement(i,void 0,l):null)}return d.createElement(Nt,pe({},o,{ref:r}),t)});Ur.displayName="Slot";const Nt=d.forwardRef((e,r)=>{const{children:t,...o}=e;return d.isValidElement(t)?d.cloneElement(t,{...cf(o,t.props),ref:r?eo(r,t.ref):t.ref}):d.Children.count(t)>1?d.Children.only(null):null});Nt.displayName="SlotClone";const sf=({children:e})=>d.createElement(d.Fragment,null,e);function lf(e){return d.isValidElement(e)&&e.type===sf}function cf(e,r){const t={...r};for(const o in r){const n=e[o],s=r[o];/^on[A-Z]/.test(o)?n&&s?t[o]=(...l)=>{s(...l),n(...l)}:n&&(t[o]=n):o==="style"?t[o]={...n,...s}:o==="className"&&(t[o]=[n,s].filter(Boolean).join(" "))}return{...e,...t}}const df=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Se=df.reduce((e,r)=>{const t=d.forwardRef((o,n)=>{const{asChild:s,...i}=o,l=s?Ur:r;return d.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),d.createElement(l,pe({},i,{ref:n}))});return t.displayName=`Primitive.${r}`,{...e,[r]:t}},{});function Dt(e,r){e&&Yr.flushSync(()=>e.dispatchEvent(r))}function Ee(e){const r=d.useRef(e);return d.useEffect(()=>{r.current=e}),d.useMemo(()=>(...t)=>{var o;return(o=r.current)===null||o===void 0?void 0:o.call(r,...t)},[])}function uf({prop:e,defaultProp:r,onChange:t=()=>{}}){const[o,n]=ff({defaultProp:r,onChange:t}),s=e!==void 0,i=s?e:o,l=Ee(t),u=d.useCallback(g=>{if(s){const y=typeof g=="function"?g(e):g;y!==e&&l(y)}else n(g)},[s,e,n,l]);return[i,u]}function ff({defaultProp:e,onChange:r}){const t=d.useState(e),[o]=t,n=d.useRef(o),s=Ee(r);return d.useEffect(()=>{n.current!==o&&(s(o),n.current=o)},[o,n,s]),t}const pf=d.createContext(void 0);function bf(e){const r=d.useContext(pf);return e||r||"ltr"}const nr=globalThis!=null&&globalThis.document?d.useLayoutEffect:()=>{};function gf(e,r){return d.useReducer((t,o)=>{const n=r[t][o];return n??t},e)}const $r=e=>{const{present:r,children:t}=e,o=vf(r),n=typeof t=="function"?t({present:o.isPresent}):d.Children.only(t),s=Fe(o.ref,n.ref);return typeof t=="function"||o.isPresent?d.cloneElement(n,{ref:s}):null};$r.displayName="Presence";function vf(e){const[r,t]=d.useState(),o=d.useRef({}),n=d.useRef(e),s=d.useRef("none"),i=e?"mounted":"unmounted",[l,u]=gf(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return d.useEffect(()=>{const g=Lr(o.current);s.current=l==="mounted"?g:"none"},[l]),nr(()=>{const g=o.current,b=n.current;if(b!==e){const h=s.current,v=Lr(g);e?u("MOUNT"):v==="none"||(g==null?void 0:g.display)==="none"?u("UNMOUNT"):u(b&&h!==v?"ANIMATION_OUT":"UNMOUNT"),n.current=e}},[e,u]),nr(()=>{if(r){const g=y=>{const v=Lr(o.current).includes(y.animationName);y.target===r&&v&&Yr.flushSync(()=>u("ANIMATION_END"))},b=y=>{y.target===r&&(s.current=Lr(o.current))};return r.addEventListener("animationstart",b),r.addEventListener("animationcancel",g),r.addEventListener("animationend",g),()=>{r.removeEventListener("animationstart",b),r.removeEventListener("animationcancel",g),r.removeEventListener("animationend",g)}}else u("ANIMATION_END")},[r,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:d.useCallback(g=>{g&&(o.current=getComputedStyle(g)),t(g)},[])}}function Lr(e){return(e==null?void 0:e.animationName)||"none"}const yf=Fr["useId".toString()]||(()=>{});let $f=0;function Sa(e){const[r,t]=Fr.useState(yf());return nr(()=>{e||t(o=>o??String($f++))},[e]),e||(r?`radix-${r}`:"")}function Ta(e){const r=e+"CollectionProvider",[t,o]=ka(r),[n,s]=t(r,{collectionRef:{current:null},itemMap:new Map}),i=v=>{const{scope:x,children:E}=v,k=d.useRef(null),T=d.useRef(new Map).current;return d.createElement(n,{scope:x,itemMap:T,collectionRef:k},E)},l=e+"CollectionSlot",u=d.forwardRef((v,x)=>{const{scope:E,children:k}=v,T=s(l,E),M=Fe(x,T.collectionRef);return d.createElement(Ur,{ref:M},k)}),g=e+"CollectionItemSlot",b="data-radix-collection-item",y=d.forwardRef((v,x)=>{const{scope:E,children:k,...T}=v,M=d.useRef(null),_=Fe(x,M),I=s(g,E);return d.useEffect(()=>(I.itemMap.set(M,{ref:M,...T}),()=>void I.itemMap.delete(M))),d.createElement(Ur,{[b]:"",ref:_},k)});function h(v){const x=s(e+"CollectionConsumer",v);return d.useCallback(()=>{const k=x.collectionRef.current;if(!k)return[];const T=Array.from(k.querySelectorAll(`[${b}]`));return Array.from(x.itemMap.values()).sort((I,O)=>T.indexOf(I.ref.current)-T.indexOf(O.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:i,Slot:u,ItemSlot:y},h,o]}function xf(e,r=globalThis==null?void 0:globalThis.document){const t=Ee(e);d.useEffect(()=>{const o=n=>{n.key==="Escape"&&t(n)};return r.addEventListener("keydown",o),()=>r.removeEventListener("keydown",o)},[t,r])}const Ft="dismissableLayer.update",wf="dismissableLayer.pointerDownOutside",mf="dismissableLayer.focusOutside";let yn;const hf=d.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Cf=d.forwardRef((e,r)=>{var t;const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:n,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:l,onDismiss:u,...g}=e,b=d.useContext(hf),[y,h]=d.useState(null),v=(t=y==null?void 0:y.ownerDocument)!==null&&t!==void 0?t:globalThis==null?void 0:globalThis.document,[,x]=d.useState({}),E=Fe(r,L=>h(L)),k=Array.from(b.layers),[T]=[...b.layersWithOutsidePointerEventsDisabled].slice(-1),M=k.indexOf(T),_=y?k.indexOf(y):-1,I=b.layersWithOutsidePointerEventsDisabled.size>0,O=_>=M,P=Ef(L=>{const N=L.target,J=[...b.branches].some(q=>q.contains(N));!O||J||(s==null||s(L),l==null||l(L),L.defaultPrevented||u==null||u())},v),F=kf(L=>{const N=L.target;[...b.branches].some(q=>q.contains(N))||(i==null||i(L),l==null||l(L),L.defaultPrevented||u==null||u())},v);return xf(L=>{_===b.layers.size-1&&(n==null||n(L),!L.defaultPrevented&&u&&(L.preventDefault(),u()))},v),d.useEffect(()=>{if(y)return o&&(b.layersWithOutsidePointerEventsDisabled.size===0&&(yn=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),b.layersWithOutsidePointerEventsDisabled.add(y)),b.layers.add(y),$n(),()=>{o&&b.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=yn)}},[y,v,o,b]),d.useEffect(()=>()=>{y&&(b.layers.delete(y),b.layersWithOutsidePointerEventsDisabled.delete(y),$n())},[y,b]),d.useEffect(()=>{const L=()=>x({});return document.addEventListener(Ft,L),()=>document.removeEventListener(Ft,L)},[]),d.createElement(Se.div,pe({},g,{ref:E,style:{pointerEvents:I?O?"auto":"none":void 0,...e.style},onFocusCapture:ye(e.onFocusCapture,F.onFocusCapture),onBlurCapture:ye(e.onBlurCapture,F.onBlurCapture),onPointerDownCapture:ye(e.onPointerDownCapture,P.onPointerDownCapture)}))});function Ef(e,r=globalThis==null?void 0:globalThis.document){const t=Ee(e),o=d.useRef(!1),n=d.useRef(()=>{});return d.useEffect(()=>{const s=l=>{if(l.target&&!o.current){let g=function(){Pa(wf,t,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(r.removeEventListener("click",n.current),n.current=g,r.addEventListener("click",n.current,{once:!0})):g()}else r.removeEventListener("click",n.current);o.current=!1},i=window.setTimeout(()=>{r.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),r.removeEventListener("pointerdown",s),r.removeEventListener("click",n.current)}},[r,t]),{onPointerDownCapture:()=>o.current=!0}}function kf(e,r=globalThis==null?void 0:globalThis.document){const t=Ee(e),o=d.useRef(!1);return d.useEffect(()=>{const n=s=>{s.target&&!o.current&&Pa(mf,t,{originalEvent:s},{discrete:!1})};return r.addEventListener("focusin",n),()=>r.removeEventListener("focusin",n)},[r,t]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function $n(){const e=new CustomEvent(Ft);document.dispatchEvent(e)}function Pa(e,r,t,{discrete:o}){const n=t.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:t});r&&n.addEventListener(e,r,{once:!0}),o?Dt(n,s):n.dispatchEvent(s)}function Sf(e){const r=d.useRef({value:e,previous:e});return d.useMemo(()=>(r.current.value!==e&&(r.current.previous=r.current.value,r.current.value=e),r.current.previous),[e])}const Tf=d.forwardRef((e,r)=>d.createElement(Se.span,pe({},e,{ref:r,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),Pf=Tf,xr="NavigationMenu",[ro,Ra,Rf]=Ta(xr),[zt,Of,jf]=Ta(xr),[to,T0]=ka(xr,[Rf,jf]),[Mf,Oe]=to(xr),[_f,If]=to(xr),Af=d.forwardRef((e,r)=>{const{__scopeNavigationMenu:t,value:o,onValueChange:n,defaultValue:s,delayDuration:i=200,skipDelayDuration:l=300,orientation:u="horizontal",dir:g,...b}=e,[y,h]=d.useState(null),v=Fe(r,N=>h(N)),x=bf(g),E=d.useRef(0),k=d.useRef(0),T=d.useRef(0),[M,_]=d.useState(!0),[I="",O]=uf({prop:o,onChange:N=>{const J=N!=="",q=l>0;J?(window.clearTimeout(T.current),q&&_(!1)):(window.clearTimeout(T.current),T.current=window.setTimeout(()=>_(!0),l)),n==null||n(N)},defaultProp:s}),P=d.useCallback(()=>{window.clearTimeout(k.current),k.current=window.setTimeout(()=>O(""),150)},[O]),F=d.useCallback(N=>{window.clearTimeout(k.current),O(N)},[O]),L=d.useCallback(N=>{I===N?window.clearTimeout(k.current):E.current=window.setTimeout(()=>{window.clearTimeout(k.current),O(N)},i)},[I,O,i]);return d.useEffect(()=>()=>{window.clearTimeout(E.current),window.clearTimeout(k.current),window.clearTimeout(T.current)},[]),d.createElement(Lf,{scope:t,isRootMenu:!0,value:I,dir:x,orientation:u,rootNavigationMenu:y,onTriggerEnter:N=>{window.clearTimeout(E.current),M?L(N):F(N)},onTriggerLeave:()=>{window.clearTimeout(E.current),P()},onContentEnter:()=>window.clearTimeout(k.current),onContentLeave:P,onItemSelect:N=>{O(J=>J===N?"":N)},onItemDismiss:()=>O("")},d.createElement(Se.nav,pe({"aria-label":"Main","data-orientation":u,dir:x},b,{ref:v})))}),Lf=e=>{const{scope:r,isRootMenu:t,rootNavigationMenu:o,dir:n,orientation:s,children:i,value:l,onItemSelect:u,onItemDismiss:g,onTriggerEnter:b,onTriggerLeave:y,onContentEnter:h,onContentLeave:v}=e,[x,E]=d.useState(null),[k,T]=d.useState(new Map),[M,_]=d.useState(null);return d.createElement(Mf,{scope:r,isRootMenu:t,rootNavigationMenu:o,value:l,previousValue:Sf(l),baseId:Sa(),dir:n,orientation:s,viewport:x,onViewportChange:E,indicatorTrack:M,onIndicatorTrackChange:_,onTriggerEnter:Ee(b),onTriggerLeave:Ee(y),onContentEnter:Ee(h),onContentLeave:Ee(v),onItemSelect:Ee(u),onItemDismiss:Ee(g),onViewportContentChange:d.useCallback((I,O)=>{T(P=>(P.set(I,O),new Map(P)))},[]),onViewportContentRemove:d.useCallback(I=>{T(O=>O.has(I)?(O.delete(I),new Map(O)):O)},[])},d.createElement(ro.Provider,{scope:r},d.createElement(_f,{scope:r,items:k},i)))},Nf="NavigationMenuList",Df=d.forwardRef((e,r)=>{const{__scopeNavigationMenu:t,...o}=e,n=Oe(Nf,t),s=d.createElement(Se.ul,pe({"data-orientation":n.orientation},o,{ref:r}));return d.createElement(Se.div,{style:{position:"relative"},ref:n.onIndicatorTrackChange},d.createElement(ro.Slot,{scope:t},n.isRootMenu?d.createElement(Ia,{asChild:!0},s):s))}),Ff="NavigationMenuItem",[zf,Oa]=to(Ff),Vf=d.forwardRef((e,r)=>{const{__scopeNavigationMenu:t,value:o,...n}=e,s=Sa(),i=o||s||"LEGACY_REACT_AUTO_VALUE",l=d.useRef(null),u=d.useRef(null),g=d.useRef(null),b=d.useRef(()=>{}),y=d.useRef(!1),h=d.useCallback((x="start")=>{if(l.current){b.current();const E=Vt(l.current);E.length&&oo(x==="start"?E:E.reverse())}},[]),v=d.useCallback(()=>{if(l.current){const x=Vt(l.current);x.length&&(b.current=Jf(x))}},[]);return d.createElement(zf,{scope:t,value:i,triggerRef:u,contentRef:l,focusProxyRef:g,wasEscapeCloseRef:y,onEntryKeyDown:h,onFocusProxyEnter:h,onRootContentClose:v,onContentFocusOutside:v},d.createElement(Se.li,pe({},n,{ref:r})))}),xn="NavigationMenuTrigger",Bf=d.forwardRef((e,r)=>{const{__scopeNavigationMenu:t,disabled:o,...n}=e,s=Oe(xn,e.__scopeNavigationMenu),i=Oa(xn,e.__scopeNavigationMenu),l=d.useRef(null),u=Fe(l,i.triggerRef,r),g=La(s.baseId,i.value),b=Na(s.baseId,i.value),y=d.useRef(!1),h=d.useRef(!1),v=i.value===s.value;return d.createElement(d.Fragment,null,d.createElement(ro.ItemSlot,{scope:t,value:i.value},d.createElement(Aa,{asChild:!0},d.createElement(Se.button,pe({id:g,disabled:o,"data-disabled":o?"":void 0,"data-state":no(v),"aria-expanded":v,"aria-controls":b},n,{ref:u,onPointerEnter:ye(e.onPointerEnter,()=>{h.current=!1,i.wasEscapeCloseRef.current=!1}),onPointerMove:ye(e.onPointerMove,Kr(()=>{o||h.current||i.wasEscapeCloseRef.current||y.current||(s.onTriggerEnter(i.value),y.current=!0)})),onPointerLeave:ye(e.onPointerLeave,Kr(()=>{o||(s.onTriggerLeave(),y.current=!1)})),onClick:ye(e.onClick,()=>{s.onItemSelect(i.value),h.current=v}),onKeyDown:ye(e.onKeyDown,x=>{const k={horizontal:"ArrowDown",vertical:s.dir==="rtl"?"ArrowLeft":"ArrowRight"}[s.orientation];v&&x.key===k&&(i.onEntryKeyDown(),x.preventDefault())})})))),v&&d.createElement(d.Fragment,null,d.createElement(Pf,{"aria-hidden":!0,tabIndex:0,ref:i.focusProxyRef,onFocus:x=>{const E=i.contentRef.current,k=x.relatedTarget,T=k===l.current,M=E==null?void 0:E.contains(k);(T||!M)&&i.onFocusProxyEnter(T?"start":"end")}}),s.viewport&&d.createElement("span",{"aria-owns":b})))}),wn="navigationMenu.linkSelect",Hf=d.forwardRef((e,r)=>{const{__scopeNavigationMenu:t,active:o,onSelect:n,...s}=e;return d.createElement(Aa,{asChild:!0},d.createElement(Se.a,pe({"data-active":o?"":void 0,"aria-current":o?"page":void 0},s,{ref:r,onClick:ye(e.onClick,i=>{const l=i.target,u=new CustomEvent(wn,{bubbles:!0,cancelable:!0});if(l.addEventListener(wn,g=>n==null?void 0:n(g),{once:!0}),Dt(l,u),!u.defaultPrevented&&!i.metaKey){const g=new CustomEvent(Dr,{bubbles:!0,cancelable:!0});Dt(l,g)}},{checkForDefaultPrevented:!1})})))}),ja="NavigationMenuIndicator",Gf=d.forwardRef((e,r)=>{const{forceMount:t,...o}=e,n=Oe(ja,e.__scopeNavigationMenu),s=!!n.value;return n.indicatorTrack?Yr.createPortal(d.createElement($r,{present:t||s},d.createElement(Wf,pe({},o,{ref:r}))),n.indicatorTrack):null}),Wf=d.forwardRef((e,r)=>{const{__scopeNavigationMenu:t,...o}=e,n=Oe(ja,t),s=Ra(t),[i,l]=d.useState(null),[u,g]=d.useState(null),b=n.orientation==="horizontal",y=!!n.value;d.useEffect(()=>{var v;const E=(v=s().find(k=>k.value===n.value))===null||v===void 0?void 0:v.ref.current;E&&l(E)},[s,n.value]);const h=()=>{i&&g({size:b?i.offsetWidth:i.offsetHeight,offset:b?i.offsetLeft:i.offsetTop})};return Bt(i,h),Bt(n.indicatorTrack,h),u?d.createElement(Se.div,pe({"aria-hidden":!0,"data-state":y?"visible":"hidden","data-orientation":n.orientation},o,{ref:r,style:{position:"absolute",...b?{left:0,width:u.size+"px",transform:`translateX(${u.offset}px)`}:{top:0,height:u.size+"px",transform:`translateY(${u.offset}px)`},...o.style}})):null}),yr="NavigationMenuContent",Uf=d.forwardRef((e,r)=>{const{forceMount:t,...o}=e,n=Oe(yr,e.__scopeNavigationMenu),s=Oa(yr,e.__scopeNavigationMenu),i=Fe(s.contentRef,r),l=s.value===n.value,u={value:s.value,triggerRef:s.triggerRef,focusProxyRef:s.focusProxyRef,wasEscapeCloseRef:s.wasEscapeCloseRef,onContentFocusOutside:s.onContentFocusOutside,onRootContentClose:s.onRootContentClose,...o};return n.viewport?d.createElement(Kf,pe({forceMount:t},u,{ref:i})):d.createElement($r,{present:t||l},d.createElement(Ma,pe({"data-state":no(l)},u,{ref:i,onPointerEnter:ye(e.onPointerEnter,n.onContentEnter),onPointerLeave:ye(e.onPointerLeave,Kr(n.onContentLeave)),style:{pointerEvents:!l&&n.isRootMenu?"none":void 0,...u.style}})))}),Kf=d.forwardRef((e,r)=>{const t=Oe(yr,e.__scopeNavigationMenu),{onViewportContentChange:o,onViewportContentRemove:n}=t;return nr(()=>{o(e.value,{ref:r,...e})},[e,r,o]),nr(()=>()=>n(e.value),[e.value,n]),null}),Dr="navigationMenu.rootContentDismiss",Ma=d.forwardRef((e,r)=>{const{__scopeNavigationMenu:t,value:o,triggerRef:n,focusProxyRef:s,wasEscapeCloseRef:i,onRootContentClose:l,onContentFocusOutside:u,...g}=e,b=Oe(yr,t),y=d.useRef(null),h=Fe(y,r),v=La(b.baseId,o),x=Na(b.baseId,o),E=Ra(t),k=d.useRef(null),{onItemDismiss:T}=b;d.useEffect(()=>{const _=y.current;if(b.isRootMenu&&_){const I=()=>{var O;T(),l(),_.contains(document.activeElement)&&((O=n.current)===null||O===void 0||O.focus())};return _.addEventListener(Dr,I),()=>_.removeEventListener(Dr,I)}},[b.isRootMenu,e.value,n,T,l]);const M=d.useMemo(()=>{const I=E().map(J=>J.value);b.dir==="rtl"&&I.reverse();const O=I.indexOf(b.value),P=I.indexOf(b.previousValue),F=o===b.value,L=P===I.indexOf(o);if(!F&&!L)return k.current;const N=(()=>{if(O!==P){if(F&&P!==-1)return O>P?"from-end":"from-start";if(L&&O!==-1)return O>P?"to-start":"to-end"}return null})();return k.current=N,N},[b.previousValue,b.value,b.dir,E,o]);return d.createElement(Ia,{asChild:!0},d.createElement(Cf,pe({id:x,"aria-labelledby":v,"data-motion":M,"data-orientation":b.orientation},g,{ref:h,onDismiss:()=>{var _;const I=new Event(Dr,{bubbles:!0,cancelable:!0});(_=y.current)===null||_===void 0||_.dispatchEvent(I)},onFocusOutside:ye(e.onFocusOutside,_=>{var I;u();const O=_.target;(I=b.rootNavigationMenu)!==null&&I!==void 0&&I.contains(O)&&_.preventDefault()}),onPointerDownOutside:ye(e.onPointerDownOutside,_=>{var I;const O=_.target,P=E().some(L=>{var N;return(N=L.ref.current)===null||N===void 0?void 0:N.contains(O)}),F=b.isRootMenu&&((I=b.viewport)===null||I===void 0?void 0:I.contains(O));(P||F||!b.isRootMenu)&&_.preventDefault()}),onKeyDown:ye(e.onKeyDown,_=>{const I=_.altKey||_.ctrlKey||_.metaKey;if(_.key==="Tab"&&!I){const F=Vt(_.currentTarget),L=document.activeElement,N=F.findIndex(j=>j===L),q=_.shiftKey?F.slice(0,N).reverse():F.slice(N+1,F.length);if(oo(q))_.preventDefault();else{var P;(P=s.current)===null||P===void 0||P.focus()}}}),onEscapeKeyDown:ye(e.onEscapeKeyDown,_=>{i.current=!0})})))}),_a="NavigationMenuViewport",Yf=d.forwardRef((e,r)=>{const{forceMount:t,...o}=e,s=!!Oe(_a,e.__scopeNavigationMenu).value;return d.createElement($r,{present:t||s},d.createElement(Xf,pe({},o,{ref:r})))}),Xf=d.forwardRef((e,r)=>{const{__scopeNavigationMenu:t,children:o,...n}=e,s=Oe(_a,t),i=Fe(r,s.onViewportChange),l=If(yr,e.__scopeNavigationMenu),[u,g]=d.useState(null),[b,y]=d.useState(null),h=u?(u==null?void 0:u.width)+"px":void 0,v=u?(u==null?void 0:u.height)+"px":void 0,x=!!s.value,E=x?s.value:s.previousValue;return Bt(b,()=>{b&&g({width:b.offsetWidth,height:b.offsetHeight})}),d.createElement(Se.div,pe({"data-state":no(x),"data-orientation":s.orientation},n,{ref:i,style:{pointerEvents:!x&&s.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":h,"--radix-navigation-menu-viewport-height":v,...n.style},onPointerEnter:ye(e.onPointerEnter,s.onContentEnter),onPointerLeave:ye(e.onPointerLeave,Kr(s.onContentLeave))}),Array.from(l.items).map(([T,{ref:M,forceMount:_,...I}])=>{const O=E===T;return d.createElement($r,{key:T,present:_||O},d.createElement(Ma,pe({},I,{ref:eo(M,P=>{O&&P&&y(P)})})))}))}),qf="FocusGroup",Ia=d.forwardRef((e,r)=>{const{__scopeNavigationMenu:t,...o}=e,n=Oe(qf,t);return d.createElement(zt.Provider,{scope:t},d.createElement(zt.Slot,{scope:t},d.createElement(Se.div,pe({dir:n.dir},o,{ref:r}))))}),mn=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],Zf="FocusGroupItem",Aa=d.forwardRef((e,r)=>{const{__scopeNavigationMenu:t,...o}=e,n=Of(t),s=Oe(Zf,t);return d.createElement(zt.ItemSlot,{scope:t},d.createElement(Se.button,pe({},o,{ref:r,onKeyDown:ye(e.onKeyDown,i=>{if(["Home","End",...mn].includes(i.key)){let u=n().map(y=>y.ref.current);if([s.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(i.key)&&u.reverse(),mn.includes(i.key)){const y=u.indexOf(i.currentTarget);u=u.slice(y+1)}setTimeout(()=>oo(u)),i.preventDefault()}})})))});function Vt(e){const r=[],t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const n=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||n?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;t.nextNode();)r.push(t.currentNode);return r}function oo(e){const r=document.activeElement;return e.some(t=>t===r?!0:(t.focus(),document.activeElement!==r))}function Jf(e){return e.forEach(r=>{r.dataset.tabindex=r.getAttribute("tabindex")||"",r.setAttribute("tabindex","-1")}),()=>{e.forEach(r=>{const t=r.dataset.tabindex;r.setAttribute("tabindex",t)})}}function Bt(e,r){const t=Ee(r);nr(()=>{let o=0;if(e){const n=new ResizeObserver(()=>{cancelAnimationFrame(o),o=window.requestAnimationFrame(t)});return n.observe(e),()=>{window.cancelAnimationFrame(o),n.unobserve(e)}}},[e,t])}function no(e){return e?"open":"closed"}function La(e,r){return`${e}-trigger-${r}`}function Na(e,r){return`${e}-content-${r}`}function Kr(e){return r=>r.pointerType==="mouse"?e(r):void 0}const Qf=Af,e0=Df,vt=Vf,r0=Bf,t0=Hf,o0=Gf,n0=Uf,a0=Yf,s0=m.keyframes`
1768
+ `,of=d.forwardRef(function(r,t){return p.jsx(tf,{classNames:{base:["tooltip"],content:["tooltip-content"]},...r,ref:t})});function pe(){return pe=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},pe.apply(this,arguments)}function ka(e,r=[]){let t=[];function o(s,i){const l=d.createContext(i),u=t.length;t=[...t,i];function g(y){const{scope:h,children:v,...x}=y,E=(h==null?void 0:h[e][u])||l,k=d.useMemo(()=>x,Object.values(x));return d.createElement(E.Provider,{value:k},v)}function b(y,h){const v=(h==null?void 0:h[e][u])||l,x=d.useContext(v);if(x)return x;if(i!==void 0)return i;throw new Error(`\`${y}\` must be used within \`${s}\``)}return g.displayName=s+"Provider",[g,b]}const n=()=>{const s=t.map(i=>d.createContext(i));return function(l){const u=(l==null?void 0:l[e])||s;return d.useMemo(()=>({[`__scope${e}`]:{...l,[e]:u}}),[l,u])}};return n.scopeName=e,[o,nf(n,...r)]}function nf(...e){const r=e[0];if(e.length===1)return r;const t=()=>{const o=e.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(s){const i=o.reduce((l,{useScope:u,scopeName:g})=>{const y=u(s)[`__scope${g}`];return{...l,...y}},{});return d.useMemo(()=>({[`__scope${r.scopeName}`]:i}),[i])}};return t.scopeName=r.scopeName,t}function ye(e,r,{checkForDefaultPrevented:t=!0}={}){return function(n){if(e==null||e(n),t===!1||!n.defaultPrevented)return r==null?void 0:r(n)}}function af(e,r){typeof e=="function"?e(r):e!=null&&(e.current=r)}function eo(...e){return r=>e.forEach(t=>af(t,r))}function Fe(...e){return d.useCallback(eo(...e),e)}const Ur=d.forwardRef((e,r)=>{const{children:t,...o}=e,n=d.Children.toArray(t),s=n.find(lf);if(s){const i=s.props.children,l=n.map(u=>u===s?d.Children.count(i)>1?d.Children.only(null):d.isValidElement(i)?i.props.children:null:u);return d.createElement(Nt,pe({},o,{ref:r}),d.isValidElement(i)?d.cloneElement(i,void 0,l):null)}return d.createElement(Nt,pe({},o,{ref:r}),t)});Ur.displayName="Slot";const Nt=d.forwardRef((e,r)=>{const{children:t,...o}=e;return d.isValidElement(t)?d.cloneElement(t,{...cf(o,t.props),ref:r?eo(r,t.ref):t.ref}):d.Children.count(t)>1?d.Children.only(null):null});Nt.displayName="SlotClone";const sf=({children:e})=>d.createElement(d.Fragment,null,e);function lf(e){return d.isValidElement(e)&&e.type===sf}function cf(e,r){const t={...r};for(const o in r){const n=e[o],s=r[o];/^on[A-Z]/.test(o)?n&&s?t[o]=(...l)=>{s(...l),n(...l)}:n&&(t[o]=n):o==="style"?t[o]={...n,...s}:o==="className"&&(t[o]=[n,s].filter(Boolean).join(" "))}return{...e,...t}}const df=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Se=df.reduce((e,r)=>{const t=d.forwardRef((o,n)=>{const{asChild:s,...i}=o,l=s?Ur:r;return d.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),d.createElement(l,pe({},i,{ref:n}))});return t.displayName=`Primitive.${r}`,{...e,[r]:t}},{});function Dt(e,r){e&&Yr.flushSync(()=>e.dispatchEvent(r))}function Ee(e){const r=d.useRef(e);return d.useEffect(()=>{r.current=e}),d.useMemo(()=>(...t)=>{var o;return(o=r.current)===null||o===void 0?void 0:o.call(r,...t)},[])}function uf({prop:e,defaultProp:r,onChange:t=()=>{}}){const[o,n]=ff({defaultProp:r,onChange:t}),s=e!==void 0,i=s?e:o,l=Ee(t),u=d.useCallback(g=>{if(s){const y=typeof g=="function"?g(e):g;y!==e&&l(y)}else n(g)},[s,e,n,l]);return[i,u]}function ff({defaultProp:e,onChange:r}){const t=d.useState(e),[o]=t,n=d.useRef(o),s=Ee(r);return d.useEffect(()=>{n.current!==o&&(s(o),n.current=o)},[o,n,s]),t}const pf=d.createContext(void 0);function bf(e){const r=d.useContext(pf);return e||r||"ltr"}const ar=globalThis!=null&&globalThis.document?d.useLayoutEffect:()=>{};function gf(e,r){return d.useReducer((t,o)=>{const n=r[t][o];return n??t},e)}const $r=e=>{const{present:r,children:t}=e,o=vf(r),n=typeof t=="function"?t({present:o.isPresent}):d.Children.only(t),s=Fe(o.ref,n.ref);return typeof t=="function"||o.isPresent?d.cloneElement(n,{ref:s}):null};$r.displayName="Presence";function vf(e){const[r,t]=d.useState(),o=d.useRef({}),n=d.useRef(e),s=d.useRef("none"),i=e?"mounted":"unmounted",[l,u]=gf(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return d.useEffect(()=>{const g=Lr(o.current);s.current=l==="mounted"?g:"none"},[l]),ar(()=>{const g=o.current,b=n.current;if(b!==e){const h=s.current,v=Lr(g);e?u("MOUNT"):v==="none"||(g==null?void 0:g.display)==="none"?u("UNMOUNT"):u(b&&h!==v?"ANIMATION_OUT":"UNMOUNT"),n.current=e}},[e,u]),ar(()=>{if(r){const g=y=>{const v=Lr(o.current).includes(y.animationName);y.target===r&&v&&Yr.flushSync(()=>u("ANIMATION_END"))},b=y=>{y.target===r&&(s.current=Lr(o.current))};return r.addEventListener("animationstart",b),r.addEventListener("animationcancel",g),r.addEventListener("animationend",g),()=>{r.removeEventListener("animationstart",b),r.removeEventListener("animationcancel",g),r.removeEventListener("animationend",g)}}else u("ANIMATION_END")},[r,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:d.useCallback(g=>{g&&(o.current=getComputedStyle(g)),t(g)},[])}}function Lr(e){return(e==null?void 0:e.animationName)||"none"}const yf=Fr["useId".toString()]||(()=>{});let $f=0;function Sa(e){const[r,t]=Fr.useState(yf());return ar(()=>{e||t(o=>o??String($f++))},[e]),e||(r?`radix-${r}`:"")}function Ta(e){const r=e+"CollectionProvider",[t,o]=ka(r),[n,s]=t(r,{collectionRef:{current:null},itemMap:new Map}),i=v=>{const{scope:x,children:E}=v,k=d.useRef(null),T=d.useRef(new Map).current;return d.createElement(n,{scope:x,itemMap:T,collectionRef:k},E)},l=e+"CollectionSlot",u=d.forwardRef((v,x)=>{const{scope:E,children:k}=v,T=s(l,E),M=Fe(x,T.collectionRef);return d.createElement(Ur,{ref:M},k)}),g=e+"CollectionItemSlot",b="data-radix-collection-item",y=d.forwardRef((v,x)=>{const{scope:E,children:k,...T}=v,M=d.useRef(null),_=Fe(x,M),I=s(g,E);return d.useEffect(()=>(I.itemMap.set(M,{ref:M,...T}),()=>void I.itemMap.delete(M))),d.createElement(Ur,{[b]:"",ref:_},k)});function h(v){const x=s(e+"CollectionConsumer",v);return d.useCallback(()=>{const k=x.collectionRef.current;if(!k)return[];const T=Array.from(k.querySelectorAll(`[${b}]`));return Array.from(x.itemMap.values()).sort((I,O)=>T.indexOf(I.ref.current)-T.indexOf(O.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:i,Slot:u,ItemSlot:y},h,o]}function xf(e,r=globalThis==null?void 0:globalThis.document){const t=Ee(e);d.useEffect(()=>{const o=n=>{n.key==="Escape"&&t(n)};return r.addEventListener("keydown",o),()=>r.removeEventListener("keydown",o)},[t,r])}const Ft="dismissableLayer.update",wf="dismissableLayer.pointerDownOutside",mf="dismissableLayer.focusOutside";let yn;const hf=d.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Cf=d.forwardRef((e,r)=>{var t;const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:n,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:l,onDismiss:u,...g}=e,b=d.useContext(hf),[y,h]=d.useState(null),v=(t=y==null?void 0:y.ownerDocument)!==null&&t!==void 0?t:globalThis==null?void 0:globalThis.document,[,x]=d.useState({}),E=Fe(r,L=>h(L)),k=Array.from(b.layers),[T]=[...b.layersWithOutsidePointerEventsDisabled].slice(-1),M=k.indexOf(T),_=y?k.indexOf(y):-1,I=b.layersWithOutsidePointerEventsDisabled.size>0,O=_>=M,P=Ef(L=>{const N=L.target,J=[...b.branches].some(q=>q.contains(N));!O||J||(s==null||s(L),l==null||l(L),L.defaultPrevented||u==null||u())},v),F=kf(L=>{const N=L.target;[...b.branches].some(q=>q.contains(N))||(i==null||i(L),l==null||l(L),L.defaultPrevented||u==null||u())},v);return xf(L=>{_===b.layers.size-1&&(n==null||n(L),!L.defaultPrevented&&u&&(L.preventDefault(),u()))},v),d.useEffect(()=>{if(y)return o&&(b.layersWithOutsidePointerEventsDisabled.size===0&&(yn=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),b.layersWithOutsidePointerEventsDisabled.add(y)),b.layers.add(y),$n(),()=>{o&&b.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=yn)}},[y,v,o,b]),d.useEffect(()=>()=>{y&&(b.layers.delete(y),b.layersWithOutsidePointerEventsDisabled.delete(y),$n())},[y,b]),d.useEffect(()=>{const L=()=>x({});return document.addEventListener(Ft,L),()=>document.removeEventListener(Ft,L)},[]),d.createElement(Se.div,pe({},g,{ref:E,style:{pointerEvents:I?O?"auto":"none":void 0,...e.style},onFocusCapture:ye(e.onFocusCapture,F.onFocusCapture),onBlurCapture:ye(e.onBlurCapture,F.onBlurCapture),onPointerDownCapture:ye(e.onPointerDownCapture,P.onPointerDownCapture)}))});function Ef(e,r=globalThis==null?void 0:globalThis.document){const t=Ee(e),o=d.useRef(!1),n=d.useRef(()=>{});return d.useEffect(()=>{const s=l=>{if(l.target&&!o.current){let g=function(){Pa(wf,t,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(r.removeEventListener("click",n.current),n.current=g,r.addEventListener("click",n.current,{once:!0})):g()}else r.removeEventListener("click",n.current);o.current=!1},i=window.setTimeout(()=>{r.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),r.removeEventListener("pointerdown",s),r.removeEventListener("click",n.current)}},[r,t]),{onPointerDownCapture:()=>o.current=!0}}function kf(e,r=globalThis==null?void 0:globalThis.document){const t=Ee(e),o=d.useRef(!1);return d.useEffect(()=>{const n=s=>{s.target&&!o.current&&Pa(mf,t,{originalEvent:s},{discrete:!1})};return r.addEventListener("focusin",n),()=>r.removeEventListener("focusin",n)},[r,t]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function $n(){const e=new CustomEvent(Ft);document.dispatchEvent(e)}function Pa(e,r,t,{discrete:o}){const n=t.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:t});r&&n.addEventListener(e,r,{once:!0}),o?Dt(n,s):n.dispatchEvent(s)}function Sf(e){const r=d.useRef({value:e,previous:e});return d.useMemo(()=>(r.current.value!==e&&(r.current.previous=r.current.value,r.current.value=e),r.current.previous),[e])}const Tf=d.forwardRef((e,r)=>d.createElement(Se.span,pe({},e,{ref:r,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),Pf=Tf,xr="NavigationMenu",[ro,Ra,Rf]=Ta(xr),[zt,Of,jf]=Ta(xr),[to,T0]=ka(xr,[Rf,jf]),[Mf,Oe]=to(xr),[_f,If]=to(xr),Af=d.forwardRef((e,r)=>{const{__scopeNavigationMenu:t,value:o,onValueChange:n,defaultValue:s,delayDuration:i=200,skipDelayDuration:l=300,orientation:u="horizontal",dir:g,...b}=e,[y,h]=d.useState(null),v=Fe(r,N=>h(N)),x=bf(g),E=d.useRef(0),k=d.useRef(0),T=d.useRef(0),[M,_]=d.useState(!0),[I="",O]=uf({prop:o,onChange:N=>{const J=N!=="",q=l>0;J?(window.clearTimeout(T.current),q&&_(!1)):(window.clearTimeout(T.current),T.current=window.setTimeout(()=>_(!0),l)),n==null||n(N)},defaultProp:s}),P=d.useCallback(()=>{window.clearTimeout(k.current),k.current=window.setTimeout(()=>O(""),150)},[O]),F=d.useCallback(N=>{window.clearTimeout(k.current),O(N)},[O]),L=d.useCallback(N=>{I===N?window.clearTimeout(k.current):E.current=window.setTimeout(()=>{window.clearTimeout(k.current),O(N)},i)},[I,O,i]);return d.useEffect(()=>()=>{window.clearTimeout(E.current),window.clearTimeout(k.current),window.clearTimeout(T.current)},[]),d.createElement(Lf,{scope:t,isRootMenu:!0,value:I,dir:x,orientation:u,rootNavigationMenu:y,onTriggerEnter:N=>{window.clearTimeout(E.current),M?L(N):F(N)},onTriggerLeave:()=>{window.clearTimeout(E.current),P()},onContentEnter:()=>window.clearTimeout(k.current),onContentLeave:P,onItemSelect:N=>{O(J=>J===N?"":N)},onItemDismiss:()=>O("")},d.createElement(Se.nav,pe({"aria-label":"Main","data-orientation":u,dir:x},b,{ref:v})))}),Lf=e=>{const{scope:r,isRootMenu:t,rootNavigationMenu:o,dir:n,orientation:s,children:i,value:l,onItemSelect:u,onItemDismiss:g,onTriggerEnter:b,onTriggerLeave:y,onContentEnter:h,onContentLeave:v}=e,[x,E]=d.useState(null),[k,T]=d.useState(new Map),[M,_]=d.useState(null);return d.createElement(Mf,{scope:r,isRootMenu:t,rootNavigationMenu:o,value:l,previousValue:Sf(l),baseId:Sa(),dir:n,orientation:s,viewport:x,onViewportChange:E,indicatorTrack:M,onIndicatorTrackChange:_,onTriggerEnter:Ee(b),onTriggerLeave:Ee(y),onContentEnter:Ee(h),onContentLeave:Ee(v),onItemSelect:Ee(u),onItemDismiss:Ee(g),onViewportContentChange:d.useCallback((I,O)=>{T(P=>(P.set(I,O),new Map(P)))},[]),onViewportContentRemove:d.useCallback(I=>{T(O=>O.has(I)?(O.delete(I),new Map(O)):O)},[])},d.createElement(ro.Provider,{scope:r},d.createElement(_f,{scope:r,items:k},i)))},Nf="NavigationMenuList",Df=d.forwardRef((e,r)=>{const{__scopeNavigationMenu:t,...o}=e,n=Oe(Nf,t),s=d.createElement(Se.ul,pe({"data-orientation":n.orientation},o,{ref:r}));return d.createElement(Se.div,{style:{position:"relative"},ref:n.onIndicatorTrackChange},d.createElement(ro.Slot,{scope:t},n.isRootMenu?d.createElement(Ia,{asChild:!0},s):s))}),Ff="NavigationMenuItem",[zf,Oa]=to(Ff),Vf=d.forwardRef((e,r)=>{const{__scopeNavigationMenu:t,value:o,...n}=e,s=Sa(),i=o||s||"LEGACY_REACT_AUTO_VALUE",l=d.useRef(null),u=d.useRef(null),g=d.useRef(null),b=d.useRef(()=>{}),y=d.useRef(!1),h=d.useCallback((x="start")=>{if(l.current){b.current();const E=Vt(l.current);E.length&&oo(x==="start"?E:E.reverse())}},[]),v=d.useCallback(()=>{if(l.current){const x=Vt(l.current);x.length&&(b.current=Jf(x))}},[]);return d.createElement(zf,{scope:t,value:i,triggerRef:u,contentRef:l,focusProxyRef:g,wasEscapeCloseRef:y,onEntryKeyDown:h,onFocusProxyEnter:h,onRootContentClose:v,onContentFocusOutside:v},d.createElement(Se.li,pe({},n,{ref:r})))}),xn="NavigationMenuTrigger",Bf=d.forwardRef((e,r)=>{const{__scopeNavigationMenu:t,disabled:o,...n}=e,s=Oe(xn,e.__scopeNavigationMenu),i=Oa(xn,e.__scopeNavigationMenu),l=d.useRef(null),u=Fe(l,i.triggerRef,r),g=La(s.baseId,i.value),b=Na(s.baseId,i.value),y=d.useRef(!1),h=d.useRef(!1),v=i.value===s.value;return d.createElement(d.Fragment,null,d.createElement(ro.ItemSlot,{scope:t,value:i.value},d.createElement(Aa,{asChild:!0},d.createElement(Se.button,pe({id:g,disabled:o,"data-disabled":o?"":void 0,"data-state":no(v),"aria-expanded":v,"aria-controls":b},n,{ref:u,onPointerEnter:ye(e.onPointerEnter,()=>{h.current=!1,i.wasEscapeCloseRef.current=!1}),onPointerMove:ye(e.onPointerMove,Kr(()=>{o||h.current||i.wasEscapeCloseRef.current||y.current||(s.onTriggerEnter(i.value),y.current=!0)})),onPointerLeave:ye(e.onPointerLeave,Kr(()=>{o||(s.onTriggerLeave(),y.current=!1)})),onClick:ye(e.onClick,()=>{s.onItemSelect(i.value),h.current=v}),onKeyDown:ye(e.onKeyDown,x=>{const k={horizontal:"ArrowDown",vertical:s.dir==="rtl"?"ArrowLeft":"ArrowRight"}[s.orientation];v&&x.key===k&&(i.onEntryKeyDown(),x.preventDefault())})})))),v&&d.createElement(d.Fragment,null,d.createElement(Pf,{"aria-hidden":!0,tabIndex:0,ref:i.focusProxyRef,onFocus:x=>{const E=i.contentRef.current,k=x.relatedTarget,T=k===l.current,M=E==null?void 0:E.contains(k);(T||!M)&&i.onFocusProxyEnter(T?"start":"end")}}),s.viewport&&d.createElement("span",{"aria-owns":b})))}),wn="navigationMenu.linkSelect",Hf=d.forwardRef((e,r)=>{const{__scopeNavigationMenu:t,active:o,onSelect:n,...s}=e;return d.createElement(Aa,{asChild:!0},d.createElement(Se.a,pe({"data-active":o?"":void 0,"aria-current":o?"page":void 0},s,{ref:r,onClick:ye(e.onClick,i=>{const l=i.target,u=new CustomEvent(wn,{bubbles:!0,cancelable:!0});if(l.addEventListener(wn,g=>n==null?void 0:n(g),{once:!0}),Dt(l,u),!u.defaultPrevented&&!i.metaKey){const g=new CustomEvent(Dr,{bubbles:!0,cancelable:!0});Dt(l,g)}},{checkForDefaultPrevented:!1})})))}),ja="NavigationMenuIndicator",Gf=d.forwardRef((e,r)=>{const{forceMount:t,...o}=e,n=Oe(ja,e.__scopeNavigationMenu),s=!!n.value;return n.indicatorTrack?Yr.createPortal(d.createElement($r,{present:t||s},d.createElement(Wf,pe({},o,{ref:r}))),n.indicatorTrack):null}),Wf=d.forwardRef((e,r)=>{const{__scopeNavigationMenu:t,...o}=e,n=Oe(ja,t),s=Ra(t),[i,l]=d.useState(null),[u,g]=d.useState(null),b=n.orientation==="horizontal",y=!!n.value;d.useEffect(()=>{var v;const E=(v=s().find(k=>k.value===n.value))===null||v===void 0?void 0:v.ref.current;E&&l(E)},[s,n.value]);const h=()=>{i&&g({size:b?i.offsetWidth:i.offsetHeight,offset:b?i.offsetLeft:i.offsetTop})};return Bt(i,h),Bt(n.indicatorTrack,h),u?d.createElement(Se.div,pe({"aria-hidden":!0,"data-state":y?"visible":"hidden","data-orientation":n.orientation},o,{ref:r,style:{position:"absolute",...b?{left:0,width:u.size+"px",transform:`translateX(${u.offset}px)`}:{top:0,height:u.size+"px",transform:`translateY(${u.offset}px)`},...o.style}})):null}),yr="NavigationMenuContent",Uf=d.forwardRef((e,r)=>{const{forceMount:t,...o}=e,n=Oe(yr,e.__scopeNavigationMenu),s=Oa(yr,e.__scopeNavigationMenu),i=Fe(s.contentRef,r),l=s.value===n.value,u={value:s.value,triggerRef:s.triggerRef,focusProxyRef:s.focusProxyRef,wasEscapeCloseRef:s.wasEscapeCloseRef,onContentFocusOutside:s.onContentFocusOutside,onRootContentClose:s.onRootContentClose,...o};return n.viewport?d.createElement(Kf,pe({forceMount:t},u,{ref:i})):d.createElement($r,{present:t||l},d.createElement(Ma,pe({"data-state":no(l)},u,{ref:i,onPointerEnter:ye(e.onPointerEnter,n.onContentEnter),onPointerLeave:ye(e.onPointerLeave,Kr(n.onContentLeave)),style:{pointerEvents:!l&&n.isRootMenu?"none":void 0,...u.style}})))}),Kf=d.forwardRef((e,r)=>{const t=Oe(yr,e.__scopeNavigationMenu),{onViewportContentChange:o,onViewportContentRemove:n}=t;return ar(()=>{o(e.value,{ref:r,...e})},[e,r,o]),ar(()=>()=>n(e.value),[e.value,n]),null}),Dr="navigationMenu.rootContentDismiss",Ma=d.forwardRef((e,r)=>{const{__scopeNavigationMenu:t,value:o,triggerRef:n,focusProxyRef:s,wasEscapeCloseRef:i,onRootContentClose:l,onContentFocusOutside:u,...g}=e,b=Oe(yr,t),y=d.useRef(null),h=Fe(y,r),v=La(b.baseId,o),x=Na(b.baseId,o),E=Ra(t),k=d.useRef(null),{onItemDismiss:T}=b;d.useEffect(()=>{const _=y.current;if(b.isRootMenu&&_){const I=()=>{var O;T(),l(),_.contains(document.activeElement)&&((O=n.current)===null||O===void 0||O.focus())};return _.addEventListener(Dr,I),()=>_.removeEventListener(Dr,I)}},[b.isRootMenu,e.value,n,T,l]);const M=d.useMemo(()=>{const I=E().map(J=>J.value);b.dir==="rtl"&&I.reverse();const O=I.indexOf(b.value),P=I.indexOf(b.previousValue),F=o===b.value,L=P===I.indexOf(o);if(!F&&!L)return k.current;const N=(()=>{if(O!==P){if(F&&P!==-1)return O>P?"from-end":"from-start";if(L&&O!==-1)return O>P?"to-start":"to-end"}return null})();return k.current=N,N},[b.previousValue,b.value,b.dir,E,o]);return d.createElement(Ia,{asChild:!0},d.createElement(Cf,pe({id:x,"aria-labelledby":v,"data-motion":M,"data-orientation":b.orientation},g,{ref:h,onDismiss:()=>{var _;const I=new Event(Dr,{bubbles:!0,cancelable:!0});(_=y.current)===null||_===void 0||_.dispatchEvent(I)},onFocusOutside:ye(e.onFocusOutside,_=>{var I;u();const O=_.target;(I=b.rootNavigationMenu)!==null&&I!==void 0&&I.contains(O)&&_.preventDefault()}),onPointerDownOutside:ye(e.onPointerDownOutside,_=>{var I;const O=_.target,P=E().some(L=>{var N;return(N=L.ref.current)===null||N===void 0?void 0:N.contains(O)}),F=b.isRootMenu&&((I=b.viewport)===null||I===void 0?void 0:I.contains(O));(P||F||!b.isRootMenu)&&_.preventDefault()}),onKeyDown:ye(e.onKeyDown,_=>{const I=_.altKey||_.ctrlKey||_.metaKey;if(_.key==="Tab"&&!I){const F=Vt(_.currentTarget),L=document.activeElement,N=F.findIndex(j=>j===L),q=_.shiftKey?F.slice(0,N).reverse():F.slice(N+1,F.length);if(oo(q))_.preventDefault();else{var P;(P=s.current)===null||P===void 0||P.focus()}}}),onEscapeKeyDown:ye(e.onEscapeKeyDown,_=>{i.current=!0})})))}),_a="NavigationMenuViewport",Yf=d.forwardRef((e,r)=>{const{forceMount:t,...o}=e,s=!!Oe(_a,e.__scopeNavigationMenu).value;return d.createElement($r,{present:t||s},d.createElement(Xf,pe({},o,{ref:r})))}),Xf=d.forwardRef((e,r)=>{const{__scopeNavigationMenu:t,children:o,...n}=e,s=Oe(_a,t),i=Fe(r,s.onViewportChange),l=If(yr,e.__scopeNavigationMenu),[u,g]=d.useState(null),[b,y]=d.useState(null),h=u?(u==null?void 0:u.width)+"px":void 0,v=u?(u==null?void 0:u.height)+"px":void 0,x=!!s.value,E=x?s.value:s.previousValue;return Bt(b,()=>{b&&g({width:b.offsetWidth,height:b.offsetHeight})}),d.createElement(Se.div,pe({"data-state":no(x),"data-orientation":s.orientation},n,{ref:i,style:{pointerEvents:!x&&s.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":h,"--radix-navigation-menu-viewport-height":v,...n.style},onPointerEnter:ye(e.onPointerEnter,s.onContentEnter),onPointerLeave:ye(e.onPointerLeave,Kr(s.onContentLeave))}),Array.from(l.items).map(([T,{ref:M,forceMount:_,...I}])=>{const O=E===T;return d.createElement($r,{key:T,present:_||O},d.createElement(Ma,pe({},I,{ref:eo(M,P=>{O&&P&&y(P)})})))}))}),qf="FocusGroup",Ia=d.forwardRef((e,r)=>{const{__scopeNavigationMenu:t,...o}=e,n=Oe(qf,t);return d.createElement(zt.Provider,{scope:t},d.createElement(zt.Slot,{scope:t},d.createElement(Se.div,pe({dir:n.dir},o,{ref:r}))))}),mn=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],Zf="FocusGroupItem",Aa=d.forwardRef((e,r)=>{const{__scopeNavigationMenu:t,...o}=e,n=Of(t),s=Oe(Zf,t);return d.createElement(zt.ItemSlot,{scope:t},d.createElement(Se.button,pe({},o,{ref:r,onKeyDown:ye(e.onKeyDown,i=>{if(["Home","End",...mn].includes(i.key)){let u=n().map(y=>y.ref.current);if([s.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(i.key)&&u.reverse(),mn.includes(i.key)){const y=u.indexOf(i.currentTarget);u=u.slice(y+1)}setTimeout(()=>oo(u)),i.preventDefault()}})})))});function Vt(e){const r=[],t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const n=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||n?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;t.nextNode();)r.push(t.currentNode);return r}function oo(e){const r=document.activeElement;return e.some(t=>t===r?!0:(t.focus(),document.activeElement!==r))}function Jf(e){return e.forEach(r=>{r.dataset.tabindex=r.getAttribute("tabindex")||"",r.setAttribute("tabindex","-1")}),()=>{e.forEach(r=>{const t=r.dataset.tabindex;r.setAttribute("tabindex",t)})}}function Bt(e,r){const t=Ee(r);ar(()=>{let o=0;if(e){const n=new ResizeObserver(()=>{cancelAnimationFrame(o),o=window.requestAnimationFrame(t)});return n.observe(e),()=>{window.cancelAnimationFrame(o),n.unobserve(e)}}},[e,t])}function no(e){return e?"open":"closed"}function La(e,r){return`${e}-trigger-${r}`}function Na(e,r){return`${e}-content-${r}`}function Kr(e){return r=>r.pointerType==="mouse"?e(r):void 0}const Qf=Af,e0=Df,vt=Vf,r0=Bf,t0=Hf,o0=Gf,n0=Uf,a0=Yf,s0=m.keyframes`
1769
1769
  from {
1770
1770
  opacity: 0;
1771
1771
  transform: translateX(200px);