ui-arreya-components 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -26
- package/dist/components/feature/graph-card.d.ts +20 -0
- package/dist/components/feature/graph-card.stories.d.ts +9 -0
- package/dist/components/feature/header.d.ts +15 -0
- package/dist/components/feature/header.stories.d.ts +12 -0
- package/dist/components/feature/login-form.d.ts +1 -0
- package/dist/components/feature/login-form.stories.d.ts +13 -0
- package/dist/components/feature/search-bar.d.ts +10 -0
- package/dist/components/feature/search-bar.stories.d.ts +19 -0
- package/dist/components/feature/wizard.d.ts +57 -0
- package/dist/components/feature/wizard.stories.d.ts +8 -0
- package/dist/components/ui/accordion.d.ts +7 -0
- package/dist/components/ui/alert-dialog.d.ts +20 -0
- package/dist/components/ui/alert-dialog.stories.d.ts +12 -0
- package/dist/components/ui/alert.d.ts +8 -0
- package/dist/components/ui/alert.stories.d.ts +15 -0
- package/dist/components/ui/aspect-ratio.d.ts +3 -0
- package/dist/components/ui/aspect-ratio.stories.d.ts +12 -0
- package/dist/components/ui/avatar.d.ts +6 -0
- package/dist/components/ui/avatar.stories.d.ts +12 -0
- package/dist/components/ui/badge.d.ts +9 -0
- package/dist/components/ui/badge.stories.d.ts +16 -0
- package/dist/components/ui/breadcrumb.d.ts +11 -0
- package/dist/components/ui/breadcrumb.stories.d.ts +16 -0
- package/dist/components/ui/button.d.ts +11 -0
- package/dist/components/ui/button.stories.d.ts +21 -0
- package/dist/components/ui/card.d.ts +8 -0
- package/dist/components/ui/card.stories.d.ts +27 -0
- package/dist/components/ui/carousel.d.ts +18 -0
- package/dist/components/ui/carousel.stories.d.ts +17 -0
- package/dist/components/ui/chart.d.ts +62 -0
- package/dist/components/ui/checkbox.d.ts +4 -0
- package/dist/components/ui/checkbox.stories.d.ts +14 -0
- package/dist/components/ui/collapsible.d.ts +5 -0
- package/dist/components/ui/collapsible.stories.d.ts +12 -0
- package/dist/components/ui/context-menu.d.ts +27 -0
- package/dist/components/ui/context-menu.stories.d.ts +12 -0
- package/dist/components/ui/dialog.d.ts +19 -0
- package/dist/components/ui/dialog.stories.d.ts +12 -0
- package/dist/components/ui/drawer.d.ts +22 -0
- package/dist/components/ui/drawer.stories.d.ts +15 -0
- package/dist/components/ui/dropdown-menu.d.ts +27 -0
- package/dist/components/ui/dropdown-menu.stories.d.ts +14 -0
- package/dist/components/ui/form.d.ts +23 -0
- package/dist/components/ui/hover-card.d.ts +6 -0
- package/dist/components/ui/hover-card.stories.d.ts +12 -0
- package/dist/components/ui/input-otp.d.ts +34 -0
- package/dist/components/ui/input.d.ts +3 -0
- package/dist/components/ui/input.stories.d.ts +16 -0
- package/dist/components/ui/label.d.ts +5 -0
- package/dist/components/ui/menubar.d.ts +28 -0
- package/dist/components/ui/navigation-menu.d.ts +12 -0
- package/dist/components/ui/pagination.d.ts +28 -0
- package/dist/components/ui/popover.d.ts +7 -0
- package/dist/components/ui/progress.d.ts +4 -0
- package/dist/components/ui/radio-group.d.ts +5 -0
- package/dist/components/ui/resizable.d.ts +23 -0
- package/dist/components/ui/scroll-area.d.ts +5 -0
- package/dist/components/ui/select.d.ts +13 -0
- package/dist/components/ui/separator.d.ts +4 -0
- package/dist/components/ui/sheet.d.ts +25 -0
- package/dist/components/ui/skeleton.d.ts +2 -0
- package/dist/components/ui/slider.d.ts +4 -0
- package/dist/components/ui/sonner.d.ts +4 -0
- package/dist/components/ui/switch.d.ts +4 -0
- package/dist/components/ui/table.d.ts +10 -0
- package/dist/components/ui/table.stories.d.ts +12 -0
- package/dist/components/ui/tabs.d.ts +7 -0
- package/dist/components/ui/textarea.d.ts +3 -0
- package/dist/components/ui/toast.d.ts +15 -0
- package/dist/components/ui/toaster.d.ts +1 -0
- package/dist/components/ui/toggle-group.d.ts +12 -0
- package/dist/components/ui/toggle.d.ts +12 -0
- package/dist/components/ui/tooltip.d.ts +7 -0
- package/dist/hooks/use-mobile.d.ts +1 -0
- package/dist/hooks/use-toast.d.ts +44 -0
- package/dist/index.d.ts +50 -0
- package/dist/lib/types.d.ts +4 -0
- package/dist/lib/utils.d.ts +2 -0
- package/dist/styles.css +1 -1
- package/dist/types/index.d.ts +642 -0
- package/dist/{ui.es.js → ui-arreya-components.es.js} +10284 -11014
- package/dist/ui-arreya-components.umd.js +238 -0
- package/package.json +54 -54
- package/rollup.config.js +12 -0
- package/src/components/feature/search-bar.tsx +1 -1
- package/src/components/ui/breadcrumb.tsx +75 -81
- package/src/components/ui/table.stories.tsx +102 -0
- package/src/index.css +2 -3632
- package/src/index.ts +0 -1
- package/tsconfig.json +34 -7
- package/tsconfig.tsbuildinfo +1 -0
- package/vite.config.ts +5 -8
- package/.github/workflows/npm-publish.yml +0 -35
- package/dist/ui.cjs.js +0 -242
- package/dist/ui.umd.js +0 -242
- package/src/components/ui/sidebar.tsx +0 -771
- package/tsconfig.app.json +0 -30
- package/tsconfig.node.json +0 -24
package/dist/ui.umd.js
DELETED
|
@@ -1,242 +0,0 @@
|
|
|
1
|
-
(function(T,E){typeof exports=="object"&&typeof module<"u"?E(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],E):(T=typeof globalThis<"u"?globalThis:T||self,E(T.ui={},T.React,T.ReactDOM))})(this,function(T,E,Vo){"use strict";function Qp(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const f=Qp(E),kr=Qp(Vo);var Go=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Wt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Wo={exports:{}},$r={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.production.min.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var em;function HR(){if(em)return $r;em=1;var e=E,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=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,l,c){var p,d={},m=null,b=null;c!==void 0&&(m=""+c),l.key!==void 0&&(m=""+l.key),l.ref!==void 0&&(b=l.ref);for(p in l)r.call(l,p)&&!a.hasOwnProperty(p)&&(d[p]=l[p]);if(s&&s.defaultProps)for(p in l=s.defaultProps,l)d[p]===void 0&&(d[p]=l[p]);return{$$typeof:t,type:s,key:m,ref:b,props:d,_owner:o.current}}return $r.Fragment=n,$r.jsx=i,$r.jsxs=i,$r}var Lr={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react-jsx-runtime.development.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var tm;function VR(){return tm||(tm=1,process.env.NODE_ENV!=="production"&&function(){var e=E,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=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"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),g=Symbol.iterator,h="@@iterator";function v(R){if(R===null||typeof R!="object")return null;var X=g&&R[g]||R[h];return typeof X=="function"?X:null}var y=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function w(R){{for(var X=arguments.length,le=new Array(X>1?X-1:0),ge=1;ge<X;ge++)le[ge-1]=arguments[ge];x("error",R,le)}}function x(R,X,le){{var ge=y.ReactDebugCurrentFrame,Oe=ge.getStackAddendum();Oe!==""&&(X+="%s",le=le.concat([Oe]));var ke=le.map(function(Ne){return String(Ne)});ke.unshift("Warning: "+X),Function.prototype.apply.call(console[R],console,ke)}}var S=!1,_=!1,P=!1,C=!1,M=!1,N;N=Symbol.for("react.module.reference");function $(R){return!!(typeof R=="string"||typeof R=="function"||R===r||R===a||M||R===o||R===c||R===p||C||R===b||S||_||P||typeof R=="object"&&R!==null&&(R.$$typeof===m||R.$$typeof===d||R.$$typeof===i||R.$$typeof===s||R.$$typeof===l||R.$$typeof===N||R.getModuleId!==void 0))}function D(R,X,le){var ge=R.displayName;if(ge)return ge;var Oe=X.displayName||X.name||"";return Oe!==""?le+"("+Oe+")":le}function F(R){return R.displayName||"Context"}function A(R){if(R==null)return null;if(typeof R.tag=="number"&&w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof R=="function")return R.displayName||R.name||null;if(typeof R=="string")return R;switch(R){case r:return"Fragment";case n:return"Portal";case a:return"Profiler";case o:return"StrictMode";case c:return"Suspense";case p:return"SuspenseList"}if(typeof R=="object")switch(R.$$typeof){case s:var X=R;return F(X)+".Consumer";case i:var le=R;return F(le._context)+".Provider";case l:return D(R,R.render,"ForwardRef");case d:var ge=R.displayName||null;return ge!==null?ge:A(R.type)||"Memo";case m:{var Oe=R,ke=Oe._payload,Ne=Oe._init;try{return A(Ne(ke))}catch{return null}}}return null}var k=Object.assign,L=0,I,W,V,q,ae,J,ne;function z(){}z.__reactDisabledLog=!0;function U(){{if(L===0){I=console.log,W=console.info,V=console.warn,q=console.error,ae=console.group,J=console.groupCollapsed,ne=console.groupEnd;var R={configurable:!0,enumerable:!0,value:z,writable:!0};Object.defineProperties(console,{info:R,log:R,warn:R,error:R,group:R,groupCollapsed:R,groupEnd:R})}L++}}function ee(){{if(L--,L===0){var R={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:k({},R,{value:I}),info:k({},R,{value:W}),warn:k({},R,{value:V}),error:k({},R,{value:q}),group:k({},R,{value:ae}),groupCollapsed:k({},R,{value:J}),groupEnd:k({},R,{value:ne})})}L<0&&w("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Y=y.ReactCurrentDispatcher,H;function K(R,X,le){{if(H===void 0)try{throw Error()}catch(Oe){var ge=Oe.stack.trim().match(/\n( *(at )?)/);H=ge&&ge[1]||""}return`
|
|
18
|
-
`+H+R}}var re=!1,Q;{var oe=typeof WeakMap=="function"?WeakMap:Map;Q=new oe}function G(R,X){if(!R||re)return"";{var le=Q.get(R);if(le!==void 0)return le}var ge;re=!0;var Oe=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ke;ke=Y.current,Y.current=null,U();try{if(X){var Ne=function(){throw Error()};if(Object.defineProperty(Ne.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ne,[])}catch(wt){ge=wt}Reflect.construct(R,[],Ne)}else{try{Ne.call()}catch(wt){ge=wt}R.call(Ne.prototype)}}else{try{throw Error()}catch(wt){ge=wt}R()}}catch(wt){if(wt&&ge&&typeof wt.stack=="string"){for(var Pe=wt.stack.split(`
|
|
19
|
-
`),mt=ge.stack.split(`
|
|
20
|
-
`),Ue=Pe.length-1,Ze=mt.length-1;Ue>=1&&Ze>=0&&Pe[Ue]!==mt[Ze];)Ze--;for(;Ue>=1&&Ze>=0;Ue--,Ze--)if(Pe[Ue]!==mt[Ze]){if(Ue!==1||Ze!==1)do if(Ue--,Ze--,Ze<0||Pe[Ue]!==mt[Ze]){var Mt=`
|
|
21
|
-
`+Pe[Ue].replace(" at new "," at ");return R.displayName&&Mt.includes("<anonymous>")&&(Mt=Mt.replace("<anonymous>",R.displayName)),typeof R=="function"&&Q.set(R,Mt),Mt}while(Ue>=1&&Ze>=0);break}}}finally{re=!1,Y.current=ke,ee(),Error.prepareStackTrace=Oe}var Dr=R?R.displayName||R.name:"",Kn=Dr?K(Dr):"";return typeof R=="function"&&Q.set(R,Kn),Kn}function ie(R,X,le){return G(R,!1)}function j(R){var X=R.prototype;return!!(X&&X.isReactComponent)}function te(R,X,le){if(R==null)return"";if(typeof R=="function")return G(R,j(R));if(typeof R=="string")return K(R);switch(R){case c:return K("Suspense");case p:return K("SuspenseList")}if(typeof R=="object")switch(R.$$typeof){case l:return ie(R.render);case d:return te(R.type,X,le);case m:{var ge=R,Oe=ge._payload,ke=ge._init;try{return te(ke(Oe),X,le)}catch{}}}return""}var me=Object.prototype.hasOwnProperty,he={},ve=y.ReactDebugCurrentFrame;function pe(R){if(R){var X=R._owner,le=te(R.type,R._source,X?X.type:null);ve.setExtraStackFrame(le)}else ve.setExtraStackFrame(null)}function Te(R,X,le,ge,Oe){{var ke=Function.call.bind(me);for(var Ne in R)if(ke(R,Ne)){var Pe=void 0;try{if(typeof R[Ne]!="function"){var mt=Error((ge||"React class")+": "+le+" type `"+Ne+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof R[Ne]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw mt.name="Invariant Violation",mt}Pe=R[Ne](X,Ne,ge,le,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ue){Pe=Ue}Pe&&!(Pe instanceof Error)&&(pe(Oe),w("%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).",ge||"React class",le,Ne,typeof Pe),pe(null)),Pe instanceof Error&&!(Pe.message in he)&&(he[Pe.message]=!0,pe(Oe),w("Failed %s type: %s",le,Pe.message),pe(null))}}}var He=Array.isArray;function Se(R){return He(R)}function Ie(R){{var X=typeof Symbol=="function"&&Symbol.toStringTag,le=X&&R[Symbol.toStringTag]||R.constructor.name||"Object";return le}}function ot(R){try{return Qe(R),!1}catch{return!0}}function Qe(R){return""+R}function Ye(R){if(ot(R))return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ie(R)),Qe(R)}var it=y.ReactCurrentOwner,yt={key:!0,ref:!0,__self:!0,__source:!0},pt,We;function At(R){if(me.call(R,"ref")){var X=Object.getOwnPropertyDescriptor(R,"ref").get;if(X&&X.isReactWarning)return!1}return R.ref!==void 0}function Xe(R){if(me.call(R,"key")){var X=Object.getOwnPropertyDescriptor(R,"key").get;if(X&&X.isReactWarning)return!1}return R.key!==void 0}function et(R,X){typeof R.ref=="string"&&it.current}function Vt(R,X){{var le=function(){pt||(pt=!0,w("%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)",X))};le.isReactWarning=!0,Object.defineProperty(R,"key",{get:le,configurable:!0})}}function nn(R,X){{var le=function(){We||(We=!0,w("%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)",X))};le.isReactWarning=!0,Object.defineProperty(R,"ref",{get:le,configurable:!0})}}var Nn=function(R,X,le,ge,Oe,ke,Ne){var Pe={$$typeof:t,type:R,key:X,ref:le,props:Ne,_owner:ke};return Pe._store={},Object.defineProperty(Pe._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Pe,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ge}),Object.defineProperty(Pe,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Oe}),Object.freeze&&(Object.freeze(Pe.props),Object.freeze(Pe)),Pe};function Un(R,X,le,ge,Oe){{var ke,Ne={},Pe=null,mt=null;le!==void 0&&(Ye(le),Pe=""+le),Xe(X)&&(Ye(X.key),Pe=""+X.key),At(X)&&(mt=X.ref,et(X,Oe));for(ke in X)me.call(X,ke)&&!yt.hasOwnProperty(ke)&&(Ne[ke]=X[ke]);if(R&&R.defaultProps){var Ue=R.defaultProps;for(ke in Ue)Ne[ke]===void 0&&(Ne[ke]=Ue[ke])}if(Pe||mt){var Ze=typeof R=="function"?R.displayName||R.name||"Unknown":R;Pe&&Vt(Ne,Ze),mt&&nn(Ne,Ze)}return Nn(R,Pe,mt,Oe,ge,it.current,Ne)}}var Gt=y.ReactCurrentOwner,de=y.ReactDebugCurrentFrame;function we(R){if(R){var X=R._owner,le=te(R.type,R._source,X?X.type:null);de.setExtraStackFrame(le)}else de.setExtraStackFrame(null)}var Ee;Ee=!1;function be(R){return typeof R=="object"&&R!==null&&R.$$typeof===t}function se(){{if(Gt.current){var R=A(Gt.current.type);if(R)return`
|
|
22
|
-
|
|
23
|
-
Check the render method of \``+R+"`."}return""}}function Ce(R){return""}var xe={};function Fe(R){{var X=se();if(!X){var le=typeof R=="string"?R:R.displayName||R.name;le&&(X=`
|
|
24
|
-
|
|
25
|
-
Check the top-level render call using <`+le+">.")}return X}}function tt(R,X){{if(!R._store||R._store.validated||R.key!=null)return;R._store.validated=!0;var le=Fe(X);if(xe[le])return;xe[le]=!0;var ge="";R&&R._owner&&R._owner!==Gt.current&&(ge=" It was passed a child from "+A(R._owner.type)+"."),we(R),w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',le,ge),we(null)}}function je(R,X){{if(typeof R!="object")return;if(Se(R))for(var le=0;le<R.length;le++){var ge=R[le];be(ge)&&tt(ge,X)}else if(be(R))R._store&&(R._store.validated=!0);else if(R){var Oe=v(R);if(typeof Oe=="function"&&Oe!==R.entries)for(var ke=Oe.call(R),Ne;!(Ne=ke.next()).done;)be(Ne.value)&&tt(Ne.value,X)}}}function Ve(R){{var X=R.type;if(X==null||typeof X=="string")return;var le;if(typeof X=="function")le=X.propTypes;else if(typeof X=="object"&&(X.$$typeof===l||X.$$typeof===d))le=X.propTypes;else return;if(le){var ge=A(X);Te(le,R.props,"prop",ge,R)}else if(X.PropTypes!==void 0&&!Ee){Ee=!0;var Oe=A(X);w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Oe||"Unknown")}typeof X.getDefaultProps=="function"&&!X.getDefaultProps.isReactClassApproved&&w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function st(R){{for(var X=Object.keys(R.props),le=0;le<X.length;le++){var ge=X[le];if(ge!=="children"&&ge!=="key"){we(R),w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ge),we(null);break}}R.ref!==null&&(we(R),w("Invalid attribute `ref` supplied to `React.Fragment`."),we(null))}}var nt={};function lt(R,X,le,ge,Oe,ke){{var Ne=$(R);if(!Ne){var Pe="";(R===void 0||typeof R=="object"&&R!==null&&Object.keys(R).length===0)&&(Pe+=" 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 mt=Ce();mt?Pe+=mt:Pe+=se();var Ue;R===null?Ue="null":Se(R)?Ue="array":R!==void 0&&R.$$typeof===t?(Ue="<"+(A(R.type)||"Unknown")+" />",Pe=" Did you accidentally export a JSX literal instead of a component?"):Ue=typeof R,w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ue,Pe)}var Ze=Un(R,X,le,Oe,ke);if(Ze==null)return Ze;if(Ne){var Mt=X.children;if(Mt!==void 0)if(ge)if(Se(Mt)){for(var Dr=0;Dr<Mt.length;Dr++)je(Mt[Dr],R);Object.freeze&&Object.freeze(Mt)}else w("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 je(Mt,R)}if(me.call(X,"key")){var Kn=A(R),wt=Object.keys(X).filter(function(VV){return VV!=="key"}),Jp=wt.length>0?"{key: someKey, "+wt.join(": ..., ")+": ...}":"{key: someKey}";if(!nt[Kn+Jp]){var HV=wt.length>0?"{"+wt.join(": ..., ")+": ...}":"{}";w(`A props object containing a "key" prop is being spread into JSX:
|
|
26
|
-
let props = %s;
|
|
27
|
-
<%s {...props} />
|
|
28
|
-
React keys must be passed directly to JSX without using spread:
|
|
29
|
-
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,Jp,Kn,HV,Kn),nt[Kn+Jp]=!0}}return R===r?st(Ze):Ve(Ze),Ze}}function Gi(R,X,le){return lt(R,X,le,!0)}function mn(R,X,le){return lt(R,X,le,!1)}var qR=mn,qV=Gi;Lr.Fragment=r,Lr.jsx=qR,Lr.jsxs=qV}()),Lr}var nm;function GR(){return nm||(nm=1,process.env.NODE_ENV==="production"?Wo.exports=HR():Wo.exports=VR()),Wo.exports}var u=GR();function WR(e,t){const n=f.createContext(t),r=a=>{const{children:i,...s}=a,l=f.useMemo(()=>s,Object.values(s));return u.jsx(n.Provider,{value:l,children:i})};r.displayName=e+"Provider";function o(a){const i=f.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[r,o]}function De(e,t=[]){let n=[];function r(a,i){const s=f.createContext(i),l=n.length;n=[...n,i];const c=d=>{var y;const{scope:m,children:b,...g}=d,h=((y=m==null?void 0:m[e])==null?void 0:y[l])||s,v=f.useMemo(()=>g,Object.values(g));return u.jsx(h.Provider,{value:v,children:b})};c.displayName=a+"Provider";function p(d,m){var h;const b=((h=m==null?void 0:m[e])==null?void 0:h[l])||s,g=f.useContext(b);if(g)return g;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${a}\``)}return[c,p]}const o=()=>{const a=n.map(i=>f.createContext(i));return function(s){const l=(s==null?void 0:s[e])||a;return f.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,UR(o,...t)]}function UR(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const i=r.reduce((s,{useScope:l,scopeName:c})=>{const d=l(a)[`__scope${c}`];return{...s,...d}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function rm(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Fr(...e){return t=>{let n=!1;const r=e.map(o=>{const a=rm(o,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let o=0;o<r.length;o++){const a=r[o];typeof a=="function"?a():rm(e[o],null)}}}}function fe(...e){return f.useCallback(Fr(...e),e)}var ct=f.forwardRef((e,t)=>{const{children:n,...r}=e,o=f.Children.toArray(n),a=o.find(KR);if(a){const i=a.props.children,s=o.map(l=>l===a?f.Children.count(i)>1?f.Children.only(null):f.isValidElement(i)?i.props.children:null:l);return u.jsx(Wi,{...r,ref:t,children:f.isValidElement(i)?f.cloneElement(i,void 0,s):null})}return u.jsx(Wi,{...r,ref:t,children:n})});ct.displayName="Slot";var Wi=f.forwardRef((e,t)=>{const{children:n,...r}=e;if(f.isValidElement(n)){const o=XR(n),a=YR(r,n.props);return n.type!==f.Fragment&&(a.ref=t?Fr(t,o):o),f.cloneElement(n,a)}return f.Children.count(n)>1?f.Children.only(null):null});Wi.displayName="SlotClone";var Ui=({children:e})=>u.jsx(u.Fragment,{children:e});function KR(e){return f.isValidElement(e)&&e.type===Ui}function YR(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...s)=>{a(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function XR(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function rn(e){const t=e+"CollectionProvider",[n,r]=De(t),[o,a]=n(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 u.jsx(o,{scope:g,itemMap:y,collectionRef:v,children:h})};i.displayName=t;const s=e+"CollectionSlot",l=E.forwardRef((b,g)=>{const{scope:h,children:v}=b,y=a(s,h),w=fe(g,y.collectionRef);return u.jsx(ct,{ref:w,children:v})});l.displayName=s;const c=e+"CollectionItemSlot",p="data-radix-collection-item",d=E.forwardRef((b,g)=>{const{scope:h,children:v,...y}=b,w=E.useRef(null),x=fe(g,w),S=a(c,h);return E.useEffect(()=>(S.itemMap.set(w,{ref:w,...y}),()=>void S.itemMap.delete(w))),u.jsx(ct,{[p]:"",ref:x,children:v})});d.displayName=c;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:l,ItemSlot:d},m,r]}function B(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Re(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function $e({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=ZR({defaultProp:t,onChange:n}),a=e!==void 0,i=a?e:r,s=Re(n),l=f.useCallback(c=>{if(a){const d=typeof c=="function"?c(e):c;d!==e&&s(d)}else o(c)},[a,e,o,s]);return[i,l]}function ZR({defaultProp:e,onChange:t}){const n=f.useState(e),[r]=n,o=f.useRef(r),a=Re(t);return f.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}var JR=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Z=JR.reduce((e,t)=>{const n=f.forwardRef((r,o)=>{const{asChild:a,...i}=r,s=a?ct:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(s,{...i,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Br(e,t){e&&kr.flushSync(()=>e.dispatchEvent(t))}var Be=globalThis!=null&&globalThis.document?f.useLayoutEffect:()=>{};function QR(e,t){return f.useReducer((n,r)=>t[n][r]??n,e)}var Le=e=>{const{present:t,children:n}=e,r=e1(t),o=typeof n=="function"?n({present:r.isPresent}):f.Children.only(n),a=fe(r.ref,t1(o));return typeof n=="function"||r.isPresent?f.cloneElement(o,{ref:a}):null};Le.displayName="Presence";function e1(e){const[t,n]=f.useState(),r=f.useRef({}),o=f.useRef(e),a=f.useRef("none"),i=e?"mounted":"unmounted",[s,l]=QR(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const c=Uo(r.current);a.current=s==="mounted"?c:"none"},[s]),Be(()=>{const c=r.current,p=o.current;if(p!==e){const m=a.current,b=Uo(c);e?l("MOUNT"):b==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(p&&m!==b?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Be(()=>{if(t){let c;const p=t.ownerDocument.defaultView??window,d=b=>{const h=Uo(r.current).includes(b.animationName);if(b.target===t&&h&&(l("ANIMATION_END"),!o.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",c=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},m=b=>{b.target===t&&(a.current=Uo(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{p.clearTimeout(c),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:f.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function Uo(e){return(e==null?void 0:e.animationName)||"none"}function t1(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var n1=f.useId||(()=>{}),r1=0;function Ge(e){const[t,n]=f.useState(n1());return Be(()=>{n(r=>r??String(r1++))},[e]),t?`radix-${t}`:""}var Ki="Collapsible",[o1,om]=De(Ki),[a1,Yi]=o1(Ki),am=f.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:a,onOpenChange:i,...s}=e,[l=!1,c]=$e({prop:r,defaultProp:o,onChange:i});return u.jsx(a1,{scope:n,disabled:a,contentId:Ge(),open:l,onOpenToggle:f.useCallback(()=>c(p=>!p),[c]),children:u.jsx(Z.div,{"data-state":Qi(l),"data-disabled":a?"":void 0,...s,ref:t})})});am.displayName=Ki;var im="CollapsibleTrigger",Xi=f.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=Yi(im,n);return u.jsx(Z.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":Qi(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:B(e.onClick,o.onOpenToggle)})});Xi.displayName=im;var Zi="CollapsibleContent",Ji=f.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Yi(Zi,e.__scopeCollapsible);return u.jsx(Le,{present:n||o.open,children:({present:a})=>u.jsx(i1,{...r,ref:t,present:a})})});Ji.displayName=Zi;var i1=f.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...a}=e,i=Yi(Zi,n),[s,l]=f.useState(r),c=f.useRef(null),p=fe(t,c),d=f.useRef(0),m=d.current,b=f.useRef(0),g=b.current,h=i.open||s,v=f.useRef(h),y=f.useRef(void 0);return f.useEffect(()=>{const w=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(w)},[]),Be(()=>{const w=c.current;if(w){y.current=y.current||{transitionDuration:w.style.transitionDuration,animationName:w.style.animationName},w.style.transitionDuration="0s",w.style.animationName="none";const x=w.getBoundingClientRect();d.current=x.height,b.current=x.width,v.current||(w.style.transitionDuration=y.current.transitionDuration,w.style.animationName=y.current.animationName),l(r)}},[i.open,r]),u.jsx(Z.div,{"data-state":Qi(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 Qi(e){return e?"open":"closed"}var sm=am,s1=Xi,l1=Ji,c1=f.createContext(void 0);function Ot(e){const t=f.useContext(c1);return e||t||"ltr"}var on="Accordion",u1=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[es,d1,f1]=rn(on),[Ko,GV]=De(on,[f1,om]),ts=om(),lm=E.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,a=r;return u.jsx(es.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?u.jsx(g1,{...a,ref:t}):u.jsx(h1,{...o,ref:t})})});lm.displayName=on;var[cm,p1]=Ko(on),[um,m1]=Ko(on,{collapsible:!1}),h1=E.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:a=!1,...i}=e,[s,l]=$e({prop:n,defaultProp:r,onChange:o});return u.jsx(cm,{scope:e.__scopeAccordion,value:s?[s]:[],onItemOpen:l,onItemClose:E.useCallback(()=>a&&l(""),[a,l]),children:u.jsx(um,{scope:e.__scopeAccordion,collapsible:a,children:u.jsx(dm,{...i,ref:t})})})}),g1=E.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i=[],s]=$e({prop:n,defaultProp:r,onChange:o}),l=E.useCallback(p=>s((d=[])=>[...d,p]),[s]),c=E.useCallback(p=>s((d=[])=>d.filter(m=>m!==p)),[s]);return u.jsx(cm,{scope:e.__scopeAccordion,value:i,onItemOpen:l,onItemClose:c,children:u.jsx(um,{scope:e.__scopeAccordion,collapsible:!0,children:u.jsx(dm,{...a,ref:t})})})}),[v1,Yo]=Ko(on),dm=E.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:a="vertical",...i}=e,s=E.useRef(null),l=fe(s,t),c=d1(n),d=Ot(o)==="ltr",m=B(e.onKeyDown,b=>{var M;if(!u1.includes(b.key))return;const g=b.target,h=c().filter(N=>{var $;return!(($=N.ref.current)!=null&&$.disabled)}),v=h.findIndex(N=>N.ref.current===g),y=h.length;if(v===-1)return;b.preventDefault();let w=v;const x=0,S=y-1,_=()=>{w=v+1,w>S&&(w=x)},P=()=>{w=v-1,w<x&&(w=S)};switch(b.key){case"Home":w=x;break;case"End":w=S;break;case"ArrowRight":a==="horizontal"&&(d?_():P());break;case"ArrowDown":a==="vertical"&&_();break;case"ArrowLeft":a==="horizontal"&&(d?P():_());break;case"ArrowUp":a==="vertical"&&P();break}const C=w%y;(M=h[C].ref.current)==null||M.focus()});return u.jsx(v1,{scope:n,disabled:r,direction:o,orientation:a,children:u.jsx(es.Slot,{scope:n,children:u.jsx(Z.div,{...i,"data-orientation":a,ref:l,onKeyDown:r?void 0:m})})})}),Xo="AccordionItem",[b1,ns]=Ko(Xo),fm=E.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...o}=e,a=Yo(Xo,n),i=p1(Xo,n),s=ts(n),l=Ge(),c=r&&i.value.includes(r)||!1,p=a.disabled||e.disabled;return u.jsx(b1,{scope:n,open:c,disabled:p,triggerId:l,children:u.jsx(sm,{"data-orientation":a.orientation,"data-state":bm(c),...s,...o,ref:t,disabled:p,open:c,onOpenChange:d=>{d?i.onItemOpen(r):i.onItemClose(r)}})})});fm.displayName=Xo;var pm="AccordionHeader",mm=E.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Yo(on,n),a=ns(pm,n);return u.jsx(Z.h3,{"data-orientation":o.orientation,"data-state":bm(a.open),"data-disabled":a.disabled?"":void 0,...r,ref:t})});mm.displayName=pm;var rs="AccordionTrigger",hm=E.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Yo(on,n),a=ns(rs,n),i=m1(rs,n),s=ts(n);return u.jsx(es.ItemSlot,{scope:n,children:u.jsx(s1,{"aria-disabled":a.open&&!i.collapsible||void 0,"data-orientation":o.orientation,id:a.triggerId,...s,...r,ref:t})})});hm.displayName=rs;var gm="AccordionContent",vm=E.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Yo(on,n),a=ns(gm,n),i=ts(n);return u.jsx(l1,{role:"region","aria-labelledby":a.triggerId,"data-orientation":o.orientation,...i,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});vm.displayName=gm;function bm(e){return e?"open":"closed"}var y1=lm,w1=fm,x1=mm,ym=hm,wm=vm;/**
|
|
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 S1=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),xm=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).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 C1={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 _1=E.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:a,iconNode:i,...s},l)=>E.createElement("svg",{ref:l,...C1,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:xm("lucide",o),...s},[...i.map(([c,p])=>E.createElement(c,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 at=(e,t)=>{const n=E.forwardRef(({className:r,...o},a)=>E.createElement(_1,{ref:a,iconNode:t,className:xm(`lucide-${S1(e)}`,r),...o}));return n.displayName=`${e}`,n};/**
|
|
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 E1=at("ArrowDown",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);/**
|
|
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 P1=at("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
|
|
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 T1=at("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
|
|
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 N1=at("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);/**
|
|
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 Yn=at("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
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 zr=at("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
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 R1=at("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
|
|
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 hn=at("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
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 A1=at("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
|
|
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 Zo=at("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
|
|
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 os=at("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/**
|
|
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 M1=at("GripVertical",[["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"}]]);/**
|
|
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 O1=at("House",[["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"}]]);/**
|
|
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 I1=at("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/**
|
|
121
|
-
* @license lucide-react v0.482.0 - ISC
|
|
122
|
-
*
|
|
123
|
-
* This source code is licensed under the ISC license.
|
|
124
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
125
|
-
*/const j1=at("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);/**
|
|
126
|
-
* @license lucide-react v0.482.0 - ISC
|
|
127
|
-
*
|
|
128
|
-
* This source code is licensed under the ISC license.
|
|
129
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
130
|
-
*/const D1=at("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
131
|
-
* @license lucide-react v0.482.0 - ISC
|
|
132
|
-
*
|
|
133
|
-
* This source code is licensed under the ISC license.
|
|
134
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
135
|
-
*/const as=at("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function Sm(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Sm(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function an(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Sm(e))&&(r&&(r+=" "),r+=t);return r}const is="-",k1=e=>{const t=L1(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const s=i.split(is);return s[0]===""&&s.length!==1&&s.shift(),Cm(s,t)||$1(i)},getConflictingClassGroupIds:(i,s)=>{const l=n[i]||[];return s&&r[i]?[...l,...r[i]]:l}}},Cm=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Cm(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(is);return(i=t.validators.find(({validator:s})=>s(a)))==null?void 0:i.classGroupId},_m=/^\[(.+)\]$/,$1=e=>{if(_m.test(e)){const t=_m.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},L1=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)ss(n[o],r,o,t);return r},ss=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:Em(t,o);a.classGroupId=n;return}if(typeof o=="function"){if(F1(o)){ss(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([a,i])=>{ss(i,Em(t,a),n,r)})})},Em=(e,t)=>{let n=e;return t.split(is).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},F1=e=>e.isThemeGetter,B1=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(a,i)=>{n.set(a,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(a){let i=n.get(a);if(i!==void 0)return i;if((i=r.get(a))!==void 0)return o(a,i),i},set(a,i){n.has(a)?n.set(a,i):o(a,i)}}},ls="!",cs=":",z1=cs.length,q1=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const a=[];let i=0,s=0,l=0,c;for(let g=0;g<o.length;g++){let h=o[g];if(i===0&&s===0){if(h===cs){a.push(o.slice(l,g)),l=g+z1;continue}if(h==="/"){c=g;continue}}h==="["?i++:h==="]"?i--:h==="("?s++:h===")"&&s--}const p=a.length===0?o:o.substring(l),d=H1(p),m=d!==p,b=c&&c>l?c-l:void 0;return{modifiers:a,hasImportantModifier:m,baseClassName:d,maybePostfixModifierPosition:b}};if(t){const o=t+cs,a=r;r=i=>i.startsWith(o)?a(i.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:i,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=a=>n({className:a,parseClassName:o})}return r},H1=e=>e.endsWith(ls)?e.substring(0,e.length-1):e.startsWith(ls)?e.substring(1):e,V1=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let a=[];return r.forEach(i=>{i[0]==="["||t[i]?(o.push(...a.sort(),i),a=[]):a.push(i)}),o.push(...a.sort()),o}},G1=e=>({cache:B1(e.cacheSize),parseClassName:q1(e),sortModifiers:V1(e),...k1(e)}),W1=/\s+/,U1=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:a}=t,i=[],s=e.trim().split(W1);let l="";for(let c=s.length-1;c>=0;c-=1){const p=s[c],{isExternal:d,modifiers:m,hasImportantModifier:b,baseClassName:g,maybePostfixModifierPosition:h}=n(p);if(d){l=p+(l.length>0?" "+l:l);continue}let v=!!h,y=r(v?g.substring(0,h):g);if(!y){if(!v){l=p+(l.length>0?" "+l:l);continue}if(y=r(g),!y){l=p+(l.length>0?" "+l:l);continue}v=!1}const w=a(m).join(":"),x=b?w+ls:w,S=x+y;if(i.includes(S))continue;i.push(S);const _=o(y,v);for(let P=0;P<_.length;++P){const C=_[P];i.push(x+C)}l=p+(l.length>0?" "+l:l)}return l};function K1(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Pm(t))&&(r&&(r+=" "),r+=n);return r}const Pm=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Pm(e[r]))&&(n&&(n+=" "),n+=t);return n};function Y1(e,...t){let n,r,o,a=i;function i(l){const c=t.reduce((p,d)=>d(p),e());return n=G1(c),r=n.cache.get,o=n.cache.set,a=s,s(l)}function s(l){const c=r(l);if(c)return c;const p=U1(l,n);return o(l,p),p}return function(){return a(K1.apply(null,arguments))}}const rt=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Tm=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Nm=/^\((?:(\w[\w-]*):)?(.+)\)$/i,X1=/^\d+\/\d+$/,Z1=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,J1=/\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$/,Q1=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,eA=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,tA=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Xn=e=>X1.test(e),_e=e=>!!e&&!Number.isNaN(Number(e)),Rn=e=>!!e&&Number.isInteger(Number(e)),Rm=e=>e.endsWith("%")&&_e(e.slice(0,-1)),gn=e=>Z1.test(e),nA=()=>!0,rA=e=>J1.test(e)&&!Q1.test(e),us=()=>!1,oA=e=>eA.test(e),aA=e=>tA.test(e),iA=e=>!ce(e)&&!ue(e),sA=e=>Zn(e,Om,us),ce=e=>Tm.test(e),An=e=>Zn(e,Im,rA),ds=e=>Zn(e,bA,_e),lA=e=>Zn(e,Am,us),cA=e=>Zn(e,Mm,aA),uA=e=>Zn(e,us,oA),ue=e=>Nm.test(e),Jo=e=>Jn(e,Im),dA=e=>Jn(e,yA),fA=e=>Jn(e,Am),pA=e=>Jn(e,Om),mA=e=>Jn(e,Mm),hA=e=>Jn(e,wA,!0),Zn=(e,t,n)=>{const r=Tm.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Jn=(e,t,n=!1)=>{const r=Nm.exec(e);return r?r[1]?t(r[1]):n:!1},Am=e=>e==="position",gA=new Set(["image","url"]),Mm=e=>gA.has(e),vA=new Set(["length","size","percentage"]),Om=e=>vA.has(e),Im=e=>e==="length",bA=e=>e==="number",yA=e=>e==="family-name",wA=e=>e==="shadow",xA=Y1(()=>{const e=rt("color"),t=rt("font"),n=rt("text"),r=rt("font-weight"),o=rt("tracking"),a=rt("leading"),i=rt("breakpoint"),s=rt("container"),l=rt("spacing"),c=rt("radius"),p=rt("shadow"),d=rt("inset-shadow"),m=rt("drop-shadow"),b=rt("blur"),g=rt("perspective"),h=rt("aspect"),v=rt("ease"),y=rt("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],x=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],S=()=>["auto","hidden","clip","visible","scroll"],_=()=>["auto","contain","none"],P=()=>[ue,ce,l],C=()=>[Xn,"full","auto",...P()],M=()=>[Rn,"none","subgrid",ue,ce],N=()=>["auto",{span:["full",Rn,ue,ce]},ue,ce],$=()=>[Rn,"auto",ue,ce],D=()=>["auto","min","max","fr",ue,ce],F=()=>["start","end","center","between","around","evenly","stretch","baseline"],A=()=>["start","end","center","stretch"],k=()=>["auto",...P()],L=()=>[Xn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...P()],I=()=>[e,ue,ce],W=()=>[Rm,An],V=()=>["","none","full",c,ue,ce],q=()=>["",_e,Jo,An],ae=()=>["solid","dashed","dotted","double"],J=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ne=()=>["","none",b,ue,ce],z=()=>["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ue,ce],U=()=>["none",_e,ue,ce],ee=()=>["none",_e,ue,ce],Y=()=>[_e,ue,ce],H=()=>[Xn,"full",...P()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[gn],breakpoint:[gn],color:[nA],container:[gn],"drop-shadow":[gn],ease:["in","out","in-out"],font:[iA],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[gn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[gn],shadow:[gn],spacing:["px",_e],text:[gn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Xn,ce,ue,h]}],container:["container"],columns:[{columns:[_e,ce,ue,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:[...x(),ce,ue]}],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:[Rn,"auto",ue,ce]}],basis:[{basis:[Xn,"full","auto",s,...P()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[_e,Xn,"auto","initial","none",ce]}],grow:[{grow:["",_e,ue,ce]}],shrink:[{shrink:["",_e,ue,ce]}],order:[{order:[Rn,"first","last","none",ue,ce]}],"grid-cols":[{"grid-cols":M()}],"col-start-end":[{col:N()}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":M()}],"row-start-end":[{row:N()}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":D()}],"auto-rows":[{"auto-rows":D()}],gap:[{gap:P()}],"gap-x":[{"gap-x":P()}],"gap-y":[{"gap-y":P()}],"justify-content":[{justify:[...F(),"normal"]}],"justify-items":[{"justify-items":[...A(),"normal"]}],"justify-self":[{"justify-self":["auto",...A()]}],"align-content":[{content:["normal",...F()]}],"align-items":[{items:[...A(),"baseline"]}],"align-self":[{self:["auto",...A(),"baseline"]}],"place-content":[{"place-content":F()}],"place-items":[{"place-items":[...A(),"baseline"]}],"place-self":[{"place-self":["auto",...A()]}],p:[{p:P()}],px:[{px:P()}],py:[{py:P()}],ps:[{ps:P()}],pe:[{pe:P()}],pt:[{pt:P()}],pr:[{pr:P()}],pb:[{pb:P()}],pl:[{pl:P()}],m:[{m:k()}],mx:[{mx:k()}],my:[{my:k()}],ms:[{ms:k()}],me:[{me:k()}],mt:[{mt:k()}],mr:[{mr:k()}],mb:[{mb:k()}],ml:[{ml:k()}],"space-x":[{"space-x":P()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":P()}],"space-y-reverse":["space-y-reverse"],size:[{size:L()}],w:[{w:[s,"screen",...L()]}],"min-w":[{"min-w":[s,"screen","none",...L()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[i]},...L()]}],h:[{h:["screen",...L()]}],"min-h":[{"min-h":["screen","none",...L()]}],"max-h":[{"max-h":["screen",...L()]}],"font-size":[{text:["base",n,Jo,An]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,ue,ds]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Rm,ce]}],"font-family":[{font:[dA,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,ue,ce]}],"line-clamp":[{"line-clamp":[_e,"none",ue,ds]}],leading:[{leading:[a,...P()]}],"list-image":[{"list-image":["none",ue,ce]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ue,ce]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:I()}],"text-color":[{text:I()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ae(),"wavy"]}],"text-decoration-thickness":[{decoration:[_e,"from-font","auto",ue,An]}],"text-decoration-color":[{decoration:I()}],"underline-offset":[{"underline-offset":[_e,"auto",ue,ce]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ue,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",ue,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:[...x(),fA,lA]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:["auto","cover","contain",pA,sA]}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Rn,ue,ce],radial:["",ue,ce],conic:[Rn,ue,ce]},mA,cA]}],"bg-color":[{bg:I()}],"gradient-from-pos":[{from:W()}],"gradient-via-pos":[{via:W()}],"gradient-to-pos":[{to:W()}],"gradient-from":[{from:I()}],"gradient-via":[{via:I()}],"gradient-to":[{to:I()}],rounded:[{rounded:V()}],"rounded-s":[{"rounded-s":V()}],"rounded-e":[{"rounded-e":V()}],"rounded-t":[{"rounded-t":V()}],"rounded-r":[{"rounded-r":V()}],"rounded-b":[{"rounded-b":V()}],"rounded-l":[{"rounded-l":V()}],"rounded-ss":[{"rounded-ss":V()}],"rounded-se":[{"rounded-se":V()}],"rounded-ee":[{"rounded-ee":V()}],"rounded-es":[{"rounded-es":V()}],"rounded-tl":[{"rounded-tl":V()}],"rounded-tr":[{"rounded-tr":V()}],"rounded-br":[{"rounded-br":V()}],"rounded-bl":[{"rounded-bl":V()}],"border-w":[{border:q()}],"border-w-x":[{"border-x":q()}],"border-w-y":[{"border-y":q()}],"border-w-s":[{"border-s":q()}],"border-w-e":[{"border-e":q()}],"border-w-t":[{"border-t":q()}],"border-w-r":[{"border-r":q()}],"border-w-b":[{"border-b":q()}],"border-w-l":[{"border-l":q()}],"divide-x":[{"divide-x":q()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":q()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ae(),"hidden","none"]}],"divide-style":[{divide:[...ae(),"hidden","none"]}],"border-color":[{border:I()}],"border-color-x":[{"border-x":I()}],"border-color-y":[{"border-y":I()}],"border-color-s":[{"border-s":I()}],"border-color-e":[{"border-e":I()}],"border-color-t":[{"border-t":I()}],"border-color-r":[{"border-r":I()}],"border-color-b":[{"border-b":I()}],"border-color-l":[{"border-l":I()}],"divide-color":[{divide:I()}],"outline-style":[{outline:[...ae(),"none","hidden"]}],"outline-offset":[{"outline-offset":[_e,ue,ce]}],"outline-w":[{outline:["",_e,Jo,An]}],"outline-color":[{outline:[e]}],shadow:[{shadow:["","none",p,hA,uA]}],"shadow-color":[{shadow:I()}],"inset-shadow":[{"inset-shadow":["none",ue,ce,d]}],"inset-shadow-color":[{"inset-shadow":I()}],"ring-w":[{ring:q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:I()}],"ring-offset-w":[{"ring-offset":[_e,An]}],"ring-offset-color":[{"ring-offset":I()}],"inset-ring-w":[{"inset-ring":q()}],"inset-ring-color":[{"inset-ring":I()}],opacity:[{opacity:[_e,ue,ce]}],"mix-blend":[{"mix-blend":[...J(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":J()}],filter:[{filter:["","none",ue,ce]}],blur:[{blur:ne()}],brightness:[{brightness:[_e,ue,ce]}],contrast:[{contrast:[_e,ue,ce]}],"drop-shadow":[{"drop-shadow":["","none",m,ue,ce]}],grayscale:[{grayscale:["",_e,ue,ce]}],"hue-rotate":[{"hue-rotate":[_e,ue,ce]}],invert:[{invert:["",_e,ue,ce]}],saturate:[{saturate:[_e,ue,ce]}],sepia:[{sepia:["",_e,ue,ce]}],"backdrop-filter":[{"backdrop-filter":["","none",ue,ce]}],"backdrop-blur":[{"backdrop-blur":ne()}],"backdrop-brightness":[{"backdrop-brightness":[_e,ue,ce]}],"backdrop-contrast":[{"backdrop-contrast":[_e,ue,ce]}],"backdrop-grayscale":[{"backdrop-grayscale":["",_e,ue,ce]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[_e,ue,ce]}],"backdrop-invert":[{"backdrop-invert":["",_e,ue,ce]}],"backdrop-opacity":[{"backdrop-opacity":[_e,ue,ce]}],"backdrop-saturate":[{"backdrop-saturate":[_e,ue,ce]}],"backdrop-sepia":[{"backdrop-sepia":["",_e,ue,ce]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":P()}],"border-spacing-x":[{"border-spacing-x":P()}],"border-spacing-y":[{"border-spacing-y":P()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ue,ce]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[_e,"initial",ue,ce]}],ease:[{ease:["linear","initial",v,ue,ce]}],delay:[{delay:[_e,ue,ce]}],animate:[{animate:["none",y,ue,ce]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,ue,ce]}],"perspective-origin":[{"perspective-origin":z()}],rotate:[{rotate:U()}],"rotate-x":[{"rotate-x":U()}],"rotate-y":[{"rotate-y":U()}],"rotate-z":[{"rotate-z":U()}],scale:[{scale:ee()}],"scale-x":[{"scale-x":ee()}],"scale-y":[{"scale-y":ee()}],"scale-z":[{"scale-z":ee()}],"scale-3d":["scale-3d"],skew:[{skew:Y()}],"skew-x":[{"skew-x":Y()}],"skew-y":[{"skew-y":Y()}],transform:[{transform:[ue,ce,"","none","gpu","cpu"]}],"transform-origin":[{origin:z()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:H()}],"translate-x":[{"translate-x":H()}],"translate-y":[{"translate-y":H()}],"translate-z":[{"translate-z":H()}],"translate-none":["translate-none"],accent:[{accent:I()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:I()}],"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",ue,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":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"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",ue,ce]}],fill:[{fill:["none",...I()]}],"stroke-w":[{stroke:[_e,Jo,An,ds]}],stroke:[{stroke:["none",...I()]}],"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","*","**"]}});function O(...e){return xA(an(e))}const SA=y1,jm=f.forwardRef(({className:e,...t},n)=>u.jsx(w1,{ref:n,className:O("border-b",e),...t}));jm.displayName="AccordionItem";const Dm=f.forwardRef(({className:e,children:t,...n},r)=>u.jsx(x1,{className:"flex",children:u.jsxs(ym,{ref:r,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),...n,children:[t,u.jsx(zr,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"})]})}));Dm.displayName=ym.displayName;const km=f.forwardRef(({className:e,children:t,...n},r)=>u.jsx(wm,{ref:r,className:"overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...n,children:u.jsx("div",{className:O("pb-4 pt-0",e),children:t})}));km.displayName=wm.displayName;function CA(e,t=globalThis==null?void 0:globalThis.document){const n=Re(e);f.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var _A="DismissableLayer",fs="dismissableLayer.update",EA="dismissableLayer.pointerDownOutside",PA="dismissableLayer.focusOutside",$m,Lm=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),sn=f.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:s,...l}=e,c=f.useContext(Lm),[p,d]=f.useState(null),m=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,b]=f.useState({}),g=fe(t,C=>d(C)),h=Array.from(c.layers),[v]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=h.indexOf(v),w=p?h.indexOf(p):-1,x=c.layersWithOutsidePointerEventsDisabled.size>0,S=w>=y,_=NA(C=>{const M=C.target,N=[...c.branches].some($=>$.contains(M));!S||N||(o==null||o(C),i==null||i(C),C.defaultPrevented||s==null||s())},m),P=RA(C=>{const M=C.target;[...c.branches].some($=>$.contains(M))||(a==null||a(C),i==null||i(C),C.defaultPrevented||s==null||s())},m);return CA(C=>{w===c.layers.size-1&&(r==null||r(C),!C.defaultPrevented&&s&&(C.preventDefault(),s()))},m),f.useEffect(()=>{if(p)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&($m=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(p)),c.layers.add(p),Bm(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=$m)}},[p,m,n,c]),f.useEffect(()=>()=>{p&&(c.layers.delete(p),c.layersWithOutsidePointerEventsDisabled.delete(p),Bm())},[p,c]),f.useEffect(()=>{const C=()=>b({});return document.addEventListener(fs,C),()=>document.removeEventListener(fs,C)},[]),u.jsx(Z.div,{...l,ref:g,style:{pointerEvents:x?S?"auto":"none":void 0,...e.style},onFocusCapture:B(e.onFocusCapture,P.onFocusCapture),onBlurCapture:B(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:B(e.onPointerDownCapture,_.onPointerDownCapture)})});sn.displayName=_A;var TA="DismissableLayerBranch",Fm=f.forwardRef((e,t)=>{const n=f.useContext(Lm),r=f.useRef(null),o=fe(t,r);return f.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),u.jsx(Z.div,{...e,ref:o})});Fm.displayName=TA;function NA(e,t=globalThis==null?void 0:globalThis.document){const n=Re(e),r=f.useRef(!1),o=f.useRef(()=>{});return f.useEffect(()=>{const a=s=>{if(s.target&&!r.current){let l=function(){zm(EA,n,c,{discrete:!0})};const c={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function RA(e,t=globalThis==null?void 0:globalThis.document){const n=Re(e),r=f.useRef(!1);return f.useEffect(()=>{const o=a=>{a.target&&!r.current&&zm(PA,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Bm(){const e=new CustomEvent(fs);document.dispatchEvent(e)}function zm(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Br(o,a):o.dispatchEvent(a)}var AA=sn,MA=Fm,ps="focusScope.autoFocusOnMount",ms="focusScope.autoFocusOnUnmount",qm={bubbles:!1,cancelable:!0},OA="FocusScope",qr=f.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[s,l]=f.useState(null),c=Re(o),p=Re(a),d=f.useRef(null),m=fe(t,h=>l(h)),b=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(r){let h=function(x){if(b.paused||!s)return;const S=x.target;s.contains(S)?d.current=S:vn(d.current,{select:!0})},v=function(x){if(b.paused||!s)return;const S=x.relatedTarget;S!==null&&(s.contains(S)||vn(d.current,{select:!0}))},y=function(x){if(document.activeElement===document.body)for(const _ of x)_.removedNodes.length>0&&vn(s)};document.addEventListener("focusin",h),document.addEventListener("focusout",v);const w=new MutationObserver(y);return s&&w.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",v),w.disconnect()}}},[r,s,b.paused]),f.useEffect(()=>{if(s){Gm.add(b);const h=document.activeElement;if(!s.contains(h)){const y=new CustomEvent(ps,qm);s.addEventListener(ps,c),s.dispatchEvent(y),y.defaultPrevented||(IA(LA(Hm(s)),{select:!0}),document.activeElement===h&&vn(s))}return()=>{s.removeEventListener(ps,c),setTimeout(()=>{const y=new CustomEvent(ms,qm);s.addEventListener(ms,p),s.dispatchEvent(y),y.defaultPrevented||vn(h??document.body,{select:!0}),s.removeEventListener(ms,p),Gm.remove(b)},0)}}},[s,c,p,b]);const g=f.useCallback(h=>{if(!n&&!r||b.paused)return;const v=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,y=document.activeElement;if(v&&y){const w=h.currentTarget,[x,S]=jA(w);x&&S?!h.shiftKey&&y===S?(h.preventDefault(),n&&vn(x,{select:!0})):h.shiftKey&&y===x&&(h.preventDefault(),n&&vn(S,{select:!0})):y===w&&h.preventDefault()}},[n,r,b.paused]);return u.jsx(Z.div,{tabIndex:-1,...i,ref:m,onKeyDown:g})});qr.displayName=OA;function IA(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(vn(r,{select:t}),document.activeElement!==n)return}function jA(e){const t=Hm(e),n=Vm(t,e),r=Vm(t.reverse(),e);return[n,r]}function Hm(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Vm(e,t){for(const n of e)if(!DA(n,{upTo:t}))return n}function DA(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 kA(e){return e instanceof HTMLInputElement&&"select"in e}function vn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&kA(e)&&t&&e.select()}}var Gm=$A();function $A(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Wm(e,t),e.unshift(t)},remove(t){var n;e=Wm(e,t),(n=e[0])==null||n.resume()}}}function Wm(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function LA(e){return e.filter(t=>t.tagName!=="A")}var FA="Portal",Mn=f.forwardRef((e,t)=>{var s;const{container:n,...r}=e,[o,a]=f.useState(!1);Be(()=>a(!0),[]);const i=n||o&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return i?Vo.createPortal(u.jsx(Z.div,{...r,ref:t}),i):null});Mn.displayName=FA;var hs=0;function Qo(){f.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Um()),document.body.insertAdjacentElement("beforeend",e[1]??Um()),hs++,()=>{hs===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),hs--}},[])}function Um(){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 n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Ut.apply(this,arguments)};function Km(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function BA(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var ea="right-scroll-bar-position",ta="width-before-scroll-bar",zA="with-scroll-bars-hidden",qA="--removed-body-scroll-bar-size";function gs(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function HA(e,t){var n=E.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var VA=typeof window<"u"?f.useLayoutEffect:f.useEffect,Ym=new WeakMap;function GA(e,t){var n=HA(null,function(r){return e.forEach(function(o){return gs(o,r)})});return VA(function(){var r=Ym.get(n);if(r){var o=new Set(r),a=new Set(e),i=n.current;o.forEach(function(s){a.has(s)||gs(s,null)}),a.forEach(function(s){o.has(s)||gs(s,i)})}Ym.set(n,e)},[e]),n}function WA(e){return e}function UA(e,t){t===void 0&&(t=WA);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var i=t(a,r);return n.push(i),function(){n=n.filter(function(s){return s!==i})}},assignSyncMedium:function(a){for(r=!0;n.length;){var i=n;n=[],i.forEach(a)}n={push:function(s){return a(s)},filter:function(){return n}}},assignMedium:function(a){r=!0;var i=[];if(n.length){var s=n;n=[],s.forEach(a),i=n}var l=function(){var p=i;i=[],p.forEach(a)},c=function(){return Promise.resolve().then(l)};c(),n={push:function(p){i.push(p),c()},filter:function(p){return i=i.filter(p),n}}}};return o}function KA(e){e===void 0&&(e={});var t=UA(null);return t.options=Ut({async:!0,ssr:!1},e),t}var Xm=function(e){var t=e.sideCar,n=Km(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return f.createElement(r,Ut({},n))};Xm.isSideCarExport=!0;function YA(e,t){return e.useMedium(t),Xm}var Zm=KA(),vs=function(){},na=f.forwardRef(function(e,t){var n=f.useRef(null),r=f.useState({onScrollCapture:vs,onWheelCapture:vs,onTouchMoveCapture:vs}),o=r[0],a=r[1],i=e.forwardProps,s=e.children,l=e.className,c=e.removeScrollBar,p=e.enabled,d=e.shards,m=e.sideCar,b=e.noIsolation,g=e.inert,h=e.allowPinchZoom,v=e.as,y=v===void 0?"div":v,w=e.gapMode,x=Km(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=m,_=GA([n,t]),P=Ut(Ut({},x),o);return f.createElement(f.Fragment,null,p&&f.createElement(S,{sideCar:Zm,removeScrollBar:c,shards:d,noIsolation:b,inert:g,setCallbacks:a,allowPinchZoom:!!h,lockRef:n,gapMode:w}),i?f.cloneElement(f.Children.only(s),Ut(Ut({},P),{ref:_})):f.createElement(y,Ut({},P,{className:l,ref:_}),s))});na.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},na.classNames={fullWidth:ta,zeroRight:ea};var XA=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function ZA(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=XA();return t&&e.setAttribute("nonce",t),e}function JA(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function QA(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var eM=function(){var e=0,t=null;return{add:function(n){e==0&&(t=ZA())&&(JA(t,n),QA(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},tM=function(){var e=eM();return function(t,n){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Jm=function(){var e=tM(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},nM={left:0,top:0,right:0,gap:0},bs=function(e){return parseInt(e||"",10)||0},rM=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[bs(n),bs(r),bs(o)]},oM=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return nM;var t=rM(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},aM=Jm(),Qn="data-scroll-locked",iM=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,s=e.gap;return n===void 0&&(n="margin"),`
|
|
136
|
-
.`.concat(zA,` {
|
|
137
|
-
overflow: hidden `).concat(r,`;
|
|
138
|
-
padding-right: `).concat(s,"px ").concat(r,`;
|
|
139
|
-
}
|
|
140
|
-
body[`).concat(Qn,`] {
|
|
141
|
-
overflow: hidden `).concat(r,`;
|
|
142
|
-
overscroll-behavior: contain;
|
|
143
|
-
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
144
|
-
padding-left: `.concat(o,`px;
|
|
145
|
-
padding-top: `).concat(a,`px;
|
|
146
|
-
padding-right: `).concat(i,`px;
|
|
147
|
-
margin-left:0;
|
|
148
|
-
margin-top:0;
|
|
149
|
-
margin-right: `).concat(s,"px ").concat(r,`;
|
|
150
|
-
`),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
.`).concat(ea,` {
|
|
154
|
-
right: `).concat(s,"px ").concat(r,`;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
.`).concat(ta,` {
|
|
158
|
-
margin-right: `).concat(s,"px ").concat(r,`;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
.`).concat(ea," .").concat(ea,` {
|
|
162
|
-
right: 0 `).concat(r,`;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
.`).concat(ta," .").concat(ta,` {
|
|
166
|
-
margin-right: 0 `).concat(r,`;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
body[`).concat(Qn,`] {
|
|
170
|
-
`).concat(qA,": ").concat(s,`px;
|
|
171
|
-
}
|
|
172
|
-
`)},Qm=function(){var e=parseInt(document.body.getAttribute(Qn)||"0",10);return isFinite(e)?e:0},sM=function(){f.useEffect(function(){return document.body.setAttribute(Qn,(Qm()+1).toString()),function(){var e=Qm()-1;e<=0?document.body.removeAttribute(Qn):document.body.setAttribute(Qn,e.toString())}},[])},lM=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;sM();var a=f.useMemo(function(){return oM(o)},[o]);return f.createElement(aM,{styles:iM(a,!t,o,n?"":"!important")})},ys=!1;if(typeof window<"u")try{var ra=Object.defineProperty({},"passive",{get:function(){return ys=!0,!0}});window.addEventListener("test",ra,ra),window.removeEventListener("test",ra,ra)}catch{ys=!1}var er=ys?{passive:!1}:!1,cM=function(e){return e.tagName==="TEXTAREA"},eh=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!cM(e)&&n[t]==="visible")},uM=function(e){return eh(e,"overflowY")},dM=function(e){return eh(e,"overflowX")},th=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=nh(e,r);if(o){var a=rh(e,r),i=a[1],s=a[2];if(i>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},fM=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},pM=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},nh=function(e,t){return e==="v"?uM(t):dM(t)},rh=function(e,t){return e==="v"?fM(t):pM(t)},mM=function(e,t){return e==="h"&&t==="rtl"?-1:1},hM=function(e,t,n,r,o){var a=mM(e,window.getComputedStyle(t).direction),i=a*r,s=n.target,l=t.contains(s),c=!1,p=i>0,d=0,m=0;do{var b=rh(e,s),g=b[0],h=b[1],v=b[2],y=h-v-a*g;(g||y)&&nh(e,s)&&(d+=y,m+=g),s instanceof ShadowRoot?s=s.host:s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(p&&Math.abs(d)<1||!p&&Math.abs(m)<1)&&(c=!0),c},oa=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},oh=function(e){return[e.deltaX,e.deltaY]},ah=function(e){return e&&"current"in e?e.current:e},gM=function(e,t){return e[0]===t[0]&&e[1]===t[1]},vM=function(e){return`
|
|
173
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
174
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
175
|
-
`)},bM=0,tr=[];function yM(e){var t=f.useRef([]),n=f.useRef([0,0]),r=f.useRef(),o=f.useState(bM++)[0],a=f.useState(Jm)[0],i=f.useRef(e);f.useEffect(function(){i.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var h=BA([e.lockRef.current],(e.shards||[]).map(ah),!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=f.useCallback(function(h,v){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!i.current.allowPinchZoom;var y=oa(h),w=n.current,x="deltaX"in h?h.deltaX:w[0]-y[0],S="deltaY"in h?h.deltaY:w[1]-y[1],_,P=h.target,C=Math.abs(x)>Math.abs(S)?"h":"v";if("touches"in h&&C==="h"&&P.type==="range")return!1;var M=th(C,P);if(!M)return!0;if(M?_=C:(_=C==="v"?"h":"v",M=th(C,P)),!M)return!1;if(!r.current&&"changedTouches"in h&&(x||S)&&(r.current=_),!_)return!0;var N=r.current||_;return hM(N,v,h,N==="h"?x:S)},[]),l=f.useCallback(function(h){var v=h;if(!(!tr.length||tr[tr.length-1]!==a)){var y="deltaY"in v?oh(v):oa(v),w=t.current.filter(function(_){return _.name===v.type&&(_.target===v.target||v.target===_.shadowParent)&&gM(_.delta,y)})[0];if(w&&w.should){v.cancelable&&v.preventDefault();return}if(!w){var x=(i.current.shards||[]).map(ah).filter(Boolean).filter(function(_){return _.contains(v.target)}),S=x.length>0?s(v,x[0]):!i.current.noIsolation;S&&v.cancelable&&v.preventDefault()}}},[]),c=f.useCallback(function(h,v,y,w){var x={name:h,delta:v,target:y,should:w,shadowParent:wM(y)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(S){return S!==x})},1)},[]),p=f.useCallback(function(h){n.current=oa(h),r.current=void 0},[]),d=f.useCallback(function(h){c(h.type,oh(h),h.target,s(h,e.lockRef.current))},[]),m=f.useCallback(function(h){c(h.type,oa(h),h.target,s(h,e.lockRef.current))},[]);f.useEffect(function(){return tr.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:m}),document.addEventListener("wheel",l,er),document.addEventListener("touchmove",l,er),document.addEventListener("touchstart",p,er),function(){tr=tr.filter(function(h){return h!==a}),document.removeEventListener("wheel",l,er),document.removeEventListener("touchmove",l,er),document.removeEventListener("touchstart",p,er)}},[]);var b=e.removeScrollBar,g=e.inert;return f.createElement(f.Fragment,null,g?f.createElement(a,{styles:vM(o)}):null,b?f.createElement(lM,{gapMode:e.gapMode}):null)}function wM(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const xM=YA(Zm,yM);var Hr=f.forwardRef(function(e,t){return f.createElement(na,Ut({},e,{ref:t,sideCar:xM}))});Hr.classNames=na.classNames;var SM=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},nr=new WeakMap,aa=new WeakMap,ia={},ws=0,ih=function(e){return e&&(e.host||ih(e.parentNode))},CM=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=ih(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},_M=function(e,t,n,r){var o=CM(t,Array.isArray(e)?e:[e]);ia[n]||(ia[n]=new WeakMap);var a=ia[n],i=[],s=new Set,l=new Set(o),c=function(d){!d||s.has(d)||(s.add(d),c(d.parentNode))};o.forEach(c);var p=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(m){if(s.has(m))p(m);else try{var b=m.getAttribute(r),g=b!==null&&b!=="false",h=(nr.get(m)||0)+1,v=(a.get(m)||0)+1;nr.set(m,h),a.set(m,v),i.push(m),h===1&&g&&aa.set(m,!0),v===1&&m.setAttribute(n,"true"),g||m.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",m,y)}})};return p(t),s.clear(),ws++,function(){i.forEach(function(d){var m=nr.get(d)-1,b=a.get(d)-1;nr.set(d,m),a.set(d,b),m||(aa.has(d)||d.removeAttribute(r),aa.delete(d)),b||d.removeAttribute(n)}),ws--,ws||(nr=new WeakMap,nr=new WeakMap,aa=new WeakMap,ia={})}},sa=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=SM(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),_M(r,o,n,"aria-hidden")):function(){return null}},xs="Dialog",[sh,lh]=De(xs),[EM,It]=sh(xs),ch=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,s=f.useRef(null),l=f.useRef(null),[c=!1,p]=$e({prop:r,defaultProp:o,onChange:a});return u.jsx(EM,{scope:t,triggerRef:s,contentRef:l,contentId:Ge(),titleId:Ge(),descriptionId:Ge(),open:c,onOpenChange:p,onOpenToggle:f.useCallback(()=>p(d=>!d),[p]),modal:i,children:n})};ch.displayName=xs;var uh="DialogTrigger",dh=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=It(uh,n),a=fe(t,o.triggerRef);return u.jsx(Z.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":_s(o.open),...r,ref:a,onClick:B(e.onClick,o.onOpenToggle)})});dh.displayName=uh;var Ss="DialogPortal",[PM,fh]=sh(Ss,{forceMount:void 0}),ph=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=It(Ss,t);return u.jsx(PM,{scope:t,forceMount:n,children:f.Children.map(r,i=>u.jsx(Le,{present:n||a.open,children:u.jsx(Mn,{asChild:!0,container:o,children:i})}))})};ph.displayName=Ss;var la="DialogOverlay",mh=f.forwardRef((e,t)=>{const n=fh(la,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=It(la,e.__scopeDialog);return a.modal?u.jsx(Le,{present:r||a.open,children:u.jsx(TM,{...o,ref:t})}):null});mh.displayName=la;var TM=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=It(la,n);return u.jsx(Hr,{as:ct,allowPinchZoom:!0,shards:[o.contentRef],children:u.jsx(Z.div,{"data-state":_s(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),On="DialogContent",hh=f.forwardRef((e,t)=>{const n=fh(On,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=It(On,e.__scopeDialog);return u.jsx(Le,{present:r||a.open,children:a.modal?u.jsx(NM,{...o,ref:t}):u.jsx(RM,{...o,ref:t})})});hh.displayName=On;var NM=f.forwardRef((e,t)=>{const n=It(On,e.__scopeDialog),r=f.useRef(null),o=fe(t,n.contentRef,r);return f.useEffect(()=>{const a=r.current;if(a)return sa(a)},[]),u.jsx(gh,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:B(e.onCloseAutoFocus,a=>{var i;a.preventDefault(),(i=n.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())})}),RM=f.forwardRef((e,t)=>{const n=It(On,e.__scopeDialog),r=f.useRef(!1),o=f.useRef(!1);return u.jsx(gh,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i,s;(i=e.onCloseAutoFocus)==null||i.call(e,a),a.defaultPrevented||(r.current||(s=n.triggerRef.current)==null||s.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=a.target;((c=n.triggerRef.current)==null?void 0:c.contains(i))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),gh=f.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,s=It(On,n),l=f.useRef(null),c=fe(t,l);return Qo(),u.jsxs(u.Fragment,{children:[u.jsx(qr,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:u.jsx(sn,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":_s(s.open),...i,ref:c,onDismiss:()=>s.onOpenChange(!1)})}),u.jsxs(u.Fragment,{children:[u.jsx(MM,{titleId:s.titleId}),u.jsx(IM,{contentRef:l,descriptionId:s.descriptionId})]})]})}),Cs="DialogTitle",vh=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=It(Cs,n);return u.jsx(Z.h2,{id:o.titleId,...r,ref:t})});vh.displayName=Cs;var bh="DialogDescription",yh=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=It(bh,n);return u.jsx(Z.p,{id:o.descriptionId,...r,ref:t})});yh.displayName=bh;var wh="DialogClose",xh=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=It(wh,n);return u.jsx(Z.button,{type:"button",...r,ref:t,onClick:B(e.onClick,()=>o.onOpenChange(!1))})});xh.displayName=wh;function _s(e){return e?"open":"closed"}var Sh="DialogTitleWarning",[AM,Ch]=WR(Sh,{contentName:On,titleName:Cs,docsSlug:"dialog"}),MM=({titleId:e})=>{const t=Ch(Sh),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
176
|
-
|
|
177
|
-
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
178
|
-
|
|
179
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return f.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},OM="DialogDescriptionWarning",IM=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ch(OM).contentName}}.`;return f.useEffect(()=>{var a;const o=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},ca=ch,ua=dh,da=ph,rr=mh,or=hh,ar=vh,ir=yh,In=xh,_h="AlertDialog",[jM,u3]=De(_h,[lh]),ln=lh(),Eh=e=>{const{__scopeAlertDialog:t,...n}=e,r=ln(t);return u.jsx(ca,{...r,...n,modal:!0})};Eh.displayName=_h;var DM="AlertDialogTrigger",Ph=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=ln(n);return u.jsx(ua,{...o,...r,ref:t})});Ph.displayName=DM;var kM="AlertDialogPortal",Th=e=>{const{__scopeAlertDialog:t,...n}=e,r=ln(t);return u.jsx(da,{...r,...n})};Th.displayName=kM;var $M="AlertDialogOverlay",Nh=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=ln(n);return u.jsx(rr,{...o,...r,ref:t})});Nh.displayName=$M;var sr="AlertDialogContent",[LM,FM]=jM(sr),Rh=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...o}=e,a=ln(n),i=f.useRef(null),s=fe(t,i),l=f.useRef(null);return u.jsx(AM,{contentName:sr,titleName:Ah,docsSlug:"alert-dialog",children:u.jsx(LM,{scope:n,cancelRef:l,children:u.jsxs(or,{role:"alertdialog",...a,...o,ref:s,onOpenAutoFocus:B(o.onOpenAutoFocus,c=>{var p;c.preventDefault(),(p=l.current)==null||p.focus({preventScroll:!0})}),onPointerDownOutside:c=>c.preventDefault(),onInteractOutside:c=>c.preventDefault(),children:[u.jsx(Ui,{children:r}),u.jsx(zM,{contentRef:i})]})})})});Rh.displayName=sr;var Ah="AlertDialogTitle",Mh=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=ln(n);return u.jsx(ar,{...o,...r,ref:t})});Mh.displayName=Ah;var Oh="AlertDialogDescription",Ih=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=ln(n);return u.jsx(ir,{...o,...r,ref:t})});Ih.displayName=Oh;var BM="AlertDialogAction",jh=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=ln(n);return u.jsx(In,{...o,...r,ref:t})});jh.displayName=BM;var Dh="AlertDialogCancel",kh=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=FM(Dh,n),a=ln(n),i=fe(t,o);return u.jsx(In,{...a,...r,ref:i})});kh.displayName=Dh;var zM=({contentRef:e})=>{const t=`\`${sr}\` requires a description for the component to be accessible for screen reader users.
|
|
180
|
-
|
|
181
|
-
You can add a description to the \`${sr}\` by passing a \`${Oh}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
182
|
-
|
|
183
|
-
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 \`${sr}\`. 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.
|
|
184
|
-
|
|
185
|
-
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return f.useEffect(()=>{var r;document.getElementById((r=e.current)==null?void 0:r.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},qM=Eh,HM=Ph,VM=Th,$h=Nh,Lh=Rh,Fh=jh,Bh=kh,zh=Mh,qh=Ih;const Hh=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Vh=an,cn=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Vh(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:a}=t,i=Object.keys(o).map(c=>{const p=n==null?void 0:n[c],d=a==null?void 0:a[c];if(p===null)return null;const m=Hh(p)||Hh(d);return o[c][m]}),s=n&&Object.entries(n).reduce((c,p)=>{let[d,m]=p;return m===void 0||(c[d]=m),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,p)=>{let{class:d,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})?[...c,d,m]:c},[]);return Vh(e,i,l,n==null?void 0:n.class,n==null?void 0:n.className)},Vr=cn("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"}}),_t=f.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},a)=>{const i=r?ct:"button";return u.jsx(i,{className:O(Vr({variant:t,size:n,className:e})),ref:a,...o})});_t.displayName="Button";const GM=qM,WM=HM,Gh=VM,Es=f.forwardRef(({className:e,...t},n)=>u.jsx($h,{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:n}));Es.displayName=$h.displayName;const Wh=f.forwardRef(({className:e,...t},n)=>u.jsxs(Gh,{children:[u.jsx(Es,{}),u.jsx(Lh,{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),...t})]}));Wh.displayName=Lh.displayName;const Uh=({className:e,...t})=>u.jsx("div",{className:O("flex flex-col space-y-2 text-center sm:text-left",e),...t});Uh.displayName="AlertDialogHeader";const Kh=({className:e,...t})=>u.jsx("div",{className:O("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Kh.displayName="AlertDialogFooter";const Yh=f.forwardRef(({className:e,...t},n)=>u.jsx(zh,{ref:n,className:O("text-lg font-semibold",e),...t}));Yh.displayName=zh.displayName;const Xh=f.forwardRef(({className:e,...t},n)=>u.jsx(qh,{ref:n,className:O("text-sm text-muted-foreground",e),...t}));Xh.displayName=qh.displayName;const Zh=f.forwardRef(({className:e,...t},n)=>u.jsx(Fh,{ref:n,className:O(Vr(),e),...t}));Zh.displayName=Fh.displayName;const Jh=f.forwardRef(({className:e,...t},n)=>u.jsx(Bh,{ref:n,className:O(Vr({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));Jh.displayName=Bh.displayName;const UM=cn("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"}}),Qh=f.forwardRef(({className:e,variant:t,...n},r)=>u.jsx("div",{ref:r,role:"alert",className:O(UM({variant:t}),e),...n}));Qh.displayName="Alert";const eg=f.forwardRef(({className:e,...t},n)=>u.jsx("h5",{ref:n,className:O("mb-1 font-medium leading-none tracking-tight",e),...t}));eg.displayName="AlertTitle";const tg=f.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,className:O("text-sm [&_p]:leading-relaxed",e),...t}));tg.displayName="AlertDescription";var KM="AspectRatio",ng=f.forwardRef((e,t)=>{const{ratio:n=1/1,style:r,...o}=e;return u.jsx("div",{style:{position:"relative",width:"100%",paddingBottom:`${100/n}%`},"data-radix-aspect-ratio-wrapper":"",children:u.jsx(Z.div,{...o,ref:t,style:{...r,position:"absolute",top:0,right:0,bottom:0,left:0}})})});ng.displayName=KM;var YM=ng;const XM=YM;var Ps="Avatar",[ZM,d3]=De(Ps),[JM,rg]=ZM(Ps),og=f.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,a]=f.useState("idle");return u.jsx(JM,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:a,children:u.jsx(Z.span,{...r,ref:t})})});og.displayName=Ps;var ag="AvatarImage",ig=f.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...a}=e,i=rg(ag,n),s=QM(r,a.referrerPolicy),l=Re(c=>{o(c),i.onImageLoadingStatusChange(c)});return Be(()=>{s!=="idle"&&l(s)},[s,l]),s==="loaded"?u.jsx(Z.img,{...a,ref:t,src:r}):null});ig.displayName=ag;var sg="AvatarFallback",lg=f.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,a=rg(sg,n),[i,s]=f.useState(r===void 0);return f.useEffect(()=>{if(r!==void 0){const l=window.setTimeout(()=>s(!0),r);return()=>window.clearTimeout(l)}},[r]),i&&a.imageLoadingStatus!=="loaded"?u.jsx(Z.span,{...o,ref:t}):null});lg.displayName=sg;function QM(e,t){const[n,r]=f.useState("idle");return Be(()=>{if(!e){r("error");return}let o=!0;const a=new window.Image,i=s=>()=>{o&&r(s)};return r("loading"),a.onload=i("loaded"),a.onerror=i("error"),a.src=e,t&&(a.referrerPolicy=t),()=>{o=!1}},[e,t]),n}var cg=og,ug=ig,dg=lg;const fg=f.forwardRef(({className:e,...t},n)=>u.jsx(cg,{ref:n,className:O("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));fg.displayName=cg.displayName;const pg=f.forwardRef(({className:e,...t},n)=>u.jsx(ug,{ref:n,className:O("aspect-square h-full w-full",e),...t}));pg.displayName=ug.displayName;const mg=f.forwardRef(({className:e,...t},n)=>u.jsx(dg,{ref:n,className:O("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));mg.displayName=dg.displayName;const hg=cn("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 eO({className:e,variant:t,...n}){return u.jsx("div",{className:O(hg({variant:t}),e),...n})}const Ts=f.forwardRef(({...e},t)=>u.jsx("nav",{ref:t,"aria-label":"breadcrumb",...e}));Ts.displayName="Breadcrumb";const Ns=f.forwardRef(({className:e,...t},n)=>u.jsx("ol",{ref:n,className:O("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...t}));Ns.displayName="BreadcrumbList";const fa=f.forwardRef(({className:e,...t},n)=>u.jsx("li",{ref:n,className:O("inline-flex items-center gap-1.5",e),...t}));fa.displayName="BreadcrumbItem";const pa=f.forwardRef(({asChild:e,className:t,...n},r)=>{const o=e?ct:"a";return u.jsx(o,{ref:r,className:O("transition-colors hover:text-foreground",t),...n})});pa.displayName="BreadcrumbLink";const Rs=f.forwardRef(({className:e,...t},n)=>u.jsx("span",{ref:n,role:"link","aria-disabled":"true","aria-current":"page",className:O("font-normal text-foreground",e),...t}));Rs.displayName="BreadcrumbPage";const ma=({children:e,className:t,...n})=>u.jsx("li",{role:"presentation","aria-hidden":"true",className:O("[&>svg]:w-3.5 [&>svg]:h-3.5",t),...n,children:e??u.jsx(hn,{})});ma.displayName="BreadcrumbSeparator";const gg=({className:e,...t})=>u.jsxs("span",{role:"presentation","aria-hidden":"true",className:O("flex h-9 w-9 items-center justify-center",e),...t,children:[u.jsx(os,{className:"h-4 w-4"}),u.jsx("span",{className:"sr-only",children:"More"})]});gg.displayName="BreadcrumbElipssis";const ha=f.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,className:O("rounded-xl border bg-card text-card-foreground shadow",e),...t}));ha.displayName="Card";const ga=f.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,className:O("flex flex-col space-y-1.5 p-6",e),...t}));ga.displayName="CardHeader";const va=f.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,className:O("font-semibold leading-none tracking-tight",e),...t}));va.displayName="CardTitle";const ba=f.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,className:O("text-sm text-muted-foreground",e),...t}));ba.displayName="CardDescription";const ya=f.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,className:O("p-6 pt-0",e),...t}));ya.displayName="CardContent";const As=f.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,className:O("flex items-center p-6 pt-0",e),...t}));As.displayName="CardFooter";function tO(e){return Object.prototype.toString.call(e)==="[object Object]"}function vg(e){return tO(e)||Array.isArray(e)}function nO(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Ms(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const o=JSON.stringify(Object.keys(e.breakpoints||{})),a=JSON.stringify(Object.keys(t.breakpoints||{}));return o!==a?!1:n.every(i=>{const s=e[i],l=t[i];return typeof s=="function"?`${s}`==`${l}`:!vg(s)||!vg(l)?s===l:Ms(s,l)})}function bg(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function rO(e,t){if(e.length!==t.length)return!1;const n=bg(e),r=bg(t);return n.every((o,a)=>{const i=r[a];return Ms(o,i)})}function Os(e){return typeof e=="number"}function Is(e){return typeof e=="string"}function wa(e){return typeof e=="boolean"}function yg(e){return Object.prototype.toString.call(e)==="[object Object]"}function ze(e){return Math.abs(e)}function js(e){return Math.sign(e)}function Gr(e,t){return ze(e-t)}function oO(e,t){if(e===0||t===0||ze(e)<=ze(t))return 0;const n=Gr(ze(e),ze(t));return ze(n/e)}function aO(e){return Math.round(e*100)/100}function Wr(e){return Kr(e).map(Number)}function jt(e){return e[Ur(e)]}function Ur(e){return Math.max(0,e.length-1)}function Ds(e,t){return t===Ur(e)}function wg(e,t=0){return Array.from(Array(e),(n,r)=>t+r)}function Kr(e){return Object.keys(e)}function xg(e,t){return[e,t].reduce((n,r)=>(Kr(r).forEach(o=>{const a=n[o],i=r[o],s=yg(a)&&yg(i);n[o]=s?xg(a,i):i}),n),{})}function ks(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function iO(e,t){const n={start:r,center:o,end:a};function r(){return 0}function o(l){return a(l)/2}function a(l){return t-l}function i(l,c){return Is(e)?n[e](l):e(t,l,c)}return{measure:i}}function Yr(){let e=[];function t(o,a,i,s={passive:!0}){let l;if("addEventListener"in o)o.addEventListener(a,i,s),l=()=>o.removeEventListener(a,i,s);else{const c=o;c.addListener(i),l=()=>c.removeListener(i)}return e.push(l),r}function n(){e=e.filter(o=>o())}const r={add:t,clear:n};return r}function sO(e,t,n,r){const o=Yr(),a=1e3/60;let i=null,s=0,l=0;function c(){o.add(e,"visibilitychange",()=>{e.hidden&&g()})}function p(){b(),o.clear()}function d(v){if(!l)return;i||(i=v,n(),n());const y=v-i;for(i=v,s+=y;s>=a;)n(),s-=a;const w=s/a;r(w),l&&(l=t.requestAnimationFrame(d))}function m(){l||(l=t.requestAnimationFrame(d))}function b(){t.cancelAnimationFrame(l),i=null,s=0,l=0}function g(){i=null,s=0}return{init:c,destroy:p,start:m,stop:b,update:n,render:r}}function lO(e,t){const n=t==="rtl",r=e==="y",o=r?"y":"x",a=r?"x":"y",i=!r&&n?-1:1,s=p(),l=d();function c(g){const{height:h,width:v}=g;return r?h:v}function p(){return r?"top":n?"right":"left"}function d(){return r?"bottom":n?"left":"right"}function m(g){return g*i}return{scroll:o,cross:a,startEdge:s,endEdge:l,measureSize:c,direction:m}}function jn(e=0,t=0){const n=ze(e-t);function r(c){return c<e}function o(c){return c>t}function a(c){return r(c)||o(c)}function i(c){return a(c)?r(c)?e:t:c}function s(c){return n?c-n*Math.ceil((c-t)/n):c}return{length:n,max:t,min:e,constrain:i,reachedAny:a,reachedMax:o,reachedMin:r,removeOffset:s}}function Sg(e,t,n){const{constrain:r}=jn(0,e),o=e+1;let a=i(t);function i(m){return n?ze((o+m)%o):r(m)}function s(){return a}function l(m){return a=i(m),d}function c(m){return p().set(s()+m)}function p(){return Sg(e,s(),n)}const d={get:s,set:l,add:c,clone:p};return d}function cO(e,t,n,r,o,a,i,s,l,c,p,d,m,b,g,h,v,y,w){const{cross:x,direction:S}=e,_=["INPUT","SELECT","TEXTAREA"],P={passive:!1},C=Yr(),M=Yr(),N=jn(50,225).constrain(b.measure(20)),$={mouse:300,touch:400},D={mouse:500,touch:600},F=g?43:25;let A=!1,k=0,L=0,I=!1,W=!1,V=!1,q=!1;function ae(G){if(!w)return;function ie(te){(wa(w)||w(G,te))&&Y(te)}const j=t;C.add(j,"dragstart",te=>te.preventDefault(),P).add(j,"touchmove",()=>{},P).add(j,"touchend",()=>{}).add(j,"touchstart",ie).add(j,"mousedown",ie).add(j,"touchcancel",K).add(j,"contextmenu",K).add(j,"click",re,!0)}function J(){C.clear(),M.clear()}function ne(){const G=q?n:t;M.add(G,"touchmove",H,P).add(G,"touchend",K).add(G,"mousemove",H,P).add(G,"mouseup",K)}function z(G){const ie=G.nodeName||"";return _.includes(ie)}function U(){return(g?D:$)[q?"mouse":"touch"]}function ee(G,ie){const j=d.add(js(G)*-1),te=p.byDistance(G,!g).distance;return g||ze(G)<N?te:v&&ie?te*.5:p.byIndex(j.get(),0).distance}function Y(G){const ie=ks(G,r);q=ie,V=g&&ie&&!G.buttons&&A,A=Gr(o.get(),i.get())>=2,!(ie&&G.button!==0)&&(z(G.target)||(I=!0,a.pointerDown(G),c.useFriction(0).useDuration(0),o.set(i),ne(),k=a.readPoint(G),L=a.readPoint(G,x),m.emit("pointerDown")))}function H(G){if(!ks(G,r)&&G.touches.length>=2)return K(G);const j=a.readPoint(G),te=a.readPoint(G,x),me=Gr(j,k),he=Gr(te,L);if(!W&&!q&&(!G.cancelable||(W=me>he,!W)))return K(G);const ve=a.pointerMove(G);me>h&&(V=!0),c.useFriction(.3).useDuration(.75),s.start(),o.add(S(ve)),G.preventDefault()}function K(G){const j=p.byDistance(0,!1).index!==d.get(),te=a.pointerUp(G)*U(),me=ee(S(te),j),he=oO(te,me),ve=F-10*he,pe=y+he/50;W=!1,I=!1,M.clear(),c.useDuration(ve).useFriction(pe),l.distance(me,!g),q=!1,m.emit("pointerUp")}function re(G){V&&(G.stopPropagation(),G.preventDefault(),V=!1)}function Q(){return I}return{init:ae,destroy:J,pointerDown:Q}}function uO(e,t){let r,o;function a(d){return d.timeStamp}function i(d,m){const g=`client${(m||e.scroll)==="x"?"X":"Y"}`;return(ks(d,t)?d:d.touches[0])[g]}function s(d){return r=d,o=d,i(d)}function l(d){const m=i(d)-i(o),b=a(d)-a(r)>170;return o=d,b&&(r=d),m}function c(d){if(!r||!o)return 0;const m=i(o)-i(r),b=a(d)-a(r),g=a(d)-a(o)>170,h=m/b;return b&&!g&&ze(h)>.1?h:0}return{pointerDown:s,pointerMove:l,pointerUp:c,readPoint:i}}function dO(){function e(n){const{offsetTop:r,offsetLeft:o,offsetWidth:a,offsetHeight:i}=n;return{top:r,right:o+a,bottom:r+i,left:o,width:a,height:i}}return{measure:e}}function fO(e){function t(r){return e*(r/100)}return{measure:t}}function pO(e,t,n,r,o,a,i){const s=[e].concat(r);let l,c,p=[],d=!1;function m(v){return o.measureSize(i.measure(v))}function b(v){if(!a)return;c=m(e),p=r.map(m);function y(w){for(const x of w){if(d)return;const S=x.target===e,_=r.indexOf(x.target),P=S?c:p[_],C=m(S?e:r[_]);if(ze(C-P)>=.5){v.reInit(),t.emit("resize");break}}}l=new ResizeObserver(w=>{(wa(a)||a(v,w))&&y(w)}),n.requestAnimationFrame(()=>{s.forEach(w=>l.observe(w))})}function g(){d=!0,l&&l.disconnect()}return{init:b,destroy:g}}function mO(e,t,n,r,o,a){let i=0,s=0,l=o,c=a,p=e.get(),d=0;function m(){const P=r.get()-e.get(),C=!l;let M=0;return C?(i=0,n.set(r),e.set(r),M=P):(n.set(e),i+=P/l,i*=c,p+=i,e.add(i),M=p-d),s=js(M),d=p,_}function b(){const P=r.get()-t.get();return ze(P)<.001}function g(){return l}function h(){return s}function v(){return i}function y(){return x(o)}function w(){return S(a)}function x(P){return l=P,_}function S(P){return c=P,_}const _={direction:h,duration:g,velocity:v,seek:m,settled:b,useBaseFriction:w,useBaseDuration:y,useFriction:S,useDuration:x};return _}function hO(e,t,n,r,o){const a=o.measure(10),i=o.measure(50),s=jn(.1,.99);let l=!1;function c(){return!(l||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function p(b){if(!c())return;const g=e.reachedMin(t.get())?"min":"max",h=ze(e[g]-t.get()),v=n.get()-t.get(),y=s.constrain(h/i);n.subtract(v*y),!b&&ze(v)<a&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())}function d(b){l=!b}return{shouldConstrain:c,constrain:p,toggleActive:d}}function gO(e,t,n,r,o){const a=jn(-t+e,0),i=d(),s=p(),l=m();function c(g,h){return Gr(g,h)<=1}function p(){const g=i[0],h=jt(i),v=i.lastIndexOf(g),y=i.indexOf(h)+1;return jn(v,y)}function d(){return n.map((g,h)=>{const{min:v,max:y}=a,w=a.constrain(g),x=!h,S=Ds(n,h);return x?y:S||c(v,w)?v:c(y,w)?y:w}).map(g=>parseFloat(g.toFixed(3)))}function m(){if(t<=e+o)return[a.max];if(r==="keepSnaps")return i;const{min:g,max:h}=s;return i.slice(g,h)}return{snapsContained:l,scrollContainLimit:s}}function vO(e,t,n){const r=t[0],o=n?r-e:jt(t);return{limit:jn(o,r)}}function bO(e,t,n,r){const a=t.min+.1,i=t.max+.1,{reachedMin:s,reachedMax:l}=jn(a,i);function c(m){return m===1?l(n.get()):m===-1?s(n.get()):!1}function p(m){if(!c(m))return;const b=e*(m*-1);r.forEach(g=>g.add(b))}return{loop:p}}function yO(e){const{max:t,length:n}=e;function r(a){const i=a-t;return n?i/-n:0}return{get:r}}function wO(e,t,n,r,o){const{startEdge:a,endEdge:i}=e,{groupSlides:s}=o,l=d().map(t.measure),c=m(),p=b();function d(){return s(r).map(h=>jt(h)[i]-h[0][a]).map(ze)}function m(){return r.map(h=>n[a]-h[a]).map(h=>-ze(h))}function b(){return s(c).map(h=>h[0]).map((h,v)=>h+l[v])}return{snaps:c,snapsAligned:p}}function xO(e,t,n,r,o,a){const{groupSlides:i}=o,{min:s,max:l}=r,c=p();function p(){const m=i(a),b=!e||t==="keepSnaps";return n.length===1?[a]:b?m:m.slice(s,l).map((g,h,v)=>{const y=!h,w=Ds(v,h);if(y){const x=jt(v[0])+1;return wg(x)}if(w){const x=Ur(a)-jt(v)[0]+1;return wg(x,jt(v)[0])}return g})}return{slideRegistry:c}}function SO(e,t,n,r,o){const{reachedAny:a,removeOffset:i,constrain:s}=r;function l(g){return g.concat().sort((h,v)=>ze(h)-ze(v))[0]}function c(g){const h=e?i(g):s(g),v=t.map((w,x)=>({diff:p(w-h,0),index:x})).sort((w,x)=>ze(w.diff)-ze(x.diff)),{index:y}=v[0];return{index:y,distance:h}}function p(g,h){const v=[g,g+n,g-n];if(!e)return g;if(!h)return l(v);const y=v.filter(w=>js(w)===h);return y.length?l(y):jt(v)-n}function d(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:w}=c(v),x=!e&&a(v);if(!h||x)return{index:y,distance:g};const S=t[y]-w,_=g+p(S,0);return{index:y,distance:_}}return{byDistance:m,byIndex:d,shortcut:p}}function CO(e,t,n,r,o,a,i){function s(d){const m=d.distance,b=d.index!==t.get();a.add(m),m&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),b&&(n.set(t.get()),t.set(d.index),i.emit("select"))}function l(d,m){const b=o.byDistance(d,m);s(b)}function c(d,m){const b=t.clone().set(d),g=o.byIndex(b.get(),m);s(g)}return{distance:l,index:c}}function _O(e,t,n,r,o,a,i,s){const l={passive:!0,capture:!0};let c=0;function p(b){if(!s)return;function g(h){if(new Date().getTime()-c>10)return;i.emit("slideFocusStart"),e.scrollLeft=0;const w=n.findIndex(x=>x.includes(h));Os(w)&&(o.useDuration(0),r.index(w,0),i.emit("slideFocus"))}a.add(document,"keydown",d,!1),t.forEach((h,v)=>{a.add(h,"focus",y=>{(wa(s)||s(b,y))&&g(v)},l)})}function d(b){b.code==="Tab"&&(c=new Date().getTime())}return{init:p}}function Xr(e){let t=e;function n(){return t}function r(l){t=i(l)}function o(l){t+=i(l)}function a(l){t-=i(l)}function i(l){return Os(l)?l:l.get()}return{get:n,set:r,add:o,subtract:a}}function Cg(e,t){const n=e.scroll==="x"?i:s,r=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 l(m){if(a)return;const b=aO(e.direction(m));b!==o&&(r.transform=n(b),o=b)}function c(m){a=!m}function p(){a||(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:p,to:l,toggleActive:c}}function EO(e,t,n,r,o,a,i,s,l){const p=Wr(o),d=Wr(o).reverse(),m=y().concat(w());function b(C,M){return C.reduce((N,$)=>N-o[$],M)}function g(C,M){return C.reduce((N,$)=>b(N,M)>0?N.concat([$]):N,[])}function h(C){return a.map((M,N)=>({start:M-r[N]+.5+C,end:M+t-.5+C}))}function v(C,M,N){const $=h(M);return C.map(D=>{const F=N?0:-n,A=N?n:0,k=N?"end":"start",L=$[D][k];return{index:D,loopPoint:L,slideLocation:Xr(-1),translate:Cg(e,l[D]),target:()=>s.get()>L?F:A}})}function y(){const C=i[0],M=g(d,C);return v(M,n,!1)}function w(){const C=t-i[0]-1,M=g(p,C);return v(M,-n,!0)}function x(){return m.every(({index:C})=>{const M=p.filter(N=>N!==C);return b(M,t)<=.1})}function S(){m.forEach(C=>{const{target:M,translate:N,slideLocation:$}=C,D=M();D!==$.get()&&(N.to(D),$.set(D))})}function _(){m.forEach(C=>C.translate.clear())}return{canLoop:x,clear:_,loop:S,loopPoints:m}}function PO(e,t,n){let r,o=!1;function a(l){if(!n)return;function c(p){for(const d of p)if(d.type==="childList"){l.reInit(),t.emit("slidesChanged");break}}r=new MutationObserver(p=>{o||(wa(n)||n(l,p))&&c(p)}),r.observe(e,{childList:!0})}function i(){r&&r.disconnect(),o=!0}return{init:a,destroy:i}}function TO(e,t,n,r){const o={};let a=null,i=null,s,l=!1;function c(){s=new IntersectionObserver(g=>{l||(g.forEach(h=>{const v=t.indexOf(h.target);o[v]=h}),a=null,i=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:r}),t.forEach(g=>s.observe(g))}function p(){s&&s.disconnect(),l=!0}function d(g){return Kr(o).reduce((h,v)=>{const y=parseInt(v),{isIntersecting:w}=o[y];return(g&&w||!g&&!w)&&h.push(y),h},[])}function m(g=!0){if(g&&a)return a;if(!g&&i)return i;const h=d(g);return g&&(a=h),g||(i=h),h}return{init:c,destroy:p,get:m}}function NO(e,t,n,r,o,a){const{measureSize:i,startEdge:s,endEdge:l}=e,c=n[0]&&o,p=g(),d=h(),m=n.map(i),b=v();function g(){if(!c)return 0;const w=n[0];return ze(t[s]-w[s])}function h(){if(!c)return 0;const w=a.getComputedStyle(jt(r));return parseFloat(w.getPropertyValue(`margin-${l}`))}function v(){return n.map((w,x,S)=>{const _=!x,P=Ds(S,x);return _?m[x]+p:P?m[x]+d:S[x+1][s]-w[s]}).map(ze)}return{slideSizes:m,slideSizesWithGaps:b,startGap:p,endGap:d}}function RO(e,t,n,r,o,a,i,s,l){const{startEdge:c,endEdge:p,direction:d}=e,m=Os(n);function b(y,w){return Wr(y).filter(x=>x%w===0).map(x=>y.slice(x,x+w))}function g(y){return y.length?Wr(y).reduce((w,x,S)=>{const _=jt(w)||0,P=_===0,C=x===Ur(y),M=o[c]-a[_][c],N=o[c]-a[x][p],$=!r&&P?d(i):0,D=!r&&C?d(s):0,F=ze(N-D-(M+$));return S&&F>t+l&&w.push(x),C&&w.push(y.length),w},[]).map((w,x,S)=>{const _=Math.max(S[x-1]||0);return y.slice(_,w)}):[]}function h(y){return m?b(y,n):g(y)}return{groupSlides:h}}function AO(e,t,n,r,o,a,i){const{align:s,axis:l,direction:c,startIndex:p,loop:d,duration:m,dragFree:b,dragThreshold:g,inViewThreshold:h,slidesToScroll:v,skipSnaps:y,containScroll:w,watchResize:x,watchSlides:S,watchDrag:_,watchFocus:P}=a,C=2,M=dO(),N=M.measure(t),$=n.map(M.measure),D=lO(l,c),F=D.measureSize(N),A=fO(F),k=iO(s,F),L=!d&&!!w,I=d||!!w,{slideSizes:W,slideSizesWithGaps:V,startGap:q,endGap:ae}=NO(D,N,$,n,I,o),J=RO(D,F,v,d,N,$,q,ae,C),{snaps:ne,snapsAligned:z}=wO(D,k,N,$,J),U=-jt(ne)+jt(V),{snapsContained:ee,scrollContainLimit:Y}=gO(F,U,z,w,C),H=L?ee:z,{limit:K}=vO(U,H,d),re=Sg(Ur(H),p,d),Q=re.clone(),oe=Wr(n),G=({dragHandler:We,scrollBody:At,scrollBounds:Xe,options:{loop:et}})=>{et||Xe.constrain(We.pointerDown()),At.seek()},ie=({scrollBody:We,translate:At,location:Xe,offsetLocation:et,previousLocation:Vt,scrollLooper:nn,slideLooper:Nn,dragHandler:Un,animation:Gt,eventHandler:de,scrollBounds:we,options:{loop:Ee}},be)=>{const se=We.settled(),Ce=!we.shouldConstrain(),xe=Ee?se:se&&Ce;xe&&!Un.pointerDown()&&(Gt.stop(),de.emit("settle")),xe||de.emit("scroll");const Fe=Xe.get()*be+Vt.get()*(1-be);et.set(Fe),Ee&&(nn.loop(We.direction()),Nn.loop()),At.to(et.get())},j=sO(r,o,()=>G(pt),We=>ie(pt,We)),te=.68,me=H[re.get()],he=Xr(me),ve=Xr(me),pe=Xr(me),Te=Xr(me),He=mO(he,pe,ve,Te,m,te),Se=SO(d,H,U,K,Te),Ie=CO(j,re,Q,He,Se,Te,i),ot=yO(K),Qe=Yr(),Ye=TO(t,n,i,h),{slideRegistry:it}=xO(L,w,H,Y,J,oe),yt=_O(e,n,it,Ie,He,Qe,i,P),pt={ownerDocument:r,ownerWindow:o,eventHandler:i,containerRect:N,slideRects:$,animation:j,axis:D,dragHandler:cO(D,e,r,o,Te,uO(D,o),he,j,Ie,He,Se,re,i,A,b,g,y,te,_),eventStore:Qe,percentOfView:A,index:re,indexPrevious:Q,limit:K,location:he,offsetLocation:pe,previousLocation:ve,options:a,resizeHandler:pO(t,i,o,n,D,x,M),scrollBody:He,scrollBounds:hO(K,pe,Te,He,A),scrollLooper:bO(U,K,pe,[he,pe,ve,Te]),scrollProgress:ot,scrollSnapList:H.map(ot.get),scrollSnaps:H,scrollTarget:Se,scrollTo:Ie,slideLooper:EO(D,F,U,W,V,ne,H,pe,n),slideFocus:yt,slidesHandler:PO(t,i,S),slidesInView:Ye,slideIndexes:oe,slideRegistry:it,slidesToScroll:J,target:Te,translate:Cg(D,t)};return pt}function MO(){let e={},t;function n(c){t=c}function r(c){return e[c]||[]}function o(c){return r(c).forEach(p=>p(t,c)),l}function a(c,p){return e[c]=r(c).concat([p]),l}function i(c,p){return e[c]=r(c).filter(d=>d!==p),l}function s(){e={}}const l={init:n,emit:o,off:i,on:a,clear:s};return l}const OO={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 IO(e){function t(a,i){return xg(a,i||{})}function n(a){const i=a.breakpoints||{},s=Kr(i).filter(l=>e.matchMedia(l).matches).map(l=>i[l]).reduce((l,c)=>t(l,c),{});return t(a,s)}function r(a){return a.map(i=>Kr(i.breakpoints||{})).reduce((i,s)=>i.concat(s),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function jO(e){let t=[];function n(a,i){return t=i.filter(({options:s})=>e.optionsAtMedia(s).active!==!1),t.forEach(s=>s.init(a,e)),i.reduce((s,l)=>Object.assign(s,{[l.name]:l}),{})}function r(){t=t.filter(a=>a.destroy())}return{init:n,destroy:r}}function xa(e,t,n){const r=e.ownerDocument,o=r.defaultView,a=IO(o),i=jO(a),s=Yr(),l=MO(),{mergeOptions:c,optionsAtMedia:p,optionsMediaQueries:d}=a,{on:m,off:b,emit:g}=l,h=D;let v=!1,y,w=c(OO,xa.globalOptions),x=c(w),S=[],_,P,C;function M(){const{container:oe,slides:G}=x;P=(Is(oe)?e.querySelector(oe):oe)||e.children[0];const j=Is(G)?P.querySelectorAll(G):G;C=[].slice.call(j||P.children)}function N(oe){const G=AO(e,P,C,r,o,oe,l);if(oe.loop&&!G.slideLooper.canLoop()){const ie=Object.assign({},oe,{loop:!1});return N(ie)}return G}function $(oe,G){v||(w=c(w,oe),x=p(w),S=G||S,M(),y=N(x),d([w,...S.map(({options:ie})=>ie)]).forEach(ie=>s.add(ie,"change",D)),x.active&&(y.translate.to(y.location.get()),y.animation.init(),y.slidesInView.init(),y.slideFocus.init(Q),y.eventHandler.init(Q),y.resizeHandler.init(Q),y.slidesHandler.init(Q),y.options.loop&&y.slideLooper.loop(),P.offsetParent&&C.length&&y.dragHandler.init(Q),_=i.init(Q,S)))}function D(oe,G){const ie=J();F(),$(c({startIndex:ie},oe),G),l.emit("reInit")}function F(){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 A(){v||(v=!0,s.clear(),F(),l.emit("destroy"),l.clear())}function k(oe,G,ie){!x.active||v||(y.scrollBody.useBaseFriction().useDuration(G===!0?0:x.duration),y.scrollTo.index(oe,ie||0))}function L(oe){const G=y.index.add(1).get();k(G,oe,-1)}function I(oe){const G=y.index.add(-1).get();k(G,oe,1)}function W(){return y.index.add(1).get()!==J()}function V(){return y.index.add(-1).get()!==J()}function q(){return y.scrollSnapList}function ae(){return y.scrollProgress.get(y.location.get())}function J(){return y.index.get()}function ne(){return y.indexPrevious.get()}function z(){return y.slidesInView.get()}function U(){return y.slidesInView.get(!1)}function ee(){return _}function Y(){return y}function H(){return e}function K(){return P}function re(){return C}const Q={canScrollNext:W,canScrollPrev:V,containerNode:K,internalEngine:Y,destroy:A,off:b,on:m,emit:g,plugins:ee,previousScrollSnap:ne,reInit:h,rootNode:H,scrollNext:L,scrollPrev:I,scrollProgress:ae,scrollSnapList:q,scrollTo:k,selectedScrollSnap:J,slideNodes:re,slidesInView:z,slidesNotInView:U};return $(t,n),setTimeout(()=>l.emit("init"),0),Q}xa.globalOptions=void 0;function $s(e={},t=[]){const n=E.useRef(e),r=E.useRef(t),[o,a]=E.useState(),[i,s]=E.useState(),l=E.useCallback(()=>{o&&o.reInit(n.current,r.current)},[o]);return E.useEffect(()=>{Ms(n.current,e)||(n.current=e,l())},[e,l]),E.useEffect(()=>{rO(r.current,t)||(r.current=t,l())},[t,l]),E.useEffect(()=>{if(nO()&&i){xa.globalOptions=$s.globalOptions;const c=xa(i,n.current,r.current);return a(c),()=>c.destroy()}else a(void 0)},[i,a]),[s,o]}$s.globalOptions=void 0;const _g=f.createContext(null);function Sa(){const e=f.useContext(_g);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}const Eg=f.forwardRef(({orientation:e="horizontal",opts:t,setApi:n,plugins:r,className:o,children:a,...i},s)=>{const[l,c]=$s({...t,axis:e==="horizontal"?"x":"y"},r),[p,d]=f.useState(!1),[m,b]=f.useState(!1),g=f.useCallback(w=>{w&&(d(w.canScrollPrev()),b(w.canScrollNext()))},[]),h=f.useCallback(()=>{c==null||c.scrollPrev()},[c]),v=f.useCallback(()=>{c==null||c.scrollNext()},[c]),y=f.useCallback(w=>{w.key==="ArrowLeft"?(w.preventDefault(),h()):w.key==="ArrowRight"&&(w.preventDefault(),v())},[h,v]);return f.useEffect(()=>{!c||!n||n(c)},[c,n]),f.useEffect(()=>{if(c)return g(c),c.on("reInit",g),c.on("select",g),()=>{c==null||c.off("select",g)}},[c,g]),u.jsx(_g.Provider,{value:{carouselRef:l,api:c,opts:t,orientation:e||((t==null?void 0:t.axis)==="y"?"vertical":"horizontal"),scrollPrev:h,scrollNext:v,canScrollPrev:p,canScrollNext:m},children:u.jsx("div",{ref:s,onKeyDownCapture:y,className:O("relative",o),role:"region","aria-roledescription":"carousel",...i,children:a})})});Eg.displayName="Carousel";const Pg=f.forwardRef(({className:e,...t},n)=>{const{carouselRef:r,orientation:o}=Sa();return u.jsx("div",{ref:r,className:"overflow-hidden",children:u.jsx("div",{ref:n,className:O("flex",o==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});Pg.displayName="CarouselContent";const Tg=f.forwardRef(({className:e,...t},n)=>{const{orientation:r}=Sa();return u.jsx("div",{ref:n,role:"group","aria-roledescription":"slide",className:O("min-w-0 shrink-0 grow-0 basis-full",r==="horizontal"?"pl-4":"pt-4",e),...t})});Tg.displayName="CarouselItem";const Ng=f.forwardRef(({className:e,variant:t="outline",size:n="icon",...r},o)=>{const{orientation:a,scrollPrev:i,canScrollPrev:s}=Sa();return u.jsxs(_t,{ref:o,variant:t,size:n,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,...r,children:[u.jsx(P1,{className:"h-4 w-4"}),u.jsx("span",{className:"sr-only",children:"Previous slide"})]})});Ng.displayName="CarouselPrevious";const Rg=f.forwardRef(({className:e,variant:t="outline",size:n="icon",...r},o)=>{const{orientation:a,scrollNext:i,canScrollNext:s}=Sa();return u.jsxs(_t,{ref:o,variant:t,size:n,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,...r,children:[u.jsx(T1,{className:"h-4 w-4"}),u.jsx("span",{className:"sr-only",children:"Next slide"})]})});Rg.displayName="CarouselNext";var Ls,Ag;function Dt(){if(Ag)return Ls;Ag=1;var e=Array.isArray;return Ls=e,Ls}var Fs,Mg;function Og(){if(Mg)return Fs;Mg=1;var e=typeof Go=="object"&&Go&&Go.Object===Object&&Go;return Fs=e,Fs}var Bs,Ig;function Kt(){if(Ig)return Bs;Ig=1;var e=Og(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return Bs=n,Bs}var zs,jg;function Zr(){if(jg)return zs;jg=1;var e=Kt(),t=e.Symbol;return zs=t,zs}var qs,Dg;function DO(){if(Dg)return qs;Dg=1;var e=Zr(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,o=e?e.toStringTag:void 0;function a(i){var s=n.call(i,o),l=i[o];try{i[o]=void 0;var c=!0}catch{}var p=r.call(i);return c&&(s?i[o]=l:delete i[o]),p}return qs=a,qs}var Hs,kg;function kO(){if(kg)return Hs;kg=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return Hs=n,Hs}var Vs,$g;function Dn(){if($g)return Vs;$g=1;var e=Zr(),t=DO(),n=kO(),r="[object Null]",o="[object Undefined]",a=e?e.toStringTag:void 0;function i(s){return s==null?s===void 0?o:r:a&&a in Object(s)?t(s):n(s)}return Vs=i,Vs}var Gs,Lg;function kn(){if(Lg)return Gs;Lg=1;function e(t){return t!=null&&typeof t=="object"}return Gs=e,Gs}var Ws,Fg;function Jr(){if(Fg)return Ws;Fg=1;var e=Dn(),t=kn(),n="[object Symbol]";function r(o){return typeof o=="symbol"||t(o)&&e(o)==n}return Ws=r,Ws}var Us,Bg;function Ks(){if(Bg)return Us;Bg=1;var e=Dt(),t=Jr(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\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:r.test(a)||!n.test(a)||i!=null&&a in Object(i)}return Us=o,Us}var Ys,zg;function bn(){if(zg)return Ys;zg=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return Ys=e,Ys}var Xs,qg;function Zs(){if(qg)return Xs;qg=1;var e=Dn(),t=bn(),n="[object AsyncFunction]",r="[object Function]",o="[object GeneratorFunction]",a="[object Proxy]";function i(s){if(!t(s))return!1;var l=e(s);return l==r||l==o||l==n||l==a}return Xs=i,Xs}var Js,Hg;function $O(){if(Hg)return Js;Hg=1;var e=Kt(),t=e["__core-js_shared__"];return Js=t,Js}var Qs,Vg;function LO(){if(Vg)return Qs;Vg=1;var e=$O(),t=function(){var r=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function n(r){return!!t&&t in r}return Qs=n,Qs}var el,Gg;function Wg(){if(Gg)return el;Gg=1;var e=Function.prototype,t=e.toString;function n(r){if(r!=null){try{return t.call(r)}catch{}try{return r+""}catch{}}return""}return el=n,el}var tl,Ug;function FO(){if(Ug)return tl;Ug=1;var e=Zs(),t=LO(),n=bn(),r=Wg(),o=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,i=Function.prototype,s=Object.prototype,l=i.toString,c=s.hasOwnProperty,p=RegExp("^"+l.call(c).replace(o,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function d(m){if(!n(m)||t(m))return!1;var b=e(m)?p:a;return b.test(r(m))}return tl=d,tl}var nl,Kg;function BO(){if(Kg)return nl;Kg=1;function e(t,n){return t==null?void 0:t[n]}return nl=e,nl}var rl,Yg;function $n(){if(Yg)return rl;Yg=1;var e=FO(),t=BO();function n(r,o){var a=t(r,o);return e(a)?a:void 0}return rl=n,rl}var ol,Xg;function Ca(){if(Xg)return ol;Xg=1;var e=$n(),t=e(Object,"create");return ol=t,ol}var al,Zg;function zO(){if(Zg)return al;Zg=1;var e=Ca();function t(){this.__data__=e?e(null):{},this.size=0}return al=t,al}var il,Jg;function qO(){if(Jg)return il;Jg=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return il=e,il}var sl,Qg;function HO(){if(Qg)return sl;Qg=1;var e=Ca(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function o(a){var i=this.__data__;if(e){var s=i[a];return s===t?void 0:s}return r.call(i,a)?i[a]:void 0}return sl=o,sl}var ll,ev;function VO(){if(ev)return ll;ev=1;var e=Ca(),t=Object.prototype,n=t.hasOwnProperty;function r(o){var a=this.__data__;return e?a[o]!==void 0:n.call(a,o)}return ll=r,ll}var cl,tv;function GO(){if(tv)return cl;tv=1;var e=Ca(),t="__lodash_hash_undefined__";function n(r,o){var a=this.__data__;return this.size+=this.has(r)?0:1,a[r]=e&&o===void 0?t:o,this}return cl=n,cl}var ul,nv;function WO(){if(nv)return ul;nv=1;var e=zO(),t=qO(),n=HO(),r=VO(),o=GO();function a(i){var s=-1,l=i==null?0:i.length;for(this.clear();++s<l;){var c=i[s];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=r,a.prototype.set=o,ul=a,ul}var dl,rv;function UO(){if(rv)return dl;rv=1;function e(){this.__data__=[],this.size=0}return dl=e,dl}var fl,ov;function pl(){if(ov)return fl;ov=1;function e(t,n){return t===n||t!==t&&n!==n}return fl=e,fl}var ml,av;function _a(){if(av)return ml;av=1;var e=pl();function t(n,r){for(var o=n.length;o--;)if(e(n[o][0],r))return o;return-1}return ml=t,ml}var hl,iv;function KO(){if(iv)return hl;iv=1;var e=_a(),t=Array.prototype,n=t.splice;function r(o){var a=this.__data__,i=e(a,o);if(i<0)return!1;var s=a.length-1;return i==s?a.pop():n.call(a,i,1),--this.size,!0}return hl=r,hl}var gl,sv;function YO(){if(sv)return gl;sv=1;var e=_a();function t(n){var r=this.__data__,o=e(r,n);return o<0?void 0:r[o][1]}return gl=t,gl}var vl,lv;function XO(){if(lv)return vl;lv=1;var e=_a();function t(n){return e(this.__data__,n)>-1}return vl=t,vl}var bl,cv;function ZO(){if(cv)return bl;cv=1;var e=_a();function t(n,r){var o=this.__data__,a=e(o,n);return a<0?(++this.size,o.push([n,r])):o[a][1]=r,this}return bl=t,bl}var yl,uv;function Ea(){if(uv)return yl;uv=1;var e=UO(),t=KO(),n=YO(),r=XO(),o=ZO();function a(i){var s=-1,l=i==null?0:i.length;for(this.clear();++s<l;){var c=i[s];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=r,a.prototype.set=o,yl=a,yl}var wl,dv;function xl(){if(dv)return wl;dv=1;var e=$n(),t=Kt(),n=e(t,"Map");return wl=n,wl}var Sl,fv;function JO(){if(fv)return Sl;fv=1;var e=WO(),t=Ea(),n=xl();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return Sl=r,Sl}var Cl,pv;function QO(){if(pv)return Cl;pv=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return Cl=e,Cl}var _l,mv;function Pa(){if(mv)return _l;mv=1;var e=QO();function t(n,r){var o=n.__data__;return e(r)?o[typeof r=="string"?"string":"hash"]:o.map}return _l=t,_l}var El,hv;function eI(){if(hv)return El;hv=1;var e=Pa();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return El=t,El}var Pl,gv;function tI(){if(gv)return Pl;gv=1;var e=Pa();function t(n){return e(this,n).get(n)}return Pl=t,Pl}var Tl,vv;function nI(){if(vv)return Tl;vv=1;var e=Pa();function t(n){return e(this,n).has(n)}return Tl=t,Tl}var Nl,bv;function rI(){if(bv)return Nl;bv=1;var e=Pa();function t(n,r){var o=e(this,n),a=o.size;return o.set(n,r),this.size+=o.size==a?0:1,this}return Nl=t,Nl}var Rl,yv;function Al(){if(yv)return Rl;yv=1;var e=JO(),t=eI(),n=tI(),r=nI(),o=rI();function a(i){var s=-1,l=i==null?0:i.length;for(this.clear();++s<l;){var c=i[s];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=r,a.prototype.set=o,Rl=a,Rl}var Ml,wv;function oI(){if(wv)return Ml;wv=1;var e=Al(),t="Expected a function";function n(r,o){if(typeof r!="function"||o!=null&&typeof o!="function")throw new TypeError(t);var a=function(){var i=arguments,s=o?o.apply(this,i):i[0],l=a.cache;if(l.has(s))return l.get(s);var c=r.apply(this,i);return a.cache=l.set(s,c)||l,c};return a.cache=new(n.Cache||e),a}return n.Cache=e,Ml=n,Ml}var Ol,xv;function aI(){if(xv)return Ol;xv=1;var e=oI(),t=500;function n(r){var o=e(r,function(i){return a.size===t&&a.clear(),i}),a=o.cache;return o}return Ol=n,Ol}var Il,Sv;function iI(){if(Sv)return Il;Sv=1;var e=aI(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(o){var a=[];return o.charCodeAt(0)===46&&a.push(""),o.replace(t,function(i,s,l,c){a.push(l?c.replace(n,"$1"):s||i)}),a});return Il=r,Il}var jl,Cv;function _v(){if(Cv)return jl;Cv=1;function e(t,n){for(var r=-1,o=t==null?0:t.length,a=Array(o);++r<o;)a[r]=n(t[r],r,t);return a}return jl=e,jl}var Dl,Ev;function sI(){if(Ev)return Dl;Ev=1;var e=Zr(),t=_v(),n=Dt(),r=Jr(),o=e?e.prototype:void 0,a=o?o.toString:void 0;function i(s){if(typeof s=="string")return s;if(n(s))return t(s,i)+"";if(r(s))return a?a.call(s):"";var l=s+"";return l=="0"&&1/s==-1/0?"-0":l}return Dl=i,Dl}var kl,Pv;function Tv(){if(Pv)return kl;Pv=1;var e=sI();function t(n){return n==null?"":e(n)}return kl=t,kl}var $l,Nv;function Rv(){if(Nv)return $l;Nv=1;var e=Dt(),t=Ks(),n=iI(),r=Tv();function o(a,i){return e(a)?a:t(a,i)?[a]:n(r(a))}return $l=o,$l}var Ll,Av;function Ta(){if(Av)return Ll;Av=1;var e=Jr();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return Ll=t,Ll}var Fl,Mv;function Bl(){if(Mv)return Fl;Mv=1;var e=Rv(),t=Ta();function n(r,o){o=e(o,r);for(var a=0,i=o.length;r!=null&&a<i;)r=r[t(o[a++])];return a&&a==i?r:void 0}return Fl=n,Fl}var zl,Ov;function Iv(){if(Ov)return zl;Ov=1;var e=Bl();function t(n,r,o){var a=n==null?void 0:e(n,r);return a===void 0?o:a}return zl=t,zl}Iv();var ql,jv;function lI(){if(jv)return ql;jv=1;function e(t){return t==null}return ql=e,ql}var cI=lI();const uI=Wt(cI);var Hl,Dv;function dI(){if(Dv)return Hl;Dv=1;var e=Dn(),t=Dt(),n=kn(),r="[object String]";function o(a){return typeof a=="string"||!t(a)&&n(a)&&e(a)==r}return Hl=o,Hl}var fI=dI();const kv=Wt(fI);var pI=Zs();const Na=Wt(pI);var mI=bn();const $v=Wt(mI);var Ra={exports:{}},Ae={};/**
|
|
186
|
-
* @license React
|
|
187
|
-
* react-is.production.min.js
|
|
188
|
-
*
|
|
189
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
190
|
-
*
|
|
191
|
-
* This source code is licensed under the MIT license found in the
|
|
192
|
-
* LICENSE file in the root directory of this source tree.
|
|
193
|
-
*/var Lv;function hI(){if(Lv)return Ae;Lv=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=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"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),d=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 n:case o:case r:case c:case p:return v;default:switch(v=v&&v.$$typeof,v){case s:case i:case l:case m:case d:case a:return v;default:return y}}case t:return y}}}return Ae.ContextConsumer=i,Ae.ContextProvider=a,Ae.Element=e,Ae.ForwardRef=l,Ae.Fragment=n,Ae.Lazy=m,Ae.Memo=d,Ae.Portal=t,Ae.Profiler=o,Ae.StrictMode=r,Ae.Suspense=c,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)===l},Ae.isFragment=function(v){return h(v)===n},Ae.isLazy=function(v){return h(v)===m},Ae.isMemo=function(v){return h(v)===d},Ae.isPortal=function(v){return h(v)===t},Ae.isProfiler=function(v){return h(v)===o},Ae.isStrictMode=function(v){return h(v)===r},Ae.isSuspense=function(v){return h(v)===c},Ae.isSuspenseList=function(v){return h(v)===p},Ae.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===n||v===o||v===r||v===c||v===p||v===b||typeof v=="object"&&v!==null&&(v.$$typeof===m||v.$$typeof===d||v.$$typeof===a||v.$$typeof===i||v.$$typeof===l||v.$$typeof===g||v.getModuleId!==void 0)},Ae.typeOf=h,Ae}var Me={};/**
|
|
194
|
-
* @license React
|
|
195
|
-
* react-is.development.js
|
|
196
|
-
*
|
|
197
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
198
|
-
*
|
|
199
|
-
* This source code is licensed under the MIT license found in the
|
|
200
|
-
* LICENSE file in the root directory of this source tree.
|
|
201
|
-
*/var Fv;function gI(){return Fv||(Fv=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=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"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),g=!1,h=!1,v=!1,y=!1,w=!1,x;x=Symbol.for("react.module.reference");function S(j){return!!(typeof j=="string"||typeof j=="function"||j===n||j===o||w||j===r||j===c||j===p||y||j===b||g||h||v||typeof j=="object"&&j!==null&&(j.$$typeof===m||j.$$typeof===d||j.$$typeof===a||j.$$typeof===i||j.$$typeof===l||j.$$typeof===x||j.getModuleId!==void 0))}function _(j){if(typeof j=="object"&&j!==null){var te=j.$$typeof;switch(te){case e:var me=j.type;switch(me){case n:case o:case r:case c:case p:return me;default:var he=me&&me.$$typeof;switch(he){case s:case i:case l:case m:case d:case a:return he;default:return te}}case t:return te}}}var P=i,C=a,M=e,N=l,$=n,D=m,F=d,A=t,k=o,L=r,I=c,W=p,V=!1,q=!1;function ae(j){return V||(V=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function J(j){return q||(q=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ne(j){return _(j)===i}function z(j){return _(j)===a}function U(j){return typeof j=="object"&&j!==null&&j.$$typeof===e}function ee(j){return _(j)===l}function Y(j){return _(j)===n}function H(j){return _(j)===m}function K(j){return _(j)===d}function re(j){return _(j)===t}function Q(j){return _(j)===o}function oe(j){return _(j)===r}function G(j){return _(j)===c}function ie(j){return _(j)===p}Me.ContextConsumer=P,Me.ContextProvider=C,Me.Element=M,Me.ForwardRef=N,Me.Fragment=$,Me.Lazy=D,Me.Memo=F,Me.Portal=A,Me.Profiler=k,Me.StrictMode=L,Me.Suspense=I,Me.SuspenseList=W,Me.isAsyncMode=ae,Me.isConcurrentMode=J,Me.isContextConsumer=ne,Me.isContextProvider=z,Me.isElement=U,Me.isForwardRef=ee,Me.isFragment=Y,Me.isLazy=H,Me.isMemo=K,Me.isPortal=re,Me.isProfiler=Q,Me.isStrictMode=oe,Me.isSuspense=G,Me.isSuspenseList=ie,Me.isValidElementType=S,Me.typeOf=_}()),Me}var Bv;function vI(){return Bv||(Bv=1,process.env.NODE_ENV==="production"?Ra.exports=hI():Ra.exports=gI()),Ra.exports}vI();var Vl,zv;function qv(){if(zv)return Vl;zv=1;var e=Dn(),t=kn(),n="[object Number]";function r(o){return typeof o=="number"||t(o)&&e(o)==n}return Vl=r,Vl}var Gl,Hv;function bI(){if(Hv)return Gl;Hv=1;var e=qv();function t(n){return e(n)&&n!=+n}return Gl=t,Gl}var yI=bI();const wI=Wt(yI);var xI=qv();const SI=Wt(xI);var Aa=function(t){return kv(t)&&t.indexOf("%")===t.length-1},kt=function(t){return SI(t)&&!wI(t)},Ma=function(t){return kt(t)||kv(t)};function Wl(e){"@babel/helpers - typeof";return Wl=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},Wl(e)}var CI=["viewBox","children"],_I=["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"],Vv=["points","pathLength"],Ul={svg:CI,polygon:Vv,polyline:Vv},Gv=["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"],EI=function(t,n,r){return function(o){return t(n,r,o),null}},PI=function(t,n,r){if(!$v(t)||Wl(t)!=="object")return null;var o=null;return Object.keys(t).forEach(function(a){var i=t[a];Gv.includes(a)&&typeof i=="function"&&(o||(o={}),o[a]=EI(i,n,r))}),o},TI=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},NI=function(t,n,r,o){var a,i=(a=Ul==null?void 0:Ul[o])!==null&&a!==void 0?a:[];return!Na(t)&&(o&&i.includes(n)||_I.includes(n))||Gv.includes(n)},Wv=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var o=t;if(E.isValidElement(t)&&(o=t.props),!$v(o))return null;var a={};return Object.keys(o).forEach(function(i){var s;NI((s=o)===null||s===void 0?void 0:s[i],i,n,r)&&(a[i]=o[i])}),a},RI=["children","width","height","viewBox","className","style","title","desc"];function Kl(){return Kl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kl.apply(this,arguments)}function AI(e,t){if(e==null)return{};var n=MI(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function MI(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function OI(e){var t=e.children,n=e.width,r=e.height,o=e.viewBox,a=e.className,i=e.style,s=e.title,l=e.desc,c=AI(e,RI),p=o||{width:n,height:r,x:0,y:0},d=an("recharts-surface",a);return E.createElement("svg",Kl({},Wv(c,!0,"svg"),{className:d,width:n,height:r,style:i,viewBox:"".concat(p.x," ").concat(p.y," ").concat(p.width," ").concat(p.height)}),E.createElement("title",null,s),E.createElement("desc",null,l),t)}var II=process.env.NODE_ENV!=="production",Oa=function(t,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),a=2;a<r;a++)o[a-2]=arguments[a];if(II&&typeof console<"u"&&console.warn&&(n===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(n===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(n.replace(/%s/g,function(){return o[i++]}))}},Yl,Uv;function jI(){if(Uv)return Yl;Uv=1;function e(t,n,r){var o=-1,a=t.length;n<0&&(n=-n>a?0:a+n),r=r>a?a:r,r<0&&(r+=a),a=n>r?0:r-n>>>0,n>>>=0;for(var i=Array(a);++o<a;)i[o]=t[o+n];return i}return Yl=e,Yl}var Xl,Kv;function DI(){if(Kv)return Xl;Kv=1;var e=jI();function t(n,r,o){var a=n.length;return o=o===void 0?a:o,!r&&o>=a?n:e(n,r,o)}return Xl=t,Xl}var Zl,Yv;function Xv(){if(Yv)return Zl;Yv=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",o=t+n+r,a="\\ufe0e\\ufe0f",i="\\u200d",s=RegExp("["+i+e+o+a+"]");function l(c){return s.test(c)}return Zl=l,Zl}var Jl,Zv;function kI(){if(Zv)return Jl;Zv=1;function e(t){return t.split("")}return Jl=e,Jl}var Ql,Jv;function $I(){if(Jv)return Ql;Jv=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",o=t+n+r,a="\\ufe0e\\ufe0f",i="["+e+"]",s="["+o+"]",l="\\ud83c[\\udffb-\\udfff]",c="(?:"+s+"|"+l+")",p="[^"+e+"]",d="(?:\\ud83c[\\udde6-\\uddff]){2}",m="[\\ud800-\\udbff][\\udc00-\\udfff]",b="\\u200d",g=c+"?",h="["+a+"]?",v="(?:"+b+"(?:"+[p,d,m].join("|")+")"+h+g+")*",y=h+g+v,w="(?:"+[p+s+"?",s,d,m,i].join("|")+")",x=RegExp(l+"(?="+l+")|"+w+y,"g");function S(_){return _.match(x)||[]}return Ql=S,Ql}var ec,Qv;function LI(){if(Qv)return ec;Qv=1;var e=kI(),t=Xv(),n=$I();function r(o){return t(o)?n(o):e(o)}return ec=r,ec}var tc,eb;function FI(){if(eb)return tc;eb=1;var e=DI(),t=Xv(),n=LI(),r=Tv();function o(a){return function(i){i=r(i);var s=t(i)?n(i):void 0,l=s?s[0]:i.charAt(0),c=s?e(s,1).join(""):i.slice(1);return l[a]()+c}}return tc=o,tc}var nc,tb;function BI(){if(tb)return nc;tb=1;var e=FI(),t=e("toUpperCase");return nc=t,nc}var zI=BI();const nb=Wt(zI);function Ia(e){return function(){return e}}const rb=Math.cos,ja=Math.sin,$t=Math.sqrt,Da=Math.PI,ka=2*Da,rc=Math.PI,oc=2*rc,Ln=1e-6,qI=oc-Ln;function ob(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function HI(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return ob;const n=10**t;return function(r){this._+=r[0];for(let o=1,a=r.length;o<a;++o)this._+=Math.round(arguments[o]*n)/n+r[o]}}class VI{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?ob:HI(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,o){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+o}`}bezierCurveTo(t,n,r,o,a,i){this._append`C${+t},${+n},${+r},${+o},${this._x1=+a},${this._y1=+i}`}arcTo(t,n,r,o,a){if(t=+t,n=+n,r=+r,o=+o,a=+a,a<0)throw new Error(`negative radius: ${a}`);let i=this._x1,s=this._y1,l=r-t,c=o-n,p=i-t,d=s-n,m=p*p+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(m>Ln)if(!(Math.abs(d*l-c*p)>Ln)||!a)this._append`L${this._x1=t},${this._y1=n}`;else{let b=r-i,g=o-s,h=l*l+c*c,v=b*b+g*g,y=Math.sqrt(h),w=Math.sqrt(m),x=a*Math.tan((rc-Math.acos((h+m-v)/(2*y*w)))/2),S=x/w,_=x/y;Math.abs(S-1)>Ln&&this._append`L${t+S*p},${n+S*d}`,this._append`A${a},${a},0,0,${+(d*b>p*g)},${this._x1=t+_*l},${this._y1=n+_*c}`}}arc(t,n,r,o,a,i){if(t=+t,n=+n,r=+r,i=!!i,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(o),l=r*Math.sin(o),c=t+s,p=n+l,d=1^i,m=i?o-a:a-o;this._x1===null?this._append`M${c},${p}`:(Math.abs(this._x1-c)>Ln||Math.abs(this._y1-p)>Ln)&&this._append`L${c},${p}`,r&&(m<0&&(m=m%oc+oc),m>qI?this._append`A${r},${r},0,1,${d},${t-s},${n-l}A${r},${r},0,1,${d},${this._x1=c},${this._y1=p}`:m>Ln&&this._append`A${r},${r},0,${+(m>=rc)},${d},${this._x1=t+r*Math.cos(a)},${this._y1=n+r*Math.sin(a)}`)}rect(t,n,r,o){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+o}h${-r}Z`}toString(){return this._}}function GI(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new VI(t)}const ac={draw(e,t){const n=$t(t/Da);e.moveTo(n,0),e.arc(0,0,n,0,ka)}},WI={draw(e,t){const n=$t(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},ab=$t(1/3),UI=ab*2,KI={draw(e,t){const n=$t(t/UI),r=n*ab;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},YI={draw(e,t){const n=$t(t),r=-n/2;e.rect(r,r,n,n)}},XI=.8908130915292852,ib=ja(Da/10)/ja(7*Da/10),ZI=ja(ka/10)*ib,JI=-rb(ka/10)*ib,QI={draw(e,t){const n=$t(t*XI),r=ZI*n,o=JI*n;e.moveTo(0,-n),e.lineTo(r,o);for(let a=1;a<5;++a){const i=ka*a/5,s=rb(i),l=ja(i);e.lineTo(l*n,-s*n),e.lineTo(s*r-l*o,l*r+s*o)}e.closePath()}},ic=$t(3),ej={draw(e,t){const n=-$t(t/(ic*3));e.moveTo(0,n*2),e.lineTo(-ic*n,-n),e.lineTo(ic*n,-n),e.closePath()}},Et=-.5,Pt=$t(3)/2,sc=1/$t(12),tj=(sc/2+1)*3,nj={draw(e,t){const n=$t(t/tj),r=n/2,o=n*sc,a=r,i=n*sc+n,s=-a,l=i;e.moveTo(r,o),e.lineTo(a,i),e.lineTo(s,l),e.lineTo(Et*r-Pt*o,Pt*r+Et*o),e.lineTo(Et*a-Pt*i,Pt*a+Et*i),e.lineTo(Et*s-Pt*l,Pt*s+Et*l),e.lineTo(Et*r+Pt*o,Et*o-Pt*r),e.lineTo(Et*a+Pt*i,Et*i-Pt*a),e.lineTo(Et*s+Pt*l,Et*l-Pt*s),e.closePath()}};function rj(e,t){let n=null,r=GI(o);e=typeof e=="function"?e:Ia(e||ac),t=typeof t=="function"?t:Ia(t===void 0?64:+t);function o(){let a;if(n||(n=a=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),a)return n=null,a+""||null}return o.type=function(a){return arguments.length?(e=typeof a=="function"?a:Ia(a),o):e},o.size=function(a){return arguments.length?(t=typeof a=="function"?a:Ia(+a),o):t},o.context=function(a){return arguments.length?(n=a??null,o):n},o}function Qr(e){"@babel/helpers - typeof";return Qr=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},Qr(e)}var oj=["type","size","sizeType"];function lc(){return lc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lc.apply(this,arguments)}function sb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function lb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sb(Object(n),!0).forEach(function(r){aj(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sb(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function aj(e,t,n){return t=ij(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ij(e){var t=sj(e,"string");return Qr(t)=="symbol"?t:t+""}function sj(e,t){if(Qr(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Qr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lj(e,t){if(e==null)return{};var n=cj(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function cj(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var cb={symbolCircle:ac,symbolCross:WI,symbolDiamond:KI,symbolSquare:YI,symbolStar:QI,symbolTriangle:ej,symbolWye:nj},uj=Math.PI/180,dj=function(t){var n="symbol".concat(nb(t));return cb[n]||ac},fj=function(t,n,r){if(n==="area")return t;switch(r){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*uj;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}},pj=function(t,n){cb["symbol".concat(nb(t))]=n},ub=function(t){var n=t.type,r=n===void 0?"circle":n,o=t.size,a=o===void 0?64:o,i=t.sizeType,s=i===void 0?"area":i,l=lj(t,oj),c=lb(lb({},l),{},{type:r,size:a,sizeType:s}),p=function(){var v=dj(r),y=rj().type(v).size(fj(a,s,r));return y()},d=c.className,m=c.cx,b=c.cy,g=Wv(c,!0);return m===+m&&b===+b&&a===+a?E.createElement("path",lc({},g,{className:an("recharts-symbols",d),transform:"translate(".concat(m,", ").concat(b,")"),d:p()})):null};ub.registerSymbol=pj;function lr(e){"@babel/helpers - typeof";return lr=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},lr(e)}function cc(){return cc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cc.apply(this,arguments)}function db(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function mj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?db(Object(n),!0).forEach(function(r){eo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):db(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,pb(r.key),r)}}function vj(e,t,n){return t&&gj(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function bj(e,t,n){return t=$a(t),yj(e,fb()?Reflect.construct(t,n||[],$a(e).constructor):t.apply(e,n))}function yj(e,t){if(t&&(lr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wj(e)}function wj(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(fb=function(){return!!e})()}function $a(e){return $a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},$a(e)}function xj(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&&uc(e,t)}function uc(e,t){return uc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},uc(e,t)}function eo(e,t,n){return t=pb(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pb(e){var t=Sj(e,"string");return lr(t)=="symbol"?t:t+""}function Sj(e,t){if(lr(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(lr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Lt=32,dc=function(e){function t(){return hj(this,t),bj(this,t,arguments)}return xj(t,e),vj(t,[{key:"renderIcon",value:function(r){var o=this.props.inactiveColor,a=Lt/2,i=Lt/6,s=Lt/3,l=r.inactive?o:r.color;if(r.type==="plainline")return E.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:a,x2:Lt,y2:a,className:"recharts-legend-icon"});if(r.type==="line")return E.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(a,"h").concat(s,`
|
|
202
|
-
A`).concat(i,",").concat(i,",0,1,1,").concat(2*s,",").concat(a,`
|
|
203
|
-
H`).concat(Lt,"M").concat(2*s,",").concat(a,`
|
|
204
|
-
A`).concat(i,",").concat(i,",0,1,1,").concat(s,",").concat(a),className:"recharts-legend-icon"});if(r.type==="rect")return E.createElement("path",{stroke:"none",fill:l,d:"M0,".concat(Lt/8,"h").concat(Lt,"v").concat(Lt*3/4,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(E.isValidElement(r.legendIcon)){var c=mj({},r);return delete c.legendIcon,E.cloneElement(r.legendIcon,c)}return E.createElement(ub,{fill:l,cx:a,cy:a,size:Lt,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,o=this.props,a=o.payload,i=o.iconSize,s=o.layout,l=o.formatter,c=o.inactiveColor,p={x:0,y:0,width:Lt,height:Lt},d={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||l,v=an(eo(eo({"recharts-legend-item":!0},"legend-item-".concat(g),!0),"inactive",b.inactive));if(b.type==="none")return null;var y=Na(b.value)?null:b.value;Oa(!Na(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 w=b.inactive?c:b.color;return E.createElement("li",cc({className:v,style:d,key:"legend-item-".concat(g)},PI(r.props,b,g)),E.createElement(OI,{width:i,height:i,viewBox:p,style:m},r.renderIcon(b)),E.createElement("span",{className:"recharts-legend-item-text",style:{color:w}},h?h(y,b,g):y))})}},{key:"render",value:function(){var r=this.props,o=r.payload,a=r.layout,i=r.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);eo(dc,"displayName","Legend"),eo(dc,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var fc,mb;function Cj(){if(mb)return fc;mb=1;var e=Ea();function t(){this.__data__=new e,this.size=0}return fc=t,fc}var pc,hb;function _j(){if(hb)return pc;hb=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return pc=e,pc}var mc,gb;function Ej(){if(gb)return mc;gb=1;function e(t){return this.__data__.get(t)}return mc=e,mc}var hc,vb;function Pj(){if(vb)return hc;vb=1;function e(t){return this.__data__.has(t)}return hc=e,hc}var gc,bb;function Tj(){if(bb)return gc;bb=1;var e=Ea(),t=xl(),n=Al(),r=200;function o(a,i){var s=this.__data__;if(s instanceof e){var l=s.__data__;if(!t||l.length<r-1)return l.push([a,i]),this.size=++s.size,this;s=this.__data__=new n(l)}return s.set(a,i),this.size=s.size,this}return gc=o,gc}var vc,yb;function wb(){if(yb)return vc;yb=1;var e=Ea(),t=Cj(),n=_j(),r=Ej(),o=Pj(),a=Tj();function i(s){var l=this.__data__=new e(s);this.size=l.size}return i.prototype.clear=t,i.prototype.delete=n,i.prototype.get=r,i.prototype.has=o,i.prototype.set=a,vc=i,vc}var bc,xb;function Nj(){if(xb)return bc;xb=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return bc=t,bc}var yc,Sb;function Rj(){if(Sb)return yc;Sb=1;function e(t){return this.__data__.has(t)}return yc=e,yc}var wc,Cb;function _b(){if(Cb)return wc;Cb=1;var e=Al(),t=Nj(),n=Rj();function r(o){var a=-1,i=o==null?0:o.length;for(this.__data__=new e;++a<i;)this.add(o[a])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,wc=r,wc}var xc,Eb;function Aj(){if(Eb)return xc;Eb=1;function e(t,n){for(var r=-1,o=t==null?0:t.length;++r<o;)if(n(t[r],r,t))return!0;return!1}return xc=e,xc}var Sc,Pb;function Tb(){if(Pb)return Sc;Pb=1;function e(t,n){return t.has(n)}return Sc=e,Sc}var Cc,Nb;function Rb(){if(Nb)return Cc;Nb=1;var e=_b(),t=Aj(),n=Tb(),r=1,o=2;function a(i,s,l,c,p,d){var m=l&r,b=i.length,g=s.length;if(b!=g&&!(m&&g>b))return!1;var h=d.get(i),v=d.get(s);if(h&&v)return h==s&&v==i;var y=-1,w=!0,x=l&o?new e:void 0;for(d.set(i,s),d.set(s,i);++y<b;){var S=i[y],_=s[y];if(c)var P=m?c(_,S,y,s,i,d):c(S,_,y,i,s,d);if(P!==void 0){if(P)continue;w=!1;break}if(x){if(!t(s,function(C,M){if(!n(x,M)&&(S===C||p(S,C,l,c,d)))return x.push(M)})){w=!1;break}}else if(!(S===_||p(S,_,l,c,d))){w=!1;break}}return d.delete(i),d.delete(s),w}return Cc=a,Cc}var _c,Ab;function Mj(){if(Ab)return _c;Ab=1;var e=Kt(),t=e.Uint8Array;return _c=t,_c}var Ec,Mb;function Oj(){if(Mb)return Ec;Mb=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(o,a){r[++n]=[a,o]}),r}return Ec=e,Ec}var Pc,Ob;function Tc(){if(Ob)return Pc;Ob=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(o){r[++n]=o}),r}return Pc=e,Pc}var Nc,Ib;function Ij(){if(Ib)return Nc;Ib=1;var e=Zr(),t=Mj(),n=pl(),r=Rb(),o=Oj(),a=Tc(),i=1,s=2,l="[object Boolean]",c="[object Date]",p="[object Error]",d="[object Map]",m="[object Number]",b="[object RegExp]",g="[object Set]",h="[object String]",v="[object Symbol]",y="[object ArrayBuffer]",w="[object DataView]",x=e?e.prototype:void 0,S=x?x.valueOf:void 0;function _(P,C,M,N,$,D,F){switch(M){case w:if(P.byteLength!=C.byteLength||P.byteOffset!=C.byteOffset)return!1;P=P.buffer,C=C.buffer;case y:return!(P.byteLength!=C.byteLength||!D(new t(P),new t(C)));case l:case c:case m:return n(+P,+C);case p:return P.name==C.name&&P.message==C.message;case b:case h:return P==C+"";case d:var A=o;case g:var k=N&i;if(A||(A=a),P.size!=C.size&&!k)return!1;var L=F.get(P);if(L)return L==C;N|=s,F.set(P,C);var I=r(A(P),A(C),N,$,D,F);return F.delete(P),I;case v:if(S)return S.call(P)==S.call(C)}return!1}return Nc=_,Nc}var Rc,jb;function Db(){if(jb)return Rc;jb=1;function e(t,n){for(var r=-1,o=n.length,a=t.length;++r<o;)t[a+r]=n[r];return t}return Rc=e,Rc}var Ac,kb;function jj(){if(kb)return Ac;kb=1;var e=Db(),t=Dt();function n(r,o,a){var i=o(r);return t(r)?i:e(i,a(r))}return Ac=n,Ac}var Mc,$b;function Dj(){if($b)return Mc;$b=1;function e(t,n){for(var r=-1,o=t==null?0:t.length,a=0,i=[];++r<o;){var s=t[r];n(s,r,t)&&(i[a++]=s)}return i}return Mc=e,Mc}var Oc,Lb;function kj(){if(Lb)return Oc;Lb=1;function e(){return[]}return Oc=e,Oc}var Ic,Fb;function $j(){if(Fb)return Ic;Fb=1;var e=Dj(),t=kj(),n=Object.prototype,r=n.propertyIsEnumerable,o=Object.getOwnPropertySymbols,a=o?function(i){return i==null?[]:(i=Object(i),e(o(i),function(s){return r.call(i,s)}))}:t;return Ic=a,Ic}var jc,Bb;function Lj(){if(Bb)return jc;Bb=1;function e(t,n){for(var r=-1,o=Array(t);++r<t;)o[r]=n(r);return o}return jc=e,jc}var Dc,zb;function Fj(){if(zb)return Dc;zb=1;var e=Dn(),t=kn(),n="[object Arguments]";function r(o){return t(o)&&e(o)==n}return Dc=r,Dc}var kc,qb;function $c(){if(qb)return kc;qb=1;var e=Fj(),t=kn(),n=Object.prototype,r=n.hasOwnProperty,o=n.propertyIsEnumerable,a=e(function(){return arguments}())?e:function(i){return t(i)&&r.call(i,"callee")&&!o.call(i,"callee")};return kc=a,kc}var to={exports:{}},Lc,Hb;function Bj(){if(Hb)return Lc;Hb=1;function e(){return!1}return Lc=e,Lc}to.exports;var Vb;function Gb(){return Vb||(Vb=1,function(e,t){var n=Kt(),r=Bj(),o=t&&!t.nodeType&&t,a=o&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===o,s=i?n.Buffer:void 0,l=s?s.isBuffer:void 0,c=l||r;e.exports=c}(to,to.exports)),to.exports}var Fc,Wb;function Bc(){if(Wb)return Fc;Wb=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(r,o){var a=typeof r;return o=o??e,!!o&&(a=="number"||a!="symbol"&&t.test(r))&&r>-1&&r%1==0&&r<o}return Fc=n,Fc}var zc,Ub;function qc(){if(Ub)return zc;Ub=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return zc=t,zc}var Hc,Kb;function zj(){if(Kb)return Hc;Kb=1;var e=Dn(),t=qc(),n=kn(),r="[object Arguments]",o="[object Array]",a="[object Boolean]",i="[object Date]",s="[object Error]",l="[object Function]",c="[object Map]",p="[object Number]",d="[object Object]",m="[object RegExp]",b="[object Set]",g="[object String]",h="[object WeakMap]",v="[object ArrayBuffer]",y="[object DataView]",w="[object Float32Array]",x="[object Float64Array]",S="[object Int8Array]",_="[object Int16Array]",P="[object Int32Array]",C="[object Uint8Array]",M="[object Uint8ClampedArray]",N="[object Uint16Array]",$="[object Uint32Array]",D={};D[w]=D[x]=D[S]=D[_]=D[P]=D[C]=D[M]=D[N]=D[$]=!0,D[r]=D[o]=D[v]=D[a]=D[y]=D[i]=D[s]=D[l]=D[c]=D[p]=D[d]=D[m]=D[b]=D[g]=D[h]=!1;function F(A){return n(A)&&t(A.length)&&!!D[e(A)]}return Hc=F,Hc}var Vc,Yb;function Xb(){if(Yb)return Vc;Yb=1;function e(t){return function(n){return t(n)}}return Vc=e,Vc}var no={exports:{}};no.exports;var Zb;function qj(){return Zb||(Zb=1,function(e,t){var n=Og(),r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===r,i=a&&n.process,s=function(){try{var l=o&&o.require&&o.require("util").types;return l||i&&i.binding&&i.binding("util")}catch{}}();e.exports=s}(no,no.exports)),no.exports}var Gc,Jb;function Qb(){if(Jb)return Gc;Jb=1;var e=zj(),t=Xb(),n=qj(),r=n&&n.isTypedArray,o=r?t(r):e;return Gc=o,Gc}var Wc,ey;function Hj(){if(ey)return Wc;ey=1;var e=Lj(),t=$c(),n=Dt(),r=Gb(),o=Bc(),a=Qb(),i=Object.prototype,s=i.hasOwnProperty;function l(c,p){var d=n(c),m=!d&&t(c),b=!d&&!m&&r(c),g=!d&&!m&&!b&&a(c),h=d||m||b||g,v=h?e(c.length,String):[],y=v.length;for(var w in c)(p||s.call(c,w))&&!(h&&(w=="length"||b&&(w=="offset"||w=="parent")||g&&(w=="buffer"||w=="byteLength"||w=="byteOffset")||o(w,y)))&&v.push(w);return v}return Wc=l,Wc}var Uc,ty;function Vj(){if(ty)return Uc;ty=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,o=typeof r=="function"&&r.prototype||e;return n===o}return Uc=t,Uc}var Kc,ny;function Gj(){if(ny)return Kc;ny=1;function e(t,n){return function(r){return t(n(r))}}return Kc=e,Kc}var Yc,ry;function Wj(){if(ry)return Yc;ry=1;var e=Gj(),t=e(Object.keys,Object);return Yc=t,Yc}var Xc,oy;function Uj(){if(oy)return Xc;oy=1;var e=Vj(),t=Wj(),n=Object.prototype,r=n.hasOwnProperty;function o(a){if(!e(a))return t(a);var i=[];for(var s in Object(a))r.call(a,s)&&s!="constructor"&&i.push(s);return i}return Xc=o,Xc}var Zc,ay;function La(){if(ay)return Zc;ay=1;var e=Zs(),t=qc();function n(r){return r!=null&&t(r.length)&&!e(r)}return Zc=n,Zc}var Jc,iy;function Qc(){if(iy)return Jc;iy=1;var e=Hj(),t=Uj(),n=La();function r(o){return n(o)?e(o):t(o)}return Jc=r,Jc}var eu,sy;function Kj(){if(sy)return eu;sy=1;var e=jj(),t=$j(),n=Qc();function r(o){return e(o,n,t)}return eu=r,eu}var tu,ly;function Yj(){if(ly)return tu;ly=1;var e=Kj(),t=1,n=Object.prototype,r=n.hasOwnProperty;function o(a,i,s,l,c,p){var d=s&t,m=e(a),b=m.length,g=e(i),h=g.length;if(b!=h&&!d)return!1;for(var v=b;v--;){var y=m[v];if(!(d?y in i:r.call(i,y)))return!1}var w=p.get(a),x=p.get(i);if(w&&x)return w==i&&x==a;var S=!0;p.set(a,i),p.set(i,a);for(var _=d;++v<b;){y=m[v];var P=a[y],C=i[y];if(l)var M=d?l(C,P,y,i,a,p):l(P,C,y,a,i,p);if(!(M===void 0?P===C||c(P,C,s,l,p):M)){S=!1;break}_||(_=y=="constructor")}if(S&&!_){var N=a.constructor,$=i.constructor;N!=$&&"constructor"in a&&"constructor"in i&&!(typeof N=="function"&&N instanceof N&&typeof $=="function"&&$ instanceof $)&&(S=!1)}return p.delete(a),p.delete(i),S}return tu=o,tu}var nu,cy;function Xj(){if(cy)return nu;cy=1;var e=$n(),t=Kt(),n=e(t,"DataView");return nu=n,nu}var ru,uy;function Zj(){if(uy)return ru;uy=1;var e=$n(),t=Kt(),n=e(t,"Promise");return ru=n,ru}var ou,dy;function fy(){if(dy)return ou;dy=1;var e=$n(),t=Kt(),n=e(t,"Set");return ou=n,ou}var au,py;function Jj(){if(py)return au;py=1;var e=$n(),t=Kt(),n=e(t,"WeakMap");return au=n,au}var iu,my;function Qj(){if(my)return iu;my=1;var e=Xj(),t=xl(),n=Zj(),r=fy(),o=Jj(),a=Dn(),i=Wg(),s="[object Map]",l="[object Object]",c="[object Promise]",p="[object Set]",d="[object WeakMap]",m="[object DataView]",b=i(e),g=i(t),h=i(n),v=i(r),y=i(o),w=a;return(e&&w(new e(new ArrayBuffer(1)))!=m||t&&w(new t)!=s||n&&w(n.resolve())!=c||r&&w(new r)!=p||o&&w(new o)!=d)&&(w=function(x){var S=a(x),_=S==l?x.constructor:void 0,P=_?i(_):"";if(P)switch(P){case b:return m;case g:return s;case h:return c;case v:return p;case y:return d}return S}),iu=w,iu}var su,hy;function eD(){if(hy)return su;hy=1;var e=wb(),t=Rb(),n=Ij(),r=Yj(),o=Qj(),a=Dt(),i=Gb(),s=Qb(),l=1,c="[object Arguments]",p="[object Array]",d="[object Object]",m=Object.prototype,b=m.hasOwnProperty;function g(h,v,y,w,x,S){var _=a(h),P=a(v),C=_?p:o(h),M=P?p:o(v);C=C==c?d:C,M=M==c?d:M;var N=C==d,$=M==d,D=C==M;if(D&&i(h)){if(!i(v))return!1;_=!0,N=!1}if(D&&!N)return S||(S=new e),_||s(h)?t(h,v,y,w,x,S):n(h,v,C,y,w,x,S);if(!(y&l)){var F=N&&b.call(h,"__wrapped__"),A=$&&b.call(v,"__wrapped__");if(F||A){var k=F?h.value():h,L=A?v.value():v;return S||(S=new e),x(k,L,y,w,S)}}return D?(S||(S=new e),r(h,v,y,w,x,S)):!1}return su=g,su}var lu,gy;function vy(){if(gy)return lu;gy=1;var e=eD(),t=kn();function n(r,o,a,i,s){return r===o?!0:r==null||o==null||!t(r)&&!t(o)?r!==r&&o!==o:e(r,o,a,i,n,s)}return lu=n,lu}var cu,by;function tD(){if(by)return cu;by=1;var e=wb(),t=vy(),n=1,r=2;function o(a,i,s,l){var c=s.length,p=c,d=!l;if(a==null)return!p;for(a=Object(a);c--;){var m=s[c];if(d&&m[2]?m[1]!==a[m[0]]:!(m[0]in a))return!1}for(;++c<p;){m=s[c];var b=m[0],g=a[b],h=m[1];if(d&&m[2]){if(g===void 0&&!(b in a))return!1}else{var v=new e;if(l)var y=l(g,h,b,a,i,v);if(!(y===void 0?t(h,g,n|r,l,v):y))return!1}}return!0}return cu=o,cu}var uu,yy;function wy(){if(yy)return uu;yy=1;var e=bn();function t(n){return n===n&&!e(n)}return uu=t,uu}var du,xy;function nD(){if(xy)return du;xy=1;var e=wy(),t=Qc();function n(r){for(var o=t(r),a=o.length;a--;){var i=o[a],s=r[i];o[a]=[i,s,e(s)]}return o}return du=n,du}var fu,Sy;function Cy(){if(Sy)return fu;Sy=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return fu=e,fu}var pu,_y;function rD(){if(_y)return pu;_y=1;var e=tD(),t=nD(),n=Cy();function r(o){var a=t(o);return a.length==1&&a[0][2]?n(a[0][0],a[0][1]):function(i){return i===o||e(i,o,a)}}return pu=r,pu}var mu,Ey;function oD(){if(Ey)return mu;Ey=1;function e(t,n){return t!=null&&n in Object(t)}return mu=e,mu}var hu,Py;function aD(){if(Py)return hu;Py=1;var e=Rv(),t=$c(),n=Dt(),r=Bc(),o=qc(),a=Ta();function i(s,l,c){l=e(l,s);for(var p=-1,d=l.length,m=!1;++p<d;){var b=a(l[p]);if(!(m=s!=null&&c(s,b)))break;s=s[b]}return m||++p!=d?m:(d=s==null?0:s.length,!!d&&o(d)&&r(b,d)&&(n(s)||t(s)))}return hu=i,hu}var gu,Ty;function iD(){if(Ty)return gu;Ty=1;var e=oD(),t=aD();function n(r,o){return r!=null&&t(r,o,e)}return gu=n,gu}var vu,Ny;function sD(){if(Ny)return vu;Ny=1;var e=vy(),t=Iv(),n=iD(),r=Ks(),o=wy(),a=Cy(),i=Ta(),s=1,l=2;function c(p,d){return r(p)&&o(d)?a(i(p),d):function(m){var b=t(m,p);return b===void 0&&b===d?n(m,p):e(d,b,s|l)}}return vu=c,vu}var bu,Ry;function Fa(){if(Ry)return bu;Ry=1;function e(t){return t}return bu=e,bu}var yu,Ay;function lD(){if(Ay)return yu;Ay=1;function e(t){return function(n){return n==null?void 0:n[t]}}return yu=e,yu}var wu,My;function cD(){if(My)return wu;My=1;var e=Bl();function t(n){return function(r){return e(r,n)}}return wu=t,wu}var xu,Oy;function uD(){if(Oy)return xu;Oy=1;var e=lD(),t=cD(),n=Ks(),r=Ta();function o(a){return n(a)?e(r(a)):t(a)}return xu=o,xu}var Su,Iy;function jy(){if(Iy)return Su;Iy=1;var e=rD(),t=sD(),n=Fa(),r=Dt(),o=uD();function a(i){return typeof i=="function"?i:i==null?n:typeof i=="object"?r(i)?t(i[0],i[1]):e(i):o(i)}return Su=a,Su}var Cu,Dy;function dD(){if(Dy)return Cu;Dy=1;function e(t,n,r,o){for(var a=t.length,i=r+(o?1:-1);o?i--:++i<a;)if(n(t[i],i,t))return i;return-1}return Cu=e,Cu}var _u,ky;function fD(){if(ky)return _u;ky=1;function e(t){return t!==t}return _u=e,_u}var Eu,$y;function pD(){if($y)return Eu;$y=1;function e(t,n,r){for(var o=r-1,a=t.length;++o<a;)if(t[o]===n)return o;return-1}return Eu=e,Eu}var Pu,Ly;function mD(){if(Ly)return Pu;Ly=1;var e=dD(),t=fD(),n=pD();function r(o,a,i){return a===a?n(o,a,i):e(o,t,i)}return Pu=r,Pu}var Tu,Fy;function hD(){if(Fy)return Tu;Fy=1;var e=mD();function t(n,r){var o=n==null?0:n.length;return!!o&&e(n,r,0)>-1}return Tu=t,Tu}var Nu,By;function gD(){if(By)return Nu;By=1;function e(t,n,r){for(var o=-1,a=t==null?0:t.length;++o<a;)if(r(n,t[o]))return!0;return!1}return Nu=e,Nu}var Ru,zy;function vD(){if(zy)return Ru;zy=1;function e(){}return Ru=e,Ru}var Au,qy;function bD(){if(qy)return Au;qy=1;var e=fy(),t=vD(),n=Tc(),r=1/0,o=e&&1/n(new e([,-0]))[1]==r?function(a){return new e(a)}:t;return Au=o,Au}var Mu,Hy;function yD(){if(Hy)return Mu;Hy=1;var e=_b(),t=hD(),n=gD(),r=Tb(),o=bD(),a=Tc(),i=200;function s(l,c,p){var d=-1,m=t,b=l.length,g=!0,h=[],v=h;if(p)g=!1,m=n;else if(b>=i){var y=c?null:o(l);if(y)return a(y);g=!1,m=r,v=new e}else v=c?[]:h;e:for(;++d<b;){var w=l[d],x=c?c(w):w;if(w=p||w!==0?w:0,g&&x===x){for(var S=v.length;S--;)if(v[S]===x)continue e;c&&v.push(x),h.push(w)}else m(v,x,p)||(v!==h&&v.push(x),h.push(w))}return h}return Mu=s,Mu}var Ou,Vy;function wD(){if(Vy)return Ou;Vy=1;var e=jy(),t=yD();function n(r,o){return r&&r.length?t(r,e(o,2)):[]}return Ou=n,Ou}var xD=wD();const Gy=Wt(xD);function Wy(e,t,n){return t===!0?Gy(e,n):Na(t)?Gy(e,t):e}function cr(e){"@babel/helpers - typeof";return cr=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},cr(e)}var SD=["ref"];function Uy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function un(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Uy(Object(n),!0).forEach(function(r){za(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uy(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function CD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ky(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Xy(r.key),r)}}function _D(e,t,n){return t&&Ky(e.prototype,t),n&&Ky(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ED(e,t,n){return t=Ba(t),PD(e,Yy()?Reflect.construct(t,n||[],Ba(e).constructor):t.apply(e,n))}function PD(e,t){if(t&&(cr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return TD(e)}function TD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Yy(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Yy=function(){return!!e})()}function Ba(e){return Ba=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ba(e)}function ND(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&&Iu(e,t)}function Iu(e,t){return Iu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Iu(e,t)}function za(e,t,n){return t=Xy(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xy(e){var t=RD(e,"string");return cr(t)=="symbol"?t:t+""}function RD(e,t){if(cr(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(cr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function AD(e,t){if(e==null)return{};var n=MD(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function MD(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function OD(e){return e.value}function ID(e,t){if(E.isValidElement(e))return E.cloneElement(e,t);if(typeof e=="function")return E.createElement(e,t);t.ref;var n=AD(t,SD);return E.createElement(dc,n)}var Zy=1,ju=function(e){function t(){var n;CD(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return n=ED(this,t,[].concat(o)),za(n,"lastBoundingBox",{width:-1,height:-1}),n}return ND(t,e),_D(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();return r.height=this.wrapperNode.offsetHeight,r.width=this.wrapperNode.offsetWidth,r}return null}},{key:"updateBBox",value:function(){var r=this.props.onBBoxUpdate,o=this.getBBox();o?(Math.abs(o.width-this.lastBoundingBox.width)>Zy||Math.abs(o.height-this.lastBoundingBox.height)>Zy)&&(this.lastBoundingBox.width=o.width,this.lastBoundingBox.height=o.height,r&&r(o)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,r&&r(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?un({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var o=this.props,a=o.layout,i=o.align,s=o.verticalAlign,l=o.margin,c=o.chartWidth,p=o.chartHeight,d,m;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(i==="center"&&a==="vertical"){var b=this.getBBoxSnapshot();d={left:((c||0)-b.width)/2}}else d=i==="right"?{right:l&&l.right||0}:{left:l&&l.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(s==="middle"){var g=this.getBBoxSnapshot();m={top:((p||0)-g.height)/2}}else m=s==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return un(un({},d),m)}},{key:"render",value:function(){var r=this,o=this.props,a=o.content,i=o.width,s=o.height,l=o.wrapperStyle,c=o.payloadUniqBy,p=o.payload,d=un(un({position:"absolute",width:i||"auto",height:s||"auto"},this.getDefaultPosition(l)),l);return E.createElement("div",{className:"recharts-legend-wrapper",style:d,ref:function(b){r.wrapperNode=b}},ID(a,un(un({},this.props),{},{payload:Wy(p,c,OD)})))}}],[{key:"getWithHeight",value:function(r,o){var a=un(un({},this.defaultProps),r.props),i=a.layout;return i==="vertical"&&kt(r.props.height)?{height:r.props.height}:i==="horizontal"?{width:r.props.width||o}:null}}])}(E.PureComponent);za(ju,"displayName","Legend"),za(ju,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Du,Jy;function jD(){if(Jy)return Du;Jy=1;var e=Zr(),t=$c(),n=Dt(),r=e?e.isConcatSpreadable:void 0;function o(a){return n(a)||t(a)||!!(r&&a&&a[r])}return Du=o,Du}var ku,Qy;function DD(){if(Qy)return ku;Qy=1;var e=Db(),t=jD();function n(r,o,a,i,s){var l=-1,c=r.length;for(a||(a=t),s||(s=[]);++l<c;){var p=r[l];o>0&&a(p)?o>1?n(p,o-1,a,i,s):e(s,p):i||(s[s.length]=p)}return s}return ku=n,ku}var $u,ew;function kD(){if(ew)return $u;ew=1;function e(t){return function(n,r,o){for(var a=-1,i=Object(n),s=o(n),l=s.length;l--;){var c=s[t?l:++a];if(r(i[c],c,i)===!1)break}return n}}return $u=e,$u}var Lu,tw;function $D(){if(tw)return Lu;tw=1;var e=kD(),t=e();return Lu=t,Lu}var Fu,nw;function LD(){if(nw)return Fu;nw=1;var e=$D(),t=Qc();function n(r,o){return r&&e(r,o,t)}return Fu=n,Fu}var Bu,rw;function FD(){if(rw)return Bu;rw=1;var e=La();function t(n,r){return function(o,a){if(o==null)return o;if(!e(o))return n(o,a);for(var i=o.length,s=r?i:-1,l=Object(o);(r?s--:++s<i)&&a(l[s],s,l)!==!1;);return o}}return Bu=t,Bu}var zu,ow;function BD(){if(ow)return zu;ow=1;var e=LD(),t=FD(),n=t(e);return zu=n,zu}var qu,aw;function zD(){if(aw)return qu;aw=1;var e=BD(),t=La();function n(r,o){var a=-1,i=t(r)?Array(r.length):[];return e(r,function(s,l,c){i[++a]=o(s,l,c)}),i}return qu=n,qu}var Hu,iw;function qD(){if(iw)return Hu;iw=1;function e(t,n){var r=t.length;for(t.sort(n);r--;)t[r]=t[r].value;return t}return Hu=e,Hu}var Vu,sw;function HD(){if(sw)return Vu;sw=1;var e=Jr();function t(n,r){if(n!==r){var o=n!==void 0,a=n===null,i=n===n,s=e(n),l=r!==void 0,c=r===null,p=r===r,d=e(r);if(!c&&!d&&!s&&n>r||s&&l&&p&&!c&&!d||a&&l&&p||!o&&p||!i)return 1;if(!a&&!s&&!d&&n<r||d&&o&&i&&!a&&!s||c&&o&&i||!l&&i||!p)return-1}return 0}return Vu=t,Vu}var Gu,lw;function VD(){if(lw)return Gu;lw=1;var e=HD();function t(n,r,o){for(var a=-1,i=n.criteria,s=r.criteria,l=i.length,c=o.length;++a<l;){var p=e(i[a],s[a]);if(p){if(a>=c)return p;var d=o[a];return p*(d=="desc"?-1:1)}}return n.index-r.index}return Gu=t,Gu}var Wu,cw;function GD(){if(cw)return Wu;cw=1;var e=_v(),t=Bl(),n=jy(),r=zD(),o=qD(),a=Xb(),i=VD(),s=Fa(),l=Dt();function c(p,d,m){d.length?d=e(d,function(h){return l(h)?function(v){return t(v,h.length===1?h[0]:h)}:h}):d=[s];var b=-1;d=e(d,a(n));var g=r(p,function(h,v,y){var w=e(d,function(x){return x(h)});return{criteria:w,index:++b,value:h}});return o(g,function(h,v){return i(h,v,m)})}return Wu=c,Wu}var Uu,uw;function WD(){if(uw)return Uu;uw=1;function e(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}return Uu=e,Uu}var Ku,dw;function UD(){if(dw)return Ku;dw=1;var e=WD(),t=Math.max;function n(r,o,a){return o=t(o===void 0?r.length-1:o,0),function(){for(var i=arguments,s=-1,l=t(i.length-o,0),c=Array(l);++s<l;)c[s]=i[o+s];s=-1;for(var p=Array(o+1);++s<o;)p[s]=i[s];return p[o]=a(c),e(r,this,p)}}return Ku=n,Ku}var Yu,fw;function KD(){if(fw)return Yu;fw=1;function e(t){return function(){return t}}return Yu=e,Yu}var Xu,pw;function YD(){if(pw)return Xu;pw=1;var e=$n(),t=function(){try{var n=e(Object,"defineProperty");return n({},"",{}),n}catch{}}();return Xu=t,Xu}var Zu,mw;function XD(){if(mw)return Zu;mw=1;var e=KD(),t=YD(),n=Fa(),r=t?function(o,a){return t(o,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:n;return Zu=r,Zu}var Ju,hw;function ZD(){if(hw)return Ju;hw=1;var e=800,t=16,n=Date.now;function r(o){var a=0,i=0;return function(){var s=n(),l=t-(s-i);if(i=s,l>0){if(++a>=e)return arguments[0]}else a=0;return o.apply(void 0,arguments)}}return Ju=r,Ju}var Qu,gw;function JD(){if(gw)return Qu;gw=1;var e=XD(),t=ZD(),n=t(e);return Qu=n,Qu}var ed,vw;function QD(){if(vw)return ed;vw=1;var e=Fa(),t=UD(),n=JD();function r(o,a){return n(t(o,a,e),o+"")}return ed=r,ed}var td,bw;function ek(){if(bw)return td;bw=1;var e=pl(),t=La(),n=Bc(),r=bn();function o(a,i,s){if(!r(s))return!1;var l=typeof i;return(l=="number"?t(s)&&n(i,s.length):l=="string"&&i in s)?e(s[i],a):!1}return td=o,td}var nd,yw;function tk(){if(yw)return nd;yw=1;var e=DD(),t=GD(),n=QD(),r=ek(),o=n(function(a,i){if(a==null)return[];var s=i.length;return s>1&&r(a,i[0],i[1])?i=[]:s>2&&r(i[0],i[1],i[2])&&(i=[i[0]]),t(a,e(i,1),[])});return nd=o,nd}var nk=tk();const rk=Wt(nk);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 rd(){return rd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rd.apply(this,arguments)}function ok(e,t){return lk(e)||sk(e,t)||ik(e,t)||ak()}function ak(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
205
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ik(e,t){if(e){if(typeof e=="string")return ww(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ww(e,t)}}function ww(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function sk(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(p){c=!0,o=p}finally{try{if(!l&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}function lk(e){if(Array.isArray(e))return e}function xw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function od(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xw(Object(n),!0).forEach(function(r){ck(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ck(e,t,n){return t=uk(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uk(e){var t=dk(e,"string");return ro(t)=="symbol"?t:t+""}function dk(e,t){if(ro(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ro(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fk(e){return Array.isArray(e)&&Ma(e[0])&&Ma(e[1])?e.join(" ~ "):e}var pk=function(t){var n=t.separator,r=n===void 0?" : ":n,o=t.contentStyle,a=o===void 0?{}:o,i=t.itemStyle,s=i===void 0?{}:i,l=t.labelStyle,c=l===void 0?{}:l,p=t.payload,d=t.formatter,m=t.itemSorter,b=t.wrapperClassName,g=t.labelClassName,h=t.label,v=t.labelFormatter,y=t.accessibilityLayer,w=y===void 0?!1:y,x=function(){if(p&&p.length){var F={padding:0,margin:0},A=(m?rk(p,m):p).map(function(k,L){if(k.type==="none")return null;var I=od({display:"block",paddingTop:4,paddingBottom:4,color:k.color||"#000"},s),W=k.formatter||d||fk,V=k.value,q=k.name,ae=V,J=q;if(W&&ae!=null&&J!=null){var ne=W(V,q,k,L,p);if(Array.isArray(ne)){var z=ok(ne,2);ae=z[0],J=z[1]}else ae=ne}return E.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(L),style:I},Ma(J)?E.createElement("span",{className:"recharts-tooltip-item-name"},J):null,Ma(J)?E.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,E.createElement("span",{className:"recharts-tooltip-item-value"},ae),E.createElement("span",{className:"recharts-tooltip-item-unit"},k.unit||""))});return E.createElement("ul",{className:"recharts-tooltip-item-list",style:F},A)}return null},S=od({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),_=od({margin:0},c),P=!uI(h),C=P?h:"",M=an("recharts-default-tooltip",b),N=an("recharts-tooltip-label",g);P&&v&&p!==void 0&&p!==null&&(C=v(h,p));var $=w?{role:"status","aria-live":"assertive"}:{};return E.createElement("div",rd({className:M,style:S},$),E.createElement("p",{className:N,style:_},E.isValidElement(C)?C:"".concat(C)),x())};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 qa(e,t,n){return t=mk(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mk(e){var t=hk(e,"string");return oo(t)=="symbol"?t:t+""}function hk(e,t){if(oo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(oo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ao="recharts-tooltip-wrapper",gk={visibility:"hidden"};function vk(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return an(ao,qa(qa(qa(qa({},"".concat(ao,"-right"),kt(n)&&t&&kt(t.x)&&n>=t.x),"".concat(ao,"-left"),kt(n)&&t&&kt(t.x)&&n<t.x),"".concat(ao,"-bottom"),kt(r)&&t&&kt(t.y)&&r>=t.y),"".concat(ao,"-top"),kt(r)&&t&&kt(t.y)&&r<t.y))}function Sw(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,o=e.offsetTopLeft,a=e.position,i=e.reverseDirection,s=e.tooltipDimension,l=e.viewBox,c=e.viewBoxDimension;if(a&&kt(a[r]))return a[r];var p=n[r]-s-o,d=n[r]+o;if(t[r])return i[r]?p:d;if(i[r]){var m=p,b=l[r];return m<b?Math.max(d,l[r]):Math.max(p,l[r])}var g=d+s,h=l[r]+c;return g>h?Math.max(p,l[r]):Math.max(d,l[r])}function bk(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function yk(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,o=e.position,a=e.reverseDirection,i=e.tooltipBox,s=e.useTranslate3d,l=e.viewBox,c,p,d;return i.height>0&&i.width>0&&n?(p=Sw({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:o,reverseDirection:a,tooltipDimension:i.width,viewBox:l,viewBoxDimension:l.width}),d=Sw({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:o,reverseDirection:a,tooltipDimension:i.height,viewBox:l,viewBoxDimension:l.height}),c=bk({translateX:p,translateY:d,useTranslate3d:s})):c=gk,{cssProperties:c,cssClasses:vk({translateX:p,translateY:d,coordinate:n})}}function ur(e){"@babel/helpers - typeof";return ur=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},ur(e)}function Cw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function _w(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Cw(Object(n),!0).forEach(function(r){id(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Pw(r.key),r)}}function Sk(e,t,n){return t&&xk(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ck(e,t,n){return t=Ha(t),_k(e,Ew()?Reflect.construct(t,n||[],Ha(e).constructor):t.apply(e,n))}function _k(e,t){if(t&&(ur(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ek(e)}function Ek(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ew(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ew=function(){return!!e})()}function Ha(e){return Ha=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ha(e)}function Pk(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&&ad(e,t)}function ad(e,t){return ad=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},ad(e,t)}function id(e,t,n){return t=Pw(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pw(e){var t=Tk(e,"string");return ur(t)=="symbol"?t:t+""}function Tk(e,t){if(ur(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ur(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Tw=1,Nk=function(e){function t(){var n;wk(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return n=Ck(this,t,[].concat(o)),id(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),id(n,"handleKeyDown",function(i){if(i.key==="Escape"){var s,l,c,p;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(s=(l=n.props.coordinate)===null||l===void 0?void 0:l.x)!==null&&s!==void 0?s:0,y:(c=(p=n.props.coordinate)===null||p===void 0?void 0:p.y)!==null&&c!==void 0?c:0}})}}),n}return Pk(t,e),Sk(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>Tw||Math.abs(r.height-this.state.lastBoundingBox.height)>Tw)&&this.setState({lastBoundingBox:{width:r.width,height:r.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 r,o;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.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 r=this,o=this.props,a=o.active,i=o.allowEscapeViewBox,s=o.animationDuration,l=o.animationEasing,c=o.children,p=o.coordinate,d=o.hasPayload,m=o.isAnimationActive,b=o.offset,g=o.position,h=o.reverseDirection,v=o.useTranslate3d,y=o.viewBox,w=o.wrapperStyle,x=yk({allowEscapeViewBox:i,coordinate:p,offsetTopLeft:b,position:g,reverseDirection:h,tooltipBox:this.state.lastBoundingBox,useTranslate3d:v,viewBox:y}),S=x.cssClasses,_=x.cssProperties,P=_w(_w({transition:m&&a?"transform ".concat(s,"ms ").concat(l):void 0},_),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&d?"visible":"hidden",position:"absolute",top:0,left:0},w);return E.createElement("div",{tabIndex:-1,className:S,style:P,ref:function(M){r.wrapperNode=M}},c)}}])}(E.PureComponent),Rk=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Ak={isSsr:Rk()};function dr(e){"@babel/helpers - typeof";return dr=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},dr(e)}function Nw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Rw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Nw(Object(n),!0).forEach(function(r){ld(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Mk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ok(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Mw(r.key),r)}}function Ik(e,t,n){return t&&Ok(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function jk(e,t,n){return t=Va(t),Dk(e,Aw()?Reflect.construct(t,n||[],Va(e).constructor):t.apply(e,n))}function Dk(e,t){if(t&&(dr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return kk(e)}function kk(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Aw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Aw=function(){return!!e})()}function Va(e){return Va=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Va(e)}function $k(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&&sd(e,t)}function sd(e,t){return sd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},sd(e,t)}function ld(e,t,n){return t=Mw(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mw(e){var t=Lk(e,"string");return dr(t)=="symbol"?t:t+""}function Lk(e,t){if(dr(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(dr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Fk(e){return e.dataKey}function Bk(e,t){return E.isValidElement(e)?E.cloneElement(e,t):typeof e=="function"?E.createElement(e,t):E.createElement(pk,t)}var cd=function(e){function t(){return Mk(this,t),jk(this,t,arguments)}return $k(t,e),Ik(t,[{key:"render",value:function(){var r=this,o=this.props,a=o.active,i=o.allowEscapeViewBox,s=o.animationDuration,l=o.animationEasing,c=o.content,p=o.coordinate,d=o.filterNull,m=o.isAnimationActive,b=o.offset,g=o.payload,h=o.payloadUniqBy,v=o.position,y=o.reverseDirection,w=o.useTranslate3d,x=o.viewBox,S=o.wrapperStyle,_=g??[];d&&_.length&&(_=Wy(g.filter(function(C){return C.value!=null&&(C.hide!==!0||r.props.includeHidden)}),h,Fk));var P=_.length>0;return E.createElement(Nk,{allowEscapeViewBox:i,animationDuration:s,animationEasing:l,isAnimationActive:m,active:a,coordinate:p,hasPayload:P,offset:b,position:v,reverseDirection:y,useTranslate3d:w,viewBox:x,wrapperStyle:S},Bk(c,Rw(Rw({},this.props),{},{payload:_})))}}])}(E.PureComponent);ld(cd,"displayName","Tooltip"),ld(cd,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Ak.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 ud,Ow;function zk(){if(Ow)return ud;Ow=1;var e=Kt(),t=function(){return e.Date.now()};return ud=t,ud}var dd,Iw;function qk(){if(Iw)return dd;Iw=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return dd=t,dd}var fd,jw;function Hk(){if(jw)return fd;jw=1;var e=qk(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return fd=n,fd}var pd,Dw;function Vk(){if(Dw)return pd;Dw=1;var e=Hk(),t=bn(),n=Jr(),r=NaN,o=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,i=/^0o[0-7]+$/i,s=parseInt;function l(c){if(typeof c=="number")return c;if(n(c))return r;if(t(c)){var p=typeof c.valueOf=="function"?c.valueOf():c;c=t(p)?p+"":p}if(typeof c!="string")return c===0?c:+c;c=e(c);var d=a.test(c);return d||i.test(c)?s(c.slice(2),d?2:8):o.test(c)?r:+c}return pd=l,pd}var md,kw;function Gk(){if(kw)return md;kw=1;var e=bn(),t=zk(),n=Vk(),r="Expected a function",o=Math.max,a=Math.min;function i(s,l,c){var p,d,m,b,g,h,v=0,y=!1,w=!1,x=!0;if(typeof s!="function")throw new TypeError(r);l=n(l)||0,e(c)&&(y=!!c.leading,w="maxWait"in c,m=w?o(n(c.maxWait)||0,l):m,x="trailing"in c?!!c.trailing:x);function S(A){var k=p,L=d;return p=d=void 0,v=A,b=s.apply(L,k),b}function _(A){return v=A,g=setTimeout(M,l),y?S(A):b}function P(A){var k=A-h,L=A-v,I=l-k;return w?a(I,m-L):I}function C(A){var k=A-h,L=A-v;return h===void 0||k>=l||k<0||w&&L>=m}function M(){var A=t();if(C(A))return N(A);g=setTimeout(M,P(A))}function N(A){return g=void 0,x&&p?S(A):(p=d=void 0,b)}function $(){g!==void 0&&clearTimeout(g),v=0,p=h=d=g=void 0}function D(){return g===void 0?b:N(t())}function F(){var A=t(),k=C(A);if(p=arguments,d=this,h=A,k){if(g===void 0)return _(h);if(w)return clearTimeout(g),g=setTimeout(M,l),S(h)}return g===void 0&&(g=setTimeout(M,l)),b}return F.cancel=$,F.flush=D,F}return md=i,md}var hd,$w;function Wk(){if($w)return hd;$w=1;var e=Gk(),t=bn(),n="Expected a function";function r(o,a,i){var s=!0,l=!0;if(typeof o!="function")throw new TypeError(n);return t(i)&&(s="leading"in i?!!i.leading:s,l="trailing"in i?!!i.trailing:l),e(o,a,{leading:s,maxWait:a,trailing:l})}return hd=r,hd}var Uk=Wk();const Kk=Wt(Uk);function io(e){"@babel/helpers - typeof";return io=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},io(e)}function Lw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Ga(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Lw(Object(n),!0).forEach(function(r){Yk(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Yk(e,t,n){return t=Xk(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xk(e){var t=Zk(e,"string");return io(t)=="symbol"?t:t+""}function Zk(e,t){if(io(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(io(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Jk(e,t){return n$(e)||t$(e,t)||e$(e,t)||Qk()}function Qk(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
206
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function e$(e,t){if(e){if(typeof e=="string")return Fw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Fw(e,t)}}function Fw(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function t$(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(p){c=!0,o=p}finally{try{if(!l&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}function n$(e){if(Array.isArray(e))return e}var r$=E.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,o=r===void 0?{width:-1,height:-1}:r,a=e.width,i=a===void 0?"100%":a,s=e.height,l=s===void 0?"100%":s,c=e.minWidth,p=c===void 0?0:c,d=e.minHeight,m=e.maxHeight,b=e.children,g=e.debounce,h=g===void 0?0:g,v=e.id,y=e.className,w=e.onResize,x=e.style,S=x===void 0?{}:x,_=E.useRef(null),P=E.useRef();P.current=w,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}),M=Jk(C,2),N=M[0],$=M[1],D=E.useCallback(function(A,k){$(function(L){var I=Math.round(A),W=Math.round(k);return L.containerWidth===I&&L.containerHeight===W?L:{containerWidth:I,containerHeight:W}})},[]);E.useEffect(function(){var A=function(q){var ae,J=q[0].contentRect,ne=J.width,z=J.height;D(ne,z),(ae=P.current)===null||ae===void 0||ae.call(P,ne,z)};h>0&&(A=Kk(A,h,{trailing:!0,leading:!1}));var k=new ResizeObserver(A),L=_.current.getBoundingClientRect(),I=L.width,W=L.height;return D(I,W),k.observe(_.current),function(){k.disconnect()}},[D,h]);var F=E.useMemo(function(){var A=N.containerWidth,k=N.containerHeight;if(A<0||k<0)return null;Oa(Aa(i)||Aa(l),`The width(%s) and height(%s) are both fixed numbers,
|
|
207
|
-
maybe you don't need to use a ResponsiveContainer.`,i,l),Oa(!n||n>0,"The aspect(%s) must be greater than zero.",n);var L=Aa(i)?A:i,I=Aa(l)?k:l;n&&n>0&&(L?I=L/n:I&&(L=I*n),m&&I>m&&(I=m)),Oa(L>0||I>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
|
208
|
-
please check the style of container, or the props width(%s) and height(%s),
|
|
209
|
-
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
|
210
|
-
height and width.`,L,I,i,l,p,d,n);var W=!Array.isArray(b)&&TI(b.type).endsWith("Chart");return E.Children.map(b,function(V){return E.isValidElement(V)?E.cloneElement(V,Ga({width:L,height:I},W?{style:Ga({height:"100%",width:"100%",maxHeight:I,maxWidth:L},V.props.style)}:{})):V})},[n,b,l,m,d,p,N,i]);return E.createElement("div",{id:v?"".concat(v):void 0,className:an("recharts-responsive-container",y),style:Ga(Ga({},S),{},{width:i,height:l,minWidth:p,minHeight:d,maxHeight:m}),ref:_},F)});const o$={light:"",dark:".dark"},Bw=f.createContext(null);function zw(){const e=f.useContext(Bw);if(!e)throw new Error("useChart must be used within a <ChartContainer />");return e}const gd=f.forwardRef(({id:e,className:t,children:n,config:r,...o},a)=>{const i=f.useId(),s=`chart-${e||i.replace(/:/g,"")}`;return u.jsx(Bw.Provider,{value:{config:r},children:u.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:[u.jsx(qw,{id:s,config:r}),u.jsx(r$,{children:n})]})})});gd.displayName="Chart";const qw=({id:e,config:t})=>{const n=Object.entries(t).filter(([,r])=>r.theme||r.color);return n.length?u.jsx("style",{dangerouslySetInnerHTML:{__html:Object.entries(o$).map(([r,o])=>`
|
|
211
|
-
${o} [data-chart=${e}] {
|
|
212
|
-
${n.map(([a,i])=>{var l;const s=((l=i.theme)==null?void 0:l[r])||i.color;return s?` --color-${a}: ${s};`:null}).join(`
|
|
213
|
-
`)}
|
|
214
|
-
}
|
|
215
|
-
`).join(`
|
|
216
|
-
`)}}):null},a$=cd,Hw=f.forwardRef(({active:e,payload:t,className:n,indicator:r="dot",hideLabel:o=!1,hideIndicator:a=!1,label:i,labelFormatter:s,labelClassName:l,formatter:c,color:p,nameKey:d,labelKey:m},b)=>{const{config:g}=zw(),h=f.useMemo(()=>{var _;if(o||!(t!=null&&t.length))return null;const[y]=t,w=`${m||(y==null?void 0:y.dataKey)||(y==null?void 0:y.name)||"value"}`,x=vd(g,y,w),S=!m&&typeof i=="string"?((_=g[i])==null?void 0:_.label)||i:x==null?void 0:x.label;return s?u.jsx("div",{className:O("font-medium",l),children:s(S,t)}):S?u.jsx("div",{className:O("font-medium",l),children:S}):null},[i,s,t,o,l,g,m]);if(!e||!(t!=null&&t.length))return null;const v=t.length===1&&r!=="dot";return u.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",n),children:[v?null:h,u.jsx("div",{className:"grid gap-1.5",children:t.map((y,w)=>{const x=`${d||y.name||y.dataKey||"value"}`,S=vd(g,y,x),_=p||y.payload.fill||y.color;return u.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",r==="dot"&&"items-center"),children:c&&(y==null?void 0:y.value)!==void 0&&y.name?c(y.value,y.name,y,w,y.payload):u.jsxs(u.Fragment,{children:[S!=null&&S.icon?u.jsx(S.icon,{}):!a&&u.jsx("div",{className:O("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":r==="dot","w-1":r==="line","w-0 border-[1.5px] border-dashed bg-transparent":r==="dashed","my-0.5":v&&r==="dashed"}),style:{"--color-bg":_,"--color-border":_}}),u.jsxs("div",{className:O("flex flex-1 justify-between leading-none",v?"items-end":"items-center"),children:[u.jsxs("div",{className:"grid gap-1.5",children:[v?h:null,u.jsx("span",{className:"text-muted-foreground",children:(S==null?void 0:S.label)||y.name})]}),y.value&&u.jsx("span",{className:"font-mono font-medium tabular-nums text-foreground",children:y.value.toLocaleString()})]})]})},y.dataKey)})})]})});Hw.displayName="ChartTooltip";const i$=ju,Vw=f.forwardRef(({className:e,hideIcon:t=!1,payload:n,verticalAlign:r="bottom",nameKey:o},a)=>{const{config:i}=zw();return n!=null&&n.length?u.jsx("div",{ref:a,className:O("flex items-center justify-center gap-4",r==="top"?"pb-3":"pt-3",e),children:n.map(s=>{const l=`${o||s.dataKey||"value"}`,c=vd(i,s,l);return u.jsxs("div",{className:O("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),children:[c!=null&&c.icon&&!t?u.jsx(c.icon,{}):u.jsx("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:s.color}}),c==null?void 0:c.label]},s.value)})}):null});Vw.displayName="ChartLegend";function vd(e,t,n){if(typeof t!="object"||t===null)return;const r="payload"in t&&typeof t.payload=="object"&&t.payload!==null?t.payload:void 0;let o=n;return n in t&&typeof t[n]=="string"?o=t[n]:r&&n in r&&typeof r[n]=="string"&&(o=r[n]),o in e?e[o]:e[n]}function fr(e){const t=f.useRef({value:e,previous:e});return f.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function so(e){const[t,n]=f.useState(void 0);return Be(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let i,s;if("borderBoxSize"in a){const l=a.borderBoxSize,c=Array.isArray(l)?l[0]:l;i=c.inlineSize,s=c.blockSize}else i=e.offsetWidth,s=e.offsetHeight;n({width:i,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var bd="Checkbox",[s$,f3]=De(bd),[l$,c$]=s$(bd),Gw=f.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:a,required:i,disabled:s,value:l="on",onCheckedChange:c,form:p,...d}=e,[m,b]=f.useState(null),g=fe(t,S=>b(S)),h=f.useRef(!1),v=m?p||!!m.closest("form"):!0,[y=!1,w]=$e({prop:o,defaultProp:a,onChange:c}),x=f.useRef(y);return f.useEffect(()=>{const S=m==null?void 0:m.form;if(S){const _=()=>w(x.current);return S.addEventListener("reset",_),()=>S.removeEventListener("reset",_)}},[m,w]),u.jsxs(l$,{scope:n,state:y,disabled:s,children:[u.jsx(Z.button,{type:"button",role:"checkbox","aria-checked":yn(y)?"mixed":y,"aria-required":i,"data-state":Kw(y),"data-disabled":s?"":void 0,disabled:s,value:l,...d,ref:g,onKeyDown:B(e.onKeyDown,S=>{S.key==="Enter"&&S.preventDefault()}),onClick:B(e.onClick,S=>{w(_=>yn(_)?!0:!_),v&&(h.current=S.isPropagationStopped(),h.current||S.stopPropagation())})}),v&&u.jsx(u$,{control:m,bubbles:!h.current,name:r,value:l,checked:y,required:i,disabled:s,form:p,style:{transform:"translateX(-100%)"},defaultChecked:yn(a)?!1:a})]})});Gw.displayName=bd;var Ww="CheckboxIndicator",Uw=f.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,a=c$(Ww,n);return u.jsx(Le,{present:r||yn(a.state)||a.state===!0,children:u.jsx(Z.span,{"data-state":Kw(a.state),"data-disabled":a.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});Uw.displayName=Ww;var u$=e=>{const{control:t,checked:n,bubbles:r=!0,defaultChecked:o,...a}=e,i=f.useRef(null),s=fr(n),l=so(t);f.useEffect(()=>{const p=i.current,d=window.HTMLInputElement.prototype,b=Object.getOwnPropertyDescriptor(d,"checked").set;if(s!==n&&b){const g=new Event("click",{bubbles:r});p.indeterminate=yn(n),b.call(p,yn(n)?!1:n),p.dispatchEvent(g)}},[s,n,r]);const c=f.useRef(yn(n)?!1:n);return u.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:o??c.current,...a,tabIndex:-1,ref:i,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function yn(e){return e==="indeterminate"}function Kw(e){return yn(e)?"indeterminate":e?"checked":"unchecked"}var Yw=Gw,d$=Uw;const Xw=f.forwardRef(({className:e,...t},n)=>u.jsx(Yw,{ref:n,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:u.jsx(d$,{className:O("flex items-center justify-center text-current"),children:u.jsx(Yn,{className:"h-4 w-4"})})}));Xw.displayName=Yw.displayName;const f$=sm,p$=Xi,m$=Ji,h$=["top","right","bottom","left"],wn=Math.min,xt=Math.max,Wa=Math.round,Ua=Math.floor,Yt=e=>({x:e,y:e}),g$={left:"right",right:"left",bottom:"top",top:"bottom"},v$={start:"end",end:"start"};function yd(e,t,n){return xt(e,wn(t,n))}function dn(e,t){return typeof e=="function"?e(t):e}function fn(e){return e.split("-")[0]}function pr(e){return e.split("-")[1]}function wd(e){return e==="x"?"y":"x"}function xd(e){return e==="y"?"height":"width"}function xn(e){return["top","bottom"].includes(fn(e))?"y":"x"}function Sd(e){return wd(xn(e))}function b$(e,t,n){n===void 0&&(n=!1);const r=pr(e),o=Sd(e),a=xd(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=Ka(i)),[i,Ka(i)]}function y$(e){const t=Ka(e);return[Cd(e),t,Cd(t)]}function Cd(e){return e.replace(/start|end/g,t=>v$[t])}function w$(e,t,n){const r=["left","right"],o=["right","left"],a=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?a:i;default:return[]}}function x$(e,t,n,r){const o=pr(e);let a=w$(fn(e),n==="start",r);return o&&(a=a.map(i=>i+"-"+o),t&&(a=a.concat(a.map(Cd)))),a}function Ka(e){return e.replace(/left|right|bottom|top/g,t=>g$[t])}function S$(e){return{top:0,right:0,bottom:0,left:0,...e}}function Zw(e){return typeof e!="number"?S$(e):{top:e,right:e,bottom:e,left:e}}function Ya(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Jw(e,t,n){let{reference:r,floating:o}=e;const a=xn(t),i=Sd(t),s=xd(i),l=fn(t),c=a==="y",p=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,m=r[s]/2-o[s]/2;let b;switch(l){case"top":b={x:p,y:r.y-o.height};break;case"bottom":b={x:p,y:r.y+r.height};break;case"right":b={x:r.x+r.width,y:d};break;case"left":b={x:r.x-o.width,y:d};break;default:b={x:r.x,y:r.y}}switch(pr(t)){case"start":b[i]-=m*(n&&c?-1:1);break;case"end":b[i]+=m*(n&&c?-1:1);break}return b}const C$=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,s=a.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:p,y:d}=Jw(c,r,l),m=r,b={},g=0;for(let h=0;h<s.length;h++){const{name:v,fn:y}=s[h],{x:w,y:x,data:S,reset:_}=await y({x:p,y:d,initialPlacement:r,placement:m,strategy:o,middlewareData:b,rects:c,platform:i,elements:{reference:e,floating:t}});p=w??p,d=x??d,b={...b,[v]:{...b[v],...S}},_&&g<=50&&(g++,typeof _=="object"&&(_.placement&&(m=_.placement),_.rects&&(c=_.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):_.rects),{x:p,y:d}=Jw(c,m,l)),h=-1)}return{x:p,y:d,placement:m,strategy:o,middlewareData:b}};async function lo(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:i,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:p="viewport",elementContext:d="floating",altBoundary:m=!1,padding:b=0}=dn(t,e),g=Zw(b),v=s[m?d==="floating"?"reference":"floating":d],y=Ya(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(v)))==null||n?v:v.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:c,rootBoundary:p,strategy:l})),w=d==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,x=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),S=await(a.isElement==null?void 0:a.isElement(x))?await(a.getScale==null?void 0:a.getScale(x))||{x:1,y:1}:{x:1,y:1},_=Ya(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:w,offsetParent:x,strategy:l}):w);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 _$=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:i,elements:s,middlewareData:l}=t,{element:c,padding:p=0}=dn(e,t)||{};if(c==null)return{};const d=Zw(p),m={x:n,y:r},b=Sd(o),g=xd(b),h=await i.getDimensions(c),v=b==="y",y=v?"top":"left",w=v?"bottom":"right",x=v?"clientHeight":"clientWidth",S=a.reference[g]+a.reference[b]-m[b]-a.floating[g],_=m[b]-a.reference[b],P=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c));let C=P?P[x]:0;(!C||!await(i.isElement==null?void 0:i.isElement(P)))&&(C=s.floating[x]||a.floating[g]);const M=S/2-_/2,N=C/2-h[g]/2-1,$=wn(d[y],N),D=wn(d[w],N),F=$,A=C-h[g]-D,k=C/2-h[g]/2+M,L=yd(F,k,A),I=!l.arrow&&pr(o)!=null&&k!==L&&a.reference[g]/2-(k<F?$:D)-h[g]/2<0,W=I?k<F?k-F:k-A:0;return{[b]:m[b]+W,data:{[b]:L,centerOffset:k-L-W,...I&&{alignmentOffset:W}},reset:I}}}),E$=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:p=!0,crossAxis:d=!0,fallbackPlacements:m,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:h=!0,...v}=dn(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const y=fn(o),w=xn(s),x=fn(s)===s,S=await(l.isRTL==null?void 0:l.isRTL(c.floating)),_=m||(x||!h?[Ka(s)]:y$(s)),P=g!=="none";!m&&P&&_.push(...x$(s,h,g,S));const C=[s,..._],M=await lo(t,v),N=[];let $=((r=a.flip)==null?void 0:r.overflows)||[];if(p&&N.push(M[y]),d){const k=b$(o,i,S);N.push(M[k[0]],M[k[1]])}if($=[...$,{placement:o,overflows:N}],!N.every(k=>k<=0)){var D,F;const k=(((D=a.flip)==null?void 0:D.index)||0)+1,L=C[k];if(L)return{data:{index:k,overflows:$},reset:{placement:L}};let I=(F=$.filter(W=>W.overflows[0]<=0).sort((W,V)=>W.overflows[1]-V.overflows[1])[0])==null?void 0:F.placement;if(!I)switch(b){case"bestFit":{var A;const W=(A=$.filter(V=>{if(P){const q=xn(V.placement);return q===w||q==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(q=>q>0).reduce((q,ae)=>q+ae,0)]).sort((V,q)=>V[1]-q[1])[0])==null?void 0:A[0];W&&(I=W);break}case"initialPlacement":I=s;break}if(o!==I)return{reset:{placement:I}}}return{}}}};function Qw(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ex(e){return h$.some(t=>e[t]>=0)}const P$=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=dn(e,t);switch(r){case"referenceHidden":{const a=await lo(t,{...o,elementContext:"reference"}),i=Qw(a,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:ex(i)}}}case"escaped":{const a=await lo(t,{...o,altBoundary:!0}),i=Qw(a,n.floating);return{data:{escapedOffsets:i,escaped:ex(i)}}}default:return{}}}}};async function T$(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=fn(n),s=pr(n),l=xn(n)==="y",c=["left","top"].includes(i)?-1:1,p=a&&l?-1:1,d=dn(t,e);let{mainAxis:m,crossAxis:b,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof g=="number"&&(b=s==="end"?g*-1:g),l?{x:b*p,y:m*c}:{x:m*c,y:b*p}}const N$=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:i,middlewareData:s}=t,l=await T$(t,e);return i===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:i}}}}},R$=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:v=>{let{x:y,y:w}=v;return{x:y,y:w}}},...l}=dn(e,t),c={x:n,y:r},p=await lo(t,l),d=xn(fn(o)),m=wd(d);let b=c[m],g=c[d];if(a){const v=m==="y"?"top":"left",y=m==="y"?"bottom":"right",w=b+p[v],x=b-p[y];b=yd(w,b,x)}if(i){const v=d==="y"?"top":"left",y=d==="y"?"bottom":"right",w=g+p[v],x=g-p[y];g=yd(w,g,x)}const h=s.fn({...t,[m]:b,[d]:g});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[m]:a,[d]:i}}}}}},A$=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:i}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=dn(e,t),p={x:n,y:r},d=xn(o),m=wd(d);let b=p[m],g=p[d];const h=dn(s,t),v=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const x=m==="y"?"height":"width",S=a.reference[m]-a.floating[x]+v.mainAxis,_=a.reference[m]+a.reference[x]-v.mainAxis;b<S?b=S:b>_&&(b=_)}if(c){var y,w;const x=m==="y"?"width":"height",S=["top","left"].includes(fn(o)),_=a.reference[d]-a.floating[x]+(S&&((y=i.offset)==null?void 0:y[d])||0)+(S?0:v.crossAxis),P=a.reference[d]+a.reference[x]+(S?0:((w=i.offset)==null?void 0:w[d])||0)-(S?v.crossAxis:0);g<_?g=_:g>P&&(g=P)}return{[m]:b,[d]:g}}}},M$=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:i,elements:s}=t,{apply:l=()=>{},...c}=dn(e,t),p=await lo(t,c),d=fn(o),m=pr(o),b=xn(o)==="y",{width:g,height:h}=a.floating;let v,y;d==="top"||d==="bottom"?(v=d,y=m===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(y=d,v=m==="end"?"top":"bottom");const w=h-p.top-p.bottom,x=g-p.left-p.right,S=wn(h-p[v],w),_=wn(g-p[y],x),P=!t.middlewareData.shift;let C=S,M=_;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(M=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=w),P&&!m){const $=xt(p.left,0),D=xt(p.right,0),F=xt(p.top,0),A=xt(p.bottom,0);b?M=g-2*($!==0||D!==0?$+D:xt(p.left,p.right)):C=h-2*(F!==0||A!==0?F+A:xt(p.top,p.bottom))}await l({...t,availableWidth:M,availableHeight:C});const N=await i.getDimensions(s.floating);return g!==N.width||h!==N.height?{reset:{rects:!0}}:{}}}};function Xa(){return typeof window<"u"}function mr(e){return tx(e)?(e.nodeName||"").toLowerCase():"#document"}function St(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Xt(e){var t;return(t=(tx(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function tx(e){return Xa()?e instanceof Node||e instanceof St(e).Node:!1}function Ft(e){return Xa()?e instanceof Element||e instanceof St(e).Element:!1}function Zt(e){return Xa()?e instanceof HTMLElement||e instanceof St(e).HTMLElement:!1}function nx(e){return!Xa()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof St(e).ShadowRoot}function co(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Bt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function O$(e){return["table","td","th"].includes(mr(e))}function Za(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function _d(e){const t=Ed(),n=Ft(e)?Bt(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function I$(e){let t=Sn(e);for(;Zt(t)&&!hr(t);){if(_d(t))return t;if(Za(t))return null;t=Sn(t)}return null}function Ed(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function hr(e){return["html","body","#document"].includes(mr(e))}function Bt(e){return St(e).getComputedStyle(e)}function Ja(e){return Ft(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Sn(e){if(mr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||nx(e)&&e.host||Xt(e);return nx(t)?t.host:t}function rx(e){const t=Sn(e);return hr(t)?e.ownerDocument?e.ownerDocument.body:e.body:Zt(t)&&co(t)?t:rx(t)}function uo(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=rx(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),i=St(o);if(a){const s=Pd(i);return t.concat(i,i.visualViewport||[],co(o)?o:[],s&&n?uo(s):[])}return t.concat(o,uo(o,[],n))}function Pd(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ox(e){const t=Bt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Zt(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,s=Wa(n)!==a||Wa(r)!==i;return s&&(n=a,r=i),{width:n,height:r,$:s}}function Td(e){return Ft(e)?e:e.contextElement}function gr(e){const t=Td(e);if(!Zt(t))return Yt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=ox(t);let i=(a?Wa(n.width):n.width)/r,s=(a?Wa(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const j$=Yt(0);function ax(e){const t=St(e);return!Ed()||!t.visualViewport?j$:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function D$(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==St(e)?!1:t}function Fn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=Td(e);let i=Yt(1);t&&(r?Ft(r)&&(i=gr(r)):i=gr(e));const s=D$(a,n,r)?ax(a):Yt(0);let l=(o.left+s.x)/i.x,c=(o.top+s.y)/i.y,p=o.width/i.x,d=o.height/i.y;if(a){const m=St(a),b=r&&Ft(r)?St(r):r;let g=m,h=Pd(g);for(;h&&r&&b!==g;){const v=gr(h),y=h.getBoundingClientRect(),w=Bt(h),x=y.left+(h.clientLeft+parseFloat(w.paddingLeft))*v.x,S=y.top+(h.clientTop+parseFloat(w.paddingTop))*v.y;l*=v.x,c*=v.y,p*=v.x,d*=v.y,l+=x,c+=S,g=St(h),h=Pd(g)}}return Ya({width:p,height:d,x:l,y:c})}function Nd(e,t){const n=Ja(e).scrollLeft;return t?t.left+n:Fn(Xt(e)).left+n}function ix(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:Nd(e,r)),a=r.top+t.scrollTop;return{x:o,y:a}}function k$(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",i=Xt(r),s=t?Za(t.floating):!1;if(r===i||s&&a)return n;let l={scrollLeft:0,scrollTop:0},c=Yt(1);const p=Yt(0),d=Zt(r);if((d||!d&&!a)&&((mr(r)!=="body"||co(i))&&(l=Ja(r)),Zt(r))){const b=Fn(r);c=gr(r),p.x=b.x+r.clientLeft,p.y=b.y+r.clientTop}const m=i&&!d&&!a?ix(i,l,!0):Yt(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+p.x+m.x,y:n.y*c.y-l.scrollTop*c.y+p.y+m.y}}function $$(e){return Array.from(e.getClientRects())}function L$(e){const t=Xt(e),n=Ja(e),r=e.ownerDocument.body,o=xt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=xt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Nd(e);const s=-n.scrollTop;return Bt(r).direction==="rtl"&&(i+=xt(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:s}}function F$(e,t){const n=St(e),r=Xt(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;const c=Ed();(!c||c&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:a,height:i,x:s,y:l}}function B$(e,t){const n=Fn(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=Zt(e)?gr(e):Yt(1),i=e.clientWidth*a.x,s=e.clientHeight*a.y,l=o*a.x,c=r*a.y;return{width:i,height:s,x:l,y:c}}function sx(e,t,n){let r;if(t==="viewport")r=F$(e,n);else if(t==="document")r=L$(Xt(e));else if(Ft(t))r=B$(t,n);else{const o=ax(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Ya(r)}function lx(e,t){const n=Sn(e);return n===t||!Ft(n)||hr(n)?!1:Bt(n).position==="fixed"||lx(n,t)}function z$(e,t){const n=t.get(e);if(n)return n;let r=uo(e,[],!1).filter(s=>Ft(s)&&mr(s)!=="body"),o=null;const a=Bt(e).position==="fixed";let i=a?Sn(e):e;for(;Ft(i)&&!hr(i);){const s=Bt(i),l=_d(i);!l&&s.position==="fixed"&&(o=null),(a?!l&&!o:!l&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||co(i)&&!l&&lx(e,i))?r=r.filter(p=>p!==i):o=s,i=Sn(i)}return t.set(e,r),r}function q$(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?Za(t)?[]:z$(t,this._c):[].concat(n),r],s=i[0],l=i.reduce((c,p)=>{const d=sx(t,p,o);return c.top=xt(d.top,c.top),c.right=wn(d.right,c.right),c.bottom=wn(d.bottom,c.bottom),c.left=xt(d.left,c.left),c},sx(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function H$(e){const{width:t,height:n}=ox(e);return{width:t,height:n}}function V$(e,t,n){const r=Zt(t),o=Xt(t),a=n==="fixed",i=Fn(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=Yt(0);if(r||!r&&!a)if((mr(t)!=="body"||co(o))&&(s=Ja(t)),r){const m=Fn(t,!0,a,t);l.x=m.x+t.clientLeft,l.y=m.y+t.clientTop}else o&&(l.x=Nd(o));const c=o&&!r&&!a?ix(o,s):Yt(0),p=i.left+s.scrollLeft-l.x-c.x,d=i.top+s.scrollTop-l.y-c.y;return{x:p,y:d,width:i.width,height:i.height}}function Rd(e){return Bt(e).position==="static"}function cx(e,t){if(!Zt(e)||Bt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Xt(e)===n&&(n=n.ownerDocument.body),n}function ux(e,t){const n=St(e);if(Za(e))return n;if(!Zt(e)){let o=Sn(e);for(;o&&!hr(o);){if(Ft(o)&&!Rd(o))return o;o=Sn(o)}return n}let r=cx(e,t);for(;r&&O$(r)&&Rd(r);)r=cx(r,t);return r&&hr(r)&&Rd(r)&&!_d(r)?n:r||I$(e)||n}const G$=async function(e){const t=this.getOffsetParent||ux,n=this.getDimensions,r=await n(e.floating);return{reference:V$(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function W$(e){return Bt(e).direction==="rtl"}const U$={convertOffsetParentRelativeRectToViewportRelativeRect:k$,getDocumentElement:Xt,getClippingRect:q$,getOffsetParent:ux,getElementRects:G$,getClientRects:$$,getDimensions:H$,getScale:gr,isElement:Ft,isRTL:W$};function dx(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function K$(e,t){let n=null,r;const o=Xt(e);function a(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function i(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),a();const c=e.getBoundingClientRect(),{left:p,top:d,width:m,height:b}=c;if(s||t(),!m||!b)return;const g=Ua(d),h=Ua(o.clientWidth-(p+m)),v=Ua(o.clientHeight-(d+b)),y=Ua(p),x={rootMargin:-g+"px "+-h+"px "+-v+"px "+-y+"px",threshold:xt(0,wn(1,l))||1};let S=!0;function _(P){const C=P[0].intersectionRatio;if(C!==l){if(!S)return i();C?i(!1,C):r=setTimeout(()=>{i(!1,1e-7)},1e3)}C===1&&!dx(c,e.getBoundingClientRect())&&i(),S=!1}try{n=new IntersectionObserver(_,{...x,root:o.ownerDocument})}catch{n=new IntersectionObserver(_,x)}n.observe(e)}return i(!0),a}function Y$(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=Td(e),p=o||a?[...c?uo(c):[],...uo(t)]:[];p.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),a&&y.addEventListener("resize",n)});const d=c&&s?K$(c,n):null;let m=-1,b=null;i&&(b=new ResizeObserver(y=>{let[w]=y;w&&w.target===c&&b&&(b.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var x;(x=b)==null||x.observe(t)})),n()}),c&&!l&&b.observe(c),b.observe(t));let g,h=l?Fn(e):null;l&&v();function v(){const y=Fn(e);h&&!dx(h,y)&&n(),h=y,g=requestAnimationFrame(v)}return n(),()=>{var y;p.forEach(w=>{o&&w.removeEventListener("scroll",n),a&&w.removeEventListener("resize",n)}),d==null||d(),(y=b)==null||y.disconnect(),b=null,l&&cancelAnimationFrame(g)}}const X$=N$,Z$=R$,J$=E$,Q$=M$,eL=P$,fx=_$,tL=A$,nL=(e,t,n)=>{const r=new Map,o={platform:U$,...n},a={...o.platform,_c:r};return C$(e,t,{...o,platform:a})};var Qa=typeof document<"u"?E.useLayoutEffect:E.useEffect;function ei(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!ei(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!ei(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function px(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function mx(e,t){const n=px(e);return Math.round(t*n)/n}function Ad(e){const t=f.useRef(e);return Qa(()=>{t.current=e}),t}function rL(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:i}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[p,d]=f.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,b]=f.useState(r);ei(m,r)||b(r);const[g,h]=f.useState(null),[v,y]=f.useState(null),w=f.useCallback(V=>{V!==P.current&&(P.current=V,h(V))},[]),x=f.useCallback(V=>{V!==C.current&&(C.current=V,y(V))},[]),S=a||g,_=i||v,P=f.useRef(null),C=f.useRef(null),M=f.useRef(p),N=l!=null,$=Ad(l),D=Ad(o),F=Ad(c),A=f.useCallback(()=>{if(!P.current||!C.current)return;const V={placement:t,strategy:n,middleware:m};D.current&&(V.platform=D.current),nL(P.current,C.current,V).then(q=>{const ae={...q,isPositioned:F.current!==!1};k.current&&!ei(M.current,ae)&&(M.current=ae,kr.flushSync(()=>{d(ae)}))})},[m,t,n,D,F]);Qa(()=>{c===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,d(V=>({...V,isPositioned:!1})))},[c]);const k=f.useRef(!1);Qa(()=>(k.current=!0,()=>{k.current=!1}),[]),Qa(()=>{if(S&&(P.current=S),_&&(C.current=_),S&&_){if($.current)return $.current(S,_,A);A()}},[S,_,A,$,N]);const L=f.useMemo(()=>({reference:P,floating:C,setReference:w,setFloating:x}),[w,x]),I=f.useMemo(()=>({reference:S,floating:_}),[S,_]),W=f.useMemo(()=>{const V={position:n,left:0,top:0};if(!I.floating)return V;const q=mx(I.floating,p.x),ae=mx(I.floating,p.y);return s?{...V,transform:"translate("+q+"px, "+ae+"px)",...px(I.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:q,top:ae}},[n,s,I.floating,p.x,p.y]);return f.useMemo(()=>({...p,update:A,refs:L,elements:I,floatingStyles:W}),[p,A,L,I,W])}const oL=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?fx({element:r.current,padding:o}).fn(n):{}:r?fx({element:r,padding:o}).fn(n):{}}}},aL=(e,t)=>({...X$(e),options:[e,t]}),iL=(e,t)=>({...Z$(e),options:[e,t]}),sL=(e,t)=>({...tL(e),options:[e,t]}),lL=(e,t)=>({...J$(e),options:[e,t]}),cL=(e,t)=>({...Q$(e),options:[e,t]}),uL=(e,t)=>({...eL(e),options:[e,t]}),dL=(e,t)=>({...oL(e),options:[e,t]});var fL="Arrow",hx=f.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return u.jsx(Z.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});hx.displayName=fL;var pL=hx,Md="Popper",[gx,Jt]=De(Md),[mL,vx]=gx(Md),bx=e=>{const{__scopePopper:t,children:n}=e,[r,o]=f.useState(null);return u.jsx(mL,{scope:t,anchor:r,onAnchorChange:o,children:n})};bx.displayName=Md;var yx="PopperAnchor",wx=f.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=vx(yx,n),i=f.useRef(null),s=fe(t,i);return f.useEffect(()=>{a.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:u.jsx(Z.div,{...o,ref:s})});wx.displayName=yx;var Od="PopperContent",[hL,gL]=gx(Od),xx=f.forwardRef((e,t)=>{var H,K,re,Q,oe,G;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:a="center",alignOffset:i=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:p=0,sticky:d="partial",hideWhenDetached:m=!1,updatePositionStrategy:b="optimized",onPlaced:g,...h}=e,v=vx(Od,n),[y,w]=f.useState(null),x=fe(t,ie=>w(ie)),[S,_]=f.useState(null),P=so(S),C=(P==null?void 0:P.width)??0,M=(P==null?void 0:P.height)??0,N=r+(a!=="center"?"-"+a:""),$=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},D=Array.isArray(c)?c:[c],F=D.length>0,A={padding:$,boundary:D.filter(bL),altBoundary:F},{refs:k,floatingStyles:L,placement:I,isPositioned:W,middlewareData:V}=rL({strategy:"fixed",placement:N,whileElementsMounted:(...ie)=>Y$(...ie,{animationFrame:b==="always"}),elements:{reference:v.anchor},middleware:[aL({mainAxis:o+M,alignmentAxis:i}),l&&iL({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?sL():void 0,...A}),l&&lL({...A}),cL({...A,apply:({elements:ie,rects:j,availableWidth:te,availableHeight:me})=>{const{width:he,height:ve}=j.reference,pe=ie.floating.style;pe.setProperty("--radix-popper-available-width",`${te}px`),pe.setProperty("--radix-popper-available-height",`${me}px`),pe.setProperty("--radix-popper-anchor-width",`${he}px`),pe.setProperty("--radix-popper-anchor-height",`${ve}px`)}}),S&&dL({element:S,padding:s}),yL({arrowWidth:C,arrowHeight:M}),m&&uL({strategy:"referenceHidden",...A})]}),[q,ae]=_x(I),J=Re(g);Be(()=>{W&&(J==null||J())},[W,J]);const ne=(H=V.arrow)==null?void 0:H.x,z=(K=V.arrow)==null?void 0:K.y,U=((re=V.arrow)==null?void 0:re.centerOffset)!==0,[ee,Y]=f.useState();return Be(()=>{y&&Y(window.getComputedStyle(y).zIndex)},[y]),u.jsx("div",{ref:k.setFloating,"data-radix-popper-content-wrapper":"",style:{...L,transform:W?L.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ee,"--radix-popper-transform-origin":[(Q=V.transformOrigin)==null?void 0:Q.x,(oe=V.transformOrigin)==null?void 0:oe.y].join(" "),...((G=V.hide)==null?void 0:G.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:u.jsx(hL,{scope:n,placedSide:q,onArrowChange:_,arrowX:ne,arrowY:z,shouldHideArrow:U,children:u.jsx(Z.div,{"data-side":q,"data-align":ae,...h,ref:x,style:{...h.style,animation:W?void 0:"none"}})})})});xx.displayName=Od;var Sx="PopperArrow",vL={top:"bottom",right:"left",bottom:"top",left:"right"},Cx=f.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=gL(Sx,r),i=vL[a.placedSide];return u.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:u.jsx(pL,{...o,ref:n,style:{...o.style,display:"block"}})})});Cx.displayName=Sx;function bL(e){return e!==null}var yL=e=>({name:"transformOrigin",options:e,fn(t){var v,y,w;const{placement:n,rects:r,middlewareData:o}=t,i=((v=o.arrow)==null?void 0:v.centerOffset)!==0,s=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[c,p]=_x(n),d={start:"0%",center:"50%",end:"100%"}[p],m=(((y=o.arrow)==null?void 0:y.x)??0)+s/2,b=(((w=o.arrow)==null?void 0:w.y)??0)+l/2;let g="",h="";return c==="bottom"?(g=i?d:`${m}px`,h=`${-l}px`):c==="top"?(g=i?d:`${m}px`,h=`${r.floating.height+l}px`):c==="right"?(g=`${-l}px`,h=i?d:`${b}px`):c==="left"&&(g=`${r.floating.width+l}px`,h=i?d:`${b}px`),{data:{x:g,y:h}}}});function _x(e){const[t,n="center"]=e.split("-");return[t,n]}var vr=bx,br=wx,fo=xx,po=Cx,Id="rovingFocusGroup.onEntryFocus",wL={bubbles:!1,cancelable:!0},ti="RovingFocusGroup",[jd,Ex,xL]=rn(ti),[SL,Qt]=De(ti,[xL]),[CL,_L]=SL(ti),Px=f.forwardRef((e,t)=>u.jsx(jd.Provider,{scope:e.__scopeRovingFocusGroup,children:u.jsx(jd.Slot,{scope:e.__scopeRovingFocusGroup,children:u.jsx(EL,{...e,ref:t})})}));Px.displayName=ti;var EL=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:p=!1,...d}=e,m=f.useRef(null),b=fe(t,m),g=Ot(a),[h=null,v]=$e({prop:i,defaultProp:s,onChange:l}),[y,w]=f.useState(!1),x=Re(c),S=Ex(n),_=f.useRef(!1),[P,C]=f.useState(0);return f.useEffect(()=>{const M=m.current;if(M)return M.addEventListener(Id,x),()=>M.removeEventListener(Id,x)},[x]),u.jsx(CL,{scope:n,orientation:r,dir:g,loop:o,currentTabStopId:h,onItemFocus:f.useCallback(M=>v(M),[v]),onItemShiftTab:f.useCallback(()=>w(!0),[]),onFocusableItemAdd:f.useCallback(()=>C(M=>M+1),[]),onFocusableItemRemove:f.useCallback(()=>C(M=>M-1),[]),children:u.jsx(Z.div,{tabIndex:y||P===0?-1:0,"data-orientation":r,...d,ref:b,style:{outline:"none",...e.style},onMouseDown:B(e.onMouseDown,()=>{_.current=!0}),onFocus:B(e.onFocus,M=>{const N=!_.current;if(M.target===M.currentTarget&&N&&!y){const $=new CustomEvent(Id,wL);if(M.currentTarget.dispatchEvent($),!$.defaultPrevented){const D=S().filter(I=>I.focusable),F=D.find(I=>I.active),A=D.find(I=>I.id===h),L=[F,A,...D].filter(Boolean).map(I=>I.ref.current);Rx(L,p)}}_.current=!1}),onBlur:B(e.onBlur,()=>w(!1))})})}),Tx="RovingFocusGroupItem",Nx=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,...i}=e,s=Ge(),l=a||s,c=_L(Tx,n),p=c.currentTabStopId===l,d=Ex(n),{onFocusableItemAdd:m,onFocusableItemRemove:b}=c;return f.useEffect(()=>{if(r)return m(),()=>b()},[r,m,b]),u.jsx(jd.ItemSlot,{scope:n,id:l,focusable:r,active:o,children:u.jsx(Z.span,{tabIndex:p?0:-1,"data-orientation":c.orientation,...i,ref:t,onMouseDown:B(e.onMouseDown,g=>{r?c.onItemFocus(l):g.preventDefault()}),onFocus:B(e.onFocus,()=>c.onItemFocus(l)),onKeyDown:B(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){c.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const h=NL(g,c.orientation,c.dir);if(h!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let y=d().filter(w=>w.focusable).map(w=>w.ref.current);if(h==="last")y.reverse();else if(h==="prev"||h==="next"){h==="prev"&&y.reverse();const w=y.indexOf(g.currentTarget);y=c.loop?RL(y,w+1):y.slice(w+1)}setTimeout(()=>Rx(y))}})})})});Nx.displayName=Tx;var PL={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function TL(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function NL(e,t,n){const r=TL(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return PL[r]}function Rx(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function RL(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var mo=Px,ho=Nx,Dd=["Enter"," "],AL=["ArrowDown","PageUp","Home"],Ax=["ArrowUp","PageDown","End"],ML=[...AL,...Ax],OL={ltr:[...Dd,"ArrowRight"],rtl:[...Dd,"ArrowLeft"]},IL={ltr:["ArrowLeft"],rtl:["ArrowRight"]},go="Menu",[vo,jL,DL]=rn(go),[Bn,bo]=De(go,[DL,Jt,Qt]),yo=Jt(),Mx=Qt(),[Ox,Cn]=Bn(go),[kL,wo]=Bn(go),Ix=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:a,modal:i=!0}=e,s=yo(t),[l,c]=f.useState(null),p=f.useRef(!1),d=Re(a),m=Ot(o);return f.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})}},[]),u.jsx(vr,{...s,children:u.jsx(Ox,{scope:t,open:n,onOpenChange:d,content:l,onContentChange:c,children:u.jsx(kL,{scope:t,onClose:f.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:p,dir:m,modal:i,children:r})})})};Ix.displayName=go;var $L="MenuAnchor",kd=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=yo(n);return u.jsx(br,{...o,...r,ref:t})});kd.displayName=$L;var $d="MenuPortal",[LL,jx]=Bn($d,{forceMount:void 0}),Dx=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=Cn($d,t);return u.jsx(LL,{scope:t,forceMount:n,children:u.jsx(Le,{present:n||a.open,children:u.jsx(Mn,{asChild:!0,container:o,children:r})})})};Dx.displayName=$d;var Tt="MenuContent",[FL,Ld]=Bn(Tt),kx=f.forwardRef((e,t)=>{const n=jx(Tt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=Cn(Tt,e.__scopeMenu),i=wo(Tt,e.__scopeMenu);return u.jsx(vo.Provider,{scope:e.__scopeMenu,children:u.jsx(Le,{present:r||a.open,children:u.jsx(vo.Slot,{scope:e.__scopeMenu,children:i.modal?u.jsx(BL,{...o,ref:t}):u.jsx(zL,{...o,ref:t})})})})}),BL=f.forwardRef((e,t)=>{const n=Cn(Tt,e.__scopeMenu),r=f.useRef(null),o=fe(t,r);return f.useEffect(()=>{const a=r.current;if(a)return sa(a)},[]),u.jsx(Fd,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:B(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),zL=f.forwardRef((e,t)=>{const n=Cn(Tt,e.__scopeMenu);return u.jsx(Fd,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Fd=f.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEntryFocus:l,onEscapeKeyDown:c,onPointerDownOutside:p,onFocusOutside:d,onInteractOutside:m,onDismiss:b,disableOutsideScroll:g,...h}=e,v=Cn(Tt,n),y=wo(Tt,n),w=yo(n),x=Mx(n),S=jL(n),[_,P]=f.useState(null),C=f.useRef(null),M=fe(t,C,v.onContentChange),N=f.useRef(0),$=f.useRef(""),D=f.useRef(0),F=f.useRef(null),A=f.useRef("right"),k=f.useRef(0),L=g?Hr:f.Fragment,I=g?{as:ct,allowPinchZoom:!0}:void 0,W=q=>{var H,K;const ae=$.current+q,J=S().filter(re=>!re.disabled),ne=document.activeElement,z=(H=J.find(re=>re.ref.current===ne))==null?void 0:H.textValue,U=J.map(re=>re.textValue),ee=QL(U,ae,z),Y=(K=J.find(re=>re.textValue===ee))==null?void 0:K.ref.current;(function re(Q){$.current=Q,window.clearTimeout(N.current),Q!==""&&(N.current=window.setTimeout(()=>re(""),1e3))})(ae),Y&&setTimeout(()=>Y.focus())};f.useEffect(()=>()=>window.clearTimeout(N.current),[]),Qo();const V=f.useCallback(q=>{var J,ne;return A.current===((J=F.current)==null?void 0:J.side)&&t2(q,(ne=F.current)==null?void 0:ne.area)},[]);return u.jsx(FL,{scope:n,searchRef:$,onItemEnter:f.useCallback(q=>{V(q)&&q.preventDefault()},[V]),onItemLeave:f.useCallback(q=>{var ae;V(q)||((ae=C.current)==null||ae.focus(),P(null))},[V]),onTriggerLeave:f.useCallback(q=>{V(q)&&q.preventDefault()},[V]),pointerGraceTimerRef:D,onPointerGraceIntentChange:f.useCallback(q=>{F.current=q},[]),children:u.jsx(L,{...I,children:u.jsx(qr,{asChild:!0,trapped:o,onMountAutoFocus:B(a,q=>{var ae;q.preventDefault(),(ae=C.current)==null||ae.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:u.jsx(sn,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:c,onPointerDownOutside:p,onFocusOutside:d,onInteractOutside:m,onDismiss:b,children:u.jsx(mo,{asChild:!0,...x,dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:_,onCurrentTabStopIdChange:P,onEntryFocus:B(l,q=>{y.isUsingKeyboardRef.current||q.preventDefault()}),preventScrollOnEntryFocus:!0,children:u.jsx(fo,{role:"menu","aria-orientation":"vertical","data-state":e0(v.open),"data-radix-menu-content":"",dir:y.dir,...w,...h,ref:M,style:{outline:"none",...h.style},onKeyDown:B(h.onKeyDown,q=>{const J=q.target.closest("[data-radix-menu-content]")===q.currentTarget,ne=q.ctrlKey||q.altKey||q.metaKey,z=q.key.length===1;J&&(q.key==="Tab"&&q.preventDefault(),!ne&&z&&W(q.key));const U=C.current;if(q.target!==U||!ML.includes(q.key))return;q.preventDefault();const Y=S().filter(H=>!H.disabled).map(H=>H.ref.current);Ax.includes(q.key)&&Y.reverse(),ZL(Y)}),onBlur:B(e.onBlur,q=>{q.currentTarget.contains(q.target)||(window.clearTimeout(N.current),$.current="")}),onPointerMove:B(e.onPointerMove,So(q=>{const ae=q.target,J=k.current!==q.clientX;if(q.currentTarget.contains(ae)&&J){const ne=q.clientX>k.current?"right":"left";A.current=ne,k.current=q.clientX}}))})})})})})})});kx.displayName=Tt;var qL="MenuGroup",Bd=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return u.jsx(Z.div,{role:"group",...r,ref:t})});Bd.displayName=qL;var HL="MenuLabel",$x=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return u.jsx(Z.div,{...r,ref:t})});$x.displayName=HL;var ni="MenuItem",Lx="menu.itemSelect",ri=f.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,a=f.useRef(null),i=wo(ni,e.__scopeMenu),s=Ld(ni,e.__scopeMenu),l=fe(t,a),c=f.useRef(!1),p=()=>{const d=a.current;if(!n&&d){const m=new CustomEvent(Lx,{bubbles:!0,cancelable:!0});d.addEventListener(Lx,b=>r==null?void 0:r(b),{once:!0}),Br(d,m),m.defaultPrevented?c.current=!1:i.onClose()}};return u.jsx(Fx,{...o,ref:l,disabled:n,onClick:B(e.onClick,p),onPointerDown:d=>{var m;(m=e.onPointerDown)==null||m.call(e,d),c.current=!0},onPointerUp:B(e.onPointerUp,d=>{var m;c.current||(m=d.currentTarget)==null||m.click()}),onKeyDown:B(e.onKeyDown,d=>{const m=s.searchRef.current!=="";n||m&&d.key===" "||Dd.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})})});ri.displayName=ni;var Fx=f.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,i=Ld(ni,n),s=Mx(n),l=f.useRef(null),c=fe(t,l),[p,d]=f.useState(!1),[m,b]=f.useState("");return f.useEffect(()=>{const g=l.current;g&&b((g.textContent??"").trim())},[a.children]),u.jsx(vo.ItemSlot,{scope:n,disabled:r,textValue:o??m,children:u.jsx(ho,{asChild:!0,...s,focusable:!r,children:u.jsx(Z.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...a,ref:c,onPointerMove:B(e.onPointerMove,So(g=>{r?i.onItemLeave(g):(i.onItemEnter(g),g.defaultPrevented||g.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:B(e.onPointerLeave,So(g=>i.onItemLeave(g))),onFocus:B(e.onFocus,()=>d(!0)),onBlur:B(e.onBlur,()=>d(!1))})})})}),VL="MenuCheckboxItem",Bx=f.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return u.jsx(Gx,{scope:e.__scopeMenu,checked:n,children:u.jsx(ri,{role:"menuitemcheckbox","aria-checked":oi(n)?"mixed":n,...o,ref:t,"data-state":Hd(n),onSelect:B(o.onSelect,()=>r==null?void 0:r(oi(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Bx.displayName=VL;var zx="MenuRadioGroup",[GL,WL]=Bn(zx,{value:void 0,onValueChange:()=>{}}),qx=f.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,a=Re(r);return u.jsx(GL,{scope:e.__scopeMenu,value:n,onValueChange:a,children:u.jsx(Bd,{...o,ref:t})})});qx.displayName=zx;var Hx="MenuRadioItem",Vx=f.forwardRef((e,t)=>{const{value:n,...r}=e,o=WL(Hx,e.__scopeMenu),a=n===o.value;return u.jsx(Gx,{scope:e.__scopeMenu,checked:a,children:u.jsx(ri,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":Hd(a),onSelect:B(r.onSelect,()=>{var i;return(i=o.onValueChange)==null?void 0:i.call(o,n)},{checkForDefaultPrevented:!1})})})});Vx.displayName=Hx;var zd="MenuItemIndicator",[Gx,UL]=Bn(zd,{checked:!1}),Wx=f.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=UL(zd,n);return u.jsx(Le,{present:r||oi(a.checked)||a.checked===!0,children:u.jsx(Z.span,{...o,ref:t,"data-state":Hd(a.checked)})})});Wx.displayName=zd;var KL="MenuSeparator",Ux=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return u.jsx(Z.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});Ux.displayName=KL;var YL="MenuArrow",Kx=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=yo(n);return u.jsx(po,{...o,...r,ref:t})});Kx.displayName=YL;var qd="MenuSub",[XL,Yx]=Bn(qd),Xx=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,a=Cn(qd,t),i=yo(t),[s,l]=f.useState(null),[c,p]=f.useState(null),d=Re(o);return f.useEffect(()=>(a.open===!1&&d(!1),()=>d(!1)),[a.open,d]),u.jsx(vr,{...i,children:u.jsx(Ox,{scope:t,open:r,onOpenChange:d,content:c,onContentChange:p,children:u.jsx(XL,{scope:t,contentId:Ge(),triggerId:Ge(),trigger:s,onTriggerChange:l,children:n})})})};Xx.displayName=qd;var xo="MenuSubTrigger",Zx=f.forwardRef((e,t)=>{const n=Cn(xo,e.__scopeMenu),r=wo(xo,e.__scopeMenu),o=Yx(xo,e.__scopeMenu),a=Ld(xo,e.__scopeMenu),i=f.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=a,c={__scopeMenu:e.__scopeMenu},p=f.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return f.useEffect(()=>p,[p]),f.useEffect(()=>{const d=s.current;return()=>{window.clearTimeout(d),l(null)}},[s,l]),u.jsx(kd,{asChild:!0,...c,children:u.jsx(Fx,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":e0(n.open),...e,ref:Fr(t,o.onTriggerChange),onClick:d=>{var m;(m=e.onClick)==null||m.call(e,d),!(e.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:B(e.onPointerMove,So(d=>{a.onItemEnter(d),!d.defaultPrevented&&!e.disabled&&!n.open&&!i.current&&(a.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{n.onOpenChange(!0),p()},100))})),onPointerLeave:B(e.onPointerLeave,So(d=>{var b,g;p();const m=(b=n.content)==null?void 0:b.getBoundingClientRect();if(m){const h=(g=n.content)==null?void 0:g.dataset.side,v=h==="right",y=v?-5:5,w=m[v?"left":"right"],x=m[v?"right":"left"];a.onPointerGraceIntentChange({area:[{x:d.clientX+y,y:d.clientY},{x:w,y:m.top},{x,y:m.top},{x,y:m.bottom},{x:w,y:m.bottom}],side:h}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(d),d.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:B(e.onKeyDown,d=>{var b;const m=a.searchRef.current!=="";e.disabled||m&&d.key===" "||OL[r.dir].includes(d.key)&&(n.onOpenChange(!0),(b=n.content)==null||b.focus(),d.preventDefault())})})})});Zx.displayName=xo;var Jx="MenuSubContent",Qx=f.forwardRef((e,t)=>{const n=jx(Tt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=Cn(Tt,e.__scopeMenu),i=wo(Tt,e.__scopeMenu),s=Yx(Jx,e.__scopeMenu),l=f.useRef(null),c=fe(t,l);return u.jsx(vo.Provider,{scope:e.__scopeMenu,children:u.jsx(Le,{present:r||a.open,children:u.jsx(vo.Slot,{scope:e.__scopeMenu,children:u.jsx(Fd,{id:s.contentId,"aria-labelledby":s.triggerId,...o,ref:c,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:p=>{var d;i.isUsingKeyboardRef.current&&((d=l.current)==null||d.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 d=p.currentTarget.contains(p.target),m=IL[i.dir].includes(p.key);d&&m&&(a.onOpenChange(!1),(b=s.trigger)==null||b.focus(),p.preventDefault())})})})})})});Qx.displayName=Jx;function e0(e){return e?"open":"closed"}function oi(e){return e==="indeterminate"}function Hd(e){return oi(e)?"indeterminate":e?"checked":"unchecked"}function ZL(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function JL(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function QL(e,t,n){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let i=JL(e,Math.max(a,0));o.length===1&&(i=i.filter(c=>c!==n));const l=i.find(c=>c.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function e2(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const s=t[a].x,l=t[a].y,c=t[i].x,p=t[i].y;l>r!=p>r&&n<(c-s)*(r-l)/(p-l)+s&&(o=!o)}return o}function t2(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return e2(n,t)}function So(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Vd=Ix,Gd=kd,Wd=Dx,Ud=kx,Kd=Bd,Yd=$x,Xd=ri,Zd=Bx,Jd=qx,Qd=Vx,ef=Wx,tf=Ux,nf=Kx,rf=Xx,of=Zx,af=Qx,sf="ContextMenu",[n2,p3]=De(sf,[bo]),ut=bo(),[r2,t0]=n2(sf),n0=e=>{const{__scopeContextMenu:t,children:n,onOpenChange:r,dir:o,modal:a=!0}=e,[i,s]=f.useState(!1),l=ut(t),c=Re(r),p=f.useCallback(d=>{s(d),c(d)},[c]);return u.jsx(r2,{scope:t,open:i,onOpenChange:p,modal:a,children:u.jsx(Vd,{...l,dir:o,open:i,onOpenChange:p,modal:a,children:n})})};n0.displayName=sf;var r0="ContextMenuTrigger",o0=f.forwardRef((e,t)=>{const{__scopeContextMenu:n,disabled:r=!1,...o}=e,a=t0(r0,n),i=ut(n),s=f.useRef({x:0,y:0}),l=f.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...s.current})}),c=f.useRef(0),p=f.useCallback(()=>window.clearTimeout(c.current),[]),d=m=>{s.current={x:m.clientX,y:m.clientY},a.onOpenChange(!0)};return f.useEffect(()=>p,[p]),f.useEffect(()=>void(r&&p()),[r,p]),u.jsxs(u.Fragment,{children:[u.jsx(Gd,{...i,virtualRef:l}),u.jsx(Z.span,{"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,...o,ref:t,style:{WebkitTouchCallout:"none",...e.style},onContextMenu:r?e.onContextMenu:B(e.onContextMenu,m=>{p(),d(m),m.preventDefault()}),onPointerDown:r?e.onPointerDown:B(e.onPointerDown,ai(m=>{p(),c.current=window.setTimeout(()=>d(m),700)})),onPointerMove:r?e.onPointerMove:B(e.onPointerMove,ai(p)),onPointerCancel:r?e.onPointerCancel:B(e.onPointerCancel,ai(p)),onPointerUp:r?e.onPointerUp:B(e.onPointerUp,ai(p))})]})});o0.displayName=r0;var o2="ContextMenuPortal",a0=e=>{const{__scopeContextMenu:t,...n}=e,r=ut(t);return u.jsx(Wd,{...r,...n})};a0.displayName=o2;var i0="ContextMenuContent",s0=f.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=t0(i0,n),a=ut(n),i=f.useRef(!1);return u.jsx(Ud,{...a,...r,ref:t,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:s=>{var l;(l=e.onCloseAutoFocus)==null||l.call(e,s),!s.defaultPrevented&&i.current&&s.preventDefault(),i.current=!1},onInteractOutside:s=>{var l;(l=e.onInteractOutside)==null||l.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)"}})});s0.displayName=i0;var a2="ContextMenuGroup",l0=f.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=ut(n);return u.jsx(Kd,{...o,...r,ref:t})});l0.displayName=a2;var i2="ContextMenuLabel",c0=f.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=ut(n);return u.jsx(Yd,{...o,...r,ref:t})});c0.displayName=i2;var s2="ContextMenuItem",u0=f.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=ut(n);return u.jsx(Xd,{...o,...r,ref:t})});u0.displayName=s2;var l2="ContextMenuCheckboxItem",d0=f.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=ut(n);return u.jsx(Zd,{...o,...r,ref:t})});d0.displayName=l2;var c2="ContextMenuRadioGroup",f0=f.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=ut(n);return u.jsx(Jd,{...o,...r,ref:t})});f0.displayName=c2;var u2="ContextMenuRadioItem",p0=f.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=ut(n);return u.jsx(Qd,{...o,...r,ref:t})});p0.displayName=u2;var d2="ContextMenuItemIndicator",m0=f.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=ut(n);return u.jsx(ef,{...o,...r,ref:t})});m0.displayName=d2;var f2="ContextMenuSeparator",h0=f.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=ut(n);return u.jsx(tf,{...o,...r,ref:t})});h0.displayName=f2;var p2="ContextMenuArrow",m2=f.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=ut(n);return u.jsx(nf,{...o,...r,ref:t})});m2.displayName=p2;var h2="ContextMenuSub",g0=e=>{const{__scopeContextMenu:t,children:n,onOpenChange:r,open:o,defaultOpen:a}=e,i=ut(t),[s,l]=$e({prop:o,defaultProp:a,onChange:r});return u.jsx(rf,{...i,open:s,onOpenChange:l,children:n})};g0.displayName=h2;var g2="ContextMenuSubTrigger",v0=f.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=ut(n);return u.jsx(of,{...o,...r,ref:t})});v0.displayName=g2;var v2="ContextMenuSubContent",b0=f.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=ut(n);return u.jsx(af,{...o,...r,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)"}})});b0.displayName=v2;function ai(e){return t=>t.pointerType!=="mouse"?e(t):void 0}var b2=n0,y2=o0,y0=a0,w0=s0,w2=l0,x0=c0,S0=u0,C0=d0,x2=f0,_0=p0,E0=m0,P0=h0,S2=g0,T0=v0,N0=b0;const C2=b2,_2=y2,E2=w2,P2=y0,T2=S2,N2=x2,R0=f.forwardRef(({className:e,inset:t,children:n,...r},o)=>u.jsxs(T0,{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),...r,children:[n,u.jsx(hn,{className:"ml-auto h-4 w-4"})]}));R0.displayName=T0.displayName;const A0=f.forwardRef(({className:e,...t},n)=>u.jsx(N0,{ref:n,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}));A0.displayName=N0.displayName;const M0=f.forwardRef(({className:e,...t},n)=>u.jsx(y0,{children:u.jsx(w0,{ref:n,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})}));M0.displayName=w0.displayName;const O0=f.forwardRef(({className:e,inset:t,...n},r)=>u.jsx(S0,{ref:r,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),...n}));O0.displayName=S0.displayName;const I0=f.forwardRef(({className:e,children:t,checked:n,...r},o)=>u.jsxs(C0,{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:n,...r,children:[u.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:u.jsx(E0,{children:u.jsx(Yn,{className:"h-4 w-4"})})}),t]}));I0.displayName=C0.displayName;const j0=f.forwardRef(({className:e,children:t,...n},r)=>u.jsxs(_0,{ref:r,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),...n,children:[u.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:u.jsx(E0,{children:u.jsx(Zo,{className:"h-4 w-4 fill-current"})})}),t]}));j0.displayName=_0.displayName;const D0=f.forwardRef(({className:e,inset:t,...n},r)=>u.jsx(x0,{ref:r,className:O("px-2 py-1.5 text-sm font-semibold text-foreground",t&&"pl-8",e),...n}));D0.displayName=x0.displayName;const k0=f.forwardRef(({className:e,...t},n)=>u.jsx(P0,{ref:n,className:O("-mx-1 my-1 h-px bg-border",e),...t}));k0.displayName=P0.displayName;const $0=({className:e,...t})=>u.jsx("span",{className:O("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});$0.displayName="ContextMenuShortcut";const R2=ca,A2=ua,L0=da,M2=In,lf=f.forwardRef(({className:e,...t},n)=>u.jsx(rr,{ref:n,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}));lf.displayName=rr.displayName;const F0=f.forwardRef(({className:e,children:t,...n},r)=>u.jsxs(L0,{children:[u.jsx(lf,{}),u.jsxs(or,{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),...n,children:[t,u.jsxs(In,{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:[u.jsx(as,{className:"h-4 w-4"}),u.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));F0.displayName=or.displayName;const B0=({className:e,...t})=>u.jsx("div",{className:O("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});B0.displayName="DialogHeader";const z0=({className:e,...t})=>u.jsx("div",{className:O("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});z0.displayName="DialogFooter";const q0=f.forwardRef(({className:e,...t},n)=>u.jsx(ar,{ref:n,className:O("text-lg font-semibold leading-none tracking-tight",e),...t}));q0.displayName=ar.displayName;const H0=f.forwardRef(({className:e,...t},n)=>u.jsx(ir,{ref:n,className:O("text-sm text-muted-foreground",e),...t}));H0.displayName=ir.displayName;function O2(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const V0=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}),Co=()=>{const e=E.useContext(V0);if(!e)throw new Error("useDrawerContext must be used within a Drawer.Root");return e};O2(`[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(
|
|
217
|
-
[data-state=closed]
|
|
218
|
-
){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 I2(){const e=navigator.userAgent;return typeof window<"u"&&(/Firefox/.test(e)&&/Mobile/.test(e)||/FxiOS/.test(e))}function j2(){return cf(/^Mac/)}function D2(){return cf(/^iPhone/)}function G0(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function k2(){return cf(/^iPad/)||j2()&&navigator.maxTouchPoints>1}function W0(){return D2()||k2()}function cf(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):void 0}const $2=24,L2=typeof window<"u"?E.useLayoutEffect:E.useEffect;function U0(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const uf=typeof document<"u"&&window.visualViewport;function K0(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function Y0(e){for(K0(e)&&(e=e.parentElement);e&&!K0(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}const F2=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let ii=0,df;function B2(e={}){let{isDisabled:t}=e;L2(()=>{if(!t)return ii++,ii===1&&W0()&&(df=z2()),()=>{ii--,ii===0&&(df==null||df())}},[t])}function z2(){let e,t=0,n=d=>{e=Y0(d.target),!(e===document.documentElement&&e===document.body)&&(t=d.changedTouches[0].pageY)},r=d=>{if(!e||e===document.documentElement||e===document.body){d.preventDefault();return}let m=d.changedTouches[0].pageY,b=e.scrollTop,g=e.scrollHeight-e.clientHeight;g!==0&&((b<=0&&m>t||b>=g&&m<t)&&d.preventDefault(),t=m)},o=d=>{let m=d.target;ff(m)&&m!==document.activeElement&&(d.preventDefault(),m.style.transform="translateY(-2000px)",m.focus(),requestAnimationFrame(()=>{m.style.transform=""}))},a=d=>{let m=d.target;ff(m)&&(m.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{m.style.transform="",uf&&(uf.height<window.innerHeight?requestAnimationFrame(()=>{X0(m)}):uf.addEventListener("resize",()=>X0(m),{once:!0}))}))},i=()=>{window.scrollTo(0,0)},s=window.pageXOffset,l=window.pageYOffset,c=U0(q2(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`));window.scrollTo(0,0);let p=U0(_o(document,"touchstart",n,{passive:!1,capture:!0}),_o(document,"touchmove",r,{passive:!1,capture:!0}),_o(document,"touchend",o,{passive:!1,capture:!0}),_o(document,"focus",a,!0),_o(window,"scroll",i));return()=>{c(),p(),window.scrollTo(s,l)}}function q2(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function _o(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function X0(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=Y0(e);if(n!==document.documentElement&&n!==document.body&&n!==e){let r=n.getBoundingClientRect().top,o=e.getBoundingClientRect().top,a=e.getBoundingClientRect().bottom;const i=n.getBoundingClientRect().bottom+$2;a>i&&(n.scrollTop+=o-r)}e=n.parentElement}}function ff(e){return e instanceof HTMLInputElement&&!F2.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function H2(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function V2(...e){return t=>e.forEach(n=>H2(n,t))}function Z0(...e){return f.useCallback(V2(...e),e)}const J0=new WeakMap;function Je(e,t,n=!1){if(!e||!(e instanceof HTMLElement))return;let r={};Object.entries(t).forEach(([o,a])=>{if(o.startsWith("--")){e.style.setProperty(o,a);return}r[o]=e.style[o],e.style[o]=a}),!n&&J0.set(e,r)}function G2(e,t){if(!e||!(e instanceof HTMLElement))return;let n=J0.get(e);n&&(e.style[t]=n[t])}const Ke=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function si(e,t){if(!e)return null;const n=window.getComputedStyle(e),r=n.transform||n.webkitTransform||n.mozTransform;let o=r.match(/^matrix3d\((.+)\)$/);return o?parseFloat(o[1].split(", ")[Ke(t)?13:12]):(o=r.match(/^matrix\((.+)\)$/),o?parseFloat(o[1].split(", ")[Ke(t)?5:4]):null)}function W2(e){return 8*(Math.log(e+1)-2)}function pf(e,t){if(!e)return()=>{};const n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}function U2(...e){return(...t)=>{for(const n of e)typeof n=="function"&&n(...t)}}const qe={DURATION:.5,EASE:[.32,.72,0,1]},Q0=.4,K2=.25,Y2=100,eS=8,li=16,mf=26,hf="vaul-dragging";function tS(e){const t=E.useRef(e);return E.useEffect(()=>{t.current=e}),E.useMemo(()=>(...n)=>t.current==null?void 0:t.current.call(t,...n),[])}function X2({defaultProp:e,onChange:t}){const n=E.useState(e),[r]=n,o=E.useRef(r),a=tS(t);return E.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}function nS({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=X2({defaultProp:t,onChange:n}),a=e!==void 0,i=a?e:r,s=tS(n),l=E.useCallback(c=>{if(a){const d=typeof c=="function"?c(e):c;d!==e&&s(d)}else o(c)},[a,e,o,s]);return[i,l]}function Z2({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:n,drawerRef:r,overlayRef:o,fadeFromIndex:a,onSnapPointChange:i,direction:s="bottom",container:l,snapToSequentialPoint:c}){const[p,d]=nS({prop:e,defaultProp:n==null?void 0:n[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===(n==null?void 0:n[n.length-1])||null,[n,p]),h=E.useMemo(()=>{var C;return(C=n==null?void 0:n.findIndex(M=>M===p))!=null?C:null},[n,p]),v=n&&n.length>0&&(a||a===0)&&!Number.isNaN(a)&&n[a]===p||!n,y=E.useMemo(()=>{const C=l?{width:l.getBoundingClientRect().width,height:l.getBoundingClientRect().height}:typeof window<"u"?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0};var M;return(M=n==null?void 0:n.map(N=>{const $=typeof N=="string";let D=0;if($&&(D=parseInt(N,10)),Ke(s)){const A=$?D:m?N*C.height:0;return m?s==="bottom"?C.height-A:-C.height+A:A}const F=$?D:m?N*C.width:0;return m?s==="right"?C.width-F:-C.width+F:F}))!=null?M:[]},[n,m,l]),w=E.useMemo(()=>h!==null?y==null?void 0:y[h]:null,[y,h]),x=E.useCallback(C=>{var M;const N=(M=y==null?void 0:y.findIndex($=>$===C))!=null?M:null;i(N),Je(r.current,{transition:`transform ${qe.DURATION}s cubic-bezier(${qe.EASE.join(",")})`,transform:Ke(s)?`translate3d(0, ${C}px, 0)`:`translate3d(${C}px, 0, 0)`}),y&&N!==y.length-1&&a!==void 0&&N!==a&&N<a?Je(o.current,{transition:`opacity ${qe.DURATION}s cubic-bezier(${qe.EASE.join(",")})`,opacity:"0"}):Je(o.current,{transition:`opacity ${qe.DURATION}s cubic-bezier(${qe.EASE.join(",")})`,opacity:"1"}),d(n==null?void 0:n[Math.max(N,0)])},[r.current,n,y,a,o,d]);E.useEffect(()=>{if(p||e){var C;const M=(C=n==null?void 0:n.findIndex(N=>N===e||N===p))!=null?C:-1;y&&M!==-1&&typeof y[M]=="number"&&x(y[M])}},[p,e,n,y,x]);function S({draggedDistance:C,closeDrawer:M,velocity:N,dismissible:$}){if(a===void 0)return;const D=s==="bottom"||s==="right"?(w??0)-C:(w??0)+C,F=h===a-1,A=h===0,k=C>0;if(F&&Je(o.current,{transition:`opacity ${qe.DURATION}s cubic-bezier(${qe.EASE.join(",")})`}),!c&&N>2&&!k){$?M():x(y[0]);return}if(!c&&N>2&&k&&y&&n){x(y[n.length-1]);return}const L=y==null?void 0:y.reduce((W,V)=>typeof W!="number"||typeof V!="number"?W:Math.abs(V-D)<Math.abs(W-D)?V:W),I=Ke(s)?window.innerHeight:window.innerWidth;if(N>Q0&&Math.abs(C)<I*.4){const W=k?1:-1;if(W>0&&g&&n){x(y[n.length-1]);return}if(A&&W<0&&$&&M(),h===null)return;x(y[h+W]);return}x(L)}function _({draggedDistance:C}){if(w===null)return;const M=s==="bottom"||s==="right"?w-C:w+C;(s==="bottom"||s==="right")&&M<y[y.length-1]||(s==="top"||s==="left")&&M>y[y.length-1]||Je(r.current,{transform:Ke(s)?`translate3d(0, ${M}px, 0)`:`translate3d(${M}px, 0, 0)`})}function P(C,M){if(!n||typeof h!="number"||!y||a===void 0)return null;const N=h===a-1;if(h>=a&&M)return 0;if(N&&!M)return 1;if(!v&&!N)return null;const D=N?h+1:h-1,F=N?y[D]-y[D-1]:y[D+1]-y[D],A=C/Math.abs(F);return N?1-A:A}return{isLastSnapPoint:g,activeSnapPoint:p,shouldFade:v,getPercentageDragged:P,setActiveSnapPoint:d,activeSnapPointIndex:h,onRelease:S,onDrag:_,snapPointsOffset:y}}const J2=()=>()=>{};function Q2(){const{direction:e,isOpen:t,shouldScaleBackground:n,setBackgroundColorOnScale:r,noBodyStyles:o}=Co(),a=E.useRef(null),i=E.useMemo(()=>document.body.style.backgroundColor,[]);function s(){return(window.innerWidth-mf)/window.innerWidth}E.useEffect(()=>{if(t&&n){a.current&&clearTimeout(a.current);const l=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!l)return;U2(r&&!o?pf(document.body,{background:"black"}):J2,pf(l,{transformOrigin:Ke(e)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:`${qe.DURATION}s`,transitionTimingFunction:`cubic-bezier(${qe.EASE.join(",")})`}));const c=pf(l,{borderRadius:`${eS}px`,overflow:"hidden",...Ke(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()=>{c(),a.current=window.setTimeout(()=>{i?document.body.style.background=i:document.body.style.removeProperty("background")},qe.DURATION*1e3)}}},[t,n,i])}let Eo=null;function eF({isOpen:e,modal:t,nested:n,hasBeenOpened:r,preventScrollRestoration:o,noBodyStyles:a}){const[i,s]=E.useState(()=>typeof window<"u"?window.location.href:""),l=E.useRef(0),c=E.useCallback(()=>{if(G0()&&Eo===null&&e&&!a){Eo={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:"unset"};const{scrollX:d,innerHeight:m}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:`${-l.current}px`,left:`${-d}px`,right:"0px",height:"auto"}),window.setTimeout(()=>window.requestAnimationFrame(()=>{const b=m-window.innerHeight;b&&l.current>=m&&(document.body.style.top=`${-(l.current+b)}px`)}),300)}},[e]),p=E.useCallback(()=>{if(G0()&&Eo!==null&&!a){const d=-parseInt(document.body.style.top,10),m=-parseInt(document.body.style.left,10);Object.assign(document.body.style,Eo),window.requestAnimationFrame(()=>{if(o&&i!==window.location.href){s(window.location.href);return}window.scrollTo(m,d)}),Eo=null}},[i]);return E.useEffect(()=>{function d(){l.current=window.scrollY}return d(),window.addEventListener("scroll",d),()=>{window.removeEventListener("scroll",d)}},[]),E.useEffect(()=>{if(t)return()=>{typeof document>"u"||document.querySelector("[data-vaul-drawer]")||p()}},[t,p]),E.useEffect(()=>{n||!r||(e?(!window.matchMedia("(display-mode: standalone)").matches&&c(),t||window.setTimeout(()=>{p()},500)):p())},[e,r,i,t,n,c,p]),{restorePositionSetting:p}}function tF({open:e,onOpenChange:t,children:n,onDrag:r,onRelease:o,snapPoints:a,shouldScaleBackground:i=!1,setBackgroundColorOnScale:s=!0,closeThreshold:l=K2,scrollLockTimeout:c=Y2,dismissible:p=!0,handleOnly:d=!1,fadeFromIndex:m=a&&a.length-1,activeSnapPoint:b,setActiveSnapPoint:g,fixed:h,modal:v=!0,onClose:y,nested:w,noBodyStyles:x=!1,direction:S="bottom",defaultOpen:_=!1,disablePreventScroll:P=!0,snapToSequentialPoint:C=!1,preventScrollRestoration:M=!1,repositionInputs:N=!0,onAnimationEnd:$,container:D,autoFocus:F=!1}){var A,k;const[L=!1,I]=nS({defaultProp:_,prop:e,onChange:de=>{t==null||t(de),!de&&!w&&it(),setTimeout(()=>{$==null||$(de)},qe.DURATION*1e3),de&&!v&&typeof window<"u"&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"}),de||(document.body.style.pointerEvents="auto")}}),[W,V]=E.useState(!1),[q,ae]=E.useState(!1),[J,ne]=E.useState(!1),z=E.useRef(null),U=E.useRef(null),ee=E.useRef(null),Y=E.useRef(null),H=E.useRef(null),K=E.useRef(!1),re=E.useRef(null),Q=E.useRef(0),oe=E.useRef(!1),G=E.useRef(!_),ie=E.useRef(0),j=E.useRef(null),te=E.useRef(((A=j.current)==null?void 0:A.getBoundingClientRect().height)||0),me=E.useRef(((k=j.current)==null?void 0:k.getBoundingClientRect().width)||0),he=E.useRef(0),ve=E.useCallback(de=>{a&&de===Ie.length-1&&(U.current=new Date)},[]),{activeSnapPoint:pe,activeSnapPointIndex:Te,setActiveSnapPoint:He,onRelease:Se,snapPointsOffset:Ie,onDrag:ot,shouldFade:Qe,getPercentageDragged:Ye}=Z2({snapPoints:a,activeSnapPointProp:b,setActiveSnapPointProp:g,drawerRef:j,fadeFromIndex:m,overlayRef:z,onSnapPointChange:ve,direction:S,container:D,snapToSequentialPoint:C});B2({isDisabled:!L||q||!v||J||!W||!N||!P});const{restorePositionSetting:it}=eF({isOpen:L,modal:v,nested:w??!1,hasBeenOpened:W,preventScrollRestoration:M,noBodyStyles:x});function yt(){return(window.innerWidth-mf)/window.innerWidth}function pt(de){var we,Ee;!p&&!a||j.current&&!j.current.contains(de.target)||(te.current=((we=j.current)==null?void 0:we.getBoundingClientRect().height)||0,me.current=((Ee=j.current)==null?void 0:Ee.getBoundingClientRect().width)||0,ae(!0),ee.current=new Date,W0()&&window.addEventListener("touchend",()=>K.current=!1,{once:!0}),de.target.setPointerCapture(de.pointerId),Q.current=Ke(S)?de.pageY:de.pageX)}function We(de,we){var Ee;let be=de;const se=(Ee=window.getSelection())==null?void 0:Ee.toString(),Ce=j.current?si(j.current,S):null,xe=new Date;if(be.tagName==="SELECT"||be.hasAttribute("data-vaul-no-drag")||be.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(Ce!==null&&(S==="bottom"?Ce>0:Ce<0))return!0;if(se&&se.length>0)return!1;if(H.current&&xe.getTime()-H.current.getTime()<c&&Ce===0||we)return H.current=xe,!1;for(;be;){if(be.scrollHeight>be.clientHeight){if(be.scrollTop!==0)return H.current=new Date,!1;if(be.getAttribute("role")==="dialog")return!0}be=be.parentNode}return!0}function At(de){if(j.current&&q){const we=S==="bottom"||S==="right"?1:-1,Ee=(Q.current-(Ke(S)?de.pageY:de.pageX))*we,be=Ee>0,se=a&&!p&&!be;if(se&&Te===0)return;const Ce=Math.abs(Ee),xe=document.querySelector("[data-vaul-drawer-wrapper]"),Fe=S==="bottom"||S==="top"?te.current:me.current;let tt=Ce/Fe;const je=Ye(Ce,be);if(je!==null&&(tt=je),se&&tt>=1||!K.current&&!We(de.target,be))return;if(j.current.classList.add(hf),K.current=!0,Je(j.current,{transition:"none"}),Je(z.current,{transition:"none"}),a&&ot({draggedDistance:Ee}),be&&!a){const st=W2(Ee),nt=Math.min(st*-1,0)*we;Je(j.current,{transform:Ke(S)?`translate3d(0, ${nt}px, 0)`:`translate3d(${nt}px, 0, 0)`});return}const Ve=1-tt;if((Qe||m&&Te===m-1)&&(r==null||r(de,tt),Je(z.current,{opacity:`${Ve}`,transition:"none"},!0)),xe&&z.current&&i){const st=Math.min(yt()+tt*(1-yt()),1),nt=8-tt*8,lt=Math.max(0,14-tt*14);Je(xe,{borderRadius:`${nt}px`,transform:Ke(S)?`scale(${st}) translate3d(0, ${lt}px, 0)`:`scale(${st}) translate3d(${lt}px, 0, 0)`,transition:"none"},!0)}if(!a){const st=Ce*we;Je(j.current,{transform:Ke(S)?`translate3d(0, ${st}px, 0)`:`translate3d(${st}px, 0, 0)`})}}}E.useEffect(()=>{window.requestAnimationFrame(()=>{G.current=!0})},[]),E.useEffect(()=>{var de;function we(){if(!j.current||!N)return;const Ee=document.activeElement;if(ff(Ee)||oe.current){var be;const se=((be=window.visualViewport)==null?void 0:be.height)||0,Ce=window.innerHeight;let xe=Ce-se;const Fe=j.current.getBoundingClientRect().height||0,tt=Fe>Ce*.8;he.current||(he.current=Fe);const je=j.current.getBoundingClientRect().top;if(Math.abs(ie.current-xe)>60&&(oe.current=!oe.current),a&&a.length>0&&Ie&&Te){const Ve=Ie[Te]||0;xe+=Ve}if(ie.current=xe,Fe>se||oe.current){const Ve=j.current.getBoundingClientRect().height;let st=Ve;Ve>se&&(st=se-(tt?je:mf)),h?j.current.style.height=`${Ve-Math.max(xe,0)}px`:j.current.style.height=`${Math.max(st,se-je)}px`}else I2()||(j.current.style.height=`${he.current}px`);a&&a.length>0&&!oe.current?j.current.style.bottom="0px":j.current.style.bottom=`${Math.max(xe,0)}px`}}return(de=window.visualViewport)==null||de.addEventListener("resize",we),()=>{var Ee;return(Ee=window.visualViewport)==null?void 0:Ee.removeEventListener("resize",we)}},[Te,a,Ie]);function Xe(de){Vt(),y==null||y(),de||I(!1),setTimeout(()=>{a&&He(a[0])},qe.DURATION*1e3)}function et(){if(!j.current)return;const de=document.querySelector("[data-vaul-drawer-wrapper]"),we=si(j.current,S);Je(j.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${qe.DURATION}s cubic-bezier(${qe.EASE.join(",")})`}),Je(z.current,{transition:`opacity ${qe.DURATION}s cubic-bezier(${qe.EASE.join(",")})`,opacity:"1"}),i&&we&&we>0&&L&&Je(de,{borderRadius:`${eS}px`,overflow:"hidden",...Ke(S)?{transform:`scale(${yt()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${yt()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${qe.DURATION}s`,transitionTimingFunction:`cubic-bezier(${qe.EASE.join(",")})`},!0)}function Vt(){!q||!j.current||(j.current.classList.remove(hf),K.current=!1,ae(!1),Y.current=new Date)}function nn(de){if(!q||!j.current)return;j.current.classList.remove(hf),K.current=!1,ae(!1),Y.current=new Date;const we=si(j.current,S);if(!de||!We(de.target,!1)||!we||Number.isNaN(we)||ee.current===null)return;const Ee=Y.current.getTime()-ee.current.getTime(),be=Q.current-(Ke(S)?de.pageY:de.pageX),se=Math.abs(be)/Ee;if(se>.05&&(ne(!0),setTimeout(()=>{ne(!1)},200)),a){Se({draggedDistance:be*(S==="bottom"||S==="right"?1:-1),closeDrawer:Xe,velocity:se,dismissible:p}),o==null||o(de,!0);return}if(S==="bottom"||S==="right"?be>0:be<0){et(),o==null||o(de,!0);return}if(se>Q0){Xe(),o==null||o(de,!1);return}var Ce;const xe=Math.min((Ce=j.current.getBoundingClientRect().height)!=null?Ce:0,window.innerHeight);var Fe;const tt=Math.min((Fe=j.current.getBoundingClientRect().width)!=null?Fe:0,window.innerWidth),je=S==="left"||S==="right";if(Math.abs(we)>=(je?tt:xe)*l){Xe(),o==null||o(de,!1);return}o==null||o(de,!0),et()}E.useEffect(()=>(L&&(Je(document.documentElement,{scrollBehavior:"auto"}),U.current=new Date),()=>{G2(document.documentElement,"scrollBehavior")}),[L]);function Nn(de){const we=de?(window.innerWidth-li)/window.innerWidth:1,Ee=de?-16:0;re.current&&window.clearTimeout(re.current),Je(j.current,{transition:`transform ${qe.DURATION}s cubic-bezier(${qe.EASE.join(",")})`,transform:Ke(S)?`scale(${we}) translate3d(0, ${Ee}px, 0)`:`scale(${we}) translate3d(${Ee}px, 0, 0)`}),!de&&j.current&&(re.current=setTimeout(()=>{const be=si(j.current,S);Je(j.current,{transition:"none",transform:Ke(S)?`translate3d(0, ${be}px, 0)`:`translate3d(${be}px, 0, 0)`})},500))}function Un(de,we){if(we<0)return;const Ee=(window.innerWidth-li)/window.innerWidth,be=Ee+we*(1-Ee),se=-16+we*li;Je(j.current,{transform:Ke(S)?`scale(${be}) translate3d(0, ${se}px, 0)`:`scale(${be}) translate3d(${se}px, 0, 0)`,transition:"none"})}function Gt(de,we){const Ee=Ke(S)?window.innerHeight:window.innerWidth,be=we?(Ee-li)/Ee:1,se=we?-16:0;we&&Je(j.current,{transition:`transform ${qe.DURATION}s cubic-bezier(${qe.EASE.join(",")})`,transform:Ke(S)?`scale(${be}) translate3d(0, ${se}px, 0)`:`scale(${be}) translate3d(${se}px, 0, 0)`})}return E.useEffect(()=>{v||window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"})},[v]),E.createElement(ca,{defaultOpen:_,onOpenChange:de=>{!p&&!de||(de?V(!0):Xe(!0),I(de))},open:L},E.createElement(V0.Provider,{value:{activeSnapPoint:pe,snapPoints:a,setActiveSnapPoint:He,drawerRef:j,overlayRef:z,onOpenChange:t,onPress:pt,onRelease:nn,onDrag:At,dismissible:p,shouldAnimate:G,handleOnly:d,isOpen:L,isDragging:q,shouldFade:Qe,closeDrawer:Xe,onNestedDrag:Un,onNestedOpenChange:Nn,onNestedRelease:Gt,keyboardIsOpen:oe,modal:v,snapPointsOffset:Ie,activeSnapPointIndex:Te,direction:S,shouldScaleBackground:i,setBackgroundColorOnScale:s,noBodyStyles:x,container:D,autoFocus:F}},n))}const rS=E.forwardRef(function({...e},t){const{overlayRef:n,snapPoints:r,onRelease:o,shouldFade:a,isOpen:i,modal:s,shouldAnimate:l}=Co(),c=Z0(t,n),p=r&&r.length>0;if(!s)return null;const d=E.useCallback(m=>o(m),[o]);return E.createElement(rr,{onMouseUp:d,ref:c,"data-vaul-overlay":"","data-vaul-snap-points":i&&p?"true":"false","data-vaul-snap-points-overlay":i&&a?"true":"false","data-vaul-animate":l!=null&&l.current?"true":"false",...e})});rS.displayName="Drawer.Overlay";const oS=E.forwardRef(function({onPointerDownOutside:e,style:t,onOpenAutoFocus:n,...r},o){const{drawerRef:a,onPress:i,onRelease:s,onDrag:l,keyboardIsOpen:c,snapPointsOffset:p,activeSnapPointIndex:d,modal:m,isOpen:b,direction:g,snapPoints:h,container:v,handleOnly:y,shouldAnimate:w,autoFocus:x}=Co(),[S,_]=E.useState(!1),P=Z0(o,a),C=E.useRef(null),M=E.useRef(null),N=E.useRef(!1),$=h&&h.length>0;Q2();const D=(A,k,L=0)=>{if(N.current)return!0;const I=Math.abs(A.y),W=Math.abs(A.x),V=W>I,q=["bottom","right"].includes(k)?1:-1;if(k==="left"||k==="right"){if(!(A.x*q<0)&&W>=0&&W<=L)return V}else if(!(A.y*q<0)&&I>=0&&I<=L)return!V;return N.current=!0,!0};E.useEffect(()=>{$&&window.requestAnimationFrame(()=>{_(!0)})},[]);function F(A){C.current=null,N.current=!1,s(A)}return E.createElement(or,{"data-vaul-drawer-direction":g,"data-vaul-drawer":"","data-vaul-delayed-snap-points":S?"true":"false","data-vaul-snap-points":b&&$?"true":"false","data-vaul-custom-container":v?"true":"false","data-vaul-animate":w!=null&&w.current?"true":"false",...r,ref:P,style:p&&p.length>0?{"--snap-point-height":`${p[d??0]}px`,...t}:t,onPointerDown:A=>{y||(r.onPointerDown==null||r.onPointerDown.call(r,A),C.current={x:A.pageX,y:A.pageY},i(A))},onOpenAutoFocus:A=>{n==null||n(A),x||A.preventDefault()},onPointerDownOutside:A=>{if(e==null||e(A),!m||A.defaultPrevented){A.preventDefault();return}c.current&&(c.current=!1)},onFocusOutside:A=>{if(!m){A.preventDefault();return}},onPointerMove:A=>{if(M.current=A,y||(r.onPointerMove==null||r.onPointerMove.call(r,A),!C.current))return;const k=A.pageY-C.current.y,L=A.pageX-C.current.x,I=A.pointerType==="touch"?10:2;D({x:L,y:k},g,I)?l(A):(Math.abs(L)>I||Math.abs(k)>I)&&(C.current=null)},onPointerUp:A=>{r.onPointerUp==null||r.onPointerUp.call(r,A),C.current=null,N.current=!1,s(A)},onPointerOut:A=>{r.onPointerOut==null||r.onPointerOut.call(r,A),F(M.current)},onContextMenu:A=>{r.onContextMenu==null||r.onContextMenu.call(r,A),M.current&&F(M.current)}})});oS.displayName="Drawer.Content";const nF=250,rF=120,oF=E.forwardRef(function({preventCycle:e=!1,children:t,...n},r){const{closeDrawer:o,isDragging:a,snapPoints:i,activeSnapPoint:s,setActiveSnapPoint:l,dismissible:c,handleOnly:p,isOpen:d,onPress:m,onDrag:b}=Co(),g=E.useRef(null),h=E.useRef(!1);function v(){if(h.current){x();return}window.setTimeout(()=>{y()},rF)}function y(){if(a||e||h.current){x();return}if(x(),!i||i.length===0){c||o();return}if(s===i[i.length-1]&&c){o();return}const _=i.findIndex(C=>C===s);if(_===-1)return;const P=i[_+1];l(P)}function w(){g.current=window.setTimeout(()=>{h.current=!0},nF)}function x(){g.current&&window.clearTimeout(g.current),h.current=!1}return E.createElement("div",{onClick:v,onPointerCancel:x,onPointerDown:S=>{p&&m(S),w()},onPointerMove:S=>{p&&b(S)},ref:r,"data-vaul-drawer-visible":d?"true":"false","data-vaul-handle":"","aria-hidden":"true",...n},E.createElement("span",{"data-vaul-handle-hitarea":"","aria-hidden":"true"},t))});oF.displayName="Drawer.Handle";function aF(e){const t=Co(),{container:n=t.container,...r}=e;return E.createElement(da,{container:n,...r})}const zt={Root:tF,Content:oS,Overlay:rS,Trigger:ua,Portal:aF,Close:In,Title:ar,Description:ir},aS=({shouldScaleBackground:e=!0,...t})=>u.jsx(zt.Root,{shouldScaleBackground:e,...t});aS.displayName="Drawer";const iF=zt.Trigger,iS=zt.Portal,sF=zt.Close,gf=f.forwardRef(({className:e,...t},n)=>u.jsx(zt.Overlay,{ref:n,className:O("fixed inset-0 z-50 bg-black/80",e),...t}));gf.displayName=zt.Overlay.displayName;const sS=f.forwardRef(({className:e,children:t,...n},r)=>u.jsxs(iS,{children:[u.jsx(gf,{}),u.jsxs(zt.Content,{ref:r,className:O("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",e),...n,children:[u.jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),t]})]}));sS.displayName="DrawerContent";const lS=({className:e,...t})=>u.jsx("div",{className:O("grid gap-1.5 p-4 text-center sm:text-left",e),...t});lS.displayName="DrawerHeader";const cS=({className:e,...t})=>u.jsx("div",{className:O("mt-auto flex flex-col gap-2 p-4",e),...t});cS.displayName="DrawerFooter";const uS=f.forwardRef(({className:e,...t},n)=>u.jsx(zt.Title,{ref:n,className:O("text-lg font-semibold leading-none tracking-tight",e),...t}));uS.displayName=zt.Title.displayName;const dS=f.forwardRef(({className:e,...t},n)=>u.jsx(zt.Description,{ref:n,className:O("text-sm text-muted-foreground",e),...t}));dS.displayName=zt.Description.displayName;var vf="DropdownMenu",[lF,m3]=De(vf,[bo]),dt=bo(),[cF,fS]=lF(vf),pS=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:a,onOpenChange:i,modal:s=!0}=e,l=dt(t),c=f.useRef(null),[p=!1,d]=$e({prop:o,defaultProp:a,onChange:i});return u.jsx(cF,{scope:t,triggerId:Ge(),triggerRef:c,contentId:Ge(),open:p,onOpenChange:d,onOpenToggle:f.useCallback(()=>d(m=>!m),[d]),modal:s,children:u.jsx(Vd,{...l,open:p,onOpenChange:d,dir:r,modal:s,children:n})})};pS.displayName=vf;var mS="DropdownMenuTrigger",hS=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=fS(mS,n),i=dt(n);return u.jsx(Gd,{asChild:!0,...i,children:u.jsx(Z.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:Fr(t,a.triggerRef),onPointerDown:B(e.onPointerDown,s=>{!r&&s.button===0&&s.ctrlKey===!1&&(a.onOpenToggle(),a.open||s.preventDefault())}),onKeyDown:B(e.onKeyDown,s=>{r||(["Enter"," "].includes(s.key)&&a.onOpenToggle(),s.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})})});hS.displayName=mS;var uF="DropdownMenuPortal",gS=e=>{const{__scopeDropdownMenu:t,...n}=e,r=dt(t);return u.jsx(Wd,{...r,...n})};gS.displayName=uF;var vS="DropdownMenuContent",bS=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=fS(vS,n),a=dt(n),i=f.useRef(!1);return u.jsx(Ud,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...r,ref:t,onCloseAutoFocus:B(e.onCloseAutoFocus,s=>{var l;i.current||(l=o.triggerRef.current)==null||l.focus(),i.current=!1,s.preventDefault()}),onInteractOutside:B(e.onInteractOutside,s=>{const l=s.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,p=l.button===2||c;(!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)"}})});bS.displayName=vS;var dF="DropdownMenuGroup",yS=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=dt(n);return u.jsx(Kd,{...o,...r,ref:t})});yS.displayName=dF;var fF="DropdownMenuLabel",wS=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=dt(n);return u.jsx(Yd,{...o,...r,ref:t})});wS.displayName=fF;var pF="DropdownMenuItem",xS=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=dt(n);return u.jsx(Xd,{...o,...r,ref:t})});xS.displayName=pF;var mF="DropdownMenuCheckboxItem",SS=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=dt(n);return u.jsx(Zd,{...o,...r,ref:t})});SS.displayName=mF;var hF="DropdownMenuRadioGroup",CS=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=dt(n);return u.jsx(Jd,{...o,...r,ref:t})});CS.displayName=hF;var gF="DropdownMenuRadioItem",_S=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=dt(n);return u.jsx(Qd,{...o,...r,ref:t})});_S.displayName=gF;var vF="DropdownMenuItemIndicator",ES=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=dt(n);return u.jsx(ef,{...o,...r,ref:t})});ES.displayName=vF;var bF="DropdownMenuSeparator",PS=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=dt(n);return u.jsx(tf,{...o,...r,ref:t})});PS.displayName=bF;var yF="DropdownMenuArrow",wF=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=dt(n);return u.jsx(nf,{...o,...r,ref:t})});wF.displayName=yF;var xF=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:a}=e,i=dt(t),[s=!1,l]=$e({prop:r,defaultProp:a,onChange:o});return u.jsx(rf,{...i,open:s,onOpenChange:l,children:n})},SF="DropdownMenuSubTrigger",TS=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=dt(n);return u.jsx(of,{...o,...r,ref:t})});TS.displayName=SF;var CF="DropdownMenuSubContent",NS=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=dt(n);return u.jsx(af,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});NS.displayName=CF;var _F=pS,EF=hS,RS=gS,AS=bS,PF=yS,MS=wS,OS=xS,IS=SS,TF=CS,jS=_S,DS=ES,kS=PS,NF=xF,$S=TS,LS=NS;const FS=_F,BS=EF,RF=PF,AF=RS,MF=NF,OF=TF,zS=f.forwardRef(({className:e,inset:t,children:n,...r},o)=>u.jsxs($S,{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),...r,children:[n,u.jsx(hn,{className:"ml-auto"})]}));zS.displayName=$S.displayName;const qS=f.forwardRef(({className:e,...t},n)=>u.jsx(LS,{ref:n,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}));qS.displayName=LS.displayName;const bf=f.forwardRef(({className:e,sideOffset:t=4,...n},r)=>u.jsx(RS,{children:u.jsx(AS,{ref:r,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),...n})}));bf.displayName=AS.displayName;const yf=f.forwardRef(({className:e,inset:t,...n},r)=>u.jsx(OS,{ref:r,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),...n}));yf.displayName=OS.displayName;const HS=f.forwardRef(({className:e,children:t,checked:n,...r},o)=>u.jsxs(IS,{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:n,...r,children:[u.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:u.jsx(DS,{children:u.jsx(Yn,{className:"h-4 w-4"})})}),t]}));HS.displayName=IS.displayName;const VS=f.forwardRef(({className:e,children:t,...n},r)=>u.jsxs(jS,{ref:r,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),...n,children:[u.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:u.jsx(DS,{children:u.jsx(Zo,{className:"h-2 w-2 fill-current"})})}),t]}));VS.displayName=jS.displayName;const GS=f.forwardRef(({className:e,inset:t,...n},r)=>u.jsx(MS,{ref:r,className:O("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));GS.displayName=MS.displayName;const WS=f.forwardRef(({className:e,...t},n)=>u.jsx(kS,{ref:n,className:O("-mx-1 my-1 h-px bg-muted",e),...t}));WS.displayName=kS.displayName;const US=({className:e,...t})=>u.jsx("span",{className:O("ml-auto text-xs tracking-widest opacity-60",e),...t});US.displayName="DropdownMenuShortcut";var IF=e=>e.type==="checkbox",jF=e=>e instanceof Date,KS=e=>e==null;const DF=e=>typeof e=="object";var yr=e=>!KS(e)&&!Array.isArray(e)&&DF(e)&&!jF(e),kF=e=>yr(e)&&e.target?IF(e.target)?e.target.checked:e.target.value:e,$F=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,LF=(e,t)=>e.has($F(t)),FF=e=>{const t=e.constructor&&e.constructor.prototype;return yr(t)&&t.hasOwnProperty("isPrototypeOf")},BF=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function wf(e){let t;const n=Array.isArray(e),r=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(BF&&(e instanceof Blob||r))&&(n||yr(e)))if(t=n?[]:{},!n&&!FF(e))t=e;else for(const o in e)e.hasOwnProperty(o)&&(t[o]=wf(e[o]));else return e;return t}var YS=e=>Array.isArray(e)?e.filter(Boolean):[],xf=e=>e===void 0,ht=(e,t,n)=>{if(!t||!yr(e))return n;const r=YS(t.split(/[,[\].]+?/)).reduce((o,a)=>KS(o)?o:o[a],e);return xf(r)||r===e?xf(e[t])?n:e[t]:r},XS=e=>typeof e=="boolean",zF=e=>/^\w*$/.test(e),qF=e=>YS(e.replace(/["|']|\]/g,"").split(/\.|\[/)),ZS=(e,t,n)=>{let r=-1;const o=zF(t)?[t]:qF(t),a=o.length,i=a-1;for(;++r<a;){const s=o[r];let l=n;if(r!==i){const c=e[s];l=yr(c)||Array.isArray(c)?c:isNaN(+o[r+1])?{}:[]}if(s==="__proto__"||s==="constructor"||s==="prototype")return;e[s]=l,e=e[s]}return e};const JS={BLUR:"blur",CHANGE:"change"},QS={all:"all"},eC=E.createContext(null),ci=()=>E.useContext(eC),HF=e=>{const{children:t,...n}=e;return E.createElement(eC.Provider,{value:n},t)};var VF=(e,t,n,r=!0)=>{const o={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(o,a,{get:()=>{const i=a;return t._proxyFormState[i]!==QS.all&&(t._proxyFormState[i]=!r||QS.all),n&&(n[i]=!0),e[i]}});return o},GF=e=>yr(e)&&!Object.keys(e).length,WF=(e,t,n,r)=>{n(e);const{name:o,...a}=e;return GF(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(i=>t[i]===!0)},UF=e=>Array.isArray(e)?e:[e],tC=(e,t,n)=>!e||!t||e===t||UF(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function nC(e){const t=E.useRef(e);t.current=e,E.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function KF(e){const t=ci(),{control:n=t.control,disabled:r,name:o,exact:a}=e||{},[i,s]=E.useState(n._formState),l=E.useRef(!0),c=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,nC({disabled:r,next:d=>l.current&&tC(p.current,d.name,a)&&WF(d,c.current,n._updateFormState)&&s({...n._formState,...d}),subject:n._subjects.state}),E.useEffect(()=>(l.current=!0,c.current.isValid&&n._updateValid(!0),()=>{l.current=!1}),[n]),E.useMemo(()=>VF(i,n,c.current,!1),[i,n])}var YF=e=>typeof e=="string",XF=(e,t,n,r,o)=>YF(e)?ht(n,e,o):Array.isArray(e)?e.map(a=>ht(n,a)):n;function ZF(e){const t=ci(),{control:n=t.control,name:r,defaultValue:o,disabled:a,exact:i}=e||{},s=E.useRef(r);s.current=r,nC({disabled:a,subject:n._subjects.values,next:p=>{tC(s.current,p.name,i)&&c(wf(XF(s.current,n._names,p.values||n._formValues,!1,o)))}});const[l,c]=E.useState(n._getWatch(r,o));return E.useEffect(()=>n._removeUnmounted()),l}function JF(e){const t=ci(),{name:n,disabled:r,control:o=t.control,shouldUnregister:a}=e,i=LF(o._names.array,n),s=ZF({control:o,name:n,defaultValue:ht(o._formValues,n,ht(o._defaultValues,n,e.defaultValue)),exact:!0}),l=KF({control:o,name:n,exact:!0}),c=E.useRef(o.register(n,{...e.rules,value:s,...XS(e.disabled)?{disabled:e.disabled}:{}})),p=E.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!ht(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!ht(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!ht(l.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!ht(l.validatingFields,n)},error:{enumerable:!0,get:()=>ht(l.errors,n)}}),[l,n]),d=E.useMemo(()=>({name:n,value:s,...XS(r)||l.disabled?{disabled:l.disabled||r}:{},onChange:m=>c.current.onChange({target:{value:kF(m),name:n},type:JS.CHANGE}),onBlur:()=>c.current.onBlur({target:{value:ht(o._formValues,n),name:n},type:JS.BLUR}),ref:m=>{const b=ht(o._fields,n);b&&m&&(b._f.ref={focus:()=>m.focus(),select:()=>m.select(),setCustomValidity:g=>m.setCustomValidity(g),reportValidity:()=>m.reportValidity()})}}),[n,o._formValues,r,l.disabled,s,o._fields]);return E.useEffect(()=>{const m=o._options.shouldUnregister||a,b=(g,h)=>{const v=ht(o._fields,g);v&&v._f&&(v._f.mount=h)};if(b(n,!0),m){const g=wf(ht(o._options.defaultValues,n));ZS(o._defaultValues,n,g),xf(ht(o._formValues,n))&&ZS(o._formValues,n,g)}return!i&&o.register(n),()=>{(i?m&&!o._state.action:m)?o.unregister(n):b(n,!1)}},[n,o,i,a]),E.useEffect(()=>{o._updateDisabledField({disabled:r,fields:o._fields,name:n})},[r,n,o]),E.useMemo(()=>({field:d,formState:l,fieldState:p}),[d,l,p])}const QF=e=>e.render(JF(e));var eB="Label",rC=f.forwardRef((e,t)=>u.jsx(Z.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));rC.displayName=eB;var oC=rC;const tB=cn("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Po=f.forwardRef(({className:e,...t},n)=>u.jsx(oC,{ref:n,className:O(tB(),e),...t}));Po.displayName=oC.displayName;const nB=HF,aC=f.createContext({}),rB=({...e})=>u.jsx(aC.Provider,{value:{name:e.name},children:u.jsx(QF,{...e})}),To=()=>{const e=f.useContext(aC),t=f.useContext(iC),{getFieldState:n,formState:r}=ci(),o=n(e.name,r);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:a}=t;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...o}},iC=f.createContext({}),sC=f.forwardRef(({className:e,...t},n)=>{const r=f.useId();return u.jsx(iC.Provider,{value:{id:r},children:u.jsx("div",{ref:n,className:O("space-y-2",e),...t})})});sC.displayName="FormItem";const lC=f.forwardRef(({className:e,...t},n)=>{const{error:r,formItemId:o}=To();return u.jsx(Po,{ref:n,className:O(r&&"text-destructive",e),htmlFor:o,...t})});lC.displayName="FormLabel";const cC=f.forwardRef(({...e},t)=>{const{error:n,formItemId:r,formDescriptionId:o,formMessageId:a}=To();return u.jsx(ct,{ref:t,id:r,"aria-describedby":n?`${o} ${a}`:`${o}`,"aria-invalid":!!n,...e})});cC.displayName="FormControl";const uC=f.forwardRef(({className:e,...t},n)=>{const{formDescriptionId:r}=To();return u.jsx("p",{ref:n,id:r,className:O("text-[0.8rem] text-muted-foreground",e),...t})});uC.displayName="FormDescription";const dC=f.forwardRef(({className:e,children:t,...n},r)=>{const{error:o,formMessageId:a}=To(),i=o?String((o==null?void 0:o.message)??""):t;return i?u.jsx("p",{ref:r,id:a,className:O("text-[0.8rem] font-medium text-destructive",e),...n,children:i}):null});dC.displayName="FormMessage";var Sf,Cf="HoverCard",[fC,h3]=De(Cf,[Jt]),ui=Jt(),[oB,_f]=fC(Cf),pC=e=>{const{__scopeHoverCard:t,children:n,open:r,defaultOpen:o,onOpenChange:a,openDelay:i=700,closeDelay:s=300}=e,l=ui(t),c=f.useRef(0),p=f.useRef(0),d=f.useRef(!1),m=f.useRef(!1),[b=!1,g]=$e({prop:r,defaultProp:o,onChange:a}),h=f.useCallback(()=>{clearTimeout(p.current),c.current=window.setTimeout(()=>g(!0),i)},[i,g]),v=f.useCallback(()=>{clearTimeout(c.current),!d.current&&!m.current&&(p.current=window.setTimeout(()=>g(!1),s))},[s,g]),y=f.useCallback(()=>g(!1),[g]);return f.useEffect(()=>()=>{clearTimeout(c.current),clearTimeout(p.current)},[]),u.jsx(oB,{scope:t,open:b,onOpenChange:g,onOpen:h,onClose:v,onDismiss:y,hasSelectionRef:d,isPointerDownOnContentRef:m,children:u.jsx(vr,{...l,children:n})})};pC.displayName=Cf;var mC="HoverCardTrigger",hC=f.forwardRef((e,t)=>{const{__scopeHoverCard:n,...r}=e,o=_f(mC,n),a=ui(n);return u.jsx(br,{asChild:!0,...a,children:u.jsx(Z.a,{"data-state":o.open?"open":"closed",...r,ref:t,onPointerEnter:B(e.onPointerEnter,fi(o.onOpen)),onPointerLeave:B(e.onPointerLeave,fi(o.onClose)),onFocus:B(e.onFocus,o.onOpen),onBlur:B(e.onBlur,o.onClose),onTouchStart:B(e.onTouchStart,i=>i.preventDefault())})})});hC.displayName=mC;var aB="HoverCardPortal",[g3,iB]=fC(aB,{forceMount:void 0}),di="HoverCardContent",gC=f.forwardRef((e,t)=>{const n=iB(di,e.__scopeHoverCard),{forceMount:r=n.forceMount,...o}=e,a=_f(di,e.__scopeHoverCard);return u.jsx(Le,{present:r||a.open,children:u.jsx(sB,{"data-state":a.open?"open":"closed",...o,onPointerEnter:B(e.onPointerEnter,fi(a.onOpen)),onPointerLeave:B(e.onPointerLeave,fi(a.onClose)),ref:t})})});gC.displayName=di;var sB=f.forwardRef((e,t)=>{const{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,...s}=e,l=_f(di,n),c=ui(n),p=f.useRef(null),d=fe(t,p),[m,b]=f.useState(!1);return f.useEffect(()=>{if(m){const g=document.body;return Sf=g.style.userSelect||g.style.webkitUserSelect,g.style.userSelect="none",g.style.webkitUserSelect="none",()=>{g.style.userSelect=Sf,g.style.webkitUserSelect=Sf}}},[m]),f.useEffect(()=>{if(p.current){const g=()=>{b(!1),l.isPointerDownOnContentRef.current=!1,setTimeout(()=>{var v;((v=document.getSelection())==null?void 0:v.toString())!==""&&(l.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",g),()=>{document.removeEventListener("pointerup",g),l.hasSelectionRef.current=!1,l.isPointerDownOnContentRef.current=!1}}},[l.isPointerDownOnContentRef,l.hasSelectionRef]),f.useEffect(()=>{p.current&&uB(p.current).forEach(h=>h.setAttribute("tabindex","-1"))}),u.jsx(sn,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:i,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:B(a,g=>{g.preventDefault()}),onDismiss:l.onDismiss,children:u.jsx(fo,{...c,...s,onPointerDown:B(s.onPointerDown,g=>{g.currentTarget.contains(g.target)&&b(!0),l.hasSelectionRef.current=!1,l.isPointerDownOnContentRef.current=!0}),ref:d,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)"}})})}),lB="HoverCardArrow",cB=f.forwardRef((e,t)=>{const{__scopeHoverCard:n,...r}=e,o=ui(n);return u.jsx(po,{...o,...r,ref:t})});cB.displayName=lB;function fi(e){return t=>t.pointerType==="touch"?void 0:e()}function uB(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t}var dB=pC,fB=hC,vC=gC;const pB=dB,mB=fB,bC=f.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>u.jsx(vC,{ref:o,align:t,sideOffset:n,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),...r}));bC.displayName=vC.displayName;var hB=Object.defineProperty,gB=Object.defineProperties,vB=Object.getOwnPropertyDescriptors,pi=Object.getOwnPropertySymbols,yC=Object.prototype.hasOwnProperty,wC=Object.prototype.propertyIsEnumerable,xC=(e,t,n)=>t in e?hB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,bB=(e,t)=>{for(var n in t||(t={}))yC.call(t,n)&&xC(e,n,t[n]);if(pi)for(var n of pi(t))wC.call(t,n)&&xC(e,n,t[n]);return e},yB=(e,t)=>gB(e,vB(t)),wB=(e,t)=>{var n={};for(var r in e)yC.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&pi)for(var r of pi(e))t.indexOf(r)<0&&wC.call(e,r)&&(n[r]=e[r]);return n};function xB(e){let t=setTimeout(e,0),n=setTimeout(e,10),r=setTimeout(e,50);return[t,n,r]}function SB(e){let t=f.useRef();return f.useEffect(()=>{t.current=e}),t.current}var CB=18,SC=40,_B=`${SC}px`,EB=["[data-lastpass-icon-root]","com-1password-button","[data-dashlanecreated]",'[style$="2147483647 !important;"]'].join(",");function PB({containerRef:e,inputRef:t,pushPasswordManagerStrategy:n,isFocused:r}){let[o,a]=f.useState(!1),[i,s]=f.useState(!1),[l,c]=f.useState(!1),p=f.useMemo(()=>n==="none"?!1:(n==="increase-width"||n==="experimental-no-flickering")&&o&&i,[o,i,n]),d=f.useCallback(()=>{let m=e.current,b=t.current;if(!m||!b||l||n==="none")return;let g=m,h=g.getBoundingClientRect().left+g.offsetWidth,v=g.getBoundingClientRect().top+g.offsetHeight/2,y=h-CB,w=v;document.querySelectorAll(EB).length===0&&document.elementFromPoint(y,w)===m||(a(!0),c(!0))},[e,t,l,n]);return f.useEffect(()=>{let m=e.current;if(!m||n==="none")return;function b(){let h=window.innerWidth-m.getBoundingClientRect().right;s(h>=SC)}b();let g=setInterval(b,1e3);return()=>{clearInterval(g)}},[e,n]),f.useEffect(()=>{let m=r||document.activeElement===t.current;if(n==="none"||!m)return;let b=setTimeout(d,0),g=setTimeout(d,2e3),h=setTimeout(d,5e3),v=setTimeout(()=>{c(!0)},6e3);return()=>{clearTimeout(b),clearTimeout(g),clearTimeout(h),clearTimeout(v)}},[t,r,n,d]),{hasPWMBadge:o,willPushPWMBadge:p,PWM_BADGE_SPACE_WIDTH:_B}}var CC=f.createContext({}),_C=f.forwardRef((e,t)=>{var n=e,{value:r,onChange:o,maxLength:a,textAlign:i="left",pattern:s,placeholder:l,inputMode:c="numeric",onComplete:p,pushPasswordManagerStrategy:d="increase-width",pasteTransformer:m,containerClassName:b,noScriptCSSFallback:g=TB,render:h,children:v}=n,y=wB(n,["value","onChange","maxLength","textAlign","pattern","placeholder","inputMode","onComplete","pushPasswordManagerStrategy","pasteTransformer","containerClassName","noScriptCSSFallback","render","children"]),w,x,S,_,P;let[C,M]=f.useState(typeof y.defaultValue=="string"?y.defaultValue:""),N=r??C,$=SB(N),D=f.useCallback(j=>{o==null||o(j),M(j)},[o]),F=f.useMemo(()=>s?typeof s=="string"?new RegExp(s):s:null,[s]),A=f.useRef(null),k=f.useRef(null),L=f.useRef({value:N,onChange:D,isIOS:typeof window<"u"&&((x=(w=window==null?void 0:window.CSS)==null?void 0:w.supports)==null?void 0:x.call(w,"-webkit-touch-callout","none"))}),I=f.useRef({prev:[(S=A.current)==null?void 0:S.selectionStart,(_=A.current)==null?void 0:_.selectionEnd,(P=A.current)==null?void 0:P.selectionDirection]});f.useImperativeHandle(t,()=>A.current,[]),f.useEffect(()=>{let j=A.current,te=k.current;if(!j||!te)return;L.current.value!==j.value&&L.current.onChange(j.value),I.current.prev=[j.selectionStart,j.selectionEnd,j.selectionDirection];function me(){if(document.activeElement!==j){ne(null),U(null);return}let pe=j.selectionStart,Te=j.selectionEnd,He=j.selectionDirection,Se=j.maxLength,Ie=j.value,ot=I.current.prev,Qe=-1,Ye=-1,it;if(Ie.length!==0&&pe!==null&&Te!==null){let At=pe===Te,Xe=pe===Ie.length&&Ie.length<Se;if(At&&!Xe){let et=pe;if(et===0)Qe=0,Ye=1,it="forward";else if(et===Se)Qe=et-1,Ye=et,it="backward";else if(Se>1&&Ie.length>1){let Vt=0;if(ot[0]!==null&&ot[1]!==null){it=et<ot[1]?"backward":"forward";let nn=ot[0]===ot[1]&&ot[0]<Se;it==="backward"&&!nn&&(Vt=-1)}Qe=Vt+et,Ye=Vt+et+1}}Qe!==-1&&Ye!==-1&&Qe!==Ye&&A.current.setSelectionRange(Qe,Ye,it)}let yt=Qe!==-1?Qe:pe,pt=Ye!==-1?Ye:Te,We=it??He;ne(yt),U(pt),I.current.prev=[yt,pt,We]}if(document.addEventListener("selectionchange",me,{capture:!0}),me(),document.activeElement===j&&ae(!0),!document.getElementById("input-otp-style")){let pe=document.createElement("style");if(pe.id="input-otp-style",document.head.appendChild(pe),pe.sheet){let Te="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;";No(pe.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),No(pe.sheet,`[data-input-otp]:autofill { ${Te} }`),No(pe.sheet,`[data-input-otp]:-webkit-autofill { ${Te} }`),No(pe.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; } }"),No(pe.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}let he=()=>{te&&te.style.setProperty("--root-height",`${j.clientHeight}px`)};he();let ve=new ResizeObserver(he);return ve.observe(j),()=>{document.removeEventListener("selectionchange",me,{capture:!0}),ve.disconnect()}},[]);let[W,V]=f.useState(!1),[q,ae]=f.useState(!1),[J,ne]=f.useState(null),[z,U]=f.useState(null);f.useEffect(()=>{xB(()=>{var j,te,me,he;(j=A.current)==null||j.dispatchEvent(new Event("input"));let ve=(te=A.current)==null?void 0:te.selectionStart,pe=(me=A.current)==null?void 0:me.selectionEnd,Te=(he=A.current)==null?void 0:he.selectionDirection;ve!==null&&pe!==null&&(ne(ve),U(pe),I.current.prev=[ve,pe,Te])})},[N,q]),f.useEffect(()=>{$!==void 0&&N!==$&&$.length<a&&N.length===a&&(p==null||p(N))},[a,p,$,N]);let ee=PB({containerRef:k,inputRef:A,pushPasswordManagerStrategy:d,isFocused:q}),Y=f.useCallback(j=>{let te=j.currentTarget.value.slice(0,a);if(te.length>0&&F&&!F.test(te)){j.preventDefault();return}typeof $=="string"&&te.length<$.length&&document.dispatchEvent(new Event("selectionchange")),D(te)},[a,D,$,F]),H=f.useCallback(()=>{var j;if(A.current){let te=Math.min(A.current.value.length,a-1),me=A.current.value.length;(j=A.current)==null||j.setSelectionRange(te,me),ne(te),U(me)}ae(!0)},[a]),K=f.useCallback(j=>{var te,me;let he=A.current;if(!m&&(!L.current.isIOS||!j.clipboardData||!he))return;let ve=j.clipboardData.getData("text/plain"),pe=m?m(ve):ve;j.preventDefault();let Te=(te=A.current)==null?void 0:te.selectionStart,He=(me=A.current)==null?void 0:me.selectionEnd,Se=(Te!==He?N.slice(0,Te)+pe+N.slice(He):N.slice(0,Te)+pe+N.slice(Te)).slice(0,a);if(Se.length>0&&F&&!F.test(Se))return;he.value=Se,D(Se);let Ie=Math.min(Se.length,a-1),ot=Se.length;he.setSelectionRange(Ie,ot),ne(Ie),U(ot)},[a,D,F,N]),re=f.useMemo(()=>({position:"relative",cursor:y.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"}),[y.disabled]),Q=f.useMemo(()=>({position:"absolute",inset:0,width:ee.willPushPWMBadge?`calc(100% + ${ee.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:ee.willPushPWMBadge?`inset(0 ${ee.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"}),[ee.PWM_BADGE_SPACE_WIDTH,ee.willPushPWMBadge,i]),oe=f.useMemo(()=>f.createElement("input",yB(bB({autoComplete:y.autoComplete||"one-time-code"},y),{"data-input-otp":!0,"data-input-otp-placeholder-shown":N.length===0||void 0,"data-input-otp-mss":J,"data-input-otp-mse":z,inputMode:c,pattern:F==null?void 0:F.source,"aria-placeholder":l,style:Q,maxLength:a,value:N,ref:A,onPaste:j=>{var te;K(j),(te=y.onPaste)==null||te.call(y,j)},onChange:Y,onMouseOver:j=>{var te;V(!0),(te=y.onMouseOver)==null||te.call(y,j)},onMouseLeave:j=>{var te;V(!1),(te=y.onMouseLeave)==null||te.call(y,j)},onFocus:j=>{var te;H(),(te=y.onFocus)==null||te.call(y,j)},onBlur:j=>{var te;ae(!1),(te=y.onBlur)==null||te.call(y,j)}})),[Y,H,K,c,Q,a,z,J,y,F==null?void 0:F.source,N]),G=f.useMemo(()=>({slots:Array.from({length:a}).map((j,te)=>{var me;let he=q&&J!==null&&z!==null&&(J===z&&te===J||te>=J&&te<z),ve=N[te]!==void 0?N[te]:null,pe=N[0]!==void 0?null:(me=l==null?void 0:l[te])!=null?me:null;return{char:ve,placeholderChar:pe,isActive:he,hasFakeCaret:he&&ve===null}}),isFocused:q,isHovering:!y.disabled&&W}),[q,W,a,z,J,y.disabled,N]),ie=f.useMemo(()=>h?h(G):f.createElement(CC.Provider,{value:G},v),[v,G,h]);return f.createElement(f.Fragment,null,g!==null&&f.createElement("noscript",null,f.createElement("style",null,g)),f.createElement("div",{ref:k,"data-input-otp-container":!0,style:re,className:b},ie,f.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},oe)))});_C.displayName="Input";function No(e,t){try{e.insertRule(t)}catch{console.error("input-otp could not insert CSS rule:",t)}}var TB=`
|
|
219
|
-
[data-input-otp] {
|
|
220
|
-
--nojs-bg: white !important;
|
|
221
|
-
--nojs-fg: black !important;
|
|
222
|
-
|
|
223
|
-
background-color: var(--nojs-bg) !important;
|
|
224
|
-
color: var(--nojs-fg) !important;
|
|
225
|
-
caret-color: var(--nojs-fg) !important;
|
|
226
|
-
letter-spacing: .25em !important;
|
|
227
|
-
text-align: center !important;
|
|
228
|
-
border: 1px solid var(--nojs-fg) !important;
|
|
229
|
-
border-radius: 4px !important;
|
|
230
|
-
width: 100% !important;
|
|
231
|
-
}
|
|
232
|
-
@media (prefers-color-scheme: dark) {
|
|
233
|
-
[data-input-otp] {
|
|
234
|
-
--nojs-bg: black !important;
|
|
235
|
-
--nojs-fg: white !important;
|
|
236
|
-
}
|
|
237
|
-
}`;const EC=f.forwardRef(({className:e,containerClassName:t,...n},r)=>u.jsx(_C,{ref:r,containerClassName:O("flex items-center gap-2 has-[:disabled]:opacity-50",t),className:O("disabled:cursor-not-allowed",e),...n}));EC.displayName="InputOTP";const PC=f.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,className:O("flex items-center",e),...t}));PC.displayName="InputOTPGroup";const TC=f.forwardRef(({index:e,className:t,...n},r)=>{const o=f.useContext(CC),{char:a,hasFakeCaret:i,isActive:s}=o.slots[e];return u.jsxs("div",{ref:r,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),...n,children:[a,i&&u.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:u.jsx("div",{className:"h-4 w-px animate-caret-blink bg-foreground duration-1000"})})]})});TC.displayName="InputOTPSlot";const NC=f.forwardRef(({...e},t)=>u.jsx("div",{ref:t,role:"separator",...e,children:u.jsx(I1,{})}));NC.displayName="InputOTPSeparator";const Ro=f.forwardRef(({className:e,type:t,...n},r)=>u.jsx("input",{type:t,className:O("flex h-9 w-full rounded-md border focus:border-[--primary] 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-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));Ro.displayName="Input";var mi="Menubar",[Ef,NB,RB]=rn(mi),[RC,v3]=De(mi,[RB,Qt]),ft=bo(),AC=Qt(),[AB,Pf]=RC(mi),MC=f.forwardRef((e,t)=>{const{__scopeMenubar:n,value:r,onValueChange:o,defaultValue:a,loop:i=!0,dir:s,...l}=e,c=Ot(s),p=AC(n),[d="",m]=$e({prop:r,onChange:o,defaultProp:a}),[b,g]=f.useState(null);return u.jsx(AB,{scope:n,value:d,onMenuOpen:f.useCallback(h=>{m(h),g(h)},[m]),onMenuClose:f.useCallback(()=>m(""),[m]),onMenuToggle:f.useCallback(h=>{m(v=>v?"":h),g(h)},[m]),dir:c,loop:i,children:u.jsx(Ef.Provider,{scope:n,children:u.jsx(Ef.Slot,{scope:n,children:u.jsx(mo,{asChild:!0,...p,orientation:"horizontal",loop:i,dir:c,currentTabStopId:b,onCurrentTabStopIdChange:g,children:u.jsx(Z.div,{role:"menubar",...l,ref:t})})})})})});MC.displayName=mi;var Tf="MenubarMenu",[MB,OC]=RC(Tf),IC=e=>{const{__scopeMenubar:t,value:n,...r}=e,o=Ge(),a=n||o||"LEGACY_REACT_AUTO_VALUE",i=Pf(Tf,t),s=ft(t),l=f.useRef(null),c=f.useRef(!1),p=i.value===a;return f.useEffect(()=>{p||(c.current=!1)},[p]),u.jsx(MB,{scope:t,value:a,triggerId:Ge(),triggerRef:l,contentId:Ge(),wasKeyboardTriggerOpenRef:c,children:u.jsx(Vd,{...s,open:p,onOpenChange:d=>{d||i.onMenuClose()},modal:!1,dir:i.dir,...r})})};IC.displayName=Tf;var Nf="MenubarTrigger",jC=f.forwardRef((e,t)=>{const{__scopeMenubar:n,disabled:r=!1,...o}=e,a=AC(n),i=ft(n),s=Pf(Nf,n),l=OC(Nf,n),c=f.useRef(null),p=fe(t,c,l.triggerRef),[d,m]=f.useState(!1),b=s.value===l.value;return u.jsx(Ef.ItemSlot,{scope:n,value:l.value,disabled:r,children:u.jsx(ho,{asChild:!0,...a,focusable:!r,tabStopId:l.value,children:u.jsx(Gd,{asChild:!0,...i,children:u.jsx(Z.button,{type:"button",role:"menuitem",id:l.triggerId,"aria-haspopup":"menu","aria-expanded":b,"aria-controls":b?l.contentId:void 0,"data-highlighted":d?"":void 0,"data-state":b?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:p,onPointerDown:B(e.onPointerDown,g=>{!r&&g.button===0&&g.ctrlKey===!1&&(s.onMenuOpen(l.value),b||g.preventDefault())}),onPointerEnter:B(e.onPointerEnter,()=>{var h;!!s.value&&!b&&(s.onMenuOpen(l.value),(h=c.current)==null||h.focus())}),onKeyDown:B(e.onKeyDown,g=>{r||(["Enter"," "].includes(g.key)&&s.onMenuToggle(l.value),g.key==="ArrowDown"&&s.onMenuOpen(l.value),["Enter"," ","ArrowDown"].includes(g.key)&&(l.wasKeyboardTriggerOpenRef.current=!0,g.preventDefault()))}),onFocus:B(e.onFocus,()=>m(!0)),onBlur:B(e.onBlur,()=>m(!1))})})})})});jC.displayName=Nf;var OB="MenubarPortal",DC=e=>{const{__scopeMenubar:t,...n}=e,r=ft(t);return u.jsx(Wd,{...r,...n})};DC.displayName=OB;var Rf="MenubarContent",kC=f.forwardRef((e,t)=>{const{__scopeMenubar:n,align:r="start",...o}=e,a=ft(n),i=Pf(Rf,n),s=OC(Rf,n),l=NB(n),c=f.useRef(!1);return u.jsx(Ud,{id:s.contentId,"aria-labelledby":s.triggerId,"data-radix-menubar-content":"",...a,...o,ref:t,align:r,onCloseAutoFocus:B(e.onCloseAutoFocus,p=>{var m;!!!i.value&&!c.current&&((m=s.triggerRef.current)==null||m.focus()),c.current=!1,p.preventDefault()}),onFocusOutside:B(e.onFocusOutside,p=>{const d=p.target;l().some(b=>{var g;return(g=b.ref.current)==null?void 0:g.contains(d)})&&p.preventDefault()}),onInteractOutside:B(e.onInteractOutside,()=>{c.current=!0}),onEntryFocus:p=>{s.wasKeyboardTriggerOpenRef.current||p.preventDefault()},onKeyDown:B(e.onKeyDown,p=>{if(["ArrowRight","ArrowLeft"].includes(p.key)){const d=p.target,m=d.hasAttribute("data-radix-menubar-subtrigger"),b=d.closest("[data-radix-menubar-content]")!==p.currentTarget,h=(i.dir==="rtl"?"ArrowRight":"ArrowLeft")===p.key;if(!h&&m||b&&h)return;let w=l().filter(_=>!_.disabled).map(_=>_.value);h&&w.reverse();const x=w.indexOf(s.value);w=i.loop?WB(w,x+1):w.slice(x+1);const[S]=w;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)"}})});kC.displayName=Rf;var IB="MenubarGroup",$C=f.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=ft(n);return u.jsx(Kd,{...o,...r,ref:t})});$C.displayName=IB;var jB="MenubarLabel",LC=f.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=ft(n);return u.jsx(Yd,{...o,...r,ref:t})});LC.displayName=jB;var DB="MenubarItem",FC=f.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=ft(n);return u.jsx(Xd,{...o,...r,ref:t})});FC.displayName=DB;var kB="MenubarCheckboxItem",BC=f.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=ft(n);return u.jsx(Zd,{...o,...r,ref:t})});BC.displayName=kB;var $B="MenubarRadioGroup",zC=f.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=ft(n);return u.jsx(Jd,{...o,...r,ref:t})});zC.displayName=$B;var LB="MenubarRadioItem",qC=f.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=ft(n);return u.jsx(Qd,{...o,...r,ref:t})});qC.displayName=LB;var FB="MenubarItemIndicator",HC=f.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=ft(n);return u.jsx(ef,{...o,...r,ref:t})});HC.displayName=FB;var BB="MenubarSeparator",VC=f.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=ft(n);return u.jsx(tf,{...o,...r,ref:t})});VC.displayName=BB;var zB="MenubarArrow",qB=f.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=ft(n);return u.jsx(nf,{...o,...r,ref:t})});qB.displayName=zB;var HB="MenubarSub",GC=e=>{const{__scopeMenubar:t,children:n,open:r,onOpenChange:o,defaultOpen:a}=e,i=ft(t),[s=!1,l]=$e({prop:r,defaultProp:a,onChange:o});return u.jsx(rf,{...i,open:s,onOpenChange:l,children:n})};GC.displayName=HB;var VB="MenubarSubTrigger",WC=f.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=ft(n);return u.jsx(of,{"data-radix-menubar-subtrigger":"",...o,...r,ref:t})});WC.displayName=VB;var GB="MenubarSubContent",UC=f.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=ft(n);return u.jsx(af,{...o,"data-radix-menubar-content":"",...r,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)"}})});UC.displayName=GB;function WB(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var KC=MC,UB=IC,YC=jC,XC=DC,ZC=kC,KB=$C,JC=LC,QC=FC,e_=BC,YB=zC,t_=qC,n_=HC,r_=VC,XB=GC,o_=WC,a_=UC;function ZB({...e}){return u.jsx(UB,{...e})}function JB({...e}){return u.jsx(KB,{...e})}function QB({...e}){return u.jsx(XC,{...e})}function ez({...e}){return u.jsx(YB,{...e})}function tz({...e}){return u.jsx(XB,{"data-slot":"menubar-sub",...e})}const i_=f.forwardRef(({className:e,...t},n)=>u.jsx(KC,{ref:n,className:O("flex h-9 items-center space-x-1 rounded-md border bg-background p-1 shadow-sm",e),...t}));i_.displayName=KC.displayName;const s_=f.forwardRef(({className:e,...t},n)=>u.jsx(YC,{ref:n,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}));s_.displayName=YC.displayName;const l_=f.forwardRef(({className:e,inset:t,children:n,...r},o)=>u.jsxs(o_,{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),...r,children:[n,u.jsx(hn,{className:"ml-auto h-4 w-4"})]}));l_.displayName=o_.displayName;const c_=f.forwardRef(({className:e,...t},n)=>u.jsx(a_,{ref:n,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}));c_.displayName=a_.displayName;const u_=f.forwardRef(({className:e,align:t="start",alignOffset:n=-4,sideOffset:r=8,...o},a)=>u.jsx(XC,{children:u.jsx(ZC,{ref:a,align:t,alignOffset:n,sideOffset:r,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})}));u_.displayName=ZC.displayName;const d_=f.forwardRef(({className:e,inset:t,...n},r)=>u.jsx(QC,{ref:r,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),...n}));d_.displayName=QC.displayName;const f_=f.forwardRef(({className:e,children:t,checked:n,...r},o)=>u.jsxs(e_,{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:n,...r,children:[u.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:u.jsx(n_,{children:u.jsx(Yn,{className:"h-4 w-4"})})}),t]}));f_.displayName=e_.displayName;const p_=f.forwardRef(({className:e,children:t,...n},r)=>u.jsxs(t_,{ref:r,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),...n,children:[u.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:u.jsx(n_,{children:u.jsx(Zo,{className:"h-4 w-4 fill-current"})})}),t]}));p_.displayName=t_.displayName;const m_=f.forwardRef(({className:e,inset:t,...n},r)=>u.jsx(JC,{ref:r,className:O("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));m_.displayName=JC.displayName;const h_=f.forwardRef(({className:e,...t},n)=>u.jsx(r_,{ref:n,className:O("-mx-1 my-1 h-px bg-muted",e),...t}));h_.displayName=r_.displayName;const g_=({className:e,...t})=>u.jsx("span",{className:O("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});g_.displayname="MenubarShortcut";var nz="VisuallyHidden",Ao=f.forwardRef((e,t)=>u.jsx(Z.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}}));Ao.displayName=nz;var v_=Ao,wr="NavigationMenu",[Af,b_,rz]=rn(wr),[Mf,oz,az]=rn(wr),[Of,b3]=De(wr,[rz,az]),[iz,Nt]=Of(wr),[sz,lz]=Of(wr),y_=f.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:a,delayDuration:i=200,skipDelayDuration:s=300,orientation:l="horizontal",dir:c,...p}=e,[d,m]=f.useState(null),b=fe(t,N=>m(N)),g=Ot(c),h=f.useRef(0),v=f.useRef(0),y=f.useRef(0),[w,x]=f.useState(!0),[S="",_]=$e({prop:r,onChange:N=>{const $=N!=="",D=s>0;$?(window.clearTimeout(y.current),D&&x(!1)):(window.clearTimeout(y.current),y.current=window.setTimeout(()=>x(!0),s)),o==null||o(N)},defaultProp:a}),P=f.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>_(""),150)},[_]),C=f.useCallback(N=>{window.clearTimeout(v.current),_(N)},[_]),M=f.useCallback(N=>{S===N?window.clearTimeout(v.current):h.current=window.setTimeout(()=>{window.clearTimeout(v.current),_(N)},i)},[S,_,i]);return f.useEffect(()=>()=>{window.clearTimeout(h.current),window.clearTimeout(v.current),window.clearTimeout(y.current)},[]),u.jsx(x_,{scope:n,isRootMenu:!0,value:S,dir:g,orientation:l,rootNavigationMenu:d,onTriggerEnter:N=>{window.clearTimeout(h.current),w?M(N):C(N)},onTriggerLeave:()=>{window.clearTimeout(h.current),P()},onContentEnter:()=>window.clearTimeout(v.current),onContentLeave:P,onItemSelect:N=>{_($=>$===N?"":N)},onItemDismiss:()=>_(""),children:u.jsx(Z.nav,{"aria-label":"Main","data-orientation":l,dir:g,...p,ref:b})})});y_.displayName=wr;var w_="NavigationMenuSub",cz=f.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:a,orientation:i="horizontal",...s}=e,l=Nt(w_,n),[c="",p]=$e({prop:r,onChange:o,defaultProp:a});return u.jsx(x_,{scope:n,isRootMenu:!1,value:c,dir:l.dir,orientation:i,rootNavigationMenu:l.rootNavigationMenu,onTriggerEnter:d=>p(d),onItemSelect:d=>p(d),onItemDismiss:()=>p(""),children:u.jsx(Z.div,{"data-orientation":i,...s,ref:t})})});cz.displayName=w_;var x_=e=>{const{scope:t,isRootMenu:n,rootNavigationMenu:r,dir:o,orientation:a,children:i,value:s,onItemSelect:l,onItemDismiss:c,onTriggerEnter:p,onTriggerLeave:d,onContentEnter:m,onContentLeave:b}=e,[g,h]=f.useState(null),[v,y]=f.useState(new Map),[w,x]=f.useState(null);return u.jsx(iz,{scope:t,isRootMenu:n,rootNavigationMenu:r,value:s,previousValue:fr(s),baseId:Ge(),dir:o,orientation:a,viewport:g,onViewportChange:h,indicatorTrack:w,onIndicatorTrackChange:x,onTriggerEnter:Re(p),onTriggerLeave:Re(d),onContentEnter:Re(m),onContentLeave:Re(b),onItemSelect:Re(l),onItemDismiss:Re(c),onViewportContentChange:f.useCallback((S,_)=>{y(P=>(P.set(S,_),new Map(P)))},[]),onViewportContentRemove:f.useCallback(S=>{y(_=>_.has(S)?(_.delete(S),new Map(_)):_)},[]),children:u.jsx(Af.Provider,{scope:t,children:u.jsx(sz,{scope:t,items:v,children:i})})})},S_="NavigationMenuList",C_=f.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Nt(S_,n),a=u.jsx(Z.ul,{"data-orientation":o.orientation,...r,ref:t});return u.jsx(Z.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange,children:u.jsx(Af.Slot,{scope:n,children:o.isRootMenu?u.jsx(j_,{asChild:!0,children:a}):a})})});C_.displayName=S_;var __="NavigationMenuItem",[uz,E_]=Of(__),P_=f.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,...o}=e,a=Ge(),i=r||a||"LEGACY_REACT_AUTO_VALUE",s=f.useRef(null),l=f.useRef(null),c=f.useRef(null),p=f.useRef(()=>{}),d=f.useRef(!1),m=f.useCallback((g="start")=>{if(s.current){p.current();const h=kf(s.current);h.length&&$f(g==="start"?h:h.reverse())}},[]),b=f.useCallback(()=>{if(s.current){const g=kf(s.current);g.length&&(p.current=vz(g))}},[]);return u.jsx(uz,{scope:n,value:i,triggerRef:l,contentRef:s,focusProxyRef:c,wasEscapeCloseRef:d,onEntryKeyDown:m,onFocusProxyEnter:m,onRootContentClose:b,onContentFocusOutside:b,children:u.jsx(Z.li,{...o,ref:t})})});P_.displayName=__;var If="NavigationMenuTrigger",T_=f.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:r,...o}=e,a=Nt(If,e.__scopeNavigationMenu),i=E_(If,e.__scopeNavigationMenu),s=f.useRef(null),l=fe(s,i.triggerRef,t),c=$_(a.baseId,i.value),p=L_(a.baseId,i.value),d=f.useRef(!1),m=f.useRef(!1),b=i.value===a.value;return u.jsxs(u.Fragment,{children:[u.jsx(Af.ItemSlot,{scope:n,value:i.value,children:u.jsx(k_,{asChild:!0,children:u.jsx(Z.button,{id:c,disabled:r,"data-disabled":r?"":void 0,"data-state":Ff(b),"aria-expanded":b,"aria-controls":p,...o,ref:l,onPointerEnter:B(e.onPointerEnter,()=>{m.current=!1,i.wasEscapeCloseRef.current=!1}),onPointerMove:B(e.onPointerMove,gi(()=>{r||m.current||i.wasEscapeCloseRef.current||d.current||(a.onTriggerEnter(i.value),d.current=!0)})),onPointerLeave:B(e.onPointerLeave,gi(()=>{r||(a.onTriggerLeave(),d.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&&u.jsxs(u.Fragment,{children:[u.jsx(v_,{"aria-hidden":!0,tabIndex:0,ref:i.focusProxyRef,onFocus:g=>{const h=i.contentRef.current,v=g.relatedTarget,y=v===s.current,w=h==null?void 0:h.contains(v);(y||!w)&&i.onFocusProxyEnter(y?"start":"end")}}),a.viewport&&u.jsx("span",{"aria-owns":p})]})]})});T_.displayName=If;var dz="NavigationMenuLink",N_="navigationMenu.linkSelect",R_=f.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,active:r,onSelect:o,...a}=e;return u.jsx(k_,{asChild:!0,children:u.jsx(Z.a,{"data-active":r?"":void 0,"aria-current":r?"page":void 0,...a,ref:t,onClick:B(e.onClick,i=>{const s=i.target,l=new CustomEvent(N_,{bubbles:!0,cancelable:!0});if(s.addEventListener(N_,c=>o==null?void 0:o(c),{once:!0}),Br(s,l),!l.defaultPrevented&&!i.metaKey){const c=new CustomEvent(hi,{bubbles:!0,cancelable:!0});Br(s,c)}},{checkForDefaultPrevented:!1})})})});R_.displayName=dz;var jf="NavigationMenuIndicator",A_=f.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Nt(jf,e.__scopeNavigationMenu),a=!!o.value;return o.indicatorTrack?Vo.createPortal(u.jsx(Le,{present:n||a,children:u.jsx(fz,{...r,ref:t})}),o.indicatorTrack):null});A_.displayName=jf;var fz=f.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Nt(jf,n),a=b_(n),[i,s]=f.useState(null),[l,c]=f.useState(null),p=o.orientation==="horizontal",d=!!o.value;f.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&&c({size:p?i.offsetWidth:i.offsetHeight,offset:p?i.offsetLeft:i.offsetTop})};return Lf(i,m),Lf(o.indicatorTrack,m),l?u.jsx(Z.div,{"aria-hidden":!0,"data-state":d?"visible":"hidden","data-orientation":o.orientation,...r,ref:t,style:{position:"absolute",...p?{left:0,width:l.size+"px",transform:`translateX(${l.offset}px)`}:{top:0,height:l.size+"px",transform:`translateY(${l.offset}px)`},...r.style}}):null}),xr="NavigationMenuContent",M_=f.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Nt(xr,e.__scopeNavigationMenu),a=E_(xr,e.__scopeNavigationMenu),i=fe(a.contentRef,t),s=a.value===o.value,l={value:a.value,triggerRef:a.triggerRef,focusProxyRef:a.focusProxyRef,wasEscapeCloseRef:a.wasEscapeCloseRef,onContentFocusOutside:a.onContentFocusOutside,onRootContentClose:a.onRootContentClose,...r};return o.viewport?u.jsx(pz,{forceMount:n,...l,ref:i}):u.jsx(Le,{present:n||s,children:u.jsx(O_,{"data-state":Ff(s),...l,ref:i,onPointerEnter:B(e.onPointerEnter,o.onContentEnter),onPointerLeave:B(e.onPointerLeave,gi(o.onContentLeave)),style:{pointerEvents:!s&&o.isRootMenu?"none":void 0,...l.style}})})});M_.displayName=xr;var pz=f.forwardRef((e,t)=>{const n=Nt(xr,e.__scopeNavigationMenu),{onViewportContentChange:r,onViewportContentRemove:o}=n;return Be(()=>{r(e.value,{ref:t,...e})},[e,t,r]),Be(()=>()=>o(e.value),[e.value,o]),null}),hi="navigationMenu.rootContentDismiss",O_=f.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,triggerRef:o,focusProxyRef:a,wasEscapeCloseRef:i,onRootContentClose:s,onContentFocusOutside:l,...c}=e,p=Nt(xr,n),d=f.useRef(null),m=fe(d,t),b=$_(p.baseId,r),g=L_(p.baseId,r),h=b_(n),v=f.useRef(null),{onItemDismiss:y}=p;f.useEffect(()=>{const x=d.current;if(p.isRootMenu&&x){const S=()=>{var _;y(),s(),x.contains(document.activeElement)&&((_=o.current)==null||_.focus())};return x.addEventListener(hi,S),()=>x.removeEventListener(hi,S)}},[p.isRootMenu,e.value,o,y,s]);const w=f.useMemo(()=>{const S=h().map($=>$.value);p.dir==="rtl"&&S.reverse();const _=S.indexOf(p.value),P=S.indexOf(p.previousValue),C=r===p.value,M=P===S.indexOf(r);if(!C&&!M)return v.current;const N=(()=>{if(_!==P){if(C&&P!==-1)return _>P?"from-end":"from-start";if(M&&_!==-1)return _>P?"to-start":"to-end"}return null})();return v.current=N,N},[p.previousValue,p.value,p.dir,h,r]);return u.jsx(j_,{asChild:!0,children:u.jsx(sn,{id:g,"aria-labelledby":b,"data-motion":w,"data-orientation":p.orientation,...c,ref:m,disableOutsidePointerEvents:!1,onDismiss:()=>{var S;const x=new Event(hi,{bubbles:!0,cancelable:!0});(S=d.current)==null||S.dispatchEvent(x)},onFocusOutside:B(e.onFocusOutside,x=>{var _;l();const S=x.target;(_=p.rootNavigationMenu)!=null&&_.contains(S)&&x.preventDefault()}),onPointerDownOutside:B(e.onPointerDownOutside,x=>{var C;const S=x.target,_=h().some(M=>{var N;return(N=M.ref.current)==null?void 0:N.contains(S)}),P=p.isRootMenu&&((C=p.viewport)==null?void 0:C.contains(S));(_||P||!p.isRootMenu)&&x.preventDefault()}),onKeyDown:B(e.onKeyDown,x=>{var P;const S=x.altKey||x.ctrlKey||x.metaKey;if(x.key==="Tab"&&!S){const C=kf(x.currentTarget),M=document.activeElement,N=C.findIndex(F=>F===M),D=x.shiftKey?C.slice(0,N).reverse():C.slice(N+1,C.length);$f(D)?x.preventDefault():(P=a.current)==null||P.focus()}}),onEscapeKeyDown:B(e.onEscapeKeyDown,x=>{i.current=!0})})})}),Df="NavigationMenuViewport",I_=f.forwardRef((e,t)=>{const{forceMount:n,...r}=e,a=!!Nt(Df,e.__scopeNavigationMenu).value;return u.jsx(Le,{present:n||a,children:u.jsx(mz,{...r,ref:t})})});I_.displayName=Df;var mz=f.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,children:r,...o}=e,a=Nt(Df,n),i=fe(t,a.onViewportChange),s=lz(xr,e.__scopeNavigationMenu),[l,c]=f.useState(null),[p,d]=f.useState(null),m=l?(l==null?void 0:l.width)+"px":void 0,b=l?(l==null?void 0:l.height)+"px":void 0,g=!!a.value,h=g?a.value:a.previousValue;return Lf(p,()=>{p&&c({width:p.offsetWidth,height:p.offsetHeight})}),u.jsx(Z.div,{"data-state":Ff(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,gi(a.onContentLeave)),children:Array.from(s.items).map(([y,{ref:w,forceMount:x,...S}])=>{const _=h===y;return u.jsx(Le,{present:x||_,children:u.jsx(O_,{...S,ref:Fr(w,P=>{_&&P&&d(P)})})},y)})})}),hz="FocusGroup",j_=f.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Nt(hz,n);return u.jsx(Mf.Provider,{scope:n,children:u.jsx(Mf.Slot,{scope:n,children:u.jsx(Z.div,{dir:o.dir,...r,ref:t})})})}),D_=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],gz="FocusGroupItem",k_=f.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=oz(n),a=Nt(gz,n);return u.jsx(Mf.ItemSlot,{scope:n,children:u.jsx(Z.button,{...r,ref:t,onKeyDown:B(e.onKeyDown,i=>{if(["Home","End",...D_].includes(i.key)){let l=o().map(d=>d.ref.current);if([a.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(i.key)&&l.reverse(),D_.includes(i.key)){const d=l.indexOf(i.currentTarget);l=l.slice(d+1)}setTimeout(()=>$f(l)),i.preventDefault()}})})})});function kf(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function $f(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}function vz(e){return e.forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")}),()=>{e.forEach(t=>{const n=t.dataset.tabindex;t.setAttribute("tabindex",n)})}}function Lf(e,t){const n=Re(t);Be(()=>{let r=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e,n])}function Ff(e){return e?"open":"closed"}function $_(e,t){return`${e}-trigger-${t}`}function L_(e,t){return`${e}-content-${t}`}function gi(e){return t=>t.pointerType==="mouse"?e(t):void 0}var F_=y_,B_=C_,bz=P_,z_=T_,yz=R_,q_=A_,H_=M_,V_=I_;const G_=f.forwardRef(({className:e,children:t,...n},r)=>u.jsxs(F_,{ref:r,className:O("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...n,children:[t,u.jsx(Bf,{})]}));G_.displayName=F_.displayName;const W_=f.forwardRef(({className:e,...t},n)=>u.jsx(B_,{ref:n,className:O("group flex flex-1 list-none items-center justify-center space-x-1",e),...t}));W_.displayName=B_.displayName;const wz=bz,U_=cn("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"),K_=f.forwardRef(({className:e,children:t,...n},r)=>u.jsxs(z_,{ref:r,className:O(U_(),"group",e),...n,children:[t," ",u.jsx(zr,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));K_.displayName=z_.displayName;const Y_=f.forwardRef(({className:e,...t},n)=>u.jsx(H_,{ref:n,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}));Y_.displayName=H_.displayName;const xz=yz,Bf=f.forwardRef(({className:e,...t},n)=>u.jsx("div",{className:O("absolute left-0 top-full flex justify-center"),children:u.jsx(V_,{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:n,...t})}));Bf.displayName=V_.displayName;const X_=f.forwardRef(({className:e,...t},n)=>u.jsx(q_,{ref:n,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:u.jsx("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));X_.displayName=q_.displayName;const Z_=({className:e,...t})=>u.jsx("nav",{role:"navigation","aria-label":"pagination",className:O("mx-auto flex w-full justify-center",e),...t});Z_.displayName="Pagination";const J_=f.forwardRef(({className:e,...t},n)=>u.jsx("ul",{ref:n,className:O("flex flex-row items-center gap-1",e),...t}));J_.displayName="PaginationContent";const Q_=f.forwardRef(({className:e,...t},n)=>u.jsx("li",{ref:n,className:O("",e),...t}));Q_.displayName="PaginationItem";const vi=({className:e,isActive:t,size:n="icon",...r})=>u.jsx("a",{"aria-current":t?"page":void 0,className:O(Vr({variant:t?"outline":"ghost",size:n}),e),...r});vi.displayName="PaginationLink";const eE=({className:e,...t})=>u.jsxs(vi,{"aria-label":"Go to previous page",size:"default",className:O("gap-1 pl-2.5",e),...t,children:[u.jsx(R1,{className:"h-4 w-4"}),u.jsx("span",{children:"Previous"})]});eE.displayName="PaginationPrevious";const tE=({className:e,...t})=>u.jsxs(vi,{"aria-label":"Go to next page",size:"default",className:O("gap-1 pr-2.5",e),...t,children:[u.jsx("span",{children:"Next"}),u.jsx(hn,{className:"h-4 w-4"})]});tE.displayName="PaginationNext";const nE=({className:e,...t})=>u.jsxs("span",{"aria-hidden":!0,className:O("flex h-9 w-9 items-center justify-center",e),...t,children:[u.jsx(os,{className:"h-4 w-4"}),u.jsx("span",{className:"sr-only",children:"More pages"})]});nE.displayName="PaginationEllipsis";var zf="Popover",[rE,y3]=De(zf,[Jt]),Mo=Jt(),[Sz,_n]=rE(zf),oE=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!1}=e,s=Mo(t),l=f.useRef(null),[c,p]=f.useState(!1),[d=!1,m]=$e({prop:r,defaultProp:o,onChange:a});return u.jsx(vr,{...s,children:u.jsx(Sz,{scope:t,contentId:Ge(),triggerRef:l,open:d,onOpenChange:m,onOpenToggle:f.useCallback(()=>m(b=>!b),[m]),hasCustomAnchor:c,onCustomAnchorAdd:f.useCallback(()=>p(!0),[]),onCustomAnchorRemove:f.useCallback(()=>p(!1),[]),modal:i,children:n})})};oE.displayName=zf;var aE="PopoverAnchor",iE=f.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=_n(aE,n),a=Mo(n),{onCustomAnchorAdd:i,onCustomAnchorRemove:s}=o;return f.useEffect(()=>(i(),()=>s()),[i,s]),u.jsx(br,{...a,...r,ref:t})});iE.displayName=aE;var sE="PopoverTrigger",lE=f.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=_n(sE,n),a=Mo(n),i=fe(t,o.triggerRef),s=u.jsx(Z.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":pE(o.open),...r,ref:i,onClick:B(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:u.jsx(br,{asChild:!0,...a,children:s})});lE.displayName=sE;var qf="PopoverPortal",[Cz,_z]=rE(qf,{forceMount:void 0}),cE=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,a=_n(qf,t);return u.jsx(Cz,{scope:t,forceMount:n,children:u.jsx(Le,{present:n||a.open,children:u.jsx(Mn,{asChild:!0,container:o,children:r})})})};cE.displayName=qf;var Sr="PopoverContent",uE=f.forwardRef((e,t)=>{const n=_z(Sr,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,a=_n(Sr,e.__scopePopover);return u.jsx(Le,{present:r||a.open,children:a.modal?u.jsx(Ez,{...o,ref:t}):u.jsx(Pz,{...o,ref:t})})});uE.displayName=Sr;var Ez=f.forwardRef((e,t)=>{const n=_n(Sr,e.__scopePopover),r=f.useRef(null),o=fe(t,r),a=f.useRef(!1);return f.useEffect(()=>{const i=r.current;if(i)return sa(i)},[]),u.jsx(Hr,{as:ct,allowPinchZoom:!0,children:u.jsx(dE,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:B(e.onCloseAutoFocus,i=>{var s;i.preventDefault(),a.current||(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:B(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,l=s.button===0&&s.ctrlKey===!0,c=s.button===2||l;a.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:B(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),Pz=f.forwardRef((e,t)=>{const n=_n(Sr,e.__scopePopover),r=f.useRef(!1),o=f.useRef(!1);return u.jsx(dE,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i,s;(i=e.onCloseAutoFocus)==null||i.call(e,a),a.defaultPrevented||(r.current||(s=n.triggerRef.current)==null||s.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=a.target;((c=n.triggerRef.current)==null?void 0:c.contains(i))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),dE=f.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:p,...d}=e,m=_n(Sr,n),b=Mo(n);return Qo(),u.jsx(qr,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:u.jsx(sn,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:p,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>m.onOpenChange(!1),children:u.jsx(fo,{"data-state":pE(m.open),role:"dialog",id:m.contentId,...b,...d,ref:t,style:{...d.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)"}})})})}),fE="PopoverClose",Tz=f.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=_n(fE,n);return u.jsx(Z.button,{type:"button",...r,ref:t,onClick:B(e.onClick,()=>o.onOpenChange(!1))})});Tz.displayName=fE;var Nz="PopoverArrow",Rz=f.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Mo(n);return u.jsx(po,{...o,...r,ref:t})});Rz.displayName=Nz;function pE(e){return e?"open":"closed"}var Az=oE,Mz=iE,Oz=lE,Iz=cE,mE=uE;const jz=Az,Dz=Oz,kz=Mz,hE=f.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>u.jsx(Iz,{children:u.jsx(mE,{ref:o,align:t,sideOffset:n,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),...r})}));hE.displayName=mE.displayName;var Hf="Progress",Vf=100,[$z,w3]=De(Hf),[Lz,Fz]=$z(Hf),gE=f.forwardRef((e,t)=>{const{__scopeProgress:n,value:r=null,max:o,getValueLabel:a=Bz,...i}=e;(o||o===0)&&!wE(o)&&console.error(zz(`${o}`,"Progress"));const s=wE(o)?o:Vf;r!==null&&!xE(r,s)&&console.error(qz(`${r}`,"Progress"));const l=xE(r,s)?r:null,c=bi(l)?a(l,s):void 0;return u.jsx(Lz,{scope:n,value:l,max:s,children:u.jsx(Z.div,{"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":bi(l)?l:void 0,"aria-valuetext":c,role:"progressbar","data-state":yE(l,s),"data-value":l??void 0,"data-max":s,...i,ref:t})})});gE.displayName=Hf;var vE="ProgressIndicator",bE=f.forwardRef((e,t)=>{const{__scopeProgress:n,...r}=e,o=Fz(vE,n);return u.jsx(Z.div,{"data-state":yE(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,...r,ref:t})});bE.displayName=vE;function Bz(e,t){return`${Math.round(e/t*100)}%`}function yE(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function bi(e){return typeof e=="number"}function wE(e){return bi(e)&&!isNaN(e)&&e>0}function xE(e,t){return bi(e)&&!isNaN(e)&&e<=t&&e>=0}function zz(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Vf}\`.`}function qz(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
|
|
238
|
-
- a positive number
|
|
239
|
-
- less than the value passed to \`max\` (or ${Vf} if no \`max\` prop is set)
|
|
240
|
-
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
241
|
-
|
|
242
|
-
Defaulting to \`null\`.`}var SE=gE,Hz=bE;const CE=f.forwardRef(({className:e,value:t,...n},r)=>u.jsx(SE,{ref:r,className:O("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",e),...n,children:u.jsx(Hz,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));CE.displayName=SE.displayName;var Gf="Radio",[Vz,_E]=De(Gf),[Gz,Wz]=Vz(Gf),EE=f.forwardRef((e,t)=>{const{__scopeRadio:n,name:r,checked:o=!1,required:a,disabled:i,value:s="on",onCheck:l,form:c,...p}=e,[d,m]=f.useState(null),b=fe(t,v=>m(v)),g=f.useRef(!1),h=d?c||!!d.closest("form"):!0;return u.jsxs(Gz,{scope:n,checked:o,disabled:i,children:[u.jsx(Z.button,{type:"button",role:"radio","aria-checked":o,"data-state":NE(o),"data-disabled":i?"":void 0,disabled:i,value:s,...p,ref:b,onClick:B(e.onClick,v=>{o||l==null||l(),h&&(g.current=v.isPropagationStopped(),g.current||v.stopPropagation())})}),h&&u.jsx(Uz,{control:d,bubbles:!g.current,name:r,value:s,checked:o,required:a,disabled:i,form:c,style:{transform:"translateX(-100%)"}})]})});EE.displayName=Gf;var PE="RadioIndicator",TE=f.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:r,...o}=e,a=Wz(PE,n);return u.jsx(Le,{present:r||a.checked,children:u.jsx(Z.span,{"data-state":NE(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t})})});TE.displayName=PE;var Uz=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,a=f.useRef(null),i=fr(n),s=so(t);return f.useEffect(()=>{const l=a.current,c=window.HTMLInputElement.prototype,d=Object.getOwnPropertyDescriptor(c,"checked").set;if(i!==n&&d){const m=new Event("click",{bubbles:r});d.call(l,n),l.dispatchEvent(m)}},[i,n,r]),u.jsx("input",{type:"radio","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:a,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function NE(e){return e?"checked":"unchecked"}var Kz=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Wf="RadioGroup",[Yz,x3]=De(Wf,[Qt,_E]),RE=Qt(),AE=_E(),[Xz,Zz]=Yz(Wf),ME=f.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:o,value:a,required:i=!1,disabled:s=!1,orientation:l,dir:c,loop:p=!0,onValueChange:d,...m}=e,b=RE(n),g=Ot(c),[h,v]=$e({prop:a,defaultProp:o,onChange:d});return u.jsx(Xz,{scope:n,name:r,required:i,disabled:s,value:h,onValueChange:v,children:u.jsx(mo,{asChild:!0,...b,orientation:l,dir:g,loop:p,children:u.jsx(Z.div,{role:"radiogroup","aria-required":i,"aria-orientation":l,"data-disabled":s?"":void 0,dir:g,...m,ref:t})})})});ME.displayName=Wf;var OE="RadioGroupItem",IE=f.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...o}=e,a=Zz(OE,n),i=a.disabled||r,s=RE(n),l=AE(n),c=f.useRef(null),p=fe(t,c),d=a.value===o.value,m=f.useRef(!1);return f.useEffect(()=>{const b=h=>{Kz.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)}},[]),u.jsx(ho,{asChild:!0,...s,focusable:!i,active:d,children:u.jsx(EE,{disabled:i,required:a.required,checked:d,...l,...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=c.current)==null||b.click())})})})});IE.displayName=OE;var Jz="RadioGroupIndicator",jE=f.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...r}=e,o=AE(n);return u.jsx(TE,{...o,...r,ref:t})});jE.displayName=Jz;var DE=ME,kE=IE,Qz=jE;const $E=f.forwardRef(({className:e,...t},n)=>u.jsx(DE,{className:O("grid gap-2",e),...t,ref:n}));$E.displayName=DE.displayName;const LE=f.forwardRef(({className:e,...t},n)=>u.jsx(kE,{ref:n,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:u.jsx(Qz,{className:"flex items-center justify-center",children:u.jsx(Zo,{className:"h-3.5 w-3.5 fill-primary"})})}));LE.displayName=kE.displayName;const{createElement:Cr,createContext:e5,forwardRef:FE,useCallback:gt,useContext:BE,useEffect:zn,useImperativeHandle:zE,useLayoutEffect:t5,useMemo:n5,useRef:vt,useState:_r}=f,qE=f[`useId${Math.random()}`.slice(0,5)],r5=t5,yi=e5(null);yi.displayName="PanelGroupContext";const qn=r5,o5=typeof qE=="function"?qE:()=>null;let a5=0;function Uf(e=null){const t=o5(),n=vt(e||t||null);return n.current===null&&(n.current=""+a5++),e??n.current}function HE({children:e,className:t="",collapsedSize:n,collapsible:r,defaultSize:o,forwardedRef:a,id:i,maxSize:s,minSize:l,onCollapse:c,onExpand:p,onResize:d,order:m,style:b,tagName:g="div",...h}){const v=BE(yi);if(v===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:y,expandPanel:w,getPanelSize:x,getPanelStyle:S,groupId:_,isPanelCollapsed:P,reevaluatePanelConstraints:C,registerPanel:M,resizePanel:N,unregisterPanel:$}=v,D=Uf(i),F=vt({callbacks:{onCollapse:c,onExpand:p,onResize:d},constraints:{collapsedSize:n,collapsible:r,defaultSize:o,maxSize:s,minSize:l},id:D,idIsFromProps:i!==void 0,order:m});vt({didLogMissingDefaultSizeWarning:!1}),qn(()=>{const{callbacks:k,constraints:L}=F.current,I={...L};F.current.id=D,F.current.idIsFromProps=i!==void 0,F.current.order=m,k.onCollapse=c,k.onExpand=p,k.onResize=d,L.collapsedSize=n,L.collapsible=r,L.defaultSize=o,L.maxSize=s,L.minSize=l,(I.collapsedSize!==L.collapsedSize||I.collapsible!==L.collapsible||I.maxSize!==L.maxSize||I.minSize!==L.minSize)&&C(F.current,I)}),qn(()=>{const k=F.current;return M(k),()=>{$(k)}},[m,D,M,$]),zE(a,()=>({collapse:()=>{y(F.current)},expand:k=>{w(F.current,k)},getId(){return D},getSize(){return x(F.current)},isCollapsed(){return P(F.current)},isExpanded(){return!P(F.current)},resize:k=>{N(F.current,k)}}),[y,w,x,P,D,N]);const A=S(F.current,o);return Cr(g,{...h,children:e,className:t,id:i,style:{...A,...b},"data-panel":"","data-panel-collapsible":r||void 0,"data-panel-group-id":_,"data-panel-id":D,"data-panel-size":parseFloat(""+A.flexGrow).toFixed(1)})}const VE=FE((e,t)=>Cr(HE,{...e,forwardedRef:t}));HE.displayName="Panel",VE.displayName="forwardRef(Panel)";let Kf=null,Hn=null;function i5(e,t){if(t){const n=(t&JE)!==0,r=(t&QE)!==0,o=(t&eP)!==0,a=(t&tP)!==0;if(n)return o?"se-resize":a?"ne-resize":"e-resize";if(r)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 s5(){Hn!==null&&(document.head.removeChild(Hn),Kf=null,Hn=null)}function Yf(e,t){const n=i5(e,t);Kf!==n&&(Kf=n,Hn===null&&(Hn=document.createElement("style"),document.head.appendChild(Hn)),Hn.innerHTML=`*{cursor: ${n}!important;}`)}function GE(e){return e.type==="keydown"}function WE(e){return e.type.startsWith("pointer")}function UE(e){return e.type.startsWith("mouse")}function wi(e){if(WE(e)){if(e.isPrimary)return{x:e.clientX,y:e.clientY}}else if(UE(e))return{x:e.clientX,y:e.clientY};return{x:1/0,y:1/0}}function l5(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function c5(e,t,n){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 u5(e,t){if(e===t)throw new Error("Cannot compare node with itself");const n={a:XE(e),b:XE(t)};let r;for(;n.a.at(-1)===n.b.at(-1);)e=n.a.pop(),t=n.b.pop(),r=e;ye(r,"Stacking order can only be calculated for elements with a common ancestor");const o={a:YE(KE(n.a)),b:YE(KE(n.b))};if(o.a===o.b){const a=r.childNodes,i={a:n.a.at(-1),b:n.b.at(-1)};let s=a.length;for(;s--;){const l=a[s];if(l===i.a)return 1;if(l===i.b)return-1}}return Math.sign(o.a-o.b)}const d5=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function f5(e){var t;const n=getComputedStyle((t=ZE(e))!==null&&t!==void 0?t:e).display;return n==="flex"||n==="inline-flex"}function p5(e){const t=getComputedStyle(e);return!!(t.position==="fixed"||t.zIndex!=="auto"&&(t.position!=="static"||f5(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"||d5.test(t.willChange)||t.webkitOverflowScrolling==="touch")}function KE(e){let t=e.length;for(;t--;){const n=e[t];if(ye(n,"Missing node"),p5(n))return n}return null}function YE(e){return e&&Number(getComputedStyle(e).zIndex)||0}function XE(e){const t=[];for(;e;)t.push(e),e=ZE(e);return t}function ZE(e){const{parentNode:t}=e;return t&&t instanceof ShadowRoot?t.host:t}const JE=1,QE=2,eP=4,tP=8,m5=l5()==="coarse";let qt=[],Er=!1,En=new Map,xi=new Map;const Oo=new Set;function h5(e,t,n,r,o){var a;const{ownerDocument:i}=t,s={direction:n,element:t,hitAreaMargins:r,setResizeHandlerState:o},l=(a=En.get(i))!==null&&a!==void 0?a:0;return En.set(i,l+1),Oo.add(s),Si(),function(){var p;xi.delete(e),Oo.delete(s);const d=(p=En.get(i))!==null&&p!==void 0?p:1;if(En.set(i,d-1),Si(),d===1&&En.delete(i),qt.includes(s)){const m=qt.indexOf(s);m>=0&&qt.splice(m,1),Jf(),o("up",!0,null)}}}function nP(e){const{target:t}=e,{x:n,y:r}=wi(e);Er=!0,Xf({target:t,x:n,y:r}),Si(),qt.length>0&&(Ci("down",e),e.preventDefault(),e.stopPropagation())}function Io(e){const{x:t,y:n}=wi(e);if(Er&&e.buttons===0&&(Er=!1,Ci("up",e)),!Er){const{target:r}=e;Xf({target:r,x:t,y:n})}Ci("move",e),Jf(),qt.length>0&&e.preventDefault()}function Pr(e){const{target:t}=e,{x:n,y:r}=wi(e);xi.clear(),Er=!1,qt.length>0&&e.preventDefault(),Ci("up",e),Xf({target:t,x:n,y:r}),Jf(),Si()}function Xf({target:e,x:t,y:n}){qt.splice(0);let r=null;(e instanceof HTMLElement||e instanceof SVGElement)&&(r=e),Oo.forEach(o=>{const{element:a,hitAreaMargins:i}=o,s=a.getBoundingClientRect(),{bottom:l,left:c,right:p,top:d}=s,m=m5?i.coarse:i.fine;if(t>=c-m&&t<=p+m&&n>=d-m&&n<=l+m){if(r!==null&&document.contains(r)&&a!==r&&!a.contains(r)&&!r.contains(a)&&u5(r,a)>0){let g=r,h=!1;for(;g&&!g.contains(a);){if(c5(g.getBoundingClientRect(),s)){h=!0;break}g=g.parentElement}if(h)return}qt.push(o)}})}function Zf(e,t){xi.set(e,t)}function Jf(){let e=!1,t=!1;qt.forEach(r=>{const{direction:o}=r;o==="horizontal"?e=!0:t=!0});let n=0;xi.forEach(r=>{n|=r}),e&&t?Yf("intersection",n):e?Yf("horizontal",n):t?Yf("vertical",n):s5()}function Si(){En.forEach((e,t)=>{const{body:n}=t;n.removeEventListener("contextmenu",Pr),n.removeEventListener("pointerdown",nP),n.removeEventListener("pointerleave",Io),n.removeEventListener("pointermove",Io)}),window.removeEventListener("pointerup",Pr),window.removeEventListener("pointercancel",Pr),Oo.size>0&&(Er?(qt.length>0&&En.forEach((e,t)=>{const{body:n}=t;e>0&&(n.addEventListener("contextmenu",Pr),n.addEventListener("pointerleave",Io),n.addEventListener("pointermove",Io))}),window.addEventListener("pointerup",Pr),window.addEventListener("pointercancel",Pr)):En.forEach((e,t)=>{const{body:n}=t;e>0&&(n.addEventListener("pointerdown",nP,{capture:!0}),n.addEventListener("pointermove",Io))}))}function Ci(e,t){Oo.forEach(n=>{const{setResizeHandlerState:r}=n,o=qt.includes(n);r(e,o,t)})}function g5(){const[e,t]=_r(0);return gt(()=>t(n=>n+1),[])}function ye(e,t){if(!e)throw console.error(t),Error(t)}const Qf=10;function Vn(e,t,n=Qf){return e.toFixed(n)===t.toFixed(n)?0:e>t?1:-1}function pn(e,t,n=Qf){return Vn(e,t,n)===0}function Ct(e,t,n){return Vn(e,t,n)===0}function v5(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){const o=e[r],a=t[r];if(!Ct(o,a,n))return!1}return!0}function Tr({panelConstraints:e,panelIndex:t,size:n}){const r=e[t];ye(r!=null,`Panel constraints not found for index ${t}`);let{collapsedSize:o=0,collapsible:a,maxSize:i=100,minSize:s=0}=r;if(Vn(n,s)<0)if(a){const l=(o+s)/2;Vn(n,l)<0?n=o:n=s}else n=s;return n=Math.min(i,n),n=parseFloat(n.toFixed(Qf)),n}function jo({delta:e,initialLayout:t,panelConstraints:n,pivotIndices:r,prevLayout:o,trigger:a}){if(Ct(e,0))return t;const i=[...t],[s,l]=r;ye(s!=null,"Invalid first pivot index"),ye(l!=null,"Invalid second pivot index");let c=0;if(a==="keyboard"){{const d=e<0?l:s,m=n[d];ye(m,`Panel constraints not found for index ${d}`);const{collapsedSize:b=0,collapsible:g,minSize:h=0}=m;if(g){const v=t[d];if(ye(v!=null,`Previous layout not found for panel index ${d}`),Ct(v,b)){const y=h-v;Vn(y,Math.abs(e))>0&&(e=e<0?0-y:y)}}}{const d=e<0?s:l,m=n[d];ye(m,`No panel constraints found for index ${d}`);const{collapsedSize:b=0,collapsible:g,minSize:h=0}=m;if(g){const v=t[d];if(ye(v!=null,`Previous layout not found for panel index ${d}`),Ct(v,h)){const y=v-b;Vn(y,Math.abs(e))>0&&(e=e<0?0-y:y)}}}}{const d=e<0?1:-1;let m=e<0?l:s,b=0;for(;;){const h=t[m];ye(h!=null,`Previous layout not found for panel index ${m}`);const y=Tr({panelConstraints:n,panelIndex:m,size:100})-h;if(b+=y,m+=d,m<0||m>=n.length)break}const g=Math.min(Math.abs(e),Math.abs(b));e=e<0?0-g:g}{let m=e<0?s:l;for(;m>=0&&m<n.length;){const b=Math.abs(e)-Math.abs(c),g=t[m];ye(g!=null,`Previous layout not found for panel index ${m}`);const h=g-b,v=Tr({panelConstraints:n,panelIndex:m,size:h});if(!Ct(g,v)&&(c+=g-v,i[m]=v,c.toPrecision(3).localeCompare(Math.abs(e).toPrecision(3),void 0,{numeric:!0})>=0))break;e<0?m--:m++}}if(v5(o,i))return o;{const d=e<0?l:s,m=t[d];ye(m!=null,`Previous layout not found for panel index ${d}`);const b=m+c,g=Tr({panelConstraints:n,panelIndex:d,size:b});if(i[d]=g,!Ct(g,b)){let h=b-g,y=e<0?l:s;for(;y>=0&&y<n.length;){const w=i[y];ye(w!=null,`Previous layout not found for panel index ${y}`);const x=w+h,S=Tr({panelConstraints:n,panelIndex:y,size:x});if(Ct(w,S)||(h-=S-w,i[y]=S),Ct(h,0))break;e>0?y--:y++}}}const p=i.reduce((d,m)=>m+d,0);return Ct(p,100)?i:o}function b5({layout:e,panelsArray:t,pivotIndices:n}){let r=0,o=100,a=0,i=0;const s=n[0];ye(s!=null,"No pivot index found"),t.forEach((d,m)=>{const{constraints:b}=d,{maxSize:g=100,minSize:h=0}=b;m===s?(r=h,o=g):(a+=h,i+=g)});const l=Math.min(o,100-a),c=Math.max(r,100-i),p=e[s];return{valueMax:l,valueMin:c,valueNow:p}}function Do(e,t=document){return Array.from(t.querySelectorAll(`[data-panel-resize-handle-id][data-panel-group-id="${e}"]`))}function rP(e,t,n=document){const o=Do(e,n).findIndex(a=>a.getAttribute("data-panel-resize-handle-id")===t);return o??null}function oP(e,t,n){const r=rP(e,t,n);return r!=null?[r,r+1]:[-1,-1]}function aP(e,t=document){var n;if(t instanceof HTMLElement&&(t==null||(n=t.dataset)===null||n===void 0?void 0:n.panelGroupId)==e)return t;const r=t.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`);return r||null}function _i(e,t=document){const n=t.querySelector(`[data-panel-resize-handle-id="${e}"]`);return n||null}function y5(e,t,n,r=document){var o,a,i,s;const l=_i(t,r),c=Do(e,r),p=l?c.indexOf(l):-1,d=(o=(a=n[p])===null||a===void 0?void 0:a.id)!==null&&o!==void 0?o:null,m=(i=(s=n[p+1])===null||s===void 0?void 0:s.id)!==null&&i!==void 0?i:null;return[d,m]}function w5({committedValuesRef:e,eagerValuesRef:t,groupId:n,layout:r,panelDataArray:o,panelGroupElement:a,setLayout:i}){vt({didWarnAboutMissingResizeHandle:!1}),qn(()=>{if(!a)return;const s=Do(n,a);for(let l=0;l<o.length-1;l++){const{valueMax:c,valueMin:p,valueNow:d}=b5({layout:r,panelsArray:o,pivotIndices:[l,l+1]}),m=s[l];if(m!=null){const b=o[l];ye(b,`No panel data found for index "${l}"`),m.setAttribute("aria-controls",b.id),m.setAttribute("aria-valuemax",""+Math.round(c)),m.setAttribute("aria-valuemin",""+Math.round(p)),m.setAttribute("aria-valuenow",d!=null?""+Math.round(d):"")}}return()=>{s.forEach((l,c)=>{l.removeAttribute("aria-controls"),l.removeAttribute("aria-valuemax"),l.removeAttribute("aria-valuemin"),l.removeAttribute("aria-valuenow")})}},[n,r,o,a]),zn(()=>{if(!a)return;const s=t.current;ye(s,"Eager values not found");const{panelDataArray:l}=s,c=aP(n,a);ye(c!=null,`No group found for id "${n}"`);const p=Do(n,a);ye(p,`No resize handles found for group id "${n}"`);const d=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]=y5(n,b,l,a);if(g==null||h==null)return()=>{};const v=y=>{if(!y.defaultPrevented)switch(y.key){case"Enter":{y.preventDefault();const w=l.findIndex(x=>x.id===g);if(w>=0){const x=l[w];ye(x,`No panel data found for index ${w}`);const S=r[w],{collapsedSize:_=0,collapsible:P,minSize:C=0}=x.constraints;if(S!=null&&P){const M=jo({delta:Ct(S,_)?C-_:_-S,initialLayout:r,panelConstraints:l.map(N=>N.constraints),pivotIndices:oP(n,b,a),prevLayout:r,trigger:"keyboard"});r!==M&&i(M)}}break}}};return m.addEventListener("keydown",v),()=>{m.removeEventListener("keydown",v)}});return()=>{d.forEach(m=>m())}},[a,e,t,n,r,o,i])}function iP(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function sP(e,t){const n=e==="horizontal",{x:r,y:o}=wi(t);return n?r:o}function x5(e,t,n,r,o){const a=n==="horizontal",i=_i(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:l}=r;const c=sP(n,e),p=aP(s,o);ye(p,`No group element found for id "${s}"`);const d=p.getBoundingClientRect(),m=a?d.width:d.height;return(c-l)/m*100}function S5(e,t,n,r,o,a){if(GE(e)){const i=n==="horizontal";let s=0;e.shiftKey?s=100:o!=null?s=o:s=10;let l=0;switch(e.key){case"ArrowDown":l=i?0:s;break;case"ArrowLeft":l=i?-s:0;break;case"ArrowRight":l=i?s:0;break;case"ArrowUp":l=i?0:-s;break;case"End":l=100;break;case"Home":l=-100;break}return l}else return r==null?0:x5(e,t,n,r,a)}function C5({panelDataArray:e}){const t=Array(e.length),n=e.map(a=>a.constraints);let r=0,o=100;for(let a=0;a<e.length;a++){const i=n[a];ye(i,`Panel constraints not found for index ${a}`);const{defaultSize:s}=i;s!=null&&(r++,t[a]=s,o-=s)}for(let a=0;a<e.length;a++){const i=n[a];ye(i,`Panel constraints not found for index ${a}`);const{defaultSize:s}=i;if(s!=null)continue;const l=e.length-r,c=o/l;r++,t[a]=c,o-=c}return t}function Nr(e,t,n){t.forEach((r,o)=>{const a=e[o];ye(a,`Panel data not found for index ${o}`);const{callbacks:i,constraints:s,id:l}=a,{collapsedSize:c=0,collapsible:p}=s,d=n[l];if(d==null||r!==d){n[l]=r;const{onCollapse:m,onExpand:b,onResize:g}=i;g&&g(r,d),p&&(m||b)&&(b&&(d==null||pn(d,c))&&!pn(r,c)&&b(),m&&(d==null||!pn(d,c))&&pn(r,c)&&m())}})}function Ei(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0}function _5({defaultSize:e,dragState:t,layout:n,panelData:r,panelIndex:o,precision:a=3}){const i=n[o];let s;return i==null?s=e!=null?e.toPrecision(a):"1":r.length===1?s="1":s=i.toPrecision(a),{flexBasis:0,flexGrow:s,flexShrink:1,overflow:"hidden",pointerEvents:t!==null?"none":void 0}}function E5(e,t=10){let n=null;return(...o)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{e(...o)},t)}}function lP(e){try{if(typeof localStorage<"u")e.getItem=t=>localStorage.getItem(t),e.setItem=(t,n)=>{localStorage.setItem(t,n)};else throw new Error("localStorage not supported in this environment")}catch(t){console.error(t),e.getItem=()=>null,e.setItem=()=>{}}}function cP(e){return`react-resizable-panels:${e}`}function uP(e){return e.map(t=>{const{constraints:n,id:r,idIsFromProps:o,order:a}=t;return o?r:a?`${a}:${JSON.stringify(n)}`:JSON.stringify(n)}).sort((t,n)=>t.localeCompare(n)).join(",")}function dP(e,t){try{const n=cP(e),r=t.getItem(n);if(r){const o=JSON.parse(r);if(typeof o=="object"&&o!=null)return o}}catch{}return null}function P5(e,t,n){var r,o;const a=(r=dP(e,n))!==null&&r!==void 0?r:{},i=uP(t);return(o=a[i])!==null&&o!==void 0?o:null}function T5(e,t,n,r,o){var a;const i=cP(e),s=uP(t),l=(a=dP(e,o))!==null&&a!==void 0?a:{};l[s]={expandToSizes:Object.fromEntries(n.entries()),layout:r};try{o.setItem(i,JSON.stringify(l))}catch(c){console.error(c)}}function fP({layout:e,panelConstraints:t}){const n=[...e],r=n.reduce((a,i)=>a+i,0);if(n.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${n.map(a=>`${a}%`).join(", ")}`);if(!Ct(r,100)&&n.length>0)for(let a=0;a<t.length;a++){const i=n[a];ye(i!=null,`No layout data found for index ${a}`);const s=100/r*i;n[a]=s}let o=0;for(let a=0;a<t.length;a++){const i=n[a];ye(i!=null,`No layout data found for index ${a}`);const s=Tr({panelConstraints:t,panelIndex:a,size:i});i!=s&&(o+=i-s,n[a]=s)}if(!Ct(o,0))for(let a=0;a<t.length;a++){const i=n[a];ye(i!=null,`No layout data found for index ${a}`);const s=i+o,l=Tr({panelConstraints:t,panelIndex:a,size:s});if(i!==l&&(o-=l-i,n[a]=l,Ct(o,0)))break}return n}const N5=100,ko={getItem:e=>(lP(ko),ko.getItem(e)),setItem:(e,t)=>{lP(ko),ko.setItem(e,t)}},pP={};function mP({autoSaveId:e=null,children:t,className:n="",direction:r,forwardedRef:o,id:a=null,onLayout:i=null,keyboardResizeBy:s=null,storage:l=ko,style:c,tagName:p="div",...d}){const m=Uf(a),b=vt(null),[g,h]=_r(null),[v,y]=_r([]),w=g5(),x=vt({}),S=vt(new Map),_=vt(0),P=vt({autoSaveId:e,direction:r,dragState:g,id:m,keyboardResizeBy:s,onLayout:i,storage:l}),C=vt({layout:v,panelDataArray:[],panelDataArrayChanged:!1});vt({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),zE(o,()=>({getId:()=>P.current.id,getLayout:()=>{const{layout:z}=C.current;return z},setLayout:z=>{const{onLayout:U}=P.current,{layout:ee,panelDataArray:Y}=C.current,H=fP({layout:z,panelConstraints:Y.map(K=>K.constraints)});iP(ee,H)||(y(H),C.current.layout=H,U&&U(H),Nr(Y,H,x.current))}}),[]),qn(()=>{P.current.autoSaveId=e,P.current.direction=r,P.current.dragState=g,P.current.id=m,P.current.onLayout=i,P.current.storage=l}),w5({committedValuesRef:P,eagerValuesRef:C,groupId:m,layout:v,panelDataArray:C.current.panelDataArray,setLayout:y,panelGroupElement:b.current}),zn(()=>{const{panelDataArray:z}=C.current;if(e){if(v.length===0||v.length!==z.length)return;let U=pP[e];U==null&&(U=E5(T5,N5),pP[e]=U);const ee=[...z],Y=new Map(S.current);U(e,ee,Y,v,l)}},[e,v,l]),zn(()=>{});const M=gt(z=>{const{onLayout:U}=P.current,{layout:ee,panelDataArray:Y}=C.current;if(z.constraints.collapsible){const H=Y.map(oe=>oe.constraints),{collapsedSize:K=0,panelSize:re,pivotIndices:Q}=Gn(Y,z,ee);if(ye(re!=null,`Panel size not found for panel "${z.id}"`),!pn(re,K)){S.current.set(z.id,re);const G=Rr(Y,z)===Y.length-1?re-K:K-re,ie=jo({delta:G,initialLayout:ee,panelConstraints:H,pivotIndices:Q,prevLayout:ee,trigger:"imperative-api"});Ei(ee,ie)||(y(ie),C.current.layout=ie,U&&U(ie),Nr(Y,ie,x.current))}}},[]),N=gt((z,U)=>{const{onLayout:ee}=P.current,{layout:Y,panelDataArray:H}=C.current;if(z.constraints.collapsible){const K=H.map(j=>j.constraints),{collapsedSize:re=0,panelSize:Q=0,minSize:oe=0,pivotIndices:G}=Gn(H,z,Y),ie=U??oe;if(pn(Q,re)){const j=S.current.get(z.id),te=j!=null&&j>=ie?j:ie,he=Rr(H,z)===H.length-1?Q-te:te-Q,ve=jo({delta:he,initialLayout:Y,panelConstraints:K,pivotIndices:G,prevLayout:Y,trigger:"imperative-api"});Ei(Y,ve)||(y(ve),C.current.layout=ve,ee&&ee(ve),Nr(H,ve,x.current))}}},[]),$=gt(z=>{const{layout:U,panelDataArray:ee}=C.current,{panelSize:Y}=Gn(ee,z,U);return ye(Y!=null,`Panel size not found for panel "${z.id}"`),Y},[]),D=gt((z,U)=>{const{panelDataArray:ee}=C.current,Y=Rr(ee,z);return _5({defaultSize:U,dragState:g,layout:v,panelData:ee,panelIndex:Y})},[g,v]),F=gt(z=>{const{layout:U,panelDataArray:ee}=C.current,{collapsedSize:Y=0,collapsible:H,panelSize:K}=Gn(ee,z,U);return ye(K!=null,`Panel size not found for panel "${z.id}"`),H===!0&&pn(K,Y)},[]),A=gt(z=>{const{layout:U,panelDataArray:ee}=C.current,{collapsedSize:Y=0,collapsible:H,panelSize:K}=Gn(ee,z,U);return ye(K!=null,`Panel size not found for panel "${z.id}"`),!H||Vn(K,Y)>0},[]),k=gt(z=>{const{panelDataArray:U}=C.current;U.push(z),U.sort((ee,Y)=>{const H=ee.order,K=Y.order;return H==null&&K==null?0:H==null?-1:K==null?1:H-K}),C.current.panelDataArrayChanged=!0,w()},[w]);qn(()=>{if(C.current.panelDataArrayChanged){C.current.panelDataArrayChanged=!1;const{autoSaveId:z,onLayout:U,storage:ee}=P.current,{layout:Y,panelDataArray:H}=C.current;let K=null;if(z){const Q=P5(z,H,ee);Q&&(S.current=new Map(Object.entries(Q.expandToSizes)),K=Q.layout)}K==null&&(K=C5({panelDataArray:H}));const re=fP({layout:K,panelConstraints:H.map(Q=>Q.constraints)});iP(Y,re)||(y(re),C.current.layout=re,U&&U(re),Nr(H,re,x.current))}}),qn(()=>{const z=C.current;return()=>{z.layout=[]}},[]);const L=gt(z=>{let U=!1;const ee=b.current;return ee&&window.getComputedStyle(ee,null).getPropertyValue("direction")==="rtl"&&(U=!0),function(H){H.preventDefault();const K=b.current;if(!K)return()=>null;const{direction:re,dragState:Q,id:oe,keyboardResizeBy:G,onLayout:ie}=P.current,{layout:j,panelDataArray:te}=C.current,{initialLayout:me}=Q??{},he=oP(oe,z,K);let ve=S5(H,z,re,Q,G,K);const pe=re==="horizontal";pe&&U&&(ve=-ve);const Te=te.map(Ie=>Ie.constraints),He=jo({delta:ve,initialLayout:me??j,panelConstraints:Te,pivotIndices:he,prevLayout:j,trigger:GE(H)?"keyboard":"mouse-or-touch"}),Se=!Ei(j,He);(WE(H)||UE(H))&&_.current!=ve&&(_.current=ve,!Se&&ve!==0?pe?Zf(z,ve<0?JE:QE):Zf(z,ve<0?eP:tP):Zf(z,0)),Se&&(y(He),C.current.layout=He,ie&&ie(He),Nr(te,He,x.current))}},[]),I=gt((z,U)=>{const{onLayout:ee}=P.current,{layout:Y,panelDataArray:H}=C.current,K=H.map(j=>j.constraints),{panelSize:re,pivotIndices:Q}=Gn(H,z,Y);ye(re!=null,`Panel size not found for panel "${z.id}"`);const G=Rr(H,z)===H.length-1?re-U:U-re,ie=jo({delta:G,initialLayout:Y,panelConstraints:K,pivotIndices:Q,prevLayout:Y,trigger:"imperative-api"});Ei(Y,ie)||(y(ie),C.current.layout=ie,ee&&ee(ie),Nr(H,ie,x.current))},[]),W=gt((z,U)=>{const{layout:ee,panelDataArray:Y}=C.current,{collapsedSize:H=0,collapsible:K}=U,{collapsedSize:re=0,collapsible:Q,maxSize:oe=100,minSize:G=0}=z.constraints,{panelSize:ie}=Gn(Y,z,ee);ie!=null&&(K&&Q&&pn(ie,H)?pn(H,re)||I(z,re):ie<G?I(z,G):ie>oe&&I(z,oe))},[I]),V=gt((z,U)=>{const{direction:ee}=P.current,{layout:Y}=C.current;if(!b.current)return;const H=_i(z,b.current);ye(H,`Drag handle element not found for id "${z}"`);const K=sP(ee,U);h({dragHandleId:z,dragHandleRect:H.getBoundingClientRect(),initialCursorPosition:K,initialLayout:Y})},[]),q=gt(()=>{h(null)},[]),ae=gt(z=>{const{panelDataArray:U}=C.current,ee=Rr(U,z);ee>=0&&(U.splice(ee,1),delete x.current[z.id],C.current.panelDataArrayChanged=!0,w())},[w]),J=n5(()=>({collapsePanel:M,direction:r,dragState:g,expandPanel:N,getPanelSize:$,getPanelStyle:D,groupId:m,isPanelCollapsed:F,isPanelExpanded:A,reevaluatePanelConstraints:W,registerPanel:k,registerResizeHandle:L,resizePanel:I,startDragging:V,stopDragging:q,unregisterPanel:ae,panelGroupElement:b.current}),[M,g,r,N,$,D,m,F,A,W,k,L,I,V,q,ae]),ne={display:"flex",flexDirection:r==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return Cr(yi.Provider,{value:J},Cr(p,{...d,children:t,className:n,id:a,ref:b,style:{...ne,...c},"data-panel-group":"","data-panel-group-direction":r,"data-panel-group-id":m}))}const hP=FE((e,t)=>Cr(mP,{...e,forwardedRef:t}));mP.displayName="PanelGroup",hP.displayName="forwardRef(PanelGroup)";function Rr(e,t){return e.findIndex(n=>n===t||n.id===t.id)}function Gn(e,t,n){const r=Rr(e,t),a=r===e.length-1?[r-1,r]:[r,r+1],i=n[r];return{...t.constraints,panelSize:i,pivotIndices:a}}function R5({disabled:e,handleId:t,resizeHandler:n,panelGroupElement:r}){zn(()=>{if(e||n==null||r==null)return;const o=_i(t,r);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(),n(i);break}case"F6":{i.preventDefault();const s=o.getAttribute("data-panel-group-id");ye(s,`No group element found for id "${s}"`);const l=Do(s,r),c=rP(s,t,r);ye(c!==null,`No resize element found for id "${t}"`);const p=i.shiftKey?c>0?c-1:l.length-1:c+1<l.length?c+1:0;l[p].focus();break}}};return o.addEventListener("keydown",a),()=>{o.removeEventListener("keydown",a)}},[r,e,t,n])}function gP({children:e=null,className:t="",disabled:n=!1,hitAreaMargins:r,id:o,onBlur:a,onDragging:i,onFocus:s,style:l={},tabIndex:c=0,tagName:p="div",...d}){var m,b;const g=vt(null),h=vt({onDragging:i});zn(()=>{h.current.onDragging=i});const v=BE(yi);if(v===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:y,groupId:w,registerResizeHandle:x,startDragging:S,stopDragging:_,panelGroupElement:P}=v,C=Uf(o),[M,N]=_r("inactive"),[$,D]=_r(!1),[F,A]=_r(null),k=vt({state:M});qn(()=>{k.current.state=M}),zn(()=>{if(n)A(null);else{const V=x(C);A(()=>V)}},[n,C,x]);const L=(m=r==null?void 0:r.coarse)!==null&&m!==void 0?m:15,I=(b=r==null?void 0:r.fine)!==null&&b!==void 0?b:5;return zn(()=>{if(n||F==null)return;const V=g.current;return ye(V,"Element ref not attached"),h5(C,V,y,{coarse:L,fine:I},(ae,J,ne)=>{if(J)switch(ae){case"down":{N("drag"),ye(ne,'Expected event to be defined for "down" action'),S(C,ne);const{onDragging:z}=h.current;z&&z(!0);break}case"move":{const{state:z}=k.current;z!=="drag"&&N("hover"),ye(ne,'Expected event to be defined for "move" action'),F(ne);break}case"up":{N("hover"),_();const{onDragging:z}=h.current;z&&z(!1);break}}else N("inactive")})},[L,y,n,I,x,C,F,S,_]),R5({disabled:n,handleId:C,resizeHandler:F,panelGroupElement:P}),Cr(p,{...d,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"},...l},tabIndex:c,"data-panel-group-direction":y,"data-panel-group-id":w,"data-resize-handle":"","data-resize-handle-active":M==="drag"?"pointer":$?"keyboard":void 0,"data-resize-handle-state":M,"data-panel-resize-handle-enabled":!n,"data-panel-resize-handle-id":C})}gP.displayName="PanelResizeHandle";const A5=({className:e,...t})=>u.jsx(hP,{className:O("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",e),...t}),M5=VE,O5=({withHandle:e,className:t,...n})=>u.jsx(gP,{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),...n,children:e&&u.jsx("div",{className:"z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border",children:u.jsx(M1,{className:"h-2.5 w-2.5"})})});function $o(e,[t,n]){return Math.min(n,Math.max(t,e))}function I5(e,t){return f.useReducer((n,r)=>t[n][r]??n,e)}var ep="ScrollArea",[vP,S3]=De(ep),[j5,Rt]=vP(ep),bP=f.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:o,scrollHideDelay:a=600,...i}=e,[s,l]=f.useState(null),[c,p]=f.useState(null),[d,m]=f.useState(null),[b,g]=f.useState(null),[h,v]=f.useState(null),[y,w]=f.useState(0),[x,S]=f.useState(0),[_,P]=f.useState(!1),[C,M]=f.useState(!1),N=fe(t,D=>l(D)),$=Ot(o);return u.jsx(j5,{scope:n,type:r,dir:$,scrollHideDelay:a,scrollArea:s,viewport:c,onViewportChange:p,content:d,onContentChange:m,scrollbarX:b,onScrollbarXChange:g,scrollbarXEnabled:_,onScrollbarXEnabledChange:P,scrollbarY:h,onScrollbarYChange:v,scrollbarYEnabled:C,onScrollbarYEnabledChange:M,onCornerWidthChange:w,onCornerHeightChange:S,children:u.jsx(Z.div,{dir:$,...i,ref:N,style:{position:"relative","--radix-scroll-area-corner-width":y+"px","--radix-scroll-area-corner-height":x+"px",...e.style}})})});bP.displayName=ep;var yP="ScrollAreaViewport",wP=f.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,nonce:o,...a}=e,i=Rt(yP,n),s=f.useRef(null),l=fe(t,s,i.onViewportChange);return u.jsxs(u.Fragment,{children:[u.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}),u.jsx(Z.div,{"data-radix-scroll-area-viewport":"",...a,ref:l,style:{overflowX:i.scrollbarXEnabled?"scroll":"hidden",overflowY:i.scrollbarYEnabled?"scroll":"hidden",...e.style},children:u.jsx("div",{ref:i.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});wP.displayName=yP;var en="ScrollAreaScrollbar",tp=f.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Rt(en,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:i}=o,s=e.orientation==="horizontal";return f.useEffect(()=>(s?a(!0):i(!0),()=>{s?a(!1):i(!1)}),[s,a,i]),o.type==="hover"?u.jsx(D5,{...r,ref:t,forceMount:n}):o.type==="scroll"?u.jsx(k5,{...r,ref:t,forceMount:n}):o.type==="auto"?u.jsx(xP,{...r,ref:t,forceMount:n}):o.type==="always"?u.jsx(np,{...r,ref:t}):null});tp.displayName=en;var D5=f.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Rt(en,e.__scopeScrollArea),[a,i]=f.useState(!1);return f.useEffect(()=>{const s=o.scrollArea;let l=0;if(s){const c=()=>{window.clearTimeout(l),i(!0)},p=()=>{l=window.setTimeout(()=>i(!1),o.scrollHideDelay)};return s.addEventListener("pointerenter",c),s.addEventListener("pointerleave",p),()=>{window.clearTimeout(l),s.removeEventListener("pointerenter",c),s.removeEventListener("pointerleave",p)}}},[o.scrollArea,o.scrollHideDelay]),u.jsx(Le,{present:n||a,children:u.jsx(xP,{"data-state":a?"visible":"hidden",...r,ref:t})})}),k5=f.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Rt(en,e.__scopeScrollArea),a=e.orientation==="horizontal",i=Ri(()=>l("SCROLL_END"),100),[s,l]=I5("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 f.useEffect(()=>{if(s==="idle"){const c=window.setTimeout(()=>l("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(c)}},[s,o.scrollHideDelay,l]),f.useEffect(()=>{const c=o.viewport,p=a?"scrollLeft":"scrollTop";if(c){let d=c[p];const m=()=>{const b=c[p];d!==b&&(l("SCROLL"),i()),d=b};return c.addEventListener("scroll",m),()=>c.removeEventListener("scroll",m)}},[o.viewport,a,l,i]),u.jsx(Le,{present:n||s!=="hidden",children:u.jsx(np,{"data-state":s==="hidden"?"hidden":"visible",...r,ref:t,onPointerEnter:B(e.onPointerEnter,()=>l("POINTER_ENTER")),onPointerLeave:B(e.onPointerLeave,()=>l("POINTER_LEAVE"))})})}),xP=f.forwardRef((e,t)=>{const n=Rt(en,e.__scopeScrollArea),{forceMount:r,...o}=e,[a,i]=f.useState(!1),s=e.orientation==="horizontal",l=Ri(()=>{if(n.viewport){const c=n.viewport.offsetWidth<n.viewport.scrollWidth,p=n.viewport.offsetHeight<n.viewport.scrollHeight;i(s?c:p)}},10);return Ar(n.viewport,l),Ar(n.content,l),u.jsx(Le,{present:r||a,children:u.jsx(np,{"data-state":a?"visible":"hidden",...o,ref:t})})}),np=f.forwardRef((e,t)=>{const{orientation:n="vertical",...r}=e,o=Rt(en,e.__scopeScrollArea),a=f.useRef(null),i=f.useRef(0),[s,l]=f.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),c=PP(s.viewport,s.content),p={...r,sizes:s,onSizesChange:l,hasThumb:c>0&&c<1,onThumbChange:m=>a.current=m,onThumbPointerUp:()=>i.current=0,onThumbPointerDown:m=>i.current=m};function d(m,b){return q5(m,i.current,s,b)}return n==="horizontal"?u.jsx($5,{...p,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){const m=o.viewport.scrollLeft,b=TP(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=d(m,o.dir))}}):n==="vertical"?u.jsx(L5,{...p,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){const m=o.viewport.scrollTop,b=TP(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=d(m))}}):null}),$5=f.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,a=Rt(en,e.__scopeScrollArea),[i,s]=f.useState(),l=f.useRef(null),c=fe(t,l,a.onScrollbarXChange);return f.useEffect(()=>{l.current&&s(getComputedStyle(l.current))},[l]),u.jsx(CP,{"data-orientation":"horizontal",...o,ref:c,sizes:n,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":Ni(n)+"px",...e.style},onThumbPointerDown:p=>e.onThumbPointerDown(p.x),onDragScroll:p=>e.onDragScroll(p.x),onWheelScroll:(p,d)=>{if(a.viewport){const m=a.viewport.scrollLeft+p.deltaX;e.onWheelScroll(m),RP(m,d)&&p.preventDefault()}},onResize:()=>{l.current&&a.viewport&&i&&r({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:Ti(i.paddingLeft),paddingEnd:Ti(i.paddingRight)}})}})}),L5=f.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,a=Rt(en,e.__scopeScrollArea),[i,s]=f.useState(),l=f.useRef(null),c=fe(t,l,a.onScrollbarYChange);return f.useEffect(()=>{l.current&&s(getComputedStyle(l.current))},[l]),u.jsx(CP,{"data-orientation":"vertical",...o,ref:c,sizes:n,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":Ni(n)+"px",...e.style},onThumbPointerDown:p=>e.onThumbPointerDown(p.y),onDragScroll:p=>e.onDragScroll(p.y),onWheelScroll:(p,d)=>{if(a.viewport){const m=a.viewport.scrollTop+p.deltaY;e.onWheelScroll(m),RP(m,d)&&p.preventDefault()}},onResize:()=>{l.current&&a.viewport&&i&&r({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:Ti(i.paddingTop),paddingEnd:Ti(i.paddingBottom)}})}})}),[F5,SP]=vP(en),CP=f.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:o,onThumbChange:a,onThumbPointerUp:i,onThumbPointerDown:s,onThumbPositionChange:l,onDragScroll:c,onWheelScroll:p,onResize:d,...m}=e,b=Rt(en,n),[g,h]=f.useState(null),v=fe(t,N=>h(N)),y=f.useRef(null),w=f.useRef(""),x=b.viewport,S=r.content-r.viewport,_=Re(p),P=Re(l),C=Ri(d,10);function M(N){if(y.current){const $=N.clientX-y.current.left,D=N.clientY-y.current.top;c({x:$,y:D})}}return f.useEffect(()=>{const N=$=>{const D=$.target;(g==null?void 0:g.contains(D))&&_($,S)};return document.addEventListener("wheel",N,{passive:!1}),()=>document.removeEventListener("wheel",N,{passive:!1})},[x,g,S,_]),f.useEffect(P,[r,P]),Ar(g,C),Ar(b.content,C),u.jsx(F5,{scope:n,scrollbar:g,hasThumb:o,onThumbChange:Re(a),onThumbPointerUp:Re(i),onThumbPositionChange:P,onThumbPointerDown:Re(s),children:u.jsx(Z.div,{...m,ref:v,style:{position:"absolute",...m.style},onPointerDown:B(e.onPointerDown,N=>{N.button===0&&(N.target.setPointerCapture(N.pointerId),y.current=g.getBoundingClientRect(),w.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",b.viewport&&(b.viewport.style.scrollBehavior="auto"),M(N))}),onPointerMove:B(e.onPointerMove,M),onPointerUp:B(e.onPointerUp,N=>{const $=N.target;$.hasPointerCapture(N.pointerId)&&$.releasePointerCapture(N.pointerId),document.body.style.webkitUserSelect=w.current,b.viewport&&(b.viewport.style.scrollBehavior=""),y.current=null})})})}),Pi="ScrollAreaThumb",_P=f.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=SP(Pi,e.__scopeScrollArea);return u.jsx(Le,{present:n||o.hasThumb,children:u.jsx(B5,{ref:t,...r})})}),B5=f.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:r,...o}=e,a=Rt(Pi,n),i=SP(Pi,n),{onThumbPositionChange:s}=i,l=fe(t,d=>i.onThumbChange(d)),c=f.useRef(void 0),p=Ri(()=>{c.current&&(c.current(),c.current=void 0)},100);return f.useEffect(()=>{const d=a.viewport;if(d){const m=()=>{if(p(),!c.current){const b=H5(d,s);c.current=b,s()}};return s(),d.addEventListener("scroll",m),()=>d.removeEventListener("scroll",m)}},[a.viewport,p,s]),u.jsx(Z.div,{"data-state":i.hasThumb?"visible":"hidden",...o,ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:B(e.onPointerDownCapture,d=>{const b=d.target.getBoundingClientRect(),g=d.clientX-b.left,h=d.clientY-b.top;i.onThumbPointerDown({x:g,y:h})}),onPointerUp:B(e.onPointerUp,i.onThumbPointerUp)})});_P.displayName=Pi;var rp="ScrollAreaCorner",EP=f.forwardRef((e,t)=>{const n=Rt(rp,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?u.jsx(z5,{...e,ref:t}):null});EP.displayName=rp;var z5=f.forwardRef((e,t)=>{const{__scopeScrollArea:n,...r}=e,o=Rt(rp,n),[a,i]=f.useState(0),[s,l]=f.useState(0),c=!!(a&&s);return Ar(o.scrollbarX,()=>{var d;const p=((d=o.scrollbarX)==null?void 0:d.offsetHeight)||0;o.onCornerHeightChange(p),l(p)}),Ar(o.scrollbarY,()=>{var d;const p=((d=o.scrollbarY)==null?void 0:d.offsetWidth)||0;o.onCornerWidthChange(p),i(p)}),c?u.jsx(Z.div,{...r,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 Ti(e){return e?parseInt(e,10):0}function PP(e,t){const n=e/t;return isNaN(n)?0:n}function Ni(e){const t=PP(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function q5(e,t,n,r="ltr"){const o=Ni(n),a=o/2,i=t||a,s=o-i,l=n.scrollbar.paddingStart+i,c=n.scrollbar.size-n.scrollbar.paddingEnd-s,p=n.content-n.viewport,d=r==="ltr"?[0,p]:[p*-1,0];return NP([l,c],d)(e)}function TP(e,t,n="ltr"){const r=Ni(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-o,i=t.content-t.viewport,s=a-r,l=n==="ltr"?[0,i]:[i*-1,0],c=$o(e,l);return NP([0,i],[0,s])(c)}function NP(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function RP(e,t){return e>0&&e<t}var H5=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function o(){const a={left:e.scrollLeft,top:e.scrollTop},i=n.left!==a.left,s=n.top!==a.top;(i||s)&&t(),n=a,r=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(r)};function Ri(e,t){const n=Re(e),r=f.useRef(0);return f.useEffect(()=>()=>window.clearTimeout(r.current),[]),f.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function Ar(e,t){const n=Re(t);Be(()=>{let r=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e,n])}var AP=bP,V5=wP,G5=EP;const MP=f.forwardRef(({className:e,children:t,...n},r)=>u.jsxs(AP,{ref:r,className:O("relative overflow-hidden",e),...n,children:[u.jsx(V5,{className:"h-full w-full rounded-[inherit]",children:t}),u.jsx(op,{}),u.jsx(G5,{})]}));MP.displayName=AP.displayName;const op=f.forwardRef(({className:e,orientation:t="vertical",...n},r)=>u.jsx(tp,{ref:r,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),...n,children:u.jsx(_P,{className:"relative flex-1 rounded-full bg-border"})}));op.displayName=tp.displayName;var W5=[" ","Enter","ArrowUp","ArrowDown"],U5=[" ","Enter"],Lo="Select",[Ai,Mi,K5]=rn(Lo),[Mr,C3]=De(Lo,[K5,Jt]),Oi=Jt(),[Y5,Pn]=Mr(Lo),[X5,Z5]=Mr(Lo),OP=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:a,value:i,defaultValue:s,onValueChange:l,dir:c,name:p,autoComplete:d,disabled:m,required:b,form:g}=e,h=Oi(t),[v,y]=f.useState(null),[w,x]=f.useState(null),[S,_]=f.useState(!1),P=Ot(c),[C=!1,M]=$e({prop:r,defaultProp:o,onChange:a}),[N,$]=$e({prop:i,defaultProp:s,onChange:l}),D=f.useRef(null),F=v?g||!!v.closest("form"):!0,[A,k]=f.useState(new Set),L=Array.from(A).map(I=>I.props.value).join(";");return u.jsx(vr,{...h,children:u.jsxs(Y5,{required:b,scope:t,trigger:v,onTriggerChange:y,valueNode:w,onValueNodeChange:x,valueNodeHasChildren:S,onValueNodeHasChildrenChange:_,contentId:Ge(),value:N,onValueChange:$,open:C,onOpenChange:M,dir:P,triggerPointerDownPosRef:D,disabled:m,children:[u.jsx(Ai.Provider,{scope:t,children:u.jsx(X5,{scope:e.__scopeSelect,onNativeOptionAdd:f.useCallback(I=>{k(W=>new Set(W).add(I))},[]),onNativeOptionRemove:f.useCallback(I=>{k(W=>{const V=new Set(W);return V.delete(I),V})},[]),children:n})}),F?u.jsxs(oT,{"aria-hidden":!0,required:b,tabIndex:-1,name:p,autoComplete:d,value:N,onChange:I=>$(I.target.value),disabled:m,form:g,children:[N===void 0?u.jsx("option",{value:""}):null,Array.from(A)]},L):null]})})};OP.displayName=Lo;var IP="SelectTrigger",jP=f.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,a=Oi(n),i=Pn(IP,n),s=i.disabled||r,l=fe(t,i.onTriggerChange),c=Mi(n),p=f.useRef("touch"),[d,m,b]=aT(h=>{const v=c().filter(x=>!x.disabled),y=v.find(x=>x.value===i.value),w=iT(v,h,y);w!==void 0&&i.onValueChange(w.value)}),g=h=>{s||(i.onOpenChange(!0),b()),h&&(i.triggerPointerDownPosRef.current={x:Math.round(h.pageX),y:Math.round(h.pageY)})};return u.jsx(br,{asChild:!0,...a,children:u.jsx(Z.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":rT(i.value)?"":void 0,...o,ref:l,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=d.current!=="";!(h.ctrlKey||h.altKey||h.metaKey)&&h.key.length===1&&m(h.key),!(v&&h.key===" ")&&W5.includes(h.key)&&(g(),h.preventDefault())})})})});jP.displayName=IP;var DP="SelectValue",kP=f.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:a,placeholder:i="",...s}=e,l=Pn(DP,n),{onValueNodeHasChildrenChange:c}=l,p=a!==void 0,d=fe(t,l.onValueNodeChange);return Be(()=>{c(p)},[c,p]),u.jsx(Z.span,{...s,ref:d,style:{pointerEvents:"none"},children:rT(l.value)?u.jsx(u.Fragment,{children:i}):a})});kP.displayName=DP;var J5="SelectIcon",$P=f.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return u.jsx(Z.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});$P.displayName=J5;var Q5="SelectPortal",LP=e=>u.jsx(Mn,{asChild:!0,...e});LP.displayName=Q5;var Wn="SelectContent",FP=f.forwardRef((e,t)=>{const n=Pn(Wn,e.__scopeSelect),[r,o]=f.useState();if(Be(()=>{o(new DocumentFragment)},[]),!n.open){const a=r;return a?kr.createPortal(u.jsx(BP,{scope:e.__scopeSelect,children:u.jsx(Ai.Slot,{scope:e.__scopeSelect,children:u.jsx("div",{children:e.children})})}),a):null}return u.jsx(zP,{...e,ref:t})});FP.displayName=Wn;var Ht=10,[BP,Tn]=Mr(Wn),eq="SelectContentImpl",zP=f.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:i,side:s,sideOffset:l,align:c,alignOffset:p,arrowPadding:d,collisionBoundary:m,collisionPadding:b,sticky:g,hideWhenDetached:h,avoidCollisions:v,...y}=e,w=Pn(Wn,n),[x,S]=f.useState(null),[_,P]=f.useState(null),C=fe(t,H=>S(H)),[M,N]=f.useState(null),[$,D]=f.useState(null),F=Mi(n),[A,k]=f.useState(!1),L=f.useRef(!1);f.useEffect(()=>{if(x)return sa(x)},[x]),Qo();const I=f.useCallback(H=>{const[K,...re]=F().map(G=>G.ref.current),[Q]=re.slice(-1),oe=document.activeElement;for(const G of H)if(G===oe||(G==null||G.scrollIntoView({block:"nearest"}),G===K&&_&&(_.scrollTop=0),G===Q&&_&&(_.scrollTop=_.scrollHeight),G==null||G.focus(),document.activeElement!==oe))return},[F,_]),W=f.useCallback(()=>I([M,x]),[I,M,x]);f.useEffect(()=>{A&&W()},[A,W]);const{onOpenChange:V,triggerPointerDownPosRef:q}=w;f.useEffect(()=>{if(x){let H={x:0,y:0};const K=Q=>{var oe,G;H={x:Math.abs(Math.round(Q.pageX)-(((oe=q.current)==null?void 0:oe.x)??0)),y:Math.abs(Math.round(Q.pageY)-(((G=q.current)==null?void 0:G.y)??0))}},re=Q=>{H.x<=10&&H.y<=10?Q.preventDefault():x.contains(Q.target)||V(!1),document.removeEventListener("pointermove",K),q.current=null};return q.current!==null&&(document.addEventListener("pointermove",K),document.addEventListener("pointerup",re,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",K),document.removeEventListener("pointerup",re,{capture:!0})}}},[x,V,q]),f.useEffect(()=>{const H=()=>V(!1);return window.addEventListener("blur",H),window.addEventListener("resize",H),()=>{window.removeEventListener("blur",H),window.removeEventListener("resize",H)}},[V]);const[ae,J]=aT(H=>{const K=F().filter(oe=>!oe.disabled),re=K.find(oe=>oe.ref.current===document.activeElement),Q=iT(K,H,re);Q&&setTimeout(()=>Q.ref.current.focus())}),ne=f.useCallback((H,K,re)=>{const Q=!L.current&&!re;(w.value!==void 0&&w.value===K||Q)&&(N(H),Q&&(L.current=!0))},[w.value]),z=f.useCallback(()=>x==null?void 0:x.focus(),[x]),U=f.useCallback((H,K,re)=>{const Q=!L.current&&!re;(w.value!==void 0&&w.value===K||Q)&&D(H)},[w.value]),ee=r==="popper"?ap:qP,Y=ee===ap?{side:s,sideOffset:l,align:c,alignOffset:p,arrowPadding:d,collisionBoundary:m,collisionPadding:b,sticky:g,hideWhenDetached:h,avoidCollisions:v}:{};return u.jsx(BP,{scope:n,content:x,viewport:_,onViewportChange:P,itemRefCallback:ne,selectedItem:M,onItemLeave:z,itemTextRefCallback:U,focusSelectedItem:W,selectedItemText:$,position:r,isPositioned:A,searchRef:ae,children:u.jsx(Hr,{as:ct,allowPinchZoom:!0,children:u.jsx(qr,{asChild:!0,trapped:w.open,onMountAutoFocus:H=>{H.preventDefault()},onUnmountAutoFocus:B(o,H=>{var K;(K=w.trigger)==null||K.focus({preventScroll:!0}),H.preventDefault()}),children:u.jsx(sn,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:H=>H.preventDefault(),onDismiss:()=>w.onOpenChange(!1),children:u.jsx(ee,{role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:H=>H.preventDefault(),...y,...Y,onPlaced:()=>k(!0),ref:C,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:B(y.onKeyDown,H=>{const K=H.ctrlKey||H.altKey||H.metaKey;if(H.key==="Tab"&&H.preventDefault(),!K&&H.key.length===1&&J(H.key),["ArrowUp","ArrowDown","Home","End"].includes(H.key)){let Q=F().filter(oe=>!oe.disabled).map(oe=>oe.ref.current);if(["ArrowUp","End"].includes(H.key)&&(Q=Q.slice().reverse()),["ArrowUp","ArrowDown"].includes(H.key)){const oe=H.target,G=Q.indexOf(oe);Q=Q.slice(G+1)}setTimeout(()=>I(Q)),H.preventDefault()}})})})})})})});zP.displayName=eq;var tq="SelectItemAlignedPosition",qP=f.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,a=Pn(Wn,n),i=Tn(Wn,n),[s,l]=f.useState(null),[c,p]=f.useState(null),d=fe(t,C=>p(C)),m=Mi(n),b=f.useRef(!1),g=f.useRef(!0),{viewport:h,selectedItem:v,selectedItemText:y,focusSelectedItem:w}=i,x=f.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&c&&h&&v&&y){const C=a.trigger.getBoundingClientRect(),M=c.getBoundingClientRect(),N=a.valueNode.getBoundingClientRect(),$=y.getBoundingClientRect();if(a.dir!=="rtl"){const oe=$.left-M.left,G=N.left-oe,ie=C.left-G,j=C.width+ie,te=Math.max(j,M.width),me=window.innerWidth-Ht,he=$o(G,[Ht,Math.max(Ht,me-te)]);s.style.minWidth=j+"px",s.style.left=he+"px"}else{const oe=M.right-$.right,G=window.innerWidth-N.right-oe,ie=window.innerWidth-C.right-G,j=C.width+ie,te=Math.max(j,M.width),me=window.innerWidth-Ht,he=$o(G,[Ht,Math.max(Ht,me-te)]);s.style.minWidth=j+"px",s.style.right=he+"px"}const D=m(),F=window.innerHeight-Ht*2,A=h.scrollHeight,k=window.getComputedStyle(c),L=parseInt(k.borderTopWidth,10),I=parseInt(k.paddingTop,10),W=parseInt(k.borderBottomWidth,10),V=parseInt(k.paddingBottom,10),q=L+I+A+V+W,ae=Math.min(v.offsetHeight*5,q),J=window.getComputedStyle(h),ne=parseInt(J.paddingTop,10),z=parseInt(J.paddingBottom,10),U=C.top+C.height/2-Ht,ee=F-U,Y=v.offsetHeight/2,H=v.offsetTop+Y,K=L+I+H,re=q-K;if(K<=U){const oe=D.length>0&&v===D[D.length-1].ref.current;s.style.bottom="0px";const G=c.clientHeight-h.offsetTop-h.offsetHeight,ie=Math.max(ee,Y+(oe?z:0)+G+W),j=K+ie;s.style.height=j+"px"}else{const oe=D.length>0&&v===D[0].ref.current;s.style.top="0px";const ie=Math.max(U,L+h.offsetTop+(oe?ne:0)+Y)+re;s.style.height=ie+"px",h.scrollTop=K-U+h.offsetTop}s.style.margin=`${Ht}px 0`,s.style.minHeight=ae+"px",s.style.maxHeight=F+"px",r==null||r(),requestAnimationFrame(()=>b.current=!0)}},[m,a.trigger,a.valueNode,s,c,h,v,y,a.dir,r]);Be(()=>x(),[x]);const[S,_]=f.useState();Be(()=>{c&&_(window.getComputedStyle(c).zIndex)},[c]);const P=f.useCallback(C=>{C&&g.current===!0&&(x(),w==null||w(),g.current=!1)},[x,w]);return u.jsx(rq,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:b,onScrollButtonChange:P,children:u.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:u.jsx(Z.div,{...o,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});qP.displayName=tq;var nq="SelectPopperPosition",ap=f.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Ht,...a}=e,i=Oi(n);return u.jsx(fo,{...i,...a,ref:t,align:r,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)"}})});ap.displayName=nq;var[rq,ip]=Mr(Wn,{}),sp="SelectViewport",HP=f.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,a=Tn(sp,n),i=ip(sp,n),s=fe(t,a.onViewportChange),l=f.useRef(0);return u.jsxs(u.Fragment,{children:[u.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:r}),u.jsx(Ai.Slot,{scope:n,children:u.jsx(Z.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:B(o.onScroll,c=>{const p=c.currentTarget,{contentWrapper:d,shouldExpandOnScrollRef:m}=i;if(m!=null&&m.current&&d){const b=Math.abs(l.current-p.scrollTop);if(b>0){const g=window.innerHeight-Ht*2,h=parseFloat(d.style.minHeight),v=parseFloat(d.style.height),y=Math.max(h,v);if(y<g){const w=y+b,x=Math.min(g,w),S=w-x;d.style.height=x+"px",d.style.bottom==="0px"&&(p.scrollTop=S>0?S:0,d.style.justifyContent="flex-end")}}}l.current=p.scrollTop})})})]})});HP.displayName=sp;var VP="SelectGroup",[oq,aq]=Mr(VP),GP=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Ge();return u.jsx(oq,{scope:n,id:o,children:u.jsx(Z.div,{role:"group","aria-labelledby":o,...r,ref:t})})});GP.displayName=VP;var WP="SelectLabel",UP=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=aq(WP,n);return u.jsx(Z.div,{id:o.id,...r,ref:t})});UP.displayName=WP;var Ii="SelectItem",[iq,KP]=Mr(Ii),YP=f.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:a,...i}=e,s=Pn(Ii,n),l=Tn(Ii,n),c=s.value===r,[p,d]=f.useState(a??""),[m,b]=f.useState(!1),g=fe(t,w=>{var x;return(x=l.itemRefCallback)==null?void 0:x.call(l,w,r,o)}),h=Ge(),v=f.useRef("touch"),y=()=>{o||(s.onValueChange(r),s.onOpenChange(!1))};if(r==="")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 u.jsx(iq,{scope:n,value:r,disabled:o,textId:h,isSelected:c,onItemTextChange:f.useCallback(w=>{d(x=>x||((w==null?void 0:w.textContent)??"").trim())},[]),children:u.jsx(Ai.ItemSlot,{scope:n,value:r,disabled:o,textValue:p,children:u.jsx(Z.div,{role:"option","aria-labelledby":h,"data-highlighted":m?"":void 0,"aria-selected":c&&m,"data-state":c?"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,w=>{v.current=w.pointerType}),onPointerMove:B(i.onPointerMove,w=>{var x;v.current=w.pointerType,o?(x=l.onItemLeave)==null||x.call(l):v.current==="mouse"&&w.currentTarget.focus({preventScroll:!0})}),onPointerLeave:B(i.onPointerLeave,w=>{var x;w.currentTarget===document.activeElement&&((x=l.onItemLeave)==null||x.call(l))}),onKeyDown:B(i.onKeyDown,w=>{var S;((S=l.searchRef)==null?void 0:S.current)!==""&&w.key===" "||(U5.includes(w.key)&&y(),w.key===" "&&w.preventDefault())})})})})});YP.displayName=Ii;var Fo="SelectItemText",XP=f.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...a}=e,i=Pn(Fo,n),s=Tn(Fo,n),l=KP(Fo,n),c=Z5(Fo,n),[p,d]=f.useState(null),m=fe(t,y=>d(y),l.onItemTextChange,y=>{var w;return(w=s.itemTextRefCallback)==null?void 0:w.call(s,y,l.value,l.disabled)}),b=p==null?void 0:p.textContent,g=f.useMemo(()=>u.jsx("option",{value:l.value,disabled:l.disabled,children:b},l.value),[l.disabled,l.value,b]),{onNativeOptionAdd:h,onNativeOptionRemove:v}=c;return Be(()=>(h(g),()=>v(g)),[h,v,g]),u.jsxs(u.Fragment,{children:[u.jsx(Z.span,{id:l.textId,...a,ref:m}),l.isSelected&&i.valueNode&&!i.valueNodeHasChildren?kr.createPortal(a.children,i.valueNode):null]})});XP.displayName=Fo;var ZP="SelectItemIndicator",JP=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return KP(ZP,n).isSelected?u.jsx(Z.span,{"aria-hidden":!0,...r,ref:t}):null});JP.displayName=ZP;var lp="SelectScrollUpButton",QP=f.forwardRef((e,t)=>{const n=Tn(lp,e.__scopeSelect),r=ip(lp,e.__scopeSelect),[o,a]=f.useState(!1),i=fe(t,r.onScrollButtonChange);return Be(()=>{if(n.viewport&&n.isPositioned){let s=function(){const c=l.scrollTop>0;a(c)};const l=n.viewport;return s(),l.addEventListener("scroll",s),()=>l.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),o?u.jsx(tT,{...e,ref:i,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=n;s&&l&&(s.scrollTop=s.scrollTop-l.offsetHeight)}}):null});QP.displayName=lp;var cp="SelectScrollDownButton",eT=f.forwardRef((e,t)=>{const n=Tn(cp,e.__scopeSelect),r=ip(cp,e.__scopeSelect),[o,a]=f.useState(!1),i=fe(t,r.onScrollButtonChange);return Be(()=>{if(n.viewport&&n.isPositioned){let s=function(){const c=l.scrollHeight-l.clientHeight,p=Math.ceil(l.scrollTop)<c;a(p)};const l=n.viewport;return s(),l.addEventListener("scroll",s),()=>l.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),o?u.jsx(tT,{...e,ref:i,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=n;s&&l&&(s.scrollTop=s.scrollTop+l.offsetHeight)}}):null});eT.displayName=cp;var tT=f.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,a=Tn("SelectScrollButton",n),i=f.useRef(null),s=Mi(n),l=f.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return f.useEffect(()=>()=>l(),[l]),Be(()=>{var p;const c=s().find(d=>d.ref.current===document.activeElement);(p=c==null?void 0:c.ref.current)==null||p.scrollIntoView({block:"nearest"})},[s]),u.jsx(Z.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:B(o.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(r,50))}),onPointerMove:B(o.onPointerMove,()=>{var c;(c=a.onItemLeave)==null||c.call(a),i.current===null&&(i.current=window.setInterval(r,50))}),onPointerLeave:B(o.onPointerLeave,()=>{l()})})}),sq="SelectSeparator",nT=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return u.jsx(Z.div,{"aria-hidden":!0,...r,ref:t})});nT.displayName=sq;var up="SelectArrow",lq=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Oi(n),a=Pn(up,n),i=Tn(up,n);return a.open&&i.position==="popper"?u.jsx(po,{...o,...r,ref:t}):null});lq.displayName=up;function rT(e){return e===""||e===void 0}var oT=f.forwardRef((e,t)=>{const{value:n,...r}=e,o=f.useRef(null),a=fe(t,o),i=fr(n);return f.useEffect(()=>{const s=o.current,l=window.HTMLSelectElement.prototype,p=Object.getOwnPropertyDescriptor(l,"value").set;if(i!==n&&p){const d=new Event("change",{bubbles:!0});p.call(s,n),s.dispatchEvent(d)}},[i,n]),u.jsx(Ao,{asChild:!0,children:u.jsx("select",{...r,ref:a,defaultValue:n})})});oT.displayName="BubbleSelect";function aT(e){const t=Re(e),n=f.useRef(""),r=f.useRef(0),o=f.useCallback(i=>{const s=n.current+i;t(s),function l(c){n.current=c,window.clearTimeout(r.current),c!==""&&(r.current=window.setTimeout(()=>l(""),1e3))}(s)},[t]),a=f.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return f.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,a]}function iT(e,t,n){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let i=cq(e,Math.max(a,0));o.length===1&&(i=i.filter(c=>c!==n));const l=i.find(c=>c.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function cq(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var uq=OP,sT=jP,dq=kP,fq=$P,pq=LP,lT=FP,mq=HP,hq=GP,cT=UP,uT=YP,gq=XP,vq=JP,dT=QP,fT=eT,pT=nT;const bq=uq,yq=hq,wq=dq,mT=f.forwardRef(({className:e,children:t,...n},r)=>u.jsxs(sT,{ref:r,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),...n,children:[t,u.jsx(fq,{asChild:!0,children:u.jsx(zr,{className:"h-4 w-4 opacity-50"})})]}));mT.displayName=sT.displayName;const dp=f.forwardRef(({className:e,...t},n)=>u.jsx(dT,{ref:n,className:O("flex cursor-default items-center justify-center py-1",e),...t,children:u.jsx(A1,{className:"h-4 w-4"})}));dp.displayName=dT.displayName;const fp=f.forwardRef(({className:e,...t},n)=>u.jsx(fT,{ref:n,className:O("flex cursor-default items-center justify-center py-1",e),...t,children:u.jsx(zr,{className:"h-4 w-4"})}));fp.displayName=fT.displayName;const hT=f.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>u.jsx(pq,{children:u.jsxs(lT,{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]",n==="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:n,...r,children:[u.jsx(dp,{}),u.jsx(mq,{className:O("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),u.jsx(fp,{})]})}));hT.displayName=lT.displayName;const gT=f.forwardRef(({className:e,...t},n)=>u.jsx(cT,{ref:n,className:O("px-2 py-1.5 text-sm font-semibold",e),...t}));gT.displayName=cT.displayName;const vT=f.forwardRef(({className:e,children:t,...n},r)=>u.jsxs(uT,{ref:r,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),...n,children:[u.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:u.jsx(vq,{children:u.jsx(Yn,{className:"h-4 w-4"})})}),u.jsx(gq,{children:t})]}));vT.displayName=uT.displayName;const bT=f.forwardRef(({className:e,...t},n)=>u.jsx(pT,{ref:n,className:O("-mx-1 my-1 h-px bg-muted",e),...t}));bT.displayName=pT.displayName;var xq="Separator",yT="horizontal",Sq=["horizontal","vertical"],wT=f.forwardRef((e,t)=>{const{decorative:n,orientation:r=yT,...o}=e,a=Cq(r)?r:yT,s=n?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return u.jsx(Z.div,{"data-orientation":a,...s,...o,ref:t})});wT.displayName=xq;function Cq(e){return Sq.includes(e)}var xT=wT;const pp=f.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},o)=>u.jsx(xT,{ref:o,decorative:n,orientation:t,className:O("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...r}));pp.displayName=xT.displayName;const ST=ca,_q=ua,Eq=In,CT=da,mp=f.forwardRef(({className:e,...t},n)=>u.jsx(rr,{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:n}));mp.displayName=rr.displayName;const Pq=cn("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"}}),hp=f.forwardRef(({side:e="right",className:t,children:n,...r},o)=>u.jsxs(CT,{children:[u.jsx(mp,{}),u.jsxs(or,{ref:o,className:O(Pq({side:e}),t),...r,children:[u.jsxs(In,{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:[u.jsx(as,{className:"h-4 w-4"}),u.jsx("span",{className:"sr-only",children:"Close"})]}),n]})]}));hp.displayName=or.displayName;const gp=({className:e,...t})=>u.jsx("div",{className:O("flex flex-col space-y-2 text-center sm:text-left",e),...t});gp.displayName="SheetHeader";const _T=({className:e,...t})=>u.jsx("div",{className:O("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});_T.displayName="SheetFooter";const vp=f.forwardRef(({className:e,...t},n)=>u.jsx(ar,{ref:n,className:O("text-lg font-semibold text-foreground",e),...t}));vp.displayName=ar.displayName;const bp=f.forwardRef(({className:e,...t},n)=>u.jsx(ir,{ref:n,className:O("text-sm text-muted-foreground",e),...t}));bp.displayName=ir.displayName;const yp=768;function Tq(){const[e,t]=f.useState(void 0);return f.useEffect(()=>{const n=window.matchMedia(`(max-width: ${yp-1}px)`),r=()=>{t(window.innerWidth<yp)};return n.addEventListener("change",r),t(window.innerWidth<yp),()=>n.removeEventListener("change",r)},[]),!!e}function wp({className:e,...t}){return u.jsx("div",{className:O("animate-pulse rounded-md bg-primary/10",e),...t})}var[ji,_3]=De("Tooltip",[Jt]),Di=Jt(),ET="TooltipProvider",Nq=700,xp="tooltip.open",[Rq,Sp]=ji(ET),PT=e=>{const{__scopeTooltip:t,delayDuration:n=Nq,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,[i,s]=f.useState(!0),l=f.useRef(!1),c=f.useRef(0);return f.useEffect(()=>{const p=c.current;return()=>window.clearTimeout(p)},[]),u.jsx(Rq,{scope:t,isOpenDelayed:i,delayDuration:n,onOpen:f.useCallback(()=>{window.clearTimeout(c.current),s(!1)},[]),onClose:f.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>s(!0),r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:f.useCallback(p=>{l.current=p},[]),disableHoverableContent:o,children:a})};PT.displayName=ET;var ki="Tooltip",[Aq,Bo]=ji(ki),TT=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:a,disableHoverableContent:i,delayDuration:s}=e,l=Sp(ki,e.__scopeTooltip),c=Di(t),[p,d]=f.useState(null),m=Ge(),b=f.useRef(0),g=i??l.disableHoverableContent,h=s??l.delayDuration,v=f.useRef(!1),[y=!1,w]=$e({prop:r,defaultProp:o,onChange:C=>{C?(l.onOpen(),document.dispatchEvent(new CustomEvent(xp))):l.onClose(),a==null||a(C)}}),x=f.useMemo(()=>y?v.current?"delayed-open":"instant-open":"closed",[y]),S=f.useCallback(()=>{window.clearTimeout(b.current),b.current=0,v.current=!1,w(!0)},[w]),_=f.useCallback(()=>{window.clearTimeout(b.current),b.current=0,w(!1)},[w]),P=f.useCallback(()=>{window.clearTimeout(b.current),b.current=window.setTimeout(()=>{v.current=!0,w(!0),b.current=0},h)},[h,w]);return f.useEffect(()=>()=>{b.current&&(window.clearTimeout(b.current),b.current=0)},[]),u.jsx(vr,{...c,children:u.jsx(Aq,{scope:t,contentId:m,open:y,stateAttribute:x,trigger:p,onTriggerChange:d,onTriggerEnter:f.useCallback(()=>{l.isOpenDelayed?P():S()},[l.isOpenDelayed,P,S]),onTriggerLeave:f.useCallback(()=>{g?_():(window.clearTimeout(b.current),b.current=0)},[_,g]),onOpen:S,onClose:_,disableHoverableContent:g,children:n})})};TT.displayName=ki;var Cp="TooltipTrigger",NT=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Bo(Cp,n),a=Sp(Cp,n),i=Di(n),s=f.useRef(null),l=fe(t,s,o.onTriggerChange),c=f.useRef(!1),p=f.useRef(!1),d=f.useCallback(()=>c.current=!1,[]);return f.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),u.jsx(br,{asChild:!0,...i,children:u.jsx(Z.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,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,()=>{c.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:B(e.onFocus,()=>{c.current||o.onOpen()}),onBlur:B(e.onBlur,o.onClose),onClick:B(e.onClick,o.onClose)})})});NT.displayName=Cp;var _p="TooltipPortal",[Mq,Oq]=ji(_p,{forceMount:void 0}),RT=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,a=Bo(_p,t);return u.jsx(Mq,{scope:t,forceMount:n,children:u.jsx(Le,{present:n||a.open,children:u.jsx(Mn,{asChild:!0,container:o,children:r})})})};RT.displayName=_p;var Or="TooltipContent",AT=f.forwardRef((e,t)=>{const n=Oq(Or,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,i=Bo(Or,e.__scopeTooltip);return u.jsx(Le,{present:r||i.open,children:i.disableHoverableContent?u.jsx(MT,{side:o,...a,ref:t}):u.jsx(Iq,{side:o,...a,ref:t})})}),Iq=f.forwardRef((e,t)=>{const n=Bo(Or,e.__scopeTooltip),r=Sp(Or,e.__scopeTooltip),o=f.useRef(null),a=fe(t,o),[i,s]=f.useState(null),{trigger:l,onClose:c}=n,p=o.current,{onPointerInTransitChange:d}=r,m=f.useCallback(()=>{s(null),d(!1)},[d]),b=f.useCallback((g,h)=>{const v=g.currentTarget,y={x:g.clientX,y:g.clientY},w=$q(y,v.getBoundingClientRect()),x=Lq(y,w),S=Fq(h.getBoundingClientRect()),_=zq([...x,...S]);s(_),d(!0)},[d]);return f.useEffect(()=>()=>m(),[m]),f.useEffect(()=>{if(l&&p){const g=v=>b(v,p),h=v=>b(v,l);return l.addEventListener("pointerleave",g),p.addEventListener("pointerleave",h),()=>{l.removeEventListener("pointerleave",g),p.removeEventListener("pointerleave",h)}}},[l,p,b,m]),f.useEffect(()=>{if(i){const g=h=>{const v=h.target,y={x:h.clientX,y:h.clientY},w=(l==null?void 0:l.contains(v))||(p==null?void 0:p.contains(v)),x=!Bq(y,i);w?m():x&&(m(),c())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[l,p,i,c,m]),u.jsx(MT,{...e,ref:a})}),[jq,Dq]=ji(ki,{isInside:!1}),MT=f.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:i,...s}=e,l=Bo(Or,n),c=Di(n),{onClose:p}=l;return f.useEffect(()=>(document.addEventListener(xp,p),()=>document.removeEventListener(xp,p)),[p]),f.useEffect(()=>{if(l.trigger){const d=m=>{const b=m.target;b!=null&&b.contains(l.trigger)&&p()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,p]),u.jsx(sn,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:d=>d.preventDefault(),onDismiss:p,children:u.jsxs(fo,{"data-state":l.stateAttribute,...c,...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:[u.jsx(Ui,{children:r}),u.jsx(jq,{scope:n,isInside:!0,children:u.jsx(v_,{id:l.contentId,role:"tooltip",children:o||r})})]})})});AT.displayName=Or;var OT="TooltipArrow",kq=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Di(n);return Dq(OT,n).isInside?null:u.jsx(po,{...o,...r,ref:t})});kq.displayName=OT;function $q(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,o,a)){case a:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Lq(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function Fq(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function Bq(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const s=t[a].x,l=t[a].y,c=t[i].x,p=t[i].y;l>r!=p>r&&n<(c-s)*(r-l)/(p-l)+s&&(o=!o)}return o}function zq(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),qq(t)}function qq(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const a=t[t.length-1],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 n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const a=n[n.length-1],i=n[n.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Hq=PT,Vq=TT,Gq=NT,Wq=RT,IT=AT;const jT=Hq,DT=Vq,kT=Gq,Ep=f.forwardRef(({className:e,sideOffset:t=4,...n},r)=>u.jsx(Wq,{children:u.jsx(IT,{ref:r,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),...n})}));Ep.displayName=IT.displayName;const Uq="sidebar_state",Kq=60*60*24*7,Yq="16rem",Xq="18rem",Zq="3rem",Jq="b",$T=f.createContext(null);function zo(){const e=f.useContext($T);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const LT=f.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:o,children:a,...i},s)=>{const l=Tq(),[c,p]=f.useState(!1),[d,m]=f.useState(e),b=t??d,g=f.useCallback(w=>{const x=typeof w=="function"?w(b):w;n?n(x):m(x),document.cookie=`${Uq}=${x}; path=/; max-age=${Kq}`},[n,b]),h=f.useCallback(()=>l?p(w=>!w):g(w=>!w),[l,g,p]);f.useEffect(()=>{const w=x=>{x.key===Jq&&(x.metaKey||x.ctrlKey)&&(x.preventDefault(),h())};return window.addEventListener("keydown",w),()=>window.removeEventListener("keydown",w)},[h]);const v=b?"expanded":"collapsed",y=f.useMemo(()=>({state:v,open:b,setOpen:g,isMobile:l,openMobile:c,setOpenMobile:p,toggleSidebar:h}),[v,b,g,l,c,p,h]);return u.jsx($T.Provider,{value:y,children:u.jsx(jT,{delayDuration:0,children:u.jsx("div",{style:{"--sidebar-width":Yq,"--sidebar-width-icon":Zq,...o},className:O("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",r),ref:s,...i,children:a})})})});LT.displayName="SidebarProvider";const FT=f.forwardRef(({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:r,children:o,...a},i)=>{const{isMobile:s,state:l,openMobile:c,setOpenMobile:p}=zo();return n==="none"?u.jsx("div",{className:O("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",r),ref:i,...a,children:o}):s?u.jsx(ST,{open:c,onOpenChange:p,...a,children:u.jsxs(hp,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":Xq},side:e,children:[u.jsxs(gp,{className:"sr-only",children:[u.jsx(vp,{children:"Sidebar"}),u.jsx(bp,{children:"Displays the mobile sidebar."})]}),u.jsx("div",{className:"flex h-full w-full flex-col",children:o})]})}):u.jsxs("div",{ref:i,className:"group peer hidden text-sidebar-foreground md:block","data-state":l,"data-collapsible":l==="collapsed"?n:"","data-variant":t,"data-side":e,children:[u.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]")}),u.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",r),...a,children:u.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})})]})});FT.displayName="Sidebar";const BT=f.forwardRef(({className:e,onClick:t,...n},r)=>{const{toggleSidebar:o}=zo();return u.jsxs(_t,{ref:r,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:O("h-7 w-7",e),onClick:a=>{t==null||t(a),o()},...n,children:[u.jsx(j1,{}),u.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});BT.displayName="SidebarTrigger";const zT=f.forwardRef(({className:e,...t},n)=>{const{toggleSidebar:r}=zo();return u.jsx("button",{ref:n,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,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})});zT.displayName="SidebarRail";const qT=f.forwardRef(({className:e,...t},n)=>u.jsx("main",{ref:n,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}));qT.displayName="SidebarInset";const HT=f.forwardRef(({className:e,...t},n)=>u.jsx(Ro,{ref:n,"data-sidebar":"input",className:O("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));HT.displayName="SidebarInput";const VT=f.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,"data-sidebar":"header",className:O("flex flex-col gap-2 p-2",e),...t}));VT.displayName="SidebarHeader";const GT=f.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,"data-sidebar":"footer",className:O("flex flex-col gap-2 p-2",e),...t}));GT.displayName="SidebarFooter";const WT=f.forwardRef(({className:e,...t},n)=>u.jsx(pp,{ref:n,"data-sidebar":"separator",className:O("mx-2 w-auto bg-sidebar-border",e),...t}));WT.displayName="SidebarSeparator";const UT=f.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,"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}));UT.displayName="SidebarContent";const KT=f.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,"data-sidebar":"group",className:O("relative flex w-full min-w-0 flex-col p-2",e),...t}));KT.displayName="SidebarGroup";const YT=f.forwardRef(({className:e,asChild:t=!1,...n},r)=>{const o=t?ct:"div";return u.jsx(o,{ref:r,"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),...n})});YT.displayName="SidebarGroupLabel";const XT=f.forwardRef(({className:e,asChild:t=!1,...n},r)=>{const o=t?ct:"button";return u.jsx(o,{ref:r,"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),...n})});XT.displayName="SidebarGroupAction";const ZT=f.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,"data-sidebar":"group-content",className:O("w-full text-sm",e),...t}));ZT.displayName="SidebarGroupContent";const JT=f.forwardRef(({className:e,...t},n)=>u.jsx("ul",{ref:n,"data-sidebar":"menu",className:O("flex w-full min-w-0 flex-col gap-1",e),...t}));JT.displayName="SidebarMenu";const QT=f.forwardRef(({className:e,...t},n)=>u.jsx("li",{ref:n,"data-sidebar":"menu-item",className:O("group/menu-item relative",e),...t}));QT.displayName="SidebarMenuItem";const Qq=cn("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"}}),eN=f.forwardRef(({asChild:e=!1,isActive:t=!1,variant:n="default",size:r="default",tooltip:o,className:a,...i},s)=>{const l=e?ct:"button",{isMobile:c,state:p}=zo(),d=u.jsx(l,{ref:s,"data-sidebar":"menu-button","data-size":r,"data-active":t,className:O(Qq({variant:n,size:r}),a),...i});return o?(typeof o=="string"&&(o={children:o}),u.jsxs(DT,{children:[u.jsx(kT,{asChild:!0,children:d}),u.jsx(Ep,{side:"right",align:"center",hidden:p!=="collapsed"||c,...o})]})):d});eN.displayName="SidebarMenuButton";const tN=f.forwardRef(({className:e,asChild:t=!1,showOnHover:n=!1,...r},o)=>{const a=t?ct:"button";return u.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",n&&"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),...r})});tN.displayName="SidebarMenuAction";const nN=f.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,"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}));nN.displayName="SidebarMenuBadge";const rN=f.forwardRef(({className:e,showIcon:t=!1,...n},r)=>{const o=f.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return u.jsxs("div",{ref:r,"data-sidebar":"menu-skeleton",className:O("flex h-8 items-center gap-2 rounded-md px-2",e),...n,children:[t&&u.jsx(wp,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),u.jsx(wp,{className:"h-4 max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":o}})]})});rN.displayName="SidebarMenuSkeleton";const oN=f.forwardRef(({className:e,...t},n)=>u.jsx("ul",{ref:n,"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}));oN.displayName="SidebarMenuSub";const aN=f.forwardRef(({...e},t)=>u.jsx("li",{ref:t,...e}));aN.displayName="SidebarMenuSubItem";const iN=f.forwardRef(({asChild:e=!1,size:t="md",isActive:n,className:r,...o},a)=>{const i=e?ct:"a";return u.jsx(i,{ref:a,"data-sidebar":"menu-sub-button","data-size":t,"data-active":n,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",r),...o})});iN.displayName="SidebarMenuSubButton";var sN=["PageUp","PageDown"],lN=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],cN={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},Ir="Slider",[Pp,eH,tH]=rn(Ir),[uN,E3]=De(Ir,[tH]),[nH,$i]=uN(Ir),dN=f.forwardRef((e,t)=>{const{name:n,min:r=0,max:o=100,step:a=1,orientation:i="horizontal",disabled:s=!1,minStepsBetweenThumbs:l=0,defaultValue:c=[r],value:p,onValueChange:d=()=>{},onValueCommit:m=()=>{},inverted:b=!1,form:g,...h}=e,v=f.useRef(new Set),y=f.useRef(0),x=i==="horizontal"?rH:oH,[S=[],_]=$e({prop:p,defaultProp:c,onChange:D=>{var A;(A=[...v.current][y.current])==null||A.focus(),d(D)}}),P=f.useRef(S);function C(D){const F=cH(S,D);$(D,F)}function M(D){$(D,y.current)}function N(){const D=P.current[y.current];S[y.current]!==D&&m(S)}function $(D,F,{commit:A}={commit:!1}){const k=pH(a),L=mH(Math.round((D-r)/a)*a+r,k),I=$o(L,[r,o]);_((W=[])=>{const V=sH(W,I,F);if(fH(V,l*a)){y.current=V.indexOf(I);const q=String(V)!==String(W);return q&&A&&m(V),q?V:W}else return W})}return u.jsx(nH,{scope:e.__scopeSlider,name:n,disabled:s,min:r,max:o,valueIndexToChangeRef:y,thumbs:v.current,values:S,orientation:i,form:g,children:u.jsx(Pp.Provider,{scope:e.__scopeSlider,children:u.jsx(Pp.Slot,{scope:e.__scopeSlider,children:u.jsx(x,{"aria-disabled":s,"data-disabled":s?"":void 0,...h,ref:t,onPointerDown:B(h.onPointerDown,()=>{s||(P.current=S)}),min:r,max:o,inverted:b,onSlideStart:s?void 0:C,onSlideMove:s?void 0:M,onSlideEnd:s?void 0:N,onHomeKeyDown:()=>!s&&$(r,0,{commit:!0}),onEndKeyDown:()=>!s&&$(o,S.length-1,{commit:!0}),onStepKeyDown:({event:D,direction:F})=>{if(!s){const L=sN.includes(D.key)||D.shiftKey&&lN.includes(D.key)?10:1,I=y.current,W=S[I],V=a*L*F;$(W+V,I,{commit:!0})}}})})})})});dN.displayName=Ir;var[fN,pN]=uN(Ir,{startEdge:"left",endEdge:"right",size:"width",direction:1}),rH=f.forwardRef((e,t)=>{const{min:n,max:r,dir:o,inverted:a,onSlideStart:i,onSlideMove:s,onSlideEnd:l,onStepKeyDown:c,...p}=e,[d,m]=f.useState(null),b=fe(t,x=>m(x)),g=f.useRef(void 0),h=Ot(o),v=h==="ltr",y=v&&!a||!v&&a;function w(x){const S=g.current||d.getBoundingClientRect(),_=[0,S.width],C=Rp(_,y?[n,r]:[r,n]);return g.current=S,C(x-S.left)}return u.jsx(fN,{scope:e.__scopeSlider,startEdge:y?"left":"right",endEdge:y?"right":"left",direction:y?1:-1,size:"width",children:u.jsx(mN,{dir:h,"data-orientation":"horizontal",...p,ref:b,style:{...p.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:x=>{const S=w(x.clientX);i==null||i(S)},onSlideMove:x=>{const S=w(x.clientX);s==null||s(S)},onSlideEnd:()=>{g.current=void 0,l==null||l()},onStepKeyDown:x=>{const _=cN[y?"from-left":"from-right"].includes(x.key);c==null||c({event:x,direction:_?-1:1})}})})}),oH=f.forwardRef((e,t)=>{const{min:n,max:r,inverted:o,onSlideStart:a,onSlideMove:i,onSlideEnd:s,onStepKeyDown:l,...c}=e,p=f.useRef(null),d=fe(t,p),m=f.useRef(void 0),b=!o;function g(h){const v=m.current||p.current.getBoundingClientRect(),y=[0,v.height],x=Rp(y,b?[r,n]:[n,r]);return m.current=v,x(h-v.top)}return u.jsx(fN,{scope:e.__scopeSlider,startEdge:b?"bottom":"top",endEdge:b?"top":"bottom",size:"height",direction:b?1:-1,children:u.jsx(mN,{"data-orientation":"vertical",...c,ref:d,style:{...c.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=cN[b?"from-bottom":"from-top"].includes(h.key);l==null||l({event:h,direction:y?-1:1})}})})}),mN=f.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:a,onHomeKeyDown:i,onEndKeyDown:s,onStepKeyDown:l,...c}=e,p=$i(Ir,n);return u.jsx(Z.span,{...c,ref:t,onKeyDown:B(e.onKeyDown,d=>{d.key==="Home"?(i(d),d.preventDefault()):d.key==="End"?(s(d),d.preventDefault()):sN.concat(lN).includes(d.key)&&(l(d),d.preventDefault())}),onPointerDown:B(e.onPointerDown,d=>{const m=d.target;m.setPointerCapture(d.pointerId),d.preventDefault(),p.thumbs.has(m)?m.focus():r(d)}),onPointerMove:B(e.onPointerMove,d=>{d.target.hasPointerCapture(d.pointerId)&&o(d)}),onPointerUp:B(e.onPointerUp,d=>{const m=d.target;m.hasPointerCapture(d.pointerId)&&(m.releasePointerCapture(d.pointerId),a(d))})})}),hN="SliderTrack",gN=f.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=$i(hN,n);return u.jsx(Z.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...r,ref:t})});gN.displayName=hN;var Tp="SliderRange",vN=f.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=$i(Tp,n),a=pN(Tp,n),i=f.useRef(null),s=fe(t,i),l=o.values.length,c=o.values.map(m=>yN(m,o.min,o.max)),p=l>1?Math.min(...c):0,d=100-Math.max(...c);return u.jsx(Z.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...r,ref:s,style:{...e.style,[a.startEdge]:p+"%",[a.endEdge]:d+"%"}})});vN.displayName=Tp;var Np="SliderThumb",bN=f.forwardRef((e,t)=>{const n=eH(e.__scopeSlider),[r,o]=f.useState(null),a=fe(t,s=>o(s)),i=f.useMemo(()=>r?n().findIndex(s=>s.ref.current===r):-1,[n,r]);return u.jsx(aH,{...e,ref:a,index:i})}),aH=f.forwardRef((e,t)=>{const{__scopeSlider:n,index:r,name:o,...a}=e,i=$i(Np,n),s=pN(Np,n),[l,c]=f.useState(null),p=fe(t,w=>c(w)),d=l?i.form||!!l.closest("form"):!0,m=so(l),b=i.values[r],g=b===void 0?0:yN(b,i.min,i.max),h=lH(r,i.values.length),v=m==null?void 0:m[s.size],y=v?uH(v,g,s.direction):0;return f.useEffect(()=>{if(l)return i.thumbs.add(l),()=>{i.thumbs.delete(l)}},[l,i.thumbs]),u.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[s.startEdge]:`calc(${g}% + ${y}px)`},children:[u.jsx(Pp.ItemSlot,{scope:e.__scopeSlider,children:u.jsx(Z.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=r})})}),d&&u.jsx(iH,{name:o??(i.name?i.name+(i.values.length>1?"[]":""):void 0),form:i.form,value:b},r)]})});bN.displayName=Np;var iH=e=>{const{value:t,...n}=e,r=f.useRef(null),o=fr(t);return f.useEffect(()=>{const a=r.current,i=window.HTMLInputElement.prototype,l=Object.getOwnPropertyDescriptor(i,"value").set;if(o!==t&&l){const c=new Event("input",{bubbles:!0});l.call(a,t),a.dispatchEvent(c)}},[o,t]),u.jsx("input",{style:{display:"none"},...n,ref:r,defaultValue:t})};function sH(e=[],t,n){const r=[...e];return r[n]=t,r.sort((o,a)=>o-a)}function yN(e,t,n){const a=100/(n-t)*(e-t);return $o(a,[0,100])}function lH(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function cH(e,t){if(e.length===1)return 0;const n=e.map(o=>Math.abs(o-t)),r=Math.min(...n);return n.indexOf(r)}function uH(e,t,n){const r=e/2,a=Rp([0,50],[0,r]);return(r-a(t)*n)*n}function dH(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function fH(e,t){if(t>0){const n=dH(e);return Math.min(...n)>=t}return!0}function Rp(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function pH(e){return(String(e).split(".")[1]||"").length}function mH(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var wN=dN,hH=gN,gH=vN,vH=bN;const xN=f.forwardRef(({className:e,...t},n)=>u.jsxs(wN,{ref:n,className:O("relative flex w-full touch-none select-none items-center",e),...t,children:[u.jsx(hH,{className:"relative h-1.5 w-full grow overflow-hidden rounded-full bg-primary/20",children:u.jsx(gH,{className:"absolute h-full bg-primary"})}),u.jsx(vH,{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"})]}));xN.displayName=wN.displayName;var bH=(e,t,n,r,o,a,i,s)=>{let l=document.documentElement,c=["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?(l.classList.remove(...v),l.classList.add(a&&a[b]?a[b]:b)):l.setAttribute(g,b)}),d(b)}function d(b){s&&c.includes(b)&&(l.style.colorScheme=b)}function m(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(r)p(r);else try{let b=localStorage.getItem(t)||n,g=i&&b==="system"?m():b;p(g)}catch{}},yH=f.createContext(void 0),wH={setTheme:e=>{},themes:[]},xH=()=>{var e;return(e=f.useContext(yH))!=null?e:wH};f.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:a,value:i,themes:s,nonce:l,scriptProps:c})=>{let p=JSON.stringify([n,t,a,e,s,i,r,o]).slice(1,-1);return f.createElement("script",{...c,suppressHydrationWarning:!0,nonce:typeof window>"u"?l:"",dangerouslySetInnerHTML:{__html:`(${bH.toString()})(${p})`}})});function SH(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const CH=e=>{switch(e){case"success":return PH;case"info":return NH;case"warning":return TH;case"error":return RH;default:return null}},_H=Array(12).fill(0),EH=({visible:e,className:t})=>E.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},E.createElement("div",{className:"sonner-spinner"},_H.map((n,r)=>E.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),PH=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"})),TH=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"})),NH=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"})),RH=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"})),AH=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"})),MH=()=>{const[e,t]=E.useState(document.hidden);return E.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let Ap=1;class OH{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...o}=t,a=typeof(t==null?void 0:t.id)=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:Ap++,i=this.toasts.find(l=>l.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(l=>l.id===a?(this.publish({...l,...t,id:a,title:r}),{...l,...t,id:a,dismissible:s,title:r}):l):this.addToast({title:r,...o,dismissible:s,id:a}),a},this.dismiss=t=>(this.dismissedToasts.add(t),t||this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0}))),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let a=r!==void 0,i;const s=o.then(async c=>{if(i=["resolve",c],E.isValidElement(c))a=!1,this.create({id:r,type:"default",message:c});else if(jH(c)&&!c.ok){a=!1;const d=typeof n.error=="function"?await n.error(`HTTP error! status: ${c.status}`):n.error,m=typeof n.description=="function"?await n.description(`HTTP error! status: ${c.status}`):n.description,b=typeof d=="object"?d:{message:d};this.create({id:r,type:"error",description:m,...b})}else if(c instanceof Error){a=!1;const d=typeof n.error=="function"?await n.error(c):n.error,m=typeof n.description=="function"?await n.description(c):n.description,b=typeof d=="object"?d:{message:d};this.create({id:r,type:"error",description:m,...b})}else if(n.success!==void 0){a=!1;const d=typeof n.success=="function"?await n.success(c):n.success,m=typeof n.description=="function"?await n.description(c):n.description,b=typeof d=="object"?d:{message:d};this.create({id:r,type:"success",description:m,...b})}}).catch(async c=>{if(i=["reject",c],n.error!==void 0){a=!1;const p=typeof n.error=="function"?await n.error(c):n.error,d=typeof n.description=="function"?await n.description(c):n.description,m=typeof p=="object"?p:{message:p};this.create({id:r,type:"error",description:d,...m})}}).finally(()=>{a&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),l=()=>new Promise((c,p)=>s.then(()=>i[0]==="reject"?p(i[1]):c(i[1])).catch(p));return typeof r!="string"&&typeof r!="number"?{unwrap:l}:Object.assign(r,{unwrap:l})},this.custom=(t,n)=>{const r=(n==null?void 0:n.id)||Ap++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const bt=new OH,IH=(e,t)=>{const n=(t==null?void 0:t.id)||Ap++;return bt.addToast({title:e,...t,id:n}),n},jH=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",DH=IH,kH=()=>bt.toasts,$H=()=>bt.getActiveToasts();Object.assign(DH,{success:bt.success,info:bt.info,warning:bt.warning,error:bt.error,custom:bt.custom,message:bt.message,promise:bt.promise,dismiss:bt.dismiss,loading:bt.loading},{getHistory:kH,getToasts:$H}),SH("[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 Li(e){return e.label!==void 0}const LH=3,FH="24px",BH="16px",SN=4e3,zH=356,qH=14,HH=45,VH=200;function tn(...e){return e.filter(Boolean).join(" ")}function GH(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const WH=e=>{var t,n,r,o,a,i,s,l,c;const{invert:p,toast:d,unstyled:m,interacting:b,setHeights:g,visibleToasts:h,heights:v,index:y,toasts:w,expanded:x,removeToast:S,defaultRichColors:_,closeButton:P,style:C,cancelButtonStyle:M,actionButtonStyle:N,className:$="",descriptionClassName:D="",duration:F,position:A,gap:k,expandByDefault:L,classNames:I,icons:W,closeButtonAriaLabel:V="Close toast"}=e,[q,ae]=E.useState(null),[J,ne]=E.useState(null),[z,U]=E.useState(!1),[ee,Y]=E.useState(!1),[H,K]=E.useState(!1),[re,Q]=E.useState(!1),[oe,G]=E.useState(!1),[ie,j]=E.useState(0),[te,me]=E.useState(0),he=E.useRef(d.duration||F||SN),ve=E.useRef(null),pe=E.useRef(null),Te=y===0,He=y+1<=h,Se=d.type,Ie=d.dismissible!==!1,ot=d.className||"",Qe=d.descriptionClassName||"",Ye=E.useMemo(()=>v.findIndex(se=>se.toastId===d.id)||0,[v,d.id]),it=E.useMemo(()=>{var se;return(se=d.closeButton)!=null?se:P},[d.closeButton,P]),yt=E.useMemo(()=>d.duration||F||SN,[d.duration,F]),pt=E.useRef(0),We=E.useRef(0),At=E.useRef(0),Xe=E.useRef(null),[et,Vt]=A.split("-"),nn=E.useMemo(()=>v.reduce((se,Ce,xe)=>xe>=Ye?se:se+Ce.height,0),[v,Ye]),Nn=MH(),Un=d.invert||p,Gt=Se==="loading";We.current=E.useMemo(()=>Ye*k+nn,[Ye,nn]),E.useEffect(()=>{he.current=yt},[yt]),E.useEffect(()=>{U(!0)},[]),E.useEffect(()=>{const se=pe.current;if(se){const Ce=se.getBoundingClientRect().height;return me(Ce),g(xe=>[{toastId:d.id,height:Ce,position:d.position},...xe]),()=>g(xe=>xe.filter(Fe=>Fe.toastId!==d.id))}},[g,d.id]),E.useLayoutEffect(()=>{if(!z)return;const se=pe.current,Ce=se.style.height;se.style.height="auto";const xe=se.getBoundingClientRect().height;se.style.height=Ce,me(xe),g(Fe=>Fe.find(je=>je.toastId===d.id)?Fe.map(je=>je.toastId===d.id?{...je,height:xe}:je):[{toastId:d.id,height:xe,position:d.position},...Fe])},[z,d.title,d.description,g,d.id]);const de=E.useCallback(()=>{Y(!0),j(We.current),g(se=>se.filter(Ce=>Ce.toastId!==d.id)),setTimeout(()=>{S(d)},VH)},[d,S,g,We]);E.useEffect(()=>{if(d.promise&&Se==="loading"||d.duration===1/0||d.type==="loading")return;let se;return x||b||Nn?(()=>{if(At.current<pt.current){const Fe=new Date().getTime()-pt.current;he.current=he.current-Fe}At.current=new Date().getTime()})():(()=>{he.current!==1/0&&(pt.current=new Date().getTime(),se=setTimeout(()=>{d.onAutoClose==null||d.onAutoClose.call(d,d),de()},he.current))})(),()=>clearTimeout(se)},[x,b,d,Se,Nn,de]),E.useEffect(()=>{d.delete&&de()},[de,d.delete]);function we(){var se;if(W!=null&&W.loading){var Ce;return E.createElement("div",{className:tn(I==null?void 0:I.loader,d==null||(Ce=d.classNames)==null?void 0:Ce.loader,"sonner-loader"),"data-visible":Se==="loading"},W.loading)}return E.createElement(EH,{className:tn(I==null?void 0:I.loader,d==null||(se=d.classNames)==null?void 0:se.loader),visible:Se==="loading"})}var Ee,be;return E.createElement("li",{tabIndex:0,ref:pe,className:tn($,ot,I==null?void 0:I.toast,d==null||(t=d.classNames)==null?void 0:t.toast,I==null?void 0:I.default,I==null?void 0:I[Se],d==null||(n=d.classNames)==null?void 0:n[Se]),"data-sonner-toast":"","data-rich-colors":(Ee=d.richColors)!=null?Ee:_,"data-styled":!(d.jsx||d.unstyled||m),"data-mounted":z,"data-promise":!!d.promise,"data-swiped":oe,"data-removed":ee,"data-visible":He,"data-y-position":et,"data-x-position":Vt,"data-index":y,"data-front":Te,"data-swiping":H,"data-dismissible":Ie,"data-type":Se,"data-invert":Un,"data-swipe-out":re,"data-swipe-direction":J,"data-expanded":!!(x||L&&z),style:{"--index":y,"--toasts-before":y,"--z-index":w.length-y,"--offset":`${ee?ie:We.current}px`,"--initial-height":L?"auto":`${te}px`,...C,...d.style},onDragEnd:()=>{K(!1),ae(null),Xe.current=null},onPointerDown:se=>{Gt||!Ie||(ve.current=new Date,j(We.current),se.target.setPointerCapture(se.pointerId),se.target.tagName!=="BUTTON"&&(K(!0),Xe.current={x:se.clientX,y:se.clientY}))},onPointerUp:()=>{var se,Ce,xe;if(re||!Ie)return;Xe.current=null;const Fe=Number(((se=pe.current)==null?void 0:se.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),tt=Number(((Ce=pe.current)==null?void 0:Ce.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),je=new Date().getTime()-((xe=ve.current)==null?void 0:xe.getTime()),Ve=q==="x"?Fe:tt,st=Math.abs(Ve)/je;if(Math.abs(Ve)>=HH||st>.11){j(We.current),d.onDismiss==null||d.onDismiss.call(d,d),ne(q==="x"?Fe>0?"right":"left":tt>0?"down":"up"),de(),Q(!0);return}else{var nt,lt;(nt=pe.current)==null||nt.style.setProperty("--swipe-amount-x","0px"),(lt=pe.current)==null||lt.style.setProperty("--swipe-amount-y","0px")}G(!1),K(!1),ae(null)},onPointerMove:se=>{var Ce,xe,Fe;if(!Xe.current||!Ie||((Ce=window.getSelection())==null?void 0:Ce.toString().length)>0)return;const je=se.clientY-Xe.current.y,Ve=se.clientX-Xe.current.x;var st;const nt=(st=e.swipeDirections)!=null?st:GH(A);!q&&(Math.abs(Ve)>1||Math.abs(je)>1)&&ae(Math.abs(Ve)>Math.abs(je)?"x":"y");let lt={x:0,y:0};const Gi=mn=>1/(1.5+Math.abs(mn)/20);if(q==="y"){if(nt.includes("top")||nt.includes("bottom"))if(nt.includes("top")&&je<0||nt.includes("bottom")&&je>0)lt.y=je;else{const mn=je*Gi(je);lt.y=Math.abs(mn)<Math.abs(je)?mn:je}}else if(q==="x"&&(nt.includes("left")||nt.includes("right")))if(nt.includes("left")&&Ve<0||nt.includes("right")&&Ve>0)lt.x=Ve;else{const mn=Ve*Gi(Ve);lt.x=Math.abs(mn)<Math.abs(Ve)?mn:Ve}(Math.abs(lt.x)>0||Math.abs(lt.y)>0)&&G(!0),(xe=pe.current)==null||xe.style.setProperty("--swipe-amount-x",`${lt.x}px`),(Fe=pe.current)==null||Fe.style.setProperty("--swipe-amount-y",`${lt.y}px`)}},it&&!d.jsx&&Se!=="loading"?E.createElement("button",{"aria-label":V,"data-disabled":Gt,"data-close-button":!0,onClick:Gt||!Ie?()=>{}:()=>{de(),d.onDismiss==null||d.onDismiss.call(d,d)},className:tn(I==null?void 0:I.closeButton,d==null||(r=d.classNames)==null?void 0:r.closeButton)},(be=W==null?void 0:W.close)!=null?be:AH):null,Se||d.icon||d.promise?E.createElement("div",{"data-icon":"",className:tn(I==null?void 0:I.icon,d==null||(o=d.classNames)==null?void 0:o.icon)},d.promise||d.type==="loading"&&!d.icon?d.icon||we():null,d.type!=="loading"?d.icon||(W==null?void 0:W[Se])||CH(Se):null):null,E.createElement("div",{"data-content":"",className:tn(I==null?void 0:I.content,d==null||(a=d.classNames)==null?void 0:a.content)},E.createElement("div",{"data-title":"",className:tn(I==null?void 0:I.title,d==null||(i=d.classNames)==null?void 0:i.title)},d.jsx?d.jsx:typeof d.title=="function"?d.title():d.title),d.description?E.createElement("div",{"data-description":"",className:tn(D,Qe,I==null?void 0:I.description,d==null||(s=d.classNames)==null?void 0:s.description)},typeof d.description=="function"?d.description():d.description):null),E.isValidElement(d.cancel)?d.cancel:d.cancel&&Li(d.cancel)?E.createElement("button",{"data-button":!0,"data-cancel":!0,style:d.cancelButtonStyle||M,onClick:se=>{Li(d.cancel)&&Ie&&(d.cancel.onClick==null||d.cancel.onClick.call(d.cancel,se),de())},className:tn(I==null?void 0:I.cancelButton,d==null||(l=d.classNames)==null?void 0:l.cancelButton)},d.cancel.label):null,E.isValidElement(d.action)?d.action:d.action&&Li(d.action)?E.createElement("button",{"data-button":!0,"data-action":!0,style:d.actionButtonStyle||N,onClick:se=>{Li(d.action)&&(d.action.onClick==null||d.action.onClick.call(d.action,se),!se.defaultPrevented&&de())},className:tn(I==null?void 0:I.actionButton,d==null||(c=d.classNames)==null?void 0:c.actionButton)},d.action.label):null)};function CN(){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 UH(e,t){const n={};return[e,t].forEach((r,o)=>{const a=o===1,i=a?"--mobile-offset":"--offset",s=a?BH:FH;function l(c){["top","right","bottom","left"].forEach(p=>{n[`${i}-${p}`]=typeof c=="number"?`${c}px`:c})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(c=>{r[c]===void 0?n[`${i}-${c}`]=s:n[`${i}-${c}`]=typeof r[c]=="number"?`${r[c]}px`:r[c]}):l(s)}),n}const KH=E.forwardRef(function(t,n){const{invert:r,position:o="bottom-right",hotkey:a=["altKey","KeyT"],expand:i,closeButton:s,className:l,offset:c,mobileOffset:p,theme:d="light",richColors:m,duration:b,style:g,visibleToasts:h=LH,toastOptions:v,dir:y=CN(),gap:w=qH,icons:x,containerAriaLabel:S="Notifications"}=t,[_,P]=E.useState([]),C=E.useMemo(()=>Array.from(new Set([o].concat(_.filter(J=>J.position).map(J=>J.position)))),[_,o]),[M,N]=E.useState([]),[$,D]=E.useState(!1),[F,A]=E.useState(!1),[k,L]=E.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),I=E.useRef(null),W=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),V=E.useRef(null),q=E.useRef(!1),ae=E.useCallback(J=>{P(ne=>{var z;return(z=ne.find(U=>U.id===J.id))!=null&&z.delete||bt.dismiss(J.id),ne.filter(({id:U})=>U!==J.id)})},[]);return E.useEffect(()=>bt.subscribe(J=>{if(J.dismiss){const ne=_.map(z=>z.id===J.id?{...z,delete:!0}:z);requestAnimationFrame(()=>{P(ne)});return}setTimeout(()=>{Vo.flushSync(()=>{P(ne=>{const z=ne.findIndex(U=>U.id===J.id);return z!==-1?[...ne.slice(0,z),{...ne[z],...J},...ne.slice(z+1)]:[J,...ne]})})})}),[_]),E.useEffect(()=>{if(d!=="system"){L(d);return}if(d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?L("dark"):L("light")),typeof window>"u")return;const J=window.matchMedia("(prefers-color-scheme: dark)");try{J.addEventListener("change",({matches:ne})=>{L(ne?"dark":"light")})}catch{J.addListener(({matches:z})=>{try{L(z?"dark":"light")}catch(U){console.error(U)}})}},[d]),E.useEffect(()=>{_.length<=1&&D(!1)},[_]),E.useEffect(()=>{const J=ne=>{var z;if(a.every(Y=>ne[Y]||ne.code===Y)){var ee;D(!0),(ee=I.current)==null||ee.focus()}ne.code==="Escape"&&(document.activeElement===I.current||(z=I.current)!=null&&z.contains(document.activeElement))&&D(!1)};return document.addEventListener("keydown",J),()=>document.removeEventListener("keydown",J)},[a]),E.useEffect(()=>{if(I.current)return()=>{V.current&&(V.current.focus({preventScroll:!0}),V.current=null,q.current=!1)}},[I.current]),E.createElement("section",{ref:n,"aria-label":`${S} ${W}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},C.map((J,ne)=>{var z;const[U,ee]=J.split("-");return _.length?E.createElement("ol",{key:J,dir:y==="auto"?CN():y,tabIndex:-1,ref:I,className:l,"data-sonner-toaster":!0,"data-sonner-theme":k,"data-y-position":U,"data-lifted":$&&_.length>1&&!i,"data-x-position":ee,style:{"--front-toast-height":`${((z=M[0])==null?void 0:z.height)||0}px`,"--width":`${zH}px`,"--gap":`${w}px`,...g,...UH(c,p)},onBlur:Y=>{q.current&&!Y.currentTarget.contains(Y.relatedTarget)&&(q.current=!1,V.current&&(V.current.focus({preventScroll:!0}),V.current=null))},onFocus:Y=>{Y.target instanceof HTMLElement&&Y.target.dataset.dismissible==="false"||q.current||(q.current=!0,V.current=Y.relatedTarget)},onMouseEnter:()=>D(!0),onMouseMove:()=>D(!0),onMouseLeave:()=>{F||D(!1)},onDragEnd:()=>D(!1),onPointerDown:Y=>{Y.target instanceof HTMLElement&&Y.target.dataset.dismissible==="false"||A(!0)},onPointerUp:()=>A(!1)},_.filter(Y=>!Y.position&&ne===0||Y.position===J).map((Y,H)=>{var K,re;return E.createElement(WH,{key:Y.id,icons:x,index:H,toast:Y,defaultRichColors:m,duration:(K=v==null?void 0:v.duration)!=null?K:b,className:v==null?void 0:v.className,descriptionClassName:v==null?void 0:v.descriptionClassName,invert:r,visibleToasts:h,closeButton:(re=v==null?void 0:v.closeButton)!=null?re:s,interacting:F,position:J,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:ae,toasts:_.filter(Q=>Q.position==Y.position),heights:M.filter(Q=>Q.position==Y.position),setHeights:N,expandByDefault:i,gap:w,expanded:$,swipeDirections:t.swipeDirections})})):null}))}),YH=({...e})=>{const{theme:t="system"}=xH();return u.jsx(KH,{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",[XH,P3]=De(Mp),[ZH,JH]=XH(Mp),_N=f.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:a,required:i,disabled:s,value:l="on",onCheckedChange:c,form:p,...d}=e,[m,b]=f.useState(null),g=fe(t,x=>b(x)),h=f.useRef(!1),v=m?p||!!m.closest("form"):!0,[y=!1,w]=$e({prop:o,defaultProp:a,onChange:c});return u.jsxs(ZH,{scope:n,checked:y,disabled:s,children:[u.jsx(Z.button,{type:"button",role:"switch","aria-checked":y,"aria-required":i,"data-state":TN(y),"data-disabled":s?"":void 0,disabled:s,value:l,...d,ref:g,onClick:B(e.onClick,x=>{w(S=>!S),v&&(h.current=x.isPropagationStopped(),h.current||x.stopPropagation())})}),v&&u.jsx(QH,{control:m,bubbles:!h.current,name:r,value:l,checked:y,required:i,disabled:s,form:p,style:{transform:"translateX(-100%)"}})]})});_N.displayName=Mp;var EN="SwitchThumb",PN=f.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,o=JH(EN,n);return u.jsx(Z.span,{"data-state":TN(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t})});PN.displayName=EN;var QH=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,a=f.useRef(null),i=fr(n),s=so(t);return f.useEffect(()=>{const l=a.current,c=window.HTMLInputElement.prototype,d=Object.getOwnPropertyDescriptor(c,"checked").set;if(i!==n&&d){const m=new Event("click",{bubbles:r});d.call(l,n),l.dispatchEvent(m)}},[i,n,r]),u.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:a,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function TN(e){return e?"checked":"unchecked"}var NN=_N,eV=PN;const RN=f.forwardRef(({className:e,...t},n)=>u.jsx(NN,{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:n,children:u.jsx(eV,{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")})}));RN.displayName=NN.displayName;const AN=f.forwardRef(({className:e,...t},n)=>u.jsx("div",{className:"relative w-full overflow-auto",children:u.jsx("table",{ref:n,className:O("w-full caption-bottom text-sm",e),...t})}));AN.displayName="Table";const MN=f.forwardRef(({className:e,...t},n)=>u.jsx("thead",{ref:n,className:O("[&_tr]:border-b",e),...t}));MN.displayName="TableHeader";const ON=f.forwardRef(({className:e,...t},n)=>u.jsx("tbody",{ref:n,className:O("[&_tr:last-child]:border-0",e),...t}));ON.displayName="TableBody";const IN=f.forwardRef(({className:e,...t},n)=>u.jsx("tfoot",{ref:n,className:O("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));IN.displayName="TableFooter";const jN=f.forwardRef(({className:e,...t},n)=>u.jsx("tr",{ref:n,className:O("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));jN.displayName="TableRow";const DN=f.forwardRef(({className:e,...t},n)=>u.jsx("th",{ref:n,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}));DN.displayName="TableHead";const kN=f.forwardRef(({className:e,...t},n)=>u.jsx("td",{ref:n,className:O("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t}));kN.displayName="TableCell";const $N=f.forwardRef(({className:e,...t},n)=>u.jsx("caption",{ref:n,className:O("mt-4 text-sm text-muted-foreground",e),...t}));$N.displayName="TableCaption";var Op="Tabs",[tV,T3]=De(Op,[Qt]),LN=Qt(),[nV,Ip]=tV(Op),FN=f.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:a,orientation:i="horizontal",dir:s,activationMode:l="automatic",...c}=e,p=Ot(s),[d,m]=$e({prop:r,onChange:o,defaultProp:a});return u.jsx(nV,{scope:n,baseId:Ge(),value:d,onValueChange:m,orientation:i,dir:p,activationMode:l,children:u.jsx(Z.div,{dir:p,"data-orientation":i,...c,ref:t})})});FN.displayName=Op;var BN="TabsList",zN=f.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,a=Ip(BN,n),i=LN(n);return u.jsx(mo,{asChild:!0,...i,orientation:a.orientation,dir:a.dir,loop:r,children:u.jsx(Z.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});zN.displayName=BN;var qN="TabsTrigger",HN=f.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...a}=e,i=Ip(qN,n),s=LN(n),l=WN(i.baseId,r),c=UN(i.baseId,r),p=r===i.value;return u.jsx(ho,{asChild:!0,...s,focusable:!o,active:p,children:u.jsx(Z.button,{type:"button",role:"tab","aria-selected":p,"aria-controls":c,"data-state":p?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:l,...a,ref:t,onMouseDown:B(e.onMouseDown,d=>{!o&&d.button===0&&d.ctrlKey===!1?i.onValueChange(r):d.preventDefault()}),onKeyDown:B(e.onKeyDown,d=>{[" ","Enter"].includes(d.key)&&i.onValueChange(r)}),onFocus:B(e.onFocus,()=>{const d=i.activationMode!=="manual";!p&&!o&&d&&i.onValueChange(r)})})})});HN.displayName=qN;var VN="TabsContent",GN=f.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:a,...i}=e,s=Ip(VN,n),l=WN(s.baseId,r),c=UN(s.baseId,r),p=r===s.value,d=f.useRef(p);return f.useEffect(()=>{const m=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(m)},[]),u.jsx(Le,{present:o||p,children:({present:m})=>u.jsx(Z.div,{"data-state":p?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":l,hidden:!m,id:c,tabIndex:0,...i,ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0},children:m&&a})})});GN.displayName=VN;function WN(e,t){return`${e}-trigger-${t}`}function UN(e,t){return`${e}-content-${t}`}var rV=FN,KN=zN,YN=HN,XN=GN;const oV=rV,ZN=f.forwardRef(({className:e,...t},n)=>u.jsx(KN,{ref:n,className:O("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",e),...t}));ZN.displayName=KN.displayName;const JN=f.forwardRef(({className:e,...t},n)=>u.jsx(YN,{ref:n,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}));JN.displayName=YN.displayName;const QN=f.forwardRef(({className:e,...t},n)=>u.jsx(XN,{ref:n,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}));QN.displayName=XN.displayName;const eR=f.forwardRef(({className:e,...t},n)=>u.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:n,...t}));eR.displayName="Textarea";var jp="ToastProvider",[Dp,aV,iV]=rn("Toast"),[tR,N3]=De("Toast",[iV]),[sV,Fi]=tR(jp),nR=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:a=50,children:i}=e,[s,l]=f.useState(null),[c,p]=f.useState(0),d=f.useRef(!1),m=f.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${jp}\`. Expected non-empty \`string\`.`),u.jsx(Dp.Provider,{scope:t,children:u.jsx(sV,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:a,toastCount:c,viewport:s,onViewportChange:l,onToastAdd:f.useCallback(()=>p(b=>b+1),[]),onToastRemove:f.useCallback(()=>p(b=>b-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:m,children:i})})};nR.displayName=jp;var rR="ToastViewport",lV=["F8"],kp="toast.viewportPause",$p="toast.viewportResume",oR=f.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=lV,label:o="Notifications ({hotkey})",...a}=e,i=Fi(rR,n),s=aV(n),l=f.useRef(null),c=f.useRef(null),p=f.useRef(null),d=f.useRef(null),m=fe(t,d,i.onViewportChange),b=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),g=i.toastCount>0;f.useEffect(()=>{const v=y=>{var x;r.length!==0&&r.every(S=>y[S]||y.code===S)&&((x=d.current)==null||x.focus())};return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[r]),f.useEffect(()=>{const v=l.current,y=d.current;if(g&&v&&y){const w=()=>{if(!i.isClosePausedRef.current){const P=new CustomEvent(kp);y.dispatchEvent(P),i.isClosePausedRef.current=!0}},x=()=>{if(i.isClosePausedRef.current){const P=new CustomEvent($p);y.dispatchEvent(P),i.isClosePausedRef.current=!1}},S=P=>{!v.contains(P.relatedTarget)&&x()},_=()=>{v.contains(document.activeElement)||x()};return v.addEventListener("focusin",w),v.addEventListener("focusout",S),v.addEventListener("pointermove",w),v.addEventListener("pointerleave",_),window.addEventListener("blur",w),window.addEventListener("focus",x),()=>{v.removeEventListener("focusin",w),v.removeEventListener("focusout",S),v.removeEventListener("pointermove",w),v.removeEventListener("pointerleave",_),window.removeEventListener("blur",w),window.removeEventListener("focus",x)}}},[g,i.isClosePausedRef]);const h=f.useCallback(({tabbingDirection:v})=>{const w=s().map(x=>{const S=x.ref.current,_=[S,...xV(S)];return v==="forwards"?_:_.reverse()});return(v==="forwards"?w.reverse():w).flat()},[s]);return f.useEffect(()=>{const v=d.current;if(v){const y=w=>{var _,P,C;const x=w.altKey||w.ctrlKey||w.metaKey;if(w.key==="Tab"&&!x){const M=document.activeElement,N=w.shiftKey;if(w.target===v&&N){(_=c.current)==null||_.focus();return}const F=h({tabbingDirection:N?"backwards":"forwards"}),A=F.findIndex(k=>k===M);Bp(F.slice(A+1))?w.preventDefault():N?(P=c.current)==null||P.focus():(C=p.current)==null||C.focus()}};return v.addEventListener("keydown",y),()=>v.removeEventListener("keydown",y)}},[s,h]),u.jsxs(MA,{ref:l,role:"region","aria-label":o.replace("{hotkey}",b),tabIndex:-1,style:{pointerEvents:g?void 0:"none"},children:[g&&u.jsx(Lp,{ref:c,onFocusFromOutsideViewport:()=>{const v=h({tabbingDirection:"forwards"});Bp(v)}}),u.jsx(Dp.Slot,{scope:n,children:u.jsx(Z.ol,{tabIndex:-1,...a,ref:m})}),g&&u.jsx(Lp,{ref:p,onFocusFromOutsideViewport:()=>{const v=h({tabbingDirection:"backwards"});Bp(v)}})]})});oR.displayName=rR;var aR="ToastFocusProxy",Lp=f.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,a=Fi(aR,n);return u.jsx(Ao,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:i=>{var c;const s=i.relatedTarget;!((c=a.viewport)!=null&&c.contains(s))&&r()}})});Lp.displayName=aR;var Bi="Toast",cV="toast.swipeStart",uV="toast.swipeMove",dV="toast.swipeCancel",fV="toast.swipeEnd",iR=f.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:a,...i}=e,[s=!0,l]=$e({prop:r,defaultProp:o,onChange:a});return u.jsx(Le,{present:n||s,children:u.jsx(hV,{open:s,...i,ref:t,onClose:()=>l(!1),onPause:Re(e.onPause),onResume:Re(e.onResume),onSwipeStart:B(e.onSwipeStart,c=>{c.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:B(e.onSwipeMove,c=>{const{x:p,y:d}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","move"),c.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${p}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${d}px`)}),onSwipeCancel:B(e.onSwipeCancel,c=>{c.currentTarget.setAttribute("data-swipe","cancel"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:B(e.onSwipeEnd,c=>{const{x:p,y:d}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","end"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${p}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${d}px`),l(!1)})})})});iR.displayName=Bi;var[pV,mV]=tR(Bi,{onClose(){}}),hV=f.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:a,onClose:i,onEscapeKeyDown:s,onPause:l,onResume:c,onSwipeStart:p,onSwipeMove:d,onSwipeCancel:m,onSwipeEnd:b,...g}=e,h=Fi(Bi,n),[v,y]=f.useState(null),w=fe(t,k=>y(k)),x=f.useRef(null),S=f.useRef(null),_=o||h.duration,P=f.useRef(0),C=f.useRef(_),M=f.useRef(0),{onToastAdd:N,onToastRemove:$}=h,D=Re(()=>{var L;(v==null?void 0:v.contains(document.activeElement))&&((L=h.viewport)==null||L.focus()),i()}),F=f.useCallback(k=>{!k||k===1/0||(window.clearTimeout(M.current),P.current=new Date().getTime(),M.current=window.setTimeout(D,k))},[D]);f.useEffect(()=>{const k=h.viewport;if(k){const L=()=>{F(C.current),c==null||c()},I=()=>{const W=new Date().getTime()-P.current;C.current=C.current-W,window.clearTimeout(M.current),l==null||l()};return k.addEventListener(kp,I),k.addEventListener($p,L),()=>{k.removeEventListener(kp,I),k.removeEventListener($p,L)}}},[h.viewport,_,l,c,F]),f.useEffect(()=>{a&&!h.isClosePausedRef.current&&F(_)},[a,_,h.isClosePausedRef,F]),f.useEffect(()=>(N(),()=>$()),[N,$]);const A=f.useMemo(()=>v?pR(v):null,[v]);return h.viewport?u.jsxs(u.Fragment,{children:[A&&u.jsx(gV,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:A}),u.jsx(pV,{scope:n,onClose:D,children:kr.createPortal(u.jsx(Dp.ItemSlot,{scope:n,children:u.jsx(AA,{asChild:!0,onEscapeKeyDown:B(s,()=>{h.isFocusedToastEscapeKeyDownRef.current||D(),h.isFocusedToastEscapeKeyDownRef.current=!1}),children:u.jsx(Z.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":a?"open":"closed","data-swipe-direction":h.swipeDirection,...g,ref:w,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:B(e.onKeyDown,k=>{k.key==="Escape"&&(s==null||s(k.nativeEvent),k.nativeEvent.defaultPrevented||(h.isFocusedToastEscapeKeyDownRef.current=!0,D()))}),onPointerDown:B(e.onPointerDown,k=>{k.button===0&&(x.current={x:k.clientX,y:k.clientY})}),onPointerMove:B(e.onPointerMove,k=>{if(!x.current)return;const L=k.clientX-x.current.x,I=k.clientY-x.current.y,W=!!S.current,V=["left","right"].includes(h.swipeDirection),q=["left","up"].includes(h.swipeDirection)?Math.min:Math.max,ae=V?q(0,L):0,J=V?0:q(0,I),ne=k.pointerType==="touch"?10:2,z={x:ae,y:J},U={originalEvent:k,delta:z};W?(S.current=z,zi(uV,d,U,{discrete:!1})):mR(z,h.swipeDirection,ne)?(S.current=z,zi(cV,p,U,{discrete:!1}),k.target.setPointerCapture(k.pointerId)):(Math.abs(L)>ne||Math.abs(I)>ne)&&(x.current=null)}),onPointerUp:B(e.onPointerUp,k=>{const L=S.current,I=k.target;if(I.hasPointerCapture(k.pointerId)&&I.releasePointerCapture(k.pointerId),S.current=null,x.current=null,L){const W=k.currentTarget,V={originalEvent:k,delta:L};mR(L,h.swipeDirection,h.swipeThreshold)?zi(fV,b,V,{discrete:!0}):zi(dV,m,V,{discrete:!0}),W.addEventListener("click",q=>q.preventDefault(),{once:!0})}})})})}),h.viewport)})]}):null}),gV=e=>{const{__scopeToast:t,children:n,...r}=e,o=Fi(Bi,t),[a,i]=f.useState(!1),[s,l]=f.useState(!1);return yV(()=>i(!0)),f.useEffect(()=>{const c=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(c)},[]),s?null:u.jsx(Mn,{asChild:!0,children:u.jsx(Ao,{...r,children:a&&u.jsxs(u.Fragment,{children:[o.label," ",n]})})})},vV="ToastTitle",sR=f.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return u.jsx(Z.div,{...r,ref:t})});sR.displayName=vV;var bV="ToastDescription",lR=f.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return u.jsx(Z.div,{...r,ref:t})});lR.displayName=bV;var cR="ToastAction",uR=f.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?u.jsx(fR,{altText:n,asChild:!0,children:u.jsx(Fp,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${cR}\`. Expected non-empty \`string\`.`),null)});uR.displayName=cR;var dR="ToastClose",Fp=f.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=mV(dR,n);return u.jsx(fR,{asChild:!0,children:u.jsx(Z.button,{type:"button",...r,ref:t,onClick:B(e.onClick,o.onClose)})})});Fp.displayName=dR;var fR=f.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return u.jsx(Z.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function pR(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),wV(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",a=r.dataset.radixToastAnnounceExclude==="";if(!o)if(a){const i=r.dataset.radixToastAnnounceAlt;i&&t.push(i)}else t.push(...pR(r))}}),t}function zi(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Br(o,a):o.dispatchEvent(a)}var mR=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),a=r>o;return t==="left"||t==="right"?a&&r>n:!a&&o>n};function yV(e=()=>{}){const t=Re(e);Be(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function wV(e){return e.nodeType===e.ELEMENT_NODE}function xV(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Bp(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var SV=nR,hR=oR,gR=iR,vR=sR,bR=lR,yR=uR,wR=Fp;const xR=SV,zp=f.forwardRef(({className:e,...t},n)=>u.jsx(hR,{ref:n,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}));zp.displayName=hR.displayName;const CV=cn("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"}}),qp=f.forwardRef(({className:e,variant:t,...n},r)=>u.jsx(gR,{ref:r,className:O(CV({variant:t}),e),...n}));qp.displayName=gR.displayName;const SR=f.forwardRef(({className:e,...t},n)=>u.jsx(yR,{ref:n,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}));SR.displayName=yR.displayName;const Hp=f.forwardRef(({className:e,...t},n)=>u.jsx(wR,{ref:n,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:u.jsx(as,{className:"h-4 w-4"})}));Hp.displayName=wR.displayName;const Vp=f.forwardRef(({className:e,...t},n)=>u.jsx(vR,{ref:n,className:O("text-sm font-semibold [&+div]:text-xs",e),...t}));Vp.displayName=vR.displayName;const Gp=f.forwardRef(({className:e,...t},n)=>u.jsx(bR,{ref:n,className:O("text-sm opacity-90",e),...t}));Gp.displayName=bR.displayName;const _V=1,EV=1e6;let Wp=0;function PV(){return Wp=(Wp+1)%Number.MAX_SAFE_INTEGER,Wp.toString()}const Up=new Map,CR=e=>{if(Up.has(e))return;const t=setTimeout(()=>{Up.delete(e),qo({type:"REMOVE_TOAST",toastId:e})},EV);Up.set(e,t)},TV=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,_V)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?CR(n):e.toasts.forEach(r=>{CR(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},qi=[];let Hi={toasts:[]};function qo(e){Hi=TV(Hi,e),qi.forEach(t=>{t(Hi)})}function NV({...e}){const t=PV(),n=o=>qo({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>qo({type:"DISMISS_TOAST",toastId:t});return qo({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function RV(){const[e,t]=f.useState(Hi);return f.useEffect(()=>(qi.push(t),()=>{const n=qi.indexOf(t);n>-1&&qi.splice(n,1)}),[e]),{...e,toast:NV,dismiss:n=>qo({type:"DISMISS_TOAST",toastId:n})}}function AV(){const{toasts:e}=RV();return u.jsxs(xR,{children:[e.map(function({id:t,title:n,description:r,action:o,...a}){return u.jsxs(qp,{...a,children:[u.jsxs("div",{className:"grid gap-1",children:[n&&u.jsx(Vp,{children:n}),r&&u.jsx(Gp,{children:r})]}),o,u.jsx(Hp,{})]},t)}),u.jsx(zp,{})]})}var MV="Toggle",Kp=f.forwardRef((e,t)=>{const{pressed:n,defaultPressed:r=!1,onPressedChange:o,...a}=e,[i=!1,s]=$e({prop:n,onChange:o,defaultProp:r});return u.jsx(Z.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)})})});Kp.displayName=MV;var _R=Kp,jr="ToggleGroup",[ER,R3]=De(jr,[Qt]),PR=Qt(),Yp=E.forwardRef((e,t)=>{const{type:n,...r}=e;if(n==="single"){const o=r;return u.jsx(OV,{...o,ref:t})}if(n==="multiple"){const o=r;return u.jsx(IV,{...o,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${jr}\``)});Yp.displayName=jr;var[TR,NR]=ER(jr),OV=E.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i,s]=$e({prop:n,defaultProp:r,onChange:o});return u.jsx(TR,{scope:e.__scopeToggleGroup,type:"single",value:i?[i]:[],onItemActivate:s,onItemDeactivate:E.useCallback(()=>s(""),[s]),children:u.jsx(RR,{...a,ref:t})})}),IV=E.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i=[],s]=$e({prop:n,defaultProp:r,onChange:o}),l=E.useCallback(p=>s((d=[])=>[...d,p]),[s]),c=E.useCallback(p=>s((d=[])=>d.filter(m=>m!==p)),[s]);return u.jsx(TR,{scope:e.__scopeToggleGroup,type:"multiple",value:i,onItemActivate:l,onItemDeactivate:c,children:u.jsx(RR,{...a,ref:t})})});Yp.displayName=jr;var[jV,DV]=ER(jr),RR=E.forwardRef((e,t)=>{const{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:o=!0,orientation:a,dir:i,loop:s=!0,...l}=e,c=PR(n),p=Ot(i),d={role:"group",dir:p,...l};return u.jsx(jV,{scope:n,rovingFocus:o,disabled:r,children:o?u.jsx(mo,{asChild:!0,...c,orientation:a,dir:p,loop:s,children:u.jsx(Z.div,{...d,ref:t})}):u.jsx(Z.div,{...d,ref:t})})}),Vi="ToggleGroupItem",AR=E.forwardRef((e,t)=>{const n=NR(Vi,e.__scopeToggleGroup),r=DV(Vi,e.__scopeToggleGroup),o=PR(e.__scopeToggleGroup),a=n.value.includes(e.value),i=r.disabled||e.disabled,s={...e,pressed:a,disabled:i},l=E.useRef(null);return r.rovingFocus?u.jsx(ho,{asChild:!0,...o,focusable:!i,active:a,ref:l,children:u.jsx(MR,{...s,ref:t})}):u.jsx(MR,{...s,ref:t})});AR.displayName=Vi;var MR=E.forwardRef((e,t)=>{const{__scopeToggleGroup:n,value:r,...o}=e,a=NR(Vi,n),i={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},s=a.type==="single"?i:void 0;return u.jsx(Kp,{...s,...o,ref:t,onPressedChange:l=>{l?a.onItemActivate(r):a.onItemDeactivate(r)}})}),OR=Yp,IR=AR;const Xp=cn("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"}}),jR=f.forwardRef(({className:e,variant:t,size:n,...r},o)=>u.jsx(_R,{ref:o,className:O(Xp({variant:t,size:n,className:e})),...r}));jR.displayName=_R.displayName;const DR=f.createContext({size:"default",variant:"default"}),kR=f.forwardRef(({className:e,variant:t,size:n,children:r,...o},a)=>u.jsx(OR,{ref:a,className:O("flex items-center justify-center gap-1",e),...o,children:u.jsx(DR.Provider,{value:{variant:t,size:n},children:r})}));kR.displayName=OR.displayName;const $R=f.forwardRef(({className:e,children:t,variant:n,size:r,...o},a)=>{const i=f.useContext(DR);return u.jsx(IR,{ref:a,className:O(Xp({variant:i.variant||n,size:i.size||r}),e),...o,children:t})});$R.displayName=IR.displayName;function kV({title:e,description:t,chart:n,value:r,previousValue:o,change:a,changeType:i,changeLabel:s,className:l,footerContent:c,menuItems:p,chartConfig:d,isLoading:m=!1}){const b=()=>i==="increase"?u.jsx(N1,{className:"h-4 w-4 text-emerald-500"}):i==="decrease"?u.jsx(E1,{className:"h-4 w-4 text-red-500"}):null,g=()=>i==="increase"?"text-emerald-500":i==="decrease"?"text-red-500":"text-muted-foreground";return u.jsxs(ha,{className:O("overflow-hidden",l),children:[u.jsxs(ga,{className:"flex flex-row items-center justify-between pb-2",children:[u.jsxs("div",{children:[u.jsx(va,{className:"text-base font-medium",children:e}),t&&u.jsx(ba,{children:t})]}),p&&p.length>0&&u.jsxs(FS,{children:[u.jsx(BS,{asChild:!0,children:u.jsxs(_t,{variant:"ghost",className:"h-8 w-8 p-0",children:[u.jsx("span",{className:"sr-only",children:"Open menu"}),u.jsx(os,{className:"h-4 w-4"})]})}),u.jsx(bf,{align:"end",children:p.map((h,v)=>u.jsx(yf,{onClick:h.onClick,children:h.label},v))})]})]}),u.jsxs(ya,{className:"pb-2",children:[r&&u.jsx("div",{className:"flex items-center justify-between",children:u.jsxs("div",{className:"space-y-1",children:[u.jsx("p",{className:"text-2xl font-bold",children:r}),(a!==void 0||o)&&u.jsxs("div",{className:"flex items-center text-xs",children:[b(),u.jsxs("span",{className:O("ml-1",g()),children:[a!==void 0&&`${Math.abs(a)}%`,o&&!a&&`from ${o}`]}),s&&u.jsx("span",{className:"ml-1 text-muted-foreground",children:s})]})]})}),u.jsx("div",{className:O("mt-4",r?"h-[180px]":"h-[240px]"),children:m?u.jsx("div",{className:"flex h-full items-center justify-center",children:u.jsx("div",{className:"h-8 w-8 animate-spin rounded-full border-4 border-primary border-t-transparent"})}):d&&n?u.jsx(gd,{config:d,children:n}):n})]}),c&&u.jsx(As,{children:c})]})}function $V({title:e,breadcrumbItems:t=[],showHomeLink:n=!0,className:r="",children:o}){return u.jsx("header",{className:`border-b pb-4 ${r}`,children:u.jsxs("div",{className:"container mx-auto p-4",children:[(t.length>0||n)&&u.jsx(Ts,{className:"mb-2",children:u.jsxs(Ns,{children:[n&&u.jsxs(u.Fragment,{children:[u.jsx(fa,{children:u.jsxs(pa,{href:"/",className:"flex items-center",children:[u.jsx(O1,{className:"h-3.5 w-3.5 mr-1"}),"Home"]})}),t.length>0&&u.jsx(ma,{children:u.jsx(hn,{className:"h-3.5 w-3.5"})})]}),t.map((a,i)=>u.jsxs(E.Fragment,{children:[u.jsx(fa,{children:a.isCurrentPage?u.jsx(Rs,{children:a.label}):u.jsx(pa,{href:a.href||"#",children:a.label})}),i<t.length-1&&u.jsx(ma,{children:u.jsx(hn,{className:"h-3.5 w-3.5"})})]},i))]})}),u.jsxs("div",{className:"flex items-center justify-between",children:[e&&u.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:e}),o&&u.jsx("div",{className:"flex items-center",children:o})]})]})})}function LV({className:e,...t}){return u.jsxs("div",{className:O("flex flex-col gap-6",e),...t,children:[u.jsxs(ha,{children:[u.jsxs(ga,{className:"text-center",children:[u.jsx(va,{className:"text-xl",children:"Welcome back"}),u.jsx(ba,{children:"Login with your Apple or Google account"})]}),u.jsx(ya,{children:u.jsx("form",{children:u.jsxs("div",{className:"grid gap-6",children:[u.jsxs("div",{className:"flex flex-col gap-4",children:[u.jsxs(_t,{variant:"outline",className:"w-full",children:[u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:u.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"]}),u.jsxs(_t,{variant:"outline",className:"w-full",children:[u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:u.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"]})]}),u.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:u.jsx("span",{className:"relative z-10 bg-background px-2 text-muted-foreground",children:"Or continue with"})}),u.jsxs("div",{className:"grid gap-6",children:[u.jsxs("div",{className:"grid gap-2",children:[u.jsx(Po,{htmlFor:"email",children:"Email"}),u.jsx(Ro,{id:"email",type:"email",placeholder:"m@example.com",required:!0})]}),u.jsxs("div",{className:"grid gap-2",children:[u.jsxs("div",{className:"flex items-center",children:[u.jsx(Po,{htmlFor:"password",children:"Password"}),u.jsx("a",{href:"#",className:"ml-auto text-sm underline-offset-4 hover:underline",children:"Forgot your password?"})]}),u.jsx(Ro,{id:"password",type:"password",required:!0})]}),u.jsx(_t,{type:"submit",className:"w-full",children:"Login"})]}),u.jsxs("div",{className:"text-center text-sm",children:["Don't have an account?"," ",u.jsx("a",{href:"#",className:"underline underline-offset-4",children:"Sign up"})]})]})})})]}),u.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 ",u.jsx("a",{href:"#",children:"Terms of Service"})," ","and ",u.jsx("a",{href:"#",children:"Privacy Policy"}),"."]})]})}const LR=({search:e,options:t,submit:n})=>{const r=t&&t.length>0?t[0]:"",[o,a]=E.useState(!1),[i,s]=E.useState(!1),[l,c]=E.useState(""),[p,d]=E.useState(r),m=E.useRef(null),b=E.useRef(null),g=E.useRef(null),h=l?e.filter(x=>x==null?void 0:x.toLowerCase().includes(l.toLowerCase())):[],v=()=>{n(l,p)};E.useEffect(()=>{function x(S){m.current&&!m.current.contains(S.target)&&a(!1),b.current&&!b.current.contains(S.target)&&S.target!==g.current&&s(!1)}return document.addEventListener("mousedown",x),()=>document.removeEventListener("mousedown",x)},[]);const y=x=>{const S=x.target.value;c(S),s(S.length>0)},w=x=>{var S;c(x),s(!1),(S=g.current)==null||S.focus()};return u.jsxs("div",{className:"flex max-w-xl rounded-lg border border-blue-100 bg-white",children:[u.jsxs("div",{className:"relative flex-1",ref:b,children:[u.jsx("input",{ref:g,type:"search",placeholder:"Search...",value:l,onChange:y,onFocus:()=>l&&s(!0),className:"h-9 w-full border-0 bg-transparent px-3 py-2 outline-none"}),i&&h.length>0&&u.jsx("div",{className:"absolute left-0 top-full z-10 mt-1 w-full rounded-md border border-gray-200 bg-white py-1 shadow-lg",children:h.map(x=>u.jsx("button",{className:"flex w-full px-4 py-2 text-left text-sm hover:bg-gray-50",onClick:()=>w(x),children:x},x))})]}),u.jsxs("div",{className:"flex items-center",children:[u.jsx("div",{className:"h-5 w-[1px] bg-slate-200"}),u.jsxs("div",{className:"relative",ref:m,children:[u.jsxs("button",{onClick:()=>a(!o),className:"flex h-9 items-center gap-1 px-3 text-sm font-normal text-gray-700 hover:bg-gray-50",children:[p,u.jsx(zr,{className:"h-4 w-4 opacity-50"})]}),o&&u.jsx("div",{className:"absolute right-0 top-full z-10 mt-1 w-48 rounded-md border border-gray-200 bg-white py-1 shadow-lg",children:t==null?void 0:t.map(x=>u.jsx("button",{className:"flex w-full px-4 py-2 text-left text-sm hover:bg-gray-50",onClick:()=>{d(x),a(!1)},children:x},x))})]}),u.jsx("div",{className:"h-5 w-[1px] bg-slate-200"}),u.jsx("button",{className:"flex h-9 w-9 items-center justify-center text-gray-500 hover:bg-gray-50",onClick:v,children:u.jsx(D1,{className:"h-2 w-2"})})]})]})};LR.displayName="SearchBar";const FR=E.createContext(void 0);function Ho(){const e=E.useContext(FR);if(!e)throw new Error("useWizard must be used within a WizardProvider");return e}function BR({steps:e,children:t,onComplete:n,initialStep:r=0}){const[o,a]=E.useState(r),[i,s]=E.useState(!1),l=g=>{g>=0&&g<e.length&&a(g)},c=()=>{o<e.length-1?a(o+1):d()},p=()=>{o>0&&a(o-1)},d=()=>{s(!0),n==null||n()},m=g=>i||g<o?"completed":g===o?"current":"upcoming",b={currentStepIndex:o,steps:e,goToStep:l,nextStep:c,prevStep:p,isFirstStep:o===0,isLastStep:o===e.length-1,getStepStatus:m,completeWizard:d,isComplete:i};return u.jsx(FR.Provider,{value:b,children:t})}function FV({steps:e,children:t,onComplete:n,initialStep:r=0,className:o,showStepIndicator:a=!0,navigationPosition:i="bottom"}){return u.jsx(BR,{steps:e,onComplete:n,initialStep:r,children:u.jsxs("div",{className:O("w-full",o),children:[(i==="top"||i==="both")&&u.jsx(Zp,{className:"mb-6"}),a&&u.jsx(zR,{className:"mb-8"}),u.jsx("div",{className:"wizard-content",children:t}),(i==="bottom"||i==="both")&&u.jsx(Zp,{className:"mt-6"})]})})}function zR({className:e}){const{steps:t,currentStepIndex:n,getStepStatus:r,goToStep:o}=Ho();return u.jsx("div",{className:O("w-full",e),children:u.jsxs("div",{className:"relative flex w-full justify-between",children:[u.jsx("div",{className:"absolute top-1/2 h-0.5 w-full -translate-y-1/2 bg-muted",children:u.jsx("div",{className:"h-full bg-primary transition-all duration-300 ease-in-out",style:{width:`${n/(t.length-1)*100}%`}})}),t.map((a,i)=>{const s=r(i);return u.jsxs("div",{className:"relative z-10 flex flex-col items-center",children:[u.jsx("button",{onClick:()=>{s==="completed"&&o(i)},disabled:s==="upcoming",className:O("flex h-8 w-8 items-center justify-center rounded-full border-2 text-sm font-medium transition-colors",s==="completed"&&"border-primary bg-primary text-primary-foreground hover:bg-primary/90",s==="current"&&"border-primary bg-background text-primary",s==="upcoming"&&"border-muted bg-background text-muted-foreground"),"aria-current":s==="current"?"step":void 0,children:s==="completed"?u.jsx(Yn,{className:"h-4 w-4"}):i+1}),u.jsxs("div",{className:"mt-2 text-center",children:[u.jsx("div",{className:O("text-xs font-medium",s==="completed"&&"text-primary",s==="current"&&"text-primary",s==="upcoming"&&"text-muted-foreground"),children:a.title}),a.description&&u.jsx("div",{className:"mt-0.5 text-xs text-muted-foreground",children:a.description})]})]},a.id)})]})})}function Zp({className:e,showCancel:t=!1,onCancel:n,nextLabel:r="Next",backLabel:o="Back",completeLabel:a="Complete"}){const{nextStep:i,prevStep:s,isFirstStep:l,isLastStep:c,completeWizard:p}=Ho();return u.jsxs("div",{className:O("flex items-center justify-between",e),children:[u.jsxs("div",{children:[!l&&u.jsx(_t,{variant:"outline",onClick:s,children:o}),t&&l&&u.jsx(_t,{variant:"outline",onClick:n,children:"Cancel"})]}),u.jsxs(_t,{onClick:c?p:i,children:[c?a:r,!c&&u.jsx(hn,{className:"ml-1 h-4 w-4"})]})]})}function BV({stepId:e,children:t}){const{steps:n,currentStepIndex:r,isComplete:o}=Ho(),a=n[r];return o||a.id!==e?null:u.jsx(u.Fragment,{children:t})}function zV({children:e}){const{isComplete:t}=Ho();return t?u.jsx(u.Fragment,{children:e}):null}T.Accordion=SA,T.AccordionContent=km,T.AccordionItem=jm,T.AccordionTrigger=Dm,T.Alert=Qh,T.AlertDescription=tg,T.AlertDialog=GM,T.AlertDialogAction=Zh,T.AlertDialogCancel=Jh,T.AlertDialogContent=Wh,T.AlertDialogDescription=Xh,T.AlertDialogFooter=Kh,T.AlertDialogHeader=Uh,T.AlertDialogOverlay=Es,T.AlertDialogPortal=Gh,T.AlertDialogTitle=Yh,T.AlertDialogTrigger=WM,T.AlertTitle=eg,T.AspectRatio=XM,T.Avatar=fg,T.AvatarFallback=mg,T.AvatarImage=pg,T.Badge=eO,T.Breadcrumb=Ts,T.BreadcrumbEllipsis=gg,T.BreadcrumbItem=fa,T.BreadcrumbLink=pa,T.BreadcrumbList=Ns,T.BreadcrumbPage=Rs,T.BreadcrumbSeparator=ma,T.Button=_t,T.Card=ha,T.CardContent=ya,T.CardDescription=ba,T.CardFooter=As,T.CardHeader=ga,T.CardTitle=va,T.Carousel=Eg,T.CarouselContent=Pg,T.CarouselItem=Tg,T.CarouselNext=Rg,T.CarouselPrevious=Ng,T.ChartContainer=gd,T.ChartLegend=i$,T.ChartLegendContent=Vw,T.ChartStyle=qw,T.ChartTooltip=a$,T.ChartTooltipContent=Hw,T.Checkbox=Xw,T.Collapsible=f$,T.CollapsibleContent=m$,T.CollapsibleTrigger=p$,T.ContextMenu=C2,T.ContextMenuCheckboxItem=I0,T.ContextMenuContent=M0,T.ContextMenuGroup=E2,T.ContextMenuItem=O0,T.ContextMenuLabel=D0,T.ContextMenuPortal=P2,T.ContextMenuRadioGroup=N2,T.ContextMenuRadioItem=j0,T.ContextMenuSeparator=k0,T.ContextMenuShortcut=$0,T.ContextMenuSub=T2,T.ContextMenuSubContent=A0,T.ContextMenuSubTrigger=R0,T.ContextMenuTrigger=_2,T.Dialog=R2,T.DialogClose=M2,T.DialogContent=F0,T.DialogDescription=H0,T.DialogFooter=z0,T.DialogHeader=B0,T.DialogOverlay=lf,T.DialogPortal=L0,T.DialogTitle=q0,T.DialogTrigger=A2,T.Drawer=aS,T.DrawerClose=sF,T.DrawerContent=sS,T.DrawerDescription=dS,T.DrawerFooter=cS,T.DrawerHeader=lS,T.DrawerOverlay=gf,T.DrawerPortal=iS,T.DrawerTitle=uS,T.DrawerTrigger=iF,T.DropdownMenu=FS,T.DropdownMenuCheckboxItem=HS,T.DropdownMenuContent=bf,T.DropdownMenuGroup=RF,T.DropdownMenuItem=yf,T.DropdownMenuLabel=GS,T.DropdownMenuPortal=AF,T.DropdownMenuRadioGroup=OF,T.DropdownMenuRadioItem=VS,T.DropdownMenuSeparator=WS,T.DropdownMenuShortcut=US,T.DropdownMenuSub=MF,T.DropdownMenuSubContent=qS,T.DropdownMenuSubTrigger=zS,T.DropdownMenuTrigger=BS,T.Form=nB,T.FormControl=cC,T.FormDescription=uC,T.FormField=rB,T.FormItem=sC,T.FormLabel=lC,T.FormMessage=dC,T.GraphCard=kV,T.Header=$V,T.HoverCard=pB,T.HoverCardContent=bC,T.HoverCardTrigger=mB,T.Input=Ro,T.InputOTP=EC,T.InputOTPGroup=PC,T.InputOTPSeparator=NC,T.InputOTPSlot=TC,T.Label=Po,T.LoginForm=LV,T.Menubar=i_,T.MenubarCheckboxItem=f_,T.MenubarContent=u_,T.MenubarGroup=JB,T.MenubarItem=d_,T.MenubarLabel=m_,T.MenubarMenu=ZB,T.MenubarPortal=QB,T.MenubarRadioGroup=ez,T.MenubarRadioItem=p_,T.MenubarSeparator=h_,T.MenubarShortcut=g_,T.MenubarSub=tz,T.MenubarSubContent=c_,T.MenubarSubTrigger=l_,T.MenubarTrigger=s_,T.NavigationMenu=G_,T.NavigationMenuContent=Y_,T.NavigationMenuIndicator=X_,T.NavigationMenuItem=wz,T.NavigationMenuLink=xz,T.NavigationMenuList=W_,T.NavigationMenuTrigger=K_,T.NavigationMenuViewport=Bf,T.Pagination=Z_,T.PaginationContent=J_,T.PaginationEllipsis=nE,T.PaginationItem=Q_,T.PaginationLink=vi,T.PaginationNext=tE,T.PaginationPrevious=eE,T.Popover=jz,T.PopoverAnchor=kz,T.PopoverContent=hE,T.PopoverTrigger=Dz,T.Progress=CE,T.RadioGroup=$E,T.RadioGroupItem=LE,T.ResizableHandle=O5,T.ResizablePanel=M5,T.ResizablePanelGroup=A5,T.ScrollArea=MP,T.ScrollBar=op,T.SearchBar=LR,T.Select=bq,T.SelectContent=hT,T.SelectGroup=yq,T.SelectItem=vT,T.SelectLabel=gT,T.SelectScrollDownButton=fp,T.SelectScrollUpButton=dp,T.SelectSeparator=bT,T.SelectTrigger=mT,T.SelectValue=wq,T.Separator=pp,T.Sheet=ST,T.SheetClose=Eq,T.SheetContent=hp,T.SheetDescription=bp,T.SheetFooter=_T,T.SheetHeader=gp,T.SheetOverlay=mp,T.SheetPortal=CT,T.SheetTitle=vp,T.SheetTrigger=_q,T.Sidebar=FT,T.SidebarContent=UT,T.SidebarFooter=GT,T.SidebarGroup=KT,T.SidebarGroupAction=XT,T.SidebarGroupContent=ZT,T.SidebarGroupLabel=YT,T.SidebarHeader=VT,T.SidebarInput=HT,T.SidebarInset=qT,T.SidebarMenu=JT,T.SidebarMenuAction=tN,T.SidebarMenuBadge=nN,T.SidebarMenuButton=eN,T.SidebarMenuItem=QT,T.SidebarMenuSkeleton=rN,T.SidebarMenuSub=oN,T.SidebarMenuSubButton=iN,T.SidebarMenuSubItem=aN,T.SidebarProvider=LT,T.SidebarRail=zT,T.SidebarSeparator=WT,T.SidebarTrigger=BT,T.Skeleton=wp,T.Slider=xN,T.SonnerToaster=YH,T.Switch=RN,T.Table=AN,T.TableBody=ON,T.TableCaption=$N,T.TableCell=kN,T.TableFooter=IN,T.TableHead=DN,T.TableHeader=MN,T.TableRow=jN,T.Tabs=oV,T.TabsContent=QN,T.TabsList=ZN,T.TabsTrigger=JN,T.Textarea=eR,T.Toast=qp,T.ToastAction=SR,T.ToastClose=Hp,T.ToastDescription=Gp,T.ToastProvider=xR,T.ToastTitle=Vp,T.ToastViewport=zp,T.Toaster=AV,T.Toggle=jR,T.ToggleGroup=kR,T.ToggleGroupItem=$R,T.Tooltip=DT,T.TooltipContent=Ep,T.TooltipProvider=jT,T.TooltipTrigger=kT,T.Wizard=FV,T.WizardCompletion=zV,T.WizardNavigation=Zp,T.WizardProvider=BR,T.WizardStepContent=BV,T.WizardStepIndicator=zR,T.badgeVariants=hg,T.buttonVariants=Vr,T.navigationMenuTriggerStyle=U_,T.toggleVariants=Xp,T.useFormField=To,T.useSidebar=zo,T.useWizard=Ho,Object.defineProperty(T,Symbol.toStringTag,{value:"Module"})});
|