ui-arreya-components 0.0.8 → 0.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/ui.cjs.js +170 -62
- package/dist/ui.es.js +22286 -4803
- package/dist/ui.umd.js +171 -63
- package/package.json +2 -3
- package/scripts/build-index-ts.sh +16 -0
- package/src/components/feature/header.tsx +2 -2
- package/src/components/ui/sonner.tsx +2 -2
- package/src/index.ts +49 -54
- package/tailwind.config.js +0 -2
package/dist/ui.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("react"),Wa=require("react-dom");function _b(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=_b(E),ho=_b(Wa);var qo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Yt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ho={exports:{}},Dn={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var Up;function $1(){if(Up)return Dn;Up=1;var e=E,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function i(s,c,l){var p,u={},m=null,b=null;l!==void 0&&(m=""+l),c.key!==void 0&&(m=""+c.key),c.ref!==void 0&&(b=c.ref);for(p in c)n.call(c,p)&&!a.hasOwnProperty(p)&&(u[p]=c[p]);if(s&&s.defaultProps)for(p in c=s.defaultProps,c)u[p]===void 0&&(u[p]=c[p]);return{$$typeof:t,type:s,key:m,ref:b,props:u,_owner:o.current}}return Dn.Fragment=r,Dn.jsx=i,Dn.jsxs=i,Dn}var jn={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,25 +14,115 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
18
|
-
`+
|
|
19
|
-
`),
|
|
20
|
-
`),
|
|
21
|
-
`+
|
|
17
|
+
*/var Wp;function L1(){return Wp||(Wp=1,process.env.NODE_ENV!=="production"&&function(){var e=E,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),g=Symbol.iterator,h="@@iterator";function v(T){if(T===null||typeof T!="object")return null;var Y=g&&T[g]||T[h];return typeof Y=="function"?Y:null}var y=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function x(T){{for(var Y=arguments.length,se=new Array(Y>1?Y-1:0),he=1;he<Y;he++)se[he-1]=arguments[he];w("error",T,se)}}function w(T,Y,se){{var he=y.ReactDebugCurrentFrame,Ne=he.getStackAddendum();Ne!==""&&(Y+="%s",se=se.concat([Ne]));var De=se.map(function(Pe){return String(Pe)});De.unshift("Warning: "+Y),Function.prototype.apply.call(console[T],console,De)}}var S=!1,_=!1,R=!1,C=!1,A=!1,P;P=Symbol.for("react.module.reference");function k(T){return!!(typeof T=="string"||typeof T=="function"||T===n||T===a||A||T===o||T===l||T===p||C||T===b||S||_||R||typeof T=="object"&&T!==null&&(T.$$typeof===m||T.$$typeof===u||T.$$typeof===i||T.$$typeof===s||T.$$typeof===c||T.$$typeof===P||T.getModuleId!==void 0))}function D(T,Y,se){var he=T.displayName;if(he)return he;var Ne=Y.displayName||Y.name||"";return Ne!==""?se+"("+Ne+")":se}function L(T){return T.displayName||"Context"}function N(T){if(T==null)return null;if(typeof T.tag=="number"&&x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof T=="function")return T.displayName||T.name||null;if(typeof T=="string")return T;switch(T){case n:return"Fragment";case r:return"Portal";case a:return"Profiler";case o:return"StrictMode";case l:return"Suspense";case p:return"SuspenseList"}if(typeof T=="object")switch(T.$$typeof){case s:var Y=T;return L(Y)+".Consumer";case i:var se=T;return L(se._context)+".Provider";case c:return D(T,T.render,"ForwardRef");case u:var he=T.displayName||null;return he!==null?he:N(T.type)||"Memo";case m:{var Ne=T,De=Ne._payload,Pe=Ne._init;try{return N(Pe(De))}catch{return null}}}return null}var j=Object.assign,$=0,M,G,H,z,oe,Z,te;function F(){}F.__reactDisabledLog=!0;function U(){{if($===0){M=console.log,G=console.info,H=console.warn,z=console.error,oe=console.group,Z=console.groupCollapsed,te=console.groupEnd;var T={configurable:!0,enumerable:!0,value:F,writable:!0};Object.defineProperties(console,{info:T,log:T,warn:T,error:T,group:T,groupCollapsed:T,groupEnd:T})}$++}}function Q(){{if($--,$===0){var T={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:j({},T,{value:M}),info:j({},T,{value:G}),warn:j({},T,{value:H}),error:j({},T,{value:z}),group:j({},T,{value:oe}),groupCollapsed:j({},T,{value:Z}),groupEnd:j({},T,{value:te})})}$<0&&x("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var K=y.ReactCurrentDispatcher,q;function W(T,Y,se){{if(q===void 0)try{throw Error()}catch(Ne){var he=Ne.stack.trim().match(/\n( *(at )?)/);q=he&&he[1]||""}return`
|
|
18
|
+
`+q+T}}var re=!1,J;{var ne=typeof WeakMap=="function"?WeakMap:Map;J=new ne}function V(T,Y){if(!T||re)return"";{var se=J.get(T);if(se!==void 0)return se}var he;re=!0;var Ne=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var De;De=K.current,K.current=null,U();try{if(Y){var Pe=function(){throw Error()};if(Object.defineProperty(Pe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Pe,[])}catch(mt){he=mt}Reflect.construct(T,[],Pe)}else{try{Pe.call()}catch(mt){he=mt}T.call(Pe.prototype)}}else{try{throw Error()}catch(mt){he=mt}T()}}catch(mt){if(mt&&he&&typeof mt.stack=="string"){for(var _e=mt.stack.split(`
|
|
19
|
+
`),ft=he.stack.split(`
|
|
20
|
+
`),Ge=_e.length-1,Ye=ft.length-1;Ge>=1&&Ye>=0&&_e[Ge]!==ft[Ye];)Ye--;for(;Ge>=1&&Ye>=0;Ge--,Ye--)if(_e[Ge]!==ft[Ye]){if(Ge!==1||Ye!==1)do if(Ge--,Ye--,Ye<0||_e[Ge]!==ft[Ye]){var _t=`
|
|
21
|
+
`+_e[Ge].replace(" at new "," at ");return T.displayName&&_t.includes("<anonymous>")&&(_t=_t.replace("<anonymous>",T.displayName)),typeof T=="function"&&J.set(T,_t),_t}while(Ge>=1&&Ye>=0);break}}}finally{re=!1,K.current=De,Q(),Error.prepareStackTrace=Ne}var Wr=T?T.displayName||T.name:"",Pr=Wr?W(Wr):"";return typeof T=="function"&&J.set(T,Pr),Pr}function ae(T,Y,se){return V(T,!1)}function I(T){var Y=T.prototype;return!!(Y&&Y.isReactComponent)}function ee(T,Y,se){if(T==null)return"";if(typeof T=="function")return V(T,I(T));if(typeof T=="string")return W(T);switch(T){case l:return W("Suspense");case p:return W("SuspenseList")}if(typeof T=="object")switch(T.$$typeof){case c:return ae(T.render);case u:return ee(T.type,Y,se);case m:{var he=T,Ne=he._payload,De=he._init;try{return ee(De(Ne),Y,se)}catch{}}}return""}var pe=Object.prototype.hasOwnProperty,me={},ge=y.ReactDebugCurrentFrame;function fe(T){if(T){var Y=T._owner,se=ee(T.type,T._source,Y?Y.type:null);ge.setExtraStackFrame(se)}else ge.setExtraStackFrame(null)}function Ee(T,Y,se,he,Ne){{var De=Function.call.bind(pe);for(var Pe in T)if(De(T,Pe)){var _e=void 0;try{if(typeof T[Pe]!="function"){var ft=Error((he||"React class")+": "+se+" type `"+Pe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof T[Pe]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ft.name="Invariant Violation",ft}_e=T[Pe](Y,Pe,he,se,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ge){_e=Ge}_e&&!(_e instanceof Error)&&(fe(Ne),x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",he||"React class",se,Pe,typeof _e),fe(null)),_e instanceof Error&&!(_e.message in me)&&(me[_e.message]=!0,fe(Ne),x("Failed %s type: %s",se,_e.message),fe(null))}}}var Fe=Array.isArray;function we(T){return Fe(T)}function Oe(T){{var Y=typeof Symbol=="function"&&Symbol.toStringTag,se=Y&&T[Symbol.toStringTag]||T.constructor.name||"Object";return se}}function rt(T){try{return Ze(T),!1}catch{return!0}}function Ze(T){return""+T}function We(T){if(rt(T))return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Oe(T)),Ze(T)}var ot=y.ReactCurrentOwner,pt={key:!0,ref:!0,__self:!0,__source:!0},dt,Ve;function Ct(T){if(pe.call(T,"ref")){var Y=Object.getOwnPropertyDescriptor(T,"ref").get;if(Y&&Y.isReactWarning)return!1}return T.ref!==void 0}function Ke(T){if(pe.call(T,"key")){var Y=Object.getOwnPropertyDescriptor(T,"key").get;if(Y&&Y.isReactWarning)return!1}return T.key!==void 0}function Je(T,Y){typeof T.ref=="string"&&ot.current}function At(T,Y){{var se=function(){dt||(dt=!0,x("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",Y))};se.isReactWarning=!0,Object.defineProperty(T,"key",{get:se,configurable:!0})}}function Vt(T,Y){{var se=function(){Ve||(Ve=!0,x("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",Y))};se.isReactWarning=!0,Object.defineProperty(T,"ref",{get:se,configurable:!0})}}var fr=function(T,Y,se,he,Ne,De,Pe){var _e={$$typeof:t,type:T,key:Y,ref:se,props:Pe,_owner:De};return _e._store={},Object.defineProperty(_e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(_e,"_self",{configurable:!1,enumerable:!1,writable:!1,value:he}),Object.defineProperty(_e,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Ne}),Object.freeze&&(Object.freeze(_e.props),Object.freeze(_e)),_e};function Er(T,Y,se,he,Ne){{var De,Pe={},_e=null,ft=null;se!==void 0&&(We(se),_e=""+se),Ke(Y)&&(We(Y.key),_e=""+Y.key),Ct(Y)&&(ft=Y.ref,Je(Y,Ne));for(De in Y)pe.call(Y,De)&&!pt.hasOwnProperty(De)&&(Pe[De]=Y[De]);if(T&&T.defaultProps){var Ge=T.defaultProps;for(De in Ge)Pe[De]===void 0&&(Pe[De]=Ge[De])}if(_e||ft){var Ye=typeof T=="function"?T.displayName||T.name||"Unknown":T;_e&&At(Pe,Ye),ft&&Vt(Pe,Ye)}return fr(T,_e,ft,Ne,he,ot.current,Pe)}}var Mt=y.ReactCurrentOwner,ue=y.ReactDebugCurrentFrame;function be(T){if(T){var Y=T._owner,se=ee(T.type,T._source,Y?Y.type:null);ue.setExtraStackFrame(se)}else ue.setExtraStackFrame(null)}var Ce;Ce=!1;function ve(T){return typeof T=="object"&&T!==null&&T.$$typeof===t}function ie(){{if(Mt.current){var T=N(Mt.current.type);if(T)return`
|
|
22
22
|
|
|
23
|
-
Check the render method of \``+
|
|
23
|
+
Check the render method of \``+T+"`."}return""}}function Se(T){return""}var xe={};function ke(T){{var Y=ie();if(!Y){var se=typeof T=="string"?T:T.displayName||T.name;se&&(Y=`
|
|
24
24
|
|
|
25
|
-
Check the top-level render call using <`+
|
|
25
|
+
Check the top-level render call using <`+se+">.")}return Y}}function Qe(T,Y){{if(!T._store||T._store.validated||T.key!=null)return;T._store.validated=!0;var se=ke(Y);if(xe[se])return;xe[se]=!0;var he="";T&&T._owner&&T._owner!==Mt.current&&(he=" It was passed a child from "+N(T._owner.type)+"."),be(T),x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',se,he),be(null)}}function Ie(T,Y){{if(typeof T!="object")return;if(we(T))for(var se=0;se<T.length;se++){var he=T[se];ve(he)&&Qe(he,Y)}else if(ve(T))T._store&&(T._store.validated=!0);else if(T){var Ne=v(T);if(typeof Ne=="function"&&Ne!==T.entries)for(var De=Ne.call(T),Pe;!(Pe=De.next()).done;)ve(Pe.value)&&Qe(Pe.value,Y)}}}function Be(T){{var Y=T.type;if(Y==null||typeof Y=="string")return;var se;if(typeof Y=="function")se=Y.propTypes;else if(typeof Y=="object"&&(Y.$$typeof===c||Y.$$typeof===u))se=Y.propTypes;else return;if(se){var he=N(Y);Ee(se,T.props,"prop",he,T)}else if(Y.PropTypes!==void 0&&!Ce){Ce=!0;var Ne=N(Y);x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Ne||"Unknown")}typeof Y.getDefaultProps=="function"&&!Y.getDefaultProps.isReactClassApproved&&x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function at(T){{for(var Y=Object.keys(T.props),se=0;se<Y.length;se++){var he=Y[se];if(he!=="children"&&he!=="key"){be(T),x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",he),be(null);break}}T.ref!==null&&(be(T),x("Invalid attribute `ref` supplied to `React.Fragment`."),be(null))}}var et={};function it(T,Y,se,he,Ne,De){{var Pe=k(T);if(!Pe){var _e="";(T===void 0||typeof T=="object"&&T!==null&&Object.keys(T).length===0)&&(_e+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var ft=Se();ft?_e+=ft:_e+=ie();var Ge;T===null?Ge="null":we(T)?Ge="array":T!==void 0&&T.$$typeof===t?(Ge="<"+(N(T.type)||"Unknown")+" />",_e=" Did you accidentally export a JSX literal instead of a component?"):Ge=typeof T,x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ge,_e)}var Ye=Er(T,Y,se,Ne,De);if(Ye==null)return Ye;if(Pe){var _t=Y.children;if(_t!==void 0)if(he)if(we(_t)){for(var Wr=0;Wr<_t.length;Wr++)Ie(_t[Wr],T);Object.freeze&&Object.freeze(_t)}else x("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 Ie(_t,T)}if(pe.call(Y,"key")){var Pr=N(T),mt=Object.keys(Y).filter(function(k1){return k1!=="key"}),Fi=mt.length>0?"{key: someKey, "+mt.join(": ..., ")+": ...}":"{key: someKey}";if(!et[Pr+Fi]){var j1=mt.length>0?"{"+mt.join(": ..., ")+": ...}":"{}";x(`A props object containing a "key" prop is being spread into JSX:
|
|
26
26
|
let props = %s;
|
|
27
27
|
<%s {...props} />
|
|
28
28
|
React keys must be passed directly to JSX without using spread:
|
|
29
29
|
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,er,Le,wi,Le),cn[Le+er]=!0}}return u===n?hi(J):gi(J),J}}function vi(u,E,A){return un(u,E,A,!0)}function bi(u,E,A){return un(u,E,A,!1)}var yi=bi,xi=vi;lt.Fragment=n,lt.jsx=yi,lt.jsxs=xi}()),lt}var pn;function Ri(){return pn||(pn=1,process.env.NODE_ENV==="production"?yt.exports=Si():yt.exports=Ci()),yt.exports}var m=Ri();function mn(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Gn(...e){return t=>{let r=!1;const n=e.map(o=>{const a=mn(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():mn(e[o],null)}}}}function de(...e){return l.useCallback(Gn(...e),e)}var ve=l.forwardRef((e,t)=>{const{children:r,...n}=e,o=l.Children.toArray(r),a=o.find(Pi);if(a){const i=a.props.children,s=o.map(c=>c===a?l.Children.count(i)>1?l.Children.only(null):l.isValidElement(i)?i.props.children:null:c);return m.jsx(fr,{...n,ref:t,children:l.isValidElement(i)?l.cloneElement(i,void 0,s):null})}return m.jsx(fr,{...n,ref:t,children:r})});ve.displayName="Slot";var fr=l.forwardRef((e,t)=>{const{children:r,...n}=e;if(l.isValidElement(r)){const o=Ni(r),a=Ai(n,r.props);return r.type!==l.Fragment&&(a.ref=t?Gn(t,o):o),l.cloneElement(r,a)}return l.Children.count(r)>1?l.Children.only(null):null});fr.displayName="SlotClone";var Un=({children:e})=>m.jsx(m.Fragment,{children:e});function Pi(e){return l.isValidElement(e)&&e.type===Un}function Ai(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]=(...s)=>{a(...s),o(...s)}: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){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function Yn(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=Yn(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Kn(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Yn(e))&&(n&&(n+=" "),n+=t);return n}const gn=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,hn=Kn,Cr=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return hn(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:a}=t,i=Object.keys(o).map(d=>{const f=r==null?void 0:r[d],p=a==null?void 0:a[d];if(f===null)return null;const v=gn(f)||gn(p);return o[d][v]}),s=r&&Object.entries(r).reduce((d,f)=>{let[p,v]=f;return v===void 0||(d[p]=v),d},{}),c=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((d,f)=>{let{class:p,className:v,...h}=f;return Object.entries(h).every(b=>{let[g,y]=b;return Array.isArray(y)?y.includes({...a,...s}[g]):{...a,...s}[g]===y})?[...d,p,v]:d},[]);return hn(e,i,c,r==null?void 0:r.class,r==null?void 0:r.className)},Rr="-",Ti=e=>{const t=_i(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:i=>{const s=i.split(Rr);return s[0]===""&&s.length!==1&&s.shift(),Xn(s,t)||Oi(i)},getConflictingClassGroupIds:(i,s)=>{const c=r[i]||[];return s&&n[i]?[...c,...n[i]]:c}}},Xn=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?Xn(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(Rr);return(i=t.validators.find(({validator:s})=>s(a)))==null?void 0:i.classGroupId},vn=/^\[(.+)\]$/,Oi=e=>{if(vn.test(e)){const t=vn.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},_i=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const o in r)pr(r[o],n,o,t);return n},pr=(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(ki(o)){pr(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([a,i])=>{pr(i,bn(t,a),r,n)})})},bn=(e,t)=>{let r=e;return t.split(Rr).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},ki=e=>e.isThemeGetter,ji=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(a,i)=>{r.set(a,i),t++,t>e&&(t=0,n=r,r=new Map)};return{get(a){let i=r.get(a);if(i!==void 0)return i;if((i=n.get(a))!==void 0)return o(a,i),i},set(a,i){r.has(a)?r.set(a,i):o(a,i)}}},mr="!",gr=":",Mi=gr.length,Di=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const a=[];let i=0,s=0,c=0,d;for(let b=0;b<o.length;b++){let g=o[b];if(i===0&&s===0){if(g===gr){a.push(o.slice(c,b)),c=b+Mi;continue}if(g==="/"){d=b;continue}}g==="["?i++:g==="]"?i--:g==="("?s++:g===")"&&s--}const f=a.length===0?o:o.substring(c),p=Ii(f),v=p!==f,h=d&&d>c?d-c:void 0;return{modifiers:a,hasImportantModifier:v,baseClassName:p,maybePostfixModifierPosition:h}};if(t){const o=t+gr,a=n;n=i=>i.startsWith(o)?a(i.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:i,maybePostfixModifierPosition:void 0}}if(r){const o=n;n=a=>r({className:a,parseClassName:o})}return n},Ii=e=>e.endsWith(mr)?e.substring(0,e.length-1):e.startsWith(mr)?e.substring(1):e,Li=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(i=>{i[0]==="["||t[i]?(o.push(...a.sort(),i),a=[]):a.push(i)}),o.push(...a.sort()),o}},Fi=e=>({cache:ji(e.cacheSize),parseClassName:Di(e),sortModifiers:Li(e),...Ti(e)}),$i=/\s+/,zi=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:a}=t,i=[],s=e.trim().split($i);let c="";for(let d=s.length-1;d>=0;d-=1){const f=s[d],{isExternal:p,modifiers:v,hasImportantModifier:h,baseClassName:b,maybePostfixModifierPosition:g}=r(f);if(p){c=f+(c.length>0?" "+c:c);continue}let y=!!g,x=n(y?b.substring(0,g):b);if(!x){if(!y){c=f+(c.length>0?" "+c:c);continue}if(x=n(b),!x){c=f+(c.length>0?" "+c:c);continue}y=!1}const w=a(v).join(":"),C=h?w+mr:w,R=C+x;if(i.includes(R))continue;i.push(R);const P=o(x,y);for(let S=0;S<P.length;++S){const N=P[S];i.push(C+N)}c=f+(c.length>0?" "+c:c)}return c};function Bi(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=qn(t))&&(n&&(n+=" "),n+=r);return n}const qn=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=qn(e[n]))&&(r&&(r+=" "),r+=t);return r};function Wi(e,...t){let r,n,o,a=i;function i(c){const d=t.reduce((f,p)=>p(f),e());return r=Fi(d),n=r.cache.get,o=r.cache.set,a=s,s(c)}function s(c){const d=n(c);if(d)return d;const f=zi(c,r);return o(c,f),f}return function(){return a(Bi.apply(null,arguments))}}const Q=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Jn=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Zn=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Vi=/^\d+\/\d+$/,Hi=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Gi=/\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$/,Ui=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Yi=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ki=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ye=e=>Vi.test(e),L=e=>!!e&&!Number.isNaN(Number(e)),Fe=e=>!!e&&Number.isInteger(Number(e)),yn=e=>e.endsWith("%")&&L(e.slice(0,-1)),Re=e=>Hi.test(e),Xi=()=>!0,qi=e=>Gi.test(e)&&!Ui.test(e),Pr=()=>!1,Ji=e=>Yi.test(e),Zi=e=>Ki.test(e),Qi=e=>!T(e)&&!O(e),es=e=>tt(e,to,Pr),T=e=>Jn.test(e),$e=e=>tt(e,ro,qi),tr=e=>tt(e,ds,L),ts=e=>tt(e,Qn,Pr),rs=e=>tt(e,eo,Zi),ns=e=>tt(e,Pr,Ji),O=e=>Zn.test(e),xt=e=>rt(e,ro),os=e=>rt(e,fs),as=e=>rt(e,Qn),is=e=>rt(e,to),ss=e=>rt(e,eo),ls=e=>rt(e,ps,!0),tt=(e,t,r)=>{const n=Jn.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},rt=(e,t,r=!1)=>{const n=Zn.exec(e);return n?n[1]?t(n[1]):r:!1},Qn=e=>e==="position",cs=new Set(["image","url"]),eo=e=>cs.has(e),us=new Set(["length","size","percentage"]),to=e=>us.has(e),ro=e=>e==="length",ds=e=>e==="number",fs=e=>e==="family-name",ps=e=>e==="shadow",ms=()=>{const e=Q("color"),t=Q("font"),r=Q("text"),n=Q("font-weight"),o=Q("tracking"),a=Q("leading"),i=Q("breakpoint"),s=Q("container"),c=Q("spacing"),d=Q("radius"),f=Q("shadow"),p=Q("inset-shadow"),v=Q("drop-shadow"),h=Q("blur"),b=Q("perspective"),g=Q("aspect"),y=Q("ease"),x=Q("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],R=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto","contain","none"],S=()=>[O,T,c],N=()=>[Ye,"full","auto",...S()],B=()=>[Fe,"none","subgrid",O,T],G=()=>["auto",{span:["full",Fe,O,T]},O,T],V=()=>[Fe,"auto",O,T],q=()=>["auto","min","max","fr",O,T],K=()=>["start","end","center","between","around","evenly","stretch","baseline"],F=()=>["start","end","center","stretch"],D=()=>["auto",...S()],U=()=>[Ye,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...S()],k=()=>[e,O,T],Y=()=>[yn,$e],_=()=>["","none","full",d,O,T],z=()=>["",L,xt,$e],Z=()=>["solid","dashed","dotted","double"],pe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],_e=()=>["","none",h,O,T],ke=()=>["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",O,T],Se=()=>["none",L,O,T],Ce=()=>["none",L,O,T],ye=()=>[L,O,T],le=()=>[Ye,"full",...S()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Re],breakpoint:[Re],color:[Xi],container:[Re],"drop-shadow":[Re],ease:["in","out","in-out"],font:[Qi],"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",L],text:[Re],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ye,T,O,g]}],container:["container"],columns:[{columns:[L,T,O,s]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"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:[...C(),T,O]}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:N()}],"inset-x":[{"inset-x":N()}],"inset-y":[{"inset-y":N()}],start:[{start:N()}],end:[{end:N()}],top:[{top:N()}],right:[{right:N()}],bottom:[{bottom:N()}],left:[{left:N()}],visibility:["visible","invisible","collapse"],z:[{z:[Fe,"auto",O,T]}],basis:[{basis:[Ye,"full","auto",s,...S()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[L,Ye,"auto","initial","none",T]}],grow:[{grow:["",L,O,T]}],shrink:[{shrink:["",L,O,T]}],order:[{order:[Fe,"first","last","none",O,T]}],"grid-cols":[{"grid-cols":B()}],"col-start-end":[{col:G()}],"col-start":[{"col-start":V()}],"col-end":[{"col-end":V()}],"grid-rows":[{"grid-rows":B()}],"row-start-end":[{row:G()}],"row-start":[{"row-start":V()}],"row-end":[{"row-end":V()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":q()}],"auto-rows":[{"auto-rows":q()}],gap:[{gap:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"justify-content":[{justify:[...K(),"normal"]}],"justify-items":[{"justify-items":[...F(),"normal"]}],"justify-self":[{"justify-self":["auto",...F()]}],"align-content":[{content:["normal",...K()]}],"align-items":[{items:[...F(),"baseline"]}],"align-self":[{self:["auto",...F(),"baseline"]}],"place-content":[{"place-content":K()}],"place-items":[{"place-items":[...F(),"baseline"]}],"place-self":[{"place-self":["auto",...F()]}],p:[{p:S()}],px:[{px:S()}],py:[{py:S()}],ps:[{ps:S()}],pe:[{pe:S()}],pt:[{pt:S()}],pr:[{pr:S()}],pb:[{pb:S()}],pl:[{pl:S()}],m:[{m:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":S()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":S()}],"space-y-reverse":["space-y-reverse"],size:[{size:U()}],w:[{w:[s,"screen",...U()]}],"min-w":[{"min-w":[s,"screen","none",...U()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[i]},...U()]}],h:[{h:["screen",...U()]}],"min-h":[{"min-h":["screen","none",...U()]}],"max-h":[{"max-h":["screen",...U()]}],"font-size":[{text:["base",r,xt,$e]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,O,tr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",yn,T]}],"font-family":[{font:[os,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,O,T]}],"line-clamp":[{"line-clamp":[L,"none",O,tr]}],leading:[{leading:[a,...S()]}],"list-image":[{"list-image":["none",O,T]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",O,T]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:k()}],"text-color":[{text:k()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Z(),"wavy"]}],"text-decoration-thickness":[{decoration:[L,"from-font","auto",O,$e]}],"text-decoration-color":[{decoration:k()}],"underline-offset":[{"underline-offset":[L,"auto",O,T]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:S()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",O,T]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",O,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:[...C(),as,ts]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:["auto","cover","contain",is,es]}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Fe,O,T],radial:["",O,T],conic:[Fe,O,T]},ss,rs]}],"bg-color":[{bg:k()}],"gradient-from-pos":[{from:Y()}],"gradient-via-pos":[{via:Y()}],"gradient-to-pos":[{to:Y()}],"gradient-from":[{from:k()}],"gradient-via":[{via:k()}],"gradient-to":[{to:k()}],rounded:[{rounded:_()}],"rounded-s":[{"rounded-s":_()}],"rounded-e":[{"rounded-e":_()}],"rounded-t":[{"rounded-t":_()}],"rounded-r":[{"rounded-r":_()}],"rounded-b":[{"rounded-b":_()}],"rounded-l":[{"rounded-l":_()}],"rounded-ss":[{"rounded-ss":_()}],"rounded-se":[{"rounded-se":_()}],"rounded-ee":[{"rounded-ee":_()}],"rounded-es":[{"rounded-es":_()}],"rounded-tl":[{"rounded-tl":_()}],"rounded-tr":[{"rounded-tr":_()}],"rounded-br":[{"rounded-br":_()}],"rounded-bl":[{"rounded-bl":_()}],"border-w":[{border:z()}],"border-w-x":[{"border-x":z()}],"border-w-y":[{"border-y":z()}],"border-w-s":[{"border-s":z()}],"border-w-e":[{"border-e":z()}],"border-w-t":[{"border-t":z()}],"border-w-r":[{"border-r":z()}],"border-w-b":[{"border-b":z()}],"border-w-l":[{"border-l":z()}],"divide-x":[{"divide-x":z()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":z()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Z(),"hidden","none"]}],"divide-style":[{divide:[...Z(),"hidden","none"]}],"border-color":[{border:k()}],"border-color-x":[{"border-x":k()}],"border-color-y":[{"border-y":k()}],"border-color-s":[{"border-s":k()}],"border-color-e":[{"border-e":k()}],"border-color-t":[{"border-t":k()}],"border-color-r":[{"border-r":k()}],"border-color-b":[{"border-b":k()}],"border-color-l":[{"border-l":k()}],"divide-color":[{divide:k()}],"outline-style":[{outline:[...Z(),"none","hidden"]}],"outline-offset":[{"outline-offset":[L,O,T]}],"outline-w":[{outline:["",L,xt,$e]}],"outline-color":[{outline:[e]}],shadow:[{shadow:["","none",f,ls,ns]}],"shadow-color":[{shadow:k()}],"inset-shadow":[{"inset-shadow":["none",O,T,p]}],"inset-shadow-color":[{"inset-shadow":k()}],"ring-w":[{ring:z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:k()}],"ring-offset-w":[{"ring-offset":[L,$e]}],"ring-offset-color":[{"ring-offset":k()}],"inset-ring-w":[{"inset-ring":z()}],"inset-ring-color":[{"inset-ring":k()}],opacity:[{opacity:[L,O,T]}],"mix-blend":[{"mix-blend":[...pe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":pe()}],filter:[{filter:["","none",O,T]}],blur:[{blur:_e()}],brightness:[{brightness:[L,O,T]}],contrast:[{contrast:[L,O,T]}],"drop-shadow":[{"drop-shadow":["","none",v,O,T]}],grayscale:[{grayscale:["",L,O,T]}],"hue-rotate":[{"hue-rotate":[L,O,T]}],invert:[{invert:["",L,O,T]}],saturate:[{saturate:[L,O,T]}],sepia:[{sepia:["",L,O,T]}],"backdrop-filter":[{"backdrop-filter":["","none",O,T]}],"backdrop-blur":[{"backdrop-blur":_e()}],"backdrop-brightness":[{"backdrop-brightness":[L,O,T]}],"backdrop-contrast":[{"backdrop-contrast":[L,O,T]}],"backdrop-grayscale":[{"backdrop-grayscale":["",L,O,T]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[L,O,T]}],"backdrop-invert":[{"backdrop-invert":["",L,O,T]}],"backdrop-opacity":[{"backdrop-opacity":[L,O,T]}],"backdrop-saturate":[{"backdrop-saturate":[L,O,T]}],"backdrop-sepia":[{"backdrop-sepia":["",L,O,T]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":S()}],"border-spacing-x":[{"border-spacing-x":S()}],"border-spacing-y":[{"border-spacing-y":S()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",O,T]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[L,"initial",O,T]}],ease:[{ease:["linear","initial",y,O,T]}],delay:[{delay:[L,O,T]}],animate:[{animate:["none",x,O,T]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,O,T]}],"perspective-origin":[{"perspective-origin":ke()}],rotate:[{rotate:Se()}],"rotate-x":[{"rotate-x":Se()}],"rotate-y":[{"rotate-y":Se()}],"rotate-z":[{"rotate-z":Se()}],scale:[{scale:Ce()}],"scale-x":[{"scale-x":Ce()}],"scale-y":[{"scale-y":Ce()}],"scale-z":[{"scale-z":Ce()}],"scale-3d":["scale-3d"],skew:[{skew:ye()}],"skew-x":[{"skew-x":ye()}],"skew-y":[{"skew-y":ye()}],transform:[{transform:[O,T,"","none","gpu","cpu"]}],"transform-origin":[{origin:ke()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:le()}],"translate-x":[{"translate-x":le()}],"translate-y":[{"translate-y":le()}],"translate-z":[{"translate-z":le()}],"translate-none":["translate-none"],accent:[{accent:k()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:k()}],"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",O,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":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"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",O,T]}],fill:[{fill:["none",...k()]}],"stroke-w":[{stroke:[L,xt,$e,tr]}],stroke:[{stroke:["none",...k()]}],"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-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-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:["before","after","placeholder","file","marker","selection","first-line","first-letter","backdrop","*","**"]}},gs=Wi(ms);function M(...e){return gs(Kn(e))}const hs=Cr("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),Ar=l.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...o},a)=>{const i=n?ve:"button";return m.jsx(i,{className:M(hs({variant:t,size:r,className:e})),ref:a,...o})});Ar.displayName="Button";function ne(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e==null||e(o),r===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function vs(e,t){const r=l.createContext(t),n=a=>{const{children:i,...s}=a,c=l.useMemo(()=>s,Object.values(s));return m.jsx(r.Provider,{value:c,children:i})};n.displayName=e+"Provider";function o(a){const i=l.useContext(r);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function Nr(e,t=[]){let r=[];function n(a,i){const s=l.createContext(i),c=r.length;r=[...r,i];const d=p=>{var x;const{scope:v,children:h,...b}=p,g=((x=v==null?void 0:v[e])==null?void 0:x[c])||s,y=l.useMemo(()=>b,Object.values(b));return m.jsx(g.Provider,{value:y,children:h})};d.displayName=a+"Provider";function f(p,v){var g;const h=((g=v==null?void 0:v[e])==null?void 0:g[c])||s,b=l.useContext(h);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[d,f]}const o=()=>{const a=r.map(i=>l.createContext(i));return function(s){const c=(s==null?void 0:s[e])||a;return l.useMemo(()=>({[`__scope${e}`]:{...s,[e]:c}}),[s,c])}};return o.scopeName=e,[n,bs(o,...t)]}function bs(...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 i=n.reduce((s,{useScope:c,scopeName:d})=>{const p=c(a)[`__scope${d}`];return{...s,...p}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}var ze=globalThis!=null&&globalThis.document?l.useLayoutEffect:()=>{},ys=l.useId||(()=>{}),xs=0;function At(e){const[t,r]=l.useState(ys());return ze(()=>{r(n=>n??String(xs++))},[e]),e||(t?`radix-${t}`:"")}function Ae(e){const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),l.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function no({prop:e,defaultProp:t,onChange:r=()=>{}}){const[n,o]=ws({defaultProp:t,onChange:r}),a=e!==void 0,i=a?e:n,s=Ae(r),c=l.useCallback(d=>{if(a){const p=typeof d=="function"?d(e):d;p!==e&&s(p)}else o(d)},[a,e,o,s]);return[i,c]}function ws({defaultProp:e,onChange:t}){const r=l.useState(e),[n]=r,o=l.useRef(n),a=Ae(t);return l.useEffect(()=>{o.current!==n&&(a(n),o.current=n)},[n,o,a]),r}var Es=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],te=Es.reduce((e,t)=>{const r=l.forwardRef((n,o)=>{const{asChild:a,...i}=n,s=a?ve:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(s,{...i,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Ss(e,t){e&&Hn.flushSync(()=>e.dispatchEvent(t))}function Cs(e,t=globalThis==null?void 0:globalThis.document){const r=Ae(e);l.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 Rs="DismissableLayer",hr="dismissableLayer.update",Ps="dismissableLayer.pointerDownOutside",As="dismissableLayer.focusOutside",xn,oo=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Tr=l.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:s,...c}=e,d=l.useContext(oo),[f,p]=l.useState(null),v=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=l.useState({}),b=de(t,N=>p(N)),g=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),x=g.indexOf(y),w=f?g.indexOf(f):-1,C=d.layersWithOutsidePointerEventsDisabled.size>0,R=w>=x,P=Os(N=>{const B=N.target,G=[...d.branches].some(V=>V.contains(B));!R||G||(o==null||o(N),i==null||i(N),N.defaultPrevented||s==null||s())},v),S=_s(N=>{const B=N.target;[...d.branches].some(V=>V.contains(B))||(a==null||a(N),i==null||i(N),N.defaultPrevented||s==null||s())},v);return Cs(N=>{w===d.layers.size-1&&(n==null||n(N),!N.defaultPrevented&&s&&(N.preventDefault(),s()))},v),l.useEffect(()=>{if(f)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(xn=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),wn(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=xn)}},[f,v,r,d]),l.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),wn())},[f,d]),l.useEffect(()=>{const N=()=>h({});return document.addEventListener(hr,N),()=>document.removeEventListener(hr,N)},[]),m.jsx(te.div,{...c,ref:b,style:{pointerEvents:C?R?"auto":"none":void 0,...e.style},onFocusCapture:ne(e.onFocusCapture,S.onFocusCapture),onBlurCapture:ne(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:ne(e.onPointerDownCapture,P.onPointerDownCapture)})});Tr.displayName=Rs;var Ns="DismissableLayerBranch",Ts=l.forwardRef((e,t)=>{const r=l.useContext(oo),n=l.useRef(null),o=de(t,n);return l.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),m.jsx(te.div,{...e,ref:o})});Ts.displayName=Ns;function Os(e,t=globalThis==null?void 0:globalThis.document){const r=Ae(e),n=l.useRef(!1),o=l.useRef(()=>{});return l.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let c=function(){ao(Ps,r,d,{discrete:!0})};const d={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);n.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function _s(e,t=globalThis==null?void 0:globalThis.document){const r=Ae(e),n=l.useRef(!1);return l.useEffect(()=>{const o=a=>{a.target&&!n.current&&ao(As,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 wn(){const e=new CustomEvent(hr);document.dispatchEvent(e)}function ao(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?Ss(o,a):o.dispatchEvent(a)}var rr="focusScope.autoFocusOnMount",nr="focusScope.autoFocusOnUnmount",En={bubbles:!1,cancelable:!0},ks="FocusScope",io=l.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[s,c]=l.useState(null),d=Ae(o),f=Ae(a),p=l.useRef(null),v=de(t,g=>c(g)),h=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(n){let g=function(C){if(h.paused||!s)return;const R=C.target;s.contains(R)?p.current=R:Pe(p.current,{select:!0})},y=function(C){if(h.paused||!s)return;const R=C.relatedTarget;R!==null&&(s.contains(R)||Pe(p.current,{select:!0}))},x=function(C){if(document.activeElement===document.body)for(const P of C)P.removedNodes.length>0&&Pe(s)};document.addEventListener("focusin",g),document.addEventListener("focusout",y);const w=new MutationObserver(x);return s&&w.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",y),w.disconnect()}}},[n,s,h.paused]),l.useEffect(()=>{if(s){Cn.add(h);const g=document.activeElement;if(!s.contains(g)){const x=new CustomEvent(rr,En);s.addEventListener(rr,d),s.dispatchEvent(x),x.defaultPrevented||(js(Fs(so(s)),{select:!0}),document.activeElement===g&&Pe(s))}return()=>{s.removeEventListener(rr,d),setTimeout(()=>{const x=new CustomEvent(nr,En);s.addEventListener(nr,f),s.dispatchEvent(x),x.defaultPrevented||Pe(g??document.body,{select:!0}),s.removeEventListener(nr,f),Cn.remove(h)},0)}}},[s,d,f,h]);const b=l.useCallback(g=>{if(!r&&!n||h.paused)return;const y=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,x=document.activeElement;if(y&&x){const w=g.currentTarget,[C,R]=Ms(w);C&&R?!g.shiftKey&&x===R?(g.preventDefault(),r&&Pe(C,{select:!0})):g.shiftKey&&x===C&&(g.preventDefault(),r&&Pe(R,{select:!0})):x===w&&g.preventDefault()}},[r,n,h.paused]);return m.jsx(te.div,{tabIndex:-1,...i,ref:v,onKeyDown:b})});io.displayName=ks;function js(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Pe(n,{select:t}),document.activeElement!==r)return}function Ms(e){const t=so(e),r=Sn(t,e),n=Sn(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 Sn(e,t){for(const r of e)if(!Ds(r,{upTo:t}))return r}function Ds(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 Is(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&&Is(e)&&t&&e.select()}}var Cn=Ls();function Ls(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=Rn(e,t),e.unshift(t)},remove(t){var r;e=Rn(e,t),(r=e[0])==null||r.resume()}}}function Rn(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function Fs(e){return e.filter(t=>t.tagName!=="A")}var $s="Portal",Or=l.forwardRef((e,t)=>{var s;const{container:r,...n}=e,[o,a]=l.useState(!1);ze(()=>a(!0),[]);const i=r||o&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return i?Wn.createPortal(m.jsx(te.div,{...n,ref:t}),i):null});Or.displayName=$s;function zs(e,t){return l.useReducer((r,n)=>t[r][n]??r,e)}var nt=e=>{const{present:t,children:r}=e,n=Bs(t),o=typeof r=="function"?r({present:n.isPresent}):l.Children.only(r),a=de(n.ref,Ws(o));return typeof r=="function"||n.isPresent?l.cloneElement(o,{ref:a}):null};nt.displayName="Presence";function Bs(e){const[t,r]=l.useState(),n=l.useRef({}),o=l.useRef(e),a=l.useRef("none"),i=e?"mounted":"unmounted",[s,c]=zs(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect(()=>{const d=wt(n.current);a.current=s==="mounted"?d:"none"},[s]),ze(()=>{const d=n.current,f=o.current;if(f!==e){const v=a.current,h=wt(d);e?c("MOUNT"):h==="none"||(d==null?void 0:d.display)==="none"?c("UNMOUNT"):c(f&&v!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),ze(()=>{if(t){let d;const f=t.ownerDocument.defaultView??window,p=h=>{const g=wt(n.current).includes(h.animationName);if(h.target===t&&g&&(c("ANIMATION_END"),!o.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",d=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},v=h=>{h.target===t&&(a.current=wt(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(d),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:l.useCallback(d=>{d&&(n.current=getComputedStyle(d)),r(d)},[])}}function wt(e){return(e==null?void 0:e.animationName)||"none"}function Ws(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var or=0;function Vs(){l.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Pn()),document.body.insertAdjacentElement("beforeend",e[1]??Pn()),or++,()=>{or===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),or--}},[])}function Pn(){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 me=function(){return me=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},me.apply(this,arguments)};function lo(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 Hs(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))}var Nt="right-scroll-bar-position",Tt="width-before-scroll-bar",Gs="with-scroll-bars-hidden",Us="--removed-body-scroll-bar-size";function ar(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Ys(e,t){var r=se.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 Ks=typeof window<"u"?l.useLayoutEffect:l.useEffect,An=new WeakMap;function Xs(e,t){var r=Ys(null,function(n){return e.forEach(function(o){return ar(o,n)})});return Ks(function(){var n=An.get(r);if(n){var o=new Set(n),a=new Set(e),i=r.current;o.forEach(function(s){a.has(s)||ar(s,null)}),a.forEach(function(s){o.has(s)||ar(s,i)})}An.set(r,e)},[e]),r}function qs(e){return e}function Js(e,t){t===void 0&&(t=qs);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 i=t(a,n);return r.push(i),function(){r=r.filter(function(s){return s!==i})}},assignSyncMedium:function(a){for(n=!0;r.length;){var i=r;r=[],i.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var i=[];if(r.length){var s=r;r=[],s.forEach(a),i=r}var c=function(){var f=i;i=[],f.forEach(a)},d=function(){return Promise.resolve().then(c)};d(),r={push:function(f){i.push(f),d()},filter:function(f){return i=i.filter(f),r}}}};return o}function Zs(e){e===void 0&&(e={});var t=Js(null);return t.options=me({async:!0,ssr:!1},e),t}var co=function(e){var t=e.sideCar,r=lo(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 l.createElement(n,me({},r))};co.isSideCarExport=!0;function Qs(e,t){return e.useMedium(t),co}var uo=Zs(),ir=function(){},$t=l.forwardRef(function(e,t){var r=l.useRef(null),n=l.useState({onScrollCapture:ir,onWheelCapture:ir,onTouchMoveCapture:ir}),o=n[0],a=n[1],i=e.forwardProps,s=e.children,c=e.className,d=e.removeScrollBar,f=e.enabled,p=e.shards,v=e.sideCar,h=e.noIsolation,b=e.inert,g=e.allowPinchZoom,y=e.as,x=y===void 0?"div":y,w=e.gapMode,C=lo(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=v,P=Xs([r,t]),S=me(me({},C),o);return l.createElement(l.Fragment,null,f&&l.createElement(R,{sideCar:uo,removeScrollBar:d,shards:p,noIsolation:h,inert:b,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),i?l.cloneElement(l.Children.only(s),me(me({},S),{ref:P})):l.createElement(x,me({},S,{className:c,ref:P}),s))});$t.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};$t.classNames={fullWidth:Tt,zeroRight:Nt};var el=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function tl(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=el();return t&&e.setAttribute("nonce",t),e}function rl(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function nl(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var ol=function(){var e=0,t=null;return{add:function(r){e==0&&(t=tl())&&(rl(t,r),nl(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},al=function(){var e=ol();return function(t,r){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},fo=function(){var e=al(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},il={left:0,top:0,right:0,gap:0},sr=function(e){return parseInt(e||"",10)||0},sl=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[sr(r),sr(n),sr(o)]},ll=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return il;var t=sl(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])}},cl=fo(),Je="data-scroll-locked",ul=function(e,t,r,n){var o=e.left,a=e.top,i=e.right,s=e.gap;return r===void 0&&(r="margin"),`
|
|
31
|
-
|
|
30
|
+
<%s key={someKey} {...props} />`,Fi,Pr,j1,Pr),et[Pr+Fi]=!0}}return T===n?at(Ye):Be(Ye),Ye}}function zo(T,Y,se){return it(T,Y,se,!0)}function tr(T,Y,se){return it(T,Y,se,!1)}var Gp=tr,D1=zo;jn.Fragment=n,jn.jsx=Gp,jn.jsxs=D1}()),jn}var Kp;function F1(){return Kp||(Kp=1,process.env.NODE_ENV==="production"?Ho.exports=$1():Ho.exports=L1()),Ho.exports}var f=F1();function B1(e,t){const r=d.createContext(t),n=a=>{const{children:i,...s}=a,c=d.useMemo(()=>s,Object.values(s));return f.jsx(r.Provider,{value:c,children:i})};n.displayName=e+"Provider";function o(a){const i=d.useContext(r);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function je(e,t=[]){let r=[];function n(a,i){const s=d.createContext(i),c=r.length;r=[...r,i];const l=u=>{var y;const{scope:m,children:b,...g}=u,h=((y=m==null?void 0:m[e])==null?void 0:y[c])||s,v=d.useMemo(()=>g,Object.values(g));return f.jsx(h.Provider,{value:v,children:b})};l.displayName=a+"Provider";function p(u,m){var h;const b=((h=m==null?void 0:m[e])==null?void 0:h[c])||s,g=d.useContext(b);if(g)return g;if(i!==void 0)return i;throw new Error(`\`${u}\` must be used within \`${a}\``)}return[l,p]}const o=()=>{const a=r.map(i=>d.createContext(i));return function(s){const c=(s==null?void 0:s[e])||a;return d.useMemo(()=>({[`__scope${e}`]:{...s,[e]:c}}),[s,c])}};return o.scopeName=e,[n,z1(o,...t)]}function z1(...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 i=n.reduce((s,{useScope:c,scopeName:l})=>{const u=c(a)[`__scope${l}`];return{...s,...u}},{});return d.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}function Yp(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function go(...e){return t=>{let r=!1;const n=e.map(o=>{const a=Yp(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():Yp(e[o],null)}}}}function de(...e){return d.useCallback(go(...e),e)}var st=d.forwardRef((e,t)=>{const{children:r,...n}=e,o=d.Children.toArray(r),a=o.find(q1);if(a){const i=a.props.children,s=o.map(c=>c===a?d.Children.count(i)>1?d.Children.only(null):d.isValidElement(i)?i.props.children:null:c);return f.jsx(du,{...n,ref:t,children:d.isValidElement(i)?d.cloneElement(i,void 0,s):null})}return f.jsx(du,{...n,ref:t,children:r})});st.displayName="Slot";var du=d.forwardRef((e,t)=>{const{children:r,...n}=e;if(d.isValidElement(r)){const o=V1(r),a=H1(n,r.props);return r.type!==d.Fragment&&(a.ref=t?go(t,o):o),d.cloneElement(r,a)}return d.Children.count(r)>1?d.Children.only(null):null});du.displayName="SlotClone";var dd=({children:e})=>f.jsx(f.Fragment,{children:e});function q1(e){return d.isValidElement(e)&&e.type===dd}function H1(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]=(...s)=>{a(...s),o(...s)}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function V1(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function sr(e){const t=e+"CollectionProvider",[r,n]=je(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),i=b=>{const{scope:g,children:h}=b,v=E.useRef(null),y=E.useRef(new Map).current;return f.jsx(o,{scope:g,itemMap:y,collectionRef:v,children:h})};i.displayName=t;const s=e+"CollectionSlot",c=E.forwardRef((b,g)=>{const{scope:h,children:v}=b,y=a(s,h),x=de(g,y.collectionRef);return f.jsx(st,{ref:x,children:v})});c.displayName=s;const l=e+"CollectionItemSlot",p="data-radix-collection-item",u=E.forwardRef((b,g)=>{const{scope:h,children:v,...y}=b,x=E.useRef(null),w=de(g,x),S=a(l,h);return E.useEffect(()=>(S.itemMap.set(x,{ref:x,...y}),()=>void S.itemMap.delete(x))),f.jsx(st,{[p]:"",ref:w,children:v})});u.displayName=l;function m(b){const g=a(e+"CollectionConsumer",b);return E.useCallback(()=>{const v=g.collectionRef.current;if(!v)return[];const y=Array.from(v.querySelectorAll(`[${p}]`));return Array.from(g.itemMap.values()).sort((S,_)=>y.indexOf(S.ref.current)-y.indexOf(_.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:i,Slot:c,ItemSlot:u},m,n]}function B(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e==null||e(o),r===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Te(e){const t=d.useRef(e);return d.useEffect(()=>{t.current=e}),d.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function $e({prop:e,defaultProp:t,onChange:r=()=>{}}){const[n,o]=G1({defaultProp:t,onChange:r}),a=e!==void 0,i=a?e:n,s=Te(r),c=d.useCallback(l=>{if(a){const u=typeof l=="function"?l(e):l;u!==e&&s(u)}else o(l)},[a,e,o,s]);return[i,c]}function G1({defaultProp:e,onChange:t}){const r=d.useState(e),[n]=r,o=d.useRef(n),a=Te(t);return d.useEffect(()=>{o.current!==n&&(a(n),o.current=n)},[n,o,a]),r}var U1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],X=U1.reduce((e,t)=>{const r=d.forwardRef((n,o)=>{const{asChild:a,...i}=n,s=a?st:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(s,{...i,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Xn(e,t){e&&ho.flushSync(()=>e.dispatchEvent(t))}var He=globalThis!=null&&globalThis.document?d.useLayoutEffect:()=>{};function W1(e,t){return d.useReducer((r,n)=>t[r][n]??r,e)}var Le=e=>{const{present:t,children:r}=e,n=K1(t),o=typeof r=="function"?r({present:n.isPresent}):d.Children.only(r),a=de(n.ref,Y1(o));return typeof r=="function"||n.isPresent?d.cloneElement(o,{ref:a}):null};Le.displayName="Presence";function K1(e){const[t,r]=d.useState(),n=d.useRef({}),o=d.useRef(e),a=d.useRef("none"),i=e?"mounted":"unmounted",[s,c]=W1(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return d.useEffect(()=>{const l=Vo(n.current);a.current=s==="mounted"?l:"none"},[s]),He(()=>{const l=n.current,p=o.current;if(p!==e){const m=a.current,b=Vo(l);e?c("MOUNT"):b==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(p&&m!==b?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),He(()=>{if(t){let l;const p=t.ownerDocument.defaultView??window,u=b=>{const h=Vo(n.current).includes(b.animationName);if(b.target===t&&h&&(c("ANIMATION_END"),!o.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",l=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},m=b=>{b.target===t&&(a.current=Vo(n.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{p.clearTimeout(l),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:d.useCallback(l=>{l&&(n.current=getComputedStyle(l)),r(l)},[])}}function Vo(e){return(e==null?void 0:e.animationName)||"none"}function Y1(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var X1=d.useId||(()=>{}),Z1=0;function Ue(e){const[t,r]=d.useState(X1());return He(()=>{r(n=>n??String(Z1++))},[e]),t?`radix-${t}`:""}var fd="Collapsible",[J1,Rb]=je(fd),[Q1,pd]=J1(fd),Eb=d.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:n,defaultOpen:o,disabled:a,onOpenChange:i,...s}=e,[c=!1,l]=$e({prop:n,defaultProp:o,onChange:i});return f.jsx(Q1,{scope:r,disabled:a,contentId:Ue(),open:c,onOpenToggle:d.useCallback(()=>l(p=>!p),[l]),children:f.jsx(X.div,{"data-state":vd(c),"data-disabled":a?"":void 0,...s,ref:t})})});Eb.displayName=fd;var Pb="CollapsibleTrigger",md=d.forwardRef((e,t)=>{const{__scopeCollapsible:r,...n}=e,o=pd(Pb,r);return f.jsx(X.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":vd(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...n,ref:t,onClick:B(e.onClick,o.onOpenToggle)})});md.displayName=Pb;var hd="CollapsibleContent",gd=d.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=pd(hd,e.__scopeCollapsible);return f.jsx(Le,{present:r||o.open,children:({present:a})=>f.jsx(eN,{...n,ref:t,present:a})})});gd.displayName=hd;var eN=d.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:n,children:o,...a}=e,i=pd(hd,r),[s,c]=d.useState(n),l=d.useRef(null),p=de(t,l),u=d.useRef(0),m=u.current,b=d.useRef(0),g=b.current,h=i.open||s,v=d.useRef(h),y=d.useRef(void 0);return d.useEffect(()=>{const x=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(x)},[]),He(()=>{const x=l.current;if(x){y.current=y.current||{transitionDuration:x.style.transitionDuration,animationName:x.style.animationName},x.style.transitionDuration="0s",x.style.animationName="none";const w=x.getBoundingClientRect();u.current=w.height,b.current=w.width,v.current||(x.style.transitionDuration=y.current.transitionDuration,x.style.animationName=y.current.animationName),c(n)}},[i.open,n]),f.jsx(X.div,{"data-state":vd(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!h,...a,ref:p,style:{"--radix-collapsible-content-height":m?`${m}px`:void 0,"--radix-collapsible-content-width":g?`${g}px`:void 0,...e.style},children:h&&o})});function vd(e){return e?"open":"closed"}var Tb=Eb,tN=md,rN=gd,nN=d.createContext(void 0);function Ft(e){const t=d.useContext(nN);return e||t||"ltr"}var cr="Accordion",oN=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[bd,aN,iN]=sr(cr),[Ka,UV]=je(cr,[iN,Rb]),yd=Rb(),Nb=E.forwardRef((e,t)=>{const{type:r,...n}=e,o=n,a=n;return f.jsx(bd.Provider,{scope:e.__scopeAccordion,children:r==="multiple"?f.jsx(uN,{...a,ref:t}):f.jsx(lN,{...o,ref:t})})});Nb.displayName=cr;var[Ab,sN]=Ka(cr),[Mb,cN]=Ka(cr,{collapsible:!1}),lN=E.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},collapsible:a=!1,...i}=e,[s,c]=$e({prop:r,defaultProp:n,onChange:o});return f.jsx(Ab,{scope:e.__scopeAccordion,value:s?[s]:[],onItemOpen:c,onItemClose:E.useCallback(()=>a&&c(""),[a,c]),children:f.jsx(Mb,{scope:e.__scopeAccordion,collapsible:a,children:f.jsx(Ob,{...i,ref:t})})})}),uN=E.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...a}=e,[i=[],s]=$e({prop:r,defaultProp:n,onChange:o}),c=E.useCallback(p=>s((u=[])=>[...u,p]),[s]),l=E.useCallback(p=>s((u=[])=>u.filter(m=>m!==p)),[s]);return f.jsx(Ab,{scope:e.__scopeAccordion,value:i,onItemOpen:c,onItemClose:l,children:f.jsx(Mb,{scope:e.__scopeAccordion,collapsible:!0,children:f.jsx(Ob,{...a,ref:t})})})}),[dN,Ya]=Ka(cr),Ob=E.forwardRef((e,t)=>{const{__scopeAccordion:r,disabled:n,dir:o,orientation:a="vertical",...i}=e,s=E.useRef(null),c=de(s,t),l=aN(r),u=Ft(o)==="ltr",m=B(e.onKeyDown,b=>{var A;if(!oN.includes(b.key))return;const g=b.target,h=l().filter(P=>{var k;return!((k=P.ref.current)!=null&&k.disabled)}),v=h.findIndex(P=>P.ref.current===g),y=h.length;if(v===-1)return;b.preventDefault();let x=v;const w=0,S=y-1,_=()=>{x=v+1,x>S&&(x=w)},R=()=>{x=v-1,x<w&&(x=S)};switch(b.key){case"Home":x=w;break;case"End":x=S;break;case"ArrowRight":a==="horizontal"&&(u?_():R());break;case"ArrowDown":a==="vertical"&&_();break;case"ArrowLeft":a==="horizontal"&&(u?R():_());break;case"ArrowUp":a==="vertical"&&R();break}const C=x%y;(A=h[C].ref.current)==null||A.focus()});return f.jsx(dN,{scope:r,disabled:n,direction:o,orientation:a,children:f.jsx(bd.Slot,{scope:r,children:f.jsx(X.div,{...i,"data-orientation":a,ref:c,onKeyDown:n?void 0:m})})})}),ga="AccordionItem",[fN,xd]=Ka(ga),Ib=E.forwardRef((e,t)=>{const{__scopeAccordion:r,value:n,...o}=e,a=Ya(ga,r),i=sN(ga,r),s=yd(r),c=Ue(),l=n&&i.value.includes(n)||!1,p=a.disabled||e.disabled;return f.jsx(fN,{scope:r,open:l,disabled:p,triggerId:c,children:f.jsx(Tb,{"data-orientation":a.orientation,"data-state":Fb(l),...s,...o,ref:t,disabled:p,open:l,onOpenChange:u=>{u?i.onItemOpen(n):i.onItemClose(n)}})})});Ib.displayName=ga;var Db="AccordionHeader",jb=E.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=Ya(cr,r),a=xd(Db,r);return f.jsx(X.h3,{"data-orientation":o.orientation,"data-state":Fb(a.open),"data-disabled":a.disabled?"":void 0,...n,ref:t})});jb.displayName=Db;var fu="AccordionTrigger",kb=E.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=Ya(cr,r),a=xd(fu,r),i=cN(fu,r),s=yd(r);return f.jsx(bd.ItemSlot,{scope:r,children:f.jsx(tN,{"aria-disabled":a.open&&!i.collapsible||void 0,"data-orientation":o.orientation,id:a.triggerId,...s,...n,ref:t})})});kb.displayName=fu;var $b="AccordionContent",Lb=E.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=Ya(cr,r),a=xd($b,r),i=yd(r);return f.jsx(rN,{role:"region","aria-labelledby":a.triggerId,"data-orientation":o.orientation,...i,...n,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});Lb.displayName=$b;function Fb(e){return e?"open":"closed"}var pN=Nb,mN=Ib,hN=jb,Bb=kb,zb=Lb;/**
|
|
31
|
+
* @license lucide-react v0.482.0 - ISC
|
|
32
|
+
*
|
|
33
|
+
* This source code is licensed under the ISC license.
|
|
34
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
35
|
+
*/const gN=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),qb=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim();/**
|
|
36
|
+
* @license lucide-react v0.482.0 - ISC
|
|
37
|
+
*
|
|
38
|
+
* This source code is licensed under the ISC license.
|
|
39
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
40
|
+
*/var vN={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"};/**
|
|
41
|
+
* @license lucide-react v0.482.0 - ISC
|
|
42
|
+
*
|
|
43
|
+
* This source code is licensed under the ISC license.
|
|
44
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
45
|
+
*/const bN=E.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:i,...s},c)=>E.createElement("svg",{ref:c,...vN,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:qb("lucide",o),...s},[...i.map(([l,p])=>E.createElement(l,p)),...Array.isArray(a)?a:[a]]));/**
|
|
46
|
+
* @license lucide-react v0.482.0 - ISC
|
|
47
|
+
*
|
|
48
|
+
* This source code is licensed under the ISC license.
|
|
49
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
50
|
+
*/const yt=(e,t)=>{const r=E.forwardRef(({className:n,...o},a)=>E.createElement(bN,{ref:a,iconNode:t,className:qb(`lucide-${gN(e)}`,n),...o}));return r.displayName=`${e}`,r};/**
|
|
51
|
+
* @license lucide-react v0.482.0 - ISC
|
|
52
|
+
*
|
|
53
|
+
* This source code is licensed under the ISC license.
|
|
54
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
55
|
+
*/const yN=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],xN=yt("ArrowLeft",yN);/**
|
|
56
|
+
* @license lucide-react v0.482.0 - ISC
|
|
57
|
+
*
|
|
58
|
+
* This source code is licensed under the ISC license.
|
|
59
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
60
|
+
*/const wN=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],SN=yt("ArrowRight",wN);/**
|
|
61
|
+
* @license lucide-react v0.482.0 - ISC
|
|
62
|
+
*
|
|
63
|
+
* This source code is licensed under the ISC license.
|
|
64
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
65
|
+
*/const CN=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],vo=yt("Check",CN);/**
|
|
66
|
+
* @license lucide-react v0.482.0 - ISC
|
|
67
|
+
*
|
|
68
|
+
* This source code is licensed under the ISC license.
|
|
69
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
70
|
+
*/const _N=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Xa=yt("ChevronDown",_N);/**
|
|
71
|
+
* @license lucide-react v0.482.0 - ISC
|
|
72
|
+
*
|
|
73
|
+
* This source code is licensed under the ISC license.
|
|
74
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
75
|
+
*/const RN=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],EN=yt("ChevronLeft",RN);/**
|
|
76
|
+
* @license lucide-react v0.482.0 - ISC
|
|
77
|
+
*
|
|
78
|
+
* This source code is licensed under the ISC license.
|
|
79
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
80
|
+
*/const PN=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],jr=yt("ChevronRight",PN);/**
|
|
81
|
+
* @license lucide-react v0.482.0 - ISC
|
|
82
|
+
*
|
|
83
|
+
* This source code is licensed under the ISC license.
|
|
84
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
85
|
+
*/const TN=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],NN=yt("ChevronUp",TN);/**
|
|
86
|
+
* @license lucide-react v0.482.0 - ISC
|
|
87
|
+
*
|
|
88
|
+
* This source code is licensed under the ISC license.
|
|
89
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
90
|
+
*/const AN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Za=yt("Circle",AN);/**
|
|
91
|
+
* @license lucide-react v0.482.0 - ISC
|
|
92
|
+
*
|
|
93
|
+
* This source code is licensed under the ISC license.
|
|
94
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
95
|
+
*/const MN=[["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"}]],Hb=yt("Ellipsis",MN);/**
|
|
96
|
+
* @license lucide-react v0.482.0 - ISC
|
|
97
|
+
*
|
|
98
|
+
* This source code is licensed under the ISC license.
|
|
99
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
100
|
+
*/const ON=[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]],IN=yt("GripVertical",ON);/**
|
|
101
|
+
* @license lucide-react v0.482.0 - ISC
|
|
102
|
+
*
|
|
103
|
+
* This source code is licensed under the ISC license.
|
|
104
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
105
|
+
*/const DN=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]],jN=yt("House",DN);/**
|
|
106
|
+
* @license lucide-react v0.482.0 - ISC
|
|
107
|
+
*
|
|
108
|
+
* This source code is licensed under the ISC license.
|
|
109
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
110
|
+
*/const kN=[["path",{d:"M5 12h14",key:"1ays0h"}]],$N=yt("Minus",kN);/**
|
|
111
|
+
* @license lucide-react v0.482.0 - ISC
|
|
112
|
+
*
|
|
113
|
+
* This source code is licensed under the ISC license.
|
|
114
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
115
|
+
*/const LN=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],FN=yt("PanelLeft",LN);/**
|
|
116
|
+
* @license lucide-react v0.482.0 - ISC
|
|
117
|
+
*
|
|
118
|
+
* This source code is licensed under the ISC license.
|
|
119
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
120
|
+
*/const BN=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],wd=yt("X",BN);function Vb(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=Vb(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function or(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Vb(e))&&(n&&(n+=" "),n+=t);return n}const Sd="-",zN=e=>{const t=HN(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:i=>{const s=i.split(Sd);return s[0]===""&&s.length!==1&&s.shift(),Gb(s,t)||qN(i)},getConflictingClassGroupIds:(i,s)=>{const c=r[i]||[];return s&&n[i]?[...c,...n[i]]:c}}},Gb=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?Gb(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(Sd);return(i=t.validators.find(({validator:s})=>s(a)))==null?void 0:i.classGroupId},Xp=/^\[(.+)\]$/,qN=e=>{if(Xp.test(e)){const t=Xp.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},HN=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const o in r)pu(r[o],n,o,t);return n},pu=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:Zp(t,o);a.classGroupId=r;return}if(typeof o=="function"){if(VN(o)){pu(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([a,i])=>{pu(i,Zp(t,a),r,n)})})},Zp=(e,t)=>{let r=e;return t.split(Sd).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},VN=e=>e.isThemeGetter,GN=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(a,i)=>{r.set(a,i),t++,t>e&&(t=0,n=r,r=new Map)};return{get(a){let i=r.get(a);if(i!==void 0)return i;if((i=n.get(a))!==void 0)return o(a,i),i},set(a,i){r.has(a)?r.set(a,i):o(a,i)}}},mu="!",hu=":",UN=hu.length,WN=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const a=[];let i=0,s=0,c=0,l;for(let g=0;g<o.length;g++){let h=o[g];if(i===0&&s===0){if(h===hu){a.push(o.slice(c,g)),c=g+UN;continue}if(h==="/"){l=g;continue}}h==="["?i++:h==="]"?i--:h==="("?s++:h===")"&&s--}const p=a.length===0?o:o.substring(c),u=KN(p),m=u!==p,b=l&&l>c?l-c:void 0;return{modifiers:a,hasImportantModifier:m,baseClassName:u,maybePostfixModifierPosition:b}};if(t){const o=t+hu,a=n;n=i=>i.startsWith(o)?a(i.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:i,maybePostfixModifierPosition:void 0}}if(r){const o=n;n=a=>r({className:a,parseClassName:o})}return n},KN=e=>e.endsWith(mu)?e.substring(0,e.length-1):e.startsWith(mu)?e.substring(1):e,YN=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(i=>{i[0]==="["||t[i]?(o.push(...a.sort(),i),a=[]):a.push(i)}),o.push(...a.sort()),o}},XN=e=>({cache:GN(e.cacheSize),parseClassName:WN(e),sortModifiers:YN(e),...zN(e)}),ZN=/\s+/,JN=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:a}=t,i=[],s=e.trim().split(ZN);let c="";for(let l=s.length-1;l>=0;l-=1){const p=s[l],{isExternal:u,modifiers:m,hasImportantModifier:b,baseClassName:g,maybePostfixModifierPosition:h}=r(p);if(u){c=p+(c.length>0?" "+c:c);continue}let v=!!h,y=n(v?g.substring(0,h):g);if(!y){if(!v){c=p+(c.length>0?" "+c:c);continue}if(y=n(g),!y){c=p+(c.length>0?" "+c:c);continue}v=!1}const x=a(m).join(":"),w=b?x+mu:x,S=w+y;if(i.includes(S))continue;i.push(S);const _=o(y,v);for(let R=0;R<_.length;++R){const C=_[R];i.push(w+C)}c=p+(c.length>0?" "+c:c)}return c};function QN(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Ub(t))&&(n&&(n+=" "),n+=r);return n}const Ub=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Ub(e[n]))&&(r&&(r+=" "),r+=t);return r};function eA(e,...t){let r,n,o,a=i;function i(c){const l=t.reduce((p,u)=>u(p),e());return r=XN(l),n=r.cache.get,o=r.cache.set,a=s,s(c)}function s(c){const l=n(c);if(l)return l;const p=JN(c,r);return o(c,p),p}return function(){return a(QN.apply(null,arguments))}}const nt=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Wb=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Kb=/^\((?:(\w[\w-]*):)?(.+)\)$/i,tA=/^\d+\/\d+$/,rA=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,nA=/\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$/,oA=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,aA=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,iA=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Kr=e=>tA.test(e),Re=e=>!!e&&!Number.isNaN(Number(e)),Tr=e=>!!e&&Number.isInteger(Number(e)),Jp=e=>e.endsWith("%")&&Re(e.slice(0,-1)),pr=e=>rA.test(e),sA=()=>!0,cA=e=>nA.test(e)&&!oA.test(e),Cd=()=>!1,lA=e=>aA.test(e),uA=e=>iA.test(e),dA=e=>!ce(e)&&!le(e),fA=e=>bn(e,Zb,Cd),ce=e=>Wb.test(e),Nr=e=>bn(e,Jb,cA),Bi=e=>bn(e,CA,Re),pA=e=>bn(e,Yb,Cd),mA=e=>bn(e,Xb,uA),hA=e=>bn(e,Cd,lA),le=e=>Kb.test(e),Go=e=>yn(e,Jb),gA=e=>yn(e,_A),vA=e=>yn(e,Yb),bA=e=>yn(e,Zb),yA=e=>yn(e,Xb),xA=e=>yn(e,RA,!0),bn=(e,t,r)=>{const n=Wb.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},yn=(e,t,r=!1)=>{const n=Kb.exec(e);return n?n[1]?t(n[1]):r:!1},Yb=e=>e==="position",wA=new Set(["image","url"]),Xb=e=>wA.has(e),SA=new Set(["length","size","percentage"]),Zb=e=>SA.has(e),Jb=e=>e==="length",CA=e=>e==="number",_A=e=>e==="family-name",RA=e=>e==="shadow",EA=()=>{const e=nt("color"),t=nt("font"),r=nt("text"),n=nt("font-weight"),o=nt("tracking"),a=nt("leading"),i=nt("breakpoint"),s=nt("container"),c=nt("spacing"),l=nt("radius"),p=nt("shadow"),u=nt("inset-shadow"),m=nt("drop-shadow"),b=nt("blur"),g=nt("perspective"),h=nt("aspect"),v=nt("ease"),y=nt("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],S=()=>["auto","hidden","clip","visible","scroll"],_=()=>["auto","contain","none"],R=()=>[le,ce,c],C=()=>[Kr,"full","auto",...R()],A=()=>[Tr,"none","subgrid",le,ce],P=()=>["auto",{span:["full",Tr,le,ce]},le,ce],k=()=>[Tr,"auto",le,ce],D=()=>["auto","min","max","fr",le,ce],L=()=>["start","end","center","between","around","evenly","stretch","baseline"],N=()=>["start","end","center","stretch"],j=()=>["auto",...R()],$=()=>[Kr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...R()],M=()=>[e,le,ce],G=()=>[Jp,Nr],H=()=>["","none","full",l,le,ce],z=()=>["",Re,Go,Nr],oe=()=>["solid","dashed","dotted","double"],Z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],te=()=>["","none",b,le,ce],F=()=>["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",le,ce],U=()=>["none",Re,le,ce],Q=()=>["none",Re,le,ce],K=()=>[Re,le,ce],q=()=>[Kr,"full",...R()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[pr],breakpoint:[pr],color:[sA],container:[pr],"drop-shadow":[pr],ease:["in","out","in-out"],font:[dA],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[pr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[pr],shadow:[pr],spacing:["px",Re],text:[pr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Kr,ce,le,h]}],container:["container"],columns:[{columns:[Re,ce,le,s]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...w(),ce,le]}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:C()}],"inset-x":[{"inset-x":C()}],"inset-y":[{"inset-y":C()}],start:[{start:C()}],end:[{end:C()}],top:[{top:C()}],right:[{right:C()}],bottom:[{bottom:C()}],left:[{left:C()}],visibility:["visible","invisible","collapse"],z:[{z:[Tr,"auto",le,ce]}],basis:[{basis:[Kr,"full","auto",s,...R()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Re,Kr,"auto","initial","none",ce]}],grow:[{grow:["",Re,le,ce]}],shrink:[{shrink:["",Re,le,ce]}],order:[{order:[Tr,"first","last","none",le,ce]}],"grid-cols":[{"grid-cols":A()}],"col-start-end":[{col:P()}],"col-start":[{"col-start":k()}],"col-end":[{"col-end":k()}],"grid-rows":[{"grid-rows":A()}],"row-start-end":[{row:P()}],"row-start":[{"row-start":k()}],"row-end":[{"row-end":k()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":D()}],"auto-rows":[{"auto-rows":D()}],gap:[{gap:R()}],"gap-x":[{"gap-x":R()}],"gap-y":[{"gap-y":R()}],"justify-content":[{justify:[...L(),"normal"]}],"justify-items":[{"justify-items":[...N(),"normal"]}],"justify-self":[{"justify-self":["auto",...N()]}],"align-content":[{content:["normal",...L()]}],"align-items":[{items:[...N(),"baseline"]}],"align-self":[{self:["auto",...N(),"baseline"]}],"place-content":[{"place-content":L()}],"place-items":[{"place-items":[...N(),"baseline"]}],"place-self":[{"place-self":["auto",...N()]}],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:j()}],mx:[{mx:j()}],my:[{my:j()}],ms:[{ms:j()}],me:[{me:j()}],mt:[{mt:j()}],mr:[{mr:j()}],mb:[{mb:j()}],ml:[{ml:j()}],"space-x":[{"space-x":R()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":R()}],"space-y-reverse":["space-y-reverse"],size:[{size:$()}],w:[{w:[s,"screen",...$()]}],"min-w":[{"min-w":[s,"screen","none",...$()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[i]},...$()]}],h:[{h:["screen",...$()]}],"min-h":[{"min-h":["screen","none",...$()]}],"max-h":[{"max-h":["screen",...$()]}],"font-size":[{text:["base",r,Go,Nr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,le,Bi]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Jp,ce]}],"font-family":[{font:[gA,ce,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,le,ce]}],"line-clamp":[{"line-clamp":[Re,"none",le,Bi]}],leading:[{leading:[a,...R()]}],"list-image":[{"list-image":["none",le,ce]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",le,ce]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:M()}],"text-color":[{text:M()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...oe(),"wavy"]}],"text-decoration-thickness":[{decoration:[Re,"from-font","auto",le,Nr]}],"text-decoration-color":[{decoration:M()}],"underline-offset":[{"underline-offset":[Re,"auto",le,ce]}],"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",le,ce]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",le,ce]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...w(),vA,pA]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:["auto","cover","contain",bA,fA]}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Tr,le,ce],radial:["",le,ce],conic:[Tr,le,ce]},yA,mA]}],"bg-color":[{bg:M()}],"gradient-from-pos":[{from:G()}],"gradient-via-pos":[{via:G()}],"gradient-to-pos":[{to:G()}],"gradient-from":[{from:M()}],"gradient-via":[{via:M()}],"gradient-to":[{to:M()}],rounded:[{rounded:H()}],"rounded-s":[{"rounded-s":H()}],"rounded-e":[{"rounded-e":H()}],"rounded-t":[{"rounded-t":H()}],"rounded-r":[{"rounded-r":H()}],"rounded-b":[{"rounded-b":H()}],"rounded-l":[{"rounded-l":H()}],"rounded-ss":[{"rounded-ss":H()}],"rounded-se":[{"rounded-se":H()}],"rounded-ee":[{"rounded-ee":H()}],"rounded-es":[{"rounded-es":H()}],"rounded-tl":[{"rounded-tl":H()}],"rounded-tr":[{"rounded-tr":H()}],"rounded-br":[{"rounded-br":H()}],"rounded-bl":[{"rounded-bl":H()}],"border-w":[{border:z()}],"border-w-x":[{"border-x":z()}],"border-w-y":[{"border-y":z()}],"border-w-s":[{"border-s":z()}],"border-w-e":[{"border-e":z()}],"border-w-t":[{"border-t":z()}],"border-w-r":[{"border-r":z()}],"border-w-b":[{"border-b":z()}],"border-w-l":[{"border-l":z()}],"divide-x":[{"divide-x":z()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":z()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...oe(),"hidden","none"]}],"divide-style":[{divide:[...oe(),"hidden","none"]}],"border-color":[{border:M()}],"border-color-x":[{"border-x":M()}],"border-color-y":[{"border-y":M()}],"border-color-s":[{"border-s":M()}],"border-color-e":[{"border-e":M()}],"border-color-t":[{"border-t":M()}],"border-color-r":[{"border-r":M()}],"border-color-b":[{"border-b":M()}],"border-color-l":[{"border-l":M()}],"divide-color":[{divide:M()}],"outline-style":[{outline:[...oe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Re,le,ce]}],"outline-w":[{outline:["",Re,Go,Nr]}],"outline-color":[{outline:[e]}],shadow:[{shadow:["","none",p,xA,hA]}],"shadow-color":[{shadow:M()}],"inset-shadow":[{"inset-shadow":["none",le,ce,u]}],"inset-shadow-color":[{"inset-shadow":M()}],"ring-w":[{ring:z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:M()}],"ring-offset-w":[{"ring-offset":[Re,Nr]}],"ring-offset-color":[{"ring-offset":M()}],"inset-ring-w":[{"inset-ring":z()}],"inset-ring-color":[{"inset-ring":M()}],opacity:[{opacity:[Re,le,ce]}],"mix-blend":[{"mix-blend":[...Z(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Z()}],filter:[{filter:["","none",le,ce]}],blur:[{blur:te()}],brightness:[{brightness:[Re,le,ce]}],contrast:[{contrast:[Re,le,ce]}],"drop-shadow":[{"drop-shadow":["","none",m,le,ce]}],grayscale:[{grayscale:["",Re,le,ce]}],"hue-rotate":[{"hue-rotate":[Re,le,ce]}],invert:[{invert:["",Re,le,ce]}],saturate:[{saturate:[Re,le,ce]}],sepia:[{sepia:["",Re,le,ce]}],"backdrop-filter":[{"backdrop-filter":["","none",le,ce]}],"backdrop-blur":[{"backdrop-blur":te()}],"backdrop-brightness":[{"backdrop-brightness":[Re,le,ce]}],"backdrop-contrast":[{"backdrop-contrast":[Re,le,ce]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Re,le,ce]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Re,le,ce]}],"backdrop-invert":[{"backdrop-invert":["",Re,le,ce]}],"backdrop-opacity":[{"backdrop-opacity":[Re,le,ce]}],"backdrop-saturate":[{"backdrop-saturate":[Re,le,ce]}],"backdrop-sepia":[{"backdrop-sepia":["",Re,le,ce]}],"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",le,ce]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Re,"initial",le,ce]}],ease:[{ease:["linear","initial",v,le,ce]}],delay:[{delay:[Re,le,ce]}],animate:[{animate:["none",y,le,ce]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,le,ce]}],"perspective-origin":[{"perspective-origin":F()}],rotate:[{rotate:U()}],"rotate-x":[{"rotate-x":U()}],"rotate-y":[{"rotate-y":U()}],"rotate-z":[{"rotate-z":U()}],scale:[{scale:Q()}],"scale-x":[{"scale-x":Q()}],"scale-y":[{"scale-y":Q()}],"scale-z":[{"scale-z":Q()}],"scale-3d":["scale-3d"],skew:[{skew:K()}],"skew-x":[{"skew-x":K()}],"skew-y":[{"skew-y":K()}],transform:[{transform:[le,ce,"","none","gpu","cpu"]}],"transform-origin":[{origin:F()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:q()}],"translate-x":[{"translate-x":q()}],"translate-y":[{"translate-y":q()}],"translate-z":[{"translate-z":q()}],"translate-none":["translate-none"],accent:[{accent:M()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:M()}],"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",le,ce]}],"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",le,ce]}],fill:[{fill:["none",...M()]}],"stroke-w":[{stroke:[Re,Go,Nr,Bi]}],stroke:[{stroke:["none",...M()]}],"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-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-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:["before","after","placeholder","file","marker","selection","first-line","first-letter","backdrop","*","**"]}},PA=eA(EA);function O(...e){return PA(or(e))}const TA=pN,Qb=d.forwardRef(({className:e,...t},r)=>f.jsx(mN,{ref:r,className:O("border-b",e),...t}));Qb.displayName="AccordionItem";const ey=d.forwardRef(({className:e,children:t,...r},n)=>f.jsx(hN,{className:"flex",children:f.jsxs(Bb,{ref:n,className:O("flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline text-left [&[data-state=open]>svg]:rotate-180",e),...r,children:[t,f.jsx(Xa,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"})]})}));ey.displayName=Bb.displayName;const ty=d.forwardRef(({className:e,children:t,...r},n)=>f.jsx(zb,{ref:n,className:"overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...r,children:f.jsx("div",{className:O("pb-4 pt-0",e),children:t})}));ty.displayName=zb.displayName;function NA(e,t=globalThis==null?void 0:globalThis.document){const r=Te(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 AA="DismissableLayer",gu="dismissableLayer.update",MA="dismissableLayer.pointerDownOutside",OA="dismissableLayer.focusOutside",Qp,ry=d.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),lr=d.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:s,...c}=e,l=d.useContext(ry),[p,u]=d.useState(null),m=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,b]=d.useState({}),g=de(t,C=>u(C)),h=Array.from(l.layers),[v]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),y=h.indexOf(v),x=p?h.indexOf(p):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,S=x>=y,_=DA(C=>{const A=C.target,P=[...l.branches].some(k=>k.contains(A));!S||P||(o==null||o(C),i==null||i(C),C.defaultPrevented||s==null||s())},m),R=jA(C=>{const A=C.target;[...l.branches].some(k=>k.contains(A))||(a==null||a(C),i==null||i(C),C.defaultPrevented||s==null||s())},m);return NA(C=>{x===l.layers.size-1&&(n==null||n(C),!C.defaultPrevented&&s&&(C.preventDefault(),s()))},m),d.useEffect(()=>{if(p)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Qp=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(p)),l.layers.add(p),em(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=Qp)}},[p,m,r,l]),d.useEffect(()=>()=>{p&&(l.layers.delete(p),l.layersWithOutsidePointerEventsDisabled.delete(p),em())},[p,l]),d.useEffect(()=>{const C=()=>b({});return document.addEventListener(gu,C),()=>document.removeEventListener(gu,C)},[]),f.jsx(X.div,{...c,ref:g,style:{pointerEvents:w?S?"auto":"none":void 0,...e.style},onFocusCapture:B(e.onFocusCapture,R.onFocusCapture),onBlurCapture:B(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:B(e.onPointerDownCapture,_.onPointerDownCapture)})});lr.displayName=AA;var IA="DismissableLayerBranch",ny=d.forwardRef((e,t)=>{const r=d.useContext(ry),n=d.useRef(null),o=de(t,n);return d.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),f.jsx(X.div,{...e,ref:o})});ny.displayName=IA;function DA(e,t=globalThis==null?void 0:globalThis.document){const r=Te(e),n=d.useRef(!1),o=d.useRef(()=>{});return d.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let c=function(){oy(MA,r,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);n.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function jA(e,t=globalThis==null?void 0:globalThis.document){const r=Te(e),n=d.useRef(!1);return d.useEffect(()=>{const o=a=>{a.target&&!n.current&&oy(OA,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 em(){const e=new CustomEvent(gu);document.dispatchEvent(e)}function oy(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?Xn(o,a):o.dispatchEvent(a)}var kA=lr,$A=ny,zi="focusScope.autoFocusOnMount",qi="focusScope.autoFocusOnUnmount",tm={bubbles:!1,cancelable:!0},LA="FocusScope",bo=d.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[s,c]=d.useState(null),l=Te(o),p=Te(a),u=d.useRef(null),m=de(t,h=>c(h)),b=d.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;d.useEffect(()=>{if(n){let h=function(w){if(b.paused||!s)return;const S=w.target;s.contains(S)?u.current=S:mr(u.current,{select:!0})},v=function(w){if(b.paused||!s)return;const S=w.relatedTarget;S!==null&&(s.contains(S)||mr(u.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const _ of w)_.removedNodes.length>0&&mr(s)};document.addEventListener("focusin",h),document.addEventListener("focusout",v);const x=new MutationObserver(y);return s&&x.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",v),x.disconnect()}}},[n,s,b.paused]),d.useEffect(()=>{if(s){nm.add(b);const h=document.activeElement;if(!s.contains(h)){const y=new CustomEvent(zi,tm);s.addEventListener(zi,l),s.dispatchEvent(y),y.defaultPrevented||(FA(VA(ay(s)),{select:!0}),document.activeElement===h&&mr(s))}return()=>{s.removeEventListener(zi,l),setTimeout(()=>{const y=new CustomEvent(qi,tm);s.addEventListener(qi,p),s.dispatchEvent(y),y.defaultPrevented||mr(h??document.body,{select:!0}),s.removeEventListener(qi,p),nm.remove(b)},0)}}},[s,l,p,b]);const g=d.useCallback(h=>{if(!r&&!n||b.paused)return;const v=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,y=document.activeElement;if(v&&y){const x=h.currentTarget,[w,S]=BA(x);w&&S?!h.shiftKey&&y===S?(h.preventDefault(),r&&mr(w,{select:!0})):h.shiftKey&&y===w&&(h.preventDefault(),r&&mr(S,{select:!0})):y===x&&h.preventDefault()}},[r,n,b.paused]);return f.jsx(X.div,{tabIndex:-1,...i,ref:m,onKeyDown:g})});bo.displayName=LA;function FA(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(mr(n,{select:t}),document.activeElement!==r)return}function BA(e){const t=ay(e),r=rm(t,e),n=rm(t.reverse(),e);return[r,n]}function ay(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 rm(e,t){for(const r of e)if(!zA(r,{upTo:t}))return r}function zA(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 qA(e){return e instanceof HTMLInputElement&&"select"in e}function mr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&qA(e)&&t&&e.select()}}var nm=HA();function HA(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=om(e,t),e.unshift(t)},remove(t){var r;e=om(e,t),(r=e[0])==null||r.resume()}}}function om(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function VA(e){return e.filter(t=>t.tagName!=="A")}var GA="Portal",zr=d.forwardRef((e,t)=>{var s;const{container:r,...n}=e,[o,a]=d.useState(!1);He(()=>a(!0),[]);const i=r||o&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return i?Wa.createPortal(f.jsx(X.div,{...n,ref:t}),i):null});zr.displayName=GA;var Hi=0;function Ja(){d.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??am()),document.body.insertAdjacentElement("beforeend",e[1]??am()),Hi++,()=>{Hi===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Hi--}},[])}function am(){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 Ut=function(){return Ut=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},Ut.apply(this,arguments)};function iy(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 UA(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))}var la="right-scroll-bar-position",ua="width-before-scroll-bar",WA="with-scroll-bars-hidden",KA="--removed-body-scroll-bar-size";function Vi(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function YA(e,t){var r=E.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 XA=typeof window<"u"?d.useLayoutEffect:d.useEffect,im=new WeakMap;function ZA(e,t){var r=YA(null,function(n){return e.forEach(function(o){return Vi(o,n)})});return XA(function(){var n=im.get(r);if(n){var o=new Set(n),a=new Set(e),i=r.current;o.forEach(function(s){a.has(s)||Vi(s,null)}),a.forEach(function(s){o.has(s)||Vi(s,i)})}im.set(r,e)},[e]),r}function JA(e){return e}function QA(e,t){t===void 0&&(t=JA);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 i=t(a,n);return r.push(i),function(){r=r.filter(function(s){return s!==i})}},assignSyncMedium:function(a){for(n=!0;r.length;){var i=r;r=[],i.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var i=[];if(r.length){var s=r;r=[],s.forEach(a),i=r}var c=function(){var p=i;i=[],p.forEach(a)},l=function(){return Promise.resolve().then(c)};l(),r={push:function(p){i.push(p),l()},filter:function(p){return i=i.filter(p),r}}}};return o}function eM(e){e===void 0&&(e={});var t=QA(null);return t.options=Ut({async:!0,ssr:!1},e),t}var sy=function(e){var t=e.sideCar,r=iy(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,Ut({},r))};sy.isSideCarExport=!0;function tM(e,t){return e.useMedium(t),sy}var cy=eM(),Gi=function(){},Qa=d.forwardRef(function(e,t){var r=d.useRef(null),n=d.useState({onScrollCapture:Gi,onWheelCapture:Gi,onTouchMoveCapture:Gi}),o=n[0],a=n[1],i=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,p=e.enabled,u=e.shards,m=e.sideCar,b=e.noIsolation,g=e.inert,h=e.allowPinchZoom,v=e.as,y=v===void 0?"div":v,x=e.gapMode,w=iy(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=m,_=ZA([r,t]),R=Ut(Ut({},w),o);return d.createElement(d.Fragment,null,p&&d.createElement(S,{sideCar:cy,removeScrollBar:l,shards:u,noIsolation:b,inert:g,setCallbacks:a,allowPinchZoom:!!h,lockRef:r,gapMode:x}),i?d.cloneElement(d.Children.only(s),Ut(Ut({},R),{ref:_})):d.createElement(y,Ut({},R,{className:c,ref:_}),s))});Qa.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Qa.classNames={fullWidth:ua,zeroRight:la};var rM=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function nM(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=rM();return t&&e.setAttribute("nonce",t),e}function oM(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function aM(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var iM=function(){var e=0,t=null;return{add:function(r){e==0&&(t=nM())&&(oM(t,r),aM(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},sM=function(){var e=iM();return function(t,r){d.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},ly=function(){var e=sM(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},cM={left:0,top:0,right:0,gap:0},Ui=function(e){return parseInt(e||"",10)||0},lM=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[Ui(r),Ui(n),Ui(o)]},uM=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return cM;var t=lM(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])}},dM=ly(),rn="data-scroll-locked",fM=function(e,t,r,n){var o=e.left,a=e.top,i=e.right,s=e.gap;return r===void 0&&(r="margin"),`
|
|
121
|
+
.`.concat(WA,` {
|
|
32
122
|
overflow: hidden `).concat(n,`;
|
|
33
123
|
padding-right: `).concat(s,"px ").concat(n,`;
|
|
34
124
|
}
|
|
35
|
-
body[`).concat(
|
|
125
|
+
body[`).concat(rn,`] {
|
|
36
126
|
overflow: hidden `).concat(n,`;
|
|
37
127
|
overscroll-behavior: contain;
|
|
38
128
|
`).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
|
|
@@ -45,75 +135,93 @@ React keys must be passed directly to JSX without using spread:
|
|
|
45
135
|
`),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
|
|
46
136
|
}
|
|
47
137
|
|
|
48
|
-
.`).concat(
|
|
138
|
+
.`).concat(la,` {
|
|
49
139
|
right: `).concat(s,"px ").concat(n,`;
|
|
50
140
|
}
|
|
51
141
|
|
|
52
|
-
.`).concat(
|
|
142
|
+
.`).concat(ua,` {
|
|
53
143
|
margin-right: `).concat(s,"px ").concat(n,`;
|
|
54
144
|
}
|
|
55
145
|
|
|
56
|
-
.`).concat(
|
|
146
|
+
.`).concat(la," .").concat(la,` {
|
|
57
147
|
right: 0 `).concat(n,`;
|
|
58
148
|
}
|
|
59
149
|
|
|
60
|
-
.`).concat(
|
|
150
|
+
.`).concat(ua," .").concat(ua,` {
|
|
61
151
|
margin-right: 0 `).concat(n,`;
|
|
62
152
|
}
|
|
63
153
|
|
|
64
|
-
body[`).concat(
|
|
65
|
-
`).concat(
|
|
154
|
+
body[`).concat(rn,`] {
|
|
155
|
+
`).concat(KA,": ").concat(s,`px;
|
|
66
156
|
}
|
|
67
|
-
`)},
|
|
157
|
+
`)},sm=function(){var e=parseInt(document.body.getAttribute(rn)||"0",10);return isFinite(e)?e:0},pM=function(){d.useEffect(function(){return document.body.setAttribute(rn,(sm()+1).toString()),function(){var e=sm()-1;e<=0?document.body.removeAttribute(rn):document.body.setAttribute(rn,e.toString())}},[])},mM=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;pM();var a=d.useMemo(function(){return uM(o)},[o]);return d.createElement(dM,{styles:fM(a,!t,o,r?"":"!important")})},vu=!1;if(typeof window<"u")try{var Uo=Object.defineProperty({},"passive",{get:function(){return vu=!0,!0}});window.addEventListener("test",Uo,Uo),window.removeEventListener("test",Uo,Uo)}catch{vu=!1}var Yr=vu?{passive:!1}:!1,hM=function(e){return e.tagName==="TEXTAREA"},uy=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!hM(e)&&r[t]==="visible")},gM=function(e){return uy(e,"overflowY")},vM=function(e){return uy(e,"overflowX")},cm=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=dy(e,n);if(o){var a=fy(e,n),i=a[1],s=a[2];if(i>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},bM=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},yM=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},dy=function(e,t){return e==="v"?gM(t):vM(t)},fy=function(e,t){return e==="v"?bM(t):yM(t)},xM=function(e,t){return e==="h"&&t==="rtl"?-1:1},wM=function(e,t,r,n,o){var a=xM(e,window.getComputedStyle(t).direction),i=a*n,s=r.target,c=t.contains(s),l=!1,p=i>0,u=0,m=0;do{var b=fy(e,s),g=b[0],h=b[1],v=b[2],y=h-v-a*g;(g||y)&&dy(e,s)&&(u+=y,m+=g),s instanceof ShadowRoot?s=s.host:s=s.parentNode}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(p&&Math.abs(u)<1||!p&&Math.abs(m)<1)&&(l=!0),l},Wo=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},lm=function(e){return[e.deltaX,e.deltaY]},um=function(e){return e&&"current"in e?e.current:e},SM=function(e,t){return e[0]===t[0]&&e[1]===t[1]},CM=function(e){return`
|
|
68
158
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
69
159
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
70
|
-
`)},
|
|
160
|
+
`)},_M=0,Xr=[];function RM(e){var t=d.useRef([]),r=d.useRef([0,0]),n=d.useRef(),o=d.useState(_M++)[0],a=d.useState(ly)[0],i=d.useRef(e);d.useEffect(function(){i.current=e},[e]),d.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var h=UA([e.lockRef.current],(e.shards||[]).map(um),!0).filter(Boolean);return h.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),h.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=d.useCallback(function(h,v){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!i.current.allowPinchZoom;var y=Wo(h),x=r.current,w="deltaX"in h?h.deltaX:x[0]-y[0],S="deltaY"in h?h.deltaY:x[1]-y[1],_,R=h.target,C=Math.abs(w)>Math.abs(S)?"h":"v";if("touches"in h&&C==="h"&&R.type==="range")return!1;var A=cm(C,R);if(!A)return!0;if(A?_=C:(_=C==="v"?"h":"v",A=cm(C,R)),!A)return!1;if(!n.current&&"changedTouches"in h&&(w||S)&&(n.current=_),!_)return!0;var P=n.current||_;return wM(P,v,h,P==="h"?w:S)},[]),c=d.useCallback(function(h){var v=h;if(!(!Xr.length||Xr[Xr.length-1]!==a)){var y="deltaY"in v?lm(v):Wo(v),x=t.current.filter(function(_){return _.name===v.type&&(_.target===v.target||v.target===_.shadowParent)&&SM(_.delta,y)})[0];if(x&&x.should){v.cancelable&&v.preventDefault();return}if(!x){var w=(i.current.shards||[]).map(um).filter(Boolean).filter(function(_){return _.contains(v.target)}),S=w.length>0?s(v,w[0]):!i.current.noIsolation;S&&v.cancelable&&v.preventDefault()}}},[]),l=d.useCallback(function(h,v,y,x){var w={name:h,delta:v,target:y,should:x,shadowParent:EM(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(S){return S!==w})},1)},[]),p=d.useCallback(function(h){r.current=Wo(h),n.current=void 0},[]),u=d.useCallback(function(h){l(h.type,lm(h),h.target,s(h,e.lockRef.current))},[]),m=d.useCallback(function(h){l(h.type,Wo(h),h.target,s(h,e.lockRef.current))},[]);d.useEffect(function(){return Xr.push(a),e.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:m}),document.addEventListener("wheel",c,Yr),document.addEventListener("touchmove",c,Yr),document.addEventListener("touchstart",p,Yr),function(){Xr=Xr.filter(function(h){return h!==a}),document.removeEventListener("wheel",c,Yr),document.removeEventListener("touchmove",c,Yr),document.removeEventListener("touchstart",p,Yr)}},[]);var b=e.removeScrollBar,g=e.inert;return d.createElement(d.Fragment,null,g?d.createElement(a,{styles:CM(o)}):null,b?d.createElement(mM,{gapMode:e.gapMode}):null)}function EM(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const PM=tM(cy,RM);var yo=d.forwardRef(function(e,t){return d.createElement(Qa,Ut({},e,{ref:t,sideCar:PM}))});yo.classNames=Qa.classNames;var TM=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Zr=new WeakMap,Ko=new WeakMap,Yo={},Wi=0,py=function(e){return e&&(e.host||py(e.parentNode))},NM=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=py(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})},AM=function(e,t,r,n){var o=NM(t,Array.isArray(e)?e:[e]);Yo[r]||(Yo[r]=new WeakMap);var a=Yo[r],i=[],s=new Set,c=new Set(o),l=function(u){!u||s.has(u)||(s.add(u),l(u.parentNode))};o.forEach(l);var p=function(u){!u||c.has(u)||Array.prototype.forEach.call(u.children,function(m){if(s.has(m))p(m);else try{var b=m.getAttribute(n),g=b!==null&&b!=="false",h=(Zr.get(m)||0)+1,v=(a.get(m)||0)+1;Zr.set(m,h),a.set(m,v),i.push(m),h===1&&g&&Ko.set(m,!0),v===1&&m.setAttribute(r,"true"),g||m.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",m,y)}})};return p(t),s.clear(),Wi++,function(){i.forEach(function(u){var m=Zr.get(u)-1,b=a.get(u)-1;Zr.set(u,m),a.set(u,b),m||(Ko.has(u)||u.removeAttribute(n),Ko.delete(u)),b||u.removeAttribute(r)}),Wi--,Wi||(Zr=new WeakMap,Zr=new WeakMap,Ko=new WeakMap,Yo={})}},ei=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=TM(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live]"))),AM(n,o,r,"aria-hidden")):function(){return null}},_d="Dialog",[my,hy]=je(_d),[MM,Bt]=my(_d),gy=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,s=d.useRef(null),c=d.useRef(null),[l=!1,p]=$e({prop:n,defaultProp:o,onChange:a});return f.jsx(MM,{scope:t,triggerRef:s,contentRef:c,contentId:Ue(),titleId:Ue(),descriptionId:Ue(),open:l,onOpenChange:p,onOpenToggle:d.useCallback(()=>p(u=>!u),[p]),modal:i,children:r})};gy.displayName=_d;var vy="DialogTrigger",by=d.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Bt(vy,r),a=de(t,o.triggerRef);return f.jsx(X.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Pd(o.open),...n,ref:a,onClick:B(e.onClick,o.onOpenToggle)})});by.displayName=vy;var Rd="DialogPortal",[OM,yy]=my(Rd,{forceMount:void 0}),xy=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,a=Bt(Rd,t);return f.jsx(OM,{scope:t,forceMount:r,children:d.Children.map(n,i=>f.jsx(Le,{present:r||a.open,children:f.jsx(zr,{asChild:!0,container:o,children:i})}))})};xy.displayName=Rd;var va="DialogOverlay",wy=d.forwardRef((e,t)=>{const r=yy(va,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Bt(va,e.__scopeDialog);return a.modal?f.jsx(Le,{present:n||a.open,children:f.jsx(IM,{...o,ref:t})}):null});wy.displayName=va;var IM=d.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Bt(va,r);return f.jsx(yo,{as:st,allowPinchZoom:!0,shards:[o.contentRef],children:f.jsx(X.div,{"data-state":Pd(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),kr="DialogContent",Sy=d.forwardRef((e,t)=>{const r=yy(kr,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Bt(kr,e.__scopeDialog);return f.jsx(Le,{present:n||a.open,children:a.modal?f.jsx(DM,{...o,ref:t}):f.jsx(jM,{...o,ref:t})})});Sy.displayName=kr;var DM=d.forwardRef((e,t)=>{const r=Bt(kr,e.__scopeDialog),n=d.useRef(null),o=de(t,r.contentRef,n);return d.useEffect(()=>{const a=n.current;if(a)return ei(a)},[]),f.jsx(Cy,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:B(e.onCloseAutoFocus,a=>{var i;a.preventDefault(),(i=r.triggerRef.current)==null||i.focus()}),onPointerDownOutside:B(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,s=i.button===0&&i.ctrlKey===!0;(i.button===2||s)&&a.preventDefault()}),onFocusOutside:B(e.onFocusOutside,a=>a.preventDefault())})}),jM=d.forwardRef((e,t)=>{const r=Bt(kr,e.__scopeDialog),n=d.useRef(!1),o=d.useRef(!1);return f.jsx(Cy,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i,s;(i=e.onCloseAutoFocus)==null||i.call(e,a),a.defaultPrevented||(n.current||(s=r.triggerRef.current)==null||s.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{var c,l;(c=e.onInteractOutside)==null||c.call(e,a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=a.target;((l=r.triggerRef.current)==null?void 0:l.contains(i))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Cy=d.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,s=Bt(kr,r),c=d.useRef(null),l=de(t,c);return Ja(),f.jsxs(f.Fragment,{children:[f.jsx(bo,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:f.jsx(lr,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Pd(s.open),...i,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),f.jsxs(f.Fragment,{children:[f.jsx($M,{titleId:s.titleId}),f.jsx(FM,{contentRef:c,descriptionId:s.descriptionId})]})]})}),Ed="DialogTitle",_y=d.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Bt(Ed,r);return f.jsx(X.h2,{id:o.titleId,...n,ref:t})});_y.displayName=Ed;var Ry="DialogDescription",Ey=d.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Bt(Ry,r);return f.jsx(X.p,{id:o.descriptionId,...n,ref:t})});Ey.displayName=Ry;var Py="DialogClose",Ty=d.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Bt(Py,r);return f.jsx(X.button,{type:"button",...n,ref:t,onClick:B(e.onClick,()=>o.onOpenChange(!1))})});Ty.displayName=Py;function Pd(e){return e?"open":"closed"}var Ny="DialogTitleWarning",[kM,Ay]=B1(Ny,{contentName:kr,titleName:Ed,docsSlug:"dialog"}),$M=({titleId:e})=>{const t=Ay(Ny),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
71
161
|
|
|
72
162
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
73
163
|
|
|
74
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
* @license lucide-react v0.482.0 - ISC
|
|
81
|
-
*
|
|
82
|
-
*
|
|
83
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
84
|
-
*/var zl={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"};/**
|
|
85
|
-
* @license lucide-react v0.482.0 - ISC
|
|
86
|
-
*
|
|
87
|
-
* This source code is licensed under the ISC license.
|
|
88
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
89
|
-
*/const Bl=se.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:i,...s},c)=>se.createElement("svg",{ref:c,...zl,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:Io("lucide",o),...s},[...i.map(([d,f])=>se.createElement(d,f)),...Array.isArray(a)?a:[a]]));/**
|
|
90
|
-
* @license lucide-react v0.482.0 - ISC
|
|
91
|
-
*
|
|
92
|
-
* This source code is licensed under the ISC license.
|
|
93
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
94
|
-
*/const dt=(e,t)=>{const r=se.forwardRef(({className:n,...o},a)=>se.createElement(Bl,{ref:a,iconNode:t,className:Io(`lucide-${$l(e)}`,n),...o}));return r.displayName=`${e}`,r};/**
|
|
95
|
-
* @license lucide-react v0.482.0 - ISC
|
|
96
|
-
*
|
|
97
|
-
* This source code is licensed under the ISC license.
|
|
98
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
99
|
-
*/const Wl=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],br=dt("ChevronRight",Wl);/**
|
|
100
|
-
* @license lucide-react v0.482.0 - ISC
|
|
164
|
+
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},LM="DialogDescriptionWarning",FM=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ay(LM).contentName}}.`;return d.useEffect(()=>{var a;const o=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},ti=gy,ri=by,ni=xy,xn=wy,wn=Sy,Sn=_y,Cn=Ey,qr=Ty,My="AlertDialog",[BM,WV]=je(My,[hy]),ur=hy(),Oy=e=>{const{__scopeAlertDialog:t,...r}=e,n=ur(t);return f.jsx(ti,{...n,...r,modal:!0})};Oy.displayName=My;var zM="AlertDialogTrigger",Iy=d.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=ur(r);return f.jsx(ri,{...o,...n,ref:t})});Iy.displayName=zM;var qM="AlertDialogPortal",Dy=e=>{const{__scopeAlertDialog:t,...r}=e,n=ur(t);return f.jsx(ni,{...n,...r})};Dy.displayName=qM;var HM="AlertDialogOverlay",jy=d.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=ur(r);return f.jsx(xn,{...o,...n,ref:t})});jy.displayName=HM;var nn="AlertDialogContent",[VM,GM]=BM(nn),ky=d.forwardRef((e,t)=>{const{__scopeAlertDialog:r,children:n,...o}=e,a=ur(r),i=d.useRef(null),s=de(t,i),c=d.useRef(null);return f.jsx(kM,{contentName:nn,titleName:$y,docsSlug:"alert-dialog",children:f.jsx(VM,{scope:r,cancelRef:c,children:f.jsxs(wn,{role:"alertdialog",...a,...o,ref:s,onOpenAutoFocus:B(o.onOpenAutoFocus,l=>{var p;l.preventDefault(),(p=c.current)==null||p.focus({preventScroll:!0})}),onPointerDownOutside:l=>l.preventDefault(),onInteractOutside:l=>l.preventDefault(),children:[f.jsx(dd,{children:n}),f.jsx(WM,{contentRef:i})]})})})});ky.displayName=nn;var $y="AlertDialogTitle",Ly=d.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=ur(r);return f.jsx(Sn,{...o,...n,ref:t})});Ly.displayName=$y;var Fy="AlertDialogDescription",By=d.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=ur(r);return f.jsx(Cn,{...o,...n,ref:t})});By.displayName=Fy;var UM="AlertDialogAction",zy=d.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=ur(r);return f.jsx(qr,{...o,...n,ref:t})});zy.displayName=UM;var qy="AlertDialogCancel",Hy=d.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,{cancelRef:o}=GM(qy,r),a=ur(r),i=de(t,o);return f.jsx(qr,{...a,...n,ref:i})});Hy.displayName=qy;var WM=({contentRef:e})=>{const t=`\`${nn}\` requires a description for the component to be accessible for screen reader users.
|
|
165
|
+
|
|
166
|
+
You can add a description to the \`${nn}\` by passing a \`${Fy}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
167
|
+
|
|
168
|
+
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${nn}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
|
|
169
|
+
|
|
170
|
+
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return d.useEffect(()=>{var n;document.getElementById((n=e.current)==null?void 0:n.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},KM=Oy,YM=Iy,XM=Dy,Vy=jy,Gy=ky,Uy=zy,Wy=Hy,Ky=Ly,Yy=By;const dm=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,fm=or,dr=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return fm(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:a}=t,i=Object.keys(o).map(l=>{const p=r==null?void 0:r[l],u=a==null?void 0:a[l];if(p===null)return null;const m=dm(p)||dm(u);return o[l][m]}),s=r&&Object.entries(r).reduce((l,p)=>{let[u,m]=p;return m===void 0||(l[u]=m),l},{}),c=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((l,p)=>{let{class:u,className:m,...b}=p;return Object.entries(b).every(g=>{let[h,v]=g;return Array.isArray(v)?v.includes({...a,...s}[h]):{...a,...s}[h]===v})?[...l,u,m]:l},[]);return fm(e,i,c,r==null?void 0:r.class,r==null?void 0:r.className)},xo=dr("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),gr=d.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...o},a)=>{const i=n?st:"button";return f.jsx(i,{className:O(xo({variant:t,size:r,className:e})),ref:a,...o})});gr.displayName="Button";const ZM=KM,JM=YM,Xy=XM,Td=d.forwardRef(({className:e,...t},r)=>f.jsx(Vy,{className:O("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:r}));Td.displayName=Vy.displayName;const Zy=d.forwardRef(({className:e,...t},r)=>f.jsxs(Xy,{children:[f.jsx(Td,{}),f.jsx(Gy,{ref:r,className:O("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...t})]}));Zy.displayName=Gy.displayName;const Jy=({className:e,...t})=>f.jsx("div",{className:O("flex flex-col space-y-2 text-center sm:text-left",e),...t});Jy.displayName="AlertDialogHeader";const Qy=({className:e,...t})=>f.jsx("div",{className:O("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Qy.displayName="AlertDialogFooter";const ex=d.forwardRef(({className:e,...t},r)=>f.jsx(Ky,{ref:r,className:O("text-lg font-semibold",e),...t}));ex.displayName=Ky.displayName;const tx=d.forwardRef(({className:e,...t},r)=>f.jsx(Yy,{ref:r,className:O("text-sm text-muted-foreground",e),...t}));tx.displayName=Yy.displayName;const rx=d.forwardRef(({className:e,...t},r)=>f.jsx(Uy,{ref:r,className:O(xo(),e),...t}));rx.displayName=Uy.displayName;const nx=d.forwardRef(({className:e,...t},r)=>f.jsx(Wy,{ref:r,className:O(xo({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));nx.displayName=Wy.displayName;const QM=dr("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),ox=d.forwardRef(({className:e,variant:t,...r},n)=>f.jsx("div",{ref:n,role:"alert",className:O(QM({variant:t}),e),...r}));ox.displayName="Alert";const ax=d.forwardRef(({className:e,...t},r)=>f.jsx("h5",{ref:r,className:O("mb-1 font-medium leading-none tracking-tight",e),...t}));ax.displayName="AlertTitle";const ix=d.forwardRef(({className:e,...t},r)=>f.jsx("div",{ref:r,className:O("text-sm [&_p]:leading-relaxed",e),...t}));ix.displayName="AlertDescription";var eO="AspectRatio",sx=d.forwardRef((e,t)=>{const{ratio:r=1/1,style:n,...o}=e;return f.jsx("div",{style:{position:"relative",width:"100%",paddingBottom:`${100/r}%`},"data-radix-aspect-ratio-wrapper":"",children:f.jsx(X.div,{...o,ref:t,style:{...n,position:"absolute",top:0,right:0,bottom:0,left:0}})})});sx.displayName=eO;var tO=sx;const rO=tO;var Nd="Avatar",[nO,KV]=je(Nd),[oO,cx]=nO(Nd),lx=d.forwardRef((e,t)=>{const{__scopeAvatar:r,...n}=e,[o,a]=d.useState("idle");return f.jsx(oO,{scope:r,imageLoadingStatus:o,onImageLoadingStatusChange:a,children:f.jsx(X.span,{...n,ref:t})})});lx.displayName=Nd;var ux="AvatarImage",dx=d.forwardRef((e,t)=>{const{__scopeAvatar:r,src:n,onLoadingStatusChange:o=()=>{},...a}=e,i=cx(ux,r),s=aO(n,a.referrerPolicy),c=Te(l=>{o(l),i.onImageLoadingStatusChange(l)});return He(()=>{s!=="idle"&&c(s)},[s,c]),s==="loaded"?f.jsx(X.img,{...a,ref:t,src:n}):null});dx.displayName=ux;var fx="AvatarFallback",px=d.forwardRef((e,t)=>{const{__scopeAvatar:r,delayMs:n,...o}=e,a=cx(fx,r),[i,s]=d.useState(n===void 0);return d.useEffect(()=>{if(n!==void 0){const c=window.setTimeout(()=>s(!0),n);return()=>window.clearTimeout(c)}},[n]),i&&a.imageLoadingStatus!=="loaded"?f.jsx(X.span,{...o,ref:t}):null});px.displayName=fx;function aO(e,t){const[r,n]=d.useState("idle");return He(()=>{if(!e){n("error");return}let o=!0;const a=new window.Image,i=s=>()=>{o&&n(s)};return n("loading"),a.onload=i("loaded"),a.onerror=i("error"),a.src=e,t&&(a.referrerPolicy=t),()=>{o=!1}},[e,t]),r}var mx=lx,hx=dx,gx=px;const vx=d.forwardRef(({className:e,...t},r)=>f.jsx(mx,{ref:r,className:O("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));vx.displayName=mx.displayName;const bx=d.forwardRef(({className:e,...t},r)=>f.jsx(hx,{ref:r,className:O("aspect-square h-full w-full",e),...t}));bx.displayName=hx.displayName;const yx=d.forwardRef(({className:e,...t},r)=>f.jsx(gx,{ref:r,className:O("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));yx.displayName=gx.displayName;const xx=dr("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function iO({className:e,variant:t,...r}){return f.jsx("div",{className:O(xx({variant:t}),e),...r})}const Ad=d.forwardRef(({...e},t)=>f.jsx("nav",{ref:t,"aria-label":"breadcrumb",...e}));Ad.displayName="Breadcrumb";const Md=d.forwardRef(({className:e,...t},r)=>f.jsx("ol",{ref:r,className:O("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...t}));Md.displayName="BreadcrumbList";const ba=d.forwardRef(({className:e,...t},r)=>f.jsx("li",{ref:r,className:O("inline-flex items-center gap-1.5",e),...t}));ba.displayName="BreadcrumbItem";const ya=d.forwardRef(({asChild:e,className:t,...r},n)=>{const o=e?st:"a";return f.jsx(o,{ref:n,className:O("transition-colors hover:text-foreground",t),...r})});ya.displayName="BreadcrumbLink";const Od=d.forwardRef(({className:e,...t},r)=>f.jsx("span",{ref:r,role:"link","aria-disabled":"true","aria-current":"page",className:O("font-normal text-foreground",e),...t}));Od.displayName="BreadcrumbPage";const xa=({children:e,className:t,...r})=>f.jsx("li",{role:"presentation","aria-hidden":"true",className:O("[&>svg]:w-3.5 [&>svg]:h-3.5",t),...r,children:e??f.jsx(jr,{})});xa.displayName="BreadcrumbSeparator";const wx=({className:e,...t})=>f.jsxs("span",{role:"presentation","aria-hidden":"true",className:O("flex h-9 w-9 items-center justify-center",e),...t,children:[f.jsx(Hb,{className:"h-4 w-4"}),f.jsx("span",{className:"sr-only",children:"More"})]});wx.displayName="BreadcrumbElipssis";const Id=d.forwardRef(({className:e,...t},r)=>f.jsx("div",{ref:r,className:O("rounded-xl border bg-card text-card-foreground shadow",e),...t}));Id.displayName="Card";const Dd=d.forwardRef(({className:e,...t},r)=>f.jsx("div",{ref:r,className:O("flex flex-col space-y-1.5 p-6",e),...t}));Dd.displayName="CardHeader";const jd=d.forwardRef(({className:e,...t},r)=>f.jsx("div",{ref:r,className:O("font-semibold leading-none tracking-tight",e),...t}));jd.displayName="CardTitle";const kd=d.forwardRef(({className:e,...t},r)=>f.jsx("div",{ref:r,className:O("text-sm text-muted-foreground",e),...t}));kd.displayName="CardDescription";const $d=d.forwardRef(({className:e,...t},r)=>f.jsx("div",{ref:r,className:O("p-6 pt-0",e),...t}));$d.displayName="CardContent";const Sx=d.forwardRef(({className:e,...t},r)=>f.jsx("div",{ref:r,className:O("flex items-center p-6 pt-0",e),...t}));Sx.displayName="CardFooter";function sO(e){return Object.prototype.toString.call(e)==="[object Object]"}function pm(e){return sO(e)||Array.isArray(e)}function cO(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Ld(e,t){const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;const o=JSON.stringify(Object.keys(e.breakpoints||{})),a=JSON.stringify(Object.keys(t.breakpoints||{}));return o!==a?!1:r.every(i=>{const s=e[i],c=t[i];return typeof s=="function"?`${s}`==`${c}`:!pm(s)||!pm(c)?s===c:Ld(s,c)})}function mm(e){return e.concat().sort((t,r)=>t.name>r.name?1:-1).map(t=>t.options)}function lO(e,t){if(e.length!==t.length)return!1;const r=mm(e),n=mm(t);return r.every((o,a)=>{const i=n[a];return Ld(o,i)})}function Fd(e){return typeof e=="number"}function bu(e){return typeof e=="string"}function oi(e){return typeof e=="boolean"}function hm(e){return Object.prototype.toString.call(e)==="[object Object]"}function qe(e){return Math.abs(e)}function Bd(e){return Math.sign(e)}function Kn(e,t){return qe(e-t)}function uO(e,t){if(e===0||t===0||qe(e)<=qe(t))return 0;const r=Kn(qe(e),qe(t));return qe(r/e)}function dO(e){return Math.round(e*100)/100}function Zn(e){return Jn(e).map(Number)}function jt(e){return e[wo(e)]}function wo(e){return Math.max(0,e.length-1)}function zd(e,t){return t===wo(e)}function gm(e,t=0){return Array.from(Array(e),(r,n)=>t+n)}function Jn(e){return Object.keys(e)}function Cx(e,t){return[e,t].reduce((r,n)=>(Jn(n).forEach(o=>{const a=r[o],i=n[o],s=hm(a)&&hm(i);r[o]=s?Cx(a,i):i}),r),{})}function yu(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function fO(e,t){const r={start:n,center:o,end:a};function n(){return 0}function o(c){return a(c)/2}function a(c){return t-c}function i(c,l){return bu(e)?r[e](c):e(t,c,l)}return{measure:i}}function Qn(){let e=[];function t(o,a,i,s={passive:!0}){let c;if("addEventListener"in o)o.addEventListener(a,i,s),c=()=>o.removeEventListener(a,i,s);else{const l=o;l.addListener(i),c=()=>l.removeListener(i)}return e.push(c),n}function r(){e=e.filter(o=>o())}const n={add:t,clear:r};return n}function pO(e,t,r,n){const o=Qn(),a=1e3/60;let i=null,s=0,c=0;function l(){o.add(e,"visibilitychange",()=>{e.hidden&&g()})}function p(){b(),o.clear()}function u(v){if(!c)return;i||(i=v,r(),r());const y=v-i;for(i=v,s+=y;s>=a;)r(),s-=a;const x=s/a;n(x),c&&(c=t.requestAnimationFrame(u))}function m(){c||(c=t.requestAnimationFrame(u))}function b(){t.cancelAnimationFrame(c),i=null,s=0,c=0}function g(){i=null,s=0}return{init:l,destroy:p,start:m,stop:b,update:r,render:n}}function mO(e,t){const r=t==="rtl",n=e==="y",o=n?"y":"x",a=n?"x":"y",i=!n&&r?-1:1,s=p(),c=u();function l(g){const{height:h,width:v}=g;return n?h:v}function p(){return n?"top":r?"right":"left"}function u(){return n?"bottom":r?"left":"right"}function m(g){return g*i}return{scroll:o,cross:a,startEdge:s,endEdge:c,measureSize:l,direction:m}}function $r(e=0,t=0){const r=qe(e-t);function n(l){return l<e}function o(l){return l>t}function a(l){return n(l)||o(l)}function i(l){return a(l)?n(l)?e:t:l}function s(l){return r?l-r*Math.ceil((l-t)/r):l}return{length:r,max:t,min:e,constrain:i,reachedAny:a,reachedMax:o,reachedMin:n,removeOffset:s}}function _x(e,t,r){const{constrain:n}=$r(0,e),o=e+1;let a=i(t);function i(m){return r?qe((o+m)%o):n(m)}function s(){return a}function c(m){return a=i(m),u}function l(m){return p().set(s()+m)}function p(){return _x(e,s(),r)}const u={get:s,set:c,add:l,clone:p};return u}function hO(e,t,r,n,o,a,i,s,c,l,p,u,m,b,g,h,v,y,x){const{cross:w,direction:S}=e,_=["INPUT","SELECT","TEXTAREA"],R={passive:!1},C=Qn(),A=Qn(),P=$r(50,225).constrain(b.measure(20)),k={mouse:300,touch:400},D={mouse:500,touch:600},L=g?43:25;let N=!1,j=0,$=0,M=!1,G=!1,H=!1,z=!1;function oe(V){if(!x)return;function ae(ee){(oi(x)||x(V,ee))&&K(ee)}const I=t;C.add(I,"dragstart",ee=>ee.preventDefault(),R).add(I,"touchmove",()=>{},R).add(I,"touchend",()=>{}).add(I,"touchstart",ae).add(I,"mousedown",ae).add(I,"touchcancel",W).add(I,"contextmenu",W).add(I,"click",re,!0)}function Z(){C.clear(),A.clear()}function te(){const V=z?r:t;A.add(V,"touchmove",q,R).add(V,"touchend",W).add(V,"mousemove",q,R).add(V,"mouseup",W)}function F(V){const ae=V.nodeName||"";return _.includes(ae)}function U(){return(g?D:k)[z?"mouse":"touch"]}function Q(V,ae){const I=u.add(Bd(V)*-1),ee=p.byDistance(V,!g).distance;return g||qe(V)<P?ee:v&&ae?ee*.5:p.byIndex(I.get(),0).distance}function K(V){const ae=yu(V,n);z=ae,H=g&&ae&&!V.buttons&&N,N=Kn(o.get(),i.get())>=2,!(ae&&V.button!==0)&&(F(V.target)||(M=!0,a.pointerDown(V),l.useFriction(0).useDuration(0),o.set(i),te(),j=a.readPoint(V),$=a.readPoint(V,w),m.emit("pointerDown")))}function q(V){if(!yu(V,n)&&V.touches.length>=2)return W(V);const I=a.readPoint(V),ee=a.readPoint(V,w),pe=Kn(I,j),me=Kn(ee,$);if(!G&&!z&&(!V.cancelable||(G=pe>me,!G)))return W(V);const ge=a.pointerMove(V);pe>h&&(H=!0),l.useFriction(.3).useDuration(.75),s.start(),o.add(S(ge)),V.preventDefault()}function W(V){const I=p.byDistance(0,!1).index!==u.get(),ee=a.pointerUp(V)*U(),pe=Q(S(ee),I),me=uO(ee,pe),ge=L-10*me,fe=y+me/50;G=!1,M=!1,A.clear(),l.useDuration(ge).useFriction(fe),c.distance(pe,!g),z=!1,m.emit("pointerUp")}function re(V){H&&(V.stopPropagation(),V.preventDefault(),H=!1)}function J(){return M}return{init:oe,destroy:Z,pointerDown:J}}function gO(e,t){let n,o;function a(u){return u.timeStamp}function i(u,m){const g=`client${(m||e.scroll)==="x"?"X":"Y"}`;return(yu(u,t)?u:u.touches[0])[g]}function s(u){return n=u,o=u,i(u)}function c(u){const m=i(u)-i(o),b=a(u)-a(n)>170;return o=u,b&&(n=u),m}function l(u){if(!n||!o)return 0;const m=i(o)-i(n),b=a(u)-a(n),g=a(u)-a(o)>170,h=m/b;return b&&!g&&qe(h)>.1?h:0}return{pointerDown:s,pointerMove:c,pointerUp:l,readPoint:i}}function vO(){function e(r){const{offsetTop:n,offsetLeft:o,offsetWidth:a,offsetHeight:i}=r;return{top:n,right:o+a,bottom:n+i,left:o,width:a,height:i}}return{measure:e}}function bO(e){function t(n){return e*(n/100)}return{measure:t}}function yO(e,t,r,n,o,a,i){const s=[e].concat(n);let c,l,p=[],u=!1;function m(v){return o.measureSize(i.measure(v))}function b(v){if(!a)return;l=m(e),p=n.map(m);function y(x){for(const w of x){if(u)return;const S=w.target===e,_=n.indexOf(w.target),R=S?l:p[_],C=m(S?e:n[_]);if(qe(C-R)>=.5){v.reInit(),t.emit("resize");break}}}c=new ResizeObserver(x=>{(oi(a)||a(v,x))&&y(x)}),r.requestAnimationFrame(()=>{s.forEach(x=>c.observe(x))})}function g(){u=!0,c&&c.disconnect()}return{init:b,destroy:g}}function xO(e,t,r,n,o,a){let i=0,s=0,c=o,l=a,p=e.get(),u=0;function m(){const R=n.get()-e.get(),C=!c;let A=0;return C?(i=0,r.set(n),e.set(n),A=R):(r.set(e),i+=R/c,i*=l,p+=i,e.add(i),A=p-u),s=Bd(A),u=p,_}function b(){const R=n.get()-t.get();return qe(R)<.001}function g(){return c}function h(){return s}function v(){return i}function y(){return w(o)}function x(){return S(a)}function w(R){return c=R,_}function S(R){return l=R,_}const _={direction:h,duration:g,velocity:v,seek:m,settled:b,useBaseFriction:x,useBaseDuration:y,useFriction:S,useDuration:w};return _}function wO(e,t,r,n,o){const a=o.measure(10),i=o.measure(50),s=$r(.1,.99);let c=!1;function l(){return!(c||!e.reachedAny(r.get())||!e.reachedAny(t.get()))}function p(b){if(!l())return;const g=e.reachedMin(t.get())?"min":"max",h=qe(e[g]-t.get()),v=r.get()-t.get(),y=s.constrain(h/i);r.subtract(v*y),!b&&qe(v)<a&&(r.set(e.constrain(r.get())),n.useDuration(25).useBaseFriction())}function u(b){c=!b}return{shouldConstrain:l,constrain:p,toggleActive:u}}function SO(e,t,r,n,o){const a=$r(-t+e,0),i=u(),s=p(),c=m();function l(g,h){return Kn(g,h)<=1}function p(){const g=i[0],h=jt(i),v=i.lastIndexOf(g),y=i.indexOf(h)+1;return $r(v,y)}function u(){return r.map((g,h)=>{const{min:v,max:y}=a,x=a.constrain(g),w=!h,S=zd(r,h);return w?y:S||l(v,x)?v:l(y,x)?y:x}).map(g=>parseFloat(g.toFixed(3)))}function m(){if(t<=e+o)return[a.max];if(n==="keepSnaps")return i;const{min:g,max:h}=s;return i.slice(g,h)}return{snapsContained:c,scrollContainLimit:s}}function CO(e,t,r){const n=t[0],o=r?n-e:jt(t);return{limit:$r(o,n)}}function _O(e,t,r,n){const a=t.min+.1,i=t.max+.1,{reachedMin:s,reachedMax:c}=$r(a,i);function l(m){return m===1?c(r.get()):m===-1?s(r.get()):!1}function p(m){if(!l(m))return;const b=e*(m*-1);n.forEach(g=>g.add(b))}return{loop:p}}function RO(e){const{max:t,length:r}=e;function n(a){const i=a-t;return r?i/-r:0}return{get:n}}function EO(e,t,r,n,o){const{startEdge:a,endEdge:i}=e,{groupSlides:s}=o,c=u().map(t.measure),l=m(),p=b();function u(){return s(n).map(h=>jt(h)[i]-h[0][a]).map(qe)}function m(){return n.map(h=>r[a]-h[a]).map(h=>-qe(h))}function b(){return s(l).map(h=>h[0]).map((h,v)=>h+c[v])}return{snaps:l,snapsAligned:p}}function PO(e,t,r,n,o,a){const{groupSlides:i}=o,{min:s,max:c}=n,l=p();function p(){const m=i(a),b=!e||t==="keepSnaps";return r.length===1?[a]:b?m:m.slice(s,c).map((g,h,v)=>{const y=!h,x=zd(v,h);if(y){const w=jt(v[0])+1;return gm(w)}if(x){const w=wo(a)-jt(v)[0]+1;return gm(w,jt(v)[0])}return g})}return{slideRegistry:l}}function TO(e,t,r,n,o){const{reachedAny:a,removeOffset:i,constrain:s}=n;function c(g){return g.concat().sort((h,v)=>qe(h)-qe(v))[0]}function l(g){const h=e?i(g):s(g),v=t.map((x,w)=>({diff:p(x-h,0),index:w})).sort((x,w)=>qe(x.diff)-qe(w.diff)),{index:y}=v[0];return{index:y,distance:h}}function p(g,h){const v=[g,g+r,g-r];if(!e)return g;if(!h)return c(v);const y=v.filter(x=>Bd(x)===h);return y.length?c(y):jt(v)-r}function u(g,h){const v=t[g]-o.get(),y=p(v,h);return{index:g,distance:y}}function m(g,h){const v=o.get()+g,{index:y,distance:x}=l(v),w=!e&&a(v);if(!h||w)return{index:y,distance:g};const S=t[y]-x,_=g+p(S,0);return{index:y,distance:_}}return{byDistance:m,byIndex:u,shortcut:p}}function NO(e,t,r,n,o,a,i){function s(u){const m=u.distance,b=u.index!==t.get();a.add(m),m&&(n.duration()?e.start():(e.update(),e.render(1),e.update())),b&&(r.set(t.get()),t.set(u.index),i.emit("select"))}function c(u,m){const b=o.byDistance(u,m);s(b)}function l(u,m){const b=t.clone().set(u),g=o.byIndex(b.get(),m);s(g)}return{distance:c,index:l}}function AO(e,t,r,n,o,a,i,s){const c={passive:!0,capture:!0};let l=0;function p(b){if(!s)return;function g(h){if(new Date().getTime()-l>10)return;i.emit("slideFocusStart"),e.scrollLeft=0;const x=r.findIndex(w=>w.includes(h));Fd(x)&&(o.useDuration(0),n.index(x,0),i.emit("slideFocus"))}a.add(document,"keydown",u,!1),t.forEach((h,v)=>{a.add(h,"focus",y=>{(oi(s)||s(b,y))&&g(v)},c)})}function u(b){b.code==="Tab"&&(l=new Date().getTime())}return{init:p}}function zn(e){let t=e;function r(){return t}function n(c){t=i(c)}function o(c){t+=i(c)}function a(c){t-=i(c)}function i(c){return Fd(c)?c:c.get()}return{get:r,set:n,add:o,subtract:a}}function Rx(e,t){const r=e.scroll==="x"?i:s,n=t.style;let o=null,a=!1;function i(m){return`translate3d(${m}px,0px,0px)`}function s(m){return`translate3d(0px,${m}px,0px)`}function c(m){if(a)return;const b=dO(e.direction(m));b!==o&&(n.transform=r(b),o=b)}function l(m){a=!m}function p(){a||(n.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:p,to:c,toggleActive:l}}function MO(e,t,r,n,o,a,i,s,c){const p=Zn(o),u=Zn(o).reverse(),m=y().concat(x());function b(C,A){return C.reduce((P,k)=>P-o[k],A)}function g(C,A){return C.reduce((P,k)=>b(P,A)>0?P.concat([k]):P,[])}function h(C){return a.map((A,P)=>({start:A-n[P]+.5+C,end:A+t-.5+C}))}function v(C,A,P){const k=h(A);return C.map(D=>{const L=P?0:-r,N=P?r:0,j=P?"end":"start",$=k[D][j];return{index:D,loopPoint:$,slideLocation:zn(-1),translate:Rx(e,c[D]),target:()=>s.get()>$?L:N}})}function y(){const C=i[0],A=g(u,C);return v(A,r,!1)}function x(){const C=t-i[0]-1,A=g(p,C);return v(A,-r,!0)}function w(){return m.every(({index:C})=>{const A=p.filter(P=>P!==C);return b(A,t)<=.1})}function S(){m.forEach(C=>{const{target:A,translate:P,slideLocation:k}=C,D=A();D!==k.get()&&(P.to(D),k.set(D))})}function _(){m.forEach(C=>C.translate.clear())}return{canLoop:w,clear:_,loop:S,loopPoints:m}}function OO(e,t,r){let n,o=!1;function a(c){if(!r)return;function l(p){for(const u of p)if(u.type==="childList"){c.reInit(),t.emit("slidesChanged");break}}n=new MutationObserver(p=>{o||(oi(r)||r(c,p))&&l(p)}),n.observe(e,{childList:!0})}function i(){n&&n.disconnect(),o=!0}return{init:a,destroy:i}}function IO(e,t,r,n){const o={};let a=null,i=null,s,c=!1;function l(){s=new IntersectionObserver(g=>{c||(g.forEach(h=>{const v=t.indexOf(h.target);o[v]=h}),a=null,i=null,r.emit("slidesInView"))},{root:e.parentElement,threshold:n}),t.forEach(g=>s.observe(g))}function p(){s&&s.disconnect(),c=!0}function u(g){return Jn(o).reduce((h,v)=>{const y=parseInt(v),{isIntersecting:x}=o[y];return(g&&x||!g&&!x)&&h.push(y),h},[])}function m(g=!0){if(g&&a)return a;if(!g&&i)return i;const h=u(g);return g&&(a=h),g||(i=h),h}return{init:l,destroy:p,get:m}}function DO(e,t,r,n,o,a){const{measureSize:i,startEdge:s,endEdge:c}=e,l=r[0]&&o,p=g(),u=h(),m=r.map(i),b=v();function g(){if(!l)return 0;const x=r[0];return qe(t[s]-x[s])}function h(){if(!l)return 0;const x=a.getComputedStyle(jt(n));return parseFloat(x.getPropertyValue(`margin-${c}`))}function v(){return r.map((x,w,S)=>{const _=!w,R=zd(S,w);return _?m[w]+p:R?m[w]+u:S[w+1][s]-x[s]}).map(qe)}return{slideSizes:m,slideSizesWithGaps:b,startGap:p,endGap:u}}function jO(e,t,r,n,o,a,i,s,c){const{startEdge:l,endEdge:p,direction:u}=e,m=Fd(r);function b(y,x){return Zn(y).filter(w=>w%x===0).map(w=>y.slice(w,w+x))}function g(y){return y.length?Zn(y).reduce((x,w,S)=>{const _=jt(x)||0,R=_===0,C=w===wo(y),A=o[l]-a[_][l],P=o[l]-a[w][p],k=!n&&R?u(i):0,D=!n&&C?u(s):0,L=qe(P-D-(A+k));return S&&L>t+c&&x.push(w),C&&x.push(y.length),x},[]).map((x,w,S)=>{const _=Math.max(S[w-1]||0);return y.slice(_,x)}):[]}function h(y){return m?b(y,r):g(y)}return{groupSlides:h}}function kO(e,t,r,n,o,a,i){const{align:s,axis:c,direction:l,startIndex:p,loop:u,duration:m,dragFree:b,dragThreshold:g,inViewThreshold:h,slidesToScroll:v,skipSnaps:y,containScroll:x,watchResize:w,watchSlides:S,watchDrag:_,watchFocus:R}=a,C=2,A=vO(),P=A.measure(t),k=r.map(A.measure),D=mO(c,l),L=D.measureSize(P),N=bO(L),j=fO(s,L),$=!u&&!!x,M=u||!!x,{slideSizes:G,slideSizesWithGaps:H,startGap:z,endGap:oe}=DO(D,P,k,r,M,o),Z=jO(D,L,v,u,P,k,z,oe,C),{snaps:te,snapsAligned:F}=EO(D,j,P,k,Z),U=-jt(te)+jt(H),{snapsContained:Q,scrollContainLimit:K}=SO(L,U,F,x,C),q=$?Q:F,{limit:W}=CO(U,q,u),re=_x(wo(q),p,u),J=re.clone(),ne=Zn(r),V=({dragHandler:Ve,scrollBody:Ct,scrollBounds:Ke,options:{loop:Je}})=>{Je||Ke.constrain(Ve.pointerDown()),Ct.seek()},ae=({scrollBody:Ve,translate:Ct,location:Ke,offsetLocation:Je,previousLocation:At,scrollLooper:Vt,slideLooper:fr,dragHandler:Er,animation:Mt,eventHandler:ue,scrollBounds:be,options:{loop:Ce}},ve)=>{const ie=Ve.settled(),Se=!be.shouldConstrain(),xe=Ce?ie:ie&&Se;xe&&!Er.pointerDown()&&(Mt.stop(),ue.emit("settle")),xe||ue.emit("scroll");const ke=Ke.get()*ve+At.get()*(1-ve);Je.set(ke),Ce&&(Vt.loop(Ve.direction()),fr.loop()),Ct.to(Je.get())},I=pO(n,o,()=>V(dt),Ve=>ae(dt,Ve)),ee=.68,pe=q[re.get()],me=zn(pe),ge=zn(pe),fe=zn(pe),Ee=zn(pe),Fe=xO(me,fe,ge,Ee,m,ee),we=TO(u,q,U,W,Ee),Oe=NO(I,re,J,Fe,we,Ee,i),rt=RO(W),Ze=Qn(),We=IO(t,r,i,h),{slideRegistry:ot}=PO($,x,q,K,Z,ne),pt=AO(e,r,ot,Oe,Fe,Ze,i,R),dt={ownerDocument:n,ownerWindow:o,eventHandler:i,containerRect:P,slideRects:k,animation:I,axis:D,dragHandler:hO(D,e,n,o,Ee,gO(D,o),me,I,Oe,Fe,we,re,i,N,b,g,y,ee,_),eventStore:Ze,percentOfView:N,index:re,indexPrevious:J,limit:W,location:me,offsetLocation:fe,previousLocation:ge,options:a,resizeHandler:yO(t,i,o,r,D,w,A),scrollBody:Fe,scrollBounds:wO(W,fe,Ee,Fe,N),scrollLooper:_O(U,W,fe,[me,fe,ge,Ee]),scrollProgress:rt,scrollSnapList:q.map(rt.get),scrollSnaps:q,scrollTarget:we,scrollTo:Oe,slideLooper:MO(D,L,U,G,H,te,q,fe,r),slideFocus:pt,slidesHandler:OO(t,i,S),slidesInView:We,slideIndexes:ne,slideRegistry:ot,slidesToScroll:Z,target:Ee,translate:Rx(D,t)};return dt}function $O(){let e={},t;function r(l){t=l}function n(l){return e[l]||[]}function o(l){return n(l).forEach(p=>p(t,l)),c}function a(l,p){return e[l]=n(l).concat([p]),c}function i(l,p){return e[l]=n(l).filter(u=>u!==p),c}function s(){e={}}const c={init:r,emit:o,off:i,on:a,clear:s};return c}const LO={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function FO(e){function t(a,i){return Cx(a,i||{})}function r(a){const i=a.breakpoints||{},s=Jn(i).filter(c=>e.matchMedia(c).matches).map(c=>i[c]).reduce((c,l)=>t(c,l),{});return t(a,s)}function n(a){return a.map(i=>Jn(i.breakpoints||{})).reduce((i,s)=>i.concat(s),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:r,optionsMediaQueries:n}}function BO(e){let t=[];function r(a,i){return t=i.filter(({options:s})=>e.optionsAtMedia(s).active!==!1),t.forEach(s=>s.init(a,e)),i.reduce((s,c)=>Object.assign(s,{[c.name]:c}),{})}function n(){t=t.filter(a=>a.destroy())}return{init:r,destroy:n}}function wa(e,t,r){const n=e.ownerDocument,o=n.defaultView,a=FO(o),i=BO(a),s=Qn(),c=$O(),{mergeOptions:l,optionsAtMedia:p,optionsMediaQueries:u}=a,{on:m,off:b,emit:g}=c,h=D;let v=!1,y,x=l(LO,wa.globalOptions),w=l(x),S=[],_,R,C;function A(){const{container:ne,slides:V}=w;R=(bu(ne)?e.querySelector(ne):ne)||e.children[0];const I=bu(V)?R.querySelectorAll(V):V;C=[].slice.call(I||R.children)}function P(ne){const V=kO(e,R,C,n,o,ne,c);if(ne.loop&&!V.slideLooper.canLoop()){const ae=Object.assign({},ne,{loop:!1});return P(ae)}return V}function k(ne,V){v||(x=l(x,ne),w=p(x),S=V||S,A(),y=P(w),u([x,...S.map(({options:ae})=>ae)]).forEach(ae=>s.add(ae,"change",D)),w.active&&(y.translate.to(y.location.get()),y.animation.init(),y.slidesInView.init(),y.slideFocus.init(J),y.eventHandler.init(J),y.resizeHandler.init(J),y.slidesHandler.init(J),y.options.loop&&y.slideLooper.loop(),R.offsetParent&&C.length&&y.dragHandler.init(J),_=i.init(J,S)))}function D(ne,V){const ae=Z();L(),k(l({startIndex:ae},ne),V),c.emit("reInit")}function L(){y.dragHandler.destroy(),y.eventStore.clear(),y.translate.clear(),y.slideLooper.clear(),y.resizeHandler.destroy(),y.slidesHandler.destroy(),y.slidesInView.destroy(),y.animation.destroy(),i.destroy(),s.clear()}function N(){v||(v=!0,s.clear(),L(),c.emit("destroy"),c.clear())}function j(ne,V,ae){!w.active||v||(y.scrollBody.useBaseFriction().useDuration(V===!0?0:w.duration),y.scrollTo.index(ne,ae||0))}function $(ne){const V=y.index.add(1).get();j(V,ne,-1)}function M(ne){const V=y.index.add(-1).get();j(V,ne,1)}function G(){return y.index.add(1).get()!==Z()}function H(){return y.index.add(-1).get()!==Z()}function z(){return y.scrollSnapList}function oe(){return y.scrollProgress.get(y.location.get())}function Z(){return y.index.get()}function te(){return y.indexPrevious.get()}function F(){return y.slidesInView.get()}function U(){return y.slidesInView.get(!1)}function Q(){return _}function K(){return y}function q(){return e}function W(){return R}function re(){return C}const J={canScrollNext:G,canScrollPrev:H,containerNode:W,internalEngine:K,destroy:N,off:b,on:m,emit:g,plugins:Q,previousScrollSnap:te,reInit:h,rootNode:q,scrollNext:$,scrollPrev:M,scrollProgress:oe,scrollSnapList:z,scrollTo:j,selectedScrollSnap:Z,slideNodes:re,slidesInView:F,slidesNotInView:U};return k(t,r),setTimeout(()=>c.emit("init"),0),J}wa.globalOptions=void 0;function qd(e={},t=[]){const r=E.useRef(e),n=E.useRef(t),[o,a]=E.useState(),[i,s]=E.useState(),c=E.useCallback(()=>{o&&o.reInit(r.current,n.current)},[o]);return E.useEffect(()=>{Ld(r.current,e)||(r.current=e,c())},[e,c]),E.useEffect(()=>{lO(n.current,t)||(n.current=t,c())},[t,c]),E.useEffect(()=>{if(cO()&&i){wa.globalOptions=qd.globalOptions;const l=wa(i,r.current,n.current);return a(l),()=>l.destroy()}else a(void 0)},[i,a]),[s,o]}qd.globalOptions=void 0;const Ex=d.createContext(null);function ai(){const e=d.useContext(Ex);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}const Px=d.forwardRef(({orientation:e="horizontal",opts:t,setApi:r,plugins:n,className:o,children:a,...i},s)=>{const[c,l]=qd({...t,axis:e==="horizontal"?"x":"y"},n),[p,u]=d.useState(!1),[m,b]=d.useState(!1),g=d.useCallback(x=>{x&&(u(x.canScrollPrev()),b(x.canScrollNext()))},[]),h=d.useCallback(()=>{l==null||l.scrollPrev()},[l]),v=d.useCallback(()=>{l==null||l.scrollNext()},[l]),y=d.useCallback(x=>{x.key==="ArrowLeft"?(x.preventDefault(),h()):x.key==="ArrowRight"&&(x.preventDefault(),v())},[h,v]);return d.useEffect(()=>{!l||!r||r(l)},[l,r]),d.useEffect(()=>{if(l)return g(l),l.on("reInit",g),l.on("select",g),()=>{l==null||l.off("select",g)}},[l,g]),f.jsx(Ex.Provider,{value:{carouselRef:c,api:l,opts:t,orientation:e||((t==null?void 0:t.axis)==="y"?"vertical":"horizontal"),scrollPrev:h,scrollNext:v,canScrollPrev:p,canScrollNext:m},children:f.jsx("div",{ref:s,onKeyDownCapture:y,className:O("relative",o),role:"region","aria-roledescription":"carousel",...i,children:a})})});Px.displayName="Carousel";const Tx=d.forwardRef(({className:e,...t},r)=>{const{carouselRef:n,orientation:o}=ai();return f.jsx("div",{ref:n,className:"overflow-hidden",children:f.jsx("div",{ref:r,className:O("flex",o==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});Tx.displayName="CarouselContent";const Nx=d.forwardRef(({className:e,...t},r)=>{const{orientation:n}=ai();return f.jsx("div",{ref:r,role:"group","aria-roledescription":"slide",className:O("min-w-0 shrink-0 grow-0 basis-full",n==="horizontal"?"pl-4":"pt-4",e),...t})});Nx.displayName="CarouselItem";const Ax=d.forwardRef(({className:e,variant:t="outline",size:r="icon",...n},o)=>{const{orientation:a,scrollPrev:i,canScrollPrev:s}=ai();return f.jsxs(gr,{ref:o,variant:t,size:r,className:O("absolute h-8 w-8 rounded-full",a==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!s,onClick:i,...n,children:[f.jsx(xN,{className:"h-4 w-4"}),f.jsx("span",{className:"sr-only",children:"Previous slide"})]})});Ax.displayName="CarouselPrevious";const Mx=d.forwardRef(({className:e,variant:t="outline",size:r="icon",...n},o)=>{const{orientation:a,scrollNext:i,canScrollNext:s}=ai();return f.jsxs(gr,{ref:o,variant:t,size:r,className:O("absolute h-8 w-8 rounded-full",a==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!s,onClick:i,...n,children:[f.jsx(SN,{className:"h-4 w-4"}),f.jsx("span",{className:"sr-only",children:"Next slide"})]})});Mx.displayName="CarouselNext";var Ki,vm;function zt(){if(vm)return Ki;vm=1;var e=Array.isArray;return Ki=e,Ki}var Yi,bm;function Ox(){if(bm)return Yi;bm=1;var e=typeof qo=="object"&&qo&&qo.Object===Object&&qo;return Yi=e,Yi}var Xi,ym;function Xt(){if(ym)return Xi;ym=1;var e=Ox(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Xi=r,Xi}var Zi,xm;function So(){if(xm)return Zi;xm=1;var e=Xt(),t=e.Symbol;return Zi=t,Zi}var Ji,wm;function zO(){if(wm)return Ji;wm=1;var e=So(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,o=e?e.toStringTag:void 0;function a(i){var s=r.call(i,o),c=i[o];try{i[o]=void 0;var l=!0}catch{}var p=n.call(i);return l&&(s?i[o]=c:delete i[o]),p}return Ji=a,Ji}var Qi,Sm;function qO(){if(Sm)return Qi;Sm=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return Qi=r,Qi}var es,Cm;function Hr(){if(Cm)return es;Cm=1;var e=So(),t=zO(),r=qO(),n="[object Null]",o="[object Undefined]",a=e?e.toStringTag:void 0;function i(s){return s==null?s===void 0?o:n:a&&a in Object(s)?t(s):r(s)}return es=i,es}var ts,_m;function Vr(){if(_m)return ts;_m=1;function e(t){return t!=null&&typeof t=="object"}return ts=e,ts}var rs,Rm;function Co(){if(Rm)return rs;Rm=1;var e=Hr(),t=Vr(),r="[object Symbol]";function n(o){return typeof o=="symbol"||t(o)&&e(o)==r}return rs=n,rs}var ns,Em;function Hd(){if(Em)return ns;Em=1;var e=zt(),t=Co(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function o(a,i){if(e(a))return!1;var s=typeof a;return s=="number"||s=="symbol"||s=="boolean"||a==null||t(a)?!0:n.test(a)||!r.test(a)||i!=null&&a in Object(i)}return ns=o,ns}var os,Pm;function wr(){if(Pm)return os;Pm=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return os=e,os}var as,Tm;function Vd(){if(Tm)return as;Tm=1;var e=Hr(),t=wr(),r="[object AsyncFunction]",n="[object Function]",o="[object GeneratorFunction]",a="[object Proxy]";function i(s){if(!t(s))return!1;var c=e(s);return c==n||c==o||c==r||c==a}return as=i,as}var is,Nm;function HO(){if(Nm)return is;Nm=1;var e=Xt(),t=e["__core-js_shared__"];return is=t,is}var ss,Am;function VO(){if(Am)return ss;Am=1;var e=HO(),t=function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function r(n){return!!t&&t in n}return ss=r,ss}var cs,Mm;function Ix(){if(Mm)return cs;Mm=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return cs=r,cs}var ls,Om;function GO(){if(Om)return ls;Om=1;var e=Vd(),t=VO(),r=wr(),n=Ix(),o=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,i=Function.prototype,s=Object.prototype,c=i.toString,l=s.hasOwnProperty,p=RegExp("^"+c.call(l).replace(o,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function u(m){if(!r(m)||t(m))return!1;var b=e(m)?p:a;return b.test(n(m))}return ls=u,ls}var us,Im;function UO(){if(Im)return us;Im=1;function e(t,r){return t==null?void 0:t[r]}return us=e,us}var ds,Dm;function Gr(){if(Dm)return ds;Dm=1;var e=GO(),t=UO();function r(n,o){var a=t(n,o);return e(a)?a:void 0}return ds=r,ds}var fs,jm;function ii(){if(jm)return fs;jm=1;var e=Gr(),t=e(Object,"create");return fs=t,fs}var ps,km;function WO(){if(km)return ps;km=1;var e=ii();function t(){this.__data__=e?e(null):{},this.size=0}return ps=t,ps}var ms,$m;function KO(){if($m)return ms;$m=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return ms=e,ms}var hs,Lm;function YO(){if(Lm)return hs;Lm=1;var e=ii(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function o(a){var i=this.__data__;if(e){var s=i[a];return s===t?void 0:s}return n.call(i,a)?i[a]:void 0}return hs=o,hs}var gs,Fm;function XO(){if(Fm)return gs;Fm=1;var e=ii(),t=Object.prototype,r=t.hasOwnProperty;function n(o){var a=this.__data__;return e?a[o]!==void 0:r.call(a,o)}return gs=n,gs}var vs,Bm;function ZO(){if(Bm)return vs;Bm=1;var e=ii(),t="__lodash_hash_undefined__";function r(n,o){var a=this.__data__;return this.size+=this.has(n)?0:1,a[n]=e&&o===void 0?t:o,this}return vs=r,vs}var bs,zm;function JO(){if(zm)return bs;zm=1;var e=WO(),t=KO(),r=YO(),n=XO(),o=ZO();function a(i){var s=-1,c=i==null?0:i.length;for(this.clear();++s<c;){var l=i[s];this.set(l[0],l[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=o,bs=a,bs}var ys,qm;function QO(){if(qm)return ys;qm=1;function e(){this.__data__=[],this.size=0}return ys=e,ys}var xs,Hm;function Gd(){if(Hm)return xs;Hm=1;function e(t,r){return t===r||t!==t&&r!==r}return xs=e,xs}var ws,Vm;function si(){if(Vm)return ws;Vm=1;var e=Gd();function t(r,n){for(var o=r.length;o--;)if(e(r[o][0],n))return o;return-1}return ws=t,ws}var Ss,Gm;function eI(){if(Gm)return Ss;Gm=1;var e=si(),t=Array.prototype,r=t.splice;function n(o){var a=this.__data__,i=e(a,o);if(i<0)return!1;var s=a.length-1;return i==s?a.pop():r.call(a,i,1),--this.size,!0}return Ss=n,Ss}var Cs,Um;function tI(){if(Um)return Cs;Um=1;var e=si();function t(r){var n=this.__data__,o=e(n,r);return o<0?void 0:n[o][1]}return Cs=t,Cs}var _s,Wm;function rI(){if(Wm)return _s;Wm=1;var e=si();function t(r){return e(this.__data__,r)>-1}return _s=t,_s}var Rs,Km;function nI(){if(Km)return Rs;Km=1;var e=si();function t(r,n){var o=this.__data__,a=e(o,r);return a<0?(++this.size,o.push([r,n])):o[a][1]=n,this}return Rs=t,Rs}var Es,Ym;function ci(){if(Ym)return Es;Ym=1;var e=QO(),t=eI(),r=tI(),n=rI(),o=nI();function a(i){var s=-1,c=i==null?0:i.length;for(this.clear();++s<c;){var l=i[s];this.set(l[0],l[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=o,Es=a,Es}var Ps,Xm;function Ud(){if(Xm)return Ps;Xm=1;var e=Gr(),t=Xt(),r=e(t,"Map");return Ps=r,Ps}var Ts,Zm;function oI(){if(Zm)return Ts;Zm=1;var e=JO(),t=ci(),r=Ud();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return Ts=n,Ts}var Ns,Jm;function aI(){if(Jm)return Ns;Jm=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return Ns=e,Ns}var As,Qm;function li(){if(Qm)return As;Qm=1;var e=aI();function t(r,n){var o=r.__data__;return e(n)?o[typeof n=="string"?"string":"hash"]:o.map}return As=t,As}var Ms,eh;function iI(){if(eh)return Ms;eh=1;var e=li();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return Ms=t,Ms}var Os,th;function sI(){if(th)return Os;th=1;var e=li();function t(r){return e(this,r).get(r)}return Os=t,Os}var Is,rh;function cI(){if(rh)return Is;rh=1;var e=li();function t(r){return e(this,r).has(r)}return Is=t,Is}var Ds,nh;function lI(){if(nh)return Ds;nh=1;var e=li();function t(r,n){var o=e(this,r),a=o.size;return o.set(r,n),this.size+=o.size==a?0:1,this}return Ds=t,Ds}var js,oh;function Wd(){if(oh)return js;oh=1;var e=oI(),t=iI(),r=sI(),n=cI(),o=lI();function a(i){var s=-1,c=i==null?0:i.length;for(this.clear();++s<c;){var l=i[s];this.set(l[0],l[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=o,js=a,js}var ks,ah;function uI(){if(ah)return ks;ah=1;var e=Wd(),t="Expected a function";function r(n,o){if(typeof n!="function"||o!=null&&typeof o!="function")throw new TypeError(t);var a=function(){var i=arguments,s=o?o.apply(this,i):i[0],c=a.cache;if(c.has(s))return c.get(s);var l=n.apply(this,i);return a.cache=c.set(s,l)||c,l};return a.cache=new(r.Cache||e),a}return r.Cache=e,ks=r,ks}var $s,ih;function dI(){if(ih)return $s;ih=1;var e=uI(),t=500;function r(n){var o=e(n,function(i){return a.size===t&&a.clear(),i}),a=o.cache;return o}return $s=r,$s}var Ls,sh;function fI(){if(sh)return Ls;sh=1;var e=dI(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(o){var a=[];return o.charCodeAt(0)===46&&a.push(""),o.replace(t,function(i,s,c,l){a.push(c?l.replace(r,"$1"):s||i)}),a});return Ls=n,Ls}var Fs,ch;function Dx(){if(ch)return Fs;ch=1;function e(t,r){for(var n=-1,o=t==null?0:t.length,a=Array(o);++n<o;)a[n]=r(t[n],n,t);return a}return Fs=e,Fs}var Bs,lh;function pI(){if(lh)return Bs;lh=1;var e=So(),t=Dx(),r=zt(),n=Co(),o=e?e.prototype:void 0,a=o?o.toString:void 0;function i(s){if(typeof s=="string")return s;if(r(s))return t(s,i)+"";if(n(s))return a?a.call(s):"";var c=s+"";return c=="0"&&1/s==-1/0?"-0":c}return Bs=i,Bs}var zs,uh;function jx(){if(uh)return zs;uh=1;var e=pI();function t(r){return r==null?"":e(r)}return zs=t,zs}var qs,dh;function kx(){if(dh)return qs;dh=1;var e=zt(),t=Hd(),r=fI(),n=jx();function o(a,i){return e(a)?a:t(a,i)?[a]:r(n(a))}return qs=o,qs}var Hs,fh;function ui(){if(fh)return Hs;fh=1;var e=Co();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return Hs=t,Hs}var Vs,ph;function Kd(){if(ph)return Vs;ph=1;var e=kx(),t=ui();function r(n,o){o=e(o,n);for(var a=0,i=o.length;n!=null&&a<i;)n=n[t(o[a++])];return a&&a==i?n:void 0}return Vs=r,Vs}var Gs,mh;function $x(){if(mh)return Gs;mh=1;var e=Kd();function t(r,n,o){var a=r==null?void 0:e(r,n);return a===void 0?o:a}return Gs=t,Gs}$x();var Us,hh;function mI(){if(hh)return Us;hh=1;function e(t){return t==null}return Us=e,Us}var hI=mI();const gI=Yt(hI);var Ws,gh;function vI(){if(gh)return Ws;gh=1;var e=Hr(),t=zt(),r=Vr(),n="[object String]";function o(a){return typeof a=="string"||!t(a)&&r(a)&&e(a)==n}return Ws=o,Ws}var bI=vI();const Lx=Yt(bI);var yI=Vd();const Sa=Yt(yI);var xI=wr();const Fx=Yt(xI);var Xo={exports:{}},Ae={};/**
|
|
171
|
+
* @license React
|
|
172
|
+
* react-is.production.min.js
|
|
101
173
|
*
|
|
102
|
-
*
|
|
103
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
104
|
-
*/const Vl=[["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"}]],Hl=dt("Ellipsis",Vl);/**
|
|
105
|
-
* @license lucide-react v0.482.0 - ISC
|
|
174
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
106
175
|
*
|
|
107
|
-
* This source code is licensed under the
|
|
108
|
-
*
|
|
109
|
-
*/
|
|
110
|
-
* @license
|
|
176
|
+
* This source code is licensed under the MIT license found in the
|
|
177
|
+
* LICENSE file in the root directory of this source tree.
|
|
178
|
+
*/var vh;function wI(){if(vh)return Ae;vh=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),g;g=Symbol.for("react.module.reference");function h(v){if(typeof v=="object"&&v!==null){var y=v.$$typeof;switch(y){case e:switch(v=v.type,v){case r:case o:case n:case l:case p:return v;default:switch(v=v&&v.$$typeof,v){case s:case i:case c:case m:case u:case a:return v;default:return y}}case t:return y}}}return Ae.ContextConsumer=i,Ae.ContextProvider=a,Ae.Element=e,Ae.ForwardRef=c,Ae.Fragment=r,Ae.Lazy=m,Ae.Memo=u,Ae.Portal=t,Ae.Profiler=o,Ae.StrictMode=n,Ae.Suspense=l,Ae.SuspenseList=p,Ae.isAsyncMode=function(){return!1},Ae.isConcurrentMode=function(){return!1},Ae.isContextConsumer=function(v){return h(v)===i},Ae.isContextProvider=function(v){return h(v)===a},Ae.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},Ae.isForwardRef=function(v){return h(v)===c},Ae.isFragment=function(v){return h(v)===r},Ae.isLazy=function(v){return h(v)===m},Ae.isMemo=function(v){return h(v)===u},Ae.isPortal=function(v){return h(v)===t},Ae.isProfiler=function(v){return h(v)===o},Ae.isStrictMode=function(v){return h(v)===n},Ae.isSuspense=function(v){return h(v)===l},Ae.isSuspenseList=function(v){return h(v)===p},Ae.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===r||v===o||v===n||v===l||v===p||v===b||typeof v=="object"&&v!==null&&(v.$$typeof===m||v.$$typeof===u||v.$$typeof===a||v.$$typeof===i||v.$$typeof===c||v.$$typeof===g||v.getModuleId!==void 0)},Ae.typeOf=h,Ae}var Me={};/**
|
|
179
|
+
* @license React
|
|
180
|
+
* react-is.development.js
|
|
111
181
|
*
|
|
112
|
-
*
|
|
113
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
114
|
-
*/const Yl=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],Kl=dt("PanelLeft",Yl);/**
|
|
115
|
-
* @license lucide-react v0.482.0 - ISC
|
|
182
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
116
183
|
*
|
|
117
|
-
* This source code is licensed under the
|
|
118
|
-
*
|
|
119
|
-
*/const Xl=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Lo=dt("X",Xl),ql=Mo,Jl=Fl,Fo=Do,Zl=Dr,Ir=l.forwardRef(({className:e,...t},r)=>m.jsx(zt,{ref:r,className:M("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Ir.displayName=zt.displayName;const $o=l.forwardRef(({className:e,children:t,...r},n)=>m.jsxs(Fo,{children:[m.jsx(Ir,{}),m.jsxs(Bt,{ref:n,className:M("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...r,children:[t,m.jsxs(Dr,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[m.jsx(Lo,{className:"h-4 w-4"}),m.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));$o.displayName=Bt.displayName;const zo=({className:e,...t})=>m.jsx("div",{className:M("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});zo.displayName="DialogHeader";const Bo=({className:e,...t})=>m.jsx("div",{className:M("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Bo.displayName="DialogFooter";const Wo=l.forwardRef(({className:e,...t},r)=>m.jsx(Wt,{ref:r,className:M("text-lg font-semibold leading-none tracking-tight",e),...t}));Wo.displayName=Wt.displayName;const Vo=l.forwardRef(({className:e,...t},r)=>m.jsx(Vt,{ref:r,className:M("text-sm text-muted-foreground",e),...t}));Vo.displayName=Vt.displayName;const cr=768;function Ql(){const[e,t]=l.useState(void 0);return l.useEffect(()=>{const r=window.matchMedia(`(max-width: ${cr-1}px)`),n=()=>{t(window.innerWidth<cr)};return r.addEventListener("change",n),t(window.innerWidth<cr),()=>r.removeEventListener("change",n)},[]),!!e}const Lr=l.forwardRef(({className:e,type:t,...r},n)=>m.jsx("input",{type:t,className:M("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...r}));Lr.displayName="Input";var ec="Separator",kn="horizontal",tc=["horizontal","vertical"],Ho=l.forwardRef((e,t)=>{const{decorative:r,orientation:n=kn,...o}=e,a=rc(n)?n:kn,s=r?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return m.jsx(te.div,{"data-orientation":a,...s,...o,ref:t})});Ho.displayName=ec;function rc(e){return tc.includes(e)}var Go=Ho;const Uo=l.forwardRef(({className:e,orientation:t="horizontal",decorative:r=!0,...n},o)=>m.jsx(Go,{ref:o,decorative:r,orientation:t,className:M("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...n}));Uo.displayName=Go.displayName;const nc=Mo,oc=Do,Yo=l.forwardRef(({className:e,...t},r)=>m.jsx(zt,{className:M("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:r}));Yo.displayName=zt.displayName;const ac=Cr("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),Ko=l.forwardRef(({side:e="right",className:t,children:r,...n},o)=>m.jsxs(oc,{children:[m.jsx(Yo,{}),m.jsxs(Bt,{ref:o,className:M(ac({side:e}),t),...n,children:[m.jsxs(Dr,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[m.jsx(Lo,{className:"h-4 w-4"}),m.jsx("span",{className:"sr-only",children:"Close"})]}),r]})]}));Ko.displayName=Bt.displayName;const Xo=({className:e,...t})=>m.jsx("div",{className:M("flex flex-col space-y-2 text-center sm:text-left",e),...t});Xo.displayName="SheetHeader";const qo=l.forwardRef(({className:e,...t},r)=>m.jsx(Wt,{ref:r,className:M("text-lg font-semibold text-foreground",e),...t}));qo.displayName=Wt.displayName;const Jo=l.forwardRef(({className:e,...t},r)=>m.jsx(Vt,{ref:r,className:M("text-sm text-muted-foreground",e),...t}));Jo.displayName=Vt.displayName;function jn({className:e,...t}){return m.jsx("div",{className:M("animate-pulse rounded-md bg-primary/10",e),...t})}const ic=["top","right","bottom","left"],Ne=Math.min,oe=Math.max,kt=Math.round,Pt=Math.floor,ge=e=>({x:e,y:e}),sc={left:"right",right:"left",bottom:"top",top:"bottom"},lc={start:"end",end:"start"};function yr(e,t,r){return oe(e,Ne(t,r))}function we(e,t){return typeof e=="function"?e(t):e}function Ee(e){return e.split("-")[0]}function ot(e){return e.split("-")[1]}function Fr(e){return e==="x"?"y":"x"}function $r(e){return e==="y"?"height":"width"}function Te(e){return["top","bottom"].includes(Ee(e))?"y":"x"}function zr(e){return Fr(Te(e))}function cc(e,t,r){r===void 0&&(r=!1);const n=ot(e),o=zr(e),a=$r(o);let i=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=jt(i)),[i,jt(i)]}function uc(e){const t=jt(e);return[xr(e),t,xr(t)]}function xr(e){return e.replace(/start|end/g,t=>lc[t])}function dc(e,t,r){const n=["left","right"],o=["right","left"],a=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return r?t?o:n:t?n:o;case"left":case"right":return t?a:i;default:return[]}}function fc(e,t,r,n){const o=ot(e);let a=dc(Ee(e),r==="start",n);return o&&(a=a.map(i=>i+"-"+o),t&&(a=a.concat(a.map(xr)))),a}function jt(e){return e.replace(/left|right|bottom|top/g,t=>sc[t])}function pc(e){return{top:0,right:0,bottom:0,left:0,...e}}function Zo(e){return typeof e!="number"?pc(e):{top:e,right:e,bottom:e,left:e}}function Mt(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 Mn(e,t,r){let{reference:n,floating:o}=e;const a=Te(t),i=zr(t),s=$r(i),c=Ee(t),d=a==="y",f=n.x+n.width/2-o.width/2,p=n.y+n.height/2-o.height/2,v=n[s]/2-o[s]/2;let h;switch(c){case"top":h={x:f,y:n.y-o.height};break;case"bottom":h={x:f,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:p};break;case"left":h={x:n.x-o.width,y:p};break;default:h={x:n.x,y:n.y}}switch(ot(t)){case"start":h[i]-=v*(r&&d?-1:1);break;case"end":h[i]+=v*(r&&d?-1:1);break}return h}const mc=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:i}=r,s=a.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let d=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:p}=Mn(d,n,c),v=n,h={},b=0;for(let g=0;g<s.length;g++){const{name:y,fn:x}=s[g],{x:w,y:C,data:R,reset:P}=await x({x:f,y:p,initialPlacement:n,placement:v,strategy:o,middlewareData:h,rects:d,platform:i,elements:{reference:e,floating:t}});f=w??f,p=C??p,h={...h,[y]:{...h[y],...R}},P&&b<=50&&(b++,typeof P=="object"&&(P.placement&&(v=P.placement),P.rects&&(d=P.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):P.rects),{x:f,y:p}=Mn(d,v,c)),g=-1)}return{x:f,y:p,placement:v,strategy:o,middlewareData:h}};async function ct(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:a,rects:i,elements:s,strategy:c}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:v=!1,padding:h=0}=we(t,e),b=Zo(h),y=s[v?p==="floating"?"reference":"floating":p],x=Mt(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(y)))==null||r?y:y.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:d,rootBoundary:f,strategy:c})),w=p==="floating"?{x:n,y:o,width:i.floating.width,height:i.floating.height}:i.reference,C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),R=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},P=Mt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:w,offsetParent:C,strategy:c}):w);return{top:(x.top-P.top+b.top)/R.y,bottom:(P.bottom-x.bottom+b.bottom)/R.y,left:(x.left-P.left+b.left)/R.x,right:(P.right-x.right+b.right)/R.x}}const gc=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:a,platform:i,elements:s,middlewareData:c}=t,{element:d,padding:f=0}=we(e,t)||{};if(d==null)return{};const p=Zo(f),v={x:r,y:n},h=zr(o),b=$r(h),g=await i.getDimensions(d),y=h==="y",x=y?"top":"left",w=y?"bottom":"right",C=y?"clientHeight":"clientWidth",R=a.reference[b]+a.reference[h]-v[h]-a.floating[b],P=v[h]-a.reference[h],S=await(i.getOffsetParent==null?void 0:i.getOffsetParent(d));let N=S?S[C]:0;(!N||!await(i.isElement==null?void 0:i.isElement(S)))&&(N=s.floating[C]||a.floating[b]);const B=R/2-P/2,G=N/2-g[b]/2-1,V=Ne(p[x],G),q=Ne(p[w],G),K=V,F=N-g[b]-q,D=N/2-g[b]/2+B,U=yr(K,D,F),k=!c.arrow&&ot(o)!=null&&D!==U&&a.reference[b]/2-(D<K?V:q)-g[b]/2<0,Y=k?D<K?D-K:D-F:0;return{[h]:v[h]+Y,data:{[h]:U,centerOffset:D-U-Y,...k&&{alignmentOffset:Y}},reset:k}}}),hc=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:c,elements:d}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:v,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:g=!0,...y}=we(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const x=Ee(o),w=Te(s),C=Ee(s)===s,R=await(c.isRTL==null?void 0:c.isRTL(d.floating)),P=v||(C||!g?[jt(s)]:uc(s)),S=b!=="none";!v&&S&&P.push(...fc(s,g,b,R));const N=[s,...P],B=await ct(t,y),G=[];let V=((n=a.flip)==null?void 0:n.overflows)||[];if(f&&G.push(B[x]),p){const D=cc(o,i,R);G.push(B[D[0]],B[D[1]])}if(V=[...V,{placement:o,overflows:G}],!G.every(D=>D<=0)){var q,K;const D=(((q=a.flip)==null?void 0:q.index)||0)+1,U=N[D];if(U)return{data:{index:D,overflows:V},reset:{placement:U}};let k=(K=V.filter(Y=>Y.overflows[0]<=0).sort((Y,_)=>Y.overflows[1]-_.overflows[1])[0])==null?void 0:K.placement;if(!k)switch(h){case"bestFit":{var F;const Y=(F=V.filter(_=>{if(S){const z=Te(_.placement);return z===w||z==="y"}return!0}).map(_=>[_.placement,_.overflows.filter(z=>z>0).reduce((z,Z)=>z+Z,0)]).sort((_,z)=>_[1]-z[1])[0])==null?void 0:F[0];Y&&(k=Y);break}case"initialPlacement":k=s;break}if(o!==k)return{reset:{placement:k}}}return{}}}};function Dn(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function In(e){return ic.some(t=>e[t]>=0)}const vc=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=we(e,t);switch(n){case"referenceHidden":{const a=await ct(t,{...o,elementContext:"reference"}),i=Dn(a,r.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:In(i)}}}case"escaped":{const a=await ct(t,{...o,altBoundary:!0}),i=Dn(a,r.floating);return{data:{escapedOffsets:i,escaped:In(i)}}}default:return{}}}}};async function bc(e,t){const{placement:r,platform:n,elements:o}=e,a=await(n.isRTL==null?void 0:n.isRTL(o.floating)),i=Ee(r),s=ot(r),c=Te(r)==="y",d=["left","top"].includes(i)?-1:1,f=a&&c?-1:1,p=we(t,e);let{mainAxis:v,crossAxis:h,alignmentAxis:b}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return s&&typeof b=="number"&&(h=s==="end"?b*-1:b),c?{x:h*f,y:v*d}:{x:v*d,y:h*f}}const yc=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:a,placement:i,middlewareData:s}=t,c=await bc(t,e);return i===((r=s.offset)==null?void 0:r.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:o+c.x,y:a+c.y,data:{...c,placement:i}}}}},xc=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:i=!1,limiter:s={fn:y=>{let{x,y:w}=y;return{x,y:w}}},...c}=we(e,t),d={x:r,y:n},f=await ct(t,c),p=Te(Ee(o)),v=Fr(p);let h=d[v],b=d[p];if(a){const y=v==="y"?"top":"left",x=v==="y"?"bottom":"right",w=h+f[y],C=h-f[x];h=yr(w,h,C)}if(i){const y=p==="y"?"top":"left",x=p==="y"?"bottom":"right",w=b+f[y],C=b-f[x];b=yr(w,b,C)}const g=s.fn({...t,[v]:h,[p]:b});return{...g,data:{x:g.x-r,y:g.y-n,enabled:{[v]:a,[p]:i}}}}}},wc=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:a,middlewareData:i}=t,{offset:s=0,mainAxis:c=!0,crossAxis:d=!0}=we(e,t),f={x:r,y:n},p=Te(o),v=Fr(p);let h=f[v],b=f[p];const g=we(s,t),y=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(c){const C=v==="y"?"height":"width",R=a.reference[v]-a.floating[C]+y.mainAxis,P=a.reference[v]+a.reference[C]-y.mainAxis;h<R?h=R:h>P&&(h=P)}if(d){var x,w;const C=v==="y"?"width":"height",R=["top","left"].includes(Ee(o)),P=a.reference[p]-a.floating[C]+(R&&((x=i.offset)==null?void 0:x[p])||0)+(R?0:y.crossAxis),S=a.reference[p]+a.reference[C]+(R?0:((w=i.offset)==null?void 0:w[p])||0)-(R?y.crossAxis:0);b<P?b=P:b>S&&(b=S)}return{[v]:h,[p]:b}}}},Ec=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:a,platform:i,elements:s}=t,{apply:c=()=>{},...d}=we(e,t),f=await ct(t,d),p=Ee(o),v=ot(o),h=Te(o)==="y",{width:b,height:g}=a.floating;let y,x;p==="top"||p==="bottom"?(y=p,x=v===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(x=p,y=v==="end"?"top":"bottom");const w=g-f.top-f.bottom,C=b-f.left-f.right,R=Ne(g-f[y],w),P=Ne(b-f[x],C),S=!t.middlewareData.shift;let N=R,B=P;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(B=C),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(N=w),S&&!v){const V=oe(f.left,0),q=oe(f.right,0),K=oe(f.top,0),F=oe(f.bottom,0);h?B=b-2*(V!==0||q!==0?V+q:oe(f.left,f.right)):N=g-2*(K!==0||F!==0?K+F:oe(f.top,f.bottom))}await c({...t,availableWidth:B,availableHeight:N});const G=await i.getDimensions(s.floating);return b!==G.width||g!==G.height?{reset:{rects:!0}}:{}}}};function Ht(){return typeof window<"u"}function at(e){return Qo(e)?(e.nodeName||"").toLowerCase():"#document"}function ae(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function be(e){var t;return(t=(Qo(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Qo(e){return Ht()?e instanceof Node||e instanceof ae(e).Node:!1}function ce(e){return Ht()?e instanceof Element||e instanceof ae(e).Element:!1}function he(e){return Ht()?e instanceof HTMLElement||e instanceof ae(e).HTMLElement:!1}function Ln(e){return!Ht()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ae(e).ShadowRoot}function ft(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=ue(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function Sc(e){return["table","td","th"].includes(at(e))}function Gt(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Br(e){const t=Wr(),r=ce(e)?ue(e):e;return["transform","translate","scale","rotate","perspective"].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)||["transform","translate","scale","rotate","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function Cc(e){let t=Oe(e);for(;he(t)&&!Qe(t);){if(Br(t))return t;if(Gt(t))return null;t=Oe(t)}return null}function Wr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Qe(e){return["html","body","#document"].includes(at(e))}function ue(e){return ae(e).getComputedStyle(e)}function Ut(e){return ce(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Oe(e){if(at(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ln(e)&&e.host||be(e);return Ln(t)?t.host:t}function ea(e){const t=Oe(e);return Qe(t)?e.ownerDocument?e.ownerDocument.body:e.body:he(t)&&ft(t)?t:ea(t)}function ut(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=ea(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),i=ae(o);if(a){const s=wr(i);return t.concat(i,i.visualViewport||[],ft(o)?o:[],s&&r?ut(s):[])}return t.concat(o,ut(o,[],r))}function wr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ta(e){const t=ue(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=he(e),a=o?e.offsetWidth:r,i=o?e.offsetHeight:n,s=kt(r)!==a||kt(n)!==i;return s&&(r=a,n=i),{width:r,height:n,$:s}}function Vr(e){return ce(e)?e:e.contextElement}function Ze(e){const t=Vr(e);if(!he(t))return ge(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:a}=ta(t);let i=(a?kt(r.width):r.width)/n,s=(a?kt(r.height):r.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const Rc=ge(0);function ra(e){const t=ae(e);return!Wr()||!t.visualViewport?Rc:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Pc(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==ae(e)?!1:t}function We(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),a=Vr(e);let i=ge(1);t&&(n?ce(n)&&(i=Ze(n)):i=Ze(e));const s=Pc(a,r,n)?ra(a):ge(0);let c=(o.left+s.x)/i.x,d=(o.top+s.y)/i.y,f=o.width/i.x,p=o.height/i.y;if(a){const v=ae(a),h=n&&ce(n)?ae(n):n;let b=v,g=wr(b);for(;g&&n&&h!==b;){const y=Ze(g),x=g.getBoundingClientRect(),w=ue(g),C=x.left+(g.clientLeft+parseFloat(w.paddingLeft))*y.x,R=x.top+(g.clientTop+parseFloat(w.paddingTop))*y.y;c*=y.x,d*=y.y,f*=y.x,p*=y.y,c+=C,d+=R,b=ae(g),g=wr(b)}}return Mt({width:f,height:p,x:c,y:d})}function Hr(e,t){const r=Ut(e).scrollLeft;return t?t.left+r:We(be(e)).left+r}function na(e,t,r){r===void 0&&(r=!1);const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-(r?0:Hr(e,n)),a=n.top+t.scrollTop;return{x:o,y:a}}function Ac(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const a=o==="fixed",i=be(n),s=t?Gt(t.floating):!1;if(n===i||s&&a)return r;let c={scrollLeft:0,scrollTop:0},d=ge(1);const f=ge(0),p=he(n);if((p||!p&&!a)&&((at(n)!=="body"||ft(i))&&(c=Ut(n)),he(n))){const h=We(n);d=Ze(n),f.x=h.x+n.clientLeft,f.y=h.y+n.clientTop}const v=i&&!p&&!a?na(i,c,!0):ge(0);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-c.scrollLeft*d.x+f.x+v.x,y:r.y*d.y-c.scrollTop*d.y+f.y+v.y}}function Nc(e){return Array.from(e.getClientRects())}function Tc(e){const t=be(e),r=Ut(e),n=e.ownerDocument.body,o=oe(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=oe(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let i=-r.scrollLeft+Hr(e);const s=-r.scrollTop;return ue(n).direction==="rtl"&&(i+=oe(t.clientWidth,n.clientWidth)-o),{width:o,height:a,x:i,y:s}}function Oc(e,t){const r=ae(e),n=be(e),o=r.visualViewport;let a=n.clientWidth,i=n.clientHeight,s=0,c=0;if(o){a=o.width,i=o.height;const d=Wr();(!d||d&&t==="fixed")&&(s=o.offsetLeft,c=o.offsetTop)}return{width:a,height:i,x:s,y:c}}function _c(e,t){const r=We(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,a=he(e)?Ze(e):ge(1),i=e.clientWidth*a.x,s=e.clientHeight*a.y,c=o*a.x,d=n*a.y;return{width:i,height:s,x:c,y:d}}function Fn(e,t,r){let n;if(t==="viewport")n=Oc(e,r);else if(t==="document")n=Tc(be(e));else if(ce(t))n=_c(t,r);else{const o=ra(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Mt(n)}function oa(e,t){const r=Oe(e);return r===t||!ce(r)||Qe(r)?!1:ue(r).position==="fixed"||oa(r,t)}function kc(e,t){const r=t.get(e);if(r)return r;let n=ut(e,[],!1).filter(s=>ce(s)&&at(s)!=="body"),o=null;const a=ue(e).position==="fixed";let i=a?Oe(e):e;for(;ce(i)&&!Qe(i);){const s=ue(i),c=Br(i);!c&&s.position==="fixed"&&(o=null),(a?!c&&!o:!c&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||ft(i)&&!c&&oa(e,i))?n=n.filter(f=>f!==i):o=s,i=Oe(i)}return t.set(e,n),n}function jc(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const i=[...r==="clippingAncestors"?Gt(t)?[]:kc(t,this._c):[].concat(r),n],s=i[0],c=i.reduce((d,f)=>{const p=Fn(t,f,o);return d.top=oe(p.top,d.top),d.right=Ne(p.right,d.right),d.bottom=Ne(p.bottom,d.bottom),d.left=oe(p.left,d.left),d},Fn(t,s,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Mc(e){const{width:t,height:r}=ta(e);return{width:t,height:r}}function Dc(e,t,r){const n=he(t),o=be(t),a=r==="fixed",i=We(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const c=ge(0);if(n||!n&&!a)if((at(t)!=="body"||ft(o))&&(s=Ut(t)),n){const v=We(t,!0,a,t);c.x=v.x+t.clientLeft,c.y=v.y+t.clientTop}else o&&(c.x=Hr(o));const d=o&&!n&&!a?na(o,s):ge(0),f=i.left+s.scrollLeft-c.x-d.x,p=i.top+s.scrollTop-c.y-d.y;return{x:f,y:p,width:i.width,height:i.height}}function ur(e){return ue(e).position==="static"}function $n(e,t){if(!he(e)||ue(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return be(e)===r&&(r=r.ownerDocument.body),r}function aa(e,t){const r=ae(e);if(Gt(e))return r;if(!he(e)){let o=Oe(e);for(;o&&!Qe(o);){if(ce(o)&&!ur(o))return o;o=Oe(o)}return r}let n=$n(e,t);for(;n&&Sc(n)&&ur(n);)n=$n(n,t);return n&&Qe(n)&&ur(n)&&!Br(n)?r:n||Cc(e)||r}const Ic=async function(e){const t=this.getOffsetParent||aa,r=this.getDimensions,n=await r(e.floating);return{reference:Dc(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Lc(e){return ue(e).direction==="rtl"}const Fc={convertOffsetParentRelativeRectToViewportRelativeRect:Ac,getDocumentElement:be,getClippingRect:jc,getOffsetParent:aa,getElementRects:Ic,getClientRects:Nc,getDimensions:Mc,getScale:Ze,isElement:ce,isRTL:Lc};function ia(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function $c(e,t){let r=null,n;const o=be(e);function a(){var s;clearTimeout(n),(s=r)==null||s.disconnect(),r=null}function i(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();const d=e.getBoundingClientRect(),{left:f,top:p,width:v,height:h}=d;if(s||t(),!v||!h)return;const b=Pt(p),g=Pt(o.clientWidth-(f+v)),y=Pt(o.clientHeight-(p+h)),x=Pt(f),C={rootMargin:-b+"px "+-g+"px "+-y+"px "+-x+"px",threshold:oe(0,Ne(1,c))||1};let R=!0;function P(S){const N=S[0].intersectionRatio;if(N!==c){if(!R)return i();N?i(!1,N):n=setTimeout(()=>{i(!1,1e-7)},1e3)}N===1&&!ia(d,e.getBoundingClientRect())&&i(),R=!1}try{r=new IntersectionObserver(P,{...C,root:o.ownerDocument})}catch{r=new IntersectionObserver(P,C)}r.observe(e)}return i(!0),a}function zc(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,d=Vr(e),f=o||a?[...d?ut(d):[],...ut(t)]:[];f.forEach(x=>{o&&x.addEventListener("scroll",r,{passive:!0}),a&&x.addEventListener("resize",r)});const p=d&&s?$c(d,r):null;let v=-1,h=null;i&&(h=new ResizeObserver(x=>{let[w]=x;w&&w.target===d&&h&&(h.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var C;(C=h)==null||C.observe(t)})),r()}),d&&!c&&h.observe(d),h.observe(t));let b,g=c?We(e):null;c&&y();function y(){const x=We(e);g&&!ia(g,x)&&r(),g=x,b=requestAnimationFrame(y)}return r(),()=>{var x;f.forEach(w=>{o&&w.removeEventListener("scroll",r),a&&w.removeEventListener("resize",r)}),p==null||p(),(x=h)==null||x.disconnect(),h=null,c&&cancelAnimationFrame(b)}}const Bc=yc,Wc=xc,Vc=hc,Hc=Ec,Gc=vc,zn=gc,Uc=wc,Yc=(e,t,r)=>{const n=new Map,o={platform:Fc,...r},a={...o.platform,_c:n};return mc(e,t,{...o,platform:a})};var Ot=typeof document<"u"?se.useLayoutEffect:se.useEffect;function Dt(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(!Dt(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)&&!Dt(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function sa(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Bn(e,t){const r=sa(e);return Math.round(t*r)/r}function dr(e){const t=l.useRef(e);return Ot(()=>{t.current=e}),t}function Kc(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:a,floating:i}={},transform:s=!0,whileElementsMounted:c,open:d}=e,[f,p]=l.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[v,h]=l.useState(n);Dt(v,n)||h(n);const[b,g]=l.useState(null),[y,x]=l.useState(null),w=l.useCallback(_=>{_!==S.current&&(S.current=_,g(_))},[]),C=l.useCallback(_=>{_!==N.current&&(N.current=_,x(_))},[]),R=a||b,P=i||y,S=l.useRef(null),N=l.useRef(null),B=l.useRef(f),G=c!=null,V=dr(c),q=dr(o),K=dr(d),F=l.useCallback(()=>{if(!S.current||!N.current)return;const _={placement:t,strategy:r,middleware:v};q.current&&(_.platform=q.current),Yc(S.current,N.current,_).then(z=>{const Z={...z,isPositioned:K.current!==!1};D.current&&!Dt(B.current,Z)&&(B.current=Z,Hn.flushSync(()=>{p(Z)}))})},[v,t,r,q,K]);Ot(()=>{d===!1&&B.current.isPositioned&&(B.current.isPositioned=!1,p(_=>({..._,isPositioned:!1})))},[d]);const D=l.useRef(!1);Ot(()=>(D.current=!0,()=>{D.current=!1}),[]),Ot(()=>{if(R&&(S.current=R),P&&(N.current=P),R&&P){if(V.current)return V.current(R,P,F);F()}},[R,P,F,V,G]);const U=l.useMemo(()=>({reference:S,floating:N,setReference:w,setFloating:C}),[w,C]),k=l.useMemo(()=>({reference:R,floating:P}),[R,P]),Y=l.useMemo(()=>{const _={position:r,left:0,top:0};if(!k.floating)return _;const z=Bn(k.floating,f.x),Z=Bn(k.floating,f.y);return s?{..._,transform:"translate("+z+"px, "+Z+"px)",...sa(k.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:z,top:Z}},[r,s,k.floating,f.x,f.y]);return l.useMemo(()=>({...f,update:F,refs:U,elements:k,floatingStyles:Y}),[f,F,U,k,Y])}const Xc=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?zn({element:n.current,padding:o}).fn(r):{}:n?zn({element:n,padding:o}).fn(r):{}}}},qc=(e,t)=>({...Bc(e),options:[e,t]}),Jc=(e,t)=>({...Wc(e),options:[e,t]}),Zc=(e,t)=>({...Uc(e),options:[e,t]}),Qc=(e,t)=>({...Vc(e),options:[e,t]}),eu=(e,t)=>({...Hc(e),options:[e,t]}),tu=(e,t)=>({...Gc(e),options:[e,t]}),ru=(e,t)=>({...Xc(e),options:[e,t]});var nu="Arrow",la=l.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...a}=e;return m.jsx(te.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"})})});la.displayName=nu;var ou=la;function au(e){const[t,r]=l.useState(void 0);return ze(()=>{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 i,s;if("borderBoxSize"in a){const c=a.borderBoxSize,d=Array.isArray(c)?c[0]:c;i=d.inlineSize,s=d.blockSize}else i=e.offsetWidth,s=e.offsetHeight;r({width:i,height:s})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var Gr="Popper",[ca,ua]=Nr(Gr),[iu,da]=ca(Gr),fa=e=>{const{__scopePopper:t,children:r}=e,[n,o]=l.useState(null);return m.jsx(iu,{scope:t,anchor:n,onAnchorChange:o,children:r})};fa.displayName=Gr;var pa="PopperAnchor",ma=l.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,a=da(pa,r),i=l.useRef(null),s=de(t,i);return l.useEffect(()=>{a.onAnchorChange((n==null?void 0:n.current)||i.current)}),n?null:m.jsx(te.div,{...o,ref:s})});ma.displayName=pa;var Ur="PopperContent",[su,lu]=ca(Ur),ga=l.forwardRef((e,t)=>{var le,je,Ve,Me,gt,it;const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:a="center",alignOffset:i=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:v=!1,updatePositionStrategy:h="optimized",onPlaced:b,...g}=e,y=da(Ur,r),[x,w]=l.useState(null),C=de(t,De=>w(De)),[R,P]=l.useState(null),S=au(R),N=(S==null?void 0:S.width)??0,B=(S==null?void 0:S.height)??0,G=n+(a!=="center"?"-"+a:""),V=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},q=Array.isArray(d)?d:[d],K=q.length>0,F={padding:V,boundary:q.filter(uu),altBoundary:K},{refs:D,floatingStyles:U,placement:k,isPositioned:Y,middlewareData:_}=Kc({strategy:"fixed",placement:G,whileElementsMounted:(...De)=>zc(...De,{animationFrame:h==="always"}),elements:{reference:y.anchor},middleware:[qc({mainAxis:o+B,alignmentAxis:i}),c&&Jc({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?Zc():void 0,...F}),c&&Qc({...F}),eu({...F,apply:({elements:De,rects:ht,availableWidth:He,availableHeight:Ie})=>{const{width:vt,height:bt}=ht.reference,xe=De.floating.style;xe.setProperty("--radix-popper-available-width",`${He}px`),xe.setProperty("--radix-popper-available-height",`${Ie}px`),xe.setProperty("--radix-popper-anchor-width",`${vt}px`),xe.setProperty("--radix-popper-anchor-height",`${bt}px`)}}),R&&ru({element:R,padding:s}),du({arrowWidth:N,arrowHeight:B}),v&&tu({strategy:"referenceHidden",...F})]}),[z,Z]=ba(k),pe=Ae(b);ze(()=>{Y&&(pe==null||pe())},[Y,pe]);const _e=(le=_.arrow)==null?void 0:le.x,ke=(je=_.arrow)==null?void 0:je.y,Se=((Ve=_.arrow)==null?void 0:Ve.centerOffset)!==0,[Ce,ye]=l.useState();return ze(()=>{x&&ye(window.getComputedStyle(x).zIndex)},[x]),m.jsx("div",{ref:D.setFloating,"data-radix-popper-content-wrapper":"",style:{...U,transform:Y?U.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ce,"--radix-popper-transform-origin":[(Me=_.transformOrigin)==null?void 0:Me.x,(gt=_.transformOrigin)==null?void 0:gt.y].join(" "),...((it=_.hide)==null?void 0:it.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:m.jsx(su,{scope:r,placedSide:z,onArrowChange:P,arrowX:_e,arrowY:ke,shouldHideArrow:Se,children:m.jsx(te.div,{"data-side":z,"data-align":Z,...g,ref:C,style:{...g.style,animation:Y?void 0:"none"}})})})});ga.displayName=Ur;var ha="PopperArrow",cu={top:"bottom",right:"left",bottom:"top",left:"right"},va=l.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,a=lu(ha,n),i=cu[a.placedSide];return m.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[i]: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(ou,{...o,ref:r,style:{...o.style,display:"block"}})})});va.displayName=ha;function uu(e){return e!==null}var du=e=>({name:"transformOrigin",options:e,fn(t){var y,x,w;const{placement:r,rects:n,middlewareData:o}=t,i=((y=o.arrow)==null?void 0:y.centerOffset)!==0,s=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[d,f]=ba(r),p={start:"0%",center:"50%",end:"100%"}[f],v=(((x=o.arrow)==null?void 0:x.x)??0)+s/2,h=(((w=o.arrow)==null?void 0:w.y)??0)+c/2;let b="",g="";return d==="bottom"?(b=i?p:`${v}px`,g=`${-c}px`):d==="top"?(b=i?p:`${v}px`,g=`${n.floating.height+c}px`):d==="right"?(b=`${-c}px`,g=i?p:`${h}px`):d==="left"&&(b=`${n.floating.width+c}px`,g=i?p:`${h}px`),{data:{x:b,y:g}}}});function ba(e){const[t,r="center"]=e.split("-");return[t,r]}var fu=fa,pu=ma,mu=ga,gu=va,hu="VisuallyHidden",ya=l.forwardRef((e,t)=>m.jsx(te.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));ya.displayName=hu;var vu=ya,[Yt,qu]=Nr("Tooltip",[ua]),Kt=ua(),xa="TooltipProvider",bu=700,Er="tooltip.open",[yu,Yr]=Yt(xa),wa=e=>{const{__scopeTooltip:t,delayDuration:r=bu,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:a}=e,[i,s]=l.useState(!0),c=l.useRef(!1),d=l.useRef(0);return l.useEffect(()=>{const f=d.current;return()=>window.clearTimeout(f)},[]),m.jsx(yu,{scope:t,isOpenDelayed:i,delayDuration:r,onOpen:l.useCallback(()=>{window.clearTimeout(d.current),s(!1)},[]),onClose:l.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>s(!0),n)},[n]),isPointerInTransitRef:c,onPointerInTransitChange:l.useCallback(f=>{c.current=f},[]),disableHoverableContent:o,children:a})};wa.displayName=xa;var Xt="Tooltip",[xu,pt]=Yt(Xt),Ea=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:o=!1,onOpenChange:a,disableHoverableContent:i,delayDuration:s}=e,c=Yr(Xt,e.__scopeTooltip),d=Kt(t),[f,p]=l.useState(null),v=At(),h=l.useRef(0),b=i??c.disableHoverableContent,g=s??c.delayDuration,y=l.useRef(!1),[x=!1,w]=no({prop:n,defaultProp:o,onChange:N=>{N?(c.onOpen(),document.dispatchEvent(new CustomEvent(Er))):c.onClose(),a==null||a(N)}}),C=l.useMemo(()=>x?y.current?"delayed-open":"instant-open":"closed",[x]),R=l.useCallback(()=>{window.clearTimeout(h.current),h.current=0,y.current=!1,w(!0)},[w]),P=l.useCallback(()=>{window.clearTimeout(h.current),h.current=0,w(!1)},[w]),S=l.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{y.current=!0,w(!0),h.current=0},g)},[g,w]);return l.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),m.jsx(fu,{...d,children:m.jsx(xu,{scope:t,contentId:v,open:x,stateAttribute:C,trigger:f,onTriggerChange:p,onTriggerEnter:l.useCallback(()=>{c.isOpenDelayed?S():R()},[c.isOpenDelayed,S,R]),onTriggerLeave:l.useCallback(()=>{b?P():(window.clearTimeout(h.current),h.current=0)},[P,b]),onOpen:R,onClose:P,disableHoverableContent:b,children:r})})};Ea.displayName=Xt;var Sr="TooltipTrigger",Sa=l.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=pt(Sr,r),a=Yr(Sr,r),i=Kt(r),s=l.useRef(null),c=de(t,s,o.onTriggerChange),d=l.useRef(!1),f=l.useRef(!1),p=l.useCallback(()=>d.current=!1,[]);return l.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),m.jsx(pu,{asChild:!0,...i,children:m.jsx(te.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...n,ref:c,onPointerMove:ne(e.onPointerMove,v=>{v.pointerType!=="touch"&&!f.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:ne(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:ne(e.onPointerDown,()=>{d.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:ne(e.onFocus,()=>{d.current||o.onOpen()}),onBlur:ne(e.onBlur,o.onClose),onClick:ne(e.onClick,o.onClose)})})});Sa.displayName=Sr;var Kr="TooltipPortal",[wu,Eu]=Yt(Kr,{forceMount:void 0}),Ca=e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:o}=e,a=pt(Kr,t);return m.jsx(wu,{scope:t,forceMount:r,children:m.jsx(nt,{present:r||a.open,children:m.jsx(Or,{asChild:!0,container:o,children:n})})})};Ca.displayName=Kr;var et="TooltipContent",Ra=l.forwardRef((e,t)=>{const r=Eu(et,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...a}=e,i=pt(et,e.__scopeTooltip);return m.jsx(nt,{present:n||i.open,children:i.disableHoverableContent?m.jsx(Pa,{side:o,...a,ref:t}):m.jsx(Su,{side:o,...a,ref:t})})}),Su=l.forwardRef((e,t)=>{const r=pt(et,e.__scopeTooltip),n=Yr(et,e.__scopeTooltip),o=l.useRef(null),a=de(t,o),[i,s]=l.useState(null),{trigger:c,onClose:d}=r,f=o.current,{onPointerInTransitChange:p}=n,v=l.useCallback(()=>{s(null),p(!1)},[p]),h=l.useCallback((b,g)=>{const y=b.currentTarget,x={x:b.clientX,y:b.clientY},w=Au(x,y.getBoundingClientRect()),C=Nu(x,w),R=Tu(g.getBoundingClientRect()),P=_u([...C,...R]);s(P),p(!0)},[p]);return l.useEffect(()=>()=>v(),[v]),l.useEffect(()=>{if(c&&f){const b=y=>h(y,f),g=y=>h(y,c);return c.addEventListener("pointerleave",b),f.addEventListener("pointerleave",g),()=>{c.removeEventListener("pointerleave",b),f.removeEventListener("pointerleave",g)}}},[c,f,h,v]),l.useEffect(()=>{if(i){const b=g=>{const y=g.target,x={x:g.clientX,y:g.clientY},w=(c==null?void 0:c.contains(y))||(f==null?void 0:f.contains(y)),C=!Ou(x,i);w?v():C&&(v(),d())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[c,f,i,d,v]),m.jsx(Pa,{...e,ref:a})}),[Cu,Ru]=Yt(Xt,{isInside:!1}),Pa=l.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:i,...s}=e,c=pt(et,r),d=Kt(r),{onClose:f}=c;return l.useEffect(()=>(document.addEventListener(Er,f),()=>document.removeEventListener(Er,f)),[f]),l.useEffect(()=>{if(c.trigger){const p=v=>{const h=v.target;h!=null&&h.contains(c.trigger)&&f()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[c.trigger,f]),m.jsx(Tr,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:p=>p.preventDefault(),onDismiss:f,children:m.jsxs(mu,{"data-state":c.stateAttribute,...d,...s,ref:t,style:{...s.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(Un,{children:n}),m.jsx(Cu,{scope:r,isInside:!0,children:m.jsx(vu,{id:c.contentId,role:"tooltip",children:o||n})})]})})});Ra.displayName=et;var Aa="TooltipArrow",Pu=l.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=Kt(r);return Ru(Aa,r).isInside?null:m.jsx(gu,{...o,...n,ref:t})});Pu.displayName=Aa;function Au(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 Nu(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 Tu(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 Ou(e,t){const{x:r,y:n}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const s=t[a].x,c=t[a].y,d=t[i].x,f=t[i].y;c>n!=f>n&&r<(d-s)*(n-c)/(f-c)+s&&(o=!o)}return o}function _u(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),ku(t)}function ku(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],i=t[t.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.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],i=r[r.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.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 ju=wa,Mu=Ea,Du=Sa,Iu=Ca,Na=Ra;const Lu=ju,Fu=Mu,$u=Du,Ta=l.forwardRef(({className:e,sideOffset:t=4,...r},n)=>m.jsx(Iu,{children:m.jsx(Na,{ref:n,sideOffset:t,className:M("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground 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 origin-[--radix-tooltip-content-transform-origin]",e),...r})}));Ta.displayName=Na.displayName;const zu="sidebar_state",Bu=60*60*24*7,Wu="16rem",Vu="18rem",Hu="3rem",Gu="b",Oa=l.createContext(null);function mt(){const e=l.useContext(Oa);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const _a=l.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:r,className:n,style:o,children:a,...i},s)=>{const c=Ql(),[d,f]=l.useState(!1),[p,v]=l.useState(e),h=t??p,b=l.useCallback(w=>{const C=typeof w=="function"?w(h):w;r?r(C):v(C),document.cookie=`${zu}=${C}; path=/; max-age=${Bu}`},[r,h]),g=l.useCallback(()=>c?f(w=>!w):b(w=>!w),[c,b,f]);l.useEffect(()=>{const w=C=>{C.key===Gu&&(C.metaKey||C.ctrlKey)&&(C.preventDefault(),g())};return window.addEventListener("keydown",w),()=>window.removeEventListener("keydown",w)},[g]);const y=h?"expanded":"collapsed",x=l.useMemo(()=>({state:y,open:h,setOpen:b,isMobile:c,openMobile:d,setOpenMobile:f,toggleSidebar:g}),[y,h,b,c,d,f,g]);return m.jsx(Oa.Provider,{value:x,children:m.jsx(Lu,{delayDuration:0,children:m.jsx("div",{style:{"--sidebar-width":Wu,"--sidebar-width-icon":Hu,...o},className:M("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",n),ref:s,...i,children:a})})})});_a.displayName="SidebarProvider";const ka=l.forwardRef(({side:e="left",variant:t="sidebar",collapsible:r="offcanvas",className:n,children:o,...a},i)=>{const{isMobile:s,state:c,openMobile:d,setOpenMobile:f}=mt();return r==="none"?m.jsx("div",{className:M("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",n),ref:i,...a,children:o}):s?m.jsx(nc,{open:d,onOpenChange:f,...a,children:m.jsxs(Ko,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":Vu},side:e,children:[m.jsxs(Xo,{className:"sr-only",children:[m.jsx(qo,{children:"Sidebar"}),m.jsx(Jo,{children:"Displays the mobile sidebar."})]}),m.jsx("div",{className:"flex h-full w-full flex-col",children:o})]})}):m.jsxs("div",{ref:i,className:"group peer hidden text-sidebar-foreground md:block","data-state":c,"data-collapsible":c==="collapsed"?r:"","data-variant":t,"data-side":e,children:[m.jsx("div",{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)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),m.jsx("div",{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)_+_theme(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",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:o})})]})});ka.displayName="Sidebar";const ja=l.forwardRef(({className:e,onClick:t,...r},n)=>{const{toggleSidebar:o}=mt();return m.jsxs(Ar,{ref:n,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:M("h-7 w-7",e),onClick:a=>{t==null||t(a),o()},...r,children:[m.jsx(Kl,{}),m.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});ja.displayName="SidebarTrigger";const Ma=l.forwardRef(({className:e,...t},r)=>{const{toggleSidebar:n}=mt();return m.jsx("button",{ref:r,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:n,title:"Toggle Sidebar",className:M("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})});Ma.displayName="SidebarRail";const Da=l.forwardRef(({className:e,...t},r)=>m.jsx("main",{ref:r,className:M("relative flex w-full flex-1 flex-col bg-background","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",e),...t}));Da.displayName="SidebarInset";const Ia=l.forwardRef(({className:e,...t},r)=>m.jsx(Lr,{ref:r,"data-sidebar":"input",className:M("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));Ia.displayName="SidebarInput";const La=l.forwardRef(({className:e,...t},r)=>m.jsx("div",{ref:r,"data-sidebar":"header",className:M("flex flex-col gap-2 p-2",e),...t}));La.displayName="SidebarHeader";const Fa=l.forwardRef(({className:e,...t},r)=>m.jsx("div",{ref:r,"data-sidebar":"footer",className:M("flex flex-col gap-2 p-2",e),...t}));Fa.displayName="SidebarFooter";const $a=l.forwardRef(({className:e,...t},r)=>m.jsx(Uo,{ref:r,"data-sidebar":"separator",className:M("mx-2 w-auto bg-sidebar-border",e),...t}));$a.displayName="SidebarSeparator";const za=l.forwardRef(({className:e,...t},r)=>m.jsx("div",{ref:r,"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}));za.displayName="SidebarContent";const Ba=l.forwardRef(({className:e,...t},r)=>m.jsx("div",{ref:r,"data-sidebar":"group",className:M("relative flex w-full min-w-0 flex-col p-2",e),...t}));Ba.displayName="SidebarGroup";const Wa=l.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?ve:"div";return m.jsx(o,{ref:n,"data-sidebar":"group-label",className:M("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring 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})});Wa.displayName="SidebarGroupLabel";const Va=l.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?ve:"button";return m.jsx(o,{ref:n,"data-sidebar":"group-action",className:M("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...r})});Va.displayName="SidebarGroupAction";const Ha=l.forwardRef(({className:e,...t},r)=>m.jsx("div",{ref:r,"data-sidebar":"group-content",className:M("w-full text-sm",e),...t}));Ha.displayName="SidebarGroupContent";const Ga=l.forwardRef(({className:e,...t},r)=>m.jsx("ul",{ref:r,"data-sidebar":"menu",className:M("flex w-full min-w-0 flex-col gap-1",e),...t}));Ga.displayName="SidebarMenu";const Ua=l.forwardRef(({className:e,...t},r)=>m.jsx("li",{ref:r,"data-sidebar":"menu-item",className:M("group/menu-item relative",e),...t}));Ua.displayName="SidebarMenuItem";const Uu=Cr("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none 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"}}),Ya=l.forwardRef(({asChild:e=!1,isActive:t=!1,variant:r="default",size:n="default",tooltip:o,className:a,...i},s)=>{const c=e?ve:"button",{isMobile:d,state:f}=mt(),p=m.jsx(c,{ref:s,"data-sidebar":"menu-button","data-size":n,"data-active":t,className:M(Uu({variant:r,size:n}),a),...i});return o?(typeof o=="string"&&(o={children:o}),m.jsxs(Fu,{children:[m.jsx($u,{asChild:!0,children:p}),m.jsx(Ta,{side:"right",align:"center",hidden:f!=="collapsed"||d,...o})]})):p});Ya.displayName="SidebarMenuButton";const Ka=l.forwardRef(({className:e,asChild:t=!1,showOnHover:r=!1,...n},o)=>{const a=t?ve:"button";return m.jsx(a,{ref:o,"data-sidebar":"menu-action",className:M("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md: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&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...n})});Ka.displayName="SidebarMenuAction";const Xa=l.forwardRef(({className:e,...t},r)=>m.jsx("div",{ref:r,"data-sidebar":"menu-badge",className:M("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground","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}));Xa.displayName="SidebarMenuBadge";const qa=l.forwardRef(({className:e,showIcon:t=!1,...r},n)=>{const o=l.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return m.jsxs("div",{ref:n,"data-sidebar":"menu-skeleton",className:M("flex h-8 items-center gap-2 rounded-md px-2",e),...r,children:[t&&m.jsx(jn,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),m.jsx(jn,{className:"h-4 max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":o}})]})});qa.displayName="SidebarMenuSkeleton";const Ja=l.forwardRef(({className:e,...t},r)=>m.jsx("ul",{ref:r,"data-sidebar":"menu-sub",className:M("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));Ja.displayName="SidebarMenuSub";const Za=l.forwardRef(({...e},t)=>m.jsx("li",{ref:t,...e}));Za.displayName="SidebarMenuSubItem";const Qa=l.forwardRef(({asChild:e=!1,size:t="md",isActive:r,className:n,...o},a)=>{const i=e?ve:"a";return m.jsx(i,{ref:a,"data-sidebar":"menu-sub-button","data-size":t,"data-active":r,className:M("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring 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 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","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})});Qa.displayName="SidebarMenuSubButton";const Xr=l.forwardRef(({...e},t)=>m.jsx("nav",{ref:t,"aria-label":"breadcrumb",...e}));Xr.displayName="Breadcrumb";const qr=l.forwardRef(({className:e,...t},r)=>m.jsx("ol",{ref:r,className:M("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...t}));qr.displayName="BreadcrumbList";const It=l.forwardRef(({className:e,...t},r)=>m.jsx("li",{ref:r,className:M("inline-flex items-center gap-1.5",e),...t}));It.displayName="BreadcrumbItem";const Lt=l.forwardRef(({asChild:e,className:t,...r},n)=>{const o=e?ve:"a";return m.jsx(o,{ref:n,className:M("transition-colors hover:text-foreground",t),...r})});Lt.displayName="BreadcrumbLink";const Jr=l.forwardRef(({className:e,...t},r)=>m.jsx("span",{ref:r,role:"link","aria-disabled":"true","aria-current":"page",className:M("font-normal text-foreground",e),...t}));Jr.displayName="BreadcrumbPage";const Ft=({children:e,className:t,...r})=>m.jsx("li",{role:"presentation","aria-hidden":"true",className:M("[&>svg]:w-3.5 [&>svg]:h-3.5",t),...r,children:e??m.jsx(br,{})});Ft.displayName="BreadcrumbSeparator";const ei=({className:e,...t})=>m.jsxs("span",{role:"presentation","aria-hidden":"true",className:M("flex h-9 w-9 items-center justify-center",e),...t,children:[m.jsx(Hl,{className:"h-4 w-4"}),m.jsx("span",{className:"sr-only",children:"More"})]});ei.displayName="BreadcrumbElipssis";function Yu({title:e,breadcrumbItems:t=[],showHomeLink:r=!0,className:n="",children:o}){return m.jsx("header",{className:`border-b pb-4 ${n}`,children:m.jsxs("div",{className:"container mx-auto p-4",children:[(t.length>0||r)&&m.jsx(Xr,{className:"mb-2",children:m.jsxs(qr,{children:[r&&m.jsxs(m.Fragment,{children:[m.jsx(It,{children:m.jsxs(Lt,{href:"/",className:"flex items-center",children:[m.jsx(Ul,{className:"h-3.5 w-3.5 mr-1"}),"Home"]})}),t.length>0&&m.jsx(Ft,{children:m.jsx(br,{className:"h-3.5 w-3.5"})})]}),t.map((a,i)=>m.jsxs(se.Fragment,{children:[m.jsx(It,{children:a.isCurrentPage?m.jsx(Jr,{children:a.label}):m.jsx(Lt,{href:a.href||"#",children:a.label})}),i<t.length-1&&m.jsx(Ft,{children:m.jsx(br,{className:"h-3.5 w-3.5"})})]},i))]})}),e&&m.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:e}),o]})})}exports.Breadcrumb=Xr;exports.BreadcrumbEllipsis=ei;exports.BreadcrumbItem=It;exports.BreadcrumbLink=Lt;exports.BreadcrumbList=qr;exports.BreadcrumbPage=Jr;exports.BreadcrumbSeparator=Ft;exports.Button=Ar;exports.Dialog=ql;exports.DialogClose=Zl;exports.DialogContent=$o;exports.DialogDescription=Vo;exports.DialogFooter=Bo;exports.DialogHeader=zo;exports.DialogOverlay=Ir;exports.DialogPortal=Fo;exports.DialogTitle=Wo;exports.DialogTrigger=Jl;exports.Header=Yu;exports.Input=Lr;exports.Sidebar=ka;exports.SidebarContent=za;exports.SidebarFooter=Fa;exports.SidebarGroup=Ba;exports.SidebarGroupAction=Va;exports.SidebarGroupContent=Ha;exports.SidebarGroupLabel=Wa;exports.SidebarHeader=La;exports.SidebarInput=Ia;exports.SidebarInset=Da;exports.SidebarMenu=Ga;exports.SidebarMenuAction=Ka;exports.SidebarMenuBadge=Xa;exports.SidebarMenuButton=Ya;exports.SidebarMenuItem=Ua;exports.SidebarMenuSkeleton=qa;exports.SidebarMenuSub=Ja;exports.SidebarMenuSubButton=Qa;exports.SidebarMenuSubItem=Za;exports.SidebarProvider=_a;exports.SidebarRail=Ma;exports.SidebarSeparator=$a;exports.SidebarTrigger=ja;exports.useSidebar=mt;
|
|
184
|
+
* This source code is licensed under the MIT license found in the
|
|
185
|
+
* LICENSE file in the root directory of this source tree.
|
|
186
|
+
*/var bh;function SI(){return bh||(bh=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),g=!1,h=!1,v=!1,y=!1,x=!1,w;w=Symbol.for("react.module.reference");function S(I){return!!(typeof I=="string"||typeof I=="function"||I===r||I===o||x||I===n||I===l||I===p||y||I===b||g||h||v||typeof I=="object"&&I!==null&&(I.$$typeof===m||I.$$typeof===u||I.$$typeof===a||I.$$typeof===i||I.$$typeof===c||I.$$typeof===w||I.getModuleId!==void 0))}function _(I){if(typeof I=="object"&&I!==null){var ee=I.$$typeof;switch(ee){case e:var pe=I.type;switch(pe){case r:case o:case n:case l:case p:return pe;default:var me=pe&&pe.$$typeof;switch(me){case s:case i:case c:case m:case u:case a:return me;default:return ee}}case t:return ee}}}var R=i,C=a,A=e,P=c,k=r,D=m,L=u,N=t,j=o,$=n,M=l,G=p,H=!1,z=!1;function oe(I){return H||(H=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Z(I){return z||(z=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function te(I){return _(I)===i}function F(I){return _(I)===a}function U(I){return typeof I=="object"&&I!==null&&I.$$typeof===e}function Q(I){return _(I)===c}function K(I){return _(I)===r}function q(I){return _(I)===m}function W(I){return _(I)===u}function re(I){return _(I)===t}function J(I){return _(I)===o}function ne(I){return _(I)===n}function V(I){return _(I)===l}function ae(I){return _(I)===p}Me.ContextConsumer=R,Me.ContextProvider=C,Me.Element=A,Me.ForwardRef=P,Me.Fragment=k,Me.Lazy=D,Me.Memo=L,Me.Portal=N,Me.Profiler=j,Me.StrictMode=$,Me.Suspense=M,Me.SuspenseList=G,Me.isAsyncMode=oe,Me.isConcurrentMode=Z,Me.isContextConsumer=te,Me.isContextProvider=F,Me.isElement=U,Me.isForwardRef=Q,Me.isFragment=K,Me.isLazy=q,Me.isMemo=W,Me.isPortal=re,Me.isProfiler=J,Me.isStrictMode=ne,Me.isSuspense=V,Me.isSuspenseList=ae,Me.isValidElementType=S,Me.typeOf=_}()),Me}var yh;function CI(){return yh||(yh=1,process.env.NODE_ENV==="production"?Xo.exports=wI():Xo.exports=SI()),Xo.exports}CI();var Ks,xh;function Bx(){if(xh)return Ks;xh=1;var e=Hr(),t=Vr(),r="[object Number]";function n(o){return typeof o=="number"||t(o)&&e(o)==r}return Ks=n,Ks}var Ys,wh;function _I(){if(wh)return Ys;wh=1;var e=Bx();function t(r){return e(r)&&r!=+r}return Ys=t,Ys}var RI=_I();const EI=Yt(RI);var PI=Bx();const TI=Yt(PI);var Zo=function(t){return Lx(t)&&t.indexOf("%")===t.length-1},Dt=function(t){return TI(t)&&!EI(t)},Ca=function(t){return Dt(t)||Lx(t)};function xu(e){"@babel/helpers - typeof";return xu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xu(e)}var NI=["viewBox","children"],AI=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],Sh=["points","pathLength"],Xs={svg:NI,polygon:Sh,polyline:Sh},zx=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],MI=function(t,r,n){return function(o){return t(r,n,o),null}},OI=function(t,r,n){if(!Fx(t)||xu(t)!=="object")return null;var o=null;return Object.keys(t).forEach(function(a){var i=t[a];zx.includes(a)&&typeof i=="function"&&(o||(o={}),o[a]=MI(i,r,n))}),o},II=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},DI=function(t,r,n,o){var a,i=(a=Xs==null?void 0:Xs[o])!==null&&a!==void 0?a:[];return!Sa(t)&&(o&&i.includes(r)||AI.includes(r))||zx.includes(r)},qx=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var o=t;if(E.isValidElement(t)&&(o=t.props),!Fx(o))return null;var a={};return Object.keys(o).forEach(function(i){var s;DI((s=o)===null||s===void 0?void 0:s[i],i,r,n)&&(a[i]=o[i])}),a},jI=["children","width","height","viewBox","className","style","title","desc"];function wu(){return wu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wu.apply(this,arguments)}function kI(e,t){if(e==null)return{};var r=$I(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function $I(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function LI(e){var t=e.children,r=e.width,n=e.height,o=e.viewBox,a=e.className,i=e.style,s=e.title,c=e.desc,l=kI(e,jI),p=o||{width:r,height:n,x:0,y:0},u=or("recharts-surface",a);return E.createElement("svg",wu({},qx(l,!0,"svg"),{className:u,width:r,height:n,style:i,viewBox:"".concat(p.x," ").concat(p.y," ").concat(p.width," ").concat(p.height)}),E.createElement("title",null,s),E.createElement("desc",null,c),t)}var FI=process.env.NODE_ENV!=="production",da=function(t,r){for(var n=arguments.length,o=new Array(n>2?n-2:0),a=2;a<n;a++)o[a-2]=arguments[a];if(FI&&typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var i=0;console.warn(r.replace(/%s/g,function(){return o[i++]}))}},Zs,Ch;function BI(){if(Ch)return Zs;Ch=1;function e(t,r,n){var o=-1,a=t.length;r<0&&(r=-r>a?0:a+r),n=n>a?a:n,n<0&&(n+=a),a=r>n?0:n-r>>>0,r>>>=0;for(var i=Array(a);++o<a;)i[o]=t[o+r];return i}return Zs=e,Zs}var Js,_h;function zI(){if(_h)return Js;_h=1;var e=BI();function t(r,n,o){var a=r.length;return o=o===void 0?a:o,!n&&o>=a?r:e(r,n,o)}return Js=t,Js}var Qs,Rh;function Hx(){if(Rh)return Qs;Rh=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",o=t+r+n,a="\\ufe0e\\ufe0f",i="\\u200d",s=RegExp("["+i+e+o+a+"]");function c(l){return s.test(l)}return Qs=c,Qs}var ec,Eh;function qI(){if(Eh)return ec;Eh=1;function e(t){return t.split("")}return ec=e,ec}var tc,Ph;function HI(){if(Ph)return tc;Ph=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",o=t+r+n,a="\\ufe0e\\ufe0f",i="["+e+"]",s="["+o+"]",c="\\ud83c[\\udffb-\\udfff]",l="(?:"+s+"|"+c+")",p="[^"+e+"]",u="(?:\\ud83c[\\udde6-\\uddff]){2}",m="[\\ud800-\\udbff][\\udc00-\\udfff]",b="\\u200d",g=l+"?",h="["+a+"]?",v="(?:"+b+"(?:"+[p,u,m].join("|")+")"+h+g+")*",y=h+g+v,x="(?:"+[p+s+"?",s,u,m,i].join("|")+")",w=RegExp(c+"(?="+c+")|"+x+y,"g");function S(_){return _.match(w)||[]}return tc=S,tc}var rc,Th;function VI(){if(Th)return rc;Th=1;var e=qI(),t=Hx(),r=HI();function n(o){return t(o)?r(o):e(o)}return rc=n,rc}var nc,Nh;function GI(){if(Nh)return nc;Nh=1;var e=zI(),t=Hx(),r=VI(),n=jx();function o(a){return function(i){i=n(i);var s=t(i)?r(i):void 0,c=s?s[0]:i.charAt(0),l=s?e(s,1).join(""):i.slice(1);return c[a]()+l}}return nc=o,nc}var oc,Ah;function UI(){if(Ah)return oc;Ah=1;var e=GI(),t=e("toUpperCase");return oc=t,oc}var WI=UI();const Vx=Yt(WI);function Jo(e){return function(){return e}}const Gx=Math.cos,_a=Math.sin,qt=Math.sqrt,Ra=Math.PI,di=2*Ra,Su=Math.PI,Cu=2*Su,Mr=1e-6,KI=Cu-Mr;function Ux(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function YI(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Ux;const r=10**t;return function(n){this._+=n[0];for(let o=1,a=n.length;o<a;++o)this._+=Math.round(arguments[o]*r)/r+n[o]}}class XI{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Ux:YI(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,o){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+o}`}bezierCurveTo(t,r,n,o,a,i){this._append`C${+t},${+r},${+n},${+o},${this._x1=+a},${this._y1=+i}`}arcTo(t,r,n,o,a){if(t=+t,r=+r,n=+n,o=+o,a=+a,a<0)throw new Error(`negative radius: ${a}`);let i=this._x1,s=this._y1,c=n-t,l=o-r,p=i-t,u=s-r,m=p*p+u*u;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(m>Mr)if(!(Math.abs(u*c-l*p)>Mr)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let b=n-i,g=o-s,h=c*c+l*l,v=b*b+g*g,y=Math.sqrt(h),x=Math.sqrt(m),w=a*Math.tan((Su-Math.acos((h+m-v)/(2*y*x)))/2),S=w/x,_=w/y;Math.abs(S-1)>Mr&&this._append`L${t+S*p},${r+S*u}`,this._append`A${a},${a},0,0,${+(u*b>p*g)},${this._x1=t+_*c},${this._y1=r+_*l}`}}arc(t,r,n,o,a,i){if(t=+t,r=+r,n=+n,i=!!i,n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(o),c=n*Math.sin(o),l=t+s,p=r+c,u=1^i,m=i?o-a:a-o;this._x1===null?this._append`M${l},${p}`:(Math.abs(this._x1-l)>Mr||Math.abs(this._y1-p)>Mr)&&this._append`L${l},${p}`,n&&(m<0&&(m=m%Cu+Cu),m>KI?this._append`A${n},${n},0,1,${u},${t-s},${r-c}A${n},${n},0,1,${u},${this._x1=l},${this._y1=p}`:m>Mr&&this._append`A${n},${n},0,${+(m>=Su)},${u},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,o){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+o}h${-n}Z`}toString(){return this._}}function ZI(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new XI(t)}const Yd={draw(e,t){const r=qt(t/Ra);e.moveTo(r,0),e.arc(0,0,r,0,di)}},JI={draw(e,t){const r=qt(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},Wx=qt(1/3),QI=Wx*2,eD={draw(e,t){const r=qt(t/QI),n=r*Wx;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},tD={draw(e,t){const r=qt(t),n=-r/2;e.rect(n,n,r,r)}},rD=.8908130915292852,Kx=_a(Ra/10)/_a(7*Ra/10),nD=_a(di/10)*Kx,oD=-Gx(di/10)*Kx,aD={draw(e,t){const r=qt(t*rD),n=nD*r,o=oD*r;e.moveTo(0,-r),e.lineTo(n,o);for(let a=1;a<5;++a){const i=di*a/5,s=Gx(i),c=_a(i);e.lineTo(c*r,-s*r),e.lineTo(s*n-c*o,c*n+s*o)}e.closePath()}},ac=qt(3),iD={draw(e,t){const r=-qt(t/(ac*3));e.moveTo(0,r*2),e.lineTo(-ac*r,-r),e.lineTo(ac*r,-r),e.closePath()}},Rt=-.5,Et=qt(3)/2,_u=1/qt(12),sD=(_u/2+1)*3,cD={draw(e,t){const r=qt(t/sD),n=r/2,o=r*_u,a=n,i=r*_u+r,s=-a,c=i;e.moveTo(n,o),e.lineTo(a,i),e.lineTo(s,c),e.lineTo(Rt*n-Et*o,Et*n+Rt*o),e.lineTo(Rt*a-Et*i,Et*a+Rt*i),e.lineTo(Rt*s-Et*c,Et*s+Rt*c),e.lineTo(Rt*n+Et*o,Rt*o-Et*n),e.lineTo(Rt*a+Et*i,Rt*i-Et*a),e.lineTo(Rt*s+Et*c,Rt*c-Et*s),e.closePath()}};function lD(e,t){let r=null,n=ZI(o);e=typeof e=="function"?e:Jo(e||Yd),t=typeof t=="function"?t:Jo(t===void 0?64:+t);function o(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return o.type=function(a){return arguments.length?(e=typeof a=="function"?a:Jo(a),o):e},o.size=function(a){return arguments.length?(t=typeof a=="function"?a:Jo(+a),o):t},o.context=function(a){return arguments.length?(r=a??null,o):r},o}function eo(e){"@babel/helpers - typeof";return eo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},eo(e)}var uD=["type","size","sizeType"];function Ru(){return Ru=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ru.apply(this,arguments)}function Mh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Oh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Mh(Object(r),!0).forEach(function(n){dD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dD(e,t,r){return t=fD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fD(e){var t=pD(e,"string");return eo(t)=="symbol"?t:t+""}function pD(e,t){if(eo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(eo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mD(e,t){if(e==null)return{};var r=hD(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function hD(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var Yx={symbolCircle:Yd,symbolCross:JI,symbolDiamond:eD,symbolSquare:tD,symbolStar:aD,symbolTriangle:iD,symbolWye:cD},gD=Math.PI/180,vD=function(t){var r="symbol".concat(Vx(t));return Yx[r]||Yd},bD=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var o=18*gD;return 1.25*t*t*(Math.tan(o)-Math.tan(o*2)*Math.pow(Math.tan(o),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},yD=function(t,r){Yx["symbol".concat(Vx(t))]=r},Xx=function(t){var r=t.type,n=r===void 0?"circle":r,o=t.size,a=o===void 0?64:o,i=t.sizeType,s=i===void 0?"area":i,c=mD(t,uD),l=Oh(Oh({},c),{},{type:n,size:a,sizeType:s}),p=function(){var v=vD(n),y=lD().type(v).size(bD(a,s,n));return y()},u=l.className,m=l.cx,b=l.cy,g=qx(l,!0);return m===+m&&b===+b&&a===+a?E.createElement("path",Ru({},g,{className:or("recharts-symbols",u),transform:"translate(".concat(m,", ").concat(b,")"),d:p()})):null};Xx.registerSymbol=yD;function cn(e){"@babel/helpers - typeof";return cn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cn(e)}function Eu(){return Eu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Eu.apply(this,arguments)}function Ih(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function xD(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ih(Object(r),!0).forEach(function(n){to(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ih(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function SD(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Jx(n.key),n)}}function CD(e,t,r){return t&&SD(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _D(e,t,r){return t=Ea(t),RD(e,Zx()?Reflect.construct(t,r||[],Ea(e).constructor):t.apply(e,r))}function RD(e,t){if(t&&(cn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ED(e)}function ED(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Zx=function(){return!!e})()}function Ea(e){return Ea=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ea(e)}function PD(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Pu(e,t)}function Pu(e,t){return Pu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},Pu(e,t)}function to(e,t,r){return t=Jx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Jx(e){var t=TD(e,"string");return cn(t)=="symbol"?t:t+""}function TD(e,t){if(cn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(cn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ot=32,Xd=function(e){function t(){return wD(this,t),_D(this,t,arguments)}return PD(t,e),CD(t,[{key:"renderIcon",value:function(n){var o=this.props.inactiveColor,a=Ot/2,i=Ot/6,s=Ot/3,c=n.inactive?o:n.color;if(n.type==="plainline")return E.createElement("line",{strokeWidth:4,fill:"none",stroke:c,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:Ot,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return E.createElement("path",{strokeWidth:4,fill:"none",stroke:c,d:"M0,".concat(a,"h").concat(s,`
|
|
187
|
+
A`).concat(i,",").concat(i,",0,1,1,").concat(2*s,",").concat(a,`
|
|
188
|
+
H`).concat(Ot,"M").concat(2*s,",").concat(a,`
|
|
189
|
+
A`).concat(i,",").concat(i,",0,1,1,").concat(s,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return E.createElement("path",{stroke:"none",fill:c,d:"M0,".concat(Ot/8,"h").concat(Ot,"v").concat(Ot*3/4,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(E.isValidElement(n.legendIcon)){var l=xD({},n);return delete l.legendIcon,E.cloneElement(n.legendIcon,l)}return E.createElement(Xx,{fill:c,cx:a,cy:a,size:Ot,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,o=this.props,a=o.payload,i=o.iconSize,s=o.layout,c=o.formatter,l=o.inactiveColor,p={x:0,y:0,width:Ot,height:Ot},u={display:s==="horizontal"?"inline-block":"block",marginRight:10},m={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(b,g){var h=b.formatter||c,v=or(to(to({"recharts-legend-item":!0},"legend-item-".concat(g),!0),"inactive",b.inactive));if(b.type==="none")return null;var y=Sa(b.value)?null:b.value;da(!Sa(b.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var x=b.inactive?l:b.color;return E.createElement("li",Eu({className:v,style:u,key:"legend-item-".concat(g)},OI(n.props,b,g)),E.createElement(LI,{width:i,height:i,viewBox:p,style:m},n.renderIcon(b)),E.createElement("span",{className:"recharts-legend-item-text",style:{color:x}},h?h(y,b,g):y))})}},{key:"render",value:function(){var n=this.props,o=n.payload,a=n.layout,i=n.align;if(!o||!o.length)return null;var s={padding:0,margin:0,textAlign:a==="horizontal"?i:"left"};return E.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])}(E.PureComponent);to(Xd,"displayName","Legend");to(Xd,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var ic,Dh;function ND(){if(Dh)return ic;Dh=1;var e=ci();function t(){this.__data__=new e,this.size=0}return ic=t,ic}var sc,jh;function AD(){if(jh)return sc;jh=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return sc=e,sc}var cc,kh;function MD(){if(kh)return cc;kh=1;function e(t){return this.__data__.get(t)}return cc=e,cc}var lc,$h;function OD(){if($h)return lc;$h=1;function e(t){return this.__data__.has(t)}return lc=e,lc}var uc,Lh;function ID(){if(Lh)return uc;Lh=1;var e=ci(),t=Ud(),r=Wd(),n=200;function o(a,i){var s=this.__data__;if(s instanceof e){var c=s.__data__;if(!t||c.length<n-1)return c.push([a,i]),this.size=++s.size,this;s=this.__data__=new r(c)}return s.set(a,i),this.size=s.size,this}return uc=o,uc}var dc,Fh;function Qx(){if(Fh)return dc;Fh=1;var e=ci(),t=ND(),r=AD(),n=MD(),o=OD(),a=ID();function i(s){var c=this.__data__=new e(s);this.size=c.size}return i.prototype.clear=t,i.prototype.delete=r,i.prototype.get=n,i.prototype.has=o,i.prototype.set=a,dc=i,dc}var fc,Bh;function DD(){if(Bh)return fc;Bh=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return fc=t,fc}var pc,zh;function jD(){if(zh)return pc;zh=1;function e(t){return this.__data__.has(t)}return pc=e,pc}var mc,qh;function ew(){if(qh)return mc;qh=1;var e=Wd(),t=DD(),r=jD();function n(o){var a=-1,i=o==null?0:o.length;for(this.__data__=new e;++a<i;)this.add(o[a])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,mc=n,mc}var hc,Hh;function kD(){if(Hh)return hc;Hh=1;function e(t,r){for(var n=-1,o=t==null?0:t.length;++n<o;)if(r(t[n],n,t))return!0;return!1}return hc=e,hc}var gc,Vh;function tw(){if(Vh)return gc;Vh=1;function e(t,r){return t.has(r)}return gc=e,gc}var vc,Gh;function rw(){if(Gh)return vc;Gh=1;var e=ew(),t=kD(),r=tw(),n=1,o=2;function a(i,s,c,l,p,u){var m=c&n,b=i.length,g=s.length;if(b!=g&&!(m&&g>b))return!1;var h=u.get(i),v=u.get(s);if(h&&v)return h==s&&v==i;var y=-1,x=!0,w=c&o?new e:void 0;for(u.set(i,s),u.set(s,i);++y<b;){var S=i[y],_=s[y];if(l)var R=m?l(_,S,y,s,i,u):l(S,_,y,i,s,u);if(R!==void 0){if(R)continue;x=!1;break}if(w){if(!t(s,function(C,A){if(!r(w,A)&&(S===C||p(S,C,c,l,u)))return w.push(A)})){x=!1;break}}else if(!(S===_||p(S,_,c,l,u))){x=!1;break}}return u.delete(i),u.delete(s),x}return vc=a,vc}var bc,Uh;function $D(){if(Uh)return bc;Uh=1;var e=Xt(),t=e.Uint8Array;return bc=t,bc}var yc,Wh;function LD(){if(Wh)return yc;Wh=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(o,a){n[++r]=[a,o]}),n}return yc=e,yc}var xc,Kh;function Zd(){if(Kh)return xc;Kh=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(o){n[++r]=o}),n}return xc=e,xc}var wc,Yh;function FD(){if(Yh)return wc;Yh=1;var e=So(),t=$D(),r=Gd(),n=rw(),o=LD(),a=Zd(),i=1,s=2,c="[object Boolean]",l="[object Date]",p="[object Error]",u="[object Map]",m="[object Number]",b="[object RegExp]",g="[object Set]",h="[object String]",v="[object Symbol]",y="[object ArrayBuffer]",x="[object DataView]",w=e?e.prototype:void 0,S=w?w.valueOf:void 0;function _(R,C,A,P,k,D,L){switch(A){case x:if(R.byteLength!=C.byteLength||R.byteOffset!=C.byteOffset)return!1;R=R.buffer,C=C.buffer;case y:return!(R.byteLength!=C.byteLength||!D(new t(R),new t(C)));case c:case l:case m:return r(+R,+C);case p:return R.name==C.name&&R.message==C.message;case b:case h:return R==C+"";case u:var N=o;case g:var j=P&i;if(N||(N=a),R.size!=C.size&&!j)return!1;var $=L.get(R);if($)return $==C;P|=s,L.set(R,C);var M=n(N(R),N(C),P,k,D,L);return L.delete(R),M;case v:if(S)return S.call(R)==S.call(C)}return!1}return wc=_,wc}var Sc,Xh;function nw(){if(Xh)return Sc;Xh=1;function e(t,r){for(var n=-1,o=r.length,a=t.length;++n<o;)t[a+n]=r[n];return t}return Sc=e,Sc}var Cc,Zh;function BD(){if(Zh)return Cc;Zh=1;var e=nw(),t=zt();function r(n,o,a){var i=o(n);return t(n)?i:e(i,a(n))}return Cc=r,Cc}var _c,Jh;function zD(){if(Jh)return _c;Jh=1;function e(t,r){for(var n=-1,o=t==null?0:t.length,a=0,i=[];++n<o;){var s=t[n];r(s,n,t)&&(i[a++]=s)}return i}return _c=e,_c}var Rc,Qh;function qD(){if(Qh)return Rc;Qh=1;function e(){return[]}return Rc=e,Rc}var Ec,eg;function HD(){if(eg)return Ec;eg=1;var e=zD(),t=qD(),r=Object.prototype,n=r.propertyIsEnumerable,o=Object.getOwnPropertySymbols,a=o?function(i){return i==null?[]:(i=Object(i),e(o(i),function(s){return n.call(i,s)}))}:t;return Ec=a,Ec}var Pc,tg;function VD(){if(tg)return Pc;tg=1;function e(t,r){for(var n=-1,o=Array(t);++n<t;)o[n]=r(n);return o}return Pc=e,Pc}var Tc,rg;function GD(){if(rg)return Tc;rg=1;var e=Hr(),t=Vr(),r="[object Arguments]";function n(o){return t(o)&&e(o)==r}return Tc=n,Tc}var Nc,ng;function Jd(){if(ng)return Nc;ng=1;var e=GD(),t=Vr(),r=Object.prototype,n=r.hasOwnProperty,o=r.propertyIsEnumerable,a=e(function(){return arguments}())?e:function(i){return t(i)&&n.call(i,"callee")&&!o.call(i,"callee")};return Nc=a,Nc}var qn={exports:{}},Ac,og;function UD(){if(og)return Ac;og=1;function e(){return!1}return Ac=e,Ac}qn.exports;var ag;function ow(){return ag||(ag=1,function(e,t){var r=Xt(),n=UD(),o=t&&!t.nodeType&&t,a=o&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===o,s=i?r.Buffer:void 0,c=s?s.isBuffer:void 0,l=c||n;e.exports=l}(qn,qn.exports)),qn.exports}var Mc,ig;function Qd(){if(ig)return Mc;ig=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,o){var a=typeof n;return o=o??e,!!o&&(a=="number"||a!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<o}return Mc=r,Mc}var Oc,sg;function ef(){if(sg)return Oc;sg=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return Oc=t,Oc}var Ic,cg;function WD(){if(cg)return Ic;cg=1;var e=Hr(),t=ef(),r=Vr(),n="[object Arguments]",o="[object Array]",a="[object Boolean]",i="[object Date]",s="[object Error]",c="[object Function]",l="[object Map]",p="[object Number]",u="[object Object]",m="[object RegExp]",b="[object Set]",g="[object String]",h="[object WeakMap]",v="[object ArrayBuffer]",y="[object DataView]",x="[object Float32Array]",w="[object Float64Array]",S="[object Int8Array]",_="[object Int16Array]",R="[object Int32Array]",C="[object Uint8Array]",A="[object Uint8ClampedArray]",P="[object Uint16Array]",k="[object Uint32Array]",D={};D[x]=D[w]=D[S]=D[_]=D[R]=D[C]=D[A]=D[P]=D[k]=!0,D[n]=D[o]=D[v]=D[a]=D[y]=D[i]=D[s]=D[c]=D[l]=D[p]=D[u]=D[m]=D[b]=D[g]=D[h]=!1;function L(N){return r(N)&&t(N.length)&&!!D[e(N)]}return Ic=L,Ic}var Dc,lg;function aw(){if(lg)return Dc;lg=1;function e(t){return function(r){return t(r)}}return Dc=e,Dc}var Hn={exports:{}};Hn.exports;var ug;function KD(){return ug||(ug=1,function(e,t){var r=Ox(),n=t&&!t.nodeType&&t,o=n&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===n,i=a&&r.process,s=function(){try{var c=o&&o.require&&o.require("util").types;return c||i&&i.binding&&i.binding("util")}catch{}}();e.exports=s}(Hn,Hn.exports)),Hn.exports}var jc,dg;function iw(){if(dg)return jc;dg=1;var e=WD(),t=aw(),r=KD(),n=r&&r.isTypedArray,o=n?t(n):e;return jc=o,jc}var kc,fg;function YD(){if(fg)return kc;fg=1;var e=VD(),t=Jd(),r=zt(),n=ow(),o=Qd(),a=iw(),i=Object.prototype,s=i.hasOwnProperty;function c(l,p){var u=r(l),m=!u&&t(l),b=!u&&!m&&n(l),g=!u&&!m&&!b&&a(l),h=u||m||b||g,v=h?e(l.length,String):[],y=v.length;for(var x in l)(p||s.call(l,x))&&!(h&&(x=="length"||b&&(x=="offset"||x=="parent")||g&&(x=="buffer"||x=="byteLength"||x=="byteOffset")||o(x,y)))&&v.push(x);return v}return kc=c,kc}var $c,pg;function XD(){if(pg)return $c;pg=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,o=typeof n=="function"&&n.prototype||e;return r===o}return $c=t,$c}var Lc,mg;function ZD(){if(mg)return Lc;mg=1;function e(t,r){return function(n){return t(r(n))}}return Lc=e,Lc}var Fc,hg;function JD(){if(hg)return Fc;hg=1;var e=ZD(),t=e(Object.keys,Object);return Fc=t,Fc}var Bc,gg;function QD(){if(gg)return Bc;gg=1;var e=XD(),t=JD(),r=Object.prototype,n=r.hasOwnProperty;function o(a){if(!e(a))return t(a);var i=[];for(var s in Object(a))n.call(a,s)&&s!="constructor"&&i.push(s);return i}return Bc=o,Bc}var zc,vg;function fi(){if(vg)return zc;vg=1;var e=Vd(),t=ef();function r(n){return n!=null&&t(n.length)&&!e(n)}return zc=r,zc}var qc,bg;function tf(){if(bg)return qc;bg=1;var e=YD(),t=QD(),r=fi();function n(o){return r(o)?e(o):t(o)}return qc=n,qc}var Hc,yg;function ej(){if(yg)return Hc;yg=1;var e=BD(),t=HD(),r=tf();function n(o){return e(o,r,t)}return Hc=n,Hc}var Vc,xg;function tj(){if(xg)return Vc;xg=1;var e=ej(),t=1,r=Object.prototype,n=r.hasOwnProperty;function o(a,i,s,c,l,p){var u=s&t,m=e(a),b=m.length,g=e(i),h=g.length;if(b!=h&&!u)return!1;for(var v=b;v--;){var y=m[v];if(!(u?y in i:n.call(i,y)))return!1}var x=p.get(a),w=p.get(i);if(x&&w)return x==i&&w==a;var S=!0;p.set(a,i),p.set(i,a);for(var _=u;++v<b;){y=m[v];var R=a[y],C=i[y];if(c)var A=u?c(C,R,y,i,a,p):c(R,C,y,a,i,p);if(!(A===void 0?R===C||l(R,C,s,c,p):A)){S=!1;break}_||(_=y=="constructor")}if(S&&!_){var P=a.constructor,k=i.constructor;P!=k&&"constructor"in a&&"constructor"in i&&!(typeof P=="function"&&P instanceof P&&typeof k=="function"&&k instanceof k)&&(S=!1)}return p.delete(a),p.delete(i),S}return Vc=o,Vc}var Gc,wg;function rj(){if(wg)return Gc;wg=1;var e=Gr(),t=Xt(),r=e(t,"DataView");return Gc=r,Gc}var Uc,Sg;function nj(){if(Sg)return Uc;Sg=1;var e=Gr(),t=Xt(),r=e(t,"Promise");return Uc=r,Uc}var Wc,Cg;function sw(){if(Cg)return Wc;Cg=1;var e=Gr(),t=Xt(),r=e(t,"Set");return Wc=r,Wc}var Kc,_g;function oj(){if(_g)return Kc;_g=1;var e=Gr(),t=Xt(),r=e(t,"WeakMap");return Kc=r,Kc}var Yc,Rg;function aj(){if(Rg)return Yc;Rg=1;var e=rj(),t=Ud(),r=nj(),n=sw(),o=oj(),a=Hr(),i=Ix(),s="[object Map]",c="[object Object]",l="[object Promise]",p="[object Set]",u="[object WeakMap]",m="[object DataView]",b=i(e),g=i(t),h=i(r),v=i(n),y=i(o),x=a;return(e&&x(new e(new ArrayBuffer(1)))!=m||t&&x(new t)!=s||r&&x(r.resolve())!=l||n&&x(new n)!=p||o&&x(new o)!=u)&&(x=function(w){var S=a(w),_=S==c?w.constructor:void 0,R=_?i(_):"";if(R)switch(R){case b:return m;case g:return s;case h:return l;case v:return p;case y:return u}return S}),Yc=x,Yc}var Xc,Eg;function ij(){if(Eg)return Xc;Eg=1;var e=Qx(),t=rw(),r=FD(),n=tj(),o=aj(),a=zt(),i=ow(),s=iw(),c=1,l="[object Arguments]",p="[object Array]",u="[object Object]",m=Object.prototype,b=m.hasOwnProperty;function g(h,v,y,x,w,S){var _=a(h),R=a(v),C=_?p:o(h),A=R?p:o(v);C=C==l?u:C,A=A==l?u:A;var P=C==u,k=A==u,D=C==A;if(D&&i(h)){if(!i(v))return!1;_=!0,P=!1}if(D&&!P)return S||(S=new e),_||s(h)?t(h,v,y,x,w,S):r(h,v,C,y,x,w,S);if(!(y&c)){var L=P&&b.call(h,"__wrapped__"),N=k&&b.call(v,"__wrapped__");if(L||N){var j=L?h.value():h,$=N?v.value():v;return S||(S=new e),w(j,$,y,x,S)}}return D?(S||(S=new e),n(h,v,y,x,w,S)):!1}return Xc=g,Xc}var Zc,Pg;function cw(){if(Pg)return Zc;Pg=1;var e=ij(),t=Vr();function r(n,o,a,i,s){return n===o?!0:n==null||o==null||!t(n)&&!t(o)?n!==n&&o!==o:e(n,o,a,i,r,s)}return Zc=r,Zc}var Jc,Tg;function sj(){if(Tg)return Jc;Tg=1;var e=Qx(),t=cw(),r=1,n=2;function o(a,i,s,c){var l=s.length,p=l,u=!c;if(a==null)return!p;for(a=Object(a);l--;){var m=s[l];if(u&&m[2]?m[1]!==a[m[0]]:!(m[0]in a))return!1}for(;++l<p;){m=s[l];var b=m[0],g=a[b],h=m[1];if(u&&m[2]){if(g===void 0&&!(b in a))return!1}else{var v=new e;if(c)var y=c(g,h,b,a,i,v);if(!(y===void 0?t(h,g,r|n,c,v):y))return!1}}return!0}return Jc=o,Jc}var Qc,Ng;function lw(){if(Ng)return Qc;Ng=1;var e=wr();function t(r){return r===r&&!e(r)}return Qc=t,Qc}var el,Ag;function cj(){if(Ag)return el;Ag=1;var e=lw(),t=tf();function r(n){for(var o=t(n),a=o.length;a--;){var i=o[a],s=n[i];o[a]=[i,s,e(s)]}return o}return el=r,el}var tl,Mg;function uw(){if(Mg)return tl;Mg=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return tl=e,tl}var rl,Og;function lj(){if(Og)return rl;Og=1;var e=sj(),t=cj(),r=uw();function n(o){var a=t(o);return a.length==1&&a[0][2]?r(a[0][0],a[0][1]):function(i){return i===o||e(i,o,a)}}return rl=n,rl}var nl,Ig;function uj(){if(Ig)return nl;Ig=1;function e(t,r){return t!=null&&r in Object(t)}return nl=e,nl}var ol,Dg;function dj(){if(Dg)return ol;Dg=1;var e=kx(),t=Jd(),r=zt(),n=Qd(),o=ef(),a=ui();function i(s,c,l){c=e(c,s);for(var p=-1,u=c.length,m=!1;++p<u;){var b=a(c[p]);if(!(m=s!=null&&l(s,b)))break;s=s[b]}return m||++p!=u?m:(u=s==null?0:s.length,!!u&&o(u)&&n(b,u)&&(r(s)||t(s)))}return ol=i,ol}var al,jg;function fj(){if(jg)return al;jg=1;var e=uj(),t=dj();function r(n,o){return n!=null&&t(n,o,e)}return al=r,al}var il,kg;function pj(){if(kg)return il;kg=1;var e=cw(),t=$x(),r=fj(),n=Hd(),o=lw(),a=uw(),i=ui(),s=1,c=2;function l(p,u){return n(p)&&o(u)?a(i(p),u):function(m){var b=t(m,p);return b===void 0&&b===u?r(m,p):e(u,b,s|c)}}return il=l,il}var sl,$g;function pi(){if($g)return sl;$g=1;function e(t){return t}return sl=e,sl}var cl,Lg;function mj(){if(Lg)return cl;Lg=1;function e(t){return function(r){return r==null?void 0:r[t]}}return cl=e,cl}var ll,Fg;function hj(){if(Fg)return ll;Fg=1;var e=Kd();function t(r){return function(n){return e(n,r)}}return ll=t,ll}var ul,Bg;function gj(){if(Bg)return ul;Bg=1;var e=mj(),t=hj(),r=Hd(),n=ui();function o(a){return r(a)?e(n(a)):t(a)}return ul=o,ul}var dl,zg;function dw(){if(zg)return dl;zg=1;var e=lj(),t=pj(),r=pi(),n=zt(),o=gj();function a(i){return typeof i=="function"?i:i==null?r:typeof i=="object"?n(i)?t(i[0],i[1]):e(i):o(i)}return dl=a,dl}var fl,qg;function vj(){if(qg)return fl;qg=1;function e(t,r,n,o){for(var a=t.length,i=n+(o?1:-1);o?i--:++i<a;)if(r(t[i],i,t))return i;return-1}return fl=e,fl}var pl,Hg;function bj(){if(Hg)return pl;Hg=1;function e(t){return t!==t}return pl=e,pl}var ml,Vg;function yj(){if(Vg)return ml;Vg=1;function e(t,r,n){for(var o=n-1,a=t.length;++o<a;)if(t[o]===r)return o;return-1}return ml=e,ml}var hl,Gg;function xj(){if(Gg)return hl;Gg=1;var e=vj(),t=bj(),r=yj();function n(o,a,i){return a===a?r(o,a,i):e(o,t,i)}return hl=n,hl}var gl,Ug;function wj(){if(Ug)return gl;Ug=1;var e=xj();function t(r,n){var o=r==null?0:r.length;return!!o&&e(r,n,0)>-1}return gl=t,gl}var vl,Wg;function Sj(){if(Wg)return vl;Wg=1;function e(t,r,n){for(var o=-1,a=t==null?0:t.length;++o<a;)if(n(r,t[o]))return!0;return!1}return vl=e,vl}var bl,Kg;function Cj(){if(Kg)return bl;Kg=1;function e(){}return bl=e,bl}var yl,Yg;function _j(){if(Yg)return yl;Yg=1;var e=sw(),t=Cj(),r=Zd(),n=1/0,o=e&&1/r(new e([,-0]))[1]==n?function(a){return new e(a)}:t;return yl=o,yl}var xl,Xg;function Rj(){if(Xg)return xl;Xg=1;var e=ew(),t=wj(),r=Sj(),n=tw(),o=_j(),a=Zd(),i=200;function s(c,l,p){var u=-1,m=t,b=c.length,g=!0,h=[],v=h;if(p)g=!1,m=r;else if(b>=i){var y=l?null:o(c);if(y)return a(y);g=!1,m=n,v=new e}else v=l?[]:h;e:for(;++u<b;){var x=c[u],w=l?l(x):x;if(x=p||x!==0?x:0,g&&w===w){for(var S=v.length;S--;)if(v[S]===w)continue e;l&&v.push(w),h.push(x)}else m(v,w,p)||(v!==h&&v.push(w),h.push(x))}return h}return xl=s,xl}var wl,Zg;function Ej(){if(Zg)return wl;Zg=1;var e=dw(),t=Rj();function r(n,o){return n&&n.length?t(n,e(o,2)):[]}return wl=r,wl}var Pj=Ej();const Jg=Yt(Pj);function fw(e,t,r){return t===!0?Jg(e,r):Sa(t)?Jg(e,t):e}function ln(e){"@babel/helpers - typeof";return ln=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ln(e)}var Tj=["ref"];function Qg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function rr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Qg(Object(r),!0).forEach(function(n){mi(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Nj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ev(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,mw(n.key),n)}}function Aj(e,t,r){return t&&ev(e.prototype,t),r&&ev(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Mj(e,t,r){return t=Pa(t),Oj(e,pw()?Reflect.construct(t,r||[],Pa(e).constructor):t.apply(e,r))}function Oj(e,t){if(t&&(ln(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ij(e)}function Ij(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(pw=function(){return!!e})()}function Pa(e){return Pa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Pa(e)}function Dj(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Tu(e,t)}function Tu(e,t){return Tu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},Tu(e,t)}function mi(e,t,r){return t=mw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mw(e){var t=jj(e,"string");return ln(t)=="symbol"?t:t+""}function jj(e,t){if(ln(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ln(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function kj(e,t){if(e==null)return{};var r=$j(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function $j(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Lj(e){return e.value}function Fj(e,t){if(E.isValidElement(e))return E.cloneElement(e,t);if(typeof e=="function")return E.createElement(e,t);t.ref;var r=kj(t,Tj);return E.createElement(Xd,r)}var tv=1,rf=function(e){function t(){var r;Nj(this,t);for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];return r=Mj(this,t,[].concat(o)),mi(r,"lastBoundingBox",{width:-1,height:-1}),r}return Dj(t,e),Aj(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();return n.height=this.wrapperNode.offsetHeight,n.width=this.wrapperNode.offsetWidth,n}return null}},{key:"updateBBox",value:function(){var n=this.props.onBBoxUpdate,o=this.getBBox();o?(Math.abs(o.width-this.lastBoundingBox.width)>tv||Math.abs(o.height-this.lastBoundingBox.height)>tv)&&(this.lastBoundingBox.width=o.width,this.lastBoundingBox.height=o.height,n&&n(o)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?rr({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var o=this.props,a=o.layout,i=o.align,s=o.verticalAlign,c=o.margin,l=o.chartWidth,p=o.chartHeight,u,m;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(i==="center"&&a==="vertical"){var b=this.getBBoxSnapshot();u={left:((l||0)-b.width)/2}}else u=i==="right"?{right:c&&c.right||0}:{left:c&&c.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(s==="middle"){var g=this.getBBoxSnapshot();m={top:((p||0)-g.height)/2}}else m=s==="bottom"?{bottom:c&&c.bottom||0}:{top:c&&c.top||0};return rr(rr({},u),m)}},{key:"render",value:function(){var n=this,o=this.props,a=o.content,i=o.width,s=o.height,c=o.wrapperStyle,l=o.payloadUniqBy,p=o.payload,u=rr(rr({position:"absolute",width:i||"auto",height:s||"auto"},this.getDefaultPosition(c)),c);return E.createElement("div",{className:"recharts-legend-wrapper",style:u,ref:function(b){n.wrapperNode=b}},Fj(a,rr(rr({},this.props),{},{payload:fw(p,l,Lj)})))}}],[{key:"getWithHeight",value:function(n,o){var a=rr(rr({},this.defaultProps),n.props),i=a.layout;return i==="vertical"&&Dt(n.props.height)?{height:n.props.height}:i==="horizontal"?{width:n.props.width||o}:null}}])}(E.PureComponent);mi(rf,"displayName","Legend");mi(rf,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Sl,rv;function Bj(){if(rv)return Sl;rv=1;var e=So(),t=Jd(),r=zt(),n=e?e.isConcatSpreadable:void 0;function o(a){return r(a)||t(a)||!!(n&&a&&a[n])}return Sl=o,Sl}var Cl,nv;function zj(){if(nv)return Cl;nv=1;var e=nw(),t=Bj();function r(n,o,a,i,s){var c=-1,l=n.length;for(a||(a=t),s||(s=[]);++c<l;){var p=n[c];o>0&&a(p)?o>1?r(p,o-1,a,i,s):e(s,p):i||(s[s.length]=p)}return s}return Cl=r,Cl}var _l,ov;function qj(){if(ov)return _l;ov=1;function e(t){return function(r,n,o){for(var a=-1,i=Object(r),s=o(r),c=s.length;c--;){var l=s[t?c:++a];if(n(i[l],l,i)===!1)break}return r}}return _l=e,_l}var Rl,av;function Hj(){if(av)return Rl;av=1;var e=qj(),t=e();return Rl=t,Rl}var El,iv;function Vj(){if(iv)return El;iv=1;var e=Hj(),t=tf();function r(n,o){return n&&e(n,o,t)}return El=r,El}var Pl,sv;function Gj(){if(sv)return Pl;sv=1;var e=fi();function t(r,n){return function(o,a){if(o==null)return o;if(!e(o))return r(o,a);for(var i=o.length,s=n?i:-1,c=Object(o);(n?s--:++s<i)&&a(c[s],s,c)!==!1;);return o}}return Pl=t,Pl}var Tl,cv;function Uj(){if(cv)return Tl;cv=1;var e=Vj(),t=Gj(),r=t(e);return Tl=r,Tl}var Nl,lv;function Wj(){if(lv)return Nl;lv=1;var e=Uj(),t=fi();function r(n,o){var a=-1,i=t(n)?Array(n.length):[];return e(n,function(s,c,l){i[++a]=o(s,c,l)}),i}return Nl=r,Nl}var Al,uv;function Kj(){if(uv)return Al;uv=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return Al=e,Al}var Ml,dv;function Yj(){if(dv)return Ml;dv=1;var e=Co();function t(r,n){if(r!==n){var o=r!==void 0,a=r===null,i=r===r,s=e(r),c=n!==void 0,l=n===null,p=n===n,u=e(n);if(!l&&!u&&!s&&r>n||s&&c&&p&&!l&&!u||a&&c&&p||!o&&p||!i)return 1;if(!a&&!s&&!u&&r<n||u&&o&&i&&!a&&!s||l&&o&&i||!c&&i||!p)return-1}return 0}return Ml=t,Ml}var Ol,fv;function Xj(){if(fv)return Ol;fv=1;var e=Yj();function t(r,n,o){for(var a=-1,i=r.criteria,s=n.criteria,c=i.length,l=o.length;++a<c;){var p=e(i[a],s[a]);if(p){if(a>=l)return p;var u=o[a];return p*(u=="desc"?-1:1)}}return r.index-n.index}return Ol=t,Ol}var Il,pv;function Zj(){if(pv)return Il;pv=1;var e=Dx(),t=Kd(),r=dw(),n=Wj(),o=Kj(),a=aw(),i=Xj(),s=pi(),c=zt();function l(p,u,m){u.length?u=e(u,function(h){return c(h)?function(v){return t(v,h.length===1?h[0]:h)}:h}):u=[s];var b=-1;u=e(u,a(r));var g=n(p,function(h,v,y){var x=e(u,function(w){return w(h)});return{criteria:x,index:++b,value:h}});return o(g,function(h,v){return i(h,v,m)})}return Il=l,Il}var Dl,mv;function Jj(){if(mv)return Dl;mv=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return Dl=e,Dl}var jl,hv;function Qj(){if(hv)return jl;hv=1;var e=Jj(),t=Math.max;function r(n,o,a){return o=t(o===void 0?n.length-1:o,0),function(){for(var i=arguments,s=-1,c=t(i.length-o,0),l=Array(c);++s<c;)l[s]=i[o+s];s=-1;for(var p=Array(o+1);++s<o;)p[s]=i[s];return p[o]=a(l),e(n,this,p)}}return jl=r,jl}var kl,gv;function ek(){if(gv)return kl;gv=1;function e(t){return function(){return t}}return kl=e,kl}var $l,vv;function tk(){if(vv)return $l;vv=1;var e=Gr(),t=function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}}();return $l=t,$l}var Ll,bv;function rk(){if(bv)return Ll;bv=1;var e=ek(),t=tk(),r=pi(),n=t?function(o,a){return t(o,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return Ll=n,Ll}var Fl,yv;function nk(){if(yv)return Fl;yv=1;var e=800,t=16,r=Date.now;function n(o){var a=0,i=0;return function(){var s=r(),c=t-(s-i);if(i=s,c>0){if(++a>=e)return arguments[0]}else a=0;return o.apply(void 0,arguments)}}return Fl=n,Fl}var Bl,xv;function ok(){if(xv)return Bl;xv=1;var e=rk(),t=nk(),r=t(e);return Bl=r,Bl}var zl,wv;function ak(){if(wv)return zl;wv=1;var e=pi(),t=Qj(),r=ok();function n(o,a){return r(t(o,a,e),o+"")}return zl=n,zl}var ql,Sv;function ik(){if(Sv)return ql;Sv=1;var e=Gd(),t=fi(),r=Qd(),n=wr();function o(a,i,s){if(!n(s))return!1;var c=typeof i;return(c=="number"?t(s)&&r(i,s.length):c=="string"&&i in s)?e(s[i],a):!1}return ql=o,ql}var Hl,Cv;function sk(){if(Cv)return Hl;Cv=1;var e=zj(),t=Zj(),r=ak(),n=ik(),o=r(function(a,i){if(a==null)return[];var s=i.length;return s>1&&n(a,i[0],i[1])?i=[]:s>2&&n(i[0],i[1],i[2])&&(i=[i[0]]),t(a,e(i,1),[])});return Hl=o,Hl}var ck=sk();const lk=Yt(ck);function ro(e){"@babel/helpers - typeof";return ro=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ro(e)}function Nu(){return Nu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Nu.apply(this,arguments)}function uk(e,t){return mk(e)||pk(e,t)||fk(e,t)||dk()}function dk(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
190
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fk(e,t){if(e){if(typeof e=="string")return _v(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _v(e,t)}}function _v(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function pk(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,a,i,s=[],c=!0,l=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(p){l=!0,o=p}finally{try{if(!c&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw o}}return s}}function mk(e){if(Array.isArray(e))return e}function Rv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Vl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Rv(Object(r),!0).forEach(function(n){hk(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hk(e,t,r){return t=gk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gk(e){var t=vk(e,"string");return ro(t)=="symbol"?t:t+""}function vk(e,t){if(ro(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ro(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bk(e){return Array.isArray(e)&&Ca(e[0])&&Ca(e[1])?e.join(" ~ "):e}var yk=function(t){var r=t.separator,n=r===void 0?" : ":r,o=t.contentStyle,a=o===void 0?{}:o,i=t.itemStyle,s=i===void 0?{}:i,c=t.labelStyle,l=c===void 0?{}:c,p=t.payload,u=t.formatter,m=t.itemSorter,b=t.wrapperClassName,g=t.labelClassName,h=t.label,v=t.labelFormatter,y=t.accessibilityLayer,x=y===void 0?!1:y,w=function(){if(p&&p.length){var L={padding:0,margin:0},N=(m?lk(p,m):p).map(function(j,$){if(j.type==="none")return null;var M=Vl({display:"block",paddingTop:4,paddingBottom:4,color:j.color||"#000"},s),G=j.formatter||u||bk,H=j.value,z=j.name,oe=H,Z=z;if(G&&oe!=null&&Z!=null){var te=G(H,z,j,$,p);if(Array.isArray(te)){var F=uk(te,2);oe=F[0],Z=F[1]}else oe=te}return E.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat($),style:M},Ca(Z)?E.createElement("span",{className:"recharts-tooltip-item-name"},Z):null,Ca(Z)?E.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,E.createElement("span",{className:"recharts-tooltip-item-value"},oe),E.createElement("span",{className:"recharts-tooltip-item-unit"},j.unit||""))});return E.createElement("ul",{className:"recharts-tooltip-item-list",style:L},N)}return null},S=Vl({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),_=Vl({margin:0},l),R=!gI(h),C=R?h:"",A=or("recharts-default-tooltip",b),P=or("recharts-tooltip-label",g);R&&v&&p!==void 0&&p!==null&&(C=v(h,p));var k=x?{role:"status","aria-live":"assertive"}:{};return E.createElement("div",Nu({className:A,style:S},k),E.createElement("p",{className:P,style:_},E.isValidElement(C)?C:"".concat(C)),w())};function no(e){"@babel/helpers - typeof";return no=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},no(e)}function Qo(e,t,r){return t=xk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xk(e){var t=wk(e,"string");return no(t)=="symbol"?t:t+""}function wk(e,t){if(no(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(no(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var kn="recharts-tooltip-wrapper",Sk={visibility:"hidden"};function Ck(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return or(kn,Qo(Qo(Qo(Qo({},"".concat(kn,"-right"),Dt(r)&&t&&Dt(t.x)&&r>=t.x),"".concat(kn,"-left"),Dt(r)&&t&&Dt(t.x)&&r<t.x),"".concat(kn,"-bottom"),Dt(n)&&t&&Dt(t.y)&&n>=t.y),"".concat(kn,"-top"),Dt(n)&&t&&Dt(t.y)&&n<t.y))}function Ev(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,o=e.offsetTopLeft,a=e.position,i=e.reverseDirection,s=e.tooltipDimension,c=e.viewBox,l=e.viewBoxDimension;if(a&&Dt(a[n]))return a[n];var p=r[n]-s-o,u=r[n]+o;if(t[n])return i[n]?p:u;if(i[n]){var m=p,b=c[n];return m<b?Math.max(u,c[n]):Math.max(p,c[n])}var g=u+s,h=c[n]+l;return g>h?Math.max(p,c[n]):Math.max(u,c[n])}function _k(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function Rk(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,o=e.position,a=e.reverseDirection,i=e.tooltipBox,s=e.useTranslate3d,c=e.viewBox,l,p,u;return i.height>0&&i.width>0&&r?(p=Ev({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:o,reverseDirection:a,tooltipDimension:i.width,viewBox:c,viewBoxDimension:c.width}),u=Ev({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:o,reverseDirection:a,tooltipDimension:i.height,viewBox:c,viewBoxDimension:c.height}),l=_k({translateX:p,translateY:u,useTranslate3d:s})):l=Sk,{cssProperties:l,cssClasses:Ck({translateX:p,translateY:u,coordinate:r})}}function un(e){"@babel/helpers - typeof";return un=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},un(e)}function Pv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Tv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Pv(Object(r),!0).forEach(function(n){Mu(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ek(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pk(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,gw(n.key),n)}}function Tk(e,t,r){return t&&Pk(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Nk(e,t,r){return t=Ta(t),Ak(e,hw()?Reflect.construct(t,r||[],Ta(e).constructor):t.apply(e,r))}function Ak(e,t){if(t&&(un(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Mk(e)}function Mk(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(hw=function(){return!!e})()}function Ta(e){return Ta=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ta(e)}function Ok(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Au(e,t)}function Au(e,t){return Au=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},Au(e,t)}function Mu(e,t,r){return t=gw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gw(e){var t=Ik(e,"string");return un(t)=="symbol"?t:t+""}function Ik(e,t){if(un(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(un(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Nv=1,Dk=function(e){function t(){var r;Ek(this,t);for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];return r=Nk(this,t,[].concat(o)),Mu(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),Mu(r,"handleKeyDown",function(i){if(i.key==="Escape"){var s,c,l,p;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(s=(c=r.props.coordinate)===null||c===void 0?void 0:c.x)!==null&&s!==void 0?s:0,y:(l=(p=r.props.coordinate)===null||p===void 0?void 0:p.y)!==null&&l!==void 0?l:0}})}}),r}return Ok(t,e),Tk(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>Nv||Math.abs(n.height-this.state.lastBoundingBox.height)>Nv)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,o;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((o=this.props.coordinate)===null||o===void 0?void 0:o.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,o=this.props,a=o.active,i=o.allowEscapeViewBox,s=o.animationDuration,c=o.animationEasing,l=o.children,p=o.coordinate,u=o.hasPayload,m=o.isAnimationActive,b=o.offset,g=o.position,h=o.reverseDirection,v=o.useTranslate3d,y=o.viewBox,x=o.wrapperStyle,w=Rk({allowEscapeViewBox:i,coordinate:p,offsetTopLeft:b,position:g,reverseDirection:h,tooltipBox:this.state.lastBoundingBox,useTranslate3d:v,viewBox:y}),S=w.cssClasses,_=w.cssProperties,R=Tv(Tv({transition:m&&a?"transform ".concat(s,"ms ").concat(c):void 0},_),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&u?"visible":"hidden",position:"absolute",top:0,left:0},x);return E.createElement("div",{tabIndex:-1,className:S,style:R,ref:function(A){n.wrapperNode=A}},l)}}])}(E.PureComponent),jk=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},kk={isSsr:jk()};function dn(e){"@babel/helpers - typeof";return dn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dn(e)}function Av(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Mv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Av(Object(r),!0).forEach(function(n){nf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Av(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $k(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lk(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,bw(n.key),n)}}function Fk(e,t,r){return t&&Lk(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Bk(e,t,r){return t=Na(t),zk(e,vw()?Reflect.construct(t,r||[],Na(e).constructor):t.apply(e,r))}function zk(e,t){if(t&&(dn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qk(e)}function qk(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(vw=function(){return!!e})()}function Na(e){return Na=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Na(e)}function Hk(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ou(e,t)}function Ou(e,t){return Ou=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},Ou(e,t)}function nf(e,t,r){return t=bw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bw(e){var t=Vk(e,"string");return dn(t)=="symbol"?t:t+""}function Vk(e,t){if(dn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(dn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Gk(e){return e.dataKey}function Uk(e,t){return E.isValidElement(e)?E.cloneElement(e,t):typeof e=="function"?E.createElement(e,t):E.createElement(yk,t)}var of=function(e){function t(){return $k(this,t),Bk(this,t,arguments)}return Hk(t,e),Fk(t,[{key:"render",value:function(){var n=this,o=this.props,a=o.active,i=o.allowEscapeViewBox,s=o.animationDuration,c=o.animationEasing,l=o.content,p=o.coordinate,u=o.filterNull,m=o.isAnimationActive,b=o.offset,g=o.payload,h=o.payloadUniqBy,v=o.position,y=o.reverseDirection,x=o.useTranslate3d,w=o.viewBox,S=o.wrapperStyle,_=g??[];u&&_.length&&(_=fw(g.filter(function(C){return C.value!=null&&(C.hide!==!0||n.props.includeHidden)}),h,Gk));var R=_.length>0;return E.createElement(Dk,{allowEscapeViewBox:i,animationDuration:s,animationEasing:c,isAnimationActive:m,active:a,coordinate:p,hasPayload:R,offset:b,position:v,reverseDirection:y,useTranslate3d:x,viewBox:w,wrapperStyle:S},Uk(l,Mv(Mv({},this.props),{},{payload:_})))}}])}(E.PureComponent);nf(of,"displayName","Tooltip");nf(of,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!kk.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var Gl,Ov;function Wk(){if(Ov)return Gl;Ov=1;var e=Xt(),t=function(){return e.Date.now()};return Gl=t,Gl}var Ul,Iv;function Kk(){if(Iv)return Ul;Iv=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return Ul=t,Ul}var Wl,Dv;function Yk(){if(Dv)return Wl;Dv=1;var e=Kk(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return Wl=r,Wl}var Kl,jv;function Xk(){if(jv)return Kl;jv=1;var e=Yk(),t=wr(),r=Co(),n=NaN,o=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,i=/^0o[0-7]+$/i,s=parseInt;function c(l){if(typeof l=="number")return l;if(r(l))return n;if(t(l)){var p=typeof l.valueOf=="function"?l.valueOf():l;l=t(p)?p+"":p}if(typeof l!="string")return l===0?l:+l;l=e(l);var u=a.test(l);return u||i.test(l)?s(l.slice(2),u?2:8):o.test(l)?n:+l}return Kl=c,Kl}var Yl,kv;function Zk(){if(kv)return Yl;kv=1;var e=wr(),t=Wk(),r=Xk(),n="Expected a function",o=Math.max,a=Math.min;function i(s,c,l){var p,u,m,b,g,h,v=0,y=!1,x=!1,w=!0;if(typeof s!="function")throw new TypeError(n);c=r(c)||0,e(l)&&(y=!!l.leading,x="maxWait"in l,m=x?o(r(l.maxWait)||0,c):m,w="trailing"in l?!!l.trailing:w);function S(N){var j=p,$=u;return p=u=void 0,v=N,b=s.apply($,j),b}function _(N){return v=N,g=setTimeout(A,c),y?S(N):b}function R(N){var j=N-h,$=N-v,M=c-j;return x?a(M,m-$):M}function C(N){var j=N-h,$=N-v;return h===void 0||j>=c||j<0||x&&$>=m}function A(){var N=t();if(C(N))return P(N);g=setTimeout(A,R(N))}function P(N){return g=void 0,w&&p?S(N):(p=u=void 0,b)}function k(){g!==void 0&&clearTimeout(g),v=0,p=h=u=g=void 0}function D(){return g===void 0?b:P(t())}function L(){var N=t(),j=C(N);if(p=arguments,u=this,h=N,j){if(g===void 0)return _(h);if(x)return clearTimeout(g),g=setTimeout(A,c),S(h)}return g===void 0&&(g=setTimeout(A,c)),b}return L.cancel=k,L.flush=D,L}return Yl=i,Yl}var Xl,$v;function Jk(){if($v)return Xl;$v=1;var e=Zk(),t=wr(),r="Expected a function";function n(o,a,i){var s=!0,c=!0;if(typeof o!="function")throw new TypeError(r);return t(i)&&(s="leading"in i?!!i.leading:s,c="trailing"in i?!!i.trailing:c),e(o,a,{leading:s,maxWait:a,trailing:c})}return Xl=n,Xl}var Qk=Jk();const e$=Yt(Qk);function oo(e){"@babel/helpers - typeof";return oo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oo(e)}function Lv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ea(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Lv(Object(r),!0).forEach(function(n){t$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function t$(e,t,r){return t=r$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function r$(e){var t=n$(e,"string");return oo(t)=="symbol"?t:t+""}function n$(e,t){if(oo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(oo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function o$(e,t){return c$(e)||s$(e,t)||i$(e,t)||a$()}function a$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
191
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i$(e,t){if(e){if(typeof e=="string")return Fv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Fv(e,t)}}function Fv(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function s$(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,a,i,s=[],c=!0,l=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(p){l=!0,o=p}finally{try{if(!c&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw o}}return s}}function c$(e){if(Array.isArray(e))return e}var l$=E.forwardRef(function(e,t){var r=e.aspect,n=e.initialDimension,o=n===void 0?{width:-1,height:-1}:n,a=e.width,i=a===void 0?"100%":a,s=e.height,c=s===void 0?"100%":s,l=e.minWidth,p=l===void 0?0:l,u=e.minHeight,m=e.maxHeight,b=e.children,g=e.debounce,h=g===void 0?0:g,v=e.id,y=e.className,x=e.onResize,w=e.style,S=w===void 0?{}:w,_=E.useRef(null),R=E.useRef();R.current=x,E.useImperativeHandle(t,function(){return Object.defineProperty(_.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),_.current},configurable:!0})});var C=E.useState({containerWidth:o.width,containerHeight:o.height}),A=o$(C,2),P=A[0],k=A[1],D=E.useCallback(function(N,j){k(function($){var M=Math.round(N),G=Math.round(j);return $.containerWidth===M&&$.containerHeight===G?$:{containerWidth:M,containerHeight:G}})},[]);E.useEffect(function(){var N=function(z){var oe,Z=z[0].contentRect,te=Z.width,F=Z.height;D(te,F),(oe=R.current)===null||oe===void 0||oe.call(R,te,F)};h>0&&(N=e$(N,h,{trailing:!0,leading:!1}));var j=new ResizeObserver(N),$=_.current.getBoundingClientRect(),M=$.width,G=$.height;return D(M,G),j.observe(_.current),function(){j.disconnect()}},[D,h]);var L=E.useMemo(function(){var N=P.containerWidth,j=P.containerHeight;if(N<0||j<0)return null;da(Zo(i)||Zo(c),`The width(%s) and height(%s) are both fixed numbers,
|
|
192
|
+
maybe you don't need to use a ResponsiveContainer.`,i,c),da(!r||r>0,"The aspect(%s) must be greater than zero.",r);var $=Zo(i)?N:i,M=Zo(c)?j:c;r&&r>0&&($?M=$/r:M&&($=M*r),m&&M>m&&(M=m)),da($>0||M>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
|
193
|
+
please check the style of container, or the props width(%s) and height(%s),
|
|
194
|
+
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
|
195
|
+
height and width.`,$,M,i,c,p,u,r);var G=!Array.isArray(b)&&II(b.type).endsWith("Chart");return E.Children.map(b,function(H){return E.isValidElement(H)?E.cloneElement(H,ea({width:$,height:M},G?{style:ea({height:"100%",width:"100%",maxHeight:M,maxWidth:$},H.props.style)}:{})):H})},[r,b,c,m,u,p,P,i]);return E.createElement("div",{id:v?"".concat(v):void 0,className:or("recharts-responsive-container",y),style:ea(ea({},S),{},{width:i,height:c,minWidth:p,minHeight:u,maxHeight:m}),ref:_},L)});const u$={light:"",dark:".dark"},yw=d.createContext(null);function xw(){const e=d.useContext(yw);if(!e)throw new Error("useChart must be used within a <ChartContainer />");return e}const ww=d.forwardRef(({id:e,className:t,children:r,config:n,...o},a)=>{const i=d.useId(),s=`chart-${e||i.replace(/:/g,"")}`;return f.jsx(yw.Provider,{value:{config:n},children:f.jsxs("div",{"data-chart":s,ref:a,className:O("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",t),...o,children:[f.jsx(Sw,{id:s,config:n}),f.jsx(l$,{children:r})]})})});ww.displayName="Chart";const Sw=({id:e,config:t})=>{const r=Object.entries(t).filter(([,n])=>n.theme||n.color);return r.length?f.jsx("style",{dangerouslySetInnerHTML:{__html:Object.entries(u$).map(([n,o])=>`
|
|
196
|
+
${o} [data-chart=${e}] {
|
|
197
|
+
${r.map(([a,i])=>{var c;const s=((c=i.theme)==null?void 0:c[n])||i.color;return s?` --color-${a}: ${s};`:null}).join(`
|
|
198
|
+
`)}
|
|
199
|
+
}
|
|
200
|
+
`).join(`
|
|
201
|
+
`)}}):null},d$=of,Cw=d.forwardRef(({active:e,payload:t,className:r,indicator:n="dot",hideLabel:o=!1,hideIndicator:a=!1,label:i,labelFormatter:s,labelClassName:c,formatter:l,color:p,nameKey:u,labelKey:m},b)=>{const{config:g}=xw(),h=d.useMemo(()=>{var _;if(o||!(t!=null&&t.length))return null;const[y]=t,x=`${m||(y==null?void 0:y.dataKey)||(y==null?void 0:y.name)||"value"}`,w=Iu(g,y,x),S=!m&&typeof i=="string"?((_=g[i])==null?void 0:_.label)||i:w==null?void 0:w.label;return s?f.jsx("div",{className:O("font-medium",c),children:s(S,t)}):S?f.jsx("div",{className:O("font-medium",c),children:S}):null},[i,s,t,o,c,g,m]);if(!e||!(t!=null&&t.length))return null;const v=t.length===1&&n!=="dot";return f.jsxs("div",{ref:b,className:O("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",r),children:[v?null:h,f.jsx("div",{className:"grid gap-1.5",children:t.map((y,x)=>{const w=`${u||y.name||y.dataKey||"value"}`,S=Iu(g,y,w),_=p||y.payload.fill||y.color;return f.jsx("div",{className:O("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground",n==="dot"&&"items-center"),children:l&&(y==null?void 0:y.value)!==void 0&&y.name?l(y.value,y.name,y,x,y.payload):f.jsxs(f.Fragment,{children:[S!=null&&S.icon?f.jsx(S.icon,{}):!a&&f.jsx("div",{className:O("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":n==="dot","w-1":n==="line","w-0 border-[1.5px] border-dashed bg-transparent":n==="dashed","my-0.5":v&&n==="dashed"}),style:{"--color-bg":_,"--color-border":_}}),f.jsxs("div",{className:O("flex flex-1 justify-between leading-none",v?"items-end":"items-center"),children:[f.jsxs("div",{className:"grid gap-1.5",children:[v?h:null,f.jsx("span",{className:"text-muted-foreground",children:(S==null?void 0:S.label)||y.name})]}),y.value&&f.jsx("span",{className:"font-mono font-medium tabular-nums text-foreground",children:y.value.toLocaleString()})]})]})},y.dataKey)})})]})});Cw.displayName="ChartTooltip";const f$=rf,_w=d.forwardRef(({className:e,hideIcon:t=!1,payload:r,verticalAlign:n="bottom",nameKey:o},a)=>{const{config:i}=xw();return r!=null&&r.length?f.jsx("div",{ref:a,className:O("flex items-center justify-center gap-4",n==="top"?"pb-3":"pt-3",e),children:r.map(s=>{const c=`${o||s.dataKey||"value"}`,l=Iu(i,s,c);return f.jsxs("div",{className:O("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),children:[l!=null&&l.icon&&!t?f.jsx(l.icon,{}):f.jsx("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:s.color}}),l==null?void 0:l.label]},s.value)})}):null});_w.displayName="ChartLegend";function Iu(e,t,r){if(typeof t!="object"||t===null)return;const n="payload"in t&&typeof t.payload=="object"&&t.payload!==null?t.payload:void 0;let o=r;return r in t&&typeof t[r]=="string"?o=t[r]:n&&r in n&&typeof n[r]=="string"&&(o=n[r]),o in e?e[o]:e[r]}function _n(e){const t=d.useRef({value:e,previous:e});return d.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function _o(e){const[t,r]=d.useState(void 0);return He(()=>{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 i,s;if("borderBoxSize"in a){const c=a.borderBoxSize,l=Array.isArray(c)?c[0]:c;i=l.inlineSize,s=l.blockSize}else i=e.offsetWidth,s=e.offsetHeight;r({width:i,height:s})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var af="Checkbox",[p$,YV]=je(af),[m$,h$]=p$(af),Rw=d.forwardRef((e,t)=>{const{__scopeCheckbox:r,name:n,checked:o,defaultChecked:a,required:i,disabled:s,value:c="on",onCheckedChange:l,form:p,...u}=e,[m,b]=d.useState(null),g=de(t,S=>b(S)),h=d.useRef(!1),v=m?p||!!m.closest("form"):!0,[y=!1,x]=$e({prop:o,defaultProp:a,onChange:l}),w=d.useRef(y);return d.useEffect(()=>{const S=m==null?void 0:m.form;if(S){const _=()=>x(w.current);return S.addEventListener("reset",_),()=>S.removeEventListener("reset",_)}},[m,x]),f.jsxs(m$,{scope:r,state:y,disabled:s,children:[f.jsx(X.button,{type:"button",role:"checkbox","aria-checked":vr(y)?"mixed":y,"aria-required":i,"data-state":Tw(y),"data-disabled":s?"":void 0,disabled:s,value:c,...u,ref:g,onKeyDown:B(e.onKeyDown,S=>{S.key==="Enter"&&S.preventDefault()}),onClick:B(e.onClick,S=>{x(_=>vr(_)?!0:!_),v&&(h.current=S.isPropagationStopped(),h.current||S.stopPropagation())})}),v&&f.jsx(g$,{control:m,bubbles:!h.current,name:n,value:c,checked:y,required:i,disabled:s,form:p,style:{transform:"translateX(-100%)"},defaultChecked:vr(a)?!1:a})]})});Rw.displayName=af;var Ew="CheckboxIndicator",Pw=d.forwardRef((e,t)=>{const{__scopeCheckbox:r,forceMount:n,...o}=e,a=h$(Ew,r);return f.jsx(Le,{present:n||vr(a.state)||a.state===!0,children:f.jsx(X.span,{"data-state":Tw(a.state),"data-disabled":a.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});Pw.displayName=Ew;var g$=e=>{const{control:t,checked:r,bubbles:n=!0,defaultChecked:o,...a}=e,i=d.useRef(null),s=_n(r),c=_o(t);d.useEffect(()=>{const p=i.current,u=window.HTMLInputElement.prototype,b=Object.getOwnPropertyDescriptor(u,"checked").set;if(s!==r&&b){const g=new Event("click",{bubbles:n});p.indeterminate=vr(r),b.call(p,vr(r)?!1:r),p.dispatchEvent(g)}},[s,r,n]);const l=d.useRef(vr(r)?!1:r);return f.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:o??l.current,...a,tabIndex:-1,ref:i,style:{...e.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function vr(e){return e==="indeterminate"}function Tw(e){return vr(e)?"indeterminate":e?"checked":"unchecked"}var Nw=Rw,v$=Pw;const Aw=d.forwardRef(({className:e,...t},r)=>f.jsx(Nw,{ref:r,className:O("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:f.jsx(v$,{className:O("flex items-center justify-center text-current"),children:f.jsx(vo,{className:"h-4 w-4"})})}));Aw.displayName=Nw.displayName;const b$=Tb,y$=md,x$=gd,w$=["top","right","bottom","left"],br=Math.min,wt=Math.max,Aa=Math.round,ta=Math.floor,Wt=e=>({x:e,y:e}),S$={left:"right",right:"left",bottom:"top",top:"bottom"},C$={start:"end",end:"start"};function Du(e,t,r){return wt(e,br(t,r))}function ar(e,t){return typeof e=="function"?e(t):e}function ir(e){return e.split("-")[0]}function Rn(e){return e.split("-")[1]}function sf(e){return e==="x"?"y":"x"}function cf(e){return e==="y"?"height":"width"}function yr(e){return["top","bottom"].includes(ir(e))?"y":"x"}function lf(e){return sf(yr(e))}function _$(e,t,r){r===void 0&&(r=!1);const n=Rn(e),o=lf(e),a=cf(o);let i=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=Ma(i)),[i,Ma(i)]}function R$(e){const t=Ma(e);return[ju(e),t,ju(t)]}function ju(e){return e.replace(/start|end/g,t=>C$[t])}function E$(e,t,r){const n=["left","right"],o=["right","left"],a=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return r?t?o:n:t?n:o;case"left":case"right":return t?a:i;default:return[]}}function P$(e,t,r,n){const o=Rn(e);let a=E$(ir(e),r==="start",n);return o&&(a=a.map(i=>i+"-"+o),t&&(a=a.concat(a.map(ju)))),a}function Ma(e){return e.replace(/left|right|bottom|top/g,t=>S$[t])}function T$(e){return{top:0,right:0,bottom:0,left:0,...e}}function Mw(e){return typeof e!="number"?T$(e):{top:e,right:e,bottom:e,left:e}}function Oa(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 Bv(e,t,r){let{reference:n,floating:o}=e;const a=yr(t),i=lf(t),s=cf(i),c=ir(t),l=a==="y",p=n.x+n.width/2-o.width/2,u=n.y+n.height/2-o.height/2,m=n[s]/2-o[s]/2;let b;switch(c){case"top":b={x:p,y:n.y-o.height};break;case"bottom":b={x:p,y:n.y+n.height};break;case"right":b={x:n.x+n.width,y:u};break;case"left":b={x:n.x-o.width,y:u};break;default:b={x:n.x,y:n.y}}switch(Rn(t)){case"start":b[i]-=m*(r&&l?-1:1);break;case"end":b[i]+=m*(r&&l?-1:1);break}return b}const N$=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:i}=r,s=a.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let l=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:p,y:u}=Bv(l,n,c),m=n,b={},g=0;for(let h=0;h<s.length;h++){const{name:v,fn:y}=s[h],{x,y:w,data:S,reset:_}=await y({x:p,y:u,initialPlacement:n,placement:m,strategy:o,middlewareData:b,rects:l,platform:i,elements:{reference:e,floating:t}});p=x??p,u=w??u,b={...b,[v]:{...b[v],...S}},_&&g<=50&&(g++,typeof _=="object"&&(_.placement&&(m=_.placement),_.rects&&(l=_.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):_.rects),{x:p,y:u}=Bv(l,m,c)),h=-1)}return{x:p,y:u,placement:m,strategy:o,middlewareData:b}};async function ao(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:a,rects:i,elements:s,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:p="viewport",elementContext:u="floating",altBoundary:m=!1,padding:b=0}=ar(t,e),g=Mw(b),v=s[m?u==="floating"?"reference":"floating":u],y=Oa(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(v)))==null||r?v:v.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:l,rootBoundary:p,strategy:c})),x=u==="floating"?{x:n,y:o,width:i.floating.width,height:i.floating.height}:i.reference,w=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),S=await(a.isElement==null?void 0:a.isElement(w))?await(a.getScale==null?void 0:a.getScale(w))||{x:1,y:1}:{x:1,y:1},_=Oa(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:x,offsetParent:w,strategy:c}):x);return{top:(y.top-_.top+g.top)/S.y,bottom:(_.bottom-y.bottom+g.bottom)/S.y,left:(y.left-_.left+g.left)/S.x,right:(_.right-y.right+g.right)/S.x}}const A$=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:a,platform:i,elements:s,middlewareData:c}=t,{element:l,padding:p=0}=ar(e,t)||{};if(l==null)return{};const u=Mw(p),m={x:r,y:n},b=lf(o),g=cf(b),h=await i.getDimensions(l),v=b==="y",y=v?"top":"left",x=v?"bottom":"right",w=v?"clientHeight":"clientWidth",S=a.reference[g]+a.reference[b]-m[b]-a.floating[g],_=m[b]-a.reference[b],R=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l));let C=R?R[w]:0;(!C||!await(i.isElement==null?void 0:i.isElement(R)))&&(C=s.floating[w]||a.floating[g]);const A=S/2-_/2,P=C/2-h[g]/2-1,k=br(u[y],P),D=br(u[x],P),L=k,N=C-h[g]-D,j=C/2-h[g]/2+A,$=Du(L,j,N),M=!c.arrow&&Rn(o)!=null&&j!==$&&a.reference[g]/2-(j<L?k:D)-h[g]/2<0,G=M?j<L?j-L:j-N:0;return{[b]:m[b]+G,data:{[b]:$,centerOffset:j-$-G,...M&&{alignmentOffset:G}},reset:M}}}),M$=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:c,elements:l}=t,{mainAxis:p=!0,crossAxis:u=!0,fallbackPlacements:m,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:h=!0,...v}=ar(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const y=ir(o),x=yr(s),w=ir(s)===s,S=await(c.isRTL==null?void 0:c.isRTL(l.floating)),_=m||(w||!h?[Ma(s)]:R$(s)),R=g!=="none";!m&&R&&_.push(...P$(s,h,g,S));const C=[s,..._],A=await ao(t,v),P=[];let k=((n=a.flip)==null?void 0:n.overflows)||[];if(p&&P.push(A[y]),u){const j=_$(o,i,S);P.push(A[j[0]],A[j[1]])}if(k=[...k,{placement:o,overflows:P}],!P.every(j=>j<=0)){var D,L;const j=(((D=a.flip)==null?void 0:D.index)||0)+1,$=C[j];if($)return{data:{index:j,overflows:k},reset:{placement:$}};let M=(L=k.filter(G=>G.overflows[0]<=0).sort((G,H)=>G.overflows[1]-H.overflows[1])[0])==null?void 0:L.placement;if(!M)switch(b){case"bestFit":{var N;const G=(N=k.filter(H=>{if(R){const z=yr(H.placement);return z===x||z==="y"}return!0}).map(H=>[H.placement,H.overflows.filter(z=>z>0).reduce((z,oe)=>z+oe,0)]).sort((H,z)=>H[1]-z[1])[0])==null?void 0:N[0];G&&(M=G);break}case"initialPlacement":M=s;break}if(o!==M)return{reset:{placement:M}}}return{}}}};function zv(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function qv(e){return w$.some(t=>e[t]>=0)}const O$=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=ar(e,t);switch(n){case"referenceHidden":{const a=await ao(t,{...o,elementContext:"reference"}),i=zv(a,r.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:qv(i)}}}case"escaped":{const a=await ao(t,{...o,altBoundary:!0}),i=zv(a,r.floating);return{data:{escapedOffsets:i,escaped:qv(i)}}}default:return{}}}}};async function I$(e,t){const{placement:r,platform:n,elements:o}=e,a=await(n.isRTL==null?void 0:n.isRTL(o.floating)),i=ir(r),s=Rn(r),c=yr(r)==="y",l=["left","top"].includes(i)?-1:1,p=a&&c?-1:1,u=ar(t,e);let{mainAxis:m,crossAxis:b,alignmentAxis:g}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return s&&typeof g=="number"&&(b=s==="end"?g*-1:g),c?{x:b*p,y:m*l}:{x:m*l,y:b*p}}const D$=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:a,placement:i,middlewareData:s}=t,c=await I$(t,e);return i===((r=s.offset)==null?void 0:r.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:o+c.x,y:a+c.y,data:{...c,placement:i}}}}},j$=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:i=!1,limiter:s={fn:v=>{let{x:y,y:x}=v;return{x:y,y:x}}},...c}=ar(e,t),l={x:r,y:n},p=await ao(t,c),u=yr(ir(o)),m=sf(u);let b=l[m],g=l[u];if(a){const v=m==="y"?"top":"left",y=m==="y"?"bottom":"right",x=b+p[v],w=b-p[y];b=Du(x,b,w)}if(i){const v=u==="y"?"top":"left",y=u==="y"?"bottom":"right",x=g+p[v],w=g-p[y];g=Du(x,g,w)}const h=s.fn({...t,[m]:b,[u]:g});return{...h,data:{x:h.x-r,y:h.y-n,enabled:{[m]:a,[u]:i}}}}}},k$=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:a,middlewareData:i}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=ar(e,t),p={x:r,y:n},u=yr(o),m=sf(u);let b=p[m],g=p[u];const h=ar(s,t),v=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){const w=m==="y"?"height":"width",S=a.reference[m]-a.floating[w]+v.mainAxis,_=a.reference[m]+a.reference[w]-v.mainAxis;b<S?b=S:b>_&&(b=_)}if(l){var y,x;const w=m==="y"?"width":"height",S=["top","left"].includes(ir(o)),_=a.reference[u]-a.floating[w]+(S&&((y=i.offset)==null?void 0:y[u])||0)+(S?0:v.crossAxis),R=a.reference[u]+a.reference[w]+(S?0:((x=i.offset)==null?void 0:x[u])||0)-(S?v.crossAxis:0);g<_?g=_:g>R&&(g=R)}return{[m]:b,[u]:g}}}},$$=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:a,platform:i,elements:s}=t,{apply:c=()=>{},...l}=ar(e,t),p=await ao(t,l),u=ir(o),m=Rn(o),b=yr(o)==="y",{width:g,height:h}=a.floating;let v,y;u==="top"||u==="bottom"?(v=u,y=m===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(y=u,v=m==="end"?"top":"bottom");const x=h-p.top-p.bottom,w=g-p.left-p.right,S=br(h-p[v],x),_=br(g-p[y],w),R=!t.middlewareData.shift;let C=S,A=_;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(A=w),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(C=x),R&&!m){const k=wt(p.left,0),D=wt(p.right,0),L=wt(p.top,0),N=wt(p.bottom,0);b?A=g-2*(k!==0||D!==0?k+D:wt(p.left,p.right)):C=h-2*(L!==0||N!==0?L+N:wt(p.top,p.bottom))}await c({...t,availableWidth:A,availableHeight:C});const P=await i.getDimensions(s.floating);return g!==P.width||h!==P.height?{reset:{rects:!0}}:{}}}};function hi(){return typeof window<"u"}function En(e){return Ow(e)?(e.nodeName||"").toLowerCase():"#document"}function St(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Zt(e){var t;return(t=(Ow(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ow(e){return hi()?e instanceof Node||e instanceof St(e).Node:!1}function $t(e){return hi()?e instanceof Element||e instanceof St(e).Element:!1}function Kt(e){return hi()?e instanceof HTMLElement||e instanceof St(e).HTMLElement:!1}function Hv(e){return!hi()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof St(e).ShadowRoot}function Ro(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=Lt(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function L$(e){return["table","td","th"].includes(En(e))}function gi(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function uf(e){const t=df(),r=$t(e)?Lt(e):e;return["transform","translate","scale","rotate","perspective"].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)||["transform","translate","scale","rotate","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function F$(e){let t=xr(e);for(;Kt(t)&&!fn(t);){if(uf(t))return t;if(gi(t))return null;t=xr(t)}return null}function df(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function fn(e){return["html","body","#document"].includes(En(e))}function Lt(e){return St(e).getComputedStyle(e)}function vi(e){return $t(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function xr(e){if(En(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Hv(e)&&e.host||Zt(e);return Hv(t)?t.host:t}function Iw(e){const t=xr(e);return fn(t)?e.ownerDocument?e.ownerDocument.body:e.body:Kt(t)&&Ro(t)?t:Iw(t)}function io(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=Iw(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),i=St(o);if(a){const s=ku(i);return t.concat(i,i.visualViewport||[],Ro(o)?o:[],s&&r?io(s):[])}return t.concat(o,io(o,[],r))}function ku(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Dw(e){const t=Lt(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Kt(e),a=o?e.offsetWidth:r,i=o?e.offsetHeight:n,s=Aa(r)!==a||Aa(n)!==i;return s&&(r=a,n=i),{width:r,height:n,$:s}}function ff(e){return $t(e)?e:e.contextElement}function on(e){const t=ff(e);if(!Kt(t))return Wt(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:a}=Dw(t);let i=(a?Aa(r.width):r.width)/n,s=(a?Aa(r.height):r.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const B$=Wt(0);function jw(e){const t=St(e);return!df()||!t.visualViewport?B$:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function z$(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==St(e)?!1:t}function Lr(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),a=ff(e);let i=Wt(1);t&&(n?$t(n)&&(i=on(n)):i=on(e));const s=z$(a,r,n)?jw(a):Wt(0);let c=(o.left+s.x)/i.x,l=(o.top+s.y)/i.y,p=o.width/i.x,u=o.height/i.y;if(a){const m=St(a),b=n&&$t(n)?St(n):n;let g=m,h=ku(g);for(;h&&n&&b!==g;){const v=on(h),y=h.getBoundingClientRect(),x=Lt(h),w=y.left+(h.clientLeft+parseFloat(x.paddingLeft))*v.x,S=y.top+(h.clientTop+parseFloat(x.paddingTop))*v.y;c*=v.x,l*=v.y,p*=v.x,u*=v.y,c+=w,l+=S,g=St(h),h=ku(g)}}return Oa({width:p,height:u,x:c,y:l})}function pf(e,t){const r=vi(e).scrollLeft;return t?t.left+r:Lr(Zt(e)).left+r}function kw(e,t,r){r===void 0&&(r=!1);const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-(r?0:pf(e,n)),a=n.top+t.scrollTop;return{x:o,y:a}}function q$(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const a=o==="fixed",i=Zt(n),s=t?gi(t.floating):!1;if(n===i||s&&a)return r;let c={scrollLeft:0,scrollTop:0},l=Wt(1);const p=Wt(0),u=Kt(n);if((u||!u&&!a)&&((En(n)!=="body"||Ro(i))&&(c=vi(n)),Kt(n))){const b=Lr(n);l=on(n),p.x=b.x+n.clientLeft,p.y=b.y+n.clientTop}const m=i&&!u&&!a?kw(i,c,!0):Wt(0);return{width:r.width*l.x,height:r.height*l.y,x:r.x*l.x-c.scrollLeft*l.x+p.x+m.x,y:r.y*l.y-c.scrollTop*l.y+p.y+m.y}}function H$(e){return Array.from(e.getClientRects())}function V$(e){const t=Zt(e),r=vi(e),n=e.ownerDocument.body,o=wt(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=wt(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let i=-r.scrollLeft+pf(e);const s=-r.scrollTop;return Lt(n).direction==="rtl"&&(i+=wt(t.clientWidth,n.clientWidth)-o),{width:o,height:a,x:i,y:s}}function G$(e,t){const r=St(e),n=Zt(e),o=r.visualViewport;let a=n.clientWidth,i=n.clientHeight,s=0,c=0;if(o){a=o.width,i=o.height;const l=df();(!l||l&&t==="fixed")&&(s=o.offsetLeft,c=o.offsetTop)}return{width:a,height:i,x:s,y:c}}function U$(e,t){const r=Lr(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,a=Kt(e)?on(e):Wt(1),i=e.clientWidth*a.x,s=e.clientHeight*a.y,c=o*a.x,l=n*a.y;return{width:i,height:s,x:c,y:l}}function Vv(e,t,r){let n;if(t==="viewport")n=G$(e,r);else if(t==="document")n=V$(Zt(e));else if($t(t))n=U$(t,r);else{const o=jw(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Oa(n)}function $w(e,t){const r=xr(e);return r===t||!$t(r)||fn(r)?!1:Lt(r).position==="fixed"||$w(r,t)}function W$(e,t){const r=t.get(e);if(r)return r;let n=io(e,[],!1).filter(s=>$t(s)&&En(s)!=="body"),o=null;const a=Lt(e).position==="fixed";let i=a?xr(e):e;for(;$t(i)&&!fn(i);){const s=Lt(i),c=uf(i);!c&&s.position==="fixed"&&(o=null),(a?!c&&!o:!c&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Ro(i)&&!c&&$w(e,i))?n=n.filter(p=>p!==i):o=s,i=xr(i)}return t.set(e,n),n}function K$(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const i=[...r==="clippingAncestors"?gi(t)?[]:W$(t,this._c):[].concat(r),n],s=i[0],c=i.reduce((l,p)=>{const u=Vv(t,p,o);return l.top=wt(u.top,l.top),l.right=br(u.right,l.right),l.bottom=br(u.bottom,l.bottom),l.left=wt(u.left,l.left),l},Vv(t,s,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Y$(e){const{width:t,height:r}=Dw(e);return{width:t,height:r}}function X$(e,t,r){const n=Kt(t),o=Zt(t),a=r==="fixed",i=Lr(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const c=Wt(0);if(n||!n&&!a)if((En(t)!=="body"||Ro(o))&&(s=vi(t)),n){const m=Lr(t,!0,a,t);c.x=m.x+t.clientLeft,c.y=m.y+t.clientTop}else o&&(c.x=pf(o));const l=o&&!n&&!a?kw(o,s):Wt(0),p=i.left+s.scrollLeft-c.x-l.x,u=i.top+s.scrollTop-c.y-l.y;return{x:p,y:u,width:i.width,height:i.height}}function Zl(e){return Lt(e).position==="static"}function Gv(e,t){if(!Kt(e)||Lt(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Zt(e)===r&&(r=r.ownerDocument.body),r}function Lw(e,t){const r=St(e);if(gi(e))return r;if(!Kt(e)){let o=xr(e);for(;o&&!fn(o);){if($t(o)&&!Zl(o))return o;o=xr(o)}return r}let n=Gv(e,t);for(;n&&L$(n)&&Zl(n);)n=Gv(n,t);return n&&fn(n)&&Zl(n)&&!uf(n)?r:n||F$(e)||r}const Z$=async function(e){const t=this.getOffsetParent||Lw,r=this.getDimensions,n=await r(e.floating);return{reference:X$(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function J$(e){return Lt(e).direction==="rtl"}const Q$={convertOffsetParentRelativeRectToViewportRelativeRect:q$,getDocumentElement:Zt,getClippingRect:K$,getOffsetParent:Lw,getElementRects:Z$,getClientRects:H$,getDimensions:Y$,getScale:on,isElement:$t,isRTL:J$};function Fw(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function eL(e,t){let r=null,n;const o=Zt(e);function a(){var s;clearTimeout(n),(s=r)==null||s.disconnect(),r=null}function i(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();const l=e.getBoundingClientRect(),{left:p,top:u,width:m,height:b}=l;if(s||t(),!m||!b)return;const g=ta(u),h=ta(o.clientWidth-(p+m)),v=ta(o.clientHeight-(u+b)),y=ta(p),w={rootMargin:-g+"px "+-h+"px "+-v+"px "+-y+"px",threshold:wt(0,br(1,c))||1};let S=!0;function _(R){const C=R[0].intersectionRatio;if(C!==c){if(!S)return i();C?i(!1,C):n=setTimeout(()=>{i(!1,1e-7)},1e3)}C===1&&!Fw(l,e.getBoundingClientRect())&&i(),S=!1}try{r=new IntersectionObserver(_,{...w,root:o.ownerDocument})}catch{r=new IntersectionObserver(_,w)}r.observe(e)}return i(!0),a}function tL(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,l=ff(e),p=o||a?[...l?io(l):[],...io(t)]:[];p.forEach(y=>{o&&y.addEventListener("scroll",r,{passive:!0}),a&&y.addEventListener("resize",r)});const u=l&&s?eL(l,r):null;let m=-1,b=null;i&&(b=new ResizeObserver(y=>{let[x]=y;x&&x.target===l&&b&&(b.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var w;(w=b)==null||w.observe(t)})),r()}),l&&!c&&b.observe(l),b.observe(t));let g,h=c?Lr(e):null;c&&v();function v(){const y=Lr(e);h&&!Fw(h,y)&&r(),h=y,g=requestAnimationFrame(v)}return r(),()=>{var y;p.forEach(x=>{o&&x.removeEventListener("scroll",r),a&&x.removeEventListener("resize",r)}),u==null||u(),(y=b)==null||y.disconnect(),b=null,c&&cancelAnimationFrame(g)}}const rL=D$,nL=j$,oL=M$,aL=$$,iL=O$,Uv=A$,sL=k$,cL=(e,t,r)=>{const n=new Map,o={platform:Q$,...r},a={...o.platform,_c:n};return N$(e,t,{...o,platform:a})};var fa=typeof document<"u"?E.useLayoutEffect:E.useEffect;function Ia(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(!Ia(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)&&!Ia(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function Bw(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Wv(e,t){const r=Bw(e);return Math.round(t*r)/r}function Jl(e){const t=d.useRef(e);return fa(()=>{t.current=e}),t}function lL(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:a,floating:i}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[p,u]=d.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[m,b]=d.useState(n);Ia(m,n)||b(n);const[g,h]=d.useState(null),[v,y]=d.useState(null),x=d.useCallback(H=>{H!==R.current&&(R.current=H,h(H))},[]),w=d.useCallback(H=>{H!==C.current&&(C.current=H,y(H))},[]),S=a||g,_=i||v,R=d.useRef(null),C=d.useRef(null),A=d.useRef(p),P=c!=null,k=Jl(c),D=Jl(o),L=Jl(l),N=d.useCallback(()=>{if(!R.current||!C.current)return;const H={placement:t,strategy:r,middleware:m};D.current&&(H.platform=D.current),cL(R.current,C.current,H).then(z=>{const oe={...z,isPositioned:L.current!==!1};j.current&&!Ia(A.current,oe)&&(A.current=oe,ho.flushSync(()=>{u(oe)}))})},[m,t,r,D,L]);fa(()=>{l===!1&&A.current.isPositioned&&(A.current.isPositioned=!1,u(H=>({...H,isPositioned:!1})))},[l]);const j=d.useRef(!1);fa(()=>(j.current=!0,()=>{j.current=!1}),[]),fa(()=>{if(S&&(R.current=S),_&&(C.current=_),S&&_){if(k.current)return k.current(S,_,N);N()}},[S,_,N,k,P]);const $=d.useMemo(()=>({reference:R,floating:C,setReference:x,setFloating:w}),[x,w]),M=d.useMemo(()=>({reference:S,floating:_}),[S,_]),G=d.useMemo(()=>{const H={position:r,left:0,top:0};if(!M.floating)return H;const z=Wv(M.floating,p.x),oe=Wv(M.floating,p.y);return s?{...H,transform:"translate("+z+"px, "+oe+"px)",...Bw(M.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:z,top:oe}},[r,s,M.floating,p.x,p.y]);return d.useMemo(()=>({...p,update:N,refs:$,elements:M,floatingStyles:G}),[p,N,$,M,G])}const uL=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?Uv({element:n.current,padding:o}).fn(r):{}:n?Uv({element:n,padding:o}).fn(r):{}}}},dL=(e,t)=>({...rL(e),options:[e,t]}),fL=(e,t)=>({...nL(e),options:[e,t]}),pL=(e,t)=>({...sL(e),options:[e,t]}),mL=(e,t)=>({...oL(e),options:[e,t]}),hL=(e,t)=>({...aL(e),options:[e,t]}),gL=(e,t)=>({...iL(e),options:[e,t]}),vL=(e,t)=>({...uL(e),options:[e,t]});var bL="Arrow",zw=d.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...a}=e;return f.jsx(X.svg,{...a,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:f.jsx("polygon",{points:"0,0 30,0 15,10"})})});zw.displayName=bL;var yL=zw,mf="Popper",[qw,Jt]=je(mf),[xL,Hw]=qw(mf),Vw=e=>{const{__scopePopper:t,children:r}=e,[n,o]=d.useState(null);return f.jsx(xL,{scope:t,anchor:n,onAnchorChange:o,children:r})};Vw.displayName=mf;var Gw="PopperAnchor",Uw=d.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,a=Hw(Gw,r),i=d.useRef(null),s=de(t,i);return d.useEffect(()=>{a.onAnchorChange((n==null?void 0:n.current)||i.current)}),n?null:f.jsx(X.div,{...o,ref:s})});Uw.displayName=Gw;var hf="PopperContent",[wL,SL]=qw(hf),Ww=d.forwardRef((e,t)=>{var q,W,re,J,ne,V;const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:a="center",alignOffset:i=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:p=0,sticky:u="partial",hideWhenDetached:m=!1,updatePositionStrategy:b="optimized",onPlaced:g,...h}=e,v=Hw(hf,r),[y,x]=d.useState(null),w=de(t,ae=>x(ae)),[S,_]=d.useState(null),R=_o(S),C=(R==null?void 0:R.width)??0,A=(R==null?void 0:R.height)??0,P=n+(a!=="center"?"-"+a:""),k=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},D=Array.isArray(l)?l:[l],L=D.length>0,N={padding:k,boundary:D.filter(_L),altBoundary:L},{refs:j,floatingStyles:$,placement:M,isPositioned:G,middlewareData:H}=lL({strategy:"fixed",placement:P,whileElementsMounted:(...ae)=>tL(...ae,{animationFrame:b==="always"}),elements:{reference:v.anchor},middleware:[dL({mainAxis:o+A,alignmentAxis:i}),c&&fL({mainAxis:!0,crossAxis:!1,limiter:u==="partial"?pL():void 0,...N}),c&&mL({...N}),hL({...N,apply:({elements:ae,rects:I,availableWidth:ee,availableHeight:pe})=>{const{width:me,height:ge}=I.reference,fe=ae.floating.style;fe.setProperty("--radix-popper-available-width",`${ee}px`),fe.setProperty("--radix-popper-available-height",`${pe}px`),fe.setProperty("--radix-popper-anchor-width",`${me}px`),fe.setProperty("--radix-popper-anchor-height",`${ge}px`)}}),S&&vL({element:S,padding:s}),RL({arrowWidth:C,arrowHeight:A}),m&&gL({strategy:"referenceHidden",...N})]}),[z,oe]=Xw(M),Z=Te(g);He(()=>{G&&(Z==null||Z())},[G,Z]);const te=(q=H.arrow)==null?void 0:q.x,F=(W=H.arrow)==null?void 0:W.y,U=((re=H.arrow)==null?void 0:re.centerOffset)!==0,[Q,K]=d.useState();return He(()=>{y&&K(window.getComputedStyle(y).zIndex)},[y]),f.jsx("div",{ref:j.setFloating,"data-radix-popper-content-wrapper":"",style:{...$,transform:G?$.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Q,"--radix-popper-transform-origin":[(J=H.transformOrigin)==null?void 0:J.x,(ne=H.transformOrigin)==null?void 0:ne.y].join(" "),...((V=H.hide)==null?void 0:V.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:f.jsx(wL,{scope:r,placedSide:z,onArrowChange:_,arrowX:te,arrowY:F,shouldHideArrow:U,children:f.jsx(X.div,{"data-side":z,"data-align":oe,...h,ref:w,style:{...h.style,animation:G?void 0:"none"}})})})});Ww.displayName=hf;var Kw="PopperArrow",CL={top:"bottom",right:"left",bottom:"top",left:"right"},Yw=d.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,a=SL(Kw,n),i=CL[a.placedSide];return f.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[i]: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:f.jsx(yL,{...o,ref:r,style:{...o.style,display:"block"}})})});Yw.displayName=Kw;function _L(e){return e!==null}var RL=e=>({name:"transformOrigin",options:e,fn(t){var v,y,x;const{placement:r,rects:n,middlewareData:o}=t,i=((v=o.arrow)==null?void 0:v.centerOffset)!==0,s=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[l,p]=Xw(r),u={start:"0%",center:"50%",end:"100%"}[p],m=(((y=o.arrow)==null?void 0:y.x)??0)+s/2,b=(((x=o.arrow)==null?void 0:x.y)??0)+c/2;let g="",h="";return l==="bottom"?(g=i?u:`${m}px`,h=`${-c}px`):l==="top"?(g=i?u:`${m}px`,h=`${n.floating.height+c}px`):l==="right"?(g=`${-c}px`,h=i?u:`${b}px`):l==="left"&&(g=`${n.floating.width+c}px`,h=i?u:`${b}px`),{data:{x:g,y:h}}}});function Xw(e){const[t,r="center"]=e.split("-");return[t,r]}var Pn=Vw,Tn=Uw,Eo=Ww,Po=Yw,Ql="rovingFocusGroup.onEntryFocus",EL={bubbles:!1,cancelable:!0},bi="RovingFocusGroup",[$u,Zw,PL]=sr(bi),[TL,Qt]=je(bi,[PL]),[NL,AL]=TL(bi),Jw=d.forwardRef((e,t)=>f.jsx($u.Provider,{scope:e.__scopeRovingFocusGroup,children:f.jsx($u.Slot,{scope:e.__scopeRovingFocusGroup,children:f.jsx(ML,{...e,ref:t})})}));Jw.displayName=bi;var ML=d.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:l,preventScrollOnEntryFocus:p=!1,...u}=e,m=d.useRef(null),b=de(t,m),g=Ft(a),[h=null,v]=$e({prop:i,defaultProp:s,onChange:c}),[y,x]=d.useState(!1),w=Te(l),S=Zw(r),_=d.useRef(!1),[R,C]=d.useState(0);return d.useEffect(()=>{const A=m.current;if(A)return A.addEventListener(Ql,w),()=>A.removeEventListener(Ql,w)},[w]),f.jsx(NL,{scope:r,orientation:n,dir:g,loop:o,currentTabStopId:h,onItemFocus:d.useCallback(A=>v(A),[v]),onItemShiftTab:d.useCallback(()=>x(!0),[]),onFocusableItemAdd:d.useCallback(()=>C(A=>A+1),[]),onFocusableItemRemove:d.useCallback(()=>C(A=>A-1),[]),children:f.jsx(X.div,{tabIndex:y||R===0?-1:0,"data-orientation":n,...u,ref:b,style:{outline:"none",...e.style},onMouseDown:B(e.onMouseDown,()=>{_.current=!0}),onFocus:B(e.onFocus,A=>{const P=!_.current;if(A.target===A.currentTarget&&P&&!y){const k=new CustomEvent(Ql,EL);if(A.currentTarget.dispatchEvent(k),!k.defaultPrevented){const D=S().filter(M=>M.focusable),L=D.find(M=>M.active),N=D.find(M=>M.id===h),$=[L,N,...D].filter(Boolean).map(M=>M.ref.current);t0($,p)}}_.current=!1}),onBlur:B(e.onBlur,()=>x(!1))})})}),Qw="RovingFocusGroupItem",e0=d.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,...i}=e,s=Ue(),c=a||s,l=AL(Qw,r),p=l.currentTabStopId===c,u=Zw(r),{onFocusableItemAdd:m,onFocusableItemRemove:b}=l;return d.useEffect(()=>{if(n)return m(),()=>b()},[n,m,b]),f.jsx($u.ItemSlot,{scope:r,id:c,focusable:n,active:o,children:f.jsx(X.span,{tabIndex:p?0:-1,"data-orientation":l.orientation,...i,ref:t,onMouseDown:B(e.onMouseDown,g=>{n?l.onItemFocus(c):g.preventDefault()}),onFocus:B(e.onFocus,()=>l.onItemFocus(c)),onKeyDown:B(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){l.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const h=DL(g,l.orientation,l.dir);if(h!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let y=u().filter(x=>x.focusable).map(x=>x.ref.current);if(h==="last")y.reverse();else if(h==="prev"||h==="next"){h==="prev"&&y.reverse();const x=y.indexOf(g.currentTarget);y=l.loop?jL(y,x+1):y.slice(x+1)}setTimeout(()=>t0(y))}})})})});e0.displayName=Qw;var OL={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function IL(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function DL(e,t,r){const n=IL(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return OL[n]}function t0(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function jL(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var To=Jw,No=e0,Lu=["Enter"," "],kL=["ArrowDown","PageUp","Home"],r0=["ArrowUp","PageDown","End"],$L=[...kL,...r0],LL={ltr:[...Lu,"ArrowRight"],rtl:[...Lu,"ArrowLeft"]},FL={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Ao="Menu",[so,BL,zL]=sr(Ao),[Ur,Mo]=je(Ao,[zL,Jt,Qt]),Oo=Jt(),n0=Qt(),[o0,Sr]=Ur(Ao),[qL,Io]=Ur(Ao),a0=e=>{const{__scopeMenu:t,open:r=!1,children:n,dir:o,onOpenChange:a,modal:i=!0}=e,s=Oo(t),[c,l]=d.useState(null),p=d.useRef(!1),u=Te(a),m=Ft(o);return d.useEffect(()=>{const b=()=>{p.current=!0,document.addEventListener("pointerdown",g,{capture:!0,once:!0}),document.addEventListener("pointermove",g,{capture:!0,once:!0})},g=()=>p.current=!1;return document.addEventListener("keydown",b,{capture:!0}),()=>{document.removeEventListener("keydown",b,{capture:!0}),document.removeEventListener("pointerdown",g,{capture:!0}),document.removeEventListener("pointermove",g,{capture:!0})}},[]),f.jsx(Pn,{...s,children:f.jsx(o0,{scope:t,open:r,onOpenChange:u,content:c,onContentChange:l,children:f.jsx(qL,{scope:t,onClose:d.useCallback(()=>u(!1),[u]),isUsingKeyboardRef:p,dir:m,modal:i,children:n})})})};a0.displayName=Ao;var HL="MenuAnchor",gf=d.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,o=Oo(r);return f.jsx(Tn,{...o,...n,ref:t})});gf.displayName=HL;var vf="MenuPortal",[VL,i0]=Ur(vf,{forceMount:void 0}),s0=e=>{const{__scopeMenu:t,forceMount:r,children:n,container:o}=e,a=Sr(vf,t);return f.jsx(VL,{scope:t,forceMount:r,children:f.jsx(Le,{present:r||a.open,children:f.jsx(zr,{asChild:!0,container:o,children:n})})})};s0.displayName=vf;var Pt="MenuContent",[GL,bf]=Ur(Pt),c0=d.forwardRef((e,t)=>{const r=i0(Pt,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,a=Sr(Pt,e.__scopeMenu),i=Io(Pt,e.__scopeMenu);return f.jsx(so.Provider,{scope:e.__scopeMenu,children:f.jsx(Le,{present:n||a.open,children:f.jsx(so.Slot,{scope:e.__scopeMenu,children:i.modal?f.jsx(UL,{...o,ref:t}):f.jsx(WL,{...o,ref:t})})})})}),UL=d.forwardRef((e,t)=>{const r=Sr(Pt,e.__scopeMenu),n=d.useRef(null),o=de(t,n);return d.useEffect(()=>{const a=n.current;if(a)return ei(a)},[]),f.jsx(yf,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:B(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),WL=d.forwardRef((e,t)=>{const r=Sr(Pt,e.__scopeMenu);return f.jsx(yf,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),yf=d.forwardRef((e,t)=>{const{__scopeMenu:r,loop:n=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEntryFocus:c,onEscapeKeyDown:l,onPointerDownOutside:p,onFocusOutside:u,onInteractOutside:m,onDismiss:b,disableOutsideScroll:g,...h}=e,v=Sr(Pt,r),y=Io(Pt,r),x=Oo(r),w=n0(r),S=BL(r),[_,R]=d.useState(null),C=d.useRef(null),A=de(t,C,v.onContentChange),P=d.useRef(0),k=d.useRef(""),D=d.useRef(0),L=d.useRef(null),N=d.useRef("right"),j=d.useRef(0),$=g?yo:d.Fragment,M=g?{as:st,allowPinchZoom:!0}:void 0,G=z=>{var q,W;const oe=k.current+z,Z=S().filter(re=>!re.disabled),te=document.activeElement,F=(q=Z.find(re=>re.ref.current===te))==null?void 0:q.textValue,U=Z.map(re=>re.textValue),Q=a2(U,oe,F),K=(W=Z.find(re=>re.textValue===Q))==null?void 0:W.ref.current;(function re(J){k.current=J,window.clearTimeout(P.current),J!==""&&(P.current=window.setTimeout(()=>re(""),1e3))})(oe),K&&setTimeout(()=>K.focus())};d.useEffect(()=>()=>window.clearTimeout(P.current),[]),Ja();const H=d.useCallback(z=>{var Z,te;return N.current===((Z=L.current)==null?void 0:Z.side)&&s2(z,(te=L.current)==null?void 0:te.area)},[]);return f.jsx(GL,{scope:r,searchRef:k,onItemEnter:d.useCallback(z=>{H(z)&&z.preventDefault()},[H]),onItemLeave:d.useCallback(z=>{var oe;H(z)||((oe=C.current)==null||oe.focus(),R(null))},[H]),onTriggerLeave:d.useCallback(z=>{H(z)&&z.preventDefault()},[H]),pointerGraceTimerRef:D,onPointerGraceIntentChange:d.useCallback(z=>{L.current=z},[]),children:f.jsx($,{...M,children:f.jsx(bo,{asChild:!0,trapped:o,onMountAutoFocus:B(a,z=>{var oe;z.preventDefault(),(oe=C.current)==null||oe.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:f.jsx(lr,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:p,onFocusOutside:u,onInteractOutside:m,onDismiss:b,children:f.jsx(To,{asChild:!0,...w,dir:y.dir,orientation:"vertical",loop:n,currentTabStopId:_,onCurrentTabStopIdChange:R,onEntryFocus:B(c,z=>{y.isUsingKeyboardRef.current||z.preventDefault()}),preventScrollOnEntryFocus:!0,children:f.jsx(Eo,{role:"menu","aria-orientation":"vertical","data-state":R0(v.open),"data-radix-menu-content":"",dir:y.dir,...x,...h,ref:A,style:{outline:"none",...h.style},onKeyDown:B(h.onKeyDown,z=>{const Z=z.target.closest("[data-radix-menu-content]")===z.currentTarget,te=z.ctrlKey||z.altKey||z.metaKey,F=z.key.length===1;Z&&(z.key==="Tab"&&z.preventDefault(),!te&&F&&G(z.key));const U=C.current;if(z.target!==U||!$L.includes(z.key))return;z.preventDefault();const K=S().filter(q=>!q.disabled).map(q=>q.ref.current);r0.includes(z.key)&&K.reverse(),n2(K)}),onBlur:B(e.onBlur,z=>{z.currentTarget.contains(z.target)||(window.clearTimeout(P.current),k.current="")}),onPointerMove:B(e.onPointerMove,co(z=>{const oe=z.target,Z=j.current!==z.clientX;if(z.currentTarget.contains(oe)&&Z){const te=z.clientX>j.current?"right":"left";N.current=te,j.current=z.clientX}}))})})})})})})});c0.displayName=Pt;var KL="MenuGroup",xf=d.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return f.jsx(X.div,{role:"group",...n,ref:t})});xf.displayName=KL;var YL="MenuLabel",l0=d.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return f.jsx(X.div,{...n,ref:t})});l0.displayName=YL;var Da="MenuItem",Kv="menu.itemSelect",yi=d.forwardRef((e,t)=>{const{disabled:r=!1,onSelect:n,...o}=e,a=d.useRef(null),i=Io(Da,e.__scopeMenu),s=bf(Da,e.__scopeMenu),c=de(t,a),l=d.useRef(!1),p=()=>{const u=a.current;if(!r&&u){const m=new CustomEvent(Kv,{bubbles:!0,cancelable:!0});u.addEventListener(Kv,b=>n==null?void 0:n(b),{once:!0}),Xn(u,m),m.defaultPrevented?l.current=!1:i.onClose()}};return f.jsx(u0,{...o,ref:c,disabled:r,onClick:B(e.onClick,p),onPointerDown:u=>{var m;(m=e.onPointerDown)==null||m.call(e,u),l.current=!0},onPointerUp:B(e.onPointerUp,u=>{var m;l.current||(m=u.currentTarget)==null||m.click()}),onKeyDown:B(e.onKeyDown,u=>{const m=s.searchRef.current!=="";r||m&&u.key===" "||Lu.includes(u.key)&&(u.currentTarget.click(),u.preventDefault())})})});yi.displayName=Da;var u0=d.forwardRef((e,t)=>{const{__scopeMenu:r,disabled:n=!1,textValue:o,...a}=e,i=bf(Da,r),s=n0(r),c=d.useRef(null),l=de(t,c),[p,u]=d.useState(!1),[m,b]=d.useState("");return d.useEffect(()=>{const g=c.current;g&&b((g.textContent??"").trim())},[a.children]),f.jsx(so.ItemSlot,{scope:r,disabled:n,textValue:o??m,children:f.jsx(No,{asChild:!0,...s,focusable:!n,children:f.jsx(X.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0,...a,ref:l,onPointerMove:B(e.onPointerMove,co(g=>{n?i.onItemLeave(g):(i.onItemEnter(g),g.defaultPrevented||g.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:B(e.onPointerLeave,co(g=>i.onItemLeave(g))),onFocus:B(e.onFocus,()=>u(!0)),onBlur:B(e.onBlur,()=>u(!1))})})})}),XL="MenuCheckboxItem",d0=d.forwardRef((e,t)=>{const{checked:r=!1,onCheckedChange:n,...o}=e;return f.jsx(g0,{scope:e.__scopeMenu,checked:r,children:f.jsx(yi,{role:"menuitemcheckbox","aria-checked":ja(r)?"mixed":r,...o,ref:t,"data-state":Cf(r),onSelect:B(o.onSelect,()=>n==null?void 0:n(ja(r)?!0:!r),{checkForDefaultPrevented:!1})})})});d0.displayName=XL;var f0="MenuRadioGroup",[ZL,JL]=Ur(f0,{value:void 0,onValueChange:()=>{}}),p0=d.forwardRef((e,t)=>{const{value:r,onValueChange:n,...o}=e,a=Te(n);return f.jsx(ZL,{scope:e.__scopeMenu,value:r,onValueChange:a,children:f.jsx(xf,{...o,ref:t})})});p0.displayName=f0;var m0="MenuRadioItem",h0=d.forwardRef((e,t)=>{const{value:r,...n}=e,o=JL(m0,e.__scopeMenu),a=r===o.value;return f.jsx(g0,{scope:e.__scopeMenu,checked:a,children:f.jsx(yi,{role:"menuitemradio","aria-checked":a,...n,ref:t,"data-state":Cf(a),onSelect:B(n.onSelect,()=>{var i;return(i=o.onValueChange)==null?void 0:i.call(o,r)},{checkForDefaultPrevented:!1})})})});h0.displayName=m0;var wf="MenuItemIndicator",[g0,QL]=Ur(wf,{checked:!1}),v0=d.forwardRef((e,t)=>{const{__scopeMenu:r,forceMount:n,...o}=e,a=QL(wf,r);return f.jsx(Le,{present:n||ja(a.checked)||a.checked===!0,children:f.jsx(X.span,{...o,ref:t,"data-state":Cf(a.checked)})})});v0.displayName=wf;var e2="MenuSeparator",b0=d.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return f.jsx(X.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});b0.displayName=e2;var t2="MenuArrow",y0=d.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,o=Oo(r);return f.jsx(Po,{...o,...n,ref:t})});y0.displayName=t2;var Sf="MenuSub",[r2,x0]=Ur(Sf),w0=e=>{const{__scopeMenu:t,children:r,open:n=!1,onOpenChange:o}=e,a=Sr(Sf,t),i=Oo(t),[s,c]=d.useState(null),[l,p]=d.useState(null),u=Te(o);return d.useEffect(()=>(a.open===!1&&u(!1),()=>u(!1)),[a.open,u]),f.jsx(Pn,{...i,children:f.jsx(o0,{scope:t,open:n,onOpenChange:u,content:l,onContentChange:p,children:f.jsx(r2,{scope:t,contentId:Ue(),triggerId:Ue(),trigger:s,onTriggerChange:c,children:r})})})};w0.displayName=Sf;var Vn="MenuSubTrigger",S0=d.forwardRef((e,t)=>{const r=Sr(Vn,e.__scopeMenu),n=Io(Vn,e.__scopeMenu),o=x0(Vn,e.__scopeMenu),a=bf(Vn,e.__scopeMenu),i=d.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:c}=a,l={__scopeMenu:e.__scopeMenu},p=d.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return d.useEffect(()=>p,[p]),d.useEffect(()=>{const u=s.current;return()=>{window.clearTimeout(u),c(null)}},[s,c]),f.jsx(gf,{asChild:!0,...l,children:f.jsx(u0,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":o.contentId,"data-state":R0(r.open),...e,ref:go(t,o.onTriggerChange),onClick:u=>{var m;(m=e.onClick)==null||m.call(e,u),!(e.disabled||u.defaultPrevented)&&(u.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:B(e.onPointerMove,co(u=>{a.onItemEnter(u),!u.defaultPrevented&&!e.disabled&&!r.open&&!i.current&&(a.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{r.onOpenChange(!0),p()},100))})),onPointerLeave:B(e.onPointerLeave,co(u=>{var b,g;p();const m=(b=r.content)==null?void 0:b.getBoundingClientRect();if(m){const h=(g=r.content)==null?void 0:g.dataset.side,v=h==="right",y=v?-5:5,x=m[v?"left":"right"],w=m[v?"right":"left"];a.onPointerGraceIntentChange({area:[{x:u.clientX+y,y:u.clientY},{x,y:m.top},{x:w,y:m.top},{x:w,y:m.bottom},{x,y:m.bottom}],side:h}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(u),u.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:B(e.onKeyDown,u=>{var b;const m=a.searchRef.current!=="";e.disabled||m&&u.key===" "||LL[n.dir].includes(u.key)&&(r.onOpenChange(!0),(b=r.content)==null||b.focus(),u.preventDefault())})})})});S0.displayName=Vn;var C0="MenuSubContent",_0=d.forwardRef((e,t)=>{const r=i0(Pt,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,a=Sr(Pt,e.__scopeMenu),i=Io(Pt,e.__scopeMenu),s=x0(C0,e.__scopeMenu),c=d.useRef(null),l=de(t,c);return f.jsx(so.Provider,{scope:e.__scopeMenu,children:f.jsx(Le,{present:n||a.open,children:f.jsx(so.Slot,{scope:e.__scopeMenu,children:f.jsx(yf,{id:s.contentId,"aria-labelledby":s.triggerId,...o,ref:l,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:p=>{var u;i.isUsingKeyboardRef.current&&((u=c.current)==null||u.focus()),p.preventDefault()},onCloseAutoFocus:p=>p.preventDefault(),onFocusOutside:B(e.onFocusOutside,p=>{p.target!==s.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:B(e.onEscapeKeyDown,p=>{i.onClose(),p.preventDefault()}),onKeyDown:B(e.onKeyDown,p=>{var b;const u=p.currentTarget.contains(p.target),m=FL[i.dir].includes(p.key);u&&m&&(a.onOpenChange(!1),(b=s.trigger)==null||b.focus(),p.preventDefault())})})})})})});_0.displayName=C0;function R0(e){return e?"open":"closed"}function ja(e){return e==="indeterminate"}function Cf(e){return ja(e)?"indeterminate":e?"checked":"unchecked"}function n2(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function o2(e,t){return e.map((r,n)=>e[(t+n)%e.length])}function a2(e,t,r){const o=t.length>1&&Array.from(t).every(l=>l===t[0])?t[0]:t,a=r?e.indexOf(r):-1;let i=o2(e,Math.max(a,0));o.length===1&&(i=i.filter(l=>l!==r));const c=i.find(l=>l.toLowerCase().startsWith(o.toLowerCase()));return c!==r?c:void 0}function i2(e,t){const{x:r,y:n}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const s=t[a].x,c=t[a].y,l=t[i].x,p=t[i].y;c>n!=p>n&&r<(l-s)*(n-c)/(p-c)+s&&(o=!o)}return o}function s2(e,t){if(!t)return!1;const r={x:e.clientX,y:e.clientY};return i2(r,t)}function co(e){return t=>t.pointerType==="mouse"?e(t):void 0}var _f=a0,Rf=gf,Ef=s0,Pf=c0,Tf=xf,Nf=l0,Af=yi,Mf=d0,Of=p0,If=h0,Df=v0,jf=b0,kf=y0,$f=w0,Lf=S0,Ff=_0,Bf="ContextMenu",[c2,XV]=je(Bf,[Mo]),ct=Mo(),[l2,E0]=c2(Bf),P0=e=>{const{__scopeContextMenu:t,children:r,onOpenChange:n,dir:o,modal:a=!0}=e,[i,s]=d.useState(!1),c=ct(t),l=Te(n),p=d.useCallback(u=>{s(u),l(u)},[l]);return f.jsx(l2,{scope:t,open:i,onOpenChange:p,modal:a,children:f.jsx(_f,{...c,dir:o,open:i,onOpenChange:p,modal:a,children:r})})};P0.displayName=Bf;var T0="ContextMenuTrigger",N0=d.forwardRef((e,t)=>{const{__scopeContextMenu:r,disabled:n=!1,...o}=e,a=E0(T0,r),i=ct(r),s=d.useRef({x:0,y:0}),c=d.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...s.current})}),l=d.useRef(0),p=d.useCallback(()=>window.clearTimeout(l.current),[]),u=m=>{s.current={x:m.clientX,y:m.clientY},a.onOpenChange(!0)};return d.useEffect(()=>p,[p]),d.useEffect(()=>void(n&&p()),[n,p]),f.jsxs(f.Fragment,{children:[f.jsx(Rf,{...i,virtualRef:c}),f.jsx(X.span,{"data-state":a.open?"open":"closed","data-disabled":n?"":void 0,...o,ref:t,style:{WebkitTouchCallout:"none",...e.style},onContextMenu:n?e.onContextMenu:B(e.onContextMenu,m=>{p(),u(m),m.preventDefault()}),onPointerDown:n?e.onPointerDown:B(e.onPointerDown,ra(m=>{p(),l.current=window.setTimeout(()=>u(m),700)})),onPointerMove:n?e.onPointerMove:B(e.onPointerMove,ra(p)),onPointerCancel:n?e.onPointerCancel:B(e.onPointerCancel,ra(p)),onPointerUp:n?e.onPointerUp:B(e.onPointerUp,ra(p))})]})});N0.displayName=T0;var u2="ContextMenuPortal",A0=e=>{const{__scopeContextMenu:t,...r}=e,n=ct(t);return f.jsx(Ef,{...n,...r})};A0.displayName=u2;var M0="ContextMenuContent",O0=d.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=E0(M0,r),a=ct(r),i=d.useRef(!1);return f.jsx(Pf,{...a,...n,ref:t,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:s=>{var c;(c=e.onCloseAutoFocus)==null||c.call(e,s),!s.defaultPrevented&&i.current&&s.preventDefault(),i.current=!1},onInteractOutside:s=>{var c;(c=e.onInteractOutside)==null||c.call(e,s),!s.defaultPrevented&&!o.modal&&(i.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});O0.displayName=M0;var d2="ContextMenuGroup",I0=d.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ct(r);return f.jsx(Tf,{...o,...n,ref:t})});I0.displayName=d2;var f2="ContextMenuLabel",D0=d.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ct(r);return f.jsx(Nf,{...o,...n,ref:t})});D0.displayName=f2;var p2="ContextMenuItem",j0=d.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ct(r);return f.jsx(Af,{...o,...n,ref:t})});j0.displayName=p2;var m2="ContextMenuCheckboxItem",k0=d.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ct(r);return f.jsx(Mf,{...o,...n,ref:t})});k0.displayName=m2;var h2="ContextMenuRadioGroup",$0=d.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ct(r);return f.jsx(Of,{...o,...n,ref:t})});$0.displayName=h2;var g2="ContextMenuRadioItem",L0=d.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ct(r);return f.jsx(If,{...o,...n,ref:t})});L0.displayName=g2;var v2="ContextMenuItemIndicator",F0=d.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ct(r);return f.jsx(Df,{...o,...n,ref:t})});F0.displayName=v2;var b2="ContextMenuSeparator",B0=d.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ct(r);return f.jsx(jf,{...o,...n,ref:t})});B0.displayName=b2;var y2="ContextMenuArrow",x2=d.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ct(r);return f.jsx(kf,{...o,...n,ref:t})});x2.displayName=y2;var w2="ContextMenuSub",z0=e=>{const{__scopeContextMenu:t,children:r,onOpenChange:n,open:o,defaultOpen:a}=e,i=ct(t),[s,c]=$e({prop:o,defaultProp:a,onChange:n});return f.jsx($f,{...i,open:s,onOpenChange:c,children:r})};z0.displayName=w2;var S2="ContextMenuSubTrigger",q0=d.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ct(r);return f.jsx(Lf,{...o,...n,ref:t})});q0.displayName=S2;var C2="ContextMenuSubContent",H0=d.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ct(r);return f.jsx(Ff,{...o,...n,ref:t,style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});H0.displayName=C2;function ra(e){return t=>t.pointerType!=="mouse"?e(t):void 0}var _2=P0,R2=N0,V0=A0,G0=O0,E2=I0,U0=D0,W0=j0,K0=k0,P2=$0,Y0=L0,X0=F0,Z0=B0,T2=z0,J0=q0,Q0=H0;const N2=_2,A2=R2,M2=E2,O2=V0,I2=T2,D2=P2,eS=d.forwardRef(({className:e,inset:t,children:r,...n},o)=>f.jsxs(J0,{ref:o,className:O("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",t&&"pl-8",e),...n,children:[r,f.jsx(jr,{className:"ml-auto h-4 w-4"})]}));eS.displayName=J0.displayName;const tS=d.forwardRef(({className:e,...t},r)=>f.jsx(Q0,{ref:r,className:O("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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 origin-[--radix-context-menu-content-transform-origin]",e),...t}));tS.displayName=Q0.displayName;const rS=d.forwardRef(({className:e,...t},r)=>f.jsx(V0,{children:f.jsx(G0,{ref:r,className:O("z-50 max-h-[--radix-context-menu-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md 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 origin-[--radix-context-menu-content-transform-origin]",e),...t})}));rS.displayName=G0.displayName;const nS=d.forwardRef(({className:e,inset:t,...r},n)=>f.jsx(W0,{ref:n,className:O("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...r}));nS.displayName=W0.displayName;const oS=d.forwardRef(({className:e,children:t,checked:r,...n},o)=>f.jsxs(K0,{ref:o,className:O("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:r,...n,children:[f.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:f.jsx(X0,{children:f.jsx(vo,{className:"h-4 w-4"})})}),t]}));oS.displayName=K0.displayName;const aS=d.forwardRef(({className:e,children:t,...r},n)=>f.jsxs(Y0,{ref:n,className:O("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[f.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:f.jsx(X0,{children:f.jsx(Za,{className:"h-4 w-4 fill-current"})})}),t]}));aS.displayName=Y0.displayName;const iS=d.forwardRef(({className:e,inset:t,...r},n)=>f.jsx(U0,{ref:n,className:O("px-2 py-1.5 text-sm font-semibold text-foreground",t&&"pl-8",e),...r}));iS.displayName=U0.displayName;const sS=d.forwardRef(({className:e,...t},r)=>f.jsx(Z0,{ref:r,className:O("-mx-1 my-1 h-px bg-border",e),...t}));sS.displayName=Z0.displayName;const cS=({className:e,...t})=>f.jsx("span",{className:O("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});cS.displayName="ContextMenuShortcut";const j2=ti,k2=ri,lS=ni,$2=qr,zf=d.forwardRef(({className:e,...t},r)=>f.jsx(xn,{ref:r,className:O("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));zf.displayName=xn.displayName;const uS=d.forwardRef(({className:e,children:t,...r},n)=>f.jsxs(lS,{children:[f.jsx(zf,{}),f.jsxs(wn,{ref:n,className:O("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...r,children:[t,f.jsxs(qr,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[f.jsx(wd,{className:"h-4 w-4"}),f.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));uS.displayName=wn.displayName;const dS=({className:e,...t})=>f.jsx("div",{className:O("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});dS.displayName="DialogHeader";const fS=({className:e,...t})=>f.jsx("div",{className:O("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});fS.displayName="DialogFooter";const pS=d.forwardRef(({className:e,...t},r)=>f.jsx(Sn,{ref:r,className:O("text-lg font-semibold leading-none tracking-tight",e),...t}));pS.displayName=Sn.displayName;const mS=d.forwardRef(({className:e,...t},r)=>f.jsx(Cn,{ref:r,className:O("text-sm text-muted-foreground",e),...t}));mS.displayName=Cn.displayName;function L2(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}const hS=E.createContext({drawerRef:{current:null},overlayRef:{current:null},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,handleOnly:!1,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},closeDrawer:()=>{},direction:"bottom",shouldAnimate:{current:!0},shouldScaleBackground:!1,setBackgroundColorOnScale:!0,noBodyStyles:!1,container:null,autoFocus:!1}),Do=()=>{const e=E.useContext(hS);if(!e)throw new Error("useDrawerContext must be used within a Drawer.Root");return e};L2(`[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(
|
|
202
|
+
[data-state=closed]
|
|
203
|
+
){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,var(--initial-transform,100%),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform,100%),0)}}@keyframes slideFromTop{from{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}}@keyframes slideFromLeft{from{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}}@keyframes slideFromRight{from{transform:translate3d(var(--initial-transform,100%),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform,100%),0,0)}}`);function F2(){const e=navigator.userAgent;return typeof window<"u"&&(/Firefox/.test(e)&&/Mobile/.test(e)||/FxiOS/.test(e))}function B2(){return qf(/^Mac/)}function z2(){return qf(/^iPhone/)}function Yv(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function q2(){return qf(/^iPad/)||B2()&&navigator.maxTouchPoints>1}function gS(){return z2()||q2()}function qf(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):void 0}const H2=24,V2=typeof window<"u"?E.useLayoutEffect:E.useEffect;function Xv(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}const eu=typeof document<"u"&&window.visualViewport;function Zv(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function vS(e){for(Zv(e)&&(e=e.parentElement);e&&!Zv(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}const G2=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let na=0,tu;function U2(e={}){let{isDisabled:t}=e;V2(()=>{if(!t)return na++,na===1&&gS()&&(tu=W2()),()=>{na--,na===0&&(tu==null||tu())}},[t])}function W2(){let e,t=0,r=u=>{e=vS(u.target),!(e===document.documentElement&&e===document.body)&&(t=u.changedTouches[0].pageY)},n=u=>{if(!e||e===document.documentElement||e===document.body){u.preventDefault();return}let m=u.changedTouches[0].pageY,b=e.scrollTop,g=e.scrollHeight-e.clientHeight;g!==0&&((b<=0&&m>t||b>=g&&m<t)&&u.preventDefault(),t=m)},o=u=>{let m=u.target;Fu(m)&&m!==document.activeElement&&(u.preventDefault(),m.style.transform="translateY(-2000px)",m.focus(),requestAnimationFrame(()=>{m.style.transform=""}))},a=u=>{let m=u.target;Fu(m)&&(m.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{m.style.transform="",eu&&(eu.height<window.innerHeight?requestAnimationFrame(()=>{Jv(m)}):eu.addEventListener("resize",()=>Jv(m),{once:!0}))}))},i=()=>{window.scrollTo(0,0)},s=window.pageXOffset,c=window.pageYOffset,l=Xv(K2(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`));window.scrollTo(0,0);let p=Xv($n(document,"touchstart",r,{passive:!1,capture:!0}),$n(document,"touchmove",n,{passive:!1,capture:!0}),$n(document,"touchend",o,{passive:!1,capture:!0}),$n(document,"focus",a,!0),$n(window,"scroll",i));return()=>{l(),p(),window.scrollTo(s,c)}}function K2(e,t,r){let n=e.style[t];return e.style[t]=r,()=>{e.style[t]=n}}function $n(e,t,r,n){return e.addEventListener(t,r,n),()=>{e.removeEventListener(t,r,n)}}function Jv(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let r=vS(e);if(r!==document.documentElement&&r!==document.body&&r!==e){let n=r.getBoundingClientRect().top,o=e.getBoundingClientRect().top,a=e.getBoundingClientRect().bottom;const i=r.getBoundingClientRect().bottom+H2;a>i&&(r.scrollTop+=o-n)}e=r.parentElement}}function Fu(e){return e instanceof HTMLInputElement&&!G2.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function Y2(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function X2(...e){return t=>e.forEach(r=>Y2(r,t))}function bS(...e){return d.useCallback(X2(...e),e)}const yS=new WeakMap;function tt(e,t,r=!1){if(!e||!(e instanceof HTMLElement))return;let n={};Object.entries(t).forEach(([o,a])=>{if(o.startsWith("--")){e.style.setProperty(o,a);return}n[o]=e.style[o],e.style[o]=a}),!r&&yS.set(e,n)}function Z2(e,t){if(!e||!(e instanceof HTMLElement))return;let r=yS.get(e);r&&(e.style[t]=r[t])}const Xe=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function oa(e,t){if(!e)return null;const r=window.getComputedStyle(e),n=r.transform||r.webkitTransform||r.mozTransform;let o=n.match(/^matrix3d\((.+)\)$/);return o?parseFloat(o[1].split(", ")[Xe(t)?13:12]):(o=n.match(/^matrix\((.+)\)$/),o?parseFloat(o[1].split(", ")[Xe(t)?5:4]):null)}function J2(e){return 8*(Math.log(e+1)-2)}function ru(e,t){if(!e)return()=>{};const r=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=r}}function Q2(...e){return(...t)=>{for(const r of e)typeof r=="function"&&r(...t)}}const ze={DURATION:.5,EASE:[.32,.72,0,1]},xS=.4,eF=.25,tF=100,wS=8,aa=16,Bu=26,nu="vaul-dragging";function SS(e){const t=E.useRef(e);return E.useEffect(()=>{t.current=e}),E.useMemo(()=>(...r)=>t.current==null?void 0:t.current.call(t,...r),[])}function rF({defaultProp:e,onChange:t}){const r=E.useState(e),[n]=r,o=E.useRef(n),a=SS(t);return E.useEffect(()=>{o.current!==n&&(a(n),o.current=n)},[n,o,a]),r}function CS({prop:e,defaultProp:t,onChange:r=()=>{}}){const[n,o]=rF({defaultProp:t,onChange:r}),a=e!==void 0,i=a?e:n,s=SS(r),c=E.useCallback(l=>{if(a){const u=typeof l=="function"?l(e):l;u!==e&&s(u)}else o(l)},[a,e,o,s]);return[i,c]}function nF({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:r,drawerRef:n,overlayRef:o,fadeFromIndex:a,onSnapPointChange:i,direction:s="bottom",container:c,snapToSequentialPoint:l}){const[p,u]=CS({prop:e,defaultProp:r==null?void 0:r[0],onChange:t}),[m,b]=E.useState(typeof window<"u"?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);E.useEffect(()=>{function C(){b({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener("resize",C),()=>window.removeEventListener("resize",C)},[]);const g=E.useMemo(()=>p===(r==null?void 0:r[r.length-1])||null,[r,p]),h=E.useMemo(()=>{var C;return(C=r==null?void 0:r.findIndex(A=>A===p))!=null?C:null},[r,p]),v=r&&r.length>0&&(a||a===0)&&!Number.isNaN(a)&&r[a]===p||!r,y=E.useMemo(()=>{const C=c?{width:c.getBoundingClientRect().width,height:c.getBoundingClientRect().height}:typeof window<"u"?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0};var A;return(A=r==null?void 0:r.map(P=>{const k=typeof P=="string";let D=0;if(k&&(D=parseInt(P,10)),Xe(s)){const N=k?D:m?P*C.height:0;return m?s==="bottom"?C.height-N:-C.height+N:N}const L=k?D:m?P*C.width:0;return m?s==="right"?C.width-L:-C.width+L:L}))!=null?A:[]},[r,m,c]),x=E.useMemo(()=>h!==null?y==null?void 0:y[h]:null,[y,h]),w=E.useCallback(C=>{var A;const P=(A=y==null?void 0:y.findIndex(k=>k===C))!=null?A:null;i(P),tt(n.current,{transition:`transform ${ze.DURATION}s cubic-bezier(${ze.EASE.join(",")})`,transform:Xe(s)?`translate3d(0, ${C}px, 0)`:`translate3d(${C}px, 0, 0)`}),y&&P!==y.length-1&&a!==void 0&&P!==a&&P<a?tt(o.current,{transition:`opacity ${ze.DURATION}s cubic-bezier(${ze.EASE.join(",")})`,opacity:"0"}):tt(o.current,{transition:`opacity ${ze.DURATION}s cubic-bezier(${ze.EASE.join(",")})`,opacity:"1"}),u(r==null?void 0:r[Math.max(P,0)])},[n.current,r,y,a,o,u]);E.useEffect(()=>{if(p||e){var C;const A=(C=r==null?void 0:r.findIndex(P=>P===e||P===p))!=null?C:-1;y&&A!==-1&&typeof y[A]=="number"&&w(y[A])}},[p,e,r,y,w]);function S({draggedDistance:C,closeDrawer:A,velocity:P,dismissible:k}){if(a===void 0)return;const D=s==="bottom"||s==="right"?(x??0)-C:(x??0)+C,L=h===a-1,N=h===0,j=C>0;if(L&&tt(o.current,{transition:`opacity ${ze.DURATION}s cubic-bezier(${ze.EASE.join(",")})`}),!l&&P>2&&!j){k?A():w(y[0]);return}if(!l&&P>2&&j&&y&&r){w(y[r.length-1]);return}const $=y==null?void 0:y.reduce((G,H)=>typeof G!="number"||typeof H!="number"?G:Math.abs(H-D)<Math.abs(G-D)?H:G),M=Xe(s)?window.innerHeight:window.innerWidth;if(P>xS&&Math.abs(C)<M*.4){const G=j?1:-1;if(G>0&&g&&r){w(y[r.length-1]);return}if(N&&G<0&&k&&A(),h===null)return;w(y[h+G]);return}w($)}function _({draggedDistance:C}){if(x===null)return;const A=s==="bottom"||s==="right"?x-C:x+C;(s==="bottom"||s==="right")&&A<y[y.length-1]||(s==="top"||s==="left")&&A>y[y.length-1]||tt(n.current,{transform:Xe(s)?`translate3d(0, ${A}px, 0)`:`translate3d(${A}px, 0, 0)`})}function R(C,A){if(!r||typeof h!="number"||!y||a===void 0)return null;const P=h===a-1;if(h>=a&&A)return 0;if(P&&!A)return 1;if(!v&&!P)return null;const D=P?h+1:h-1,L=P?y[D]-y[D-1]:y[D+1]-y[D],N=C/Math.abs(L);return P?1-N:N}return{isLastSnapPoint:g,activeSnapPoint:p,shouldFade:v,getPercentageDragged:R,setActiveSnapPoint:u,activeSnapPointIndex:h,onRelease:S,onDrag:_,snapPointsOffset:y}}const oF=()=>()=>{};function aF(){const{direction:e,isOpen:t,shouldScaleBackground:r,setBackgroundColorOnScale:n,noBodyStyles:o}=Do(),a=E.useRef(null),i=E.useMemo(()=>document.body.style.backgroundColor,[]);function s(){return(window.innerWidth-Bu)/window.innerWidth}E.useEffect(()=>{if(t&&r){a.current&&clearTimeout(a.current);const c=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!c)return;Q2(n&&!o?ru(document.body,{background:"black"}):oF,ru(c,{transformOrigin:Xe(e)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:`${ze.DURATION}s`,transitionTimingFunction:`cubic-bezier(${ze.EASE.join(",")})`}));const l=ru(c,{borderRadius:`${wS}px`,overflow:"hidden",...Xe(e)?{transform:`scale(${s()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${s()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});return()=>{l(),a.current=window.setTimeout(()=>{i?document.body.style.background=i:document.body.style.removeProperty("background")},ze.DURATION*1e3)}}},[t,r,i])}let Ln=null;function iF({isOpen:e,modal:t,nested:r,hasBeenOpened:n,preventScrollRestoration:o,noBodyStyles:a}){const[i,s]=E.useState(()=>typeof window<"u"?window.location.href:""),c=E.useRef(0),l=E.useCallback(()=>{if(Yv()&&Ln===null&&e&&!a){Ln={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:"unset"};const{scrollX:u,innerHeight:m}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:`${-c.current}px`,left:`${-u}px`,right:"0px",height:"auto"}),window.setTimeout(()=>window.requestAnimationFrame(()=>{const b=m-window.innerHeight;b&&c.current>=m&&(document.body.style.top=`${-(c.current+b)}px`)}),300)}},[e]),p=E.useCallback(()=>{if(Yv()&&Ln!==null&&!a){const u=-parseInt(document.body.style.top,10),m=-parseInt(document.body.style.left,10);Object.assign(document.body.style,Ln),window.requestAnimationFrame(()=>{if(o&&i!==window.location.href){s(window.location.href);return}window.scrollTo(m,u)}),Ln=null}},[i]);return E.useEffect(()=>{function u(){c.current=window.scrollY}return u(),window.addEventListener("scroll",u),()=>{window.removeEventListener("scroll",u)}},[]),E.useEffect(()=>{if(t)return()=>{typeof document>"u"||document.querySelector("[data-vaul-drawer]")||p()}},[t,p]),E.useEffect(()=>{r||!n||(e?(!window.matchMedia("(display-mode: standalone)").matches&&l(),t||window.setTimeout(()=>{p()},500)):p())},[e,n,i,t,r,l,p]),{restorePositionSetting:p}}function sF({open:e,onOpenChange:t,children:r,onDrag:n,onRelease:o,snapPoints:a,shouldScaleBackground:i=!1,setBackgroundColorOnScale:s=!0,closeThreshold:c=eF,scrollLockTimeout:l=tF,dismissible:p=!0,handleOnly:u=!1,fadeFromIndex:m=a&&a.length-1,activeSnapPoint:b,setActiveSnapPoint:g,fixed:h,modal:v=!0,onClose:y,nested:x,noBodyStyles:w=!1,direction:S="bottom",defaultOpen:_=!1,disablePreventScroll:R=!0,snapToSequentialPoint:C=!1,preventScrollRestoration:A=!1,repositionInputs:P=!0,onAnimationEnd:k,container:D,autoFocus:L=!1}){var N,j;const[$=!1,M]=CS({defaultProp:_,prop:e,onChange:ue=>{t==null||t(ue),!ue&&!x&&ot(),setTimeout(()=>{k==null||k(ue)},ze.DURATION*1e3),ue&&!v&&typeof window<"u"&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"}),ue||(document.body.style.pointerEvents="auto")}}),[G,H]=E.useState(!1),[z,oe]=E.useState(!1),[Z,te]=E.useState(!1),F=E.useRef(null),U=E.useRef(null),Q=E.useRef(null),K=E.useRef(null),q=E.useRef(null),W=E.useRef(!1),re=E.useRef(null),J=E.useRef(0),ne=E.useRef(!1),V=E.useRef(!_),ae=E.useRef(0),I=E.useRef(null),ee=E.useRef(((N=I.current)==null?void 0:N.getBoundingClientRect().height)||0),pe=E.useRef(((j=I.current)==null?void 0:j.getBoundingClientRect().width)||0),me=E.useRef(0),ge=E.useCallback(ue=>{a&&ue===Oe.length-1&&(U.current=new Date)},[]),{activeSnapPoint:fe,activeSnapPointIndex:Ee,setActiveSnapPoint:Fe,onRelease:we,snapPointsOffset:Oe,onDrag:rt,shouldFade:Ze,getPercentageDragged:We}=nF({snapPoints:a,activeSnapPointProp:b,setActiveSnapPointProp:g,drawerRef:I,fadeFromIndex:m,overlayRef:F,onSnapPointChange:ge,direction:S,container:D,snapToSequentialPoint:C});U2({isDisabled:!$||z||!v||Z||!G||!P||!R});const{restorePositionSetting:ot}=iF({isOpen:$,modal:v,nested:x??!1,hasBeenOpened:G,preventScrollRestoration:A,noBodyStyles:w});function pt(){return(window.innerWidth-Bu)/window.innerWidth}function dt(ue){var be,Ce;!p&&!a||I.current&&!I.current.contains(ue.target)||(ee.current=((be=I.current)==null?void 0:be.getBoundingClientRect().height)||0,pe.current=((Ce=I.current)==null?void 0:Ce.getBoundingClientRect().width)||0,oe(!0),Q.current=new Date,gS()&&window.addEventListener("touchend",()=>W.current=!1,{once:!0}),ue.target.setPointerCapture(ue.pointerId),J.current=Xe(S)?ue.pageY:ue.pageX)}function Ve(ue,be){var Ce;let ve=ue;const ie=(Ce=window.getSelection())==null?void 0:Ce.toString(),Se=I.current?oa(I.current,S):null,xe=new Date;if(ve.tagName==="SELECT"||ve.hasAttribute("data-vaul-no-drag")||ve.closest("[data-vaul-no-drag]"))return!1;if(S==="right"||S==="left")return!0;if(U.current&&xe.getTime()-U.current.getTime()<500)return!1;if(Se!==null&&(S==="bottom"?Se>0:Se<0))return!0;if(ie&&ie.length>0)return!1;if(q.current&&xe.getTime()-q.current.getTime()<l&&Se===0||be)return q.current=xe,!1;for(;ve;){if(ve.scrollHeight>ve.clientHeight){if(ve.scrollTop!==0)return q.current=new Date,!1;if(ve.getAttribute("role")==="dialog")return!0}ve=ve.parentNode}return!0}function Ct(ue){if(I.current&&z){const be=S==="bottom"||S==="right"?1:-1,Ce=(J.current-(Xe(S)?ue.pageY:ue.pageX))*be,ve=Ce>0,ie=a&&!p&&!ve;if(ie&&Ee===0)return;const Se=Math.abs(Ce),xe=document.querySelector("[data-vaul-drawer-wrapper]"),ke=S==="bottom"||S==="top"?ee.current:pe.current;let Qe=Se/ke;const Ie=We(Se,ve);if(Ie!==null&&(Qe=Ie),ie&&Qe>=1||!W.current&&!Ve(ue.target,ve))return;if(I.current.classList.add(nu),W.current=!0,tt(I.current,{transition:"none"}),tt(F.current,{transition:"none"}),a&&rt({draggedDistance:Ce}),ve&&!a){const at=J2(Ce),et=Math.min(at*-1,0)*be;tt(I.current,{transform:Xe(S)?`translate3d(0, ${et}px, 0)`:`translate3d(${et}px, 0, 0)`});return}const Be=1-Qe;if((Ze||m&&Ee===m-1)&&(n==null||n(ue,Qe),tt(F.current,{opacity:`${Be}`,transition:"none"},!0)),xe&&F.current&&i){const at=Math.min(pt()+Qe*(1-pt()),1),et=8-Qe*8,it=Math.max(0,14-Qe*14);tt(xe,{borderRadius:`${et}px`,transform:Xe(S)?`scale(${at}) translate3d(0, ${it}px, 0)`:`scale(${at}) translate3d(${it}px, 0, 0)`,transition:"none"},!0)}if(!a){const at=Se*be;tt(I.current,{transform:Xe(S)?`translate3d(0, ${at}px, 0)`:`translate3d(${at}px, 0, 0)`})}}}E.useEffect(()=>{window.requestAnimationFrame(()=>{V.current=!0})},[]),E.useEffect(()=>{var ue;function be(){if(!I.current||!P)return;const Ce=document.activeElement;if(Fu(Ce)||ne.current){var ve;const ie=((ve=window.visualViewport)==null?void 0:ve.height)||0,Se=window.innerHeight;let xe=Se-ie;const ke=I.current.getBoundingClientRect().height||0,Qe=ke>Se*.8;me.current||(me.current=ke);const Ie=I.current.getBoundingClientRect().top;if(Math.abs(ae.current-xe)>60&&(ne.current=!ne.current),a&&a.length>0&&Oe&&Ee){const Be=Oe[Ee]||0;xe+=Be}if(ae.current=xe,ke>ie||ne.current){const Be=I.current.getBoundingClientRect().height;let at=Be;Be>ie&&(at=ie-(Qe?Ie:Bu)),h?I.current.style.height=`${Be-Math.max(xe,0)}px`:I.current.style.height=`${Math.max(at,ie-Ie)}px`}else F2()||(I.current.style.height=`${me.current}px`);a&&a.length>0&&!ne.current?I.current.style.bottom="0px":I.current.style.bottom=`${Math.max(xe,0)}px`}}return(ue=window.visualViewport)==null||ue.addEventListener("resize",be),()=>{var Ce;return(Ce=window.visualViewport)==null?void 0:Ce.removeEventListener("resize",be)}},[Ee,a,Oe]);function Ke(ue){At(),y==null||y(),ue||M(!1),setTimeout(()=>{a&&Fe(a[0])},ze.DURATION*1e3)}function Je(){if(!I.current)return;const ue=document.querySelector("[data-vaul-drawer-wrapper]"),be=oa(I.current,S);tt(I.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${ze.DURATION}s cubic-bezier(${ze.EASE.join(",")})`}),tt(F.current,{transition:`opacity ${ze.DURATION}s cubic-bezier(${ze.EASE.join(",")})`,opacity:"1"}),i&&be&&be>0&&$&&tt(ue,{borderRadius:`${wS}px`,overflow:"hidden",...Xe(S)?{transform:`scale(${pt()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${pt()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${ze.DURATION}s`,transitionTimingFunction:`cubic-bezier(${ze.EASE.join(",")})`},!0)}function At(){!z||!I.current||(I.current.classList.remove(nu),W.current=!1,oe(!1),K.current=new Date)}function Vt(ue){if(!z||!I.current)return;I.current.classList.remove(nu),W.current=!1,oe(!1),K.current=new Date;const be=oa(I.current,S);if(!ue||!Ve(ue.target,!1)||!be||Number.isNaN(be)||Q.current===null)return;const Ce=K.current.getTime()-Q.current.getTime(),ve=J.current-(Xe(S)?ue.pageY:ue.pageX),ie=Math.abs(ve)/Ce;if(ie>.05&&(te(!0),setTimeout(()=>{te(!1)},200)),a){we({draggedDistance:ve*(S==="bottom"||S==="right"?1:-1),closeDrawer:Ke,velocity:ie,dismissible:p}),o==null||o(ue,!0);return}if(S==="bottom"||S==="right"?ve>0:ve<0){Je(),o==null||o(ue,!0);return}if(ie>xS){Ke(),o==null||o(ue,!1);return}var Se;const xe=Math.min((Se=I.current.getBoundingClientRect().height)!=null?Se:0,window.innerHeight);var ke;const Qe=Math.min((ke=I.current.getBoundingClientRect().width)!=null?ke:0,window.innerWidth),Ie=S==="left"||S==="right";if(Math.abs(be)>=(Ie?Qe:xe)*c){Ke(),o==null||o(ue,!1);return}o==null||o(ue,!0),Je()}E.useEffect(()=>($&&(tt(document.documentElement,{scrollBehavior:"auto"}),U.current=new Date),()=>{Z2(document.documentElement,"scrollBehavior")}),[$]);function fr(ue){const be=ue?(window.innerWidth-aa)/window.innerWidth:1,Ce=ue?-16:0;re.current&&window.clearTimeout(re.current),tt(I.current,{transition:`transform ${ze.DURATION}s cubic-bezier(${ze.EASE.join(",")})`,transform:Xe(S)?`scale(${be}) translate3d(0, ${Ce}px, 0)`:`scale(${be}) translate3d(${Ce}px, 0, 0)`}),!ue&&I.current&&(re.current=setTimeout(()=>{const ve=oa(I.current,S);tt(I.current,{transition:"none",transform:Xe(S)?`translate3d(0, ${ve}px, 0)`:`translate3d(${ve}px, 0, 0)`})},500))}function Er(ue,be){if(be<0)return;const Ce=(window.innerWidth-aa)/window.innerWidth,ve=Ce+be*(1-Ce),ie=-16+be*aa;tt(I.current,{transform:Xe(S)?`scale(${ve}) translate3d(0, ${ie}px, 0)`:`scale(${ve}) translate3d(${ie}px, 0, 0)`,transition:"none"})}function Mt(ue,be){const Ce=Xe(S)?window.innerHeight:window.innerWidth,ve=be?(Ce-aa)/Ce:1,ie=be?-16:0;be&&tt(I.current,{transition:`transform ${ze.DURATION}s cubic-bezier(${ze.EASE.join(",")})`,transform:Xe(S)?`scale(${ve}) translate3d(0, ${ie}px, 0)`:`scale(${ve}) translate3d(${ie}px, 0, 0)`})}return E.useEffect(()=>{v||window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"})},[v]),E.createElement(ti,{defaultOpen:_,onOpenChange:ue=>{!p&&!ue||(ue?H(!0):Ke(!0),M(ue))},open:$},E.createElement(hS.Provider,{value:{activeSnapPoint:fe,snapPoints:a,setActiveSnapPoint:Fe,drawerRef:I,overlayRef:F,onOpenChange:t,onPress:dt,onRelease:Vt,onDrag:Ct,dismissible:p,shouldAnimate:V,handleOnly:u,isOpen:$,isDragging:z,shouldFade:Ze,closeDrawer:Ke,onNestedDrag:Er,onNestedOpenChange:fr,onNestedRelease:Mt,keyboardIsOpen:ne,modal:v,snapPointsOffset:Oe,activeSnapPointIndex:Ee,direction:S,shouldScaleBackground:i,setBackgroundColorOnScale:s,noBodyStyles:w,container:D,autoFocus:L}},r))}const _S=E.forwardRef(function({...e},t){const{overlayRef:r,snapPoints:n,onRelease:o,shouldFade:a,isOpen:i,modal:s,shouldAnimate:c}=Do(),l=bS(t,r),p=n&&n.length>0;if(!s)return null;const u=E.useCallback(m=>o(m),[o]);return E.createElement(xn,{onMouseUp:u,ref:l,"data-vaul-overlay":"","data-vaul-snap-points":i&&p?"true":"false","data-vaul-snap-points-overlay":i&&a?"true":"false","data-vaul-animate":c!=null&&c.current?"true":"false",...e})});_S.displayName="Drawer.Overlay";const RS=E.forwardRef(function({onPointerDownOutside:e,style:t,onOpenAutoFocus:r,...n},o){const{drawerRef:a,onPress:i,onRelease:s,onDrag:c,keyboardIsOpen:l,snapPointsOffset:p,activeSnapPointIndex:u,modal:m,isOpen:b,direction:g,snapPoints:h,container:v,handleOnly:y,shouldAnimate:x,autoFocus:w}=Do(),[S,_]=E.useState(!1),R=bS(o,a),C=E.useRef(null),A=E.useRef(null),P=E.useRef(!1),k=h&&h.length>0;aF();const D=(N,j,$=0)=>{if(P.current)return!0;const M=Math.abs(N.y),G=Math.abs(N.x),H=G>M,z=["bottom","right"].includes(j)?1:-1;if(j==="left"||j==="right"){if(!(N.x*z<0)&&G>=0&&G<=$)return H}else if(!(N.y*z<0)&&M>=0&&M<=$)return!H;return P.current=!0,!0};E.useEffect(()=>{k&&window.requestAnimationFrame(()=>{_(!0)})},[]);function L(N){C.current=null,P.current=!1,s(N)}return E.createElement(wn,{"data-vaul-drawer-direction":g,"data-vaul-drawer":"","data-vaul-delayed-snap-points":S?"true":"false","data-vaul-snap-points":b&&k?"true":"false","data-vaul-custom-container":v?"true":"false","data-vaul-animate":x!=null&&x.current?"true":"false",...n,ref:R,style:p&&p.length>0?{"--snap-point-height":`${p[u??0]}px`,...t}:t,onPointerDown:N=>{y||(n.onPointerDown==null||n.onPointerDown.call(n,N),C.current={x:N.pageX,y:N.pageY},i(N))},onOpenAutoFocus:N=>{r==null||r(N),w||N.preventDefault()},onPointerDownOutside:N=>{if(e==null||e(N),!m||N.defaultPrevented){N.preventDefault();return}l.current&&(l.current=!1)},onFocusOutside:N=>{if(!m){N.preventDefault();return}},onPointerMove:N=>{if(A.current=N,y||(n.onPointerMove==null||n.onPointerMove.call(n,N),!C.current))return;const j=N.pageY-C.current.y,$=N.pageX-C.current.x,M=N.pointerType==="touch"?10:2;D({x:$,y:j},g,M)?c(N):(Math.abs($)>M||Math.abs(j)>M)&&(C.current=null)},onPointerUp:N=>{n.onPointerUp==null||n.onPointerUp.call(n,N),C.current=null,P.current=!1,s(N)},onPointerOut:N=>{n.onPointerOut==null||n.onPointerOut.call(n,N),L(A.current)},onContextMenu:N=>{n.onContextMenu==null||n.onContextMenu.call(n,N),A.current&&L(A.current)}})});RS.displayName="Drawer.Content";const cF=250,lF=120,uF=E.forwardRef(function({preventCycle:e=!1,children:t,...r},n){const{closeDrawer:o,isDragging:a,snapPoints:i,activeSnapPoint:s,setActiveSnapPoint:c,dismissible:l,handleOnly:p,isOpen:u,onPress:m,onDrag:b}=Do(),g=E.useRef(null),h=E.useRef(!1);function v(){if(h.current){w();return}window.setTimeout(()=>{y()},lF)}function y(){if(a||e||h.current){w();return}if(w(),!i||i.length===0){l||o();return}if(s===i[i.length-1]&&l){o();return}const _=i.findIndex(C=>C===s);if(_===-1)return;const R=i[_+1];c(R)}function x(){g.current=window.setTimeout(()=>{h.current=!0},cF)}function w(){g.current&&window.clearTimeout(g.current),h.current=!1}return E.createElement("div",{onClick:v,onPointerCancel:w,onPointerDown:S=>{p&&m(S),x()},onPointerMove:S=>{p&&b(S)},ref:n,"data-vaul-drawer-visible":u?"true":"false","data-vaul-handle":"","aria-hidden":"true",...r},E.createElement("span",{"data-vaul-handle-hitarea":"","aria-hidden":"true"},t))});uF.displayName="Drawer.Handle";function dF(e){const t=Do(),{container:r=t.container,...n}=e;return E.createElement(ni,{container:r,...n})}const Ht={Root:sF,Content:RS,Overlay:_S,Trigger:ri,Portal:dF,Close:qr,Title:Sn,Description:Cn},ES=({shouldScaleBackground:e=!0,...t})=>f.jsx(Ht.Root,{shouldScaleBackground:e,...t});ES.displayName="Drawer";const fF=Ht.Trigger,PS=Ht.Portal,pF=Ht.Close,Hf=d.forwardRef(({className:e,...t},r)=>f.jsx(Ht.Overlay,{ref:r,className:O("fixed inset-0 z-50 bg-black/80",e),...t}));Hf.displayName=Ht.Overlay.displayName;const TS=d.forwardRef(({className:e,children:t,...r},n)=>f.jsxs(PS,{children:[f.jsx(Hf,{}),f.jsxs(Ht.Content,{ref:n,className:O("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",e),...r,children:[f.jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),t]})]}));TS.displayName="DrawerContent";const NS=({className:e,...t})=>f.jsx("div",{className:O("grid gap-1.5 p-4 text-center sm:text-left",e),...t});NS.displayName="DrawerHeader";const AS=({className:e,...t})=>f.jsx("div",{className:O("mt-auto flex flex-col gap-2 p-4",e),...t});AS.displayName="DrawerFooter";const MS=d.forwardRef(({className:e,...t},r)=>f.jsx(Ht.Title,{ref:r,className:O("text-lg font-semibold leading-none tracking-tight",e),...t}));MS.displayName=Ht.Title.displayName;const OS=d.forwardRef(({className:e,...t},r)=>f.jsx(Ht.Description,{ref:r,className:O("text-sm text-muted-foreground",e),...t}));OS.displayName=Ht.Description.displayName;var Vf="DropdownMenu",[mF,ZV]=je(Vf,[Mo]),lt=Mo(),[hF,IS]=mF(Vf),DS=e=>{const{__scopeDropdownMenu:t,children:r,dir:n,open:o,defaultOpen:a,onOpenChange:i,modal:s=!0}=e,c=lt(t),l=d.useRef(null),[p=!1,u]=$e({prop:o,defaultProp:a,onChange:i});return f.jsx(hF,{scope:t,triggerId:Ue(),triggerRef:l,contentId:Ue(),open:p,onOpenChange:u,onOpenToggle:d.useCallback(()=>u(m=>!m),[u]),modal:s,children:f.jsx(_f,{...c,open:p,onOpenChange:u,dir:n,modal:s,children:r})})};DS.displayName=Vf;var jS="DropdownMenuTrigger",kS=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,disabled:n=!1,...o}=e,a=IS(jS,r),i=lt(r);return f.jsx(Rf,{asChild:!0,...i,children:f.jsx(X.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:go(t,a.triggerRef),onPointerDown:B(e.onPointerDown,s=>{!n&&s.button===0&&s.ctrlKey===!1&&(a.onOpenToggle(),a.open||s.preventDefault())}),onKeyDown:B(e.onKeyDown,s=>{n||(["Enter"," "].includes(s.key)&&a.onOpenToggle(),s.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})})});kS.displayName=jS;var gF="DropdownMenuPortal",$S=e=>{const{__scopeDropdownMenu:t,...r}=e,n=lt(t);return f.jsx(Ef,{...n,...r})};$S.displayName=gF;var LS="DropdownMenuContent",FS=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=IS(LS,r),a=lt(r),i=d.useRef(!1);return f.jsx(Pf,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...n,ref:t,onCloseAutoFocus:B(e.onCloseAutoFocus,s=>{var c;i.current||(c=o.triggerRef.current)==null||c.focus(),i.current=!1,s.preventDefault()}),onInteractOutside:B(e.onInteractOutside,s=>{const c=s.detail.originalEvent,l=c.button===0&&c.ctrlKey===!0,p=c.button===2||l;(!o.modal||p)&&(i.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)"}})});FS.displayName=LS;var vF="DropdownMenuGroup",BS=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=lt(r);return f.jsx(Tf,{...o,...n,ref:t})});BS.displayName=vF;var bF="DropdownMenuLabel",zS=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=lt(r);return f.jsx(Nf,{...o,...n,ref:t})});zS.displayName=bF;var yF="DropdownMenuItem",qS=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=lt(r);return f.jsx(Af,{...o,...n,ref:t})});qS.displayName=yF;var xF="DropdownMenuCheckboxItem",HS=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=lt(r);return f.jsx(Mf,{...o,...n,ref:t})});HS.displayName=xF;var wF="DropdownMenuRadioGroup",VS=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=lt(r);return f.jsx(Of,{...o,...n,ref:t})});VS.displayName=wF;var SF="DropdownMenuRadioItem",GS=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=lt(r);return f.jsx(If,{...o,...n,ref:t})});GS.displayName=SF;var CF="DropdownMenuItemIndicator",US=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=lt(r);return f.jsx(Df,{...o,...n,ref:t})});US.displayName=CF;var _F="DropdownMenuSeparator",WS=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=lt(r);return f.jsx(jf,{...o,...n,ref:t})});WS.displayName=_F;var RF="DropdownMenuArrow",EF=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=lt(r);return f.jsx(kf,{...o,...n,ref:t})});EF.displayName=RF;var PF=e=>{const{__scopeDropdownMenu:t,children:r,open:n,onOpenChange:o,defaultOpen:a}=e,i=lt(t),[s=!1,c]=$e({prop:n,defaultProp:a,onChange:o});return f.jsx($f,{...i,open:s,onOpenChange:c,children:r})},TF="DropdownMenuSubTrigger",KS=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=lt(r);return f.jsx(Lf,{...o,...n,ref:t})});KS.displayName=TF;var NF="DropdownMenuSubContent",YS=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=lt(r);return f.jsx(Ff,{...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)"}})});YS.displayName=NF;var AF=DS,MF=kS,XS=$S,ZS=FS,OF=BS,JS=zS,QS=qS,eC=HS,IF=VS,tC=GS,rC=US,nC=WS,DF=PF,oC=KS,aC=YS;const jF=AF,kF=MF,$F=OF,LF=XS,FF=DF,BF=IF,iC=d.forwardRef(({className:e,inset:t,children:r,...n},o)=>f.jsxs(oC,{ref:o,className:O("flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...n,children:[r,f.jsx(jr,{className:"ml-auto"})]}));iC.displayName=oC.displayName;const sC=d.forwardRef(({className:e,...t},r)=>f.jsx(aC,{ref:r,className:O("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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 origin-[--radix-dropdown-menu-content-transform-origin]",e),...t}));sC.displayName=aC.displayName;const cC=d.forwardRef(({className:e,sideOffset:t=4,...r},n)=>f.jsx(XS,{children:f.jsx(ZS,{ref:n,sideOffset:t,className:O("z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","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 origin-[--radix-dropdown-menu-content-transform-origin]",e),...r})}));cC.displayName=ZS.displayName;const lC=d.forwardRef(({className:e,inset:t,...r},n)=>f.jsx(QS,{ref:n,className:O("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...r}));lC.displayName=QS.displayName;const uC=d.forwardRef(({className:e,children:t,checked:r,...n},o)=>f.jsxs(eC,{ref:o,className:O("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:r,...n,children:[f.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:f.jsx(rC,{children:f.jsx(vo,{className:"h-4 w-4"})})}),t]}));uC.displayName=eC.displayName;const dC=d.forwardRef(({className:e,children:t,...r},n)=>f.jsxs(tC,{ref:n,className:O("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[f.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:f.jsx(rC,{children:f.jsx(Za,{className:"h-2 w-2 fill-current"})})}),t]}));dC.displayName=tC.displayName;const fC=d.forwardRef(({className:e,inset:t,...r},n)=>f.jsx(JS,{ref:n,className:O("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...r}));fC.displayName=JS.displayName;const pC=d.forwardRef(({className:e,...t},r)=>f.jsx(nC,{ref:r,className:O("-mx-1 my-1 h-px bg-muted",e),...t}));pC.displayName=nC.displayName;const mC=({className:e,...t})=>f.jsx("span",{className:O("ml-auto text-xs tracking-widest opacity-60",e),...t});mC.displayName="DropdownMenuShortcut";var zF=e=>e.type==="checkbox",qF=e=>e instanceof Date,hC=e=>e==null;const HF=e=>typeof e=="object";var Nn=e=>!hC(e)&&!Array.isArray(e)&&HF(e)&&!qF(e),VF=e=>Nn(e)&&e.target?zF(e.target)?e.target.checked:e.target.value:e,GF=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,UF=(e,t)=>e.has(GF(t)),WF=e=>{const t=e.constructor&&e.constructor.prototype;return Nn(t)&&t.hasOwnProperty("isPrototypeOf")},KF=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Gf(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(e instanceof Set)t=new Set(e);else if(!(KF&&(e instanceof Blob||n))&&(r||Nn(e)))if(t=r?[]:{},!r&&!WF(e))t=e;else for(const o in e)e.hasOwnProperty(o)&&(t[o]=Gf(e[o]));else return e;return t}var gC=e=>Array.isArray(e)?e.filter(Boolean):[],zu=e=>e===void 0,gt=(e,t,r)=>{if(!t||!Nn(e))return r;const n=gC(t.split(/[,[\].]+?/)).reduce((o,a)=>hC(o)?o:o[a],e);return zu(n)||n===e?zu(e[t])?r:e[t]:n},Qv=e=>typeof e=="boolean",YF=e=>/^\w*$/.test(e),XF=e=>gC(e.replace(/["|']|\]/g,"").split(/\.|\[/)),eb=(e,t,r)=>{let n=-1;const o=YF(t)?[t]:XF(t),a=o.length,i=a-1;for(;++n<a;){const s=o[n];let c=r;if(n!==i){const l=e[s];c=Nn(l)||Array.isArray(l)?l:isNaN(+o[n+1])?{}:[]}if(s==="__proto__"||s==="constructor"||s==="prototype")return;e[s]=c,e=e[s]}return e};const tb={BLUR:"blur",CHANGE:"change"},rb={all:"all"},vC=E.createContext(null),xi=()=>E.useContext(vC),ZF=e=>{const{children:t,...r}=e;return E.createElement(vC.Provider,{value:r},t)};var JF=(e,t,r,n=!0)=>{const o={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(o,a,{get:()=>{const i=a;return t._proxyFormState[i]!==rb.all&&(t._proxyFormState[i]=!n||rb.all),r&&(r[i]=!0),e[i]}});return o},QF=e=>Nn(e)&&!Object.keys(e).length,eB=(e,t,r,n)=>{r(e);const{name:o,...a}=e;return QF(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(i=>t[i]===!0)},tB=e=>Array.isArray(e)?e:[e],bC=(e,t,r)=>!e||!t||e===t||tB(e).some(n=>n&&(r?n===t:n.startsWith(t)||t.startsWith(n)));function yC(e){const t=E.useRef(e);t.current=e,E.useEffect(()=>{const r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}},[e.disabled])}function rB(e){const t=xi(),{control:r=t.control,disabled:n,name:o,exact:a}=e||{},[i,s]=E.useState(r._formState),c=E.useRef(!0),l=E.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),p=E.useRef(o);return p.current=o,yC({disabled:n,next:u=>c.current&&bC(p.current,u.name,a)&&eB(u,l.current,r._updateFormState)&&s({...r._formState,...u}),subject:r._subjects.state}),E.useEffect(()=>(c.current=!0,l.current.isValid&&r._updateValid(!0),()=>{c.current=!1}),[r]),E.useMemo(()=>JF(i,r,l.current,!1),[i,r])}var nB=e=>typeof e=="string",oB=(e,t,r,n,o)=>nB(e)?gt(r,e,o):Array.isArray(e)?e.map(a=>gt(r,a)):r;function aB(e){const t=xi(),{control:r=t.control,name:n,defaultValue:o,disabled:a,exact:i}=e||{},s=E.useRef(n);s.current=n,yC({disabled:a,subject:r._subjects.values,next:p=>{bC(s.current,p.name,i)&&l(Gf(oB(s.current,r._names,p.values||r._formValues,!1,o)))}});const[c,l]=E.useState(r._getWatch(n,o));return E.useEffect(()=>r._removeUnmounted()),c}function iB(e){const t=xi(),{name:r,disabled:n,control:o=t.control,shouldUnregister:a}=e,i=UF(o._names.array,r),s=aB({control:o,name:r,defaultValue:gt(o._formValues,r,gt(o._defaultValues,r,e.defaultValue)),exact:!0}),c=rB({control:o,name:r,exact:!0}),l=E.useRef(o.register(r,{...e.rules,value:s,...Qv(e.disabled)?{disabled:e.disabled}:{}})),p=E.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!gt(c.errors,r)},isDirty:{enumerable:!0,get:()=>!!gt(c.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!gt(c.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!gt(c.validatingFields,r)},error:{enumerable:!0,get:()=>gt(c.errors,r)}}),[c,r]),u=E.useMemo(()=>({name:r,value:s,...Qv(n)||c.disabled?{disabled:c.disabled||n}:{},onChange:m=>l.current.onChange({target:{value:VF(m),name:r},type:tb.CHANGE}),onBlur:()=>l.current.onBlur({target:{value:gt(o._formValues,r),name:r},type:tb.BLUR}),ref:m=>{const b=gt(o._fields,r);b&&m&&(b._f.ref={focus:()=>m.focus(),select:()=>m.select(),setCustomValidity:g=>m.setCustomValidity(g),reportValidity:()=>m.reportValidity()})}}),[r,o._formValues,n,c.disabled,s,o._fields]);return E.useEffect(()=>{const m=o._options.shouldUnregister||a,b=(g,h)=>{const v=gt(o._fields,g);v&&v._f&&(v._f.mount=h)};if(b(r,!0),m){const g=Gf(gt(o._options.defaultValues,r));eb(o._defaultValues,r,g),zu(gt(o._formValues,r))&&eb(o._formValues,r,g)}return!i&&o.register(r),()=>{(i?m&&!o._state.action:m)?o.unregister(r):b(r,!1)}},[r,o,i,a]),E.useEffect(()=>{o._updateDisabledField({disabled:n,fields:o._fields,name:r})},[n,r,o]),E.useMemo(()=>({field:u,formState:c,fieldState:p}),[u,c,p])}const sB=e=>e.render(iB(e));var cB="Label",xC=d.forwardRef((e,t)=>f.jsx(X.label,{...e,ref:t,onMouseDown:r=>{var o;r.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));xC.displayName=cB;var wC=xC;const lB=dr("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),lo=d.forwardRef(({className:e,...t},r)=>f.jsx(wC,{ref:r,className:O(lB(),e),...t}));lo.displayName=wC.displayName;const uB=ZF,SC=d.createContext({}),dB=({...e})=>f.jsx(SC.Provider,{value:{name:e.name},children:f.jsx(sB,{...e})}),jo=()=>{const e=d.useContext(SC),t=d.useContext(CC),{getFieldState:r,formState:n}=xi(),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}},CC=d.createContext({}),_C=d.forwardRef(({className:e,...t},r)=>{const n=d.useId();return f.jsx(CC.Provider,{value:{id:n},children:f.jsx("div",{ref:r,className:O("space-y-2",e),...t})})});_C.displayName="FormItem";const RC=d.forwardRef(({className:e,...t},r)=>{const{error:n,formItemId:o}=jo();return f.jsx(lo,{ref:r,className:O(n&&"text-destructive",e),htmlFor:o,...t})});RC.displayName="FormLabel";const EC=d.forwardRef(({...e},t)=>{const{error:r,formItemId:n,formDescriptionId:o,formMessageId:a}=jo();return f.jsx(st,{ref:t,id:n,"aria-describedby":r?`${o} ${a}`:`${o}`,"aria-invalid":!!r,...e})});EC.displayName="FormControl";const PC=d.forwardRef(({className:e,...t},r)=>{const{formDescriptionId:n}=jo();return f.jsx("p",{ref:r,id:n,className:O("text-[0.8rem] text-muted-foreground",e),...t})});PC.displayName="FormDescription";const TC=d.forwardRef(({className:e,children:t,...r},n)=>{const{error:o,formMessageId:a}=jo(),i=o?String((o==null?void 0:o.message)??""):t;return i?f.jsx("p",{ref:n,id:a,className:O("text-[0.8rem] font-medium text-destructive",e),...r,children:i}):null});TC.displayName="FormMessage";var ou,Uf="HoverCard",[NC,JV]=je(Uf,[Jt]),wi=Jt(),[fB,Wf]=NC(Uf),AC=e=>{const{__scopeHoverCard:t,children:r,open:n,defaultOpen:o,onOpenChange:a,openDelay:i=700,closeDelay:s=300}=e,c=wi(t),l=d.useRef(0),p=d.useRef(0),u=d.useRef(!1),m=d.useRef(!1),[b=!1,g]=$e({prop:n,defaultProp:o,onChange:a}),h=d.useCallback(()=>{clearTimeout(p.current),l.current=window.setTimeout(()=>g(!0),i)},[i,g]),v=d.useCallback(()=>{clearTimeout(l.current),!u.current&&!m.current&&(p.current=window.setTimeout(()=>g(!1),s))},[s,g]),y=d.useCallback(()=>g(!1),[g]);return d.useEffect(()=>()=>{clearTimeout(l.current),clearTimeout(p.current)},[]),f.jsx(fB,{scope:t,open:b,onOpenChange:g,onOpen:h,onClose:v,onDismiss:y,hasSelectionRef:u,isPointerDownOnContentRef:m,children:f.jsx(Pn,{...c,children:r})})};AC.displayName=Uf;var MC="HoverCardTrigger",OC=d.forwardRef((e,t)=>{const{__scopeHoverCard:r,...n}=e,o=Wf(MC,r),a=wi(r);return f.jsx(Tn,{asChild:!0,...a,children:f.jsx(X.a,{"data-state":o.open?"open":"closed",...n,ref:t,onPointerEnter:B(e.onPointerEnter,$a(o.onOpen)),onPointerLeave:B(e.onPointerLeave,$a(o.onClose)),onFocus:B(e.onFocus,o.onOpen),onBlur:B(e.onBlur,o.onClose),onTouchStart:B(e.onTouchStart,i=>i.preventDefault())})})});OC.displayName=MC;var pB="HoverCardPortal",[QV,mB]=NC(pB,{forceMount:void 0}),ka="HoverCardContent",IC=d.forwardRef((e,t)=>{const r=mB(ka,e.__scopeHoverCard),{forceMount:n=r.forceMount,...o}=e,a=Wf(ka,e.__scopeHoverCard);return f.jsx(Le,{present:n||a.open,children:f.jsx(hB,{"data-state":a.open?"open":"closed",...o,onPointerEnter:B(e.onPointerEnter,$a(a.onOpen)),onPointerLeave:B(e.onPointerLeave,$a(a.onClose)),ref:t})})});IC.displayName=ka;var hB=d.forwardRef((e,t)=>{const{__scopeHoverCard:r,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,...s}=e,c=Wf(ka,r),l=wi(r),p=d.useRef(null),u=de(t,p),[m,b]=d.useState(!1);return d.useEffect(()=>{if(m){const g=document.body;return ou=g.style.userSelect||g.style.webkitUserSelect,g.style.userSelect="none",g.style.webkitUserSelect="none",()=>{g.style.userSelect=ou,g.style.webkitUserSelect=ou}}},[m]),d.useEffect(()=>{if(p.current){const g=()=>{b(!1),c.isPointerDownOnContentRef.current=!1,setTimeout(()=>{var v;((v=document.getSelection())==null?void 0:v.toString())!==""&&(c.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",g),()=>{document.removeEventListener("pointerup",g),c.hasSelectionRef.current=!1,c.isPointerDownOnContentRef.current=!1}}},[c.isPointerDownOnContentRef,c.hasSelectionRef]),d.useEffect(()=>{p.current&&bB(p.current).forEach(h=>h.setAttribute("tabindex","-1"))}),f.jsx(lr,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:i,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:B(a,g=>{g.preventDefault()}),onDismiss:c.onDismiss,children:f.jsx(Eo,{...l,...s,onPointerDown:B(s.onPointerDown,g=>{g.currentTarget.contains(g.target)&&b(!0),c.hasSelectionRef.current=!1,c.isPointerDownOnContentRef.current=!0}),ref:u,style:{...s.style,userSelect:m?"text":void 0,WebkitUserSelect:m?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})}),gB="HoverCardArrow",vB=d.forwardRef((e,t)=>{const{__scopeHoverCard:r,...n}=e,o=wi(r);return f.jsx(Po,{...o,...n,ref:t})});vB.displayName=gB;function $a(e){return t=>t.pointerType==="touch"?void 0:e()}function bB(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;r.nextNode();)t.push(r.currentNode);return t}var yB=AC,xB=OC,DC=IC;const wB=yB,SB=xB,jC=d.forwardRef(({className:e,align:t="center",sideOffset:r=4,...n},o)=>f.jsx(DC,{ref:o,align:t,sideOffset:r,className:O("z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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 origin-[--radix-hover-card-content-transform-origin]",e),...n}));jC.displayName=DC.displayName;var CB=Object.defineProperty,_B=Object.defineProperties,RB=Object.getOwnPropertyDescriptors,La=Object.getOwnPropertySymbols,kC=Object.prototype.hasOwnProperty,$C=Object.prototype.propertyIsEnumerable,nb=(e,t,r)=>t in e?CB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,EB=(e,t)=>{for(var r in t||(t={}))kC.call(t,r)&&nb(e,r,t[r]);if(La)for(var r of La(t))$C.call(t,r)&&nb(e,r,t[r]);return e},PB=(e,t)=>_B(e,RB(t)),TB=(e,t)=>{var r={};for(var n in e)kC.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&La)for(var n of La(e))t.indexOf(n)<0&&$C.call(e,n)&&(r[n]=e[n]);return r};function NB(e){let t=setTimeout(e,0),r=setTimeout(e,10),n=setTimeout(e,50);return[t,r,n]}function AB(e){let t=d.useRef();return d.useEffect(()=>{t.current=e}),t.current}var MB=18,LC=40,OB=`${LC}px`,IB=["[data-lastpass-icon-root]","com-1password-button","[data-dashlanecreated]",'[style$="2147483647 !important;"]'].join(",");function DB({containerRef:e,inputRef:t,pushPasswordManagerStrategy:r,isFocused:n}){let[o,a]=d.useState(!1),[i,s]=d.useState(!1),[c,l]=d.useState(!1),p=d.useMemo(()=>r==="none"?!1:(r==="increase-width"||r==="experimental-no-flickering")&&o&&i,[o,i,r]),u=d.useCallback(()=>{let m=e.current,b=t.current;if(!m||!b||c||r==="none")return;let g=m,h=g.getBoundingClientRect().left+g.offsetWidth,v=g.getBoundingClientRect().top+g.offsetHeight/2,y=h-MB,x=v;document.querySelectorAll(IB).length===0&&document.elementFromPoint(y,x)===m||(a(!0),l(!0))},[e,t,c,r]);return d.useEffect(()=>{let m=e.current;if(!m||r==="none")return;function b(){let h=window.innerWidth-m.getBoundingClientRect().right;s(h>=LC)}b();let g=setInterval(b,1e3);return()=>{clearInterval(g)}},[e,r]),d.useEffect(()=>{let m=n||document.activeElement===t.current;if(r==="none"||!m)return;let b=setTimeout(u,0),g=setTimeout(u,2e3),h=setTimeout(u,5e3),v=setTimeout(()=>{l(!0)},6e3);return()=>{clearTimeout(b),clearTimeout(g),clearTimeout(h),clearTimeout(v)}},[t,n,r,u]),{hasPWMBadge:o,willPushPWMBadge:p,PWM_BADGE_SPACE_WIDTH:OB}}var FC=d.createContext({}),BC=d.forwardRef((e,t)=>{var r=e,{value:n,onChange:o,maxLength:a,textAlign:i="left",pattern:s,placeholder:c,inputMode:l="numeric",onComplete:p,pushPasswordManagerStrategy:u="increase-width",pasteTransformer:m,containerClassName:b,noScriptCSSFallback:g=jB,render:h,children:v}=r,y=TB(r,["value","onChange","maxLength","textAlign","pattern","placeholder","inputMode","onComplete","pushPasswordManagerStrategy","pasteTransformer","containerClassName","noScriptCSSFallback","render","children"]),x,w,S,_,R;let[C,A]=d.useState(typeof y.defaultValue=="string"?y.defaultValue:""),P=n??C,k=AB(P),D=d.useCallback(I=>{o==null||o(I),A(I)},[o]),L=d.useMemo(()=>s?typeof s=="string"?new RegExp(s):s:null,[s]),N=d.useRef(null),j=d.useRef(null),$=d.useRef({value:P,onChange:D,isIOS:typeof window<"u"&&((w=(x=window==null?void 0:window.CSS)==null?void 0:x.supports)==null?void 0:w.call(x,"-webkit-touch-callout","none"))}),M=d.useRef({prev:[(S=N.current)==null?void 0:S.selectionStart,(_=N.current)==null?void 0:_.selectionEnd,(R=N.current)==null?void 0:R.selectionDirection]});d.useImperativeHandle(t,()=>N.current,[]),d.useEffect(()=>{let I=N.current,ee=j.current;if(!I||!ee)return;$.current.value!==I.value&&$.current.onChange(I.value),M.current.prev=[I.selectionStart,I.selectionEnd,I.selectionDirection];function pe(){if(document.activeElement!==I){te(null),U(null);return}let fe=I.selectionStart,Ee=I.selectionEnd,Fe=I.selectionDirection,we=I.maxLength,Oe=I.value,rt=M.current.prev,Ze=-1,We=-1,ot;if(Oe.length!==0&&fe!==null&&Ee!==null){let Ct=fe===Ee,Ke=fe===Oe.length&&Oe.length<we;if(Ct&&!Ke){let Je=fe;if(Je===0)Ze=0,We=1,ot="forward";else if(Je===we)Ze=Je-1,We=Je,ot="backward";else if(we>1&&Oe.length>1){let At=0;if(rt[0]!==null&&rt[1]!==null){ot=Je<rt[1]?"backward":"forward";let Vt=rt[0]===rt[1]&&rt[0]<we;ot==="backward"&&!Vt&&(At=-1)}Ze=At+Je,We=At+Je+1}}Ze!==-1&&We!==-1&&Ze!==We&&N.current.setSelectionRange(Ze,We,ot)}let pt=Ze!==-1?Ze:fe,dt=We!==-1?We:Ee,Ve=ot??Fe;te(pt),U(dt),M.current.prev=[pt,dt,Ve]}if(document.addEventListener("selectionchange",pe,{capture:!0}),pe(),document.activeElement===I&&oe(!0),!document.getElementById("input-otp-style")){let fe=document.createElement("style");if(fe.id="input-otp-style",document.head.appendChild(fe),fe.sheet){let Ee="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";Fn(fe.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),Fn(fe.sheet,`[data-input-otp]:autofill { ${Ee} }`),Fn(fe.sheet,`[data-input-otp]:-webkit-autofill { ${Ee} }`),Fn(fe.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),Fn(fe.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}let me=()=>{ee&&ee.style.setProperty("--root-height",`${I.clientHeight}px`)};me();let ge=new ResizeObserver(me);return ge.observe(I),()=>{document.removeEventListener("selectionchange",pe,{capture:!0}),ge.disconnect()}},[]);let[G,H]=d.useState(!1),[z,oe]=d.useState(!1),[Z,te]=d.useState(null),[F,U]=d.useState(null);d.useEffect(()=>{NB(()=>{var I,ee,pe,me;(I=N.current)==null||I.dispatchEvent(new Event("input"));let ge=(ee=N.current)==null?void 0:ee.selectionStart,fe=(pe=N.current)==null?void 0:pe.selectionEnd,Ee=(me=N.current)==null?void 0:me.selectionDirection;ge!==null&&fe!==null&&(te(ge),U(fe),M.current.prev=[ge,fe,Ee])})},[P,z]),d.useEffect(()=>{k!==void 0&&P!==k&&k.length<a&&P.length===a&&(p==null||p(P))},[a,p,k,P]);let Q=DB({containerRef:j,inputRef:N,pushPasswordManagerStrategy:u,isFocused:z}),K=d.useCallback(I=>{let ee=I.currentTarget.value.slice(0,a);if(ee.length>0&&L&&!L.test(ee)){I.preventDefault();return}typeof k=="string"&&ee.length<k.length&&document.dispatchEvent(new Event("selectionchange")),D(ee)},[a,D,k,L]),q=d.useCallback(()=>{var I;if(N.current){let ee=Math.min(N.current.value.length,a-1),pe=N.current.value.length;(I=N.current)==null||I.setSelectionRange(ee,pe),te(ee),U(pe)}oe(!0)},[a]),W=d.useCallback(I=>{var ee,pe;let me=N.current;if(!m&&(!$.current.isIOS||!I.clipboardData||!me))return;let ge=I.clipboardData.getData("text/plain"),fe=m?m(ge):ge;I.preventDefault();let Ee=(ee=N.current)==null?void 0:ee.selectionStart,Fe=(pe=N.current)==null?void 0:pe.selectionEnd,we=(Ee!==Fe?P.slice(0,Ee)+fe+P.slice(Fe):P.slice(0,Ee)+fe+P.slice(Ee)).slice(0,a);if(we.length>0&&L&&!L.test(we))return;me.value=we,D(we);let Oe=Math.min(we.length,a-1),rt=we.length;me.setSelectionRange(Oe,rt),te(Oe),U(rt)},[a,D,L,P]),re=d.useMemo(()=>({position:"relative",cursor:y.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"}),[y.disabled]),J=d.useMemo(()=>({position:"absolute",inset:0,width:Q.willPushPWMBadge?`calc(100% + ${Q.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:Q.willPushPWMBadge?`inset(0 ${Q.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:"100%",display:"flex",textAlign:i,opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"}),[Q.PWM_BADGE_SPACE_WIDTH,Q.willPushPWMBadge,i]),ne=d.useMemo(()=>d.createElement("input",PB(EB({autoComplete:y.autoComplete||"one-time-code"},y),{"data-input-otp":!0,"data-input-otp-placeholder-shown":P.length===0||void 0,"data-input-otp-mss":Z,"data-input-otp-mse":F,inputMode:l,pattern:L==null?void 0:L.source,"aria-placeholder":c,style:J,maxLength:a,value:P,ref:N,onPaste:I=>{var ee;W(I),(ee=y.onPaste)==null||ee.call(y,I)},onChange:K,onMouseOver:I=>{var ee;H(!0),(ee=y.onMouseOver)==null||ee.call(y,I)},onMouseLeave:I=>{var ee;H(!1),(ee=y.onMouseLeave)==null||ee.call(y,I)},onFocus:I=>{var ee;q(),(ee=y.onFocus)==null||ee.call(y,I)},onBlur:I=>{var ee;oe(!1),(ee=y.onBlur)==null||ee.call(y,I)}})),[K,q,W,l,J,a,F,Z,y,L==null?void 0:L.source,P]),V=d.useMemo(()=>({slots:Array.from({length:a}).map((I,ee)=>{var pe;let me=z&&Z!==null&&F!==null&&(Z===F&&ee===Z||ee>=Z&&ee<F),ge=P[ee]!==void 0?P[ee]:null,fe=P[0]!==void 0?null:(pe=c==null?void 0:c[ee])!=null?pe:null;return{char:ge,placeholderChar:fe,isActive:me,hasFakeCaret:me&&ge===null}}),isFocused:z,isHovering:!y.disabled&&G}),[z,G,a,F,Z,y.disabled,P]),ae=d.useMemo(()=>h?h(V):d.createElement(FC.Provider,{value:V},v),[v,V,h]);return d.createElement(d.Fragment,null,g!==null&&d.createElement("noscript",null,d.createElement("style",null,g)),d.createElement("div",{ref:j,"data-input-otp-container":!0,style:re,className:b},ae,d.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},ne)))});BC.displayName="Input";function Fn(e,t){try{e.insertRule(t)}catch{console.error("input-otp could not insert CSS rule:",t)}}var jB=`
|
|
204
|
+
[data-input-otp] {
|
|
205
|
+
--nojs-bg: white !important;
|
|
206
|
+
--nojs-fg: black !important;
|
|
207
|
+
|
|
208
|
+
background-color: var(--nojs-bg) !important;
|
|
209
|
+
color: var(--nojs-fg) !important;
|
|
210
|
+
caret-color: var(--nojs-fg) !important;
|
|
211
|
+
letter-spacing: .25em !important;
|
|
212
|
+
text-align: center !important;
|
|
213
|
+
border: 1px solid var(--nojs-fg) !important;
|
|
214
|
+
border-radius: 4px !important;
|
|
215
|
+
width: 100% !important;
|
|
216
|
+
}
|
|
217
|
+
@media (prefers-color-scheme: dark) {
|
|
218
|
+
[data-input-otp] {
|
|
219
|
+
--nojs-bg: black !important;
|
|
220
|
+
--nojs-fg: white !important;
|
|
221
|
+
}
|
|
222
|
+
}`;const zC=d.forwardRef(({className:e,containerClassName:t,...r},n)=>f.jsx(BC,{ref:n,containerClassName:O("flex items-center gap-2 has-[:disabled]:opacity-50",t),className:O("disabled:cursor-not-allowed",e),...r}));zC.displayName="InputOTP";const qC=d.forwardRef(({className:e,...t},r)=>f.jsx("div",{ref:r,className:O("flex items-center",e),...t}));qC.displayName="InputOTPGroup";const HC=d.forwardRef(({index:e,className:t,...r},n)=>{const o=d.useContext(FC),{char:a,hasFakeCaret:i,isActive:s}=o.slots[e];return f.jsxs("div",{ref:n,className:O("relative flex h-9 w-9 items-center justify-center border-y border-r border-input text-sm shadow-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md",s&&"z-10 ring-1 ring-ring",t),...r,children:[a,i&&f.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:f.jsx("div",{className:"h-4 w-px animate-caret-blink bg-foreground duration-1000"})})]})});HC.displayName="InputOTPSlot";const VC=d.forwardRef(({...e},t)=>f.jsx("div",{ref:t,role:"separator",...e,children:f.jsx($N,{})}));VC.displayName="InputOTPSeparator";const uo=d.forwardRef(({className:e,type:t,...r},n)=>f.jsx("input",{type:t,className:O("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...r}));uo.displayName="Input";var Si="Menubar",[qu,kB,$B]=sr(Si),[GC,e3]=je(Si,[$B,Qt]),ut=Mo(),UC=Qt(),[LB,Kf]=GC(Si),WC=d.forwardRef((e,t)=>{const{__scopeMenubar:r,value:n,onValueChange:o,defaultValue:a,loop:i=!0,dir:s,...c}=e,l=Ft(s),p=UC(r),[u="",m]=$e({prop:n,onChange:o,defaultProp:a}),[b,g]=d.useState(null);return f.jsx(LB,{scope:r,value:u,onMenuOpen:d.useCallback(h=>{m(h),g(h)},[m]),onMenuClose:d.useCallback(()=>m(""),[m]),onMenuToggle:d.useCallback(h=>{m(v=>v?"":h),g(h)},[m]),dir:l,loop:i,children:f.jsx(qu.Provider,{scope:r,children:f.jsx(qu.Slot,{scope:r,children:f.jsx(To,{asChild:!0,...p,orientation:"horizontal",loop:i,dir:l,currentTabStopId:b,onCurrentTabStopIdChange:g,children:f.jsx(X.div,{role:"menubar",...c,ref:t})})})})})});WC.displayName=Si;var Yf="MenubarMenu",[FB,KC]=GC(Yf),YC=e=>{const{__scopeMenubar:t,value:r,...n}=e,o=Ue(),a=r||o||"LEGACY_REACT_AUTO_VALUE",i=Kf(Yf,t),s=ut(t),c=d.useRef(null),l=d.useRef(!1),p=i.value===a;return d.useEffect(()=>{p||(l.current=!1)},[p]),f.jsx(FB,{scope:t,value:a,triggerId:Ue(),triggerRef:c,contentId:Ue(),wasKeyboardTriggerOpenRef:l,children:f.jsx(_f,{...s,open:p,onOpenChange:u=>{u||i.onMenuClose()},modal:!1,dir:i.dir,...n})})};YC.displayName=Yf;var Hu="MenubarTrigger",XC=d.forwardRef((e,t)=>{const{__scopeMenubar:r,disabled:n=!1,...o}=e,a=UC(r),i=ut(r),s=Kf(Hu,r),c=KC(Hu,r),l=d.useRef(null),p=de(t,l,c.triggerRef),[u,m]=d.useState(!1),b=s.value===c.value;return f.jsx(qu.ItemSlot,{scope:r,value:c.value,disabled:n,children:f.jsx(No,{asChild:!0,...a,focusable:!n,tabStopId:c.value,children:f.jsx(Rf,{asChild:!0,...i,children:f.jsx(X.button,{type:"button",role:"menuitem",id:c.triggerId,"aria-haspopup":"menu","aria-expanded":b,"aria-controls":b?c.contentId:void 0,"data-highlighted":u?"":void 0,"data-state":b?"open":"closed","data-disabled":n?"":void 0,disabled:n,...o,ref:p,onPointerDown:B(e.onPointerDown,g=>{!n&&g.button===0&&g.ctrlKey===!1&&(s.onMenuOpen(c.value),b||g.preventDefault())}),onPointerEnter:B(e.onPointerEnter,()=>{var h;!!s.value&&!b&&(s.onMenuOpen(c.value),(h=l.current)==null||h.focus())}),onKeyDown:B(e.onKeyDown,g=>{n||(["Enter"," "].includes(g.key)&&s.onMenuToggle(c.value),g.key==="ArrowDown"&&s.onMenuOpen(c.value),["Enter"," ","ArrowDown"].includes(g.key)&&(c.wasKeyboardTriggerOpenRef.current=!0,g.preventDefault()))}),onFocus:B(e.onFocus,()=>m(!0)),onBlur:B(e.onBlur,()=>m(!1))})})})})});XC.displayName=Hu;var BB="MenubarPortal",ZC=e=>{const{__scopeMenubar:t,...r}=e,n=ut(t);return f.jsx(Ef,{...n,...r})};ZC.displayName=BB;var Vu="MenubarContent",JC=d.forwardRef((e,t)=>{const{__scopeMenubar:r,align:n="start",...o}=e,a=ut(r),i=Kf(Vu,r),s=KC(Vu,r),c=kB(r),l=d.useRef(!1);return f.jsx(Pf,{id:s.contentId,"aria-labelledby":s.triggerId,"data-radix-menubar-content":"",...a,...o,ref:t,align:n,onCloseAutoFocus:B(e.onCloseAutoFocus,p=>{var m;!!!i.value&&!l.current&&((m=s.triggerRef.current)==null||m.focus()),l.current=!1,p.preventDefault()}),onFocusOutside:B(e.onFocusOutside,p=>{const u=p.target;c().some(b=>{var g;return(g=b.ref.current)==null?void 0:g.contains(u)})&&p.preventDefault()}),onInteractOutside:B(e.onInteractOutside,()=>{l.current=!0}),onEntryFocus:p=>{s.wasKeyboardTriggerOpenRef.current||p.preventDefault()},onKeyDown:B(e.onKeyDown,p=>{if(["ArrowRight","ArrowLeft"].includes(p.key)){const u=p.target,m=u.hasAttribute("data-radix-menubar-subtrigger"),b=u.closest("[data-radix-menubar-content]")!==p.currentTarget,h=(i.dir==="rtl"?"ArrowRight":"ArrowLeft")===p.key;if(!h&&m||b&&h)return;let x=c().filter(_=>!_.disabled).map(_=>_.value);h&&x.reverse();const w=x.indexOf(s.value);x=i.loop?ez(x,w+1):x.slice(w+1);const[S]=x;S&&i.onMenuOpen(S)}},{checkForDefaultPrevented:!1}),style:{...e.style,"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"}})});JC.displayName=Vu;var zB="MenubarGroup",QC=d.forwardRef((e,t)=>{const{__scopeMenubar:r,...n}=e,o=ut(r);return f.jsx(Tf,{...o,...n,ref:t})});QC.displayName=zB;var qB="MenubarLabel",e_=d.forwardRef((e,t)=>{const{__scopeMenubar:r,...n}=e,o=ut(r);return f.jsx(Nf,{...o,...n,ref:t})});e_.displayName=qB;var HB="MenubarItem",t_=d.forwardRef((e,t)=>{const{__scopeMenubar:r,...n}=e,o=ut(r);return f.jsx(Af,{...o,...n,ref:t})});t_.displayName=HB;var VB="MenubarCheckboxItem",r_=d.forwardRef((e,t)=>{const{__scopeMenubar:r,...n}=e,o=ut(r);return f.jsx(Mf,{...o,...n,ref:t})});r_.displayName=VB;var GB="MenubarRadioGroup",n_=d.forwardRef((e,t)=>{const{__scopeMenubar:r,...n}=e,o=ut(r);return f.jsx(Of,{...o,...n,ref:t})});n_.displayName=GB;var UB="MenubarRadioItem",o_=d.forwardRef((e,t)=>{const{__scopeMenubar:r,...n}=e,o=ut(r);return f.jsx(If,{...o,...n,ref:t})});o_.displayName=UB;var WB="MenubarItemIndicator",a_=d.forwardRef((e,t)=>{const{__scopeMenubar:r,...n}=e,o=ut(r);return f.jsx(Df,{...o,...n,ref:t})});a_.displayName=WB;var KB="MenubarSeparator",i_=d.forwardRef((e,t)=>{const{__scopeMenubar:r,...n}=e,o=ut(r);return f.jsx(jf,{...o,...n,ref:t})});i_.displayName=KB;var YB="MenubarArrow",XB=d.forwardRef((e,t)=>{const{__scopeMenubar:r,...n}=e,o=ut(r);return f.jsx(kf,{...o,...n,ref:t})});XB.displayName=YB;var ZB="MenubarSub",s_=e=>{const{__scopeMenubar:t,children:r,open:n,onOpenChange:o,defaultOpen:a}=e,i=ut(t),[s=!1,c]=$e({prop:n,defaultProp:a,onChange:o});return f.jsx($f,{...i,open:s,onOpenChange:c,children:r})};s_.displayName=ZB;var JB="MenubarSubTrigger",c_=d.forwardRef((e,t)=>{const{__scopeMenubar:r,...n}=e,o=ut(r);return f.jsx(Lf,{"data-radix-menubar-subtrigger":"",...o,...n,ref:t})});c_.displayName=JB;var QB="MenubarSubContent",l_=d.forwardRef((e,t)=>{const{__scopeMenubar:r,...n}=e,o=ut(r);return f.jsx(Ff,{...o,"data-radix-menubar-content":"",...n,ref:t,style:{...e.style,"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"}})});l_.displayName=QB;function ez(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var u_=WC,tz=YC,d_=XC,f_=ZC,p_=JC,rz=QC,m_=e_,h_=t_,g_=r_,nz=n_,v_=o_,b_=a_,y_=i_,oz=s_,x_=c_,w_=l_;function az({...e}){return f.jsx(tz,{...e})}function iz({...e}){return f.jsx(rz,{...e})}function sz({...e}){return f.jsx(f_,{...e})}function cz({...e}){return f.jsx(nz,{...e})}function lz({...e}){return f.jsx(oz,{"data-slot":"menubar-sub",...e})}const S_=d.forwardRef(({className:e,...t},r)=>f.jsx(u_,{ref:r,className:O("flex h-9 items-center space-x-1 rounded-md border bg-background p-1 shadow-sm",e),...t}));S_.displayName=u_.displayName;const C_=d.forwardRef(({className:e,...t},r)=>f.jsx(d_,{ref:r,className:O("flex cursor-default select-none items-center rounded-sm px-3 py-1 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",e),...t}));C_.displayName=d_.displayName;const __=d.forwardRef(({className:e,inset:t,children:r,...n},o)=>f.jsxs(x_,{ref:o,className:O("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",t&&"pl-8",e),...n,children:[r,f.jsx(jr,{className:"ml-auto h-4 w-4"})]}));__.displayName=x_.displayName;const R_=d.forwardRef(({className:e,...t},r)=>f.jsx(w_,{ref:r,className:O("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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 origin-[--radix-menubar-content-transform-origin]",e),...t}));R_.displayName=w_.displayName;const E_=d.forwardRef(({className:e,align:t="start",alignOffset:r=-4,sideOffset:n=8,...o},a)=>f.jsx(f_,{children:f.jsx(p_,{ref:a,align:t,alignOffset:r,sideOffset:n,className:O("z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in 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 origin-[--radix-menubar-content-transform-origin]",e),...o})}));E_.displayName=p_.displayName;const P_=d.forwardRef(({className:e,inset:t,...r},n)=>f.jsx(h_,{ref:n,className:O("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...r}));P_.displayName=h_.displayName;const T_=d.forwardRef(({className:e,children:t,checked:r,...n},o)=>f.jsxs(g_,{ref:o,className:O("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:r,...n,children:[f.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:f.jsx(b_,{children:f.jsx(vo,{className:"h-4 w-4"})})}),t]}));T_.displayName=g_.displayName;const N_=d.forwardRef(({className:e,children:t,...r},n)=>f.jsxs(v_,{ref:n,className:O("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[f.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:f.jsx(b_,{children:f.jsx(Za,{className:"h-4 w-4 fill-current"})})}),t]}));N_.displayName=v_.displayName;const A_=d.forwardRef(({className:e,inset:t,...r},n)=>f.jsx(m_,{ref:n,className:O("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...r}));A_.displayName=m_.displayName;const M_=d.forwardRef(({className:e,...t},r)=>f.jsx(y_,{ref:r,className:O("-mx-1 my-1 h-px bg-muted",e),...t}));M_.displayName=y_.displayName;const O_=({className:e,...t})=>f.jsx("span",{className:O("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});O_.displayname="MenubarShortcut";var uz="VisuallyHidden",ko=d.forwardRef((e,t)=>f.jsx(X.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));ko.displayName=uz;var I_=ko,An="NavigationMenu",[Xf,D_,dz]=sr(An),[Gu,fz,pz]=sr(An),[Zf,t3]=je(An,[dz,pz]),[mz,Tt]=Zf(An),[hz,gz]=Zf(An),j_=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,value:n,onValueChange:o,defaultValue:a,delayDuration:i=200,skipDelayDuration:s=300,orientation:c="horizontal",dir:l,...p}=e,[u,m]=d.useState(null),b=de(t,P=>m(P)),g=Ft(l),h=d.useRef(0),v=d.useRef(0),y=d.useRef(0),[x,w]=d.useState(!0),[S="",_]=$e({prop:n,onChange:P=>{const k=P!=="",D=s>0;k?(window.clearTimeout(y.current),D&&w(!1)):(window.clearTimeout(y.current),y.current=window.setTimeout(()=>w(!0),s)),o==null||o(P)},defaultProp:a}),R=d.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>_(""),150)},[_]),C=d.useCallback(P=>{window.clearTimeout(v.current),_(P)},[_]),A=d.useCallback(P=>{S===P?window.clearTimeout(v.current):h.current=window.setTimeout(()=>{window.clearTimeout(v.current),_(P)},i)},[S,_,i]);return d.useEffect(()=>()=>{window.clearTimeout(h.current),window.clearTimeout(v.current),window.clearTimeout(y.current)},[]),f.jsx($_,{scope:r,isRootMenu:!0,value:S,dir:g,orientation:c,rootNavigationMenu:u,onTriggerEnter:P=>{window.clearTimeout(h.current),x?A(P):C(P)},onTriggerLeave:()=>{window.clearTimeout(h.current),R()},onContentEnter:()=>window.clearTimeout(v.current),onContentLeave:R,onItemSelect:P=>{_(k=>k===P?"":P)},onItemDismiss:()=>_(""),children:f.jsx(X.nav,{"aria-label":"Main","data-orientation":c,dir:g,...p,ref:b})})});j_.displayName=An;var k_="NavigationMenuSub",vz=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,value:n,onValueChange:o,defaultValue:a,orientation:i="horizontal",...s}=e,c=Tt(k_,r),[l="",p]=$e({prop:n,onChange:o,defaultProp:a});return f.jsx($_,{scope:r,isRootMenu:!1,value:l,dir:c.dir,orientation:i,rootNavigationMenu:c.rootNavigationMenu,onTriggerEnter:u=>p(u),onItemSelect:u=>p(u),onItemDismiss:()=>p(""),children:f.jsx(X.div,{"data-orientation":i,...s,ref:t})})});vz.displayName=k_;var $_=e=>{const{scope:t,isRootMenu:r,rootNavigationMenu:n,dir:o,orientation:a,children:i,value:s,onItemSelect:c,onItemDismiss:l,onTriggerEnter:p,onTriggerLeave:u,onContentEnter:m,onContentLeave:b}=e,[g,h]=d.useState(null),[v,y]=d.useState(new Map),[x,w]=d.useState(null);return f.jsx(mz,{scope:t,isRootMenu:r,rootNavigationMenu:n,value:s,previousValue:_n(s),baseId:Ue(),dir:o,orientation:a,viewport:g,onViewportChange:h,indicatorTrack:x,onIndicatorTrackChange:w,onTriggerEnter:Te(p),onTriggerLeave:Te(u),onContentEnter:Te(m),onContentLeave:Te(b),onItemSelect:Te(c),onItemDismiss:Te(l),onViewportContentChange:d.useCallback((S,_)=>{y(R=>(R.set(S,_),new Map(R)))},[]),onViewportContentRemove:d.useCallback(S=>{y(_=>_.has(S)?(_.delete(S),new Map(_)):_)},[]),children:f.jsx(Xf.Provider,{scope:t,children:f.jsx(hz,{scope:t,items:v,children:i})})})},L_="NavigationMenuList",F_=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,...n}=e,o=Tt(L_,r),a=f.jsx(X.ul,{"data-orientation":o.orientation,...n,ref:t});return f.jsx(X.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange,children:f.jsx(Xf.Slot,{scope:r,children:o.isRootMenu?f.jsx(Y_,{asChild:!0,children:a}):a})})});F_.displayName=L_;var B_="NavigationMenuItem",[bz,z_]=Zf(B_),q_=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,value:n,...o}=e,a=Ue(),i=n||a||"LEGACY_REACT_AUTO_VALUE",s=d.useRef(null),c=d.useRef(null),l=d.useRef(null),p=d.useRef(()=>{}),u=d.useRef(!1),m=d.useCallback((g="start")=>{if(s.current){p.current();const h=Wu(s.current);h.length&&ep(g==="start"?h:h.reverse())}},[]),b=d.useCallback(()=>{if(s.current){const g=Wu(s.current);g.length&&(p.current=Rz(g))}},[]);return f.jsx(bz,{scope:r,value:i,triggerRef:c,contentRef:s,focusProxyRef:l,wasEscapeCloseRef:u,onEntryKeyDown:m,onFocusProxyEnter:m,onRootContentClose:b,onContentFocusOutside:b,children:f.jsx(X.li,{...o,ref:t})})});q_.displayName=B_;var Uu="NavigationMenuTrigger",H_=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,disabled:n,...o}=e,a=Tt(Uu,e.__scopeNavigationMenu),i=z_(Uu,e.__scopeNavigationMenu),s=d.useRef(null),c=de(s,i.triggerRef,t),l=Z_(a.baseId,i.value),p=J_(a.baseId,i.value),u=d.useRef(!1),m=d.useRef(!1),b=i.value===a.value;return f.jsxs(f.Fragment,{children:[f.jsx(Xf.ItemSlot,{scope:r,value:i.value,children:f.jsx(X_,{asChild:!0,children:f.jsx(X.button,{id:l,disabled:n,"data-disabled":n?"":void 0,"data-state":tp(b),"aria-expanded":b,"aria-controls":p,...o,ref:c,onPointerEnter:B(e.onPointerEnter,()=>{m.current=!1,i.wasEscapeCloseRef.current=!1}),onPointerMove:B(e.onPointerMove,Fa(()=>{n||m.current||i.wasEscapeCloseRef.current||u.current||(a.onTriggerEnter(i.value),u.current=!0)})),onPointerLeave:B(e.onPointerLeave,Fa(()=>{n||(a.onTriggerLeave(),u.current=!1)})),onClick:B(e.onClick,()=>{a.onItemSelect(i.value),m.current=b}),onKeyDown:B(e.onKeyDown,g=>{const v={horizontal:"ArrowDown",vertical:a.dir==="rtl"?"ArrowLeft":"ArrowRight"}[a.orientation];b&&g.key===v&&(i.onEntryKeyDown(),g.preventDefault())})})})}),b&&f.jsxs(f.Fragment,{children:[f.jsx(I_,{"aria-hidden":!0,tabIndex:0,ref:i.focusProxyRef,onFocus:g=>{const h=i.contentRef.current,v=g.relatedTarget,y=v===s.current,x=h==null?void 0:h.contains(v);(y||!x)&&i.onFocusProxyEnter(y?"start":"end")}}),a.viewport&&f.jsx("span",{"aria-owns":p})]})]})});H_.displayName=Uu;var yz="NavigationMenuLink",ob="navigationMenu.linkSelect",V_=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,active:n,onSelect:o,...a}=e;return f.jsx(X_,{asChild:!0,children:f.jsx(X.a,{"data-active":n?"":void 0,"aria-current":n?"page":void 0,...a,ref:t,onClick:B(e.onClick,i=>{const s=i.target,c=new CustomEvent(ob,{bubbles:!0,cancelable:!0});if(s.addEventListener(ob,l=>o==null?void 0:o(l),{once:!0}),Xn(s,c),!c.defaultPrevented&&!i.metaKey){const l=new CustomEvent(pa,{bubbles:!0,cancelable:!0});Xn(s,l)}},{checkForDefaultPrevented:!1})})})});V_.displayName=yz;var Jf="NavigationMenuIndicator",G_=d.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=Tt(Jf,e.__scopeNavigationMenu),a=!!o.value;return o.indicatorTrack?Wa.createPortal(f.jsx(Le,{present:r||a,children:f.jsx(xz,{...n,ref:t})}),o.indicatorTrack):null});G_.displayName=Jf;var xz=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,...n}=e,o=Tt(Jf,r),a=D_(r),[i,s]=d.useState(null),[c,l]=d.useState(null),p=o.orientation==="horizontal",u=!!o.value;d.useEffect(()=>{var h;const g=(h=a().find(v=>v.value===o.value))==null?void 0:h.ref.current;g&&s(g)},[a,o.value]);const m=()=>{i&&l({size:p?i.offsetWidth:i.offsetHeight,offset:p?i.offsetLeft:i.offsetTop})};return Ku(i,m),Ku(o.indicatorTrack,m),c?f.jsx(X.div,{"aria-hidden":!0,"data-state":u?"visible":"hidden","data-orientation":o.orientation,...n,ref:t,style:{position:"absolute",...p?{left:0,width:c.size+"px",transform:`translateX(${c.offset}px)`}:{top:0,height:c.size+"px",transform:`translateY(${c.offset}px)`},...n.style}}):null}),pn="NavigationMenuContent",U_=d.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=Tt(pn,e.__scopeNavigationMenu),a=z_(pn,e.__scopeNavigationMenu),i=de(a.contentRef,t),s=a.value===o.value,c={value:a.value,triggerRef:a.triggerRef,focusProxyRef:a.focusProxyRef,wasEscapeCloseRef:a.wasEscapeCloseRef,onContentFocusOutside:a.onContentFocusOutside,onRootContentClose:a.onRootContentClose,...n};return o.viewport?f.jsx(wz,{forceMount:r,...c,ref:i}):f.jsx(Le,{present:r||s,children:f.jsx(W_,{"data-state":tp(s),...c,ref:i,onPointerEnter:B(e.onPointerEnter,o.onContentEnter),onPointerLeave:B(e.onPointerLeave,Fa(o.onContentLeave)),style:{pointerEvents:!s&&o.isRootMenu?"none":void 0,...c.style}})})});U_.displayName=pn;var wz=d.forwardRef((e,t)=>{const r=Tt(pn,e.__scopeNavigationMenu),{onViewportContentChange:n,onViewportContentRemove:o}=r;return He(()=>{n(e.value,{ref:t,...e})},[e,t,n]),He(()=>()=>o(e.value),[e.value,o]),null}),pa="navigationMenu.rootContentDismiss",W_=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,value:n,triggerRef:o,focusProxyRef:a,wasEscapeCloseRef:i,onRootContentClose:s,onContentFocusOutside:c,...l}=e,p=Tt(pn,r),u=d.useRef(null),m=de(u,t),b=Z_(p.baseId,n),g=J_(p.baseId,n),h=D_(r),v=d.useRef(null),{onItemDismiss:y}=p;d.useEffect(()=>{const w=u.current;if(p.isRootMenu&&w){const S=()=>{var _;y(),s(),w.contains(document.activeElement)&&((_=o.current)==null||_.focus())};return w.addEventListener(pa,S),()=>w.removeEventListener(pa,S)}},[p.isRootMenu,e.value,o,y,s]);const x=d.useMemo(()=>{const S=h().map(k=>k.value);p.dir==="rtl"&&S.reverse();const _=S.indexOf(p.value),R=S.indexOf(p.previousValue),C=n===p.value,A=R===S.indexOf(n);if(!C&&!A)return v.current;const P=(()=>{if(_!==R){if(C&&R!==-1)return _>R?"from-end":"from-start";if(A&&_!==-1)return _>R?"to-start":"to-end"}return null})();return v.current=P,P},[p.previousValue,p.value,p.dir,h,n]);return f.jsx(Y_,{asChild:!0,children:f.jsx(lr,{id:g,"aria-labelledby":b,"data-motion":x,"data-orientation":p.orientation,...l,ref:m,disableOutsidePointerEvents:!1,onDismiss:()=>{var S;const w=new Event(pa,{bubbles:!0,cancelable:!0});(S=u.current)==null||S.dispatchEvent(w)},onFocusOutside:B(e.onFocusOutside,w=>{var _;c();const S=w.target;(_=p.rootNavigationMenu)!=null&&_.contains(S)&&w.preventDefault()}),onPointerDownOutside:B(e.onPointerDownOutside,w=>{var C;const S=w.target,_=h().some(A=>{var P;return(P=A.ref.current)==null?void 0:P.contains(S)}),R=p.isRootMenu&&((C=p.viewport)==null?void 0:C.contains(S));(_||R||!p.isRootMenu)&&w.preventDefault()}),onKeyDown:B(e.onKeyDown,w=>{var R;const S=w.altKey||w.ctrlKey||w.metaKey;if(w.key==="Tab"&&!S){const C=Wu(w.currentTarget),A=document.activeElement,P=C.findIndex(L=>L===A),D=w.shiftKey?C.slice(0,P).reverse():C.slice(P+1,C.length);ep(D)?w.preventDefault():(R=a.current)==null||R.focus()}}),onEscapeKeyDown:B(e.onEscapeKeyDown,w=>{i.current=!0})})})}),Qf="NavigationMenuViewport",K_=d.forwardRef((e,t)=>{const{forceMount:r,...n}=e,a=!!Tt(Qf,e.__scopeNavigationMenu).value;return f.jsx(Le,{present:r||a,children:f.jsx(Sz,{...n,ref:t})})});K_.displayName=Qf;var Sz=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,children:n,...o}=e,a=Tt(Qf,r),i=de(t,a.onViewportChange),s=gz(pn,e.__scopeNavigationMenu),[c,l]=d.useState(null),[p,u]=d.useState(null),m=c?(c==null?void 0:c.width)+"px":void 0,b=c?(c==null?void 0:c.height)+"px":void 0,g=!!a.value,h=g?a.value:a.previousValue;return Ku(p,()=>{p&&l({width:p.offsetWidth,height:p.offsetHeight})}),f.jsx(X.div,{"data-state":tp(g),"data-orientation":a.orientation,...o,ref:i,style:{pointerEvents:!g&&a.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":m,"--radix-navigation-menu-viewport-height":b,...o.style},onPointerEnter:B(e.onPointerEnter,a.onContentEnter),onPointerLeave:B(e.onPointerLeave,Fa(a.onContentLeave)),children:Array.from(s.items).map(([y,{ref:x,forceMount:w,...S}])=>{const _=h===y;return f.jsx(Le,{present:w||_,children:f.jsx(W_,{...S,ref:go(x,R=>{_&&R&&u(R)})})},y)})})}),Cz="FocusGroup",Y_=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,...n}=e,o=Tt(Cz,r);return f.jsx(Gu.Provider,{scope:r,children:f.jsx(Gu.Slot,{scope:r,children:f.jsx(X.div,{dir:o.dir,...n,ref:t})})})}),ab=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],_z="FocusGroupItem",X_=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,...n}=e,o=fz(r),a=Tt(_z,r);return f.jsx(Gu.ItemSlot,{scope:r,children:f.jsx(X.button,{...n,ref:t,onKeyDown:B(e.onKeyDown,i=>{if(["Home","End",...ab].includes(i.key)){let c=o().map(u=>u.ref.current);if([a.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(i.key)&&c.reverse(),ab.includes(i.key)){const u=c.indexOf(i.currentTarget);c=c.slice(u+1)}setTimeout(()=>ep(c)),i.preventDefault()}})})})});function Wu(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 ep(e){const t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}function Rz(e){return e.forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")}),()=>{e.forEach(t=>{const r=t.dataset.tabindex;t.setAttribute("tabindex",r)})}}function Ku(e,t){const r=Te(t);He(()=>{let n=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(r)});return o.observe(e),()=>{window.cancelAnimationFrame(n),o.unobserve(e)}}},[e,r])}function tp(e){return e?"open":"closed"}function Z_(e,t){return`${e}-trigger-${t}`}function J_(e,t){return`${e}-content-${t}`}function Fa(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Q_=j_,eR=F_,Ez=q_,tR=H_,Pz=V_,rR=G_,nR=U_,oR=K_;const aR=d.forwardRef(({className:e,children:t,...r},n)=>f.jsxs(Q_,{ref:n,className:O("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...r,children:[t,f.jsx(rp,{})]}));aR.displayName=Q_.displayName;const iR=d.forwardRef(({className:e,...t},r)=>f.jsx(eR,{ref:r,className:O("group flex flex-1 list-none items-center justify-center space-x-1",e),...t}));iR.displayName=eR.displayName;const Tz=Ez,sR=dr("group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:text-accent-foreground data-[state=open]:bg-accent/50 data-[state=open]:hover:bg-accent data-[state=open]:focus:bg-accent"),cR=d.forwardRef(({className:e,children:t,...r},n)=>f.jsxs(tR,{ref:n,className:O(sR(),"group",e),...r,children:[t," ",f.jsx(Xa,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));cR.displayName=tR.displayName;const lR=d.forwardRef(({className:e,...t},r)=>f.jsx(nR,{ref:r,className:O("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ",e),...t}));lR.displayName=nR.displayName;const Nz=Pz,rp=d.forwardRef(({className:e,...t},r)=>f.jsx("div",{className:O("absolute left-0 top-full flex justify-center"),children:f.jsx(oR,{className:O("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",e),ref:r,...t})}));rp.displayName=oR.displayName;const uR=d.forwardRef(({className:e,...t},r)=>f.jsx(rR,{ref:r,className:O("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...t,children:f.jsx("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));uR.displayName=rR.displayName;const dR=({className:e,...t})=>f.jsx("nav",{role:"navigation","aria-label":"pagination",className:O("mx-auto flex w-full justify-center",e),...t});dR.displayName="Pagination";const fR=d.forwardRef(({className:e,...t},r)=>f.jsx("ul",{ref:r,className:O("flex flex-row items-center gap-1",e),...t}));fR.displayName="PaginationContent";const pR=d.forwardRef(({className:e,...t},r)=>f.jsx("li",{ref:r,className:O("",e),...t}));pR.displayName="PaginationItem";const Ci=({className:e,isActive:t,size:r="icon",...n})=>f.jsx("a",{"aria-current":t?"page":void 0,className:O(xo({variant:t?"outline":"ghost",size:r}),e),...n});Ci.displayName="PaginationLink";const mR=({className:e,...t})=>f.jsxs(Ci,{"aria-label":"Go to previous page",size:"default",className:O("gap-1 pl-2.5",e),...t,children:[f.jsx(EN,{className:"h-4 w-4"}),f.jsx("span",{children:"Previous"})]});mR.displayName="PaginationPrevious";const hR=({className:e,...t})=>f.jsxs(Ci,{"aria-label":"Go to next page",size:"default",className:O("gap-1 pr-2.5",e),...t,children:[f.jsx("span",{children:"Next"}),f.jsx(jr,{className:"h-4 w-4"})]});hR.displayName="PaginationNext";const gR=({className:e,...t})=>f.jsxs("span",{"aria-hidden":!0,className:O("flex h-9 w-9 items-center justify-center",e),...t,children:[f.jsx(Hb,{className:"h-4 w-4"}),f.jsx("span",{className:"sr-only",children:"More pages"})]});gR.displayName="PaginationEllipsis";var np="Popover",[vR,r3]=je(np,[Jt]),$o=Jt(),[Az,Cr]=vR(np),bR=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:i=!1}=e,s=$o(t),c=d.useRef(null),[l,p]=d.useState(!1),[u=!1,m]=$e({prop:n,defaultProp:o,onChange:a});return f.jsx(Pn,{...s,children:f.jsx(Az,{scope:t,contentId:Ue(),triggerRef:c,open:u,onOpenChange:m,onOpenToggle:d.useCallback(()=>m(b=>!b),[m]),hasCustomAnchor:l,onCustomAnchorAdd:d.useCallback(()=>p(!0),[]),onCustomAnchorRemove:d.useCallback(()=>p(!1),[]),modal:i,children:r})})};bR.displayName=np;var yR="PopoverAnchor",xR=d.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Cr(yR,r),a=$o(r),{onCustomAnchorAdd:i,onCustomAnchorRemove:s}=o;return d.useEffect(()=>(i(),()=>s()),[i,s]),f.jsx(Tn,{...a,...n,ref:t})});xR.displayName=yR;var wR="PopoverTrigger",SR=d.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Cr(wR,r),a=$o(r),i=de(t,o.triggerRef),s=f.jsx(X.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":PR(o.open),...n,ref:i,onClick:B(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:f.jsx(Tn,{asChild:!0,...a,children:s})});SR.displayName=wR;var op="PopoverPortal",[Mz,Oz]=vR(op,{forceMount:void 0}),CR=e=>{const{__scopePopover:t,forceMount:r,children:n,container:o}=e,a=Cr(op,t);return f.jsx(Mz,{scope:t,forceMount:r,children:f.jsx(Le,{present:r||a.open,children:f.jsx(zr,{asChild:!0,container:o,children:n})})})};CR.displayName=op;var mn="PopoverContent",_R=d.forwardRef((e,t)=>{const r=Oz(mn,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,a=Cr(mn,e.__scopePopover);return f.jsx(Le,{present:n||a.open,children:a.modal?f.jsx(Iz,{...o,ref:t}):f.jsx(Dz,{...o,ref:t})})});_R.displayName=mn;var Iz=d.forwardRef((e,t)=>{const r=Cr(mn,e.__scopePopover),n=d.useRef(null),o=de(t,n),a=d.useRef(!1);return d.useEffect(()=>{const i=n.current;if(i)return ei(i)},[]),f.jsx(yo,{as:st,allowPinchZoom:!0,children:f.jsx(RR,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:B(e.onCloseAutoFocus,i=>{var s;i.preventDefault(),a.current||(s=r.triggerRef.current)==null||s.focus()}),onPointerDownOutside:B(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,c=s.button===0&&s.ctrlKey===!0,l=s.button===2||c;a.current=l},{checkForDefaultPrevented:!1}),onFocusOutside:B(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),Dz=d.forwardRef((e,t)=>{const r=Cr(mn,e.__scopePopover),n=d.useRef(!1),o=d.useRef(!1);return f.jsx(RR,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i,s;(i=e.onCloseAutoFocus)==null||i.call(e,a),a.defaultPrevented||(n.current||(s=r.triggerRef.current)==null||s.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{var c,l;(c=e.onInteractOutside)==null||c.call(e,a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=a.target;((l=r.triggerRef.current)==null?void 0:l.contains(i))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),RR=d.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:p,...u}=e,m=Cr(mn,r),b=$o(r);return Ja(),f.jsx(bo,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:f.jsx(lr,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:p,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>m.onOpenChange(!1),children:f.jsx(Eo,{"data-state":PR(m.open),role:"dialog",id:m.contentId,...b,...u,ref:t,style:{...u.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),ER="PopoverClose",jz=d.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Cr(ER,r);return f.jsx(X.button,{type:"button",...n,ref:t,onClick:B(e.onClick,()=>o.onOpenChange(!1))})});jz.displayName=ER;var kz="PopoverArrow",$z=d.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=$o(r);return f.jsx(Po,{...o,...n,ref:t})});$z.displayName=kz;function PR(e){return e?"open":"closed"}var Lz=bR,Fz=xR,Bz=SR,zz=CR,TR=_R;const qz=Lz,Hz=Bz,Vz=Fz,NR=d.forwardRef(({className:e,align:t="center",sideOffset:r=4,...n},o)=>f.jsx(zz,{children:f.jsx(TR,{ref:o,align:t,sideOffset:r,className:O("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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 origin-[--radix-popover-content-transform-origin]",e),...n})}));NR.displayName=TR.displayName;var ap="Progress",ip=100,[Gz,n3]=je(ap),[Uz,Wz]=Gz(ap),AR=d.forwardRef((e,t)=>{const{__scopeProgress:r,value:n=null,max:o,getValueLabel:a=Kz,...i}=e;(o||o===0)&&!ib(o)&&console.error(Yz(`${o}`,"Progress"));const s=ib(o)?o:ip;n!==null&&!sb(n,s)&&console.error(Xz(`${n}`,"Progress"));const c=sb(n,s)?n:null,l=Ba(c)?a(c,s):void 0;return f.jsx(Uz,{scope:r,value:c,max:s,children:f.jsx(X.div,{"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":Ba(c)?c:void 0,"aria-valuetext":l,role:"progressbar","data-state":IR(c,s),"data-value":c??void 0,"data-max":s,...i,ref:t})})});AR.displayName=ap;var MR="ProgressIndicator",OR=d.forwardRef((e,t)=>{const{__scopeProgress:r,...n}=e,o=Wz(MR,r);return f.jsx(X.div,{"data-state":IR(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,...n,ref:t})});OR.displayName=MR;function Kz(e,t){return`${Math.round(e/t*100)}%`}function IR(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function Ba(e){return typeof e=="number"}function ib(e){return Ba(e)&&!isNaN(e)&&e>0}function sb(e,t){return Ba(e)&&!isNaN(e)&&e<=t&&e>=0}function Yz(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${ip}\`.`}function Xz(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
|
|
223
|
+
- a positive number
|
|
224
|
+
- less than the value passed to \`max\` (or ${ip} if no \`max\` prop is set)
|
|
225
|
+
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
226
|
+
|
|
227
|
+
Defaulting to \`null\`.`}var DR=AR,Zz=OR;const jR=d.forwardRef(({className:e,value:t,...r},n)=>f.jsx(DR,{ref:n,className:O("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",e),...r,children:f.jsx(Zz,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));jR.displayName=DR.displayName;var sp="Radio",[Jz,kR]=je(sp),[Qz,eq]=Jz(sp),$R=d.forwardRef((e,t)=>{const{__scopeRadio:r,name:n,checked:o=!1,required:a,disabled:i,value:s="on",onCheck:c,form:l,...p}=e,[u,m]=d.useState(null),b=de(t,v=>m(v)),g=d.useRef(!1),h=u?l||!!u.closest("form"):!0;return f.jsxs(Qz,{scope:r,checked:o,disabled:i,children:[f.jsx(X.button,{type:"button",role:"radio","aria-checked":o,"data-state":BR(o),"data-disabled":i?"":void 0,disabled:i,value:s,...p,ref:b,onClick:B(e.onClick,v=>{o||c==null||c(),h&&(g.current=v.isPropagationStopped(),g.current||v.stopPropagation())})}),h&&f.jsx(tq,{control:u,bubbles:!g.current,name:n,value:s,checked:o,required:a,disabled:i,form:l,style:{transform:"translateX(-100%)"}})]})});$R.displayName=sp;var LR="RadioIndicator",FR=d.forwardRef((e,t)=>{const{__scopeRadio:r,forceMount:n,...o}=e,a=eq(LR,r);return f.jsx(Le,{present:n||a.checked,children:f.jsx(X.span,{"data-state":BR(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t})})});FR.displayName=LR;var tq=e=>{const{control:t,checked:r,bubbles:n=!0,...o}=e,a=d.useRef(null),i=_n(r),s=_o(t);return d.useEffect(()=>{const c=a.current,l=window.HTMLInputElement.prototype,u=Object.getOwnPropertyDescriptor(l,"checked").set;if(i!==r&&u){const m=new Event("click",{bubbles:n});u.call(c,r),c.dispatchEvent(m)}},[i,r,n]),f.jsx("input",{type:"radio","aria-hidden":!0,defaultChecked:r,...o,tabIndex:-1,ref:a,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function BR(e){return e?"checked":"unchecked"}var rq=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],cp="RadioGroup",[nq,o3]=je(cp,[Qt,kR]),zR=Qt(),qR=kR(),[oq,aq]=nq(cp),HR=d.forwardRef((e,t)=>{const{__scopeRadioGroup:r,name:n,defaultValue:o,value:a,required:i=!1,disabled:s=!1,orientation:c,dir:l,loop:p=!0,onValueChange:u,...m}=e,b=zR(r),g=Ft(l),[h,v]=$e({prop:a,defaultProp:o,onChange:u});return f.jsx(oq,{scope:r,name:n,required:i,disabled:s,value:h,onValueChange:v,children:f.jsx(To,{asChild:!0,...b,orientation:c,dir:g,loop:p,children:f.jsx(X.div,{role:"radiogroup","aria-required":i,"aria-orientation":c,"data-disabled":s?"":void 0,dir:g,...m,ref:t})})})});HR.displayName=cp;var VR="RadioGroupItem",GR=d.forwardRef((e,t)=>{const{__scopeRadioGroup:r,disabled:n,...o}=e,a=aq(VR,r),i=a.disabled||n,s=zR(r),c=qR(r),l=d.useRef(null),p=de(t,l),u=a.value===o.value,m=d.useRef(!1);return d.useEffect(()=>{const b=h=>{rq.includes(h.key)&&(m.current=!0)},g=()=>m.current=!1;return document.addEventListener("keydown",b),document.addEventListener("keyup",g),()=>{document.removeEventListener("keydown",b),document.removeEventListener("keyup",g)}},[]),f.jsx(No,{asChild:!0,...s,focusable:!i,active:u,children:f.jsx($R,{disabled:i,required:a.required,checked:u,...c,...o,name:a.name,ref:p,onCheck:()=>a.onValueChange(o.value),onKeyDown:B(b=>{b.key==="Enter"&&b.preventDefault()}),onFocus:B(o.onFocus,()=>{var b;m.current&&((b=l.current)==null||b.click())})})})});GR.displayName=VR;var iq="RadioGroupIndicator",UR=d.forwardRef((e,t)=>{const{__scopeRadioGroup:r,...n}=e,o=qR(r);return f.jsx(FR,{...o,...n,ref:t})});UR.displayName=iq;var WR=HR,KR=GR,sq=UR;const YR=d.forwardRef(({className:e,...t},r)=>f.jsx(WR,{className:O("grid gap-2",e),...t,ref:r}));YR.displayName=WR.displayName;const XR=d.forwardRef(({className:e,...t},r)=>f.jsx(KR,{ref:r,className:O("aspect-square h-4 w-4 rounded-full border border-primary text-primary shadow focus:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:f.jsx(sq,{className:"flex items-center justify-center",children:f.jsx(Za,{className:"h-3.5 w-3.5 fill-primary"})})}));XR.displayName=KR.displayName;const{createElement:hn,createContext:cq,forwardRef:ZR,useCallback:ht,useContext:JR,useEffect:Ir,useImperativeHandle:QR,useLayoutEffect:lq,useMemo:uq,useRef:bt,useState:an}=d,cb=d[`useId${Math.random()}`.slice(0,5)],dq=lq,_i=cq(null);_i.displayName="PanelGroupContext";const Dr=dq,fq=typeof cb=="function"?cb:()=>null;let pq=0;function lp(e=null){const t=fq(),r=bt(e||t||null);return r.current===null&&(r.current=""+pq++),e??r.current}function eE({children:e,className:t="",collapsedSize:r,collapsible:n,defaultSize:o,forwardedRef:a,id:i,maxSize:s,minSize:c,onCollapse:l,onExpand:p,onResize:u,order:m,style:b,tagName:g="div",...h}){const v=JR(_i);if(v===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:y,expandPanel:x,getPanelSize:w,getPanelStyle:S,groupId:_,isPanelCollapsed:R,reevaluatePanelConstraints:C,registerPanel:A,resizePanel:P,unregisterPanel:k}=v,D=lp(i),L=bt({callbacks:{onCollapse:l,onExpand:p,onResize:u},constraints:{collapsedSize:r,collapsible:n,defaultSize:o,maxSize:s,minSize:c},id:D,idIsFromProps:i!==void 0,order:m});bt({didLogMissingDefaultSizeWarning:!1}),Dr(()=>{const{callbacks:j,constraints:$}=L.current,M={...$};L.current.id=D,L.current.idIsFromProps=i!==void 0,L.current.order=m,j.onCollapse=l,j.onExpand=p,j.onResize=u,$.collapsedSize=r,$.collapsible=n,$.defaultSize=o,$.maxSize=s,$.minSize=c,(M.collapsedSize!==$.collapsedSize||M.collapsible!==$.collapsible||M.maxSize!==$.maxSize||M.minSize!==$.minSize)&&C(L.current,M)}),Dr(()=>{const j=L.current;return A(j),()=>{k(j)}},[m,D,A,k]),QR(a,()=>({collapse:()=>{y(L.current)},expand:j=>{x(L.current,j)},getId(){return D},getSize(){return w(L.current)},isCollapsed(){return R(L.current)},isExpanded(){return!R(L.current)},resize:j=>{P(L.current,j)}}),[y,x,w,R,D,P]);const N=S(L.current,o);return hn(g,{...h,children:e,className:t,id:i,style:{...N,...b},"data-panel":"","data-panel-collapsible":n||void 0,"data-panel-group-id":_,"data-panel-id":D,"data-panel-size":parseFloat(""+N.flexGrow).toFixed(1)})}const tE=ZR((e,t)=>hn(eE,{...e,forwardedRef:t}));eE.displayName="Panel";tE.displayName="forwardRef(Panel)";let Yu=null,Or=null;function mq(e,t){if(t){const r=(t&iE)!==0,n=(t&sE)!==0,o=(t&cE)!==0,a=(t&lE)!==0;if(r)return o?"se-resize":a?"ne-resize":"e-resize";if(n)return o?"sw-resize":a?"nw-resize":"w-resize";if(o)return"s-resize";if(a)return"n-resize"}switch(e){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function hq(){Or!==null&&(document.head.removeChild(Or),Yu=null,Or=null)}function au(e,t){const r=mq(e,t);Yu!==r&&(Yu=r,Or===null&&(Or=document.createElement("style"),document.head.appendChild(Or)),Or.innerHTML=`*{cursor: ${r}!important;}`)}function rE(e){return e.type==="keydown"}function nE(e){return e.type.startsWith("pointer")}function oE(e){return e.type.startsWith("mouse")}function Ri(e){if(nE(e)){if(e.isPrimary)return{x:e.clientX,y:e.clientY}}else if(oE(e))return{x:e.clientX,y:e.clientY};return{x:1/0,y:1/0}}function gq(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function vq(e,t,r){return e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y}function bq(e,t){if(e===t)throw new Error("Cannot compare node with itself");const r={a:db(e),b:db(t)};let n;for(;r.a.at(-1)===r.b.at(-1);)e=r.a.pop(),t=r.b.pop(),n=e;ye(n,"Stacking order can only be calculated for elements with a common ancestor");const o={a:ub(lb(r.a)),b:ub(lb(r.b))};if(o.a===o.b){const a=n.childNodes,i={a:r.a.at(-1),b:r.b.at(-1)};let s=a.length;for(;s--;){const c=a[s];if(c===i.a)return 1;if(c===i.b)return-1}}return Math.sign(o.a-o.b)}const yq=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function xq(e){var t;const r=getComputedStyle((t=aE(e))!==null&&t!==void 0?t:e).display;return r==="flex"||r==="inline-flex"}function wq(e){const t=getComputedStyle(e);return!!(t.position==="fixed"||t.zIndex!=="auto"&&(t.position!=="static"||xq(e))||+t.opacity<1||"transform"in t&&t.transform!=="none"||"webkitTransform"in t&&t.webkitTransform!=="none"||"mixBlendMode"in t&&t.mixBlendMode!=="normal"||"filter"in t&&t.filter!=="none"||"webkitFilter"in t&&t.webkitFilter!=="none"||"isolation"in t&&t.isolation==="isolate"||yq.test(t.willChange)||t.webkitOverflowScrolling==="touch")}function lb(e){let t=e.length;for(;t--;){const r=e[t];if(ye(r,"Missing node"),wq(r))return r}return null}function ub(e){return e&&Number(getComputedStyle(e).zIndex)||0}function db(e){const t=[];for(;e;)t.push(e),e=aE(e);return t}function aE(e){const{parentNode:t}=e;return t&&t instanceof ShadowRoot?t.host:t}const iE=1,sE=2,cE=4,lE=8,Sq=gq()==="coarse";let kt=[],sn=!1,hr=new Map,Ei=new Map;const fo=new Set;function Cq(e,t,r,n,o){var a;const{ownerDocument:i}=t,s={direction:r,element:t,hitAreaMargins:n,setResizeHandlerState:o},c=(a=hr.get(i))!==null&&a!==void 0?a:0;return hr.set(i,c+1),fo.add(s),za(),function(){var p;Ei.delete(e),fo.delete(s);const u=(p=hr.get(i))!==null&&p!==void 0?p:1;if(hr.set(i,u-1),za(),u===1&&hr.delete(i),kt.includes(s)){const m=kt.indexOf(s);m>=0&&kt.splice(m,1),dp(),o("up",!0,null)}}}function fb(e){const{target:t}=e,{x:r,y:n}=Ri(e);sn=!0,up({target:t,x:r,y:n}),za(),kt.length>0&&(qa("down",e),e.preventDefault(),e.stopPropagation())}function Bn(e){const{x:t,y:r}=Ri(e);if(sn&&e.buttons===0&&(sn=!1,qa("up",e)),!sn){const{target:n}=e;up({target:n,x:t,y:r})}qa("move",e),dp(),kt.length>0&&e.preventDefault()}function Jr(e){const{target:t}=e,{x:r,y:n}=Ri(e);Ei.clear(),sn=!1,kt.length>0&&e.preventDefault(),qa("up",e),up({target:t,x:r,y:n}),dp(),za()}function up({target:e,x:t,y:r}){kt.splice(0);let n=null;(e instanceof HTMLElement||e instanceof SVGElement)&&(n=e),fo.forEach(o=>{const{element:a,hitAreaMargins:i}=o,s=a.getBoundingClientRect(),{bottom:c,left:l,right:p,top:u}=s,m=Sq?i.coarse:i.fine;if(t>=l-m&&t<=p+m&&r>=u-m&&r<=c+m){if(n!==null&&document.contains(n)&&a!==n&&!a.contains(n)&&!n.contains(a)&&bq(n,a)>0){let g=n,h=!1;for(;g&&!g.contains(a);){if(vq(g.getBoundingClientRect(),s)){h=!0;break}g=g.parentElement}if(h)return}kt.push(o)}})}function iu(e,t){Ei.set(e,t)}function dp(){let e=!1,t=!1;kt.forEach(n=>{const{direction:o}=n;o==="horizontal"?e=!0:t=!0});let r=0;Ei.forEach(n=>{r|=n}),e&&t?au("intersection",r):e?au("horizontal",r):t?au("vertical",r):hq()}function za(){hr.forEach((e,t)=>{const{body:r}=t;r.removeEventListener("contextmenu",Jr),r.removeEventListener("pointerdown",fb),r.removeEventListener("pointerleave",Bn),r.removeEventListener("pointermove",Bn)}),window.removeEventListener("pointerup",Jr),window.removeEventListener("pointercancel",Jr),fo.size>0&&(sn?(kt.length>0&&hr.forEach((e,t)=>{const{body:r}=t;e>0&&(r.addEventListener("contextmenu",Jr),r.addEventListener("pointerleave",Bn),r.addEventListener("pointermove",Bn))}),window.addEventListener("pointerup",Jr),window.addEventListener("pointercancel",Jr)):hr.forEach((e,t)=>{const{body:r}=t;e>0&&(r.addEventListener("pointerdown",fb,{capture:!0}),r.addEventListener("pointermove",Bn))}))}function qa(e,t){fo.forEach(r=>{const{setResizeHandlerState:n}=r,o=kt.includes(r);n(e,o,t)})}function _q(){const[e,t]=an(0);return ht(()=>t(r=>r+1),[])}function ye(e,t){if(!e)throw console.error(t),Error(t)}const fp=10;function Fr(e,t,r=fp){return e.toFixed(r)===t.toFixed(r)?0:e>t?1:-1}function nr(e,t,r=fp){return Fr(e,t,r)===0}function xt(e,t,r){return Fr(e,t,r)===0}function Rq(e,t,r){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++){const o=e[n],a=t[n];if(!xt(o,a,r))return!1}return!0}function tn({panelConstraints:e,panelIndex:t,size:r}){const n=e[t];ye(n!=null,`Panel constraints not found for index ${t}`);let{collapsedSize:o=0,collapsible:a,maxSize:i=100,minSize:s=0}=n;if(Fr(r,s)<0)if(a){const c=(o+s)/2;Fr(r,c)<0?r=o:r=s}else r=s;return r=Math.min(i,r),r=parseFloat(r.toFixed(fp)),r}function Gn({delta:e,initialLayout:t,panelConstraints:r,pivotIndices:n,prevLayout:o,trigger:a}){if(xt(e,0))return t;const i=[...t],[s,c]=n;ye(s!=null,"Invalid first pivot index"),ye(c!=null,"Invalid second pivot index");let l=0;if(a==="keyboard"){{const u=e<0?c:s,m=r[u];ye(m,`Panel constraints not found for index ${u}`);const{collapsedSize:b=0,collapsible:g,minSize:h=0}=m;if(g){const v=t[u];if(ye(v!=null,`Previous layout not found for panel index ${u}`),xt(v,b)){const y=h-v;Fr(y,Math.abs(e))>0&&(e=e<0?0-y:y)}}}{const u=e<0?s:c,m=r[u];ye(m,`No panel constraints found for index ${u}`);const{collapsedSize:b=0,collapsible:g,minSize:h=0}=m;if(g){const v=t[u];if(ye(v!=null,`Previous layout not found for panel index ${u}`),xt(v,h)){const y=v-b;Fr(y,Math.abs(e))>0&&(e=e<0?0-y:y)}}}}{const u=e<0?1:-1;let m=e<0?c:s,b=0;for(;;){const h=t[m];ye(h!=null,`Previous layout not found for panel index ${m}`);const y=tn({panelConstraints:r,panelIndex:m,size:100})-h;if(b+=y,m+=u,m<0||m>=r.length)break}const g=Math.min(Math.abs(e),Math.abs(b));e=e<0?0-g:g}{let m=e<0?s:c;for(;m>=0&&m<r.length;){const b=Math.abs(e)-Math.abs(l),g=t[m];ye(g!=null,`Previous layout not found for panel index ${m}`);const h=g-b,v=tn({panelConstraints:r,panelIndex:m,size:h});if(!xt(g,v)&&(l+=g-v,i[m]=v,l.toPrecision(3).localeCompare(Math.abs(e).toPrecision(3),void 0,{numeric:!0})>=0))break;e<0?m--:m++}}if(Rq(o,i))return o;{const u=e<0?c:s,m=t[u];ye(m!=null,`Previous layout not found for panel index ${u}`);const b=m+l,g=tn({panelConstraints:r,panelIndex:u,size:b});if(i[u]=g,!xt(g,b)){let h=b-g,y=e<0?c:s;for(;y>=0&&y<r.length;){const x=i[y];ye(x!=null,`Previous layout not found for panel index ${y}`);const w=x+h,S=tn({panelConstraints:r,panelIndex:y,size:w});if(xt(x,S)||(h-=S-x,i[y]=S),xt(h,0))break;e>0?y--:y++}}}const p=i.reduce((u,m)=>m+u,0);return xt(p,100)?i:o}function Eq({layout:e,panelsArray:t,pivotIndices:r}){let n=0,o=100,a=0,i=0;const s=r[0];ye(s!=null,"No pivot index found"),t.forEach((u,m)=>{const{constraints:b}=u,{maxSize:g=100,minSize:h=0}=b;m===s?(n=h,o=g):(a+=h,i+=g)});const c=Math.min(o,100-a),l=Math.max(n,100-i),p=e[s];return{valueMax:c,valueMin:l,valueNow:p}}function po(e,t=document){return Array.from(t.querySelectorAll(`[data-panel-resize-handle-id][data-panel-group-id="${e}"]`))}function uE(e,t,r=document){const o=po(e,r).findIndex(a=>a.getAttribute("data-panel-resize-handle-id")===t);return o??null}function dE(e,t,r){const n=uE(e,t,r);return n!=null?[n,n+1]:[-1,-1]}function fE(e,t=document){var r;if(t instanceof HTMLElement&&(t==null||(r=t.dataset)===null||r===void 0?void 0:r.panelGroupId)==e)return t;const n=t.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`);return n||null}function Pi(e,t=document){const r=t.querySelector(`[data-panel-resize-handle-id="${e}"]`);return r||null}function Pq(e,t,r,n=document){var o,a,i,s;const c=Pi(t,n),l=po(e,n),p=c?l.indexOf(c):-1,u=(o=(a=r[p])===null||a===void 0?void 0:a.id)!==null&&o!==void 0?o:null,m=(i=(s=r[p+1])===null||s===void 0?void 0:s.id)!==null&&i!==void 0?i:null;return[u,m]}function Tq({committedValuesRef:e,eagerValuesRef:t,groupId:r,layout:n,panelDataArray:o,panelGroupElement:a,setLayout:i}){bt({didWarnAboutMissingResizeHandle:!1}),Dr(()=>{if(!a)return;const s=po(r,a);for(let c=0;c<o.length-1;c++){const{valueMax:l,valueMin:p,valueNow:u}=Eq({layout:n,panelsArray:o,pivotIndices:[c,c+1]}),m=s[c];if(m!=null){const b=o[c];ye(b,`No panel data found for index "${c}"`),m.setAttribute("aria-controls",b.id),m.setAttribute("aria-valuemax",""+Math.round(l)),m.setAttribute("aria-valuemin",""+Math.round(p)),m.setAttribute("aria-valuenow",u!=null?""+Math.round(u):"")}}return()=>{s.forEach((c,l)=>{c.removeAttribute("aria-controls"),c.removeAttribute("aria-valuemax"),c.removeAttribute("aria-valuemin"),c.removeAttribute("aria-valuenow")})}},[r,n,o,a]),Ir(()=>{if(!a)return;const s=t.current;ye(s,"Eager values not found");const{panelDataArray:c}=s,l=fE(r,a);ye(l!=null,`No group found for id "${r}"`);const p=po(r,a);ye(p,`No resize handles found for group id "${r}"`);const u=p.map(m=>{const b=m.getAttribute("data-panel-resize-handle-id");ye(b,"Resize handle element has no handle id attribute");const[g,h]=Pq(r,b,c,a);if(g==null||h==null)return()=>{};const v=y=>{if(!y.defaultPrevented)switch(y.key){case"Enter":{y.preventDefault();const x=c.findIndex(w=>w.id===g);if(x>=0){const w=c[x];ye(w,`No panel data found for index ${x}`);const S=n[x],{collapsedSize:_=0,collapsible:R,minSize:C=0}=w.constraints;if(S!=null&&R){const A=Gn({delta:xt(S,_)?C-_:_-S,initialLayout:n,panelConstraints:c.map(P=>P.constraints),pivotIndices:dE(r,b,a),prevLayout:n,trigger:"keyboard"});n!==A&&i(A)}}break}}};return m.addEventListener("keydown",v),()=>{m.removeEventListener("keydown",v)}});return()=>{u.forEach(m=>m())}},[a,e,t,r,n,o,i])}function pb(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function pE(e,t){const r=e==="horizontal",{x:n,y:o}=Ri(t);return r?n:o}function Nq(e,t,r,n,o){const a=r==="horizontal",i=Pi(t,o);ye(i,`No resize handle element found for id "${t}"`);const s=i.getAttribute("data-panel-group-id");ye(s,"Resize handle element has no group id attribute");let{initialCursorPosition:c}=n;const l=pE(r,e),p=fE(s,o);ye(p,`No group element found for id "${s}"`);const u=p.getBoundingClientRect(),m=a?u.width:u.height;return(l-c)/m*100}function Aq(e,t,r,n,o,a){if(rE(e)){const i=r==="horizontal";let s=0;e.shiftKey?s=100:o!=null?s=o:s=10;let c=0;switch(e.key){case"ArrowDown":c=i?0:s;break;case"ArrowLeft":c=i?-s:0;break;case"ArrowRight":c=i?s:0;break;case"ArrowUp":c=i?0:-s;break;case"End":c=100;break;case"Home":c=-100;break}return c}else return n==null?0:Nq(e,t,r,n,a)}function Mq({panelDataArray:e}){const t=Array(e.length),r=e.map(a=>a.constraints);let n=0,o=100;for(let a=0;a<e.length;a++){const i=r[a];ye(i,`Panel constraints not found for index ${a}`);const{defaultSize:s}=i;s!=null&&(n++,t[a]=s,o-=s)}for(let a=0;a<e.length;a++){const i=r[a];ye(i,`Panel constraints not found for index ${a}`);const{defaultSize:s}=i;if(s!=null)continue;const c=e.length-n,l=o/c;n++,t[a]=l,o-=l}return t}function Qr(e,t,r){t.forEach((n,o)=>{const a=e[o];ye(a,`Panel data not found for index ${o}`);const{callbacks:i,constraints:s,id:c}=a,{collapsedSize:l=0,collapsible:p}=s,u=r[c];if(u==null||n!==u){r[c]=n;const{onCollapse:m,onExpand:b,onResize:g}=i;g&&g(n,u),p&&(m||b)&&(b&&(u==null||nr(u,l))&&!nr(n,l)&&b(),m&&(u==null||!nr(u,l))&&nr(n,l)&&m())}})}function ia(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!=t[r])return!1;return!0}function Oq({defaultSize:e,dragState:t,layout:r,panelData:n,panelIndex:o,precision:a=3}){const i=r[o];let s;return i==null?s=e!=null?e.toPrecision(a):"1":n.length===1?s="1":s=i.toPrecision(a),{flexBasis:0,flexGrow:s,flexShrink:1,overflow:"hidden",pointerEvents:t!==null?"none":void 0}}function Iq(e,t=10){let r=null;return(...o)=>{r!==null&&clearTimeout(r),r=setTimeout(()=>{e(...o)},t)}}function mb(e){try{if(typeof localStorage<"u")e.getItem=t=>localStorage.getItem(t),e.setItem=(t,r)=>{localStorage.setItem(t,r)};else throw new Error("localStorage not supported in this environment")}catch(t){console.error(t),e.getItem=()=>null,e.setItem=()=>{}}}function mE(e){return`react-resizable-panels:${e}`}function hE(e){return e.map(t=>{const{constraints:r,id:n,idIsFromProps:o,order:a}=t;return o?n:a?`${a}:${JSON.stringify(r)}`:JSON.stringify(r)}).sort((t,r)=>t.localeCompare(r)).join(",")}function gE(e,t){try{const r=mE(e),n=t.getItem(r);if(n){const o=JSON.parse(n);if(typeof o=="object"&&o!=null)return o}}catch{}return null}function Dq(e,t,r){var n,o;const a=(n=gE(e,r))!==null&&n!==void 0?n:{},i=hE(t);return(o=a[i])!==null&&o!==void 0?o:null}function jq(e,t,r,n,o){var a;const i=mE(e),s=hE(t),c=(a=gE(e,o))!==null&&a!==void 0?a:{};c[s]={expandToSizes:Object.fromEntries(r.entries()),layout:n};try{o.setItem(i,JSON.stringify(c))}catch(l){console.error(l)}}function hb({layout:e,panelConstraints:t}){const r=[...e],n=r.reduce((a,i)=>a+i,0);if(r.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${r.map(a=>`${a}%`).join(", ")}`);if(!xt(n,100)&&r.length>0)for(let a=0;a<t.length;a++){const i=r[a];ye(i!=null,`No layout data found for index ${a}`);const s=100/n*i;r[a]=s}let o=0;for(let a=0;a<t.length;a++){const i=r[a];ye(i!=null,`No layout data found for index ${a}`);const s=tn({panelConstraints:t,panelIndex:a,size:i});i!=s&&(o+=i-s,r[a]=s)}if(!xt(o,0))for(let a=0;a<t.length;a++){const i=r[a];ye(i!=null,`No layout data found for index ${a}`);const s=i+o,c=tn({panelConstraints:t,panelIndex:a,size:s});if(i!==c&&(o-=c-i,r[a]=c,xt(o,0)))break}return r}const kq=100,Un={getItem:e=>(mb(Un),Un.getItem(e)),setItem:(e,t)=>{mb(Un),Un.setItem(e,t)}},gb={};function vE({autoSaveId:e=null,children:t,className:r="",direction:n,forwardedRef:o,id:a=null,onLayout:i=null,keyboardResizeBy:s=null,storage:c=Un,style:l,tagName:p="div",...u}){const m=lp(a),b=bt(null),[g,h]=an(null),[v,y]=an([]),x=_q(),w=bt({}),S=bt(new Map),_=bt(0),R=bt({autoSaveId:e,direction:n,dragState:g,id:m,keyboardResizeBy:s,onLayout:i,storage:c}),C=bt({layout:v,panelDataArray:[],panelDataArrayChanged:!1});bt({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),QR(o,()=>({getId:()=>R.current.id,getLayout:()=>{const{layout:F}=C.current;return F},setLayout:F=>{const{onLayout:U}=R.current,{layout:Q,panelDataArray:K}=C.current,q=hb({layout:F,panelConstraints:K.map(W=>W.constraints)});pb(Q,q)||(y(q),C.current.layout=q,U&&U(q),Qr(K,q,w.current))}}),[]),Dr(()=>{R.current.autoSaveId=e,R.current.direction=n,R.current.dragState=g,R.current.id=m,R.current.onLayout=i,R.current.storage=c}),Tq({committedValuesRef:R,eagerValuesRef:C,groupId:m,layout:v,panelDataArray:C.current.panelDataArray,setLayout:y,panelGroupElement:b.current}),Ir(()=>{const{panelDataArray:F}=C.current;if(e){if(v.length===0||v.length!==F.length)return;let U=gb[e];U==null&&(U=Iq(jq,kq),gb[e]=U);const Q=[...F],K=new Map(S.current);U(e,Q,K,v,c)}},[e,v,c]),Ir(()=>{});const A=ht(F=>{const{onLayout:U}=R.current,{layout:Q,panelDataArray:K}=C.current;if(F.constraints.collapsible){const q=K.map(ne=>ne.constraints),{collapsedSize:W=0,panelSize:re,pivotIndices:J}=Ar(K,F,Q);if(ye(re!=null,`Panel size not found for panel "${F.id}"`),!nr(re,W)){S.current.set(F.id,re);const V=en(K,F)===K.length-1?re-W:W-re,ae=Gn({delta:V,initialLayout:Q,panelConstraints:q,pivotIndices:J,prevLayout:Q,trigger:"imperative-api"});ia(Q,ae)||(y(ae),C.current.layout=ae,U&&U(ae),Qr(K,ae,w.current))}}},[]),P=ht((F,U)=>{const{onLayout:Q}=R.current,{layout:K,panelDataArray:q}=C.current;if(F.constraints.collapsible){const W=q.map(I=>I.constraints),{collapsedSize:re=0,panelSize:J=0,minSize:ne=0,pivotIndices:V}=Ar(q,F,K),ae=U??ne;if(nr(J,re)){const I=S.current.get(F.id),ee=I!=null&&I>=ae?I:ae,me=en(q,F)===q.length-1?J-ee:ee-J,ge=Gn({delta:me,initialLayout:K,panelConstraints:W,pivotIndices:V,prevLayout:K,trigger:"imperative-api"});ia(K,ge)||(y(ge),C.current.layout=ge,Q&&Q(ge),Qr(q,ge,w.current))}}},[]),k=ht(F=>{const{layout:U,panelDataArray:Q}=C.current,{panelSize:K}=Ar(Q,F,U);return ye(K!=null,`Panel size not found for panel "${F.id}"`),K},[]),D=ht((F,U)=>{const{panelDataArray:Q}=C.current,K=en(Q,F);return Oq({defaultSize:U,dragState:g,layout:v,panelData:Q,panelIndex:K})},[g,v]),L=ht(F=>{const{layout:U,panelDataArray:Q}=C.current,{collapsedSize:K=0,collapsible:q,panelSize:W}=Ar(Q,F,U);return ye(W!=null,`Panel size not found for panel "${F.id}"`),q===!0&&nr(W,K)},[]),N=ht(F=>{const{layout:U,panelDataArray:Q}=C.current,{collapsedSize:K=0,collapsible:q,panelSize:W}=Ar(Q,F,U);return ye(W!=null,`Panel size not found for panel "${F.id}"`),!q||Fr(W,K)>0},[]),j=ht(F=>{const{panelDataArray:U}=C.current;U.push(F),U.sort((Q,K)=>{const q=Q.order,W=K.order;return q==null&&W==null?0:q==null?-1:W==null?1:q-W}),C.current.panelDataArrayChanged=!0,x()},[x]);Dr(()=>{if(C.current.panelDataArrayChanged){C.current.panelDataArrayChanged=!1;const{autoSaveId:F,onLayout:U,storage:Q}=R.current,{layout:K,panelDataArray:q}=C.current;let W=null;if(F){const J=Dq(F,q,Q);J&&(S.current=new Map(Object.entries(J.expandToSizes)),W=J.layout)}W==null&&(W=Mq({panelDataArray:q}));const re=hb({layout:W,panelConstraints:q.map(J=>J.constraints)});pb(K,re)||(y(re),C.current.layout=re,U&&U(re),Qr(q,re,w.current))}}),Dr(()=>{const F=C.current;return()=>{F.layout=[]}},[]);const $=ht(F=>{let U=!1;const Q=b.current;return Q&&window.getComputedStyle(Q,null).getPropertyValue("direction")==="rtl"&&(U=!0),function(q){q.preventDefault();const W=b.current;if(!W)return()=>null;const{direction:re,dragState:J,id:ne,keyboardResizeBy:V,onLayout:ae}=R.current,{layout:I,panelDataArray:ee}=C.current,{initialLayout:pe}=J??{},me=dE(ne,F,W);let ge=Aq(q,F,re,J,V,W);const fe=re==="horizontal";fe&&U&&(ge=-ge);const Ee=ee.map(Oe=>Oe.constraints),Fe=Gn({delta:ge,initialLayout:pe??I,panelConstraints:Ee,pivotIndices:me,prevLayout:I,trigger:rE(q)?"keyboard":"mouse-or-touch"}),we=!ia(I,Fe);(nE(q)||oE(q))&&_.current!=ge&&(_.current=ge,!we&&ge!==0?fe?iu(F,ge<0?iE:sE):iu(F,ge<0?cE:lE):iu(F,0)),we&&(y(Fe),C.current.layout=Fe,ae&&ae(Fe),Qr(ee,Fe,w.current))}},[]),M=ht((F,U)=>{const{onLayout:Q}=R.current,{layout:K,panelDataArray:q}=C.current,W=q.map(I=>I.constraints),{panelSize:re,pivotIndices:J}=Ar(q,F,K);ye(re!=null,`Panel size not found for panel "${F.id}"`);const V=en(q,F)===q.length-1?re-U:U-re,ae=Gn({delta:V,initialLayout:K,panelConstraints:W,pivotIndices:J,prevLayout:K,trigger:"imperative-api"});ia(K,ae)||(y(ae),C.current.layout=ae,Q&&Q(ae),Qr(q,ae,w.current))},[]),G=ht((F,U)=>{const{layout:Q,panelDataArray:K}=C.current,{collapsedSize:q=0,collapsible:W}=U,{collapsedSize:re=0,collapsible:J,maxSize:ne=100,minSize:V=0}=F.constraints,{panelSize:ae}=Ar(K,F,Q);ae!=null&&(W&&J&&nr(ae,q)?nr(q,re)||M(F,re):ae<V?M(F,V):ae>ne&&M(F,ne))},[M]),H=ht((F,U)=>{const{direction:Q}=R.current,{layout:K}=C.current;if(!b.current)return;const q=Pi(F,b.current);ye(q,`Drag handle element not found for id "${F}"`);const W=pE(Q,U);h({dragHandleId:F,dragHandleRect:q.getBoundingClientRect(),initialCursorPosition:W,initialLayout:K})},[]),z=ht(()=>{h(null)},[]),oe=ht(F=>{const{panelDataArray:U}=C.current,Q=en(U,F);Q>=0&&(U.splice(Q,1),delete w.current[F.id],C.current.panelDataArrayChanged=!0,x())},[x]),Z=uq(()=>({collapsePanel:A,direction:n,dragState:g,expandPanel:P,getPanelSize:k,getPanelStyle:D,groupId:m,isPanelCollapsed:L,isPanelExpanded:N,reevaluatePanelConstraints:G,registerPanel:j,registerResizeHandle:$,resizePanel:M,startDragging:H,stopDragging:z,unregisterPanel:oe,panelGroupElement:b.current}),[A,g,n,P,k,D,m,L,N,G,j,$,M,H,z,oe]),te={display:"flex",flexDirection:n==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return hn(_i.Provider,{value:Z},hn(p,{...u,children:t,className:r,id:a,ref:b,style:{...te,...l},"data-panel-group":"","data-panel-group-direction":n,"data-panel-group-id":m}))}const bE=ZR((e,t)=>hn(vE,{...e,forwardedRef:t}));vE.displayName="PanelGroup";bE.displayName="forwardRef(PanelGroup)";function en(e,t){return e.findIndex(r=>r===t||r.id===t.id)}function Ar(e,t,r){const n=en(e,t),a=n===e.length-1?[n-1,n]:[n,n+1],i=r[n];return{...t.constraints,panelSize:i,pivotIndices:a}}function $q({disabled:e,handleId:t,resizeHandler:r,panelGroupElement:n}){Ir(()=>{if(e||r==null||n==null)return;const o=Pi(t,n);if(o==null)return;const a=i=>{if(!i.defaultPrevented)switch(i.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{i.preventDefault(),r(i);break}case"F6":{i.preventDefault();const s=o.getAttribute("data-panel-group-id");ye(s,`No group element found for id "${s}"`);const c=po(s,n),l=uE(s,t,n);ye(l!==null,`No resize element found for id "${t}"`);const p=i.shiftKey?l>0?l-1:c.length-1:l+1<c.length?l+1:0;c[p].focus();break}}};return o.addEventListener("keydown",a),()=>{o.removeEventListener("keydown",a)}},[n,e,t,r])}function yE({children:e=null,className:t="",disabled:r=!1,hitAreaMargins:n,id:o,onBlur:a,onDragging:i,onFocus:s,style:c={},tabIndex:l=0,tagName:p="div",...u}){var m,b;const g=bt(null),h=bt({onDragging:i});Ir(()=>{h.current.onDragging=i});const v=JR(_i);if(v===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:y,groupId:x,registerResizeHandle:w,startDragging:S,stopDragging:_,panelGroupElement:R}=v,C=lp(o),[A,P]=an("inactive"),[k,D]=an(!1),[L,N]=an(null),j=bt({state:A});Dr(()=>{j.current.state=A}),Ir(()=>{if(r)N(null);else{const H=w(C);N(()=>H)}},[r,C,w]);const $=(m=n==null?void 0:n.coarse)!==null&&m!==void 0?m:15,M=(b=n==null?void 0:n.fine)!==null&&b!==void 0?b:5;return Ir(()=>{if(r||L==null)return;const H=g.current;return ye(H,"Element ref not attached"),Cq(C,H,y,{coarse:$,fine:M},(oe,Z,te)=>{if(Z)switch(oe){case"down":{P("drag"),ye(te,'Expected event to be defined for "down" action'),S(C,te);const{onDragging:F}=h.current;F&&F(!0);break}case"move":{const{state:F}=j.current;F!=="drag"&&P("hover"),ye(te,'Expected event to be defined for "move" action'),L(te);break}case"up":{P("hover"),_();const{onDragging:F}=h.current;F&&F(!1);break}}else P("inactive")})},[$,y,r,M,w,C,L,S,_]),$q({disabled:r,handleId:C,resizeHandler:L,panelGroupElement:R}),hn(p,{...u,children:e,className:t,id:o,onBlur:()=>{D(!1),a==null||a()},onFocus:()=>{D(!0),s==null||s()},ref:g,role:"separator",style:{...{touchAction:"none",userSelect:"none"},...c},tabIndex:l,"data-panel-group-direction":y,"data-panel-group-id":x,"data-resize-handle":"","data-resize-handle-active":A==="drag"?"pointer":k?"keyboard":void 0,"data-resize-handle-state":A,"data-panel-resize-handle-enabled":!r,"data-panel-resize-handle-id":C})}yE.displayName="PanelResizeHandle";const Lq=({className:e,...t})=>f.jsx(bE,{className:O("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",e),...t}),Fq=tE,Bq=({withHandle:e,className:t,...r})=>f.jsx(yE,{className:O("relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",t),...r,children:e&&f.jsx("div",{className:"z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border",children:f.jsx(IN,{className:"h-2.5 w-2.5"})})});function mo(e,[t,r]){return Math.min(r,Math.max(t,e))}function zq(e,t){return d.useReducer((r,n)=>t[r][n]??r,e)}var pp="ScrollArea",[xE,a3]=je(pp),[qq,Nt]=xE(pp),wE=d.forwardRef((e,t)=>{const{__scopeScrollArea:r,type:n="hover",dir:o,scrollHideDelay:a=600,...i}=e,[s,c]=d.useState(null),[l,p]=d.useState(null),[u,m]=d.useState(null),[b,g]=d.useState(null),[h,v]=d.useState(null),[y,x]=d.useState(0),[w,S]=d.useState(0),[_,R]=d.useState(!1),[C,A]=d.useState(!1),P=de(t,D=>c(D)),k=Ft(o);return f.jsx(qq,{scope:r,type:n,dir:k,scrollHideDelay:a,scrollArea:s,viewport:l,onViewportChange:p,content:u,onContentChange:m,scrollbarX:b,onScrollbarXChange:g,scrollbarXEnabled:_,onScrollbarXEnabledChange:R,scrollbarY:h,onScrollbarYChange:v,scrollbarYEnabled:C,onScrollbarYEnabledChange:A,onCornerWidthChange:x,onCornerHeightChange:S,children:f.jsx(X.div,{dir:k,...i,ref:P,style:{position:"relative","--radix-scroll-area-corner-width":y+"px","--radix-scroll-area-corner-height":w+"px",...e.style}})})});wE.displayName=pp;var SE="ScrollAreaViewport",CE=d.forwardRef((e,t)=>{const{__scopeScrollArea:r,children:n,nonce:o,...a}=e,i=Nt(SE,r),s=d.useRef(null),c=de(t,s,i.onViewportChange);return f.jsxs(f.Fragment,{children:[f.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),f.jsx(X.div,{"data-radix-scroll-area-viewport":"",...a,ref:c,style:{overflowX:i.scrollbarXEnabled?"scroll":"hidden",overflowY:i.scrollbarYEnabled?"scroll":"hidden",...e.style},children:f.jsx("div",{ref:i.onContentChange,style:{minWidth:"100%",display:"table"},children:n})})]})});CE.displayName=SE;var er="ScrollAreaScrollbar",mp=d.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=Nt(er,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:i}=o,s=e.orientation==="horizontal";return d.useEffect(()=>(s?a(!0):i(!0),()=>{s?a(!1):i(!1)}),[s,a,i]),o.type==="hover"?f.jsx(Hq,{...n,ref:t,forceMount:r}):o.type==="scroll"?f.jsx(Vq,{...n,ref:t,forceMount:r}):o.type==="auto"?f.jsx(_E,{...n,ref:t,forceMount:r}):o.type==="always"?f.jsx(hp,{...n,ref:t}):null});mp.displayName=er;var Hq=d.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=Nt(er,e.__scopeScrollArea),[a,i]=d.useState(!1);return d.useEffect(()=>{const s=o.scrollArea;let c=0;if(s){const l=()=>{window.clearTimeout(c),i(!0)},p=()=>{c=window.setTimeout(()=>i(!1),o.scrollHideDelay)};return s.addEventListener("pointerenter",l),s.addEventListener("pointerleave",p),()=>{window.clearTimeout(c),s.removeEventListener("pointerenter",l),s.removeEventListener("pointerleave",p)}}},[o.scrollArea,o.scrollHideDelay]),f.jsx(Le,{present:r||a,children:f.jsx(_E,{"data-state":a?"visible":"hidden",...n,ref:t})})}),Vq=d.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=Nt(er,e.__scopeScrollArea),a=e.orientation==="horizontal",i=Ni(()=>c("SCROLL_END"),100),[s,c]=zq("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return d.useEffect(()=>{if(s==="idle"){const l=window.setTimeout(()=>c("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(l)}},[s,o.scrollHideDelay,c]),d.useEffect(()=>{const l=o.viewport,p=a?"scrollLeft":"scrollTop";if(l){let u=l[p];const m=()=>{const b=l[p];u!==b&&(c("SCROLL"),i()),u=b};return l.addEventListener("scroll",m),()=>l.removeEventListener("scroll",m)}},[o.viewport,a,c,i]),f.jsx(Le,{present:r||s!=="hidden",children:f.jsx(hp,{"data-state":s==="hidden"?"hidden":"visible",...n,ref:t,onPointerEnter:B(e.onPointerEnter,()=>c("POINTER_ENTER")),onPointerLeave:B(e.onPointerLeave,()=>c("POINTER_LEAVE"))})})}),_E=d.forwardRef((e,t)=>{const r=Nt(er,e.__scopeScrollArea),{forceMount:n,...o}=e,[a,i]=d.useState(!1),s=e.orientation==="horizontal",c=Ni(()=>{if(r.viewport){const l=r.viewport.offsetWidth<r.viewport.scrollWidth,p=r.viewport.offsetHeight<r.viewport.scrollHeight;i(s?l:p)}},10);return gn(r.viewport,c),gn(r.content,c),f.jsx(Le,{present:n||a,children:f.jsx(hp,{"data-state":a?"visible":"hidden",...o,ref:t})})}),hp=d.forwardRef((e,t)=>{const{orientation:r="vertical",...n}=e,o=Nt(er,e.__scopeScrollArea),a=d.useRef(null),i=d.useRef(0),[s,c]=d.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),l=NE(s.viewport,s.content),p={...n,sizes:s,onSizesChange:c,hasThumb:l>0&&l<1,onThumbChange:m=>a.current=m,onThumbPointerUp:()=>i.current=0,onThumbPointerDown:m=>i.current=m};function u(m,b){return Xq(m,i.current,s,b)}return r==="horizontal"?f.jsx(Gq,{...p,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){const m=o.viewport.scrollLeft,b=vb(m,s,o.dir);a.current.style.transform=`translate3d(${b}px, 0, 0)`}},onWheelScroll:m=>{o.viewport&&(o.viewport.scrollLeft=m)},onDragScroll:m=>{o.viewport&&(o.viewport.scrollLeft=u(m,o.dir))}}):r==="vertical"?f.jsx(Uq,{...p,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){const m=o.viewport.scrollTop,b=vb(m,s);a.current.style.transform=`translate3d(0, ${b}px, 0)`}},onWheelScroll:m=>{o.viewport&&(o.viewport.scrollTop=m)},onDragScroll:m=>{o.viewport&&(o.viewport.scrollTop=u(m))}}):null}),Gq=d.forwardRef((e,t)=>{const{sizes:r,onSizesChange:n,...o}=e,a=Nt(er,e.__scopeScrollArea),[i,s]=d.useState(),c=d.useRef(null),l=de(t,c,a.onScrollbarXChange);return d.useEffect(()=>{c.current&&s(getComputedStyle(c.current))},[c]),f.jsx(EE,{"data-orientation":"horizontal",...o,ref:l,sizes:r,style:{bottom:0,left:a.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:a.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Ti(r)+"px",...e.style},onThumbPointerDown:p=>e.onThumbPointerDown(p.x),onDragScroll:p=>e.onDragScroll(p.x),onWheelScroll:(p,u)=>{if(a.viewport){const m=a.viewport.scrollLeft+p.deltaX;e.onWheelScroll(m),ME(m,u)&&p.preventDefault()}},onResize:()=>{c.current&&a.viewport&&i&&n({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:Va(i.paddingLeft),paddingEnd:Va(i.paddingRight)}})}})}),Uq=d.forwardRef((e,t)=>{const{sizes:r,onSizesChange:n,...o}=e,a=Nt(er,e.__scopeScrollArea),[i,s]=d.useState(),c=d.useRef(null),l=de(t,c,a.onScrollbarYChange);return d.useEffect(()=>{c.current&&s(getComputedStyle(c.current))},[c]),f.jsx(EE,{"data-orientation":"vertical",...o,ref:l,sizes:r,style:{top:0,right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Ti(r)+"px",...e.style},onThumbPointerDown:p=>e.onThumbPointerDown(p.y),onDragScroll:p=>e.onDragScroll(p.y),onWheelScroll:(p,u)=>{if(a.viewport){const m=a.viewport.scrollTop+p.deltaY;e.onWheelScroll(m),ME(m,u)&&p.preventDefault()}},onResize:()=>{c.current&&a.viewport&&i&&n({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:Va(i.paddingTop),paddingEnd:Va(i.paddingBottom)}})}})}),[Wq,RE]=xE(er),EE=d.forwardRef((e,t)=>{const{__scopeScrollArea:r,sizes:n,hasThumb:o,onThumbChange:a,onThumbPointerUp:i,onThumbPointerDown:s,onThumbPositionChange:c,onDragScroll:l,onWheelScroll:p,onResize:u,...m}=e,b=Nt(er,r),[g,h]=d.useState(null),v=de(t,P=>h(P)),y=d.useRef(null),x=d.useRef(""),w=b.viewport,S=n.content-n.viewport,_=Te(p),R=Te(c),C=Ni(u,10);function A(P){if(y.current){const k=P.clientX-y.current.left,D=P.clientY-y.current.top;l({x:k,y:D})}}return d.useEffect(()=>{const P=k=>{const D=k.target;(g==null?void 0:g.contains(D))&&_(k,S)};return document.addEventListener("wheel",P,{passive:!1}),()=>document.removeEventListener("wheel",P,{passive:!1})},[w,g,S,_]),d.useEffect(R,[n,R]),gn(g,C),gn(b.content,C),f.jsx(Wq,{scope:r,scrollbar:g,hasThumb:o,onThumbChange:Te(a),onThumbPointerUp:Te(i),onThumbPositionChange:R,onThumbPointerDown:Te(s),children:f.jsx(X.div,{...m,ref:v,style:{position:"absolute",...m.style},onPointerDown:B(e.onPointerDown,P=>{P.button===0&&(P.target.setPointerCapture(P.pointerId),y.current=g.getBoundingClientRect(),x.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",b.viewport&&(b.viewport.style.scrollBehavior="auto"),A(P))}),onPointerMove:B(e.onPointerMove,A),onPointerUp:B(e.onPointerUp,P=>{const k=P.target;k.hasPointerCapture(P.pointerId)&&k.releasePointerCapture(P.pointerId),document.body.style.webkitUserSelect=x.current,b.viewport&&(b.viewport.style.scrollBehavior=""),y.current=null})})})}),Ha="ScrollAreaThumb",PE=d.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=RE(Ha,e.__scopeScrollArea);return f.jsx(Le,{present:r||o.hasThumb,children:f.jsx(Kq,{ref:t,...n})})}),Kq=d.forwardRef((e,t)=>{const{__scopeScrollArea:r,style:n,...o}=e,a=Nt(Ha,r),i=RE(Ha,r),{onThumbPositionChange:s}=i,c=de(t,u=>i.onThumbChange(u)),l=d.useRef(void 0),p=Ni(()=>{l.current&&(l.current(),l.current=void 0)},100);return d.useEffect(()=>{const u=a.viewport;if(u){const m=()=>{if(p(),!l.current){const b=Zq(u,s);l.current=b,s()}};return s(),u.addEventListener("scroll",m),()=>u.removeEventListener("scroll",m)}},[a.viewport,p,s]),f.jsx(X.div,{"data-state":i.hasThumb?"visible":"hidden",...o,ref:c,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...n},onPointerDownCapture:B(e.onPointerDownCapture,u=>{const b=u.target.getBoundingClientRect(),g=u.clientX-b.left,h=u.clientY-b.top;i.onThumbPointerDown({x:g,y:h})}),onPointerUp:B(e.onPointerUp,i.onThumbPointerUp)})});PE.displayName=Ha;var gp="ScrollAreaCorner",TE=d.forwardRef((e,t)=>{const r=Nt(gp,e.__scopeScrollArea),n=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&n?f.jsx(Yq,{...e,ref:t}):null});TE.displayName=gp;var Yq=d.forwardRef((e,t)=>{const{__scopeScrollArea:r,...n}=e,o=Nt(gp,r),[a,i]=d.useState(0),[s,c]=d.useState(0),l=!!(a&&s);return gn(o.scrollbarX,()=>{var u;const p=((u=o.scrollbarX)==null?void 0:u.offsetHeight)||0;o.onCornerHeightChange(p),c(p)}),gn(o.scrollbarY,()=>{var u;const p=((u=o.scrollbarY)==null?void 0:u.offsetWidth)||0;o.onCornerWidthChange(p),i(p)}),l?f.jsx(X.div,{...n,ref:t,style:{width:a,height:s,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function Va(e){return e?parseInt(e,10):0}function NE(e,t){const r=e/t;return isNaN(r)?0:r}function Ti(e){const t=NE(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-r)*t;return Math.max(n,18)}function Xq(e,t,r,n="ltr"){const o=Ti(r),a=o/2,i=t||a,s=o-i,c=r.scrollbar.paddingStart+i,l=r.scrollbar.size-r.scrollbar.paddingEnd-s,p=r.content-r.viewport,u=n==="ltr"?[0,p]:[p*-1,0];return AE([c,l],u)(e)}function vb(e,t,r="ltr"){const n=Ti(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-o,i=t.content-t.viewport,s=a-n,c=r==="ltr"?[0,i]:[i*-1,0],l=mo(e,c);return AE([0,i],[0,s])(l)}function AE(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function ME(e,t){return e>0&&e<t}var Zq=(e,t=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},n=0;return function o(){const a={left:e.scrollLeft,top:e.scrollTop},i=r.left!==a.left,s=r.top!==a.top;(i||s)&&t(),r=a,n=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(n)};function Ni(e,t){const r=Te(e),n=d.useRef(0);return d.useEffect(()=>()=>window.clearTimeout(n.current),[]),d.useCallback(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(r,t)},[r,t])}function gn(e,t){const r=Te(t);He(()=>{let n=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(r)});return o.observe(e),()=>{window.cancelAnimationFrame(n),o.unobserve(e)}}},[e,r])}var OE=wE,Jq=CE,Qq=TE;const IE=d.forwardRef(({className:e,children:t,...r},n)=>f.jsxs(OE,{ref:n,className:O("relative overflow-hidden",e),...r,children:[f.jsx(Jq,{className:"h-full w-full rounded-[inherit]",children:t}),f.jsx(vp,{}),f.jsx(Qq,{})]}));IE.displayName=OE.displayName;const vp=d.forwardRef(({className:e,orientation:t="vertical",...r},n)=>f.jsx(mp,{ref:n,orientation:t,className:O("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...r,children:f.jsx(PE,{className:"relative flex-1 rounded-full bg-border"})}));vp.displayName=mp.displayName;var e5=[" ","Enter","ArrowUp","ArrowDown"],t5=[" ","Enter"],Lo="Select",[Ai,Mi,r5]=sr(Lo),[Mn,i3]=je(Lo,[r5,Jt]),Oi=Jt(),[n5,_r]=Mn(Lo),[o5,a5]=Mn(Lo),DE=e=>{const{__scopeSelect:t,children:r,open:n,defaultOpen:o,onOpenChange:a,value:i,defaultValue:s,onValueChange:c,dir:l,name:p,autoComplete:u,disabled:m,required:b,form:g}=e,h=Oi(t),[v,y]=d.useState(null),[x,w]=d.useState(null),[S,_]=d.useState(!1),R=Ft(l),[C=!1,A]=$e({prop:n,defaultProp:o,onChange:a}),[P,k]=$e({prop:i,defaultProp:s,onChange:c}),D=d.useRef(null),L=v?g||!!v.closest("form"):!0,[N,j]=d.useState(new Set),$=Array.from(N).map(M=>M.props.value).join(";");return f.jsx(Pn,{...h,children:f.jsxs(n5,{required:b,scope:t,trigger:v,onTriggerChange:y,valueNode:x,onValueNodeChange:w,valueNodeHasChildren:S,onValueNodeHasChildrenChange:_,contentId:Ue(),value:P,onValueChange:k,open:C,onOpenChange:A,dir:R,triggerPointerDownPosRef:D,disabled:m,children:[f.jsx(Ai.Provider,{scope:t,children:f.jsx(o5,{scope:e.__scopeSelect,onNativeOptionAdd:d.useCallback(M=>{j(G=>new Set(G).add(M))},[]),onNativeOptionRemove:d.useCallback(M=>{j(G=>{const H=new Set(G);return H.delete(M),H})},[]),children:r})}),L?f.jsxs(iP,{"aria-hidden":!0,required:b,tabIndex:-1,name:p,autoComplete:u,value:P,onChange:M=>k(M.target.value),disabled:m,form:g,children:[P===void 0?f.jsx("option",{value:""}):null,Array.from(N)]},$):null]})})};DE.displayName=Lo;var jE="SelectTrigger",kE=d.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...o}=e,a=Oi(r),i=_r(jE,r),s=i.disabled||n,c=de(t,i.onTriggerChange),l=Mi(r),p=d.useRef("touch"),[u,m,b]=sP(h=>{const v=l().filter(w=>!w.disabled),y=v.find(w=>w.value===i.value),x=cP(v,h,y);x!==void 0&&i.onValueChange(x.value)}),g=h=>{s||(i.onOpenChange(!0),b()),h&&(i.triggerPointerDownPosRef.current={x:Math.round(h.pageX),y:Math.round(h.pageY)})};return f.jsx(Tn,{asChild:!0,...a,children:f.jsx(X.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":aP(i.value)?"":void 0,...o,ref:c,onClick:B(o.onClick,h=>{h.currentTarget.focus(),p.current!=="mouse"&&g(h)}),onPointerDown:B(o.onPointerDown,h=>{p.current=h.pointerType;const v=h.target;v.hasPointerCapture(h.pointerId)&&v.releasePointerCapture(h.pointerId),h.button===0&&h.ctrlKey===!1&&h.pointerType==="mouse"&&(g(h),h.preventDefault())}),onKeyDown:B(o.onKeyDown,h=>{const v=u.current!=="";!(h.ctrlKey||h.altKey||h.metaKey)&&h.key.length===1&&m(h.key),!(v&&h.key===" ")&&e5.includes(h.key)&&(g(),h.preventDefault())})})})});kE.displayName=jE;var $E="SelectValue",LE=d.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,children:a,placeholder:i="",...s}=e,c=_r($E,r),{onValueNodeHasChildrenChange:l}=c,p=a!==void 0,u=de(t,c.onValueNodeChange);return He(()=>{l(p)},[l,p]),f.jsx(X.span,{...s,ref:u,style:{pointerEvents:"none"},children:aP(c.value)?f.jsx(f.Fragment,{children:i}):a})});LE.displayName=$E;var i5="SelectIcon",FE=d.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...o}=e;return f.jsx(X.span,{"aria-hidden":!0,...o,ref:t,children:n||"▼"})});FE.displayName=i5;var s5="SelectPortal",BE=e=>f.jsx(zr,{asChild:!0,...e});BE.displayName=s5;var Br="SelectContent",zE=d.forwardRef((e,t)=>{const r=_r(Br,e.__scopeSelect),[n,o]=d.useState();if(He(()=>{o(new DocumentFragment)},[]),!r.open){const a=n;return a?ho.createPortal(f.jsx(qE,{scope:e.__scopeSelect,children:f.jsx(Ai.Slot,{scope:e.__scopeSelect,children:f.jsx("div",{children:e.children})})}),a):null}return f.jsx(HE,{...e,ref:t})});zE.displayName=Br;var It=10,[qE,Rr]=Mn(Br),c5="SelectContentImpl",HE=d.forwardRef((e,t)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:i,side:s,sideOffset:c,align:l,alignOffset:p,arrowPadding:u,collisionBoundary:m,collisionPadding:b,sticky:g,hideWhenDetached:h,avoidCollisions:v,...y}=e,x=_r(Br,r),[w,S]=d.useState(null),[_,R]=d.useState(null),C=de(t,q=>S(q)),[A,P]=d.useState(null),[k,D]=d.useState(null),L=Mi(r),[N,j]=d.useState(!1),$=d.useRef(!1);d.useEffect(()=>{if(w)return ei(w)},[w]),Ja();const M=d.useCallback(q=>{const[W,...re]=L().map(V=>V.ref.current),[J]=re.slice(-1),ne=document.activeElement;for(const V of q)if(V===ne||(V==null||V.scrollIntoView({block:"nearest"}),V===W&&_&&(_.scrollTop=0),V===J&&_&&(_.scrollTop=_.scrollHeight),V==null||V.focus(),document.activeElement!==ne))return},[L,_]),G=d.useCallback(()=>M([A,w]),[M,A,w]);d.useEffect(()=>{N&&G()},[N,G]);const{onOpenChange:H,triggerPointerDownPosRef:z}=x;d.useEffect(()=>{if(w){let q={x:0,y:0};const W=J=>{var ne,V;q={x:Math.abs(Math.round(J.pageX)-(((ne=z.current)==null?void 0:ne.x)??0)),y:Math.abs(Math.round(J.pageY)-(((V=z.current)==null?void 0:V.y)??0))}},re=J=>{q.x<=10&&q.y<=10?J.preventDefault():w.contains(J.target)||H(!1),document.removeEventListener("pointermove",W),z.current=null};return z.current!==null&&(document.addEventListener("pointermove",W),document.addEventListener("pointerup",re,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",W),document.removeEventListener("pointerup",re,{capture:!0})}}},[w,H,z]),d.useEffect(()=>{const q=()=>H(!1);return window.addEventListener("blur",q),window.addEventListener("resize",q),()=>{window.removeEventListener("blur",q),window.removeEventListener("resize",q)}},[H]);const[oe,Z]=sP(q=>{const W=L().filter(ne=>!ne.disabled),re=W.find(ne=>ne.ref.current===document.activeElement),J=cP(W,q,re);J&&setTimeout(()=>J.ref.current.focus())}),te=d.useCallback((q,W,re)=>{const J=!$.current&&!re;(x.value!==void 0&&x.value===W||J)&&(P(q),J&&($.current=!0))},[x.value]),F=d.useCallback(()=>w==null?void 0:w.focus(),[w]),U=d.useCallback((q,W,re)=>{const J=!$.current&&!re;(x.value!==void 0&&x.value===W||J)&&D(q)},[x.value]),Q=n==="popper"?Xu:VE,K=Q===Xu?{side:s,sideOffset:c,align:l,alignOffset:p,arrowPadding:u,collisionBoundary:m,collisionPadding:b,sticky:g,hideWhenDetached:h,avoidCollisions:v}:{};return f.jsx(qE,{scope:r,content:w,viewport:_,onViewportChange:R,itemRefCallback:te,selectedItem:A,onItemLeave:F,itemTextRefCallback:U,focusSelectedItem:G,selectedItemText:k,position:n,isPositioned:N,searchRef:oe,children:f.jsx(yo,{as:st,allowPinchZoom:!0,children:f.jsx(bo,{asChild:!0,trapped:x.open,onMountAutoFocus:q=>{q.preventDefault()},onUnmountAutoFocus:B(o,q=>{var W;(W=x.trigger)==null||W.focus({preventScroll:!0}),q.preventDefault()}),children:f.jsx(lr,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:q=>q.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:f.jsx(Q,{role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:q=>q.preventDefault(),...y,...K,onPlaced:()=>j(!0),ref:C,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:B(y.onKeyDown,q=>{const W=q.ctrlKey||q.altKey||q.metaKey;if(q.key==="Tab"&&q.preventDefault(),!W&&q.key.length===1&&Z(q.key),["ArrowUp","ArrowDown","Home","End"].includes(q.key)){let J=L().filter(ne=>!ne.disabled).map(ne=>ne.ref.current);if(["ArrowUp","End"].includes(q.key)&&(J=J.slice().reverse()),["ArrowUp","ArrowDown"].includes(q.key)){const ne=q.target,V=J.indexOf(ne);J=J.slice(V+1)}setTimeout(()=>M(J)),q.preventDefault()}})})})})})})});HE.displayName=c5;var l5="SelectItemAlignedPosition",VE=d.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:n,...o}=e,a=_r(Br,r),i=Rr(Br,r),[s,c]=d.useState(null),[l,p]=d.useState(null),u=de(t,C=>p(C)),m=Mi(r),b=d.useRef(!1),g=d.useRef(!0),{viewport:h,selectedItem:v,selectedItemText:y,focusSelectedItem:x}=i,w=d.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&l&&h&&v&&y){const C=a.trigger.getBoundingClientRect(),A=l.getBoundingClientRect(),P=a.valueNode.getBoundingClientRect(),k=y.getBoundingClientRect();if(a.dir!=="rtl"){const ne=k.left-A.left,V=P.left-ne,ae=C.left-V,I=C.width+ae,ee=Math.max(I,A.width),pe=window.innerWidth-It,me=mo(V,[It,Math.max(It,pe-ee)]);s.style.minWidth=I+"px",s.style.left=me+"px"}else{const ne=A.right-k.right,V=window.innerWidth-P.right-ne,ae=window.innerWidth-C.right-V,I=C.width+ae,ee=Math.max(I,A.width),pe=window.innerWidth-It,me=mo(V,[It,Math.max(It,pe-ee)]);s.style.minWidth=I+"px",s.style.right=me+"px"}const D=m(),L=window.innerHeight-It*2,N=h.scrollHeight,j=window.getComputedStyle(l),$=parseInt(j.borderTopWidth,10),M=parseInt(j.paddingTop,10),G=parseInt(j.borderBottomWidth,10),H=parseInt(j.paddingBottom,10),z=$+M+N+H+G,oe=Math.min(v.offsetHeight*5,z),Z=window.getComputedStyle(h),te=parseInt(Z.paddingTop,10),F=parseInt(Z.paddingBottom,10),U=C.top+C.height/2-It,Q=L-U,K=v.offsetHeight/2,q=v.offsetTop+K,W=$+M+q,re=z-W;if(W<=U){const ne=D.length>0&&v===D[D.length-1].ref.current;s.style.bottom="0px";const V=l.clientHeight-h.offsetTop-h.offsetHeight,ae=Math.max(Q,K+(ne?F:0)+V+G),I=W+ae;s.style.height=I+"px"}else{const ne=D.length>0&&v===D[0].ref.current;s.style.top="0px";const ae=Math.max(U,$+h.offsetTop+(ne?te:0)+K)+re;s.style.height=ae+"px",h.scrollTop=W-U+h.offsetTop}s.style.margin=`${It}px 0`,s.style.minHeight=oe+"px",s.style.maxHeight=L+"px",n==null||n(),requestAnimationFrame(()=>b.current=!0)}},[m,a.trigger,a.valueNode,s,l,h,v,y,a.dir,n]);He(()=>w(),[w]);const[S,_]=d.useState();He(()=>{l&&_(window.getComputedStyle(l).zIndex)},[l]);const R=d.useCallback(C=>{C&&g.current===!0&&(w(),x==null||x(),g.current=!1)},[w,x]);return f.jsx(d5,{scope:r,contentWrapper:s,shouldExpandOnScrollRef:b,onScrollButtonChange:R,children:f.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:f.jsx(X.div,{...o,ref:u,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});VE.displayName=l5;var u5="SelectPopperPosition",Xu=d.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:o=It,...a}=e,i=Oi(r);return f.jsx(Eo,{...i,...a,ref:t,align:n,collisionPadding:o,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Xu.displayName=u5;var[d5,bp]=Mn(Br,{}),Zu="SelectViewport",GE=d.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:n,...o}=e,a=Rr(Zu,r),i=bp(Zu,r),s=de(t,a.onViewportChange),c=d.useRef(0);return f.jsxs(f.Fragment,{children:[f.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),f.jsx(Ai.Slot,{scope:r,children:f.jsx(X.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:B(o.onScroll,l=>{const p=l.currentTarget,{contentWrapper:u,shouldExpandOnScrollRef:m}=i;if(m!=null&&m.current&&u){const b=Math.abs(c.current-p.scrollTop);if(b>0){const g=window.innerHeight-It*2,h=parseFloat(u.style.minHeight),v=parseFloat(u.style.height),y=Math.max(h,v);if(y<g){const x=y+b,w=Math.min(g,x),S=x-w;u.style.height=w+"px",u.style.bottom==="0px"&&(p.scrollTop=S>0?S:0,u.style.justifyContent="flex-end")}}}c.current=p.scrollTop})})})]})});GE.displayName=Zu;var UE="SelectGroup",[f5,p5]=Mn(UE),WE=d.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=Ue();return f.jsx(f5,{scope:r,id:o,children:f.jsx(X.div,{role:"group","aria-labelledby":o,...n,ref:t})})});WE.displayName=UE;var KE="SelectLabel",YE=d.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=p5(KE,r);return f.jsx(X.div,{id:o.id,...n,ref:t})});YE.displayName=KE;var Ga="SelectItem",[m5,XE]=Mn(Ga),ZE=d.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:o=!1,textValue:a,...i}=e,s=_r(Ga,r),c=Rr(Ga,r),l=s.value===n,[p,u]=d.useState(a??""),[m,b]=d.useState(!1),g=de(t,x=>{var w;return(w=c.itemRefCallback)==null?void 0:w.call(c,x,n,o)}),h=Ue(),v=d.useRef("touch"),y=()=>{o||(s.onValueChange(n),s.onOpenChange(!1))};if(n==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return f.jsx(m5,{scope:r,value:n,disabled:o,textId:h,isSelected:l,onItemTextChange:d.useCallback(x=>{u(w=>w||((x==null?void 0:x.textContent)??"").trim())},[]),children:f.jsx(Ai.ItemSlot,{scope:r,value:n,disabled:o,textValue:p,children:f.jsx(X.div,{role:"option","aria-labelledby":h,"data-highlighted":m?"":void 0,"aria-selected":l&&m,"data-state":l?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...i,ref:g,onFocus:B(i.onFocus,()=>b(!0)),onBlur:B(i.onBlur,()=>b(!1)),onClick:B(i.onClick,()=>{v.current!=="mouse"&&y()}),onPointerUp:B(i.onPointerUp,()=>{v.current==="mouse"&&y()}),onPointerDown:B(i.onPointerDown,x=>{v.current=x.pointerType}),onPointerMove:B(i.onPointerMove,x=>{var w;v.current=x.pointerType,o?(w=c.onItemLeave)==null||w.call(c):v.current==="mouse"&&x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:B(i.onPointerLeave,x=>{var w;x.currentTarget===document.activeElement&&((w=c.onItemLeave)==null||w.call(c))}),onKeyDown:B(i.onKeyDown,x=>{var S;((S=c.searchRef)==null?void 0:S.current)!==""&&x.key===" "||(t5.includes(x.key)&&y(),x.key===" "&&x.preventDefault())})})})})});ZE.displayName=Ga;var Wn="SelectItemText",JE=d.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,...a}=e,i=_r(Wn,r),s=Rr(Wn,r),c=XE(Wn,r),l=a5(Wn,r),[p,u]=d.useState(null),m=de(t,y=>u(y),c.onItemTextChange,y=>{var x;return(x=s.itemTextRefCallback)==null?void 0:x.call(s,y,c.value,c.disabled)}),b=p==null?void 0:p.textContent,g=d.useMemo(()=>f.jsx("option",{value:c.value,disabled:c.disabled,children:b},c.value),[c.disabled,c.value,b]),{onNativeOptionAdd:h,onNativeOptionRemove:v}=l;return He(()=>(h(g),()=>v(g)),[h,v,g]),f.jsxs(f.Fragment,{children:[f.jsx(X.span,{id:c.textId,...a,ref:m}),c.isSelected&&i.valueNode&&!i.valueNodeHasChildren?ho.createPortal(a.children,i.valueNode):null]})});JE.displayName=Wn;var QE="SelectItemIndicator",eP=d.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return XE(QE,r).isSelected?f.jsx(X.span,{"aria-hidden":!0,...n,ref:t}):null});eP.displayName=QE;var Ju="SelectScrollUpButton",tP=d.forwardRef((e,t)=>{const r=Rr(Ju,e.__scopeSelect),n=bp(Ju,e.__scopeSelect),[o,a]=d.useState(!1),i=de(t,n.onScrollButtonChange);return He(()=>{if(r.viewport&&r.isPositioned){let s=function(){const l=c.scrollTop>0;a(l)};const c=r.viewport;return s(),c.addEventListener("scroll",s),()=>c.removeEventListener("scroll",s)}},[r.viewport,r.isPositioned]),o?f.jsx(nP,{...e,ref:i,onAutoScroll:()=>{const{viewport:s,selectedItem:c}=r;s&&c&&(s.scrollTop=s.scrollTop-c.offsetHeight)}}):null});tP.displayName=Ju;var Qu="SelectScrollDownButton",rP=d.forwardRef((e,t)=>{const r=Rr(Qu,e.__scopeSelect),n=bp(Qu,e.__scopeSelect),[o,a]=d.useState(!1),i=de(t,n.onScrollButtonChange);return He(()=>{if(r.viewport&&r.isPositioned){let s=function(){const l=c.scrollHeight-c.clientHeight,p=Math.ceil(c.scrollTop)<l;a(p)};const c=r.viewport;return s(),c.addEventListener("scroll",s),()=>c.removeEventListener("scroll",s)}},[r.viewport,r.isPositioned]),o?f.jsx(nP,{...e,ref:i,onAutoScroll:()=>{const{viewport:s,selectedItem:c}=r;s&&c&&(s.scrollTop=s.scrollTop+c.offsetHeight)}}):null});rP.displayName=Qu;var nP=d.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...o}=e,a=Rr("SelectScrollButton",r),i=d.useRef(null),s=Mi(r),c=d.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return d.useEffect(()=>()=>c(),[c]),He(()=>{var p;const l=s().find(u=>u.ref.current===document.activeElement);(p=l==null?void 0:l.ref.current)==null||p.scrollIntoView({block:"nearest"})},[s]),f.jsx(X.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:B(o.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(n,50))}),onPointerMove:B(o.onPointerMove,()=>{var l;(l=a.onItemLeave)==null||l.call(a),i.current===null&&(i.current=window.setInterval(n,50))}),onPointerLeave:B(o.onPointerLeave,()=>{c()})})}),h5="SelectSeparator",oP=d.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return f.jsx(X.div,{"aria-hidden":!0,...n,ref:t})});oP.displayName=h5;var ed="SelectArrow",g5=d.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=Oi(r),a=_r(ed,r),i=Rr(ed,r);return a.open&&i.position==="popper"?f.jsx(Po,{...o,...n,ref:t}):null});g5.displayName=ed;function aP(e){return e===""||e===void 0}var iP=d.forwardRef((e,t)=>{const{value:r,...n}=e,o=d.useRef(null),a=de(t,o),i=_n(r);return d.useEffect(()=>{const s=o.current,c=window.HTMLSelectElement.prototype,p=Object.getOwnPropertyDescriptor(c,"value").set;if(i!==r&&p){const u=new Event("change",{bubbles:!0});p.call(s,r),s.dispatchEvent(u)}},[i,r]),f.jsx(ko,{asChild:!0,children:f.jsx("select",{...n,ref:a,defaultValue:r})})});iP.displayName="BubbleSelect";function sP(e){const t=Te(e),r=d.useRef(""),n=d.useRef(0),o=d.useCallback(i=>{const s=r.current+i;t(s),function c(l){r.current=l,window.clearTimeout(n.current),l!==""&&(n.current=window.setTimeout(()=>c(""),1e3))}(s)},[t]),a=d.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return d.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,o,a]}function cP(e,t,r){const o=t.length>1&&Array.from(t).every(l=>l===t[0])?t[0]:t,a=r?e.indexOf(r):-1;let i=v5(e,Math.max(a,0));o.length===1&&(i=i.filter(l=>l!==r));const c=i.find(l=>l.textValue.toLowerCase().startsWith(o.toLowerCase()));return c!==r?c:void 0}function v5(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var b5=DE,lP=kE,y5=LE,x5=FE,w5=BE,uP=zE,S5=GE,C5=WE,dP=YE,fP=ZE,_5=JE,R5=eP,pP=tP,mP=rP,hP=oP;const E5=b5,P5=C5,T5=y5,gP=d.forwardRef(({className:e,children:t,...r},n)=>f.jsxs(lP,{ref:n,className:O("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...r,children:[t,f.jsx(x5,{asChild:!0,children:f.jsx(Xa,{className:"h-4 w-4 opacity-50"})})]}));gP.displayName=lP.displayName;const yp=d.forwardRef(({className:e,...t},r)=>f.jsx(pP,{ref:r,className:O("flex cursor-default items-center justify-center py-1",e),...t,children:f.jsx(NN,{className:"h-4 w-4"})}));yp.displayName=pP.displayName;const xp=d.forwardRef(({className:e,...t},r)=>f.jsx(mP,{ref:r,className:O("flex cursor-default items-center justify-center py-1",e),...t,children:f.jsx(Xa,{className:"h-4 w-4"})}));xp.displayName=mP.displayName;const vP=d.forwardRef(({className:e,children:t,position:r="popper",...n},o)=>f.jsx(w5,{children:f.jsxs(uP,{ref:o,className:O("relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md 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 origin-[--radix-select-content-transform-origin]",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,...n,children:[f.jsx(yp,{}),f.jsx(S5,{className:O("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),f.jsx(xp,{})]})}));vP.displayName=uP.displayName;const bP=d.forwardRef(({className:e,...t},r)=>f.jsx(dP,{ref:r,className:O("px-2 py-1.5 text-sm font-semibold",e),...t}));bP.displayName=dP.displayName;const yP=d.forwardRef(({className:e,children:t,...r},n)=>f.jsxs(fP,{ref:n,className:O("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[f.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:f.jsx(R5,{children:f.jsx(vo,{className:"h-4 w-4"})})}),f.jsx(_5,{children:t})]}));yP.displayName=fP.displayName;const xP=d.forwardRef(({className:e,...t},r)=>f.jsx(hP,{ref:r,className:O("-mx-1 my-1 h-px bg-muted",e),...t}));xP.displayName=hP.displayName;var N5="Separator",bb="horizontal",A5=["horizontal","vertical"],wP=d.forwardRef((e,t)=>{const{decorative:r,orientation:n=bb,...o}=e,a=M5(n)?n:bb,s=r?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return f.jsx(X.div,{"data-orientation":a,...s,...o,ref:t})});wP.displayName=N5;function M5(e){return A5.includes(e)}var SP=wP;const wp=d.forwardRef(({className:e,orientation:t="horizontal",decorative:r=!0,...n},o)=>f.jsx(SP,{ref:o,decorative:r,orientation:t,className:O("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...n}));wp.displayName=SP.displayName;const CP=ti,O5=ri,I5=qr,_P=ni,Sp=d.forwardRef(({className:e,...t},r)=>f.jsx(xn,{className:O("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:r}));Sp.displayName=xn.displayName;const D5=dr("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),Cp=d.forwardRef(({side:e="right",className:t,children:r,...n},o)=>f.jsxs(_P,{children:[f.jsx(Sp,{}),f.jsxs(wn,{ref:o,className:O(D5({side:e}),t),...n,children:[f.jsxs(qr,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[f.jsx(wd,{className:"h-4 w-4"}),f.jsx("span",{className:"sr-only",children:"Close"})]}),r]})]}));Cp.displayName=wn.displayName;const _p=({className:e,...t})=>f.jsx("div",{className:O("flex flex-col space-y-2 text-center sm:text-left",e),...t});_p.displayName="SheetHeader";const RP=({className:e,...t})=>f.jsx("div",{className:O("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});RP.displayName="SheetFooter";const Rp=d.forwardRef(({className:e,...t},r)=>f.jsx(Sn,{ref:r,className:O("text-lg font-semibold text-foreground",e),...t}));Rp.displayName=Sn.displayName;const Ep=d.forwardRef(({className:e,...t},r)=>f.jsx(Cn,{ref:r,className:O("text-sm text-muted-foreground",e),...t}));Ep.displayName=Cn.displayName;const su=768;function j5(){const[e,t]=d.useState(void 0);return d.useEffect(()=>{const r=window.matchMedia(`(max-width: ${su-1}px)`),n=()=>{t(window.innerWidth<su)};return r.addEventListener("change",n),t(window.innerWidth<su),()=>r.removeEventListener("change",n)},[]),!!e}function td({className:e,...t}){return f.jsx("div",{className:O("animate-pulse rounded-md bg-primary/10",e),...t})}var[Ii,s3]=je("Tooltip",[Jt]),Di=Jt(),EP="TooltipProvider",k5=700,rd="tooltip.open",[$5,Pp]=Ii(EP),PP=e=>{const{__scopeTooltip:t,delayDuration:r=k5,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:a}=e,[i,s]=d.useState(!0),c=d.useRef(!1),l=d.useRef(0);return d.useEffect(()=>{const p=l.current;return()=>window.clearTimeout(p)},[]),f.jsx($5,{scope:t,isOpenDelayed:i,delayDuration:r,onOpen:d.useCallback(()=>{window.clearTimeout(l.current),s(!1)},[]),onClose:d.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>s(!0),n)},[n]),isPointerInTransitRef:c,onPointerInTransitChange:d.useCallback(p=>{c.current=p},[]),disableHoverableContent:o,children:a})};PP.displayName=EP;var ji="Tooltip",[L5,Fo]=Ii(ji),TP=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:o=!1,onOpenChange:a,disableHoverableContent:i,delayDuration:s}=e,c=Pp(ji,e.__scopeTooltip),l=Di(t),[p,u]=d.useState(null),m=Ue(),b=d.useRef(0),g=i??c.disableHoverableContent,h=s??c.delayDuration,v=d.useRef(!1),[y=!1,x]=$e({prop:n,defaultProp:o,onChange:C=>{C?(c.onOpen(),document.dispatchEvent(new CustomEvent(rd))):c.onClose(),a==null||a(C)}}),w=d.useMemo(()=>y?v.current?"delayed-open":"instant-open":"closed",[y]),S=d.useCallback(()=>{window.clearTimeout(b.current),b.current=0,v.current=!1,x(!0)},[x]),_=d.useCallback(()=>{window.clearTimeout(b.current),b.current=0,x(!1)},[x]),R=d.useCallback(()=>{window.clearTimeout(b.current),b.current=window.setTimeout(()=>{v.current=!0,x(!0),b.current=0},h)},[h,x]);return d.useEffect(()=>()=>{b.current&&(window.clearTimeout(b.current),b.current=0)},[]),f.jsx(Pn,{...l,children:f.jsx(L5,{scope:t,contentId:m,open:y,stateAttribute:w,trigger:p,onTriggerChange:u,onTriggerEnter:d.useCallback(()=>{c.isOpenDelayed?R():S()},[c.isOpenDelayed,R,S]),onTriggerLeave:d.useCallback(()=>{g?_():(window.clearTimeout(b.current),b.current=0)},[_,g]),onOpen:S,onClose:_,disableHoverableContent:g,children:r})})};TP.displayName=ji;var nd="TooltipTrigger",NP=d.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=Fo(nd,r),a=Pp(nd,r),i=Di(r),s=d.useRef(null),c=de(t,s,o.onTriggerChange),l=d.useRef(!1),p=d.useRef(!1),u=d.useCallback(()=>l.current=!1,[]);return d.useEffect(()=>()=>document.removeEventListener("pointerup",u),[u]),f.jsx(Tn,{asChild:!0,...i,children:f.jsx(X.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...n,ref:c,onPointerMove:B(e.onPointerMove,m=>{m.pointerType!=="touch"&&!p.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),p.current=!0)}),onPointerLeave:B(e.onPointerLeave,()=>{o.onTriggerLeave(),p.current=!1}),onPointerDown:B(e.onPointerDown,()=>{l.current=!0,document.addEventListener("pointerup",u,{once:!0})}),onFocus:B(e.onFocus,()=>{l.current||o.onOpen()}),onBlur:B(e.onBlur,o.onClose),onClick:B(e.onClick,o.onClose)})})});NP.displayName=nd;var Tp="TooltipPortal",[F5,B5]=Ii(Tp,{forceMount:void 0}),AP=e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:o}=e,a=Fo(Tp,t);return f.jsx(F5,{scope:t,forceMount:r,children:f.jsx(Le,{present:r||a.open,children:f.jsx(zr,{asChild:!0,container:o,children:n})})})};AP.displayName=Tp;var vn="TooltipContent",MP=d.forwardRef((e,t)=>{const r=B5(vn,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...a}=e,i=Fo(vn,e.__scopeTooltip);return f.jsx(Le,{present:n||i.open,children:i.disableHoverableContent?f.jsx(OP,{side:o,...a,ref:t}):f.jsx(z5,{side:o,...a,ref:t})})}),z5=d.forwardRef((e,t)=>{const r=Fo(vn,e.__scopeTooltip),n=Pp(vn,e.__scopeTooltip),o=d.useRef(null),a=de(t,o),[i,s]=d.useState(null),{trigger:c,onClose:l}=r,p=o.current,{onPointerInTransitChange:u}=n,m=d.useCallback(()=>{s(null),u(!1)},[u]),b=d.useCallback((g,h)=>{const v=g.currentTarget,y={x:g.clientX,y:g.clientY},x=G5(y,v.getBoundingClientRect()),w=U5(y,x),S=W5(h.getBoundingClientRect()),_=Y5([...w,...S]);s(_),u(!0)},[u]);return d.useEffect(()=>()=>m(),[m]),d.useEffect(()=>{if(c&&p){const g=v=>b(v,p),h=v=>b(v,c);return c.addEventListener("pointerleave",g),p.addEventListener("pointerleave",h),()=>{c.removeEventListener("pointerleave",g),p.removeEventListener("pointerleave",h)}}},[c,p,b,m]),d.useEffect(()=>{if(i){const g=h=>{const v=h.target,y={x:h.clientX,y:h.clientY},x=(c==null?void 0:c.contains(v))||(p==null?void 0:p.contains(v)),w=!K5(y,i);x?m():w&&(m(),l())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[c,p,i,l,m]),f.jsx(OP,{...e,ref:a})}),[q5,H5]=Ii(ji,{isInside:!1}),OP=d.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:i,...s}=e,c=Fo(vn,r),l=Di(r),{onClose:p}=c;return d.useEffect(()=>(document.addEventListener(rd,p),()=>document.removeEventListener(rd,p)),[p]),d.useEffect(()=>{if(c.trigger){const u=m=>{const b=m.target;b!=null&&b.contains(c.trigger)&&p()};return window.addEventListener("scroll",u,{capture:!0}),()=>window.removeEventListener("scroll",u,{capture:!0})}},[c.trigger,p]),f.jsx(lr,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:u=>u.preventDefault(),onDismiss:p,children:f.jsxs(Eo,{"data-state":c.stateAttribute,...l,...s,ref:t,style:{...s.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:[f.jsx(dd,{children:n}),f.jsx(q5,{scope:r,isInside:!0,children:f.jsx(I_,{id:c.contentId,role:"tooltip",children:o||n})})]})})});MP.displayName=vn;var IP="TooltipArrow",V5=d.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=Di(r);return H5(IP,r).isInside?null:f.jsx(Po,{...o,...n,ref:t})});V5.displayName=IP;function G5(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 U5(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 W5(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 K5(e,t){const{x:r,y:n}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const s=t[a].x,c=t[a].y,l=t[i].x,p=t[i].y;c>n!=p>n&&r<(l-s)*(n-c)/(p-c)+s&&(o=!o)}return o}function Y5(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),X5(t)}function X5(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],i=t[t.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.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],i=r[r.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.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 Z5=PP,J5=TP,Q5=NP,eH=AP,DP=MP;const jP=Z5,kP=J5,$P=Q5,Np=d.forwardRef(({className:e,sideOffset:t=4,...r},n)=>f.jsx(eH,{children:f.jsx(DP,{ref:n,sideOffset:t,className:O("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground 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 origin-[--radix-tooltip-content-transform-origin]",e),...r})}));Np.displayName=DP.displayName;const tH="sidebar_state",rH=60*60*24*7,nH="16rem",oH="18rem",aH="3rem",iH="b",LP=d.createContext(null);function Bo(){const e=d.useContext(LP);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const FP=d.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:r,className:n,style:o,children:a,...i},s)=>{const c=j5(),[l,p]=d.useState(!1),[u,m]=d.useState(e),b=t??u,g=d.useCallback(x=>{const w=typeof x=="function"?x(b):x;r?r(w):m(w),document.cookie=`${tH}=${w}; path=/; max-age=${rH}`},[r,b]),h=d.useCallback(()=>c?p(x=>!x):g(x=>!x),[c,g,p]);d.useEffect(()=>{const x=w=>{w.key===iH&&(w.metaKey||w.ctrlKey)&&(w.preventDefault(),h())};return window.addEventListener("keydown",x),()=>window.removeEventListener("keydown",x)},[h]);const v=b?"expanded":"collapsed",y=d.useMemo(()=>({state:v,open:b,setOpen:g,isMobile:c,openMobile:l,setOpenMobile:p,toggleSidebar:h}),[v,b,g,c,l,p,h]);return f.jsx(LP.Provider,{value:y,children:f.jsx(jP,{delayDuration:0,children:f.jsx("div",{style:{"--sidebar-width":nH,"--sidebar-width-icon":aH,...o},className:O("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",n),ref:s,...i,children:a})})})});FP.displayName="SidebarProvider";const BP=d.forwardRef(({side:e="left",variant:t="sidebar",collapsible:r="offcanvas",className:n,children:o,...a},i)=>{const{isMobile:s,state:c,openMobile:l,setOpenMobile:p}=Bo();return r==="none"?f.jsx("div",{className:O("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",n),ref:i,...a,children:o}):s?f.jsx(CP,{open:l,onOpenChange:p,...a,children:f.jsxs(Cp,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":oH},side:e,children:[f.jsxs(_p,{className:"sr-only",children:[f.jsx(Rp,{children:"Sidebar"}),f.jsx(Ep,{children:"Displays the mobile sidebar."})]}),f.jsx("div",{className:"flex h-full w-full flex-col",children:o})]})}):f.jsxs("div",{ref:i,className:"group peer hidden text-sidebar-foreground md:block","data-state":c,"data-collapsible":c==="collapsed"?r:"","data-variant":t,"data-side":e,children:[f.jsx("div",{className:O("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)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),f.jsx("div",{className:O("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)_+_theme(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:f.jsx("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:o})})]})});BP.displayName="Sidebar";const zP=d.forwardRef(({className:e,onClick:t,...r},n)=>{const{toggleSidebar:o}=Bo();return f.jsxs(gr,{ref:n,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:O("h-7 w-7",e),onClick:a=>{t==null||t(a),o()},...r,children:[f.jsx(FN,{}),f.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});zP.displayName="SidebarTrigger";const qP=d.forwardRef(({className:e,...t},r)=>{const{toggleSidebar:n}=Bo();return f.jsx("button",{ref:r,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:n,title:"Toggle Sidebar",className:O("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})});qP.displayName="SidebarRail";const HP=d.forwardRef(({className:e,...t},r)=>f.jsx("main",{ref:r,className:O("relative flex w-full flex-1 flex-col bg-background","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",e),...t}));HP.displayName="SidebarInset";const VP=d.forwardRef(({className:e,...t},r)=>f.jsx(uo,{ref:r,"data-sidebar":"input",className:O("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));VP.displayName="SidebarInput";const GP=d.forwardRef(({className:e,...t},r)=>f.jsx("div",{ref:r,"data-sidebar":"header",className:O("flex flex-col gap-2 p-2",e),...t}));GP.displayName="SidebarHeader";const UP=d.forwardRef(({className:e,...t},r)=>f.jsx("div",{ref:r,"data-sidebar":"footer",className:O("flex flex-col gap-2 p-2",e),...t}));UP.displayName="SidebarFooter";const WP=d.forwardRef(({className:e,...t},r)=>f.jsx(wp,{ref:r,"data-sidebar":"separator",className:O("mx-2 w-auto bg-sidebar-border",e),...t}));WP.displayName="SidebarSeparator";const KP=d.forwardRef(({className:e,...t},r)=>f.jsx("div",{ref:r,"data-sidebar":"content",className:O("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));KP.displayName="SidebarContent";const YP=d.forwardRef(({className:e,...t},r)=>f.jsx("div",{ref:r,"data-sidebar":"group",className:O("relative flex w-full min-w-0 flex-col p-2",e),...t}));YP.displayName="SidebarGroup";const XP=d.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?st:"div";return f.jsx(o,{ref:n,"data-sidebar":"group-label",className:O("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring 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})});XP.displayName="SidebarGroupLabel";const ZP=d.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?st:"button";return f.jsx(o,{ref:n,"data-sidebar":"group-action",className:O("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...r})});ZP.displayName="SidebarGroupAction";const JP=d.forwardRef(({className:e,...t},r)=>f.jsx("div",{ref:r,"data-sidebar":"group-content",className:O("w-full text-sm",e),...t}));JP.displayName="SidebarGroupContent";const QP=d.forwardRef(({className:e,...t},r)=>f.jsx("ul",{ref:r,"data-sidebar":"menu",className:O("flex w-full min-w-0 flex-col gap-1",e),...t}));QP.displayName="SidebarMenu";const eT=d.forwardRef(({className:e,...t},r)=>f.jsx("li",{ref:r,"data-sidebar":"menu-item",className:O("group/menu-item relative",e),...t}));eT.displayName="SidebarMenuItem";const sH=dr("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none 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"}}),tT=d.forwardRef(({asChild:e=!1,isActive:t=!1,variant:r="default",size:n="default",tooltip:o,className:a,...i},s)=>{const c=e?st:"button",{isMobile:l,state:p}=Bo(),u=f.jsx(c,{ref:s,"data-sidebar":"menu-button","data-size":n,"data-active":t,className:O(sH({variant:r,size:n}),a),...i});return o?(typeof o=="string"&&(o={children:o}),f.jsxs(kP,{children:[f.jsx($P,{asChild:!0,children:u}),f.jsx(Np,{side:"right",align:"center",hidden:p!=="collapsed"||l,...o})]})):u});tT.displayName="SidebarMenuButton";const rT=d.forwardRef(({className:e,asChild:t=!1,showOnHover:r=!1,...n},o)=>{const a=t?st:"button";return f.jsx(a,{ref:o,"data-sidebar":"menu-action",className:O("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md: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&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...n})});rT.displayName="SidebarMenuAction";const nT=d.forwardRef(({className:e,...t},r)=>f.jsx("div",{ref:r,"data-sidebar":"menu-badge",className:O("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground","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}));nT.displayName="SidebarMenuBadge";const oT=d.forwardRef(({className:e,showIcon:t=!1,...r},n)=>{const o=d.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return f.jsxs("div",{ref:n,"data-sidebar":"menu-skeleton",className:O("flex h-8 items-center gap-2 rounded-md px-2",e),...r,children:[t&&f.jsx(td,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),f.jsx(td,{className:"h-4 max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":o}})]})});oT.displayName="SidebarMenuSkeleton";const aT=d.forwardRef(({className:e,...t},r)=>f.jsx("ul",{ref:r,"data-sidebar":"menu-sub",className:O("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));aT.displayName="SidebarMenuSub";const iT=d.forwardRef(({...e},t)=>f.jsx("li",{ref:t,...e}));iT.displayName="SidebarMenuSubItem";const sT=d.forwardRef(({asChild:e=!1,size:t="md",isActive:r,className:n,...o},a)=>{const i=e?st:"a";return f.jsx(i,{ref:a,"data-sidebar":"menu-sub-button","data-size":t,"data-active":r,className:O("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring 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 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","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})});sT.displayName="SidebarMenuSubButton";var cT=["PageUp","PageDown"],lT=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],uT={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},On="Slider",[od,cH,lH]=sr(On),[dT,c3]=je(On,[lH]),[uH,ki]=dT(On),fT=d.forwardRef((e,t)=>{const{name:r,min:n=0,max:o=100,step:a=1,orientation:i="horizontal",disabled:s=!1,minStepsBetweenThumbs:c=0,defaultValue:l=[n],value:p,onValueChange:u=()=>{},onValueCommit:m=()=>{},inverted:b=!1,form:g,...h}=e,v=d.useRef(new Set),y=d.useRef(0),w=i==="horizontal"?dH:fH,[S=[],_]=$e({prop:p,defaultProp:l,onChange:D=>{var N;(N=[...v.current][y.current])==null||N.focus(),u(D)}}),R=d.useRef(S);function C(D){const L=vH(S,D);k(D,L)}function A(D){k(D,y.current)}function P(){const D=R.current[y.current];S[y.current]!==D&&m(S)}function k(D,L,{commit:N}={commit:!1}){const j=wH(a),$=SH(Math.round((D-n)/a)*a+n,j),M=mo($,[n,o]);_((G=[])=>{const H=hH(G,M,L);if(xH(H,c*a)){y.current=H.indexOf(M);const z=String(H)!==String(G);return z&&N&&m(H),z?H:G}else return G})}return f.jsx(uH,{scope:e.__scopeSlider,name:r,disabled:s,min:n,max:o,valueIndexToChangeRef:y,thumbs:v.current,values:S,orientation:i,form:g,children:f.jsx(od.Provider,{scope:e.__scopeSlider,children:f.jsx(od.Slot,{scope:e.__scopeSlider,children:f.jsx(w,{"aria-disabled":s,"data-disabled":s?"":void 0,...h,ref:t,onPointerDown:B(h.onPointerDown,()=>{s||(R.current=S)}),min:n,max:o,inverted:b,onSlideStart:s?void 0:C,onSlideMove:s?void 0:A,onSlideEnd:s?void 0:P,onHomeKeyDown:()=>!s&&k(n,0,{commit:!0}),onEndKeyDown:()=>!s&&k(o,S.length-1,{commit:!0}),onStepKeyDown:({event:D,direction:L})=>{if(!s){const $=cT.includes(D.key)||D.shiftKey&&lT.includes(D.key)?10:1,M=y.current,G=S[M],H=a*$*L;k(G+H,M,{commit:!0})}}})})})})});fT.displayName=On;var[pT,mT]=dT(On,{startEdge:"left",endEdge:"right",size:"width",direction:1}),dH=d.forwardRef((e,t)=>{const{min:r,max:n,dir:o,inverted:a,onSlideStart:i,onSlideMove:s,onSlideEnd:c,onStepKeyDown:l,...p}=e,[u,m]=d.useState(null),b=de(t,w=>m(w)),g=d.useRef(void 0),h=Ft(o),v=h==="ltr",y=v&&!a||!v&&a;function x(w){const S=g.current||u.getBoundingClientRect(),_=[0,S.width],C=Ap(_,y?[r,n]:[n,r]);return g.current=S,C(w-S.left)}return f.jsx(pT,{scope:e.__scopeSlider,startEdge:y?"left":"right",endEdge:y?"right":"left",direction:y?1:-1,size:"width",children:f.jsx(hT,{dir:h,"data-orientation":"horizontal",...p,ref:b,style:{...p.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:w=>{const S=x(w.clientX);i==null||i(S)},onSlideMove:w=>{const S=x(w.clientX);s==null||s(S)},onSlideEnd:()=>{g.current=void 0,c==null||c()},onStepKeyDown:w=>{const _=uT[y?"from-left":"from-right"].includes(w.key);l==null||l({event:w,direction:_?-1:1})}})})}),fH=d.forwardRef((e,t)=>{const{min:r,max:n,inverted:o,onSlideStart:a,onSlideMove:i,onSlideEnd:s,onStepKeyDown:c,...l}=e,p=d.useRef(null),u=de(t,p),m=d.useRef(void 0),b=!o;function g(h){const v=m.current||p.current.getBoundingClientRect(),y=[0,v.height],w=Ap(y,b?[n,r]:[r,n]);return m.current=v,w(h-v.top)}return f.jsx(pT,{scope:e.__scopeSlider,startEdge:b?"bottom":"top",endEdge:b?"top":"bottom",size:"height",direction:b?1:-1,children:f.jsx(hT,{"data-orientation":"vertical",...l,ref:u,style:{...l.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:h=>{const v=g(h.clientY);a==null||a(v)},onSlideMove:h=>{const v=g(h.clientY);i==null||i(v)},onSlideEnd:()=>{m.current=void 0,s==null||s()},onStepKeyDown:h=>{const y=uT[b?"from-bottom":"from-top"].includes(h.key);c==null||c({event:h,direction:y?-1:1})}})})}),hT=d.forwardRef((e,t)=>{const{__scopeSlider:r,onSlideStart:n,onSlideMove:o,onSlideEnd:a,onHomeKeyDown:i,onEndKeyDown:s,onStepKeyDown:c,...l}=e,p=ki(On,r);return f.jsx(X.span,{...l,ref:t,onKeyDown:B(e.onKeyDown,u=>{u.key==="Home"?(i(u),u.preventDefault()):u.key==="End"?(s(u),u.preventDefault()):cT.concat(lT).includes(u.key)&&(c(u),u.preventDefault())}),onPointerDown:B(e.onPointerDown,u=>{const m=u.target;m.setPointerCapture(u.pointerId),u.preventDefault(),p.thumbs.has(m)?m.focus():n(u)}),onPointerMove:B(e.onPointerMove,u=>{u.target.hasPointerCapture(u.pointerId)&&o(u)}),onPointerUp:B(e.onPointerUp,u=>{const m=u.target;m.hasPointerCapture(u.pointerId)&&(m.releasePointerCapture(u.pointerId),a(u))})})}),gT="SliderTrack",vT=d.forwardRef((e,t)=>{const{__scopeSlider:r,...n}=e,o=ki(gT,r);return f.jsx(X.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...n,ref:t})});vT.displayName=gT;var ad="SliderRange",bT=d.forwardRef((e,t)=>{const{__scopeSlider:r,...n}=e,o=ki(ad,r),a=mT(ad,r),i=d.useRef(null),s=de(t,i),c=o.values.length,l=o.values.map(m=>xT(m,o.min,o.max)),p=c>1?Math.min(...l):0,u=100-Math.max(...l);return f.jsx(X.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...n,ref:s,style:{...e.style,[a.startEdge]:p+"%",[a.endEdge]:u+"%"}})});bT.displayName=ad;var id="SliderThumb",yT=d.forwardRef((e,t)=>{const r=cH(e.__scopeSlider),[n,o]=d.useState(null),a=de(t,s=>o(s)),i=d.useMemo(()=>n?r().findIndex(s=>s.ref.current===n):-1,[r,n]);return f.jsx(pH,{...e,ref:a,index:i})}),pH=d.forwardRef((e,t)=>{const{__scopeSlider:r,index:n,name:o,...a}=e,i=ki(id,r),s=mT(id,r),[c,l]=d.useState(null),p=de(t,x=>l(x)),u=c?i.form||!!c.closest("form"):!0,m=_o(c),b=i.values[n],g=b===void 0?0:xT(b,i.min,i.max),h=gH(n,i.values.length),v=m==null?void 0:m[s.size],y=v?bH(v,g,s.direction):0;return d.useEffect(()=>{if(c)return i.thumbs.add(c),()=>{i.thumbs.delete(c)}},[c,i.thumbs]),f.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[s.startEdge]:`calc(${g}% + ${y}px)`},children:[f.jsx(od.ItemSlot,{scope:e.__scopeSlider,children:f.jsx(X.span,{role:"slider","aria-label":e["aria-label"]||h,"aria-valuemin":i.min,"aria-valuenow":b,"aria-valuemax":i.max,"aria-orientation":i.orientation,"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,tabIndex:i.disabled?void 0:0,...a,ref:p,style:b===void 0?{display:"none"}:e.style,onFocus:B(e.onFocus,()=>{i.valueIndexToChangeRef.current=n})})}),u&&f.jsx(mH,{name:o??(i.name?i.name+(i.values.length>1?"[]":""):void 0),form:i.form,value:b},n)]})});yT.displayName=id;var mH=e=>{const{value:t,...r}=e,n=d.useRef(null),o=_n(t);return d.useEffect(()=>{const a=n.current,i=window.HTMLInputElement.prototype,c=Object.getOwnPropertyDescriptor(i,"value").set;if(o!==t&&c){const l=new Event("input",{bubbles:!0});c.call(a,t),a.dispatchEvent(l)}},[o,t]),f.jsx("input",{style:{display:"none"},...r,ref:n,defaultValue:t})};function hH(e=[],t,r){const n=[...e];return n[r]=t,n.sort((o,a)=>o-a)}function xT(e,t,r){const a=100/(r-t)*(e-t);return mo(a,[0,100])}function gH(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function vH(e,t){if(e.length===1)return 0;const r=e.map(o=>Math.abs(o-t)),n=Math.min(...r);return r.indexOf(n)}function bH(e,t,r){const n=e/2,a=Ap([0,50],[0,n]);return(n-a(t)*r)*r}function yH(e){return e.slice(0,-1).map((t,r)=>e[r+1]-t)}function xH(e,t){if(t>0){const r=yH(e);return Math.min(...r)>=t}return!0}function Ap(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function wH(e){return(String(e).split(".")[1]||"").length}function SH(e,t){const r=Math.pow(10,t);return Math.round(e*r)/r}var wT=fT,CH=vT,_H=bT,RH=yT;const ST=d.forwardRef(({className:e,...t},r)=>f.jsxs(wT,{ref:r,className:O("relative flex w-full touch-none select-none items-center",e),...t,children:[f.jsx(CH,{className:"relative h-1.5 w-full grow overflow-hidden rounded-full bg-primary/20",children:f.jsx(_H,{className:"absolute h-full bg-primary"})}),f.jsx(RH,{className:"block h-4 w-4 rounded-full border border-primary/50 bg-background shadow transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50"})]}));ST.displayName=wT.displayName;var EH=(e,t,r,n,o,a,i,s)=>{let c=document.documentElement,l=["light","dark"];function p(b){(Array.isArray(e)?e:[e]).forEach(g=>{let h=g==="class",v=h&&a?o.map(y=>a[y]||y):o;h?(c.classList.remove(...v),c.classList.add(a&&a[b]?a[b]:b)):c.setAttribute(g,b)}),u(b)}function u(b){s&&l.includes(b)&&(c.style.colorScheme=b)}function m(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)p(n);else try{let b=localStorage.getItem(t)||r,g=i&&b==="system"?m():b;p(g)}catch{}},PH=d.createContext(void 0),TH={setTheme:e=>{},themes:[]},NH=()=>{var e;return(e=d.useContext(PH))!=null?e:TH};d.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:o,defaultTheme:a,value:i,themes:s,nonce:c,scriptProps:l})=>{let p=JSON.stringify([r,t,a,e,s,i,n,o]).slice(1,-1);return d.createElement("script",{...l,suppressHydrationWarning:!0,nonce:typeof window>"u"?c:"",dangerouslySetInnerHTML:{__html:`(${EH.toString()})(${p})`}})});function AH(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}const MH=e=>{switch(e){case"success":return DH;case"info":return kH;case"warning":return jH;case"error":return $H;default:return null}},OH=Array(12).fill(0),IH=({visible:e,className:t})=>E.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},E.createElement("div",{className:"sonner-spinner"},OH.map((r,n)=>E.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),DH=E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},E.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),jH=E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},E.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),kH=E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},E.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),$H=E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},E.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),LH=E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},E.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),E.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),FH=()=>{const[e,t]=E.useState(document.hidden);return E.useEffect(()=>{const r=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),e};let sd=1;class BH{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const r=this.subscribers.indexOf(t);this.subscribers.splice(r,1)}),this.publish=t=>{this.subscribers.forEach(r=>r(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var r;const{message:n,...o}=t,a=typeof(t==null?void 0:t.id)=="number"||((r=t.id)==null?void 0:r.length)>0?t.id:sd++,i=this.toasts.find(c=>c.id===a),s=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),i?this.toasts=this.toasts.map(c=>c.id===a?(this.publish({...c,...t,id:a,title:n}),{...c,...t,id:a,dismissible:s,title:n}):c):this.addToast({title:n,...o,dismissible:s,id:a}),a},this.dismiss=t=>(this.dismissedToasts.add(t),t||this.toasts.forEach(r=>{this.subscribers.forEach(n=>n({id:r.id,dismiss:!0}))}),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:t,dismiss:!0}))),t),this.message=(t,r)=>this.create({...r,message:t}),this.error=(t,r)=>this.create({...r,message:t,type:"error"}),this.success=(t,r)=>this.create({...r,type:"success",message:t}),this.info=(t,r)=>this.create({...r,type:"info",message:t}),this.warning=(t,r)=>this.create({...r,type:"warning",message:t}),this.loading=(t,r)=>this.create({...r,type:"loading",message:t}),this.promise=(t,r)=>{if(!r)return;let n;r.loading!==void 0&&(n=this.create({...r,promise:t,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let a=n!==void 0,i;const s=o.then(async l=>{if(i=["resolve",l],E.isValidElement(l))a=!1,this.create({id:n,type:"default",message:l});else if(qH(l)&&!l.ok){a=!1;const u=typeof r.error=="function"?await r.error(`HTTP error! status: ${l.status}`):r.error,m=typeof r.description=="function"?await r.description(`HTTP error! status: ${l.status}`):r.description,b=typeof u=="object"?u:{message:u};this.create({id:n,type:"error",description:m,...b})}else if(l instanceof Error){a=!1;const u=typeof r.error=="function"?await r.error(l):r.error,m=typeof r.description=="function"?await r.description(l):r.description,b=typeof u=="object"?u:{message:u};this.create({id:n,type:"error",description:m,...b})}else if(r.success!==void 0){a=!1;const u=typeof r.success=="function"?await r.success(l):r.success,m=typeof r.description=="function"?await r.description(l):r.description,b=typeof u=="object"?u:{message:u};this.create({id:n,type:"success",description:m,...b})}}).catch(async l=>{if(i=["reject",l],r.error!==void 0){a=!1;const p=typeof r.error=="function"?await r.error(l):r.error,u=typeof r.description=="function"?await r.description(l):r.description,m=typeof p=="object"?p:{message:p};this.create({id:n,type:"error",description:u,...m})}}).finally(()=>{a&&(this.dismiss(n),n=void 0),r.finally==null||r.finally.call(r)}),c=()=>new Promise((l,p)=>s.then(()=>i[0]==="reject"?p(i[1]):l(i[1])).catch(p));return typeof n!="string"&&typeof n!="number"?{unwrap:c}:Object.assign(n,{unwrap:c})},this.custom=(t,r)=>{const n=(r==null?void 0:r.id)||sd++;return this.create({jsx:t(n),id:n,...r}),n},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const vt=new BH,zH=(e,t)=>{const r=(t==null?void 0:t.id)||sd++;return vt.addToast({title:e,...t,id:r}),r},qH=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",HH=zH,VH=()=>vt.toasts,GH=()=>vt.getActiveToasts();Object.assign(HH,{success:vt.success,info:vt.info,warning:vt.warning,error:vt.error,custom:vt.custom,message:vt.message,promise:vt.promise,dismiss:vt.dismiss,loading:vt.loading},{getHistory:VH,getToasts:GH});AH("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}[data-sonner-toaster][data-lifted=true]{transform:translateY(-8px)}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function sa(e){return e.label!==void 0}const UH=3,WH="24px",KH="16px",yb=4e3,YH=356,XH=14,ZH=45,JH=200;function Gt(...e){return e.filter(Boolean).join(" ")}function QH(e){const[t,r]=e.split("-"),n=[];return t&&n.push(t),r&&n.push(r),n}const eV=e=>{var t,r,n,o,a,i,s,c,l;const{invert:p,toast:u,unstyled:m,interacting:b,setHeights:g,visibleToasts:h,heights:v,index:y,toasts:x,expanded:w,removeToast:S,defaultRichColors:_,closeButton:R,style:C,cancelButtonStyle:A,actionButtonStyle:P,className:k="",descriptionClassName:D="",duration:L,position:N,gap:j,expandByDefault:$,classNames:M,icons:G,closeButtonAriaLabel:H="Close toast"}=e,[z,oe]=E.useState(null),[Z,te]=E.useState(null),[F,U]=E.useState(!1),[Q,K]=E.useState(!1),[q,W]=E.useState(!1),[re,J]=E.useState(!1),[ne,V]=E.useState(!1),[ae,I]=E.useState(0),[ee,pe]=E.useState(0),me=E.useRef(u.duration||L||yb),ge=E.useRef(null),fe=E.useRef(null),Ee=y===0,Fe=y+1<=h,we=u.type,Oe=u.dismissible!==!1,rt=u.className||"",Ze=u.descriptionClassName||"",We=E.useMemo(()=>v.findIndex(ie=>ie.toastId===u.id)||0,[v,u.id]),ot=E.useMemo(()=>{var ie;return(ie=u.closeButton)!=null?ie:R},[u.closeButton,R]),pt=E.useMemo(()=>u.duration||L||yb,[u.duration,L]),dt=E.useRef(0),Ve=E.useRef(0),Ct=E.useRef(0),Ke=E.useRef(null),[Je,At]=N.split("-"),Vt=E.useMemo(()=>v.reduce((ie,Se,xe)=>xe>=We?ie:ie+Se.height,0),[v,We]),fr=FH(),Er=u.invert||p,Mt=we==="loading";Ve.current=E.useMemo(()=>We*j+Vt,[We,Vt]),E.useEffect(()=>{me.current=pt},[pt]),E.useEffect(()=>{U(!0)},[]),E.useEffect(()=>{const ie=fe.current;if(ie){const Se=ie.getBoundingClientRect().height;return pe(Se),g(xe=>[{toastId:u.id,height:Se,position:u.position},...xe]),()=>g(xe=>xe.filter(ke=>ke.toastId!==u.id))}},[g,u.id]),E.useLayoutEffect(()=>{if(!F)return;const ie=fe.current,Se=ie.style.height;ie.style.height="auto";const xe=ie.getBoundingClientRect().height;ie.style.height=Se,pe(xe),g(ke=>ke.find(Ie=>Ie.toastId===u.id)?ke.map(Ie=>Ie.toastId===u.id?{...Ie,height:xe}:Ie):[{toastId:u.id,height:xe,position:u.position},...ke])},[F,u.title,u.description,g,u.id]);const ue=E.useCallback(()=>{K(!0),I(Ve.current),g(ie=>ie.filter(Se=>Se.toastId!==u.id)),setTimeout(()=>{S(u)},JH)},[u,S,g,Ve]);E.useEffect(()=>{if(u.promise&&we==="loading"||u.duration===1/0||u.type==="loading")return;let ie;return w||b||fr?(()=>{if(Ct.current<dt.current){const ke=new Date().getTime()-dt.current;me.current=me.current-ke}Ct.current=new Date().getTime()})():(()=>{me.current!==1/0&&(dt.current=new Date().getTime(),ie=setTimeout(()=>{u.onAutoClose==null||u.onAutoClose.call(u,u),ue()},me.current))})(),()=>clearTimeout(ie)},[w,b,u,we,fr,ue]),E.useEffect(()=>{u.delete&&ue()},[ue,u.delete]);function be(){var ie;if(G!=null&&G.loading){var Se;return E.createElement("div",{className:Gt(M==null?void 0:M.loader,u==null||(Se=u.classNames)==null?void 0:Se.loader,"sonner-loader"),"data-visible":we==="loading"},G.loading)}return E.createElement(IH,{className:Gt(M==null?void 0:M.loader,u==null||(ie=u.classNames)==null?void 0:ie.loader),visible:we==="loading"})}var Ce,ve;return E.createElement("li",{tabIndex:0,ref:fe,className:Gt(k,rt,M==null?void 0:M.toast,u==null||(t=u.classNames)==null?void 0:t.toast,M==null?void 0:M.default,M==null?void 0:M[we],u==null||(r=u.classNames)==null?void 0:r[we]),"data-sonner-toast":"","data-rich-colors":(Ce=u.richColors)!=null?Ce:_,"data-styled":!(u.jsx||u.unstyled||m),"data-mounted":F,"data-promise":!!u.promise,"data-swiped":ne,"data-removed":Q,"data-visible":Fe,"data-y-position":Je,"data-x-position":At,"data-index":y,"data-front":Ee,"data-swiping":q,"data-dismissible":Oe,"data-type":we,"data-invert":Er,"data-swipe-out":re,"data-swipe-direction":Z,"data-expanded":!!(w||$&&F),style:{"--index":y,"--toasts-before":y,"--z-index":x.length-y,"--offset":`${Q?ae:Ve.current}px`,"--initial-height":$?"auto":`${ee}px`,...C,...u.style},onDragEnd:()=>{W(!1),oe(null),Ke.current=null},onPointerDown:ie=>{Mt||!Oe||(ge.current=new Date,I(Ve.current),ie.target.setPointerCapture(ie.pointerId),ie.target.tagName!=="BUTTON"&&(W(!0),Ke.current={x:ie.clientX,y:ie.clientY}))},onPointerUp:()=>{var ie,Se,xe;if(re||!Oe)return;Ke.current=null;const ke=Number(((ie=fe.current)==null?void 0:ie.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Qe=Number(((Se=fe.current)==null?void 0:Se.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Ie=new Date().getTime()-((xe=ge.current)==null?void 0:xe.getTime()),Be=z==="x"?ke:Qe,at=Math.abs(Be)/Ie;if(Math.abs(Be)>=ZH||at>.11){I(Ve.current),u.onDismiss==null||u.onDismiss.call(u,u),te(z==="x"?ke>0?"right":"left":Qe>0?"down":"up"),ue(),J(!0);return}else{var et,it;(et=fe.current)==null||et.style.setProperty("--swipe-amount-x","0px"),(it=fe.current)==null||it.style.setProperty("--swipe-amount-y","0px")}V(!1),W(!1),oe(null)},onPointerMove:ie=>{var Se,xe,ke;if(!Ke.current||!Oe||((Se=window.getSelection())==null?void 0:Se.toString().length)>0)return;const Ie=ie.clientY-Ke.current.y,Be=ie.clientX-Ke.current.x;var at;const et=(at=e.swipeDirections)!=null?at:QH(N);!z&&(Math.abs(Be)>1||Math.abs(Ie)>1)&&oe(Math.abs(Be)>Math.abs(Ie)?"x":"y");let it={x:0,y:0};const zo=tr=>1/(1.5+Math.abs(tr)/20);if(z==="y"){if(et.includes("top")||et.includes("bottom"))if(et.includes("top")&&Ie<0||et.includes("bottom")&&Ie>0)it.y=Ie;else{const tr=Ie*zo(Ie);it.y=Math.abs(tr)<Math.abs(Ie)?tr:Ie}}else if(z==="x"&&(et.includes("left")||et.includes("right")))if(et.includes("left")&&Be<0||et.includes("right")&&Be>0)it.x=Be;else{const tr=Be*zo(Be);it.x=Math.abs(tr)<Math.abs(Be)?tr:Be}(Math.abs(it.x)>0||Math.abs(it.y)>0)&&V(!0),(xe=fe.current)==null||xe.style.setProperty("--swipe-amount-x",`${it.x}px`),(ke=fe.current)==null||ke.style.setProperty("--swipe-amount-y",`${it.y}px`)}},ot&&!u.jsx&&we!=="loading"?E.createElement("button",{"aria-label":H,"data-disabled":Mt,"data-close-button":!0,onClick:Mt||!Oe?()=>{}:()=>{ue(),u.onDismiss==null||u.onDismiss.call(u,u)},className:Gt(M==null?void 0:M.closeButton,u==null||(n=u.classNames)==null?void 0:n.closeButton)},(ve=G==null?void 0:G.close)!=null?ve:LH):null,we||u.icon||u.promise?E.createElement("div",{"data-icon":"",className:Gt(M==null?void 0:M.icon,u==null||(o=u.classNames)==null?void 0:o.icon)},u.promise||u.type==="loading"&&!u.icon?u.icon||be():null,u.type!=="loading"?u.icon||(G==null?void 0:G[we])||MH(we):null):null,E.createElement("div",{"data-content":"",className:Gt(M==null?void 0:M.content,u==null||(a=u.classNames)==null?void 0:a.content)},E.createElement("div",{"data-title":"",className:Gt(M==null?void 0:M.title,u==null||(i=u.classNames)==null?void 0:i.title)},u.jsx?u.jsx:typeof u.title=="function"?u.title():u.title),u.description?E.createElement("div",{"data-description":"",className:Gt(D,Ze,M==null?void 0:M.description,u==null||(s=u.classNames)==null?void 0:s.description)},typeof u.description=="function"?u.description():u.description):null),E.isValidElement(u.cancel)?u.cancel:u.cancel&&sa(u.cancel)?E.createElement("button",{"data-button":!0,"data-cancel":!0,style:u.cancelButtonStyle||A,onClick:ie=>{sa(u.cancel)&&Oe&&(u.cancel.onClick==null||u.cancel.onClick.call(u.cancel,ie),ue())},className:Gt(M==null?void 0:M.cancelButton,u==null||(c=u.classNames)==null?void 0:c.cancelButton)},u.cancel.label):null,E.isValidElement(u.action)?u.action:u.action&&sa(u.action)?E.createElement("button",{"data-button":!0,"data-action":!0,style:u.actionButtonStyle||P,onClick:ie=>{sa(u.action)&&(u.action.onClick==null||u.action.onClick.call(u.action,ie),!ie.defaultPrevented&&ue())},className:Gt(M==null?void 0:M.actionButton,u==null||(l=u.classNames)==null?void 0:l.actionButton)},u.action.label):null)};function xb(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function tV(e,t){const r={};return[e,t].forEach((n,o)=>{const a=o===1,i=a?"--mobile-offset":"--offset",s=a?KH:WH;function c(l){["top","right","bottom","left"].forEach(p=>{r[`${i}-${p}`]=typeof l=="number"?`${l}px`:l})}typeof n=="number"||typeof n=="string"?c(n):typeof n=="object"?["top","right","bottom","left"].forEach(l=>{n[l]===void 0?r[`${i}-${l}`]=s:r[`${i}-${l}`]=typeof n[l]=="number"?`${n[l]}px`:n[l]}):c(s)}),r}const rV=E.forwardRef(function(t,r){const{invert:n,position:o="bottom-right",hotkey:a=["altKey","KeyT"],expand:i,closeButton:s,className:c,offset:l,mobileOffset:p,theme:u="light",richColors:m,duration:b,style:g,visibleToasts:h=UH,toastOptions:v,dir:y=xb(),gap:x=XH,icons:w,containerAriaLabel:S="Notifications"}=t,[_,R]=E.useState([]),C=E.useMemo(()=>Array.from(new Set([o].concat(_.filter(Z=>Z.position).map(Z=>Z.position)))),[_,o]),[A,P]=E.useState([]),[k,D]=E.useState(!1),[L,N]=E.useState(!1),[j,$]=E.useState(u!=="system"?u:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),M=E.useRef(null),G=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),H=E.useRef(null),z=E.useRef(!1),oe=E.useCallback(Z=>{R(te=>{var F;return(F=te.find(U=>U.id===Z.id))!=null&&F.delete||vt.dismiss(Z.id),te.filter(({id:U})=>U!==Z.id)})},[]);return E.useEffect(()=>vt.subscribe(Z=>{if(Z.dismiss){const te=_.map(F=>F.id===Z.id?{...F,delete:!0}:F);requestAnimationFrame(()=>{R(te)});return}setTimeout(()=>{Wa.flushSync(()=>{R(te=>{const F=te.findIndex(U=>U.id===Z.id);return F!==-1?[...te.slice(0,F),{...te[F],...Z},...te.slice(F+1)]:[Z,...te]})})})}),[_]),E.useEffect(()=>{if(u!=="system"){$(u);return}if(u==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?$("dark"):$("light")),typeof window>"u")return;const Z=window.matchMedia("(prefers-color-scheme: dark)");try{Z.addEventListener("change",({matches:te})=>{$(te?"dark":"light")})}catch{Z.addListener(({matches:F})=>{try{$(F?"dark":"light")}catch(U){console.error(U)}})}},[u]),E.useEffect(()=>{_.length<=1&&D(!1)},[_]),E.useEffect(()=>{const Z=te=>{var F;if(a.every(K=>te[K]||te.code===K)){var Q;D(!0),(Q=M.current)==null||Q.focus()}te.code==="Escape"&&(document.activeElement===M.current||(F=M.current)!=null&&F.contains(document.activeElement))&&D(!1)};return document.addEventListener("keydown",Z),()=>document.removeEventListener("keydown",Z)},[a]),E.useEffect(()=>{if(M.current)return()=>{H.current&&(H.current.focus({preventScroll:!0}),H.current=null,z.current=!1)}},[M.current]),E.createElement("section",{ref:r,"aria-label":`${S} ${G}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},C.map((Z,te)=>{var F;const[U,Q]=Z.split("-");return _.length?E.createElement("ol",{key:Z,dir:y==="auto"?xb():y,tabIndex:-1,ref:M,className:c,"data-sonner-toaster":!0,"data-sonner-theme":j,"data-y-position":U,"data-lifted":k&&_.length>1&&!i,"data-x-position":Q,style:{"--front-toast-height":`${((F=A[0])==null?void 0:F.height)||0}px`,"--width":`${YH}px`,"--gap":`${x}px`,...g,...tV(l,p)},onBlur:K=>{z.current&&!K.currentTarget.contains(K.relatedTarget)&&(z.current=!1,H.current&&(H.current.focus({preventScroll:!0}),H.current=null))},onFocus:K=>{K.target instanceof HTMLElement&&K.target.dataset.dismissible==="false"||z.current||(z.current=!0,H.current=K.relatedTarget)},onMouseEnter:()=>D(!0),onMouseMove:()=>D(!0),onMouseLeave:()=>{L||D(!1)},onDragEnd:()=>D(!1),onPointerDown:K=>{K.target instanceof HTMLElement&&K.target.dataset.dismissible==="false"||N(!0)},onPointerUp:()=>N(!1)},_.filter(K=>!K.position&&te===0||K.position===Z).map((K,q)=>{var W,re;return E.createElement(eV,{key:K.id,icons:w,index:q,toast:K,defaultRichColors:m,duration:(W=v==null?void 0:v.duration)!=null?W:b,className:v==null?void 0:v.className,descriptionClassName:v==null?void 0:v.descriptionClassName,invert:n,visibleToasts:h,closeButton:(re=v==null?void 0:v.closeButton)!=null?re:s,interacting:L,position:Z,style:v==null?void 0:v.style,unstyled:v==null?void 0:v.unstyled,classNames:v==null?void 0:v.classNames,cancelButtonStyle:v==null?void 0:v.cancelButtonStyle,actionButtonStyle:v==null?void 0:v.actionButtonStyle,closeButtonAriaLabel:v==null?void 0:v.closeButtonAriaLabel,removeToast:oe,toasts:_.filter(J=>J.position==K.position),heights:A.filter(J=>J.position==K.position),setHeights:P,expandByDefault:i,gap:x,expanded:k,swipeDirections:t.swipeDirections})})):null}))}),nV=({...e})=>{const{theme:t="system"}=NH();return f.jsx(rV,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})};var Mp="Switch",[oV,l3]=je(Mp),[aV,iV]=oV(Mp),CT=d.forwardRef((e,t)=>{const{__scopeSwitch:r,name:n,checked:o,defaultChecked:a,required:i,disabled:s,value:c="on",onCheckedChange:l,form:p,...u}=e,[m,b]=d.useState(null),g=de(t,w=>b(w)),h=d.useRef(!1),v=m?p||!!m.closest("form"):!0,[y=!1,x]=$e({prop:o,defaultProp:a,onChange:l});return f.jsxs(aV,{scope:r,checked:y,disabled:s,children:[f.jsx(X.button,{type:"button",role:"switch","aria-checked":y,"aria-required":i,"data-state":ET(y),"data-disabled":s?"":void 0,disabled:s,value:c,...u,ref:g,onClick:B(e.onClick,w=>{x(S=>!S),v&&(h.current=w.isPropagationStopped(),h.current||w.stopPropagation())})}),v&&f.jsx(sV,{control:m,bubbles:!h.current,name:n,value:c,checked:y,required:i,disabled:s,form:p,style:{transform:"translateX(-100%)"}})]})});CT.displayName=Mp;var _T="SwitchThumb",RT=d.forwardRef((e,t)=>{const{__scopeSwitch:r,...n}=e,o=iV(_T,r);return f.jsx(X.span,{"data-state":ET(o.checked),"data-disabled":o.disabled?"":void 0,...n,ref:t})});RT.displayName=_T;var sV=e=>{const{control:t,checked:r,bubbles:n=!0,...o}=e,a=d.useRef(null),i=_n(r),s=_o(t);return d.useEffect(()=>{const c=a.current,l=window.HTMLInputElement.prototype,u=Object.getOwnPropertyDescriptor(l,"checked").set;if(i!==r&&u){const m=new Event("click",{bubbles:n});u.call(c,r),c.dispatchEvent(m)}},[i,r,n]),f.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...o,tabIndex:-1,ref:a,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function ET(e){return e?"checked":"unchecked"}var PT=CT,cV=RT;const TT=d.forwardRef(({className:e,...t},r)=>f.jsx(PT,{className:O("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...t,ref:r,children:f.jsx(cV,{className:O("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})}));TT.displayName=PT.displayName;const NT=d.forwardRef(({className:e,...t},r)=>f.jsx("div",{className:"relative w-full overflow-auto",children:f.jsx("table",{ref:r,className:O("w-full caption-bottom text-sm",e),...t})}));NT.displayName="Table";const AT=d.forwardRef(({className:e,...t},r)=>f.jsx("thead",{ref:r,className:O("[&_tr]:border-b",e),...t}));AT.displayName="TableHeader";const MT=d.forwardRef(({className:e,...t},r)=>f.jsx("tbody",{ref:r,className:O("[&_tr:last-child]:border-0",e),...t}));MT.displayName="TableBody";const OT=d.forwardRef(({className:e,...t},r)=>f.jsx("tfoot",{ref:r,className:O("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));OT.displayName="TableFooter";const IT=d.forwardRef(({className:e,...t},r)=>f.jsx("tr",{ref:r,className:O("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));IT.displayName="TableRow";const DT=d.forwardRef(({className:e,...t},r)=>f.jsx("th",{ref:r,className:O("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t}));DT.displayName="TableHead";const jT=d.forwardRef(({className:e,...t},r)=>f.jsx("td",{ref:r,className:O("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t}));jT.displayName="TableCell";const kT=d.forwardRef(({className:e,...t},r)=>f.jsx("caption",{ref:r,className:O("mt-4 text-sm text-muted-foreground",e),...t}));kT.displayName="TableCaption";var Op="Tabs",[lV,u3]=je(Op,[Qt]),$T=Qt(),[uV,Ip]=lV(Op),LT=d.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:i="horizontal",dir:s,activationMode:c="automatic",...l}=e,p=Ft(s),[u,m]=$e({prop:n,onChange:o,defaultProp:a});return f.jsx(uV,{scope:r,baseId:Ue(),value:u,onValueChange:m,orientation:i,dir:p,activationMode:c,children:f.jsx(X.div,{dir:p,"data-orientation":i,...l,ref:t})})});LT.displayName=Op;var FT="TabsList",BT=d.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,a=Ip(FT,r),i=$T(r);return f.jsx(To,{asChild:!0,...i,orientation:a.orientation,dir:a.dir,loop:n,children:f.jsx(X.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});BT.displayName=FT;var zT="TabsTrigger",qT=d.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,i=Ip(zT,r),s=$T(r),c=GT(i.baseId,n),l=UT(i.baseId,n),p=n===i.value;return f.jsx(No,{asChild:!0,...s,focusable:!o,active:p,children:f.jsx(X.button,{type:"button",role:"tab","aria-selected":p,"aria-controls":l,"data-state":p?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:c,...a,ref:t,onMouseDown:B(e.onMouseDown,u=>{!o&&u.button===0&&u.ctrlKey===!1?i.onValueChange(n):u.preventDefault()}),onKeyDown:B(e.onKeyDown,u=>{[" ","Enter"].includes(u.key)&&i.onValueChange(n)}),onFocus:B(e.onFocus,()=>{const u=i.activationMode!=="manual";!p&&!o&&u&&i.onValueChange(n)})})})});qT.displayName=zT;var HT="TabsContent",VT=d.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:a,...i}=e,s=Ip(HT,r),c=GT(s.baseId,n),l=UT(s.baseId,n),p=n===s.value,u=d.useRef(p);return d.useEffect(()=>{const m=requestAnimationFrame(()=>u.current=!1);return()=>cancelAnimationFrame(m)},[]),f.jsx(Le,{present:o||p,children:({present:m})=>f.jsx(X.div,{"data-state":p?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":c,hidden:!m,id:l,tabIndex:0,...i,ref:t,style:{...e.style,animationDuration:u.current?"0s":void 0},children:m&&a})})});VT.displayName=HT;function GT(e,t){return`${e}-trigger-${t}`}function UT(e,t){return`${e}-content-${t}`}var dV=LT,WT=BT,KT=qT,YT=VT;const fV=dV,XT=d.forwardRef(({className:e,...t},r)=>f.jsx(WT,{ref:r,className:O("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",e),...t}));XT.displayName=WT.displayName;const ZT=d.forwardRef(({className:e,...t},r)=>f.jsx(KT,{ref:r,className:O("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",e),...t}));ZT.displayName=KT.displayName;const JT=d.forwardRef(({className:e,...t},r)=>f.jsx(YT,{ref:r,className:O("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));JT.displayName=YT.displayName;const QT=d.forwardRef(({className:e,...t},r)=>f.jsx("textarea",{className:O("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...t}));QT.displayName="Textarea";var Dp="ToastProvider",[jp,pV,mV]=sr("Toast"),[e1,d3]=je("Toast",[mV]),[hV,$i]=e1(Dp),t1=e=>{const{__scopeToast:t,label:r="Notification",duration:n=5e3,swipeDirection:o="right",swipeThreshold:a=50,children:i}=e,[s,c]=d.useState(null),[l,p]=d.useState(0),u=d.useRef(!1),m=d.useRef(!1);return r.trim()||console.error(`Invalid prop \`label\` supplied to \`${Dp}\`. Expected non-empty \`string\`.`),f.jsx(jp.Provider,{scope:t,children:f.jsx(hV,{scope:t,label:r,duration:n,swipeDirection:o,swipeThreshold:a,toastCount:l,viewport:s,onViewportChange:c,onToastAdd:d.useCallback(()=>p(b=>b+1),[]),onToastRemove:d.useCallback(()=>p(b=>b-1),[]),isFocusedToastEscapeKeyDownRef:u,isClosePausedRef:m,children:i})})};t1.displayName=Dp;var r1="ToastViewport",gV=["F8"],cd="toast.viewportPause",ld="toast.viewportResume",n1=d.forwardRef((e,t)=>{const{__scopeToast:r,hotkey:n=gV,label:o="Notifications ({hotkey})",...a}=e,i=$i(r1,r),s=pV(r),c=d.useRef(null),l=d.useRef(null),p=d.useRef(null),u=d.useRef(null),m=de(t,u,i.onViewportChange),b=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),g=i.toastCount>0;d.useEffect(()=>{const v=y=>{var w;n.length!==0&&n.every(S=>y[S]||y.code===S)&&((w=u.current)==null||w.focus())};return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[n]),d.useEffect(()=>{const v=c.current,y=u.current;if(g&&v&&y){const x=()=>{if(!i.isClosePausedRef.current){const R=new CustomEvent(cd);y.dispatchEvent(R),i.isClosePausedRef.current=!0}},w=()=>{if(i.isClosePausedRef.current){const R=new CustomEvent(ld);y.dispatchEvent(R),i.isClosePausedRef.current=!1}},S=R=>{!v.contains(R.relatedTarget)&&w()},_=()=>{v.contains(document.activeElement)||w()};return v.addEventListener("focusin",x),v.addEventListener("focusout",S),v.addEventListener("pointermove",x),v.addEventListener("pointerleave",_),window.addEventListener("blur",x),window.addEventListener("focus",w),()=>{v.removeEventListener("focusin",x),v.removeEventListener("focusout",S),v.removeEventListener("pointermove",x),v.removeEventListener("pointerleave",_),window.removeEventListener("blur",x),window.removeEventListener("focus",w)}}},[g,i.isClosePausedRef]);const h=d.useCallback(({tabbingDirection:v})=>{const x=s().map(w=>{const S=w.ref.current,_=[S,...NV(S)];return v==="forwards"?_:_.reverse()});return(v==="forwards"?x.reverse():x).flat()},[s]);return d.useEffect(()=>{const v=u.current;if(v){const y=x=>{var _,R,C;const w=x.altKey||x.ctrlKey||x.metaKey;if(x.key==="Tab"&&!w){const A=document.activeElement,P=x.shiftKey;if(x.target===v&&P){(_=l.current)==null||_.focus();return}const L=h({tabbingDirection:P?"backwards":"forwards"}),N=L.findIndex(j=>j===A);cu(L.slice(N+1))?x.preventDefault():P?(R=l.current)==null||R.focus():(C=p.current)==null||C.focus()}};return v.addEventListener("keydown",y),()=>v.removeEventListener("keydown",y)}},[s,h]),f.jsxs($A,{ref:c,role:"region","aria-label":o.replace("{hotkey}",b),tabIndex:-1,style:{pointerEvents:g?void 0:"none"},children:[g&&f.jsx(ud,{ref:l,onFocusFromOutsideViewport:()=>{const v=h({tabbingDirection:"forwards"});cu(v)}}),f.jsx(jp.Slot,{scope:r,children:f.jsx(X.ol,{tabIndex:-1,...a,ref:m})}),g&&f.jsx(ud,{ref:p,onFocusFromOutsideViewport:()=>{const v=h({tabbingDirection:"backwards"});cu(v)}})]})});n1.displayName=r1;var o1="ToastFocusProxy",ud=d.forwardRef((e,t)=>{const{__scopeToast:r,onFocusFromOutsideViewport:n,...o}=e,a=$i(o1,r);return f.jsx(ko,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:i=>{var l;const s=i.relatedTarget;!((l=a.viewport)!=null&&l.contains(s))&&n()}})});ud.displayName=o1;var Li="Toast",vV="toast.swipeStart",bV="toast.swipeMove",yV="toast.swipeCancel",xV="toast.swipeEnd",a1=d.forwardRef((e,t)=>{const{forceMount:r,open:n,defaultOpen:o,onOpenChange:a,...i}=e,[s=!0,c]=$e({prop:n,defaultProp:o,onChange:a});return f.jsx(Le,{present:r||s,children:f.jsx(CV,{open:s,...i,ref:t,onClose:()=>c(!1),onPause:Te(e.onPause),onResume:Te(e.onResume),onSwipeStart:B(e.onSwipeStart,l=>{l.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:B(e.onSwipeMove,l=>{const{x:p,y:u}=l.detail.delta;l.currentTarget.setAttribute("data-swipe","move"),l.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${p}px`),l.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${u}px`)}),onSwipeCancel:B(e.onSwipeCancel,l=>{l.currentTarget.setAttribute("data-swipe","cancel"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),l.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),l.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:B(e.onSwipeEnd,l=>{const{x:p,y:u}=l.detail.delta;l.currentTarget.setAttribute("data-swipe","end"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),l.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${p}px`),l.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${u}px`),c(!1)})})})});a1.displayName=Li;var[wV,SV]=e1(Li,{onClose(){}}),CV=d.forwardRef((e,t)=>{const{__scopeToast:r,type:n="foreground",duration:o,open:a,onClose:i,onEscapeKeyDown:s,onPause:c,onResume:l,onSwipeStart:p,onSwipeMove:u,onSwipeCancel:m,onSwipeEnd:b,...g}=e,h=$i(Li,r),[v,y]=d.useState(null),x=de(t,j=>y(j)),w=d.useRef(null),S=d.useRef(null),_=o||h.duration,R=d.useRef(0),C=d.useRef(_),A=d.useRef(0),{onToastAdd:P,onToastRemove:k}=h,D=Te(()=>{var $;(v==null?void 0:v.contains(document.activeElement))&&(($=h.viewport)==null||$.focus()),i()}),L=d.useCallback(j=>{!j||j===1/0||(window.clearTimeout(A.current),R.current=new Date().getTime(),A.current=window.setTimeout(D,j))},[D]);d.useEffect(()=>{const j=h.viewport;if(j){const $=()=>{L(C.current),l==null||l()},M=()=>{const G=new Date().getTime()-R.current;C.current=C.current-G,window.clearTimeout(A.current),c==null||c()};return j.addEventListener(cd,M),j.addEventListener(ld,$),()=>{j.removeEventListener(cd,M),j.removeEventListener(ld,$)}}},[h.viewport,_,c,l,L]),d.useEffect(()=>{a&&!h.isClosePausedRef.current&&L(_)},[a,_,h.isClosePausedRef,L]),d.useEffect(()=>(P(),()=>k()),[P,k]);const N=d.useMemo(()=>v?f1(v):null,[v]);return h.viewport?f.jsxs(f.Fragment,{children:[N&&f.jsx(_V,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0,children:N}),f.jsx(wV,{scope:r,onClose:D,children:ho.createPortal(f.jsx(jp.ItemSlot,{scope:r,children:f.jsx(kA,{asChild:!0,onEscapeKeyDown:B(s,()=>{h.isFocusedToastEscapeKeyDownRef.current||D(),h.isFocusedToastEscapeKeyDownRef.current=!1}),children:f.jsx(X.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":a?"open":"closed","data-swipe-direction":h.swipeDirection,...g,ref:x,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:B(e.onKeyDown,j=>{j.key==="Escape"&&(s==null||s(j.nativeEvent),j.nativeEvent.defaultPrevented||(h.isFocusedToastEscapeKeyDownRef.current=!0,D()))}),onPointerDown:B(e.onPointerDown,j=>{j.button===0&&(w.current={x:j.clientX,y:j.clientY})}),onPointerMove:B(e.onPointerMove,j=>{if(!w.current)return;const $=j.clientX-w.current.x,M=j.clientY-w.current.y,G=!!S.current,H=["left","right"].includes(h.swipeDirection),z=["left","up"].includes(h.swipeDirection)?Math.min:Math.max,oe=H?z(0,$):0,Z=H?0:z(0,M),te=j.pointerType==="touch"?10:2,F={x:oe,y:Z},U={originalEvent:j,delta:F};G?(S.current=F,ca(bV,u,U,{discrete:!1})):wb(F,h.swipeDirection,te)?(S.current=F,ca(vV,p,U,{discrete:!1}),j.target.setPointerCapture(j.pointerId)):(Math.abs($)>te||Math.abs(M)>te)&&(w.current=null)}),onPointerUp:B(e.onPointerUp,j=>{const $=S.current,M=j.target;if(M.hasPointerCapture(j.pointerId)&&M.releasePointerCapture(j.pointerId),S.current=null,w.current=null,$){const G=j.currentTarget,H={originalEvent:j,delta:$};wb($,h.swipeDirection,h.swipeThreshold)?ca(xV,b,H,{discrete:!0}):ca(yV,m,H,{discrete:!0}),G.addEventListener("click",z=>z.preventDefault(),{once:!0})}})})})}),h.viewport)})]}):null}),_V=e=>{const{__scopeToast:t,children:r,...n}=e,o=$i(Li,t),[a,i]=d.useState(!1),[s,c]=d.useState(!1);return PV(()=>i(!0)),d.useEffect(()=>{const l=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(l)},[]),s?null:f.jsx(zr,{asChild:!0,children:f.jsx(ko,{...n,children:a&&f.jsxs(f.Fragment,{children:[o.label," ",r]})})})},RV="ToastTitle",i1=d.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return f.jsx(X.div,{...n,ref:t})});i1.displayName=RV;var EV="ToastDescription",s1=d.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return f.jsx(X.div,{...n,ref:t})});s1.displayName=EV;var c1="ToastAction",l1=d.forwardRef((e,t)=>{const{altText:r,...n}=e;return r.trim()?f.jsx(d1,{altText:r,asChild:!0,children:f.jsx(kp,{...n,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${c1}\`. Expected non-empty \`string\`.`),null)});l1.displayName=c1;var u1="ToastClose",kp=d.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e,o=SV(u1,r);return f.jsx(d1,{asChild:!0,children:f.jsx(X.button,{type:"button",...n,ref:t,onClick:B(e.onClick,o.onClose)})})});kp.displayName=u1;var d1=d.forwardRef((e,t)=>{const{__scopeToast:r,altText:n,...o}=e;return f.jsx(X.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0,...o,ref:t})});function f1(e){const t=[];return Array.from(e.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&t.push(n.textContent),TV(n)){const o=n.ariaHidden||n.hidden||n.style.display==="none",a=n.dataset.radixToastAnnounceExclude==="";if(!o)if(a){const i=n.dataset.radixToastAnnounceAlt;i&&t.push(i)}else t.push(...f1(n))}}),t}function ca(e,t,r,{discrete:n}){const o=r.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?Xn(o,a):o.dispatchEvent(a)}var wb=(e,t,r=0)=>{const n=Math.abs(e.x),o=Math.abs(e.y),a=n>o;return t==="left"||t==="right"?a&&n>r:!a&&o>r};function PV(e=()=>{}){const t=Te(e);He(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[t])}function TV(e){return e.nodeType===e.ELEMENT_NODE}function NV(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 cu(e){const t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}var AV=t1,p1=n1,m1=a1,h1=i1,g1=s1,v1=l1,b1=kp;const y1=AV,$p=d.forwardRef(({className:e,...t},r)=>f.jsx(p1,{ref:r,className:O("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));$p.displayName=p1.displayName;const MV=dr("group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Lp=d.forwardRef(({className:e,variant:t,...r},n)=>f.jsx(m1,{ref:n,className:O(MV({variant:t}),e),...r}));Lp.displayName=m1.displayName;const x1=d.forwardRef(({className:e,...t},r)=>f.jsx(v1,{ref:r,className:O("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));x1.displayName=v1.displayName;const Fp=d.forwardRef(({className:e,...t},r)=>f.jsx(b1,{ref:r,className:O("absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:f.jsx(wd,{className:"h-4 w-4"})}));Fp.displayName=b1.displayName;const Bp=d.forwardRef(({className:e,...t},r)=>f.jsx(h1,{ref:r,className:O("text-sm font-semibold [&+div]:text-xs",e),...t}));Bp.displayName=h1.displayName;const zp=d.forwardRef(({className:e,...t},r)=>f.jsx(g1,{ref:r,className:O("text-sm opacity-90",e),...t}));zp.displayName=g1.displayName;const OV=1,IV=1e6;let lu=0;function DV(){return lu=(lu+1)%Number.MAX_SAFE_INTEGER,lu.toString()}const uu=new Map,Sb=e=>{if(uu.has(e))return;const t=setTimeout(()=>{uu.delete(e),Yn({type:"REMOVE_TOAST",toastId:e})},IV);uu.set(e,t)},jV=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,OV)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(r=>r.id===t.toast.id?{...r,...t.toast}:r)};case"DISMISS_TOAST":{const{toastId:r}=t;return r?Sb(r):e.toasts.forEach(n=>{Sb(n.id)}),{...e,toasts:e.toasts.map(n=>n.id===r||r===void 0?{...n,open:!1}:n)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(r=>r.id!==t.toastId)}}},ma=[];let ha={toasts:[]};function Yn(e){ha=jV(ha,e),ma.forEach(t=>{t(ha)})}function kV({...e}){const t=DV(),r=o=>Yn({type:"UPDATE_TOAST",toast:{...o,id:t}}),n=()=>Yn({type:"DISMISS_TOAST",toastId:t});return Yn({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||n()}}}),{id:t,dismiss:n,update:r}}function $V(){const[e,t]=d.useState(ha);return d.useEffect(()=>(ma.push(t),()=>{const r=ma.indexOf(t);r>-1&&ma.splice(r,1)}),[e]),{...e,toast:kV,dismiss:r=>Yn({type:"DISMISS_TOAST",toastId:r})}}function LV(){const{toasts:e}=$V();return f.jsxs(y1,{children:[e.map(function({id:t,title:r,description:n,action:o,...a}){return f.jsxs(Lp,{...a,children:[f.jsxs("div",{className:"grid gap-1",children:[r&&f.jsx(Bp,{children:r}),n&&f.jsx(zp,{children:n})]}),o,f.jsx(Fp,{})]},t)}),f.jsx($p,{})]})}var FV="Toggle",qp=d.forwardRef((e,t)=>{const{pressed:r,defaultPressed:n=!1,onPressedChange:o,...a}=e,[i=!1,s]=$e({prop:r,onChange:o,defaultProp:n});return f.jsx(X.button,{type:"button","aria-pressed":i,"data-state":i?"on":"off","data-disabled":e.disabled?"":void 0,...a,ref:t,onClick:B(e.onClick,()=>{e.disabled||s(!i)})})});qp.displayName=FV;var w1=qp,In="ToggleGroup",[S1,f3]=je(In,[Qt]),C1=Qt(),Hp=E.forwardRef((e,t)=>{const{type:r,...n}=e;if(r==="single"){const o=n;return f.jsx(BV,{...o,ref:t})}if(r==="multiple"){const o=n;return f.jsx(zV,{...o,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${In}\``)});Hp.displayName=In;var[_1,R1]=S1(In),BV=E.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...a}=e,[i,s]=$e({prop:r,defaultProp:n,onChange:o});return f.jsx(_1,{scope:e.__scopeToggleGroup,type:"single",value:i?[i]:[],onItemActivate:s,onItemDeactivate:E.useCallback(()=>s(""),[s]),children:f.jsx(E1,{...a,ref:t})})}),zV=E.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...a}=e,[i=[],s]=$e({prop:r,defaultProp:n,onChange:o}),c=E.useCallback(p=>s((u=[])=>[...u,p]),[s]),l=E.useCallback(p=>s((u=[])=>u.filter(m=>m!==p)),[s]);return f.jsx(_1,{scope:e.__scopeToggleGroup,type:"multiple",value:i,onItemActivate:c,onItemDeactivate:l,children:f.jsx(E1,{...a,ref:t})})});Hp.displayName=In;var[qV,HV]=S1(In),E1=E.forwardRef((e,t)=>{const{__scopeToggleGroup:r,disabled:n=!1,rovingFocus:o=!0,orientation:a,dir:i,loop:s=!0,...c}=e,l=C1(r),p=Ft(i),u={role:"group",dir:p,...c};return f.jsx(qV,{scope:r,rovingFocus:o,disabled:n,children:o?f.jsx(To,{asChild:!0,...l,orientation:a,dir:p,loop:s,children:f.jsx(X.div,{...u,ref:t})}):f.jsx(X.div,{...u,ref:t})})}),Ua="ToggleGroupItem",P1=E.forwardRef((e,t)=>{const r=R1(Ua,e.__scopeToggleGroup),n=HV(Ua,e.__scopeToggleGroup),o=C1(e.__scopeToggleGroup),a=r.value.includes(e.value),i=n.disabled||e.disabled,s={...e,pressed:a,disabled:i},c=E.useRef(null);return n.rovingFocus?f.jsx(No,{asChild:!0,...o,focusable:!i,active:a,ref:c,children:f.jsx(Cb,{...s,ref:t})}):f.jsx(Cb,{...s,ref:t})});P1.displayName=Ua;var Cb=E.forwardRef((e,t)=>{const{__scopeToggleGroup:r,value:n,...o}=e,a=R1(Ua,r),i={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},s=a.type==="single"?i:void 0;return f.jsx(qp,{...s,...o,ref:t,onPressedChange:c=>{c?a.onItemActivate(n):a.onItemDeactivate(n)}})}),T1=Hp,N1=P1;const Vp=dr("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-2 min-w-9",sm:"h-8 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),A1=d.forwardRef(({className:e,variant:t,size:r,...n},o)=>f.jsx(w1,{ref:o,className:O(Vp({variant:t,size:r,className:e})),...n}));A1.displayName=w1.displayName;const M1=d.createContext({size:"default",variant:"default"}),O1=d.forwardRef(({className:e,variant:t,size:r,children:n,...o},a)=>f.jsx(T1,{ref:a,className:O("flex items-center justify-center gap-1",e),...o,children:f.jsx(M1.Provider,{value:{variant:t,size:r},children:n})}));O1.displayName=T1.displayName;const I1=d.forwardRef(({className:e,children:t,variant:r,size:n,...o},a)=>{const i=d.useContext(M1);return f.jsx(N1,{ref:a,className:O(Vp({variant:i.variant||r,size:i.size||n}),e),...o,children:t})});I1.displayName=N1.displayName;function VV({title:e,breadcrumbItems:t=[],showHomeLink:r=!0,className:n="",children:o}){return f.jsx("header",{className:`border-b pb-4 ${n}`,children:f.jsxs("div",{className:"container mx-auto py-4",children:[(t.length>0||r)&&f.jsx(Ad,{className:"mb-2",children:f.jsxs(Md,{children:[r&&f.jsxs(f.Fragment,{children:[f.jsx(ba,{children:f.jsxs(ya,{href:"/",className:"flex items-center",children:[f.jsx(jN,{className:"h-3.5 w-3.5 mr-1"}),"Home"]})}),t.length>0&&f.jsx(xa,{children:f.jsx(jr,{className:"h-3.5 w-3.5"})})]}),t.map((a,i)=>f.jsxs(E.Fragment,{children:[f.jsx(ba,{children:a.isCurrentPage?f.jsx(Od,{children:a.label}):f.jsx(ya,{href:a.href||"#",children:a.label})}),i<t.length-1&&f.jsx(xa,{children:f.jsx(jr,{className:"h-3.5 w-3.5"})})]},i))]})}),e&&f.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:e}),o]})})}function GV({className:e,...t}){return f.jsxs("div",{className:O("flex flex-col gap-6",e),...t,children:[f.jsxs(Id,{children:[f.jsxs(Dd,{className:"text-center",children:[f.jsx(jd,{className:"text-xl",children:"Welcome back"}),f.jsx(kd,{children:"Login with your Apple or Google account"})]}),f.jsx($d,{children:f.jsx("form",{children:f.jsxs("div",{className:"grid gap-6",children:[f.jsxs("div",{className:"flex flex-col gap-4",children:[f.jsxs(gr,{variant:"outline",className:"w-full",children:[f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:f.jsx("path",{d:"M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701",fill:"currentColor"})}),"Login with Apple"]}),f.jsxs(gr,{variant:"outline",className:"w-full",children:[f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:f.jsx("path",{d:"M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z",fill:"currentColor"})}),"Login with Google"]})]}),f.jsx("div",{className:"relative text-center text-sm after:absolute after:inset-0 after:top-1/2 after:z-0 after:flex after:items-center after:border-t after:border-border",children:f.jsx("span",{className:"relative z-10 bg-background px-2 text-muted-foreground",children:"Or continue with"})}),f.jsxs("div",{className:"grid gap-6",children:[f.jsxs("div",{className:"grid gap-2",children:[f.jsx(lo,{htmlFor:"email",children:"Email"}),f.jsx(uo,{id:"email",type:"email",placeholder:"m@example.com",required:!0})]}),f.jsxs("div",{className:"grid gap-2",children:[f.jsxs("div",{className:"flex items-center",children:[f.jsx(lo,{htmlFor:"password",children:"Password"}),f.jsx("a",{href:"#",className:"ml-auto text-sm underline-offset-4 hover:underline",children:"Forgot your password?"})]}),f.jsx(uo,{id:"password",type:"password",required:!0})]}),f.jsx(gr,{type:"submit",className:"w-full",children:"Login"})]}),f.jsxs("div",{className:"text-center text-sm",children:["Don't have an account?"," ",f.jsx("a",{href:"#",className:"underline underline-offset-4",children:"Sign up"})]})]})})})]}),f.jsxs("div",{className:"text-balance text-center text-xs text-muted-foreground [&_a]:underline [&_a]:underline-offset-4 [&_a]:hover:text-primary ",children:["By clicking continue, you agree to our ",f.jsx("a",{href:"#",children:"Terms of Service"})," ","and ",f.jsx("a",{href:"#",children:"Privacy Policy"}),"."]})]})}exports.Accordion=TA;exports.AccordionContent=ty;exports.AccordionItem=Qb;exports.AccordionTrigger=ey;exports.Alert=ox;exports.AlertDescription=ix;exports.AlertDialog=ZM;exports.AlertDialogAction=rx;exports.AlertDialogCancel=nx;exports.AlertDialogContent=Zy;exports.AlertDialogDescription=tx;exports.AlertDialogFooter=Qy;exports.AlertDialogHeader=Jy;exports.AlertDialogOverlay=Td;exports.AlertDialogPortal=Xy;exports.AlertDialogTitle=ex;exports.AlertDialogTrigger=JM;exports.AlertTitle=ax;exports.AspectRatio=rO;exports.Avatar=vx;exports.AvatarFallback=yx;exports.AvatarImage=bx;exports.Badge=iO;exports.Breadcrumb=Ad;exports.BreadcrumbEllipsis=wx;exports.BreadcrumbItem=ba;exports.BreadcrumbLink=ya;exports.BreadcrumbList=Md;exports.BreadcrumbPage=Od;exports.BreadcrumbSeparator=xa;exports.Button=gr;exports.Card=Id;exports.CardContent=$d;exports.CardDescription=kd;exports.CardFooter=Sx;exports.CardHeader=Dd;exports.CardTitle=jd;exports.Carousel=Px;exports.CarouselContent=Tx;exports.CarouselItem=Nx;exports.CarouselNext=Mx;exports.CarouselPrevious=Ax;exports.ChartContainer=ww;exports.ChartLegend=f$;exports.ChartLegendContent=_w;exports.ChartStyle=Sw;exports.ChartTooltip=d$;exports.ChartTooltipContent=Cw;exports.Checkbox=Aw;exports.Collapsible=b$;exports.CollapsibleContent=x$;exports.CollapsibleTrigger=y$;exports.ContextMenu=N2;exports.ContextMenuCheckboxItem=oS;exports.ContextMenuContent=rS;exports.ContextMenuGroup=M2;exports.ContextMenuItem=nS;exports.ContextMenuLabel=iS;exports.ContextMenuPortal=O2;exports.ContextMenuRadioGroup=D2;exports.ContextMenuRadioItem=aS;exports.ContextMenuSeparator=sS;exports.ContextMenuShortcut=cS;exports.ContextMenuSub=I2;exports.ContextMenuSubContent=tS;exports.ContextMenuSubTrigger=eS;exports.ContextMenuTrigger=A2;exports.Dialog=j2;exports.DialogClose=$2;exports.DialogContent=uS;exports.DialogDescription=mS;exports.DialogFooter=fS;exports.DialogHeader=dS;exports.DialogOverlay=zf;exports.DialogPortal=lS;exports.DialogTitle=pS;exports.DialogTrigger=k2;exports.Drawer=ES;exports.DrawerClose=pF;exports.DrawerContent=TS;exports.DrawerDescription=OS;exports.DrawerFooter=AS;exports.DrawerHeader=NS;exports.DrawerOverlay=Hf;exports.DrawerPortal=PS;exports.DrawerTitle=MS;exports.DrawerTrigger=fF;exports.DropdownMenu=jF;exports.DropdownMenuCheckboxItem=uC;exports.DropdownMenuContent=cC;exports.DropdownMenuGroup=$F;exports.DropdownMenuItem=lC;exports.DropdownMenuLabel=fC;exports.DropdownMenuPortal=LF;exports.DropdownMenuRadioGroup=BF;exports.DropdownMenuRadioItem=dC;exports.DropdownMenuSeparator=pC;exports.DropdownMenuShortcut=mC;exports.DropdownMenuSub=FF;exports.DropdownMenuSubContent=sC;exports.DropdownMenuSubTrigger=iC;exports.DropdownMenuTrigger=kF;exports.Form=uB;exports.FormControl=EC;exports.FormDescription=PC;exports.FormField=dB;exports.FormItem=_C;exports.FormLabel=RC;exports.FormMessage=TC;exports.Header=VV;exports.HoverCard=wB;exports.HoverCardContent=jC;exports.HoverCardTrigger=SB;exports.Input=uo;exports.InputOTP=zC;exports.InputOTPGroup=qC;exports.InputOTPSeparator=VC;exports.InputOTPSlot=HC;exports.Label=lo;exports.LoginForm=GV;exports.Menubar=S_;exports.MenubarCheckboxItem=T_;exports.MenubarContent=E_;exports.MenubarGroup=iz;exports.MenubarItem=P_;exports.MenubarLabel=A_;exports.MenubarMenu=az;exports.MenubarPortal=sz;exports.MenubarRadioGroup=cz;exports.MenubarRadioItem=N_;exports.MenubarSeparator=M_;exports.MenubarShortcut=O_;exports.MenubarSub=lz;exports.MenubarSubContent=R_;exports.MenubarSubTrigger=__;exports.MenubarTrigger=C_;exports.NavigationMenu=aR;exports.NavigationMenuContent=lR;exports.NavigationMenuIndicator=uR;exports.NavigationMenuItem=Tz;exports.NavigationMenuLink=Nz;exports.NavigationMenuList=iR;exports.NavigationMenuTrigger=cR;exports.NavigationMenuViewport=rp;exports.Pagination=dR;exports.PaginationContent=fR;exports.PaginationEllipsis=gR;exports.PaginationItem=pR;exports.PaginationLink=Ci;exports.PaginationNext=hR;exports.PaginationPrevious=mR;exports.Popover=qz;exports.PopoverAnchor=Vz;exports.PopoverContent=NR;exports.PopoverTrigger=Hz;exports.Progress=jR;exports.RadioGroup=YR;exports.RadioGroupItem=XR;exports.ResizableHandle=Bq;exports.ResizablePanel=Fq;exports.ResizablePanelGroup=Lq;exports.ScrollArea=IE;exports.ScrollBar=vp;exports.Select=E5;exports.SelectContent=vP;exports.SelectGroup=P5;exports.SelectItem=yP;exports.SelectLabel=bP;exports.SelectScrollDownButton=xp;exports.SelectScrollUpButton=yp;exports.SelectSeparator=xP;exports.SelectTrigger=gP;exports.SelectValue=T5;exports.Separator=wp;exports.Sheet=CP;exports.SheetClose=I5;exports.SheetContent=Cp;exports.SheetDescription=Ep;exports.SheetFooter=RP;exports.SheetHeader=_p;exports.SheetOverlay=Sp;exports.SheetPortal=_P;exports.SheetTitle=Rp;exports.SheetTrigger=O5;exports.Sidebar=BP;exports.SidebarContent=KP;exports.SidebarFooter=UP;exports.SidebarGroup=YP;exports.SidebarGroupAction=ZP;exports.SidebarGroupContent=JP;exports.SidebarGroupLabel=XP;exports.SidebarHeader=GP;exports.SidebarInput=VP;exports.SidebarInset=HP;exports.SidebarMenu=QP;exports.SidebarMenuAction=rT;exports.SidebarMenuBadge=nT;exports.SidebarMenuButton=tT;exports.SidebarMenuItem=eT;exports.SidebarMenuSkeleton=oT;exports.SidebarMenuSub=aT;exports.SidebarMenuSubButton=sT;exports.SidebarMenuSubItem=iT;exports.SidebarProvider=FP;exports.SidebarRail=qP;exports.SidebarSeparator=WP;exports.SidebarTrigger=zP;exports.Skeleton=td;exports.Slider=ST;exports.SonnerToaster=nV;exports.Switch=TT;exports.Table=NT;exports.TableBody=MT;exports.TableCaption=kT;exports.TableCell=jT;exports.TableFooter=OT;exports.TableHead=DT;exports.TableHeader=AT;exports.TableRow=IT;exports.Tabs=fV;exports.TabsContent=JT;exports.TabsList=XT;exports.TabsTrigger=ZT;exports.Textarea=QT;exports.Toast=Lp;exports.ToastAction=x1;exports.ToastClose=Fp;exports.ToastDescription=zp;exports.ToastProvider=y1;exports.ToastTitle=Bp;exports.ToastViewport=$p;exports.Toaster=LV;exports.Toggle=A1;exports.ToggleGroup=O1;exports.ToggleGroupItem=I1;exports.Tooltip=kP;exports.TooltipContent=Np;exports.TooltipProvider=jP;exports.TooltipTrigger=$P;exports.badgeVariants=xx;exports.buttonVariants=xo;exports.navigationMenuTriggerStyle=sR;exports.toggleVariants=Vp;exports.useFormField=jo;exports.useSidebar=Bo;
|