@service_laboratory/ui 1.0.7 → 1.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1 -1
- package/dist/index.d.ts +19 -0
- package/dist/index.js +2674 -2422
- package/dist/index.umd.cjs +25 -20
- package/package.json +2 -1
package/dist/index.umd.cjs
CHANGED
|
@@ -1,54 +1,59 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(O,D){typeof exports=="object"&&typeof module<"u"?D(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],D):(O=typeof globalThis<"u"?globalThis:O||self,D(O.ui={},O.react))})(this,(function(O,D){"use strict";function bi(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const d=bi(D);function yi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var wt={exports:{}},rt={};var yn;function xi(){if(yn)return rt;yn=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var s=null;if(a!==void 0&&(s=""+a),o.key!==void 0&&(s=""+o.key),"key"in o){a={};for(var i in o)i!=="key"&&(a[i]=o[i])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:s,ref:o!==void 0?o:null,props:a}}return rt.Fragment=t,rt.jsx=r,rt.jsxs=r,rt}var nt={};var xn;function wi(){return xn||(xn=1,process.env.NODE_ENV!=="production"&&(function(){function e(S){if(S==null)return null;if(typeof S=="function")return S.$$typeof===B?null:S.displayName||S.name||null;if(typeof S=="string")return S;switch(S){case h:return"Fragment";case y:return"Profiler";case b:return"StrictMode";case E:return"Suspense";case P:return"SuspenseList";case L:return"Activity"}if(typeof S=="object")switch(typeof S.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),S.$$typeof){case v:return"Portal";case C:return(S.displayName||"Context")+".Provider";case x:return(S._context.displayName||"Context")+".Consumer";case w:var I=S.render;return S=S.displayName,S||(S=I.displayName||I.name||"",S=S!==""?"ForwardRef("+S+")":"ForwardRef"),S;case A:return I=S.displayName||null,I!==null?I:e(S.type)||"Memo";case R:I=S._payload,S=S._init;try{return e(S(I))}catch{}}return null}function t(S){return""+S}function r(S){try{t(S);var I=!1}catch{I=!0}if(I){I=console;var G=I.error,V=typeof Symbol=="function"&&Symbol.toStringTag&&S[Symbol.toStringTag]||S.constructor.name||"Object";return G.call(I,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",V),t(S)}}function n(S){if(S===h)return"<>";if(typeof S=="object"&&S!==null&&S.$$typeof===R)return"<...>";try{var I=e(S);return I?"<"+I+">":"<...>"}catch{return"<...>"}}function o(){var S=U.A;return S===null?null:S.getOwner()}function a(){return Error("react-stack-top-frame")}function s(S){if(H.call(S,"key")){var I=Object.getOwnPropertyDescriptor(S,"key").get;if(I&&I.isReactWarning)return!1}return S.key!==void 0}function i(S,I){function G(){Z||(Z=!0,console.error("%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://react.dev/link/special-props)",I))}G.isReactWarning=!0,Object.defineProperty(S,"key",{get:G,configurable:!0})}function l(){var S=e(this.type);return F[S]||(F[S]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),S=this.props.ref,S!==void 0?S:null}function c(S,I,G,V,q,ee,se,$){return G=ee.ref,S={$$typeof:g,type:S,key:I,props:ee,_owner:q},(G!==void 0?G:null)!==null?Object.defineProperty(S,"ref",{enumerable:!1,get:l}):Object.defineProperty(S,"ref",{enumerable:!1,value:null}),S._store={},Object.defineProperty(S._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(S,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(S,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:se}),Object.defineProperty(S,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:$}),Object.freeze&&(Object.freeze(S.props),Object.freeze(S)),S}function p(S,I,G,V,q,ee,se,$){var J=I.children;if(J!==void 0)if(V)if(X(J)){for(V=0;V<J.length;V++)u(J[V]);Object.freeze&&Object.freeze(J)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else u(J);if(H.call(I,"key")){J=e(S);var le=Object.keys(I).filter(function($e){return $e!=="key"});V=0<le.length?"{key: someKey, "+le.join(": ..., ")+": ...}":"{key: someKey}",N[J+V]||(le=0<le.length?"{"+le.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
2
2
|
let props = %s;
|
|
3
3
|
<%s {...props} />
|
|
4
4
|
React keys must be passed directly to JSX without using spread:
|
|
5
5
|
let props = %s;
|
|
6
|
-
<%s key={someKey} {...props} />`,V,J,le,J),
|
|
6
|
+
<%s key={someKey} {...props} />`,V,J,le,J),N[J+V]=!0)}if(J=null,G!==void 0&&(r(G),J=""+G),s(I)&&(r(I.key),J=""+I.key),"key"in I){G={};for(var Ce in I)Ce!=="key"&&(G[Ce]=I[Ce])}else G=I;return J&&i(G,typeof S=="function"?S.displayName||S.name||"Unknown":S),c(S,J,ee,q,o(),G,se,$)}function u(S){typeof S=="object"&&S!==null&&S.$$typeof===g&&S._store&&(S._store.validated=1)}var f=D,g=Symbol.for("react.transitional.element"),v=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),C=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),B=Symbol.for("react.client.reference"),U=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H=Object.prototype.hasOwnProperty,X=Array.isArray,W=console.createTask?console.createTask:function(){return null};f={react_stack_bottom_frame:function(S){return S()}};var Z,F={},K=f.react_stack_bottom_frame.bind(f,a)(),_=W(n(a)),N={};nt.Fragment=h,nt.jsx=function(S,I,G,V,q){var ee=1e4>U.recentlyCreatedOwnerStacks++;return p(S,I,G,!1,V,q,ee?Error("react-stack-top-frame"):K,ee?W(n(S)):_)},nt.jsxs=function(S,I,G,V,q){var ee=1e4>U.recentlyCreatedOwnerStacks++;return p(S,I,G,!0,V,q,ee?Error("react-stack-top-frame"):K,ee?W(n(S)):_)}})()),nt}var wn;function Si(){return wn||(wn=1,process.env.NODE_ENV==="production"?wt.exports=xi():wt.exports=wi()),wt.exports}var m=Si();function Ci(e,t){const r=d.createContext(t),n=a=>{const{children:s,...i}=a,l=d.useMemo(()=>i,Object.values(i));return m.jsx(r.Provider,{value:l,children:s})};n.displayName=e+"Provider";function o(a){const s=d.useContext(r);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function Ee(e,t=[]){let r=[];function n(a,s){const i=d.createContext(s),l=r.length;r=[...r,s];const c=u=>{const{scope:f,children:g,...v}=u,h=f?.[e]?.[l]||i,b=d.useMemo(()=>v,Object.values(v));return m.jsx(h.Provider,{value:b,children:g})};c.displayName=a+"Provider";function p(u,f){const g=f?.[e]?.[l]||i,v=d.useContext(g);if(v)return v;if(s!==void 0)return s;throw new Error(`\`${u}\` must be used within \`${a}\``)}return[c,p]}const o=()=>{const a=r.map(s=>d.createContext(s));return function(i){const l=i?.[e]||a;return d.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return o.scopeName=e,[n,Ei(o,...t)]}function Ei(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const s=n.reduce((i,{useScope:l,scopeName:c})=>{const u=l(a)[`__scope${c}`];return{...i,...u}},{});return d.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}function fe(e){const t=d.useRef(e);return d.useEffect(()=>{t.current=e}),d.useMemo(()=>(...r)=>t.current?.(...r),[])}var ue=globalThis?.document?d.useLayoutEffect:()=>{},St={exports:{}},re={};var Sn;function _i(){if(Sn)return re;Sn=1;var e=D;function t(l){var c="https://react.dev/errors/"+l;if(1<arguments.length){c+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)c+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+l+"; visit "+c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var n={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},o=Symbol.for("react.portal");function a(l,c,p){var u=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:u==null?null:""+u,children:l,containerInfo:c,implementation:p}}var s=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function i(l,c){if(l==="font")return"";if(typeof c=="string")return c==="use-credentials"?c:""}return re.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n,re.createPortal=function(l,c){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!c||c.nodeType!==1&&c.nodeType!==9&&c.nodeType!==11)throw Error(t(299));return a(l,c,null,p)},re.flushSync=function(l){var c=s.T,p=n.p;try{if(s.T=null,n.p=2,l)return l()}finally{s.T=c,n.p=p,n.d.f()}},re.preconnect=function(l,c){typeof l=="string"&&(c?(c=c.crossOrigin,c=typeof c=="string"?c==="use-credentials"?c:"":void 0):c=null,n.d.C(l,c))},re.prefetchDNS=function(l){typeof l=="string"&&n.d.D(l)},re.preinit=function(l,c){if(typeof l=="string"&&c&&typeof c.as=="string"){var p=c.as,u=i(p,c.crossOrigin),f=typeof c.integrity=="string"?c.integrity:void 0,g=typeof c.fetchPriority=="string"?c.fetchPriority:void 0;p==="style"?n.d.S(l,typeof c.precedence=="string"?c.precedence:void 0,{crossOrigin:u,integrity:f,fetchPriority:g}):p==="script"&&n.d.X(l,{crossOrigin:u,integrity:f,fetchPriority:g,nonce:typeof c.nonce=="string"?c.nonce:void 0})}},re.preinitModule=function(l,c){if(typeof l=="string")if(typeof c=="object"&&c!==null){if(c.as==null||c.as==="script"){var p=i(c.as,c.crossOrigin);n.d.M(l,{crossOrigin:p,integrity:typeof c.integrity=="string"?c.integrity:void 0,nonce:typeof c.nonce=="string"?c.nonce:void 0})}}else c==null&&n.d.M(l)},re.preload=function(l,c){if(typeof l=="string"&&typeof c=="object"&&c!==null&&typeof c.as=="string"){var p=c.as,u=i(p,c.crossOrigin);n.d.L(l,p,{crossOrigin:u,integrity:typeof c.integrity=="string"?c.integrity:void 0,nonce:typeof c.nonce=="string"?c.nonce:void 0,type:typeof c.type=="string"?c.type:void 0,fetchPriority:typeof c.fetchPriority=="string"?c.fetchPriority:void 0,referrerPolicy:typeof c.referrerPolicy=="string"?c.referrerPolicy:void 0,imageSrcSet:typeof c.imageSrcSet=="string"?c.imageSrcSet:void 0,imageSizes:typeof c.imageSizes=="string"?c.imageSizes:void 0,media:typeof c.media=="string"?c.media:void 0})}},re.preloadModule=function(l,c){if(typeof l=="string")if(c){var p=i(c.as,c.crossOrigin);n.d.m(l,{as:typeof c.as=="string"&&c.as!=="script"?c.as:void 0,crossOrigin:p,integrity:typeof c.integrity=="string"?c.integrity:void 0})}else n.d.m(l)},re.requestFormReset=function(l){n.d.r(l)},re.unstable_batchedUpdates=function(l,c){return l(c)},re.useFormState=function(l,c,p){return s.H.useFormState(l,c,p)},re.useFormStatus=function(){return s.H.useHostTransitionStatus()},re.version="19.1.1",re}var ne={};var Cn;function Ri(){return Cn||(Cn=1,process.env.NODE_ENV!=="production"&&(function(){function e(){}function t(u){return""+u}function r(u,f,g){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{t(v);var h=!1}catch{h=!0}return h&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol=="function"&&Symbol.toStringTag&&v[Symbol.toStringTag]||v.constructor.name||"Object"),t(v)),{$$typeof:c,key:v==null?null:""+v,children:u,containerInfo:f,implementation:g}}function n(u,f){if(u==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}function o(u){return u===null?"`null`":u===void 0?"`undefined`":u===""?"an empty string":'something with type "'+typeof u+'"'}function a(u){return u===null?"`null`":u===void 0?"`undefined`":u===""?"an empty string":typeof u=="string"?JSON.stringify(u):typeof u=="number"?"`"+u+"`":'something with type "'+typeof u+'"'}function s(){var u=p.H;return u===null&&console.error(`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:
|
|
7
7
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
8
8
|
2. You might be breaking the Rules of Hooks
|
|
9
9
|
3. You might have more than one copy of React in the same app
|
|
10
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),u}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=D,l={d:{f:e,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:e,C:e,L:e,m:e,X:e,S:e,M:e},p:0,findDOMNode:null},c=Symbol.for("react.portal"),p=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),re.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,re.createPortal=function(u,f){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error("Target container is not a DOM element.");return n(u,f,null,g)},re.flushSync=function(u){var f=p.T,g=l.p;try{if(p.T=null,l.p=2,u)return u()}finally{p.T=f,l.p=g,l.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},re.preconnect=function(u,f){typeof u=="string"&&u?f!=null&&typeof f!="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",a(f)):f!=null&&typeof f.crossOrigin!="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",o(f.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(u)),typeof u=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,l.d.C(u,f))},re.prefetchDNS=function(u){if(typeof u!="string"||!u)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(u));else if(1<arguments.length){var f=arguments[1];typeof f=="object"&&f.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",a(f)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",a(f))}typeof u=="string"&&l.d.D(u)},re.preinit=function(u,f){if(typeof u=="string"&&u?f==null||typeof f!="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",a(f)):f.as!=="style"&&f.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',a(f.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(u)),typeof u=="string"&&f&&typeof f.as=="string"){var g=f.as,v=r(g,f.crossOrigin),h=typeof f.integrity=="string"?f.integrity:void 0,b=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;g==="style"?l.d.S(u,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:v,integrity:h,fetchPriority:b}):g==="script"&&l.d.X(u,{crossOrigin:v,integrity:h,fetchPriority:b,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},re.preinitModule=function(u,f){var g="";if(typeof u=="string"&&u||(g+=" The `href` argument encountered was "+o(u)+"."),f!==void 0&&typeof f!="object"?g+=" The `options` argument encountered was "+o(f)+".":f&&"as"in f&&f.as!=="script"&&(g+=" The `as` option encountered was "+a(f.as)+"."),g)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",g);else switch(g=f&&typeof f.as=="string"?f.as:"script",g){case"script":break;default:g=a(g),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',g,u)}typeof u=="string"&&(typeof f=="object"&&f!==null?(f.as==null||f.as==="script")&&(g=r(f.as,f.crossOrigin),l.d.M(u,{crossOrigin:g,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})):f==null&&l.d.M(u))},re.preload=function(u,f){var g="";if(typeof u=="string"&&u||(g+=" The `href` argument encountered was "+o(u)+"."),f==null||typeof f!="object"?g+=" The `options` argument encountered was "+o(f)+".":typeof f.as=="string"&&f.as||(g+=" The `as` option encountered was "+o(f.as)+"."),g&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',g),typeof u=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){g=f.as;var v=r(g,f.crossOrigin);l.d.L(u,g,{crossOrigin:v,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},re.preloadModule=function(u,f){var g="";typeof u=="string"&&u||(g+=" The `href` argument encountered was "+o(u)+"."),f!==void 0&&typeof f!="object"?g+=" The `options` argument encountered was "+o(f)+".":f&&"as"in f&&typeof f.as!="string"&&(g+=" The `as` option encountered was "+o(f.as)+"."),g&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',g),typeof u=="string"&&(f?(g=r(f.as,f.crossOrigin),l.d.m(u,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:g,integrity:typeof f.integrity=="string"?f.integrity:void 0})):l.d.m(u))},re.requestFormReset=function(u){l.d.r(u)},re.unstable_batchedUpdates=function(u,f){return u(f)},re.useFormState=function(u,f,g){return s().useFormState(u,f,g)},re.useFormStatus=function(){return s().useHostTransitionStatus()},re.version="19.1.1",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),re}var xr;function hi(){if(xr)return St.exports;xr=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}}return process.env.NODE_ENV==="production"?(e(),St.exports=mi()):St.exports=gi(),St.exports}var sn=hi();const vi=ci(sn);function wr(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function rt(...e){return t=>{let n=!1;const r=e.map(o=>{const a=wr(o,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let o=0;o<r.length;o++){const a=r[o];typeof a=="function"?a():wr(e[o],null)}}}}function Q(...e){return d.useCallback(rt(...e),e)}function ze(e){const t=bi(e),n=d.forwardRef((r,o)=>{const{children:a,...s}=r,i=d.Children.toArray(a),l=i.find(xi);if(l){const c=l.props.children,p=i.map(u=>u===l?d.Children.count(c)>1?d.Children.only(null):d.isValidElement(c)?c.props.children:null:u);return m.jsx(t,{...s,ref:o,children:d.isValidElement(c)?d.cloneElement(c,void 0,p):null})}return m.jsx(t,{...s,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}var Ae=ze("Slot");function bi(e){const t=d.forwardRef((n,r)=>{const{children:o,...a}=n;if(d.isValidElement(o)){const s=Si(o),i=wi(a,o.props);return o.type!==d.Fragment&&(i.ref=r?rt(r,s):s),d.cloneElement(o,i)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Sr=Symbol("radix.slottable");function yi(e){const t=({children:n})=>m.jsx(m.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Sr,t}function xi(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Sr}function wi(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...i)=>{const l=a(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function Si(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Ci=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Y=Ci.reduce((e,t)=>{const n=ze(`Primitive.${t}`),r=d.forwardRef((o,a)=>{const{asChild:s,...i}=o,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(l,{...i,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Cr(e,t){e&&sn.flushSync(()=>e.dispatchEvent(t))}var Ct={exports:{}},cn={};var Er;function Ei(){if(Er)return cn;Er=1;var e=D;function t(u,f){return u===f&&(u!==0||1/u===1/f)||u!==u&&f!==f}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,a=e.useLayoutEffect,s=e.useDebugValue;function i(u,f){var g=f(),v=r({inst:{value:g,getSnapshot:f}}),h=v[0].inst,b=v[1];return a(function(){h.value=g,h.getSnapshot=f,l(h)&&b({inst:h})},[u,g,f]),o(function(){return l(h)&&b({inst:h}),u(function(){l(h)&&b({inst:h})})},[u]),s(g),g}function l(u){var f=u.getSnapshot;u=u.value;try{var g=f();return!n(u,g)}catch{return!0}}function c(u,f){return f()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:i;return cn.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,cn}var ln={};var _r;function _i(){return _r||(_r=1,process.env.NODE_ENV!=="production"&&(function(){function e(g,v){return g===v&&(g!==0||1/g===1/v)||g!==g&&v!==v}function t(g,v){p||o.startTransition===void 0||(p=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var h=v();if(!u){var b=v();a(h,b)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),u=!0)}b=s({inst:{value:h,getSnapshot:v}});var y=b[0].inst,x=b[1];return l(function(){y.value=h,y.getSnapshot=v,n(y)&&x({inst:y})},[g,h,v]),i(function(){return n(y)&&x({inst:y}),g(function(){n(y)&&x({inst:y})})},[g]),c(h),h}function n(g){var v=g.getSnapshot;g=g.value;try{var h=v();return!a(g,h)}catch{return!0}}function r(g,v){return v()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=D,a=typeof Object.is=="function"?Object.is:e,s=o.useState,i=o.useEffect,l=o.useLayoutEffect,c=o.useDebugValue,p=!1,u=!1,f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;ln.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:f,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),ln}var Rr;function Ri(){return Rr||(Rr=1,process.env.NODE_ENV==="production"?Ct.exports=Ei():Ct.exports=_i()),Ct.exports}var Oi=Ri();function Ai(){return Oi.useSyncExternalStore(Mi,()=>!0,()=>!1)}function Mi(){return()=>{}}var un="Avatar",[Ti,xg]=Ee(un),[Pi,Or]=Ti(un),Ar=d.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,a]=d.useState("idle");return m.jsx(Pi,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:a,children:m.jsx(Y.span,{...r,ref:t})})});Ar.displayName=un;var Mr="AvatarImage",Tr=d.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...a}=e,s=Or(Mr,n),i=ki(r,a),l=fe(c=>{o(c),s.onImageLoadingStatusChange(c)});return ue(()=>{i!=="idle"&&l(i)},[i,l]),i==="loaded"?m.jsx(Y.img,{...a,ref:t,src:r}):null});Tr.displayName=Mr;var Pr="AvatarFallback",kr=d.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,a=Or(Pr,n),[s,i]=d.useState(r===void 0);return d.useEffect(()=>{if(r!==void 0){const l=window.setTimeout(()=>i(!0),r);return()=>window.clearTimeout(l)}},[r]),s&&a.imageLoadingStatus!=="loaded"?m.jsx(Y.span,{...o,ref:t}):null});kr.displayName=Pr;function Nr(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function ki(e,{referrerPolicy:t,crossOrigin:n}){const r=Ai(),o=d.useRef(null),a=r?(o.current||(o.current=new window.Image),o.current):null,[s,i]=d.useState(()=>Nr(a,e));return ue(()=>{i(Nr(a,e))},[a,e]),ue(()=>{const l=u=>()=>{i(u)};if(!a)return;const c=l("loaded"),p=l("error");return a.addEventListener("load",c),a.addEventListener("error",p),t&&(a.referrerPolicy=t),typeof n=="string"&&(a.crossOrigin=n),()=>{a.removeEventListener("load",c),a.removeEventListener("error",p)}},[a,n,t]),s}var Ni=Ar,Di=Tr,Ii=kr;function Dr(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Dr(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ir(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Dr(e))&&(r&&(r+=" "),r+=t);return r}const dn="-",ji=e=>{const t=Fi(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const i=s.split(dn);return i[0]===""&&i.length!==1&&i.shift(),jr(i,t)||Li(s)},getConflictingClassGroupIds:(s,i)=>{const l=n[s]||[];return i&&r[s]?[...l,...r[s]]:l}}},jr=(e,t)=>{if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?jr(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(dn);return t.validators.find(({validator:s})=>s(a))?.classGroupId},Lr=/^\[(.+)\]$/,Li=e=>{if(Lr.test(e)){const t=Lr.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Fi=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)fn(n[o],r,o,t);return r},fn=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:Fr(t,o);a.classGroupId=n;return}if(typeof o=="function"){if($i(o)){fn(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([a,s])=>{fn(s,Fr(t,a),n,r)})})},Fr=(e,t)=>{let n=e;return t.split(dn).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},$i=e=>e.isThemeGetter,zi=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(a,s)=>{n.set(a,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(a){let s=n.get(a);if(s!==void 0)return s;if((s=r.get(a))!==void 0)return o(a,s),s},set(a,s){n.has(a)?n.set(a,s):o(a,s)}}},pn="!",mn=":",Vi=mn.length,Bi=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const a=[];let s=0,i=0,l=0,c;for(let v=0;v<o.length;v++){let h=o[v];if(s===0&&i===0){if(h===mn){a.push(o.slice(l,v)),l=v+Vi;continue}if(h==="/"){c=v;continue}}h==="["?s++:h==="]"?s--:h==="("?i++:h===")"&&i--}const p=a.length===0?o:o.substring(l),u=Gi(p),f=u!==p,g=c&&c>l?c-l:void 0;return{modifiers:a,hasImportantModifier:f,baseClassName:u,maybePostfixModifierPosition:g}};if(t){const o=t+mn,a=r;r=s=>s.startsWith(o)?a(s.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:s,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=a=>n({className:a,parseClassName:o})}return r},Gi=e=>e.endsWith(pn)?e.substring(0,e.length-1):e.startsWith(pn)?e.substring(1):e,Wi=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let a=[];return r.forEach(s=>{s[0]==="["||t[s]?(o.push(...a.sort(),s),a=[]):a.push(s)}),o.push(...a.sort()),o}},Ui=e=>({cache:zi(e.cacheSize),parseClassName:Bi(e),sortModifiers:Wi(e),...ji(e)}),Hi=/\s+/,Ki=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:a}=t,s=[],i=e.trim().split(Hi);let l="";for(let c=i.length-1;c>=0;c-=1){const p=i[c],{isExternal:u,modifiers:f,hasImportantModifier:g,baseClassName:v,maybePostfixModifierPosition:h}=n(p);if(u){l=p+(l.length>0?" "+l:l);continue}let b=!!h,y=r(b?v.substring(0,h):v);if(!y){if(!b){l=p+(l.length>0?" "+l:l);continue}if(y=r(v),!y){l=p+(l.length>0?" "+l:l);continue}b=!1}const x=a(f).join(":"),C=g?x+pn:x,w=C+y;if(s.includes(w))continue;s.push(w);const E=o(y,b);for(let M=0;M<E.length;++M){const O=E[M];s.push(C+O)}l=p+(l.length>0?" "+l:l)}return l};function Yi(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=$r(t))&&(r&&(r+=" "),r+=n);return r}const $r=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=$r(e[r]))&&(n&&(n+=" "),n+=t);return n};function Xi(e,...t){let n,r,o,a=s;function s(l){const c=t.reduce((p,u)=>u(p),e());return n=Ui(c),r=n.cache.get,o=n.cache.set,a=i,i(l)}function i(l){const c=r(l);if(c)return c;const p=Ki(l,n);return o(l,p),p}return function(){return a(Yi.apply(null,arguments))}}const te=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},zr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Vr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,qi=/^\d+\/\d+$/,Zi=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ji=/\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$/,Qi=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ec=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,tc=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ve=e=>qi.test(e),z=e=>!!e&&!Number.isNaN(Number(e)),Me=e=>!!e&&Number.isInteger(Number(e)),gn=e=>e.endsWith("%")&&z(e.slice(0,-1)),_e=e=>Zi.test(e),nc=()=>!0,rc=e=>Ji.test(e)&&!Qi.test(e),Br=()=>!1,oc=e=>ec.test(e),ac=e=>tc.test(e),sc=e=>!T(e)&&!P(e),ic=e=>Be(e,Kr,Br),T=e=>zr.test(e),De=e=>Be(e,Yr,rc),hn=e=>Be(e,fc,z),Gr=e=>Be(e,Ur,Br),cc=e=>Be(e,Hr,ac),Et=e=>Be(e,Xr,oc),P=e=>Vr.test(e),ot=e=>Ge(e,Yr),lc=e=>Ge(e,pc),Wr=e=>Ge(e,Ur),uc=e=>Ge(e,Kr),dc=e=>Ge(e,Hr),_t=e=>Ge(e,Xr,!0),Be=(e,t,n)=>{const r=zr.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Ge=(e,t,n=!1)=>{const r=Vr.exec(e);return r?r[1]?t(r[1]):n:!1},Ur=e=>e==="position"||e==="percentage",Hr=e=>e==="image"||e==="url",Kr=e=>e==="length"||e==="size"||e==="bg-size",Yr=e=>e==="length",fc=e=>e==="number",pc=e=>e==="family-name",Xr=e=>e==="shadow",mc=Xi(()=>{const e=te("color"),t=te("font"),n=te("text"),r=te("font-weight"),o=te("tracking"),a=te("leading"),s=te("breakpoint"),i=te("container"),l=te("spacing"),c=te("radius"),p=te("shadow"),u=te("inset-shadow"),f=te("text-shadow"),g=te("drop-shadow"),v=te("blur"),h=te("perspective"),b=te("aspect"),y=te("ease"),x=te("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],E=()=>[...w(),P,T],M=()=>["auto","hidden","clip","visible","scroll"],O=()=>["auto","contain","none"],R=()=>[P,T,l],L=()=>[Ve,"full","auto",...R()],B=()=>[Me,"none","subgrid",P,T],U=()=>["auto",{span:["full",Me,P,T]},Me,P,T],H=()=>[Me,"auto",P,T],X=()=>["auto","min","max","fr",P,T],W=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Z=()=>["start","end","center","stretch","center-safe","end-safe"],F=()=>["auto",...R()],K=()=>[Ve,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...R()],_=()=>[e,P,T],k=()=>[...w(),Wr,Gr,{position:[P,T]}],S=()=>["no-repeat",{repeat:["","x","y","space","round"]}],I=()=>["auto","cover","contain",uc,ic,{size:[P,T]}],G=()=>[gn,ot,De],V=()=>["","none","full",c,P,T],q=()=>["",z,ot,De],ee=()=>["solid","dashed","dotted","double"],se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],$=()=>[z,gn,Wr,Gr],J=()=>["","none",v,P,T],le=()=>["none",z,P,T],Ce=()=>["none",z,P,T],$e=()=>[z,P,T],et=()=>[Ve,"full",...R()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[_e],breakpoint:[_e],color:[nc],container:[_e],"drop-shadow":[_e],ease:["in","out","in-out"],font:[sc],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[_e],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[_e],shadow:[_e],spacing:["px",z],text:[_e],"text-shadow":[_e],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ve,T,P,b]}],container:["container"],columns:[{columns:[z,T,P,i]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:E()}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:L()}],"inset-x":[{"inset-x":L()}],"inset-y":[{"inset-y":L()}],start:[{start:L()}],end:[{end:L()}],top:[{top:L()}],right:[{right:L()}],bottom:[{bottom:L()}],left:[{left:L()}],visibility:["visible","invisible","collapse"],z:[{z:[Me,"auto",P,T]}],basis:[{basis:[Ve,"full","auto",i,...R()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[z,Ve,"auto","initial","none",T]}],grow:[{grow:["",z,P,T]}],shrink:[{shrink:["",z,P,T]}],order:[{order:[Me,"first","last","none",P,T]}],"grid-cols":[{"grid-cols":B()}],"col-start-end":[{col:U()}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":B()}],"row-start-end":[{row:U()}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":X()}],"auto-rows":[{"auto-rows":X()}],gap:[{gap:R()}],"gap-x":[{"gap-x":R()}],"gap-y":[{"gap-y":R()}],"justify-content":[{justify:[...W(),"normal"]}],"justify-items":[{"justify-items":[...Z(),"normal"]}],"justify-self":[{"justify-self":["auto",...Z()]}],"align-content":[{content:["normal",...W()]}],"align-items":[{items:[...Z(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Z(),{baseline:["","last"]}]}],"place-content":[{"place-content":W()}],"place-items":[{"place-items":[...Z(),"baseline"]}],"place-self":[{"place-self":["auto",...Z()]}],p:[{p:R()}],px:[{px:R()}],py:[{py:R()}],ps:[{ps:R()}],pe:[{pe:R()}],pt:[{pt:R()}],pr:[{pr:R()}],pb:[{pb:R()}],pl:[{pl:R()}],m:[{m:F()}],mx:[{mx:F()}],my:[{my:F()}],ms:[{ms:F()}],me:[{me:F()}],mt:[{mt:F()}],mr:[{mr:F()}],mb:[{mb:F()}],ml:[{ml:F()}],"space-x":[{"space-x":R()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":R()}],"space-y-reverse":["space-y-reverse"],size:[{size:K()}],w:[{w:[i,"screen",...K()]}],"min-w":[{"min-w":[i,"screen","none",...K()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[s]},...K()]}],h:[{h:["screen","lh",...K()]}],"min-h":[{"min-h":["screen","lh","none",...K()]}],"max-h":[{"max-h":["screen","lh",...K()]}],"font-size":[{text:["base",n,ot,De]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,P,hn]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",gn,T]}],"font-family":[{font:[lc,T,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,P,T]}],"line-clamp":[{"line-clamp":[z,"none",P,hn]}],leading:[{leading:[a,...R()]}],"list-image":[{"list-image":["none",P,T]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",P,T]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:_()}],"text-color":[{text:_()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ee(),"wavy"]}],"text-decoration-thickness":[{decoration:[z,"from-font","auto",P,De]}],"text-decoration-color":[{decoration:_()}],"underline-offset":[{"underline-offset":[z,"auto",P,T]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",P,T]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",P,T]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:k()}],"bg-repeat":[{bg:S()}],"bg-size":[{bg:I()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Me,P,T],radial:["",P,T],conic:[Me,P,T]},dc,cc]}],"bg-color":[{bg:_()}],"gradient-from-pos":[{from:G()}],"gradient-via-pos":[{via:G()}],"gradient-to-pos":[{to:G()}],"gradient-from":[{from:_()}],"gradient-via":[{via:_()}],"gradient-to":[{to:_()}],rounded:[{rounded:V()}],"rounded-s":[{"rounded-s":V()}],"rounded-e":[{"rounded-e":V()}],"rounded-t":[{"rounded-t":V()}],"rounded-r":[{"rounded-r":V()}],"rounded-b":[{"rounded-b":V()}],"rounded-l":[{"rounded-l":V()}],"rounded-ss":[{"rounded-ss":V()}],"rounded-se":[{"rounded-se":V()}],"rounded-ee":[{"rounded-ee":V()}],"rounded-es":[{"rounded-es":V()}],"rounded-tl":[{"rounded-tl":V()}],"rounded-tr":[{"rounded-tr":V()}],"rounded-br":[{"rounded-br":V()}],"rounded-bl":[{"rounded-bl":V()}],"border-w":[{border:q()}],"border-w-x":[{"border-x":q()}],"border-w-y":[{"border-y":q()}],"border-w-s":[{"border-s":q()}],"border-w-e":[{"border-e":q()}],"border-w-t":[{"border-t":q()}],"border-w-r":[{"border-r":q()}],"border-w-b":[{"border-b":q()}],"border-w-l":[{"border-l":q()}],"divide-x":[{"divide-x":q()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":q()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ee(),"hidden","none"]}],"divide-style":[{divide:[...ee(),"hidden","none"]}],"border-color":[{border:_()}],"border-color-x":[{"border-x":_()}],"border-color-y":[{"border-y":_()}],"border-color-s":[{"border-s":_()}],"border-color-e":[{"border-e":_()}],"border-color-t":[{"border-t":_()}],"border-color-r":[{"border-r":_()}],"border-color-b":[{"border-b":_()}],"border-color-l":[{"border-l":_()}],"divide-color":[{divide:_()}],"outline-style":[{outline:[...ee(),"none","hidden"]}],"outline-offset":[{"outline-offset":[z,P,T]}],"outline-w":[{outline:["",z,ot,De]}],"outline-color":[{outline:_()}],shadow:[{shadow:["","none",p,_t,Et]}],"shadow-color":[{shadow:_()}],"inset-shadow":[{"inset-shadow":["none",u,_t,Et]}],"inset-shadow-color":[{"inset-shadow":_()}],"ring-w":[{ring:q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:_()}],"ring-offset-w":[{"ring-offset":[z,De]}],"ring-offset-color":[{"ring-offset":_()}],"inset-ring-w":[{"inset-ring":q()}],"inset-ring-color":[{"inset-ring":_()}],"text-shadow":[{"text-shadow":["none",f,_t,Et]}],"text-shadow-color":[{"text-shadow":_()}],opacity:[{opacity:[z,P,T]}],"mix-blend":[{"mix-blend":[...se(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":se()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[z]}],"mask-image-linear-from-pos":[{"mask-linear-from":$()}],"mask-image-linear-to-pos":[{"mask-linear-to":$()}],"mask-image-linear-from-color":[{"mask-linear-from":_()}],"mask-image-linear-to-color":[{"mask-linear-to":_()}],"mask-image-t-from-pos":[{"mask-t-from":$()}],"mask-image-t-to-pos":[{"mask-t-to":$()}],"mask-image-t-from-color":[{"mask-t-from":_()}],"mask-image-t-to-color":[{"mask-t-to":_()}],"mask-image-r-from-pos":[{"mask-r-from":$()}],"mask-image-r-to-pos":[{"mask-r-to":$()}],"mask-image-r-from-color":[{"mask-r-from":_()}],"mask-image-r-to-color":[{"mask-r-to":_()}],"mask-image-b-from-pos":[{"mask-b-from":$()}],"mask-image-b-to-pos":[{"mask-b-to":$()}],"mask-image-b-from-color":[{"mask-b-from":_()}],"mask-image-b-to-color":[{"mask-b-to":_()}],"mask-image-l-from-pos":[{"mask-l-from":$()}],"mask-image-l-to-pos":[{"mask-l-to":$()}],"mask-image-l-from-color":[{"mask-l-from":_()}],"mask-image-l-to-color":[{"mask-l-to":_()}],"mask-image-x-from-pos":[{"mask-x-from":$()}],"mask-image-x-to-pos":[{"mask-x-to":$()}],"mask-image-x-from-color":[{"mask-x-from":_()}],"mask-image-x-to-color":[{"mask-x-to":_()}],"mask-image-y-from-pos":[{"mask-y-from":$()}],"mask-image-y-to-pos":[{"mask-y-to":$()}],"mask-image-y-from-color":[{"mask-y-from":_()}],"mask-image-y-to-color":[{"mask-y-to":_()}],"mask-image-radial":[{"mask-radial":[P,T]}],"mask-image-radial-from-pos":[{"mask-radial-from":$()}],"mask-image-radial-to-pos":[{"mask-radial-to":$()}],"mask-image-radial-from-color":[{"mask-radial-from":_()}],"mask-image-radial-to-color":[{"mask-radial-to":_()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":w()}],"mask-image-conic-pos":[{"mask-conic":[z]}],"mask-image-conic-from-pos":[{"mask-conic-from":$()}],"mask-image-conic-to-pos":[{"mask-conic-to":$()}],"mask-image-conic-from-color":[{"mask-conic-from":_()}],"mask-image-conic-to-color":[{"mask-conic-to":_()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:k()}],"mask-repeat":[{mask:S()}],"mask-size":[{mask:I()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",P,T]}],filter:[{filter:["","none",P,T]}],blur:[{blur:J()}],brightness:[{brightness:[z,P,T]}],contrast:[{contrast:[z,P,T]}],"drop-shadow":[{"drop-shadow":["","none",g,_t,Et]}],"drop-shadow-color":[{"drop-shadow":_()}],grayscale:[{grayscale:["",z,P,T]}],"hue-rotate":[{"hue-rotate":[z,P,T]}],invert:[{invert:["",z,P,T]}],saturate:[{saturate:[z,P,T]}],sepia:[{sepia:["",z,P,T]}],"backdrop-filter":[{"backdrop-filter":["","none",P,T]}],"backdrop-blur":[{"backdrop-blur":J()}],"backdrop-brightness":[{"backdrop-brightness":[z,P,T]}],"backdrop-contrast":[{"backdrop-contrast":[z,P,T]}],"backdrop-grayscale":[{"backdrop-grayscale":["",z,P,T]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[z,P,T]}],"backdrop-invert":[{"backdrop-invert":["",z,P,T]}],"backdrop-opacity":[{"backdrop-opacity":[z,P,T]}],"backdrop-saturate":[{"backdrop-saturate":[z,P,T]}],"backdrop-sepia":[{"backdrop-sepia":["",z,P,T]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":R()}],"border-spacing-x":[{"border-spacing-x":R()}],"border-spacing-y":[{"border-spacing-y":R()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",P,T]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[z,"initial",P,T]}],ease:[{ease:["linear","initial",y,P,T]}],delay:[{delay:[z,P,T]}],animate:[{animate:["none",x,P,T]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,P,T]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:le()}],"rotate-x":[{"rotate-x":le()}],"rotate-y":[{"rotate-y":le()}],"rotate-z":[{"rotate-z":le()}],scale:[{scale:Ce()}],"scale-x":[{"scale-x":Ce()}],"scale-y":[{"scale-y":Ce()}],"scale-z":[{"scale-z":Ce()}],"scale-3d":["scale-3d"],skew:[{skew:$e()}],"skew-x":[{"skew-x":$e()}],"skew-y":[{"skew-y":$e()}],transform:[{transform:[P,T,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:et()}],"translate-x":[{"translate-x":et()}],"translate-y":[{"translate-y":et()}],"translate-z":[{"translate-z":et()}],"translate-none":["translate-none"],accent:[{accent:_()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:_()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",P,T]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",P,T]}],fill:[{fill:["none",..._()]}],"stroke-w":[{stroke:[z,ot,De,hn]}],stroke:[{stroke:["none",..._()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},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"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-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"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function N(...e){return mc(Ir(e))}function gc({className:e,...t}){return m.jsx(Ni,{"data-slot":"avatar",className:N("relative flex size-8 shrink-0 overflow-hidden rounded-full",e),...t})}function hc({className:e,...t}){return m.jsx(Di,{"data-slot":"avatar-image",className:N("aspect-square size-full",e),...t})}function vc({className:e,...t}){return m.jsx(Ii,{"data-slot":"avatar-fallback",className:N("bg-muted flex size-full items-center justify-center rounded-full",e),...t})}const qr=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Zr=Ir,vn=(e,t)=>n=>{var r;if(t?.variants==null)return Zr(e,n?.class,n?.className);const{variants:o,defaultVariants:a}=t,s=Object.keys(o).map(c=>{const p=n?.[c],u=a?.[c];if(p===null)return null;const f=qr(p)||qr(u);return o[c][f]}),i=n&&Object.entries(n).reduce((c,p)=>{let[u,f]=p;return f===void 0||(c[u]=f),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,p)=>{let{class:u,className:f,...g}=p;return Object.entries(g).every(v=>{let[h,b]=v;return Array.isArray(b)?b.includes({...a,...i}[h]):{...a,...i}[h]===b})?[...c,u,f]:c},[]);return Zr(e,s,l,n?.class,n?.className)},Jr=vn("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function bc({className:e,variant:t,asChild:n=!1,...r}){const o=n?Ae:"span";return m.jsx(o,{"data-slot":"badge",className:N(Jr({variant:t}),e),...r})}const Qr=vn("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function eo({className:e,variant:t="default",size:n="default",asChild:r=!1,...o}){const a=r?Ae:"button";return m.jsx(a,{"data-slot":"button","data-variant":t,"data-size":n,className:N(Qr({variant:t,size:n,className:e})),...o})}function yc({className:e,...t}){return m.jsx("div",{"data-slot":"card",className:N("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...t})}function xc({className:e,...t}){return m.jsx("div",{"data-slot":"card-header",className:N("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})}function wc({className:e,...t}){return m.jsx("div",{"data-slot":"card-title",className:N("leading-none font-semibold",e),...t})}function Sc({className:e,...t}){return m.jsx("div",{"data-slot":"card-description",className:N("text-muted-foreground text-sm",e),...t})}function Cc({className:e,...t}){return m.jsx("div",{"data-slot":"card-action",className:N("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...t})}function Ec({className:e,...t}){return m.jsx("div",{"data-slot":"card-content",className:N("px-6",e),...t})}function _c({className:e,...t}){return m.jsx("div",{"data-slot":"card-footer",className:N("flex items-center px-6 [.border-t]:pt-6",e),...t})}function j(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}var Rc=d[" useInsertionEffect ".trim().toString()]||ue;function We({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,a,s]=Oc({defaultProp:t,onChange:n}),i=e!==void 0,l=i?e:o;{const p=d.useRef(e!==void 0);d.useEffect(()=>{const u=p.current;u!==i&&console.warn(`${r} is changing from ${u?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),p.current=i},[i,r])}const c=d.useCallback(p=>{if(i){const u=Ac(p)?p(e):p;u!==e&&s.current?.(u)}else a(p)},[i,e,a,s]);return[l,c]}function Oc({defaultProp:e,onChange:t}){const[n,r]=d.useState(e),o=d.useRef(n),a=d.useRef(t);return Rc(()=>{a.current=t},[t]),d.useEffect(()=>{o.current!==n&&(a.current?.(n),o.current=n)},[n,o]),[n,r,a]}function Ac(e){return typeof e=="function"}function Mc(e,t){return d.useReducer((n,r)=>t[n][r]??n,e)}var pe=e=>{const{present:t,children:n}=e,r=Tc(t),o=typeof n=="function"?n({present:r.isPresent}):d.Children.only(n),a=Q(r.ref,Pc(o));return typeof n=="function"||r.isPresent?d.cloneElement(o,{ref:a}):null};pe.displayName="Presence";function Tc(e){const[t,n]=d.useState(),r=d.useRef(null),o=d.useRef(e),a=d.useRef("none"),s=e?"mounted":"unmounted",[i,l]=Mc(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return d.useEffect(()=>{const c=Rt(r.current);a.current=i==="mounted"?c:"none"},[i]),ue(()=>{const c=r.current,p=o.current;if(p!==e){const f=a.current,g=Rt(c);e?l("MOUNT"):g==="none"||c?.display==="none"?l("UNMOUNT"):l(p&&f!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),ue(()=>{if(t){let c;const p=t.ownerDocument.defaultView??window,u=g=>{const h=Rt(r.current).includes(CSS.escape(g.animationName));if(g.target===t&&h&&(l("ANIMATION_END"),!o.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",c=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},f=g=>{g.target===t&&(a.current=Rt(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{p.clearTimeout(c),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:d.useCallback(c=>{r.current=c?getComputedStyle(c):null,n(c)},[])}}function Rt(e){return e?.animationName||"none"}function Pc(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var kc=d[" useId ".trim().toString()]||(()=>{}),Nc=0;function ve(e){const[t,n]=d.useState(kc());return ue(()=>{n(r=>r??String(Nc++))},[e]),e||(t?`radix-${t}`:"")}var Ot="Collapsible",[Dc,Sg]=Ee(Ot),[Ic,bn]=Dc(Ot),to=d.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:a,onOpenChange:s,...i}=e,[l,c]=We({prop:r,defaultProp:o??!1,onChange:s,caller:Ot});return m.jsx(Ic,{scope:n,disabled:a,contentId:ve(),open:l,onOpenToggle:d.useCallback(()=>c(p=>!p),[c]),children:m.jsx(Y.div,{"data-state":xn(l),"data-disabled":a?"":void 0,...i,ref:t})})});to.displayName=Ot;var no="CollapsibleTrigger",ro=d.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=bn(no,n);return m.jsx(Y.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":xn(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:j(e.onClick,o.onOpenToggle)})});ro.displayName=no;var yn="CollapsibleContent",oo=d.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=bn(yn,e.__scopeCollapsible);return m.jsx(pe,{present:n||o.open,children:({present:a})=>m.jsx(jc,{...r,ref:t,present:a})})});oo.displayName=yn;var jc=d.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...a}=e,s=bn(yn,n),[i,l]=d.useState(r),c=d.useRef(null),p=Q(t,c),u=d.useRef(0),f=u.current,g=d.useRef(0),v=g.current,h=s.open||i,b=d.useRef(h),y=d.useRef(void 0);return d.useEffect(()=>{const x=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(x)},[]),ue(()=>{const x=c.current;if(x){y.current=y.current||{transitionDuration:x.style.transitionDuration,animationName:x.style.animationName},x.style.transitionDuration="0s",x.style.animationName="none";const C=x.getBoundingClientRect();u.current=C.height,g.current=C.width,b.current||(x.style.transitionDuration=y.current.transitionDuration,x.style.animationName=y.current.animationName),l(r)}},[s.open,r]),m.jsx(Y.div,{"data-state":xn(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!h,...a,ref:p,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":v?`${v}px`:void 0,...e.style},children:h&&o})});function xn(e){return e?"open":"closed"}var Lc=to;function Fc({...e}){return m.jsx(Lc,{"data-slot":"collapsible",...e})}function $c({...e}){return m.jsx(ro,{"data-slot":"collapsible-trigger",...e})}function zc({...e}){return m.jsx(oo,{"data-slot":"collapsible-content",...e})}function ao(e){const t=e+"CollectionProvider",[n,r]=Ee(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=h=>{const{scope:b,children:y}=h,x=D.useRef(null),C=D.useRef(new Map).current;return m.jsx(o,{scope:b,itemMap:C,collectionRef:x,children:y})};s.displayName=t;const i=e+"CollectionSlot",l=ze(i),c=D.forwardRef((h,b)=>{const{scope:y,children:x}=h,C=a(i,y),w=Q(b,C.collectionRef);return m.jsx(l,{ref:w,children:x})});c.displayName=i;const p=e+"CollectionItemSlot",u="data-radix-collection-item",f=ze(p),g=D.forwardRef((h,b)=>{const{scope:y,children:x,...C}=h,w=D.useRef(null),E=Q(b,w),M=a(p,y);return D.useEffect(()=>(M.itemMap.set(w,{ref:w,...C}),()=>void M.itemMap.delete(w))),m.jsx(f,{[u]:"",ref:E,children:x})});g.displayName=p;function v(h){const b=a(e+"CollectionConsumer",h);return D.useCallback(()=>{const x=b.collectionRef.current;if(!x)return[];const C=Array.from(x.querySelectorAll(`[${u}]`));return Array.from(b.itemMap.values()).sort((M,O)=>C.indexOf(M.ref.current)-C.indexOf(O.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:s,Slot:c,ItemSlot:g},v,r]}var Vc=d.createContext(void 0);function so(e){const t=d.useContext(Vc);return e||t||"ltr"}function Bc(e,t=globalThis?.document){const n=fe(e);d.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Gc="DismissableLayer",wn="dismissableLayer.update",Wc="dismissableLayer.pointerDownOutside",Uc="dismissableLayer.focusOutside",io,co=d.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),At=d.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:i,...l}=e,c=d.useContext(co),[p,u]=d.useState(null),f=p?.ownerDocument??globalThis?.document,[,g]=d.useState({}),v=Q(t,O=>u(O)),h=Array.from(c.layers),[b]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=h.indexOf(b),x=p?h.indexOf(p):-1,C=c.layersWithOutsidePointerEventsDisabled.size>0,w=x>=y,E=Yc(O=>{const R=O.target,L=[...c.branches].some(B=>B.contains(R));!w||L||(o?.(O),s?.(O),O.defaultPrevented||i?.())},f),M=Xc(O=>{const R=O.target;[...c.branches].some(B=>B.contains(R))||(a?.(O),s?.(O),O.defaultPrevented||i?.())},f);return Bc(O=>{x===c.layers.size-1&&(r?.(O),!O.defaultPrevented&&i&&(O.preventDefault(),i()))},f),d.useEffect(()=>{if(p)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(io=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(p)),c.layers.add(p),lo(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=io)}},[p,f,n,c]),d.useEffect(()=>()=>{p&&(c.layers.delete(p),c.layersWithOutsidePointerEventsDisabled.delete(p),lo())},[p,c]),d.useEffect(()=>{const O=()=>g({});return document.addEventListener(wn,O),()=>document.removeEventListener(wn,O)},[]),m.jsx(Y.div,{...l,ref:v,style:{pointerEvents:C?w?"auto":"none":void 0,...e.style},onFocusCapture:j(e.onFocusCapture,M.onFocusCapture),onBlurCapture:j(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:j(e.onPointerDownCapture,E.onPointerDownCapture)})});At.displayName=Gc;var Hc="DismissableLayerBranch",Kc=d.forwardRef((e,t)=>{const n=d.useContext(co),r=d.useRef(null),o=Q(t,r);return d.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),m.jsx(Y.div,{...e,ref:o})});Kc.displayName=Hc;function Yc(e,t=globalThis?.document){const n=fe(e),r=d.useRef(!1),o=d.useRef(()=>{});return d.useEffect(()=>{const a=i=>{if(i.target&&!r.current){let l=function(){uo(Wc,n,c,{discrete:!0})};const c={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Xc(e,t=globalThis?.document){const n=fe(e),r=d.useRef(!1);return d.useEffect(()=>{const o=a=>{a.target&&!r.current&&uo(Uc,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function lo(){const e=new CustomEvent(wn);document.dispatchEvent(e)}function uo(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Cr(o,a):o.dispatchEvent(a)}var Sn=0;function fo(){d.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??po()),document.body.insertAdjacentElement("beforeend",e[1]??po()),Sn++,()=>{Sn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Sn--}},[])}function po(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Cn="focusScope.autoFocusOnMount",En="focusScope.autoFocusOnUnmount",mo={bubbles:!1,cancelable:!0},qc="FocusScope",_n=d.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[i,l]=d.useState(null),c=fe(o),p=fe(a),u=d.useRef(null),f=Q(t,h=>l(h)),g=d.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;d.useEffect(()=>{if(r){let h=function(C){if(g.paused||!i)return;const w=C.target;i.contains(w)?u.current=w:Te(u.current,{select:!0})},b=function(C){if(g.paused||!i)return;const w=C.relatedTarget;w!==null&&(i.contains(w)||Te(u.current,{select:!0}))},y=function(C){if(document.activeElement===document.body)for(const E of C)E.removedNodes.length>0&&Te(i)};document.addEventListener("focusin",h),document.addEventListener("focusout",b);const x=new MutationObserver(y);return i&&x.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",b),x.disconnect()}}},[r,i,g.paused]),d.useEffect(()=>{if(i){vo.add(g);const h=document.activeElement;if(!i.contains(h)){const y=new CustomEvent(Cn,mo);i.addEventListener(Cn,c),i.dispatchEvent(y),y.defaultPrevented||(Zc(nl(go(i)),{select:!0}),document.activeElement===h&&Te(i))}return()=>{i.removeEventListener(Cn,c),setTimeout(()=>{const y=new CustomEvent(En,mo);i.addEventListener(En,p),i.dispatchEvent(y),y.defaultPrevented||Te(h??document.body,{select:!0}),i.removeEventListener(En,p),vo.remove(g)},0)}}},[i,c,p,g]);const v=d.useCallback(h=>{if(!n&&!r||g.paused)return;const b=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,y=document.activeElement;if(b&&y){const x=h.currentTarget,[C,w]=Jc(x);C&&w?!h.shiftKey&&y===w?(h.preventDefault(),n&&Te(C,{select:!0})):h.shiftKey&&y===C&&(h.preventDefault(),n&&Te(w,{select:!0})):y===x&&h.preventDefault()}},[n,r,g.paused]);return m.jsx(Y.div,{tabIndex:-1,...s,ref:f,onKeyDown:v})});_n.displayName=qc;function Zc(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Te(r,{select:t}),document.activeElement!==n)return}function Jc(e){const t=go(e),n=ho(t,e),r=ho(t.reverse(),e);return[n,r]}function go(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ho(e,t){for(const n of e)if(!Qc(n,{upTo:t}))return n}function Qc(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function el(e){return e instanceof HTMLInputElement&&"select"in e}function Te(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&el(e)&&t&&e.select()}}var vo=tl();function tl(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=bo(e,t),e.unshift(t)},remove(t){e=bo(e,t),e[0]?.resume()}}}function bo(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function nl(e){return e.filter(t=>t.tagName!=="A")}const rl=["top","right","bottom","left"],Pe=Math.min,ie=Math.max,Mt=Math.round,Tt=Math.floor,be=e=>({x:e,y:e}),ol={left:"right",right:"left",bottom:"top",top:"bottom"},al={start:"end",end:"start"};function Rn(e,t,n){return ie(e,Pe(t,n))}function Re(e,t){return typeof e=="function"?e(t):e}function Oe(e){return e.split("-")[0]}function Ue(e){return e.split("-")[1]}function On(e){return e==="x"?"y":"x"}function An(e){return e==="y"?"height":"width"}const sl=new Set(["top","bottom"]);function ye(e){return sl.has(Oe(e))?"y":"x"}function Mn(e){return On(ye(e))}function il(e,t,n){n===void 0&&(n=!1);const r=Ue(e),o=Mn(e),a=An(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Pt(s)),[s,Pt(s)]}function cl(e){const t=Pt(e);return[Tn(e),t,Tn(t)]}function Tn(e){return e.replace(/start|end/g,t=>al[t])}const yo=["left","right"],xo=["right","left"],ll=["top","bottom"],ul=["bottom","top"];function dl(e,t,n){switch(e){case"top":case"bottom":return n?t?xo:yo:t?yo:xo;case"left":case"right":return t?ll:ul;default:return[]}}function fl(e,t,n,r){const o=Ue(e);let a=dl(Oe(e),n==="start",r);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(Tn)))),a}function Pt(e){return e.replace(/left|right|bottom|top/g,t=>ol[t])}function pl(e){return{top:0,right:0,bottom:0,left:0,...e}}function wo(e){return typeof e!="number"?pl(e):{top:e,right:e,bottom:e,left:e}}function kt(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function So(e,t,n){let{reference:r,floating:o}=e;const a=ye(t),s=Mn(t),i=An(s),l=Oe(t),c=a==="y",p=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,f=r[i]/2-o[i]/2;let g;switch(l){case"top":g={x:p,y:r.y-o.height};break;case"bottom":g={x:p,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:u};break;case"left":g={x:r.x-o.width,y:u};break;default:g={x:r.x,y:r.y}}switch(Ue(t)){case"start":g[s]-=f*(n&&c?-1:1);break;case"end":g[s]+=f*(n&&c?-1:1);break}return g}const ml=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:s}=n,i=a.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:p,y:u}=So(c,r,l),f=r,g={},v=0;for(let h=0;h<i.length;h++){const{name:b,fn:y}=i[h],{x,y:C,data:w,reset:E}=await y({x:p,y:u,initialPlacement:r,placement:f,strategy:o,middlewareData:g,rects:c,platform:s,elements:{reference:e,floating:t}});p=x??p,u=C??u,g={...g,[b]:{...g[b],...w}},E&&v<=50&&(v++,typeof E=="object"&&(E.placement&&(f=E.placement),E.rects&&(c=E.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:p,y:u}=So(c,f,l)),h=-1)}return{x:p,y:u,placement:f,strategy:o,middlewareData:g}};async function at(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:s,elements:i,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:p="viewport",elementContext:u="floating",altBoundary:f=!1,padding:g=0}=Re(t,e),v=wo(g),b=i[f?u==="floating"?"reference":"floating":u],y=kt(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(b)))==null||n?b:b.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(i.floating)),boundary:c,rootBoundary:p,strategy:l})),x=u==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(i.floating)),w=await(a.isElement==null?void 0:a.isElement(C))?await(a.getScale==null?void 0:a.getScale(C))||{x:1,y:1}:{x:1,y:1},E=kt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:x,offsetParent:C,strategy:l}):x);return{top:(y.top-E.top+v.top)/w.y,bottom:(E.bottom-y.bottom+v.bottom)/w.y,left:(y.left-E.left+v.left)/w.x,right:(E.right-y.right+v.right)/w.x}}const gl=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:s,elements:i,middlewareData:l}=t,{element:c,padding:p=0}=Re(e,t)||{};if(c==null)return{};const u=wo(p),f={x:n,y:r},g=Mn(o),v=An(g),h=await s.getDimensions(c),b=g==="y",y=b?"top":"left",x=b?"bottom":"right",C=b?"clientHeight":"clientWidth",w=a.reference[v]+a.reference[g]-f[g]-a.floating[v],E=f[g]-a.reference[g],M=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let O=M?M[C]:0;(!O||!await(s.isElement==null?void 0:s.isElement(M)))&&(O=i.floating[C]||a.floating[v]);const R=w/2-E/2,L=O/2-h[v]/2-1,B=Pe(u[y],L),U=Pe(u[x],L),H=B,X=O-h[v]-U,W=O/2-h[v]/2+R,Z=Rn(H,W,X),F=!l.arrow&&Ue(o)!=null&&W!==Z&&a.reference[v]/2-(W<H?B:U)-h[v]/2<0,K=F?W<H?W-H:W-X:0;return{[g]:f[g]+K,data:{[g]:Z,centerOffset:W-Z-K,...F&&{alignmentOffset:K}},reset:F}}}),hl=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:s,initialPlacement:i,platform:l,elements:c}=t,{mainAxis:p=!0,crossAxis:u=!0,fallbackPlacements:f,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:h=!0,...b}=Re(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const y=Oe(o),x=ye(i),C=Oe(i)===i,w=await(l.isRTL==null?void 0:l.isRTL(c.floating)),E=f||(C||!h?[Pt(i)]:cl(i)),M=v!=="none";!f&&M&&E.push(...fl(i,h,v,w));const O=[i,...E],R=await at(t,b),L=[];let B=((r=a.flip)==null?void 0:r.overflows)||[];if(p&&L.push(R[y]),u){const W=il(o,s,w);L.push(R[W[0]],R[W[1]])}if(B=[...B,{placement:o,overflows:L}],!L.every(W=>W<=0)){var U,H;const W=(((U=a.flip)==null?void 0:U.index)||0)+1,Z=O[W];if(Z&&(!(u==="alignment"?x!==ye(Z):!1)||B.every(_=>ye(_.placement)===x?_.overflows[0]>0:!0)))return{data:{index:W,overflows:B},reset:{placement:Z}};let F=(H=B.filter(K=>K.overflows[0]<=0).sort((K,_)=>K.overflows[1]-_.overflows[1])[0])==null?void 0:H.placement;if(!F)switch(g){case"bestFit":{var X;const K=(X=B.filter(_=>{if(M){const k=ye(_.placement);return k===x||k==="y"}return!0}).map(_=>[_.placement,_.overflows.filter(k=>k>0).reduce((k,S)=>k+S,0)]).sort((_,k)=>_[1]-k[1])[0])==null?void 0:X[0];K&&(F=K);break}case"initialPlacement":F=i;break}if(o!==F)return{reset:{placement:F}}}return{}}}};function Co(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Eo(e){return rl.some(t=>e[t]>=0)}const vl=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Re(e,t);switch(r){case"referenceHidden":{const a=await at(t,{...o,elementContext:"reference"}),s=Co(a,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Eo(s)}}}case"escaped":{const a=await at(t,{...o,altBoundary:!0}),s=Co(a,n.floating);return{data:{escapedOffsets:s,escaped:Eo(s)}}}default:return{}}}}},_o=new Set(["left","top"]);async function bl(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Oe(n),i=Ue(n),l=ye(n)==="y",c=_o.has(s)?-1:1,p=a&&l?-1:1,u=Re(t,e);let{mainAxis:f,crossAxis:g,alignmentAxis:v}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return i&&typeof v=="number"&&(g=i==="end"?v*-1:v),l?{x:g*p,y:f*c}:{x:f*c,y:g*p}}const yl=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:s,middlewareData:i}=t,l=await bl(t,e);return s===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:s}}}}},xl=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:i={fn:b=>{let{x:y,y:x}=b;return{x:y,y:x}}},...l}=Re(e,t),c={x:n,y:r},p=await at(t,l),u=ye(Oe(o)),f=On(u);let g=c[f],v=c[u];if(a){const b=f==="y"?"top":"left",y=f==="y"?"bottom":"right",x=g+p[b],C=g-p[y];g=Rn(x,g,C)}if(s){const b=u==="y"?"top":"left",y=u==="y"?"bottom":"right",x=v+p[b],C=v-p[y];v=Rn(x,v,C)}const h=i.fn({...t,[f]:g,[u]:v});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[f]:a,[u]:s}}}}}},wl=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:s}=t,{offset:i=0,mainAxis:l=!0,crossAxis:c=!0}=Re(e,t),p={x:n,y:r},u=ye(o),f=On(u);let g=p[f],v=p[u];const h=Re(i,t),b=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const C=f==="y"?"height":"width",w=a.reference[f]-a.floating[C]+b.mainAxis,E=a.reference[f]+a.reference[C]-b.mainAxis;g<w?g=w:g>E&&(g=E)}if(c){var y,x;const C=f==="y"?"width":"height",w=_o.has(Oe(o)),E=a.reference[u]-a.floating[C]+(w&&((y=s.offset)==null?void 0:y[u])||0)+(w?0:b.crossAxis),M=a.reference[u]+a.reference[C]+(w?0:((x=s.offset)==null?void 0:x[u])||0)-(w?b.crossAxis:0);v<E?v=E:v>M&&(v=M)}return{[f]:g,[u]:v}}}},Sl=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:s,elements:i}=t,{apply:l=()=>{},...c}=Re(e,t),p=await at(t,c),u=Oe(o),f=Ue(o),g=ye(o)==="y",{width:v,height:h}=a.floating;let b,y;u==="top"||u==="bottom"?(b=u,y=f===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(y=u,b=f==="end"?"top":"bottom");const x=h-p.top-p.bottom,C=v-p.left-p.right,w=Pe(h-p[b],x),E=Pe(v-p[y],C),M=!t.middlewareData.shift;let O=w,R=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(R=C),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(O=x),M&&!f){const B=ie(p.left,0),U=ie(p.right,0),H=ie(p.top,0),X=ie(p.bottom,0);g?R=v-2*(B!==0||U!==0?B+U:ie(p.left,p.right)):O=h-2*(H!==0||X!==0?H+X:ie(p.top,p.bottom))}await l({...t,availableWidth:R,availableHeight:O});const L=await s.getDimensions(i.floating);return v!==L.width||h!==L.height?{reset:{rects:!0}}:{}}}};function Nt(){return typeof window<"u"}function He(e){return Ro(e)?(e.nodeName||"").toLowerCase():"#document"}function ce(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function xe(e){var t;return(t=(Ro(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ro(e){return Nt()?e instanceof Node||e instanceof ce(e).Node:!1}function me(e){return Nt()?e instanceof Element||e instanceof ce(e).Element:!1}function we(e){return Nt()?e instanceof HTMLElement||e instanceof ce(e).HTMLElement:!1}function Oo(e){return!Nt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ce(e).ShadowRoot}const Cl=new Set(["inline","contents"]);function st(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=ge(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Cl.has(o)}const El=new Set(["table","td","th"]);function _l(e){return El.has(He(e))}const Rl=[":popover-open",":modal"];function Dt(e){return Rl.some(t=>{try{return e.matches(t)}catch{return!1}})}const Ol=["transform","translate","scale","rotate","perspective"],Al=["transform","translate","scale","rotate","perspective","filter"],Ml=["paint","layout","strict","content"];function Pn(e){const t=kn(),n=me(e)?ge(e):e;return Ol.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Al.some(r=>(n.willChange||"").includes(r))||Ml.some(r=>(n.contain||"").includes(r))}function Tl(e){let t=ke(e);for(;we(t)&&!Ke(t);){if(Pn(t))return t;if(Dt(t))return null;t=ke(t)}return null}function kn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Pl=new Set(["html","body","#document"]);function Ke(e){return Pl.has(He(e))}function ge(e){return ce(e).getComputedStyle(e)}function It(e){return me(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ke(e){if(He(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Oo(e)&&e.host||xe(e);return Oo(t)?t.host:t}function Ao(e){const t=ke(e);return Ke(t)?e.ownerDocument?e.ownerDocument.body:e.body:we(t)&&st(t)?t:Ao(t)}function it(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Ao(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),s=ce(o);if(a){const i=Nn(s);return t.concat(s,s.visualViewport||[],st(o)?o:[],i&&n?it(i):[])}return t.concat(o,it(o,[],n))}function Nn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Mo(e){const t=ge(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=we(e),a=o?e.offsetWidth:n,s=o?e.offsetHeight:r,i=Mt(n)!==a||Mt(r)!==s;return i&&(n=a,r=s),{width:n,height:r,$:i}}function Dn(e){return me(e)?e:e.contextElement}function Ye(e){const t=Dn(e);if(!we(t))return be(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=Mo(t);let s=(a?Mt(n.width):n.width)/r,i=(a?Mt(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}const kl=be(0);function To(e){const t=ce(e);return!kn()||!t.visualViewport?kl:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Nl(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ce(e)?!1:t}function Ie(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=Dn(e);let s=be(1);t&&(r?me(r)&&(s=Ye(r)):s=Ye(e));const i=Nl(a,n,r)?To(a):be(0);let l=(o.left+i.x)/s.x,c=(o.top+i.y)/s.y,p=o.width/s.x,u=o.height/s.y;if(a){const f=ce(a),g=r&&me(r)?ce(r):r;let v=f,h=Nn(v);for(;h&&r&&g!==v;){const b=Ye(h),y=h.getBoundingClientRect(),x=ge(h),C=y.left+(h.clientLeft+parseFloat(x.paddingLeft))*b.x,w=y.top+(h.clientTop+parseFloat(x.paddingTop))*b.y;l*=b.x,c*=b.y,p*=b.x,u*=b.y,l+=C,c+=w,v=ce(h),h=Nn(v)}}return kt({width:p,height:u,x:l,y:c})}function jt(e,t){const n=It(e).scrollLeft;return t?t.left+n:Ie(xe(e)).left+n}function Po(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-jt(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function Dl(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",s=xe(r),i=t?Dt(t.floating):!1;if(r===s||i&&a)return n;let l={scrollLeft:0,scrollTop:0},c=be(1);const p=be(0),u=we(r);if((u||!u&&!a)&&((He(r)!=="body"||st(s))&&(l=It(r)),we(r))){const g=Ie(r);c=Ye(r),p.x=g.x+r.clientLeft,p.y=g.y+r.clientTop}const f=s&&!u&&!a?Po(s,l):be(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+p.x+f.x,y:n.y*c.y-l.scrollTop*c.y+p.y+f.y}}function Il(e){return Array.from(e.getClientRects())}function jl(e){const t=xe(e),n=It(e),r=e.ownerDocument.body,o=ie(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=ie(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+jt(e);const i=-n.scrollTop;return ge(r).direction==="rtl"&&(s+=ie(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:s,y:i}}const ko=25;function Ll(e,t){const n=ce(e),r=xe(e),o=n.visualViewport;let a=r.clientWidth,s=r.clientHeight,i=0,l=0;if(o){a=o.width,s=o.height;const p=kn();(!p||p&&t==="fixed")&&(i=o.offsetLeft,l=o.offsetTop)}const c=jt(r);if(c<=0){const p=r.ownerDocument,u=p.body,f=getComputedStyle(u),g=p.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,v=Math.abs(r.clientWidth-u.clientWidth-g);v<=ko&&(a-=v)}else c<=ko&&(a+=c);return{width:a,height:s,x:i,y:l}}const Fl=new Set(["absolute","fixed"]);function $l(e,t){const n=Ie(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=we(e)?Ye(e):be(1),s=e.clientWidth*a.x,i=e.clientHeight*a.y,l=o*a.x,c=r*a.y;return{width:s,height:i,x:l,y:c}}function No(e,t,n){let r;if(t==="viewport")r=Ll(e,n);else if(t==="document")r=jl(xe(e));else if(me(t))r=$l(t,n);else{const o=To(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return kt(r)}function Do(e,t){const n=ke(e);return n===t||!me(n)||Ke(n)?!1:ge(n).position==="fixed"||Do(n,t)}function zl(e,t){const n=t.get(e);if(n)return n;let r=it(e,[],!1).filter(i=>me(i)&&He(i)!=="body"),o=null;const a=ge(e).position==="fixed";let s=a?ke(e):e;for(;me(s)&&!Ke(s);){const i=ge(s),l=Pn(s);!l&&i.position==="fixed"&&(o=null),(a?!l&&!o:!l&&i.position==="static"&&!!o&&Fl.has(o.position)||st(s)&&!l&&Do(e,s))?r=r.filter(p=>p!==s):o=i,s=ke(s)}return t.set(e,r),r}function Vl(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Dt(t)?[]:zl(t,this._c):[].concat(n),r],i=s[0],l=s.reduce((c,p)=>{const u=No(t,p,o);return c.top=ie(u.top,c.top),c.right=Pe(u.right,c.right),c.bottom=Pe(u.bottom,c.bottom),c.left=ie(u.left,c.left),c},No(t,i,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Bl(e){const{width:t,height:n}=Mo(e);return{width:t,height:n}}function Gl(e,t,n){const r=we(t),o=xe(t),a=n==="fixed",s=Ie(e,!0,a,t);let i={scrollLeft:0,scrollTop:0};const l=be(0);function c(){l.x=jt(o)}if(r||!r&&!a)if((He(t)!=="body"||st(o))&&(i=It(t)),r){const g=Ie(t,!0,a,t);l.x=g.x+t.clientLeft,l.y=g.y+t.clientTop}else o&&c();a&&!r&&o&&c();const p=o&&!r&&!a?Po(o,i):be(0),u=s.left+i.scrollLeft-l.x-p.x,f=s.top+i.scrollTop-l.y-p.y;return{x:u,y:f,width:s.width,height:s.height}}function In(e){return ge(e).position==="static"}function Io(e,t){if(!we(e)||ge(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return xe(e)===n&&(n=n.ownerDocument.body),n}function jo(e,t){const n=ce(e);if(Dt(e))return n;if(!we(e)){let o=ke(e);for(;o&&!Ke(o);){if(me(o)&&!In(o))return o;o=ke(o)}return n}let r=Io(e,t);for(;r&&_l(r)&&In(r);)r=Io(r,t);return r&&Ke(r)&&In(r)&&!Pn(r)?n:r||Tl(e)||n}const Wl=async function(e){const t=this.getOffsetParent||jo,n=this.getDimensions,r=await n(e.floating);return{reference:Gl(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ul(e){return ge(e).direction==="rtl"}const Hl={convertOffsetParentRelativeRectToViewportRelativeRect:Dl,getDocumentElement:xe,getClippingRect:Vl,getOffsetParent:jo,getElementRects:Wl,getClientRects:Il,getDimensions:Bl,getScale:Ye,isElement:me,isRTL:Ul};function Lo(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Kl(e,t){let n=null,r;const o=xe(e);function a(){var i;clearTimeout(r),(i=n)==null||i.disconnect(),n=null}function s(i,l){i===void 0&&(i=!1),l===void 0&&(l=1),a();const c=e.getBoundingClientRect(),{left:p,top:u,width:f,height:g}=c;if(i||t(),!f||!g)return;const v=Tt(u),h=Tt(o.clientWidth-(p+f)),b=Tt(o.clientHeight-(u+g)),y=Tt(p),C={rootMargin:-v+"px "+-h+"px "+-b+"px "+-y+"px",threshold:ie(0,Pe(1,l))||1};let w=!0;function E(M){const O=M[0].intersectionRatio;if(O!==l){if(!w)return s();O?s(!1,O):r=setTimeout(()=>{s(!1,1e-7)},1e3)}O===1&&!Lo(c,e.getBoundingClientRect())&&s(),w=!1}try{n=new IntersectionObserver(E,{...C,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,C)}n.observe(e)}return s(!0),a}function Yl(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=Dn(e),p=o||a?[...c?it(c):[],...it(t)]:[];p.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),a&&y.addEventListener("resize",n)});const u=c&&i?Kl(c,n):null;let f=-1,g=null;s&&(g=new ResizeObserver(y=>{let[x]=y;x&&x.target===c&&g&&(g.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var C;(C=g)==null||C.observe(t)})),n()}),c&&!l&&g.observe(c),g.observe(t));let v,h=l?Ie(e):null;l&&b();function b(){const y=Ie(e);h&&!Lo(h,y)&&n(),h=y,v=requestAnimationFrame(b)}return n(),()=>{var y;p.forEach(x=>{o&&x.removeEventListener("scroll",n),a&&x.removeEventListener("resize",n)}),u?.(),(y=g)==null||y.disconnect(),g=null,l&&cancelAnimationFrame(v)}}const Xl=yl,ql=xl,Zl=hl,Jl=Sl,Ql=vl,Fo=gl,eu=wl,tu=(e,t,n)=>{const r=new Map,o={platform:Hl,...n},a={...o.platform,_c:r};return ml(e,t,{...o,platform:a})};var nu=typeof document<"u",ru=function(){},Lt=nu?D.useLayoutEffect:ru;function Ft(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Ft(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!Ft(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function $o(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function zo(e,t){const n=$o(e);return Math.round(t*n)/n}function jn(e){const t=d.useRef(e);return Lt(()=>{t.current=e}),t}function ou(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:s}={},transform:i=!0,whileElementsMounted:l,open:c}=e,[p,u]=d.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,g]=d.useState(r);Ft(f,r)||g(r);const[v,h]=d.useState(null),[b,y]=d.useState(null),x=d.useCallback(_=>{_!==M.current&&(M.current=_,h(_))},[]),C=d.useCallback(_=>{_!==O.current&&(O.current=_,y(_))},[]),w=a||v,E=s||b,M=d.useRef(null),O=d.useRef(null),R=d.useRef(p),L=l!=null,B=jn(l),U=jn(o),H=jn(c),X=d.useCallback(()=>{if(!M.current||!O.current)return;const _={placement:t,strategy:n,middleware:f};U.current&&(_.platform=U.current),tu(M.current,O.current,_).then(k=>{const S={...k,isPositioned:H.current!==!1};W.current&&!Ft(R.current,S)&&(R.current=S,sn.flushSync(()=>{u(S)}))})},[f,t,n,U,H]);Lt(()=>{c===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,u(_=>({..._,isPositioned:!1})))},[c]);const W=d.useRef(!1);Lt(()=>(W.current=!0,()=>{W.current=!1}),[]),Lt(()=>{if(w&&(M.current=w),E&&(O.current=E),w&&E){if(B.current)return B.current(w,E,X);X()}},[w,E,X,B,L]);const Z=d.useMemo(()=>({reference:M,floating:O,setReference:x,setFloating:C}),[x,C]),F=d.useMemo(()=>({reference:w,floating:E}),[w,E]),K=d.useMemo(()=>{const _={position:n,left:0,top:0};if(!F.floating)return _;const k=zo(F.floating,p.x),S=zo(F.floating,p.y);return i?{..._,transform:"translate("+k+"px, "+S+"px)",...$o(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:k,top:S}},[n,i,F.floating,p.x,p.y]);return d.useMemo(()=>({...p,update:X,refs:Z,elements:F,floatingStyles:K}),[p,X,Z,F,K])}const au=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Fo({element:r.current,padding:o}).fn(n):{}:r?Fo({element:r,padding:o}).fn(n):{}}}},su=(e,t)=>({...Xl(e),options:[e,t]}),iu=(e,t)=>({...ql(e),options:[e,t]}),cu=(e,t)=>({...eu(e),options:[e,t]}),lu=(e,t)=>({...Zl(e),options:[e,t]}),uu=(e,t)=>({...Jl(e),options:[e,t]}),du=(e,t)=>({...Ql(e),options:[e,t]}),fu=(e,t)=>({...au(e),options:[e,t]});var pu="Arrow",Vo=d.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return m.jsx(Y.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:m.jsx("polygon",{points:"0,0 30,0 15,10"})})});Vo.displayName=pu;var mu=Vo;function gu(e){const[t,n]=d.useState(void 0);return ue(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let s,i;if("borderBoxSize"in a){const l=a.borderBoxSize,c=Array.isArray(l)?l[0]:l;s=c.inlineSize,i=c.blockSize}else s=e.offsetWidth,i=e.offsetHeight;n({width:s,height:i})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Ln="Popper",[Bo,$t]=Ee(Ln),[hu,Go]=Bo(Ln),Wo=e=>{const{__scopePopper:t,children:n}=e,[r,o]=d.useState(null);return m.jsx(hu,{scope:t,anchor:r,onAnchorChange:o,children:n})};Wo.displayName=Ln;var Uo="PopperAnchor",Ho=d.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=Go(Uo,n),s=d.useRef(null),i=Q(t,s),l=d.useRef(null);return d.useEffect(()=>{const c=l.current;l.current=r?.current||s.current,c!==l.current&&a.onAnchorChange(l.current)}),r?null:m.jsx(Y.div,{...o,ref:i})});Ho.displayName=Uo;var Fn="PopperContent",[vu,bu]=Bo(Fn),Ko=d.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:a="center",alignOffset:s=0,arrowPadding:i=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:p=0,sticky:u="partial",hideWhenDetached:f=!1,updatePositionStrategy:g="optimized",onPlaced:v,...h}=e,b=Go(Fn,n),[y,x]=d.useState(null),C=Q(t,$=>x($)),[w,E]=d.useState(null),M=gu(w),O=M?.width??0,R=M?.height??0,L=r+(a!=="center"?"-"+a:""),B=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},U=Array.isArray(c)?c:[c],H=U.length>0,X={padding:B,boundary:U.filter(xu),altBoundary:H},{refs:W,floatingStyles:Z,placement:F,isPositioned:K,middlewareData:_}=ou({strategy:"fixed",placement:L,whileElementsMounted:(...$)=>Yl(...$,{animationFrame:g==="always"}),elements:{reference:b.anchor},middleware:[su({mainAxis:o+R,alignmentAxis:s}),l&&iu({mainAxis:!0,crossAxis:!1,limiter:u==="partial"?cu():void 0,...X}),l&&lu({...X}),uu({...X,apply:({elements:$,rects:J,availableWidth:le,availableHeight:Ce})=>{const{width:$e,height:et}=J.reference,an=$.floating.style;an.setProperty("--radix-popper-available-width",`${le}px`),an.setProperty("--radix-popper-available-height",`${Ce}px`),an.setProperty("--radix-popper-anchor-width",`${$e}px`),an.setProperty("--radix-popper-anchor-height",`${et}px`)}}),w&&fu({element:w,padding:i}),wu({arrowWidth:O,arrowHeight:R}),f&&du({strategy:"referenceHidden",...X})]}),[k,S]=qo(F),I=fe(v);ue(()=>{K&&I?.()},[K,I]);const G=_.arrow?.x,V=_.arrow?.y,q=_.arrow?.centerOffset!==0,[ee,se]=d.useState();return ue(()=>{y&&se(window.getComputedStyle(y).zIndex)},[y]),m.jsx("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...Z,transform:K?Z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ee,"--radix-popper-transform-origin":[_.transformOrigin?.x,_.transformOrigin?.y].join(" "),..._.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:m.jsx(vu,{scope:n,placedSide:k,onArrowChange:E,arrowX:G,arrowY:V,shouldHideArrow:q,children:m.jsx(Y.div,{"data-side":k,"data-align":S,...h,ref:C,style:{...h.style,animation:K?void 0:"none"}})})})});Ko.displayName=Fn;var Yo="PopperArrow",yu={top:"bottom",right:"left",bottom:"top",left:"right"},Xo=d.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=bu(Yo,r),s=yu[a.placedSide];return m.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:m.jsx(mu,{...o,ref:n,style:{...o.style,display:"block"}})})});Xo.displayName=Yo;function xu(e){return e!==null}var wu=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,s=o.arrow?.centerOffset!==0,i=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[c,p]=qo(n),u={start:"0%",center:"50%",end:"100%"}[p],f=(o.arrow?.x??0)+i/2,g=(o.arrow?.y??0)+l/2;let v="",h="";return c==="bottom"?(v=s?u:`${f}px`,h=`${-l}px`):c==="top"?(v=s?u:`${f}px`,h=`${r.floating.height+l}px`):c==="right"?(v=`${-l}px`,h=s?u:`${g}px`):c==="left"&&(v=`${r.floating.width+l}px`,h=s?u:`${g}px`),{data:{x:v,y:h}}}});function qo(e){const[t,n="center"]=e.split("-");return[t,n]}var $n=Wo,Zo=Ho,Jo=Ko,Qo=Xo,Su="Portal",zt=d.forwardRef((e,t)=>{const{container:n,...r}=e,[o,a]=d.useState(!1);ue(()=>a(!0),[]);const s=n||o&&globalThis?.document?.body;return s?vi.createPortal(m.jsx(Y.div,{...r,ref:t}),s):null});zt.displayName=Su;var zn="rovingFocusGroup.onEntryFocus",Cu={bubbles:!1,cancelable:!0},ct="RovingFocusGroup",[Vn,ea,Eu]=ao(ct),[_u,ta]=Ee(ct,[Eu]),[Ru,Ou]=_u(ct),na=d.forwardRef((e,t)=>m.jsx(Vn.Provider,{scope:e.__scopeRovingFocusGroup,children:m.jsx(Vn.Slot,{scope:e.__scopeRovingFocusGroup,children:m.jsx(Au,{...e,ref:t})})}));na.displayName=ct;var Au=d.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:p=!1,...u}=e,f=d.useRef(null),g=Q(t,f),v=so(a),[h,b]=We({prop:s,defaultProp:i??null,onChange:l,caller:ct}),[y,x]=d.useState(!1),C=fe(c),w=ea(n),E=d.useRef(!1),[M,O]=d.useState(0);return d.useEffect(()=>{const R=f.current;if(R)return R.addEventListener(zn,C),()=>R.removeEventListener(zn,C)},[C]),m.jsx(Ru,{scope:n,orientation:r,dir:v,loop:o,currentTabStopId:h,onItemFocus:d.useCallback(R=>b(R),[b]),onItemShiftTab:d.useCallback(()=>x(!0),[]),onFocusableItemAdd:d.useCallback(()=>O(R=>R+1),[]),onFocusableItemRemove:d.useCallback(()=>O(R=>R-1),[]),children:m.jsx(Y.div,{tabIndex:y||M===0?-1:0,"data-orientation":r,...u,ref:g,style:{outline:"none",...e.style},onMouseDown:j(e.onMouseDown,()=>{E.current=!0}),onFocus:j(e.onFocus,R=>{const L=!E.current;if(R.target===R.currentTarget&&L&&!y){const B=new CustomEvent(zn,Cu);if(R.currentTarget.dispatchEvent(B),!B.defaultPrevented){const U=w().filter(F=>F.focusable),H=U.find(F=>F.active),X=U.find(F=>F.id===h),Z=[H,X,...U].filter(Boolean).map(F=>F.ref.current);aa(Z,p)}}E.current=!1}),onBlur:j(e.onBlur,()=>x(!1))})})}),ra="RovingFocusGroupItem",oa=d.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,children:s,...i}=e,l=ve(),c=a||l,p=Ou(ra,n),u=p.currentTabStopId===c,f=ea(n),{onFocusableItemAdd:g,onFocusableItemRemove:v,currentTabStopId:h}=p;return d.useEffect(()=>{if(r)return g(),()=>v()},[r,g,v]),m.jsx(Vn.ItemSlot,{scope:n,id:c,focusable:r,active:o,children:m.jsx(Y.span,{tabIndex:u?0:-1,"data-orientation":p.orientation,...i,ref:t,onMouseDown:j(e.onMouseDown,b=>{r?p.onItemFocus(c):b.preventDefault()}),onFocus:j(e.onFocus,()=>p.onItemFocus(c)),onKeyDown:j(e.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){p.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const y=Pu(b,p.orientation,p.dir);if(y!==void 0){if(b.metaKey||b.ctrlKey||b.altKey||b.shiftKey)return;b.preventDefault();let C=f().filter(w=>w.focusable).map(w=>w.ref.current);if(y==="last")C.reverse();else if(y==="prev"||y==="next"){y==="prev"&&C.reverse();const w=C.indexOf(b.currentTarget);C=p.loop?ku(C,w+1):C.slice(w+1)}setTimeout(()=>aa(C))}}),children:typeof s=="function"?s({isCurrentTabStop:u,hasTabStop:h!=null}):s})})});oa.displayName=ra;var Mu={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Tu(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Pu(e,t,n){const r=Tu(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Mu[r]}function aa(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function ku(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Nu=na,Du=oa,Iu=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Xe=new WeakMap,Vt=new WeakMap,Bt={},Bn=0,sa=function(e){return e&&(e.host||sa(e.parentNode))},ju=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=sa(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Lu=function(e,t,n,r){var o=ju(t,Array.isArray(e)?e:[e]);Bt[n]||(Bt[n]=new WeakMap);var a=Bt[n],s=[],i=new Set,l=new Set(o),c=function(u){!u||i.has(u)||(i.add(u),c(u.parentNode))};o.forEach(c);var p=function(u){!u||l.has(u)||Array.prototype.forEach.call(u.children,function(f){if(i.has(f))p(f);else try{var g=f.getAttribute(r),v=g!==null&&g!=="false",h=(Xe.get(f)||0)+1,b=(a.get(f)||0)+1;Xe.set(f,h),a.set(f,b),s.push(f),h===1&&v&&Vt.set(f,!0),b===1&&f.setAttribute(n,"true"),v||f.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",f,y)}})};return p(t),i.clear(),Bn++,function(){s.forEach(function(u){var f=Xe.get(u)-1,g=a.get(u)-1;Xe.set(u,f),a.set(u,g),f||(Vt.has(u)||u.removeAttribute(r),Vt.delete(u)),g||u.removeAttribute(n)}),Bn--,Bn||(Xe=new WeakMap,Xe=new WeakMap,Vt=new WeakMap,Bt={})}},ia=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Iu(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Lu(r,o,n,"aria-hidden")):function(){return null}},Se=function(){return Se=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Se.apply(this,arguments)};function ca(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Fu(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Gt="right-scroll-bar-position",Wt="width-before-scroll-bar",$u="with-scroll-bars-hidden",zu="--removed-body-scroll-bar-size";function Gn(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Vu(e,t){var n=D.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Bu=typeof window<"u"?d.useLayoutEffect:d.useEffect,la=new WeakMap;function Gu(e,t){var n=Vu(null,function(r){return e.forEach(function(o){return Gn(o,r)})});return Bu(function(){var r=la.get(n);if(r){var o=new Set(r),a=new Set(e),s=n.current;o.forEach(function(i){a.has(i)||Gn(i,null)}),a.forEach(function(i){o.has(i)||Gn(i,s)})}la.set(n,e)},[e]),n}function Wu(e){return e}function Uu(e,t){t===void 0&&(t=Wu);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var s=t(a,r);return n.push(s),function(){n=n.filter(function(i){return i!==s})}},assignSyncMedium:function(a){for(r=!0;n.length;){var s=n;n=[],s.forEach(a)}n={push:function(i){return a(i)},filter:function(){return n}}},assignMedium:function(a){r=!0;var s=[];if(n.length){var i=n;n=[],i.forEach(a),s=n}var l=function(){var p=s;s=[],p.forEach(a)},c=function(){return Promise.resolve().then(l)};c(),n={push:function(p){s.push(p),c()},filter:function(p){return s=s.filter(p),n}}}};return o}function Hu(e){e===void 0&&(e={});var t=Uu(null);return t.options=Se({async:!0,ssr:!1},e),t}var ua=function(e){var t=e.sideCar,n=ca(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return d.createElement(r,Se({},n))};ua.isSideCarExport=!0;function Ku(e,t){return e.useMedium(t),ua}var da=Hu(),Wn=function(){},Ut=d.forwardRef(function(e,t){var n=d.useRef(null),r=d.useState({onScrollCapture:Wn,onWheelCapture:Wn,onTouchMoveCapture:Wn}),o=r[0],a=r[1],s=e.forwardProps,i=e.children,l=e.className,c=e.removeScrollBar,p=e.enabled,u=e.shards,f=e.sideCar,g=e.noRelative,v=e.noIsolation,h=e.inert,b=e.allowPinchZoom,y=e.as,x=y===void 0?"div":y,C=e.gapMode,w=ca(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=f,M=Gu([n,t]),O=Se(Se({},w),o);return d.createElement(d.Fragment,null,p&&d.createElement(E,{sideCar:da,removeScrollBar:c,shards:u,noRelative:g,noIsolation:v,inert:h,setCallbacks:a,allowPinchZoom:!!b,lockRef:n,gapMode:C}),s?d.cloneElement(d.Children.only(i),Se(Se({},O),{ref:M})):d.createElement(x,Se({},O,{className:l,ref:M}),i))});Ut.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ut.classNames={fullWidth:Wt,zeroRight:Gt};var Yu=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Xu(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Yu();return t&&e.setAttribute("nonce",t),e}function qu(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Zu(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Ju=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Xu())&&(qu(t,n),Zu(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Qu=function(){var e=Ju();return function(t,n){d.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},fa=function(){var e=Qu(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},ed={left:0,top:0,right:0,gap:0},Un=function(e){return parseInt(e||"",10)||0},td=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Un(n),Un(r),Un(o)]},nd=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return ed;var t=td(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},rd=fa(),qe="data-scroll-locked",od=function(e,t,n,r){var o=e.left,a=e.top,s=e.right,i=e.gap;return n===void 0&&(n="margin"),`
|
|
11
|
-
.`.concat(
|
|
12
|
-
overflow: hidden `).concat(
|
|
13
|
-
padding-right: `).concat(i,"px ").concat(
|
|
10
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),u}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=D,l={d:{f:e,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:e,C:e,L:e,m:e,X:e,S:e,M:e},p:0,findDOMNode:null},c=Symbol.for("react.portal"),p=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),ne.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,ne.createPortal=function(u,f){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error("Target container is not a DOM element.");return r(u,f,null,g)},ne.flushSync=function(u){var f=p.T,g=l.p;try{if(p.T=null,l.p=2,u)return u()}finally{p.T=f,l.p=g,l.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},ne.preconnect=function(u,f){typeof u=="string"&&u?f!=null&&typeof f!="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",a(f)):f!=null&&typeof f.crossOrigin!="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",o(f.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(u)),typeof u=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,l.d.C(u,f))},ne.prefetchDNS=function(u){if(typeof u!="string"||!u)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(u));else if(1<arguments.length){var f=arguments[1];typeof f=="object"&&f.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",a(f)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",a(f))}typeof u=="string"&&l.d.D(u)},ne.preinit=function(u,f){if(typeof u=="string"&&u?f==null||typeof f!="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",a(f)):f.as!=="style"&&f.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',a(f.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(u)),typeof u=="string"&&f&&typeof f.as=="string"){var g=f.as,v=n(g,f.crossOrigin),h=typeof f.integrity=="string"?f.integrity:void 0,b=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;g==="style"?l.d.S(u,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:v,integrity:h,fetchPriority:b}):g==="script"&&l.d.X(u,{crossOrigin:v,integrity:h,fetchPriority:b,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},ne.preinitModule=function(u,f){var g="";if(typeof u=="string"&&u||(g+=" The `href` argument encountered was "+o(u)+"."),f!==void 0&&typeof f!="object"?g+=" The `options` argument encountered was "+o(f)+".":f&&"as"in f&&f.as!=="script"&&(g+=" The `as` option encountered was "+a(f.as)+"."),g)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",g);else switch(g=f&&typeof f.as=="string"?f.as:"script",g){case"script":break;default:g=a(g),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',g,u)}typeof u=="string"&&(typeof f=="object"&&f!==null?(f.as==null||f.as==="script")&&(g=n(f.as,f.crossOrigin),l.d.M(u,{crossOrigin:g,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})):f==null&&l.d.M(u))},ne.preload=function(u,f){var g="";if(typeof u=="string"&&u||(g+=" The `href` argument encountered was "+o(u)+"."),f==null||typeof f!="object"?g+=" The `options` argument encountered was "+o(f)+".":typeof f.as=="string"&&f.as||(g+=" The `as` option encountered was "+o(f.as)+"."),g&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',g),typeof u=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){g=f.as;var v=n(g,f.crossOrigin);l.d.L(u,g,{crossOrigin:v,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},ne.preloadModule=function(u,f){var g="";typeof u=="string"&&u||(g+=" The `href` argument encountered was "+o(u)+"."),f!==void 0&&typeof f!="object"?g+=" The `options` argument encountered was "+o(f)+".":f&&"as"in f&&typeof f.as!="string"&&(g+=" The `as` option encountered was "+o(f.as)+"."),g&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',g),typeof u=="string"&&(f?(g=n(f.as,f.crossOrigin),l.d.m(u,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:g,integrity:typeof f.integrity=="string"?f.integrity:void 0})):l.d.m(u))},ne.requestFormReset=function(u){l.d.r(u)},ne.unstable_batchedUpdates=function(u,f){return u(f)},ne.useFormState=function(u,f,g){return s().useFormState(u,f,g)},ne.useFormStatus=function(){return s().useHostTransitionStatus()},ne.version="19.1.1",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),ne}var En;function Oi(){if(En)return St.exports;En=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}}return process.env.NODE_ENV==="production"?(e(),St.exports=_i()):St.exports=Ri(),St.exports}var ir=Oi();const Ai=yi(ir);function _n(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ot(...e){return t=>{let r=!1;const n=e.map(o=>{const a=_n(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():_n(e[o],null)}}}}function Q(...e){return d.useCallback(ot(...e),e)}function ze(e){const t=Mi(e),r=d.forwardRef((n,o)=>{const{children:a,...s}=n,i=d.Children.toArray(a),l=i.find(Ti);if(l){const c=l.props.children,p=i.map(u=>u===l?d.Children.count(c)>1?d.Children.only(null):d.isValidElement(c)?c.props.children:null:u);return m.jsx(t,{...s,ref:o,children:d.isValidElement(c)?d.cloneElement(c,void 0,p):null})}return m.jsx(t,{...s,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}var _e=ze("Slot");function Mi(e){const t=d.forwardRef((r,n)=>{const{children:o,...a}=r;if(d.isValidElement(o)){const s=Ni(o),i=ki(a,o.props);return o.type!==d.Fragment&&(i.ref=n?ot(n,s):s),d.cloneElement(o,i)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Rn=Symbol("radix.slottable");function Pi(e){const t=({children:r})=>m.jsx(m.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=Rn,t}function Ti(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Rn}function ki(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...i)=>{const l=a(...i);return o(...i),l}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function Ni(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Di=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Y=Di.reduce((e,t)=>{const r=ze(`Primitive.${t}`),n=d.forwardRef((o,a)=>{const{asChild:s,...i}=o,l=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(l,{...i,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function On(e,t){e&&ir.flushSync(()=>e.dispatchEvent(t))}var Ct={exports:{}},cr={};var An;function Ii(){if(An)return cr;An=1;var e=D;function t(u,f){return u===f&&(u!==0||1/u===1/f)||u!==u&&f!==f}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,o=e.useEffect,a=e.useLayoutEffect,s=e.useDebugValue;function i(u,f){var g=f(),v=n({inst:{value:g,getSnapshot:f}}),h=v[0].inst,b=v[1];return a(function(){h.value=g,h.getSnapshot=f,l(h)&&b({inst:h})},[u,g,f]),o(function(){return l(h)&&b({inst:h}),u(function(){l(h)&&b({inst:h})})},[u]),s(g),g}function l(u){var f=u.getSnapshot;u=u.value;try{var g=f();return!r(u,g)}catch{return!0}}function c(u,f){return f()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:i;return cr.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,cr}var lr={};var Mn;function ji(){return Mn||(Mn=1,process.env.NODE_ENV!=="production"&&(function(){function e(g,v){return g===v&&(g!==0||1/g===1/v)||g!==g&&v!==v}function t(g,v){p||o.startTransition===void 0||(p=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var h=v();if(!u){var b=v();a(h,b)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),u=!0)}b=s({inst:{value:h,getSnapshot:v}});var y=b[0].inst,x=b[1];return l(function(){y.value=h,y.getSnapshot=v,r(y)&&x({inst:y})},[g,h,v]),i(function(){return r(y)&&x({inst:y}),g(function(){r(y)&&x({inst:y})})},[g]),c(h),h}function r(g){var v=g.getSnapshot;g=g.value;try{var h=v();return!a(g,h)}catch{return!0}}function n(g,v){return v()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=D,a=typeof Object.is=="function"?Object.is:e,s=o.useState,i=o.useEffect,l=o.useLayoutEffect,c=o.useDebugValue,p=!1,u=!1,f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:t;lr.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:f,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),lr}var Pn;function Li(){return Pn||(Pn=1,process.env.NODE_ENV==="production"?Ct.exports=Ii():Ct.exports=ji()),Ct.exports}var Fi=Li();function $i(){return Fi.useSyncExternalStore(zi,()=>!0,()=>!1)}function zi(){return()=>{}}var ur="Avatar",[Vi,Yg]=Ee(ur),[Bi,Tn]=Vi(ur),kn=d.forwardRef((e,t)=>{const{__scopeAvatar:r,...n}=e,[o,a]=d.useState("idle");return m.jsx(Bi,{scope:r,imageLoadingStatus:o,onImageLoadingStatusChange:a,children:m.jsx(Y.span,{...n,ref:t})})});kn.displayName=ur;var Nn="AvatarImage",Dn=d.forwardRef((e,t)=>{const{__scopeAvatar:r,src:n,onLoadingStatusChange:o=()=>{},...a}=e,s=Tn(Nn,r),i=Gi(n,a),l=fe(c=>{o(c),s.onImageLoadingStatusChange(c)});return ue(()=>{i!=="idle"&&l(i)},[i,l]),i==="loaded"?m.jsx(Y.img,{...a,ref:t,src:n}):null});Dn.displayName=Nn;var In="AvatarFallback",jn=d.forwardRef((e,t)=>{const{__scopeAvatar:r,delayMs:n,...o}=e,a=Tn(In,r),[s,i]=d.useState(n===void 0);return d.useEffect(()=>{if(n!==void 0){const l=window.setTimeout(()=>i(!0),n);return()=>window.clearTimeout(l)}},[n]),s&&a.imageLoadingStatus!=="loaded"?m.jsx(Y.span,{...o,ref:t}):null});jn.displayName=In;function Ln(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function Gi(e,{referrerPolicy:t,crossOrigin:r}){const n=$i(),o=d.useRef(null),a=n?(o.current||(o.current=new window.Image),o.current):null,[s,i]=d.useState(()=>Ln(a,e));return ue(()=>{i(Ln(a,e))},[a,e]),ue(()=>{const l=u=>()=>{i(u)};if(!a)return;const c=l("loaded"),p=l("error");return a.addEventListener("load",c),a.addEventListener("error",p),t&&(a.referrerPolicy=t),typeof r=="string"&&(a.crossOrigin=r),()=>{a.removeEventListener("load",c),a.removeEventListener("error",p)}},[a,r,t]),s}var Wi=kn,Ui=Dn,Hi=jn;function Fn(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Fn(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function $n(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Fn(e))&&(n&&(n+=" "),n+=t);return n}const dr="-",Ki=e=>{const t=Xi(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:s=>{const i=s.split(dr);return i[0]===""&&i.length!==1&&i.shift(),zn(i,t)||Yi(s)},getConflictingClassGroupIds:(s,i)=>{const l=r[s]||[];return i&&n[s]?[...l,...n[s]]:l}}},zn=(e,t)=>{if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?zn(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(dr);return t.validators.find(({validator:s})=>s(a))?.classGroupId},Vn=/^\[(.+)\]$/,Yi=e=>{if(Vn.test(e)){const t=Vn.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Xi=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const o in r)fr(r[o],n,o,t);return n},fr=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:Bn(t,o);a.classGroupId=r;return}if(typeof o=="function"){if(qi(o)){fr(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([a,s])=>{fr(s,Bn(t,a),r,n)})})},Bn=(e,t)=>{let r=e;return t.split(dr).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},qi=e=>e.isThemeGetter,Zi=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(a,s)=>{r.set(a,s),t++,t>e&&(t=0,n=r,r=new Map)};return{get(a){let s=r.get(a);if(s!==void 0)return s;if((s=n.get(a))!==void 0)return o(a,s),s},set(a,s){r.has(a)?r.set(a,s):o(a,s)}}},pr="!",mr=":",Ji=mr.length,Qi=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const a=[];let s=0,i=0,l=0,c;for(let v=0;v<o.length;v++){let h=o[v];if(s===0&&i===0){if(h===mr){a.push(o.slice(l,v)),l=v+Ji;continue}if(h==="/"){c=v;continue}}h==="["?s++:h==="]"?s--:h==="("?i++:h===")"&&i--}const p=a.length===0?o:o.substring(l),u=ec(p),f=u!==p,g=c&&c>l?c-l:void 0;return{modifiers:a,hasImportantModifier:f,baseClassName:u,maybePostfixModifierPosition:g}};if(t){const o=t+mr,a=n;n=s=>s.startsWith(o)?a(s.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:s,maybePostfixModifierPosition:void 0}}if(r){const o=n;n=a=>r({className:a,parseClassName:o})}return n},ec=e=>e.endsWith(pr)?e.substring(0,e.length-1):e.startsWith(pr)?e.substring(1):e,tc=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const o=[];let a=[];return n.forEach(s=>{s[0]==="["||t[s]?(o.push(...a.sort(),s),a=[]):a.push(s)}),o.push(...a.sort()),o}},rc=e=>({cache:Zi(e.cacheSize),parseClassName:Qi(e),sortModifiers:tc(e),...Ki(e)}),nc=/\s+/,oc=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:a}=t,s=[],i=e.trim().split(nc);let l="";for(let c=i.length-1;c>=0;c-=1){const p=i[c],{isExternal:u,modifiers:f,hasImportantModifier:g,baseClassName:v,maybePostfixModifierPosition:h}=r(p);if(u){l=p+(l.length>0?" "+l:l);continue}let b=!!h,y=n(b?v.substring(0,h):v);if(!y){if(!b){l=p+(l.length>0?" "+l:l);continue}if(y=n(v),!y){l=p+(l.length>0?" "+l:l);continue}b=!1}const x=a(f).join(":"),C=g?x+pr:x,w=C+y;if(s.includes(w))continue;s.push(w);const E=o(y,b);for(let P=0;P<E.length;++P){const A=E[P];s.push(C+A)}l=p+(l.length>0?" "+l:l)}return l};function ac(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Gn(t))&&(n&&(n+=" "),n+=r);return n}const Gn=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Gn(e[n]))&&(r&&(r+=" "),r+=t);return r};function sc(e,...t){let r,n,o,a=s;function s(l){const c=t.reduce((p,u)=>u(p),e());return r=rc(c),n=r.cache.get,o=r.cache.set,a=i,i(l)}function i(l){const c=n(l);if(c)return c;const p=oc(l,r);return o(l,p),p}return function(){return a(ac.apply(null,arguments))}}const te=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Wn=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Un=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ic=/^\d+\/\d+$/,cc=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,lc=/\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$/,uc=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,dc=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,fc=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ve=e=>ic.test(e),z=e=>!!e&&!Number.isNaN(Number(e)),Me=e=>!!e&&Number.isInteger(Number(e)),gr=e=>e.endsWith("%")&&z(e.slice(0,-1)),Re=e=>cc.test(e),pc=()=>!0,mc=e=>lc.test(e)&&!uc.test(e),Hn=()=>!1,gc=e=>dc.test(e),hc=e=>fc.test(e),vc=e=>!T(e)&&!k(e),bc=e=>Be(e,Zn,Hn),T=e=>Wn.test(e),De=e=>Be(e,Jn,mc),hr=e=>Be(e,Cc,z),Kn=e=>Be(e,Xn,Hn),yc=e=>Be(e,qn,hc),Et=e=>Be(e,Qn,gc),k=e=>Un.test(e),at=e=>Ge(e,Jn),xc=e=>Ge(e,Ec),Yn=e=>Ge(e,Xn),wc=e=>Ge(e,Zn),Sc=e=>Ge(e,qn),_t=e=>Ge(e,Qn,!0),Be=(e,t,r)=>{const n=Wn.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},Ge=(e,t,r=!1)=>{const n=Un.exec(e);return n?n[1]?t(n[1]):r:!1},Xn=e=>e==="position"||e==="percentage",qn=e=>e==="image"||e==="url",Zn=e=>e==="length"||e==="size"||e==="bg-size",Jn=e=>e==="length",Cc=e=>e==="number",Ec=e=>e==="family-name",Qn=e=>e==="shadow",_c=sc(()=>{const e=te("color"),t=te("font"),r=te("text"),n=te("font-weight"),o=te("tracking"),a=te("leading"),s=te("breakpoint"),i=te("container"),l=te("spacing"),c=te("radius"),p=te("shadow"),u=te("inset-shadow"),f=te("text-shadow"),g=te("drop-shadow"),v=te("blur"),h=te("perspective"),b=te("aspect"),y=te("ease"),x=te("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],E=()=>[...w(),k,T],P=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto","contain","none"],R=()=>[k,T,l],L=()=>[Ve,"full","auto",...R()],B=()=>[Me,"none","subgrid",k,T],U=()=>["auto",{span:["full",Me,k,T]},Me,k,T],H=()=>[Me,"auto",k,T],X=()=>["auto","min","max","fr",k,T],W=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Z=()=>["start","end","center","stretch","center-safe","end-safe"],F=()=>["auto",...R()],K=()=>[Ve,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...R()],_=()=>[e,k,T],N=()=>[...w(),Yn,Kn,{position:[k,T]}],S=()=>["no-repeat",{repeat:["","x","y","space","round"]}],I=()=>["auto","cover","contain",wc,bc,{size:[k,T]}],G=()=>[gr,at,De],V=()=>["","none","full",c,k,T],q=()=>["",z,at,De],ee=()=>["solid","dashed","dotted","double"],se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],$=()=>[z,gr,Yn,Kn],J=()=>["","none",v,k,T],le=()=>["none",z,k,T],Ce=()=>["none",z,k,T],$e=()=>[z,k,T],tt=()=>[Ve,"full",...R()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Re],breakpoint:[Re],color:[pc],container:[Re],"drop-shadow":[Re],ease:["in","out","in-out"],font:[vc],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Re],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Re],shadow:[Re],spacing:["px",z],text:[Re],"text-shadow":[Re],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ve,T,k,b]}],container:["container"],columns:[{columns:[z,T,k,i]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:E()}],overflow:[{overflow:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:L()}],"inset-x":[{"inset-x":L()}],"inset-y":[{"inset-y":L()}],start:[{start:L()}],end:[{end:L()}],top:[{top:L()}],right:[{right:L()}],bottom:[{bottom:L()}],left:[{left:L()}],visibility:["visible","invisible","collapse"],z:[{z:[Me,"auto",k,T]}],basis:[{basis:[Ve,"full","auto",i,...R()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[z,Ve,"auto","initial","none",T]}],grow:[{grow:["",z,k,T]}],shrink:[{shrink:["",z,k,T]}],order:[{order:[Me,"first","last","none",k,T]}],"grid-cols":[{"grid-cols":B()}],"col-start-end":[{col:U()}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":B()}],"row-start-end":[{row:U()}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":X()}],"auto-rows":[{"auto-rows":X()}],gap:[{gap:R()}],"gap-x":[{"gap-x":R()}],"gap-y":[{"gap-y":R()}],"justify-content":[{justify:[...W(),"normal"]}],"justify-items":[{"justify-items":[...Z(),"normal"]}],"justify-self":[{"justify-self":["auto",...Z()]}],"align-content":[{content:["normal",...W()]}],"align-items":[{items:[...Z(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Z(),{baseline:["","last"]}]}],"place-content":[{"place-content":W()}],"place-items":[{"place-items":[...Z(),"baseline"]}],"place-self":[{"place-self":["auto",...Z()]}],p:[{p:R()}],px:[{px:R()}],py:[{py:R()}],ps:[{ps:R()}],pe:[{pe:R()}],pt:[{pt:R()}],pr:[{pr:R()}],pb:[{pb:R()}],pl:[{pl:R()}],m:[{m:F()}],mx:[{mx:F()}],my:[{my:F()}],ms:[{ms:F()}],me:[{me:F()}],mt:[{mt:F()}],mr:[{mr:F()}],mb:[{mb:F()}],ml:[{ml:F()}],"space-x":[{"space-x":R()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":R()}],"space-y-reverse":["space-y-reverse"],size:[{size:K()}],w:[{w:[i,"screen",...K()]}],"min-w":[{"min-w":[i,"screen","none",...K()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[s]},...K()]}],h:[{h:["screen","lh",...K()]}],"min-h":[{"min-h":["screen","lh","none",...K()]}],"max-h":[{"max-h":["screen","lh",...K()]}],"font-size":[{text:["base",r,at,De]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,k,hr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",gr,T]}],"font-family":[{font:[xc,T,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,k,T]}],"line-clamp":[{"line-clamp":[z,"none",k,hr]}],leading:[{leading:[a,...R()]}],"list-image":[{"list-image":["none",k,T]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",k,T]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:_()}],"text-color":[{text:_()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ee(),"wavy"]}],"text-decoration-thickness":[{decoration:[z,"from-font","auto",k,De]}],"text-decoration-color":[{decoration:_()}],"underline-offset":[{"underline-offset":[z,"auto",k,T]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",k,T]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",k,T]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:N()}],"bg-repeat":[{bg:S()}],"bg-size":[{bg:I()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Me,k,T],radial:["",k,T],conic:[Me,k,T]},Sc,yc]}],"bg-color":[{bg:_()}],"gradient-from-pos":[{from:G()}],"gradient-via-pos":[{via:G()}],"gradient-to-pos":[{to:G()}],"gradient-from":[{from:_()}],"gradient-via":[{via:_()}],"gradient-to":[{to:_()}],rounded:[{rounded:V()}],"rounded-s":[{"rounded-s":V()}],"rounded-e":[{"rounded-e":V()}],"rounded-t":[{"rounded-t":V()}],"rounded-r":[{"rounded-r":V()}],"rounded-b":[{"rounded-b":V()}],"rounded-l":[{"rounded-l":V()}],"rounded-ss":[{"rounded-ss":V()}],"rounded-se":[{"rounded-se":V()}],"rounded-ee":[{"rounded-ee":V()}],"rounded-es":[{"rounded-es":V()}],"rounded-tl":[{"rounded-tl":V()}],"rounded-tr":[{"rounded-tr":V()}],"rounded-br":[{"rounded-br":V()}],"rounded-bl":[{"rounded-bl":V()}],"border-w":[{border:q()}],"border-w-x":[{"border-x":q()}],"border-w-y":[{"border-y":q()}],"border-w-s":[{"border-s":q()}],"border-w-e":[{"border-e":q()}],"border-w-t":[{"border-t":q()}],"border-w-r":[{"border-r":q()}],"border-w-b":[{"border-b":q()}],"border-w-l":[{"border-l":q()}],"divide-x":[{"divide-x":q()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":q()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ee(),"hidden","none"]}],"divide-style":[{divide:[...ee(),"hidden","none"]}],"border-color":[{border:_()}],"border-color-x":[{"border-x":_()}],"border-color-y":[{"border-y":_()}],"border-color-s":[{"border-s":_()}],"border-color-e":[{"border-e":_()}],"border-color-t":[{"border-t":_()}],"border-color-r":[{"border-r":_()}],"border-color-b":[{"border-b":_()}],"border-color-l":[{"border-l":_()}],"divide-color":[{divide:_()}],"outline-style":[{outline:[...ee(),"none","hidden"]}],"outline-offset":[{"outline-offset":[z,k,T]}],"outline-w":[{outline:["",z,at,De]}],"outline-color":[{outline:_()}],shadow:[{shadow:["","none",p,_t,Et]}],"shadow-color":[{shadow:_()}],"inset-shadow":[{"inset-shadow":["none",u,_t,Et]}],"inset-shadow-color":[{"inset-shadow":_()}],"ring-w":[{ring:q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:_()}],"ring-offset-w":[{"ring-offset":[z,De]}],"ring-offset-color":[{"ring-offset":_()}],"inset-ring-w":[{"inset-ring":q()}],"inset-ring-color":[{"inset-ring":_()}],"text-shadow":[{"text-shadow":["none",f,_t,Et]}],"text-shadow-color":[{"text-shadow":_()}],opacity:[{opacity:[z,k,T]}],"mix-blend":[{"mix-blend":[...se(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":se()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[z]}],"mask-image-linear-from-pos":[{"mask-linear-from":$()}],"mask-image-linear-to-pos":[{"mask-linear-to":$()}],"mask-image-linear-from-color":[{"mask-linear-from":_()}],"mask-image-linear-to-color":[{"mask-linear-to":_()}],"mask-image-t-from-pos":[{"mask-t-from":$()}],"mask-image-t-to-pos":[{"mask-t-to":$()}],"mask-image-t-from-color":[{"mask-t-from":_()}],"mask-image-t-to-color":[{"mask-t-to":_()}],"mask-image-r-from-pos":[{"mask-r-from":$()}],"mask-image-r-to-pos":[{"mask-r-to":$()}],"mask-image-r-from-color":[{"mask-r-from":_()}],"mask-image-r-to-color":[{"mask-r-to":_()}],"mask-image-b-from-pos":[{"mask-b-from":$()}],"mask-image-b-to-pos":[{"mask-b-to":$()}],"mask-image-b-from-color":[{"mask-b-from":_()}],"mask-image-b-to-color":[{"mask-b-to":_()}],"mask-image-l-from-pos":[{"mask-l-from":$()}],"mask-image-l-to-pos":[{"mask-l-to":$()}],"mask-image-l-from-color":[{"mask-l-from":_()}],"mask-image-l-to-color":[{"mask-l-to":_()}],"mask-image-x-from-pos":[{"mask-x-from":$()}],"mask-image-x-to-pos":[{"mask-x-to":$()}],"mask-image-x-from-color":[{"mask-x-from":_()}],"mask-image-x-to-color":[{"mask-x-to":_()}],"mask-image-y-from-pos":[{"mask-y-from":$()}],"mask-image-y-to-pos":[{"mask-y-to":$()}],"mask-image-y-from-color":[{"mask-y-from":_()}],"mask-image-y-to-color":[{"mask-y-to":_()}],"mask-image-radial":[{"mask-radial":[k,T]}],"mask-image-radial-from-pos":[{"mask-radial-from":$()}],"mask-image-radial-to-pos":[{"mask-radial-to":$()}],"mask-image-radial-from-color":[{"mask-radial-from":_()}],"mask-image-radial-to-color":[{"mask-radial-to":_()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":w()}],"mask-image-conic-pos":[{"mask-conic":[z]}],"mask-image-conic-from-pos":[{"mask-conic-from":$()}],"mask-image-conic-to-pos":[{"mask-conic-to":$()}],"mask-image-conic-from-color":[{"mask-conic-from":_()}],"mask-image-conic-to-color":[{"mask-conic-to":_()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:N()}],"mask-repeat":[{mask:S()}],"mask-size":[{mask:I()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",k,T]}],filter:[{filter:["","none",k,T]}],blur:[{blur:J()}],brightness:[{brightness:[z,k,T]}],contrast:[{contrast:[z,k,T]}],"drop-shadow":[{"drop-shadow":["","none",g,_t,Et]}],"drop-shadow-color":[{"drop-shadow":_()}],grayscale:[{grayscale:["",z,k,T]}],"hue-rotate":[{"hue-rotate":[z,k,T]}],invert:[{invert:["",z,k,T]}],saturate:[{saturate:[z,k,T]}],sepia:[{sepia:["",z,k,T]}],"backdrop-filter":[{"backdrop-filter":["","none",k,T]}],"backdrop-blur":[{"backdrop-blur":J()}],"backdrop-brightness":[{"backdrop-brightness":[z,k,T]}],"backdrop-contrast":[{"backdrop-contrast":[z,k,T]}],"backdrop-grayscale":[{"backdrop-grayscale":["",z,k,T]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[z,k,T]}],"backdrop-invert":[{"backdrop-invert":["",z,k,T]}],"backdrop-opacity":[{"backdrop-opacity":[z,k,T]}],"backdrop-saturate":[{"backdrop-saturate":[z,k,T]}],"backdrop-sepia":[{"backdrop-sepia":["",z,k,T]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":R()}],"border-spacing-x":[{"border-spacing-x":R()}],"border-spacing-y":[{"border-spacing-y":R()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",k,T]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[z,"initial",k,T]}],ease:[{ease:["linear","initial",y,k,T]}],delay:[{delay:[z,k,T]}],animate:[{animate:["none",x,k,T]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,k,T]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:le()}],"rotate-x":[{"rotate-x":le()}],"rotate-y":[{"rotate-y":le()}],"rotate-z":[{"rotate-z":le()}],scale:[{scale:Ce()}],"scale-x":[{"scale-x":Ce()}],"scale-y":[{"scale-y":Ce()}],"scale-z":[{"scale-z":Ce()}],"scale-3d":["scale-3d"],skew:[{skew:$e()}],"skew-x":[{"skew-x":$e()}],"skew-y":[{"skew-y":$e()}],transform:[{transform:[k,T,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:tt()}],"translate-x":[{"translate-x":tt()}],"translate-y":[{"translate-y":tt()}],"translate-z":[{"translate-z":tt()}],"translate-none":["translate-none"],accent:[{accent:_()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:_()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",k,T]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",k,T]}],fill:[{fill:["none",..._()]}],"stroke-w":[{stroke:[z,at,De,hr]}],stroke:[{stroke:["none",..._()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},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"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-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"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function M(...e){return _c($n(e))}function Rc({className:e,...t}){return m.jsx(Wi,{"data-slot":"avatar",className:M("relative flex size-8 shrink-0 overflow-hidden rounded-full",e),...t})}function Oc({className:e,...t}){return m.jsx(Ui,{"data-slot":"avatar-image",className:M("aspect-square size-full",e),...t})}function Ac({className:e,...t}){return m.jsx(Hi,{"data-slot":"avatar-fallback",className:M("bg-muted flex size-full items-center justify-center rounded-full",e),...t})}const eo=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,to=$n,vr=(e,t)=>r=>{var n;if(t?.variants==null)return to(e,r?.class,r?.className);const{variants:o,defaultVariants:a}=t,s=Object.keys(o).map(c=>{const p=r?.[c],u=a?.[c];if(p===null)return null;const f=eo(p)||eo(u);return o[c][f]}),i=r&&Object.entries(r).reduce((c,p)=>{let[u,f]=p;return f===void 0||(c[u]=f),c},{}),l=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((c,p)=>{let{class:u,className:f,...g}=p;return Object.entries(g).every(v=>{let[h,b]=v;return Array.isArray(b)?b.includes({...a,...i}[h]):{...a,...i}[h]===b})?[...c,u,f]:c},[]);return to(e,s,l,r?.class,r?.className)},ro=vr("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function Mc({className:e,variant:t,asChild:r=!1,...n}){const o=r?_e:"span";return m.jsx(o,{"data-slot":"badge",className:M(ro({variant:t}),e),...n})}const Pc=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Tc=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),no=e=>{const t=Tc(e);return t.charAt(0).toUpperCase()+t.slice(1)},oo=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),kc=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var Nc={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Dc=D.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:s,...i},l)=>D.createElement("svg",{ref:l,...Nc,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:oo("lucide",o),...!a&&!kc(i)&&{"aria-hidden":"true"},...i},[...s.map(([c,p])=>D.createElement(c,p)),...Array.isArray(a)?a:[a]]));const We=(e,t)=>{const r=D.forwardRef(({className:n,...o},a)=>D.createElement(Dc,{ref:a,iconNode:t,className:oo(`lucide-${Pc(no(e))}`,`lucide-${e}`,n),...o}));return r.displayName=no(e),r};const Ic=We("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);const ao=We("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);const jc=We("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);const Lc=We("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);const Fc=We("panel-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);const $c=We("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function zc({...e}){return m.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",...e})}function Vc({className:e,...t}){return m.jsx("ol",{"data-slot":"breadcrumb-list",className:M("text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5",e),...t})}function Bc({className:e,...t}){return m.jsx("li",{"data-slot":"breadcrumb-item",className:M("inline-flex items-center gap-1.5",e),...t})}function Gc({asChild:e,className:t,...r}){const n=e?_e:"a";return m.jsx(n,{"data-slot":"breadcrumb-link",className:M("hover:text-foreground transition-colors",t),...r})}function Wc({className:e,...t}){return m.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:M("text-foreground font-normal",e),...t})}function Uc({children:e,className:t,...r}){return m.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:M("[&>svg]:size-3.5",t),...r,children:e??m.jsx(ao,{})})}function Hc({className:e,...t}){return m.jsxs("span",{"data-slot":"breadcrumb-ellipsis",role:"presentation","aria-hidden":"true",className:M("flex size-9 items-center justify-center",e),...t,children:[m.jsx(Lc,{className:"size-4"}),m.jsx("span",{className:"sr-only",children:"More"})]})}const so=vr("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function io({className:e,variant:t="default",size:r="default",asChild:n=!1,...o}){const a=n?_e:"button";return m.jsx(a,{"data-slot":"button","data-variant":t,"data-size":r,className:M(so({variant:t,size:r,className:e})),...o})}function Kc({className:e,...t}){return m.jsx("div",{"data-slot":"card",className:M("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...t})}function Yc({className:e,...t}){return m.jsx("div",{"data-slot":"card-header",className:M("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})}function Xc({className:e,...t}){return m.jsx("div",{"data-slot":"card-title",className:M("leading-none font-semibold",e),...t})}function qc({className:e,...t}){return m.jsx("div",{"data-slot":"card-description",className:M("text-muted-foreground text-sm",e),...t})}function Zc({className:e,...t}){return m.jsx("div",{"data-slot":"card-action",className:M("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...t})}function Jc({className:e,...t}){return m.jsx("div",{"data-slot":"card-content",className:M("px-6",e),...t})}function Qc({className:e,...t}){return m.jsx("div",{"data-slot":"card-footer",className:M("flex items-center px-6 [.border-t]:pt-6",e),...t})}function j(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e?.(o),r===!1||!o.defaultPrevented)return t?.(o)}}var el=d[" useInsertionEffect ".trim().toString()]||ue;function Ue({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,s]=tl({defaultProp:t,onChange:r}),i=e!==void 0,l=i?e:o;{const p=d.useRef(e!==void 0);d.useEffect(()=>{const u=p.current;u!==i&&console.warn(`${n} is changing from ${u?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),p.current=i},[i,n])}const c=d.useCallback(p=>{if(i){const u=rl(p)?p(e):p;u!==e&&s.current?.(u)}else a(p)},[i,e,a,s]);return[l,c]}function tl({defaultProp:e,onChange:t}){const[r,n]=d.useState(e),o=d.useRef(r),a=d.useRef(t);return el(()=>{a.current=t},[t]),d.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}function rl(e){return typeof e=="function"}function nl(e,t){return d.useReducer((r,n)=>t[r][n]??r,e)}var pe=e=>{const{present:t,children:r}=e,n=ol(t),o=typeof r=="function"?r({present:n.isPresent}):d.Children.only(r),a=Q(n.ref,al(o));return typeof r=="function"||n.isPresent?d.cloneElement(o,{ref:a}):null};pe.displayName="Presence";function ol(e){const[t,r]=d.useState(),n=d.useRef(null),o=d.useRef(e),a=d.useRef("none"),s=e?"mounted":"unmounted",[i,l]=nl(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return d.useEffect(()=>{const c=Rt(n.current);a.current=i==="mounted"?c:"none"},[i]),ue(()=>{const c=n.current,p=o.current;if(p!==e){const f=a.current,g=Rt(c);e?l("MOUNT"):g==="none"||c?.display==="none"?l("UNMOUNT"):l(p&&f!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),ue(()=>{if(t){let c;const p=t.ownerDocument.defaultView??window,u=g=>{const h=Rt(n.current).includes(CSS.escape(g.animationName));if(g.target===t&&h&&(l("ANIMATION_END"),!o.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",c=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},f=g=>{g.target===t&&(a.current=Rt(n.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{p.clearTimeout(c),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:d.useCallback(c=>{n.current=c?getComputedStyle(c):null,r(c)},[])}}function Rt(e){return e?.animationName||"none"}function al(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var sl=d[" useId ".trim().toString()]||(()=>{}),il=0;function ve(e){const[t,r]=d.useState(sl());return ue(()=>{r(n=>n??String(il++))},[e]),e||(t?`radix-${t}`:"")}var Ot="Collapsible",[cl,rh]=Ee(Ot),[ll,br]=cl(Ot),co=d.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:n,defaultOpen:o,disabled:a,onOpenChange:s,...i}=e,[l,c]=Ue({prop:n,defaultProp:o??!1,onChange:s,caller:Ot});return m.jsx(ll,{scope:r,disabled:a,contentId:ve(),open:l,onOpenToggle:d.useCallback(()=>c(p=>!p),[c]),children:m.jsx(Y.div,{"data-state":xr(l),"data-disabled":a?"":void 0,...i,ref:t})})});co.displayName=Ot;var lo="CollapsibleTrigger",uo=d.forwardRef((e,t)=>{const{__scopeCollapsible:r,...n}=e,o=br(lo,r);return m.jsx(Y.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":xr(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...n,ref:t,onClick:j(e.onClick,o.onOpenToggle)})});uo.displayName=lo;var yr="CollapsibleContent",fo=d.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=br(yr,e.__scopeCollapsible);return m.jsx(pe,{present:r||o.open,children:({present:a})=>m.jsx(ul,{...n,ref:t,present:a})})});fo.displayName=yr;var ul=d.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:n,children:o,...a}=e,s=br(yr,r),[i,l]=d.useState(n),c=d.useRef(null),p=Q(t,c),u=d.useRef(0),f=u.current,g=d.useRef(0),v=g.current,h=s.open||i,b=d.useRef(h),y=d.useRef(void 0);return d.useEffect(()=>{const x=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(x)},[]),ue(()=>{const x=c.current;if(x){y.current=y.current||{transitionDuration:x.style.transitionDuration,animationName:x.style.animationName},x.style.transitionDuration="0s",x.style.animationName="none";const C=x.getBoundingClientRect();u.current=C.height,g.current=C.width,b.current||(x.style.transitionDuration=y.current.transitionDuration,x.style.animationName=y.current.animationName),l(n)}},[s.open,n]),m.jsx(Y.div,{"data-state":xr(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!h,...a,ref:p,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":v?`${v}px`:void 0,...e.style},children:h&&o})});function xr(e){return e?"open":"closed"}var dl=co;function fl({...e}){return m.jsx(dl,{"data-slot":"collapsible",...e})}function pl({...e}){return m.jsx(uo,{"data-slot":"collapsible-trigger",...e})}function ml({...e}){return m.jsx(fo,{"data-slot":"collapsible-content",...e})}function po(e){const t=e+"CollectionProvider",[r,n]=Ee(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=h=>{const{scope:b,children:y}=h,x=D.useRef(null),C=D.useRef(new Map).current;return m.jsx(o,{scope:b,itemMap:C,collectionRef:x,children:y})};s.displayName=t;const i=e+"CollectionSlot",l=ze(i),c=D.forwardRef((h,b)=>{const{scope:y,children:x}=h,C=a(i,y),w=Q(b,C.collectionRef);return m.jsx(l,{ref:w,children:x})});c.displayName=i;const p=e+"CollectionItemSlot",u="data-radix-collection-item",f=ze(p),g=D.forwardRef((h,b)=>{const{scope:y,children:x,...C}=h,w=D.useRef(null),E=Q(b,w),P=a(p,y);return D.useEffect(()=>(P.itemMap.set(w,{ref:w,...C}),()=>void P.itemMap.delete(w))),m.jsx(f,{[u]:"",ref:E,children:x})});g.displayName=p;function v(h){const b=a(e+"CollectionConsumer",h);return D.useCallback(()=>{const x=b.collectionRef.current;if(!x)return[];const C=Array.from(x.querySelectorAll(`[${u}]`));return Array.from(b.itemMap.values()).sort((P,A)=>C.indexOf(P.ref.current)-C.indexOf(A.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:s,Slot:c,ItemSlot:g},v,n]}var gl=d.createContext(void 0);function mo(e){const t=d.useContext(gl);return e||t||"ltr"}function hl(e,t=globalThis?.document){const r=fe(e);d.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var vl="DismissableLayer",wr="dismissableLayer.update",bl="dismissableLayer.pointerDownOutside",yl="dismissableLayer.focusOutside",go,ho=d.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),At=d.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:i,...l}=e,c=d.useContext(ho),[p,u]=d.useState(null),f=p?.ownerDocument??globalThis?.document,[,g]=d.useState({}),v=Q(t,A=>u(A)),h=Array.from(c.layers),[b]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=h.indexOf(b),x=p?h.indexOf(p):-1,C=c.layersWithOutsidePointerEventsDisabled.size>0,w=x>=y,E=Sl(A=>{const R=A.target,L=[...c.branches].some(B=>B.contains(R));!w||L||(o?.(A),s?.(A),A.defaultPrevented||i?.())},f),P=Cl(A=>{const R=A.target;[...c.branches].some(B=>B.contains(R))||(a?.(A),s?.(A),A.defaultPrevented||i?.())},f);return hl(A=>{x===c.layers.size-1&&(n?.(A),!A.defaultPrevented&&i&&(A.preventDefault(),i()))},f),d.useEffect(()=>{if(p)return r&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(go=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(p)),c.layers.add(p),vo(),()=>{r&&c.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=go)}},[p,f,r,c]),d.useEffect(()=>()=>{p&&(c.layers.delete(p),c.layersWithOutsidePointerEventsDisabled.delete(p),vo())},[p,c]),d.useEffect(()=>{const A=()=>g({});return document.addEventListener(wr,A),()=>document.removeEventListener(wr,A)},[]),m.jsx(Y.div,{...l,ref:v,style:{pointerEvents:C?w?"auto":"none":void 0,...e.style},onFocusCapture:j(e.onFocusCapture,P.onFocusCapture),onBlurCapture:j(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:j(e.onPointerDownCapture,E.onPointerDownCapture)})});At.displayName=vl;var xl="DismissableLayerBranch",wl=d.forwardRef((e,t)=>{const r=d.useContext(ho),n=d.useRef(null),o=Q(t,n);return d.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),m.jsx(Y.div,{...e,ref:o})});wl.displayName=xl;function Sl(e,t=globalThis?.document){const r=fe(e),n=d.useRef(!1),o=d.useRef(()=>{});return d.useEffect(()=>{const a=i=>{if(i.target&&!n.current){let l=function(){bo(bl,r,c,{discrete:!0})};const c={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);n.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function Cl(e,t=globalThis?.document){const r=fe(e),n=d.useRef(!1);return d.useEffect(()=>{const o=a=>{a.target&&!n.current&&bo(yl,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function vo(){const e=new CustomEvent(wr);document.dispatchEvent(e)}function bo(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?On(o,a):o.dispatchEvent(a)}var Sr=0;function yo(){d.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??xo()),document.body.insertAdjacentElement("beforeend",e[1]??xo()),Sr++,()=>{Sr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Sr--}},[])}function xo(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Cr="focusScope.autoFocusOnMount",Er="focusScope.autoFocusOnUnmount",wo={bubbles:!1,cancelable:!0},El="FocusScope",_r=d.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[i,l]=d.useState(null),c=fe(o),p=fe(a),u=d.useRef(null),f=Q(t,h=>l(h)),g=d.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;d.useEffect(()=>{if(n){let h=function(C){if(g.paused||!i)return;const w=C.target;i.contains(w)?u.current=w:Pe(u.current,{select:!0})},b=function(C){if(g.paused||!i)return;const w=C.relatedTarget;w!==null&&(i.contains(w)||Pe(u.current,{select:!0}))},y=function(C){if(document.activeElement===document.body)for(const E of C)E.removedNodes.length>0&&Pe(i)};document.addEventListener("focusin",h),document.addEventListener("focusout",b);const x=new MutationObserver(y);return i&&x.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",b),x.disconnect()}}},[n,i,g.paused]),d.useEffect(()=>{if(i){Eo.add(g);const h=document.activeElement;if(!i.contains(h)){const y=new CustomEvent(Cr,wo);i.addEventListener(Cr,c),i.dispatchEvent(y),y.defaultPrevented||(_l(Pl(So(i)),{select:!0}),document.activeElement===h&&Pe(i))}return()=>{i.removeEventListener(Cr,c),setTimeout(()=>{const y=new CustomEvent(Er,wo);i.addEventListener(Er,p),i.dispatchEvent(y),y.defaultPrevented||Pe(h??document.body,{select:!0}),i.removeEventListener(Er,p),Eo.remove(g)},0)}}},[i,c,p,g]);const v=d.useCallback(h=>{if(!r&&!n||g.paused)return;const b=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,y=document.activeElement;if(b&&y){const x=h.currentTarget,[C,w]=Rl(x);C&&w?!h.shiftKey&&y===w?(h.preventDefault(),r&&Pe(C,{select:!0})):h.shiftKey&&y===C&&(h.preventDefault(),r&&Pe(w,{select:!0})):y===x&&h.preventDefault()}},[r,n,g.paused]);return m.jsx(Y.div,{tabIndex:-1,...s,ref:f,onKeyDown:v})});_r.displayName=El;function _l(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Pe(n,{select:t}),document.activeElement!==r)return}function Rl(e){const t=So(e),r=Co(t,e),n=Co(t.reverse(),e);return[r,n]}function So(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Co(e,t){for(const r of e)if(!Ol(r,{upTo:t}))return r}function Ol(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Al(e){return e instanceof HTMLInputElement&&"select"in e}function Pe(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&Al(e)&&t&&e.select()}}var Eo=Ml();function Ml(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=_o(e,t),e.unshift(t)},remove(t){e=_o(e,t),e[0]?.resume()}}}function _o(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function Pl(e){return e.filter(t=>t.tagName!=="A")}const Tl=["top","right","bottom","left"],Te=Math.min,ie=Math.max,Mt=Math.round,Pt=Math.floor,be=e=>({x:e,y:e}),kl={left:"right",right:"left",bottom:"top",top:"bottom"},Nl={start:"end",end:"start"};function Rr(e,t,r){return ie(e,Te(t,r))}function Oe(e,t){return typeof e=="function"?e(t):e}function Ae(e){return e.split("-")[0]}function He(e){return e.split("-")[1]}function Or(e){return e==="x"?"y":"x"}function Ar(e){return e==="y"?"height":"width"}const Dl=new Set(["top","bottom"]);function ye(e){return Dl.has(Ae(e))?"y":"x"}function Mr(e){return Or(ye(e))}function Il(e,t,r){r===void 0&&(r=!1);const n=He(e),o=Mr(e),a=Ar(o);let s=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Tt(s)),[s,Tt(s)]}function jl(e){const t=Tt(e);return[Pr(e),t,Pr(t)]}function Pr(e){return e.replace(/start|end/g,t=>Nl[t])}const Ro=["left","right"],Oo=["right","left"],Ll=["top","bottom"],Fl=["bottom","top"];function $l(e,t,r){switch(e){case"top":case"bottom":return r?t?Oo:Ro:t?Ro:Oo;case"left":case"right":return t?Ll:Fl;default:return[]}}function zl(e,t,r,n){const o=He(e);let a=$l(Ae(e),r==="start",n);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(Pr)))),a}function Tt(e){return e.replace(/left|right|bottom|top/g,t=>kl[t])}function Vl(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ao(e){return typeof e!="number"?Vl(e):{top:e,right:e,bottom:e,left:e}}function kt(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function Mo(e,t,r){let{reference:n,floating:o}=e;const a=ye(t),s=Mr(t),i=Ar(s),l=Ae(t),c=a==="y",p=n.x+n.width/2-o.width/2,u=n.y+n.height/2-o.height/2,f=n[i]/2-o[i]/2;let g;switch(l){case"top":g={x:p,y:n.y-o.height};break;case"bottom":g={x:p,y:n.y+n.height};break;case"right":g={x:n.x+n.width,y:u};break;case"left":g={x:n.x-o.width,y:u};break;default:g={x:n.x,y:n.y}}switch(He(t)){case"start":g[s]-=f*(r&&c?-1:1);break;case"end":g[s]+=f*(r&&c?-1:1);break}return g}const Bl=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:s}=r,i=a.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:p,y:u}=Mo(c,n,l),f=n,g={},v=0;for(let h=0;h<i.length;h++){const{name:b,fn:y}=i[h],{x,y:C,data:w,reset:E}=await y({x:p,y:u,initialPlacement:n,placement:f,strategy:o,middlewareData:g,rects:c,platform:s,elements:{reference:e,floating:t}});p=x??p,u=C??u,g={...g,[b]:{...g[b],...w}},E&&v<=50&&(v++,typeof E=="object"&&(E.placement&&(f=E.placement),E.rects&&(c=E.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:p,y:u}=Mo(c,f,l)),h=-1)}return{x:p,y:u,placement:f,strategy:o,middlewareData:g}};async function st(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:a,rects:s,elements:i,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:p="viewport",elementContext:u="floating",altBoundary:f=!1,padding:g=0}=Oe(t,e),v=Ao(g),b=i[f?u==="floating"?"reference":"floating":u],y=kt(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(b)))==null||r?b:b.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(i.floating)),boundary:c,rootBoundary:p,strategy:l})),x=u==="floating"?{x:n,y:o,width:s.floating.width,height:s.floating.height}:s.reference,C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(i.floating)),w=await(a.isElement==null?void 0:a.isElement(C))?await(a.getScale==null?void 0:a.getScale(C))||{x:1,y:1}:{x:1,y:1},E=kt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:x,offsetParent:C,strategy:l}):x);return{top:(y.top-E.top+v.top)/w.y,bottom:(E.bottom-y.bottom+v.bottom)/w.y,left:(y.left-E.left+v.left)/w.x,right:(E.right-y.right+v.right)/w.x}}const Gl=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:a,platform:s,elements:i,middlewareData:l}=t,{element:c,padding:p=0}=Oe(e,t)||{};if(c==null)return{};const u=Ao(p),f={x:r,y:n},g=Mr(o),v=Ar(g),h=await s.getDimensions(c),b=g==="y",y=b?"top":"left",x=b?"bottom":"right",C=b?"clientHeight":"clientWidth",w=a.reference[v]+a.reference[g]-f[g]-a.floating[v],E=f[g]-a.reference[g],P=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let A=P?P[C]:0;(!A||!await(s.isElement==null?void 0:s.isElement(P)))&&(A=i.floating[C]||a.floating[v]);const R=w/2-E/2,L=A/2-h[v]/2-1,B=Te(u[y],L),U=Te(u[x],L),H=B,X=A-h[v]-U,W=A/2-h[v]/2+R,Z=Rr(H,W,X),F=!l.arrow&&He(o)!=null&&W!==Z&&a.reference[v]/2-(W<H?B:U)-h[v]/2<0,K=F?W<H?W-H:W-X:0;return{[g]:f[g]+K,data:{[g]:Z,centerOffset:W-Z-K,...F&&{alignmentOffset:K}},reset:F}}}),Wl=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:a,rects:s,initialPlacement:i,platform:l,elements:c}=t,{mainAxis:p=!0,crossAxis:u=!0,fallbackPlacements:f,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:h=!0,...b}=Oe(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const y=Ae(o),x=ye(i),C=Ae(i)===i,w=await(l.isRTL==null?void 0:l.isRTL(c.floating)),E=f||(C||!h?[Tt(i)]:jl(i)),P=v!=="none";!f&&P&&E.push(...zl(i,h,v,w));const A=[i,...E],R=await st(t,b),L=[];let B=((n=a.flip)==null?void 0:n.overflows)||[];if(p&&L.push(R[y]),u){const W=Il(o,s,w);L.push(R[W[0]],R[W[1]])}if(B=[...B,{placement:o,overflows:L}],!L.every(W=>W<=0)){var U,H;const W=(((U=a.flip)==null?void 0:U.index)||0)+1,Z=A[W];if(Z&&(!(u==="alignment"?x!==ye(Z):!1)||B.every(_=>ye(_.placement)===x?_.overflows[0]>0:!0)))return{data:{index:W,overflows:B},reset:{placement:Z}};let F=(H=B.filter(K=>K.overflows[0]<=0).sort((K,_)=>K.overflows[1]-_.overflows[1])[0])==null?void 0:H.placement;if(!F)switch(g){case"bestFit":{var X;const K=(X=B.filter(_=>{if(P){const N=ye(_.placement);return N===x||N==="y"}return!0}).map(_=>[_.placement,_.overflows.filter(N=>N>0).reduce((N,S)=>N+S,0)]).sort((_,N)=>_[1]-N[1])[0])==null?void 0:X[0];K&&(F=K);break}case"initialPlacement":F=i;break}if(o!==F)return{reset:{placement:F}}}return{}}}};function Po(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function To(e){return Tl.some(t=>e[t]>=0)}const Ul=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=Oe(e,t);switch(n){case"referenceHidden":{const a=await st(t,{...o,elementContext:"reference"}),s=Po(a,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:To(s)}}}case"escaped":{const a=await st(t,{...o,altBoundary:!0}),s=Po(a,r.floating);return{data:{escapedOffsets:s,escaped:To(s)}}}default:return{}}}}},ko=new Set(["left","top"]);async function Hl(e,t){const{placement:r,platform:n,elements:o}=e,a=await(n.isRTL==null?void 0:n.isRTL(o.floating)),s=Ae(r),i=He(r),l=ye(r)==="y",c=ko.has(s)?-1:1,p=a&&l?-1:1,u=Oe(t,e);let{mainAxis:f,crossAxis:g,alignmentAxis:v}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return i&&typeof v=="number"&&(g=i==="end"?v*-1:v),l?{x:g*p,y:f*c}:{x:f*c,y:g*p}}const Kl=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:a,placement:s,middlewareData:i}=t,l=await Hl(t,e);return s===((r=i.offset)==null?void 0:r.placement)&&(n=i.arrow)!=null&&n.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:s}}}}},Yl=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:i={fn:b=>{let{x:y,y:x}=b;return{x:y,y:x}}},...l}=Oe(e,t),c={x:r,y:n},p=await st(t,l),u=ye(Ae(o)),f=Or(u);let g=c[f],v=c[u];if(a){const b=f==="y"?"top":"left",y=f==="y"?"bottom":"right",x=g+p[b],C=g-p[y];g=Rr(x,g,C)}if(s){const b=u==="y"?"top":"left",y=u==="y"?"bottom":"right",x=v+p[b],C=v-p[y];v=Rr(x,v,C)}const h=i.fn({...t,[f]:g,[u]:v});return{...h,data:{x:h.x-r,y:h.y-n,enabled:{[f]:a,[u]:s}}}}}},Xl=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:a,middlewareData:s}=t,{offset:i=0,mainAxis:l=!0,crossAxis:c=!0}=Oe(e,t),p={x:r,y:n},u=ye(o),f=Or(u);let g=p[f],v=p[u];const h=Oe(i,t),b=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const C=f==="y"?"height":"width",w=a.reference[f]-a.floating[C]+b.mainAxis,E=a.reference[f]+a.reference[C]-b.mainAxis;g<w?g=w:g>E&&(g=E)}if(c){var y,x;const C=f==="y"?"width":"height",w=ko.has(Ae(o)),E=a.reference[u]-a.floating[C]+(w&&((y=s.offset)==null?void 0:y[u])||0)+(w?0:b.crossAxis),P=a.reference[u]+a.reference[C]+(w?0:((x=s.offset)==null?void 0:x[u])||0)-(w?b.crossAxis:0);v<E?v=E:v>P&&(v=P)}return{[f]:g,[u]:v}}}},ql=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:a,platform:s,elements:i}=t,{apply:l=()=>{},...c}=Oe(e,t),p=await st(t,c),u=Ae(o),f=He(o),g=ye(o)==="y",{width:v,height:h}=a.floating;let b,y;u==="top"||u==="bottom"?(b=u,y=f===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(y=u,b=f==="end"?"top":"bottom");const x=h-p.top-p.bottom,C=v-p.left-p.right,w=Te(h-p[b],x),E=Te(v-p[y],C),P=!t.middlewareData.shift;let A=w,R=E;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(R=C),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(A=x),P&&!f){const B=ie(p.left,0),U=ie(p.right,0),H=ie(p.top,0),X=ie(p.bottom,0);g?R=v-2*(B!==0||U!==0?B+U:ie(p.left,p.right)):A=h-2*(H!==0||X!==0?H+X:ie(p.top,p.bottom))}await l({...t,availableWidth:R,availableHeight:A});const L=await s.getDimensions(i.floating);return v!==L.width||h!==L.height?{reset:{rects:!0}}:{}}}};function Nt(){return typeof window<"u"}function Ke(e){return No(e)?(e.nodeName||"").toLowerCase():"#document"}function ce(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function xe(e){var t;return(t=(No(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function No(e){return Nt()?e instanceof Node||e instanceof ce(e).Node:!1}function me(e){return Nt()?e instanceof Element||e instanceof ce(e).Element:!1}function we(e){return Nt()?e instanceof HTMLElement||e instanceof ce(e).HTMLElement:!1}function Do(e){return!Nt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ce(e).ShadowRoot}const Zl=new Set(["inline","contents"]);function it(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=ge(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!Zl.has(o)}const Jl=new Set(["table","td","th"]);function Ql(e){return Jl.has(Ke(e))}const eu=[":popover-open",":modal"];function Dt(e){return eu.some(t=>{try{return e.matches(t)}catch{return!1}})}const tu=["transform","translate","scale","rotate","perspective"],ru=["transform","translate","scale","rotate","perspective","filter"],nu=["paint","layout","strict","content"];function Tr(e){const t=kr(),r=me(e)?ge(e):e;return tu.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||ru.some(n=>(r.willChange||"").includes(n))||nu.some(n=>(r.contain||"").includes(n))}function ou(e){let t=ke(e);for(;we(t)&&!Ye(t);){if(Tr(t))return t;if(Dt(t))return null;t=ke(t)}return null}function kr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const au=new Set(["html","body","#document"]);function Ye(e){return au.has(Ke(e))}function ge(e){return ce(e).getComputedStyle(e)}function It(e){return me(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ke(e){if(Ke(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Do(e)&&e.host||xe(e);return Do(t)?t.host:t}function Io(e){const t=ke(e);return Ye(t)?e.ownerDocument?e.ownerDocument.body:e.body:we(t)&&it(t)?t:Io(t)}function ct(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=Io(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),s=ce(o);if(a){const i=Nr(s);return t.concat(s,s.visualViewport||[],it(o)?o:[],i&&r?ct(i):[])}return t.concat(o,ct(o,[],r))}function Nr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function jo(e){const t=ge(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=we(e),a=o?e.offsetWidth:r,s=o?e.offsetHeight:n,i=Mt(r)!==a||Mt(n)!==s;return i&&(r=a,n=s),{width:r,height:n,$:i}}function Dr(e){return me(e)?e:e.contextElement}function Xe(e){const t=Dr(e);if(!we(t))return be(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:a}=jo(t);let s=(a?Mt(r.width):r.width)/n,i=(a?Mt(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}const su=be(0);function Lo(e){const t=ce(e);return!kr()||!t.visualViewport?su:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function iu(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==ce(e)?!1:t}function Ie(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),a=Dr(e);let s=be(1);t&&(n?me(n)&&(s=Xe(n)):s=Xe(e));const i=iu(a,r,n)?Lo(a):be(0);let l=(o.left+i.x)/s.x,c=(o.top+i.y)/s.y,p=o.width/s.x,u=o.height/s.y;if(a){const f=ce(a),g=n&&me(n)?ce(n):n;let v=f,h=Nr(v);for(;h&&n&&g!==v;){const b=Xe(h),y=h.getBoundingClientRect(),x=ge(h),C=y.left+(h.clientLeft+parseFloat(x.paddingLeft))*b.x,w=y.top+(h.clientTop+parseFloat(x.paddingTop))*b.y;l*=b.x,c*=b.y,p*=b.x,u*=b.y,l+=C,c+=w,v=ce(h),h=Nr(v)}}return kt({width:p,height:u,x:l,y:c})}function jt(e,t){const r=It(e).scrollLeft;return t?t.left+r:Ie(xe(e)).left+r}function Fo(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-jt(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function cu(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const a=o==="fixed",s=xe(n),i=t?Dt(t.floating):!1;if(n===s||i&&a)return r;let l={scrollLeft:0,scrollTop:0},c=be(1);const p=be(0),u=we(n);if((u||!u&&!a)&&((Ke(n)!=="body"||it(s))&&(l=It(n)),we(n))){const g=Ie(n);c=Xe(n),p.x=g.x+n.clientLeft,p.y=g.y+n.clientTop}const f=s&&!u&&!a?Fo(s,l):be(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+p.x+f.x,y:r.y*c.y-l.scrollTop*c.y+p.y+f.y}}function lu(e){return Array.from(e.getClientRects())}function uu(e){const t=xe(e),r=It(e),n=e.ownerDocument.body,o=ie(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=ie(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+jt(e);const i=-r.scrollTop;return ge(n).direction==="rtl"&&(s+=ie(t.clientWidth,n.clientWidth)-o),{width:o,height:a,x:s,y:i}}const $o=25;function du(e,t){const r=ce(e),n=xe(e),o=r.visualViewport;let a=n.clientWidth,s=n.clientHeight,i=0,l=0;if(o){a=o.width,s=o.height;const p=kr();(!p||p&&t==="fixed")&&(i=o.offsetLeft,l=o.offsetTop)}const c=jt(n);if(c<=0){const p=n.ownerDocument,u=p.body,f=getComputedStyle(u),g=p.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,v=Math.abs(n.clientWidth-u.clientWidth-g);v<=$o&&(a-=v)}else c<=$o&&(a+=c);return{width:a,height:s,x:i,y:l}}const fu=new Set(["absolute","fixed"]);function pu(e,t){const r=Ie(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,a=we(e)?Xe(e):be(1),s=e.clientWidth*a.x,i=e.clientHeight*a.y,l=o*a.x,c=n*a.y;return{width:s,height:i,x:l,y:c}}function zo(e,t,r){let n;if(t==="viewport")n=du(e,r);else if(t==="document")n=uu(xe(e));else if(me(t))n=pu(t,r);else{const o=Lo(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return kt(n)}function Vo(e,t){const r=ke(e);return r===t||!me(r)||Ye(r)?!1:ge(r).position==="fixed"||Vo(r,t)}function mu(e,t){const r=t.get(e);if(r)return r;let n=ct(e,[],!1).filter(i=>me(i)&&Ke(i)!=="body"),o=null;const a=ge(e).position==="fixed";let s=a?ke(e):e;for(;me(s)&&!Ye(s);){const i=ge(s),l=Tr(s);!l&&i.position==="fixed"&&(o=null),(a?!l&&!o:!l&&i.position==="static"&&!!o&&fu.has(o.position)||it(s)&&!l&&Vo(e,s))?n=n.filter(p=>p!==s):o=i,s=ke(s)}return t.set(e,n),n}function gu(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const s=[...r==="clippingAncestors"?Dt(t)?[]:mu(t,this._c):[].concat(r),n],i=s[0],l=s.reduce((c,p)=>{const u=zo(t,p,o);return c.top=ie(u.top,c.top),c.right=Te(u.right,c.right),c.bottom=Te(u.bottom,c.bottom),c.left=ie(u.left,c.left),c},zo(t,i,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function hu(e){const{width:t,height:r}=jo(e);return{width:t,height:r}}function vu(e,t,r){const n=we(t),o=xe(t),a=r==="fixed",s=Ie(e,!0,a,t);let i={scrollLeft:0,scrollTop:0};const l=be(0);function c(){l.x=jt(o)}if(n||!n&&!a)if((Ke(t)!=="body"||it(o))&&(i=It(t)),n){const g=Ie(t,!0,a,t);l.x=g.x+t.clientLeft,l.y=g.y+t.clientTop}else o&&c();a&&!n&&o&&c();const p=o&&!n&&!a?Fo(o,i):be(0),u=s.left+i.scrollLeft-l.x-p.x,f=s.top+i.scrollTop-l.y-p.y;return{x:u,y:f,width:s.width,height:s.height}}function Ir(e){return ge(e).position==="static"}function Bo(e,t){if(!we(e)||ge(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return xe(e)===r&&(r=r.ownerDocument.body),r}function Go(e,t){const r=ce(e);if(Dt(e))return r;if(!we(e)){let o=ke(e);for(;o&&!Ye(o);){if(me(o)&&!Ir(o))return o;o=ke(o)}return r}let n=Bo(e,t);for(;n&&Ql(n)&&Ir(n);)n=Bo(n,t);return n&&Ye(n)&&Ir(n)&&!Tr(n)?r:n||ou(e)||r}const bu=async function(e){const t=this.getOffsetParent||Go,r=this.getDimensions,n=await r(e.floating);return{reference:vu(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function yu(e){return ge(e).direction==="rtl"}const xu={convertOffsetParentRelativeRectToViewportRelativeRect:cu,getDocumentElement:xe,getClippingRect:gu,getOffsetParent:Go,getElementRects:bu,getClientRects:lu,getDimensions:hu,getScale:Xe,isElement:me,isRTL:yu};function Wo(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function wu(e,t){let r=null,n;const o=xe(e);function a(){var i;clearTimeout(n),(i=r)==null||i.disconnect(),r=null}function s(i,l){i===void 0&&(i=!1),l===void 0&&(l=1),a();const c=e.getBoundingClientRect(),{left:p,top:u,width:f,height:g}=c;if(i||t(),!f||!g)return;const v=Pt(u),h=Pt(o.clientWidth-(p+f)),b=Pt(o.clientHeight-(u+g)),y=Pt(p),C={rootMargin:-v+"px "+-h+"px "+-b+"px "+-y+"px",threshold:ie(0,Te(1,l))||1};let w=!0;function E(P){const A=P[0].intersectionRatio;if(A!==l){if(!w)return s();A?s(!1,A):n=setTimeout(()=>{s(!1,1e-7)},1e3)}A===1&&!Wo(c,e.getBoundingClientRect())&&s(),w=!1}try{r=new IntersectionObserver(E,{...C,root:o.ownerDocument})}catch{r=new IntersectionObserver(E,C)}r.observe(e)}return s(!0),a}function Su(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=Dr(e),p=o||a?[...c?ct(c):[],...ct(t)]:[];p.forEach(y=>{o&&y.addEventListener("scroll",r,{passive:!0}),a&&y.addEventListener("resize",r)});const u=c&&i?wu(c,r):null;let f=-1,g=null;s&&(g=new ResizeObserver(y=>{let[x]=y;x&&x.target===c&&g&&(g.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var C;(C=g)==null||C.observe(t)})),r()}),c&&!l&&g.observe(c),g.observe(t));let v,h=l?Ie(e):null;l&&b();function b(){const y=Ie(e);h&&!Wo(h,y)&&r(),h=y,v=requestAnimationFrame(b)}return r(),()=>{var y;p.forEach(x=>{o&&x.removeEventListener("scroll",r),a&&x.removeEventListener("resize",r)}),u?.(),(y=g)==null||y.disconnect(),g=null,l&&cancelAnimationFrame(v)}}const Cu=Kl,Eu=Yl,_u=Wl,Ru=ql,Ou=Ul,Uo=Gl,Au=Xl,Mu=(e,t,r)=>{const n=new Map,o={platform:xu,...r},a={...o.platform,_c:n};return Bl(e,t,{...o,platform:a})};var Pu=typeof document<"u",Tu=function(){},Lt=Pu?D.useLayoutEffect:Tu;function Ft(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!Ft(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const a=o[n];if(!(a==="_owner"&&e.$$typeof)&&!Ft(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function Ho(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ko(e,t){const r=Ho(e);return Math.round(t*r)/r}function jr(e){const t=d.useRef(e);return Lt(()=>{t.current=e}),t}function ku(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:a,floating:s}={},transform:i=!0,whileElementsMounted:l,open:c}=e,[p,u]=d.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[f,g]=d.useState(n);Ft(f,n)||g(n);const[v,h]=d.useState(null),[b,y]=d.useState(null),x=d.useCallback(_=>{_!==P.current&&(P.current=_,h(_))},[]),C=d.useCallback(_=>{_!==A.current&&(A.current=_,y(_))},[]),w=a||v,E=s||b,P=d.useRef(null),A=d.useRef(null),R=d.useRef(p),L=l!=null,B=jr(l),U=jr(o),H=jr(c),X=d.useCallback(()=>{if(!P.current||!A.current)return;const _={placement:t,strategy:r,middleware:f};U.current&&(_.platform=U.current),Mu(P.current,A.current,_).then(N=>{const S={...N,isPositioned:H.current!==!1};W.current&&!Ft(R.current,S)&&(R.current=S,ir.flushSync(()=>{u(S)}))})},[f,t,r,U,H]);Lt(()=>{c===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,u(_=>({..._,isPositioned:!1})))},[c]);const W=d.useRef(!1);Lt(()=>(W.current=!0,()=>{W.current=!1}),[]),Lt(()=>{if(w&&(P.current=w),E&&(A.current=E),w&&E){if(B.current)return B.current(w,E,X);X()}},[w,E,X,B,L]);const Z=d.useMemo(()=>({reference:P,floating:A,setReference:x,setFloating:C}),[x,C]),F=d.useMemo(()=>({reference:w,floating:E}),[w,E]),K=d.useMemo(()=>{const _={position:r,left:0,top:0};if(!F.floating)return _;const N=Ko(F.floating,p.x),S=Ko(F.floating,p.y);return i?{..._,transform:"translate("+N+"px, "+S+"px)",...Ho(F.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:N,top:S}},[r,i,F.floating,p.x,p.y]);return d.useMemo(()=>({...p,update:X,refs:Z,elements:F,floatingStyles:K}),[p,X,Z,F,K])}const Nu=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:o}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?Uo({element:n.current,padding:o}).fn(r):{}:n?Uo({element:n,padding:o}).fn(r):{}}}},Du=(e,t)=>({...Cu(e),options:[e,t]}),Iu=(e,t)=>({...Eu(e),options:[e,t]}),ju=(e,t)=>({...Au(e),options:[e,t]}),Lu=(e,t)=>({..._u(e),options:[e,t]}),Fu=(e,t)=>({...Ru(e),options:[e,t]}),$u=(e,t)=>({...Ou(e),options:[e,t]}),zu=(e,t)=>({...Nu(e),options:[e,t]});var Vu="Arrow",Yo=d.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...a}=e;return m.jsx(Y.svg,{...a,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:m.jsx("polygon",{points:"0,0 30,0 15,10"})})});Yo.displayName=Vu;var Bu=Yo;function Gu(e){const[t,r]=d.useState(void 0);return ue(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let s,i;if("borderBoxSize"in a){const l=a.borderBoxSize,c=Array.isArray(l)?l[0]:l;s=c.inlineSize,i=c.blockSize}else s=e.offsetWidth,i=e.offsetHeight;r({width:s,height:i})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var Lr="Popper",[Xo,$t]=Ee(Lr),[Wu,qo]=Xo(Lr),Zo=e=>{const{__scopePopper:t,children:r}=e,[n,o]=d.useState(null);return m.jsx(Wu,{scope:t,anchor:n,onAnchorChange:o,children:r})};Zo.displayName=Lr;var Jo="PopperAnchor",Qo=d.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,a=qo(Jo,r),s=d.useRef(null),i=Q(t,s),l=d.useRef(null);return d.useEffect(()=>{const c=l.current;l.current=n?.current||s.current,c!==l.current&&a.onAnchorChange(l.current)}),n?null:m.jsx(Y.div,{...o,ref:i})});Qo.displayName=Jo;var Fr="PopperContent",[Uu,Hu]=Xo(Fr),ea=d.forwardRef((e,t)=>{const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:a="center",alignOffset:s=0,arrowPadding:i=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:p=0,sticky:u="partial",hideWhenDetached:f=!1,updatePositionStrategy:g="optimized",onPlaced:v,...h}=e,b=qo(Fr,r),[y,x]=d.useState(null),C=Q(t,$=>x($)),[w,E]=d.useState(null),P=Gu(w),A=P?.width??0,R=P?.height??0,L=n+(a!=="center"?"-"+a:""),B=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},U=Array.isArray(c)?c:[c],H=U.length>0,X={padding:B,boundary:U.filter(Yu),altBoundary:H},{refs:W,floatingStyles:Z,placement:F,isPositioned:K,middlewareData:_}=ku({strategy:"fixed",placement:L,whileElementsMounted:(...$)=>Su(...$,{animationFrame:g==="always"}),elements:{reference:b.anchor},middleware:[Du({mainAxis:o+R,alignmentAxis:s}),l&&Iu({mainAxis:!0,crossAxis:!1,limiter:u==="partial"?ju():void 0,...X}),l&&Lu({...X}),Fu({...X,apply:({elements:$,rects:J,availableWidth:le,availableHeight:Ce})=>{const{width:$e,height:tt}=J.reference,sr=$.floating.style;sr.setProperty("--radix-popper-available-width",`${le}px`),sr.setProperty("--radix-popper-available-height",`${Ce}px`),sr.setProperty("--radix-popper-anchor-width",`${$e}px`),sr.setProperty("--radix-popper-anchor-height",`${tt}px`)}}),w&&zu({element:w,padding:i}),Xu({arrowWidth:A,arrowHeight:R}),f&&$u({strategy:"referenceHidden",...X})]}),[N,S]=na(F),I=fe(v);ue(()=>{K&&I?.()},[K,I]);const G=_.arrow?.x,V=_.arrow?.y,q=_.arrow?.centerOffset!==0,[ee,se]=d.useState();return ue(()=>{y&&se(window.getComputedStyle(y).zIndex)},[y]),m.jsx("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...Z,transform:K?Z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ee,"--radix-popper-transform-origin":[_.transformOrigin?.x,_.transformOrigin?.y].join(" "),..._.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:m.jsx(Uu,{scope:r,placedSide:N,onArrowChange:E,arrowX:G,arrowY:V,shouldHideArrow:q,children:m.jsx(Y.div,{"data-side":N,"data-align":S,...h,ref:C,style:{...h.style,animation:K?void 0:"none"}})})})});ea.displayName=Fr;var ta="PopperArrow",Ku={top:"bottom",right:"left",bottom:"top",left:"right"},ra=d.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,a=Hu(ta,n),s=Ku[a.placedSide];return m.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:m.jsx(Bu,{...o,ref:r,style:{...o.style,display:"block"}})})});ra.displayName=ta;function Yu(e){return e!==null}var Xu=e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:n,middlewareData:o}=t,s=o.arrow?.centerOffset!==0,i=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[c,p]=na(r),u={start:"0%",center:"50%",end:"100%"}[p],f=(o.arrow?.x??0)+i/2,g=(o.arrow?.y??0)+l/2;let v="",h="";return c==="bottom"?(v=s?u:`${f}px`,h=`${-l}px`):c==="top"?(v=s?u:`${f}px`,h=`${n.floating.height+l}px`):c==="right"?(v=`${-l}px`,h=s?u:`${g}px`):c==="left"&&(v=`${n.floating.width+l}px`,h=s?u:`${g}px`),{data:{x:v,y:h}}}});function na(e){const[t,r="center"]=e.split("-");return[t,r]}var $r=Zo,oa=Qo,aa=ea,sa=ra,qu="Portal",zt=d.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=d.useState(!1);ue(()=>a(!0),[]);const s=r||o&&globalThis?.document?.body;return s?Ai.createPortal(m.jsx(Y.div,{...n,ref:t}),s):null});zt.displayName=qu;var zr="rovingFocusGroup.onEntryFocus",Zu={bubbles:!1,cancelable:!0},lt="RovingFocusGroup",[Vr,ia,Ju]=po(lt),[Qu,ca]=Ee(lt,[Ju]),[ed,td]=Qu(lt),la=d.forwardRef((e,t)=>m.jsx(Vr.Provider,{scope:e.__scopeRovingFocusGroup,children:m.jsx(Vr.Slot,{scope:e.__scopeRovingFocusGroup,children:m.jsx(rd,{...e,ref:t})})}));la.displayName=lt;var rd=d.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:p=!1,...u}=e,f=d.useRef(null),g=Q(t,f),v=mo(a),[h,b]=Ue({prop:s,defaultProp:i??null,onChange:l,caller:lt}),[y,x]=d.useState(!1),C=fe(c),w=ia(r),E=d.useRef(!1),[P,A]=d.useState(0);return d.useEffect(()=>{const R=f.current;if(R)return R.addEventListener(zr,C),()=>R.removeEventListener(zr,C)},[C]),m.jsx(ed,{scope:r,orientation:n,dir:v,loop:o,currentTabStopId:h,onItemFocus:d.useCallback(R=>b(R),[b]),onItemShiftTab:d.useCallback(()=>x(!0),[]),onFocusableItemAdd:d.useCallback(()=>A(R=>R+1),[]),onFocusableItemRemove:d.useCallback(()=>A(R=>R-1),[]),children:m.jsx(Y.div,{tabIndex:y||P===0?-1:0,"data-orientation":n,...u,ref:g,style:{outline:"none",...e.style},onMouseDown:j(e.onMouseDown,()=>{E.current=!0}),onFocus:j(e.onFocus,R=>{const L=!E.current;if(R.target===R.currentTarget&&L&&!y){const B=new CustomEvent(zr,Zu);if(R.currentTarget.dispatchEvent(B),!B.defaultPrevented){const U=w().filter(F=>F.focusable),H=U.find(F=>F.active),X=U.find(F=>F.id===h),Z=[H,X,...U].filter(Boolean).map(F=>F.ref.current);fa(Z,p)}}E.current=!1}),onBlur:j(e.onBlur,()=>x(!1))})})}),ua="RovingFocusGroupItem",da=d.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:s,...i}=e,l=ve(),c=a||l,p=td(ua,r),u=p.currentTabStopId===c,f=ia(r),{onFocusableItemAdd:g,onFocusableItemRemove:v,currentTabStopId:h}=p;return d.useEffect(()=>{if(n)return g(),()=>v()},[n,g,v]),m.jsx(Vr.ItemSlot,{scope:r,id:c,focusable:n,active:o,children:m.jsx(Y.span,{tabIndex:u?0:-1,"data-orientation":p.orientation,...i,ref:t,onMouseDown:j(e.onMouseDown,b=>{n?p.onItemFocus(c):b.preventDefault()}),onFocus:j(e.onFocus,()=>p.onItemFocus(c)),onKeyDown:j(e.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){p.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const y=ad(b,p.orientation,p.dir);if(y!==void 0){if(b.metaKey||b.ctrlKey||b.altKey||b.shiftKey)return;b.preventDefault();let C=f().filter(w=>w.focusable).map(w=>w.ref.current);if(y==="last")C.reverse();else if(y==="prev"||y==="next"){y==="prev"&&C.reverse();const w=C.indexOf(b.currentTarget);C=p.loop?sd(C,w+1):C.slice(w+1)}setTimeout(()=>fa(C))}}),children:typeof s=="function"?s({isCurrentTabStop:u,hasTabStop:h!=null}):s})})});da.displayName=ua;var nd={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function od(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function ad(e,t,r){const n=od(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return nd[n]}function fa(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function sd(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var id=la,cd=da,ld=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},qe=new WeakMap,Vt=new WeakMap,Bt={},Br=0,pa=function(e){return e&&(e.host||pa(e.parentNode))},ud=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=pa(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},dd=function(e,t,r,n){var o=ud(t,Array.isArray(e)?e:[e]);Bt[r]||(Bt[r]=new WeakMap);var a=Bt[r],s=[],i=new Set,l=new Set(o),c=function(u){!u||i.has(u)||(i.add(u),c(u.parentNode))};o.forEach(c);var p=function(u){!u||l.has(u)||Array.prototype.forEach.call(u.children,function(f){if(i.has(f))p(f);else try{var g=f.getAttribute(n),v=g!==null&&g!=="false",h=(qe.get(f)||0)+1,b=(a.get(f)||0)+1;qe.set(f,h),a.set(f,b),s.push(f),h===1&&v&&Vt.set(f,!0),b===1&&f.setAttribute(r,"true"),v||f.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",f,y)}})};return p(t),i.clear(),Br++,function(){s.forEach(function(u){var f=qe.get(u)-1,g=a.get(u)-1;qe.set(u,f),a.set(u,g),f||(Vt.has(u)||u.removeAttribute(n),Vt.delete(u)),g||u.removeAttribute(r)}),Br--,Br||(qe=new WeakMap,qe=new WeakMap,Vt=new WeakMap,Bt={})}},ma=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=ld(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),dd(n,o,r,"aria-hidden")):function(){return null}},Se=function(){return Se=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},Se.apply(this,arguments)};function ga(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function fd(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Gt="right-scroll-bar-position",Wt="width-before-scroll-bar",pd="with-scroll-bars-hidden",md="--removed-body-scroll-bar-size";function Gr(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function gd(e,t){var r=D.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var hd=typeof window<"u"?d.useLayoutEffect:d.useEffect,ha=new WeakMap;function vd(e,t){var r=gd(null,function(n){return e.forEach(function(o){return Gr(o,n)})});return hd(function(){var n=ha.get(r);if(n){var o=new Set(n),a=new Set(e),s=r.current;o.forEach(function(i){a.has(i)||Gr(i,null)}),a.forEach(function(i){o.has(i)||Gr(i,s)})}ha.set(r,e)},[e]),r}function bd(e){return e}function yd(e,t){t===void 0&&(t=bd);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var s=t(a,n);return r.push(s),function(){r=r.filter(function(i){return i!==s})}},assignSyncMedium:function(a){for(n=!0;r.length;){var s=r;r=[],s.forEach(a)}r={push:function(i){return a(i)},filter:function(){return r}}},assignMedium:function(a){n=!0;var s=[];if(r.length){var i=r;r=[],i.forEach(a),s=r}var l=function(){var p=s;s=[],p.forEach(a)},c=function(){return Promise.resolve().then(l)};c(),r={push:function(p){s.push(p),c()},filter:function(p){return s=s.filter(p),r}}}};return o}function xd(e){e===void 0&&(e={});var t=yd(null);return t.options=Se({async:!0,ssr:!1},e),t}var va=function(e){var t=e.sideCar,r=ga(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return d.createElement(n,Se({},r))};va.isSideCarExport=!0;function wd(e,t){return e.useMedium(t),va}var ba=xd(),Wr=function(){},Ut=d.forwardRef(function(e,t){var r=d.useRef(null),n=d.useState({onScrollCapture:Wr,onWheelCapture:Wr,onTouchMoveCapture:Wr}),o=n[0],a=n[1],s=e.forwardProps,i=e.children,l=e.className,c=e.removeScrollBar,p=e.enabled,u=e.shards,f=e.sideCar,g=e.noRelative,v=e.noIsolation,h=e.inert,b=e.allowPinchZoom,y=e.as,x=y===void 0?"div":y,C=e.gapMode,w=ga(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=f,P=vd([r,t]),A=Se(Se({},w),o);return d.createElement(d.Fragment,null,p&&d.createElement(E,{sideCar:ba,removeScrollBar:c,shards:u,noRelative:g,noIsolation:v,inert:h,setCallbacks:a,allowPinchZoom:!!b,lockRef:r,gapMode:C}),s?d.cloneElement(d.Children.only(i),Se(Se({},A),{ref:P})):d.createElement(x,Se({},A,{className:l,ref:P}),i))});Ut.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ut.classNames={fullWidth:Wt,zeroRight:Gt};var Sd=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Cd(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Sd();return t&&e.setAttribute("nonce",t),e}function Ed(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function _d(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Rd=function(){var e=0,t=null;return{add:function(r){e==0&&(t=Cd())&&(Ed(t,r),_d(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Od=function(){var e=Rd();return function(t,r){d.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},ya=function(){var e=Od(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},Ad={left:0,top:0,right:0,gap:0},Ur=function(e){return parseInt(e||"",10)||0},Md=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Ur(r),Ur(n),Ur(o)]},Pd=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Ad;var t=Md(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},Td=ya(),Ze="data-scroll-locked",kd=function(e,t,r,n){var o=e.left,a=e.top,s=e.right,i=e.gap;return r===void 0&&(r="margin"),`
|
|
11
|
+
.`.concat(pd,` {
|
|
12
|
+
overflow: hidden `).concat(n,`;
|
|
13
|
+
padding-right: `).concat(i,"px ").concat(n,`;
|
|
14
14
|
}
|
|
15
|
-
body[`).concat(
|
|
16
|
-
overflow: hidden `).concat(
|
|
15
|
+
body[`).concat(Ze,`] {
|
|
16
|
+
overflow: hidden `).concat(n,`;
|
|
17
17
|
overscroll-behavior: contain;
|
|
18
|
-
`).concat([t&&"position: relative ".concat(
|
|
18
|
+
`).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
|
|
19
19
|
padding-left: `.concat(o,`px;
|
|
20
20
|
padding-top: `).concat(a,`px;
|
|
21
21
|
padding-right: `).concat(s,`px;
|
|
22
22
|
margin-left:0;
|
|
23
23
|
margin-top:0;
|
|
24
|
-
margin-right: `).concat(i,"px ").concat(
|
|
25
|
-
`),
|
|
24
|
+
margin-right: `).concat(i,"px ").concat(n,`;
|
|
25
|
+
`),r==="padding"&&"padding-right: ".concat(i,"px ").concat(n,";")].filter(Boolean).join(""),`
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
.`).concat(Gt,` {
|
|
29
|
-
right: `).concat(i,"px ").concat(
|
|
29
|
+
right: `).concat(i,"px ").concat(n,`;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
.`).concat(Wt,` {
|
|
33
|
-
margin-right: `).concat(i,"px ").concat(
|
|
33
|
+
margin-right: `).concat(i,"px ").concat(n,`;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
.`).concat(Gt," .").concat(Gt,` {
|
|
37
|
-
right: 0 `).concat(
|
|
37
|
+
right: 0 `).concat(n,`;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
.`).concat(Wt," .").concat(Wt,` {
|
|
41
|
-
margin-right: 0 `).concat(
|
|
41
|
+
margin-right: 0 `).concat(n,`;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
body[`).concat(
|
|
45
|
-
`).concat(
|
|
44
|
+
body[`).concat(Ze,`] {
|
|
45
|
+
`).concat(md,": ").concat(i,`px;
|
|
46
46
|
}
|
|
47
|
-
`)},
|
|
47
|
+
`)},xa=function(){var e=parseInt(document.body.getAttribute(Ze)||"0",10);return isFinite(e)?e:0},Nd=function(){d.useEffect(function(){return document.body.setAttribute(Ze,(xa()+1).toString()),function(){var e=xa()-1;e<=0?document.body.removeAttribute(Ze):document.body.setAttribute(Ze,e.toString())}},[])},Dd=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;Nd();var a=d.useMemo(function(){return Pd(o)},[o]);return d.createElement(Td,{styles:kd(a,!t,o,r?"":"!important")})},Hr=!1;if(typeof window<"u")try{var Ht=Object.defineProperty({},"passive",{get:function(){return Hr=!0,!0}});window.addEventListener("test",Ht,Ht),window.removeEventListener("test",Ht,Ht)}catch{Hr=!1}var Je=Hr?{passive:!1}:!1,Id=function(e){return e.tagName==="TEXTAREA"},wa=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!Id(e)&&r[t]==="visible")},jd=function(e){return wa(e,"overflowY")},Ld=function(e){return wa(e,"overflowX")},Sa=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=Ca(e,n);if(o){var a=Ea(e,n),s=a[1],i=a[2];if(s>i)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},Fd=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},$d=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},Ca=function(e,t){return e==="v"?jd(t):Ld(t)},Ea=function(e,t){return e==="v"?Fd(t):$d(t)},zd=function(e,t){return e==="h"&&t==="rtl"?-1:1},Vd=function(e,t,r,n,o){var a=zd(e,window.getComputedStyle(t).direction),s=a*n,i=r.target,l=t.contains(i),c=!1,p=s>0,u=0,f=0;do{if(!i)break;var g=Ea(e,i),v=g[0],h=g[1],b=g[2],y=h-b-a*v;(v||y)&&Ca(e,i)&&(u+=y,f+=v);var x=i.parentNode;i=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!l&&i!==document.body||l&&(t.contains(i)||t===i));return(p&&Math.abs(u)<1||!p&&Math.abs(f)<1)&&(c=!0),c},Kt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},_a=function(e){return[e.deltaX,e.deltaY]},Ra=function(e){return e&&"current"in e?e.current:e},Bd=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Gd=function(e){return`
|
|
48
48
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
49
49
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
50
|
-
`)},hd=0,Je=[];function vd(e){var t=d.useRef([]),n=d.useRef([0,0]),r=d.useRef(),o=d.useState(hd++)[0],a=d.useState(fa)[0],s=d.useRef(e);d.useEffect(function(){s.current=e},[e]),d.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var h=Fu([e.lockRef.current],(e.shards||[]).map(ya),!0).filter(Boolean);return h.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),h.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=d.useCallback(function(h,b){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!s.current.allowPinchZoom;var y=Kt(h),x=n.current,C="deltaX"in h?h.deltaX:x[0]-y[0],w="deltaY"in h?h.deltaY:x[1]-y[1],E,M=h.target,O=Math.abs(C)>Math.abs(w)?"h":"v";if("touches"in h&&O==="h"&&M.type==="range")return!1;var R=window.getSelection(),L=R&&R.anchorNode,B=L?L===M||L.contains(M):!1;if(B)return!1;var U=ga(O,M);if(!U)return!0;if(U?E=O:(E=O==="v"?"h":"v",U=ga(O,M)),!U)return!1;if(!r.current&&"changedTouches"in h&&(C||w)&&(r.current=E),!E)return!0;var H=r.current||E;return pd(H,b,h,H==="h"?C:w)},[]),l=d.useCallback(function(h){var b=h;if(!(!Je.length||Je[Je.length-1]!==a)){var y="deltaY"in b?ba(b):Kt(b),x=t.current.filter(function(E){return E.name===b.type&&(E.target===b.target||b.target===E.shadowParent)&&md(E.delta,y)})[0];if(x&&x.should){b.cancelable&&b.preventDefault();return}if(!x){var C=(s.current.shards||[]).map(ya).filter(Boolean).filter(function(E){return E.contains(b.target)}),w=C.length>0?i(b,C[0]):!s.current.noIsolation;w&&b.cancelable&&b.preventDefault()}}},[]),c=d.useCallback(function(h,b,y,x){var C={name:h,delta:b,target:y,should:x,shadowParent:bd(y)};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(w){return w!==C})},1)},[]),p=d.useCallback(function(h){n.current=Kt(h),r.current=void 0},[]),u=d.useCallback(function(h){c(h.type,ba(h),h.target,i(h,e.lockRef.current))},[]),f=d.useCallback(function(h){c(h.type,Kt(h),h.target,i(h,e.lockRef.current))},[]);d.useEffect(function(){return Je.push(a),e.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:f}),document.addEventListener("wheel",l,Ze),document.addEventListener("touchmove",l,Ze),document.addEventListener("touchstart",p,Ze),function(){Je=Je.filter(function(h){return h!==a}),document.removeEventListener("wheel",l,Ze),document.removeEventListener("touchmove",l,Ze),document.removeEventListener("touchstart",p,Ze)}},[]);var g=e.removeScrollBar,v=e.inert;return d.createElement(d.Fragment,null,v?d.createElement(a,{styles:gd(o)}):null,g?d.createElement(sd,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function bd(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const yd=Ku(da,vd);var Kn=d.forwardRef(function(e,t){return d.createElement(Ut,Se({},e,{ref:t,sideCar:yd}))});Kn.classNames=Ut.classNames;var Yn=["Enter"," "],xd=["ArrowDown","PageUp","Home"],xa=["ArrowUp","PageDown","End"],wd=[...xd,...xa],Sd={ltr:[...Yn,"ArrowRight"],rtl:[...Yn,"ArrowLeft"]},Cd={ltr:["ArrowLeft"],rtl:["ArrowRight"]},lt="Menu",[ut,Ed,_d]=ao(lt),[je,wa]=Ee(lt,[_d,$t,ta]),dt=$t(),Sa=ta(),[Ca,Ne]=je(lt),[Rd,ft]=je(lt),Ea=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:a,modal:s=!0}=e,i=dt(t),[l,c]=d.useState(null),p=d.useRef(!1),u=fe(a),f=so(o);return d.useEffect(()=>{const g=()=>{p.current=!0,document.addEventListener("pointerdown",v,{capture:!0,once:!0}),document.addEventListener("pointermove",v,{capture:!0,once:!0})},v=()=>p.current=!1;return document.addEventListener("keydown",g,{capture:!0}),()=>{document.removeEventListener("keydown",g,{capture:!0}),document.removeEventListener("pointerdown",v,{capture:!0}),document.removeEventListener("pointermove",v,{capture:!0})}},[]),m.jsx($n,{...i,children:m.jsx(Ca,{scope:t,open:n,onOpenChange:u,content:l,onContentChange:c,children:m.jsx(Rd,{scope:t,onClose:d.useCallback(()=>u(!1),[u]),isUsingKeyboardRef:p,dir:f,modal:s,children:r})})})};Ea.displayName=lt;var Od="MenuAnchor",Xn=d.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=dt(n);return m.jsx(Zo,{...o,...r,ref:t})});Xn.displayName=Od;var qn="MenuPortal",[Ad,_a]=je(qn,{forceMount:void 0}),Ra=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=Ne(qn,t);return m.jsx(Ad,{scope:t,forceMount:n,children:m.jsx(pe,{present:n||a.open,children:m.jsx(zt,{asChild:!0,container:o,children:r})})})};Ra.displayName=qn;var de="MenuContent",[Md,Zn]=je(de),Oa=d.forwardRef((e,t)=>{const n=_a(de,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=Ne(de,e.__scopeMenu),s=ft(de,e.__scopeMenu);return m.jsx(ut.Provider,{scope:e.__scopeMenu,children:m.jsx(pe,{present:r||a.open,children:m.jsx(ut.Slot,{scope:e.__scopeMenu,children:s.modal?m.jsx(Td,{...o,ref:t}):m.jsx(Pd,{...o,ref:t})})})})}),Td=d.forwardRef((e,t)=>{const n=Ne(de,e.__scopeMenu),r=d.useRef(null),o=Q(t,r);return d.useEffect(()=>{const a=r.current;if(a)return ia(a)},[]),m.jsx(Jn,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:j(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Pd=d.forwardRef((e,t)=>{const n=Ne(de,e.__scopeMenu);return m.jsx(Jn,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),kd=ze("MenuContent.ScrollLock"),Jn=d.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:i,onEntryFocus:l,onEscapeKeyDown:c,onPointerDownOutside:p,onFocusOutside:u,onInteractOutside:f,onDismiss:g,disableOutsideScroll:v,...h}=e,b=Ne(de,n),y=ft(de,n),x=dt(n),C=Sa(n),w=Ed(n),[E,M]=d.useState(null),O=d.useRef(null),R=Q(t,O,b.onContentChange),L=d.useRef(0),B=d.useRef(""),U=d.useRef(0),H=d.useRef(null),X=d.useRef("right"),W=d.useRef(0),Z=v?Kn:d.Fragment,F=v?{as:kd,allowPinchZoom:!0}:void 0,K=k=>{const S=B.current+k,I=w().filter($=>!$.disabled),G=document.activeElement,V=I.find($=>$.ref.current===G)?.textValue,q=I.map($=>$.textValue),ee=Wd(q,S,V),se=I.find($=>$.textValue===ee)?.ref.current;(function $(J){B.current=J,window.clearTimeout(L.current),J!==""&&(L.current=window.setTimeout(()=>$(""),1e3))})(S),se&&setTimeout(()=>se.focus())};d.useEffect(()=>()=>window.clearTimeout(L.current),[]),fo();const _=d.useCallback(k=>X.current===H.current?.side&&Hd(k,H.current?.area),[]);return m.jsx(Md,{scope:n,searchRef:B,onItemEnter:d.useCallback(k=>{_(k)&&k.preventDefault()},[_]),onItemLeave:d.useCallback(k=>{_(k)||(O.current?.focus(),M(null))},[_]),onTriggerLeave:d.useCallback(k=>{_(k)&&k.preventDefault()},[_]),pointerGraceTimerRef:U,onPointerGraceIntentChange:d.useCallback(k=>{H.current=k},[]),children:m.jsx(Z,{...F,children:m.jsx(_n,{asChild:!0,trapped:o,onMountAutoFocus:j(a,k=>{k.preventDefault(),O.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:m.jsx(At,{asChild:!0,disableOutsidePointerEvents:i,onEscapeKeyDown:c,onPointerDownOutside:p,onFocusOutside:u,onInteractOutside:f,onDismiss:g,children:m.jsx(Nu,{asChild:!0,...C,dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:E,onCurrentTabStopIdChange:M,onEntryFocus:j(l,k=>{y.isUsingKeyboardRef.current||k.preventDefault()}),preventScrollOnEntryFocus:!0,children:m.jsx(Jo,{role:"menu","aria-orientation":"vertical","data-state":Ua(b.open),"data-radix-menu-content":"",dir:y.dir,...x,...h,ref:R,style:{outline:"none",...h.style},onKeyDown:j(h.onKeyDown,k=>{const I=k.target.closest("[data-radix-menu-content]")===k.currentTarget,G=k.ctrlKey||k.altKey||k.metaKey,V=k.key.length===1;I&&(k.key==="Tab"&&k.preventDefault(),!G&&V&&K(k.key));const q=O.current;if(k.target!==q||!wd.includes(k.key))return;k.preventDefault();const se=w().filter($=>!$.disabled).map($=>$.ref.current);xa.includes(k.key)&&se.reverse(),Bd(se)}),onBlur:j(e.onBlur,k=>{k.currentTarget.contains(k.target)||(window.clearTimeout(L.current),B.current="")}),onPointerMove:j(e.onPointerMove,mt(k=>{const S=k.target,I=W.current!==k.clientX;if(k.currentTarget.contains(S)&&I){const G=k.clientX>W.current?"right":"left";X.current=G,W.current=k.clientX}}))})})})})})})});Oa.displayName=de;var Nd="MenuGroup",Qn=d.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return m.jsx(Y.div,{role:"group",...r,ref:t})});Qn.displayName=Nd;var Dd="MenuLabel",Aa=d.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return m.jsx(Y.div,{...r,ref:t})});Aa.displayName=Dd;var Yt="MenuItem",Ma="menu.itemSelect",Xt=d.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,a=d.useRef(null),s=ft(Yt,e.__scopeMenu),i=Zn(Yt,e.__scopeMenu),l=Q(t,a),c=d.useRef(!1),p=()=>{const u=a.current;if(!n&&u){const f=new CustomEvent(Ma,{bubbles:!0,cancelable:!0});u.addEventListener(Ma,g=>r?.(g),{once:!0}),Cr(u,f),f.defaultPrevented?c.current=!1:s.onClose()}};return m.jsx(Ta,{...o,ref:l,disabled:n,onClick:j(e.onClick,p),onPointerDown:u=>{e.onPointerDown?.(u),c.current=!0},onPointerUp:j(e.onPointerUp,u=>{c.current||u.currentTarget?.click()}),onKeyDown:j(e.onKeyDown,u=>{const f=i.searchRef.current!=="";n||f&&u.key===" "||Yn.includes(u.key)&&(u.currentTarget.click(),u.preventDefault())})})});Xt.displayName=Yt;var Ta=d.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,s=Zn(Yt,n),i=Sa(n),l=d.useRef(null),c=Q(t,l),[p,u]=d.useState(!1),[f,g]=d.useState("");return d.useEffect(()=>{const v=l.current;v&&g((v.textContent??"").trim())},[a.children]),m.jsx(ut.ItemSlot,{scope:n,disabled:r,textValue:o??f,children:m.jsx(Du,{asChild:!0,...i,focusable:!r,children:m.jsx(Y.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...a,ref:c,onPointerMove:j(e.onPointerMove,mt(v=>{r?s.onItemLeave(v):(s.onItemEnter(v),v.defaultPrevented||v.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:j(e.onPointerLeave,mt(v=>s.onItemLeave(v))),onFocus:j(e.onFocus,()=>u(!0)),onBlur:j(e.onBlur,()=>u(!1))})})})}),Id="MenuCheckboxItem",Pa=d.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return m.jsx(ja,{scope:e.__scopeMenu,checked:n,children:m.jsx(Xt,{role:"menuitemcheckbox","aria-checked":qt(n)?"mixed":n,...o,ref:t,"data-state":nr(n),onSelect:j(o.onSelect,()=>r?.(qt(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Pa.displayName=Id;var ka="MenuRadioGroup",[jd,Ld]=je(ka,{value:void 0,onValueChange:()=>{}}),Na=d.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,a=fe(r);return m.jsx(jd,{scope:e.__scopeMenu,value:n,onValueChange:a,children:m.jsx(Qn,{...o,ref:t})})});Na.displayName=ka;var Da="MenuRadioItem",Ia=d.forwardRef((e,t)=>{const{value:n,...r}=e,o=Ld(Da,e.__scopeMenu),a=n===o.value;return m.jsx(ja,{scope:e.__scopeMenu,checked:a,children:m.jsx(Xt,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":nr(a),onSelect:j(r.onSelect,()=>o.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});Ia.displayName=Da;var er="MenuItemIndicator",[ja,Fd]=je(er,{checked:!1}),La=d.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=Fd(er,n);return m.jsx(pe,{present:r||qt(a.checked)||a.checked===!0,children:m.jsx(Y.span,{...o,ref:t,"data-state":nr(a.checked)})})});La.displayName=er;var $d="MenuSeparator",Fa=d.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return m.jsx(Y.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});Fa.displayName=$d;var zd="MenuArrow",$a=d.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=dt(n);return m.jsx(Qo,{...o,...r,ref:t})});$a.displayName=zd;var tr="MenuSub",[Vd,za]=je(tr),Va=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,a=Ne(tr,t),s=dt(t),[i,l]=d.useState(null),[c,p]=d.useState(null),u=fe(o);return d.useEffect(()=>(a.open===!1&&u(!1),()=>u(!1)),[a.open,u]),m.jsx($n,{...s,children:m.jsx(Ca,{scope:t,open:r,onOpenChange:u,content:c,onContentChange:p,children:m.jsx(Vd,{scope:t,contentId:ve(),triggerId:ve(),trigger:i,onTriggerChange:l,children:n})})})};Va.displayName=tr;var pt="MenuSubTrigger",Ba=d.forwardRef((e,t)=>{const n=Ne(pt,e.__scopeMenu),r=ft(pt,e.__scopeMenu),o=za(pt,e.__scopeMenu),a=Zn(pt,e.__scopeMenu),s=d.useRef(null),{pointerGraceTimerRef:i,onPointerGraceIntentChange:l}=a,c={__scopeMenu:e.__scopeMenu},p=d.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return d.useEffect(()=>p,[p]),d.useEffect(()=>{const u=i.current;return()=>{window.clearTimeout(u),l(null)}},[i,l]),m.jsx(Xn,{asChild:!0,...c,children:m.jsx(Ta,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Ua(n.open),...e,ref:rt(t,o.onTriggerChange),onClick:u=>{e.onClick?.(u),!(e.disabled||u.defaultPrevented)&&(u.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:j(e.onPointerMove,mt(u=>{a.onItemEnter(u),!u.defaultPrevented&&!e.disabled&&!n.open&&!s.current&&(a.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),p()},100))})),onPointerLeave:j(e.onPointerLeave,mt(u=>{p();const f=n.content?.getBoundingClientRect();if(f){const g=n.content?.dataset.side,v=g==="right",h=v?-5:5,b=f[v?"left":"right"],y=f[v?"right":"left"];a.onPointerGraceIntentChange({area:[{x:u.clientX+h,y:u.clientY},{x:b,y:f.top},{x:y,y:f.top},{x:y,y:f.bottom},{x:b,y:f.bottom}],side:g}),window.clearTimeout(i.current),i.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(u),u.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:j(e.onKeyDown,u=>{const f=a.searchRef.current!=="";e.disabled||f&&u.key===" "||Sd[r.dir].includes(u.key)&&(n.onOpenChange(!0),n.content?.focus(),u.preventDefault())})})})});Ba.displayName=pt;var Ga="MenuSubContent",Wa=d.forwardRef((e,t)=>{const n=_a(de,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=Ne(de,e.__scopeMenu),s=ft(de,e.__scopeMenu),i=za(Ga,e.__scopeMenu),l=d.useRef(null),c=Q(t,l);return m.jsx(ut.Provider,{scope:e.__scopeMenu,children:m.jsx(pe,{present:r||a.open,children:m.jsx(ut.Slot,{scope:e.__scopeMenu,children:m.jsx(Jn,{id:i.contentId,"aria-labelledby":i.triggerId,...o,ref:c,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:p=>{s.isUsingKeyboardRef.current&&l.current?.focus(),p.preventDefault()},onCloseAutoFocus:p=>p.preventDefault(),onFocusOutside:j(e.onFocusOutside,p=>{p.target!==i.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:j(e.onEscapeKeyDown,p=>{s.onClose(),p.preventDefault()}),onKeyDown:j(e.onKeyDown,p=>{const u=p.currentTarget.contains(p.target),f=Cd[s.dir].includes(p.key);u&&f&&(a.onOpenChange(!1),i.trigger?.focus(),p.preventDefault())})})})})})});Wa.displayName=Ga;function Ua(e){return e?"open":"closed"}function qt(e){return e==="indeterminate"}function nr(e){return qt(e)?"indeterminate":e?"checked":"unchecked"}function Bd(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Gd(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function Wd(e,t,n){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let s=Gd(e,Math.max(a,0));o.length===1&&(s=s.filter(c=>c!==n));const l=s.find(c=>c.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function Ud(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const i=t[a],l=t[s],c=i.x,p=i.y,u=l.x,f=l.y;p>r!=f>r&&n<(u-c)*(r-p)/(f-p)+c&&(o=!o)}return o}function Hd(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Ud(n,t)}function mt(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Kd=Ea,Yd=Xn,Xd=Ra,qd=Oa,Zd=Qn,Jd=Aa,Qd=Xt,ef=Pa,tf=Na,nf=Ia,rf=La,of=Fa,af=$a,sf=Va,cf=Ba,lf=Wa,Zt="DropdownMenu",[uf,Cg]=Ee(Zt,[wa]),oe=wa(),[df,Ha]=uf(Zt),Ka=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:a,onOpenChange:s,modal:i=!0}=e,l=oe(t),c=d.useRef(null),[p,u]=We({prop:o,defaultProp:a??!1,onChange:s,caller:Zt});return m.jsx(df,{scope:t,triggerId:ve(),triggerRef:c,contentId:ve(),open:p,onOpenChange:u,onOpenToggle:d.useCallback(()=>u(f=>!f),[u]),modal:i,children:m.jsx(Kd,{...l,open:p,onOpenChange:u,dir:r,modal:i,children:n})})};Ka.displayName=Zt;var Ya="DropdownMenuTrigger",Xa=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=Ha(Ya,n),s=oe(n);return m.jsx(Yd,{asChild:!0,...s,children:m.jsx(Y.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:rt(t,a.triggerRef),onPointerDown:j(e.onPointerDown,i=>{!r&&i.button===0&&i.ctrlKey===!1&&(a.onOpenToggle(),a.open||i.preventDefault())}),onKeyDown:j(e.onKeyDown,i=>{r||(["Enter"," "].includes(i.key)&&a.onOpenToggle(),i.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(i.key)&&i.preventDefault())})})})});Xa.displayName=Ya;var ff="DropdownMenuPortal",qa=e=>{const{__scopeDropdownMenu:t,...n}=e,r=oe(t);return m.jsx(Xd,{...r,...n})};qa.displayName=ff;var Za="DropdownMenuContent",Ja=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ha(Za,n),a=oe(n),s=d.useRef(!1);return m.jsx(qd,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...r,ref:t,onCloseAutoFocus:j(e.onCloseAutoFocus,i=>{s.current||o.triggerRef.current?.focus(),s.current=!1,i.preventDefault()}),onInteractOutside:j(e.onInteractOutside,i=>{const l=i.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,p=l.button===2||c;(!o.modal||p)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Ja.displayName=Za;var pf="DropdownMenuGroup",Qa=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=oe(n);return m.jsx(Zd,{...o,...r,ref:t})});Qa.displayName=pf;var mf="DropdownMenuLabel",es=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=oe(n);return m.jsx(Jd,{...o,...r,ref:t})});es.displayName=mf;var gf="DropdownMenuItem",ts=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=oe(n);return m.jsx(Qd,{...o,...r,ref:t})});ts.displayName=gf;var hf="DropdownMenuCheckboxItem",ns=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=oe(n);return m.jsx(ef,{...o,...r,ref:t})});ns.displayName=hf;var vf="DropdownMenuRadioGroup",rs=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=oe(n);return m.jsx(tf,{...o,...r,ref:t})});rs.displayName=vf;var bf="DropdownMenuRadioItem",os=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=oe(n);return m.jsx(nf,{...o,...r,ref:t})});os.displayName=bf;var yf="DropdownMenuItemIndicator",as=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=oe(n);return m.jsx(rf,{...o,...r,ref:t})});as.displayName=yf;var xf="DropdownMenuSeparator",ss=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=oe(n);return m.jsx(of,{...o,...r,ref:t})});ss.displayName=xf;var wf="DropdownMenuArrow",Sf=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=oe(n);return m.jsx(af,{...o,...r,ref:t})});Sf.displayName=wf;var Cf=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:a}=e,s=oe(t),[i,l]=We({prop:r,defaultProp:a??!1,onChange:o,caller:"DropdownMenuSub"});return m.jsx(sf,{...s,open:i,onOpenChange:l,children:n})},Ef="DropdownMenuSubTrigger",is=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=oe(n);return m.jsx(cf,{...o,...r,ref:t})});is.displayName=Ef;var _f="DropdownMenuSubContent",cs=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=oe(n);return m.jsx(lf,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});cs.displayName=_f;var Rf=Ka,Of=Xa,ls=qa,Af=Ja,Mf=Qa,Tf=es,Pf=ts,kf=ns,Nf=rs,Df=os,us=as,If=ss,jf=Cf,Lf=is,Ff=cs;const $f=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),zf=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),ds=e=>{const t=zf(e);return t.charAt(0).toUpperCase()+t.slice(1)},fs=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),Vf=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var Bf={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Gf=D.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:a,iconNode:s,...i},l)=>D.createElement("svg",{ref:l,...Bf,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:fs("lucide",o),...!a&&!Vf(i)&&{"aria-hidden":"true"},...i},[...s.map(([c,p])=>D.createElement(c,p)),...Array.isArray(a)?a:[a]]));const gt=(e,t)=>{const n=D.forwardRef(({className:r,...o},a)=>D.createElement(Gf,{ref:a,iconNode:t,className:fs(`lucide-${$f(ds(e))}`,`lucide-${e}`,r),...o}));return n.displayName=ds(e),n};const Wf=gt("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);const Uf=gt("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);const Hf=gt("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);const Kf=gt("panel-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);const Yf=gt("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function Xf({...e}){return m.jsx(Rf,{"data-slot":"dropdown-menu",...e})}function qf({...e}){return m.jsx(ls,{"data-slot":"dropdown-menu-portal",...e})}function Zf({...e}){return m.jsx(Of,{"data-slot":"dropdown-menu-trigger",...e})}function Jf({className:e,sideOffset:t=4,...n}){return m.jsx(ls,{children:m.jsx(Af,{"data-slot":"dropdown-menu-content",sideOffset:t,className:N("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",e),...n})})}function Qf({...e}){return m.jsx(Mf,{"data-slot":"dropdown-menu-group",...e})}function ep({className:e,inset:t,variant:n="default",...r}){return m.jsx(Pf,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":n,className:N("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r})}function tp({className:e,children:t,checked:n,...r}){return m.jsxs(kf,{"data-slot":"dropdown-menu-checkbox-item",className:N("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),checked:n,...r,children:[m.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:m.jsx(us,{children:m.jsx(Wf,{className:"size-4"})})}),t]})}function np({...e}){return m.jsx(Nf,{"data-slot":"dropdown-menu-radio-group",...e})}function rp({className:e,children:t,...n}){return m.jsxs(Df,{"data-slot":"dropdown-menu-radio-item",className:N("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...n,children:[m.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:m.jsx(us,{children:m.jsx(Hf,{className:"size-2 fill-current"})})}),t]})}function op({className:e,inset:t,...n}){return m.jsx(Tf,{"data-slot":"dropdown-menu-label","data-inset":t,className:N("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",e),...n})}function ap({className:e,...t}){return m.jsx(If,{"data-slot":"dropdown-menu-separator",className:N("bg-border -mx-1 my-1 h-px",e),...t})}function sp({className:e,...t}){return m.jsx("span",{"data-slot":"dropdown-menu-shortcut",className:N("text-muted-foreground ml-auto text-xs tracking-widest",e),...t})}function ip({...e}){return m.jsx(jf,{"data-slot":"dropdown-menu-sub",...e})}function cp({className:e,inset:t,children:n,...r}){return m.jsxs(Lf,{"data-slot":"dropdown-menu-sub-trigger","data-inset":t,className:N("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r,children:[n,m.jsx(Uf,{className:"ml-auto size-4"})]})}function lp({className:e,...t}){return m.jsx(Ff,{"data-slot":"dropdown-menu-sub-content",className:N("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",e),...t})}var up="Label",ps=d.forwardRef((e,t)=>m.jsx(Y.label,{...e,ref:t,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(e.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));ps.displayName=up;var dp=ps,fp=e=>e.type==="checkbox",ht=e=>e instanceof Date,rr=e=>e==null;const ms=e=>typeof e=="object";var Le=e=>!rr(e)&&!Array.isArray(e)&&ms(e)&&!ht(e),pp=e=>Le(e)&&e.target?fp(e.target)?e.target.checked:e.target.value:e,mp=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,gp=(e,t)=>e.has(mp(t)),hp=e=>{const t=e.constructor&&e.constructor.prototype;return Le(t)&&t.hasOwnProperty("isPrototypeOf")},vp=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function gs(e){let t;const n=Array.isArray(e),r=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(!(vp&&(e instanceof Blob||r))&&(n||Le(e)))if(t=n?[]:Object.create(Object.getPrototypeOf(e)),!n&&!hp(e))t=e;else for(const o in e)e.hasOwnProperty(o)&&(t[o]=gs(e[o]));else return e;return t}var hs=e=>/^\w*$/.test(e),or=e=>e===void 0,bp=e=>Array.isArray(e)?e.filter(Boolean):[],vs=e=>bp(e.replace(/["|']|\]/g,"").split(/\.|\[/)),ae=(e,t,n)=>{if(!t||!Le(e))return n;const r=(hs(t)?[t]:vs(t)).reduce((o,a)=>rr(o)?o:o[a],e);return or(r)||r===e?or(e[t])?n:e[t]:r},ar=e=>typeof e=="boolean",bs=(e,t,n)=>{let r=-1;const o=hs(t)?[t]:vs(t),a=o.length,s=a-1;for(;++r<a;){const i=o[r];let l=n;if(r!==s){const c=e[i];l=Le(c)||Array.isArray(c)?c:isNaN(+o[r+1])?{}:[]}if(i==="__proto__"||i==="constructor"||i==="prototype")return;e[i]=l,e=e[i]}};const ys={BLUR:"blur",CHANGE:"change"},xs={all:"all"},sr=D.createContext(null);sr.displayName="HookFormContext";const Jt=()=>D.useContext(sr),yp=e=>{const{children:t,...n}=e;return D.createElement(sr.Provider,{value:n},t)};var xp=(e,t,n,r=!0)=>{const o={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(o,a,{get:()=>{const s=a;return t._proxyFormState[s]!==xs.all&&(t._proxyFormState[s]=!r||xs.all),n&&(n[s]=!0),e[s]}});return o};const ws=typeof window<"u"?D.useLayoutEffect:D.useEffect;function Ss(e){const t=Jt(),{control:n=t.control,disabled:r,name:o,exact:a}=e||{},[s,i]=D.useState(n._formState),l=D.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return ws(()=>n._subscribe({name:o,formState:l.current,exact:a,callback:c=>{!r&&i({...n._formState,...c})}}),[o,r,a]),D.useEffect(()=>{l.current.isValid&&n._setValid(!0)},[n]),D.useMemo(()=>xp(s,n,l.current,!1),[s,n])}var wp=e=>typeof e=="string",Cs=(e,t,n,r,o)=>wp(e)?ae(n,e,o):Array.isArray(e)?e.map(a=>ae(n,a)):n,Es=e=>rr(e)||!ms(e);function Qt(e,t,n=new WeakSet){if(Es(e)||Es(t))return Object.is(e,t);if(ht(e)&&ht(t))return e.getTime()===t.getTime();const r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const a of r){const s=e[a];if(!o.includes(a))return!1;if(a!=="ref"){const i=t[a];if(ht(s)&&ht(i)||Le(s)&&Le(i)||Array.isArray(s)&&Array.isArray(i)?!Qt(s,i,n):!Object.is(s,i))return!1}}return!0}function Sp(e){const t=Jt(),{control:n=t.control,name:r,defaultValue:o,disabled:a,exact:s,compute:i}=e||{},l=D.useRef(o),c=D.useRef(i),p=D.useRef(void 0),u=D.useRef(n),f=D.useRef(r);c.current=i;const[g,v]=D.useState(()=>{const w=n._getWatch(r,l.current);return c.current?c.current(w):w}),h=D.useCallback(w=>{const E=Cs(r,n._names,w||n._formValues,!1,l.current);return c.current?c.current(E):E},[n._formValues,n._names,r]),b=D.useCallback(w=>{if(!a){const E=Cs(r,n._names,w||n._formValues,!1,l.current);if(c.current){const M=c.current(E);Qt(M,p.current)||(v(M),p.current=M)}else v(E)}},[n._formValues,n._names,a,r]);ws(()=>((u.current!==n||!Qt(f.current,r))&&(u.current=n,f.current=r,b()),n._subscribe({name:r,formState:{values:!0},exact:s,callback:w=>{b(w.values)}})),[n,s,r,b]),D.useEffect(()=>n._removeUnmounted());const y=u.current!==n,x=f.current,C=D.useMemo(()=>{if(a)return null;const w=!y&&!Qt(x,r);return y||w?h():null},[a,y,r,x,h]);return C!==null?C:g}function Cp(e){const t=Jt(),{name:n,disabled:r,control:o=t.control,shouldUnregister:a,defaultValue:s,exact:i=!0}=e,l=gp(o._names.array,n),c=D.useMemo(()=>ae(o._formValues,n,ae(o._defaultValues,n,s)),[o,n,s]),p=Sp({control:o,name:n,defaultValue:c,exact:i}),u=Ss({control:o,name:n,exact:i}),f=D.useRef(e),g=D.useRef(void 0),v=D.useRef(o.register(n,{...e.rules,value:p,...ar(e.disabled)?{disabled:e.disabled}:{}}));f.current=e;const h=D.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!ae(u.errors,n)},isDirty:{enumerable:!0,get:()=>!!ae(u.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!ae(u.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!ae(u.validatingFields,n)},error:{enumerable:!0,get:()=>ae(u.errors,n)}}),[u,n]),b=D.useCallback(w=>v.current.onChange({target:{value:pp(w),name:n},type:ys.CHANGE}),[n]),y=D.useCallback(()=>v.current.onBlur({target:{value:ae(o._formValues,n),name:n},type:ys.BLUR}),[n,o._formValues]),x=D.useCallback(w=>{const E=ae(o._fields,n);E&&w&&(E._f.ref={focus:()=>w.focus&&w.focus(),select:()=>w.select&&w.select(),setCustomValidity:M=>w.setCustomValidity(M),reportValidity:()=>w.reportValidity()})},[o._fields,n]),C=D.useMemo(()=>({name:n,value:p,...ar(r)||u.disabled?{disabled:u.disabled||r}:{},onChange:b,onBlur:y,ref:x}),[n,r,u.disabled,b,y,x,p]);return D.useEffect(()=>{const w=o._options.shouldUnregister||a,E=g.current;E&&E!==n&&!l&&o.unregister(E),o.register(n,{...f.current.rules,...ar(f.current.disabled)?{disabled:f.current.disabled}:{}});const M=(O,R)=>{const L=ae(o._fields,O);L&&L._f&&(L._f.mount=R)};if(M(n,!0),w){const O=gs(ae(o._options.defaultValues,n,f.current.defaultValue));bs(o._defaultValues,n,O),or(ae(o._formValues,n))&&bs(o._formValues,n,O)}return!l&&o.register(n),g.current=n,()=>{(l?w&&!o._state.action:w)?o.unregister(n):M(n,!1)}},[n,o,l,a]),D.useEffect(()=>{o._setDisabledField({disabled:r,name:n})},[r,n,o]),D.useMemo(()=>({field:C,formState:u,fieldState:h}),[C,u,h])}const Ep=e=>e.render(Cp(e));function _s({className:e,...t}){return m.jsx(dp,{"data-slot":"label",className:N("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}const _p=yp,Rs=d.createContext({}),Rp=({...e})=>m.jsx(Rs.Provider,{value:{name:e.name},children:m.jsx(Ep,{...e})}),vt=()=>{const e=d.useContext(Rs),t=d.useContext(Os),{getFieldState:n}=Jt(),r=Ss({name:e.name}),o=n(e.name,r);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:a}=t;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...o}},Os=d.createContext({});function Op({className:e,...t}){const n=d.useId();return m.jsx(Os.Provider,{value:{id:n},children:m.jsx("div",{"data-slot":"form-item",className:N("grid gap-2",e),...t})})}function Ap({className:e,...t}){const{error:n,formItemId:r}=vt();return m.jsx(_s,{"data-slot":"form-label","data-error":!!n,className:N("data-[error=true]:text-destructive",e),htmlFor:r,...t})}function Mp({...e}){const{error:t,formItemId:n,formDescriptionId:r,formMessageId:o}=vt();return m.jsx(Ae,{"data-slot":"form-control",id:n,"aria-describedby":t?`${r} ${o}`:`${r}`,"aria-invalid":!!t,...e})}function Tp({className:e,...t}){const{formDescriptionId:n}=vt();return m.jsx("p",{"data-slot":"form-description",id:n,className:N("text-muted-foreground text-sm",e),...t})}function Pp({className:e,...t}){const{error:n,formMessageId:r}=vt(),o=n?String(n?.message??""):t.children;return o?m.jsx("p",{"data-slot":"form-message",id:r,className:N("text-destructive text-sm",e),...t,children:o}):null}function As({className:e,type:t,...n}){return m.jsx("input",{type:t,"data-slot":"input",className:N("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...n})}var kp=Symbol.for("react.lazy"),en=d[" use ".trim().toString()];function Np(e){return typeof e=="object"&&e!==null&&"then"in e}function Ms(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===kp&&"_payload"in e&&Np(e._payload)}function Dp(e){const t=Ip(e),n=d.forwardRef((r,o)=>{let{children:a,...s}=r;Ms(a)&&typeof en=="function"&&(a=en(a._payload));const i=d.Children.toArray(a),l=i.find(Lp);if(l){const c=l.props.children,p=i.map(u=>u===l?d.Children.count(c)>1?d.Children.only(null):d.isValidElement(c)?c.props.children:null:u);return m.jsx(t,{...s,ref:o,children:d.isValidElement(c)?d.cloneElement(c,void 0,p):null})}return m.jsx(t,{...s,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}function Ip(e){const t=d.forwardRef((n,r)=>{let{children:o,...a}=n;if(Ms(o)&&typeof en=="function"&&(o=en(o._payload)),d.isValidElement(o)){const s=$p(o),i=Fp(a,o.props);return o.type!==d.Fragment&&(i.ref=r?rt(r,s):s),d.cloneElement(o,i)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var jp=Symbol("radix.slottable");function Lp(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===jp}function Fp(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...i)=>{const l=a(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function $p(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var zp=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Vp=zp.reduce((e,t)=>{const n=Dp(`Primitive.${t}`),r=d.forwardRef((o,a)=>{const{asChild:s,...i}=o,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(l,{...i,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Bp="Separator",Ts="horizontal",Gp=["horizontal","vertical"],Ps=d.forwardRef((e,t)=>{const{decorative:n,orientation:r=Ts,...o}=e,a=Wp(r)?r:Ts,i=n?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return m.jsx(Vp.div,{"data-orientation":a,...i,...o,ref:t})});Ps.displayName=Bp;function Wp(e){return Gp.includes(e)}var Up=Ps;function ks({className:e,orientation:t="horizontal",decorative:n=!0,...r}){return m.jsx(Up,{"data-slot":"separator",decorative:n,orientation:t,className:N("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e),...r})}const ir=768;function Hp(){const[e,t]=d.useState(void 0);return d.useEffect(()=>{const n=window.matchMedia(`(max-width: ${ir-1}px)`),r=()=>{t(window.innerWidth<ir)};return n.addEventListener("change",r),t(window.innerWidth<ir),()=>n.removeEventListener("change",r)},[]),!!e}var tn="Dialog",[Ns,Mg]=Ee(tn),[Kp,he]=Ns(tn),Ds=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,i=d.useRef(null),l=d.useRef(null),[c,p]=We({prop:r,defaultProp:o??!1,onChange:a,caller:tn});return m.jsx(Kp,{scope:t,triggerRef:i,contentRef:l,contentId:ve(),titleId:ve(),descriptionId:ve(),open:c,onOpenChange:p,onOpenToggle:d.useCallback(()=>p(u=>!u),[p]),modal:s,children:n})};Ds.displayName=tn;var Is="DialogTrigger",Yp=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=he(Is,n),a=Q(t,o.triggerRef);return m.jsx(Y.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":ur(o.open),...r,ref:a,onClick:j(e.onClick,o.onOpenToggle)})});Yp.displayName=Is;var cr="DialogPortal",[Xp,js]=Ns(cr,{forceMount:void 0}),Ls=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=he(cr,t);return m.jsx(Xp,{scope:t,forceMount:n,children:d.Children.map(r,s=>m.jsx(pe,{present:n||a.open,children:m.jsx(zt,{asChild:!0,container:o,children:s})}))})};Ls.displayName=cr;var nn="DialogOverlay",Fs=d.forwardRef((e,t)=>{const n=js(nn,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=he(nn,e.__scopeDialog);return a.modal?m.jsx(pe,{present:r||a.open,children:m.jsx(Zp,{...o,ref:t})}):null});Fs.displayName=nn;var qp=ze("DialogOverlay.RemoveScroll"),Zp=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=he(nn,n);return m.jsx(Kn,{as:qp,allowPinchZoom:!0,shards:[o.contentRef],children:m.jsx(Y.div,{"data-state":ur(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Fe="DialogContent",$s=d.forwardRef((e,t)=>{const n=js(Fe,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=he(Fe,e.__scopeDialog);return m.jsx(pe,{present:r||a.open,children:a.modal?m.jsx(Jp,{...o,ref:t}):m.jsx(Qp,{...o,ref:t})})});$s.displayName=Fe;var Jp=d.forwardRef((e,t)=>{const n=he(Fe,e.__scopeDialog),r=d.useRef(null),o=Q(t,n.contentRef,r);return d.useEffect(()=>{const a=r.current;if(a)return ia(a)},[]),m.jsx(zs,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:j(e.onCloseAutoFocus,a=>{a.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:j(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,i=s.button===0&&s.ctrlKey===!0;(s.button===2||i)&&a.preventDefault()}),onFocusOutside:j(e.onFocusOutside,a=>a.preventDefault())})}),Qp=d.forwardRef((e,t)=>{const n=he(Fe,e.__scopeDialog),r=d.useRef(!1),o=d.useRef(!1);return m.jsx(zs,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(r.current||n.triggerRef.current?.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;n.triggerRef.current?.contains(s)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),zs=d.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...s}=e,i=he(Fe,n),l=d.useRef(null),c=Q(t,l);return fo(),m.jsxs(m.Fragment,{children:[m.jsx(_n,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:m.jsx(At,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":ur(i.open),...s,ref:c,onDismiss:()=>i.onOpenChange(!1)})}),m.jsxs(m.Fragment,{children:[m.jsx(em,{titleId:i.titleId}),m.jsx(nm,{contentRef:l,descriptionId:i.descriptionId})]})]})}),lr="DialogTitle",Vs=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=he(lr,n);return m.jsx(Y.h2,{id:o.titleId,...r,ref:t})});Vs.displayName=lr;var Bs="DialogDescription",Gs=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=he(Bs,n);return m.jsx(Y.p,{id:o.descriptionId,...r,ref:t})});Gs.displayName=Bs;var Ws="DialogClose",Us=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=he(Ws,n);return m.jsx(Y.button,{type:"button",...r,ref:t,onClick:j(e.onClick,()=>o.onOpenChange(!1))})});Us.displayName=Ws;function ur(e){return e?"open":"closed"}var Hs="DialogTitleWarning",[Tg,Ks]=fi(Hs,{contentName:Fe,titleName:lr,docsSlug:"dialog"}),em=({titleId:e})=>{const t=Ks(Hs),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
50
|
+
`)},Wd=0,Qe=[];function Ud(e){var t=d.useRef([]),r=d.useRef([0,0]),n=d.useRef(),o=d.useState(Wd++)[0],a=d.useState(ya)[0],s=d.useRef(e);d.useEffect(function(){s.current=e},[e]),d.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var h=fd([e.lockRef.current],(e.shards||[]).map(Ra),!0).filter(Boolean);return h.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),h.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=d.useCallback(function(h,b){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!s.current.allowPinchZoom;var y=Kt(h),x=r.current,C="deltaX"in h?h.deltaX:x[0]-y[0],w="deltaY"in h?h.deltaY:x[1]-y[1],E,P=h.target,A=Math.abs(C)>Math.abs(w)?"h":"v";if("touches"in h&&A==="h"&&P.type==="range")return!1;var R=window.getSelection(),L=R&&R.anchorNode,B=L?L===P||L.contains(P):!1;if(B)return!1;var U=Sa(A,P);if(!U)return!0;if(U?E=A:(E=A==="v"?"h":"v",U=Sa(A,P)),!U)return!1;if(!n.current&&"changedTouches"in h&&(C||w)&&(n.current=E),!E)return!0;var H=n.current||E;return Vd(H,b,h,H==="h"?C:w)},[]),l=d.useCallback(function(h){var b=h;if(!(!Qe.length||Qe[Qe.length-1]!==a)){var y="deltaY"in b?_a(b):Kt(b),x=t.current.filter(function(E){return E.name===b.type&&(E.target===b.target||b.target===E.shadowParent)&&Bd(E.delta,y)})[0];if(x&&x.should){b.cancelable&&b.preventDefault();return}if(!x){var C=(s.current.shards||[]).map(Ra).filter(Boolean).filter(function(E){return E.contains(b.target)}),w=C.length>0?i(b,C[0]):!s.current.noIsolation;w&&b.cancelable&&b.preventDefault()}}},[]),c=d.useCallback(function(h,b,y,x){var C={name:h,delta:b,target:y,should:x,shadowParent:Hd(y)};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(w){return w!==C})},1)},[]),p=d.useCallback(function(h){r.current=Kt(h),n.current=void 0},[]),u=d.useCallback(function(h){c(h.type,_a(h),h.target,i(h,e.lockRef.current))},[]),f=d.useCallback(function(h){c(h.type,Kt(h),h.target,i(h,e.lockRef.current))},[]);d.useEffect(function(){return Qe.push(a),e.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:f}),document.addEventListener("wheel",l,Je),document.addEventListener("touchmove",l,Je),document.addEventListener("touchstart",p,Je),function(){Qe=Qe.filter(function(h){return h!==a}),document.removeEventListener("wheel",l,Je),document.removeEventListener("touchmove",l,Je),document.removeEventListener("touchstart",p,Je)}},[]);var g=e.removeScrollBar,v=e.inert;return d.createElement(d.Fragment,null,v?d.createElement(a,{styles:Gd(o)}):null,g?d.createElement(Dd,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Hd(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Kd=wd(ba,Ud);var Kr=d.forwardRef(function(e,t){return d.createElement(Ut,Se({},e,{ref:t,sideCar:Kd}))});Kr.classNames=Ut.classNames;var Yr=["Enter"," "],Yd=["ArrowDown","PageUp","Home"],Oa=["ArrowUp","PageDown","End"],Xd=[...Yd,...Oa],qd={ltr:[...Yr,"ArrowRight"],rtl:[...Yr,"ArrowLeft"]},Zd={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ut="Menu",[dt,Jd,Qd]=po(ut),[je,Aa]=Ee(ut,[Qd,$t,ca]),ft=$t(),Ma=ca(),[Pa,Ne]=je(ut),[ef,pt]=je(ut),Ta=e=>{const{__scopeMenu:t,open:r=!1,children:n,dir:o,onOpenChange:a,modal:s=!0}=e,i=ft(t),[l,c]=d.useState(null),p=d.useRef(!1),u=fe(a),f=mo(o);return d.useEffect(()=>{const g=()=>{p.current=!0,document.addEventListener("pointerdown",v,{capture:!0,once:!0}),document.addEventListener("pointermove",v,{capture:!0,once:!0})},v=()=>p.current=!1;return document.addEventListener("keydown",g,{capture:!0}),()=>{document.removeEventListener("keydown",g,{capture:!0}),document.removeEventListener("pointerdown",v,{capture:!0}),document.removeEventListener("pointermove",v,{capture:!0})}},[]),m.jsx($r,{...i,children:m.jsx(Pa,{scope:t,open:r,onOpenChange:u,content:l,onContentChange:c,children:m.jsx(ef,{scope:t,onClose:d.useCallback(()=>u(!1),[u]),isUsingKeyboardRef:p,dir:f,modal:s,children:n})})})};Ta.displayName=ut;var tf="MenuAnchor",Xr=d.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,o=ft(r);return m.jsx(oa,{...o,...n,ref:t})});Xr.displayName=tf;var qr="MenuPortal",[rf,ka]=je(qr,{forceMount:void 0}),Na=e=>{const{__scopeMenu:t,forceMount:r,children:n,container:o}=e,a=Ne(qr,t);return m.jsx(rf,{scope:t,forceMount:r,children:m.jsx(pe,{present:r||a.open,children:m.jsx(zt,{asChild:!0,container:o,children:n})})})};Na.displayName=qr;var de="MenuContent",[nf,Zr]=je(de),Da=d.forwardRef((e,t)=>{const r=ka(de,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,a=Ne(de,e.__scopeMenu),s=pt(de,e.__scopeMenu);return m.jsx(dt.Provider,{scope:e.__scopeMenu,children:m.jsx(pe,{present:n||a.open,children:m.jsx(dt.Slot,{scope:e.__scopeMenu,children:s.modal?m.jsx(of,{...o,ref:t}):m.jsx(af,{...o,ref:t})})})})}),of=d.forwardRef((e,t)=>{const r=Ne(de,e.__scopeMenu),n=d.useRef(null),o=Q(t,n);return d.useEffect(()=>{const a=n.current;if(a)return ma(a)},[]),m.jsx(Jr,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:j(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),af=d.forwardRef((e,t)=>{const r=Ne(de,e.__scopeMenu);return m.jsx(Jr,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),sf=ze("MenuContent.ScrollLock"),Jr=d.forwardRef((e,t)=>{const{__scopeMenu:r,loop:n=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:i,onEntryFocus:l,onEscapeKeyDown:c,onPointerDownOutside:p,onFocusOutside:u,onInteractOutside:f,onDismiss:g,disableOutsideScroll:v,...h}=e,b=Ne(de,r),y=pt(de,r),x=ft(r),C=Ma(r),w=Jd(r),[E,P]=d.useState(null),A=d.useRef(null),R=Q(t,A,b.onContentChange),L=d.useRef(0),B=d.useRef(""),U=d.useRef(0),H=d.useRef(null),X=d.useRef("right"),W=d.useRef(0),Z=v?Kr:d.Fragment,F=v?{as:sf,allowPinchZoom:!0}:void 0,K=N=>{const S=B.current+N,I=w().filter($=>!$.disabled),G=document.activeElement,V=I.find($=>$.ref.current===G)?.textValue,q=I.map($=>$.textValue),ee=yf(q,S,V),se=I.find($=>$.textValue===ee)?.ref.current;(function $(J){B.current=J,window.clearTimeout(L.current),J!==""&&(L.current=window.setTimeout(()=>$(""),1e3))})(S),se&&setTimeout(()=>se.focus())};d.useEffect(()=>()=>window.clearTimeout(L.current),[]),yo();const _=d.useCallback(N=>X.current===H.current?.side&&wf(N,H.current?.area),[]);return m.jsx(nf,{scope:r,searchRef:B,onItemEnter:d.useCallback(N=>{_(N)&&N.preventDefault()},[_]),onItemLeave:d.useCallback(N=>{_(N)||(A.current?.focus(),P(null))},[_]),onTriggerLeave:d.useCallback(N=>{_(N)&&N.preventDefault()},[_]),pointerGraceTimerRef:U,onPointerGraceIntentChange:d.useCallback(N=>{H.current=N},[]),children:m.jsx(Z,{...F,children:m.jsx(_r,{asChild:!0,trapped:o,onMountAutoFocus:j(a,N=>{N.preventDefault(),A.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:m.jsx(At,{asChild:!0,disableOutsidePointerEvents:i,onEscapeKeyDown:c,onPointerDownOutside:p,onFocusOutside:u,onInteractOutside:f,onDismiss:g,children:m.jsx(id,{asChild:!0,...C,dir:y.dir,orientation:"vertical",loop:n,currentTabStopId:E,onCurrentTabStopIdChange:P,onEntryFocus:j(l,N=>{y.isUsingKeyboardRef.current||N.preventDefault()}),preventScrollOnEntryFocus:!0,children:m.jsx(aa,{role:"menu","aria-orientation":"vertical","data-state":Ja(b.open),"data-radix-menu-content":"",dir:y.dir,...x,...h,ref:R,style:{outline:"none",...h.style},onKeyDown:j(h.onKeyDown,N=>{const I=N.target.closest("[data-radix-menu-content]")===N.currentTarget,G=N.ctrlKey||N.altKey||N.metaKey,V=N.key.length===1;I&&(N.key==="Tab"&&N.preventDefault(),!G&&V&&K(N.key));const q=A.current;if(N.target!==q||!Xd.includes(N.key))return;N.preventDefault();const se=w().filter($=>!$.disabled).map($=>$.ref.current);Oa.includes(N.key)&&se.reverse(),vf(se)}),onBlur:j(e.onBlur,N=>{N.currentTarget.contains(N.target)||(window.clearTimeout(L.current),B.current="")}),onPointerMove:j(e.onPointerMove,gt(N=>{const S=N.target,I=W.current!==N.clientX;if(N.currentTarget.contains(S)&&I){const G=N.clientX>W.current?"right":"left";X.current=G,W.current=N.clientX}}))})})})})})})});Da.displayName=de;var cf="MenuGroup",Qr=d.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return m.jsx(Y.div,{role:"group",...n,ref:t})});Qr.displayName=cf;var lf="MenuLabel",Ia=d.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return m.jsx(Y.div,{...n,ref:t})});Ia.displayName=lf;var Yt="MenuItem",ja="menu.itemSelect",Xt=d.forwardRef((e,t)=>{const{disabled:r=!1,onSelect:n,...o}=e,a=d.useRef(null),s=pt(Yt,e.__scopeMenu),i=Zr(Yt,e.__scopeMenu),l=Q(t,a),c=d.useRef(!1),p=()=>{const u=a.current;if(!r&&u){const f=new CustomEvent(ja,{bubbles:!0,cancelable:!0});u.addEventListener(ja,g=>n?.(g),{once:!0}),On(u,f),f.defaultPrevented?c.current=!1:s.onClose()}};return m.jsx(La,{...o,ref:l,disabled:r,onClick:j(e.onClick,p),onPointerDown:u=>{e.onPointerDown?.(u),c.current=!0},onPointerUp:j(e.onPointerUp,u=>{c.current||u.currentTarget?.click()}),onKeyDown:j(e.onKeyDown,u=>{const f=i.searchRef.current!=="";r||f&&u.key===" "||Yr.includes(u.key)&&(u.currentTarget.click(),u.preventDefault())})})});Xt.displayName=Yt;var La=d.forwardRef((e,t)=>{const{__scopeMenu:r,disabled:n=!1,textValue:o,...a}=e,s=Zr(Yt,r),i=Ma(r),l=d.useRef(null),c=Q(t,l),[p,u]=d.useState(!1),[f,g]=d.useState("");return d.useEffect(()=>{const v=l.current;v&&g((v.textContent??"").trim())},[a.children]),m.jsx(dt.ItemSlot,{scope:r,disabled:n,textValue:o??f,children:m.jsx(cd,{asChild:!0,...i,focusable:!n,children:m.jsx(Y.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0,...a,ref:c,onPointerMove:j(e.onPointerMove,gt(v=>{n?s.onItemLeave(v):(s.onItemEnter(v),v.defaultPrevented||v.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:j(e.onPointerLeave,gt(v=>s.onItemLeave(v))),onFocus:j(e.onFocus,()=>u(!0)),onBlur:j(e.onBlur,()=>u(!1))})})})}),uf="MenuCheckboxItem",Fa=d.forwardRef((e,t)=>{const{checked:r=!1,onCheckedChange:n,...o}=e;return m.jsx(Ga,{scope:e.__scopeMenu,checked:r,children:m.jsx(Xt,{role:"menuitemcheckbox","aria-checked":qt(r)?"mixed":r,...o,ref:t,"data-state":rn(r),onSelect:j(o.onSelect,()=>n?.(qt(r)?!0:!r),{checkForDefaultPrevented:!1})})})});Fa.displayName=uf;var $a="MenuRadioGroup",[df,ff]=je($a,{value:void 0,onValueChange:()=>{}}),za=d.forwardRef((e,t)=>{const{value:r,onValueChange:n,...o}=e,a=fe(n);return m.jsx(df,{scope:e.__scopeMenu,value:r,onValueChange:a,children:m.jsx(Qr,{...o,ref:t})})});za.displayName=$a;var Va="MenuRadioItem",Ba=d.forwardRef((e,t)=>{const{value:r,...n}=e,o=ff(Va,e.__scopeMenu),a=r===o.value;return m.jsx(Ga,{scope:e.__scopeMenu,checked:a,children:m.jsx(Xt,{role:"menuitemradio","aria-checked":a,...n,ref:t,"data-state":rn(a),onSelect:j(n.onSelect,()=>o.onValueChange?.(r),{checkForDefaultPrevented:!1})})})});Ba.displayName=Va;var en="MenuItemIndicator",[Ga,pf]=je(en,{checked:!1}),Wa=d.forwardRef((e,t)=>{const{__scopeMenu:r,forceMount:n,...o}=e,a=pf(en,r);return m.jsx(pe,{present:n||qt(a.checked)||a.checked===!0,children:m.jsx(Y.span,{...o,ref:t,"data-state":rn(a.checked)})})});Wa.displayName=en;var mf="MenuSeparator",Ua=d.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return m.jsx(Y.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});Ua.displayName=mf;var gf="MenuArrow",Ha=d.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,o=ft(r);return m.jsx(sa,{...o,...n,ref:t})});Ha.displayName=gf;var tn="MenuSub",[hf,Ka]=je(tn),Ya=e=>{const{__scopeMenu:t,children:r,open:n=!1,onOpenChange:o}=e,a=Ne(tn,t),s=ft(t),[i,l]=d.useState(null),[c,p]=d.useState(null),u=fe(o);return d.useEffect(()=>(a.open===!1&&u(!1),()=>u(!1)),[a.open,u]),m.jsx($r,{...s,children:m.jsx(Pa,{scope:t,open:n,onOpenChange:u,content:c,onContentChange:p,children:m.jsx(hf,{scope:t,contentId:ve(),triggerId:ve(),trigger:i,onTriggerChange:l,children:r})})})};Ya.displayName=tn;var mt="MenuSubTrigger",Xa=d.forwardRef((e,t)=>{const r=Ne(mt,e.__scopeMenu),n=pt(mt,e.__scopeMenu),o=Ka(mt,e.__scopeMenu),a=Zr(mt,e.__scopeMenu),s=d.useRef(null),{pointerGraceTimerRef:i,onPointerGraceIntentChange:l}=a,c={__scopeMenu:e.__scopeMenu},p=d.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return d.useEffect(()=>p,[p]),d.useEffect(()=>{const u=i.current;return()=>{window.clearTimeout(u),l(null)}},[i,l]),m.jsx(Xr,{asChild:!0,...c,children:m.jsx(La,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":o.contentId,"data-state":Ja(r.open),...e,ref:ot(t,o.onTriggerChange),onClick:u=>{e.onClick?.(u),!(e.disabled||u.defaultPrevented)&&(u.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:j(e.onPointerMove,gt(u=>{a.onItemEnter(u),!u.defaultPrevented&&!e.disabled&&!r.open&&!s.current&&(a.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{r.onOpenChange(!0),p()},100))})),onPointerLeave:j(e.onPointerLeave,gt(u=>{p();const f=r.content?.getBoundingClientRect();if(f){const g=r.content?.dataset.side,v=g==="right",h=v?-5:5,b=f[v?"left":"right"],y=f[v?"right":"left"];a.onPointerGraceIntentChange({area:[{x:u.clientX+h,y:u.clientY},{x:b,y:f.top},{x:y,y:f.top},{x:y,y:f.bottom},{x:b,y:f.bottom}],side:g}),window.clearTimeout(i.current),i.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(u),u.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:j(e.onKeyDown,u=>{const f=a.searchRef.current!=="";e.disabled||f&&u.key===" "||qd[n.dir].includes(u.key)&&(r.onOpenChange(!0),r.content?.focus(),u.preventDefault())})})})});Xa.displayName=mt;var qa="MenuSubContent",Za=d.forwardRef((e,t)=>{const r=ka(de,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,a=Ne(de,e.__scopeMenu),s=pt(de,e.__scopeMenu),i=Ka(qa,e.__scopeMenu),l=d.useRef(null),c=Q(t,l);return m.jsx(dt.Provider,{scope:e.__scopeMenu,children:m.jsx(pe,{present:n||a.open,children:m.jsx(dt.Slot,{scope:e.__scopeMenu,children:m.jsx(Jr,{id:i.contentId,"aria-labelledby":i.triggerId,...o,ref:c,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:p=>{s.isUsingKeyboardRef.current&&l.current?.focus(),p.preventDefault()},onCloseAutoFocus:p=>p.preventDefault(),onFocusOutside:j(e.onFocusOutside,p=>{p.target!==i.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:j(e.onEscapeKeyDown,p=>{s.onClose(),p.preventDefault()}),onKeyDown:j(e.onKeyDown,p=>{const u=p.currentTarget.contains(p.target),f=Zd[s.dir].includes(p.key);u&&f&&(a.onOpenChange(!1),i.trigger?.focus(),p.preventDefault())})})})})})});Za.displayName=qa;function Ja(e){return e?"open":"closed"}function qt(e){return e==="indeterminate"}function rn(e){return qt(e)?"indeterminate":e?"checked":"unchecked"}function vf(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function bf(e,t){return e.map((r,n)=>e[(t+n)%e.length])}function yf(e,t,r){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,a=r?e.indexOf(r):-1;let s=bf(e,Math.max(a,0));o.length===1&&(s=s.filter(c=>c!==r));const l=s.find(c=>c.toLowerCase().startsWith(o.toLowerCase()));return l!==r?l:void 0}function xf(e,t){const{x:r,y:n}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const i=t[a],l=t[s],c=i.x,p=i.y,u=l.x,f=l.y;p>n!=f>n&&r<(u-c)*(n-p)/(f-p)+c&&(o=!o)}return o}function wf(e,t){if(!t)return!1;const r={x:e.clientX,y:e.clientY};return xf(r,t)}function gt(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Sf=Ta,Cf=Xr,Ef=Na,_f=Da,Rf=Qr,Of=Ia,Af=Xt,Mf=Fa,Pf=za,Tf=Ba,kf=Wa,Nf=Ua,Df=Ha,If=Ya,jf=Xa,Lf=Za,Zt="DropdownMenu",[Ff,nh]=Ee(Zt,[Aa]),oe=Aa(),[$f,Qa]=Ff(Zt),es=e=>{const{__scopeDropdownMenu:t,children:r,dir:n,open:o,defaultOpen:a,onOpenChange:s,modal:i=!0}=e,l=oe(t),c=d.useRef(null),[p,u]=Ue({prop:o,defaultProp:a??!1,onChange:s,caller:Zt});return m.jsx($f,{scope:t,triggerId:ve(),triggerRef:c,contentId:ve(),open:p,onOpenChange:u,onOpenToggle:d.useCallback(()=>u(f=>!f),[u]),modal:i,children:m.jsx(Sf,{...l,open:p,onOpenChange:u,dir:n,modal:i,children:r})})};es.displayName=Zt;var ts="DropdownMenuTrigger",rs=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,disabled:n=!1,...o}=e,a=Qa(ts,r),s=oe(r);return m.jsx(Cf,{asChild:!0,...s,children:m.jsx(Y.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...o,ref:ot(t,a.triggerRef),onPointerDown:j(e.onPointerDown,i=>{!n&&i.button===0&&i.ctrlKey===!1&&(a.onOpenToggle(),a.open||i.preventDefault())}),onKeyDown:j(e.onKeyDown,i=>{n||(["Enter"," "].includes(i.key)&&a.onOpenToggle(),i.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(i.key)&&i.preventDefault())})})})});rs.displayName=ts;var zf="DropdownMenuPortal",ns=e=>{const{__scopeDropdownMenu:t,...r}=e,n=oe(t);return m.jsx(Ef,{...n,...r})};ns.displayName=zf;var os="DropdownMenuContent",as=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Qa(os,r),a=oe(r),s=d.useRef(!1);return m.jsx(_f,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...n,ref:t,onCloseAutoFocus:j(e.onCloseAutoFocus,i=>{s.current||o.triggerRef.current?.focus(),s.current=!1,i.preventDefault()}),onInteractOutside:j(e.onInteractOutside,i=>{const l=i.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,p=l.button===2||c;(!o.modal||p)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});as.displayName=os;var Vf="DropdownMenuGroup",ss=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=oe(r);return m.jsx(Rf,{...o,...n,ref:t})});ss.displayName=Vf;var Bf="DropdownMenuLabel",is=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=oe(r);return m.jsx(Of,{...o,...n,ref:t})});is.displayName=Bf;var Gf="DropdownMenuItem",cs=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=oe(r);return m.jsx(Af,{...o,...n,ref:t})});cs.displayName=Gf;var Wf="DropdownMenuCheckboxItem",ls=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=oe(r);return m.jsx(Mf,{...o,...n,ref:t})});ls.displayName=Wf;var Uf="DropdownMenuRadioGroup",us=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=oe(r);return m.jsx(Pf,{...o,...n,ref:t})});us.displayName=Uf;var Hf="DropdownMenuRadioItem",ds=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=oe(r);return m.jsx(Tf,{...o,...n,ref:t})});ds.displayName=Hf;var Kf="DropdownMenuItemIndicator",fs=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=oe(r);return m.jsx(kf,{...o,...n,ref:t})});fs.displayName=Kf;var Yf="DropdownMenuSeparator",ps=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=oe(r);return m.jsx(Nf,{...o,...n,ref:t})});ps.displayName=Yf;var Xf="DropdownMenuArrow",qf=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=oe(r);return m.jsx(Df,{...o,...n,ref:t})});qf.displayName=Xf;var Zf=e=>{const{__scopeDropdownMenu:t,children:r,open:n,onOpenChange:o,defaultOpen:a}=e,s=oe(t),[i,l]=Ue({prop:n,defaultProp:a??!1,onChange:o,caller:"DropdownMenuSub"});return m.jsx(If,{...s,open:i,onOpenChange:l,children:r})},Jf="DropdownMenuSubTrigger",ms=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=oe(r);return m.jsx(jf,{...o,...n,ref:t})});ms.displayName=Jf;var Qf="DropdownMenuSubContent",gs=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=oe(r);return m.jsx(Lf,{...o,...n,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});gs.displayName=Qf;var ep=es,tp=rs,hs=ns,rp=as,np=ss,op=is,ap=cs,sp=ls,ip=us,cp=ds,vs=fs,lp=ps,up=Zf,dp=ms,fp=gs;function pp({...e}){return m.jsx(ep,{"data-slot":"dropdown-menu",...e})}function mp({...e}){return m.jsx(hs,{"data-slot":"dropdown-menu-portal",...e})}function gp({...e}){return m.jsx(tp,{"data-slot":"dropdown-menu-trigger",...e})}function hp({className:e,sideOffset:t=4,...r}){return m.jsx(hs,{children:m.jsx(rp,{"data-slot":"dropdown-menu-content",sideOffset:t,className:M("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",e),...r})})}function vp({...e}){return m.jsx(np,{"data-slot":"dropdown-menu-group",...e})}function bp({className:e,inset:t,variant:r="default",...n}){return m.jsx(ap,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":r,className:M("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...n})}function yp({className:e,children:t,checked:r,...n}){return m.jsxs(sp,{"data-slot":"dropdown-menu-checkbox-item",className:M("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),checked:r,...n,children:[m.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:m.jsx(vs,{children:m.jsx(Ic,{className:"size-4"})})}),t]})}function xp({...e}){return m.jsx(ip,{"data-slot":"dropdown-menu-radio-group",...e})}function wp({className:e,children:t,...r}){return m.jsxs(cp,{"data-slot":"dropdown-menu-radio-item",className:M("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r,children:[m.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:m.jsx(vs,{children:m.jsx(jc,{className:"size-2 fill-current"})})}),t]})}function Sp({className:e,inset:t,...r}){return m.jsx(op,{"data-slot":"dropdown-menu-label","data-inset":t,className:M("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",e),...r})}function Cp({className:e,...t}){return m.jsx(lp,{"data-slot":"dropdown-menu-separator",className:M("bg-border -mx-1 my-1 h-px",e),...t})}function Ep({className:e,...t}){return m.jsx("span",{"data-slot":"dropdown-menu-shortcut",className:M("text-muted-foreground ml-auto text-xs tracking-widest",e),...t})}function _p({...e}){return m.jsx(up,{"data-slot":"dropdown-menu-sub",...e})}function Rp({className:e,inset:t,children:r,...n}){return m.jsxs(dp,{"data-slot":"dropdown-menu-sub-trigger","data-inset":t,className:M("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...n,children:[r,m.jsx(ao,{className:"ml-auto size-4"})]})}function Op({className:e,...t}){return m.jsx(fp,{"data-slot":"dropdown-menu-sub-content",className:M("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",e),...t})}var Ap="Label",bs=d.forwardRef((e,t)=>m.jsx(Y.label,{...e,ref:t,onMouseDown:r=>{r.target.closest("button, input, select, textarea")||(e.onMouseDown?.(r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));bs.displayName=Ap;var Mp=bs,Pp=e=>e.type==="checkbox",ht=e=>e instanceof Date,nn=e=>e==null;const ys=e=>typeof e=="object";var Le=e=>!nn(e)&&!Array.isArray(e)&&ys(e)&&!ht(e),Tp=e=>Le(e)&&e.target?Pp(e.target)?e.target.checked:e.target.value:e,kp=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Np=(e,t)=>e.has(kp(t)),Dp=e=>{const t=e.constructor&&e.constructor.prototype;return Le(t)&&t.hasOwnProperty("isPrototypeOf")},Ip=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function xs(e){let t;const r=Array.isArray(e),n=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(!(Ip&&(e instanceof Blob||n))&&(r||Le(e)))if(t=r?[]:Object.create(Object.getPrototypeOf(e)),!r&&!Dp(e))t=e;else for(const o in e)e.hasOwnProperty(o)&&(t[o]=xs(e[o]));else return e;return t}var ws=e=>/^\w*$/.test(e),on=e=>e===void 0,jp=e=>Array.isArray(e)?e.filter(Boolean):[],Ss=e=>jp(e.replace(/["|']|\]/g,"").split(/\.|\[/)),ae=(e,t,r)=>{if(!t||!Le(e))return r;const n=(ws(t)?[t]:Ss(t)).reduce((o,a)=>nn(o)?o:o[a],e);return on(n)||n===e?on(e[t])?r:e[t]:n},an=e=>typeof e=="boolean",Cs=(e,t,r)=>{let n=-1;const o=ws(t)?[t]:Ss(t),a=o.length,s=a-1;for(;++n<a;){const i=o[n];let l=r;if(n!==s){const c=e[i];l=Le(c)||Array.isArray(c)?c:isNaN(+o[n+1])?{}:[]}if(i==="__proto__"||i==="constructor"||i==="prototype")return;e[i]=l,e=e[i]}};const Es={BLUR:"blur",CHANGE:"change"},_s={all:"all"},sn=D.createContext(null);sn.displayName="HookFormContext";const Jt=()=>D.useContext(sn),Lp=e=>{const{children:t,...r}=e;return D.createElement(sn.Provider,{value:r},t)};var Fp=(e,t,r,n=!0)=>{const o={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(o,a,{get:()=>{const s=a;return t._proxyFormState[s]!==_s.all&&(t._proxyFormState[s]=!n||_s.all),r&&(r[s]=!0),e[s]}});return o};const Rs=typeof window<"u"?D.useLayoutEffect:D.useEffect;function Os(e){const t=Jt(),{control:r=t.control,disabled:n,name:o,exact:a}=e||{},[s,i]=D.useState(r._formState),l=D.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Rs(()=>r._subscribe({name:o,formState:l.current,exact:a,callback:c=>{!n&&i({...r._formState,...c})}}),[o,n,a]),D.useEffect(()=>{l.current.isValid&&r._setValid(!0)},[r]),D.useMemo(()=>Fp(s,r,l.current,!1),[s,r])}var $p=e=>typeof e=="string",As=(e,t,r,n,o)=>$p(e)?ae(r,e,o):Array.isArray(e)?e.map(a=>ae(r,a)):r,Ms=e=>nn(e)||!ys(e);function Qt(e,t,r=new WeakSet){if(Ms(e)||Ms(t))return Object.is(e,t);if(ht(e)&&ht(t))return e.getTime()===t.getTime();const n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;if(r.has(e)||r.has(t))return!0;r.add(e),r.add(t);for(const a of n){const s=e[a];if(!o.includes(a))return!1;if(a!=="ref"){const i=t[a];if(ht(s)&&ht(i)||Le(s)&&Le(i)||Array.isArray(s)&&Array.isArray(i)?!Qt(s,i,r):!Object.is(s,i))return!1}}return!0}function zp(e){const t=Jt(),{control:r=t.control,name:n,defaultValue:o,disabled:a,exact:s,compute:i}=e||{},l=D.useRef(o),c=D.useRef(i),p=D.useRef(void 0),u=D.useRef(r),f=D.useRef(n);c.current=i;const[g,v]=D.useState(()=>{const w=r._getWatch(n,l.current);return c.current?c.current(w):w}),h=D.useCallback(w=>{const E=As(n,r._names,w||r._formValues,!1,l.current);return c.current?c.current(E):E},[r._formValues,r._names,n]),b=D.useCallback(w=>{if(!a){const E=As(n,r._names,w||r._formValues,!1,l.current);if(c.current){const P=c.current(E);Qt(P,p.current)||(v(P),p.current=P)}else v(E)}},[r._formValues,r._names,a,n]);Rs(()=>((u.current!==r||!Qt(f.current,n))&&(u.current=r,f.current=n,b()),r._subscribe({name:n,formState:{values:!0},exact:s,callback:w=>{b(w.values)}})),[r,s,n,b]),D.useEffect(()=>r._removeUnmounted());const y=u.current!==r,x=f.current,C=D.useMemo(()=>{if(a)return null;const w=!y&&!Qt(x,n);return y||w?h():null},[a,y,n,x,h]);return C!==null?C:g}function Vp(e){const t=Jt(),{name:r,disabled:n,control:o=t.control,shouldUnregister:a,defaultValue:s,exact:i=!0}=e,l=Np(o._names.array,r),c=D.useMemo(()=>ae(o._formValues,r,ae(o._defaultValues,r,s)),[o,r,s]),p=zp({control:o,name:r,defaultValue:c,exact:i}),u=Os({control:o,name:r,exact:i}),f=D.useRef(e),g=D.useRef(void 0),v=D.useRef(o.register(r,{...e.rules,value:p,...an(e.disabled)?{disabled:e.disabled}:{}}));f.current=e;const h=D.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!ae(u.errors,r)},isDirty:{enumerable:!0,get:()=>!!ae(u.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!ae(u.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!ae(u.validatingFields,r)},error:{enumerable:!0,get:()=>ae(u.errors,r)}}),[u,r]),b=D.useCallback(w=>v.current.onChange({target:{value:Tp(w),name:r},type:Es.CHANGE}),[r]),y=D.useCallback(()=>v.current.onBlur({target:{value:ae(o._formValues,r),name:r},type:Es.BLUR}),[r,o._formValues]),x=D.useCallback(w=>{const E=ae(o._fields,r);E&&w&&(E._f.ref={focus:()=>w.focus&&w.focus(),select:()=>w.select&&w.select(),setCustomValidity:P=>w.setCustomValidity(P),reportValidity:()=>w.reportValidity()})},[o._fields,r]),C=D.useMemo(()=>({name:r,value:p,...an(n)||u.disabled?{disabled:u.disabled||n}:{},onChange:b,onBlur:y,ref:x}),[r,n,u.disabled,b,y,x,p]);return D.useEffect(()=>{const w=o._options.shouldUnregister||a,E=g.current;E&&E!==r&&!l&&o.unregister(E),o.register(r,{...f.current.rules,...an(f.current.disabled)?{disabled:f.current.disabled}:{}});const P=(A,R)=>{const L=ae(o._fields,A);L&&L._f&&(L._f.mount=R)};if(P(r,!0),w){const A=xs(ae(o._options.defaultValues,r,f.current.defaultValue));Cs(o._defaultValues,r,A),on(ae(o._formValues,r))&&Cs(o._formValues,r,A)}return!l&&o.register(r),g.current=r,()=>{(l?w&&!o._state.action:w)?o.unregister(r):P(r,!1)}},[r,o,l,a]),D.useEffect(()=>{o._setDisabledField({disabled:n,name:r})},[n,r,o]),D.useMemo(()=>({field:C,formState:u,fieldState:h}),[C,u,h])}const Bp=e=>e.render(Vp(e));function Ps({className:e,...t}){return m.jsx(Mp,{"data-slot":"label",className:M("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}const Gp=Lp,Ts=d.createContext({}),Wp=({...e})=>m.jsx(Ts.Provider,{value:{name:e.name},children:m.jsx(Bp,{...e})}),vt=()=>{const e=d.useContext(Ts),t=d.useContext(ks),{getFieldState:r}=Jt(),n=Os({name:e.name}),o=r(e.name,n);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:a}=t;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...o}},ks=d.createContext({});function Up({className:e,...t}){const r=d.useId();return m.jsx(ks.Provider,{value:{id:r},children:m.jsx("div",{"data-slot":"form-item",className:M("grid gap-2",e),...t})})}function Hp({className:e,...t}){const{error:r,formItemId:n}=vt();return m.jsx(Ps,{"data-slot":"form-label","data-error":!!r,className:M("data-[error=true]:text-destructive",e),htmlFor:n,...t})}function Kp({...e}){const{error:t,formItemId:r,formDescriptionId:n,formMessageId:o}=vt();return m.jsx(_e,{"data-slot":"form-control",id:r,"aria-describedby":t?`${n} ${o}`:`${n}`,"aria-invalid":!!t,...e})}function Yp({className:e,...t}){const{formDescriptionId:r}=vt();return m.jsx("p",{"data-slot":"form-description",id:r,className:M("text-muted-foreground text-sm",e),...t})}function Xp({className:e,...t}){const{error:r,formMessageId:n}=vt(),o=r?String(r?.message??""):t.children;return o?m.jsx("p",{"data-slot":"form-message",id:n,className:M("text-destructive text-sm",e),...t,children:o}):null}function Ns({className:e,type:t,...r}){return m.jsx("input",{type:t,"data-slot":"input",className:M("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...r})}function qp(e,t=[]){let r=[];function n(a,s){const i=d.createContext(s);i.displayName=a+"Context";const l=r.length;r=[...r,s];const c=u=>{const{scope:f,children:g,...v}=u,h=f?.[e]?.[l]||i,b=d.useMemo(()=>v,Object.values(v));return m.jsx(h.Provider,{value:b,children:g})};c.displayName=a+"Provider";function p(u,f){const g=f?.[e]?.[l]||i,v=d.useContext(g);if(v)return v;if(s!==void 0)return s;throw new Error(`\`${u}\` must be used within \`${a}\``)}return[c,p]}const o=()=>{const a=r.map(s=>d.createContext(s));return function(i){const l=i?.[e]||a;return d.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return o.scopeName=e,[n,Zp(o,...t)]}function Zp(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const s=n.reduce((i,{useScope:l,scopeName:c})=>{const u=l(a)[`__scope${c}`];return{...i,...u}},{});return d.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}var Jp=Symbol.for("react.lazy"),er=d[" use ".trim().toString()];function Qp(e){return typeof e=="object"&&e!==null&&"then"in e}function Ds(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Jp&&"_payload"in e&&Qp(e._payload)}function em(e){const t=tm(e),r=d.forwardRef((n,o)=>{let{children:a,...s}=n;Ds(a)&&typeof er=="function"&&(a=er(a._payload));const i=d.Children.toArray(a),l=i.find(nm);if(l){const c=l.props.children,p=i.map(u=>u===l?d.Children.count(c)>1?d.Children.only(null):d.isValidElement(c)?c.props.children:null:u);return m.jsx(t,{...s,ref:o,children:d.isValidElement(c)?d.cloneElement(c,void 0,p):null})}return m.jsx(t,{...s,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}function tm(e){const t=d.forwardRef((r,n)=>{let{children:o,...a}=r;if(Ds(o)&&typeof er=="function"&&(o=er(o._payload)),d.isValidElement(o)){const s=am(o),i=om(a,o.props);return o.type!==d.Fragment&&(i.ref=n?ot(n,s):s),d.cloneElement(o,i)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var rm=Symbol("radix.slottable");function nm(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===rm}function om(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...i)=>{const l=a(...i);return o(...i),l}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function am(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var sm=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],cn=sm.reduce((e,t)=>{const r=em(`Primitive.${t}`),n=d.forwardRef((o,a)=>{const{asChild:s,...i}=o,l=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(l,{...i,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),ln="Progress",un=100,[im,oh]=qp(ln),[cm,lm]=im(ln),Is=d.forwardRef((e,t)=>{const{__scopeProgress:r,value:n=null,max:o,getValueLabel:a=um,...s}=e;(o||o===0)&&!$s(o)&&console.error(dm(`${o}`,"Progress"));const i=$s(o)?o:un;n!==null&&!zs(n,i)&&console.error(fm(`${n}`,"Progress"));const l=zs(n,i)?n:null,c=tr(l)?a(l,i):void 0;return m.jsx(cm,{scope:r,value:l,max:i,children:m.jsx(cn.div,{"aria-valuemax":i,"aria-valuemin":0,"aria-valuenow":tr(l)?l:void 0,"aria-valuetext":c,role:"progressbar","data-state":Fs(l,i),"data-value":l??void 0,"data-max":i,...s,ref:t})})});Is.displayName=ln;var js="ProgressIndicator",Ls=d.forwardRef((e,t)=>{const{__scopeProgress:r,...n}=e,o=lm(js,r);return m.jsx(cn.div,{"data-state":Fs(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,...n,ref:t})});Ls.displayName=js;function um(e,t){return`${Math.round(e/t*100)}%`}function Fs(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function tr(e){return typeof e=="number"}function $s(e){return tr(e)&&!isNaN(e)&&e>0}function zs(e,t){return tr(e)&&!isNaN(e)&&e<=t&&e>=0}function dm(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${un}\`.`}function fm(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
|
|
51
|
+
- a positive number
|
|
52
|
+
- less than the value passed to \`max\` (or ${un} if no \`max\` prop is set)
|
|
53
|
+
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
54
|
+
|
|
55
|
+
Defaulting to \`null\`.`}var pm=Is,mm=Ls;function gm({className:e,value:t,...r}){return m.jsx(pm,{"data-slot":"progress",className:M("bg-primary/20 relative h-2 w-full overflow-hidden rounded-full",e),...r,children:m.jsx(mm,{"data-slot":"progress-indicator",className:"bg-primary h-full w-full flex-1 transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})})}var hm="Separator",Vs="horizontal",vm=["horizontal","vertical"],Bs=d.forwardRef((e,t)=>{const{decorative:r,orientation:n=Vs,...o}=e,a=bm(n)?n:Vs,i=r?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return m.jsx(cn.div,{"data-orientation":a,...i,...o,ref:t})});Bs.displayName=hm;function bm(e){return vm.includes(e)}var ym=Bs;function Gs({className:e,orientation:t="horizontal",decorative:r=!0,...n}){return m.jsx(ym,{"data-slot":"separator",decorative:r,orientation:t,className:M("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e),...n})}const dn=768;function xm(){const[e,t]=d.useState(void 0);return d.useEffect(()=>{const r=window.matchMedia(`(max-width: ${dn-1}px)`),n=()=>{t(window.innerWidth<dn)};return r.addEventListener("change",n),t(window.innerWidth<dn),()=>r.removeEventListener("change",n)},[]),!!e}var rr="Dialog",[Ws,ah]=Ee(rr),[wm,he]=Ws(rr),Us=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,i=d.useRef(null),l=d.useRef(null),[c,p]=Ue({prop:n,defaultProp:o??!1,onChange:a,caller:rr});return m.jsx(wm,{scope:t,triggerRef:i,contentRef:l,contentId:ve(),titleId:ve(),descriptionId:ve(),open:c,onOpenChange:p,onOpenToggle:d.useCallback(()=>p(u=>!u),[p]),modal:s,children:r})};Us.displayName=rr;var Hs="DialogTrigger",Sm=d.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=he(Hs,r),a=Q(t,o.triggerRef);return m.jsx(Y.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":mn(o.open),...n,ref:a,onClick:j(e.onClick,o.onOpenToggle)})});Sm.displayName=Hs;var fn="DialogPortal",[Cm,Ks]=Ws(fn,{forceMount:void 0}),Ys=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,a=he(fn,t);return m.jsx(Cm,{scope:t,forceMount:r,children:d.Children.map(n,s=>m.jsx(pe,{present:r||a.open,children:m.jsx(zt,{asChild:!0,container:o,children:s})}))})};Ys.displayName=fn;var nr="DialogOverlay",Xs=d.forwardRef((e,t)=>{const r=Ks(nr,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=he(nr,e.__scopeDialog);return a.modal?m.jsx(pe,{present:n||a.open,children:m.jsx(_m,{...o,ref:t})}):null});Xs.displayName=nr;var Em=ze("DialogOverlay.RemoveScroll"),_m=d.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=he(nr,r);return m.jsx(Kr,{as:Em,allowPinchZoom:!0,shards:[o.contentRef],children:m.jsx(Y.div,{"data-state":mn(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Fe="DialogContent",qs=d.forwardRef((e,t)=>{const r=Ks(Fe,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=he(Fe,e.__scopeDialog);return m.jsx(pe,{present:n||a.open,children:a.modal?m.jsx(Rm,{...o,ref:t}):m.jsx(Om,{...o,ref:t})})});qs.displayName=Fe;var Rm=d.forwardRef((e,t)=>{const r=he(Fe,e.__scopeDialog),n=d.useRef(null),o=Q(t,r.contentRef,n);return d.useEffect(()=>{const a=n.current;if(a)return ma(a)},[]),m.jsx(Zs,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:j(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:j(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,i=s.button===0&&s.ctrlKey===!0;(s.button===2||i)&&a.preventDefault()}),onFocusOutside:j(e.onFocusOutside,a=>a.preventDefault())})}),Om=d.forwardRef((e,t)=>{const r=he(Fe,e.__scopeDialog),n=d.useRef(!1),o=d.useRef(!1);return m.jsx(Zs,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;r.triggerRef.current?.contains(s)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Zs=d.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...s}=e,i=he(Fe,r),l=d.useRef(null),c=Q(t,l);return yo(),m.jsxs(m.Fragment,{children:[m.jsx(_r,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:m.jsx(At,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":mn(i.open),...s,ref:c,onDismiss:()=>i.onOpenChange(!1)})}),m.jsxs(m.Fragment,{children:[m.jsx(Am,{titleId:i.titleId}),m.jsx(Pm,{contentRef:l,descriptionId:i.descriptionId})]})]})}),pn="DialogTitle",Js=d.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=he(pn,r);return m.jsx(Y.h2,{id:o.titleId,...n,ref:t})});Js.displayName=pn;var Qs="DialogDescription",ei=d.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=he(Qs,r);return m.jsx(Y.p,{id:o.descriptionId,...n,ref:t})});ei.displayName=Qs;var ti="DialogClose",ri=d.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=he(ti,r);return m.jsx(Y.button,{type:"button",...n,ref:t,onClick:j(e.onClick,()=>o.onOpenChange(!1))})});ri.displayName=ti;function mn(e){return e?"open":"closed"}var ni="DialogTitleWarning",[sh,oi]=Ci(ni,{contentName:Fe,titleName:pn,docsSlug:"dialog"}),Am=({titleId:e})=>{const t=oi(ni),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
51
56
|
|
|
52
57
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
53
58
|
|
|
54
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return d.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},tm="DialogDescriptionWarning",nm=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ks(tm).contentName}}.`;return d.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},rm=Ds,om=Ls,am=Fs,sm=$s,im=Vs,cm=Gs,lm=Us;function um({...e}){return m.jsx(rm,{"data-slot":"sheet",...e})}function dm({...e}){return m.jsx(om,{"data-slot":"sheet-portal",...e})}function fm({className:e,...t}){return m.jsx(am,{"data-slot":"sheet-overlay",className:N("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function pm({className:e,children:t,side:n="right",...r}){return m.jsxs(dm,{children:[m.jsx(fm,{}),m.jsxs(sm,{"data-slot":"sheet-content",className:N("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",n==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",n==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",n==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",n==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",e),...r,children:[t,m.jsxs(lm,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[m.jsx(Yf,{className:"size-4"}),m.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function mm({className:e,...t}){return m.jsx("div",{"data-slot":"sheet-header",className:N("flex flex-col gap-1.5 p-4",e),...t})}function gm({className:e,...t}){return m.jsx(im,{"data-slot":"sheet-title",className:N("text-foreground font-semibold",e),...t})}function hm({className:e,...t}){return m.jsx(cm,{"data-slot":"sheet-description",className:N("text-muted-foreground text-sm",e),...t})}function Ys({className:e,...t}){return m.jsx("div",{"data-slot":"skeleton",className:N("bg-accent animate-pulse rounded-md",e),...t})}var vm=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),bm="VisuallyHidden",Xs=d.forwardRef((e,t)=>m.jsx(Y.span,{...e,ref:t,style:{...vm,...e.style}}));Xs.displayName=bm;var ym=Xs,[rn,Pg]=Ee("Tooltip",[$t]),on=$t(),qs="TooltipProvider",xm=700,dr="tooltip.open",[wm,fr]=rn(qs),Zs=e=>{const{__scopeTooltip:t,delayDuration:n=xm,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,s=d.useRef(!0),i=d.useRef(!1),l=d.useRef(0);return d.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),m.jsx(wm,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:d.useCallback(()=>{window.clearTimeout(l.current),s.current=!1},[]),onClose:d.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:i,onPointerInTransitChange:d.useCallback(c=>{i.current=c},[]),disableHoverableContent:o,children:a})};Zs.displayName=qs;var bt="Tooltip",[Sm,yt]=rn(bt),Js=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:a,disableHoverableContent:s,delayDuration:i}=e,l=fr(bt,e.__scopeTooltip),c=on(t),[p,u]=d.useState(null),f=ve(),g=d.useRef(0),v=s??l.disableHoverableContent,h=i??l.delayDuration,b=d.useRef(!1),[y,x]=We({prop:r,defaultProp:o??!1,onChange:O=>{O?(l.onOpen(),document.dispatchEvent(new CustomEvent(dr))):l.onClose(),a?.(O)},caller:bt}),C=d.useMemo(()=>y?b.current?"delayed-open":"instant-open":"closed",[y]),w=d.useCallback(()=>{window.clearTimeout(g.current),g.current=0,b.current=!1,x(!0)},[x]),E=d.useCallback(()=>{window.clearTimeout(g.current),g.current=0,x(!1)},[x]),M=d.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{b.current=!0,x(!0),g.current=0},h)},[h,x]);return d.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),m.jsx($n,{...c,children:m.jsx(Sm,{scope:t,contentId:f,open:y,stateAttribute:C,trigger:p,onTriggerChange:u,onTriggerEnter:d.useCallback(()=>{l.isOpenDelayedRef.current?M():w()},[l.isOpenDelayedRef,M,w]),onTriggerLeave:d.useCallback(()=>{v?E():(window.clearTimeout(g.current),g.current=0)},[E,v]),onOpen:w,onClose:E,disableHoverableContent:v,children:n})})};Js.displayName=bt;var pr="TooltipTrigger",Qs=d.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=yt(pr,n),a=fr(pr,n),s=on(n),i=d.useRef(null),l=Q(t,i,o.onTriggerChange),c=d.useRef(!1),p=d.useRef(!1),u=d.useCallback(()=>c.current=!1,[]);return d.useEffect(()=>()=>document.removeEventListener("pointerup",u),[u]),m.jsx(Zo,{asChild:!0,...s,children:m.jsx(Y.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:j(e.onPointerMove,f=>{f.pointerType!=="touch"&&!p.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),p.current=!0)}),onPointerLeave:j(e.onPointerLeave,()=>{o.onTriggerLeave(),p.current=!1}),onPointerDown:j(e.onPointerDown,()=>{o.open&&o.onClose(),c.current=!0,document.addEventListener("pointerup",u,{once:!0})}),onFocus:j(e.onFocus,()=>{c.current||o.onOpen()}),onBlur:j(e.onBlur,o.onClose),onClick:j(e.onClick,o.onClose)})})});Qs.displayName=pr;var mr="TooltipPortal",[Cm,Em]=rn(mr,{forceMount:void 0}),ei=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,a=yt(mr,t);return m.jsx(Cm,{scope:t,forceMount:n,children:m.jsx(pe,{present:n||a.open,children:m.jsx(zt,{asChild:!0,container:o,children:r})})})};ei.displayName=mr;var Qe="TooltipContent",ti=d.forwardRef((e,t)=>{const n=Em(Qe,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,s=yt(Qe,e.__scopeTooltip);return m.jsx(pe,{present:r||s.open,children:s.disableHoverableContent?m.jsx(ni,{side:o,...a,ref:t}):m.jsx(_m,{side:o,...a,ref:t})})}),_m=d.forwardRef((e,t)=>{const n=yt(Qe,e.__scopeTooltip),r=fr(Qe,e.__scopeTooltip),o=d.useRef(null),a=Q(t,o),[s,i]=d.useState(null),{trigger:l,onClose:c}=n,p=o.current,{onPointerInTransitChange:u}=r,f=d.useCallback(()=>{i(null),u(!1)},[u]),g=d.useCallback((v,h)=>{const b=v.currentTarget,y={x:v.clientX,y:v.clientY},x=Mm(y,b.getBoundingClientRect()),C=Tm(y,x),w=Pm(h.getBoundingClientRect()),E=Nm([...C,...w]);i(E),u(!0)},[u]);return d.useEffect(()=>()=>f(),[f]),d.useEffect(()=>{if(l&&p){const v=b=>g(b,p),h=b=>g(b,l);return l.addEventListener("pointerleave",v),p.addEventListener("pointerleave",h),()=>{l.removeEventListener("pointerleave",v),p.removeEventListener("pointerleave",h)}}},[l,p,g,f]),d.useEffect(()=>{if(s){const v=h=>{const b=h.target,y={x:h.clientX,y:h.clientY},x=l?.contains(b)||p?.contains(b),C=!km(y,s);x?f():C&&(f(),c())};return document.addEventListener("pointermove",v),()=>document.removeEventListener("pointermove",v)}},[l,p,s,c,f]),m.jsx(ni,{...e,ref:a})}),[Rm,Om]=rn(bt,{isInside:!1}),Am=yi("TooltipContent"),ni=d.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:s,...i}=e,l=yt(Qe,n),c=on(n),{onClose:p}=l;return d.useEffect(()=>(document.addEventListener(dr,p),()=>document.removeEventListener(dr,p)),[p]),d.useEffect(()=>{if(l.trigger){const u=f=>{f.target?.contains(l.trigger)&&p()};return window.addEventListener("scroll",u,{capture:!0}),()=>window.removeEventListener("scroll",u,{capture:!0})}},[l.trigger,p]),m.jsx(At,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:u=>u.preventDefault(),onDismiss:p,children:m.jsxs(Jo,{"data-state":l.stateAttribute,...c,...i,ref:t,style:{...i.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[m.jsx(Am,{children:r}),m.jsx(Rm,{scope:n,isInside:!0,children:m.jsx(ym,{id:l.contentId,role:"tooltip",children:o||r})})]})})});ti.displayName=Qe;var ri="TooltipArrow",oi=d.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=on(n);return Om(ri,n).isInside?null:m.jsx(Qo,{...o,...r,ref:t})});oi.displayName=ri;function Mm(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,o,a)){case a:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Tm(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function Pm(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function km(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const i=t[a],l=t[s],c=i.x,p=i.y,u=l.x,f=l.y;p>r!=f>r&&n<(u-c)*(r-p)/(f-p)+c&&(o=!o)}return o}function Nm(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),Dm(t)}function Dm(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const a=t[t.length-1],s=t[t.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const a=n[n.length-1],s=n[n.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Im=Zs,jm=Js,Lm=Qs,Fm=ei,$m=ti,zm=oi;function ai({delayDuration:e=0,...t}){return m.jsx(Im,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function Vm({...e}){return m.jsx(ai,{children:m.jsx(jm,{"data-slot":"tooltip",...e})})}function Bm({...e}){return m.jsx(Lm,{"data-slot":"tooltip-trigger",...e})}function Gm({className:e,sideOffset:t=0,children:n,...r}){return m.jsx(Fm,{children:m.jsxs($m,{"data-slot":"tooltip-content",sideOffset:t,className:N("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",e),...r,children:[n,m.jsx(zm,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const Wm="sidebar_state",Um=3600*24*7,Hm="16rem",Km="18rem",Ym="3rem",Xm="b",si=d.createContext(null);function xt(){const e=d.useContext(si);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function qm({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:o,children:a,...s}){const i=Hp(),[l,c]=d.useState(!1),[p,u]=d.useState(e),f=t??p,g=d.useCallback(y=>{const x=typeof y=="function"?y(f):y;n?n(x):u(x),document.cookie=`${Wm}=${x}; path=/; max-age=${Um}`},[n,f]),v=d.useCallback(()=>i?c(y=>!y):g(y=>!y),[i,g,c]);d.useEffect(()=>{const y=x=>{x.key===Xm&&(x.metaKey||x.ctrlKey)&&(x.preventDefault(),v())};return window.addEventListener("keydown",y),()=>window.removeEventListener("keydown",y)},[v]);const h=f?"expanded":"collapsed",b=d.useMemo(()=>({state:h,open:f,setOpen:g,isMobile:i,openMobile:l,setOpenMobile:c,toggleSidebar:v}),[h,f,g,i,l,c,v]);return m.jsx(si.Provider,{value:b,children:m.jsx(ai,{delayDuration:0,children:m.jsx("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":Hm,"--sidebar-width-icon":Ym,...o},className:N("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",r),...s,children:a})})})}function Zm({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:r,children:o,...a}){const{isMobile:s,state:i,openMobile:l,setOpenMobile:c}=xt();return n==="none"?m.jsx("div",{"data-slot":"sidebar",className:N("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",r),...a,children:o}):s?m.jsx(um,{open:l,onOpenChange:c,...a,children:m.jsxs(pm,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:{"--sidebar-width":Km},side:e,children:[m.jsxs(mm,{className:"sr-only",children:[m.jsx(gm,{children:"Sidebar"}),m.jsx(hm,{children:"Displays the mobile sidebar."})]}),m.jsx("div",{className:"flex h-full w-full flex-col",children:o})]})}):m.jsxs("div",{className:"group peer text-sidebar-foreground hidden md:block","data-state":i,"data-collapsible":i==="collapsed"?n:"","data-variant":t,"data-side":e,"data-slot":"sidebar",children:[m.jsx("div",{"data-slot":"sidebar-gap",className:N("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),m.jsx("div",{"data-slot":"sidebar-container",className:N("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...a,children:m.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:o})})]})}function Jm({className:e,onClick:t,...n}){const{toggleSidebar:r}=xt();return m.jsxs(eo,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:N("size-7",e),onClick:o=>{t?.(o),r()},...n,children:[m.jsx(Kf,{}),m.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})}function Qm({className:e,...t}){const{toggleSidebar:n}=xt();return m.jsx("button",{"data-sidebar":"rail","data-slot":"sidebar-rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:n,title:"Toggle Sidebar",className:N("hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] sm:flex","in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})}function eg({className:e,...t}){return m.jsx("main",{"data-slot":"sidebar-inset",className:N("bg-background relative flex w-full flex-1 flex-col","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",e),...t})}function tg({className:e,...t}){return m.jsx(As,{"data-slot":"sidebar-input","data-sidebar":"input",className:N("bg-background h-8 w-full shadow-none",e),...t})}function ng({className:e,...t}){return m.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:N("flex flex-col gap-2 p-2",e),...t})}function rg({className:e,...t}){return m.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:N("flex flex-col gap-2 p-2",e),...t})}function og({className:e,...t}){return m.jsx(ks,{"data-slot":"sidebar-separator","data-sidebar":"separator",className:N("bg-sidebar-border mx-2 w-auto",e),...t})}function ag({className:e,...t}){return m.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:N("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t})}function sg({className:e,...t}){return m.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:N("relative flex w-full min-w-0 flex-col p-2",e),...t})}function ig({className:e,asChild:t=!1,...n}){const r=t?Ae:"div";return m.jsx(r,{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:N("text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...n})}function cg({className:e,asChild:t=!1,...n}){const r=t?Ae:"button";return m.jsx(r,{"data-slot":"sidebar-group-action","data-sidebar":"group-action",className:N("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","group-data-[collapsible=icon]:hidden",e),...n})}function lg({className:e,...t}){return m.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:N("w-full text-sm",e),...t})}function ug({className:e,...t}){return m.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:N("flex w-full min-w-0 flex-col gap-1",e),...t})}function dg({className:e,...t}){return m.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:N("group/menu-item relative",e),...t})}const fg=vn("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function pg({asChild:e=!1,isActive:t=!1,variant:n="default",size:r="default",tooltip:o,className:a,...s}){const i=e?Ae:"button",{isMobile:l,state:c}=xt(),p=m.jsx(i,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":r,"data-active":t,className:N(fg({variant:n,size:r}),a),...s});return o?(typeof o=="string"&&(o={children:o}),m.jsxs(Vm,{children:[m.jsx(Bm,{asChild:!0,children:p}),m.jsx(Gm,{side:"right",align:"center",hidden:c!=="collapsed"||l,...o})]})):p}function mg({className:e,asChild:t=!1,showOnHover:n=!1,...r}){const o=t?Ae:"button";return m.jsx(o,{"data-slot":"sidebar-menu-action","data-sidebar":"menu-action",className:N("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",n&&"peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0",e),...r})}function gg({className:e,...t}){return m.jsx("div",{"data-slot":"sidebar-menu-badge","data-sidebar":"menu-badge",className:N("text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t})}function hg({className:e,showIcon:t=!1,...n}){const r=d.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return m.jsxs("div",{"data-slot":"sidebar-menu-skeleton","data-sidebar":"menu-skeleton",className:N("flex h-8 items-center gap-2 rounded-md px-2",e),...n,children:[t&&m.jsx(Ys,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),m.jsx(Ys,{className:"h-4 max-w-(--skeleton-width) flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}})]})}function vg({className:e,...t}){return m.jsx("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:N("border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t})}function bg({className:e,...t}){return m.jsx("li",{"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:N("group/menu-sub-item relative",e),...t})}function yg({asChild:e=!1,size:t="md",isActive:n=!1,className:r,...o}){const a=e?Ae:"a";return m.jsx(a,{"data-slot":"sidebar-menu-sub-button","data-sidebar":"menu-sub-button","data-size":t,"data-active":n,className:N("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",r),...o})}A.Avatar=gc,A.AvatarFallback=vc,A.AvatarImage=hc,A.Badge=bc,A.Button=eo,A.Card=yc,A.CardAction=Cc,A.CardContent=Ec,A.CardDescription=Sc,A.CardFooter=_c,A.CardHeader=xc,A.CardTitle=wc,A.Collapsible=Fc,A.CollapsibleContent=zc,A.CollapsibleTrigger=$c,A.DropdownMenu=Xf,A.DropdownMenuCheckboxItem=tp,A.DropdownMenuContent=Jf,A.DropdownMenuGroup=Qf,A.DropdownMenuItem=ep,A.DropdownMenuLabel=op,A.DropdownMenuPortal=qf,A.DropdownMenuRadioGroup=np,A.DropdownMenuRadioItem=rp,A.DropdownMenuSeparator=ap,A.DropdownMenuShortcut=sp,A.DropdownMenuSub=ip,A.DropdownMenuSubContent=lp,A.DropdownMenuSubTrigger=cp,A.DropdownMenuTrigger=Zf,A.Form=_p,A.FormControl=Mp,A.FormDescription=Tp,A.FormField=Rp,A.FormItem=Op,A.FormLabel=Ap,A.FormMessage=Pp,A.Input=As,A.Label=_s,A.Separator=ks,A.Sidebar=Zm,A.SidebarContent=ag,A.SidebarFooter=rg,A.SidebarGroup=sg,A.SidebarGroupAction=cg,A.SidebarGroupContent=lg,A.SidebarGroupLabel=ig,A.SidebarHeader=ng,A.SidebarInput=tg,A.SidebarInset=eg,A.SidebarMenu=ug,A.SidebarMenuAction=mg,A.SidebarMenuBadge=gg,A.SidebarMenuButton=pg,A.SidebarMenuItem=dg,A.SidebarMenuSkeleton=hg,A.SidebarMenuSub=vg,A.SidebarMenuSubButton=yg,A.SidebarMenuSubItem=bg,A.SidebarProvider=qm,A.SidebarRail=Qm,A.SidebarSeparator=og,A.SidebarTrigger=Jm,A.badgeVariants=Jr,A.buttonVariants=Qr,A.cn=N,A.useFormField=vt,A.useSidebar=xt,Object.defineProperty(A,Symbol.toStringTag,{value:"Module"})}));
|
|
59
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return d.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},Mm="DialogDescriptionWarning",Pm=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${oi(Mm).contentName}}.`;return d.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},Tm=Us,km=Ys,Nm=Xs,Dm=qs,Im=Js,jm=ei,Lm=ri;function Fm({...e}){return m.jsx(Tm,{"data-slot":"sheet",...e})}function $m({...e}){return m.jsx(km,{"data-slot":"sheet-portal",...e})}function zm({className:e,...t}){return m.jsx(Nm,{"data-slot":"sheet-overlay",className:M("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function Vm({className:e,children:t,side:r="right",...n}){return m.jsxs($m,{children:[m.jsx(zm,{}),m.jsxs(Dm,{"data-slot":"sheet-content",className:M("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",r==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",r==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",r==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",r==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",e),...n,children:[t,m.jsxs(Lm,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[m.jsx($c,{className:"size-4"}),m.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function Bm({className:e,...t}){return m.jsx("div",{"data-slot":"sheet-header",className:M("flex flex-col gap-1.5 p-4",e),...t})}function Gm({className:e,...t}){return m.jsx(Im,{"data-slot":"sheet-title",className:M("text-foreground font-semibold",e),...t})}function Wm({className:e,...t}){return m.jsx(jm,{"data-slot":"sheet-description",className:M("text-muted-foreground text-sm",e),...t})}function ai({className:e,...t}){return m.jsx("div",{"data-slot":"skeleton",className:M("bg-accent animate-pulse rounded-md",e),...t})}var Um=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Hm="VisuallyHidden",si=d.forwardRef((e,t)=>m.jsx(Y.span,{...e,ref:t,style:{...Um,...e.style}}));si.displayName=Hm;var Km=si,[or,ih]=Ee("Tooltip",[$t]),ar=$t(),ii="TooltipProvider",Ym=700,gn="tooltip.open",[Xm,hn]=or(ii),ci=e=>{const{__scopeTooltip:t,delayDuration:r=Ym,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:a}=e,s=d.useRef(!0),i=d.useRef(!1),l=d.useRef(0);return d.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),m.jsx(Xm,{scope:t,isOpenDelayedRef:s,delayDuration:r,onOpen:d.useCallback(()=>{window.clearTimeout(l.current),s.current=!1},[]),onClose:d.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.current=!0,n)},[n]),isPointerInTransitRef:i,onPointerInTransitChange:d.useCallback(c=>{i.current=c},[]),disableHoverableContent:o,children:a})};ci.displayName=ii;var bt="Tooltip",[qm,yt]=or(bt),li=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:o,onOpenChange:a,disableHoverableContent:s,delayDuration:i}=e,l=hn(bt,e.__scopeTooltip),c=ar(t),[p,u]=d.useState(null),f=ve(),g=d.useRef(0),v=s??l.disableHoverableContent,h=i??l.delayDuration,b=d.useRef(!1),[y,x]=Ue({prop:n,defaultProp:o??!1,onChange:A=>{A?(l.onOpen(),document.dispatchEvent(new CustomEvent(gn))):l.onClose(),a?.(A)},caller:bt}),C=d.useMemo(()=>y?b.current?"delayed-open":"instant-open":"closed",[y]),w=d.useCallback(()=>{window.clearTimeout(g.current),g.current=0,b.current=!1,x(!0)},[x]),E=d.useCallback(()=>{window.clearTimeout(g.current),g.current=0,x(!1)},[x]),P=d.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{b.current=!0,x(!0),g.current=0},h)},[h,x]);return d.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),m.jsx($r,{...c,children:m.jsx(qm,{scope:t,contentId:f,open:y,stateAttribute:C,trigger:p,onTriggerChange:u,onTriggerEnter:d.useCallback(()=>{l.isOpenDelayedRef.current?P():w()},[l.isOpenDelayedRef,P,w]),onTriggerLeave:d.useCallback(()=>{v?E():(window.clearTimeout(g.current),g.current=0)},[E,v]),onOpen:w,onClose:E,disableHoverableContent:v,children:r})})};li.displayName=bt;var vn="TooltipTrigger",ui=d.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=yt(vn,r),a=hn(vn,r),s=ar(r),i=d.useRef(null),l=Q(t,i,o.onTriggerChange),c=d.useRef(!1),p=d.useRef(!1),u=d.useCallback(()=>c.current=!1,[]);return d.useEffect(()=>()=>document.removeEventListener("pointerup",u),[u]),m.jsx(oa,{asChild:!0,...s,children:m.jsx(Y.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...n,ref:l,onPointerMove:j(e.onPointerMove,f=>{f.pointerType!=="touch"&&!p.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),p.current=!0)}),onPointerLeave:j(e.onPointerLeave,()=>{o.onTriggerLeave(),p.current=!1}),onPointerDown:j(e.onPointerDown,()=>{o.open&&o.onClose(),c.current=!0,document.addEventListener("pointerup",u,{once:!0})}),onFocus:j(e.onFocus,()=>{c.current||o.onOpen()}),onBlur:j(e.onBlur,o.onClose),onClick:j(e.onClick,o.onClose)})})});ui.displayName=vn;var bn="TooltipPortal",[Zm,Jm]=or(bn,{forceMount:void 0}),di=e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:o}=e,a=yt(bn,t);return m.jsx(Zm,{scope:t,forceMount:r,children:m.jsx(pe,{present:r||a.open,children:m.jsx(zt,{asChild:!0,container:o,children:n})})})};di.displayName=bn;var et="TooltipContent",fi=d.forwardRef((e,t)=>{const r=Jm(et,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...a}=e,s=yt(et,e.__scopeTooltip);return m.jsx(pe,{present:n||s.open,children:s.disableHoverableContent?m.jsx(pi,{side:o,...a,ref:t}):m.jsx(Qm,{side:o,...a,ref:t})})}),Qm=d.forwardRef((e,t)=>{const r=yt(et,e.__scopeTooltip),n=hn(et,e.__scopeTooltip),o=d.useRef(null),a=Q(t,o),[s,i]=d.useState(null),{trigger:l,onClose:c}=r,p=o.current,{onPointerInTransitChange:u}=n,f=d.useCallback(()=>{i(null),u(!1)},[u]),g=d.useCallback((v,h)=>{const b=v.currentTarget,y={x:v.clientX,y:v.clientY},x=ng(y,b.getBoundingClientRect()),C=og(y,x),w=ag(h.getBoundingClientRect()),E=ig([...C,...w]);i(E),u(!0)},[u]);return d.useEffect(()=>()=>f(),[f]),d.useEffect(()=>{if(l&&p){const v=b=>g(b,p),h=b=>g(b,l);return l.addEventListener("pointerleave",v),p.addEventListener("pointerleave",h),()=>{l.removeEventListener("pointerleave",v),p.removeEventListener("pointerleave",h)}}},[l,p,g,f]),d.useEffect(()=>{if(s){const v=h=>{const b=h.target,y={x:h.clientX,y:h.clientY},x=l?.contains(b)||p?.contains(b),C=!sg(y,s);x?f():C&&(f(),c())};return document.addEventListener("pointermove",v),()=>document.removeEventListener("pointermove",v)}},[l,p,s,c,f]),m.jsx(pi,{...e,ref:a})}),[eg,tg]=or(bt,{isInside:!1}),rg=Pi("TooltipContent"),pi=d.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:s,...i}=e,l=yt(et,r),c=ar(r),{onClose:p}=l;return d.useEffect(()=>(document.addEventListener(gn,p),()=>document.removeEventListener(gn,p)),[p]),d.useEffect(()=>{if(l.trigger){const u=f=>{f.target?.contains(l.trigger)&&p()};return window.addEventListener("scroll",u,{capture:!0}),()=>window.removeEventListener("scroll",u,{capture:!0})}},[l.trigger,p]),m.jsx(At,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:u=>u.preventDefault(),onDismiss:p,children:m.jsxs(aa,{"data-state":l.stateAttribute,...c,...i,ref:t,style:{...i.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[m.jsx(rg,{children:n}),m.jsx(eg,{scope:r,isInside:!0,children:m.jsx(Km,{id:l.contentId,role:"tooltip",children:o||n})})]})})});fi.displayName=et;var mi="TooltipArrow",gi=d.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=ar(r);return tg(mi,r).isInside?null:m.jsx(sa,{...o,...n,ref:t})});gi.displayName=mi;function ng(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(r,n,o,a)){case a:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function og(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function ag(e){const{top:t,right:r,bottom:n,left:o}=e;return[{x:o,y:t},{x:r,y:t},{x:r,y:n},{x:o,y:n}]}function sg(e,t){const{x:r,y:n}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const i=t[a],l=t[s],c=i.x,p=i.y,u=l.x,f=l.y;p>n!=f>n&&r<(u-c)*(n-p)/(f-p)+c&&(o=!o)}return o}function ig(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),cg(t)}function cg(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const o=e[n];for(;t.length>=2;){const a=t[t.length-1],s=t[t.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const o=e[n];for(;r.length>=2;){const a=r[r.length-1],s=r[r.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))r.pop();else break}r.push(o)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var lg=ci,ug=li,dg=ui,fg=di,pg=fi,mg=gi;function hi({delayDuration:e=0,...t}){return m.jsx(lg,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function gg({...e}){return m.jsx(hi,{children:m.jsx(ug,{"data-slot":"tooltip",...e})})}function hg({...e}){return m.jsx(dg,{"data-slot":"tooltip-trigger",...e})}function vg({className:e,sideOffset:t=0,children:r,...n}){return m.jsx(fg,{children:m.jsxs(pg,{"data-slot":"tooltip-content",sideOffset:t,className:M("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",e),...n,children:[r,m.jsx(mg,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const bg="sidebar_state",yg=3600*24*7,xg="16rem",wg="18rem",Sg="3rem",Cg="b",vi=d.createContext(null);function xt(){const e=d.useContext(vi);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function Eg({defaultOpen:e=!0,open:t,onOpenChange:r,className:n,style:o,children:a,...s}){const i=xm(),[l,c]=d.useState(!1),[p,u]=d.useState(e),f=t??p,g=d.useCallback(y=>{const x=typeof y=="function"?y(f):y;r?r(x):u(x),document.cookie=`${bg}=${x}; path=/; max-age=${yg}`},[r,f]),v=d.useCallback(()=>i?c(y=>!y):g(y=>!y),[i,g,c]);d.useEffect(()=>{const y=x=>{x.key===Cg&&(x.metaKey||x.ctrlKey)&&(x.preventDefault(),v())};return window.addEventListener("keydown",y),()=>window.removeEventListener("keydown",y)},[v]);const h=f?"expanded":"collapsed",b=d.useMemo(()=>({state:h,open:f,setOpen:g,isMobile:i,openMobile:l,setOpenMobile:c,toggleSidebar:v}),[h,f,g,i,l,c,v]);return m.jsx(vi.Provider,{value:b,children:m.jsx(hi,{delayDuration:0,children:m.jsx("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":xg,"--sidebar-width-icon":Sg,...o},className:M("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",n),...s,children:a})})})}function _g({side:e="left",variant:t="sidebar",collapsible:r="offcanvas",className:n,children:o,...a}){const{isMobile:s,state:i,openMobile:l,setOpenMobile:c}=xt();return r==="none"?m.jsx("div",{"data-slot":"sidebar",className:M("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",n),...a,children:o}):s?m.jsx(Fm,{open:l,onOpenChange:c,...a,children:m.jsxs(Vm,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:{"--sidebar-width":wg},side:e,children:[m.jsxs(Bm,{className:"sr-only",children:[m.jsx(Gm,{children:"Sidebar"}),m.jsx(Wm,{children:"Displays the mobile sidebar."})]}),m.jsx("div",{className:"flex h-full w-full flex-col",children:o})]})}):m.jsxs("div",{className:"group peer text-sidebar-foreground hidden md:block","data-state":i,"data-collapsible":i==="collapsed"?r:"","data-variant":t,"data-side":e,"data-slot":"sidebar",children:[m.jsx("div",{"data-slot":"sidebar-gap",className:M("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),m.jsx("div",{"data-slot":"sidebar-container",className:M("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",n),...a,children:m.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:o})})]})}function Rg({className:e,onClick:t,...r}){const{toggleSidebar:n}=xt();return m.jsxs(io,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:M("size-7",e),onClick:o=>{t?.(o),n()},...r,children:[m.jsx(Fc,{}),m.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})}function Og({className:e,...t}){const{toggleSidebar:r}=xt();return m.jsx("button",{"data-sidebar":"rail","data-slot":"sidebar-rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:M("hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] sm:flex","in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})}function Ag({className:e,...t}){return m.jsx("main",{"data-slot":"sidebar-inset",className:M("bg-background relative flex w-full flex-1 flex-col","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",e),...t})}function Mg({className:e,...t}){return m.jsx(Ns,{"data-slot":"sidebar-input","data-sidebar":"input",className:M("bg-background h-8 w-full shadow-none",e),...t})}function Pg({className:e,...t}){return m.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:M("flex flex-col gap-2 p-2",e),...t})}function Tg({className:e,...t}){return m.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:M("flex flex-col gap-2 p-2",e),...t})}function kg({className:e,...t}){return m.jsx(Gs,{"data-slot":"sidebar-separator","data-sidebar":"separator",className:M("bg-sidebar-border mx-2 w-auto",e),...t})}function Ng({className:e,...t}){return m.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:M("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t})}function Dg({className:e,...t}){return m.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:M("relative flex w-full min-w-0 flex-col p-2",e),...t})}function Ig({className:e,asChild:t=!1,...r}){const n=t?_e:"div";return m.jsx(n,{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:M("text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...r})}function jg({className:e,asChild:t=!1,...r}){const n=t?_e:"button";return m.jsx(n,{"data-slot":"sidebar-group-action","data-sidebar":"group-action",className:M("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","group-data-[collapsible=icon]:hidden",e),...r})}function Lg({className:e,...t}){return m.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:M("w-full text-sm",e),...t})}function Fg({className:e,...t}){return m.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:M("flex w-full min-w-0 flex-col gap-1",e),...t})}function $g({className:e,...t}){return m.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:M("group/menu-item relative",e),...t})}const zg=vr("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function Vg({asChild:e=!1,isActive:t=!1,variant:r="default",size:n="default",tooltip:o,className:a,...s}){const i=e?_e:"button",{isMobile:l,state:c}=xt(),p=m.jsx(i,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":n,"data-active":t,className:M(zg({variant:r,size:n}),a),...s});return o?(typeof o=="string"&&(o={children:o}),m.jsxs(gg,{children:[m.jsx(hg,{asChild:!0,children:p}),m.jsx(vg,{side:"right",align:"center",hidden:c!=="collapsed"||l,...o})]})):p}function Bg({className:e,asChild:t=!1,showOnHover:r=!1,...n}){const o=t?_e:"button";return m.jsx(o,{"data-slot":"sidebar-menu-action","data-sidebar":"menu-action",className:M("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",r&&"peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0",e),...n})}function Gg({className:e,...t}){return m.jsx("div",{"data-slot":"sidebar-menu-badge","data-sidebar":"menu-badge",className:M("text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t})}function Wg({className:e,showIcon:t=!1,...r}){const n=d.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return m.jsxs("div",{"data-slot":"sidebar-menu-skeleton","data-sidebar":"menu-skeleton",className:M("flex h-8 items-center gap-2 rounded-md px-2",e),...r,children:[t&&m.jsx(ai,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),m.jsx(ai,{className:"h-4 max-w-(--skeleton-width) flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":n}})]})}function Ug({className:e,...t}){return m.jsx("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:M("border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t})}function Hg({className:e,...t}){return m.jsx("li",{"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:M("group/menu-sub-item relative",e),...t})}function Kg({asChild:e=!1,size:t="md",isActive:r=!1,className:n,...o}){const a=e?_e:"a";return m.jsx(a,{"data-slot":"sidebar-menu-sub-button","data-sidebar":"menu-sub-button","data-size":t,"data-active":r,className:M("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",n),...o})}O.Avatar=Rc,O.AvatarFallback=Ac,O.AvatarImage=Oc,O.Badge=Mc,O.Breadcrumb=zc,O.BreadcrumbEllipsis=Hc,O.BreadcrumbItem=Bc,O.BreadcrumbLink=Gc,O.BreadcrumbList=Vc,O.BreadcrumbPage=Wc,O.BreadcrumbSeparator=Uc,O.Button=io,O.Card=Kc,O.CardAction=Zc,O.CardContent=Jc,O.CardDescription=qc,O.CardFooter=Qc,O.CardHeader=Yc,O.CardTitle=Xc,O.Collapsible=fl,O.CollapsibleContent=ml,O.CollapsibleTrigger=pl,O.DropdownMenu=pp,O.DropdownMenuCheckboxItem=yp,O.DropdownMenuContent=hp,O.DropdownMenuGroup=vp,O.DropdownMenuItem=bp,O.DropdownMenuLabel=Sp,O.DropdownMenuPortal=mp,O.DropdownMenuRadioGroup=xp,O.DropdownMenuRadioItem=wp,O.DropdownMenuSeparator=Cp,O.DropdownMenuShortcut=Ep,O.DropdownMenuSub=_p,O.DropdownMenuSubContent=Op,O.DropdownMenuSubTrigger=Rp,O.DropdownMenuTrigger=gp,O.Form=Gp,O.FormControl=Kp,O.FormDescription=Yp,O.FormField=Wp,O.FormItem=Up,O.FormLabel=Hp,O.FormMessage=Xp,O.Input=Ns,O.Label=Ps,O.Progress=gm,O.Separator=Gs,O.Sidebar=_g,O.SidebarContent=Ng,O.SidebarFooter=Tg,O.SidebarGroup=Dg,O.SidebarGroupAction=jg,O.SidebarGroupContent=Lg,O.SidebarGroupLabel=Ig,O.SidebarHeader=Pg,O.SidebarInput=Mg,O.SidebarInset=Ag,O.SidebarMenu=Fg,O.SidebarMenuAction=Bg,O.SidebarMenuBadge=Gg,O.SidebarMenuButton=Vg,O.SidebarMenuItem=$g,O.SidebarMenuSkeleton=Wg,O.SidebarMenuSub=Ug,O.SidebarMenuSubButton=Kg,O.SidebarMenuSubItem=Hg,O.SidebarProvider=Eg,O.SidebarRail=Og,O.SidebarSeparator=kg,O.SidebarTrigger=Rg,O.badgeVariants=ro,O.buttonVariants=so,O.cn=M,O.useFormField=vt,O.useSidebar=xt,Object.defineProperty(O,Symbol.toStringTag,{value:"Module"})}));
|