@clicktap/ui 0.3.4 → 0.3.7
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/Accordion/index.d.ts +2 -0
- package/Button/Button.d.ts +1 -1
- package/Switch/Switch.d.ts +1 -5
- package/index.d.ts +1 -1
- package/index.js +287 -235
- package/index.mjs +2347 -2205
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react/jsx-runtime"),c=require("react"),P=require("styled-components"),he=require("framer-motion"),Lt=require("react-dom"),W=require("react-aria-components"),Gi=require("react-aria");function Yi(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const lr=Yi(c);var Xi=()=>g.jsxs("svg",{"aria-hidden":"true",fill:"none",height:"80%",role:"presentation",viewBox:"0 0 24 24",width:"80%",children:[g.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"}),g.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 qi(e={}){const{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:o}=e,n=lr.createContext(void 0);n.displayName=o;function a(){var s;const l=lr.useContext(n);if(!l&&t){const d=new Error(r);throw d.name="ContextError",(s=Error.captureStackTrace)==null||s.call(Error,d,a),d}return l}return[n.Provider,a,n]}function Zi(e){return{UNSAFE_getDOMNode(){return e.current}}}function Ot(e){const t=c.useRef(null);return c.useImperativeHandle(e,()=>t.current),t}var Ji=e=>(e==null?void 0:e.length)<=4?e:e==null?void 0:e.slice(0,3);function wa(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=wa(e[t]))&&(o&&(o+=" "),o+=r);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function tt(...e){for(var t=0,r,o,n="";t<e.length;)(r=e[t++])&&(o=wa(r))&&(n&&(n+=" "),n+=o);return n}var Tn={};function Qi(e,t,...r){var o;const a=`[Next UI]${t?` [${t}]`:" "}: ${e}`;if(!(typeof console>"u")&&!Tn[a]&&(Tn[a]=!0,((o=process==null?void 0:process.env)==null?void 0:o.NODE_ENV)!=="production"))return console.warn(a,r)}function kn(...e){return function(r){e.some(o=>(o==null||o(r),r==null?void 0:r.defaultPrevented))}}function Po(e){if(!e||typeof e!="object")return"";try{return JSON.stringify(e)}catch{return""}}process.env.NODE_ENV;process.env.NODE_ENV;function el(e){return typeof e=="function"}var ce=e=>e?"true":void 0;function tl(e){const t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function rl(e,t){if(e!=null){if(el(e)){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function ol(...e){return t=>{e.forEach(r=>rl(r,t))}}var nl=Object.create,Ca=Object.defineProperty,al=Object.getOwnPropertyDescriptor,Ea=Object.getOwnPropertyNames,sl=Object.getPrototypeOf,il=Object.prototype.hasOwnProperty,To=(e,t)=>function(){return t||(0,e[Ea(e)[0]])((t={exports:{}}).exports,t),t.exports},ll=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Ea(t))!il.call(e,n)&&n!==r&&Ca(e,n,{get:()=>t[n],enumerable:!(o=al(t,n))||o.enumerable});return e},cl=(e,t,r)=>(r=e!=null?nl(sl(e)):{},ll(t||!e||!e.__esModule?Ca(r,"default",{value:e,enumerable:!0}):r,e)),dl=To({"../../../node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react.production.min.js"(e){var t=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),w=Symbol.iterator;function v(x){return x===null||typeof x!="object"?null:(x=w&&x[w]||x["@@iterator"],typeof x=="function"?x:null)}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,T={};function R(x,j,G){this.props=x,this.context=j,this.refs=T,this.updater=G||m}R.prototype.isReactComponent={},R.prototype.setState=function(x,j){if(typeof x!="object"&&typeof x!="function"&&x!=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,x,j,"setState")},R.prototype.forceUpdate=function(x){this.updater.enqueueForceUpdate(this,x,"forceUpdate")};function I(){}I.prototype=R.prototype;function A(x,j,G){this.props=x,this.context=j,this.refs=T,this.updater=G||m}var z=A.prototype=new I;z.constructor=A,C(z,R.prototype),z.isPureReactComponent=!0;var K=Array.isArray,D=Object.prototype.hasOwnProperty,U={current:null},b={key:!0,ref:!0,__self:!0,__source:!0};function L(x,j,G){var Z,Q={},ne=null,oe=null;if(j!=null)for(Z in j.ref!==void 0&&(oe=j.ref),j.key!==void 0&&(ne=""+j.key),j)D.call(j,Z)&&!b.hasOwnProperty(Z)&&(Q[Z]=j[Z]);var re=arguments.length-2;if(re===1)Q.children=G;else if(1<re){for(var ie=Array(re),be=0;be<re;be++)ie[be]=arguments[be+2];Q.children=ie}if(x&&x.defaultProps)for(Z in re=x.defaultProps,re)Q[Z]===void 0&&(Q[Z]=re[Z]);return{$$typeof:t,type:x,key:ne,ref:oe,props:Q,_owner:U.current}}function _(x,j){return{$$typeof:t,type:x.type,key:j,ref:x.ref,props:x.props,_owner:x._owner}}function O(x){return typeof x=="object"&&x!==null&&x.$$typeof===t}function k(x){var j={"=":"=0",":":"=2"};return"$"+x.replace(/[=:]/g,function(G){return j[G]})}var h=/\/+/g;function E(x,j){return typeof x=="object"&&x!==null&&x.key!=null?k(""+x.key):j.toString(36)}function F(x,j,G,Z,Q){var ne=typeof x;(ne==="undefined"||ne==="boolean")&&(x=null);var oe=!1;if(x===null)oe=!0;else switch(ne){case"string":case"number":oe=!0;break;case"object":switch(x.$$typeof){case t:case r:oe=!0}}if(oe)return oe=x,Q=Q(oe),x=Z===""?"."+E(oe,0):Z,K(Q)?(G="",x!=null&&(G=x.replace(h,"$&/")+"/"),F(Q,j,G,"",function(be){return be})):Q!=null&&(O(Q)&&(Q=_(Q,G+(!Q.key||oe&&oe.key===Q.key?"":(""+Q.key).replace(h,"$&/")+"/")+x)),j.push(Q)),1;if(oe=0,Z=Z===""?".":Z+":",K(x))for(var re=0;re<x.length;re++){ne=x[re];var ie=Z+E(ne,re);oe+=F(ne,j,G,ie,Q)}else if(ie=v(x),typeof ie=="function")for(x=ie.call(x),re=0;!(ne=x.next()).done;)ne=ne.value,ie=Z+E(ne,re++),oe+=F(ne,j,G,ie,Q);else if(ne==="object")throw j=String(x),Error("Objects are not valid as a React child (found: "+(j==="[object Object]"?"object with keys {"+Object.keys(x).join(", ")+"}":j)+"). If you meant to render a collection of children, use an array instead.");return oe}function B(x,j,G){if(x==null)return x;var Z=[],Q=0;return F(x,Z,"","",function(ne){return j.call(G,ne,Q++)}),Z}function N(x){if(x._status===-1){var j=x._result;j=j(),j.then(function(G){(x._status===0||x._status===-1)&&(x._status=1,x._result=G)},function(G){(x._status===0||x._status===-1)&&(x._status=2,x._result=G)}),x._status===-1&&(x._status=0,x._result=j)}if(x._status===1)return x._result.default;throw x._result}var X={current:null},q={transition:null},V={ReactCurrentDispatcher:X,ReactCurrentBatchConfig:q,ReactCurrentOwner:U};e.Children={map:B,forEach:function(x,j,G){B(x,function(){j.apply(this,arguments)},G)},count:function(x){var j=0;return B(x,function(){j++}),j},toArray:function(x){return B(x,function(j){return j})||[]},only:function(x){if(!O(x))throw Error("React.Children.only expected to receive a single React element child.");return x}},e.Component=R,e.Fragment=o,e.Profiler=a,e.PureComponent=A,e.StrictMode=n,e.Suspense=p,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=V,e.cloneElement=function(x,j,G){if(x==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+x+".");var Z=C({},x.props),Q=x.key,ne=x.ref,oe=x._owner;if(j!=null){if(j.ref!==void 0&&(ne=j.ref,oe=U.current),j.key!==void 0&&(Q=""+j.key),x.type&&x.type.defaultProps)var re=x.type.defaultProps;for(ie in j)D.call(j,ie)&&!b.hasOwnProperty(ie)&&(Z[ie]=j[ie]===void 0&&re!==void 0?re[ie]:j[ie])}var ie=arguments.length-2;if(ie===1)Z.children=G;else if(1<ie){re=Array(ie);for(var be=0;be<ie;be++)re[be]=arguments[be+2];Z.children=re}return{$$typeof:t,type:x.type,key:Q,ref:ne,props:Z,_owner:oe}},e.createContext=function(x){return x={$$typeof:l,_currentValue:x,_currentValue2:x,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},x.Provider={$$typeof:s,_context:x},x.Consumer=x},e.createElement=L,e.createFactory=function(x){var j=L.bind(null,x);return j.type=x,j},e.createRef=function(){return{current:null}},e.forwardRef=function(x){return{$$typeof:d,render:x}},e.isValidElement=O,e.lazy=function(x){return{$$typeof:$,_payload:{_status:-1,_result:x},_init:N}},e.memo=function(x,j){return{$$typeof:f,type:x,compare:j===void 0?null:j}},e.startTransition=function(x){var j=q.transition;q.transition={};try{x()}finally{q.transition=j}},e.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},e.useCallback=function(x,j){return X.current.useCallback(x,j)},e.useContext=function(x){return X.current.useContext(x)},e.useDebugValue=function(){},e.useDeferredValue=function(x){return X.current.useDeferredValue(x)},e.useEffect=function(x,j){return X.current.useEffect(x,j)},e.useId=function(){return X.current.useId()},e.useImperativeHandle=function(x,j,G){return X.current.useImperativeHandle(x,j,G)},e.useInsertionEffect=function(x,j){return X.current.useInsertionEffect(x,j)},e.useLayoutEffect=function(x,j){return X.current.useLayoutEffect(x,j)},e.useMemo=function(x,j){return X.current.useMemo(x,j)},e.useReducer=function(x,j,G){return X.current.useReducer(x,j,G)},e.useRef=function(x){return X.current.useRef(x)},e.useState=function(x){return X.current.useState(x)},e.useSyncExternalStore=function(x,j,G){return X.current.useSyncExternalStore(x,j,G)},e.useTransition=function(){return X.current.useTransition()},e.version="18.2.0"}}),ul=To({"../../../node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react.development.js"(e,t){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 r="18.2.0",o=Symbol.for("react.element"),n=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),p=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),w=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),C=Symbol.for("react.offscreen"),T=Symbol.iterator,R="@@iterator";function I(i){if(i===null||typeof i!="object")return null;var y=T&&i[T]||i[R];return typeof y=="function"?y:null}var A={current:null},z={transition:null},K={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},D={current:null},U={},b=null;function L(i){b=i}U.setExtraStackFrame=function(i){b=i},U.getCurrentStack=null,U.getStackAddendum=function(){var i="";b&&(i+=b);var y=U.getCurrentStack;return y&&(i+=y()||""),i};var _=!1,O=!1,k=!1,h=!1,E=!1,F={ReactCurrentDispatcher:A,ReactCurrentBatchConfig:z,ReactCurrentOwner:D};F.ReactDebugCurrentFrame=U,F.ReactCurrentActQueue=K;function B(i){{for(var y=arguments.length,S=new Array(y>1?y-1:0),M=1;M<y;M++)S[M-1]=arguments[M];X("warn",i,S)}}function N(i){{for(var y=arguments.length,S=new Array(y>1?y-1:0),M=1;M<y;M++)S[M-1]=arguments[M];X("error",i,S)}}function X(i,y,S){{var M=F.ReactDebugCurrentFrame,H=M.getStackAddendum();H!==""&&(y+="%s",S=S.concat([H]));var J=S.map(function(Y){return String(Y)});J.unshift("Warning: "+y),Function.prototype.apply.call(console[i],console,J)}}var q={};function V(i,y){{var S=i.constructor,M=S&&(S.displayName||S.name)||"ReactClass",H=M+"."+y;if(q[H])return;N("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.",y,M),q[H]=!0}}var x={isMounted:function(i){return!1},enqueueForceUpdate:function(i,y,S){V(i,"forceUpdate")},enqueueReplaceState:function(i,y,S,M){V(i,"replaceState")},enqueueSetState:function(i,y,S,M){V(i,"setState")}},j=Object.assign,G={};Object.freeze(G);function Z(i,y,S){this.props=i,this.context=y,this.refs=G,this.updater=S||x}Z.prototype.isReactComponent={},Z.prototype.setState=function(i,y){if(typeof i!="object"&&typeof i!="function"&&i!=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,i,y,"setState")},Z.prototype.forceUpdate=function(i){this.updater.enqueueForceUpdate(this,i,"forceUpdate")};{var Q={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(i,y){Object.defineProperty(Z.prototype,i,{get:function(){B("%s(...) is deprecated in plain JavaScript React classes. %s",y[0],y[1])}})};for(var oe in Q)Q.hasOwnProperty(oe)&&ne(oe,Q[oe])}function re(){}re.prototype=Z.prototype;function ie(i,y,S){this.props=i,this.context=y,this.refs=G,this.updater=S||x}var be=ie.prototype=new re;be.constructor=ie,j(be,Z.prototype),be.isPureReactComponent=!0;function ke(){var i={current:null};return Object.seal(i),i}var te=Array.isArray;function fe(i){return te(i)}function Xe(i){{var y=typeof Symbol=="function"&&Symbol.toStringTag,S=y&&i[Symbol.toStringTag]||i.constructor.name||"Object";return S}}function Er(i){try{return Dt(i),!1}catch{return!0}}function Dt(i){return""+i}function lt(i){if(Er(i))return N("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Xe(i)),Dt(i)}function Sr(i,y,S){var M=i.displayName;if(M)return M;var H=y.displayName||y.name||"";return H!==""?S+"("+H+")":S}function Ft(i){return i.displayName||"Context"}function De(i){if(i==null)return null;if(typeof i.tag=="number"&&N("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case a:return"Fragment";case n:return"Portal";case l:return"Profiler";case s:return"StrictMode";case $:return"Suspense";case w:return"SuspenseList"}if(typeof i=="object")switch(i.$$typeof){case p:var y=i;return Ft(y)+".Consumer";case d:var S=i;return Ft(S._context)+".Provider";case f:return Sr(i,i.render,"ForwardRef");case v:var M=i.displayName||null;return M!==null?M:De(i.type)||"Memo";case m:{var H=i,J=H._payload,Y=H._init;try{return De(Y(J))}catch{return null}}}return null}var qe=Object.prototype.hasOwnProperty,Ee={key:!0,ref:!0,__self:!0,__source:!0},ht,wt,Pr;Pr={};function Xo(i){if(qe.call(i,"ref")){var y=Object.getOwnPropertyDescriptor(i,"ref").get;if(y&&y.isReactWarning)return!1}return i.ref!==void 0}function qo(i){if(qe.call(i,"key")){var y=Object.getOwnPropertyDescriptor(i,"key").get;if(y&&y.isReactWarning)return!1}return i.key!==void 0}function Us(i,y){var S=function(){ht||(ht=!0,N("%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)",y))};S.isReactWarning=!0,Object.defineProperty(i,"key",{get:S,configurable:!0})}function Ws(i,y){var S=function(){wt||(wt=!0,N("%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)",y))};S.isReactWarning=!0,Object.defineProperty(i,"ref",{get:S,configurable:!0})}function Gs(i){if(typeof i.ref=="string"&&D.current&&i.__self&&D.current.stateNode!==i.__self){var y=De(D.current.type);Pr[y]||(N('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',y,i.ref),Pr[y]=!0)}}var Tr=function(i,y,S,M,H,J,Y){var ee={$$typeof:o,type:i,key:y,ref:S,props:Y,_owner:J};return ee._store={},Object.defineProperty(ee._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ee,"_self",{configurable:!1,enumerable:!1,writable:!1,value:M}),Object.defineProperty(ee,"_source",{configurable:!1,enumerable:!1,writable:!1,value:H}),Object.freeze&&(Object.freeze(ee.props),Object.freeze(ee)),ee};function Ys(i,y,S){var M,H={},J=null,Y=null,ee=null,le=null;if(y!=null){Xo(y)&&(Y=y.ref,Gs(y)),qo(y)&&(lt(y.key),J=""+y.key),ee=y.__self===void 0?null:y.__self,le=y.__source===void 0?null:y.__source;for(M in y)qe.call(y,M)&&!Ee.hasOwnProperty(M)&&(H[M]=y[M])}var de=arguments.length-2;if(de===1)H.children=S;else if(de>1){for(var pe=Array(de),ge=0;ge<de;ge++)pe[ge]=arguments[ge+2];Object.freeze&&Object.freeze(pe),H.children=pe}if(i&&i.defaultProps){var ve=i.defaultProps;for(M in ve)H[M]===void 0&&(H[M]=ve[M])}if(J||Y){var xe=typeof i=="function"?i.displayName||i.name||"Unknown":i;J&&Us(H,xe),Y&&Ws(H,xe)}return Tr(i,J,Y,ee,le,D.current,H)}function Xs(i,y){var S=Tr(i.type,y,i.ref,i._self,i._source,i._owner,i.props);return S}function qs(i,y,S){if(i==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+i+".");var M,H=j({},i.props),J=i.key,Y=i.ref,ee=i._self,le=i._source,de=i._owner;if(y!=null){Xo(y)&&(Y=y.ref,de=D.current),qo(y)&&(lt(y.key),J=""+y.key);var pe;i.type&&i.type.defaultProps&&(pe=i.type.defaultProps);for(M in y)qe.call(y,M)&&!Ee.hasOwnProperty(M)&&(y[M]===void 0&&pe!==void 0?H[M]=pe[M]:H[M]=y[M])}var ge=arguments.length-2;if(ge===1)H.children=S;else if(ge>1){for(var ve=Array(ge),xe=0;xe<ge;xe++)ve[xe]=arguments[xe+2];H.children=ve}return Tr(i.type,J,Y,ee,le,de,H)}function ct(i){return typeof i=="object"&&i!==null&&i.$$typeof===o}var Zo=".",Zs=":";function Js(i){var y=/[=:]/g,S={"=":"=0",":":"=2"},M=i.replace(y,function(H){return S[H]});return"$"+M}var Jo=!1,Qs=/\/+/g;function Qo(i){return i.replace(Qs,"$&/")}function kr(i,y){return typeof i=="object"&&i!==null&&i.key!=null?(lt(i.key),Js(""+i.key)):y.toString(36)}function Nt(i,y,S,M,H){var J=typeof i;(J==="undefined"||J==="boolean")&&(i=null);var Y=!1;if(i===null)Y=!0;else switch(J){case"string":case"number":Y=!0;break;case"object":switch(i.$$typeof){case o:case n:Y=!0}}if(Y){var ee=i,le=H(ee),de=M===""?Zo+kr(ee,0):M;if(fe(le)){var pe="";de!=null&&(pe=Qo(de)+"/"),Nt(le,y,pe,"",function(Wi){return Wi})}else le!=null&&(ct(le)&&(le.key&&(!ee||ee.key!==le.key)&<(le.key),le=Xs(le,S+(le.key&&(!ee||ee.key!==le.key)?Qo(""+le.key)+"/":"")+de)),y.push(le));return 1}var ge,ve,xe=0,Ce=M===""?Zo:M+Zs;if(fe(i))for(var Yt=0;Yt<i.length;Yt++)ge=i[Yt],ve=Ce+kr(ge,Yt),xe+=Nt(ge,y,S,ve,H);else{var Kr=I(i);if(typeof Kr=="function"){var En=i;Kr===En.entries&&(Jo||B("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Jo=!0);for(var Hi=Kr.call(En),Sn,Ui=0;!(Sn=Hi.next()).done;)ge=Sn.value,ve=Ce+kr(ge,Ui++),xe+=Nt(ge,y,S,ve,H)}else if(J==="object"){var Pn=String(i);throw new Error("Objects are not valid as a React child (found: "+(Pn==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":Pn)+"). If you meant to render a collection of children, use an array instead.")}}return xe}function zt(i,y,S){if(i==null)return i;var M=[],H=0;return Nt(i,M,"","",function(J){return y.call(S,J,H++)}),M}function ei(i){var y=0;return zt(i,function(){y++}),y}function ti(i,y,S){zt(i,function(){y.apply(this,arguments)},S)}function ri(i){return zt(i,function(y){return y})||[]}function oi(i){if(!ct(i))throw new Error("React.Children.only expected to receive a single React element child.");return i}function ni(i){var y={$$typeof:p,_currentValue:i,_currentValue2:i,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};y.Provider={$$typeof:d,_context:y};var S=!1,M=!1,H=!1;{var J={$$typeof:p,_context:y};Object.defineProperties(J,{Provider:{get:function(){return M||(M=!0,N("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),y.Provider},set:function(Y){y.Provider=Y}},_currentValue:{get:function(){return y._currentValue},set:function(Y){y._currentValue=Y}},_currentValue2:{get:function(){return y._currentValue2},set:function(Y){y._currentValue2=Y}},_threadCount:{get:function(){return y._threadCount},set:function(Y){y._threadCount=Y}},Consumer:{get:function(){return S||(S=!0,N("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),y.Consumer}},displayName:{get:function(){return y.displayName},set:function(Y){H||(B("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",Y),H=!0)}}}),y.Consumer=J}return y._currentRenderer=null,y._currentRenderer2=null,y}var Ct=-1,Mr=0,en=1,ai=2;function si(i){if(i._status===Ct){var y=i._result,S=y();if(S.then(function(J){if(i._status===Mr||i._status===Ct){var Y=i;Y._status=en,Y._result=J}},function(J){if(i._status===Mr||i._status===Ct){var Y=i;Y._status=ai,Y._result=J}}),i._status===Ct){var M=i;M._status=Mr,M._result=S}}if(i._status===en){var H=i._result;return H===void 0&&N(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react/jsx-runtime"),c=require("react"),S=require("styled-components"),he=require("framer-motion"),Lt=require("react-dom"),W=require("react-aria-components"),Yi=require("react-aria");function Xi(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const lr=Xi(c);var qi=()=>g.jsxs("svg",{"aria-hidden":"true",fill:"none",height:"80%",role:"presentation",viewBox:"0 0 24 24",width:"80%",children:[g.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"}),g.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 Zi(e={}){const{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:o}=e,n=lr.createContext(void 0);n.displayName=o;function a(){var s;const i=lr.useContext(n);if(!i&&t){const d=new Error(r);throw d.name="ContextError",(s=Error.captureStackTrace)==null||s.call(Error,d,a),d}return i}return[n.Provider,a,n]}function Ji(e){return{UNSAFE_getDOMNode(){return e.current}}}function Ot(e){const t=c.useRef(null);return c.useImperativeHandle(e,()=>t.current),t}var Qi=e=>(e==null?void 0:e.length)<=4?e:e==null?void 0:e.slice(0,3);function wa(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=wa(e[t]))&&(o&&(o+=" "),o+=r);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function tt(...e){for(var t=0,r,o,n="";t<e.length;)(r=e[t++])&&(o=wa(r))&&(n&&(n+=" "),n+=o);return n}var Tn={};function el(e,t,...r){var o;const a=`[Next UI]${t?` [${t}]`:" "}: ${e}`;if(!(typeof console>"u")&&!Tn[a]&&(Tn[a]=!0,((o=process==null?void 0:process.env)==null?void 0:o.NODE_ENV)!=="production"))return console.warn(a,r)}function kn(...e){return function(r){e.some(o=>(o==null||o(r),r==null?void 0:r.defaultPrevented))}}function Po(e){if(!e||typeof e!="object")return"";try{return JSON.stringify(e)}catch{return""}}process.env.NODE_ENV;process.env.NODE_ENV;function tl(e){return typeof e=="function"}var ce=e=>e?"true":void 0;function rl(e){const t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function ol(e,t){if(e!=null){if(tl(e)){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function nl(...e){return t=>{e.forEach(r=>ol(r,t))}}var al=Object.create,Ca=Object.defineProperty,sl=Object.getOwnPropertyDescriptor,Ea=Object.getOwnPropertyNames,il=Object.getPrototypeOf,ll=Object.prototype.hasOwnProperty,To=(e,t)=>function(){return t||(0,e[Ea(e)[0]])((t={exports:{}}).exports,t),t.exports},cl=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Ea(t))!ll.call(e,n)&&n!==r&&Ca(e,n,{get:()=>t[n],enumerable:!(o=sl(t,n))||o.enumerable});return e},dl=(e,t,r)=>(r=e!=null?al(il(e)):{},cl(t||!e||!e.__esModule?Ca(r,"default",{value:e,enumerable:!0}):r,e)),ul=To({"../../../node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react.production.min.js"(e){var t=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),i=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),w=Symbol.iterator;function v(m){return m===null||typeof m!="object"?null:(m=w&&m[w]||m["@@iterator"],typeof m=="function"?m:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,T={};function R(m,j,G){this.props=m,this.context=j,this.refs=T,this.updater=G||x}R.prototype.isReactComponent={},R.prototype.setState=function(m,j){if(typeof m!="object"&&typeof m!="function"&&m!=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,m,j,"setState")},R.prototype.forceUpdate=function(m){this.updater.enqueueForceUpdate(this,m,"forceUpdate")};function O(){}O.prototype=R.prototype;function A(m,j,G){this.props=m,this.context=j,this.refs=T,this.updater=G||x}var z=A.prototype=new O;z.constructor=A,C(z,R.prototype),z.isPureReactComponent=!0;var K=Array.isArray,D=Object.prototype.hasOwnProperty,U={current:null},b={key:!0,ref:!0,__self:!0,__source:!0};function L(m,j,G){var Z,Q={},ne=null,oe=null;if(j!=null)for(Z in j.ref!==void 0&&(oe=j.ref),j.key!==void 0&&(ne=""+j.key),j)D.call(j,Z)&&!b.hasOwnProperty(Z)&&(Q[Z]=j[Z]);var re=arguments.length-2;if(re===1)Q.children=G;else if(1<re){for(var ie=Array(re),be=0;be<re;be++)ie[be]=arguments[be+2];Q.children=ie}if(m&&m.defaultProps)for(Z in re=m.defaultProps,re)Q[Z]===void 0&&(Q[Z]=re[Z]);return{$$typeof:t,type:m,key:ne,ref:oe,props:Q,_owner:U.current}}function _(m,j){return{$$typeof:t,type:m.type,key:j,ref:m.ref,props:m.props,_owner:m._owner}}function k(m){return typeof m=="object"&&m!==null&&m.$$typeof===t}function M(m){var j={"=":"=0",":":"=2"};return"$"+m.replace(/[=:]/g,function(G){return j[G]})}var h=/\/+/g;function E(m,j){return typeof m=="object"&&m!==null&&m.key!=null?M(""+m.key):j.toString(36)}function N(m,j,G,Z,Q){var ne=typeof m;(ne==="undefined"||ne==="boolean")&&(m=null);var oe=!1;if(m===null)oe=!0;else switch(ne){case"string":case"number":oe=!0;break;case"object":switch(m.$$typeof){case t:case r:oe=!0}}if(oe)return oe=m,Q=Q(oe),m=Z===""?"."+E(oe,0):Z,K(Q)?(G="",m!=null&&(G=m.replace(h,"$&/")+"/"),N(Q,j,G,"",function(be){return be})):Q!=null&&(k(Q)&&(Q=_(Q,G+(!Q.key||oe&&oe.key===Q.key?"":(""+Q.key).replace(h,"$&/")+"/")+m)),j.push(Q)),1;if(oe=0,Z=Z===""?".":Z+":",K(m))for(var re=0;re<m.length;re++){ne=m[re];var ie=Z+E(ne,re);oe+=N(ne,j,G,ie,Q)}else if(ie=v(m),typeof ie=="function")for(m=ie.call(m),re=0;!(ne=m.next()).done;)ne=ne.value,ie=Z+E(ne,re++),oe+=N(ne,j,G,ie,Q);else if(ne==="object")throw j=String(m),Error("Objects are not valid as a React child (found: "+(j==="[object Object]"?"object with keys {"+Object.keys(m).join(", ")+"}":j)+"). If you meant to render a collection of children, use an array instead.");return oe}function B(m,j,G){if(m==null)return m;var Z=[],Q=0;return N(m,Z,"","",function(ne){return j.call(G,ne,Q++)}),Z}function F(m){if(m._status===-1){var j=m._result;j=j(),j.then(function(G){(m._status===0||m._status===-1)&&(m._status=1,m._result=G)},function(G){(m._status===0||m._status===-1)&&(m._status=2,m._result=G)}),m._status===-1&&(m._status=0,m._result=j)}if(m._status===1)return m._result.default;throw m._result}var X={current:null},q={transition:null},V={ReactCurrentDispatcher:X,ReactCurrentBatchConfig:q,ReactCurrentOwner:U};e.Children={map:B,forEach:function(m,j,G){B(m,function(){j.apply(this,arguments)},G)},count:function(m){var j=0;return B(m,function(){j++}),j},toArray:function(m){return B(m,function(j){return j})||[]},only:function(m){if(!k(m))throw Error("React.Children.only expected to receive a single React element child.");return m}},e.Component=R,e.Fragment=o,e.Profiler=a,e.PureComponent=A,e.StrictMode=n,e.Suspense=p,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=V,e.cloneElement=function(m,j,G){if(m==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+m+".");var Z=C({},m.props),Q=m.key,ne=m.ref,oe=m._owner;if(j!=null){if(j.ref!==void 0&&(ne=j.ref,oe=U.current),j.key!==void 0&&(Q=""+j.key),m.type&&m.type.defaultProps)var re=m.type.defaultProps;for(ie in j)D.call(j,ie)&&!b.hasOwnProperty(ie)&&(Z[ie]=j[ie]===void 0&&re!==void 0?re[ie]:j[ie])}var ie=arguments.length-2;if(ie===1)Z.children=G;else if(1<ie){re=Array(ie);for(var be=0;be<ie;be++)re[be]=arguments[be+2];Z.children=re}return{$$typeof:t,type:m.type,key:Q,ref:ne,props:Z,_owner:oe}},e.createContext=function(m){return m={$$typeof:i,_currentValue:m,_currentValue2:m,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},m.Provider={$$typeof:s,_context:m},m.Consumer=m},e.createElement=L,e.createFactory=function(m){var j=L.bind(null,m);return j.type=m,j},e.createRef=function(){return{current:null}},e.forwardRef=function(m){return{$$typeof:d,render:m}},e.isValidElement=k,e.lazy=function(m){return{$$typeof:$,_payload:{_status:-1,_result:m},_init:F}},e.memo=function(m,j){return{$$typeof:f,type:m,compare:j===void 0?null:j}},e.startTransition=function(m){var j=q.transition;q.transition={};try{m()}finally{q.transition=j}},e.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},e.useCallback=function(m,j){return X.current.useCallback(m,j)},e.useContext=function(m){return X.current.useContext(m)},e.useDebugValue=function(){},e.useDeferredValue=function(m){return X.current.useDeferredValue(m)},e.useEffect=function(m,j){return X.current.useEffect(m,j)},e.useId=function(){return X.current.useId()},e.useImperativeHandle=function(m,j,G){return X.current.useImperativeHandle(m,j,G)},e.useInsertionEffect=function(m,j){return X.current.useInsertionEffect(m,j)},e.useLayoutEffect=function(m,j){return X.current.useLayoutEffect(m,j)},e.useMemo=function(m,j){return X.current.useMemo(m,j)},e.useReducer=function(m,j,G){return X.current.useReducer(m,j,G)},e.useRef=function(m){return X.current.useRef(m)},e.useState=function(m){return X.current.useState(m)},e.useSyncExternalStore=function(m,j,G){return X.current.useSyncExternalStore(m,j,G)},e.useTransition=function(){return X.current.useTransition()},e.version="18.2.0"}}),fl=To({"../../../node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react.development.js"(e,t){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 r="18.2.0",o=Symbol.for("react.element"),n=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),p=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),w=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),C=Symbol.for("react.offscreen"),T=Symbol.iterator,R="@@iterator";function O(l){if(l===null||typeof l!="object")return null;var y=T&&l[T]||l[R];return typeof y=="function"?y:null}var A={current:null},z={transition:null},K={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},D={current:null},U={},b=null;function L(l){b=l}U.setExtraStackFrame=function(l){b=l},U.getCurrentStack=null,U.getStackAddendum=function(){var l="";b&&(l+=b);var y=U.getCurrentStack;return y&&(l+=y()||""),l};var _=!1,k=!1,M=!1,h=!1,E=!1,N={ReactCurrentDispatcher:A,ReactCurrentBatchConfig:z,ReactCurrentOwner:D};N.ReactDebugCurrentFrame=U,N.ReactCurrentActQueue=K;function B(l){{for(var y=arguments.length,P=new Array(y>1?y-1:0),I=1;I<y;I++)P[I-1]=arguments[I];X("warn",l,P)}}function F(l){{for(var y=arguments.length,P=new Array(y>1?y-1:0),I=1;I<y;I++)P[I-1]=arguments[I];X("error",l,P)}}function X(l,y,P){{var I=N.ReactDebugCurrentFrame,H=I.getStackAddendum();H!==""&&(y+="%s",P=P.concat([H]));var J=P.map(function(Y){return String(Y)});J.unshift("Warning: "+y),Function.prototype.apply.call(console[l],console,J)}}var q={};function V(l,y){{var P=l.constructor,I=P&&(P.displayName||P.name)||"ReactClass",H=I+"."+y;if(q[H])return;F("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.",y,I),q[H]=!0}}var m={isMounted:function(l){return!1},enqueueForceUpdate:function(l,y,P){V(l,"forceUpdate")},enqueueReplaceState:function(l,y,P,I){V(l,"replaceState")},enqueueSetState:function(l,y,P,I){V(l,"setState")}},j=Object.assign,G={};Object.freeze(G);function Z(l,y,P){this.props=l,this.context=y,this.refs=G,this.updater=P||m}Z.prototype.isReactComponent={},Z.prototype.setState=function(l,y){if(typeof l!="object"&&typeof l!="function"&&l!=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,l,y,"setState")},Z.prototype.forceUpdate=function(l){this.updater.enqueueForceUpdate(this,l,"forceUpdate")};{var Q={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(l,y){Object.defineProperty(Z.prototype,l,{get:function(){B("%s(...) is deprecated in plain JavaScript React classes. %s",y[0],y[1])}})};for(var oe in Q)Q.hasOwnProperty(oe)&&ne(oe,Q[oe])}function re(){}re.prototype=Z.prototype;function ie(l,y,P){this.props=l,this.context=y,this.refs=G,this.updater=P||m}var be=ie.prototype=new re;be.constructor=ie,j(be,Z.prototype),be.isPureReactComponent=!0;function ke(){var l={current:null};return Object.seal(l),l}var te=Array.isArray;function fe(l){return te(l)}function Xe(l){{var y=typeof Symbol=="function"&&Symbol.toStringTag,P=y&&l[Symbol.toStringTag]||l.constructor.name||"Object";return P}}function Er(l){try{return Dt(l),!1}catch{return!0}}function Dt(l){return""+l}function lt(l){if(Er(l))return F("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Xe(l)),Dt(l)}function Sr(l,y,P){var I=l.displayName;if(I)return I;var H=y.displayName||y.name||"";return H!==""?P+"("+H+")":P}function Nt(l){return l.displayName||"Context"}function De(l){if(l==null)return null;if(typeof l.tag=="number"&&F("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case a:return"Fragment";case n:return"Portal";case i:return"Profiler";case s:return"StrictMode";case $:return"Suspense";case w:return"SuspenseList"}if(typeof l=="object")switch(l.$$typeof){case p:var y=l;return Nt(y)+".Consumer";case d:var P=l;return Nt(P._context)+".Provider";case f:return Sr(l,l.render,"ForwardRef");case v:var I=l.displayName||null;return I!==null?I:De(l.type)||"Memo";case x:{var H=l,J=H._payload,Y=H._init;try{return De(Y(J))}catch{return null}}}return null}var qe=Object.prototype.hasOwnProperty,Ee={key:!0,ref:!0,__self:!0,__source:!0},ht,wt,Pr;Pr={};function Xo(l){if(qe.call(l,"ref")){var y=Object.getOwnPropertyDescriptor(l,"ref").get;if(y&&y.isReactWarning)return!1}return l.ref!==void 0}function qo(l){if(qe.call(l,"key")){var y=Object.getOwnPropertyDescriptor(l,"key").get;if(y&&y.isReactWarning)return!1}return l.key!==void 0}function Ws(l,y){var P=function(){ht||(ht=!0,F("%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)",y))};P.isReactWarning=!0,Object.defineProperty(l,"key",{get:P,configurable:!0})}function Gs(l,y){var P=function(){wt||(wt=!0,F("%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)",y))};P.isReactWarning=!0,Object.defineProperty(l,"ref",{get:P,configurable:!0})}function Ys(l){if(typeof l.ref=="string"&&D.current&&l.__self&&D.current.stateNode!==l.__self){var y=De(D.current.type);Pr[y]||(F('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',y,l.ref),Pr[y]=!0)}}var Tr=function(l,y,P,I,H,J,Y){var ee={$$typeof:o,type:l,key:y,ref:P,props:Y,_owner:J};return ee._store={},Object.defineProperty(ee._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ee,"_self",{configurable:!1,enumerable:!1,writable:!1,value:I}),Object.defineProperty(ee,"_source",{configurable:!1,enumerable:!1,writable:!1,value:H}),Object.freeze&&(Object.freeze(ee.props),Object.freeze(ee)),ee};function Xs(l,y,P){var I,H={},J=null,Y=null,ee=null,le=null;if(y!=null){Xo(y)&&(Y=y.ref,Ys(y)),qo(y)&&(lt(y.key),J=""+y.key),ee=y.__self===void 0?null:y.__self,le=y.__source===void 0?null:y.__source;for(I in y)qe.call(y,I)&&!Ee.hasOwnProperty(I)&&(H[I]=y[I])}var de=arguments.length-2;if(de===1)H.children=P;else if(de>1){for(var pe=Array(de),ge=0;ge<de;ge++)pe[ge]=arguments[ge+2];Object.freeze&&Object.freeze(pe),H.children=pe}if(l&&l.defaultProps){var ve=l.defaultProps;for(I in ve)H[I]===void 0&&(H[I]=ve[I])}if(J||Y){var me=typeof l=="function"?l.displayName||l.name||"Unknown":l;J&&Ws(H,me),Y&&Gs(H,me)}return Tr(l,J,Y,ee,le,D.current,H)}function qs(l,y){var P=Tr(l.type,y,l.ref,l._self,l._source,l._owner,l.props);return P}function Zs(l,y,P){if(l==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+l+".");var I,H=j({},l.props),J=l.key,Y=l.ref,ee=l._self,le=l._source,de=l._owner;if(y!=null){Xo(y)&&(Y=y.ref,de=D.current),qo(y)&&(lt(y.key),J=""+y.key);var pe;l.type&&l.type.defaultProps&&(pe=l.type.defaultProps);for(I in y)qe.call(y,I)&&!Ee.hasOwnProperty(I)&&(y[I]===void 0&&pe!==void 0?H[I]=pe[I]:H[I]=y[I])}var ge=arguments.length-2;if(ge===1)H.children=P;else if(ge>1){for(var ve=Array(ge),me=0;me<ge;me++)ve[me]=arguments[me+2];H.children=ve}return Tr(l.type,J,Y,ee,le,de,H)}function ct(l){return typeof l=="object"&&l!==null&&l.$$typeof===o}var Zo=".",Js=":";function Qs(l){var y=/[=:]/g,P={"=":"=0",":":"=2"},I=l.replace(y,function(H){return P[H]});return"$"+I}var Jo=!1,ei=/\/+/g;function Qo(l){return l.replace(ei,"$&/")}function kr(l,y){return typeof l=="object"&&l!==null&&l.key!=null?(lt(l.key),Qs(""+l.key)):y.toString(36)}function Ft(l,y,P,I,H){var J=typeof l;(J==="undefined"||J==="boolean")&&(l=null);var Y=!1;if(l===null)Y=!0;else switch(J){case"string":case"number":Y=!0;break;case"object":switch(l.$$typeof){case o:case n:Y=!0}}if(Y){var ee=l,le=H(ee),de=I===""?Zo+kr(ee,0):I;if(fe(le)){var pe="";de!=null&&(pe=Qo(de)+"/"),Ft(le,y,pe,"",function(Gi){return Gi})}else le!=null&&(ct(le)&&(le.key&&(!ee||ee.key!==le.key)&<(le.key),le=qs(le,P+(le.key&&(!ee||ee.key!==le.key)?Qo(""+le.key)+"/":"")+de)),y.push(le));return 1}var ge,ve,me=0,Ce=I===""?Zo:I+Js;if(fe(l))for(var Yt=0;Yt<l.length;Yt++)ge=l[Yt],ve=Ce+kr(ge,Yt),me+=Ft(ge,y,P,ve,H);else{var Kr=O(l);if(typeof Kr=="function"){var En=l;Kr===En.entries&&(Jo||B("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Jo=!0);for(var Ui=Kr.call(En),Sn,Wi=0;!(Sn=Ui.next()).done;)ge=Sn.value,ve=Ce+kr(ge,Wi++),me+=Ft(ge,y,P,ve,H)}else if(J==="object"){var Pn=String(l);throw new Error("Objects are not valid as a React child (found: "+(Pn==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":Pn)+"). If you meant to render a collection of children, use an array instead.")}}return me}function zt(l,y,P){if(l==null)return l;var I=[],H=0;return Ft(l,I,"","",function(J){return y.call(P,J,H++)}),I}function ti(l){var y=0;return zt(l,function(){y++}),y}function ri(l,y,P){zt(l,function(){y.apply(this,arguments)},P)}function oi(l){return zt(l,function(y){return y})||[]}function ni(l){if(!ct(l))throw new Error("React.Children.only expected to receive a single React element child.");return l}function ai(l){var y={$$typeof:p,_currentValue:l,_currentValue2:l,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};y.Provider={$$typeof:d,_context:y};var P=!1,I=!1,H=!1;{var J={$$typeof:p,_context:y};Object.defineProperties(J,{Provider:{get:function(){return I||(I=!0,F("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),y.Provider},set:function(Y){y.Provider=Y}},_currentValue:{get:function(){return y._currentValue},set:function(Y){y._currentValue=Y}},_currentValue2:{get:function(){return y._currentValue2},set:function(Y){y._currentValue2=Y}},_threadCount:{get:function(){return y._threadCount},set:function(Y){y._threadCount=Y}},Consumer:{get:function(){return P||(P=!0,F("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),y.Consumer}},displayName:{get:function(){return y.displayName},set:function(Y){H||(B("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",Y),H=!0)}}}),y.Consumer=J}return y._currentRenderer=null,y._currentRenderer2=null,y}var Ct=-1,Mr=0,en=1,si=2;function ii(l){if(l._status===Ct){var y=l._result,P=y();if(P.then(function(J){if(l._status===Mr||l._status===Ct){var Y=l;Y._status=en,Y._result=J}},function(J){if(l._status===Mr||l._status===Ct){var Y=l;Y._status=si,Y._result=J}}),l._status===Ct){var I=l;I._status=Mr,I._result=P}}if(l._status===en){var H=l._result;return H===void 0&&F(`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'))
|
|
5
5
|
|
|
6
|
-
Did you accidentally put curly braces around the import?`,H),"default"in H||
|
|
6
|
+
Did you accidentally put curly braces around the import?`,H),"default"in H||F(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
7
7
|
|
|
8
8
|
Your code should look like:
|
|
9
|
-
const MyComponent = lazy(() => import('./MyComponent'))`,H),H.default}else throw
|
|
9
|
+
const MyComponent = lazy(() => import('./MyComponent'))`,H),H.default}else throw l._result}function li(l){var y={_status:Ct,_result:l},P={$$typeof:x,_payload:y,_init:ii};{var I,H;Object.defineProperties(P,{defaultProps:{configurable:!0,get:function(){return I},set:function(J){F("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),I=J,Object.defineProperty(P,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return H},set:function(J){F("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),H=J,Object.defineProperty(P,"propTypes",{enumerable:!0})}}})}return P}function ci(l){l!=null&&l.$$typeof===v?F("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof l!="function"?F("forwardRef requires a render function but was given %s.",l===null?"null":typeof l):l.length!==0&&l.length!==2&&F("forwardRef render functions accept exactly two parameters: props and ref. %s",l.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),l!=null&&(l.defaultProps!=null||l.propTypes!=null)&&F("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var y={$$typeof:f,render:l};{var P;Object.defineProperty(y,"displayName",{enumerable:!1,configurable:!0,get:function(){return P},set:function(I){P=I,!l.name&&!l.displayName&&(l.displayName=I)}})}return y}var tn;tn=Symbol.for("react.module.reference");function rn(l){return!!(typeof l=="string"||typeof l=="function"||l===a||l===i||E||l===s||l===$||l===w||h||l===C||_||k||M||typeof l=="object"&&l!==null&&(l.$$typeof===x||l.$$typeof===v||l.$$typeof===d||l.$$typeof===p||l.$$typeof===f||l.$$typeof===tn||l.getModuleId!==void 0))}function di(l,y){rn(l)||F("memo: The first argument must be a component. Instead received: %s",l===null?"null":typeof l);var P={$$typeof:v,type:l,compare:y===void 0?null:y};{var I;Object.defineProperty(P,"displayName",{enumerable:!1,configurable:!0,get:function(){return I},set:function(H){I=H,!l.name&&!l.displayName&&(l.displayName=H)}})}return P}function Se(){var l=A.current;return l===null&&F(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
10
10
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
11
11
|
2. You might be breaking the Rules of Hooks
|
|
12
12
|
3. You might have more than one copy of React in the same app
|
|
13
|
-
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),
|
|
14
|
-
`+
|
|
15
|
-
`),le=
|
|
13
|
+
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),l}function ui(l){var y=Se();if(l._context!==void 0){var P=l._context;P.Consumer===l?F("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):P.Provider===l&&F("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return y.useContext(l)}function fi(l){var y=Se();return y.useState(l)}function pi(l,y,P){var I=Se();return I.useReducer(l,y,P)}function gi(l){var y=Se();return y.useRef(l)}function bi(l,y){var P=Se();return P.useEffect(l,y)}function vi(l,y){var P=Se();return P.useInsertionEffect(l,y)}function yi(l,y){var P=Se();return P.useLayoutEffect(l,y)}function $i(l,y){var P=Se();return P.useCallback(l,y)}function xi(l,y){var P=Se();return P.useMemo(l,y)}function mi(l,y,P){var I=Se();return I.useImperativeHandle(l,y,P)}function hi(l,y){{var P=Se();return P.useDebugValue(l,y)}}function wi(){var l=Se();return l.useTransition()}function Ci(l){var y=Se();return y.useDeferredValue(l)}function Ei(){var l=Se();return l.useId()}function Si(l,y,P){var I=Se();return I.useSyncExternalStore(l,y,P)}var Et=0,on,nn,an,sn,ln,cn,dn;function un(){}un.__reactDisabledLog=!0;function Pi(){{if(Et===0){on=console.log,nn=console.info,an=console.warn,sn=console.error,ln=console.group,cn=console.groupCollapsed,dn=console.groupEnd;var l={configurable:!0,enumerable:!0,value:un,writable:!0};Object.defineProperties(console,{info:l,log:l,warn:l,error:l,group:l,groupCollapsed:l,groupEnd:l})}Et++}}function Ti(){{if(Et--,Et===0){var l={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:j({},l,{value:on}),info:j({},l,{value:nn}),warn:j({},l,{value:an}),error:j({},l,{value:sn}),group:j({},l,{value:ln}),groupCollapsed:j({},l,{value:cn}),groupEnd:j({},l,{value:dn})})}Et<0&&F("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ir=N.ReactCurrentDispatcher,Rr;function Bt(l,y,P){{if(Rr===void 0)try{throw Error()}catch(H){var I=H.stack.trim().match(/\n( *(at )?)/);Rr=I&&I[1]||""}return`
|
|
14
|
+
`+Rr+l}}var Or=!1,Vt;{var ki=typeof WeakMap=="function"?WeakMap:Map;Vt=new ki}function fn(l,y){if(!l||Or)return"";{var P=Vt.get(l);if(P!==void 0)return P}var I;Or=!0;var H=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var J;J=Ir.current,Ir.current=null,Pi();try{if(y){var Y=function(){throw Error()};if(Object.defineProperty(Y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Y,[])}catch(Ce){I=Ce}Reflect.construct(l,[],Y)}else{try{Y.call()}catch(Ce){I=Ce}l.call(Y.prototype)}}else{try{throw Error()}catch(Ce){I=Ce}l()}}catch(Ce){if(Ce&&I&&typeof Ce.stack=="string"){for(var ee=Ce.stack.split(`
|
|
15
|
+
`),le=I.stack.split(`
|
|
16
16
|
`),de=ee.length-1,pe=le.length-1;de>=1&&pe>=0&&ee[de]!==le[pe];)pe--;for(;de>=1&&pe>=0;de--,pe--)if(ee[de]!==le[pe]){if(de!==1||pe!==1)do if(de--,pe--,pe<0||ee[de]!==le[pe]){var ge=`
|
|
17
|
-
`+ee[de].replace(" at new "," at ");return
|
|
17
|
+
`+ee[de].replace(" at new "," at ");return l.displayName&&ge.includes("<anonymous>")&&(ge=ge.replace("<anonymous>",l.displayName)),typeof l=="function"&&Vt.set(l,ge),ge}while(de>=1&&pe>=0);break}}}finally{Or=!1,Ir.current=J,Ti(),Error.prepareStackTrace=H}var ve=l?l.displayName||l.name:"",me=ve?Bt(ve):"";return typeof l=="function"&&Vt.set(l,me),me}function Mi(l,y,P){return fn(l,!1)}function Ii(l){var y=l.prototype;return!!(y&&y.isReactComponent)}function Ht(l,y,P){if(l==null)return"";if(typeof l=="function")return fn(l,Ii(l));if(typeof l=="string")return Bt(l);switch(l){case $:return Bt("Suspense");case w:return Bt("SuspenseList")}if(typeof l=="object")switch(l.$$typeof){case f:return Mi(l.render);case v:return Ht(l.type,y,P);case x:{var I=l,H=I._payload,J=I._init;try{return Ht(J(H),y,P)}catch{}}}return""}var pn={},gn=N.ReactDebugCurrentFrame;function Ut(l){if(l){var y=l._owner,P=Ht(l.type,l._source,y?y.type:null);gn.setExtraStackFrame(P)}else gn.setExtraStackFrame(null)}function Ri(l,y,P,I,H){{var J=Function.call.bind(qe);for(var Y in l)if(J(l,Y)){var ee=void 0;try{if(typeof l[Y]!="function"){var le=Error((I||"React class")+": "+P+" type `"+Y+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof l[Y]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw le.name="Invariant Violation",le}ee=l[Y](y,Y,I,P,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(de){ee=de}ee&&!(ee instanceof Error)&&(Ut(H),F("%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).",I||"React class",P,Y,typeof ee),Ut(null)),ee instanceof Error&&!(ee.message in pn)&&(pn[ee.message]=!0,Ut(H),F("Failed %s type: %s",P,ee.message),Ut(null))}}}function dt(l){if(l){var y=l._owner,P=Ht(l.type,l._source,y?y.type:null);L(P)}else L(null)}var Ar;Ar=!1;function bn(){if(D.current){var l=De(D.current.type);if(l)return`
|
|
18
18
|
|
|
19
|
-
Check the render method of \``+
|
|
19
|
+
Check the render method of \``+l+"`."}return""}function Oi(l){if(l!==void 0){var y=l.fileName.replace(/^.*[\\\/]/,""),P=l.lineNumber;return`
|
|
20
20
|
|
|
21
|
-
Check your code at `+y+":"+
|
|
21
|
+
Check your code at `+y+":"+P+"."}return""}function Ai(l){return l!=null?Oi(l.__source):""}var vn={};function ji(l){var y=bn();if(!y){var P=typeof l=="string"?l:l.displayName||l.name;P&&(y=`
|
|
22
22
|
|
|
23
|
-
Check the top-level render call using <`+
|
|
23
|
+
Check the top-level render call using <`+P+">.")}return y}function yn(l,y){if(!(!l._store||l._store.validated||l.key!=null)){l._store.validated=!0;var P=ji(y);if(!vn[P]){vn[P]=!0;var I="";l&&l._owner&&l._owner!==D.current&&(I=" It was passed a child from "+De(l._owner.type)+"."),dt(l),F('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',P,I),dt(null)}}}function $n(l,y){if(typeof l=="object"){if(fe(l))for(var P=0;P<l.length;P++){var I=l[P];ct(I)&&yn(I,y)}else if(ct(l))l._store&&(l._store.validated=!0);else if(l){var H=O(l);if(typeof H=="function"&&H!==l.entries)for(var J=H.call(l),Y;!(Y=J.next()).done;)ct(Y.value)&&yn(Y.value,y)}}}function xn(l){{var y=l.type;if(y==null||typeof y=="string")return;var P;if(typeof y=="function")P=y.propTypes;else if(typeof y=="object"&&(y.$$typeof===f||y.$$typeof===v))P=y.propTypes;else return;if(P){var I=De(y);Ri(P,l.props,"prop",I,l)}else if(y.PropTypes!==void 0&&!Ar){Ar=!0;var H=De(y);F("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",H||"Unknown")}typeof y.getDefaultProps=="function"&&!y.getDefaultProps.isReactClassApproved&&F("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Li(l){{for(var y=Object.keys(l.props),P=0;P<y.length;P++){var I=y[P];if(I!=="children"&&I!=="key"){dt(l),F("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",I),dt(null);break}}l.ref!==null&&(dt(l),F("Invalid attribute `ref` supplied to `React.Fragment`."),dt(null))}}function mn(l,y,P){var I=rn(l);if(!I){var H="";(l===void 0||typeof l=="object"&&l!==null&&Object.keys(l).length===0)&&(H+=" 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 J=Ai(y);J?H+=J:H+=bn();var Y;l===null?Y="null":fe(l)?Y="array":l!==void 0&&l.$$typeof===o?(Y="<"+(De(l.type)||"Unknown")+" />",H=" Did you accidentally export a JSX literal instead of a component?"):Y=typeof l,F("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Y,H)}var ee=Xs.apply(this,arguments);if(ee==null)return ee;if(I)for(var le=2;le<arguments.length;le++)$n(arguments[le],l);return l===a?Li(ee):xn(ee),ee}var hn=!1;function _i(l){var y=mn.bind(null,l);return y.type=l,hn||(hn=!0,B("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(y,"type",{enumerable:!1,get:function(){return B("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:l}),l}}),y}function Ki(l,y,P){for(var I=Zs.apply(this,arguments),H=2;H<arguments.length;H++)$n(arguments[H],I.type);return xn(I),I}function Di(l,y){var P=z.transition;z.transition={};var I=z.transition;z.transition._updatedFibers=new Set;try{l()}finally{if(z.transition=P,P===null&&I._updatedFibers){var H=I._updatedFibers.size;H>10&&B("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."),I._updatedFibers.clear()}}}var wn=!1,Wt=null;function Ni(l){if(Wt===null)try{var y=("require"+Math.random()).slice(0,7),P=t&&t[y];Wt=P.call(t,"timers").setImmediate}catch{Wt=function(H){wn===!1&&(wn=!0,typeof MessageChannel>"u"&&F("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 J=new MessageChannel;J.port1.onmessage=H,J.port2.postMessage(void 0)}}return Wt(l)}var ut=0,Cn=!1;function Fi(l){{var y=ut;ut++,K.current===null&&(K.current=[]);var P=K.isBatchingLegacy,I;try{if(K.isBatchingLegacy=!0,I=l(),!P&&K.didScheduleLegacyUpdate){var H=K.current;H!==null&&(K.didScheduleLegacyUpdate=!1,_r(H))}}catch(ve){throw Gt(y),ve}finally{K.isBatchingLegacy=P}if(I!==null&&typeof I=="object"&&typeof I.then=="function"){var J=I,Y=!1,ee={then:function(ve,me){Y=!0,J.then(function(Ce){Gt(y),ut===0?jr(Ce,ve,me):ve(Ce)},function(Ce){Gt(y),me(Ce)})}};return!Cn&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){Y||(Cn=!0,F("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 () => ...);"))}),ee}else{var le=I;if(Gt(y),ut===0){var de=K.current;de!==null&&(_r(de),K.current=null);var pe={then:function(ve,me){K.current===null?(K.current=[],jr(le,ve,me)):ve(le)}};return pe}else{var ge={then:function(ve,me){ve(le)}};return ge}}}}function Gt(l){l!==ut-1&&F("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),ut=l}function jr(l,y,P){{var I=K.current;if(I!==null)try{_r(I),Ni(function(){I.length===0?(K.current=null,y(l)):jr(l,y,P)})}catch(H){P(H)}else y(l)}}var Lr=!1;function _r(l){if(!Lr){Lr=!0;var y=0;try{for(;y<l.length;y++){var P=l[y];do P=P(!0);while(P!==null)}l.length=0}catch(I){throw l=l.slice(y+1),I}finally{Lr=!1}}}var zi=mn,Bi=Ki,Vi=_i,Hi={map:zt,forEach:ri,count:ti,toArray:oi,only:ni};e.Children=Hi,e.Component=Z,e.Fragment=a,e.Profiler=i,e.PureComponent=ie,e.StrictMode=s,e.Suspense=$,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=N,e.cloneElement=Bi,e.createContext=ai,e.createElement=zi,e.createFactory=Vi,e.createRef=ke,e.forwardRef=ci,e.isValidElement=ct,e.lazy=li,e.memo=di,e.startTransition=Di,e.unstable_act=Fi,e.useCallback=$i,e.useContext=ui,e.useDebugValue=hi,e.useDeferredValue=Ci,e.useEffect=bi,e.useId=Ei,e.useImperativeHandle=mi,e.useInsertionEffect=vi,e.useLayoutEffect=yi,e.useMemo=xi,e.useReducer=pi,e.useRef=gi,e.useState=fi,e.useSyncExternalStore=Si,e.useTransition=wi,e.version=r,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}}),pl=To({"../../../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"(e,t){process.env.NODE_ENV==="production"?t.exports=ul():t.exports=fl()}});/**
|
|
24
24
|
* @license React
|
|
25
25
|
* react.development.js
|
|
26
26
|
*
|
|
@@ -36,7 +36,7 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){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 Mn=cl(fl());function pl(e){return Mn.Children.toArray(e).filter(t=>(0,Mn.isValidElement)(t))}var gl=new Set(["id","type","style","title","role","tabIndex","htmlFor","width","height","abbr","accept","acceptCharset","accessKey","action","allowFullScreen","allowTransparency","alt","async","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","challenge","charset","checked","cite","class","className","cols","colSpan","command","content","contentEditable","contextMenu","controls","coords","crossOrigin","data","dateTime","default","defer","dir","disabled","download","draggable","dropzone","encType","enterKeyHint","for","form","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","headers","hidden","high","href","hrefLang","httpEquiv","icon","inputMode","isMap","itemId","itemProp","itemRef","itemScope","itemType","kind","label","lang","list","loop","manifest","max","maxLength","media","mediaGroup","method","min","minLength","multiple","muted","name","noValidate","open","optimum","pattern","ping","placeholder","poster","preload","radioGroup","referrerPolicy","readOnly","rel","required","rows","rowSpan","sandbox","scope","scoped","scrolling","seamless","selected","shape","size","sizes","slot","sortable","span","spellCheck","src","srcDoc","srcSet","start","step","target","translate","typeMustMatch","useMap","value","wmode","wrap"]),bl=new Set(["onCopy","onCut","onPaste","onLoad","onError","onWheel","onScroll","onCompositionEnd","onCompositionStart","onCompositionUpdate","onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onSubmit","onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onPointerDown","onPointerEnter","onPointerLeave","onPointerUp","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionEnd"]),Rn=/^(data-.*)$/,vl=/^(aria-.*)$/,Xt=/^(on[A-Z].*)$/;function ko(e,t={}){let{labelable:r=!0,enabled:o=!0,propNames:n,omitPropNames:a,omitEventNames:s,omitDataProps:l,omitEventProps:d}=t,p={};if(!o)return e;for(const f in e)a!=null&&a.has(f)||s!=null&&s.has(f)&&Xt.test(f)||Xt.test(f)&&!bl.has(f)||l&&Rn.test(f)||d&&Xt.test(f)||(Object.prototype.hasOwnProperty.call(e,f)&&(gl.has(f)||r&&vl.test(f)||n!=null&&n.has(f)||Rn.test(f))||Xt.test(f))&&(p[f]=e[f]);return p}var[yl,Sa]=qi({name:"AvatarGroupContext",strict:!1}),$l={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"},ml={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"},xl={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"},hl={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"},wl={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"},Cl={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"},El={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"},se={solid:$l,shadow:ml,bordered:xl,flat:hl,faded:wl,light:Cl,ghost:El},In=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Me=e=>!e||typeof e!="object"||Object.keys(e).length===0,Sl=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function Pa(e,t){e.forEach(function(r){Array.isArray(r)?Pa(r,t):t.push(r)})}function Ta(e){let t=[];return Pa(e,t),t}var ka=(...e)=>Ta(e).filter(Boolean),Ma=(e,t)=>{let r={},o=Object.keys(e),n=Object.keys(t);for(let a of o)if(n.includes(a)){let s=e[a],l=t[a];typeof s=="object"&&typeof l=="object"?r[a]=Ma(s,l):Array.isArray(s)||Array.isArray(l)?r[a]=ka(l,s):r[a]=l+" "+s}else r[a]=e[a];for(let a of n)o.includes(a)||(r[a]=t[a]);return r},On=e=>!e||typeof e!="string"?e:e.replace(/\s+/g," ").trim();function Pl(){for(var e=0,t,r,o="";e<arguments.length;)(t=arguments[e++])&&(r=Ra(t))&&(o&&(o+=" "),o+=r);return o}function Ra(e){if(typeof e=="string")return e;for(var t,r="",o=0;o<e.length;o++)e[o]&&(t=Ra(e[o]))&&(r&&(r+=" "),r+=t);return r}var Mo="-";function Tl(e){var t=Ml(e),r=e.conflictingClassGroups,o=e.conflictingClassGroupModifiers,n=o===void 0?{}:o;function a(l){var d=l.split(Mo);return d[0]===""&&d.length!==1&&d.shift(),Ia(d,t)||kl(l)}function s(l,d){var p=r[l]||[];return d&&n[l]?[].concat(p,n[l]):p}return{getClassGroupId:a,getConflictingClassGroupIds:s}}function Ia(e,t){var s;if(e.length===0)return t.classGroupId;var r=e[0],o=t.nextPart.get(r),n=o?Ia(e.slice(1),o):void 0;if(n)return n;if(t.validators.length!==0){var a=e.join(Mo);return(s=t.validators.find(function(l){var d=l.validator;return d(a)}))==null?void 0:s.classGroupId}}var An=/^\[(.+)\]$/;function kl(e){if(An.test(e)){var t=An.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}}function Ml(e){var t=e.theme,r=e.prefix,o={nextPart:new Map,validators:[]},n=Il(Object.entries(e.classGroups),r);return n.forEach(function(a){var s=a[0],l=a[1];qr(l,o,s,t)}),o}function qr(e,t,r,o){e.forEach(function(n){if(typeof n=="string"){var a=n===""?t:jn(t,n);a.classGroupId=r;return}if(typeof n=="function"){if(Rl(n)){qr(n(o),t,r,o);return}t.validators.push({validator:n,classGroupId:r});return}Object.entries(n).forEach(function(s){var l=s[0],d=s[1];qr(d,jn(t,l),r,o)})})}function jn(e,t){var r=e;return t.split(Mo).forEach(function(o){r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r}function Rl(e){return e.isThemeGetter}function Il(e,t){return t?e.map(function(r){var o=r[0],n=r[1],a=n.map(function(s){return typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(function(l){var d=l[0],p=l[1];return[t+d,p]})):s});return[o,a]}):e}function Ol(e){if(e<1)return{get:function(){},set:function(){}};var t=0,r=new Map,o=new Map;function n(a,s){r.set(a,s),t++,t>e&&(t=0,o=r,r=new Map)}return{get:function(s){var l=r.get(s);if(l!==void 0)return l;if((l=o.get(s))!==void 0)return n(s,l),l},set:function(s,l){r.has(s)?r.set(s,l):n(s,l)}}}var Oa="!";function Al(e){var t=e.separator||":",r=t.length===1,o=t[0],n=t.length;return function(s){for(var l=[],d=0,p=0,f,$=0;$<s.length;$++){var w=s[$];if(d===0){if(w===o&&(r||s.slice($,$+n)===t)){l.push(s.slice(p,$)),p=$+n;continue}if(w==="/"){f=$;continue}}w==="["?d++:w==="]"&&d--}var v=l.length===0?s:s.substring(p),m=v.startsWith(Oa),C=m?v.substring(1):v,T=f&&f>p?f-p:void 0;return{modifiers:l,hasImportantModifier:m,baseClassName:C,maybePostfixModifierPosition:T}}}function jl(e){if(e.length<=1)return e;var t=[],r=[];return e.forEach(function(o){var n=o[0]==="[";n?(t.push.apply(t,r.sort().concat([o])),r=[]):r.push(o)}),t.push.apply(t,r.sort()),t}function Ll(e){return{cache:Ol(e.cacheSize),splitModifiers:Al(e),...Tl(e)}}var _l=/\s+/;function Kl(e,t){var r=t.splitModifiers,o=t.getClassGroupId,n=t.getConflictingClassGroupIds,a=new Set;return e.trim().split(_l).map(function(s){var l=r(s),d=l.modifiers,p=l.hasImportantModifier,f=l.baseClassName,$=l.maybePostfixModifierPosition,w=o($?f.substring(0,$):f),v=!!$;if(!w){if(!$)return{isTailwindClass:!1,originalClassName:s};if(w=o(f),!w)return{isTailwindClass:!1,originalClassName:s};v=!1}var m=jl(d).join(":"),C=p?m+Oa:m;return{isTailwindClass:!0,modifierId:C,classGroupId:w,originalClassName:s,hasPostfixModifier:v}}).reverse().filter(function(s){if(!s.isTailwindClass)return!0;var l=s.modifierId,d=s.classGroupId,p=s.hasPostfixModifier,f=l+d;return a.has(f)?!1:(a.add(f),n(d,p).forEach(function($){return a.add(l+$)}),!0)}).reverse().map(function(s){return s.originalClassName}).join(" ")}function Zr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o,n,a,s=l;function l(p){var f=t[0],$=t.slice(1),w=$.reduce(function(v,m){return m(v)},f());return o=Ll(w),n=o.cache.get,a=o.cache.set,s=d,d(p)}function d(p){var f=n(p);if(f)return f;var $=Kl(p,o);return a(p,$),$}return function(){return s(Pl.apply(null,arguments))}}function ue(e){var t=function(o){return o[e]||[]};return t.isThemeGetter=!0,t}var Aa=/^\[(?:([a-z-]+):)?(.+)\]$/i,Dl=/^\d+\/\d+$/,Fl=new Set(["px","full","screen"]),Nl=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,zl=/\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$/,Bl=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function je(e){return et(e)||Fl.has(e)||Dl.test(e)||Jr(e)}function Jr(e){return at(e,"length",Yl)}function Vl(e){return at(e,"size",ja)}function Hl(e){return at(e,"position",ja)}function Ul(e){return at(e,"url",Xl)}function qt(e){return at(e,"number",et)}function et(e){return!Number.isNaN(Number(e))}function Wl(e){return e.endsWith("%")&&et(e.slice(0,-1))}function St(e){return Ln(e)||at(e,"number",Ln)}function ae(e){return Aa.test(e)}function Pt(){return!0}function Ye(e){return Nl.test(e)}function Gl(e){return at(e,"",ql)}function at(e,t,r){var o=Aa.exec(e);return o?o[1]?o[1]===t:r(o[2]):!1}function Yl(e){return zl.test(e)}function ja(){return!1}function Xl(e){return e.startsWith("url(")}function Ln(e){return Number.isInteger(Number(e))}function ql(e){return Bl.test(e)}function Qr(){var e=ue("colors"),t=ue("spacing"),r=ue("blur"),o=ue("brightness"),n=ue("borderColor"),a=ue("borderRadius"),s=ue("borderSpacing"),l=ue("borderWidth"),d=ue("contrast"),p=ue("grayscale"),f=ue("hueRotate"),$=ue("invert"),w=ue("gap"),v=ue("gradientColorStops"),m=ue("gradientColorStopPositions"),C=ue("inset"),T=ue("margin"),R=ue("opacity"),I=ue("padding"),A=ue("saturate"),z=ue("scale"),K=ue("sepia"),D=ue("skew"),U=ue("space"),b=ue("translate"),L=function(){return["auto","contain","none"]},_=function(){return["auto","hidden","clip","visible","scroll"]},O=function(){return["auto",ae,t]},k=function(){return[ae,t]},h=function(){return["",je]},E=function(){return["auto",et,ae]},F=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},B=function(){return["solid","dashed","dotted","double","none"]},N=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},X=function(){return["start","end","center","between","around","evenly","stretch"]},q=function(){return["","0",ae]},V=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},x=function(){return[et,qt]},j=function(){return[et,ae]};return{cacheSize:500,theme:{colors:[Pt],spacing:[je],blur:["none","",Ye,ae],brightness:x(),borderColor:[e],borderRadius:["none","","full",Ye,ae],borderSpacing:k(),borderWidth:h(),contrast:x(),grayscale:q(),hueRotate:j(),invert:q(),gap:k(),gradientColorStops:[e],gradientColorStopPositions:[Wl,Jr],inset:O(),margin:O(),opacity:x(),padding:k(),saturate:x(),scale:x(),sepia:q(),skew:j(),space:k(),translate:k()},classGroups:{aspect:[{aspect:["auto","square","video",ae]}],container:["container"],columns:[{columns:[Ye]}],"break-after":[{"break-after":V()}],"break-before":[{"break-before":V()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],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(F(),[ae])}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[C]}],"inset-x":[{"inset-x":[C]}],"inset-y":[{"inset-y":[C]}],start:[{start:[C]}],end:[{end:[C]}],top:[{top:[C]}],right:[{right:[C]}],bottom:[{bottom:[C]}],left:[{left:[C]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",St]}],basis:[{basis:O()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ae]}],grow:[{grow:q()}],shrink:[{shrink:q()}],order:[{order:["first","last","none",St]}],"grid-cols":[{"grid-cols":[Pt]}],"col-start-end":[{col:["auto",{span:["full",St]},ae]}],"col-start":[{"col-start":E()}],"col-end":[{"col-end":E()}],"grid-rows":[{"grid-rows":[Pt]}],"row-start-end":[{row:["auto",{span:[St]},ae]}],"row-start":[{"row-start":E()}],"row-end":[{"row-end":E()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ae]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ae]}],gap:[{gap:[w]}],"gap-x":[{"gap-x":[w]}],"gap-y":[{"gap-y":[w]}],"justify-content":[{justify:["normal"].concat(X())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(X(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(X(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[I]}],px:[{px:[I]}],py:[{py:[I]}],ps:[{ps:[I]}],pe:[{pe:[I]}],pt:[{pt:[I]}],pr:[{pr:[I]}],pb:[{pb:[I]}],pl:[{pl:[I]}],m:[{m:[T]}],mx:[{mx:[T]}],my:[{my:[T]}],ms:[{ms:[T]}],me:[{me:[T]}],mt:[{mt:[T]}],mr:[{mr:[T]}],mb:[{mb:[T]}],ml:[{ml:[T]}],"space-x":[{"space-x":[U]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[U]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",ae,t]}],"min-w":[{"min-w":["min","max","fit",ae,je]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[Ye]},Ye,ae]}],h:[{h:[ae,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",ae,je]}],"max-h":[{"max-h":[ae,t,"min","max","fit"]}],"font-size":[{text:["base",Ye,Jr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",qt]}],"font-family":[{font:[Pt]}],"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",ae]}],"line-clamp":[{"line-clamp":["none",et,qt]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ae,je]}],"list-image":[{"list-image":["none",ae]}],"list-style-type":[{list:["none","disc","decimal",ae]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[R]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[R]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(B(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",je]}],"underline-offset":[{"underline-offset":["auto",ae,je]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:k()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ae]}],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",ae]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[R]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(F(),[Hl])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Vl]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ul]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"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":[R]}],"border-style":[{border:[].concat(B(),["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":[R]}],"divide-style":[{divide:B()}],"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(B())}],"outline-offset":[{"outline-offset":[ae,je]}],"outline-w":[{outline:[je]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:h()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[R]}],"ring-offset-w":[{"ring-offset":[je]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Ye,Gl]}],"shadow-color":[{shadow:[Pt]}],opacity:[{opacity:[R]}],"mix-blend":[{"mix-blend":N()}],"bg-blend":[{"bg-blend":N()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",Ye,ae]}],grayscale:[{grayscale:[p]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[$]}],saturate:[{saturate:[A]}],sepia:[{sepia:[K]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[p]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[$]}],"backdrop-opacity":[{"backdrop-opacity":[R]}],"backdrop-saturate":[{"backdrop-saturate":[A]}],"backdrop-sepia":[{"backdrop-sepia":[K]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ae]}],duration:[{duration:j()}],ease:[{ease:["linear","in","out","in-out",ae]}],delay:[{delay:j()}],animate:[{animate:["none","spin","ping","pulse","bounce",ae]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[z]}],"scale-x":[{"scale-x":[z]}],"scale-y":[{"scale-y":[z]}],rotate:[{rotate:[St,ae]}],"translate-x":[{"translate-x":[b]}],"translate-y":[{"translate-y":[b]}],"skew-x":[{"skew-x":[D]}],"skew-y":[{"skew-y":[D]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ae]}],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",ae]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"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",ae]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[je,qt]}],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 Zl(e,t){for(var r in t)La(e,r,t[r]);return e}var Jl=Object.prototype.hasOwnProperty,Ql=new Set(["string","number","boolean"]);function La(e,t,r){if(!Jl.call(e,t)||Ql.has(typeof r)||r===null){e[t]=r;return}if(Array.isArray(r)&&Array.isArray(e[t])){e[t]=e[t].concat(r);return}if(typeof r=="object"&&typeof e[t]=="object"){if(e[t]===null){e[t]=r;return}for(var o in r)La(e[t],o,r[o])}}function ec(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];return typeof e=="function"?Zr.apply(void 0,[Qr,e].concat(r)):Zr.apply(void 0,[function(){return Zl(Qr(),e)}].concat(r))}var tc=Zr(Qr),rc={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},_a=e=>e||void 0,At=(...e)=>_a(Ta(e).filter(Boolean).join(" ")),Dr=null,cr={},eo=!1,Tt=(...e)=>t=>t.twMerge?((!Dr||eo)&&(eo=!1,Dr=Me(cr)?tc:ec(cr)),_a(Dr(At(e)))):At(e),_n=(e,t)=>{for(let r in t)e.hasOwnProperty(r)?e[r]=At(e[r],t[r]):e[r]=t[r];return e},oc=(e,t)=>{let{extend:r=null,slots:o={},variants:n={},compoundVariants:a=[],compoundSlots:s=[],defaultVariants:l={}}=e,d={...rc,...t},p=r!=null&&r.base?At(r.base,e==null?void 0:e.base):e==null?void 0:e.base,f=r!=null&&r.variants&&!Me(r.variants)?Ma(n,r.variants):n,$=r!=null&&r.defaultVariants&&!Me(r.defaultVariants)?{...r.defaultVariants,...l}:l;!Me(d.twMergeConfig)&&!Sl(d.twMergeConfig,cr)&&(eo=!0,cr=d.twMergeConfig);let w=Me(r==null?void 0:r.slots),v=Me(o)?{}:{base:At(e==null?void 0:e.base,w&&(r==null?void 0:r.base)),...o},m=w?v:_n({...r==null?void 0:r.slots},Me(v)?{base:e==null?void 0:e.base}:v),C=R=>{if(Me(f)&&Me(o)&&w)return Tt(p,R==null?void 0:R.class,R==null?void 0:R.className)(d);if(a&&!Array.isArray(a))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof a}`);if(s&&!Array.isArray(s))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof s}`);let I=(k,h,E=[],F)=>{let B=E;if(typeof h=="string")B=B.concat(On(h).split(" ").map(N=>`${k}:${N}`));else if(Array.isArray(h))B=B.concat(h.reduce((N,X)=>N.concat(`${k}:${X}`),[]));else if(typeof h=="object"&&typeof F=="string"){for(let N in h)if(h.hasOwnProperty(N)&&N===F){let X=h[N];if(X&&typeof X=="string"){let q=On(X);B[F]?B[F]=B[F].concat(q.split(" ").map(V=>`${k}:${V}`)):B[F]=q.split(" ").map(V=>`${k}:${V}`)}else Array.isArray(X)&&X.length>0&&(B[F]=X.reduce((q,V)=>q.concat(`${k}:${V}`),[]))}}return B},A=(k,h=f,E=null,F=null)=>{var B;let N=h[k];if(!N||Me(N))return null;let X=(B=F==null?void 0:F[k])!=null?B:R==null?void 0:R[k];if(X===null)return null;let q=In(X),V=Array.isArray(d.responsiveVariants)&&d.responsiveVariants.length>0||d.responsiveVariants===!0,x=$==null?void 0:$[k],j=[];if(typeof q=="object"&&V)for(let[Z,Q]of Object.entries(q)){let ne=N[Q];if(Z==="initial"){x=Q;continue}Array.isArray(d.responsiveVariants)&&!d.responsiveVariants.includes(Z)||(j=I(Z,ne,j,E))}let G=N[q]||N[In(x)];return typeof j=="object"&&typeof E=="string"&&j[E]?_n(j,G):j.length>0?(j.push(G),j):G},z=()=>f?Object.keys(f).map(k=>A(k,f)):null,K=(k,h)=>{if(!f||typeof f!="object")return null;let E=new Array;for(let F in f){let B=A(F,f,k,h),N=k==="base"&&typeof B=="string"?B:B&&B[k];N&&(E[E.length]=N)}return E},D={};for(let k in R)R[k]!==void 0&&(D[k]=R[k]);let U=(k,h)=>{var E;let F=typeof(R==null?void 0:R[k])=="object"?{[k]:(E=R[k])==null?void 0:E.initial}:{};return{...$,...D,...F,...h}},b=(k=[],h)=>{let E=[];for(let{class:F,className:B,...N}of k){let X=!0;for(let[q,V]of Object.entries(N)){let x=U(q,h);if(Array.isArray(V)){if(!V.includes(x[q])){X=!1;break}}else if(x[q]!==V){X=!1;break}}X&&(F&&E.push(F),B&&E.push(B))}return E},L=k=>{let h=b(a,k),E=b(r==null?void 0:r.compoundVariants,k);return ka(E,h)},_=k=>{let h=L(k);if(!Array.isArray(h))return h;let E={};for(let F of h)if(typeof F=="string"&&(E.base=Tt(E.base,F)(d)),typeof F=="object")for(let[B,N]of Object.entries(F))E[B]=Tt(E[B],N)(d);return E},O=k=>{if(s.length<1)return null;let h={};for(let{slots:E=[],class:F,className:B,...N}of s){if(!Me(N)){let X=!0;for(let q of Object.keys(N)){let V=U(q,k)[q];if(V===void 0||(Array.isArray(N[q])?!N[q].includes(V):N[q]!==V)){X=!1;break}}if(!X)continue}for(let X of E)h[X]=h[X]||[],h[X].push([F,B])}return h};if(!Me(o)||!w){let k={};if(typeof m=="object"&&!Me(m))for(let h of Object.keys(m))k[h]=E=>{var F,B;return Tt(m[h],K(h,E),((F=_(E))!=null?F:[])[h],((B=O(E))!=null?B:[])[h],E==null?void 0:E.class,E==null?void 0:E.className)(d)};return k}return Tt(p,z(),L(),R==null?void 0:R.class,R==null?void 0:R.className)(d)},T=()=>{if(!(!f||typeof f!="object"))return Object.keys(f)};return C.variantKeys=T(),C.extend=r,C.base=p,C.slots=m,C.variants=f,C.defaultVariants=$,C.compoundSlots=s,C.compoundVariants=a,C},Zt=["small","medium","large"],st=(e,t)=>{var r,o,n;return oc(e,{...t,twMerge:(r=t==null?void 0:t.twMerge)!=null?r:!0,twMergeConfig:{...t==null?void 0:t.twMergeConfig,theme:{...(o=t==null?void 0:t.twMergeConfig)==null?void 0:o.theme,opacity:["disabled"],spacing:["divider"],borderWidth:Zt,borderRadius:Zt},classGroups:{...(n=t==null?void 0:t.twMergeConfig)==null?void 0:n.classGroups,shadow:[{shadow:Zt}],"font-size":[{text:["tiny",...Zt]}],"bg-image":["bg-stripe-gradient"]}}})},Ro=["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"],Fr=["absolute","top-1/2","left-1/2","-translate-x-1/2","-translate-y-1/2"],Kn=st({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",...Ro],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:se.solid.foreground},primary:{base:"before:bg-primary",content:se.solid.primary},secondary:{base:"before:bg-secondary",content:se.solid.secondary},success:{base:"before:bg-success",content:se.solid.success},warning:{base:"before:bg-warning",content:se.solid.warning},danger:{base:"before:bg-danger",content:se.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"}}]}),nc=st({base:"shrink-0 bg-divider border-none",variants:{orientation:{horizontal:"w-full h-divider",vertical:"h-full w-divider"}},defaultVariants:{orientation:"horizontal"}}),ac=st({base:"px-2",variants:{variant:{light:"",shadow:"px-4 shadow-medium rounded-medium bg-content1",bordered:"px-4 border-medium border-divider rounded-medium",splitted:"group is-splitted flex flex-col gap-2"},fullWidth:{true:"w-full"}},defaultVariants:{variant:"light",fullWidth:!0}}),sc=st({slots:{base:["group-[.is-splitted]:px-4","group-[.is-splitted]:bg-content1","group-[.is-splitted]:shadow-medium","group-[.is-splitted]:rounded-medium"],heading:"",trigger:["flex py-4 w-full h-full gap-3 outline-none items-center tap-highlight-transparent",...Ro],startContent:"flex-shrink-0",indicator:"text-default-400",titleWrapper:"flex-1 flex flex-col text-start",title:"text-foreground text-large",subtitle:"text-small text-foreground-500 font-normal",content:"py-2"},variants:{isCompact:{true:{trigger:"py-2",title:"text-medium",subtitle:"text-small",indicator:"text-medium",content:"py-1"}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},hideIndicator:{true:{indicator:"hidden"}},disableAnimation:{true:{content:"hidden data-[open=true]:block"},false:{indicator:"transition-transform",trigger:"transition-opacity"}},disableIndicatorAnimation:{true:{indicator:"transition-none"},false:{indicator:"rotate-0 data-[open=true]:-rotate-90 rtl:-rotate-180 rtl:data-[open=true]:-rotate-90"}}},defaultVariants:{size:"md",radius:"lg",isDisabled:!1,hideIndicator:!1,disableAnimation:!1,disableIndicatorAnimation:!1}}),ic=st({slots:{base:["flex","relative","justify-center","items-center","box-border","overflow-hidden","align-middle","text-white","z-0",...Ro],img:["flex","object-cover","w-full","h-full","transition-opacity","!duration-500","opacity-0","data-[loaded=true]:opacity-100"],fallback:[...Fr,"flex","items-center","justify-center"],name:[...Fr,"font-normal","text-center","text-inherit"],icon:[...Fr,"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:se.solid.default},primary:{base:se.solid.primary},secondary:{base:se.solid.secondary},success:{base:se.solid.success},warning:{base:se.solid.warning},danger:{base:se.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"}}]}),lc=st({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"}}}),Dn=st({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:se.solid.default}},{variant:"solid",color:"primary",class:{badge:se.solid.primary}},{variant:"solid",color:"secondary",class:{badge:se.solid.secondary}},{variant:"solid",color:"success",class:{badge:se.solid.success}},{variant:"solid",color:"warning",class:{badge:se.solid.warning}},{variant:"solid",color:"danger",class:{badge:se.solid.danger}},{variant:"shadow",color:"default",class:{badge:se.shadow.default}},{variant:"shadow",color:"primary",class:{badge:se.shadow.primary}},{variant:"shadow",color:"secondary",class:{badge:se.shadow.secondary}},{variant:"shadow",color:"success",class:{badge:se.shadow.success}},{variant:"shadow",color:"warning",class:{badge:se.shadow.warning}},{variant:"shadow",color:"danger",class:{badge:se.shadow.danger}},{variant:"flat",color:"default",class:{badge:se.flat.default}},{variant:"flat",color:"primary",class:{badge:se.flat.primary}},{variant:"flat",color:"secondary",class:{badge:se.flat.secondary}},{variant:"flat",color:"success",class:{badge:se.flat.success}},{variant:"flat",color:"warning",class:{badge:se.flat.warning}},{variant:"flat",color:"danger",class:{badge:se.flat.danger}},{variant:"faded",color:"default",class:{badge:se.faded.default}},{variant:"faded",color:"primary",class:{badge:se.faded.primary}},{variant:"faded",color:"secondary",class:{badge:se.faded.secondary}},{variant:"faded",color:"success",class:{badge:se.faded.success}},{variant:"faded",color:"warning",class:{badge:se.faded.warning}},{variant:"faded",color:"danger",class:{badge:se.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 rt=typeof document<"u"?c.useLayoutEffect:()=>{};function Ue(e){const t=c.useRef(null);return rt(()=>{t.current=e},[e]),c.useCallback((...r)=>{const o=t.current;return o==null?void 0:o(...r)},[])}const dr={prefix:String(Math.round(Math.random()*1e10)),current:0},Ka=c.createContext(dr),cc=c.createContext(!1);let dc=!!(typeof window<"u"&&window.document&&window.document.createElement),Nr=new WeakMap;function uc(e=!1){let t=c.useContext(Ka),r=c.useRef(null);if(r.current===null&&!e){var o,n;let a=(n=c.__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(a){let s=Nr.get(a);s==null?Nr.set(a,{id:t.current,state:a.memoizedState}):a.memoizedState!==s.state&&(t.current=s.id,Nr.delete(a))}r.current=++t.current}return r.current}function fc(e){let t=c.useContext(Ka);t===dr&&!dc&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let r=uc(!!e),o=t===dr&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${o}-${r}`}function pc(e){let t=c.useId(),[r]=c.useState(Io()),o=r||process.env.NODE_ENV==="test"?"react-aria":`react-aria${dr.prefix}`;return e||`${o}-${t}`}const gc=typeof c.useId=="function"?pc:fc;function bc(){return!1}function vc(){return!0}function yc(e){return()=>{}}function Io(){return typeof c.useSyncExternalStore=="function"?c.useSyncExternalStore(yc,bc,vc):c.useContext(cc)}let $c=!!(typeof window<"u"&&window.document&&window.document.createElement),ur=new Map;function mc(e){let[t,r]=c.useState(e),o=c.useRef(null),n=gc(t),a=c.useCallback(s=>{o.current=s},[]);return $c&&ur.set(n,a),rt(()=>{let s=n;return()=>{ur.delete(s)}},[n]),c.useEffect(()=>{let s=o.current;s&&(o.current=null,r(s))}),n}function xc(e,t){if(e===t)return e;let r=ur.get(e);if(r)return r(t),t;let o=ur.get(t);return o?(o(e),e):t}function Oo(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}const Pe=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},_e=e=>e&&"window"in e&&e.window===e?e:Pe(e).defaultView||window;function Da(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=Da(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function hc(){for(var e,t,r=0,o="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=Da(e))&&(o&&(o+=" "),o+=t);return o}function me(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let o=e[r];for(let n in o){let a=t[n],s=o[n];typeof a=="function"&&typeof s=="function"&&n[0]==="o"&&n[1]==="n"&&n.charCodeAt(2)>=65&&n.charCodeAt(2)<=90?t[n]=Oo(a,s):(n==="className"||n==="UNSAFE_className")&&typeof a=="string"&&typeof s=="string"?t[n]=hc(a,s):n==="id"&&a&&s?t.id=xc(a,s):t[n]=s!==void 0?s:a}}return t}const wc=new Set(["id"]),Cc=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Ec=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),Sc=/^(data-.*)$/;function Fa(e,t={}){let{labelable:r,isLink:o,propNames:n}=t,a={};for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(wc.has(s)||r&&Cc.has(s)||o&&Ec.has(s)||n!=null&&n.has(s)||Sc.test(s))&&(a[s]=e[s]);return a}function We(e){if(Pc())e.focus({preventScroll:!0});else{let t=Tc(e);e.focus(),kc(t)}}let Jt=null;function Pc(){if(Jt==null){Jt=!1;try{document.createElement("div").focus({get preventScroll(){return Jt=!0,!0}})}catch{}}return Jt}function Tc(e){let t=e.parentNode,r=[],o=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==o;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return o instanceof HTMLElement&&r.push({element:o,scrollTop:o.scrollTop,scrollLeft:o.scrollLeft}),r}function kc(e){for(let{element:t,scrollTop:r,scrollLeft:o}of e)t.scrollTop=r,t.scrollLeft=o}function xr(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(r=>e.test(r.brand)))||e.test(window.navigator.userAgent)}function Ao(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function ot(){return Ao(/^Mac/i)}function Mc(){return Ao(/^iPhone/i)}function Na(){return Ao(/^iPad/i)||ot()&&navigator.maxTouchPoints>1}function jo(){return Mc()||Na()}function Rc(){return ot()||jo()}function za(){return xr(/AppleWebKit/i)&&!Ic()}function Ic(){return xr(/Chrome/i)}function Ba(){return xr(/Android/i)}function Oc(){return xr(/Firefox/i)}const Ac=c.createContext({isNative:!0,open:_c,useHref:e=>e});function jc(){return c.useContext(Ac)}function $t(e,t,r=!0){var o,n;let{metaKey:a,ctrlKey:s,altKey:l,shiftKey:d}=t;Oc()&&(!((n=window.event)===null||n===void 0||(o=n.type)===null||o===void 0)&&o.startsWith("key"))&&e.target==="_blank"&&(ot()?a=!0:s=!0);let p=za()&&ot()&&!Na()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:a,ctrlKey:s,altKey:l,shiftKey:d}):new MouseEvent("click",{metaKey:a,ctrlKey:s,altKey:l,shiftKey:d,bubbles:!0,cancelable:!0});$t.isOpening=r,We(e),e.dispatchEvent(p),$t.isOpening=!1}$t.isOpening=!1;function Lc(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let r=document.createElement("a");r.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(r.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(r.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(r.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(r.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(r.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(r),t(r),e.removeChild(r)}}function _c(e,t){Lc(e,r=>$t(r,t))}let gt=new Map,to=new Set;function Fn(){if(typeof window>"u")return;function e(o){return"propertyName"in o}let t=o=>{if(!e(o)||!o.target)return;let n=gt.get(o.target);n||(n=new Set,gt.set(o.target,n),o.target.addEventListener("transitioncancel",r,{once:!0})),n.add(o.propertyName)},r=o=>{if(!e(o)||!o.target)return;let n=gt.get(o.target);if(n&&(n.delete(o.propertyName),n.size===0&&(o.target.removeEventListener("transitioncancel",r),gt.delete(o.target)),gt.size===0)){for(let a of to)a();to.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?Fn():document.addEventListener("DOMContentLoaded",Fn));function Va(e){requestAnimationFrame(()=>{gt.size===0?e():to.add(e)})}function Kc(){let e=c.useRef(new Map),t=c.useCallback((n,a,s,l)=>{let d=l!=null&&l.once?(...p)=>{e.current.delete(s),s(...p)}:s;e.current.set(s,{type:a,eventTarget:n,fn:d,options:l}),n.addEventListener(a,s,l)},[]),r=c.useCallback((n,a,s,l)=>{var d;let p=((d=e.current.get(s))===null||d===void 0?void 0:d.fn)||s;n.removeEventListener(a,p,l),e.current.delete(s)},[]),o=c.useCallback(()=>{e.current.forEach((n,a)=>{r(n.eventTarget,n.type,a,n.options)})},[r]);return c.useEffect(()=>o,[o]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:o}}function Dc(e){const t=c.useRef(null);return c.useMemo(()=>({get current(){return t.current},set current(r){t.current=r,typeof e=="function"?e(r):e&&(e.current=r)}}),[e])}function Fc(){return typeof window.ResizeObserver<"u"}function Nc(e){const{ref:t,onResize:r}=e;c.useEffect(()=>{let o=t==null?void 0:t.current;if(o)if(Fc()){const n=new window.ResizeObserver(a=>{a.length&&r()});return n.observe(o),()=>{o&&n.unobserve(o)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,t])}function Lo(e,t){rt(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function ro(e,t){let r=window.getComputedStyle(e),o=/(auto|scroll)/.test(r.overflow+r.overflowX+r.overflowY);return o&&t&&(o=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),o}function zc(e,t){const r=[];for(;e&&e!==document.documentElement;)ro(e,t)&&r.push(e),e=e.parentElement;return r}function Bc(e,t,r,o){let n=Ue(r),a=r==null;c.useEffect(()=>{if(a||!e.current)return;let s=e.current;return s.addEventListener(t,n,o),()=>{s.removeEventListener(t,n,o)}},[e,t,o,a,n])}function Ha(e,t){let r=Nn(e,t,"left"),o=Nn(e,t,"top"),n=t.offsetWidth,a=t.offsetHeight,s=e.scrollLeft,l=e.scrollTop,{borderTopWidth:d,borderLeftWidth:p}=getComputedStyle(e),f=e.scrollLeft+parseInt(p,10),$=e.scrollTop+parseInt(d,10),w=f+e.clientWidth,v=$+e.clientHeight;r<=s?s=r-parseInt(p,10):r+n>w&&(s+=r+n-w),o<=$?l=o-parseInt(d,10):o+a>v&&(l+=o+a-v),e.scrollLeft=s,e.scrollTop=l}function Nn(e,t,r){const o=r==="left"?"offsetLeft":"offsetTop";let n=0;for(;t.offsetParent&&(n+=t[o],t.offsetParent!==e);){if(t.offsetParent.contains(e)){n-=e[o];break}t=t.offsetParent}return n}function zn(e,t){if(document.contains(e)){let s=document.scrollingElement||document.documentElement;if(window.getComputedStyle(s).overflow==="hidden"){let d=zc(e);for(let p of d)Ha(p,e)}else{var r;let{left:d,top:p}=e.getBoundingClientRect();e==null||(r=e.scrollIntoView)===null||r===void 0||r.call(e,{block:"nearest"});let{left:f,top:$}=e.getBoundingClientRect();if(Math.abs(d-f)>1||Math.abs(p-$)>1){var o,n,a;t==null||(n=t.containingElement)===null||n===void 0||(o=n.scrollIntoView)===null||o===void 0||o.call(n,{block:"center",inline:"center"}),(a=e.scrollIntoView)===null||a===void 0||a.call(e,{block:"nearest"})}}}}function oo(e){return e.mozInputSource===0&&e.isTrusted?!0:Ba()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Vc(e){return!Ba()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function hr(e,t,r){let[o,n]=c.useState(e||t),a=c.useRef(e!==void 0),s=e!==void 0;c.useEffect(()=>{let p=a.current;p!==s&&console.warn(`WARN: A component changed from ${p?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),a.current=s},[s]);let l=s?e:o,d=c.useCallback((p,...f)=>{let $=(w,...v)=>{r&&(Object.is(l,w)||r(w,...v)),s||(l=w)};typeof p=="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,...m)=>{let C=p(s?l:v,...m);return $(C,...f),s?v:C})):(s||n(p),$(p,...f))},[s,l,r]);return[l,d]}function no(e,t=-1/0,r=1/0){return Math.min(Math.max(e,t),r)}let bt="default",ao="",ar=new WeakMap;function Bn(e){if(jo()){if(bt==="default"){const t=Pe(e);ao=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}bt="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(ar.set(e,e.style.userSelect),e.style.userSelect="none")}function Qt(e){if(jo()){if(bt!=="disabled")return;bt="restoring",setTimeout(()=>{Va(()=>{if(bt==="restoring"){const t=Pe(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=ao||""),ao="",bt="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&ar.has(e)){let t=ar.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),ar.delete(e)}}const fr=c.createContext({register:()=>{}});fr.displayName="PressResponderContext";function Hc(e,t){return t.get?t.get.call(e):t.value}function Ua(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function Uc(e,t){var r=Ua(e,t,"get");return Hc(e,r)}function Wc(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Gc(e,t,r){Wc(e,t),t.set(e,r)}function Yc(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}function Vn(e,t,r){var o=Ua(e,t,"set");return Yc(e,o,r),r}function Xc(e){let t=c.useContext(fr);if(t){let{register:r,...o}=t;e=me(o,e),r()}return Lo(t,e.ref),e}var er=new WeakMap;class tr{continuePropagation(){Vn(this,er,!1)}get shouldStopPropagation(){return Uc(this,er)}constructor(t,r,o){Gc(this,er,{writable:!0,value:void 0}),Vn(this,er,!0),this.type=t,this.pointerType=r,this.target=o.currentTarget,this.shiftKey=o.shiftKey,this.metaKey=o.metaKey,this.ctrlKey=o.ctrlKey,this.altKey=o.altKey}}const Hn=Symbol("linkClicked");function Wa(e){let{onPress:t,onPressChange:r,onPressStart:o,onPressEnd:n,onPressUp:a,isDisabled:s,isPressed:l,preventFocusOnPress:d,shouldCancelOnPointerExit:p,allowTextSelectionOnPress:f,ref:$,...w}=Xc(e),[v,m]=c.useState(!1),C=c.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:T,removeAllGlobalListeners:R}=Kc(),I=Ue((b,L)=>{let _=C.current;if(s||_.didFirePressStart)return!1;let O=!0;if(_.isTriggeringEvent=!0,o){let k=new tr("pressstart",L,b);o(k),O=k.shouldStopPropagation}return r&&r(!0),_.isTriggeringEvent=!1,_.didFirePressStart=!0,m(!0),O}),A=Ue((b,L,_=!0)=>{let O=C.current;if(!O.didFirePressStart)return!1;O.ignoreClickAfterPress=!0,O.didFirePressStart=!1,O.isTriggeringEvent=!0;let k=!0;if(n){let h=new tr("pressend",L,b);n(h),k=h.shouldStopPropagation}if(r&&r(!1),m(!1),t&&_&&!s){let h=new tr("press",L,b);t(h),k&&(k=h.shouldStopPropagation)}return O.isTriggeringEvent=!1,k}),z=Ue((b,L)=>{let _=C.current;if(s)return!1;if(a){_.isTriggeringEvent=!0;let O=new tr("pressup",L,b);return a(O),_.isTriggeringEvent=!1,O.shouldStopPropagation}return!0}),K=Ue(b=>{let L=C.current;L.isPressed&&L.target&&(L.isOverTarget&&L.pointerType!=null&&A(ze(L.target,b),L.pointerType,!1),L.isPressed=!1,L.isOverTarget=!1,L.activePointerId=null,L.pointerType=null,R(),f||Qt(L.target))}),D=Ue(b=>{p&&K(b)}),U=c.useMemo(()=>{let b=C.current,L={onKeyDown(O){if(zr(O.nativeEvent,O.currentTarget)&&O.currentTarget.contains(O.target)){var k;Wn(O.target,O.key)&&O.preventDefault();let h=!0;if(!b.isPressed&&!O.repeat){b.target=O.currentTarget,b.isPressed=!0,h=I(O,"keyboard");let E=O.currentTarget,F=B=>{zr(B,E)&&!B.repeat&&E.contains(B.target)&&b.target&&z(ze(b.target,B),"keyboard")};T(Pe(O.currentTarget),"keyup",Oo(F,_),!0)}h&&O.stopPropagation(),O.metaKey&&ot()&&((k=b.metaKeyEvents)===null||k===void 0||k.set(O.key,O.nativeEvent))}else O.key==="Meta"&&(b.metaKeyEvents=new Map)},onClick(O){if(!(O&&!O.currentTarget.contains(O.target))&&O&&O.button===0&&!b.isTriggeringEvent&&!$t.isOpening){let k=!0;if(s&&O.preventDefault(),!b.ignoreClickAfterPress&&!b.ignoreEmulatedMouseEvents&&!b.isPressed&&(b.pointerType==="virtual"||oo(O.nativeEvent))){!s&&!d&&We(O.currentTarget);let h=I(O,"virtual"),E=z(O,"virtual"),F=A(O,"virtual");k=h&&E&&F}b.ignoreEmulatedMouseEvents=!1,b.ignoreClickAfterPress=!1,k&&O.stopPropagation()}}},_=O=>{var k;if(b.isPressed&&b.target&&zr(O,b.target)){var h;Wn(O.target,O.key)&&O.preventDefault();let F=O.target;A(ze(b.target,O),"keyboard",b.target.contains(F)),R(),O.key!=="Enter"&&_o(b.target)&&b.target.contains(F)&&!O[Hn]&&(O[Hn]=!0,$t(b.target,O,!1)),b.isPressed=!1,(h=b.metaKeyEvents)===null||h===void 0||h.delete(O.key)}else if(O.key==="Meta"&&(!((k=b.metaKeyEvents)===null||k===void 0)&&k.size)){var E;let F=b.metaKeyEvents;b.metaKeyEvents=void 0;for(let B of F.values())(E=b.target)===null||E===void 0||E.dispatchEvent(new KeyboardEvent("keyup",B))}};if(typeof PointerEvent<"u"){L.onPointerDown=E=>{if(E.button!==0||!E.currentTarget.contains(E.target))return;if(Vc(E.nativeEvent)){b.pointerType="virtual";return}Br(E.currentTarget)&&E.preventDefault(),b.pointerType=E.pointerType;let F=!0;b.isPressed||(b.isPressed=!0,b.isOverTarget=!0,b.activePointerId=E.pointerId,b.target=E.currentTarget,!s&&!d&&We(E.currentTarget),f||Bn(b.target),F=I(E,b.pointerType),T(Pe(E.currentTarget),"pointermove",O,!1),T(Pe(E.currentTarget),"pointerup",k,!1),T(Pe(E.currentTarget),"pointercancel",h,!1)),F&&E.stopPropagation()},L.onMouseDown=E=>{E.currentTarget.contains(E.target)&&E.button===0&&(Br(E.currentTarget)&&E.preventDefault(),E.stopPropagation())},L.onPointerUp=E=>{!E.currentTarget.contains(E.target)||b.pointerType==="virtual"||E.button===0&&ft(E,E.currentTarget)&&z(E,b.pointerType||E.pointerType)};let O=E=>{E.pointerId===b.activePointerId&&(b.target&&ft(E,b.target)?!b.isOverTarget&&b.pointerType!=null&&(b.isOverTarget=!0,I(ze(b.target,E),b.pointerType)):b.target&&b.isOverTarget&&b.pointerType!=null&&(b.isOverTarget=!1,A(ze(b.target,E),b.pointerType,!1),D(E)))},k=E=>{E.pointerId===b.activePointerId&&b.isPressed&&E.button===0&&b.target&&(ft(E,b.target)&&b.pointerType!=null?A(ze(b.target,E),b.pointerType):b.isOverTarget&&b.pointerType!=null&&A(ze(b.target,E),b.pointerType,!1),b.isPressed=!1,b.isOverTarget=!1,b.activePointerId=null,b.pointerType=null,R(),f||Qt(b.target))},h=E=>{K(E)};L.onDragStart=E=>{E.currentTarget.contains(E.target)&&K(E)}}else{L.onMouseDown=h=>{if(h.button!==0||!h.currentTarget.contains(h.target))return;if(Br(h.currentTarget)&&h.preventDefault(),b.ignoreEmulatedMouseEvents){h.stopPropagation();return}b.isPressed=!0,b.isOverTarget=!0,b.target=h.currentTarget,b.pointerType=oo(h.nativeEvent)?"virtual":"mouse",!s&&!d&&We(h.currentTarget),I(h,b.pointerType)&&h.stopPropagation(),T(Pe(h.currentTarget),"mouseup",O,!1)},L.onMouseEnter=h=>{if(!h.currentTarget.contains(h.target))return;let E=!0;b.isPressed&&!b.ignoreEmulatedMouseEvents&&b.pointerType!=null&&(b.isOverTarget=!0,E=I(h,b.pointerType)),E&&h.stopPropagation()},L.onMouseLeave=h=>{if(!h.currentTarget.contains(h.target))return;let E=!0;b.isPressed&&!b.ignoreEmulatedMouseEvents&&b.pointerType!=null&&(b.isOverTarget=!1,E=A(h,b.pointerType,!1),D(h)),E&&h.stopPropagation()},L.onMouseUp=h=>{h.currentTarget.contains(h.target)&&!b.ignoreEmulatedMouseEvents&&h.button===0&&z(h,b.pointerType||"mouse")};let O=h=>{if(h.button===0){if(b.isPressed=!1,R(),b.ignoreEmulatedMouseEvents){b.ignoreEmulatedMouseEvents=!1;return}b.target&&ft(h,b.target)&&b.pointerType!=null?A(ze(b.target,h),b.pointerType):b.target&&b.isOverTarget&&b.pointerType!=null&&A(ze(b.target,h),b.pointerType,!1),b.isOverTarget=!1}};L.onTouchStart=h=>{if(!h.currentTarget.contains(h.target))return;let E=qc(h.nativeEvent);if(!E)return;b.activePointerId=E.identifier,b.ignoreEmulatedMouseEvents=!0,b.isOverTarget=!0,b.isPressed=!0,b.target=h.currentTarget,b.pointerType="touch",!s&&!d&&We(h.currentTarget),f||Bn(b.target),I(h,b.pointerType)&&h.stopPropagation(),T(_e(h.currentTarget),"scroll",k,!0)},L.onTouchMove=h=>{if(!h.currentTarget.contains(h.target))return;if(!b.isPressed){h.stopPropagation();return}let E=Un(h.nativeEvent,b.activePointerId),F=!0;E&&ft(E,h.currentTarget)?!b.isOverTarget&&b.pointerType!=null&&(b.isOverTarget=!0,F=I(h,b.pointerType)):b.isOverTarget&&b.pointerType!=null&&(b.isOverTarget=!1,F=A(h,b.pointerType,!1),D(h)),F&&h.stopPropagation()},L.onTouchEnd=h=>{if(!h.currentTarget.contains(h.target))return;if(!b.isPressed){h.stopPropagation();return}let E=Un(h.nativeEvent,b.activePointerId),F=!0;E&&ft(E,h.currentTarget)&&b.pointerType!=null?(z(h,b.pointerType),F=A(h,b.pointerType)):b.isOverTarget&&b.pointerType!=null&&(F=A(h,b.pointerType,!1)),F&&h.stopPropagation(),b.isPressed=!1,b.activePointerId=null,b.isOverTarget=!1,b.ignoreEmulatedMouseEvents=!0,b.target&&!f&&Qt(b.target),R()},L.onTouchCancel=h=>{h.currentTarget.contains(h.target)&&(h.stopPropagation(),b.isPressed&&K(h))};let k=h=>{b.isPressed&&h.target.contains(b.target)&&K({currentTarget:b.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};L.onDragStart=h=>{h.currentTarget.contains(h.target)&&K(h)}}return L},[T,s,d,R,f,K,D,A,I,z]);return c.useEffect(()=>()=>{var b;f||Qt((b=C.current.target)!==null&&b!==void 0?b:void 0)},[f]),{isPressed:l||v,pressProps:me(w,U)}}function _o(e){return e.tagName==="A"&&e.hasAttribute("href")}function zr(e,t){const{key:r,code:o}=e,n=t,a=n.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||o==="Space")&&!(n instanceof _e(n).HTMLInputElement&&!Ga(n,r)||n instanceof _e(n).HTMLTextAreaElement||n.isContentEditable)&&!((a==="link"||!a&&_o(n))&&r!=="Enter")}function qc(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function Un(e,t){const r=e.changedTouches;for(let o=0;o<r.length;o++){const n=r[o];if(n.identifier===t)return n}return null}function ze(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function Zc(e){let t=0,r=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?r=e.height/2:e.radiusY!==void 0&&(r=e.radiusY),{top:e.clientY-r,right:e.clientX+t,bottom:e.clientY+r,left:e.clientX-t}}function Jc(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function ft(e,t){let r=t.getBoundingClientRect(),o=Zc(e);return Jc(r,o)}function Br(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function Wn(e,t){return e instanceof HTMLInputElement?!Ga(e,t):e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!_o(e)}const Qc=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Ga(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":Qc.has(e.type)}const ed=c.forwardRef(({children:e,...t},r)=>{let o=c.useRef(!1),n=c.useContext(fr);r=Dc(r||(n==null?void 0:n.ref));let a=me(n||{},{...t,ref:r,register(){o.current=!0,n&&n.register()}});return Lo(n,r),c.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)},[]),c.createElement(fr.Provider,{value:a},e)});class td{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,r){this.nativeEvent=r,this.target=r.target,this.currentTarget=r.currentTarget,this.relatedTarget=r.relatedTarget,this.bubbles=r.bubbles,this.cancelable=r.cancelable,this.defaultPrevented=r.defaultPrevented,this.eventPhase=r.eventPhase,this.isTrusted=r.isTrusted,this.timeStamp=r.timeStamp,this.type=t}}function Ya(e){let t=c.useRef({isFocused:!1,observer:null});rt(()=>{const o=t.current;return()=>{o.observer&&(o.observer.disconnect(),o.observer=null)}},[]);let r=Ue(o=>{e==null||e(o)});return c.useCallback(o=>{if(o.target instanceof HTMLButtonElement||o.target instanceof HTMLInputElement||o.target instanceof HTMLTextAreaElement||o.target instanceof HTMLSelectElement){t.current.isFocused=!0;let n=o.target,a=s=>{t.current.isFocused=!1,n.disabled&&r(new td("blur",s)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};n.addEventListener("focusout",a,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&n.disabled){var s;(s=t.current.observer)===null||s===void 0||s.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}))}}),t.current.observer.observe(n,{attributes:!0,attributeFilter:["disabled"]})}},[r])}function Xa(e){let{isDisabled:t,onFocus:r,onBlur:o,onFocusChange:n}=e;const a=c.useCallback(d=>{if(d.target===d.currentTarget)return o&&o(d),n&&n(!1),!0},[o,n]),s=Ya(a),l=c.useCallback(d=>{const p=Pe(d.target);d.target===d.currentTarget&&p.activeElement===d.target&&(r&&r(d),n&&n(!0),s(d))},[n,r,s]);return{focusProps:{onFocus:!t&&(r||n||o)?l:void 0,onBlur:!t&&(o||n)?a:void 0}}}let xt=null,so=new Set,It=new Map,nt=!1,io=!1;const rd={Tab:!0,Escape:!0};function Ko(e,t){for(let r of so)r(e,t)}function od(e){return!(e.metaKey||!ot()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function pr(e){nt=!0,od(e)&&(xt="keyboard",Ko("keyboard",e))}function Ie(e){xt="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(nt=!0,Ko("pointer",e))}function qa(e){oo(e)&&(nt=!0,xt="virtual")}function Za(e){e.target===window||e.target===document||(!nt&&!io&&(xt="virtual",Ko("virtual",e)),nt=!1,io=!1)}function Ja(){nt=!1,io=!0}function lo(e){if(typeof window>"u"||It.get(_e(e)))return;const t=_e(e),r=Pe(e);let o=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){nt=!0,o.apply(this,arguments)},r.addEventListener("keydown",pr,!0),r.addEventListener("keyup",pr,!0),r.addEventListener("click",qa,!0),t.addEventListener("focus",Za,!0),t.addEventListener("blur",Ja,!1),typeof PointerEvent<"u"?(r.addEventListener("pointerdown",Ie,!0),r.addEventListener("pointermove",Ie,!0),r.addEventListener("pointerup",Ie,!0)):(r.addEventListener("mousedown",Ie,!0),r.addEventListener("mousemove",Ie,!0),r.addEventListener("mouseup",Ie,!0)),t.addEventListener("beforeunload",()=>{Qa(e)},{once:!0}),It.set(t,{focus:o})}const Qa=(e,t)=>{const r=_e(e),o=Pe(e);t&&o.removeEventListener("DOMContentLoaded",t),It.has(r)&&(r.HTMLElement.prototype.focus=It.get(r).focus,o.removeEventListener("keydown",pr,!0),o.removeEventListener("keyup",pr,!0),o.removeEventListener("click",qa,!0),r.removeEventListener("focus",Za,!0),r.removeEventListener("blur",Ja,!1),typeof PointerEvent<"u"?(o.removeEventListener("pointerdown",Ie,!0),o.removeEventListener("pointermove",Ie,!0),o.removeEventListener("pointerup",Ie,!0)):(o.removeEventListener("mousedown",Ie,!0),o.removeEventListener("mousemove",Ie,!0),o.removeEventListener("mouseup",Ie,!0)),It.delete(r))};function nd(e){const t=Pe(e);let r;return t.readyState!=="loading"?lo(e):(r=()=>{lo(e)},t.addEventListener("DOMContentLoaded",r)),()=>Qa(e,r)}typeof document<"u"&&nd();function Do(){return xt!=="pointer"}function gr(){return xt}const ad=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function sd(e,t,r){var o;const n=typeof window<"u"?_e(r==null?void 0:r.target).HTMLInputElement:HTMLInputElement,a=typeof window<"u"?_e(r==null?void 0:r.target).HTMLTextAreaElement:HTMLTextAreaElement,s=typeof window<"u"?_e(r==null?void 0:r.target).HTMLElement:HTMLElement,l=typeof window<"u"?_e(r==null?void 0:r.target).KeyboardEvent:KeyboardEvent;return e=e||(r==null?void 0:r.target)instanceof n&&!ad.has(r==null||(o=r.target)===null||o===void 0?void 0:o.type)||(r==null?void 0:r.target)instanceof a||(r==null?void 0:r.target)instanceof s&&(r==null?void 0:r.target.isContentEditable),!(e&&t==="keyboard"&&r instanceof l&&!rd[r.key])}function id(e,t,r){lo(),c.useEffect(()=>{let o=(n,a)=>{sd(!!(r!=null&&r.isTextInput),n,a)&&e(Do())};return so.add(o),()=>{so.delete(o)}},t)}function es(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:o,onFocusWithinChange:n}=e,a=c.useRef({isFocusWithin:!1}),s=c.useCallback(p=>{a.current.isFocusWithin&&!p.currentTarget.contains(p.relatedTarget)&&(a.current.isFocusWithin=!1,r&&r(p),n&&n(!1))},[r,n,a]),l=Ya(s),d=c.useCallback(p=>{!a.current.isFocusWithin&&document.activeElement===p.target&&(o&&o(p),n&&n(!0),a.current.isFocusWithin=!0,l(p))},[o,n,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:d,onBlur:s}}}let br=!1,Vr=0;function co(){br=!0,setTimeout(()=>{br=!1},50)}function Gn(e){e.pointerType==="touch"&&co()}function ld(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",Gn):document.addEventListener("touchend",co),Vr++,()=>{Vr--,!(Vr>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Gn):document.removeEventListener("touchend",co))}}function wr(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:o,isDisabled:n}=e,[a,s]=c.useState(!1),l=c.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;c.useEffect(ld,[]);let{hoverProps:d,triggerHoverEnd:p}=c.useMemo(()=>{let f=(v,m)=>{if(l.pointerType=m,n||m==="touch"||l.isHovered||!v.currentTarget.contains(v.target))return;l.isHovered=!0;let C=v.currentTarget;l.target=C,t&&t({type:"hoverstart",target:C,pointerType:m}),r&&r(!0),s(!0)},$=(v,m)=>{if(l.pointerType="",l.target=null,m==="touch"||!l.isHovered)return;l.isHovered=!1;let C=v.currentTarget;o&&o({type:"hoverend",target:C,pointerType:m}),r&&r(!1),s(!1)},w={};return typeof PointerEvent<"u"?(w.onPointerEnter=v=>{br&&v.pointerType==="mouse"||f(v,v.pointerType)},w.onPointerLeave=v=>{!n&&v.currentTarget.contains(v.target)&&$(v,v.pointerType)}):(w.onTouchStart=()=>{l.ignoreEmulatedMouseEvents=!0},w.onMouseEnter=v=>{!l.ignoreEmulatedMouseEvents&&!br&&f(v,"mouse"),l.ignoreEmulatedMouseEvents=!1},w.onMouseLeave=v=>{!n&&v.currentTarget.contains(v.target)&&$(v,"mouse")}),{hoverProps:w,triggerHoverEnd:$}},[t,r,o,n,l]);return c.useEffect(()=>{n&&p({currentTarget:l.target},l.pointerType)},[n]),{hoverProps:d,isHovered:a}}function cd(e){let{ref:t,onInteractOutside:r,isDisabled:o,onInteractOutsideStart:n}=e,a=c.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),s=Ue(d=>{r&&rr(d,t)&&(n&&n(d),a.current.isPointerDown=!0)}),l=Ue(d=>{r&&r(d)});c.useEffect(()=>{let d=a.current;if(o)return;const p=t.current,f=Pe(p);if(typeof PointerEvent<"u"){let $=w=>{d.isPointerDown&&rr(w,t)&&l(w),d.isPointerDown=!1};return f.addEventListener("pointerdown",s,!0),f.addEventListener("pointerup",$,!0),()=>{f.removeEventListener("pointerdown",s,!0),f.removeEventListener("pointerup",$,!0)}}else{let $=v=>{d.ignoreEmulatedMouseEvents?d.ignoreEmulatedMouseEvents=!1:d.isPointerDown&&rr(v,t)&&l(v),d.isPointerDown=!1},w=v=>{d.ignoreEmulatedMouseEvents=!0,d.isPointerDown&&rr(v,t)&&l(v),d.isPointerDown=!1};return f.addEventListener("mousedown",s,!0),f.addEventListener("mouseup",$,!0),f.addEventListener("touchstart",s,!0),f.addEventListener("touchend",w,!0),()=>{f.removeEventListener("mousedown",s,!0),f.removeEventListener("mouseup",$,!0),f.removeEventListener("touchstart",s,!0),f.removeEventListener("touchend",w,!0)}}},[t,o,s,l])}function rr(e,t){if(e.button>0)return!1;if(e.target){const r=e.target.ownerDocument;if(!r||!r.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current&&!t.current.contains(e.target)}function Yn(e){if(!e)return;let t=!0;return r=>{let o={...r,preventDefault(){r.preventDefault()},isDefaultPrevented(){return r.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(o),t&&r.stopPropagation()}}function dd(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Yn(e.onKeyDown),onKeyUp:Yn(e.onKeyUp)}}}function vr(e){const t=Pe(e);if(gr()==="virtual"){let r=t.activeElement;Va(()=>{t.activeElement===r&&e.isConnected&&We(e)})}else We(e)}function ud(e){const t=_e(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:r,visibility:o}=e.style,n=r!=="none"&&o!=="hidden"&&o!=="collapse";if(n){const{getComputedStyle:a}=e.ownerDocument.defaultView;let{display:s,visibility:l}=a(e);n=s!=="none"&&l!=="hidden"&&l!=="collapse"}return n}function fd(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function ts(e,t){return e.nodeName!=="#comment"&&ud(e)&&fd(e,t)&&(!e.parentElement||ts(e.parentElement,e))}let pd=null;const Fo=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],gd=Fo.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Fo.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const bd=Fo.join(':not([hidden]):not([tabindex="-1"]),');function No(e,t){return!e||!t?!1:t.some(r=>r.contains(e))}function vd(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of qn.traverse(qn.getTreeNode(t)))if(r&&No(e,r.current))return!0;return!1}function yd(e){return vd(e,pd)}function $d(e,t,r){let o=t!=null&&t.tabbable?bd:gd,n=Pe(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(a){var s;return!(t==null||(s=t.from)===null||s===void 0)&&s.contains(a)?NodeFilter.FILTER_REJECT:a.matches(o)&&ts(a)&&(!r||No(a,r))&&(!(t!=null&&t.accept)||t.accept(a))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(n.currentNode=t.from),n}class zo{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,r,o){let n=this.fastMap.get(r??null);if(!n)return;let a=new Xn({scopeRef:t});n.addChild(a),a.parent=n,this.fastMap.set(t,a),o&&(a.nodeToRestore=o)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let r=this.fastMap.get(t);if(!r)return;let o=r.parent;for(let a of this.traverse())a!==r&&r.nodeToRestore&&a.nodeToRestore&&r.scopeRef&&r.scopeRef.current&&No(a.nodeToRestore,r.scopeRef.current)&&(a.nodeToRestore=r.nodeToRestore);let n=r.children;o&&(o.removeChild(r),n.size>0&&n.forEach(a=>o&&o.addChild(a))),this.fastMap.delete(r.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let r of t.children)yield*this.traverse(r)}clone(){var t;let r=new zo;var o;for(let n of this.traverse())r.addTreeNode(n.scopeRef,(o=(t=n.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&o!==void 0?o:null,n.nodeToRestore);return r}constructor(){this.fastMap=new Map,this.root=new Xn({scopeRef:null}),this.fastMap.set(null,this.root)}}class Xn{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let qn=new zo;function rs(e={}){let{autoFocus:t=!1,isTextInput:r,within:o}=e,n=c.useRef({isFocused:!1,isFocusVisible:t||Do()}),[a,s]=c.useState(!1),[l,d]=c.useState(()=>n.current.isFocused&&n.current.isFocusVisible),p=c.useCallback(()=>d(n.current.isFocused&&n.current.isFocusVisible),[]),f=c.useCallback(v=>{n.current.isFocused=v,s(v),p()},[p]);id(v=>{n.current.isFocusVisible=v,p()},[],{isTextInput:r});let{focusProps:$}=Xa({isDisabled:o,onFocusChange:f}),{focusWithinProps:w}=es({isDisabled:!o,onFocusWithinChange:f});return{isFocused:a,isFocusVisible:l,focusProps:o?w:$}}let md=c.createContext(null);function xd(e){let t=c.useContext(md)||{};Lo(t,e);let{ref:r,...o}=t;return o}function os(e,t){let{focusProps:r}=Xa(e),{keyboardProps:o}=dd(e),n=me(r,o),a=xd(t),s=e.isDisabled?{}:a,l=c.useRef(e.autoFocus);return c.useEffect(()=>{l.current&&t.current&&vr(t.current),l.current=!1},[t]),{focusableProps:me({...n,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},s)}}var ns=globalThis!=null&&globalThis.document?c.useLayoutEffect:c.useEffect;function hd(e={}){const{loading:t,src:r,srcSet:o,onLoad:n,onError:a,crossOrigin:s,sizes:l,ignoreFallback:d}=e,[p,f]=c.useState("pending");c.useEffect(()=>{f(r?"loading":"pending")},[r]);const $=c.useRef(),w=c.useCallback(()=>{if(!r)return;v();const m=new Image;m.src=r,s&&(m.crossOrigin=s),o&&(m.srcset=o),l&&(m.sizes=l),t&&(m.loading=t),m.onload=C=>{v(),f("loaded"),n==null||n(C)},m.onerror=C=>{v(),f("failed"),a==null||a(C)},$.current=m},[r,s,o,l,n,a,t]),v=()=>{$.current&&($.current.onload=null,$.current.onerror=null,$.current=null)};return ns(()=>{if(!d)return p==="loading"&&w(),()=>{v()}},[p,w,d]),d?"loaded":p}function wd(e={}){var t,r,o,n,a;const s=Sa(),l=!!s,{as:d,ref:p,src:f,name:$,icon:w,classNames:v,fallback:m,alt:C=$||"avatar",imgRef:T,color:R=(t=s==null?void 0:s.color)!=null?t:"default",radius:I=(r=s==null?void 0:s.radius)!=null?r:"full",size:A=(o=s==null?void 0:s.size)!=null?o:"md",isBordered:z=(n=s==null?void 0:s.isBordered)!=null?n:!1,isDisabled:K=(a=s==null?void 0:s.isDisabled)!=null?a:!1,isFocusable:D=!1,getInitials:U=Ji,ignoreFallback:b=!1,showFallback:L=!1,ImgComponent:_="img",imgProps:O,className:k,onError:h,...E}=e,F=d||"span",B=Ot(p),N=Ot(T),{isFocusVisible:X,isFocused:q,focusProps:V}=rs(),{isHovered:x,hoverProps:j}=wr({isDisabled:K}),Z=hd({src:f,onError:h,ignoreFallback:b})==="loaded",Q=(!f||!Z)&&L,ne=c.useMemo(()=>{var ke;return ic({color:R,radius:I,size:A,isBordered:z,isDisabled:K,isInGroup:l,isInGridGroup:(ke=s==null?void 0:s.isGrid)!=null?ke:!1})},[R,I,A,z,K,l,s==null?void 0:s.isGrid]),oe=tt(v==null?void 0:v.base,k),re=c.useMemo(()=>D||d==="button",[D,d]),ie=c.useCallback((ke={})=>({ref:B,tabIndex:re?0:-1,"data-hover":ce(x),"data-focus":ce(q),"data-focus-visible":ce(X),className:ne.base({class:tt(oe,ke==null?void 0:ke.className)}),...me(E,j,re?V:{})}),[re,ne,oe,V,E]),be=c.useCallback((ke={})=>({ref:N,src:f,"data-loaded":ce(Z),className:ne.img({class:v==null?void 0:v.img}),...me(O,ke)}),[ne,Z,O,f,N]);return{Component:F,ImgComponent:_,src:f,alt:C,icon:w,name:$,imgRef:N,slots:ne,classNames:v,fallback:m,isImgLoaded:Z,showFallback:Q,ignoreFallback:b,getInitials:U,getAvatarProps:ie,getImageProps:be}}const Cd=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Ed=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Sd(e){if(Intl.Locale){let r=new Intl.Locale(e).maximize(),o=typeof r.getTextInfo=="function"?r.getTextInfo():r.textInfo;if(o)return o.direction==="rtl";if(r.script)return Cd.has(r.script)}let t=e.split("-")[0];return Ed.has(t)}const Pd=Symbol.for("react-aria.i18n.locale");function as(){let e=typeof window<"u"&&window[Pd]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:Sd(e)?"rtl":"ltr"}}let uo=as(),Rt=new Set;function Zn(){uo=as();for(let e of Rt)e(uo)}function Td(){let e=Io(),[t,r]=c.useState(uo);return c.useEffect(()=>(Rt.size===0&&window.addEventListener("languagechange",Zn),Rt.add(r),()=>{Rt.delete(r),Rt.size===0&&window.removeEventListener("languagechange",Zn)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const kd=c.createContext(null);function Bo(){let e=Td();return c.useContext(kd)||e}let Hr=new Map;function Md(e){let{locale:t}=Bo(),r=t+(e?Object.entries(e).sort((n,a)=>n[0]<a[0]?-1:1).join():"");if(Hr.has(r))return Hr.get(r);let o=new Intl.Collator(t,e);return Hr.set(r,o),o}const vt={top:"top",bottom:"top",left:"left",right:"left"},yr={top:"bottom",bottom:"top",left:"right",right:"left"},Rd={top:"left",left:"top"},fo={top:"height",left:"width"},ss={width:"totalWidth",height:"totalHeight"},or={};let Te=typeof document<"u"&&window.visualViewport;function Jn(e){let t=0,r=0,o=0,n=0,a=0,s=0,l={},d=(Te==null?void 0:Te.scale)>1;if(e.tagName==="BODY"){let $=document.documentElement;o=$.clientWidth,n=$.clientHeight;var p;t=(p=Te==null?void 0:Te.width)!==null&&p!==void 0?p:o;var f;r=(f=Te==null?void 0:Te.height)!==null&&f!==void 0?f:n,l.top=$.scrollTop||e.scrollTop,l.left=$.scrollLeft||e.scrollLeft,Te&&(a=Te.offsetTop,s=Te.offsetLeft)}else({width:t,height:r,top:a,left:s}=yt(e)),l.top=e.scrollTop,l.left=e.scrollLeft,o=t,n=r;return za()&&(e.tagName==="BODY"||e.tagName==="HTML")&&d&&(l.top=0,l.left=0,a=Te.pageTop,s=Te.pageLeft),{width:t,height:r,totalWidth:o,totalHeight:n,scroll:l,top:a,left:s}}function Id(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function Qn(e,t,r,o,n,a,s){let l=n.scroll[e],d=o[fo[e]],p=o.scroll[vt[e]]+a,f=d+o.scroll[vt[e]]-a,$=t-l+s[e]-o[vt[e]],w=t-l+r+s[e]-o[vt[e]];return $<p?p-$:w>f?Math.max(f-w,p-$):0}function Od(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function ea(e){if(or[e])return or[e];let[t,r]=e.split(" "),o=vt[t]||"right",n=Rd[o];vt[r]||(r="center");let a=fo[o],s=fo[n];return or[e]={placement:t,crossPlacement:r,axis:o,crossAxis:n,size:a,crossSize:s},or[e]}function Ur(e,t,r,o,n,a,s,l,d,p){let{placement:f,crossPlacement:$,axis:w,crossAxis:v,size:m,crossSize:C}=o,T={};T[v]=e[v],$==="center"?T[v]+=(e[C]-r[C])/2:$!==v&&(T[v]+=e[C]-r[C]),T[v]+=a;const R=e[v]-r[C]+d+p,I=e[v]+e[C]-d-p;if(T[v]=no(T[v],R,I),f===w){const A=l?s[m]:t[ss[m]];T[yr[w]]=Math.floor(A-e[w]+n)}else T[w]=Math.floor(e[w]+e[m]+n);return T}function Ad(e,t,r,o,n,a,s,l){const d=o?r.height:t[ss.height];let p=e.top!=null?r.top+e.top:r.top+(d-e.bottom-s),f=l!=="top"?Math.max(0,t.height+t.top+t.scroll.top-p-(n.top+n.bottom+a)):Math.max(0,p+s-(t.top+t.scroll.top)-(n.top+n.bottom+a));return Math.min(t.height-a*2,f)}function ta(e,t,r,o,n,a){let{placement:s,axis:l,size:d}=a;return s===l?Math.max(0,r[l]-e[l]-e.scroll[l]+t[l]-o[l]-o[yr[l]]-n):Math.max(0,e[d]+e[l]+e.scroll[l]-t[l]-r[l]-r[d]-o[l]-o[yr[l]]-n)}function jd(e,t,r,o,n,a,s,l,d,p,f,$,w,v,m,C){let T=ea(e),{size:R,crossAxis:I,crossSize:A,placement:z,crossPlacement:K}=T,D=Ur(t,l,r,T,f,$,p,w,m,C),U=f,b=ta(l,p,t,n,a+f,T);if(s&&o[R]>b){let q=ea(`${yr[z]} ${K}`),V=Ur(t,l,r,q,f,$,p,w,m,C);ta(l,p,t,n,a+f,q)>b&&(T=q,D=V,U=f)}let L="bottom";T.axis==="top"?T.placement==="top"?L="top":T.placement==="bottom"&&(L="bottom"):T.crossAxis==="top"&&(T.crossPlacement==="top"?L="bottom":T.crossPlacement==="bottom"&&(L="top"));let _=Qn(I,D[I],r[A],l,d,a,p);D[I]+=_;let O=Ad(D,l,p,w,n,a,r.height,L);v&&v<O&&(O=v),r.height=Math.min(r.height,O),D=Ur(t,l,r,T,U,$,p,w,m,C),_=Qn(I,D[I],r[A],l,d,a,p),D[I]+=_;let k={},h=t[I]+.5*t[A]-r[I];const E=m/2+C,F=r[A]-m/2-C,B=t[I]-r[I]+m/2,N=t[I]+t[A]-r[I]-m/2,X=no(h,B,N);return k[I]=no(X,E,F),{position:D,maxHeight:O,arrowOffsetLeft:k.left,arrowOffsetTop:k.top,placement:T.placement}}function Ld(e){let{placement:t,targetNode:r,overlayNode:o,scrollNode:n,padding:a,shouldFlip:s,boundaryElement:l,offset:d,crossOffset:p,maxHeight:f,arrowSize:$=0,arrowBoundaryOffset:w=0}=e,v=o instanceof HTMLElement?_d(o):document.documentElement,m=v===document.documentElement;const C=window.getComputedStyle(v).position;let T=!!C&&C!=="static",R=m?yt(r):ra(r,v);if(!m){let{marginTop:b,marginLeft:L}=window.getComputedStyle(r);R.top+=parseInt(b,10)||0,R.left+=parseInt(L,10)||0}let I=yt(o),A=Od(o);I.width+=A.left+A.right,I.height+=A.top+A.bottom;let z=Id(n),K=Jn(l),D=Jn(v),U=l.tagName==="BODY"?yt(v):ra(v,l);return v.tagName==="HTML"&&l.tagName==="BODY"&&(D.scroll.top=0,D.scroll.left=0),jd(t,R,I,z,A,a,s,K,D,U,d,p,T,f,$,w)}function yt(e){let{top:t,left:r,width:o,height:n}=e.getBoundingClientRect(),{scrollTop:a,scrollLeft:s,clientTop:l,clientLeft:d}=document.documentElement;return{top:t+a-l,left:r+s-d,width:o,height:n}}function ra(e,t){let r=window.getComputedStyle(e),o;if(r.position==="fixed"){let{top:n,left:a,width:s,height:l}=e.getBoundingClientRect();o={top:n,left:a,width:s,height:l}}else{o=yt(e);let n=yt(t),a=window.getComputedStyle(t);n.top+=(parseInt(a.borderTopWidth,10)||0)-t.scrollTop,n.left+=(parseInt(a.borderLeftWidth,10)||0)-t.scrollLeft,o.top-=n.top,o.left-=n.left}return o.top-=parseInt(r.marginTop,10)||0,o.left-=parseInt(r.marginLeft,10)||0,o}function _d(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!oa(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!oa(t);)t=t.parentElement;return t||document.documentElement}function oa(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}const Kd=new WeakMap;function Dd(e){let{triggerRef:t,isOpen:r,onClose:o}=e;c.useEffect(()=>{if(!r||o===null)return;let n=a=>{let s=a.target;if(!t.current||s instanceof Node&&!s.contains(t.current))return;let l=o||Kd.get(t.current);l&&l()};return window.addEventListener("scroll",n,!0),()=>{window.removeEventListener("scroll",n,!0)}},[r,o,t])}let $e=typeof document<"u"&&window.visualViewport;function Fd(e){let{direction:t}=Bo(),{arrowSize:r=0,targetRef:o,overlayRef:n,scrollRef:a=n,placement:s="bottom",containerPadding:l=12,shouldFlip:d=!0,boundaryElement:p=typeof document<"u"?document.body:null,offset:f=0,crossOffset:$=0,shouldUpdatePosition:w=!0,isOpen:v=!0,onClose:m,maxHeight:C,arrowBoundaryOffset:T=0}=e,[R,I]=c.useState({position:{},arrowOffsetLeft:void 0,arrowOffsetTop:void 0,maxHeight:void 0,placement:void 0}),A=[w,s,n.current,o.current,a.current,l,d,p,f,$,v,t,C,T,r],z=c.useRef($e==null?void 0:$e.scale);c.useEffect(()=>{v&&(z.current=$e==null?void 0:$e.scale)},[v]);let K=c.useCallback(()=>{if(w===!1||!v||!n.current||!o.current||!a.current||!p||($e==null?void 0:$e.scale)!==z.current)return;!C&&n.current&&(n.current.style.maxHeight="none");let b=Ld({placement:zd(s,t),overlayNode:n.current,targetNode:o.current,scrollNode:a.current,padding:l,shouldFlip:d,boundaryElement:p,offset:f,crossOffset:$,maxHeight:C,arrowSize:r,arrowBoundaryOffset:T});Object.keys(b.position).forEach(L=>n.current.style[L]=b.position[L]+"px"),n.current.style.maxHeight=b.maxHeight!=null?b.maxHeight+"px":void 0,I(b)},A);rt(K,A),Nd(K),Nc({ref:n,onResize:K});let D=c.useRef(!1);rt(()=>{let b,L=()=>{D.current=!0,clearTimeout(b),b=setTimeout(()=>{D.current=!1},500),K()},_=()=>{D.current&&L()};return $e==null||$e.addEventListener("resize",L),$e==null||$e.addEventListener("scroll",_),()=>{$e==null||$e.removeEventListener("resize",L),$e==null||$e.removeEventListener("scroll",_)}},[K]);let U=c.useCallback(()=>{D.current||m()},[m,D]);return Dd({triggerRef:o,isOpen:v,onClose:m&&U}),{overlayProps:{style:{position:"absolute",zIndex:1e5,...R.position,maxHeight:R.maxHeight}},placement:R.placement,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:R.arrowOffsetLeft,top:R.arrowOffsetTop}},updatePosition:K}}function Nd(e){rt(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function zd(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const Be=[];function Bd(e,t){let{onClose:r,shouldCloseOnBlur:o,isOpen:n,isDismissable:a=!1,isKeyboardDismissDisabled:s=!1,shouldCloseOnInteractOutside:l}=e;c.useEffect(()=>(n&&Be.push(t),()=>{let m=Be.indexOf(t);m>=0&&Be.splice(m,1)}),[n,t]);let d=()=>{Be[Be.length-1]===t&&r&&r()},p=m=>{(!l||l(m.target))&&Be[Be.length-1]===t&&(m.stopPropagation(),m.preventDefault())},f=m=>{(!l||l(m.target))&&(Be[Be.length-1]===t&&(m.stopPropagation(),m.preventDefault()),d())},$=m=>{m.key==="Escape"&&!s&&!m.nativeEvent.isComposing&&(m.stopPropagation(),m.preventDefault(),d())};cd({ref:t,onInteractOutside:a&&n?f:null,onInteractOutsideStart:p});let{focusWithinProps:w}=es({isDisabled:!o,onBlurWithin:m=>{!m.relatedTarget||yd(m.relatedTarget)||(!l||l(m.relatedTarget))&&r()}}),v=m=>{m.target===m.currentTarget&&m.preventDefault()};return{overlayProps:{onKeyDown:$,...w},underlayProps:{onPointerDown:v}}}const po=c.createContext(null);function Vd(e){let{children:t}=e,r=c.useContext(po),[o,n]=c.useState(0),a=c.useMemo(()=>({parent:r,modalCount:o,addModal(){n(s=>s+1),r&&r.addModal()},removeModal(){n(s=>s-1),r&&r.removeModal()}}),[r,o]);return c.createElement(po.Provider,{value:a},t)}function Hd(){let e=c.useContext(po);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:null}}}function Ud(e){let{modalProviderProps:t}=Hd();return c.createElement("div",{"data-overlay-container":!0,...e,...t})}function Wd(e){return c.createElement(Vd,null,c.createElement(Ud,e))}function na(e){let t=Io(),{portalContainer:r=t?null:document.body,...o}=e;if(c.useEffect(()=>{if(r!=null&&r.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[r]),!r)return null;let n=c.createElement(Wd,o);return Lt.createPortal(n,r)}function it(e){return c.forwardRef(e)}var is=(e,t,r=!0)=>{if(!t)return[e,{}];const o=t.reduce((n,a)=>a in e?{...n,[a]:e[a]}:n,{});return r?[Object.keys(e).filter(a=>!t.includes(a)).reduce((a,s)=>({...a,[s]:e[s]}),{}),o]:[e,o]},ls=it((e,t)=>{const{Component:r,ImgComponent:o,src:n,icon:a=g.jsx(Xi,{}),alt:s,classNames:l,slots:d,name:p,showFallback:f,fallback:$,getInitials:w,getAvatarProps:v,getImageProps:m}=wd({...e,ref:t}),C=c.useMemo(()=>!f&&n?null:$?g.jsx("div",{"aria-label":s,className:d.fallback({class:l==null?void 0:l.fallback}),role:"img",children:$}):p?g.jsx("span",{"aria-label":s,className:d.name({class:l==null?void 0:l.name}),role:"img",children:w(p)}):g.jsx("span",{"aria-label":s,className:d.icon({class:l==null?void 0:l.icon}),role:"img",children:a}),[f,n,$,p,l]);return g.jsxs(r,{...v(),children:[n&&g.jsx(o,{...m(),alt:s}),C]})});ls.displayName="NextUI.Avatar";var cs=ls;function Gd(e={}){const{as:t,ref:r,max:o=5,total:n,size:a,color:s,radius:l,children:d,isBordered:p,isDisabled:f,isGrid:$,renderCount:w,className:v,classNames:m,...C}=e,T=Ot(r),R=t||"div",I=c.useMemo(()=>({size:a,color:s,radius:l,isGrid:$,isBordered:p,isDisabled:f}),[a,s,l,$,p,f]),A=c.useMemo(()=>lc({className:v,isGrid:$}),[v,$]),z=pl(d),K=o?z.slice(0,o):z,D=n||(o!=null?z.length-o:-1),U=K.map((_,O)=>{const k=O===0,h=O===K.length-1,E={className:tt(k?"ms-0":$?"":"-ms-2",h&&D<1?"hover:-translate-x-0":"")};return c.cloneElement(_,tl(E))});return{Component:R,context:I,remainingCount:D,clones:U,renderCount:w,getAvatarGroupProps:()=>({ref:T,className:A.base({class:tt(m==null?void 0:m.base,v)}),role:"group",...C}),getAvatarGroupCountProps:()=>({className:A.count({class:m==null?void 0:m.count})})}}var ds=it((e,t)=>{const{Component:r,clones:o,context:n,remainingCount:a,getAvatarGroupCountProps:s,getAvatarGroupProps:l,renderCount:d=p=>g.jsx(cs,{...s(),name:`+${p}`})}=Gd({...e,ref:t});return g.jsx(r,{...l(),children:g.jsxs(yl,{value:n,children:[o,a>0&&d(a)]})})});ds.displayName="NextUI.AvatarGroup";var Yd=ds;const u={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 us(e,t){const r={...e};return Object.entries(t).forEach(([o,n])=>{n!==null&&typeof n=="object"&&!Array.isArray(n)?((r[o]===void 0||r[o]===null)&&(r[o]={}),r[o]=us(r[o],n)):r[o]=n}),r}const Xd=P.styled.div`
|
|
39
|
+
*/var Mn=dl(pl());function gl(e){return Mn.Children.toArray(e).filter(t=>(0,Mn.isValidElement)(t))}var bl=new Set(["id","type","style","title","role","tabIndex","htmlFor","width","height","abbr","accept","acceptCharset","accessKey","action","allowFullScreen","allowTransparency","alt","async","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","challenge","charset","checked","cite","class","className","cols","colSpan","command","content","contentEditable","contextMenu","controls","coords","crossOrigin","data","dateTime","default","defer","dir","disabled","download","draggable","dropzone","encType","enterKeyHint","for","form","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","headers","hidden","high","href","hrefLang","httpEquiv","icon","inputMode","isMap","itemId","itemProp","itemRef","itemScope","itemType","kind","label","lang","list","loop","manifest","max","maxLength","media","mediaGroup","method","min","minLength","multiple","muted","name","noValidate","open","optimum","pattern","ping","placeholder","poster","preload","radioGroup","referrerPolicy","readOnly","rel","required","rows","rowSpan","sandbox","scope","scoped","scrolling","seamless","selected","shape","size","sizes","slot","sortable","span","spellCheck","src","srcDoc","srcSet","start","step","target","translate","typeMustMatch","useMap","value","wmode","wrap"]),vl=new Set(["onCopy","onCut","onPaste","onLoad","onError","onWheel","onScroll","onCompositionEnd","onCompositionStart","onCompositionUpdate","onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onSubmit","onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onPointerDown","onPointerEnter","onPointerLeave","onPointerUp","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionEnd"]),In=/^(data-.*)$/,yl=/^(aria-.*)$/,Xt=/^(on[A-Z].*)$/;function ko(e,t={}){let{labelable:r=!0,enabled:o=!0,propNames:n,omitPropNames:a,omitEventNames:s,omitDataProps:i,omitEventProps:d}=t,p={};if(!o)return e;for(const f in e)a!=null&&a.has(f)||s!=null&&s.has(f)&&Xt.test(f)||Xt.test(f)&&!vl.has(f)||i&&In.test(f)||d&&Xt.test(f)||(Object.prototype.hasOwnProperty.call(e,f)&&(bl.has(f)||r&&yl.test(f)||n!=null&&n.has(f)||In.test(f))||Xt.test(f))&&(p[f]=e[f]);return p}var[$l,Sa]=Zi({name:"AvatarGroupContext",strict:!1}),xl={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"},ml={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"},hl={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"},wl={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"},Cl={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"},El={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"},Sl={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"},se={solid:xl,shadow:ml,bordered:hl,flat:wl,faded:Cl,light:El,ghost:Sl},Rn=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Me=e=>!e||typeof e!="object"||Object.keys(e).length===0,Pl=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function Pa(e,t){e.forEach(function(r){Array.isArray(r)?Pa(r,t):t.push(r)})}function Ta(e){let t=[];return Pa(e,t),t}var ka=(...e)=>Ta(e).filter(Boolean),Ma=(e,t)=>{let r={},o=Object.keys(e),n=Object.keys(t);for(let a of o)if(n.includes(a)){let s=e[a],i=t[a];typeof s=="object"&&typeof i=="object"?r[a]=Ma(s,i):Array.isArray(s)||Array.isArray(i)?r[a]=ka(i,s):r[a]=i+" "+s}else r[a]=e[a];for(let a of n)o.includes(a)||(r[a]=t[a]);return r},On=e=>!e||typeof e!="string"?e:e.replace(/\s+/g," ").trim();function Tl(){for(var e=0,t,r,o="";e<arguments.length;)(t=arguments[e++])&&(r=Ia(t))&&(o&&(o+=" "),o+=r);return o}function Ia(e){if(typeof e=="string")return e;for(var t,r="",o=0;o<e.length;o++)e[o]&&(t=Ia(e[o]))&&(r&&(r+=" "),r+=t);return r}var Mo="-";function kl(e){var t=Il(e),r=e.conflictingClassGroups,o=e.conflictingClassGroupModifiers,n=o===void 0?{}:o;function a(i){var d=i.split(Mo);return d[0]===""&&d.length!==1&&d.shift(),Ra(d,t)||Ml(i)}function s(i,d){var p=r[i]||[];return d&&n[i]?[].concat(p,n[i]):p}return{getClassGroupId:a,getConflictingClassGroupIds:s}}function Ra(e,t){var s;if(e.length===0)return t.classGroupId;var r=e[0],o=t.nextPart.get(r),n=o?Ra(e.slice(1),o):void 0;if(n)return n;if(t.validators.length!==0){var a=e.join(Mo);return(s=t.validators.find(function(i){var d=i.validator;return d(a)}))==null?void 0:s.classGroupId}}var An=/^\[(.+)\]$/;function Ml(e){if(An.test(e)){var t=An.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}}function Il(e){var t=e.theme,r=e.prefix,o={nextPart:new Map,validators:[]},n=Ol(Object.entries(e.classGroups),r);return n.forEach(function(a){var s=a[0],i=a[1];qr(i,o,s,t)}),o}function qr(e,t,r,o){e.forEach(function(n){if(typeof n=="string"){var a=n===""?t:jn(t,n);a.classGroupId=r;return}if(typeof n=="function"){if(Rl(n)){qr(n(o),t,r,o);return}t.validators.push({validator:n,classGroupId:r});return}Object.entries(n).forEach(function(s){var i=s[0],d=s[1];qr(d,jn(t,i),r,o)})})}function jn(e,t){var r=e;return t.split(Mo).forEach(function(o){r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r}function Rl(e){return e.isThemeGetter}function Ol(e,t){return t?e.map(function(r){var o=r[0],n=r[1],a=n.map(function(s){return typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(function(i){var d=i[0],p=i[1];return[t+d,p]})):s});return[o,a]}):e}function Al(e){if(e<1)return{get:function(){},set:function(){}};var t=0,r=new Map,o=new Map;function n(a,s){r.set(a,s),t++,t>e&&(t=0,o=r,r=new Map)}return{get:function(s){var i=r.get(s);if(i!==void 0)return i;if((i=o.get(s))!==void 0)return n(s,i),i},set:function(s,i){r.has(s)?r.set(s,i):n(s,i)}}}var Oa="!";function jl(e){var t=e.separator||":",r=t.length===1,o=t[0],n=t.length;return function(s){for(var i=[],d=0,p=0,f,$=0;$<s.length;$++){var w=s[$];if(d===0){if(w===o&&(r||s.slice($,$+n)===t)){i.push(s.slice(p,$)),p=$+n;continue}if(w==="/"){f=$;continue}}w==="["?d++:w==="]"&&d--}var v=i.length===0?s:s.substring(p),x=v.startsWith(Oa),C=x?v.substring(1):v,T=f&&f>p?f-p:void 0;return{modifiers:i,hasImportantModifier:x,baseClassName:C,maybePostfixModifierPosition:T}}}function Ll(e){if(e.length<=1)return e;var t=[],r=[];return e.forEach(function(o){var n=o[0]==="[";n?(t.push.apply(t,r.sort().concat([o])),r=[]):r.push(o)}),t.push.apply(t,r.sort()),t}function _l(e){return{cache:Al(e.cacheSize),splitModifiers:jl(e),...kl(e)}}var Kl=/\s+/;function Dl(e,t){var r=t.splitModifiers,o=t.getClassGroupId,n=t.getConflictingClassGroupIds,a=new Set;return e.trim().split(Kl).map(function(s){var i=r(s),d=i.modifiers,p=i.hasImportantModifier,f=i.baseClassName,$=i.maybePostfixModifierPosition,w=o($?f.substring(0,$):f),v=!!$;if(!w){if(!$)return{isTailwindClass:!1,originalClassName:s};if(w=o(f),!w)return{isTailwindClass:!1,originalClassName:s};v=!1}var x=Ll(d).join(":"),C=p?x+Oa:x;return{isTailwindClass:!0,modifierId:C,classGroupId:w,originalClassName:s,hasPostfixModifier:v}}).reverse().filter(function(s){if(!s.isTailwindClass)return!0;var i=s.modifierId,d=s.classGroupId,p=s.hasPostfixModifier,f=i+d;return a.has(f)?!1:(a.add(f),n(d,p).forEach(function($){return a.add(i+$)}),!0)}).reverse().map(function(s){return s.originalClassName}).join(" ")}function Zr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o,n,a,s=i;function i(p){var f=t[0],$=t.slice(1),w=$.reduce(function(v,x){return x(v)},f());return o=_l(w),n=o.cache.get,a=o.cache.set,s=d,d(p)}function d(p){var f=n(p);if(f)return f;var $=Dl(p,o);return a(p,$),$}return function(){return s(Tl.apply(null,arguments))}}function ue(e){var t=function(o){return o[e]||[]};return t.isThemeGetter=!0,t}var Aa=/^\[(?:([a-z-]+):)?(.+)\]$/i,Nl=/^\d+\/\d+$/,Fl=new Set(["px","full","screen"]),zl=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Bl=/\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$/,Vl=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function je(e){return et(e)||Fl.has(e)||Nl.test(e)||Jr(e)}function Jr(e){return at(e,"length",Xl)}function Hl(e){return at(e,"size",ja)}function Ul(e){return at(e,"position",ja)}function Wl(e){return at(e,"url",ql)}function qt(e){return at(e,"number",et)}function et(e){return!Number.isNaN(Number(e))}function Gl(e){return e.endsWith("%")&&et(e.slice(0,-1))}function St(e){return Ln(e)||at(e,"number",Ln)}function ae(e){return Aa.test(e)}function Pt(){return!0}function Ye(e){return zl.test(e)}function Yl(e){return at(e,"",Zl)}function at(e,t,r){var o=Aa.exec(e);return o?o[1]?o[1]===t:r(o[2]):!1}function Xl(e){return Bl.test(e)}function ja(){return!1}function ql(e){return e.startsWith("url(")}function Ln(e){return Number.isInteger(Number(e))}function Zl(e){return Vl.test(e)}function Qr(){var e=ue("colors"),t=ue("spacing"),r=ue("blur"),o=ue("brightness"),n=ue("borderColor"),a=ue("borderRadius"),s=ue("borderSpacing"),i=ue("borderWidth"),d=ue("contrast"),p=ue("grayscale"),f=ue("hueRotate"),$=ue("invert"),w=ue("gap"),v=ue("gradientColorStops"),x=ue("gradientColorStopPositions"),C=ue("inset"),T=ue("margin"),R=ue("opacity"),O=ue("padding"),A=ue("saturate"),z=ue("scale"),K=ue("sepia"),D=ue("skew"),U=ue("space"),b=ue("translate"),L=function(){return["auto","contain","none"]},_=function(){return["auto","hidden","clip","visible","scroll"]},k=function(){return["auto",ae,t]},M=function(){return[ae,t]},h=function(){return["",je]},E=function(){return["auto",et,ae]},N=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},B=function(){return["solid","dashed","dotted","double","none"]},F=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},X=function(){return["start","end","center","between","around","evenly","stretch"]},q=function(){return["","0",ae]},V=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},m=function(){return[et,qt]},j=function(){return[et,ae]};return{cacheSize:500,theme:{colors:[Pt],spacing:[je],blur:["none","",Ye,ae],brightness:m(),borderColor:[e],borderRadius:["none","","full",Ye,ae],borderSpacing:M(),borderWidth:h(),contrast:m(),grayscale:q(),hueRotate:j(),invert:q(),gap:M(),gradientColorStops:[e],gradientColorStopPositions:[Gl,Jr],inset:k(),margin:k(),opacity:m(),padding:M(),saturate:m(),scale:m(),sepia:q(),skew:j(),space:M(),translate:M()},classGroups:{aspect:[{aspect:["auto","square","video",ae]}],container:["container"],columns:[{columns:[Ye]}],"break-after":[{"break-after":V()}],"break-before":[{"break-before":V()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],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(N(),[ae])}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[C]}],"inset-x":[{"inset-x":[C]}],"inset-y":[{"inset-y":[C]}],start:[{start:[C]}],end:[{end:[C]}],top:[{top:[C]}],right:[{right:[C]}],bottom:[{bottom:[C]}],left:[{left:[C]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",St]}],basis:[{basis:k()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ae]}],grow:[{grow:q()}],shrink:[{shrink:q()}],order:[{order:["first","last","none",St]}],"grid-cols":[{"grid-cols":[Pt]}],"col-start-end":[{col:["auto",{span:["full",St]},ae]}],"col-start":[{"col-start":E()}],"col-end":[{"col-end":E()}],"grid-rows":[{"grid-rows":[Pt]}],"row-start-end":[{row:["auto",{span:[St]},ae]}],"row-start":[{"row-start":E()}],"row-end":[{"row-end":E()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ae]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ae]}],gap:[{gap:[w]}],"gap-x":[{"gap-x":[w]}],"gap-y":[{"gap-y":[w]}],"justify-content":[{justify:["normal"].concat(X())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(X(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(X(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[O]}],px:[{px:[O]}],py:[{py:[O]}],ps:[{ps:[O]}],pe:[{pe:[O]}],pt:[{pt:[O]}],pr:[{pr:[O]}],pb:[{pb:[O]}],pl:[{pl:[O]}],m:[{m:[T]}],mx:[{mx:[T]}],my:[{my:[T]}],ms:[{ms:[T]}],me:[{me:[T]}],mt:[{mt:[T]}],mr:[{mr:[T]}],mb:[{mb:[T]}],ml:[{ml:[T]}],"space-x":[{"space-x":[U]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[U]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",ae,t]}],"min-w":[{"min-w":["min","max","fit",ae,je]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[Ye]},Ye,ae]}],h:[{h:[ae,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",ae,je]}],"max-h":[{"max-h":[ae,t,"min","max","fit"]}],"font-size":[{text:["base",Ye,Jr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",qt]}],"font-family":[{font:[Pt]}],"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",ae]}],"line-clamp":[{"line-clamp":["none",et,qt]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ae,je]}],"list-image":[{"list-image":["none",ae]}],"list-style-type":[{list:["none","disc","decimal",ae]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[R]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[R]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(B(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",je]}],"underline-offset":[{"underline-offset":["auto",ae,je]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:M()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ae]}],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",ae]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[R]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(N(),[Ul])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Hl]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Wl]}],"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:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[R]}],"border-style":[{border:[].concat(B(),["hidden"])}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[R]}],"divide-style":[{divide:B()}],"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(B())}],"outline-offset":[{"outline-offset":[ae,je]}],"outline-w":[{outline:[je]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:h()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[R]}],"ring-offset-w":[{"ring-offset":[je]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Ye,Yl]}],"shadow-color":[{shadow:[Pt]}],opacity:[{opacity:[R]}],"mix-blend":[{"mix-blend":F()}],"bg-blend":[{"bg-blend":F()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",Ye,ae]}],grayscale:[{grayscale:[p]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[$]}],saturate:[{saturate:[A]}],sepia:[{sepia:[K]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[p]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[$]}],"backdrop-opacity":[{"backdrop-opacity":[R]}],"backdrop-saturate":[{"backdrop-saturate":[A]}],"backdrop-sepia":[{"backdrop-sepia":[K]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ae]}],duration:[{duration:j()}],ease:[{ease:["linear","in","out","in-out",ae]}],delay:[{delay:j()}],animate:[{animate:["none","spin","ping","pulse","bounce",ae]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[z]}],"scale-x":[{"scale-x":[z]}],"scale-y":[{"scale-y":[z]}],rotate:[{rotate:[St,ae]}],"translate-x":[{"translate-x":[b]}],"translate-y":[{"translate-y":[b]}],"skew-x":[{"skew-x":[D]}],"skew-y":[{"skew-y":[D]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ae]}],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",ae]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ae]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[je,qt]}],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 Jl(e,t){for(var r in t)La(e,r,t[r]);return e}var Ql=Object.prototype.hasOwnProperty,ec=new Set(["string","number","boolean"]);function La(e,t,r){if(!Ql.call(e,t)||ec.has(typeof r)||r===null){e[t]=r;return}if(Array.isArray(r)&&Array.isArray(e[t])){e[t]=e[t].concat(r);return}if(typeof r=="object"&&typeof e[t]=="object"){if(e[t]===null){e[t]=r;return}for(var o in r)La(e[t],o,r[o])}}function tc(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];return typeof e=="function"?Zr.apply(void 0,[Qr,e].concat(r)):Zr.apply(void 0,[function(){return Jl(Qr(),e)}].concat(r))}var rc=Zr(Qr),oc={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},_a=e=>e||void 0,At=(...e)=>_a(Ta(e).filter(Boolean).join(" ")),Dr=null,cr={},eo=!1,Tt=(...e)=>t=>t.twMerge?((!Dr||eo)&&(eo=!1,Dr=Me(cr)?rc:tc(cr)),_a(Dr(At(e)))):At(e),_n=(e,t)=>{for(let r in t)e.hasOwnProperty(r)?e[r]=At(e[r],t[r]):e[r]=t[r];return e},nc=(e,t)=>{let{extend:r=null,slots:o={},variants:n={},compoundVariants:a=[],compoundSlots:s=[],defaultVariants:i={}}=e,d={...oc,...t},p=r!=null&&r.base?At(r.base,e==null?void 0:e.base):e==null?void 0:e.base,f=r!=null&&r.variants&&!Me(r.variants)?Ma(n,r.variants):n,$=r!=null&&r.defaultVariants&&!Me(r.defaultVariants)?{...r.defaultVariants,...i}:i;!Me(d.twMergeConfig)&&!Pl(d.twMergeConfig,cr)&&(eo=!0,cr=d.twMergeConfig);let w=Me(r==null?void 0:r.slots),v=Me(o)?{}:{base:At(e==null?void 0:e.base,w&&(r==null?void 0:r.base)),...o},x=w?v:_n({...r==null?void 0:r.slots},Me(v)?{base:e==null?void 0:e.base}:v),C=R=>{if(Me(f)&&Me(o)&&w)return Tt(p,R==null?void 0:R.class,R==null?void 0:R.className)(d);if(a&&!Array.isArray(a))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof a}`);if(s&&!Array.isArray(s))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof s}`);let O=(M,h,E=[],N)=>{let B=E;if(typeof h=="string")B=B.concat(On(h).split(" ").map(F=>`${M}:${F}`));else if(Array.isArray(h))B=B.concat(h.reduce((F,X)=>F.concat(`${M}:${X}`),[]));else if(typeof h=="object"&&typeof N=="string"){for(let F in h)if(h.hasOwnProperty(F)&&F===N){let X=h[F];if(X&&typeof X=="string"){let q=On(X);B[N]?B[N]=B[N].concat(q.split(" ").map(V=>`${M}:${V}`)):B[N]=q.split(" ").map(V=>`${M}:${V}`)}else Array.isArray(X)&&X.length>0&&(B[N]=X.reduce((q,V)=>q.concat(`${M}:${V}`),[]))}}return B},A=(M,h=f,E=null,N=null)=>{var B;let F=h[M];if(!F||Me(F))return null;let X=(B=N==null?void 0:N[M])!=null?B:R==null?void 0:R[M];if(X===null)return null;let q=Rn(X),V=Array.isArray(d.responsiveVariants)&&d.responsiveVariants.length>0||d.responsiveVariants===!0,m=$==null?void 0:$[M],j=[];if(typeof q=="object"&&V)for(let[Z,Q]of Object.entries(q)){let ne=F[Q];if(Z==="initial"){m=Q;continue}Array.isArray(d.responsiveVariants)&&!d.responsiveVariants.includes(Z)||(j=O(Z,ne,j,E))}let G=F[q]||F[Rn(m)];return typeof j=="object"&&typeof E=="string"&&j[E]?_n(j,G):j.length>0?(j.push(G),j):G},z=()=>f?Object.keys(f).map(M=>A(M,f)):null,K=(M,h)=>{if(!f||typeof f!="object")return null;let E=new Array;for(let N in f){let B=A(N,f,M,h),F=M==="base"&&typeof B=="string"?B:B&&B[M];F&&(E[E.length]=F)}return E},D={};for(let M in R)R[M]!==void 0&&(D[M]=R[M]);let U=(M,h)=>{var E;let N=typeof(R==null?void 0:R[M])=="object"?{[M]:(E=R[M])==null?void 0:E.initial}:{};return{...$,...D,...N,...h}},b=(M=[],h)=>{let E=[];for(let{class:N,className:B,...F}of M){let X=!0;for(let[q,V]of Object.entries(F)){let m=U(q,h);if(Array.isArray(V)){if(!V.includes(m[q])){X=!1;break}}else if(m[q]!==V){X=!1;break}}X&&(N&&E.push(N),B&&E.push(B))}return E},L=M=>{let h=b(a,M),E=b(r==null?void 0:r.compoundVariants,M);return ka(E,h)},_=M=>{let h=L(M);if(!Array.isArray(h))return h;let E={};for(let N of h)if(typeof N=="string"&&(E.base=Tt(E.base,N)(d)),typeof N=="object")for(let[B,F]of Object.entries(N))E[B]=Tt(E[B],F)(d);return E},k=M=>{if(s.length<1)return null;let h={};for(let{slots:E=[],class:N,className:B,...F}of s){if(!Me(F)){let X=!0;for(let q of Object.keys(F)){let V=U(q,M)[q];if(V===void 0||(Array.isArray(F[q])?!F[q].includes(V):F[q]!==V)){X=!1;break}}if(!X)continue}for(let X of E)h[X]=h[X]||[],h[X].push([N,B])}return h};if(!Me(o)||!w){let M={};if(typeof x=="object"&&!Me(x))for(let h of Object.keys(x))M[h]=E=>{var N,B;return Tt(x[h],K(h,E),((N=_(E))!=null?N:[])[h],((B=k(E))!=null?B:[])[h],E==null?void 0:E.class,E==null?void 0:E.className)(d)};return M}return Tt(p,z(),L(),R==null?void 0:R.class,R==null?void 0:R.className)(d)},T=()=>{if(!(!f||typeof f!="object"))return Object.keys(f)};return C.variantKeys=T(),C.extend=r,C.base=p,C.slots=x,C.variants=f,C.defaultVariants=$,C.compoundSlots=s,C.compoundVariants=a,C},Zt=["small","medium","large"],st=(e,t)=>{var r,o,n;return nc(e,{...t,twMerge:(r=t==null?void 0:t.twMerge)!=null?r:!0,twMergeConfig:{...t==null?void 0:t.twMergeConfig,theme:{...(o=t==null?void 0:t.twMergeConfig)==null?void 0:o.theme,opacity:["disabled"],spacing:["divider"],borderWidth:Zt,borderRadius:Zt},classGroups:{...(n=t==null?void 0:t.twMergeConfig)==null?void 0:n.classGroups,shadow:[{shadow:Zt}],"font-size":[{text:["tiny",...Zt]}],"bg-image":["bg-stripe-gradient"]}}})},Io=["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"],Nr=["absolute","top-1/2","left-1/2","-translate-x-1/2","-translate-y-1/2"],Kn=st({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",...Io],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:se.solid.foreground},primary:{base:"before:bg-primary",content:se.solid.primary},secondary:{base:"before:bg-secondary",content:se.solid.secondary},success:{base:"before:bg-success",content:se.solid.success},warning:{base:"before:bg-warning",content:se.solid.warning},danger:{base:"before:bg-danger",content:se.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"}}]}),ac=st({base:"shrink-0 bg-divider border-none",variants:{orientation:{horizontal:"w-full h-divider",vertical:"h-full w-divider"}},defaultVariants:{orientation:"horizontal"}}),sc=st({base:"px-2",variants:{variant:{light:"",shadow:"px-4 shadow-medium rounded-medium bg-content1",bordered:"px-4 border-medium border-divider rounded-medium",splitted:"group is-splitted flex flex-col gap-2"},fullWidth:{true:"w-full"}},defaultVariants:{variant:"light",fullWidth:!0}}),ic=st({slots:{base:["group-[.is-splitted]:px-4","group-[.is-splitted]:bg-content1","group-[.is-splitted]:shadow-medium","group-[.is-splitted]:rounded-medium"],heading:"",trigger:["flex py-4 w-full h-full gap-3 outline-none items-center tap-highlight-transparent",...Io],startContent:"flex-shrink-0",indicator:"text-default-400",titleWrapper:"flex-1 flex flex-col text-start",title:"text-foreground text-large",subtitle:"text-small text-foreground-500 font-normal",content:"py-2"},variants:{isCompact:{true:{trigger:"py-2",title:"text-medium",subtitle:"text-small",indicator:"text-medium",content:"py-1"}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},hideIndicator:{true:{indicator:"hidden"}},disableAnimation:{true:{content:"hidden data-[open=true]:block"},false:{indicator:"transition-transform",trigger:"transition-opacity"}},disableIndicatorAnimation:{true:{indicator:"transition-none"},false:{indicator:"rotate-0 data-[open=true]:-rotate-90 rtl:-rotate-180 rtl:data-[open=true]:-rotate-90"}}},defaultVariants:{size:"md",radius:"lg",isDisabled:!1,hideIndicator:!1,disableAnimation:!1,disableIndicatorAnimation:!1}}),lc=st({slots:{base:["flex","relative","justify-center","items-center","box-border","overflow-hidden","align-middle","text-white","z-0",...Io],img:["flex","object-cover","w-full","h-full","transition-opacity","!duration-500","opacity-0","data-[loaded=true]:opacity-100"],fallback:[...Nr,"flex","items-center","justify-center"],name:[...Nr,"font-normal","text-center","text-inherit"],icon:[...Nr,"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:se.solid.default},primary:{base:se.solid.primary},secondary:{base:se.solid.secondary},success:{base:se.solid.success},warning:{base:se.solid.warning},danger:{base:se.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"}}]}),cc=st({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"}}}),Dn=st({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:se.solid.default}},{variant:"solid",color:"primary",class:{badge:se.solid.primary}},{variant:"solid",color:"secondary",class:{badge:se.solid.secondary}},{variant:"solid",color:"success",class:{badge:se.solid.success}},{variant:"solid",color:"warning",class:{badge:se.solid.warning}},{variant:"solid",color:"danger",class:{badge:se.solid.danger}},{variant:"shadow",color:"default",class:{badge:se.shadow.default}},{variant:"shadow",color:"primary",class:{badge:se.shadow.primary}},{variant:"shadow",color:"secondary",class:{badge:se.shadow.secondary}},{variant:"shadow",color:"success",class:{badge:se.shadow.success}},{variant:"shadow",color:"warning",class:{badge:se.shadow.warning}},{variant:"shadow",color:"danger",class:{badge:se.shadow.danger}},{variant:"flat",color:"default",class:{badge:se.flat.default}},{variant:"flat",color:"primary",class:{badge:se.flat.primary}},{variant:"flat",color:"secondary",class:{badge:se.flat.secondary}},{variant:"flat",color:"success",class:{badge:se.flat.success}},{variant:"flat",color:"warning",class:{badge:se.flat.warning}},{variant:"flat",color:"danger",class:{badge:se.flat.danger}},{variant:"faded",color:"default",class:{badge:se.faded.default}},{variant:"faded",color:"primary",class:{badge:se.faded.primary}},{variant:"faded",color:"secondary",class:{badge:se.faded.secondary}},{variant:"faded",color:"success",class:{badge:se.faded.success}},{variant:"faded",color:"warning",class:{badge:se.faded.warning}},{variant:"faded",color:"danger",class:{badge:se.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 rt=typeof document<"u"?c.useLayoutEffect:()=>{};function Ue(e){const t=c.useRef(null);return rt(()=>{t.current=e},[e]),c.useCallback((...r)=>{const o=t.current;return o==null?void 0:o(...r)},[])}const dr={prefix:String(Math.round(Math.random()*1e10)),current:0},Ka=c.createContext(dr),dc=c.createContext(!1);let uc=!!(typeof window<"u"&&window.document&&window.document.createElement),Fr=new WeakMap;function fc(e=!1){let t=c.useContext(Ka),r=c.useRef(null);if(r.current===null&&!e){var o,n;let a=(n=c.__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(a){let s=Fr.get(a);s==null?Fr.set(a,{id:t.current,state:a.memoizedState}):a.memoizedState!==s.state&&(t.current=s.id,Fr.delete(a))}r.current=++t.current}return r.current}function pc(e){let t=c.useContext(Ka);t===dr&&!uc&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let r=fc(!!e),o=t===dr&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${o}-${r}`}function gc(e){let t=c.useId(),[r]=c.useState(Ro()),o=r||process.env.NODE_ENV==="test"?"react-aria":`react-aria${dr.prefix}`;return e||`${o}-${t}`}const bc=typeof c.useId=="function"?gc:pc;function vc(){return!1}function yc(){return!0}function $c(e){return()=>{}}function Ro(){return typeof c.useSyncExternalStore=="function"?c.useSyncExternalStore($c,vc,yc):c.useContext(dc)}let xc=!!(typeof window<"u"&&window.document&&window.document.createElement),ur=new Map;function mc(e){let[t,r]=c.useState(e),o=c.useRef(null),n=bc(t),a=c.useCallback(s=>{o.current=s},[]);return xc&&ur.set(n,a),rt(()=>{let s=n;return()=>{ur.delete(s)}},[n]),c.useEffect(()=>{let s=o.current;s&&(o.current=null,r(s))}),n}function hc(e,t){if(e===t)return e;let r=ur.get(e);if(r)return r(t),t;let o=ur.get(t);return o?(o(e),e):t}function Oo(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}const Pe=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},_e=e=>e&&"window"in e&&e.window===e?e:Pe(e).defaultView||window;function Da(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=Da(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function wc(){for(var e,t,r=0,o="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=Da(e))&&(o&&(o+=" "),o+=t);return o}function xe(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let o=e[r];for(let n in o){let a=t[n],s=o[n];typeof a=="function"&&typeof s=="function"&&n[0]==="o"&&n[1]==="n"&&n.charCodeAt(2)>=65&&n.charCodeAt(2)<=90?t[n]=Oo(a,s):(n==="className"||n==="UNSAFE_className")&&typeof a=="string"&&typeof s=="string"?t[n]=wc(a,s):n==="id"&&a&&s?t.id=hc(a,s):t[n]=s!==void 0?s:a}}return t}const Cc=new Set(["id"]),Ec=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Sc=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),Pc=/^(data-.*)$/;function Na(e,t={}){let{labelable:r,isLink:o,propNames:n}=t,a={};for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(Cc.has(s)||r&&Ec.has(s)||o&&Sc.has(s)||n!=null&&n.has(s)||Pc.test(s))&&(a[s]=e[s]);return a}function We(e){if(Tc())e.focus({preventScroll:!0});else{let t=kc(e);e.focus(),Mc(t)}}let Jt=null;function Tc(){if(Jt==null){Jt=!1;try{document.createElement("div").focus({get preventScroll(){return Jt=!0,!0}})}catch{}}return Jt}function kc(e){let t=e.parentNode,r=[],o=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==o;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return o instanceof HTMLElement&&r.push({element:o,scrollTop:o.scrollTop,scrollLeft:o.scrollLeft}),r}function Mc(e){for(let{element:t,scrollTop:r,scrollLeft:o}of e)t.scrollTop=r,t.scrollLeft=o}function mr(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(r=>e.test(r.brand)))||e.test(window.navigator.userAgent)}function Ao(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function ot(){return Ao(/^Mac/i)}function Ic(){return Ao(/^iPhone/i)}function Fa(){return Ao(/^iPad/i)||ot()&&navigator.maxTouchPoints>1}function jo(){return Ic()||Fa()}function Rc(){return ot()||jo()}function za(){return mr(/AppleWebKit/i)&&!Oc()}function Oc(){return mr(/Chrome/i)}function Ba(){return mr(/Android/i)}function Ac(){return mr(/Firefox/i)}const jc=c.createContext({isNative:!0,open:Kc,useHref:e=>e});function Lc(){return c.useContext(jc)}function $t(e,t,r=!0){var o,n;let{metaKey:a,ctrlKey:s,altKey:i,shiftKey:d}=t;Ac()&&(!((n=window.event)===null||n===void 0||(o=n.type)===null||o===void 0)&&o.startsWith("key"))&&e.target==="_blank"&&(ot()?a=!0:s=!0);let p=za()&&ot()&&!Fa()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:a,ctrlKey:s,altKey:i,shiftKey:d}):new MouseEvent("click",{metaKey:a,ctrlKey:s,altKey:i,shiftKey:d,bubbles:!0,cancelable:!0});$t.isOpening=r,We(e),e.dispatchEvent(p),$t.isOpening=!1}$t.isOpening=!1;function _c(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let r=document.createElement("a");r.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(r.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(r.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(r.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(r.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(r.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(r),t(r),e.removeChild(r)}}function Kc(e,t){_c(e,r=>$t(r,t))}let gt=new Map,to=new Set;function Nn(){if(typeof window>"u")return;function e(o){return"propertyName"in o}let t=o=>{if(!e(o)||!o.target)return;let n=gt.get(o.target);n||(n=new Set,gt.set(o.target,n),o.target.addEventListener("transitioncancel",r,{once:!0})),n.add(o.propertyName)},r=o=>{if(!e(o)||!o.target)return;let n=gt.get(o.target);if(n&&(n.delete(o.propertyName),n.size===0&&(o.target.removeEventListener("transitioncancel",r),gt.delete(o.target)),gt.size===0)){for(let a of to)a();to.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?Nn():document.addEventListener("DOMContentLoaded",Nn));function Va(e){requestAnimationFrame(()=>{gt.size===0?e():to.add(e)})}function Dc(){let e=c.useRef(new Map),t=c.useCallback((n,a,s,i)=>{let d=i!=null&&i.once?(...p)=>{e.current.delete(s),s(...p)}:s;e.current.set(s,{type:a,eventTarget:n,fn:d,options:i}),n.addEventListener(a,s,i)},[]),r=c.useCallback((n,a,s,i)=>{var d;let p=((d=e.current.get(s))===null||d===void 0?void 0:d.fn)||s;n.removeEventListener(a,p,i),e.current.delete(s)},[]),o=c.useCallback(()=>{e.current.forEach((n,a)=>{r(n.eventTarget,n.type,a,n.options)})},[r]);return c.useEffect(()=>o,[o]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:o}}function Nc(e){const t=c.useRef(null);return c.useMemo(()=>({get current(){return t.current},set current(r){t.current=r,typeof e=="function"?e(r):e&&(e.current=r)}}),[e])}function Fc(){return typeof window.ResizeObserver<"u"}function zc(e){const{ref:t,onResize:r}=e;c.useEffect(()=>{let o=t==null?void 0:t.current;if(o)if(Fc()){const n=new window.ResizeObserver(a=>{a.length&&r()});return n.observe(o),()=>{o&&n.unobserve(o)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,t])}function Lo(e,t){rt(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function ro(e,t){let r=window.getComputedStyle(e),o=/(auto|scroll)/.test(r.overflow+r.overflowX+r.overflowY);return o&&t&&(o=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),o}function Bc(e,t){const r=[];for(;e&&e!==document.documentElement;)ro(e,t)&&r.push(e),e=e.parentElement;return r}function Vc(e,t,r,o){let n=Ue(r),a=r==null;c.useEffect(()=>{if(a||!e.current)return;let s=e.current;return s.addEventListener(t,n,o),()=>{s.removeEventListener(t,n,o)}},[e,t,o,a,n])}function Ha(e,t){let r=Fn(e,t,"left"),o=Fn(e,t,"top"),n=t.offsetWidth,a=t.offsetHeight,s=e.scrollLeft,i=e.scrollTop,{borderTopWidth:d,borderLeftWidth:p}=getComputedStyle(e),f=e.scrollLeft+parseInt(p,10),$=e.scrollTop+parseInt(d,10),w=f+e.clientWidth,v=$+e.clientHeight;r<=s?s=r-parseInt(p,10):r+n>w&&(s+=r+n-w),o<=$?i=o-parseInt(d,10):o+a>v&&(i+=o+a-v),e.scrollLeft=s,e.scrollTop=i}function Fn(e,t,r){const o=r==="left"?"offsetLeft":"offsetTop";let n=0;for(;t.offsetParent&&(n+=t[o],t.offsetParent!==e);){if(t.offsetParent.contains(e)){n-=e[o];break}t=t.offsetParent}return n}function zn(e,t){if(document.contains(e)){let s=document.scrollingElement||document.documentElement;if(window.getComputedStyle(s).overflow==="hidden"){let d=Bc(e);for(let p of d)Ha(p,e)}else{var r;let{left:d,top:p}=e.getBoundingClientRect();e==null||(r=e.scrollIntoView)===null||r===void 0||r.call(e,{block:"nearest"});let{left:f,top:$}=e.getBoundingClientRect();if(Math.abs(d-f)>1||Math.abs(p-$)>1){var o,n,a;t==null||(n=t.containingElement)===null||n===void 0||(o=n.scrollIntoView)===null||o===void 0||o.call(n,{block:"center",inline:"center"}),(a=e.scrollIntoView)===null||a===void 0||a.call(e,{block:"nearest"})}}}}function oo(e){return e.mozInputSource===0&&e.isTrusted?!0:Ba()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Hc(e){return!Ba()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function hr(e,t,r){let[o,n]=c.useState(e||t),a=c.useRef(e!==void 0),s=e!==void 0;c.useEffect(()=>{let p=a.current;p!==s&&console.warn(`WARN: A component changed from ${p?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),a.current=s},[s]);let i=s?e:o,d=c.useCallback((p,...f)=>{let $=(w,...v)=>{r&&(Object.is(i,w)||r(w,...v)),s||(i=w)};typeof p=="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 C=p(s?i:v,...x);return $(C,...f),s?v:C})):(s||n(p),$(p,...f))},[s,i,r]);return[i,d]}function no(e,t=-1/0,r=1/0){return Math.min(Math.max(e,t),r)}let bt="default",ao="",ar=new WeakMap;function Bn(e){if(jo()){if(bt==="default"){const t=Pe(e);ao=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}bt="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(ar.set(e,e.style.userSelect),e.style.userSelect="none")}function Qt(e){if(jo()){if(bt!=="disabled")return;bt="restoring",setTimeout(()=>{Va(()=>{if(bt==="restoring"){const t=Pe(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=ao||""),ao="",bt="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&ar.has(e)){let t=ar.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),ar.delete(e)}}const fr=c.createContext({register:()=>{}});fr.displayName="PressResponderContext";function Uc(e,t){return t.get?t.get.call(e):t.value}function Ua(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function Wc(e,t){var r=Ua(e,t,"get");return Uc(e,r)}function Gc(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Yc(e,t,r){Gc(e,t),t.set(e,r)}function Xc(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}function Vn(e,t,r){var o=Ua(e,t,"set");return Xc(e,o,r),r}function qc(e){let t=c.useContext(fr);if(t){let{register:r,...o}=t;e=xe(o,e),r()}return Lo(t,e.ref),e}var er=new WeakMap;class tr{continuePropagation(){Vn(this,er,!1)}get shouldStopPropagation(){return Wc(this,er)}constructor(t,r,o){Yc(this,er,{writable:!0,value:void 0}),Vn(this,er,!0),this.type=t,this.pointerType=r,this.target=o.currentTarget,this.shiftKey=o.shiftKey,this.metaKey=o.metaKey,this.ctrlKey=o.ctrlKey,this.altKey=o.altKey}}const Hn=Symbol("linkClicked");function Wa(e){let{onPress:t,onPressChange:r,onPressStart:o,onPressEnd:n,onPressUp:a,isDisabled:s,isPressed:i,preventFocusOnPress:d,shouldCancelOnPointerExit:p,allowTextSelectionOnPress:f,ref:$,...w}=qc(e),[v,x]=c.useState(!1),C=c.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:T,removeAllGlobalListeners:R}=Dc(),O=Ue((b,L)=>{let _=C.current;if(s||_.didFirePressStart)return!1;let k=!0;if(_.isTriggeringEvent=!0,o){let M=new tr("pressstart",L,b);o(M),k=M.shouldStopPropagation}return r&&r(!0),_.isTriggeringEvent=!1,_.didFirePressStart=!0,x(!0),k}),A=Ue((b,L,_=!0)=>{let k=C.current;if(!k.didFirePressStart)return!1;k.ignoreClickAfterPress=!0,k.didFirePressStart=!1,k.isTriggeringEvent=!0;let M=!0;if(n){let h=new tr("pressend",L,b);n(h),M=h.shouldStopPropagation}if(r&&r(!1),x(!1),t&&_&&!s){let h=new tr("press",L,b);t(h),M&&(M=h.shouldStopPropagation)}return k.isTriggeringEvent=!1,M}),z=Ue((b,L)=>{let _=C.current;if(s)return!1;if(a){_.isTriggeringEvent=!0;let k=new tr("pressup",L,b);return a(k),_.isTriggeringEvent=!1,k.shouldStopPropagation}return!0}),K=Ue(b=>{let L=C.current;L.isPressed&&L.target&&(L.isOverTarget&&L.pointerType!=null&&A(ze(L.target,b),L.pointerType,!1),L.isPressed=!1,L.isOverTarget=!1,L.activePointerId=null,L.pointerType=null,R(),f||Qt(L.target))}),D=Ue(b=>{p&&K(b)}),U=c.useMemo(()=>{let b=C.current,L={onKeyDown(k){if(zr(k.nativeEvent,k.currentTarget)&&k.currentTarget.contains(k.target)){var M;Wn(k.target,k.key)&&k.preventDefault();let h=!0;if(!b.isPressed&&!k.repeat){b.target=k.currentTarget,b.isPressed=!0,h=O(k,"keyboard");let E=k.currentTarget,N=B=>{zr(B,E)&&!B.repeat&&E.contains(B.target)&&b.target&&z(ze(b.target,B),"keyboard")};T(Pe(k.currentTarget),"keyup",Oo(N,_),!0)}h&&k.stopPropagation(),k.metaKey&&ot()&&((M=b.metaKeyEvents)===null||M===void 0||M.set(k.key,k.nativeEvent))}else k.key==="Meta"&&(b.metaKeyEvents=new Map)},onClick(k){if(!(k&&!k.currentTarget.contains(k.target))&&k&&k.button===0&&!b.isTriggeringEvent&&!$t.isOpening){let M=!0;if(s&&k.preventDefault(),!b.ignoreClickAfterPress&&!b.ignoreEmulatedMouseEvents&&!b.isPressed&&(b.pointerType==="virtual"||oo(k.nativeEvent))){!s&&!d&&We(k.currentTarget);let h=O(k,"virtual"),E=z(k,"virtual"),N=A(k,"virtual");M=h&&E&&N}b.ignoreEmulatedMouseEvents=!1,b.ignoreClickAfterPress=!1,M&&k.stopPropagation()}}},_=k=>{var M;if(b.isPressed&&b.target&&zr(k,b.target)){var h;Wn(k.target,k.key)&&k.preventDefault();let N=k.target;A(ze(b.target,k),"keyboard",b.target.contains(N)),R(),k.key!=="Enter"&&_o(b.target)&&b.target.contains(N)&&!k[Hn]&&(k[Hn]=!0,$t(b.target,k,!1)),b.isPressed=!1,(h=b.metaKeyEvents)===null||h===void 0||h.delete(k.key)}else if(k.key==="Meta"&&(!((M=b.metaKeyEvents)===null||M===void 0)&&M.size)){var E;let N=b.metaKeyEvents;b.metaKeyEvents=void 0;for(let B of N.values())(E=b.target)===null||E===void 0||E.dispatchEvent(new KeyboardEvent("keyup",B))}};if(typeof PointerEvent<"u"){L.onPointerDown=E=>{if(E.button!==0||!E.currentTarget.contains(E.target))return;if(Hc(E.nativeEvent)){b.pointerType="virtual";return}Br(E.currentTarget)&&E.preventDefault(),b.pointerType=E.pointerType;let N=!0;b.isPressed||(b.isPressed=!0,b.isOverTarget=!0,b.activePointerId=E.pointerId,b.target=E.currentTarget,!s&&!d&&We(E.currentTarget),f||Bn(b.target),N=O(E,b.pointerType),T(Pe(E.currentTarget),"pointermove",k,!1),T(Pe(E.currentTarget),"pointerup",M,!1),T(Pe(E.currentTarget),"pointercancel",h,!1)),N&&E.stopPropagation()},L.onMouseDown=E=>{E.currentTarget.contains(E.target)&&E.button===0&&(Br(E.currentTarget)&&E.preventDefault(),E.stopPropagation())},L.onPointerUp=E=>{!E.currentTarget.contains(E.target)||b.pointerType==="virtual"||E.button===0&&ft(E,E.currentTarget)&&z(E,b.pointerType||E.pointerType)};let k=E=>{E.pointerId===b.activePointerId&&(b.target&&ft(E,b.target)?!b.isOverTarget&&b.pointerType!=null&&(b.isOverTarget=!0,O(ze(b.target,E),b.pointerType)):b.target&&b.isOverTarget&&b.pointerType!=null&&(b.isOverTarget=!1,A(ze(b.target,E),b.pointerType,!1),D(E)))},M=E=>{E.pointerId===b.activePointerId&&b.isPressed&&E.button===0&&b.target&&(ft(E,b.target)&&b.pointerType!=null?A(ze(b.target,E),b.pointerType):b.isOverTarget&&b.pointerType!=null&&A(ze(b.target,E),b.pointerType,!1),b.isPressed=!1,b.isOverTarget=!1,b.activePointerId=null,b.pointerType=null,R(),f||Qt(b.target))},h=E=>{K(E)};L.onDragStart=E=>{E.currentTarget.contains(E.target)&&K(E)}}else{L.onMouseDown=h=>{if(h.button!==0||!h.currentTarget.contains(h.target))return;if(Br(h.currentTarget)&&h.preventDefault(),b.ignoreEmulatedMouseEvents){h.stopPropagation();return}b.isPressed=!0,b.isOverTarget=!0,b.target=h.currentTarget,b.pointerType=oo(h.nativeEvent)?"virtual":"mouse",!s&&!d&&We(h.currentTarget),O(h,b.pointerType)&&h.stopPropagation(),T(Pe(h.currentTarget),"mouseup",k,!1)},L.onMouseEnter=h=>{if(!h.currentTarget.contains(h.target))return;let E=!0;b.isPressed&&!b.ignoreEmulatedMouseEvents&&b.pointerType!=null&&(b.isOverTarget=!0,E=O(h,b.pointerType)),E&&h.stopPropagation()},L.onMouseLeave=h=>{if(!h.currentTarget.contains(h.target))return;let E=!0;b.isPressed&&!b.ignoreEmulatedMouseEvents&&b.pointerType!=null&&(b.isOverTarget=!1,E=A(h,b.pointerType,!1),D(h)),E&&h.stopPropagation()},L.onMouseUp=h=>{h.currentTarget.contains(h.target)&&!b.ignoreEmulatedMouseEvents&&h.button===0&&z(h,b.pointerType||"mouse")};let k=h=>{if(h.button===0){if(b.isPressed=!1,R(),b.ignoreEmulatedMouseEvents){b.ignoreEmulatedMouseEvents=!1;return}b.target&&ft(h,b.target)&&b.pointerType!=null?A(ze(b.target,h),b.pointerType):b.target&&b.isOverTarget&&b.pointerType!=null&&A(ze(b.target,h),b.pointerType,!1),b.isOverTarget=!1}};L.onTouchStart=h=>{if(!h.currentTarget.contains(h.target))return;let E=Zc(h.nativeEvent);if(!E)return;b.activePointerId=E.identifier,b.ignoreEmulatedMouseEvents=!0,b.isOverTarget=!0,b.isPressed=!0,b.target=h.currentTarget,b.pointerType="touch",!s&&!d&&We(h.currentTarget),f||Bn(b.target),O(h,b.pointerType)&&h.stopPropagation(),T(_e(h.currentTarget),"scroll",M,!0)},L.onTouchMove=h=>{if(!h.currentTarget.contains(h.target))return;if(!b.isPressed){h.stopPropagation();return}let E=Un(h.nativeEvent,b.activePointerId),N=!0;E&&ft(E,h.currentTarget)?!b.isOverTarget&&b.pointerType!=null&&(b.isOverTarget=!0,N=O(h,b.pointerType)):b.isOverTarget&&b.pointerType!=null&&(b.isOverTarget=!1,N=A(h,b.pointerType,!1),D(h)),N&&h.stopPropagation()},L.onTouchEnd=h=>{if(!h.currentTarget.contains(h.target))return;if(!b.isPressed){h.stopPropagation();return}let E=Un(h.nativeEvent,b.activePointerId),N=!0;E&&ft(E,h.currentTarget)&&b.pointerType!=null?(z(h,b.pointerType),N=A(h,b.pointerType)):b.isOverTarget&&b.pointerType!=null&&(N=A(h,b.pointerType,!1)),N&&h.stopPropagation(),b.isPressed=!1,b.activePointerId=null,b.isOverTarget=!1,b.ignoreEmulatedMouseEvents=!0,b.target&&!f&&Qt(b.target),R()},L.onTouchCancel=h=>{h.currentTarget.contains(h.target)&&(h.stopPropagation(),b.isPressed&&K(h))};let M=h=>{b.isPressed&&h.target.contains(b.target)&&K({currentTarget:b.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};L.onDragStart=h=>{h.currentTarget.contains(h.target)&&K(h)}}return L},[T,s,d,R,f,K,D,A,O,z]);return c.useEffect(()=>()=>{var b;f||Qt((b=C.current.target)!==null&&b!==void 0?b:void 0)},[f]),{isPressed:i||v,pressProps:xe(w,U)}}function _o(e){return e.tagName==="A"&&e.hasAttribute("href")}function zr(e,t){const{key:r,code:o}=e,n=t,a=n.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||o==="Space")&&!(n instanceof _e(n).HTMLInputElement&&!Ga(n,r)||n instanceof _e(n).HTMLTextAreaElement||n.isContentEditable)&&!((a==="link"||!a&&_o(n))&&r!=="Enter")}function Zc(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function Un(e,t){const r=e.changedTouches;for(let o=0;o<r.length;o++){const n=r[o];if(n.identifier===t)return n}return null}function ze(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function Jc(e){let t=0,r=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?r=e.height/2:e.radiusY!==void 0&&(r=e.radiusY),{top:e.clientY-r,right:e.clientX+t,bottom:e.clientY+r,left:e.clientX-t}}function Qc(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function ft(e,t){let r=t.getBoundingClientRect(),o=Jc(e);return Qc(r,o)}function Br(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function Wn(e,t){return e instanceof HTMLInputElement?!Ga(e,t):e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!_o(e)}const ed=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Ga(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":ed.has(e.type)}const td=c.forwardRef(({children:e,...t},r)=>{let o=c.useRef(!1),n=c.useContext(fr);r=Nc(r||(n==null?void 0:n.ref));let a=xe(n||{},{...t,ref:r,register(){o.current=!0,n&&n.register()}});return Lo(n,r),c.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)},[]),c.createElement(fr.Provider,{value:a},e)});class rd{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,r){this.nativeEvent=r,this.target=r.target,this.currentTarget=r.currentTarget,this.relatedTarget=r.relatedTarget,this.bubbles=r.bubbles,this.cancelable=r.cancelable,this.defaultPrevented=r.defaultPrevented,this.eventPhase=r.eventPhase,this.isTrusted=r.isTrusted,this.timeStamp=r.timeStamp,this.type=t}}function Ya(e){let t=c.useRef({isFocused:!1,observer:null});rt(()=>{const o=t.current;return()=>{o.observer&&(o.observer.disconnect(),o.observer=null)}},[]);let r=Ue(o=>{e==null||e(o)});return c.useCallback(o=>{if(o.target instanceof HTMLButtonElement||o.target instanceof HTMLInputElement||o.target instanceof HTMLTextAreaElement||o.target instanceof HTMLSelectElement){t.current.isFocused=!0;let n=o.target,a=s=>{t.current.isFocused=!1,n.disabled&&r(new rd("blur",s)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};n.addEventListener("focusout",a,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&n.disabled){var s;(s=t.current.observer)===null||s===void 0||s.disconnect();let i=n===document.activeElement?null:document.activeElement;n.dispatchEvent(new FocusEvent("blur",{relatedTarget:i})),n.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:i}))}}),t.current.observer.observe(n,{attributes:!0,attributeFilter:["disabled"]})}},[r])}function Xa(e){let{isDisabled:t,onFocus:r,onBlur:o,onFocusChange:n}=e;const a=c.useCallback(d=>{if(d.target===d.currentTarget)return o&&o(d),n&&n(!1),!0},[o,n]),s=Ya(a),i=c.useCallback(d=>{const p=Pe(d.target);d.target===d.currentTarget&&p.activeElement===d.target&&(r&&r(d),n&&n(!0),s(d))},[n,r,s]);return{focusProps:{onFocus:!t&&(r||n||o)?i:void 0,onBlur:!t&&(o||n)?a:void 0}}}let mt=null,so=new Set,Rt=new Map,nt=!1,io=!1;const od={Tab:!0,Escape:!0};function Ko(e,t){for(let r of so)r(e,t)}function nd(e){return!(e.metaKey||!ot()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function pr(e){nt=!0,nd(e)&&(mt="keyboard",Ko("keyboard",e))}function Re(e){mt="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(nt=!0,Ko("pointer",e))}function qa(e){oo(e)&&(nt=!0,mt="virtual")}function Za(e){e.target===window||e.target===document||(!nt&&!io&&(mt="virtual",Ko("virtual",e)),nt=!1,io=!1)}function Ja(){nt=!1,io=!0}function lo(e){if(typeof window>"u"||Rt.get(_e(e)))return;const t=_e(e),r=Pe(e);let o=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){nt=!0,o.apply(this,arguments)},r.addEventListener("keydown",pr,!0),r.addEventListener("keyup",pr,!0),r.addEventListener("click",qa,!0),t.addEventListener("focus",Za,!0),t.addEventListener("blur",Ja,!1),typeof PointerEvent<"u"?(r.addEventListener("pointerdown",Re,!0),r.addEventListener("pointermove",Re,!0),r.addEventListener("pointerup",Re,!0)):(r.addEventListener("mousedown",Re,!0),r.addEventListener("mousemove",Re,!0),r.addEventListener("mouseup",Re,!0)),t.addEventListener("beforeunload",()=>{Qa(e)},{once:!0}),Rt.set(t,{focus:o})}const Qa=(e,t)=>{const r=_e(e),o=Pe(e);t&&o.removeEventListener("DOMContentLoaded",t),Rt.has(r)&&(r.HTMLElement.prototype.focus=Rt.get(r).focus,o.removeEventListener("keydown",pr,!0),o.removeEventListener("keyup",pr,!0),o.removeEventListener("click",qa,!0),r.removeEventListener("focus",Za,!0),r.removeEventListener("blur",Ja,!1),typeof PointerEvent<"u"?(o.removeEventListener("pointerdown",Re,!0),o.removeEventListener("pointermove",Re,!0),o.removeEventListener("pointerup",Re,!0)):(o.removeEventListener("mousedown",Re,!0),o.removeEventListener("mousemove",Re,!0),o.removeEventListener("mouseup",Re,!0)),Rt.delete(r))};function ad(e){const t=Pe(e);let r;return t.readyState!=="loading"?lo(e):(r=()=>{lo(e)},t.addEventListener("DOMContentLoaded",r)),()=>Qa(e,r)}typeof document<"u"&&ad();function Do(){return mt!=="pointer"}function gr(){return mt}const sd=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function id(e,t,r){var o;const n=typeof window<"u"?_e(r==null?void 0:r.target).HTMLInputElement:HTMLInputElement,a=typeof window<"u"?_e(r==null?void 0:r.target).HTMLTextAreaElement:HTMLTextAreaElement,s=typeof window<"u"?_e(r==null?void 0:r.target).HTMLElement:HTMLElement,i=typeof window<"u"?_e(r==null?void 0:r.target).KeyboardEvent:KeyboardEvent;return e=e||(r==null?void 0:r.target)instanceof n&&!sd.has(r==null||(o=r.target)===null||o===void 0?void 0:o.type)||(r==null?void 0:r.target)instanceof a||(r==null?void 0:r.target)instanceof s&&(r==null?void 0:r.target.isContentEditable),!(e&&t==="keyboard"&&r instanceof i&&!od[r.key])}function ld(e,t,r){lo(),c.useEffect(()=>{let o=(n,a)=>{id(!!(r!=null&&r.isTextInput),n,a)&&e(Do())};return so.add(o),()=>{so.delete(o)}},t)}function es(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:o,onFocusWithinChange:n}=e,a=c.useRef({isFocusWithin:!1}),s=c.useCallback(p=>{a.current.isFocusWithin&&!p.currentTarget.contains(p.relatedTarget)&&(a.current.isFocusWithin=!1,r&&r(p),n&&n(!1))},[r,n,a]),i=Ya(s),d=c.useCallback(p=>{!a.current.isFocusWithin&&document.activeElement===p.target&&(o&&o(p),n&&n(!0),a.current.isFocusWithin=!0,i(p))},[o,n,i]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:d,onBlur:s}}}let br=!1,Vr=0;function co(){br=!0,setTimeout(()=>{br=!1},50)}function Gn(e){e.pointerType==="touch"&&co()}function cd(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",Gn):document.addEventListener("touchend",co),Vr++,()=>{Vr--,!(Vr>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Gn):document.removeEventListener("touchend",co))}}function wr(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:o,isDisabled:n}=e,[a,s]=c.useState(!1),i=c.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;c.useEffect(cd,[]);let{hoverProps:d,triggerHoverEnd:p}=c.useMemo(()=>{let f=(v,x)=>{if(i.pointerType=x,n||x==="touch"||i.isHovered||!v.currentTarget.contains(v.target))return;i.isHovered=!0;let C=v.currentTarget;i.target=C,t&&t({type:"hoverstart",target:C,pointerType:x}),r&&r(!0),s(!0)},$=(v,x)=>{if(i.pointerType="",i.target=null,x==="touch"||!i.isHovered)return;i.isHovered=!1;let C=v.currentTarget;o&&o({type:"hoverend",target:C,pointerType:x}),r&&r(!1),s(!1)},w={};return typeof PointerEvent<"u"?(w.onPointerEnter=v=>{br&&v.pointerType==="mouse"||f(v,v.pointerType)},w.onPointerLeave=v=>{!n&&v.currentTarget.contains(v.target)&&$(v,v.pointerType)}):(w.onTouchStart=()=>{i.ignoreEmulatedMouseEvents=!0},w.onMouseEnter=v=>{!i.ignoreEmulatedMouseEvents&&!br&&f(v,"mouse"),i.ignoreEmulatedMouseEvents=!1},w.onMouseLeave=v=>{!n&&v.currentTarget.contains(v.target)&&$(v,"mouse")}),{hoverProps:w,triggerHoverEnd:$}},[t,r,o,n,i]);return c.useEffect(()=>{n&&p({currentTarget:i.target},i.pointerType)},[n]),{hoverProps:d,isHovered:a}}function dd(e){let{ref:t,onInteractOutside:r,isDisabled:o,onInteractOutsideStart:n}=e,a=c.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),s=Ue(d=>{r&&rr(d,t)&&(n&&n(d),a.current.isPointerDown=!0)}),i=Ue(d=>{r&&r(d)});c.useEffect(()=>{let d=a.current;if(o)return;const p=t.current,f=Pe(p);if(typeof PointerEvent<"u"){let $=w=>{d.isPointerDown&&rr(w,t)&&i(w),d.isPointerDown=!1};return f.addEventListener("pointerdown",s,!0),f.addEventListener("pointerup",$,!0),()=>{f.removeEventListener("pointerdown",s,!0),f.removeEventListener("pointerup",$,!0)}}else{let $=v=>{d.ignoreEmulatedMouseEvents?d.ignoreEmulatedMouseEvents=!1:d.isPointerDown&&rr(v,t)&&i(v),d.isPointerDown=!1},w=v=>{d.ignoreEmulatedMouseEvents=!0,d.isPointerDown&&rr(v,t)&&i(v),d.isPointerDown=!1};return f.addEventListener("mousedown",s,!0),f.addEventListener("mouseup",$,!0),f.addEventListener("touchstart",s,!0),f.addEventListener("touchend",w,!0),()=>{f.removeEventListener("mousedown",s,!0),f.removeEventListener("mouseup",$,!0),f.removeEventListener("touchstart",s,!0),f.removeEventListener("touchend",w,!0)}}},[t,o,s,i])}function rr(e,t){if(e.button>0)return!1;if(e.target){const r=e.target.ownerDocument;if(!r||!r.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current&&!t.current.contains(e.target)}function Yn(e){if(!e)return;let t=!0;return r=>{let o={...r,preventDefault(){r.preventDefault()},isDefaultPrevented(){return r.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(o),t&&r.stopPropagation()}}function ud(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Yn(e.onKeyDown),onKeyUp:Yn(e.onKeyUp)}}}function vr(e){const t=Pe(e);if(gr()==="virtual"){let r=t.activeElement;Va(()=>{t.activeElement===r&&e.isConnected&&We(e)})}else We(e)}function fd(e){const t=_e(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:r,visibility:o}=e.style,n=r!=="none"&&o!=="hidden"&&o!=="collapse";if(n){const{getComputedStyle:a}=e.ownerDocument.defaultView;let{display:s,visibility:i}=a(e);n=s!=="none"&&i!=="hidden"&&i!=="collapse"}return n}function pd(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function ts(e,t){return e.nodeName!=="#comment"&&fd(e)&&pd(e,t)&&(!e.parentElement||ts(e.parentElement,e))}let gd=null;const No=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],bd=No.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";No.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const vd=No.join(':not([hidden]):not([tabindex="-1"]),');function Fo(e,t){return!e||!t?!1:t.some(r=>r.contains(e))}function yd(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of qn.traverse(qn.getTreeNode(t)))if(r&&Fo(e,r.current))return!0;return!1}function $d(e){return yd(e,gd)}function xd(e,t,r){let o=t!=null&&t.tabbable?vd:bd,n=Pe(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(a){var s;return!(t==null||(s=t.from)===null||s===void 0)&&s.contains(a)?NodeFilter.FILTER_REJECT:a.matches(o)&&ts(a)&&(!r||Fo(a,r))&&(!(t!=null&&t.accept)||t.accept(a))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(n.currentNode=t.from),n}class zo{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,r,o){let n=this.fastMap.get(r??null);if(!n)return;let a=new Xn({scopeRef:t});n.addChild(a),a.parent=n,this.fastMap.set(t,a),o&&(a.nodeToRestore=o)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let r=this.fastMap.get(t);if(!r)return;let o=r.parent;for(let a of this.traverse())a!==r&&r.nodeToRestore&&a.nodeToRestore&&r.scopeRef&&r.scopeRef.current&&Fo(a.nodeToRestore,r.scopeRef.current)&&(a.nodeToRestore=r.nodeToRestore);let n=r.children;o&&(o.removeChild(r),n.size>0&&n.forEach(a=>o&&o.addChild(a))),this.fastMap.delete(r.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let r of t.children)yield*this.traverse(r)}clone(){var t;let r=new zo;var o;for(let n of this.traverse())r.addTreeNode(n.scopeRef,(o=(t=n.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&o!==void 0?o:null,n.nodeToRestore);return r}constructor(){this.fastMap=new Map,this.root=new Xn({scopeRef:null}),this.fastMap.set(null,this.root)}}class Xn{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let qn=new zo;function rs(e={}){let{autoFocus:t=!1,isTextInput:r,within:o}=e,n=c.useRef({isFocused:!1,isFocusVisible:t||Do()}),[a,s]=c.useState(!1),[i,d]=c.useState(()=>n.current.isFocused&&n.current.isFocusVisible),p=c.useCallback(()=>d(n.current.isFocused&&n.current.isFocusVisible),[]),f=c.useCallback(v=>{n.current.isFocused=v,s(v),p()},[p]);ld(v=>{n.current.isFocusVisible=v,p()},[],{isTextInput:r});let{focusProps:$}=Xa({isDisabled:o,onFocusChange:f}),{focusWithinProps:w}=es({isDisabled:!o,onFocusWithinChange:f});return{isFocused:a,isFocusVisible:i,focusProps:o?w:$}}let md=c.createContext(null);function hd(e){let t=c.useContext(md)||{};Lo(t,e);let{ref:r,...o}=t;return o}function os(e,t){let{focusProps:r}=Xa(e),{keyboardProps:o}=ud(e),n=xe(r,o),a=hd(t),s=e.isDisabled?{}:a,i=c.useRef(e.autoFocus);return c.useEffect(()=>{i.current&&t.current&&vr(t.current),i.current=!1},[t]),{focusableProps:xe({...n,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},s)}}var ns=globalThis!=null&&globalThis.document?c.useLayoutEffect:c.useEffect;function wd(e={}){const{loading:t,src:r,srcSet:o,onLoad:n,onError:a,crossOrigin:s,sizes:i,ignoreFallback:d}=e,[p,f]=c.useState("pending");c.useEffect(()=>{f(r?"loading":"pending")},[r]);const $=c.useRef(),w=c.useCallback(()=>{if(!r)return;v();const x=new Image;x.src=r,s&&(x.crossOrigin=s),o&&(x.srcset=o),i&&(x.sizes=i),t&&(x.loading=t),x.onload=C=>{v(),f("loaded"),n==null||n(C)},x.onerror=C=>{v(),f("failed"),a==null||a(C)},$.current=x},[r,s,o,i,n,a,t]),v=()=>{$.current&&($.current.onload=null,$.current.onerror=null,$.current=null)};return ns(()=>{if(!d)return p==="loading"&&w(),()=>{v()}},[p,w,d]),d?"loaded":p}function Cd(e={}){var t,r,o,n,a;const s=Sa(),i=!!s,{as:d,ref:p,src:f,name:$,icon:w,classNames:v,fallback:x,alt:C=$||"avatar",imgRef:T,color:R=(t=s==null?void 0:s.color)!=null?t:"default",radius:O=(r=s==null?void 0:s.radius)!=null?r:"full",size:A=(o=s==null?void 0:s.size)!=null?o:"md",isBordered:z=(n=s==null?void 0:s.isBordered)!=null?n:!1,isDisabled:K=(a=s==null?void 0:s.isDisabled)!=null?a:!1,isFocusable:D=!1,getInitials:U=Qi,ignoreFallback:b=!1,showFallback:L=!1,ImgComponent:_="img",imgProps:k,className:M,onError:h,...E}=e,N=d||"span",B=Ot(p),F=Ot(T),{isFocusVisible:X,isFocused:q,focusProps:V}=rs(),{isHovered:m,hoverProps:j}=wr({isDisabled:K}),Z=wd({src:f,onError:h,ignoreFallback:b})==="loaded",Q=(!f||!Z)&&L,ne=c.useMemo(()=>{var ke;return lc({color:R,radius:O,size:A,isBordered:z,isDisabled:K,isInGroup:i,isInGridGroup:(ke=s==null?void 0:s.isGrid)!=null?ke:!1})},[R,O,A,z,K,i,s==null?void 0:s.isGrid]),oe=tt(v==null?void 0:v.base,M),re=c.useMemo(()=>D||d==="button",[D,d]),ie=c.useCallback((ke={})=>({ref:B,tabIndex:re?0:-1,"data-hover":ce(m),"data-focus":ce(q),"data-focus-visible":ce(X),className:ne.base({class:tt(oe,ke==null?void 0:ke.className)}),...xe(E,j,re?V:{})}),[re,ne,oe,V,E]),be=c.useCallback((ke={})=>({ref:F,src:f,"data-loaded":ce(Z),className:ne.img({class:v==null?void 0:v.img}),...xe(k,ke)}),[ne,Z,k,f,F]);return{Component:N,ImgComponent:_,src:f,alt:C,icon:w,name:$,imgRef:F,slots:ne,classNames:v,fallback:x,isImgLoaded:Z,showFallback:Q,ignoreFallback:b,getInitials:U,getAvatarProps:ie,getImageProps:be}}const Ed=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Sd=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Pd(e){if(Intl.Locale){let r=new Intl.Locale(e).maximize(),o=typeof r.getTextInfo=="function"?r.getTextInfo():r.textInfo;if(o)return o.direction==="rtl";if(r.script)return Ed.has(r.script)}let t=e.split("-")[0];return Sd.has(t)}const Td=Symbol.for("react-aria.i18n.locale");function as(){let e=typeof window<"u"&&window[Td]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:Pd(e)?"rtl":"ltr"}}let uo=as(),It=new Set;function Zn(){uo=as();for(let e of It)e(uo)}function kd(){let e=Ro(),[t,r]=c.useState(uo);return c.useEffect(()=>(It.size===0&&window.addEventListener("languagechange",Zn),It.add(r),()=>{It.delete(r),It.size===0&&window.removeEventListener("languagechange",Zn)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const Md=c.createContext(null);function Bo(){let e=kd();return c.useContext(Md)||e}let Hr=new Map;function Id(e){let{locale:t}=Bo(),r=t+(e?Object.entries(e).sort((n,a)=>n[0]<a[0]?-1:1).join():"");if(Hr.has(r))return Hr.get(r);let o=new Intl.Collator(t,e);return Hr.set(r,o),o}const vt={top:"top",bottom:"top",left:"left",right:"left"},yr={top:"bottom",bottom:"top",left:"right",right:"left"},Rd={top:"left",left:"top"},fo={top:"height",left:"width"},ss={width:"totalWidth",height:"totalHeight"},or={};let Te=typeof document<"u"&&window.visualViewport;function Jn(e){let t=0,r=0,o=0,n=0,a=0,s=0,i={},d=(Te==null?void 0:Te.scale)>1;if(e.tagName==="BODY"){let $=document.documentElement;o=$.clientWidth,n=$.clientHeight;var p;t=(p=Te==null?void 0:Te.width)!==null&&p!==void 0?p:o;var f;r=(f=Te==null?void 0:Te.height)!==null&&f!==void 0?f:n,i.top=$.scrollTop||e.scrollTop,i.left=$.scrollLeft||e.scrollLeft,Te&&(a=Te.offsetTop,s=Te.offsetLeft)}else({width:t,height:r,top:a,left:s}=yt(e)),i.top=e.scrollTop,i.left=e.scrollLeft,o=t,n=r;return za()&&(e.tagName==="BODY"||e.tagName==="HTML")&&d&&(i.top=0,i.left=0,a=Te.pageTop,s=Te.pageLeft),{width:t,height:r,totalWidth:o,totalHeight:n,scroll:i,top:a,left:s}}function Od(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function Qn(e,t,r,o,n,a,s){let i=n.scroll[e],d=o[fo[e]],p=o.scroll[vt[e]]+a,f=d+o.scroll[vt[e]]-a,$=t-i+s[e]-o[vt[e]],w=t-i+r+s[e]-o[vt[e]];return $<p?p-$:w>f?Math.max(f-w,p-$):0}function Ad(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function ea(e){if(or[e])return or[e];let[t,r]=e.split(" "),o=vt[t]||"right",n=Rd[o];vt[r]||(r="center");let a=fo[o],s=fo[n];return or[e]={placement:t,crossPlacement:r,axis:o,crossAxis:n,size:a,crossSize:s},or[e]}function Ur(e,t,r,o,n,a,s,i,d,p){let{placement:f,crossPlacement:$,axis:w,crossAxis:v,size:x,crossSize:C}=o,T={};T[v]=e[v],$==="center"?T[v]+=(e[C]-r[C])/2:$!==v&&(T[v]+=e[C]-r[C]),T[v]+=a;const R=e[v]-r[C]+d+p,O=e[v]+e[C]-d-p;if(T[v]=no(T[v],R,O),f===w){const A=i?s[x]:t[ss[x]];T[yr[w]]=Math.floor(A-e[w]+n)}else T[w]=Math.floor(e[w]+e[x]+n);return T}function jd(e,t,r,o,n,a,s,i){const d=o?r.height:t[ss.height];let p=e.top!=null?r.top+e.top:r.top+(d-e.bottom-s),f=i!=="top"?Math.max(0,t.height+t.top+t.scroll.top-p-(n.top+n.bottom+a)):Math.max(0,p+s-(t.top+t.scroll.top)-(n.top+n.bottom+a));return Math.min(t.height-a*2,f)}function ta(e,t,r,o,n,a){let{placement:s,axis:i,size:d}=a;return s===i?Math.max(0,r[i]-e[i]-e.scroll[i]+t[i]-o[i]-o[yr[i]]-n):Math.max(0,e[d]+e[i]+e.scroll[i]-t[i]-r[i]-r[d]-o[i]-o[yr[i]]-n)}function Ld(e,t,r,o,n,a,s,i,d,p,f,$,w,v,x,C){let T=ea(e),{size:R,crossAxis:O,crossSize:A,placement:z,crossPlacement:K}=T,D=Ur(t,i,r,T,f,$,p,w,x,C),U=f,b=ta(i,p,t,n,a+f,T);if(s&&o[R]>b){let q=ea(`${yr[z]} ${K}`),V=Ur(t,i,r,q,f,$,p,w,x,C);ta(i,p,t,n,a+f,q)>b&&(T=q,D=V,U=f)}let L="bottom";T.axis==="top"?T.placement==="top"?L="top":T.placement==="bottom"&&(L="bottom"):T.crossAxis==="top"&&(T.crossPlacement==="top"?L="bottom":T.crossPlacement==="bottom"&&(L="top"));let _=Qn(O,D[O],r[A],i,d,a,p);D[O]+=_;let k=jd(D,i,p,w,n,a,r.height,L);v&&v<k&&(k=v),r.height=Math.min(r.height,k),D=Ur(t,i,r,T,U,$,p,w,x,C),_=Qn(O,D[O],r[A],i,d,a,p),D[O]+=_;let M={},h=t[O]+.5*t[A]-D[O];const E=x/2+C,N=r[A]-x/2-C,B=t[O]-D[O]+x/2,F=t[O]+t[A]-D[O]-x/2,X=no(h,B,F);return M[O]=no(X,E,N),{position:D,maxHeight:k,arrowOffsetLeft:M.left,arrowOffsetTop:M.top,placement:T.placement}}function _d(e){let{placement:t,targetNode:r,overlayNode:o,scrollNode:n,padding:a,shouldFlip:s,boundaryElement:i,offset:d,crossOffset:p,maxHeight:f,arrowSize:$=0,arrowBoundaryOffset:w=0}=e,v=o instanceof HTMLElement?Kd(o):document.documentElement,x=v===document.documentElement;const C=window.getComputedStyle(v).position;let T=!!C&&C!=="static",R=x?yt(r):ra(r,v);if(!x){let{marginTop:b,marginLeft:L}=window.getComputedStyle(r);R.top+=parseInt(b,10)||0,R.left+=parseInt(L,10)||0}let O=yt(o),A=Ad(o);O.width+=A.left+A.right,O.height+=A.top+A.bottom;let z=Od(n),K=Jn(i),D=Jn(v),U=i.tagName==="BODY"?yt(v):ra(v,i);return v.tagName==="HTML"&&i.tagName==="BODY"&&(D.scroll.top=0,D.scroll.left=0),Ld(t,R,O,z,A,a,s,K,D,U,d,p,T,f,$,w)}function yt(e){let{top:t,left:r,width:o,height:n}=e.getBoundingClientRect(),{scrollTop:a,scrollLeft:s,clientTop:i,clientLeft:d}=document.documentElement;return{top:t+a-i,left:r+s-d,width:o,height:n}}function ra(e,t){let r=window.getComputedStyle(e),o;if(r.position==="fixed"){let{top:n,left:a,width:s,height:i}=e.getBoundingClientRect();o={top:n,left:a,width:s,height:i}}else{o=yt(e);let n=yt(t),a=window.getComputedStyle(t);n.top+=(parseInt(a.borderTopWidth,10)||0)-t.scrollTop,n.left+=(parseInt(a.borderLeftWidth,10)||0)-t.scrollLeft,o.top-=n.top,o.left-=n.left}return o.top-=parseInt(r.marginTop,10)||0,o.left-=parseInt(r.marginLeft,10)||0,o}function Kd(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!oa(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!oa(t);)t=t.parentElement;return t||document.documentElement}function oa(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}const Dd=new WeakMap;function Nd(e){let{triggerRef:t,isOpen:r,onClose:o}=e;c.useEffect(()=>{if(!r||o===null)return;let n=a=>{let s=a.target;if(!t.current||s instanceof Node&&!s.contains(t.current))return;let i=o||Dd.get(t.current);i&&i()};return window.addEventListener("scroll",n,!0),()=>{window.removeEventListener("scroll",n,!0)}},[r,o,t])}let $e=typeof document<"u"&&window.visualViewport;function Fd(e){let{direction:t}=Bo(),{arrowSize:r=0,targetRef:o,overlayRef:n,scrollRef:a=n,placement:s="bottom",containerPadding:i=12,shouldFlip:d=!0,boundaryElement:p=typeof document<"u"?document.body:null,offset:f=0,crossOffset:$=0,shouldUpdatePosition:w=!0,isOpen:v=!0,onClose:x,maxHeight:C,arrowBoundaryOffset:T=0}=e,[R,O]=c.useState({position:{},arrowOffsetLeft:void 0,arrowOffsetTop:void 0,maxHeight:void 0,placement:void 0}),A=[w,s,n.current,o.current,a.current,i,d,p,f,$,v,t,C,T,r],z=c.useRef($e==null?void 0:$e.scale);c.useEffect(()=>{v&&(z.current=$e==null?void 0:$e.scale)},[v]);let K=c.useCallback(()=>{if(w===!1||!v||!n.current||!o.current||!a.current||!p||($e==null?void 0:$e.scale)!==z.current)return;let b=n.current;if(!C&&n.current){var L;b.style.top="0px",b.style.bottom="";var _;b.style.maxHeight=((_=(L=window.visualViewport)===null||L===void 0?void 0:L.height)!==null&&_!==void 0?_:window.innerHeight)+"px"}let k=_d({placement:Bd(s,t),overlayNode:n.current,targetNode:o.current,scrollNode:a.current,padding:i,shouldFlip:d,boundaryElement:p,offset:f,crossOffset:$,maxHeight:C,arrowSize:r,arrowBoundaryOffset:T});b.style.top="",b.style.bottom="",Object.keys(k.position).forEach(M=>b.style[M]=k.position[M]+"px"),b.style.maxHeight=k.maxHeight!=null?k.maxHeight+"px":void 0,O(k)},A);rt(K,A),zd(K),zc({ref:n,onResize:K});let D=c.useRef(!1);rt(()=>{let b,L=()=>{D.current=!0,clearTimeout(b),b=setTimeout(()=>{D.current=!1},500),K()},_=()=>{D.current&&L()};return $e==null||$e.addEventListener("resize",L),$e==null||$e.addEventListener("scroll",_),()=>{$e==null||$e.removeEventListener("resize",L),$e==null||$e.removeEventListener("scroll",_)}},[K]);let U=c.useCallback(()=>{D.current||x()},[x,D]);return Nd({triggerRef:o,isOpen:v,onClose:x&&U}),{overlayProps:{style:{position:"absolute",zIndex:1e5,...R.position,maxHeight:R.maxHeight}},placement:R.placement,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:R.arrowOffsetLeft,top:R.arrowOffsetTop}},updatePosition:K}}function zd(e){rt(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function Bd(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const Be=[];function Vd(e,t){let{onClose:r,shouldCloseOnBlur:o,isOpen:n,isDismissable:a=!1,isKeyboardDismissDisabled:s=!1,shouldCloseOnInteractOutside:i}=e;c.useEffect(()=>(n&&Be.push(t),()=>{let x=Be.indexOf(t);x>=0&&Be.splice(x,1)}),[n,t]);let d=()=>{Be[Be.length-1]===t&&r&&r()},p=x=>{(!i||i(x.target))&&Be[Be.length-1]===t&&(x.stopPropagation(),x.preventDefault())},f=x=>{(!i||i(x.target))&&(Be[Be.length-1]===t&&(x.stopPropagation(),x.preventDefault()),d())},$=x=>{x.key==="Escape"&&!s&&!x.nativeEvent.isComposing&&(x.stopPropagation(),x.preventDefault(),d())};dd({ref:t,onInteractOutside:a&&n?f:null,onInteractOutsideStart:p});let{focusWithinProps:w}=es({isDisabled:!o,onBlurWithin:x=>{!x.relatedTarget||$d(x.relatedTarget)||(!i||i(x.relatedTarget))&&r()}}),v=x=>{x.target===x.currentTarget&&x.preventDefault()};return{overlayProps:{onKeyDown:$,...w},underlayProps:{onPointerDown:v}}}const po=c.createContext(null);function Hd(e){let{children:t}=e,r=c.useContext(po),[o,n]=c.useState(0),a=c.useMemo(()=>({parent:r,modalCount:o,addModal(){n(s=>s+1),r&&r.addModal()},removeModal(){n(s=>s-1),r&&r.removeModal()}}),[r,o]);return c.createElement(po.Provider,{value:a},t)}function Ud(){let e=c.useContext(po);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:null}}}function Wd(e){let{modalProviderProps:t}=Ud();return c.createElement("div",{"data-overlay-container":!0,...e,...t})}function Gd(e){return c.createElement(Hd,null,c.createElement(Wd,e))}function na(e){let t=Ro(),{portalContainer:r=t?null:document.body,...o}=e;if(c.useEffect(()=>{if(r!=null&&r.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[r]),!r)return null;let n=c.createElement(Gd,o);return Lt.createPortal(n,r)}function it(e){return c.forwardRef(e)}var is=(e,t,r=!0)=>{if(!t)return[e,{}];const o=t.reduce((n,a)=>a in e?{...n,[a]:e[a]}:n,{});return r?[Object.keys(e).filter(a=>!t.includes(a)).reduce((a,s)=>({...a,[s]:e[s]}),{}),o]:[e,o]},ls=it((e,t)=>{const{Component:r,ImgComponent:o,src:n,icon:a=g.jsx(qi,{}),alt:s,classNames:i,slots:d,name:p,showFallback:f,fallback:$,getInitials:w,getAvatarProps:v,getImageProps:x}=Cd({...e,ref:t}),C=c.useMemo(()=>!f&&n?null:$?g.jsx("div",{"aria-label":s,className:d.fallback({class:i==null?void 0:i.fallback}),role:"img",children:$}):p?g.jsx("span",{"aria-label":s,className:d.name({class:i==null?void 0:i.name}),role:"img",children:w(p)}):g.jsx("span",{"aria-label":s,className:d.icon({class:i==null?void 0:i.icon}),role:"img",children:a}),[f,n,$,p,i]);return g.jsxs(r,{...v(),children:[n&&g.jsx(o,{...x(),alt:s}),C]})});ls.displayName="NextUI.Avatar";var cs=ls;function Yd(e={}){const{as:t,ref:r,max:o=5,total:n,size:a,color:s,radius:i,children:d,isBordered:p,isDisabled:f,isGrid:$,renderCount:w,className:v,classNames:x,...C}=e,T=Ot(r),R=t||"div",O=c.useMemo(()=>({size:a,color:s,radius:i,isGrid:$,isBordered:p,isDisabled:f}),[a,s,i,$,p,f]),A=c.useMemo(()=>cc({className:v,isGrid:$}),[v,$]),z=gl(d),K=o?z.slice(0,o):z,D=n||(o!=null?z.length-o:-1),U=K.map((_,k)=>{const M=k===0,h=k===K.length-1,E={className:tt(M?"ms-0":$?"":"-ms-2",h&&D<1?"hover:-translate-x-0":"")};return c.cloneElement(_,rl(E))});return{Component:R,context:O,remainingCount:D,clones:U,renderCount:w,getAvatarGroupProps:()=>({ref:T,className:A.base({class:tt(x==null?void 0:x.base,v)}),role:"group",...C}),getAvatarGroupCountProps:()=>({className:A.count({class:x==null?void 0:x.count})})}}var ds=it((e,t)=>{const{Component:r,clones:o,context:n,remainingCount:a,getAvatarGroupCountProps:s,getAvatarGroupProps:i,renderCount:d=p=>g.jsx(cs,{...s(),name:`+${p}`})}=Yd({...e,ref:t});return g.jsx(r,{...i(),children:g.jsxs($l,{value:n,children:[o,a>0&&d(a)]})})});ds.displayName="NextUI.AvatarGroup";var Xd=ds;const u={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 us(e,t){const r={...e};return Object.entries(t).forEach(([o,n])=>{n!==null&&typeof n=="object"&&!Array.isArray(n)?((r[o]===void 0||r[o]===null)&&(r[o]={}),r[o]=us(r[o],n)):r[o]=n}),r}const qd=S.styled.div`
|
|
40
40
|
z-index: 1;
|
|
41
41
|
|
|
42
42
|
&:not(:first-child) {
|
|
@@ -48,7 +48,7 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
48
48
|
transform: ${({isInGroup:e,isGrid:t})=>!t&&e?"translateY(-0.8rem)":"none"};
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
`,
|
|
51
|
+
`,Zd=S.styled(cs)`
|
|
52
52
|
background: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:r[100])??u.colors.slate[100]}};
|
|
53
53
|
display: flex;
|
|
54
54
|
align-items: center;
|
|
@@ -95,87 +95,139 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
95
95
|
overflow: hidden;
|
|
96
96
|
text-align: center;
|
|
97
97
|
}
|
|
98
|
-
`;function
|
|
98
|
+
`;function Jd({icon:e,...t}){const r=Sa();return g.jsx(qd,{isInGroup:!!r,isGrid:!!(r!=null&&r.isGrid),children:g.jsx(Zd,{...t,icon:e||g.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:g.jsx("path",{d:"M20 21C20 19.6044 20 18.9067 19.8278 18.3389C19.44 17.0605 18.4395 16.06 17.1611 15.6722C16.5933 15.5 15.8956 15.5 14.5 15.5H9.5C8.10444 15.5 7.40665 15.5 6.83886 15.6722C5.56045 16.06 4.56004 17.0605 4.17224 18.3389C4 18.9067 4 19.6044 4 21M16.5 7.5C16.5 9.98528 14.4853 12 12 12C9.51472 12 7.5 9.98528 7.5 7.5C7.5 5.01472 9.51472 3 12 3C14.4853 3 16.5 5.01472 16.5 7.5Z",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})})}const Qd=S.styled(Xd)`
|
|
99
99
|
display: ${({isGrid:e})=>e?"inline-grid":"flex"};
|
|
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 Qd({children:e,isGrid:t,renderCount:r}){return g.jsx(Jd,{isGrid:t,max:0,renderCount:r??void 0,children:e})}function eu(e,t){let{elementType:r="button",isDisabled:o,onPress:n,onPressStart:a,onPressEnd:s,onPressUp:l,onPressChange:d,preventFocusOnPress:p,allowFocusWhenDisabled:f,onClick:$,href:w,target:v,rel:m,type:C="button"}=e,T;r==="button"?T={type:C,disabled:o}:T={role:"button",tabIndex:o?void 0:0,href:r==="a"&&o?void 0:w,target:r==="a"?v:void 0,type:r==="input"?C:void 0,disabled:r==="input"?o:void 0,"aria-disabled":!o||r==="input"?void 0:o,rel:r==="a"?m:void 0};let{pressProps:R,isPressed:I}=Wa({onPressStart:a,onPressEnd:s,onPressChange:d,onPress:n,onPressUp:l,isDisabled:o,preventFocusOnPress:p,ref:t}),{focusableProps:A}=os(e,t);f&&(A.tabIndex=o?-1:A.tabIndex);let z=me(A,R,Fa(e,{labelable:!0}));return{isPressed:I,buttonProps:me(T,z,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:K=>{$&&($(K),console.warn("onClick is deprecated, please use onPress"))}})}}function tu(e,t,r){let{item:o,isDisabled:n}=e,a=o.key,s=t.selectionManager,l=c.useId(),d=c.useId(),p=t.disabledKeys.has(o.key)||n;c.useEffect(()=>{a===t.focusedKey&&document.activeElement!==r.current&&r.current&&vr(r.current)},[r,a,t.focusedKey]);let f=c.useCallback(C=>{s.canSelectItem(a)&&(s.select(a,C),t.toggleKey(a))},[a,s]);const $=c.useCallback(C=>{s.selectionBehavior==="replace"&&s.extendSelection(C),s.setFocusedKey(C)},[s]),w=c.useCallback(C=>{const R={ArrowDown:()=>{const I=t.collection.getKeyAfter(a);if(I&&t.disabledKeys.has(I)){const A=t.collection.getKeyAfter(I);A&&$(A)}else I&&$(I)},ArrowUp:()=>{const I=t.collection.getKeyBefore(a);if(I&&t.disabledKeys.has(I)){const A=t.collection.getKeyBefore(I);A&&$(A)}else I&&$(I)},Home:()=>{const I=t.collection.getFirstKey();I&&$(I)},End:()=>{const I=t.collection.getLastKey();I&&$(I)}}[C.key];R&&(C.preventDefault(),s.canSelectItem(a)&&R(C))},[a,s]);let{buttonProps:v}=eu({id:l,elementType:"button",isDisabled:p,onKeyDown:w,onPress:f},r),m=t.selectionManager.isSelected(o.key);return{buttonProps:{...v,"aria-expanded":m,"aria-controls":m?d:void 0},regionProps:{id:d,role:"region","aria-labelledby":l}}}function aa(e){return Rc()?e.altKey:e.ctrlKey}function kt(e){return ot()?e.metaKey:e.ctrlKey}const ru=1e3;function ou(e){let{keyboardDelegate:t,selectionManager:r,onTypeSelect:o}=e,n=c.useRef({search:"",timeout:null}).current,a=s=>{let l=nu(s.key);if(!l||s.ctrlKey||s.metaKey||!s.currentTarget.contains(s.target))return;l===" "&&n.search.trim().length>0&&(s.preventDefault(),"continuePropagation"in s||s.stopPropagation()),n.search+=l;let d=t.getKeyForSearch(n.search,r.focusedKey);d==null&&(d=t.getKeyForSearch(n.search)),d!=null&&(r.setFocusedKey(d),o&&o(d)),clearTimeout(n.timeout),n.timeout=setTimeout(()=>{n.search=""},ru)};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?a:null}}}function nu(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function au(e){let{selectionManager:t,keyboardDelegate:r,ref:o,autoFocus:n=!1,shouldFocusWrap:a=!1,disallowEmptySelection:s=!1,disallowSelectAll:l=!1,selectOnFocus:d=t.selectionBehavior==="replace",disallowTypeAhead:p=!1,shouldUseVirtualFocus:f,allowsTabNavigation:$=!1,isVirtualized:w,scrollRef:v=o,linkBehavior:m="action"}=e,{direction:C}=Bo(),T=jc(),R=_=>{if(_.altKey&&_.key==="Tab"&&_.preventDefault(),!o.current.contains(_.target))return;const O=(V,x)=>{if(V!=null){if(t.isLink(V)&&m==="selection"&&d&&!aa(_)){Lt.flushSync(()=>{t.setFocusedKey(V,x)});let j=v.current.querySelector(`[data-key="${CSS.escape(V.toString())}"]`),G=t.getItemProps(V);T.open(j,_,G.href,G.routerOptions);return}if(t.setFocusedKey(V,x),t.isLink(V)&&m==="override")return;_.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(V):d&&!aa(_)&&t.replaceSelection(V)}};switch(_.key){case"ArrowDown":if(r.getKeyBelow){var k,h;_.preventDefault();let V=t.focusedKey!=null?r.getKeyBelow(t.focusedKey):(k=r.getFirstKey)===null||k===void 0?void 0:k.call(r);V==null&&a&&(V=(h=r.getFirstKey)===null||h===void 0?void 0:h.call(r,t.focusedKey)),O(V)}break;case"ArrowUp":if(r.getKeyAbove){var E,F;_.preventDefault();let V=t.focusedKey!=null?r.getKeyAbove(t.focusedKey):(E=r.getLastKey)===null||E===void 0?void 0:E.call(r);V==null&&a&&(V=(F=r.getLastKey)===null||F===void 0?void 0:F.call(r,t.focusedKey)),O(V)}break;case"ArrowLeft":if(r.getKeyLeftOf){var B,N;_.preventDefault();let V=r.getKeyLeftOf(t.focusedKey);V==null&&a&&(V=C==="rtl"?(B=r.getFirstKey)===null||B===void 0?void 0:B.call(r,t.focusedKey):(N=r.getLastKey)===null||N===void 0?void 0:N.call(r,t.focusedKey)),O(V,C==="rtl"?"first":"last")}break;case"ArrowRight":if(r.getKeyRightOf){var X,q;_.preventDefault();let V=r.getKeyRightOf(t.focusedKey);V==null&&a&&(V=C==="rtl"?(X=r.getLastKey)===null||X===void 0?void 0:X.call(r,t.focusedKey):(q=r.getFirstKey)===null||q===void 0?void 0:q.call(r,t.focusedKey)),O(V,C==="rtl"?"last":"first")}break;case"Home":if(r.getFirstKey){_.preventDefault();let V=r.getFirstKey(t.focusedKey,kt(_));t.setFocusedKey(V),kt(_)&&_.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(V):d&&t.replaceSelection(V)}break;case"End":if(r.getLastKey){_.preventDefault();let V=r.getLastKey(t.focusedKey,kt(_));t.setFocusedKey(V),kt(_)&&_.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(V):d&&t.replaceSelection(V)}break;case"PageDown":if(r.getKeyPageBelow){_.preventDefault();let V=r.getKeyPageBelow(t.focusedKey);O(V)}break;case"PageUp":if(r.getKeyPageAbove){_.preventDefault();let V=r.getKeyPageAbove(t.focusedKey);O(V)}break;case"a":kt(_)&&t.selectionMode==="multiple"&&l!==!0&&(_.preventDefault(),t.selectAll());break;case"Escape":!s&&t.selectedKeys.size!==0&&(_.stopPropagation(),_.preventDefault(),t.clearSelection());break;case"Tab":if(!$){if(_.shiftKey)o.current.focus();else{let V=$d(o.current,{tabbable:!0}),x,j;do j=V.lastChild(),j&&(x=j);while(j);x&&!x.contains(document.activeElement)&&We(x)}break}}},I=c.useRef({top:0,left:0});Bc(v,"scroll",w?null:()=>{I.current={top:v.current.scrollTop,left:v.current.scrollLeft}});let A=_=>{if(t.isFocused){_.currentTarget.contains(_.target)||t.setFocused(!1);return}if(_.currentTarget.contains(_.target)){if(t.setFocused(!0),t.focusedKey==null){let h=F=>{F!=null&&(t.setFocusedKey(F),d&&t.replaceSelection(F))},E=_.relatedTarget;var O,k;E&&_.currentTarget.compareDocumentPosition(E)&Node.DOCUMENT_POSITION_FOLLOWING?h((O=t.lastSelectedKey)!==null&&O!==void 0?O:r.getLastKey()):h((k=t.firstSelectedKey)!==null&&k!==void 0?k:r.getFirstKey())}else w||(v.current.scrollTop=I.current.top,v.current.scrollLeft=I.current.left);if(!w&&t.focusedKey!=null){let h=v.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);h&&(h.contains(document.activeElement)||We(h),gr()==="keyboard"&&zn(h,{containingElement:o.current}))}}},z=_=>{_.currentTarget.contains(_.relatedTarget)||t.setFocused(!1)};const K=c.useRef(n);c.useEffect(()=>{if(K.current){let _=null;n==="first"&&(_=r.getFirstKey()),n==="last"&&(_=r.getLastKey());let O=t.selectedKeys;if(O.size){for(let k of O)if(t.canSelectItem(k)){_=k;break}}t.setFocused(!0),t.setFocusedKey(_),_==null&&!f&&vr(o.current)}},[]);let D=c.useRef(t.focusedKey);c.useEffect(()=>{let _=gr();if(t.isFocused&&t.focusedKey!=null&&(v!=null&&v.current)){let O=v.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);O&&(_==="keyboard"||K.current)&&(w||Ha(v.current,O),_!=="virtual"&&zn(O,{containingElement:o.current}))}t.isFocused&&t.focusedKey==null&&D.current!=null&&vr(o.current),D.current=t.focusedKey,K.current=!1},[w,v,t.focusedKey,t.isFocused,o]);let U={onKeyDown:R,onFocus:A,onBlur:z,onMouseDown(_){v.current===_.target&&_.preventDefault()}},{typeSelectProps:b}=ou({keyboardDelegate:r,selectionManager:t});p||(U=me(b,U));let L;return f||(L=t.focusedKey==null?0:-1),{collectionProps:{...U,tabIndex:L}}}class su{isDisabled(t){var r;return this.disabledBehavior==="all"&&(((r=t.props)===null||r===void 0?void 0:r.isDisabled)||this.disabledKeys.has(t.key))}getNextKey(t){for(t=this.collection.getKeyAfter(t);t!=null;){let r=this.collection.getItem(t);if(r.type==="item"&&!this.isDisabled(r))return t;t=this.collection.getKeyAfter(t)}return null}getPreviousKey(t){for(t=this.collection.getKeyBefore(t);t!=null;){let r=this.collection.getItem(t);if(r.type==="item"&&!this.isDisabled(r))return t;t=this.collection.getKeyBefore(t)}return null}findKey(t,r,o){let n=this.getItem(t);if(!n)return null;let a=n.getBoundingClientRect();do t=r(t),n=this.getItem(t);while(n&&o(a,n.getBoundingClientRect()));return t}isSameRow(t,r){return t.top===r.top||t.left!==r.left}isSameColumn(t,r){return t.left===r.left||t.top!==r.top}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,r=>this.getNextKey(r),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,r=>this.getPreviousKey(r),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,r){return r?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();for(;t!=null;){let r=this.collection.getItem(t);if((r==null?void 0:r.type)==="item"&&!this.isDisabled(r))return t;t=this.collection.getKeyAfter(t)}return null}getLastKey(){let t=this.collection.getLastKey();for(;t!=null;){let r=this.collection.getItem(t);if(r.type==="item"&&!this.isDisabled(r))return t;t=this.collection.getKeyBefore(t)}return null}getItem(t){return t!==null?this.ref.current.querySelector(`[data-key="${CSS.escape(t.toString())}"]`):null}getKeyPageAbove(t){let r=this.ref.current,o=this.getItem(t);if(!o)return null;if(!ro(r))return this.getFirstKey();let n=r.getBoundingClientRect(),a=o.getBoundingClientRect();if(this.orientation==="horizontal"){let s=n.x-r.scrollLeft,l=Math.max(0,a.x-s+a.width-n.width);for(;o&&a.x-s>l;)t=this.getKeyAbove(t),o=t==null?null:this.getItem(t),a=o==null?void 0:o.getBoundingClientRect()}else{let s=n.y-r.scrollTop,l=Math.max(0,a.y-s+a.height-n.height);for(;o&&a.y-s>l;)t=this.getKeyAbove(t),o=t==null?null:this.getItem(t),a=o==null?void 0:o.getBoundingClientRect()}return t??this.getFirstKey()}getKeyPageBelow(t){let r=this.ref.current,o=this.getItem(t);if(!o)return null;if(!ro(r))return this.getLastKey();let n=r.getBoundingClientRect(),a=o.getBoundingClientRect();if(this.orientation==="horizontal"){let s=n.x-r.scrollLeft,l=Math.min(r.scrollWidth,a.x-s-a.width+n.width);for(;o&&a.x-s<l;)t=this.getKeyBelow(t),o=t==null?null:this.getItem(t),a=o==null?void 0:o.getBoundingClientRect()}else{let s=n.y-r.scrollTop,l=Math.min(r.scrollHeight,a.y-s-a.height+n.height);for(;o&&a.y-s<l;)t=this.getKeyBelow(t),o=t==null?null:this.getItem(t),a=o==null?void 0:o.getBoundingClientRect()}return t??this.getLastKey()}getKeyForSearch(t,r){if(!this.collator)return null;let o=this.collection,n=r||this.getFirstKey();for(;n!=null;){let a=o.getItem(n),s=a.textValue.slice(0,t.length);if(a.textValue&&this.collator.compare(s,t)===0)return n;n=this.getKeyBelow(n)}return null}constructor(...t){if(t.length===1){let r=t[0];this.collection=r.collection,this.ref=r.ref,this.collator=r.collator,this.disabledKeys=r.disabledKeys||new Set,this.disabledBehavior=r.disabledBehavior||"all",this.orientation=r.orientation,this.direction=r.direction,this.layout=r.layout||"stack"}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all";this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function iu(e){let{selectionManager:t,collection:r,disabledKeys:o,ref:n,keyboardDelegate:a}=e,s=Md({usage:"search",sensitivity:"base"}),l=t.disabledBehavior,d=c.useMemo(()=>a||new su({collection:r,disabledKeys:o,disabledBehavior:l,ref:n,collator:s}),[a,r,o,n,s,l]),{collectionProps:p}=au({...e,ref:n,selectionManager:t,keyboardDelegate:d});return{listProps:p}}function lu(e,t,r){let{listProps:o}=iu({...e,...t,allowsTabNavigation:!0,disallowSelectAll:!0,ref:r});return delete o.onKeyDownCapture,{accordionProps:{...o,tabIndex:void 0}}}function cu(e){var t;const{ref:r,as:o,item:n,onFocusChange:a}=e,{state:s,className:l,indicator:d,children:p,title:f,subtitle:$,startContent:w,motionProps:v,focusedKey:m,isCompact:C=!1,classNames:T={},isDisabled:R=!1,hideIndicator:I=!1,disableAnimation:A=!1,keepContentMounted:z=!1,disableIndicatorAnimation:K=!1,onPress:D,onPressStart:U,onPressEnd:b,onPressChange:L,onPressUp:_,onClick:O,...k}=e,h=o||"div",E=typeof h=="string",F=Ot(r),B=s.disabledKeys.has(n.key)||R,N=s.selectionManager.isSelected(n.key),{buttonProps:X,regionProps:q}=tu({item:n,isDisabled:B},{...s,focusedKey:m},F),{onFocus:V,onBlur:x,...j}=X,{isFocused:G,isFocusVisible:Z,focusProps:Q}=rs({autoFocus:(t=n.props)==null?void 0:t.autoFocus}),{isHovered:ne,hoverProps:oe}=wr({isDisabled:B}),{pressProps:re,isPressed:ie}=Wa({ref:F,isDisabled:B,onPress:D,onPressStart:U,onPressEnd:b,onPressChange:L,onPressUp:_}),be=c.useCallback(()=>{a==null||a(!0,n.key)},[]),ke=c.useCallback(()=>{a==null||a(!1,n.key)},[]),te=c.useMemo(()=>({...T}),[Po(T)]),fe=c.useMemo(()=>sc({isCompact:C,isDisabled:B,hideIndicator:I,disableAnimation:A,disableIndicatorAnimation:K}),[C,B,I,A,K]),Xe=tt(te==null?void 0:te.base,l),Er=c.useCallback((Ee={})=>({"data-open":ce(N),"data-disabled":ce(B),className:fe.base({class:Xe}),...me(ko(k,{enabled:E}),Ee)}),[Xe,E,k,fe,n.props,N,B]),Dt=(Ee={})=>{var ht,wt;return{ref:F,"data-open":ce(N),"data-focus":ce(G),"data-focus-visible":ce(Z),"data-disabled":ce(B),"data-hover":ce(ne),"data-pressed":ce(ie),className:fe.trigger({class:te==null?void 0:te.trigger}),onFocus:kn(be,V,Q.onFocus,k.onFocus,(ht=n.props)==null?void 0:ht.onFocus),onBlur:kn(ke,x,Q.onBlur,k.onBlur,(wt=n.props)==null?void 0:wt.onBlur),...me(j,oe,re,Ee),onClick:Oo(re.onClick,O)}},lt=c.useCallback((Ee={})=>({"data-open":ce(N),"data-disabled":ce(B),className:fe.content({class:te==null?void 0:te.content}),...me(q,Ee)}),[fe,te,q,N,B,te==null?void 0:te.content]),Sr=c.useCallback((Ee={})=>({"aria-hidden":ce(!0),"data-open":ce(N),"data-disabled":ce(B),className:fe.indicator({class:te==null?void 0:te.indicator}),...Ee}),[fe,te==null?void 0:te.indicator,N,B,te==null?void 0:te.indicator]),Ft=c.useCallback((Ee={})=>({"data-open":ce(N),"data-disabled":ce(B),className:fe.heading({class:te==null?void 0:te.heading}),...Ee}),[fe,te==null?void 0:te.heading,N,B,te==null?void 0:te.heading]),De=c.useCallback((Ee={})=>({"data-open":ce(N),"data-disabled":ce(B),className:fe.title({class:te==null?void 0:te.title}),...Ee}),[fe,te==null?void 0:te.title,N,B,te==null?void 0:te.title]),qe=c.useCallback((Ee={})=>({"data-open":ce(N),"data-disabled":ce(B),className:fe.subtitle({class:te==null?void 0:te.subtitle}),...Ee}),[fe,te,N,B,te==null?void 0:te.subtitle]);return{Component:h,item:n,slots:fe,classNames:te,domRef:F,indicator:d,children:p,title:f,subtitle:$,startContent:w,isOpen:N,isDisabled:B,hideIndicator:I,keepContentMounted:z,disableAnimation:A,motionProps:v,getBaseProps:Er,getHeadingProps:Ft,getButtonProps:Dt,getContentProps:lt,getIndicatorProps:Sr,getTitleProps:De,getSubtitleProps:qe}}var sa=e=>g.jsx("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:"1em",role:"presentation",viewBox:"0 0 24 24",width:"1em",...e,children:g.jsx("path",{d:"M15.5 19l-7-7 7-7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"})}),pt={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]},go={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:pt.easeIn}},exit:{transform:"scale(0.95)",opacity:0,transition:{duration:.2,ease:pt.easeOut}}},scaleInOut:{enter:{transform:"scale(1)",opacity:1,transition:{duration:.4,ease:pt.ease}},exit:{transform:"scale(1.03)",opacity:0,transition:{duration:.3,ease:pt.ease}}},fade:{enter:{opacity:1,transition:{duration:.4,ease:pt.ease}},exit:{opacity:0,transition:{duration:.3,ease:pt.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}}}},fs=it((e,t)=>{const{Component:r,classNames:o,slots:n,indicator:a,children:s,title:l,subtitle:d,startContent:p,isOpen:f,isDisabled:$,hideIndicator:w,keepContentMounted:v,disableAnimation:m,motionProps:C,getBaseProps:T,getHeadingProps:R,getButtonProps:I,getTitleProps:A,getSubtitleProps:z,getContentProps:K,getIndicatorProps:D}=cu({...e,ref:t}),U=he.useWillChange(),L=c.useMemo(()=>typeof a=="function"?a({indicator:g.jsx(sa,{}),isOpen:f,isDisabled:$}):a||null,[a,f,$])||g.jsx(sa,{}),_=c.useMemo(()=>m?g.jsx("div",{...K(),children:s}):v?g.jsx(he.LazyMotion,{features:he.domAnimation,children:g.jsx(he.m.section,{animate:f?"enter":"exit",exit:"exit",initial:"exit",style:{overflowY:"hidden",willChange:U},variants:go.collapse,...C,children:g.jsx("div",{...K(),children:s})},"accordion-content")}):g.jsx(he.AnimatePresence,{initial:!1,children:f&&g.jsx(he.LazyMotion,{features:he.domAnimation,children:g.jsx(he.m.section,{animate:"enter",exit:"exit",initial:"exit",style:{overflowY:"hidden",willChange:U},variants:go.collapse,...C,children:g.jsx("div",{...K(),children:s})},"accordion-content")})}),[f,m,v,s,C]);return g.jsxs(r,{...T(),children:[g.jsx("h2",{...R(),children:g.jsxs("button",{...I(),children:[p&&g.jsx("div",{className:n.startContent({class:o==null?void 0:o.startContent}),children:p}),g.jsxs("div",{className:n.titleWrapper({class:o==null?void 0:o.titleWrapper}),children:[l&&g.jsx("span",{...A(),children:l}),d&&g.jsx("span",{...z(),children:d})]}),!w&&L&&g.jsx("span",{...D(),children:L})]})}),_]})});fs.displayName="NextUI.AccordionItem";var du=fs;class uu{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let r=this.keyMap.get(t);return r?r.prevKey:null}getKeyAfter(t){let r=this.keyMap.get(t);return r?r.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)}at(t){const r=[...this.getKeys()];return this.getItem(r[t])}constructor(t,{expandedKeys:r}={}){this.keyMap=new Map,this.iterable=t,r=r||new Set;let o=s=>{if(this.keyMap.set(s.key,s),s.childNodes&&(s.type==="section"||r.has(s.key)))for(let l of s.childNodes)o(l)};for(let s of t)o(s);let n,a=0;for(let[s,l]of this.keyMap)n?(n.nextKey=s,l.prevKey=n.key):(this.firstKey=s,l.prevKey=void 0),l.type==="item"&&(l.index=a++),n=l,n.nextKey=void 0;this.lastKey=n==null?void 0:n.key}}class Le extends Set{constructor(t,r,o){super(t),t instanceof Le?(this.anchorKey=r||t.anchorKey,this.currentKey=o||t.currentKey):(this.anchorKey=r,this.currentKey=o)}}function fu(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}function pu(e){let{selectionMode:t="none",disallowEmptySelection:r,allowDuplicateSelectionEvents:o,selectionBehavior:n="toggle",disabledBehavior:a="all"}=e,s=c.useRef(!1),[,l]=c.useState(!1),d=c.useRef(null),p=c.useRef(null),[,f]=c.useState(null),$=c.useMemo(()=>ia(e.selectedKeys),[e.selectedKeys]),w=c.useMemo(()=>ia(e.defaultSelectedKeys,new Le),[e.defaultSelectedKeys]),[v,m]=hr($,w,e.onSelectionChange),C=c.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[T,R]=c.useState(n);n==="replace"&&T==="toggle"&&typeof v=="object"&&v.size===0&&R("replace");let I=c.useRef(n);return c.useEffect(()=>{n!==I.current&&(R(n),I.current=n)},[n]),{selectionMode:t,disallowEmptySelection:r,selectionBehavior:T,setSelectionBehavior:R,get isFocused(){return s.current},setFocused(A){s.current=A,l(A)},get focusedKey(){return d.current},get childFocusStrategy(){return p.current},setFocusedKey(A,z="first"){d.current=A,p.current=z,f(A)},selectedKeys:v,setSelectedKeys(A){(o||!fu(A,v))&&m(A)},disabledKeys:C,disabledBehavior:a}}function ia(e,t){return e?e==="all"?"all":new Le(e):t}class gu{build(t,r){return this.context=r,la(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:r,items:o}=t;if(typeof r=="function"){if(!o)throw new Error("props.children was a function but props.items is missing");for(let n of t.items)yield*this.getFullNode({value:n},{renderer:r})}else{let n=[];c.Children.forEach(r,s=>{n.push(s)});let a=0;for(let s of n){let l=this.getFullNode({element:s,index:a},{});for(let d of l)a++,yield d}}}getKey(t,r,o,n){if(t.key!=null)return t.key;if(r.type==="cell"&&r.key!=null)return`${n}${r.key}`;let a=r.value;if(a!=null){var s;let l=(s=a.key)!==null&&s!==void 0?s:a.id;if(l==null)throw new Error("No key found for item");return l}return n?`${n}.${r.index}`:`$.${r.index}`}getChildState(t,r){return{renderer:r.renderer||t.renderer}}*getFullNode(t,r,o,n){let a=t.element;if(!a&&t.value&&r&&r.renderer){let d=this.cache.get(t.value);if(d&&(!d.shouldInvalidate||!d.shouldInvalidate(this.context))){d.index=t.index,d.parentKey=n?n.key:null,yield d;return}a=r.renderer(t.value)}if(c.isValidElement(a)){let d=a.type;if(typeof d!="function"&&typeof d.getCollectionNode!="function"){let w=typeof a.type=="function"?a.type.name:a.type;throw new Error(`Unknown element <${w}> in collection.`)}let p=d.getCollectionNode(a.props,this.context),f=t.index,$=p.next();for(;!$.done&&$.value;){let w=$.value;t.index=f;let v=w.key;v||(v=w.element?null:this.getKey(a,t,r,o));let C=[...this.getFullNode({...w,key:v,index:f,wrapper:bu(t.wrapper,w.wrapper)},this.getChildState(r,w),o?`${o}${a.key}`:a.key,n)];for(let T of C){if(T.value=w.value||t.value,T.value&&this.cache.set(T.value,T),t.type&&T.type!==t.type)throw new Error(`Unsupported type <${Wr(T.type)}> in <${Wr(n.type)}>. Only <${Wr(t.type)}> is supported.`);f++,yield T}$=p.next(C)}return}if(t.key==null)return;let s=this,l={type:t.type,props:t.props,key:t.key,parentKey:n?n.key:null,value:t.value,level:n?n.level+1:0,index:t.index,rendered:t.rendered,textValue:t.textValue,"aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes,childNodes:la(function*(){if(!t.hasChildNodes)return;let d=0;for(let p of t.childNodes()){p.key!=null&&(p.key=`${l.key}${p.key}`),p.index=d;let f=s.getFullNode(p,s.getChildState(r,p),l.key,l);for(let $ of f)d++,yield $}})};yield l}constructor(){this.cache=new WeakMap}}function la(e){let t=[],r=null;return{*[Symbol.iterator](){for(let o of t)yield o;r||(r=e());for(let o of r)t.push(o),yield o}}}function bu(e,t){if(e&&t)return r=>e(t(r));if(e)return e;if(t)return t}function Wr(e){return e[0].toUpperCase()+e.slice(1)}function vu(e,t,r){let o=c.useMemo(()=>new gu,[]),{children:n,items:a,collection:s}=e;return c.useMemo(()=>{if(s)return s;let d=o.build({children:n,items:a},r);return t(d)},[o,n,a,s,r,t])}function yu(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function $u(e){return mu(e,0)}function mu(e,t){if(t<0)return;let r=0;for(let o of e){if(r===t)return o;r++}}function Gr(e,t,r){if(t.parentKey===r.parentKey)return t.index-r.index;let o=[...ca(e,t),t],n=[...ca(e,r),r],a=o.slice(0,n.length).findIndex((s,l)=>s!==n[l]);return a!==-1?(t=o[a],r=n[a],t.index-r.index):o.findIndex(s=>s===r)>=0?1:(n.findIndex(s=>s===t)>=0,-1)}function ca(e,t){let r=[];for(;(t==null?void 0:t.parentKey)!=null;)t=e.getItem(t.parentKey),r.unshift(t);return r}class xu{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,r){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,r)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){return this.state.selectionMode==="none"?!1:(t=this.getKey(t),this.state.selectedKeys==="all"?this.canSelectItem(t):this.state.selectedKeys.has(t))}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),r=this.state.selectedKeys;return this._isSelectAll=t.every(o=>r.has(o)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let o=this.collection.getItem(r);(!t||o&&Gr(this.collection,o,t)<0)&&(t=o)}return t==null?void 0:t.key}get lastSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let o=this.collection.getItem(r);(!t||o&&Gr(this.collection,o,t)>0)&&(t=o)}return t==null?void 0:t.key}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}t=this.getKey(t);let r;if(this.state.selectedKeys==="all")r=new Le([t],t,t);else{let o=this.state.selectedKeys,n=o.anchorKey||t;r=new Le(o,n,t);for(let a of this.getKeyRange(n,o.currentKey||t))r.delete(a);for(let a of this.getKeyRange(t,n))this.canSelectItem(a)&&r.add(a)}this.state.setSelectedKeys(r)}getKeyRange(t,r){let o=this.collection.getItem(t),n=this.collection.getItem(r);return o&&n?Gr(this.collection,o,n)<=0?this.getKeyRangeInternal(t,r):this.getKeyRangeInternal(r,t):[]}getKeyRangeInternal(t,r){let o=[],n=t;for(;n;){let a=this.collection.getItem(n);if((a&&a.type==="item"||a.type==="cell"&&this.allowsCellSelection)&&o.push(n),n===r)return o;n=this.collection.getKeyAfter(n)}return[]}getKey(t){let r=this.collection.getItem(t);if(!r||r.type==="cell"&&this.allowsCellSelection)return t;for(;r.type!=="item"&&r.parentKey!=null;)r=this.collection.getItem(r.parentKey);return!r||r.type!=="item"?null:r.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}if(t=this.getKey(t),t==null)return;let r=new Le(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(t)?r.delete(t):this.canSelectItem(t)&&(r.add(t),r.anchorKey=t,r.currentKey=t),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(t){if(this.selectionMode==="none"||(t=this.getKey(t),t==null))return;let r=this.canSelectItem(t)?new Le([t],t,t):new Le;this.state.setSelectedKeys(r)}setSelectedKeys(t){if(this.selectionMode==="none")return;let r=new Le;for(let o of t)if(o=this.getKey(o),o!=null&&(r.add(o),this.selectionMode==="single"))break;this.state.setSelectedKeys(r)}getSelectAllKeys(){let t=[],r=o=>{for(;o;){if(this.canSelectItem(o)){let n=this.collection.getItem(o);n.type==="item"&&t.push(o),n.hasChildNodes&&(this.allowsCellSelection||n.type!=="item")&&r($u(yu(n,this.collection)).key)}o=this.collection.getKeyAfter(o)}};return r(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new Le)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,r){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||r&&(r.pointerType==="touch"||r.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let r=this.selectedKeys;if(t.size!==r.size)return!1;for(let o of t)if(!r.has(o))return!1;for(let o of r)if(!t.has(o))return!1;return!0}canSelectItem(t){var r;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let o=this.collection.getItem(t);return!(!o||!(o==null||(r=o.props)===null||r===void 0)&&r.isDisabled||o.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var r,o;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((o=this.collection.getItem(t))===null||o===void 0||(r=o.props)===null||r===void 0)&&r.isDisabled))}isLink(t){var r,o;return!!(!((o=this.collection.getItem(t))===null||o===void 0||(r=o.props)===null||r===void 0)&&r.href)}getItemProps(t){var r;return(r=this.collection.getItem(t))===null||r===void 0?void 0:r.props}constructor(t,r,o){this.collection=t,this.state=r;var n;this.allowsCellSelection=(n=o==null?void 0:o.allowsCellSelection)!==null&&n!==void 0?n:!1,this._isSelectAll=null}}function hu(e){let{onExpandedChange:t}=e,[r,o]=hr(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),n=pu(e),a=c.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),s=vu(e,c.useCallback(d=>new uu(d,{expandedKeys:r}),[r]),null);return c.useEffect(()=>{n.focusedKey!=null&&!s.getItem(n.focusedKey)&&n.setFocusedKey(null)},[s,n.focusedKey]),{collection:s,expandedKeys:r,disabledKeys:a,toggleKey:d=>{o(wu(r,d))},setExpandedKeys:o,selectionManager:new xu(s,n)}}function wu(e,t){let r=new Set(e);return r.has(t)?r.delete(t):r.add(t),r}function Cu(e){const{ref:t,as:r,className:o,items:n,variant:a,motionProps:s,expandedKeys:l,disabledKeys:d,selectedKeys:p,children:f,defaultExpandedKeys:$,selectionMode:w="single",selectionBehavior:v="toggle",keepContentMounted:m=!1,disallowEmptySelection:C,defaultSelectedKeys:T,onExpandedChange:R,onSelectionChange:I,dividerProps:A={},isCompact:z=!1,isDisabled:K=!1,showDivider:D=!0,hideIndicator:U=!1,disableAnimation:b=!1,disableIndicatorAnimation:L=!1,itemClasses:_,...O}=e,[k,h]=c.useState(null),E=r||"div",F=typeof E=="string",B=Ot(t),N=c.useMemo(()=>ac({variant:a,className:o}),[a,o]),q={children:c.useMemo(()=>{let oe=[];return c.Children.map(f,re=>{var ie;if(c.isValidElement(re)&&typeof((ie=re.props)==null?void 0:ie.children)!="string"){const be=c.cloneElement(re,{hasChildItems:!1});oe.push(be)}else oe.push(re)}),oe},[f]),items:n},V={expandedKeys:l,defaultExpandedKeys:$,onExpandedChange:R},x={disabledKeys:d,selectedKeys:p,selectionMode:w,selectionBehavior:v,disallowEmptySelection:C,defaultSelectedKeys:T??$,onSelectionChange:I,...q,...V},j=hu(x);j.selectionManager.setFocusedKey=oe=>{h(oe)};const{accordionProps:G}=lu({...q,...V},j,B),Z=c.useMemo(()=>({state:j,focusedKey:k,motionProps:s,isCompact:z,isDisabled:K,hideIndicator:U,disableAnimation:b,keepContentMounted:m,disableIndicatorAnimation:L}),[k,z,K,U,p,b,m,j==null?void 0:j.expandedKeys.values,L,j.expandedKeys.size,j.disabledKeys.size,s]),Q=c.useCallback((oe={})=>({ref:B,className:N,"data-orientation":"vertical",...me(G,ko(O,{enabled:F}),oe)}),[]),ne=c.useCallback((oe,re)=>{oe&&h(re)},[]);return{Component:E,values:Z,state:j,focusedKey:k,getBaseProps:Q,isSplitted:a==="splitted",classNames:N,showDivider:D,dividerProps:A,disableAnimation:b,handleFocusChanged:ne,itemClasses:_}}function Eu(e){let t=ko(e,{enabled:typeof e.elementType=="string"}),r;return e.orientation==="vertical"&&(r="vertical"),e.elementType!=="hr"?{separatorProps:{...t,role:"separator","aria-orientation":r}}:{separatorProps:t}}function Su(e){const{as:t,className:r,orientation:o,...n}=e;let a=t||"hr";a==="hr"&&o==="vertical"&&(a="div");const{separatorProps:s}=Eu({elementType:typeof a=="string"?a:"hr",orientation:o}),l=c.useMemo(()=>nc({orientation:o,className:r}),[o,r]),d=c.useCallback((p={})=>({className:l,role:"separator","data-orientation":o,...s,...n,...p}),[l,o,s,n]);return{Component:a,getDividerProps:d}}var ps=it((e,t)=>{const{Component:r,getDividerProps:o}=Su({...e});return g.jsx(r,{ref:t,...o()})});ps.displayName="NextUI.Divider";var Pu=ps,gs=it((e,t)=>{const{Component:r,values:o,state:n,isSplitted:a,showDivider:s,getBaseProps:l,disableAnimation:d,handleFocusChanged:p,itemClasses:f}=Cu({...e,ref:t}),$=c.useCallback((v,m)=>p(v,m),[p]),w=c.useMemo(()=>[...n.collection].map((v,m)=>{const C={...f,...v.props.classNames||{}};return g.jsxs(c.Fragment,{children:[g.jsx(du,{item:v,onFocusChange:$,...o,...v.props,classNames:C}),!v.props.hidden&&!a&&s&&m<n.collection.size-1&&g.jsx(Pu,{})]},v.key)}),[o,f,$,a,s,n.collection]);return g.jsx(r,{...l(),children:d?w:g.jsx(he.LayoutGroup,{children:w})})});gs.displayName="NextUI.Accordion";var Tu=gs,ku=e=>{const t={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(t==null?void 0:t[e])||{}},Mu=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],da=(e,t)=>{if(t.includes("-")){const[,r]=t.split("-");return`${e}-${r}`}return e};const Ru=P.styled(Tu)`
|
|
103
|
+
`;function eu({children:e,isGrid:t,renderCount:r}){return g.jsx(Qd,{isGrid:t,max:0,renderCount:r??void 0,children:e})}function tu(e,t){let{elementType:r="button",isDisabled:o,onPress:n,onPressStart:a,onPressEnd:s,onPressUp:i,onPressChange:d,preventFocusOnPress:p,allowFocusWhenDisabled:f,onClick:$,href:w,target:v,rel:x,type:C="button"}=e,T;r==="button"?T={type:C,disabled:o}:T={role:"button",tabIndex:o?void 0:0,href:r==="a"&&o?void 0:w,target:r==="a"?v:void 0,type:r==="input"?C:void 0,disabled:r==="input"?o:void 0,"aria-disabled":!o||r==="input"?void 0:o,rel:r==="a"?x:void 0};let{pressProps:R,isPressed:O}=Wa({onPressStart:a,onPressEnd:s,onPressChange:d,onPress:n,onPressUp:i,isDisabled:o,preventFocusOnPress:p,ref:t}),{focusableProps:A}=os(e,t);f&&(A.tabIndex=o?-1:A.tabIndex);let z=xe(A,R,Na(e,{labelable:!0}));return{isPressed:O,buttonProps:xe(T,z,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:K=>{$&&($(K),console.warn("onClick is deprecated, please use onPress"))}})}}function ru(e,t,r){let{item:o,isDisabled:n}=e,a=o.key,s=t.selectionManager,i=c.useId(),d=c.useId(),p=t.disabledKeys.has(o.key)||n;c.useEffect(()=>{a===t.focusedKey&&document.activeElement!==r.current&&r.current&&vr(r.current)},[r,a,t.focusedKey]);let f=c.useCallback(C=>{s.canSelectItem(a)&&(s.select(a,C),t.toggleKey(a))},[a,s]);const $=c.useCallback(C=>{s.selectionBehavior==="replace"&&s.extendSelection(C),s.setFocusedKey(C)},[s]),w=c.useCallback(C=>{const R={ArrowDown:()=>{const O=t.collection.getKeyAfter(a);if(O&&t.disabledKeys.has(O)){const A=t.collection.getKeyAfter(O);A&&$(A)}else O&&$(O)},ArrowUp:()=>{const O=t.collection.getKeyBefore(a);if(O&&t.disabledKeys.has(O)){const A=t.collection.getKeyBefore(O);A&&$(A)}else O&&$(O)},Home:()=>{const O=t.collection.getFirstKey();O&&$(O)},End:()=>{const O=t.collection.getLastKey();O&&$(O)}}[C.key];R&&(C.preventDefault(),s.canSelectItem(a)&&R(C))},[a,s]);let{buttonProps:v}=tu({id:i,elementType:"button",isDisabled:p,onKeyDown:w,onPress:f},r),x=t.selectionManager.isSelected(o.key);return{buttonProps:{...v,"aria-expanded":x,"aria-controls":x?d:void 0},regionProps:{id:d,role:"region","aria-labelledby":i}}}function aa(e){return Rc()?e.altKey:e.ctrlKey}function kt(e){return ot()?e.metaKey:e.ctrlKey}const ou=1e3;function nu(e){let{keyboardDelegate:t,selectionManager:r,onTypeSelect:o}=e,n=c.useRef({search:"",timeout:null}).current,a=s=>{let i=au(s.key);if(!i||s.ctrlKey||s.metaKey||!s.currentTarget.contains(s.target))return;i===" "&&n.search.trim().length>0&&(s.preventDefault(),"continuePropagation"in s||s.stopPropagation()),n.search+=i;let d=t.getKeyForSearch(n.search,r.focusedKey);d==null&&(d=t.getKeyForSearch(n.search)),d!=null&&(r.setFocusedKey(d),o&&o(d)),clearTimeout(n.timeout),n.timeout=setTimeout(()=>{n.search=""},ou)};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?a:null}}}function au(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function su(e){let{selectionManager:t,keyboardDelegate:r,ref:o,autoFocus:n=!1,shouldFocusWrap:a=!1,disallowEmptySelection:s=!1,disallowSelectAll:i=!1,selectOnFocus:d=t.selectionBehavior==="replace",disallowTypeAhead:p=!1,shouldUseVirtualFocus:f,allowsTabNavigation:$=!1,isVirtualized:w,scrollRef:v=o,linkBehavior:x="action"}=e,{direction:C}=Bo(),T=Lc(),R=_=>{if(_.altKey&&_.key==="Tab"&&_.preventDefault(),!o.current.contains(_.target))return;const k=(V,m)=>{if(V!=null){if(t.isLink(V)&&x==="selection"&&d&&!aa(_)){Lt.flushSync(()=>{t.setFocusedKey(V,m)});let j=v.current.querySelector(`[data-key="${CSS.escape(V.toString())}"]`),G=t.getItemProps(V);T.open(j,_,G.href,G.routerOptions);return}if(t.setFocusedKey(V,m),t.isLink(V)&&x==="override")return;_.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(V):d&&!aa(_)&&t.replaceSelection(V)}};switch(_.key){case"ArrowDown":if(r.getKeyBelow){var M,h;_.preventDefault();let V=t.focusedKey!=null?r.getKeyBelow(t.focusedKey):(M=r.getFirstKey)===null||M===void 0?void 0:M.call(r);V==null&&a&&(V=(h=r.getFirstKey)===null||h===void 0?void 0:h.call(r,t.focusedKey)),k(V)}break;case"ArrowUp":if(r.getKeyAbove){var E,N;_.preventDefault();let V=t.focusedKey!=null?r.getKeyAbove(t.focusedKey):(E=r.getLastKey)===null||E===void 0?void 0:E.call(r);V==null&&a&&(V=(N=r.getLastKey)===null||N===void 0?void 0:N.call(r,t.focusedKey)),k(V)}break;case"ArrowLeft":if(r.getKeyLeftOf){var B,F;_.preventDefault();let V=r.getKeyLeftOf(t.focusedKey);V==null&&a&&(V=C==="rtl"?(B=r.getFirstKey)===null||B===void 0?void 0:B.call(r,t.focusedKey):(F=r.getLastKey)===null||F===void 0?void 0:F.call(r,t.focusedKey)),k(V,C==="rtl"?"first":"last")}break;case"ArrowRight":if(r.getKeyRightOf){var X,q;_.preventDefault();let V=r.getKeyRightOf(t.focusedKey);V==null&&a&&(V=C==="rtl"?(X=r.getLastKey)===null||X===void 0?void 0:X.call(r,t.focusedKey):(q=r.getFirstKey)===null||q===void 0?void 0:q.call(r,t.focusedKey)),k(V,C==="rtl"?"last":"first")}break;case"Home":if(r.getFirstKey){_.preventDefault();let V=r.getFirstKey(t.focusedKey,kt(_));t.setFocusedKey(V),kt(_)&&_.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(V):d&&t.replaceSelection(V)}break;case"End":if(r.getLastKey){_.preventDefault();let V=r.getLastKey(t.focusedKey,kt(_));t.setFocusedKey(V),kt(_)&&_.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(V):d&&t.replaceSelection(V)}break;case"PageDown":if(r.getKeyPageBelow){_.preventDefault();let V=r.getKeyPageBelow(t.focusedKey);k(V)}break;case"PageUp":if(r.getKeyPageAbove){_.preventDefault();let V=r.getKeyPageAbove(t.focusedKey);k(V)}break;case"a":kt(_)&&t.selectionMode==="multiple"&&i!==!0&&(_.preventDefault(),t.selectAll());break;case"Escape":!s&&t.selectedKeys.size!==0&&(_.stopPropagation(),_.preventDefault(),t.clearSelection());break;case"Tab":if(!$){if(_.shiftKey)o.current.focus();else{let V=xd(o.current,{tabbable:!0}),m,j;do j=V.lastChild(),j&&(m=j);while(j);m&&!m.contains(document.activeElement)&&We(m)}break}}},O=c.useRef({top:0,left:0});Vc(v,"scroll",w?null:()=>{O.current={top:v.current.scrollTop,left:v.current.scrollLeft}});let A=_=>{if(t.isFocused){_.currentTarget.contains(_.target)||t.setFocused(!1);return}if(_.currentTarget.contains(_.target)){if(t.setFocused(!0),t.focusedKey==null){let h=N=>{N!=null&&(t.setFocusedKey(N),d&&t.replaceSelection(N))},E=_.relatedTarget;var k,M;E&&_.currentTarget.compareDocumentPosition(E)&Node.DOCUMENT_POSITION_FOLLOWING?h((k=t.lastSelectedKey)!==null&&k!==void 0?k:r.getLastKey()):h((M=t.firstSelectedKey)!==null&&M!==void 0?M:r.getFirstKey())}else w||(v.current.scrollTop=O.current.top,v.current.scrollLeft=O.current.left);if(!w&&t.focusedKey!=null){let h=v.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);h&&(h.contains(document.activeElement)||We(h),gr()==="keyboard"&&zn(h,{containingElement:o.current}))}}},z=_=>{_.currentTarget.contains(_.relatedTarget)||t.setFocused(!1)};const K=c.useRef(n);c.useEffect(()=>{if(K.current){let _=null;n==="first"&&(_=r.getFirstKey()),n==="last"&&(_=r.getLastKey());let k=t.selectedKeys;if(k.size){for(let M of k)if(t.canSelectItem(M)){_=M;break}}t.setFocused(!0),t.setFocusedKey(_),_==null&&!f&&vr(o.current)}},[]);let D=c.useRef(t.focusedKey);c.useEffect(()=>{let _=gr();if(t.isFocused&&t.focusedKey!=null&&(v!=null&&v.current)){let k=v.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);k&&(_==="keyboard"||K.current)&&(w||Ha(v.current,k),_!=="virtual"&&zn(k,{containingElement:o.current}))}t.isFocused&&t.focusedKey==null&&D.current!=null&&vr(o.current),D.current=t.focusedKey,K.current=!1},[w,v,t.focusedKey,t.isFocused,o]);let U={onKeyDown:R,onFocus:A,onBlur:z,onMouseDown(_){v.current===_.target&&_.preventDefault()}},{typeSelectProps:b}=nu({keyboardDelegate:r,selectionManager:t});p||(U=xe(b,U));let L;return f||(L=t.focusedKey==null?0:-1),{collectionProps:{...U,tabIndex:L}}}class iu{isDisabled(t){var r;return this.disabledBehavior==="all"&&(((r=t.props)===null||r===void 0?void 0:r.isDisabled)||this.disabledKeys.has(t.key))}getNextKey(t){for(t=this.collection.getKeyAfter(t);t!=null;){let r=this.collection.getItem(t);if(r.type==="item"&&!this.isDisabled(r))return t;t=this.collection.getKeyAfter(t)}return null}getPreviousKey(t){for(t=this.collection.getKeyBefore(t);t!=null;){let r=this.collection.getItem(t);if(r.type==="item"&&!this.isDisabled(r))return t;t=this.collection.getKeyBefore(t)}return null}findKey(t,r,o){let n=this.getItem(t);if(!n)return null;let a=n.getBoundingClientRect();do t=r(t),n=this.getItem(t);while(n&&o(a,n.getBoundingClientRect()));return t}isSameRow(t,r){return t.top===r.top||t.left!==r.left}isSameColumn(t,r){return t.left===r.left||t.top!==r.top}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,r=>this.getNextKey(r),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,r=>this.getPreviousKey(r),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,r){return r?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();for(;t!=null;){let r=this.collection.getItem(t);if((r==null?void 0:r.type)==="item"&&!this.isDisabled(r))return t;t=this.collection.getKeyAfter(t)}return null}getLastKey(){let t=this.collection.getLastKey();for(;t!=null;){let r=this.collection.getItem(t);if(r.type==="item"&&!this.isDisabled(r))return t;t=this.collection.getKeyBefore(t)}return null}getItem(t){return t!==null?this.ref.current.querySelector(`[data-key="${CSS.escape(t.toString())}"]`):null}getKeyPageAbove(t){let r=this.ref.current,o=this.getItem(t);if(!o)return null;if(!ro(r))return this.getFirstKey();let n=r.getBoundingClientRect(),a=o.getBoundingClientRect();if(this.orientation==="horizontal"){let s=n.x-r.scrollLeft,i=Math.max(0,a.x-s+a.width-n.width);for(;o&&a.x-s>i;)t=this.getKeyAbove(t),o=t==null?null:this.getItem(t),a=o==null?void 0:o.getBoundingClientRect()}else{let s=n.y-r.scrollTop,i=Math.max(0,a.y-s+a.height-n.height);for(;o&&a.y-s>i;)t=this.getKeyAbove(t),o=t==null?null:this.getItem(t),a=o==null?void 0:o.getBoundingClientRect()}return t??this.getFirstKey()}getKeyPageBelow(t){let r=this.ref.current,o=this.getItem(t);if(!o)return null;if(!ro(r))return this.getLastKey();let n=r.getBoundingClientRect(),a=o.getBoundingClientRect();if(this.orientation==="horizontal"){let s=n.x-r.scrollLeft,i=Math.min(r.scrollWidth,a.x-s-a.width+n.width);for(;o&&a.x-s<i;)t=this.getKeyBelow(t),o=t==null?null:this.getItem(t),a=o==null?void 0:o.getBoundingClientRect()}else{let s=n.y-r.scrollTop,i=Math.min(r.scrollHeight,a.y-s-a.height+n.height);for(;o&&a.y-s<i;)t=this.getKeyBelow(t),o=t==null?null:this.getItem(t),a=o==null?void 0:o.getBoundingClientRect()}return t??this.getLastKey()}getKeyForSearch(t,r){if(!this.collator)return null;let o=this.collection,n=r||this.getFirstKey();for(;n!=null;){let a=o.getItem(n),s=a.textValue.slice(0,t.length);if(a.textValue&&this.collator.compare(s,t)===0)return n;n=this.getKeyBelow(n)}return null}constructor(...t){if(t.length===1){let r=t[0];this.collection=r.collection,this.ref=r.ref,this.collator=r.collator,this.disabledKeys=r.disabledKeys||new Set,this.disabledBehavior=r.disabledBehavior||"all",this.orientation=r.orientation,this.direction=r.direction,this.layout=r.layout||"stack"}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all";this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function lu(e){let{selectionManager:t,collection:r,disabledKeys:o,ref:n,keyboardDelegate:a}=e,s=Id({usage:"search",sensitivity:"base"}),i=t.disabledBehavior,d=c.useMemo(()=>a||new iu({collection:r,disabledKeys:o,disabledBehavior:i,ref:n,collator:s}),[a,r,o,n,s,i]),{collectionProps:p}=su({...e,ref:n,selectionManager:t,keyboardDelegate:d});return{listProps:p}}function cu(e,t,r){let{listProps:o}=lu({...e,...t,allowsTabNavigation:!0,disallowSelectAll:!0,ref:r});return delete o.onKeyDownCapture,{accordionProps:{...o,tabIndex:void 0}}}function du(e){var t;const{ref:r,as:o,item:n,onFocusChange:a}=e,{state:s,className:i,indicator:d,children:p,title:f,subtitle:$,startContent:w,motionProps:v,focusedKey:x,isCompact:C=!1,classNames:T={},isDisabled:R=!1,hideIndicator:O=!1,disableAnimation:A=!1,keepContentMounted:z=!1,disableIndicatorAnimation:K=!1,onPress:D,onPressStart:U,onPressEnd:b,onPressChange:L,onPressUp:_,onClick:k,...M}=e,h=o||"div",E=typeof h=="string",N=Ot(r),B=s.disabledKeys.has(n.key)||R,F=s.selectionManager.isSelected(n.key),{buttonProps:X,regionProps:q}=ru({item:n,isDisabled:B},{...s,focusedKey:x},N),{onFocus:V,onBlur:m,...j}=X,{isFocused:G,isFocusVisible:Z,focusProps:Q}=rs({autoFocus:(t=n.props)==null?void 0:t.autoFocus}),{isHovered:ne,hoverProps:oe}=wr({isDisabled:B}),{pressProps:re,isPressed:ie}=Wa({ref:N,isDisabled:B,onPress:D,onPressStart:U,onPressEnd:b,onPressChange:L,onPressUp:_}),be=c.useCallback(()=>{a==null||a(!0,n.key)},[]),ke=c.useCallback(()=>{a==null||a(!1,n.key)},[]),te=c.useMemo(()=>({...T}),[Po(T)]),fe=c.useMemo(()=>ic({isCompact:C,isDisabled:B,hideIndicator:O,disableAnimation:A,disableIndicatorAnimation:K}),[C,B,O,A,K]),Xe=tt(te==null?void 0:te.base,i),Er=c.useCallback((Ee={})=>({"data-open":ce(F),"data-disabled":ce(B),className:fe.base({class:Xe}),...xe(ko(M,{enabled:E}),Ee)}),[Xe,E,M,fe,n.props,F,B]),Dt=(Ee={})=>{var ht,wt;return{ref:N,"data-open":ce(F),"data-focus":ce(G),"data-focus-visible":ce(Z),"data-disabled":ce(B),"data-hover":ce(ne),"data-pressed":ce(ie),className:fe.trigger({class:te==null?void 0:te.trigger}),onFocus:kn(be,V,Q.onFocus,M.onFocus,(ht=n.props)==null?void 0:ht.onFocus),onBlur:kn(ke,m,Q.onBlur,M.onBlur,(wt=n.props)==null?void 0:wt.onBlur),...xe(j,oe,re,Ee),onClick:Oo(re.onClick,k)}},lt=c.useCallback((Ee={})=>({"data-open":ce(F),"data-disabled":ce(B),className:fe.content({class:te==null?void 0:te.content}),...xe(q,Ee)}),[fe,te,q,F,B,te==null?void 0:te.content]),Sr=c.useCallback((Ee={})=>({"aria-hidden":ce(!0),"data-open":ce(F),"data-disabled":ce(B),className:fe.indicator({class:te==null?void 0:te.indicator}),...Ee}),[fe,te==null?void 0:te.indicator,F,B,te==null?void 0:te.indicator]),Nt=c.useCallback((Ee={})=>({"data-open":ce(F),"data-disabled":ce(B),className:fe.heading({class:te==null?void 0:te.heading}),...Ee}),[fe,te==null?void 0:te.heading,F,B,te==null?void 0:te.heading]),De=c.useCallback((Ee={})=>({"data-open":ce(F),"data-disabled":ce(B),className:fe.title({class:te==null?void 0:te.title}),...Ee}),[fe,te==null?void 0:te.title,F,B,te==null?void 0:te.title]),qe=c.useCallback((Ee={})=>({"data-open":ce(F),"data-disabled":ce(B),className:fe.subtitle({class:te==null?void 0:te.subtitle}),...Ee}),[fe,te,F,B,te==null?void 0:te.subtitle]);return{Component:h,item:n,slots:fe,classNames:te,domRef:N,indicator:d,children:p,title:f,subtitle:$,startContent:w,isOpen:F,isDisabled:B,hideIndicator:O,keepContentMounted:z,disableAnimation:A,motionProps:v,getBaseProps:Er,getHeadingProps:Nt,getButtonProps:Dt,getContentProps:lt,getIndicatorProps:Sr,getTitleProps:De,getSubtitleProps:qe}}var sa=e=>g.jsx("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:"1em",role:"presentation",viewBox:"0 0 24 24",width:"1em",...e,children:g.jsx("path",{d:"M15.5 19l-7-7 7-7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"})}),pt={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]},go={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:pt.easeIn}},exit:{transform:"scale(0.95)",opacity:0,transition:{duration:.2,ease:pt.easeOut}}},scaleInOut:{enter:{transform:"scale(1)",opacity:1,transition:{duration:.4,ease:pt.ease}},exit:{transform:"scale(1.03)",opacity:0,transition:{duration:.3,ease:pt.ease}}},fade:{enter:{opacity:1,transition:{duration:.4,ease:pt.ease}},exit:{opacity:0,transition:{duration:.3,ease:pt.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}}}},fs=it((e,t)=>{const{Component:r,classNames:o,slots:n,indicator:a,children:s,title:i,subtitle:d,startContent:p,isOpen:f,isDisabled:$,hideIndicator:w,keepContentMounted:v,disableAnimation:x,motionProps:C,getBaseProps:T,getHeadingProps:R,getButtonProps:O,getTitleProps:A,getSubtitleProps:z,getContentProps:K,getIndicatorProps:D}=du({...e,ref:t}),U=he.useWillChange(),L=c.useMemo(()=>typeof a=="function"?a({indicator:g.jsx(sa,{}),isOpen:f,isDisabled:$}):a||null,[a,f,$])||g.jsx(sa,{}),_=c.useMemo(()=>x?g.jsx("div",{...K(),children:s}):v?g.jsx(he.LazyMotion,{features:he.domAnimation,children:g.jsx(he.m.section,{animate:f?"enter":"exit",exit:"exit",initial:"exit",style:{overflowY:"hidden",willChange:U},variants:go.collapse,...C,children:g.jsx("div",{...K(),children:s})},"accordion-content")}):g.jsx(he.AnimatePresence,{initial:!1,children:f&&g.jsx(he.LazyMotion,{features:he.domAnimation,children:g.jsx(he.m.section,{animate:"enter",exit:"exit",initial:"exit",style:{overflowY:"hidden",willChange:U},variants:go.collapse,...C,children:g.jsx("div",{...K(),children:s})},"accordion-content")})}),[f,x,v,s,C]);return g.jsxs(r,{...T(),children:[g.jsx("h2",{...R(),children:g.jsxs("button",{...O(),children:[p&&g.jsx("div",{className:n.startContent({class:o==null?void 0:o.startContent}),children:p}),g.jsxs("div",{className:n.titleWrapper({class:o==null?void 0:o.titleWrapper}),children:[i&&g.jsx("span",{...A(),children:i}),d&&g.jsx("span",{...z(),children:d})]}),!w&&L&&g.jsx("span",{...D(),children:L})]})}),_]})});fs.displayName="NextUI.AccordionItem";var uu=fs;class fu{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let r=this.keyMap.get(t);return r?r.prevKey:null}getKeyAfter(t){let r=this.keyMap.get(t);return r?r.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)}at(t){const r=[...this.getKeys()];return this.getItem(r[t])}constructor(t,{expandedKeys:r}={}){this.keyMap=new Map,this.iterable=t,r=r||new Set;let o=s=>{if(this.keyMap.set(s.key,s),s.childNodes&&(s.type==="section"||r.has(s.key)))for(let i of s.childNodes)o(i)};for(let s of t)o(s);let n,a=0;for(let[s,i]of this.keyMap)n?(n.nextKey=s,i.prevKey=n.key):(this.firstKey=s,i.prevKey=void 0),i.type==="item"&&(i.index=a++),n=i,n.nextKey=void 0;this.lastKey=n==null?void 0:n.key}}class Le extends Set{constructor(t,r,o){super(t),t instanceof Le?(this.anchorKey=r||t.anchorKey,this.currentKey=o||t.currentKey):(this.anchorKey=r,this.currentKey=o)}}function pu(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}function gu(e){let{selectionMode:t="none",disallowEmptySelection:r,allowDuplicateSelectionEvents:o,selectionBehavior:n="toggle",disabledBehavior:a="all"}=e,s=c.useRef(!1),[,i]=c.useState(!1),d=c.useRef(null),p=c.useRef(null),[,f]=c.useState(null),$=c.useMemo(()=>ia(e.selectedKeys),[e.selectedKeys]),w=c.useMemo(()=>ia(e.defaultSelectedKeys,new Le),[e.defaultSelectedKeys]),[v,x]=hr($,w,e.onSelectionChange),C=c.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[T,R]=c.useState(n);n==="replace"&&T==="toggle"&&typeof v=="object"&&v.size===0&&R("replace");let O=c.useRef(n);return c.useEffect(()=>{n!==O.current&&(R(n),O.current=n)},[n]),{selectionMode:t,disallowEmptySelection:r,selectionBehavior:T,setSelectionBehavior:R,get isFocused(){return s.current},setFocused(A){s.current=A,i(A)},get focusedKey(){return d.current},get childFocusStrategy(){return p.current},setFocusedKey(A,z="first"){d.current=A,p.current=z,f(A)},selectedKeys:v,setSelectedKeys(A){(o||!pu(A,v))&&x(A)},disabledKeys:C,disabledBehavior:a}}function ia(e,t){return e?e==="all"?"all":new Le(e):t}function ps(e){return null}ps.getCollectionNode=function*(t,r){let{childItems:o,title:n,children:a}=t,s=t.title||t.children,i=t.textValue||(typeof s=="string"?s:"")||t["aria-label"]||"";!i&&!(r!=null&&r.suppressTextValueWarning)&&console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:t,rendered:s,textValue:i,"aria-label":t["aria-label"],hasChildNodes:bu(t),*childNodes(){if(o)for(let d of o)yield{type:"item",value:d};else if(n){let d=[];c.Children.forEach(a,p=>{d.push({type:"item",element:p})}),yield*d}}}};function bu(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&c.Children.count(e.children)>0)}let vu=ps;class yu{build(t,r){return this.context=r,la(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:r,items:o}=t;if(typeof r=="function"){if(!o)throw new Error("props.children was a function but props.items is missing");for(let n of t.items)yield*this.getFullNode({value:n},{renderer:r})}else{let n=[];c.Children.forEach(r,s=>{n.push(s)});let a=0;for(let s of n){let i=this.getFullNode({element:s,index:a},{});for(let d of i)a++,yield d}}}getKey(t,r,o,n){if(t.key!=null)return t.key;if(r.type==="cell"&&r.key!=null)return`${n}${r.key}`;let a=r.value;if(a!=null){var s;let i=(s=a.key)!==null&&s!==void 0?s:a.id;if(i==null)throw new Error("No key found for item");return i}return n?`${n}.${r.index}`:`$.${r.index}`}getChildState(t,r){return{renderer:r.renderer||t.renderer}}*getFullNode(t,r,o,n){let a=t.element;if(!a&&t.value&&r&&r.renderer){let d=this.cache.get(t.value);if(d&&(!d.shouldInvalidate||!d.shouldInvalidate(this.context))){d.index=t.index,d.parentKey=n?n.key:null,yield d;return}a=r.renderer(t.value)}if(c.isValidElement(a)){let d=a.type;if(typeof d!="function"&&typeof d.getCollectionNode!="function"){let w=typeof a.type=="function"?a.type.name:a.type;throw new Error(`Unknown element <${w}> in collection.`)}let p=d.getCollectionNode(a.props,this.context),f=t.index,$=p.next();for(;!$.done&&$.value;){let w=$.value;t.index=f;let v=w.key;v||(v=w.element?null:this.getKey(a,t,r,o));let C=[...this.getFullNode({...w,key:v,index:f,wrapper:$u(t.wrapper,w.wrapper)},this.getChildState(r,w),o?`${o}${a.key}`:a.key,n)];for(let T of C){if(T.value=w.value||t.value,T.value&&this.cache.set(T.value,T),t.type&&T.type!==t.type)throw new Error(`Unsupported type <${Wr(T.type)}> in <${Wr(n.type)}>. Only <${Wr(t.type)}> is supported.`);f++,yield T}$=p.next(C)}return}if(t.key==null)return;let s=this,i={type:t.type,props:t.props,key:t.key,parentKey:n?n.key:null,value:t.value,level:n?n.level+1:0,index:t.index,rendered:t.rendered,textValue:t.textValue,"aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes,childNodes:la(function*(){if(!t.hasChildNodes)return;let d=0;for(let p of t.childNodes()){p.key!=null&&(p.key=`${i.key}${p.key}`),p.index=d;let f=s.getFullNode(p,s.getChildState(r,p),i.key,i);for(let $ of f)d++,yield $}})};yield i}constructor(){this.cache=new WeakMap}}function la(e){let t=[],r=null;return{*[Symbol.iterator](){for(let o of t)yield o;r||(r=e());for(let o of r)t.push(o),yield o}}}function $u(e,t){if(e&&t)return r=>e(t(r));if(e)return e;if(t)return t}function Wr(e){return e[0].toUpperCase()+e.slice(1)}function xu(e,t,r){let o=c.useMemo(()=>new yu,[]),{children:n,items:a,collection:s}=e;return c.useMemo(()=>{if(s)return s;let d=o.build({children:n,items:a},r);return t(d)},[o,n,a,s,r,t])}function mu(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function hu(e){return wu(e,0)}function wu(e,t){if(t<0)return;let r=0;for(let o of e){if(r===t)return o;r++}}function Gr(e,t,r){if(t.parentKey===r.parentKey)return t.index-r.index;let o=[...ca(e,t),t],n=[...ca(e,r),r],a=o.slice(0,n.length).findIndex((s,i)=>s!==n[i]);return a!==-1?(t=o[a],r=n[a],t.index-r.index):o.findIndex(s=>s===r)>=0?1:(n.findIndex(s=>s===t)>=0,-1)}function ca(e,t){let r=[];for(;(t==null?void 0:t.parentKey)!=null;)t=e.getItem(t.parentKey),r.unshift(t);return r}class Cu{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,r){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,r)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){return this.state.selectionMode==="none"?!1:(t=this.getKey(t),this.state.selectedKeys==="all"?this.canSelectItem(t):this.state.selectedKeys.has(t))}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),r=this.state.selectedKeys;return this._isSelectAll=t.every(o=>r.has(o)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let o=this.collection.getItem(r);(!t||o&&Gr(this.collection,o,t)<0)&&(t=o)}return t==null?void 0:t.key}get lastSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let o=this.collection.getItem(r);(!t||o&&Gr(this.collection,o,t)>0)&&(t=o)}return t==null?void 0:t.key}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}t=this.getKey(t);let r;if(this.state.selectedKeys==="all")r=new Le([t],t,t);else{let o=this.state.selectedKeys,n=o.anchorKey||t;r=new Le(o,n,t);for(let a of this.getKeyRange(n,o.currentKey||t))r.delete(a);for(let a of this.getKeyRange(t,n))this.canSelectItem(a)&&r.add(a)}this.state.setSelectedKeys(r)}getKeyRange(t,r){let o=this.collection.getItem(t),n=this.collection.getItem(r);return o&&n?Gr(this.collection,o,n)<=0?this.getKeyRangeInternal(t,r):this.getKeyRangeInternal(r,t):[]}getKeyRangeInternal(t,r){let o=[],n=t;for(;n;){let a=this.collection.getItem(n);if((a&&a.type==="item"||a.type==="cell"&&this.allowsCellSelection)&&o.push(n),n===r)return o;n=this.collection.getKeyAfter(n)}return[]}getKey(t){let r=this.collection.getItem(t);if(!r||r.type==="cell"&&this.allowsCellSelection)return t;for(;r.type!=="item"&&r.parentKey!=null;)r=this.collection.getItem(r.parentKey);return!r||r.type!=="item"?null:r.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}if(t=this.getKey(t),t==null)return;let r=new Le(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(t)?r.delete(t):this.canSelectItem(t)&&(r.add(t),r.anchorKey=t,r.currentKey=t),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(t){if(this.selectionMode==="none"||(t=this.getKey(t),t==null))return;let r=this.canSelectItem(t)?new Le([t],t,t):new Le;this.state.setSelectedKeys(r)}setSelectedKeys(t){if(this.selectionMode==="none")return;let r=new Le;for(let o of t)if(o=this.getKey(o),o!=null&&(r.add(o),this.selectionMode==="single"))break;this.state.setSelectedKeys(r)}getSelectAllKeys(){let t=[],r=o=>{for(;o;){if(this.canSelectItem(o)){let n=this.collection.getItem(o);n.type==="item"&&t.push(o),n.hasChildNodes&&(this.allowsCellSelection||n.type!=="item")&&r(hu(mu(n,this.collection)).key)}o=this.collection.getKeyAfter(o)}};return r(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new Le)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,r){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||r&&(r.pointerType==="touch"||r.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let r=this.selectedKeys;if(t.size!==r.size)return!1;for(let o of t)if(!r.has(o))return!1;for(let o of r)if(!t.has(o))return!1;return!0}canSelectItem(t){var r;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let o=this.collection.getItem(t);return!(!o||!(o==null||(r=o.props)===null||r===void 0)&&r.isDisabled||o.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var r,o;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((o=this.collection.getItem(t))===null||o===void 0||(r=o.props)===null||r===void 0)&&r.isDisabled))}isLink(t){var r,o;return!!(!((o=this.collection.getItem(t))===null||o===void 0||(r=o.props)===null||r===void 0)&&r.href)}getItemProps(t){var r;return(r=this.collection.getItem(t))===null||r===void 0?void 0:r.props}constructor(t,r,o){this.collection=t,this.state=r;var n;this.allowsCellSelection=(n=o==null?void 0:o.allowsCellSelection)!==null&&n!==void 0?n:!1,this._isSelectAll=null}}function Eu(e){let{onExpandedChange:t}=e,[r,o]=hr(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),n=gu(e),a=c.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),s=xu(e,c.useCallback(d=>new fu(d,{expandedKeys:r}),[r]),null);return c.useEffect(()=>{n.focusedKey!=null&&!s.getItem(n.focusedKey)&&n.setFocusedKey(null)},[s,n.focusedKey]),{collection:s,expandedKeys:r,disabledKeys:a,toggleKey:d=>{o(Su(r,d))},setExpandedKeys:o,selectionManager:new Cu(s,n)}}function Su(e,t){let r=new Set(e);return r.has(t)?r.delete(t):r.add(t),r}function Pu(e){const{ref:t,as:r,className:o,items:n,variant:a,motionProps:s,expandedKeys:i,disabledKeys:d,selectedKeys:p,children:f,defaultExpandedKeys:$,selectionMode:w="single",selectionBehavior:v="toggle",keepContentMounted:x=!1,disallowEmptySelection:C,defaultSelectedKeys:T,onExpandedChange:R,onSelectionChange:O,dividerProps:A={},isCompact:z=!1,isDisabled:K=!1,showDivider:D=!0,hideIndicator:U=!1,disableAnimation:b=!1,disableIndicatorAnimation:L=!1,itemClasses:_,...k}=e,[M,h]=c.useState(null),E=r||"div",N=typeof E=="string",B=Ot(t),F=c.useMemo(()=>sc({variant:a,className:o}),[a,o]),q={children:c.useMemo(()=>{let oe=[];return c.Children.map(f,re=>{var ie;if(c.isValidElement(re)&&typeof((ie=re.props)==null?void 0:ie.children)!="string"){const be=c.cloneElement(re,{hasChildItems:!1});oe.push(be)}else oe.push(re)}),oe},[f]),items:n},V={expandedKeys:i,defaultExpandedKeys:$,onExpandedChange:R},m={disabledKeys:d,selectedKeys:p,selectionMode:w,selectionBehavior:v,disallowEmptySelection:C,defaultSelectedKeys:T??$,onSelectionChange:O,...q,...V},j=Eu(m);j.selectionManager.setFocusedKey=oe=>{h(oe)};const{accordionProps:G}=cu({...q,...V},j,B),Z=c.useMemo(()=>({state:j,focusedKey:M,motionProps:s,isCompact:z,isDisabled:K,hideIndicator:U,disableAnimation:b,keepContentMounted:x,disableIndicatorAnimation:L}),[M,z,K,U,p,b,x,j==null?void 0:j.expandedKeys.values,L,j.expandedKeys.size,j.disabledKeys.size,s]),Q=c.useCallback((oe={})=>({ref:B,className:F,"data-orientation":"vertical",...xe(G,ko(k,{enabled:N}),oe)}),[]),ne=c.useCallback((oe,re)=>{oe&&h(re)},[]);return{Component:E,values:Z,state:j,focusedKey:M,getBaseProps:Q,isSplitted:a==="splitted",classNames:F,showDivider:D,dividerProps:A,disableAnimation:b,handleFocusChanged:ne,itemClasses:_}}function Tu(e){let t=ko(e,{enabled:typeof e.elementType=="string"}),r;return e.orientation==="vertical"&&(r="vertical"),e.elementType!=="hr"?{separatorProps:{...t,role:"separator","aria-orientation":r}}:{separatorProps:t}}function ku(e){const{as:t,className:r,orientation:o,...n}=e;let a=t||"hr";a==="hr"&&o==="vertical"&&(a="div");const{separatorProps:s}=Tu({elementType:typeof a=="string"?a:"hr",orientation:o}),i=c.useMemo(()=>ac({orientation:o,className:r}),[o,r]),d=c.useCallback((p={})=>({className:i,role:"separator","data-orientation":o,...s,...n,...p}),[i,o,s,n]);return{Component:a,getDividerProps:d}}var gs=it((e,t)=>{const{Component:r,getDividerProps:o}=ku({...e});return g.jsx(r,{ref:t,...o()})});gs.displayName="NextUI.Divider";var Mu=gs,bs=it((e,t)=>{const{Component:r,values:o,state:n,isSplitted:a,showDivider:s,getBaseProps:i,disableAnimation:d,handleFocusChanged:p,itemClasses:f}=Pu({...e,ref:t}),$=c.useCallback((v,x)=>p(v,x),[p]),w=c.useMemo(()=>[...n.collection].map((v,x)=>{const C={...f,...v.props.classNames||{}};return g.jsxs(c.Fragment,{children:[g.jsx(uu,{item:v,onFocusChange:$,...o,...v.props,classNames:C}),!v.props.hidden&&!a&&s&&x<n.collection.size-1&&g.jsx(Mu,{})]},v.key)}),[o,f,$,a,s,n.collection]);return g.jsx(r,{...i(),children:d?w:g.jsx(he.LayoutGroup,{children:w})})});bs.displayName="NextUI.Accordion";var Iu=bs,Ru=e=>{const t={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(t==null?void 0:t[e])||{}},Ou=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],da=(e,t)=>{if(t.includes("-")){const[,r]=t.split("-");return`${e}-${r}`}return e},Au=vu,ju=Au;const Lu=S.styled(Iu)`
|
|
104
104
|
width: 100%;
|
|
105
|
-
|
|
105
|
+
${({theme:e,variant:t})=>{var r,o,n,a,s,i;switch(t){case"shadow":return S.css`
|
|
106
|
+
padding-inline: 1rem;
|
|
107
|
+
border-radius: 0.75rem;
|
|
108
|
+
background-color: ${((o=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:o[100])??u.colors.slate[200]};
|
|
109
|
+
box-shadow: ${((a=(n=e==null?void 0:e.colors)==null?void 0:n.slate)==null?void 0:a[200])??u.colors.slate[200]}
|
|
110
|
+
0px 0px 0px 1px;
|
|
111
|
+
`;case"bordered":return S.css`
|
|
112
|
+
padding-inline: 1rem;
|
|
113
|
+
border-radius: 0.75rem;
|
|
114
|
+
border: 2px solid
|
|
115
|
+
${((i=(s=e==null?void 0:e.colors)==null?void 0:s.slate)==null?void 0:i[200])??u.colors.slate[200]};
|
|
116
|
+
`;case"splitted":return S.css`
|
|
117
|
+
display: flex;
|
|
118
|
+
flex-direction: column;
|
|
119
|
+
gap: 0.5rem;
|
|
120
|
+
`;case"light":default:return S.css`
|
|
121
|
+
padding-inline: 0.5rem;
|
|
122
|
+
`}}};
|
|
123
|
+
|
|
124
|
+
.accordion-base {
|
|
125
|
+
&[data-disabled] {
|
|
126
|
+
pointer-events: none;
|
|
127
|
+
opacity: 0.5;
|
|
128
|
+
}
|
|
106
129
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
130
|
+
${({theme:e,variant:t})=>{var r,o,n,a;switch(t){case"splitted":return S.css`
|
|
131
|
+
padding-inline: 1rem;
|
|
132
|
+
border-radius: 0.75rem;
|
|
133
|
+
background-color: ${((o=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:o[100])??u.colors.slate[100]};
|
|
134
|
+
box-shadow: ${((a=(n=e==null?void 0:e.colors)==null?void 0:n.slate)==null?void 0:a[200])??u.colors.slate[200]}
|
|
135
|
+
0px 0px 0px 1px;
|
|
136
|
+
`;default:return S.css``}}};
|
|
111
137
|
}
|
|
112
138
|
|
|
113
|
-
|
|
139
|
+
.accordion-heading {
|
|
114
140
|
margin: 0;
|
|
115
141
|
}
|
|
116
142
|
|
|
117
|
-
|
|
118
|
-
font-size: 0.9rem;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
button {
|
|
122
|
-
appearance: none;
|
|
123
|
-
box-sizing: border-box;
|
|
124
|
-
text-overflow: ellipsis;
|
|
125
|
-
cursor: default;
|
|
126
|
-
background-color: inherit;
|
|
127
|
-
text-align: start;
|
|
128
|
-
border: 0;
|
|
143
|
+
.accordion-trigger {
|
|
129
144
|
width: 100%;
|
|
130
|
-
|
|
131
|
-
padding: 1rem 0;
|
|
132
|
-
font-family: inherit;
|
|
145
|
+
height: 100%;
|
|
133
146
|
display: flex;
|
|
134
147
|
align-items: center;
|
|
135
|
-
|
|
148
|
+
gap: 0.75rem;
|
|
149
|
+
padding: ${({isCompact:e})=>e?"0.5rem 0":"1rem 0"};
|
|
150
|
+
appearance: button;
|
|
151
|
+
color: inherit;
|
|
152
|
+
background-color: transparent;
|
|
153
|
+
-webkit-tap-highlight-color: transparent;
|
|
154
|
+
outline: 2px solid transparent;
|
|
155
|
+
outline-offset: 2px;
|
|
156
|
+
cursor: pointer;
|
|
157
|
+
border: 0 solid transparent;
|
|
158
|
+
user-select: none;
|
|
136
159
|
|
|
137
160
|
.text-large {
|
|
138
|
-
font-size:
|
|
139
|
-
line-height: 1.
|
|
161
|
+
font-size: 1.125rem;
|
|
162
|
+
line-height: 1.75rem;
|
|
140
163
|
font-weight: 600;
|
|
141
|
-
display: block;
|
|
142
164
|
}
|
|
143
165
|
|
|
144
|
-
.text-
|
|
145
|
-
font-size:
|
|
146
|
-
|
|
147
|
-
display: block;
|
|
166
|
+
.text-medium {
|
|
167
|
+
font-size: 1rem;
|
|
168
|
+
line-height: 1.5;
|
|
148
169
|
}
|
|
149
170
|
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
height:
|
|
171
|
+
.text-small {
|
|
172
|
+
font-size: 0.875rem;
|
|
173
|
+
line-height: 1.2;
|
|
153
174
|
}
|
|
154
175
|
|
|
155
176
|
&:not([data-focus-visible='true']) {
|
|
156
177
|
outline: 0;
|
|
157
178
|
}
|
|
179
|
+
}
|
|
158
180
|
|
|
159
|
-
|
|
160
|
-
|
|
181
|
+
.accordion-start_content {
|
|
182
|
+
flex-shrink: 0;
|
|
183
|
+
}
|
|
161
184
|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
185
|
+
.accordion-title_wrapper {
|
|
186
|
+
display: flex;
|
|
187
|
+
flex-direction: column;
|
|
188
|
+
flex: 1 1 0%;
|
|
189
|
+
text-align: start;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.accordion-indicator {
|
|
193
|
+
transition: transform 300ms ease;
|
|
194
|
+
&.text-large,
|
|
195
|
+
&.text-medium,
|
|
196
|
+
&.text-small {
|
|
197
|
+
line-height: 0;
|
|
198
|
+
}
|
|
199
|
+
transform: rotate(-90deg);
|
|
200
|
+
&[data-open='true'] {
|
|
201
|
+
transform: rotate(90deg);
|
|
165
202
|
}
|
|
203
|
+
svg {
|
|
204
|
+
width: 1rem;
|
|
205
|
+
height: 1rem;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.accordion-content {
|
|
210
|
+
padding-block: ${({isCompact:e})=>e?"0.25rem":"0.5rem"};
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
[role='separator'] {
|
|
214
|
+
border-width: 1px 0 0;
|
|
215
|
+
border-style: solid;
|
|
216
|
+
border-color: ${({theme:e,variant:t})=>{var r,o,n,a;switch(t){case"shadow":return((o=(r=e==null?void 0:e.colors)==null?void 0:r.slate)==null?void 0:o[300])??u.colors.slate[300];case"bordered":case"splitted":case"light":default:return((a=(n=e==null?void 0:e.colors)==null?void 0:n.slate)==null?void 0:a[200])??u.colors.slate[200]}}};
|
|
217
|
+
margin: 0;
|
|
166
218
|
}
|
|
167
|
-
`;function
|
|
219
|
+
`;function _u({children:e,...t}){const r={base:"accordion-base",heading:"accordion-heading",trigger:"accordion-trigger",titleWrapper:"accordion-title_wrapper",title:"accordion-title",subtitle:"accordion-subtitle",startContent:"accordion-start_content",indicator:"accordion-indicator",content:"accordion-content"};return g.jsx(Lu,{itemClasses:r,...t,children:e})}function Ku(e){const[t,r]=is(e,Dn.variantKeys),{as:o,children:n,className:a,content:s,classNames:i,...d}=t,p=o||"span",f=c.useMemo(()=>{var C;return((C=String(s))==null?void 0:C.length)===1||(e==null?void 0:e.isOneChar)},[s,e==null?void 0:e.isOneChar]),$=c.useMemo(()=>{var C;return((C=String(s))==null?void 0:C.length)===0},[s]),w=tt(i==null?void 0:i.badge,a),v=c.useMemo(()=>Dn({...r,showOutline:e!=null&&e.disableOutline?!(e!=null&&e.disableOutline):e==null?void 0:e.showOutline,isOneChar:f,isDot:$}),[Po(r),f,$]),x=()=>({className:v.badge({class:w}),"data-invisible":e.isInvisible,...d});return{Component:p,children:n,content:s,slots:v,classNames:i,disableAnimation:e==null?void 0:e.disableAnimation,isInvisible:e==null?void 0:e.isInvisible,getBadgeProps:x}}var vs=it((e,t)=>{const{Component:r,children:o,content:n,slots:a,classNames:s,getBadgeProps:i}=Ku({...e});return g.jsxs("div",{className:a.base({class:s==null?void 0:s.base}),children:[o,g.jsx(r,{ref:t,...i(),children:n})]})});vs.displayName="NextUI.Badge";var Du=vs;const Nu=S.styled.div`
|
|
168
220
|
position: relative;
|
|
169
221
|
display: inline-flex;
|
|
170
222
|
flex-shrink: 0;
|
|
171
|
-
`,
|
|
223
|
+
`,Fu=S.styled.div`
|
|
172
224
|
position: absolute;
|
|
173
225
|
z-index: 2;
|
|
174
226
|
|
|
175
227
|
transform: ${({placement:e})=>{const t={"top-right":"translate(50%, -50%)","bottom-right":"translate(50%, 50%)","bottom-left":"translate(-50%, 50%)","top-left":"translate(-50%, -50%)"};return e&&t[e]?t[e]:t["top-right"]}};
|
|
176
228
|
|
|
177
229
|
${({placement:e,shape:t})=>{const r={rectangle:"5%",circle:"10%"};let o=r.rectangle;t&&r[t]&&(o=r[t]);const n={"top-right":{top:o,right:o},"bottom-right":{bottom:o,right:o},"top-left":{top:o,left:o},"bottom-left":{bottom:o,left:o}};return e&&n[e]?n[e]:n["top-right"]}};
|
|
178
|
-
`,
|
|
230
|
+
`,zu=S.styled(Du)`
|
|
179
231
|
display: flex;
|
|
180
232
|
flex-wrap: wrap;
|
|
181
233
|
place-content: center;
|
|
@@ -189,7 +241,7 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
189
241
|
transition: transform 0.3s ease-out, opacity 0.3s ease-out;
|
|
190
242
|
white-space: nowrap;
|
|
191
243
|
|
|
192
|
-
${({size:e,content:t,isOneChar:r,isDot:o})=>{var
|
|
244
|
+
${({size:e,content:t,isOneChar:r,isDot:o})=>{var i;const n={sm:"1rem",md:"1.25rem",lg:"1.5rem;"},a=((i=String(t))==null?void 0:i.length)===1||r;let s=n.md;return e&&n[e]&&(s=n[e]),!t||o?"width: 0.875rem; height: 0.875rem;":a?`width: ${s}; height: ${s};`:`min-width: ${s}; height: ${s};`}}
|
|
193
245
|
|
|
194
246
|
font-size: ${({size:e,content:t,isDot:r})=>{const o={sm:"0.75rem",md:"0.875rem",lg:"0.875rem"};if(typeof t=="string"&&t.length>1||r)return o.sm;let n=o.md;return e&&o[e]&&(n=o[e]),n}};
|
|
195
247
|
|
|
@@ -216,17 +268,17 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
216
268
|
transparent 60%
|
|
217
269
|
)
|
|
218
270
|
0px 4px 6px -4px`:"none"}};
|
|
219
|
-
`,
|
|
271
|
+
`,Bu={hidden:{opacity:0,transform:"scale(0)"},show:{opacity:1,transform:"scale(1)"}};function Vu({children:e,isInvisible:t,disableAnimation:r,placement:o,shape:n,...a}){const s=c.useId(),i=r?{duration:0}:{type:"spring",bounce:.3};return g.jsxs(Nu,{children:[e,g.jsx(Fu,{placement:o,shape:n,children:g.jsx(he.AnimatePresence,{children:!t&&g.jsx(he.motion.div,{variants:Bu,initial:r?"show":"hidden",transition:i,animate:"show",exit:"hidden",children:g.jsx(zu,{...a,isInvisible:t,showOutline:a.showOutline??!0})},`badge-${s}`)})})]})}function Hu({children:e,...t}){return g.jsx("span",{...t,"aria-hidden":"true",children:e??g.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[g.jsx("path",{d:"M12 13C12.5523 13 13 12.5523 13 12C13 11.4477 12.5523 11 12 11C11.4477 11 11 11.4477 11 12C11 12.5523 11.4477 13 12 13Z",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),g.jsx("path",{d:"M19 13C19.5523 13 20 12.5523 20 12C20 11.4477 19.5523 11 19 11C18.4477 11 18 11.4477 18 12C18 12.5523 18.4477 13 19 13Z",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),g.jsx("path",{d:"M5 13C5.55228 13 6 12.5523 6 12C6 11.4477 5.55228 11 5 11C4.44772 11 4 11.4477 4 12C4 12.5523 4.44772 13 5 13Z",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})})}const Uu=S.styled(W.Breadcrumbs)`
|
|
220
272
|
display: flex;
|
|
221
273
|
align-items: center;
|
|
222
274
|
list-style: none;
|
|
223
275
|
margin: 0 0 1rem;
|
|
224
276
|
padding: 0.3125rem 0 0;
|
|
225
277
|
font-size: 0.9rem;
|
|
226
|
-
`,
|
|
278
|
+
`,Wu=S.styled(W.Breadcrumb)`
|
|
227
279
|
display: flex;
|
|
228
280
|
align-items: center;
|
|
229
|
-
`,
|
|
281
|
+
`,Gu=S.styled(W.Breadcrumb)`
|
|
230
282
|
display: flex;
|
|
231
283
|
align-items: center;
|
|
232
284
|
margin: 0 0.5rem;
|
|
@@ -236,7 +288,7 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
236
288
|
width: 1rem;
|
|
237
289
|
height: 1rem;
|
|
238
290
|
}
|
|
239
|
-
`,
|
|
291
|
+
`,Yu=S.styled(W.Link)`
|
|
240
292
|
color: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:r[600])??u.colors.slate[600]}};
|
|
241
293
|
text-decoration: none;
|
|
242
294
|
cursor: pointer;
|
|
@@ -262,7 +314,7 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
262
314
|
color: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:r[400])??u.colors.slate[400]}};
|
|
263
315
|
}
|
|
264
316
|
}
|
|
265
|
-
`;function
|
|
317
|
+
`;function Xu({children:e,...t}){return g.jsx(Wu,{...t,children:e})}function qu(e){return g.jsx(Yu,{...e})}function Zu({children:e,...t}){return g.jsx(Gu,{...t,children:e??g.jsx("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:g.jsx("path",{d:"M6 12L10 8L6 4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})}function Ju({children:e,...t}){return g.jsx(Uu,{...t,children:e})}const Fe=S.styled(W.Button)`
|
|
266
318
|
display: flex;
|
|
267
319
|
align-items: center;
|
|
268
320
|
padding: 0.4rem 2rem;
|
|
@@ -297,13 +349,13 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
297
349
|
|
|
298
350
|
&[data-disabled] {
|
|
299
351
|
background-color: ${({isLoading:e,theme:t,variant:r})=>{var o,n,a,s;switch(r){case"ghost":case"outline":return"transparent";case"solid":default:return e?((n=(o=t==null?void 0:t.colors)==null?void 0:o.slate)==null?void 0:n[900])??u.colors.slate[900]:((s=(a=t==null?void 0:t.colors)==null?void 0:a.slate)==null?void 0:s[100])??u.colors.slate[100]}}};
|
|
300
|
-
border-color: ${({isLoading:e,theme:t,variant:r})=>{var o,n,a,s,
|
|
301
|
-
color: ${({isLoading:e,theme:t,variant:r})=>{var o,n,a,s,
|
|
352
|
+
border-color: ${({isLoading:e,theme:t,variant:r})=>{var o,n,a,s,i,d,p,f;switch(r){case"ghost":return"transparent";case"outline":return e?((n=(o=t==null?void 0:t.colors)==null?void 0:o.slate)==null?void 0:n[300])??u.colors.slate[300]:((s=(a=t==null?void 0:t.colors)==null?void 0:a.slate)==null?void 0:s[200])??u.colors.slate[200];case"solid":default:return e?((d=(i=t==null?void 0:t.colors)==null?void 0:i.slate)==null?void 0:d[900])??u.colors.slate[900]:((f=(p=t==null?void 0:t.colors)==null?void 0:p.slate)==null?void 0:f[200])??u.colors.slate[200]}}};
|
|
353
|
+
color: ${({isLoading:e,theme:t,variant:r})=>{var o,n,a,s,i,d,p;switch(r){case"ghost":case"outline":return e?((n=(o=t==null?void 0:t.colors)==null?void 0:o.slate)==null?void 0:n[900])??u.colors.slate[900]:((s=(a=t==null?void 0:t.colors)==null?void 0:a.slate)==null?void 0:s[500])??u.colors.slate[500];case"solid":default:return e?((i=t==null?void 0:t.colors)==null?void 0:i.white)??u.colors.white:((p=(d=t==null?void 0:t.colors)==null?void 0:d.slate)==null?void 0:p[400])??u.colors.slate[400]}}};
|
|
302
354
|
}
|
|
303
|
-
`,
|
|
355
|
+
`,Qu=c.forwardRef(function({isDisabled:t=!1,isLoading:r=!1,size:o="md",variant:n="solid",...a},s){return g.jsx(Fe,{isDisabled:t||r,isLoading:r,size:o,variant:n,...a,ref:s})}),ef=S.styled.div`
|
|
304
356
|
display: flex;
|
|
305
357
|
flex-direction: column;
|
|
306
|
-
`;function
|
|
358
|
+
`;function tf({children:e,...t}){return g.jsx(ef,{...t,children:e})}const Ie=S.styled.div`
|
|
307
359
|
width: 1.5rem;
|
|
308
360
|
height: 1.5rem;
|
|
309
361
|
border: 1px solid
|
|
@@ -313,7 +365,7 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
313
365
|
display: flex;
|
|
314
366
|
align-items: center;
|
|
315
367
|
justify-content: center;
|
|
316
|
-
`,sr=
|
|
368
|
+
`,sr=S.styled.svg`
|
|
317
369
|
width: 1rem;
|
|
318
370
|
height: 1rem;
|
|
319
371
|
fill: none;
|
|
@@ -322,7 +374,7 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
322
374
|
stroke-dasharray: 22px;
|
|
323
375
|
stroke-dashoffset: 66;
|
|
324
376
|
transition: all 200ms;
|
|
325
|
-
`,
|
|
377
|
+
`,rf=S.styled(W.Checkbox)`
|
|
326
378
|
display: flex;
|
|
327
379
|
align-items: center;
|
|
328
380
|
gap: 0.5rem;
|
|
@@ -330,11 +382,11 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
330
382
|
color: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:r[500])??u.colors.slate[500]}};
|
|
331
383
|
forced-color-adjust: none;
|
|
332
384
|
|
|
333
|
-
&[data-hovered] ${
|
|
385
|
+
&[data-hovered] ${Ie} {
|
|
334
386
|
border-color: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:r[400])??u.colors.slate[400]}};
|
|
335
387
|
}
|
|
336
388
|
|
|
337
|
-
&[data-focused] ${
|
|
389
|
+
&[data-focused] ${Ie} {
|
|
338
390
|
border-color: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:r[400])??u.colors.slate[400]}};
|
|
339
391
|
outline: 2px solid
|
|
340
392
|
${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:r[200])??u.colors.slate[200]}};
|
|
@@ -350,12 +402,12 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
350
402
|
}
|
|
351
403
|
}
|
|
352
404
|
|
|
353
|
-
&[data-indeterminate] ${
|
|
405
|
+
&[data-indeterminate] ${Ie} {
|
|
354
406
|
border-color: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:r[200])??u.colors.slate[200]}};
|
|
355
407
|
background: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:r[100])??u.colors.slate[100]}};
|
|
356
408
|
}
|
|
357
409
|
}
|
|
358
|
-
&[data-disabled] ${
|
|
410
|
+
&[data-disabled] ${Ie} {
|
|
359
411
|
border-color: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:r[200])??u.colors.slate[200]}};
|
|
360
412
|
background: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:r[100])??u.colors.slate[100]}};
|
|
361
413
|
}
|
|
@@ -363,19 +415,19 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
363
415
|
&[data-invalid] {
|
|
364
416
|
color: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:r[500])??u.colors.red[500]}};
|
|
365
417
|
|
|
366
|
-
${
|
|
418
|
+
${Ie} {
|
|
367
419
|
background: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:r[100])??u.colors.red[100]}};
|
|
368
420
|
color: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:r[600])??u.colors.red[600]}};
|
|
369
421
|
border: 1px solid
|
|
370
422
|
${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:r[500])??u.colors.red[500]}};
|
|
371
423
|
}
|
|
372
424
|
|
|
373
|
-
&[data-hovered] ${
|
|
425
|
+
&[data-hovered] ${Ie} {
|
|
374
426
|
border: 1px solid
|
|
375
427
|
${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:r[600])??u.colors.red[600]}};
|
|
376
428
|
}
|
|
377
429
|
|
|
378
|
-
&[data-focused] ${
|
|
430
|
+
&[data-focused] ${Ie} {
|
|
379
431
|
border: 1px solid
|
|
380
432
|
${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:r[600])??u.colors.red[600]}};
|
|
381
433
|
outline: 2px solid
|
|
@@ -384,13 +436,13 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
384
436
|
|
|
385
437
|
&[data-selected],
|
|
386
438
|
&[data-indeterminate] {
|
|
387
|
-
${
|
|
439
|
+
${Ie} {
|
|
388
440
|
background: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:r[500])??u.colors.red[500]}};
|
|
389
441
|
border: 1px solid
|
|
390
442
|
${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:r[500])??u.colors.red[500]}};
|
|
391
443
|
}
|
|
392
444
|
|
|
393
|
-
&[data-pressed] ${
|
|
445
|
+
&[data-pressed] ${Ie} {
|
|
394
446
|
background: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:r[600])??u.colors.red[600]}};
|
|
395
447
|
border: 1px solid
|
|
396
448
|
${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:r[600])??u.colors.red[600]}};
|
|
@@ -400,12 +452,12 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
400
452
|
|
|
401
453
|
&[data-selected],
|
|
402
454
|
&[data-indeterminate] {
|
|
403
|
-
${
|
|
455
|
+
${Ie} {
|
|
404
456
|
border-color: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:r[300])??u.colors.slate[300]}};
|
|
405
457
|
background: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:r[300])??u.colors.slate[300]}};
|
|
406
458
|
}
|
|
407
459
|
|
|
408
|
-
&[data-pressed] ${
|
|
460
|
+
&[data-pressed] ${Ie} {
|
|
409
461
|
border-color: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:r[400])??u.colors.slate[400]}};
|
|
410
462
|
background: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:r[400])??u.colors.slate[400]}};
|
|
411
463
|
}
|
|
@@ -421,22 +473,22 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
421
473
|
fill: ${({theme:e})=>{var t;return((t=e==null?void 0:e.colors)==null?void 0:t.white)??u.colors.white}};
|
|
422
474
|
}
|
|
423
475
|
}
|
|
424
|
-
`;function
|
|
476
|
+
`;function of({children:e,...t}){return g.jsx(rf,{...t,children:({isIndeterminate:r})=>g.jsxs(g.Fragment,{children:[g.jsx(Ie,{children:g.jsx(sr,{viewBox:"0 0 18 18","aria-hidden":"true",children:r?g.jsx("rect",{x:1,y:7.5,width:15,height:3}):g.jsx("polyline",{points:"1 9 7 14 15 4"})})}),e]})})}const nf=S.styled.div`
|
|
425
477
|
width: 100%;
|
|
426
|
-
`,
|
|
478
|
+
`,af=S.styled(he.motion.div)`
|
|
427
479
|
width: 100%;
|
|
428
480
|
overflow: hidden;
|
|
429
|
-
`,Vo=c.createContext({});function
|
|
481
|
+
`,Vo=c.createContext({});function sf({children:e,...t}){const r=c.useId(),[o,n]=hr(t.isOpen,t.defaultOpen||!1,t.onOpenChange),a=c.useRef(null),s=c.useCallback(()=>{n(!o)},[n,o]);return g.jsx(W.Provider,{values:[[Vo,{isOpen:o,id:r,defaultOpen:t.defaultOpen||!1}]],children:g.jsx(td,{ref:a,isPressed:o,onPress:s,"aria-expanded":o,"aria-controls":r,children:g.jsx(nf,{children:e})})})}function lf({children:e}){const{isOpen:t,id:r,defaultOpen:o}=c.useContext(Vo);return g.jsx(af,{id:r,variants:{hidden:{height:"0px",opacity:0},visible:{height:"auto",opacity:1}},initial:o?"visible":"hidden",animate:t?"visible":"hidden",transition:{type:"spring",bounce:0},children:e})}const cf=e=>{let t="";return Object.values(e).forEach(r=>{t+=`
|
|
430
482
|
@media (min-width: ${r}) {
|
|
431
483
|
max-width: ${r};
|
|
432
484
|
}
|
|
433
|
-
`}),t},
|
|
485
|
+
`}),t},df=S.styled.div`
|
|
434
486
|
width: 100%;
|
|
435
487
|
margin: 0 auto;
|
|
436
488
|
padding: 0 1rem;
|
|
437
489
|
|
|
438
|
-
${({theme:e})=>
|
|
439
|
-
`,
|
|
490
|
+
${({theme:e})=>cf((e==null?void 0:e.screens)??u.screens)}
|
|
491
|
+
`,uf=c.forwardRef(({children:e,...t},r)=>g.jsx(df,{...t,ref:r,children:e})),ff=S.styled(he.motion(W.Popover))`
|
|
440
492
|
padding: 0.4rem 0;
|
|
441
493
|
box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
|
|
442
494
|
border-radius: 0.375rem;
|
|
@@ -444,9 +496,9 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
444
496
|
background: ${({theme:e})=>{var t;return((t=e==null?void 0:e.colors)==null?void 0:t.white)??u.colors.white}};
|
|
445
497
|
border: 1px solid
|
|
446
498
|
${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:r[300])??u.colors.slate[300]}};
|
|
447
|
-
`;function
|
|
499
|
+
`;function ys({children:e,key:t,onAction:r,setAnimation:o,animation:n="hidden",...a}){return g.jsx(ff,{isExiting:n==="hidden",onAnimationComplete:s=>{o(i=>s==="hidden"&&i==="hidden"?"unmounted":i)},variants:{hidden:{opacity:0,y:-10},visible:{opacity:1,y:0}},initial:"hidden",animate:n,...a,children:g.jsx(W.Menu,{style:{outline:"none"},onAction:r,children:e})},t)}ys.defaultProps={key:void 0,onAction:void 0};const pf=S.styled(W.DateField)`
|
|
448
500
|
color: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:r[900])??u.colors.slate[900]}};
|
|
449
|
-
`,
|
|
501
|
+
`,gf=S.styled(W.DateInput)`
|
|
450
502
|
display: flex;
|
|
451
503
|
align-items: center;
|
|
452
504
|
border: 1px solid
|
|
@@ -497,7 +549,7 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
497
549
|
${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:r[200])??u.colors.red[200]}};
|
|
498
550
|
}
|
|
499
551
|
}
|
|
500
|
-
`,
|
|
552
|
+
`,bf=S.styled(W.DateSegment)`
|
|
501
553
|
padding: 0.25rem;
|
|
502
554
|
font-variant-numeric: tabular-nums;
|
|
503
555
|
text-align: end;
|
|
@@ -547,24 +599,24 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
547
599
|
color: ${({theme:e})=>{var t;return((t=e==null?void 0:e.colors)==null?void 0:t.white)??u.colors.white}};
|
|
548
600
|
}
|
|
549
601
|
}
|
|
550
|
-
`,
|
|
602
|
+
`,vf=S.styled(W.Label)`
|
|
551
603
|
display: flex;
|
|
552
604
|
font-size: 0.8rem;
|
|
553
605
|
color: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:r[500])??u.colors.slate[500]}};
|
|
554
|
-
`,
|
|
606
|
+
`,yf=S.styled(W.FieldError)`
|
|
555
607
|
display: flex;
|
|
556
608
|
color: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:r[500])??u.colors.red[500]}};
|
|
557
609
|
font-size: 0.8rem;
|
|
558
|
-
|
|
610
|
+
`,$f=S.styled(W.Text)`
|
|
559
611
|
display: flex;
|
|
560
612
|
color: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:r[500])??u.colors.slate[500]}};
|
|
561
613
|
font-size: 0.8rem;
|
|
562
|
-
`;function
|
|
614
|
+
`;function $s({label:e,description:t,errorMessage:r,...o}){return g.jsxs(pf,{...o,children:[g.jsx(vf,{children:e}),g.jsx(gf,{children:n=>g.jsx(bf,{segment:n})}),g.jsx($f,{slot:"description",children:t}),g.jsx(yf,{children:r})]})}$s.defaultProps={label:void 0,description:void 0,errorMessage:void 0};const xf=S.styled.div`
|
|
563
615
|
width: ${({orientation:e})=>e==="vertical"?"1px":"100%"};
|
|
564
616
|
height: ${({orientation:e})=>e==="vertical"?"auto":"1px"};
|
|
565
617
|
margin: ${({orientation:e})=>e==="vertical"?"0 1rem":"1rem 0"};
|
|
566
618
|
background: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:r[200])??u.colors.slate[200]}};
|
|
567
|
-
`;function
|
|
619
|
+
`;function mf(e){const{orientation:t}=e,{separatorProps:r}=Yi.useSeparator(e);return g.jsx(xf,{...r,orientation:t})}const Qe=S.styled(W.Input)`
|
|
568
620
|
border: 1px solid
|
|
569
621
|
${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:r[300])??u.colors.slate[300]}};
|
|
570
622
|
font-size: 0.9rem;
|
|
@@ -617,24 +669,24 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
617
669
|
::placeholder {
|
|
618
670
|
color: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:r[400])??u.colors.slate[400]}};
|
|
619
671
|
}
|
|
620
|
-
|
|
672
|
+
`,xs=S.styled(W.Label)`
|
|
621
673
|
display: flex;
|
|
622
674
|
font-size: 0.8rem;
|
|
623
675
|
color: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:r[500])??u.colors.slate[500]}};
|
|
624
|
-
`,
|
|
676
|
+
`,hf=S.styled(W.TextField)`
|
|
625
677
|
display: flex;
|
|
626
678
|
flex-direction: column;
|
|
627
679
|
width: 100%;
|
|
628
680
|
color: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:r[900])??u.colors.slate[900]}};
|
|
629
|
-
`,ms=
|
|
681
|
+
`,ms=S.styled(W.FieldError)`
|
|
630
682
|
display: flex;
|
|
631
683
|
color: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:r[500])??u.colors.red[500]}};
|
|
632
684
|
font-size: 0.8rem;
|
|
633
|
-
`,
|
|
685
|
+
`,hs=S.styled(W.Text)`
|
|
634
686
|
display: flex;
|
|
635
687
|
color: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:r[500])??u.colors.slate[500]}};
|
|
636
688
|
font-size: 0.8rem;
|
|
637
|
-
`;function
|
|
689
|
+
`;function ws({label:e,description:t,errorMessage:r,...o}){return g.jsxs(hf,{...o,children:[g.jsx(xs,{children:e}),g.jsx(Qe,{}),t&&g.jsx(hs,{slot:"description",children:t}),g.jsx(ms,{children:r})]})}ws.defaultProps={label:void 0,description:void 0,errorMessage:void 0};const wf=S.styled(W.Link)`
|
|
638
690
|
color: ${({isDisabled:e,theme:t})=>{var r,o,n,a;return e?((o=(r=t==null?void 0:t.colors)==null?void 0:r.slate)==null?void 0:o[300])??u.colors.slate[300]:((a=(n=t==null?void 0:t.colors)==null?void 0:n.slate)==null?void 0:a[500])??u.colors.slate[500]}};
|
|
639
691
|
cursor: ${({isDisabled:e})=>e?"default":"pointer"};
|
|
640
692
|
text-decoration: none;
|
|
@@ -644,33 +696,33 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
644
696
|
&:hover {
|
|
645
697
|
color: ${({isDisabled:e,theme:t})=>{var r,o,n,a;return e?((o=(r=t==null?void 0:t.colors)==null?void 0:r.slate)==null?void 0:o[300])??u.colors.slate[300]:((a=(n=t==null?void 0:t.colors)==null?void 0:n.slate)==null?void 0:a[800])??u.colors.slate[800]}};
|
|
646
698
|
}
|
|
647
|
-
`;function
|
|
699
|
+
`;function Cf({children:e,...t}){return g.jsx(wf,{...t,children:e})}const Ef=S.styled(W.Meter)`
|
|
648
700
|
display: flex;
|
|
649
701
|
flex-direction: column;
|
|
650
702
|
gap: 0.5rem;
|
|
651
|
-
`,
|
|
703
|
+
`,Sf=S.styled.div`
|
|
652
704
|
display: flex;
|
|
653
705
|
justify-content: space-between;
|
|
654
706
|
gap: 1rem;
|
|
655
|
-
`,
|
|
707
|
+
`,Pf=S.styled(W.Label)`
|
|
656
708
|
font-size: 0.875rem;
|
|
657
|
-
`,
|
|
709
|
+
`,Tf=S.styled.span`
|
|
658
710
|
font-size: 0.875rem;
|
|
659
711
|
font-variant-numeric: tabular-nums;
|
|
660
712
|
margin-left: auto;
|
|
661
|
-
`,
|
|
713
|
+
`,kf=S.styled.div`
|
|
662
714
|
height: 0.625rem;
|
|
663
715
|
border-radius: 0.3rem;
|
|
664
716
|
background-color: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:r[300])??u.colors.slate[300]}};
|
|
665
717
|
forced-color-adjust: none;
|
|
666
718
|
overflow: hidden;
|
|
667
|
-
`,
|
|
719
|
+
`,Mf=S.styled(he.motion.div)`
|
|
668
720
|
height: 100%;
|
|
669
721
|
background-color: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:r[800])??u.colors.slate[800]}};
|
|
670
|
-
`;function
|
|
722
|
+
`;function If({label:e,showValue:t=!0,value:r=0,minValue:o=0,maxValue:n=100,formatOptions:a={style:"percent"},...s}){return g.jsx(Ef,{value:r,minValue:o,maxValue:n,formatOptions:a,...s,children:({percentage:i,valueText:d})=>g.jsxs(g.Fragment,{children:[(e||t)&&g.jsxs(Sf,{children:[e&&g.jsx(Pf,{children:e}),t&&g.jsx(Tf,{children:d})]}),g.jsx(kf,{children:g.jsx(Mf,{initial:{width:`${i}%`},animate:{width:`${i}%`},transition:{type:"spring",bounce:0}})})]})})}const Rf=S.styled(W.Modal)`
|
|
671
723
|
position: absolute;
|
|
672
724
|
inset: 50%;
|
|
673
|
-
`;function
|
|
725
|
+
`;function Of({children:e,...t}){return g.jsx(Rf,{...t,children:e})}const ua=S.keyframes`
|
|
674
726
|
0% {
|
|
675
727
|
opacity: 0;
|
|
676
728
|
backdrop-filter: blur(0);
|
|
@@ -680,7 +732,7 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
680
732
|
opacity: 1;
|
|
681
733
|
backdrop-filter: blur(10px);
|
|
682
734
|
}
|
|
683
|
-
`,
|
|
735
|
+
`,Af=S.styled(W.ModalOverlay)`
|
|
684
736
|
backdrop-filter: blur(10px);
|
|
685
737
|
background: ${({theme:e})=>{var t;return`rgb(from ${((t=e==null?void 0:e.colors)==null?void 0:t.black)??u.colors.black} r g b / 30%)`}};
|
|
686
738
|
position: fixed;
|
|
@@ -697,7 +749,7 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
697
749
|
&[data-exiting] {
|
|
698
750
|
animation: ${ua} 300ms reverse;
|
|
699
751
|
}
|
|
700
|
-
`;function
|
|
752
|
+
`;function jf(e){return g.jsx(Af,{...e})}const fa=S.keyframes`
|
|
701
753
|
from {
|
|
702
754
|
transform: translate(-50%, -50%) scale(0.8);
|
|
703
755
|
}
|
|
@@ -705,7 +757,7 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
705
757
|
to {
|
|
706
758
|
transform: translate(-50%, -50%) scale(1);
|
|
707
759
|
}
|
|
708
|
-
`,bo=
|
|
760
|
+
`,bo=S.styled(W.Dialog)`
|
|
709
761
|
padding: 2rem;
|
|
710
762
|
outline: none;
|
|
711
763
|
box-shadow: 0 0.5rem 1.5rem rgba(0 0 0 / 0.1);
|
|
@@ -720,7 +772,7 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
720
772
|
top: 50%;
|
|
721
773
|
left: 50%;
|
|
722
774
|
transform: translate(-50%, -50%);
|
|
723
|
-
`,
|
|
775
|
+
`,Lf=S.createGlobalStyle`
|
|
724
776
|
[data-entering] ${bo} {
|
|
725
777
|
animation: ${fa} 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
|
726
778
|
}
|
|
@@ -728,19 +780,19 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
728
780
|
[data-exiting] ${bo} {
|
|
729
781
|
animation: ${fa} 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275) reverse;
|
|
730
782
|
}
|
|
731
|
-
`;function
|
|
783
|
+
`;function _f(e){return g.jsxs(g.Fragment,{children:[g.jsx(Lf,{}),g.jsx(bo,{...e})]})}const Kf=S.keyframes`
|
|
732
784
|
from { transform: translateY(-100%); }
|
|
733
785
|
to { transform: translateY(0); }
|
|
734
|
-
`,
|
|
786
|
+
`,Df=S.keyframes`
|
|
735
787
|
from { transform: translateX(100%); }
|
|
736
788
|
to { transform: translateX(0); }
|
|
737
|
-
`,
|
|
789
|
+
`,Nf=S.keyframes`
|
|
738
790
|
from { transform: translateY(100%); }
|
|
739
791
|
to { transform: translateY(0); }
|
|
740
|
-
`,
|
|
792
|
+
`,Ff=S.keyframes`
|
|
741
793
|
from { transform: translateX(-100%); }
|
|
742
794
|
to { transform: translateX(0); }
|
|
743
|
-
`,vo=
|
|
795
|
+
`,vo=S.styled(W.Dialog)`
|
|
744
796
|
padding: 2rem;
|
|
745
797
|
position: fixed;
|
|
746
798
|
outline: none;
|
|
@@ -773,7 +825,7 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
773
825
|
border-right-width: 1px;
|
|
774
826
|
box-shadow: 0.5rem 0 1.5rem rgba(0 0 0 / 0.1);
|
|
775
827
|
}
|
|
776
|
-
`,
|
|
828
|
+
`,zf=S.createGlobalStyle`
|
|
777
829
|
[data-exiting] ${vo} {
|
|
778
830
|
animation-direction: reverse;
|
|
779
831
|
animation-timing-function: ease-in;
|
|
@@ -783,31 +835,31 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
783
835
|
[data-exiting] {
|
|
784
836
|
${vo} {
|
|
785
837
|
&[data-direction='top'] {
|
|
786
|
-
animation-name: ${
|
|
838
|
+
animation-name: ${Kf};
|
|
787
839
|
}
|
|
788
840
|
|
|
789
841
|
&[data-direction='right'] {
|
|
790
|
-
animation-name: ${
|
|
842
|
+
animation-name: ${Df};
|
|
791
843
|
}
|
|
792
844
|
|
|
793
845
|
&[data-direction='bottom'] {
|
|
794
|
-
animation-name: ${
|
|
846
|
+
animation-name: ${Nf};
|
|
795
847
|
}
|
|
796
848
|
|
|
797
849
|
&[data-direction='left'] {
|
|
798
|
-
animation-name: ${
|
|
850
|
+
animation-name: ${Ff};
|
|
799
851
|
}
|
|
800
852
|
}
|
|
801
853
|
}
|
|
802
|
-
`;function
|
|
854
|
+
`;function Cs({direction:e,...t}){return g.jsxs(g.Fragment,{children:[g.jsx(zf,{}),g.jsx(vo,{"data-direction":e,...t})]})}Cs.defaultProps={direction:"right"};const Bf=S.styled(W.NumberField)`
|
|
803
855
|
display: flex;
|
|
804
856
|
flex-direction: column;
|
|
805
857
|
width: 100%;
|
|
806
|
-
`,
|
|
858
|
+
`,Vf=S.styled(W.Group)`
|
|
807
859
|
display: flex;
|
|
808
860
|
border-radius: 0.375rem;
|
|
809
861
|
|
|
810
|
-
${
|
|
862
|
+
${Fe} {
|
|
811
863
|
cursor: pointer;
|
|
812
864
|
padding: 0;
|
|
813
865
|
width: 2.5rem;
|
|
@@ -836,7 +888,7 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
836
888
|
}
|
|
837
889
|
|
|
838
890
|
&[data-hovered] {
|
|
839
|
-
${
|
|
891
|
+
${Fe}, ${Qe} {
|
|
840
892
|
border-color: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:r[400])??u.colors.slate[400]}};
|
|
841
893
|
}
|
|
842
894
|
}
|
|
@@ -850,7 +902,7 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
850
902
|
${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:r[200])??u.colors.red[200]}};
|
|
851
903
|
}
|
|
852
904
|
|
|
853
|
-
${
|
|
905
|
+
${Fe}, ${Qe} {
|
|
854
906
|
border-color: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:r[400])??u.colors.slate[400]}};
|
|
855
907
|
}
|
|
856
908
|
}
|
|
@@ -858,17 +910,17 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
858
910
|
&[data-disabled] {
|
|
859
911
|
background: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:r[100])??u.colors.slate[100]}};
|
|
860
912
|
|
|
861
|
-
${
|
|
913
|
+
${Fe} {
|
|
862
914
|
cursor: default;
|
|
863
915
|
}
|
|
864
916
|
|
|
865
|
-
${
|
|
917
|
+
${Fe}, ${Qe} {
|
|
866
918
|
border-color: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:r[200])??u.colors.slate[200]}};
|
|
867
919
|
}
|
|
868
920
|
}
|
|
869
921
|
|
|
870
922
|
&[data-invalid] {
|
|
871
|
-
${
|
|
923
|
+
${Fe}, ${Qe} {
|
|
872
924
|
border-color: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:r[500])??u.colors.red[500]}};
|
|
873
925
|
background: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:r[100])??u.colors.red[100]}};
|
|
874
926
|
color: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:r[600])??u.colors.red[600]}};
|
|
@@ -884,18 +936,18 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
884
936
|
}
|
|
885
937
|
|
|
886
938
|
&[aria-readonly] {
|
|
887
|
-
${
|
|
939
|
+
${Fe} {
|
|
888
940
|
background: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:r[100])??u.colors.slate[100]}};
|
|
889
941
|
border-color: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:r[200])??u.colors.slate[200]}};
|
|
890
942
|
color: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:r[500])??u.colors.slate[500]}};
|
|
891
943
|
cursor: default;
|
|
892
944
|
}
|
|
893
945
|
}
|
|
894
|
-
`,
|
|
946
|
+
`,Hf=g.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:g.jsx("path",{d:"M5 12H19",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),Uf=g.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:g.jsx("path",{d:"M12 5V19M5 12H19",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})});function Es({label:e,description:t,errorMessage:r,isInvalid:o,isReadOnly:n,slots:a,...s}){return g.jsxs(Bf,{isInvalid:o,...s,children:[g.jsx(xs,{children:e}),g.jsxs(Vf,{isInvalid:o,"aria-readonly":n,children:[g.jsx(Fe,{variant:"outline",slot:"decrement",children:a==null?void 0:a.decrementIcon}),g.jsx(Qe,{readOnly:n}),g.jsx(Fe,{variant:"outline",slot:"increment",children:a==null?void 0:a.incrementIcon})]}),t&&g.jsx(hs,{slot:"description",children:t}),g.jsx(ms,{children:r})]})}Es.defaultProps={label:void 0,description:void 0,errorMessage:void 0,slots:{decrementIcon:Hf,incrementIcon:Uf}};const Wf=S.styled(W.Group)`
|
|
895
947
|
display: flex;
|
|
896
948
|
flex-wrap: wrap;
|
|
897
949
|
gap: 0.5rem;
|
|
898
|
-
`,
|
|
950
|
+
`,Gf=S.styled(W.Input)`
|
|
899
951
|
border: 1px solid
|
|
900
952
|
${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:r[300])??u.colors.slate[300]}};
|
|
901
953
|
font-size: 0.9rem;
|
|
@@ -949,70 +1001,70 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
949
1001
|
::placeholder {
|
|
950
1002
|
color: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:r[400])??u.colors.slate[400]}};
|
|
951
1003
|
}
|
|
952
|
-
`,
|
|
1004
|
+
`,Yf=S.styled(W.Label)`
|
|
953
1005
|
display: flex;
|
|
954
1006
|
flex: 1 0 100%;
|
|
955
1007
|
font-size: 0.8rem;
|
|
956
1008
|
color: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:r[500])??u.colors.slate[500]}};
|
|
957
|
-
`,
|
|
1009
|
+
`,Xf=S.styled(W.TextField)`
|
|
958
1010
|
display: flex;
|
|
959
1011
|
flex-direction: column;
|
|
960
1012
|
width: 100%;
|
|
961
1013
|
flex: 1;
|
|
962
1014
|
color: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:r[900])??u.colors.slate[900]}};
|
|
963
|
-
`,
|
|
1015
|
+
`,qf=S.styled(W.TextField)`
|
|
964
1016
|
display: flex;
|
|
965
1017
|
flex-direction: row;
|
|
966
1018
|
flex-wrap: wrap;
|
|
967
1019
|
flex: 1 0 100%;
|
|
968
1020
|
color: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:r[900])??u.colors.slate[900]}};
|
|
969
|
-
`,
|
|
1021
|
+
`,Zf=S.styled(W.FieldError)`
|
|
970
1022
|
display: flex;
|
|
971
1023
|
flex: 1 0 100%;
|
|
972
1024
|
color: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:r[500])??u.colors.red[500]}};
|
|
973
1025
|
font-size: 0.8rem;
|
|
974
|
-
`,
|
|
1026
|
+
`,Jf=S.styled(W.Text)`
|
|
975
1027
|
display: flex;
|
|
976
1028
|
flex: 1 0 100%;
|
|
977
1029
|
color: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:r[500])??u.colors.slate[500]}};
|
|
978
1030
|
font-size: 0.8rem;
|
|
979
|
-
`;function
|
|
1031
|
+
`;function Ss({description:e,errorMessage:t,isDisabled:r=!1,isInvalid:o=!1,isMasked:n=!1,isRequired:a=!0,label:s,length:i=6,name:d,onChange:p,value:f="",type:$="numeric",validationBehavior:w="native",...v}){c.useState(-1);const[x,C]=c.useState(f),[T,R]=c.useState(Array(i).fill("")),O=c.useRef([]);c.useEffect(()=>{O.current=O.current.slice(0,i)},[i]),c.useEffect(()=>{const D=T.join("");C(D),p&&p(D)},[p,T]);const A=D=>{var _,k;const U=D.target.value,b=Number(D.target.getAttribute("data-pin-input-index"));U!==""&&b<T.length-1&&((k=(_=O.current)==null?void 0:_[b+1])==null||k.focus());const L=T.map((M,h)=>h===b?U:M);R(L)},z=D=>{var _,k,M,h;const U=Number(D.currentTarget.getAttribute("data-pin-input-index"));if(D.ctrlKey||D.metaKey)return;const b=["Backspace","Delete","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Control","Alt","Meta","Shift","Tab","Enter","Escape"],L={alpha:/^[a-z]$/i,alphanumeric:/^[a-z0-9]$/i,numeric:/^[0-9]$/i};if(!D.key.match(L[$])&&!b.includes(D.key)&&D.preventDefault(),T[U]===""&&U>0&&D.key==="Backspace"){const E=T.map((N,B)=>B===U-1?"":N);R(E),(k=(_=O.current)==null?void 0:_[U-1])==null||k.focus(),D.preventDefault()}if(T[U]===""&&U<T.length-1&&D.key==="Delete"){const E=T.map((N,B)=>B===U+1?"":N);R(E),(h=(M=O.current)==null?void 0:M[U+1])==null||h.focus(),D.preventDefault()}},K=D=>{var h,E;const U=Number(D.currentTarget.getAttribute("data-pin-input-index"));D.preventDefault();const b=(h=D.clipboardData)==null?void 0:h.getData("text");if(!b)return;const L=b.split("").filter(N=>{switch($){case"alpha":return/^[a-zA-Z]$/.test(N);case"alphanumeric":return/^[a-z0-9]$/i.test(N);case"numeric":default:return/^[0-9]$/.test(N)}});if(L.length===0)return;const _=[...T];let k=U;for(let N=0;N<L.length&&U+N<i;N++)_[U+N]=L[N],k=U+N;R(_);const M=k+1<i?k+1:i-1;(E=O.current[M])==null||E.focus()};return g.jsxs(Wf,{...v,"aria-label":s,children:[g.jsx(Yf,{children:s}),T.map((D,U)=>g.jsx(Xf,{"aria-label":`Pin Input Digit ${U+1}`,isDisabled:r,isInvalid:o,isRequired:a,validationBehavior:w,children:g.jsx(Gf,{onChange:A,onKeyDown:z,onPaste:K,type:n?"password":"text",ref:b=>b?O.current[U]=b:null,value:D,maxLength:1,name:d&&`${d}-${U}`,"data-pin-input-index":U})},`pin-input-${U}`)),g.jsxs(qf,{"aria-label":"Pin Input",isDisabled:r,isInvalid:o,isRequired:a,validationBehavior:w,children:[d&&g.jsx(W.Input,{type:"hidden",name:d,value:x}),e&&g.jsx(Jf,{slot:"description",children:e}),g.jsx(Zf,{children:t})]})]})}Ss.defaultProps={description:void 0,errorMessage:void 0,isMasked:!1,isRequired:!0,label:void 0,length:6,name:"",onChange:()=>{},value:"",type:"numeric",validationBehavior:"native"};const Qf=S.styled(W.ProgressBar)`
|
|
980
1032
|
display: flex;
|
|
981
|
-
`,
|
|
1033
|
+
`,e0=S.styled.div`
|
|
982
1034
|
display: flex;
|
|
983
1035
|
flex-direction: column;
|
|
984
1036
|
align-items: center;
|
|
985
|
-
`,
|
|
1037
|
+
`,t0=S.styled(W.Label)`
|
|
986
1038
|
font-size: 0.875rem;
|
|
987
|
-
`,
|
|
1039
|
+
`,r0=S.styled.circle`
|
|
988
1040
|
stroke: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:r[300])??u.colors.slate[300]}};
|
|
989
|
-
`,
|
|
1041
|
+
`,o0=S.styled.circle`
|
|
990
1042
|
stroke: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:r[800])??u.colors.slate[800]}};
|
|
991
1043
|
transition: stroke-dashoffset 600ms ease-in-out;
|
|
992
|
-
`,
|
|
1044
|
+
`,n0=S.styled.text`
|
|
993
1045
|
font-size: 0.875rem;
|
|
994
1046
|
fill: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:r[800])??u.colors.slate[800]}};
|
|
995
|
-
`;function
|
|
1047
|
+
`;function a0({label:e,value:t=0,showValue:r=!0,size:o=60,strokeWidth:n=6,...a}){const s=o/2,i=s-n,d=2*Math.PI*i;return g.jsx(Qf,{"aria-label":"Loading...",...a,value:t,children:({percentage:p=0})=>g.jsxs(e0,{children:[g.jsx(t0,{children:e}),g.jsxs("svg",{width:o,height:o,fill:"none",children:[g.jsx(r0,{cx:s,cy:s,r:i,strokeWidth:n}),g.jsx(o0,{cx:s,cy:s,r:i,strokeWidth:n,strokeDasharray:`${d} ${d}`,strokeDashoffset:(100-p)/100*d,strokeLinecap:"round",transform:`rotate(-90 ${s} ${s})`}),r&&g.jsxs(n0,{x:"50%",y:"50%",alignmentBaseline:"middle",textAnchor:"middle",children:[p,"%"]})]})]})})}const s0=S.styled(W.ProgressBar)`
|
|
996
1048
|
width: ${({width:e})=>e||"100%"};
|
|
997
1049
|
overflow: hidden;
|
|
998
|
-
`,
|
|
1050
|
+
`,i0=S.styled.div`
|
|
999
1051
|
display: flex;
|
|
1000
1052
|
align-items: center;
|
|
1001
1053
|
justify-content: space-between;
|
|
1002
1054
|
gap: 0.5rem;
|
|
1003
1055
|
margin-bottom: 0.3rem;
|
|
1004
|
-
`,
|
|
1056
|
+
`,l0=S.styled(W.Label)`
|
|
1005
1057
|
font-size: 0.875rem;
|
|
1006
|
-
`,
|
|
1058
|
+
`,c0=S.styled.span`
|
|
1007
1059
|
font-size: 0.875rem;
|
|
1008
|
-
`,
|
|
1060
|
+
`,d0=S.styled.div`
|
|
1009
1061
|
forced-color-adjust: none;
|
|
1010
1062
|
height: 0.625rem;
|
|
1011
1063
|
border-radius: 0.3rem;
|
|
1012
1064
|
overflow: hidden;
|
|
1013
1065
|
will-change: transform;
|
|
1014
1066
|
background: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:r[300])??u.colors.slate[300]}};
|
|
1015
|
-
`,
|
|
1067
|
+
`,u0=S.styled.div`
|
|
1016
1068
|
width: ${({width:e,isIndeterminate:t})=>t?"40%":e};
|
|
1017
1069
|
transition: ${({isIndeterminate:e})=>e?"none":"width 600ms ease-in-out"};
|
|
1018
1070
|
height: 100%;
|
|
@@ -1029,15 +1081,15 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
1029
1081
|
transform: translateX(250px);
|
|
1030
1082
|
}
|
|
1031
1083
|
}
|
|
1032
|
-
`;function
|
|
1084
|
+
`;function f0({label:e,isIndeterminate:t,showValue:r=!0,width:o,...n}){return g.jsx(s0,{...n,width:o,children:({percentage:a,valueText:s})=>g.jsxs(g.Fragment,{children:[g.jsxs(i0,{children:[g.jsx(l0,{children:e}),r&&g.jsx(c0,{children:s})]}),g.jsx(d0,{children:g.jsx(u0,{isIndeterminate:t,width:typeof a=="number"?`${a}%`:""})})]})})}const p0=S.styled(W.ComboBox)`
|
|
1033
1085
|
display: flex;
|
|
1034
1086
|
flex-direction: column;
|
|
1035
1087
|
width: 100%;
|
|
1036
|
-
`,
|
|
1088
|
+
`,g0=S.styled.div`
|
|
1037
1089
|
display: flex;
|
|
1038
1090
|
position: relative;
|
|
1039
1091
|
width: 100%;
|
|
1040
|
-
`,
|
|
1092
|
+
`,b0=S.styled(he.motion(W.Popover))`
|
|
1041
1093
|
padding: 0.4rem 0;
|
|
1042
1094
|
box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
|
|
1043
1095
|
border-radius: 0.375rem;
|
|
@@ -1045,7 +1097,7 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
1045
1097
|
background: #fff;
|
|
1046
1098
|
border: 1px solid
|
|
1047
1099
|
${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:r[300])??u.colors.slate[300]}};
|
|
1048
|
-
`,
|
|
1100
|
+
`,v0=S.styled(W.Input).withConfig({shouldForwardProp:e=>!["isLoading"].includes(e)})`
|
|
1049
1101
|
border: 1px solid
|
|
1050
1102
|
${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:r[300])??u.colors.slate[300]}};
|
|
1051
1103
|
font-size: 0.9rem;
|
|
@@ -1103,43 +1155,43 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
1103
1155
|
::placeholder {
|
|
1104
1156
|
color: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:r[400])??u.colors.slate[400]}};
|
|
1105
1157
|
}
|
|
1106
|
-
`,
|
|
1158
|
+
`,y0=S.styled.svg.withConfig({shouldForwardProp:e=>!["isDisabled","isInvalid","isOpen"].includes(e)})`
|
|
1107
1159
|
transition: all ease 200ms;
|
|
1108
1160
|
transform: rotate(${({isOpen:e})=>e?"180deg":"0"});
|
|
1109
1161
|
|
|
1110
1162
|
path {
|
|
1111
|
-
stroke: ${({isDisabled:e,isInvalid:t,theme:r})=>{var o,n,a,s,
|
|
1163
|
+
stroke: ${({isDisabled:e,isInvalid:t,theme:r})=>{var o,n,a,s,i,d;return t?((n=(o=r==null?void 0:r.colors)==null?void 0:o.red)==null?void 0:n[500])??u.colors.red[500]:e?((s=(a=r==null?void 0:r.colors)==null?void 0:a.slate)==null?void 0:s[400])??u.colors.slate[400]:((d=(i=r==null?void 0:r.colors)==null?void 0:i.slate)==null?void 0:d[900])??u.colors.slate[900]}};
|
|
1112
1164
|
}
|
|
1113
|
-
|
|
1165
|
+
`,$0=S.styled.div`
|
|
1114
1166
|
position: absolute;
|
|
1115
1167
|
display: block;
|
|
1116
1168
|
top: 0.5rem;
|
|
1117
1169
|
right: 0.5rem;
|
|
1118
|
-
`,
|
|
1170
|
+
`,x0=S.styled(W.Button)`
|
|
1119
1171
|
position: absolute;
|
|
1120
1172
|
display: block;
|
|
1121
1173
|
top: 0.5rem;
|
|
1122
1174
|
right: 0;
|
|
1123
1175
|
border: none;
|
|
1124
1176
|
background: none;
|
|
1125
|
-
`,
|
|
1177
|
+
`,m0=S.styled(W.Label)`
|
|
1126
1178
|
display: flex;
|
|
1127
1179
|
font-size: 0.8rem;
|
|
1128
1180
|
color: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:r[500])??u.colors.slate[500]}};
|
|
1129
|
-
`;
|
|
1181
|
+
`;S.styled(W.TextField)`
|
|
1130
1182
|
display: flex;
|
|
1131
1183
|
flex-direction: column;
|
|
1132
1184
|
width: 100%;
|
|
1133
1185
|
color: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:r[900])??u.colors.slate[900]}};
|
|
1134
|
-
`;const
|
|
1186
|
+
`;const h0=S.styled(W.FieldError)`
|
|
1135
1187
|
display: flex;
|
|
1136
1188
|
color: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:r[500])??u.colors.red[500]}};
|
|
1137
1189
|
font-size: 0.8rem;
|
|
1138
|
-
`,
|
|
1190
|
+
`,w0=S.styled(W.Text)`
|
|
1139
1191
|
display: flex;
|
|
1140
1192
|
color: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:r[500])??u.colors.slate[500]}};
|
|
1141
1193
|
font-size: 0.8rem;
|
|
1142
|
-
|
|
1194
|
+
`,C0=S.styled(W.ListBoxItem)`
|
|
1143
1195
|
display: flex;
|
|
1144
1196
|
flex: 1 1 auto;
|
|
1145
1197
|
align-items: center;
|
|
@@ -1182,11 +1234,11 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
1182
1234
|
background: none;
|
|
1183
1235
|
color: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:r[500])??u.colors.slate[500]}};
|
|
1184
1236
|
}
|
|
1185
|
-
`;function
|
|
1237
|
+
`;function E0(e){return g.jsx(C0,{...e})}const S0=S.keyframes`
|
|
1186
1238
|
100% {
|
|
1187
1239
|
transform: rotate(360deg);
|
|
1188
1240
|
}
|
|
1189
|
-
`,
|
|
1241
|
+
`,P0=S.keyframes`
|
|
1190
1242
|
0% {
|
|
1191
1243
|
stroke-dasharray: 1, 200;
|
|
1192
1244
|
stroke-dashoffset: 0;
|
|
@@ -1199,7 +1251,7 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
1199
1251
|
stroke-dasharray: 89, 200;
|
|
1200
1252
|
stroke-dashoffset: -124px;
|
|
1201
1253
|
}
|
|
1202
|
-
`,
|
|
1254
|
+
`,T0=S.styled.div`
|
|
1203
1255
|
position: relative;
|
|
1204
1256
|
margin: 0;
|
|
1205
1257
|
width: ${({width:e})=>e}px;
|
|
@@ -1208,8 +1260,8 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
1208
1260
|
display: block;
|
|
1209
1261
|
padding-top: 100%;
|
|
1210
1262
|
}
|
|
1211
|
-
`,
|
|
1212
|
-
animation: ${
|
|
1263
|
+
`,k0=S.styled.svg`
|
|
1264
|
+
animation: ${S0} 2s linear infinite;
|
|
1213
1265
|
height: 100%;
|
|
1214
1266
|
transform-origin: center center;
|
|
1215
1267
|
width: 100%;
|
|
@@ -1219,12 +1271,12 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
1219
1271
|
left: 0;
|
|
1220
1272
|
right: 0;
|
|
1221
1273
|
margin: auto;
|
|
1222
|
-
`,
|
|
1274
|
+
`,M0=S.styled.circle`
|
|
1223
1275
|
stroke: ${({stroke:e})=>e};
|
|
1224
1276
|
stroke-dasharray: 1, 200;
|
|
1225
1277
|
stroke-dashoffset: 0;
|
|
1226
|
-
animation: ${
|
|
1227
|
-
`;function
|
|
1278
|
+
animation: ${P0} 1.5s ease-in-out infinite;
|
|
1279
|
+
`;function I0({width:e,stroke:t,strokeLinecap:r="round",strokeWidth:o=5,...n}){return g.jsx(T0,{width:e,...n,children:g.jsx(k0,{viewBox:"25 25 50 50",children:g.jsx(M0,{className:"path",cx:"50",cy:"50",fill:"none",r:"20",stroke:t,strokeLinecap:r,strokeMiterlimit:"10",strokeWidth:o})})})}const R0=S.keyframes`
|
|
1228
1280
|
0% {
|
|
1229
1281
|
transform: scale(1);
|
|
1230
1282
|
opacity: 1;
|
|
@@ -1237,19 +1289,19 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
1237
1289
|
transform: scale(1);
|
|
1238
1290
|
opacity: 1;
|
|
1239
1291
|
}
|
|
1240
|
-
`,Yr=
|
|
1292
|
+
`,Yr=S.styled.span`
|
|
1241
1293
|
background-color: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:r[300])??u.colors.slate[300]}};
|
|
1242
1294
|
display: inline-block;
|
|
1243
1295
|
width: 0.5rem;
|
|
1244
1296
|
height: 0.5rem;
|
|
1245
1297
|
margin: 0.1rem;
|
|
1246
1298
|
border-radius: 0.5rem;
|
|
1247
|
-
animation: ${
|
|
1299
|
+
animation: ${R0}
|
|
1248
1300
|
${({speedMultiplier:e})=>.75/e}s
|
|
1249
1301
|
${({i:e,speedMultiplier:t})=>e*.12/t}s infinite
|
|
1250
1302
|
cubic-bezier(0.2, 0.68, 0.18, 1.08);
|
|
1251
1303
|
animation-fill-mode: both;
|
|
1252
|
-
`;function
|
|
1304
|
+
`;function Ps(){return g.jsxs("span",{children:[g.jsx(Yr,{speedMultiplier:1,i:1}),g.jsx(Yr,{speedMultiplier:1,i:2}),g.jsx(Yr,{speedMultiplier:1,i:3})]})}function O0({buttonIcon:e,...t}){return e?typeof e=="function"?e(t):e:g.jsx(y0,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",isOpen:t.isOpen,isDisabled:t.isDisabled,isInvalid:t.isInvalid,children:g.jsx("path",{d:"M6 9L12 15L18 9",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function Ts({label:e,description:t,errorMessage:r,children:o,placeholder:n,key:a,isLoading:s,slots:i,...d}){const[p,f]=c.useState("unmounted"),[$,w]=c.useState(!1);return g.jsx(p0,{onOpenChange:()=>{f(p==="visible"?"hidden":"visible"),w(!$)},isDisabled:d.isDisabled||s,...d,children:v=>g.jsxs(g.Fragment,{children:[g.jsx(m0,{children:e}),g.jsxs(g0,{children:[g.jsx(v0,{placeholder:n,isLoading:s??!1}),s?g.jsx($0,{children:(i==null?void 0:i.loadingIcon)||g.jsx(Ps,{})}):g.jsx(x0,{children:g.jsx(O0,{buttonIcon:i==null?void 0:i.buttonIcon,...v})})]}),t&&g.jsx(w0,{slot:"description",children:t}),g.jsx(h0,{children:r}),g.jsx(b0,{isOpen:$,isExiting:p==="hidden",onAnimationComplete:x=>{f(C=>x==="hidden"&&C==="hidden"?"unmounted":C)},variants:{hidden:{opacity:0,y:-10},visible:{opacity:1,y:0}},initial:"hidden",animate:p,children:g.jsx(W.ListBox,{style:{maxHeight:"20rem",overflowY:"scroll"},children:o})},a)]})})}Ts.defaultProps={label:void 0,description:void 0,errorMessage:void 0,placeholder:"",key:void 0,isLoading:!1,slots:{loadingIcon:void 0,buttonIcon:void 0}};const A0=S.styled(W.Slider)`
|
|
1253
1305
|
--label-color: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:r[500])??u.colors.slate[500]}};
|
|
1254
1306
|
--track-background: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:r[300])??u.colors.slate[300]}};
|
|
1255
1307
|
--thumb-background: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:r[300])??u.colors.slate[300]}};
|
|
@@ -1275,19 +1327,19 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
1275
1327
|
height: 100%;
|
|
1276
1328
|
width: 2rem;
|
|
1277
1329
|
}
|
|
1278
|
-
`,
|
|
1330
|
+
`,j0=S.styled(W.Label)`
|
|
1279
1331
|
display: flex;
|
|
1280
1332
|
flex: 1 1 0;
|
|
1281
1333
|
font-size: 0.8rem;
|
|
1282
1334
|
color: var(--label-color);
|
|
1283
|
-
`,
|
|
1335
|
+
`,L0=S.styled(W.SliderOutput)`
|
|
1284
1336
|
display: flex;
|
|
1285
1337
|
flex: 0 1 0;
|
|
1286
1338
|
margin-left: auto;
|
|
1287
1339
|
justify-content: flex-end;
|
|
1288
1340
|
font-size: 0.8rem;
|
|
1289
1341
|
color: var(--label-color);
|
|
1290
|
-
`,yo=
|
|
1342
|
+
`,yo=S.styled(W.SliderThumb)`
|
|
1291
1343
|
background-color: var(--thumb-background);
|
|
1292
1344
|
border: 2px solid var(--thumb-border-color);
|
|
1293
1345
|
forced-color-adjust: none;
|
|
@@ -1305,7 +1357,7 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
1305
1357
|
&[data-dragging] {
|
|
1306
1358
|
background-color: var(--thumb-background-dragging);
|
|
1307
1359
|
}
|
|
1308
|
-
`,
|
|
1360
|
+
`,_0=S.styled(W.SliderTrack)`
|
|
1309
1361
|
width: 100%;
|
|
1310
1362
|
transition: all ease 0.25s;
|
|
1311
1363
|
|
|
@@ -1348,7 +1400,7 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
1348
1400
|
left: 50%;
|
|
1349
1401
|
}
|
|
1350
1402
|
}
|
|
1351
|
-
`;function
|
|
1403
|
+
`;function ks({label:e,showOutput:t=!0,thumbLabels:r,...o}){return g.jsxs(A0,{...o,children:[g.jsx(j0,{children:e}),t&&g.jsx(L0,{children:({state:n})=>n.values.map((a,s)=>n.getThumbValueLabel(s)).join(" – ")}),g.jsx(_0,{"data-track":!0,children:({state:n})=>n.values.map((a,s)=>g.jsx(yo,{index:s,"aria-label":r==null?void 0:r[s],"data-thumb":!0},s))})]})}ks.defaultProps={label:void 0,showOutput:!0,thumbLabels:void 0};const He=S.styled.div`
|
|
1352
1404
|
width: 4rem;
|
|
1353
1405
|
height: 2.5rem;
|
|
1354
1406
|
border: 1px solid
|
|
@@ -1367,7 +1419,7 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
1367
1419
|
border-radius: 1.25rem;
|
|
1368
1420
|
transition: all cubic-bezier(0.4, 0, 0.2, 1) 200ms;
|
|
1369
1421
|
}
|
|
1370
|
-
`,
|
|
1422
|
+
`,K0=S.styled(W.Switch)`
|
|
1371
1423
|
display: flex;
|
|
1372
1424
|
align-items: center;
|
|
1373
1425
|
gap: 0.5rem;
|
|
@@ -1422,7 +1474,7 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
1422
1474
|
}
|
|
1423
1475
|
}
|
|
1424
1476
|
}
|
|
1425
|
-
`;function
|
|
1477
|
+
`;function D0({children:e,...t}){return g.jsx(K0,{...t,children:r=>g.jsxs(g.Fragment,{children:[g.jsx(He,{className:"switch-indicator"}),typeof e=="function"?e({defaultChildren:void 0,...r}):e]})})}const N0=S.styled(W.Tabs)`
|
|
1426
1478
|
width: 100%;
|
|
1427
1479
|
display: flex;
|
|
1428
1480
|
flex-direction: column;
|
|
@@ -1431,7 +1483,7 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
1431
1483
|
&[data-orientation='vertical'] {
|
|
1432
1484
|
flex-direction: row;
|
|
1433
1485
|
}
|
|
1434
|
-
`,
|
|
1486
|
+
`,F0=S.styled(W.TabList)`
|
|
1435
1487
|
width: 100%;
|
|
1436
1488
|
position: relative;
|
|
1437
1489
|
display: flex;
|
|
@@ -1445,16 +1497,16 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
1445
1497
|
justify-content: flex-start;
|
|
1446
1498
|
}
|
|
1447
1499
|
|
|
1448
|
-
${({variant:e,theme:t})=>{var r,o,n,a,s,
|
|
1500
|
+
${({variant:e,theme:t})=>{var r,o,n,a,s,i,d,p;switch(e){case"solid":return S.css`
|
|
1449
1501
|
background-color: ${((o=(r=t==null?void 0:t.colors)==null?void 0:r.slate)==null?void 0:o[200])??u.colors.slate[200]};
|
|
1450
1502
|
border-radius: 0.75rem;
|
|
1451
1503
|
padding: 0.25rem;
|
|
1452
|
-
`;case"outline":return
|
|
1504
|
+
`;case"outline":return S.css`
|
|
1453
1505
|
border: 2px solid
|
|
1454
1506
|
${((a=(n=t==null?void 0:t.colors)==null?void 0:n.slate)==null?void 0:a[200])??u.colors.slate[200]};
|
|
1455
1507
|
border-radius: 0.75rem;
|
|
1456
1508
|
padding: 0.25rem;
|
|
1457
|
-
`;case"underline":return
|
|
1509
|
+
`;case"underline":return S.css`
|
|
1458
1510
|
&[data-orientation='vertical'] {
|
|
1459
1511
|
&:before {
|
|
1460
1512
|
display: block;
|
|
@@ -1464,7 +1516,7 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
1464
1516
|
bottom: 0;
|
|
1465
1517
|
content: '';
|
|
1466
1518
|
width: 1px;
|
|
1467
|
-
background-color: ${((
|
|
1519
|
+
background-color: ${((i=(s=t==null?void 0:t.colors)==null?void 0:s.slate)==null?void 0:i[200])??u.colors.slate[200]};
|
|
1468
1520
|
}
|
|
1469
1521
|
}
|
|
1470
1522
|
&[data-orientation='horizontal'] {
|
|
@@ -1480,7 +1532,7 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
1480
1532
|
}
|
|
1481
1533
|
}
|
|
1482
1534
|
`;default:return null}}}
|
|
1483
|
-
`,
|
|
1535
|
+
`,Ms=S.styled(W.Tab)`
|
|
1484
1536
|
position: relative;
|
|
1485
1537
|
z-index: 3;
|
|
1486
1538
|
display: flex;
|
|
@@ -1513,29 +1565,29 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
1513
1565
|
&[data-disabled] {
|
|
1514
1566
|
opacity: 0.5;
|
|
1515
1567
|
}
|
|
1516
|
-
`,
|
|
1568
|
+
`,z0=S.styled(he.motion.span).attrs({className:"tab-overlay"})`
|
|
1517
1569
|
position: absolute;
|
|
1518
1570
|
z-index: 1;
|
|
1519
1571
|
|
|
1520
|
-
${({orientation:e,theme:t,variant:r})=>{var o,n,a,s,
|
|
1572
|
+
${({orientation:e,theme:t,variant:r})=>{var o,n,a,s,i,d,p,f,$,w,v;switch(r){case"solid":return S.css`
|
|
1521
1573
|
inset: 0px;
|
|
1522
1574
|
border-radius: 0.5rem;
|
|
1523
1575
|
background-color: ${((n=(o=t==null?void 0:t.colors)==null?void 0:o.slate)==null?void 0:n[600])??u.colors.slate[600]};
|
|
1524
1576
|
mix-blend-mode: color;
|
|
1525
|
-
`;case"outline":return
|
|
1577
|
+
`;case"outline":return S.css`
|
|
1526
1578
|
inset: 0px;
|
|
1527
1579
|
border: 2px solid
|
|
1528
1580
|
${((s=(a=t==null?void 0:t.colors)==null?void 0:a.slate)==null?void 0:s[800])??u.colors.slate[800]};
|
|
1529
1581
|
border-radius: 0.5rem;
|
|
1530
|
-
`;case"underline":return e==="horizontal"?
|
|
1582
|
+
`;case"underline":return e==="horizontal"?S.css`
|
|
1531
1583
|
bottom: 0;
|
|
1532
1584
|
left: 0;
|
|
1533
1585
|
width: 100%;
|
|
1534
1586
|
height: 1px;
|
|
1535
1587
|
border-radius: 0.5rem;
|
|
1536
|
-
background-color: ${((d=(
|
|
1588
|
+
background-color: ${((d=(i=t==null?void 0:t.colors)==null?void 0:i.slate)==null?void 0:d[800])??u.colors.slate[800]};
|
|
1537
1589
|
mix-blend-mode: color;
|
|
1538
|
-
`:
|
|
1590
|
+
`:S.css`
|
|
1539
1591
|
bottom: 0;
|
|
1540
1592
|
right: 0;
|
|
1541
1593
|
width: 1px;
|
|
@@ -1543,7 +1595,7 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
1543
1595
|
border-radius: 0.5rem;
|
|
1544
1596
|
background-color: ${((f=(p=t==null?void 0:t.colors)==null?void 0:p.slate)==null?void 0:f[800])??u.colors.slate[800]};
|
|
1545
1597
|
mix-blend-mode: color;
|
|
1546
|
-
`;case"enclosed":return
|
|
1598
|
+
`;case"enclosed":return S.css`
|
|
1547
1599
|
inset: 0px;
|
|
1548
1600
|
border: 1px solid
|
|
1549
1601
|
${((w=($=t==null?void 0:t.colors)==null?void 0:$.slate)==null?void 0:w[800])??u.colors.slate[800]};
|
|
@@ -1552,16 +1604,16 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
1552
1604
|
border-radius: 0.5rem 0.5rem 0 0;
|
|
1553
1605
|
background-color: ${((v=t==null?void 0:t.colors)==null?void 0:v.white)??u.colors.white};
|
|
1554
1606
|
mix-blend-mode: difference;
|
|
1555
|
-
`;case"base":default:return
|
|
1607
|
+
`;case"base":default:return S.css`
|
|
1556
1608
|
display: none;
|
|
1557
1609
|
`}}}
|
|
1558
|
-
`,
|
|
1610
|
+
`,B0=S.styled(W.TabPanel)`
|
|
1559
1611
|
display: flex;
|
|
1560
1612
|
flex-grow: 1;
|
|
1561
1613
|
padding: 1rem 0;
|
|
1562
|
-
`,Cr=c.createContext("horizontal");function
|
|
1614
|
+
`,Cr=c.createContext("horizontal");function V0({children:e,...t}){return g.jsx(Cr.Provider,{value:t.orientation??"horizontal",children:g.jsx(N0,{...t,children:e})})}function H0({variant:e="base",...t}){const r=c.useContext(Cr);return g.jsx(Ms,{orientation:r,variant:e,...t,children:({isSelected:o,isFocusVisible:n})=>g.jsxs(g.Fragment,{children:[t.children,(n||o)&&g.jsx(z0,{orientation:r,layoutId:e,variant:e,transition:{type:"spring",bounce:.2,duration:.75}})]})})}function U0({items:e,children:t,variant:r="base",...o}){const n=c.useContext(Cr);return g.jsx(F0,{items:e,variant:r,...o,children:t||(a=>g.jsx(Ms,{orientation:n,children:a.title}))})}function W0({children:e,...t}){return g.jsx(B0,{...t,children:e})}const G0=S.styled(W.TimeField)`
|
|
1563
1615
|
color: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:r[900])??u.colors.slate[900]}};
|
|
1564
|
-
`,
|
|
1616
|
+
`,Y0=S.styled(W.DateInput)`
|
|
1565
1617
|
display: flex;
|
|
1566
1618
|
align-items: center;
|
|
1567
1619
|
border: 1px solid
|
|
@@ -1612,7 +1664,7 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
1612
1664
|
${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:r[200])??u.colors.red[200]}};
|
|
1613
1665
|
}
|
|
1614
1666
|
}
|
|
1615
|
-
`,
|
|
1667
|
+
`,X0=S.styled(W.DateSegment)`
|
|
1616
1668
|
padding: 0.25rem;
|
|
1617
1669
|
font-variant-numeric: tabular-nums;
|
|
1618
1670
|
text-align: end;
|
|
@@ -1662,19 +1714,19 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
1662
1714
|
color: ${({theme:e})=>{var t;return((t=e==null?void 0:e.colors)==null?void 0:t.white)??u.colors.white}};
|
|
1663
1715
|
}
|
|
1664
1716
|
}
|
|
1665
|
-
`,
|
|
1717
|
+
`,q0=S.styled(W.Label)`
|
|
1666
1718
|
display: flex;
|
|
1667
1719
|
font-size: 0.8rem;
|
|
1668
1720
|
color: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:r[500])??u.colors.slate[500]}};
|
|
1669
|
-
`,
|
|
1721
|
+
`,Z0=S.styled(W.FieldError)`
|
|
1670
1722
|
display: flex;
|
|
1671
1723
|
color: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:r[500])??u.colors.red[500]}};
|
|
1672
1724
|
font-size: 0.8rem;
|
|
1673
|
-
`,
|
|
1725
|
+
`,J0=S.styled(W.Text)`
|
|
1674
1726
|
display: flex;
|
|
1675
1727
|
color: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:r[500])??u.colors.slate[500]}};
|
|
1676
1728
|
font-size: 0.8rem;
|
|
1677
|
-
`;function
|
|
1729
|
+
`;function Is({label:e,description:t,errorMessage:r,...o}){return g.jsxs(G0,{...o,children:[g.jsx(q0,{children:e}),g.jsx(Y0,{children:n=>g.jsx(X0,{segment:n})}),g.jsx(J0,{slot:"description",children:t}),g.jsx(Z0,{children:r})]})}Is.defaultProps={label:void 0,description:void 0,errorMessage:void 0};const Q0=S.styled(W.ToggleButton)`
|
|
1678
1730
|
display: flex;
|
|
1679
1731
|
align-items: center;
|
|
1680
1732
|
font-size: 0.9rem;
|
|
@@ -1708,7 +1760,7 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
1708
1760
|
border-color: ${({variant:e,theme:t})=>{var r,o,n,a;switch(e){case"ghost":return"transparent";case"outline":return((o=(r=t==null?void 0:t.colors)==null?void 0:r.slate)==null?void 0:o[200])??u.colors.slate[200];case"solid":default:return((a=(n=t==null?void 0:t.colors)==null?void 0:n.slate)==null?void 0:a[100])??u.colors.slate[100]}}};
|
|
1709
1761
|
color: ${({variant:e,theme:t})=>{var r,o,n,a;switch(e){case"ghost":case"outline":return((o=(r=t==null?void 0:t.colors)==null?void 0:r.slate)==null?void 0:o[500])??u.colors.slate[500];case"solid":default:return((a=(n=t==null?void 0:t.colors)==null?void 0:n.slate)==null?void 0:a[400])??u.colors.slate[400]}}};
|
|
1710
1762
|
}
|
|
1711
|
-
`;function
|
|
1763
|
+
`;function ep({children:e,size:t="md",variant:r="solid",...o}){return g.jsx(Q0,{...o,size:t,variant:r,children:e})}function tp(e){let[t,r]=hr(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const o=c.useCallback(()=>{r(!0)},[r]),n=c.useCallback(()=>{r(!1)},[r]),a=c.useCallback(()=>{r(!t)},[r,t]);return{isOpen:t,setOpen:r,open:o,close:n,toggle:a}}const rp=1500,pa=500;let Ze={},op=0,Mt=!1,Ve=null,Je=null;function np(e={}){let{delay:t=rp,closeDelay:r=pa}=e,{isOpen:o,open:n,close:a}=tp(e),s=c.useMemo(()=>`${++op}`,[]),i=c.useRef(),d=()=>{Ze[s]=$},p=()=>{for(let v in Ze)v!==s&&(Ze[v](!0),delete Ze[v])},f=()=>{clearTimeout(i.current),i.current=null,p(),d(),Mt=!0,n(),Ve&&(clearTimeout(Ve),Ve=null),Je&&(clearTimeout(Je),Je=null)},$=v=>{v||r<=0?(clearTimeout(i.current),i.current=null,a()):i.current||(i.current=setTimeout(()=>{i.current=null,a()},r)),Ve&&(clearTimeout(Ve),Ve=null),Mt&&(Je&&clearTimeout(Je),Je=setTimeout(()=>{delete Ze[s],Je=null,Mt=!1},Math.max(pa,r)))},w=()=>{p(),d(),!o&&!Ve&&!Mt?Ve=setTimeout(()=>{Ve=null,Mt=!0,f()},t):o||f()};return c.useEffect(()=>()=>{clearTimeout(i.current),Ze[s]&&delete Ze[s]},[s]),{isOpen:o,open:v=>{!v&&t>0&&!i.current?w():f()},close:$}}function ap(e,t){let r=Na(e,{labelable:!0}),{hoverProps:o}=wr({onHoverStart:()=>t==null?void 0:t.open(!0),onHoverEnd:()=>t==null?void 0:t.close()});return{tooltipProps:xe(r,o,{role:"tooltip"})}}function sp(e,t,r){let{isDisabled:o,trigger:n}=e,a=mc(),s=c.useRef(!1),i=c.useRef(!1),d=()=>{(s.current||i.current)&&t.open(i.current)},p=R=>{!s.current&&!i.current&&t.close(R)};c.useEffect(()=>{let R=O=>{r&&r.current&&O.key==="Escape"&&(O.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",R,!0),()=>{document.removeEventListener("keydown",R,!0)}},[r,t]);let f=()=>{n!=="focus"&&(gr()==="pointer"?s.current=!0:s.current=!1,d())},$=()=>{n!=="focus"&&(i.current=!1,s.current=!1,p())},w=()=>{i.current=!1,s.current=!1,p(!0)},v=()=>{Do()&&(i.current=!0,d())},x=()=>{i.current=!1,s.current=!1,p(!0)},{hoverProps:C}=wr({isDisabled:o,onHoverStart:f,onHoverEnd:$}),{focusableProps:T}=os({isDisabled:o,onFocus:v,onBlur:x},r);return{triggerProps:{"aria-describedby":t.isOpen?a:void 0,...xe(T,C,{onPointerDown:w,onKeyDown:w})},tooltipProps:{id:a}}}function ip(e){const[t,r]=is(e,Kn.variantKeys),{ref:o,as:n,isOpen:a,content:s,children:i,defaultOpen:d,onOpenChange:p,isDisabled:f,trigger:$,shouldFlip:w=!0,containerPadding:v=12,placement:x="top",delay:C=0,closeDelay:T=500,showArrow:R=!1,offset:O=7,crossOffset:A=0,isDismissable:z,shouldCloseOnBlur:K=!0,portalContainer:D,isKeyboardDismissDisabled:U=!1,updatePositionDeps:b=[],shouldCloseOnInteractOutside:L,className:_,onClose:k,motionProps:M,classNames:h,...E}=t,N=n||"div",B=np({delay:C,closeDelay:T,isDisabled:f,defaultOpen:d,isOpen:a,onOpenChange:te=>{p==null||p(te),te||k==null||k()}}),F=c.useRef(null),X=c.useRef(null),q=c.useId(),V=B.isOpen&&!f;c.useImperativeHandle(o,()=>Ji(X));const{triggerProps:m,tooltipProps:j}=sp({isDisabled:f,trigger:$},B,F),{tooltipProps:G}=ap({isOpen:V,...xe(t,j)},B),{overlayProps:Z,placement:Q,updatePosition:ne}=Fd({isOpen:V,targetRef:F,placement:Ou(x),overlayRef:X,offset:R?O+3:O,crossOffset:A,shouldFlip:w,containerPadding:v});ns(()=>{b.length&&ne()},b);const{overlayProps:oe}=Vd({isOpen:V,onClose:B.close,isDismissable:z,shouldCloseOnBlur:K,isKeyboardDismissDisabled:U,shouldCloseOnInteractOutside:L},X),re=c.useMemo(()=>{var te,fe,Xe;return Kn({...r,radius:(te=e==null?void 0:e.radius)!=null?te:"md",size:(fe=e==null?void 0:e.size)!=null?fe:"md",shadow:(Xe=e==null?void 0:e.shadow)!=null?Xe:"sm"})},[Po(r),e==null?void 0:e.radius,e==null?void 0:e.size,e==null?void 0:e.shadow]),ie=c.useCallback((te={},fe=null)=>({...xe(m,te),ref:nl(fe,F),"aria-describedby":V?q:void 0}),[m,V,q,B]),be=c.useCallback(()=>({ref:X,"data-slot":"base","data-open":ce(V),"data-arrow":ce(R),"data-disabled":ce(f),"data-placement":da(Q,x),...xe(G,oe,E),style:xe(Z.style,E.style,t.style),className:re.base({class:h==null?void 0:h.base}),id:q}),[re,V,R,f,Q,x,G,oe,E,Z,t,q]),ke=c.useCallback(()=>({"data-slot":"content","data-open":ce(V),"data-arrow":ce(R),"data-disabled":ce(f),"data-placement":da(Q,x),className:re.content({class:tt(h==null?void 0:h.content,_)})}),[re,V,R,f,Q,x,h]);return{Component:N,content:s,children:i,isOpen:V,triggerRef:F,showArrow:R,portalContainer:D,placement:x,disableAnimation:e==null?void 0:e.disableAnimation,isDisabled:f,motionProps:M,getTooltipContentProps:ke,getTriggerProps:ie,getTooltipProps:be}}var Rs=it((e,t)=>{const{Component:r,children:o,content:n,isOpen:a,portalContainer:s,placement:i,disableAnimation:d,motionProps:p,getTriggerProps:f,getTooltipProps:$,getTooltipContentProps:w}=ip({...e,ref:t});let v;try{if(c.Children.count(o)!==1)throw new Error;if(!c.isValidElement(o))v=g.jsx("p",{...f(),children:o});else{const z=o;v=c.cloneElement(z,f(z.props,z.ref))}}catch{v=g.jsx("span",{}),el("Tooltip must have only one child node. Please, check your code.")}const{ref:x,id:C,style:T,...R}=$(),O=g.jsx("div",{ref:x,id:C,style:T,children:g.jsx(he.LazyMotion,{features:he.domAnimation,children:g.jsx(he.m.div,{animate:"enter",exit:"exit",initial:"exit",variants:go.scaleSpring,...xe(p,R),style:{...Ru(i)},children:g.jsx(r,{...w(),children:n})})})});return g.jsxs(g.Fragment,{children:[v,d&&a?g.jsx(na,{portalContainer:s,children:g.jsx("div",{ref:x,id:C,style:T,...R,children:g.jsx(r,{...w(),children:n})})}):g.jsx(he.AnimatePresence,{children:a?g.jsx(na,{portalContainer:s,children:O}):null})]})});Rs.displayName="NextUI.Tooltip";var lp=Rs;const cp=S.styled(lp).attrs({className:"tooltip"})`
|
|
1712
1764
|
z-index: 0;
|
|
1713
1765
|
position: relative;
|
|
1714
1766
|
background-color: transparent;
|
|
@@ -1829,7 +1881,7 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
1829
1881
|
border-radius: 0.375rem;
|
|
1830
1882
|
box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
|
1831
1883
|
}
|
|
1832
|
-
`,ap=c.forwardRef(function(t,r){return g.jsx(np,{classNames:{base:["tooltip"],content:["tooltip-content"]},...t,ref:r})});function ye(){return ye=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},ye.apply(this,arguments)}function Is(e,t=[]){let r=[];function o(a,s){const l=c.createContext(s),d=r.length;r=[...r,s];function p($){const{scope:w,children:v,...m}=$,C=(w==null?void 0:w[e][d])||l,T=c.useMemo(()=>m,Object.values(m));return c.createElement(C.Provider,{value:T},v)}function f($,w){const v=(w==null?void 0:w[e][d])||l,m=c.useContext(v);if(m)return m;if(s!==void 0)return s;throw new Error(`\`${$}\` must be used within \`${a}\``)}return p.displayName=a+"Provider",[p,f]}const n=()=>{const a=r.map(s=>c.createContext(s));return function(l){const d=(l==null?void 0:l[e])||a;return c.useMemo(()=>({[`__scope${e}`]:{...l,[e]:d}}),[l,d])}};return n.scopeName=e,[o,sp(n,...t)]}function sp(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const o=e.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(a){const s=o.reduce((l,{useScope:d,scopeName:p})=>{const $=d(a)[`__scope${p}`];return{...l,...$}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}function we(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e==null||e(n),r===!1||!n.defaultPrevented)return t==null?void 0:t(n)}}function ip(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Ho(...e){return t=>e.forEach(r=>ip(r,t))}function Ge(...e){return c.useCallback(Ho(...e),e)}const $r=c.forwardRef((e,t)=>{const{children:r,...o}=e,n=c.Children.toArray(r),a=n.find(cp);if(a){const s=a.props.children,l=n.map(d=>d===a?c.Children.count(s)>1?c.Children.only(null):c.isValidElement(s)?s.props.children:null:d);return c.createElement($o,ye({},o,{ref:t}),c.isValidElement(s)?c.cloneElement(s,void 0,l):null)}return c.createElement($o,ye({},o,{ref:t}),r)});$r.displayName="Slot";const $o=c.forwardRef((e,t)=>{const{children:r,...o}=e;return c.isValidElement(r)?c.cloneElement(r,{...dp(o,r.props),ref:t?Ho(t,r.ref):r.ref}):c.Children.count(r)>1?c.Children.only(null):null});$o.displayName="SlotClone";const lp=({children:e})=>c.createElement(c.Fragment,null,e);function cp(e){return c.isValidElement(e)&&e.type===lp}function dp(e,t){const r={...t};for(const o in t){const n=e[o],a=t[o];/^on[A-Z]/.test(o)?n&&a?r[o]=(...l)=>{a(...l),n(...l)}:n&&(r[o]=n):o==="style"?r[o]={...n,...a}:o==="className"&&(r[o]=[n,a].filter(Boolean).join(" "))}return{...e,...r}}const up=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Ae=up.reduce((e,t)=>{const r=c.forwardRef((o,n)=>{const{asChild:a,...s}=o,l=a?$r:t;return c.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),c.createElement(l,ye({},s,{ref:n}))});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function mo(e,t){e&&Lt.flushSync(()=>e.dispatchEvent(t))}function Oe(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>(...r)=>{var o;return(o=t.current)===null||o===void 0?void 0:o.call(t,...r)},[])}function fp({prop:e,defaultProp:t,onChange:r=()=>{}}){const[o,n]=pp({defaultProp:t,onChange:r}),a=e!==void 0,s=a?e:o,l=Oe(r),d=c.useCallback(p=>{if(a){const $=typeof p=="function"?p(e):p;$!==e&&l($)}else n(p)},[a,e,n,l]);return[s,d]}function pp({defaultProp:e,onChange:t}){const r=c.useState(e),[o]=r,n=c.useRef(o),a=Oe(t);return c.useEffect(()=>{n.current!==o&&(a(o),n.current=o)},[o,n,a]),r}const gp=c.createContext(void 0);function bp(e){const t=c.useContext(gp);return e||t||"ltr"}const mt=globalThis!=null&&globalThis.document?c.useLayoutEffect:()=>{};function vp(e,t){return c.useReducer((r,o)=>{const n=t[r][o];return n??r},e)}const _t=e=>{const{present:t,children:r}=e,o=yp(t),n=typeof r=="function"?r({present:o.isPresent}):c.Children.only(r),a=Ge(o.ref,n.ref);return typeof r=="function"||o.isPresent?c.cloneElement(n,{ref:a}):null};_t.displayName="Presence";function yp(e){const[t,r]=c.useState(),o=c.useRef({}),n=c.useRef(e),a=c.useRef("none"),s=e?"mounted":"unmounted",[l,d]=vp(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return c.useEffect(()=>{const p=nr(o.current);a.current=l==="mounted"?p:"none"},[l]),mt(()=>{const p=o.current,f=n.current;if(f!==e){const w=a.current,v=nr(p);e?d("MOUNT"):v==="none"||(p==null?void 0:p.display)==="none"?d("UNMOUNT"):d(f&&w!==v?"ANIMATION_OUT":"UNMOUNT"),n.current=e}},[e,d]),mt(()=>{if(t){const p=$=>{const v=nr(o.current).includes($.animationName);$.target===t&&v&&Lt.flushSync(()=>d("ANIMATION_END"))},f=$=>{$.target===t&&(a.current=nr(o.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:c.useCallback(p=>{p&&(o.current=getComputedStyle(p)),r(p)},[])}}function nr(e){return(e==null?void 0:e.animationName)||"none"}const $p=lr["useId".toString()]||(()=>{});let mp=0;function Os(e){const[t,r]=lr.useState($p());return mt(()=>{e||r(o=>o??String(mp++))},[e]),e||(t?`radix-${t}`:"")}function As(e){const t=e+"CollectionProvider",[r,o]=Is(t),[n,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=v=>{const{scope:m,children:C}=v,T=c.useRef(null),R=c.useRef(new Map).current;return c.createElement(n,{scope:m,itemMap:R,collectionRef:T},C)},l=e+"CollectionSlot",d=c.forwardRef((v,m)=>{const{scope:C,children:T}=v,R=a(l,C),I=Ge(m,R.collectionRef);return c.createElement($r,{ref:I},T)}),p=e+"CollectionItemSlot",f="data-radix-collection-item",$=c.forwardRef((v,m)=>{const{scope:C,children:T,...R}=v,I=c.useRef(null),A=Ge(m,I),z=a(p,C);return c.useEffect(()=>(z.itemMap.set(I,{ref:I,...R}),()=>void z.itemMap.delete(I))),c.createElement($r,{[f]:"",ref:A},T)});function w(v){const m=a(e+"CollectionConsumer",v);return c.useCallback(()=>{const T=m.collectionRef.current;if(!T)return[];const R=Array.from(T.querySelectorAll(`[${f}]`));return Array.from(m.itemMap.values()).sort((z,K)=>R.indexOf(z.ref.current)-R.indexOf(K.ref.current))},[m.collectionRef,m.itemMap])}return[{Provider:s,Slot:d,ItemSlot:$},w,o]}function xp(e,t=globalThis==null?void 0:globalThis.document){const r=Oe(e);c.useEffect(()=>{const o=n=>{n.key==="Escape"&&r(n)};return t.addEventListener("keydown",o),()=>t.removeEventListener("keydown",o)},[r,t])}const xo="dismissableLayer.update",hp="dismissableLayer.pointerDownOutside",wp="dismissableLayer.focusOutside";let ga;const Cp=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ep=c.forwardRef((e,t)=>{var r;const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:n,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:d,...p}=e,f=c.useContext(Cp),[$,w]=c.useState(null),v=(r=$==null?void 0:$.ownerDocument)!==null&&r!==void 0?r:globalThis==null?void 0:globalThis.document,[,m]=c.useState({}),C=Ge(t,b=>w(b)),T=Array.from(f.layers),[R]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),I=T.indexOf(R),A=$?T.indexOf($):-1,z=f.layersWithOutsidePointerEventsDisabled.size>0,K=A>=I,D=Sp(b=>{const L=b.target,_=[...f.branches].some(O=>O.contains(L));!K||_||(a==null||a(b),l==null||l(b),b.defaultPrevented||d==null||d())},v),U=Pp(b=>{const L=b.target;[...f.branches].some(O=>O.contains(L))||(s==null||s(b),l==null||l(b),b.defaultPrevented||d==null||d())},v);return xp(b=>{A===f.layers.size-1&&(n==null||n(b),!b.defaultPrevented&&d&&(b.preventDefault(),d()))},v),c.useEffect(()=>{if($)return o&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(ga=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add($)),f.layers.add($),ba(),()=>{o&&f.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=ga)}},[$,v,o,f]),c.useEffect(()=>()=>{$&&(f.layers.delete($),f.layersWithOutsidePointerEventsDisabled.delete($),ba())},[$,f]),c.useEffect(()=>{const b=()=>m({});return document.addEventListener(xo,b),()=>document.removeEventListener(xo,b)},[]),c.createElement(Ae.div,ye({},p,{ref:C,style:{pointerEvents:z?K?"auto":"none":void 0,...e.style},onFocusCapture:we(e.onFocusCapture,U.onFocusCapture),onBlurCapture:we(e.onBlurCapture,U.onBlurCapture),onPointerDownCapture:we(e.onPointerDownCapture,D.onPointerDownCapture)}))});function Sp(e,t=globalThis==null?void 0:globalThis.document){const r=Oe(e),o=c.useRef(!1),n=c.useRef(()=>{});return c.useEffect(()=>{const a=l=>{if(l.target&&!o.current){let p=function(){js(hp,r,d,{discrete:!0})};const d={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",n.current),n.current=p,t.addEventListener("click",n.current,{once:!0})):p()}else t.removeEventListener("click",n.current);o.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",n.current)}},[t,r]),{onPointerDownCapture:()=>o.current=!0}}function Pp(e,t=globalThis==null?void 0:globalThis.document){const r=Oe(e),o=c.useRef(!1);return c.useEffect(()=>{const n=a=>{a.target&&!o.current&&js(wp,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",n),()=>t.removeEventListener("focusin",n)},[t,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function ba(){const e=new CustomEvent(xo);document.dispatchEvent(e)}function js(e,t,r,{discrete:o}){const n=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&n.addEventListener(e,t,{once:!0}),o?mo(n,a):n.dispatchEvent(a)}function Tp(e){const t=c.useRef({value:e,previous:e});return c.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}const kp=c.forwardRef((e,t)=>c.createElement(Ae.span,ye({},e,{ref:t,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}}))),Mp=kp,Kt="NavigationMenu",[Uo,Ls,Rp]=As(Kt),[ho,Ip,Op]=As(Kt),[Wo,kg]=Is(Kt,[Rp,Op]),[Ap,Ke]=Wo(Kt),[jp,Lp]=Wo(Kt),_p=c.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,value:o,onValueChange:n,defaultValue:a,delayDuration:s=200,skipDelayDuration:l=300,orientation:d="horizontal",dir:p,...f}=e,[$,w]=c.useState(null),v=Ge(t,L=>w(L)),m=bp(p),C=c.useRef(0),T=c.useRef(0),R=c.useRef(0),[I,A]=c.useState(!0),[z="",K]=fp({prop:o,onChange:L=>{const _=L!=="",O=l>0;_?(window.clearTimeout(R.current),O&&A(!1)):(window.clearTimeout(R.current),R.current=window.setTimeout(()=>A(!0),l)),n==null||n(L)},defaultProp:a}),D=c.useCallback(()=>{window.clearTimeout(T.current),T.current=window.setTimeout(()=>K(""),150)},[K]),U=c.useCallback(L=>{window.clearTimeout(T.current),K(L)},[K]),b=c.useCallback(L=>{z===L?window.clearTimeout(T.current):C.current=window.setTimeout(()=>{window.clearTimeout(T.current),K(L)},s)},[z,K,s]);return c.useEffect(()=>()=>{window.clearTimeout(C.current),window.clearTimeout(T.current),window.clearTimeout(R.current)},[]),c.createElement(Kp,{scope:r,isRootMenu:!0,value:z,dir:m,orientation:d,rootNavigationMenu:$,onTriggerEnter:L=>{window.clearTimeout(C.current),I?b(L):U(L)},onTriggerLeave:()=>{window.clearTimeout(C.current),D()},onContentEnter:()=>window.clearTimeout(T.current),onContentLeave:D,onItemSelect:L=>{K(_=>_===L?"":L)},onItemDismiss:()=>K("")},c.createElement(Ae.nav,ye({"aria-label":"Main","data-orientation":d,dir:m},f,{ref:v})))}),Kp=e=>{const{scope:t,isRootMenu:r,rootNavigationMenu:o,dir:n,orientation:a,children:s,value:l,onItemSelect:d,onItemDismiss:p,onTriggerEnter:f,onTriggerLeave:$,onContentEnter:w,onContentLeave:v}=e,[m,C]=c.useState(null),[T,R]=c.useState(new Map),[I,A]=c.useState(null);return c.createElement(Ap,{scope:t,isRootMenu:r,rootNavigationMenu:o,value:l,previousValue:Tp(l),baseId:Os(),dir:n,orientation:a,viewport:m,onViewportChange:C,indicatorTrack:I,onIndicatorTrackChange:A,onTriggerEnter:Oe(f),onTriggerLeave:Oe($),onContentEnter:Oe(w),onContentLeave:Oe(v),onItemSelect:Oe(d),onItemDismiss:Oe(p),onViewportContentChange:c.useCallback((z,K)=>{R(D=>(D.set(z,K),new Map(D)))},[]),onViewportContentRemove:c.useCallback(z=>{R(K=>K.has(z)?(K.delete(z),new Map(K)):K)},[])},c.createElement(Uo.Provider,{scope:t},c.createElement(jp,{scope:t,items:T},s)))},Dp="NavigationMenuList",Fp=c.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,...o}=e,n=Ke(Dp,r),a=c.createElement(Ae.ul,ye({"data-orientation":n.orientation},o,{ref:t}));return c.createElement(Ae.div,{style:{position:"relative"},ref:n.onIndicatorTrackChange},c.createElement(Uo.Slot,{scope:r},n.isRootMenu?c.createElement(Ns,{asChild:!0},a):a))}),Np="NavigationMenuItem",[zp,_s]=Wo(Np),Bp=c.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,value:o,...n}=e,a=Os(),s=o||a||"LEGACY_REACT_AUTO_VALUE",l=c.useRef(null),d=c.useRef(null),p=c.useRef(null),f=c.useRef(()=>{}),$=c.useRef(!1),w=c.useCallback((m="start")=>{if(l.current){f.current();const C=wo(l.current);C.length&&Go(m==="start"?C:C.reverse())}},[]),v=c.useCallback(()=>{if(l.current){const m=wo(l.current);m.length&&(f.current=Qp(m))}},[]);return c.createElement(zp,{scope:r,value:s,triggerRef:d,contentRef:l,focusProxyRef:p,wasEscapeCloseRef:$,onEntryKeyDown:w,onFocusProxyEnter:w,onRootContentClose:v,onContentFocusOutside:v},c.createElement(Ae.li,ye({},n,{ref:t})))}),va="NavigationMenuTrigger",Vp=c.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,disabled:o,...n}=e,a=Ke(va,e.__scopeNavigationMenu),s=_s(va,e.__scopeNavigationMenu),l=c.useRef(null),d=Ge(l,s.triggerRef,t),p=Bs(a.baseId,s.value),f=Vs(a.baseId,s.value),$=c.useRef(!1),w=c.useRef(!1),v=s.value===a.value;return c.createElement(c.Fragment,null,c.createElement(Uo.ItemSlot,{scope:r,value:s.value},c.createElement(zs,{asChild:!0},c.createElement(Ae.button,ye({id:p,disabled:o,"data-disabled":o?"":void 0,"data-state":Yo(v),"aria-expanded":v,"aria-controls":f},n,{ref:d,onPointerEnter:we(e.onPointerEnter,()=>{w.current=!1,s.wasEscapeCloseRef.current=!1}),onPointerMove:we(e.onPointerMove,mr(()=>{o||w.current||s.wasEscapeCloseRef.current||$.current||(a.onTriggerEnter(s.value),$.current=!0)})),onPointerLeave:we(e.onPointerLeave,mr(()=>{o||(a.onTriggerLeave(),$.current=!1)})),onClick:we(e.onClick,()=>{a.onItemSelect(s.value),w.current=v}),onKeyDown:we(e.onKeyDown,m=>{const T={horizontal:"ArrowDown",vertical:a.dir==="rtl"?"ArrowLeft":"ArrowRight"}[a.orientation];v&&m.key===T&&(s.onEntryKeyDown(),m.preventDefault())})})))),v&&c.createElement(c.Fragment,null,c.createElement(Mp,{"aria-hidden":!0,tabIndex:0,ref:s.focusProxyRef,onFocus:m=>{const C=s.contentRef.current,T=m.relatedTarget,R=T===l.current,I=C==null?void 0:C.contains(T);(R||!I)&&s.onFocusProxyEnter(R?"start":"end")}}),a.viewport&&c.createElement("span",{"aria-owns":f})))}),ya="navigationMenu.linkSelect",Hp=c.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,active:o,onSelect:n,...a}=e;return c.createElement(zs,{asChild:!0},c.createElement(Ae.a,ye({"data-active":o?"":void 0,"aria-current":o?"page":void 0},a,{ref:t,onClick:we(e.onClick,s=>{const l=s.target,d=new CustomEvent(ya,{bubbles:!0,cancelable:!0});if(l.addEventListener(ya,p=>n==null?void 0:n(p),{once:!0}),mo(l,d),!d.defaultPrevented&&!s.metaKey){const p=new CustomEvent(ir,{bubbles:!0,cancelable:!0});mo(l,p)}},{checkForDefaultPrevented:!1})})))}),Ks="NavigationMenuIndicator",Up=c.forwardRef((e,t)=>{const{forceMount:r,...o}=e,n=Ke(Ks,e.__scopeNavigationMenu),a=!!n.value;return n.indicatorTrack?Lt.createPortal(c.createElement(_t,{present:r||a},c.createElement(Wp,ye({},o,{ref:t}))),n.indicatorTrack):null}),Wp=c.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,...o}=e,n=Ke(Ks,r),a=Ls(r),[s,l]=c.useState(null),[d,p]=c.useState(null),f=n.orientation==="horizontal",$=!!n.value;c.useEffect(()=>{var v;const C=(v=a().find(T=>T.value===n.value))===null||v===void 0?void 0:v.ref.current;C&&l(C)},[a,n.value]);const w=()=>{s&&p({size:f?s.offsetWidth:s.offsetHeight,offset:f?s.offsetLeft:s.offsetTop})};return Co(s,w),Co(n.indicatorTrack,w),d?c.createElement(Ae.div,ye({"aria-hidden":!0,"data-state":$?"visible":"hidden","data-orientation":n.orientation},o,{ref:t,style:{position:"absolute",...f?{left:0,width:d.size+"px",transform:`translateX(${d.offset}px)`}:{top:0,height:d.size+"px",transform:`translateY(${d.offset}px)`},...o.style}})):null}),jt="NavigationMenuContent",Gp=c.forwardRef((e,t)=>{const{forceMount:r,...o}=e,n=Ke(jt,e.__scopeNavigationMenu),a=_s(jt,e.__scopeNavigationMenu),s=Ge(a.contentRef,t),l=a.value===n.value,d={value:a.value,triggerRef:a.triggerRef,focusProxyRef:a.focusProxyRef,wasEscapeCloseRef:a.wasEscapeCloseRef,onContentFocusOutside:a.onContentFocusOutside,onRootContentClose:a.onRootContentClose,...o};return n.viewport?c.createElement(Yp,ye({forceMount:r},d,{ref:s})):c.createElement(_t,{present:r||l},c.createElement(Ds,ye({"data-state":Yo(l)},d,{ref:s,onPointerEnter:we(e.onPointerEnter,n.onContentEnter),onPointerLeave:we(e.onPointerLeave,mr(n.onContentLeave)),style:{pointerEvents:!l&&n.isRootMenu?"none":void 0,...d.style}})))}),Yp=c.forwardRef((e,t)=>{const r=Ke(jt,e.__scopeNavigationMenu),{onViewportContentChange:o,onViewportContentRemove:n}=r;return mt(()=>{o(e.value,{ref:t,...e})},[e,t,o]),mt(()=>()=>n(e.value),[e.value,n]),null}),ir="navigationMenu.rootContentDismiss",Ds=c.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,value:o,triggerRef:n,focusProxyRef:a,wasEscapeCloseRef:s,onRootContentClose:l,onContentFocusOutside:d,...p}=e,f=Ke(jt,r),$=c.useRef(null),w=Ge($,t),v=Bs(f.baseId,o),m=Vs(f.baseId,o),C=Ls(r),T=c.useRef(null),{onItemDismiss:R}=f;c.useEffect(()=>{const A=$.current;if(f.isRootMenu&&A){const z=()=>{var K;R(),l(),A.contains(document.activeElement)&&((K=n.current)===null||K===void 0||K.focus())};return A.addEventListener(ir,z),()=>A.removeEventListener(ir,z)}},[f.isRootMenu,e.value,n,R,l]);const I=c.useMemo(()=>{const z=C().map(_=>_.value);f.dir==="rtl"&&z.reverse();const K=z.indexOf(f.value),D=z.indexOf(f.previousValue),U=o===f.value,b=D===z.indexOf(o);if(!U&&!b)return T.current;const L=(()=>{if(K!==D){if(U&&D!==-1)return K>D?"from-end":"from-start";if(b&&K!==-1)return K>D?"to-start":"to-end"}return null})();return T.current=L,L},[f.previousValue,f.value,f.dir,C,o]);return c.createElement(Ns,{asChild:!0},c.createElement(Ep,ye({id:m,"aria-labelledby":v,"data-motion":I,"data-orientation":f.orientation},p,{ref:w,onDismiss:()=>{var A;const z=new Event(ir,{bubbles:!0,cancelable:!0});(A=$.current)===null||A===void 0||A.dispatchEvent(z)},onFocusOutside:we(e.onFocusOutside,A=>{var z;d();const K=A.target;(z=f.rootNavigationMenu)!==null&&z!==void 0&&z.contains(K)&&A.preventDefault()}),onPointerDownOutside:we(e.onPointerDownOutside,A=>{var z;const K=A.target,D=C().some(b=>{var L;return(L=b.ref.current)===null||L===void 0?void 0:L.contains(K)}),U=f.isRootMenu&&((z=f.viewport)===null||z===void 0?void 0:z.contains(K));(D||U||!f.isRootMenu)&&A.preventDefault()}),onKeyDown:we(e.onKeyDown,A=>{const z=A.altKey||A.ctrlKey||A.metaKey;if(A.key==="Tab"&&!z){const U=wo(A.currentTarget),b=document.activeElement,L=U.findIndex(k=>k===b),O=A.shiftKey?U.slice(0,L).reverse():U.slice(L+1,U.length);if(Go(O))A.preventDefault();else{var D;(D=a.current)===null||D===void 0||D.focus()}}}),onEscapeKeyDown:we(e.onEscapeKeyDown,A=>{s.current=!0})})))}),Fs="NavigationMenuViewport",Xp=c.forwardRef((e,t)=>{const{forceMount:r,...o}=e,a=!!Ke(Fs,e.__scopeNavigationMenu).value;return c.createElement(_t,{present:r||a},c.createElement(qp,ye({},o,{ref:t})))}),qp=c.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,children:o,...n}=e,a=Ke(Fs,r),s=Ge(t,a.onViewportChange),l=Lp(jt,e.__scopeNavigationMenu),[d,p]=c.useState(null),[f,$]=c.useState(null),w=d?(d==null?void 0:d.width)+"px":void 0,v=d?(d==null?void 0:d.height)+"px":void 0,m=!!a.value,C=m?a.value:a.previousValue;return Co(f,()=>{f&&p({width:f.offsetWidth,height:f.offsetHeight})}),c.createElement(Ae.div,ye({"data-state":Yo(m),"data-orientation":a.orientation},n,{ref:s,style:{pointerEvents:!m&&a.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":w,"--radix-navigation-menu-viewport-height":v,...n.style},onPointerEnter:we(e.onPointerEnter,a.onContentEnter),onPointerLeave:we(e.onPointerLeave,mr(a.onContentLeave))}),Array.from(l.items).map(([R,{ref:I,forceMount:A,...z}])=>{const K=C===R;return c.createElement(_t,{key:R,present:A||K},c.createElement(Ds,ye({},z,{ref:Ho(I,D=>{K&&D&&$(D)})})))}))}),Zp="FocusGroup",Ns=c.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,...o}=e,n=Ke(Zp,r);return c.createElement(ho.Provider,{scope:r},c.createElement(ho.Slot,{scope:r},c.createElement(Ae.div,ye({dir:n.dir},o,{ref:t}))))}),$a=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],Jp="FocusGroupItem",zs=c.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,...o}=e,n=Ip(r),a=Ke(Jp,r);return c.createElement(ho.ItemSlot,{scope:r},c.createElement(Ae.button,ye({},o,{ref:t,onKeyDown:we(e.onKeyDown,s=>{if(["Home","End",...$a].includes(s.key)){let d=n().map($=>$.ref.current);if([a.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(s.key)&&d.reverse(),$a.includes(s.key)){const $=d.indexOf(s.currentTarget);d=d.slice($+1)}setTimeout(()=>Go(d)),s.preventDefault()}})})))});function wo(e){const t=[],r=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(;r.nextNode();)t.push(r.currentNode);return t}function Go(e){const t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}function Qp(e){return e.forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")}),()=>{e.forEach(t=>{const r=t.dataset.tabindex;t.setAttribute("tabindex",r)})}}function Co(e,t){const r=Oe(t);mt(()=>{let o=0;if(e){const n=new ResizeObserver(()=>{cancelAnimationFrame(o),o=window.requestAnimationFrame(r)});return n.observe(e),()=>{window.cancelAnimationFrame(o),n.unobserve(e)}}},[e,r])}function Yo(e){return e?"open":"closed"}function Bs(e,t){return`${e}-trigger-${t}`}function Vs(e,t){return`${e}-content-${t}`}function mr(e){return t=>t.pointerType==="mouse"?e(t):void 0}const eg=_p,tg=Fp,Xr=Bp,rg=Vp,og=Hp,ng=Up,ag=Gp,sg=Xp,ig=P.keyframes`
|
|
1884
|
+
`,dp=c.forwardRef(function(t,r){return g.jsx(cp,{classNames:{base:["tooltip"],content:["tooltip-content"]},...t,ref:r})});function ye(){return ye=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},ye.apply(this,arguments)}function Os(e,t=[]){let r=[];function o(a,s){const i=c.createContext(s),d=r.length;r=[...r,s];function p($){const{scope:w,children:v,...x}=$,C=(w==null?void 0:w[e][d])||i,T=c.useMemo(()=>x,Object.values(x));return c.createElement(C.Provider,{value:T},v)}function f($,w){const v=(w==null?void 0:w[e][d])||i,x=c.useContext(v);if(x)return x;if(s!==void 0)return s;throw new Error(`\`${$}\` must be used within \`${a}\``)}return p.displayName=a+"Provider",[p,f]}const n=()=>{const a=r.map(s=>c.createContext(s));return function(i){const d=(i==null?void 0:i[e])||a;return c.useMemo(()=>({[`__scope${e}`]:{...i,[e]:d}}),[i,d])}};return n.scopeName=e,[o,up(n,...t)]}function up(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const o=e.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(a){const s=o.reduce((i,{useScope:d,scopeName:p})=>{const $=d(a)[`__scope${p}`];return{...i,...$}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}function we(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e==null||e(n),r===!1||!n.defaultPrevented)return t==null?void 0:t(n)}}function fp(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Ho(...e){return t=>e.forEach(r=>fp(r,t))}function Ge(...e){return c.useCallback(Ho(...e),e)}const $r=c.forwardRef((e,t)=>{const{children:r,...o}=e,n=c.Children.toArray(r),a=n.find(gp);if(a){const s=a.props.children,i=n.map(d=>d===a?c.Children.count(s)>1?c.Children.only(null):c.isValidElement(s)?s.props.children:null:d);return c.createElement($o,ye({},o,{ref:t}),c.isValidElement(s)?c.cloneElement(s,void 0,i):null)}return c.createElement($o,ye({},o,{ref:t}),r)});$r.displayName="Slot";const $o=c.forwardRef((e,t)=>{const{children:r,...o}=e;return c.isValidElement(r)?c.cloneElement(r,{...bp(o,r.props),ref:t?Ho(t,r.ref):r.ref}):c.Children.count(r)>1?c.Children.only(null):null});$o.displayName="SlotClone";const pp=({children:e})=>c.createElement(c.Fragment,null,e);function gp(e){return c.isValidElement(e)&&e.type===pp}function bp(e,t){const r={...t};for(const o in t){const n=e[o],a=t[o];/^on[A-Z]/.test(o)?n&&a?r[o]=(...i)=>{a(...i),n(...i)}:n&&(r[o]=n):o==="style"?r[o]={...n,...a}:o==="className"&&(r[o]=[n,a].filter(Boolean).join(" "))}return{...e,...r}}const vp=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Ae=vp.reduce((e,t)=>{const r=c.forwardRef((o,n)=>{const{asChild:a,...s}=o,i=a?$r:t;return c.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),c.createElement(i,ye({},s,{ref:n}))});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function xo(e,t){e&&Lt.flushSync(()=>e.dispatchEvent(t))}function Oe(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>(...r)=>{var o;return(o=t.current)===null||o===void 0?void 0:o.call(t,...r)},[])}function yp({prop:e,defaultProp:t,onChange:r=()=>{}}){const[o,n]=$p({defaultProp:t,onChange:r}),a=e!==void 0,s=a?e:o,i=Oe(r),d=c.useCallback(p=>{if(a){const $=typeof p=="function"?p(e):p;$!==e&&i($)}else n(p)},[a,e,n,i]);return[s,d]}function $p({defaultProp:e,onChange:t}){const r=c.useState(e),[o]=r,n=c.useRef(o),a=Oe(t);return c.useEffect(()=>{n.current!==o&&(a(o),n.current=o)},[o,n,a]),r}const xp=c.createContext(void 0);function mp(e){const t=c.useContext(xp);return e||t||"ltr"}const xt=globalThis!=null&&globalThis.document?c.useLayoutEffect:()=>{};function hp(e,t){return c.useReducer((r,o)=>{const n=t[r][o];return n??r},e)}const _t=e=>{const{present:t,children:r}=e,o=wp(t),n=typeof r=="function"?r({present:o.isPresent}):c.Children.only(r),a=Ge(o.ref,n.ref);return typeof r=="function"||o.isPresent?c.cloneElement(n,{ref:a}):null};_t.displayName="Presence";function wp(e){const[t,r]=c.useState(),o=c.useRef({}),n=c.useRef(e),a=c.useRef("none"),s=e?"mounted":"unmounted",[i,d]=hp(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return c.useEffect(()=>{const p=nr(o.current);a.current=i==="mounted"?p:"none"},[i]),xt(()=>{const p=o.current,f=n.current;if(f!==e){const w=a.current,v=nr(p);e?d("MOUNT"):v==="none"||(p==null?void 0:p.display)==="none"?d("UNMOUNT"):d(f&&w!==v?"ANIMATION_OUT":"UNMOUNT"),n.current=e}},[e,d]),xt(()=>{if(t){const p=$=>{const v=nr(o.current).includes($.animationName);$.target===t&&v&&Lt.flushSync(()=>d("ANIMATION_END"))},f=$=>{$.target===t&&(a.current=nr(o.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:c.useCallback(p=>{p&&(o.current=getComputedStyle(p)),r(p)},[])}}function nr(e){return(e==null?void 0:e.animationName)||"none"}const Cp=lr["useId".toString()]||(()=>{});let Ep=0;function As(e){const[t,r]=lr.useState(Cp());return xt(()=>{e||r(o=>o??String(Ep++))},[e]),e||(t?`radix-${t}`:"")}function js(e){const t=e+"CollectionProvider",[r,o]=Os(t),[n,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=v=>{const{scope:x,children:C}=v,T=c.useRef(null),R=c.useRef(new Map).current;return c.createElement(n,{scope:x,itemMap:R,collectionRef:T},C)},i=e+"CollectionSlot",d=c.forwardRef((v,x)=>{const{scope:C,children:T}=v,R=a(i,C),O=Ge(x,R.collectionRef);return c.createElement($r,{ref:O},T)}),p=e+"CollectionItemSlot",f="data-radix-collection-item",$=c.forwardRef((v,x)=>{const{scope:C,children:T,...R}=v,O=c.useRef(null),A=Ge(x,O),z=a(p,C);return c.useEffect(()=>(z.itemMap.set(O,{ref:O,...R}),()=>void z.itemMap.delete(O))),c.createElement($r,{[f]:"",ref:A},T)});function w(v){const x=a(e+"CollectionConsumer",v);return c.useCallback(()=>{const T=x.collectionRef.current;if(!T)return[];const R=Array.from(T.querySelectorAll(`[${f}]`));return Array.from(x.itemMap.values()).sort((z,K)=>R.indexOf(z.ref.current)-R.indexOf(K.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:s,Slot:d,ItemSlot:$},w,o]}function Sp(e,t=globalThis==null?void 0:globalThis.document){const r=Oe(e);c.useEffect(()=>{const o=n=>{n.key==="Escape"&&r(n)};return t.addEventListener("keydown",o),()=>t.removeEventListener("keydown",o)},[r,t])}const mo="dismissableLayer.update",Pp="dismissableLayer.pointerDownOutside",Tp="dismissableLayer.focusOutside";let ga;const kp=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Mp=c.forwardRef((e,t)=>{var r;const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:n,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:i,onDismiss:d,...p}=e,f=c.useContext(kp),[$,w]=c.useState(null),v=(r=$==null?void 0:$.ownerDocument)!==null&&r!==void 0?r:globalThis==null?void 0:globalThis.document,[,x]=c.useState({}),C=Ge(t,b=>w(b)),T=Array.from(f.layers),[R]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),O=T.indexOf(R),A=$?T.indexOf($):-1,z=f.layersWithOutsidePointerEventsDisabled.size>0,K=A>=O,D=Ip(b=>{const L=b.target,_=[...f.branches].some(k=>k.contains(L));!K||_||(a==null||a(b),i==null||i(b),b.defaultPrevented||d==null||d())},v),U=Rp(b=>{const L=b.target;[...f.branches].some(k=>k.contains(L))||(s==null||s(b),i==null||i(b),b.defaultPrevented||d==null||d())},v);return Sp(b=>{A===f.layers.size-1&&(n==null||n(b),!b.defaultPrevented&&d&&(b.preventDefault(),d()))},v),c.useEffect(()=>{if($)return o&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(ga=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add($)),f.layers.add($),ba(),()=>{o&&f.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=ga)}},[$,v,o,f]),c.useEffect(()=>()=>{$&&(f.layers.delete($),f.layersWithOutsidePointerEventsDisabled.delete($),ba())},[$,f]),c.useEffect(()=>{const b=()=>x({});return document.addEventListener(mo,b),()=>document.removeEventListener(mo,b)},[]),c.createElement(Ae.div,ye({},p,{ref:C,style:{pointerEvents:z?K?"auto":"none":void 0,...e.style},onFocusCapture:we(e.onFocusCapture,U.onFocusCapture),onBlurCapture:we(e.onBlurCapture,U.onBlurCapture),onPointerDownCapture:we(e.onPointerDownCapture,D.onPointerDownCapture)}))});function Ip(e,t=globalThis==null?void 0:globalThis.document){const r=Oe(e),o=c.useRef(!1),n=c.useRef(()=>{});return c.useEffect(()=>{const a=i=>{if(i.target&&!o.current){let p=function(){Ls(Pp,r,d,{discrete:!0})};const d={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",n.current),n.current=p,t.addEventListener("click",n.current,{once:!0})):p()}else t.removeEventListener("click",n.current);o.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",n.current)}},[t,r]),{onPointerDownCapture:()=>o.current=!0}}function Rp(e,t=globalThis==null?void 0:globalThis.document){const r=Oe(e),o=c.useRef(!1);return c.useEffect(()=>{const n=a=>{a.target&&!o.current&&Ls(Tp,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",n),()=>t.removeEventListener("focusin",n)},[t,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function ba(){const e=new CustomEvent(mo);document.dispatchEvent(e)}function Ls(e,t,r,{discrete:o}){const n=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&n.addEventListener(e,t,{once:!0}),o?xo(n,a):n.dispatchEvent(a)}function Op(e){const t=c.useRef({value:e,previous:e});return c.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}const Ap=c.forwardRef((e,t)=>c.createElement(Ae.span,ye({},e,{ref:t,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}}))),jp=Ap,Kt="NavigationMenu",[Uo,_s,Lp]=js(Kt),[ho,_p,Kp]=js(Kt),[Wo,Ag]=Os(Kt,[Lp,Kp]),[Dp,Ke]=Wo(Kt),[Np,Fp]=Wo(Kt),zp=c.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,value:o,onValueChange:n,defaultValue:a,delayDuration:s=200,skipDelayDuration:i=300,orientation:d="horizontal",dir:p,...f}=e,[$,w]=c.useState(null),v=Ge(t,L=>w(L)),x=mp(p),C=c.useRef(0),T=c.useRef(0),R=c.useRef(0),[O,A]=c.useState(!0),[z="",K]=yp({prop:o,onChange:L=>{const _=L!=="",k=i>0;_?(window.clearTimeout(R.current),k&&A(!1)):(window.clearTimeout(R.current),R.current=window.setTimeout(()=>A(!0),i)),n==null||n(L)},defaultProp:a}),D=c.useCallback(()=>{window.clearTimeout(T.current),T.current=window.setTimeout(()=>K(""),150)},[K]),U=c.useCallback(L=>{window.clearTimeout(T.current),K(L)},[K]),b=c.useCallback(L=>{z===L?window.clearTimeout(T.current):C.current=window.setTimeout(()=>{window.clearTimeout(T.current),K(L)},s)},[z,K,s]);return c.useEffect(()=>()=>{window.clearTimeout(C.current),window.clearTimeout(T.current),window.clearTimeout(R.current)},[]),c.createElement(Bp,{scope:r,isRootMenu:!0,value:z,dir:x,orientation:d,rootNavigationMenu:$,onTriggerEnter:L=>{window.clearTimeout(C.current),O?b(L):U(L)},onTriggerLeave:()=>{window.clearTimeout(C.current),D()},onContentEnter:()=>window.clearTimeout(T.current),onContentLeave:D,onItemSelect:L=>{K(_=>_===L?"":L)},onItemDismiss:()=>K("")},c.createElement(Ae.nav,ye({"aria-label":"Main","data-orientation":d,dir:x},f,{ref:v})))}),Bp=e=>{const{scope:t,isRootMenu:r,rootNavigationMenu:o,dir:n,orientation:a,children:s,value:i,onItemSelect:d,onItemDismiss:p,onTriggerEnter:f,onTriggerLeave:$,onContentEnter:w,onContentLeave:v}=e,[x,C]=c.useState(null),[T,R]=c.useState(new Map),[O,A]=c.useState(null);return c.createElement(Dp,{scope:t,isRootMenu:r,rootNavigationMenu:o,value:i,previousValue:Op(i),baseId:As(),dir:n,orientation:a,viewport:x,onViewportChange:C,indicatorTrack:O,onIndicatorTrackChange:A,onTriggerEnter:Oe(f),onTriggerLeave:Oe($),onContentEnter:Oe(w),onContentLeave:Oe(v),onItemSelect:Oe(d),onItemDismiss:Oe(p),onViewportContentChange:c.useCallback((z,K)=>{R(D=>(D.set(z,K),new Map(D)))},[]),onViewportContentRemove:c.useCallback(z=>{R(K=>K.has(z)?(K.delete(z),new Map(K)):K)},[])},c.createElement(Uo.Provider,{scope:t},c.createElement(Np,{scope:t,items:T},s)))},Vp="NavigationMenuList",Hp=c.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,...o}=e,n=Ke(Vp,r),a=c.createElement(Ae.ul,ye({"data-orientation":n.orientation},o,{ref:t}));return c.createElement(Ae.div,{style:{position:"relative"},ref:n.onIndicatorTrackChange},c.createElement(Uo.Slot,{scope:r},n.isRootMenu?c.createElement(zs,{asChild:!0},a):a))}),Up="NavigationMenuItem",[Wp,Ks]=Wo(Up),Gp=c.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,value:o,...n}=e,a=As(),s=o||a||"LEGACY_REACT_AUTO_VALUE",i=c.useRef(null),d=c.useRef(null),p=c.useRef(null),f=c.useRef(()=>{}),$=c.useRef(!1),w=c.useCallback((x="start")=>{if(i.current){f.current();const C=wo(i.current);C.length&&Go(x==="start"?C:C.reverse())}},[]),v=c.useCallback(()=>{if(i.current){const x=wo(i.current);x.length&&(f.current=ng(x))}},[]);return c.createElement(Wp,{scope:r,value:s,triggerRef:d,contentRef:i,focusProxyRef:p,wasEscapeCloseRef:$,onEntryKeyDown:w,onFocusProxyEnter:w,onRootContentClose:v,onContentFocusOutside:v},c.createElement(Ae.li,ye({},n,{ref:t})))}),va="NavigationMenuTrigger",Yp=c.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,disabled:o,...n}=e,a=Ke(va,e.__scopeNavigationMenu),s=Ks(va,e.__scopeNavigationMenu),i=c.useRef(null),d=Ge(i,s.triggerRef,t),p=Vs(a.baseId,s.value),f=Hs(a.baseId,s.value),$=c.useRef(!1),w=c.useRef(!1),v=s.value===a.value;return c.createElement(c.Fragment,null,c.createElement(Uo.ItemSlot,{scope:r,value:s.value},c.createElement(Bs,{asChild:!0},c.createElement(Ae.button,ye({id:p,disabled:o,"data-disabled":o?"":void 0,"data-state":Yo(v),"aria-expanded":v,"aria-controls":f},n,{ref:d,onPointerEnter:we(e.onPointerEnter,()=>{w.current=!1,s.wasEscapeCloseRef.current=!1}),onPointerMove:we(e.onPointerMove,xr(()=>{o||w.current||s.wasEscapeCloseRef.current||$.current||(a.onTriggerEnter(s.value),$.current=!0)})),onPointerLeave:we(e.onPointerLeave,xr(()=>{o||(a.onTriggerLeave(),$.current=!1)})),onClick:we(e.onClick,()=>{a.onItemSelect(s.value),w.current=v}),onKeyDown:we(e.onKeyDown,x=>{const T={horizontal:"ArrowDown",vertical:a.dir==="rtl"?"ArrowLeft":"ArrowRight"}[a.orientation];v&&x.key===T&&(s.onEntryKeyDown(),x.preventDefault())})})))),v&&c.createElement(c.Fragment,null,c.createElement(jp,{"aria-hidden":!0,tabIndex:0,ref:s.focusProxyRef,onFocus:x=>{const C=s.contentRef.current,T=x.relatedTarget,R=T===i.current,O=C==null?void 0:C.contains(T);(R||!O)&&s.onFocusProxyEnter(R?"start":"end")}}),a.viewport&&c.createElement("span",{"aria-owns":f})))}),ya="navigationMenu.linkSelect",Xp=c.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,active:o,onSelect:n,...a}=e;return c.createElement(Bs,{asChild:!0},c.createElement(Ae.a,ye({"data-active":o?"":void 0,"aria-current":o?"page":void 0},a,{ref:t,onClick:we(e.onClick,s=>{const i=s.target,d=new CustomEvent(ya,{bubbles:!0,cancelable:!0});if(i.addEventListener(ya,p=>n==null?void 0:n(p),{once:!0}),xo(i,d),!d.defaultPrevented&&!s.metaKey){const p=new CustomEvent(ir,{bubbles:!0,cancelable:!0});xo(i,p)}},{checkForDefaultPrevented:!1})})))}),Ds="NavigationMenuIndicator",qp=c.forwardRef((e,t)=>{const{forceMount:r,...o}=e,n=Ke(Ds,e.__scopeNavigationMenu),a=!!n.value;return n.indicatorTrack?Lt.createPortal(c.createElement(_t,{present:r||a},c.createElement(Zp,ye({},o,{ref:t}))),n.indicatorTrack):null}),Zp=c.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,...o}=e,n=Ke(Ds,r),a=_s(r),[s,i]=c.useState(null),[d,p]=c.useState(null),f=n.orientation==="horizontal",$=!!n.value;c.useEffect(()=>{var v;const C=(v=a().find(T=>T.value===n.value))===null||v===void 0?void 0:v.ref.current;C&&i(C)},[a,n.value]);const w=()=>{s&&p({size:f?s.offsetWidth:s.offsetHeight,offset:f?s.offsetLeft:s.offsetTop})};return Co(s,w),Co(n.indicatorTrack,w),d?c.createElement(Ae.div,ye({"aria-hidden":!0,"data-state":$?"visible":"hidden","data-orientation":n.orientation},o,{ref:t,style:{position:"absolute",...f?{left:0,width:d.size+"px",transform:`translateX(${d.offset}px)`}:{top:0,height:d.size+"px",transform:`translateY(${d.offset}px)`},...o.style}})):null}),jt="NavigationMenuContent",Jp=c.forwardRef((e,t)=>{const{forceMount:r,...o}=e,n=Ke(jt,e.__scopeNavigationMenu),a=Ks(jt,e.__scopeNavigationMenu),s=Ge(a.contentRef,t),i=a.value===n.value,d={value:a.value,triggerRef:a.triggerRef,focusProxyRef:a.focusProxyRef,wasEscapeCloseRef:a.wasEscapeCloseRef,onContentFocusOutside:a.onContentFocusOutside,onRootContentClose:a.onRootContentClose,...o};return n.viewport?c.createElement(Qp,ye({forceMount:r},d,{ref:s})):c.createElement(_t,{present:r||i},c.createElement(Ns,ye({"data-state":Yo(i)},d,{ref:s,onPointerEnter:we(e.onPointerEnter,n.onContentEnter),onPointerLeave:we(e.onPointerLeave,xr(n.onContentLeave)),style:{pointerEvents:!i&&n.isRootMenu?"none":void 0,...d.style}})))}),Qp=c.forwardRef((e,t)=>{const r=Ke(jt,e.__scopeNavigationMenu),{onViewportContentChange:o,onViewportContentRemove:n}=r;return xt(()=>{o(e.value,{ref:t,...e})},[e,t,o]),xt(()=>()=>n(e.value),[e.value,n]),null}),ir="navigationMenu.rootContentDismiss",Ns=c.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,value:o,triggerRef:n,focusProxyRef:a,wasEscapeCloseRef:s,onRootContentClose:i,onContentFocusOutside:d,...p}=e,f=Ke(jt,r),$=c.useRef(null),w=Ge($,t),v=Vs(f.baseId,o),x=Hs(f.baseId,o),C=_s(r),T=c.useRef(null),{onItemDismiss:R}=f;c.useEffect(()=>{const A=$.current;if(f.isRootMenu&&A){const z=()=>{var K;R(),i(),A.contains(document.activeElement)&&((K=n.current)===null||K===void 0||K.focus())};return A.addEventListener(ir,z),()=>A.removeEventListener(ir,z)}},[f.isRootMenu,e.value,n,R,i]);const O=c.useMemo(()=>{const z=C().map(_=>_.value);f.dir==="rtl"&&z.reverse();const K=z.indexOf(f.value),D=z.indexOf(f.previousValue),U=o===f.value,b=D===z.indexOf(o);if(!U&&!b)return T.current;const L=(()=>{if(K!==D){if(U&&D!==-1)return K>D?"from-end":"from-start";if(b&&K!==-1)return K>D?"to-start":"to-end"}return null})();return T.current=L,L},[f.previousValue,f.value,f.dir,C,o]);return c.createElement(zs,{asChild:!0},c.createElement(Mp,ye({id:x,"aria-labelledby":v,"data-motion":O,"data-orientation":f.orientation},p,{ref:w,onDismiss:()=>{var A;const z=new Event(ir,{bubbles:!0,cancelable:!0});(A=$.current)===null||A===void 0||A.dispatchEvent(z)},onFocusOutside:we(e.onFocusOutside,A=>{var z;d();const K=A.target;(z=f.rootNavigationMenu)!==null&&z!==void 0&&z.contains(K)&&A.preventDefault()}),onPointerDownOutside:we(e.onPointerDownOutside,A=>{var z;const K=A.target,D=C().some(b=>{var L;return(L=b.ref.current)===null||L===void 0?void 0:L.contains(K)}),U=f.isRootMenu&&((z=f.viewport)===null||z===void 0?void 0:z.contains(K));(D||U||!f.isRootMenu)&&A.preventDefault()}),onKeyDown:we(e.onKeyDown,A=>{const z=A.altKey||A.ctrlKey||A.metaKey;if(A.key==="Tab"&&!z){const U=wo(A.currentTarget),b=document.activeElement,L=U.findIndex(M=>M===b),k=A.shiftKey?U.slice(0,L).reverse():U.slice(L+1,U.length);if(Go(k))A.preventDefault();else{var D;(D=a.current)===null||D===void 0||D.focus()}}}),onEscapeKeyDown:we(e.onEscapeKeyDown,A=>{s.current=!0})})))}),Fs="NavigationMenuViewport",eg=c.forwardRef((e,t)=>{const{forceMount:r,...o}=e,a=!!Ke(Fs,e.__scopeNavigationMenu).value;return c.createElement(_t,{present:r||a},c.createElement(tg,ye({},o,{ref:t})))}),tg=c.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,children:o,...n}=e,a=Ke(Fs,r),s=Ge(t,a.onViewportChange),i=Fp(jt,e.__scopeNavigationMenu),[d,p]=c.useState(null),[f,$]=c.useState(null),w=d?(d==null?void 0:d.width)+"px":void 0,v=d?(d==null?void 0:d.height)+"px":void 0,x=!!a.value,C=x?a.value:a.previousValue;return Co(f,()=>{f&&p({width:f.offsetWidth,height:f.offsetHeight})}),c.createElement(Ae.div,ye({"data-state":Yo(x),"data-orientation":a.orientation},n,{ref:s,style:{pointerEvents:!x&&a.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":w,"--radix-navigation-menu-viewport-height":v,...n.style},onPointerEnter:we(e.onPointerEnter,a.onContentEnter),onPointerLeave:we(e.onPointerLeave,xr(a.onContentLeave))}),Array.from(i.items).map(([R,{ref:O,forceMount:A,...z}])=>{const K=C===R;return c.createElement(_t,{key:R,present:A||K},c.createElement(Ns,ye({},z,{ref:Ho(O,D=>{K&&D&&$(D)})})))}))}),rg="FocusGroup",zs=c.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,...o}=e,n=Ke(rg,r);return c.createElement(ho.Provider,{scope:r},c.createElement(ho.Slot,{scope:r},c.createElement(Ae.div,ye({dir:n.dir},o,{ref:t}))))}),$a=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],og="FocusGroupItem",Bs=c.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,...o}=e,n=_p(r),a=Ke(og,r);return c.createElement(ho.ItemSlot,{scope:r},c.createElement(Ae.button,ye({},o,{ref:t,onKeyDown:we(e.onKeyDown,s=>{if(["Home","End",...$a].includes(s.key)){let d=n().map($=>$.ref.current);if([a.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(s.key)&&d.reverse(),$a.includes(s.key)){const $=d.indexOf(s.currentTarget);d=d.slice($+1)}setTimeout(()=>Go(d)),s.preventDefault()}})})))});function wo(e){const t=[],r=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(;r.nextNode();)t.push(r.currentNode);return t}function Go(e){const t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}function ng(e){return e.forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")}),()=>{e.forEach(t=>{const r=t.dataset.tabindex;t.setAttribute("tabindex",r)})}}function Co(e,t){const r=Oe(t);xt(()=>{let o=0;if(e){const n=new ResizeObserver(()=>{cancelAnimationFrame(o),o=window.requestAnimationFrame(r)});return n.observe(e),()=>{window.cancelAnimationFrame(o),n.unobserve(e)}}},[e,r])}function Yo(e){return e?"open":"closed"}function Vs(e,t){return`${e}-trigger-${t}`}function Hs(e,t){return`${e}-content-${t}`}function xr(e){return t=>t.pointerType==="mouse"?e(t):void 0}const ag=zp,sg=Hp,Xr=Gp,ig=Yp,lg=Xp,cg=qp,dg=Jp,ug=eg,fg=S.keyframes`
|
|
1833
1885
|
from {
|
|
1834
1886
|
opacity: 0;
|
|
1835
1887
|
transform: translateX(200px);
|
|
@@ -1838,7 +1890,7 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
1838
1890
|
opacity: 1;
|
|
1839
1891
|
transform: translateX(0);
|
|
1840
1892
|
}
|
|
1841
|
-
`,
|
|
1893
|
+
`,pg=S.keyframes`
|
|
1842
1894
|
from {
|
|
1843
1895
|
opacity: 0;
|
|
1844
1896
|
transform: translateX(-200px);
|
|
@@ -1847,7 +1899,7 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
1847
1899
|
opacity: 1;
|
|
1848
1900
|
transform: translateX(0);
|
|
1849
1901
|
}
|
|
1850
|
-
`,
|
|
1902
|
+
`,gg=S.keyframes`
|
|
1851
1903
|
from {
|
|
1852
1904
|
opacity: 1;
|
|
1853
1905
|
transform: translateX(0);
|
|
@@ -1856,7 +1908,7 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
1856
1908
|
opacity: 0;
|
|
1857
1909
|
transform: translateX(200px);
|
|
1858
1910
|
}
|
|
1859
|
-
`,
|
|
1911
|
+
`,bg=S.keyframes`
|
|
1860
1912
|
from {
|
|
1861
1913
|
opacity: 1;
|
|
1862
1914
|
transform: translateX(0);
|
|
@@ -1865,7 +1917,7 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
1865
1917
|
opacity: 0;
|
|
1866
1918
|
transform: translateX(-200px);
|
|
1867
1919
|
}
|
|
1868
|
-
`,
|
|
1920
|
+
`,vg=S.keyframes`
|
|
1869
1921
|
from {
|
|
1870
1922
|
opacity: 0;
|
|
1871
1923
|
transform: rotateX(-30deg) scale(0.9);
|
|
@@ -1874,7 +1926,7 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
1874
1926
|
opacity: 1;
|
|
1875
1927
|
transform: rotateX(0deg) scale(1);
|
|
1876
1928
|
}
|
|
1877
|
-
`,
|
|
1929
|
+
`,yg=S.keyframes`
|
|
1878
1930
|
from {
|
|
1879
1931
|
opacity: 1;
|
|
1880
1932
|
transform: rotateX(0deg) scale(1);
|
|
@@ -1883,38 +1935,38 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
1883
1935
|
opacity: 0;
|
|
1884
1936
|
transform: rotateX(-10deg) scale(0.95);
|
|
1885
1937
|
}
|
|
1886
|
-
|
|
1938
|
+
`,$g=S.keyframes`
|
|
1887
1939
|
from {
|
|
1888
1940
|
opacity: 0;
|
|
1889
1941
|
}
|
|
1890
1942
|
to {
|
|
1891
1943
|
opacity: 1;
|
|
1892
1944
|
}
|
|
1893
|
-
`,
|
|
1945
|
+
`,xg=S.keyframes`
|
|
1894
1946
|
from {
|
|
1895
1947
|
opacity: 1;
|
|
1896
1948
|
}
|
|
1897
1949
|
to {
|
|
1898
1950
|
opacity: 0;
|
|
1899
1951
|
}
|
|
1900
|
-
`,
|
|
1952
|
+
`,Us=S.styled.svg`
|
|
1901
1953
|
position: relative;
|
|
1902
1954
|
color: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:r[900])??u.colors.slate[900]}};
|
|
1903
1955
|
top: 1px;
|
|
1904
1956
|
transition: transform 200ms ease;
|
|
1905
|
-
`,
|
|
1957
|
+
`,mg=S.styled(ag)`
|
|
1906
1958
|
position: relative;
|
|
1907
1959
|
display: flex;
|
|
1908
1960
|
width: 100%;
|
|
1909
1961
|
justify-content: center;
|
|
1910
1962
|
z-index: 1;
|
|
1911
|
-
`,
|
|
1963
|
+
`,hg=S.styled(sg)`
|
|
1912
1964
|
display: flex;
|
|
1913
1965
|
justify-content: center;
|
|
1914
1966
|
list-style: none;
|
|
1915
1967
|
margin: 0;
|
|
1916
1968
|
padding: 0;
|
|
1917
|
-
`,
|
|
1969
|
+
`,xa=S.styled(ig)`
|
|
1918
1970
|
display: flex;
|
|
1919
1971
|
align-items: center;
|
|
1920
1972
|
justify-content: space-between;
|
|
@@ -1941,10 +1993,10 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
1941
1993
|
background-color: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:r[100])??u.colors.slate[100]}};
|
|
1942
1994
|
}
|
|
1943
1995
|
|
|
1944
|
-
&[data-state='open'] > ${
|
|
1996
|
+
&[data-state='open'] > ${Us} {
|
|
1945
1997
|
transform: rotate(-180deg);
|
|
1946
1998
|
}
|
|
1947
|
-
`,Eo=
|
|
1999
|
+
`,Eo=S.styled(lg)`
|
|
1948
2000
|
display: block;
|
|
1949
2001
|
text-decoration: none;
|
|
1950
2002
|
font-size: 0.9rem;
|
|
@@ -1969,7 +2021,7 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
1969
2021
|
&:hover {
|
|
1970
2022
|
background-color: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:r[100])??u.colors.slate[100]}};
|
|
1971
2023
|
}
|
|
1972
|
-
`,
|
|
2024
|
+
`,ma=S.styled(dg)`
|
|
1973
2025
|
position: absolute;
|
|
1974
2026
|
top: 0;
|
|
1975
2027
|
left: 0;
|
|
@@ -1978,22 +2030,22 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
1978
2030
|
animation-timing-function: ease;
|
|
1979
2031
|
|
|
1980
2032
|
&[data-motion='from-start'] {
|
|
1981
|
-
animation-name: ${
|
|
2033
|
+
animation-name: ${pg};
|
|
1982
2034
|
}
|
|
1983
2035
|
&[data-motion='from-end'] {
|
|
1984
|
-
animation-name: ${
|
|
2036
|
+
animation-name: ${fg};
|
|
1985
2037
|
}
|
|
1986
2038
|
&[data-motion='to-start'] {
|
|
1987
|
-
animation-name: ${
|
|
2039
|
+
animation-name: ${bg};
|
|
1988
2040
|
}
|
|
1989
2041
|
&[data-motion='to-end'] {
|
|
1990
|
-
animation-name: ${
|
|
2042
|
+
animation-name: ${gg};
|
|
1991
2043
|
}
|
|
1992
2044
|
|
|
1993
2045
|
@media only screen and (min-width: 600px) {
|
|
1994
2046
|
width: auto;
|
|
1995
2047
|
}
|
|
1996
|
-
`,
|
|
2048
|
+
`,wg=S.styled(cg)`
|
|
1997
2049
|
display: flex;
|
|
1998
2050
|
align-items: flex-end;
|
|
1999
2051
|
justify-content: center;
|
|
@@ -2004,13 +2056,13 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
2004
2056
|
transition: width, transform 250ms ease;
|
|
2005
2057
|
|
|
2006
2058
|
&[data-state='visible'] {
|
|
2007
|
-
animation: ${
|
|
2059
|
+
animation: ${$g} 200ms ease;
|
|
2008
2060
|
}
|
|
2009
2061
|
|
|
2010
2062
|
&[data-state='hidden'] {
|
|
2011
|
-
animation: ${
|
|
2063
|
+
animation: ${xg} 200ms ease;
|
|
2012
2064
|
}
|
|
2013
|
-
|
|
2065
|
+
`,Cg=S.styled(ug)`
|
|
2014
2066
|
position: relative;
|
|
2015
2067
|
transform-origin: top center;
|
|
2016
2068
|
margin-top: 10px;
|
|
@@ -2023,18 +2075,18 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
2023
2075
|
transition: width, height, 300ms ease;
|
|
2024
2076
|
|
|
2025
2077
|
&[data-state='open'] {
|
|
2026
|
-
animation: ${
|
|
2078
|
+
animation: ${vg} 200ms ease;
|
|
2027
2079
|
}
|
|
2028
2080
|
|
|
2029
2081
|
&[data-state='closed'] {
|
|
2030
|
-
animation: ${
|
|
2082
|
+
animation: ${yg} 200ms ease;
|
|
2031
2083
|
}
|
|
2032
2084
|
|
|
2033
2085
|
@media only screen and (min-width: 600px) {
|
|
2034
2086
|
width: var(--radix-navigation-menu-viewport-width);
|
|
2035
2087
|
}
|
|
2036
2088
|
}
|
|
2037
|
-
`,ha=
|
|
2089
|
+
`,ha=S.styled.ul`
|
|
2038
2090
|
display: grid;
|
|
2039
2091
|
padding: 22px;
|
|
2040
2092
|
margin: 0;
|
|
@@ -2052,7 +2104,7 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
2052
2104
|
grid-template-rows: repeat(3, 1fr);
|
|
2053
2105
|
}
|
|
2054
2106
|
}
|
|
2055
|
-
`,
|
|
2107
|
+
`,Eg=S.styled(W.Link)`
|
|
2056
2108
|
display: block;
|
|
2057
2109
|
outline: none;
|
|
2058
2110
|
text-decoration: none;
|
|
@@ -2071,16 +2123,16 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
2071
2123
|
&:hover {
|
|
2072
2124
|
background-color: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:r[100])??u.colors.slate[100]}};
|
|
2073
2125
|
}
|
|
2074
|
-
`,
|
|
2126
|
+
`,Sg=S.styled.div`
|
|
2075
2127
|
font-weight: 500;
|
|
2076
2128
|
line-height: 1.2;
|
|
2077
2129
|
margin-bottom: 5px;
|
|
2078
2130
|
color: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:r[900])??u.colors.slate[900]}};
|
|
2079
|
-
`,
|
|
2131
|
+
`,Pg=S.styled.p`
|
|
2080
2132
|
color: ${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:r[900])??u.colors.slate[900]}};
|
|
2081
2133
|
line-height: 1.4;
|
|
2082
2134
|
font-weight: initial;
|
|
2083
|
-
`,
|
|
2135
|
+
`,Tg=S.styled(W.Link)`
|
|
2084
2136
|
display: flex;
|
|
2085
2137
|
justify-content: flex-end;
|
|
2086
2138
|
flex-direction: column;
|
|
@@ -2103,18 +2155,18 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
2103
2155
|
box-shadow: 0 0 0 2px
|
|
2104
2156
|
${({theme:e})=>{var t,r;return((r=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:r[900])??u.colors.slate[900]}};
|
|
2105
2157
|
}
|
|
2106
|
-
`,
|
|
2158
|
+
`,kg=S.styled.div`
|
|
2107
2159
|
color: white;
|
|
2108
2160
|
font-size: 18px;
|
|
2109
2161
|
font-weight: 500;
|
|
2110
2162
|
line-height: 1.2;
|
|
2111
2163
|
margin-top: 16px;
|
|
2112
2164
|
margin-bottom: 7px;
|
|
2113
|
-
`,
|
|
2165
|
+
`,Mg=S.styled.p`
|
|
2114
2166
|
color: white;
|
|
2115
2167
|
font-size: 14px;
|
|
2116
2168
|
line-height: 1.3;
|
|
2117
|
-
`,
|
|
2169
|
+
`,Ig=S.styled.div`
|
|
2118
2170
|
position: absolute;
|
|
2119
2171
|
display: flex;
|
|
2120
2172
|
justify-content: center;
|
|
@@ -2122,7 +2174,7 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
2122
2174
|
top: 100%;
|
|
2123
2175
|
left: 0;
|
|
2124
2176
|
perspective: 2000px;
|
|
2125
|
-
`,
|
|
2177
|
+
`,Rg=S.styled.div`
|
|
2126
2178
|
position: relative;
|
|
2127
2179
|
top: 70%;
|
|
2128
2180
|
background-color: white;
|
|
@@ -2130,4 +2182,4 @@ Check the top-level render call using <`+S+">.")}return y}function yn(i,y){if(!(
|
|
|
2130
2182
|
height: 10px;
|
|
2131
2183
|
transform: rotate(45deg);
|
|
2132
2184
|
border-top-left-radius: 2px;
|
|
2133
|
-
`;function So({className:e,...t}){return g.jsx(
|
|
2185
|
+
`;function So({className:e,...t}){return g.jsx(Us,{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,...t,children:g.jsx("path",{d:"M6 9L12 15L18 9",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}So.defaultProps={className:void 0};const Ne=c.forwardRef(({className:e,children:t,title:r,...o},n)=>g.jsx("li",{children:g.jsx(Eo,{asChild:!0,children:g.jsxs(Eg,{className:`${e??""}`,...o,ref:n,children:[g.jsx(Sg,{children:r}),g.jsx(Pg,{children:t})]})})}));Ne.defaultProps={className:void 0,href:void 0,title:void 0};function Og(){return g.jsxs(mg,{children:[g.jsxs(hg,{children:[g.jsxs(Xr,{children:[g.jsxs(xa,{children:["Learn ",g.jsx(So,{"aria-hidden":!0})]}),g.jsx(ma,{children:g.jsxs(ha,{className:"one",children:[g.jsx("li",{style:{gridRow:"span 3"},children:g.jsx(Eo,{asChild:!0,children:g.jsxs(Tg,{href:"/",children:[g.jsxs("svg",{"aria-hidden":!0,width:"38",height:"38",viewBox:"0 0 25 25",fill:"white",children:[g.jsx("path",{d:"M12 25C7.58173 25 4 21.4183 4 17C4 12.5817 7.58173 9 12 9V25Z"}),g.jsx("path",{d:"M12 0H4V8H12V0Z"}),g.jsx("path",{d:"M17 8C19.2091 8 21 6.20914 21 4C21 1.79086 19.2091 0 17 0C14.7909 0 13 1.79086 13 4C13 6.20914 14.7909 8 17 8Z"})]}),g.jsx(kg,{children:"Radix Primitives"}),g.jsx(Mg,{children:"Unstyled, accessible components for React."})]})})}),g.jsx(Ne,{href:"https://stitches.dev/",title:"Stitches",children:"CSS-in-JS with best-in-class developer experience."}),g.jsx(Ne,{href:"/colors",title:"Colors",children:"Beautiful, thought-out palettes with auto dark mode."}),g.jsx(Ne,{href:"https://icons.radix-ui.com/",title:"Icons",children:"A crisp set of 15x15 icons, balanced and consistent."})]})})]}),g.jsxs(Xr,{children:[g.jsxs(xa,{children:["Overview ",g.jsx(So,{"aria-hidden":!0})]}),g.jsx(ma,{children:g.jsxs(ha,{className:"two",children:[g.jsx(Ne,{title:"Introduction",href:"/primitives/docs/overview/introduction",children:"Build high-quality, accessible design systems and web apps."}),g.jsx(Ne,{title:"Getting started",href:"/primitives/docs/overview/getting-started",children:"A quick tutorial to get you up and running with Radix Primitives."}),g.jsx(Ne,{title:"Styling",href:"/primitives/docs/guides/styling",children:"Unstyled and compatible with any styling solution."}),g.jsx(Ne,{title:"Animation",href:"/primitives/docs/guides/animation",children:"Use CSS keyframes or any animation library of your choice."}),g.jsx(Ne,{title:"Accessibility",href:"/primitives/docs/overview/accessibility",children:"Tested in a range of browsers and assistive technologies."}),g.jsx(Ne,{title:"Releases",href:"/primitives/docs/overview/releases",children:"Radix Primitives releases and their changelogs."})]})})]}),g.jsx(Xr,{children:g.jsx(Eo,{href:"https://github.com/radix-ui",children:"Github"})}),g.jsx(wg,{children:g.jsx(Rg,{})})]}),g.jsx(Ig,{children:g.jsx(Cg,{})})]})}exports.Accordion=_u;exports.AccordionItem=ju;exports.Avatar=Jd;exports.AvatarGroup=eu;exports.Badge=Vu;exports.BreadcrumbEllipsis=Hu;exports.BreadcrumbItem=Xu;exports.BreadcrumbLink=qu;exports.BreadcrumbSeparator=Zu;exports.Breadcrumbs=Ju;exports.Button=Qu;exports.Card=tf;exports.Checkbox=of;exports.CircularEasing=I0;exports.CircularProgressbar=a0;exports.Collapsible=lf;exports.CollapsibleTrigger=sf;exports.CollapsibleTriggerStateContext=Vo;exports.Container=uf;exports.ContextMenu=ys;exports.DateInput=$s;exports.Dialog=_f;exports.Divider=mf;exports.Drawer=Cs;exports.Input=ws;exports.LinearProgressbar=f0;exports.Link=Cf;exports.Meter=If;exports.Modal=Of;exports.ModalOverlay=jf;exports.NavigationMenu=Og;exports.NumberInput=Es;exports.Option=E0;exports.PinInput=Ss;exports.Pulse=Ps;exports.Select=Ts;exports.Slider=ks;exports.Switch=D0;exports.Tab=H0;exports.TabList=U0;exports.TabPanel=W0;exports.Tabs=V0;exports.TabsOrientationContext=Cr;exports.TimeInput=Is;exports.ToggleButton=ep;exports.Tooltip=dp;exports.defaultTheme=u;exports.mergeTheme=us;
|